configure 803 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.71 for libssh2 -.
  4. #
  5. # Report bugs to <[email protected]>.
  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. ## M4sh Initialization. ##
  16. ## -------------------- ##
  17. # Be more Bourne compatible
  18. DUALCASE=1; export DUALCASE # for MKS sh
  19. as_nop=:
  20. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  21. then :
  22. emulate sh
  23. NULLCMD=:
  24. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  25. # is contrary to our usage. Disable this feature.
  26. alias -g '${1+"$@"}'='"$@"'
  27. setopt NO_GLOB_SUBST
  28. else $as_nop
  29. case `(set -o) 2>/dev/null` in #(
  30. *posix*) :
  31. set -o posix ;; #(
  32. *) :
  33. ;;
  34. esac
  35. fi
  36. # Reset variables that may have inherited troublesome values from
  37. # the environment.
  38. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  39. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  40. # side effect of setting IFS to empty, thus disabling word splitting.)
  41. # Quoting is to prevent editors from complaining about space-tab.
  42. as_nl='
  43. '
  44. export as_nl
  45. IFS=" "" $as_nl"
  46. PS1='$ '
  47. PS2='> '
  48. PS4='+ '
  49. # Ensure predictable behavior from utilities with locale-dependent output.
  50. LC_ALL=C
  51. export LC_ALL
  52. LANGUAGE=C
  53. export LANGUAGE
  54. # We cannot yet rely on "unset" to work, but we need these variables
  55. # to be unset--not just set to an empty or harmless value--now, to
  56. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  57. # also avoids known problems related to "unset" and subshell syntax
  58. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  59. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  60. do eval test \${$as_var+y} \
  61. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  62. done
  63. # Ensure that fds 0, 1, and 2 are open.
  64. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  65. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  66. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  67. # The user is always right.
  68. if ${PATH_SEPARATOR+false} :; then
  69. PATH_SEPARATOR=:
  70. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  71. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  72. PATH_SEPARATOR=';'
  73. }
  74. fi
  75. # Find who we are. Look in the path if we contain no directory separator.
  76. as_myself=
  77. case $0 in #((
  78. *[\\/]* ) as_myself=$0 ;;
  79. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  80. for as_dir in $PATH
  81. do
  82. IFS=$as_save_IFS
  83. case $as_dir in #(((
  84. '') as_dir=./ ;;
  85. */) ;;
  86. *) as_dir=$as_dir/ ;;
  87. esac
  88. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  89. done
  90. IFS=$as_save_IFS
  91. ;;
  92. esac
  93. # We did not find ourselves, most probably we were run as `sh COMMAND'
  94. # in which case we are not to be found in the path.
  95. if test "x$as_myself" = x; then
  96. as_myself=$0
  97. fi
  98. if test ! -f "$as_myself"; then
  99. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  100. exit 1
  101. fi
  102. # Use a proper internal environment variable to ensure we don't fall
  103. # into an infinite loop, continuously re-executing ourselves.
  104. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  105. _as_can_reexec=no; export _as_can_reexec;
  106. # We cannot yet assume a decent shell, so we have to provide a
  107. # neutralization value for shells without unset; and this also
  108. # works around shells that cannot unset nonexistent variables.
  109. # Preserve -v and -x to the replacement shell.
  110. BASH_ENV=/dev/null
  111. ENV=/dev/null
  112. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  113. case $- in # ((((
  114. *v*x* | *x*v* ) as_opts=-vx ;;
  115. *v* ) as_opts=-v ;;
  116. *x* ) as_opts=-x ;;
  117. * ) as_opts= ;;
  118. esac
  119. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  120. # Admittedly, this is quite paranoid, since all the known shells bail
  121. # out after a failed `exec'.
  122. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  123. exit 255
  124. fi
  125. # We don't want this to propagate to other subprocesses.
  126. { _as_can_reexec=; unset _as_can_reexec;}
  127. if test "x$CONFIG_SHELL" = x; then
  128. as_bourne_compatible="as_nop=:
  129. if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  130. then :
  131. emulate sh
  132. NULLCMD=:
  133. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  134. # is contrary to our usage. Disable this feature.
  135. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  136. setopt NO_GLOB_SUBST
  137. else \$as_nop
  138. case \`(set -o) 2>/dev/null\` in #(
  139. *posix*) :
  140. set -o posix ;; #(
  141. *) :
  142. ;;
  143. esac
  144. fi
  145. "
  146. as_required="as_fn_return () { (exit \$1); }
  147. as_fn_success () { as_fn_return 0; }
  148. as_fn_failure () { as_fn_return 1; }
  149. as_fn_ret_success () { return 0; }
  150. as_fn_ret_failure () { return 1; }
  151. exitcode=0
  152. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  153. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  154. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  155. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  156. if ( set x; as_fn_ret_success y && test x = \"\$1\" )
  157. then :
  158. else \$as_nop
  159. exitcode=1; echo positional parameters were not saved.
  160. fi
  161. test x\$exitcode = x0 || exit 1
  162. blah=\$(echo \$(echo blah))
  163. test x\"\$blah\" = xblah || exit 1
  164. test -x / || exit 1"
  165. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  166. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  167. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  168. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  169. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  170. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  171. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  172. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  173. PATH=/empty FPATH=/empty; export PATH FPATH
  174. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  175. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  176. test \$(( 1 + 1 )) = 2 || exit 1"
  177. if (eval "$as_required") 2>/dev/null
  178. then :
  179. as_have_required=yes
  180. else $as_nop
  181. as_have_required=no
  182. fi
  183. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
  184. then :
  185. else $as_nop
  186. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  187. as_found=false
  188. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  189. do
  190. IFS=$as_save_IFS
  191. case $as_dir in #(((
  192. '') as_dir=./ ;;
  193. */) ;;
  194. *) as_dir=$as_dir/ ;;
  195. esac
  196. as_found=:
  197. case $as_dir in #(
  198. /*)
  199. for as_base in sh bash ksh sh5; do
  200. # Try only shells that exist, to save several forks.
  201. as_shell=$as_dir$as_base
  202. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  203. as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  204. then :
  205. CONFIG_SHELL=$as_shell as_have_required=yes
  206. if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
  207. then :
  208. break 2
  209. fi
  210. fi
  211. done;;
  212. esac
  213. as_found=false
  214. done
  215. IFS=$as_save_IFS
  216. if $as_found
  217. then :
  218. else $as_nop
  219. if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  220. as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  221. then :
  222. CONFIG_SHELL=$SHELL as_have_required=yes
  223. fi
  224. fi
  225. if test "x$CONFIG_SHELL" != x
  226. then :
  227. export CONFIG_SHELL
  228. # We cannot yet assume a decent shell, so we have to provide a
  229. # neutralization value for shells without unset; and this also
  230. # works around shells that cannot unset nonexistent variables.
  231. # Preserve -v and -x to the replacement shell.
  232. BASH_ENV=/dev/null
  233. ENV=/dev/null
  234. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  235. case $- in # ((((
  236. *v*x* | *x*v* ) as_opts=-vx ;;
  237. *v* ) as_opts=-v ;;
  238. *x* ) as_opts=-x ;;
  239. * ) as_opts= ;;
  240. esac
  241. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  242. # Admittedly, this is quite paranoid, since all the known shells bail
  243. # out after a failed `exec'.
  244. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  245. exit 255
  246. fi
  247. if test x$as_have_required = xno
  248. then :
  249. printf "%s\n" "$0: This script requires a shell more modern than all"
  250. printf "%s\n" "$0: the shells that I found on your system."
  251. if test ${ZSH_VERSION+y} ; then
  252. printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  253. printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
  254. else
  255. printf "%s\n" "$0: Please tell [email protected] and
  256. $0: [email protected] about your system, including
  257. $0: any error possibly output before this message. Then
  258. $0: install a modern shell, or manually run the script
  259. $0: under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_nop
  298. # ---------
  299. # Do nothing but, unlike ":", preserve the value of $?.
  300. as_fn_nop ()
  301. {
  302. return $?
  303. }
  304. as_nop=as_fn_nop
  305. # as_fn_mkdir_p
  306. # -------------
  307. # Create "$as_dir" as a directory, including parents if necessary.
  308. as_fn_mkdir_p ()
  309. {
  310. case $as_dir in #(
  311. -*) as_dir=./$as_dir;;
  312. esac
  313. test -d "$as_dir" || eval $as_mkdir_p || {
  314. as_dirs=
  315. while :; do
  316. case $as_dir in #(
  317. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  318. *) as_qdir=$as_dir;;
  319. esac
  320. as_dirs="'$as_qdir' $as_dirs"
  321. as_dir=`$as_dirname -- "$as_dir" ||
  322. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  323. X"$as_dir" : 'X\(//\)[^/]' \| \
  324. X"$as_dir" : 'X\(//\)$' \| \
  325. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  326. printf "%s\n" X"$as_dir" |
  327. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\/\)[^/].*/{
  332. s//\1/
  333. q
  334. }
  335. /^X\(\/\/\)$/{
  336. s//\1/
  337. q
  338. }
  339. /^X\(\/\).*/{
  340. s//\1/
  341. q
  342. }
  343. s/.*/./; q'`
  344. test -d "$as_dir" && break
  345. done
  346. test -z "$as_dirs" || eval "mkdir $as_dirs"
  347. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  348. } # as_fn_mkdir_p
  349. # as_fn_executable_p FILE
  350. # -----------------------
  351. # Test if FILE is an executable regular file.
  352. as_fn_executable_p ()
  353. {
  354. test -f "$1" && test -x "$1"
  355. } # as_fn_executable_p
  356. # as_fn_append VAR VALUE
  357. # ----------------------
  358. # Append the text in VALUE to the end of the definition contained in VAR. Take
  359. # advantage of any shell optimizations that allow amortized linear growth over
  360. # repeated appends, instead of the typical quadratic growth present in naive
  361. # implementations.
  362. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  363. then :
  364. eval 'as_fn_append ()
  365. {
  366. eval $1+=\$2
  367. }'
  368. else $as_nop
  369. as_fn_append ()
  370. {
  371. eval $1=\$$1\$2
  372. }
  373. fi # as_fn_append
  374. # as_fn_arith ARG...
  375. # ------------------
  376. # Perform arithmetic evaluation on the ARGs, and store the result in the
  377. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  378. # must be portable across $(()) and expr.
  379. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  380. then :
  381. eval 'as_fn_arith ()
  382. {
  383. as_val=$(( $* ))
  384. }'
  385. else $as_nop
  386. as_fn_arith ()
  387. {
  388. as_val=`expr "$@" || test $? -eq 1`
  389. }
  390. fi # as_fn_arith
  391. # as_fn_nop
  392. # ---------
  393. # Do nothing but, unlike ":", preserve the value of $?.
  394. as_fn_nop ()
  395. {
  396. return $?
  397. }
  398. as_nop=as_fn_nop
  399. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  400. # ----------------------------------------
  401. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  402. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  403. # script with STATUS, using 1 if that was 0.
  404. as_fn_error ()
  405. {
  406. as_status=$1; test $as_status -eq 0 && as_status=1
  407. if test "$4"; then
  408. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  409. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  410. fi
  411. printf "%s\n" "$as_me: error: $2" >&2
  412. as_fn_exit $as_status
  413. } # as_fn_error
  414. if expr a : '\(a\)' >/dev/null 2>&1 &&
  415. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  416. as_expr=expr
  417. else
  418. as_expr=false
  419. fi
  420. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  421. as_basename=basename
  422. else
  423. as_basename=false
  424. fi
  425. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  426. as_dirname=dirname
  427. else
  428. as_dirname=false
  429. fi
  430. as_me=`$as_basename -- "$0" ||
  431. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  432. X"$0" : 'X\(//\)$' \| \
  433. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  434. printf "%s\n" X/"$0" |
  435. sed '/^.*\/\([^/][^/]*\)\/*$/{
  436. s//\1/
  437. q
  438. }
  439. /^X\/\(\/\/\)$/{
  440. s//\1/
  441. q
  442. }
  443. /^X\/\(\/\).*/{
  444. s//\1/
  445. q
  446. }
  447. s/.*/./; q'`
  448. # Avoid depending upon Character Ranges.
  449. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  450. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  451. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  452. as_cr_digits='0123456789'
  453. as_cr_alnum=$as_cr_Letters$as_cr_digits
  454. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  455. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  456. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  457. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  458. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  459. sed -n '
  460. p
  461. /[$]LINENO/=
  462. ' <$as_myself |
  463. sed '
  464. s/[$]LINENO.*/&-/
  465. t lineno
  466. b
  467. :lineno
  468. N
  469. :loop
  470. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  471. t loop
  472. s/-\n.*//
  473. ' >$as_me.lineno &&
  474. chmod +x "$as_me.lineno" ||
  475. { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  476. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  477. # already done that, so ensure we don't try to do so again and fall
  478. # in an infinite loop. This has already happened in practice.
  479. _as_can_reexec=no; export _as_can_reexec
  480. # Don't try to exec as it changes $[0], causing all sort of problems
  481. # (the dirname of $[0] is not the place where we might find the
  482. # original and so on. Autoconf is especially sensitive to this).
  483. . "./$as_me.lineno"
  484. # Exit status is that of the last command.
  485. exit
  486. }
  487. # Determine whether it's possible to make 'echo' print without a newline.
  488. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  489. # for compatibility with existing Makefiles.
  490. ECHO_C= ECHO_N= ECHO_T=
  491. case `echo -n x` in #(((((
  492. -n*)
  493. case `echo 'xy\c'` in
  494. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  495. xy) ECHO_C='\c';;
  496. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  497. ECHO_T=' ';;
  498. esac;;
  499. *)
  500. ECHO_N='-n';;
  501. esac
  502. # For backward compatibility with old third-party macros, we provide
  503. # the shell variables $as_echo and $as_echo_n. New code should use
  504. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  505. as_echo='printf %s\n'
  506. as_echo_n='printf %s'
  507. rm -f conf$$ conf$$.exe conf$$.file
  508. if test -d conf$$.dir; then
  509. rm -f conf$$.dir/conf$$.file
  510. else
  511. rm -f conf$$.dir
  512. mkdir conf$$.dir 2>/dev/null
  513. fi
  514. if (echo >conf$$.file) 2>/dev/null; then
  515. if ln -s conf$$.file conf$$ 2>/dev/null; then
  516. as_ln_s='ln -s'
  517. # ... but there are two gotchas:
  518. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  519. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  520. # In both cases, we have to default to `cp -pR'.
  521. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  522. as_ln_s='cp -pR'
  523. elif ln conf$$.file conf$$ 2>/dev/null; then
  524. as_ln_s=ln
  525. else
  526. as_ln_s='cp -pR'
  527. fi
  528. else
  529. as_ln_s='cp -pR'
  530. fi
  531. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  532. rmdir conf$$.dir 2>/dev/null
  533. if mkdir -p . 2>/dev/null; then
  534. as_mkdir_p='mkdir -p "$as_dir"'
  535. else
  536. test -d ./-p && rmdir ./-p
  537. as_mkdir_p=false
  538. fi
  539. as_test_x='test -x'
  540. as_executable_p=as_fn_executable_p
  541. # Sed expression to map a string onto a valid CPP name.
  542. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  543. # Sed expression to map a string onto a valid variable name.
  544. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  545. SHELL=${CONFIG_SHELL-/bin/sh}
  546. test -n "$DJDIR" || exec 7<&0 </dev/null
  547. exec 6>&1
  548. # Name of the host.
  549. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  550. # so uname gets run too.
  551. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  552. #
  553. # Initializations.
  554. #
  555. ac_default_prefix=/usr/local
  556. ac_clean_files=
  557. ac_config_libobj_dir=.
  558. LIBOBJS=
  559. cross_compiling=no
  560. subdirs=
  561. MFLAGS=
  562. MAKEFLAGS=
  563. # Identity of this package.
  564. PACKAGE_NAME='libssh2'
  565. PACKAGE_TARNAME='libssh2'
  566. PACKAGE_VERSION='-'
  567. PACKAGE_STRING='libssh2 -'
  568. PACKAGE_BUGREPORT='[email protected]'
  569. PACKAGE_URL=''
  570. ac_unique_file="src"
  571. # Factoring default headers for most tests.
  572. ac_includes_default="\
  573. #include <stddef.h>
  574. #ifdef HAVE_STDIO_H
  575. # include <stdio.h>
  576. #endif
  577. #ifdef HAVE_STDLIB_H
  578. # include <stdlib.h>
  579. #endif
  580. #ifdef HAVE_STRING_H
  581. # include <string.h>
  582. #endif
  583. #ifdef HAVE_INTTYPES_H
  584. # include <inttypes.h>
  585. #endif
  586. #ifdef HAVE_STDINT_H
  587. # include <stdint.h>
  588. #endif
  589. #ifdef HAVE_STRINGS_H
  590. # include <strings.h>
  591. #endif
  592. #ifdef HAVE_SYS_TYPES_H
  593. # include <sys/types.h>
  594. #endif
  595. #ifdef HAVE_SYS_STAT_H
  596. # include <sys/stat.h>
  597. #endif
  598. #ifdef HAVE_UNISTD_H
  599. # include <unistd.h>
  600. #endif"
  601. ac_header_c_list=
  602. ac_subst_vars='am__EXEEXT_FALSE
  603. am__EXEEXT_TRUE
  604. LTLIBOBJS
  605. LIBOBJS
  606. ALLOCA
  607. HAVE_SYS_UN_H_FALSE
  608. HAVE_SYS_UN_H_TRUE
  609. USE_OSSFUZZ_STATIC_FALSE
  610. USE_OSSFUZZ_STATIC_TRUE
  611. USE_OSSFUZZ_FLAG_FALSE
  612. USE_OSSFUZZ_FLAG_TRUE
  613. LIB_FUZZING_ENGINE
  614. USE_OSSFUZZERS_FALSE
  615. USE_OSSFUZZERS_TRUE
  616. BUILD_EXAMPLES_FALSE
  617. BUILD_EXAMPLES_TRUE
  618. CPP
  619. LIBSREQUIRED
  620. LIBZ_PREFIX
  621. LTLIBZ
  622. LIBZ
  623. HAVE_LIBZ
  624. WINCNG_FALSE
  625. WINCNG_TRUE
  626. MBEDTLS_FALSE
  627. MBEDTLS_TRUE
  628. LIBGCRYPT_FALSE
  629. LIBGCRYPT_TRUE
  630. OPENSSL_FALSE
  631. OPENSSL_TRUE
  632. LIBBCRYPT_PREFIX
  633. LTLIBBCRYPT
  634. LIBBCRYPT
  635. HAVE_LIBBCRYPT
  636. LIBCRYPT32_PREFIX
  637. LTLIBCRYPT32
  638. LIBCRYPT32
  639. HAVE_LIBCRYPT32
  640. LIBMBEDCRYPTO_PREFIX
  641. LTLIBMBEDCRYPTO
  642. LIBMBEDCRYPTO
  643. HAVE_LIBMBEDCRYPTO
  644. LIBGCRYPT_PREFIX
  645. LTLIBGCRYPT
  646. LIBGCRYPT
  647. HAVE_LIBGCRYPT
  648. LIBSSL_PREFIX
  649. LTLIBSSL
  650. LIBSSL
  651. HAVE_LIBSSL
  652. CXXCPP
  653. LT_SYS_LIBRARY_PATH
  654. OTOOL64
  655. OTOOL
  656. LIPO
  657. NMEDIT
  658. DSYMUTIL
  659. MANIFEST_TOOL
  660. RANLIB
  661. ac_ct_AR
  662. AR
  663. NM
  664. ac_ct_DUMPBIN
  665. DUMPBIN
  666. LD
  667. FGREP
  668. EGREP
  669. GREP
  670. LIBTOOL
  671. OBJDUMP
  672. DLLTOOL
  673. AS
  674. SSHD_FALSE
  675. SSHD_TRUE
  676. SSHD
  677. LN_S
  678. am__fastdepCXX_FALSE
  679. am__fastdepCXX_TRUE
  680. CXXDEPMODE
  681. ac_ct_CXX
  682. CXXFLAGS
  683. CXX
  684. am__fastdepCC_FALSE
  685. am__fastdepCC_TRUE
  686. CCDEPMODE
  687. am__nodep
  688. AMDEPBACKSLASH
  689. AMDEP_FALSE
  690. AMDEP_TRUE
  691. am__include
  692. DEPDIR
  693. OBJEXT
  694. EXEEXT
  695. ac_ct_CC
  696. CPPFLAGS
  697. LDFLAGS
  698. CFLAGS
  699. CC
  700. host_os
  701. host_vendor
  702. host_cpu
  703. host
  704. build_os
  705. build_vendor
  706. build_cpu
  707. build
  708. LIBSSH2VER
  709. CSCOPE
  710. ETAGS
  711. CTAGS
  712. am__untar
  713. am__tar
  714. AMTAR
  715. am__leading_dot
  716. SET_MAKE
  717. AWK
  718. mkdir_p
  719. MKDIR_P
  720. INSTALL_STRIP_PROGRAM
  721. STRIP
  722. install_sh
  723. MAKEINFO
  724. AUTOHEADER
  725. AUTOMAKE
  726. AUTOCONF
  727. ACLOCAL
  728. VERSION
  729. PACKAGE
  730. CYGPATH_W
  731. am__isrc
  732. INSTALL_DATA
  733. INSTALL_SCRIPT
  734. INSTALL_PROGRAM
  735. SED
  736. AM_BACKSLASH
  737. AM_DEFAULT_VERBOSITY
  738. AM_DEFAULT_V
  739. AM_V
  740. MAINT
  741. MAINTAINER_MODE_FALSE
  742. MAINTAINER_MODE_TRUE
  743. target_alias
  744. host_alias
  745. build_alias
  746. LIBS
  747. ECHO_T
  748. ECHO_N
  749. ECHO_C
  750. DEFS
  751. mandir
  752. localedir
  753. libdir
  754. psdir
  755. pdfdir
  756. dvidir
  757. htmldir
  758. infodir
  759. docdir
  760. oldincludedir
  761. includedir
  762. runstatedir
  763. localstatedir
  764. sharedstatedir
  765. sysconfdir
  766. datadir
  767. datarootdir
  768. libexecdir
  769. sbindir
  770. bindir
  771. program_transform_name
  772. prefix
  773. exec_prefix
  774. PACKAGE_URL
  775. PACKAGE_BUGREPORT
  776. PACKAGE_STRING
  777. PACKAGE_VERSION
  778. PACKAGE_TARNAME
  779. PACKAGE_NAME
  780. PATH_SEPARATOR
  781. SHELL
  782. am__quote'
  783. ac_subst_files=''
  784. ac_user_opts='
  785. enable_option_checking
  786. enable_maintainer_mode
  787. enable_silent_rules
  788. enable_dependency_tracking
  789. enable_shared
  790. enable_static
  791. with_pic
  792. enable_fast_install
  793. with_aix_soname
  794. with_gnu_ld
  795. with_sysroot
  796. enable_libtool_lock
  797. enable_largefile
  798. with_crypto
  799. enable_rpath
  800. with_libssl_prefix
  801. with_libgcrypt_prefix
  802. with_libmbedcrypto_prefix
  803. with_libcrypt32_prefix
  804. with_libbcrypt_prefix
  805. with_libz
  806. with_libz_prefix
  807. enable_crypt_none
  808. enable_mac_none
  809. enable_gex_new
  810. enable_clear_memory
  811. enable_debug
  812. enable_hidden_symbols
  813. enable_examples_build
  814. enable_ossfuzzers
  815. enable_werror
  816. '
  817. ac_precious_vars='build_alias
  818. host_alias
  819. target_alias
  820. CC
  821. CFLAGS
  822. LDFLAGS
  823. LIBS
  824. CPPFLAGS
  825. CXX
  826. CXXFLAGS
  827. CCC
  828. LT_SYS_LIBRARY_PATH
  829. CXXCPP
  830. CPP'
  831. # Initialize some variables set by options.
  832. ac_init_help=
  833. ac_init_version=false
  834. ac_unrecognized_opts=
  835. ac_unrecognized_sep=
  836. # The variables have the same names as the options, with
  837. # dashes changed to underlines.
  838. cache_file=/dev/null
  839. exec_prefix=NONE
  840. no_create=
  841. no_recursion=
  842. prefix=NONE
  843. program_prefix=NONE
  844. program_suffix=NONE
  845. program_transform_name=s,x,x,
  846. silent=
  847. site=
  848. srcdir=
  849. verbose=
  850. x_includes=NONE
  851. x_libraries=NONE
  852. # Installation directory options.
  853. # These are left unexpanded so users can "make install exec_prefix=/foo"
  854. # and all the variables that are supposed to be based on exec_prefix
  855. # by default will actually change.
  856. # Use braces instead of parens because sh, perl, etc. also accept them.
  857. # (The list follows the same order as the GNU Coding Standards.)
  858. bindir='${exec_prefix}/bin'
  859. sbindir='${exec_prefix}/sbin'
  860. libexecdir='${exec_prefix}/libexec'
  861. datarootdir='${prefix}/share'
  862. datadir='${datarootdir}'
  863. sysconfdir='${prefix}/etc'
  864. sharedstatedir='${prefix}/com'
  865. localstatedir='${prefix}/var'
  866. runstatedir='${localstatedir}/run'
  867. includedir='${prefix}/include'
  868. oldincludedir='/usr/include'
  869. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  870. infodir='${datarootdir}/info'
  871. htmldir='${docdir}'
  872. dvidir='${docdir}'
  873. pdfdir='${docdir}'
  874. psdir='${docdir}'
  875. libdir='${exec_prefix}/lib'
  876. localedir='${datarootdir}/locale'
  877. mandir='${datarootdir}/man'
  878. ac_prev=
  879. ac_dashdash=
  880. for ac_option
  881. do
  882. # If the previous option needs an argument, assign it.
  883. if test -n "$ac_prev"; then
  884. eval $ac_prev=\$ac_option
  885. ac_prev=
  886. continue
  887. fi
  888. case $ac_option in
  889. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  890. *=) ac_optarg= ;;
  891. *) ac_optarg=yes ;;
  892. esac
  893. case $ac_dashdash$ac_option in
  894. --)
  895. ac_dashdash=yes ;;
  896. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  897. ac_prev=bindir ;;
  898. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  899. bindir=$ac_optarg ;;
  900. -build | --build | --buil | --bui | --bu)
  901. ac_prev=build_alias ;;
  902. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  903. build_alias=$ac_optarg ;;
  904. -cache-file | --cache-file | --cache-fil | --cache-fi \
  905. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  906. ac_prev=cache_file ;;
  907. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  908. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  909. cache_file=$ac_optarg ;;
  910. --config-cache | -C)
  911. cache_file=config.cache ;;
  912. -datadir | --datadir | --datadi | --datad)
  913. ac_prev=datadir ;;
  914. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  915. datadir=$ac_optarg ;;
  916. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  917. | --dataroo | --dataro | --datar)
  918. ac_prev=datarootdir ;;
  919. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  920. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  921. datarootdir=$ac_optarg ;;
  922. -disable-* | --disable-*)
  923. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  924. # Reject names that are not valid shell variable names.
  925. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  926. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  927. ac_useropt_orig=$ac_useropt
  928. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  929. case $ac_user_opts in
  930. *"
  931. "enable_$ac_useropt"
  932. "*) ;;
  933. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  934. ac_unrecognized_sep=', ';;
  935. esac
  936. eval enable_$ac_useropt=no ;;
  937. -docdir | --docdir | --docdi | --doc | --do)
  938. ac_prev=docdir ;;
  939. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  940. docdir=$ac_optarg ;;
  941. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  942. ac_prev=dvidir ;;
  943. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  944. dvidir=$ac_optarg ;;
  945. -enable-* | --enable-*)
  946. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  947. # Reject names that are not valid shell variable names.
  948. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  949. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  950. ac_useropt_orig=$ac_useropt
  951. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  952. case $ac_user_opts in
  953. *"
  954. "enable_$ac_useropt"
  955. "*) ;;
  956. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  957. ac_unrecognized_sep=', ';;
  958. esac
  959. eval enable_$ac_useropt=\$ac_optarg ;;
  960. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  961. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  962. | --exec | --exe | --ex)
  963. ac_prev=exec_prefix ;;
  964. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  965. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  966. | --exec=* | --exe=* | --ex=*)
  967. exec_prefix=$ac_optarg ;;
  968. -gas | --gas | --ga | --g)
  969. # Obsolete; use --with-gas.
  970. with_gas=yes ;;
  971. -help | --help | --hel | --he | -h)
  972. ac_init_help=long ;;
  973. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  974. ac_init_help=recursive ;;
  975. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  976. ac_init_help=short ;;
  977. -host | --host | --hos | --ho)
  978. ac_prev=host_alias ;;
  979. -host=* | --host=* | --hos=* | --ho=*)
  980. host_alias=$ac_optarg ;;
  981. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  982. ac_prev=htmldir ;;
  983. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  984. | --ht=*)
  985. htmldir=$ac_optarg ;;
  986. -includedir | --includedir | --includedi | --included | --include \
  987. | --includ | --inclu | --incl | --inc)
  988. ac_prev=includedir ;;
  989. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  990. | --includ=* | --inclu=* | --incl=* | --inc=*)
  991. includedir=$ac_optarg ;;
  992. -infodir | --infodir | --infodi | --infod | --info | --inf)
  993. ac_prev=infodir ;;
  994. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  995. infodir=$ac_optarg ;;
  996. -libdir | --libdir | --libdi | --libd)
  997. ac_prev=libdir ;;
  998. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  999. libdir=$ac_optarg ;;
  1000. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1001. | --libexe | --libex | --libe)
  1002. ac_prev=libexecdir ;;
  1003. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1004. | --libexe=* | --libex=* | --libe=*)
  1005. libexecdir=$ac_optarg ;;
  1006. -localedir | --localedir | --localedi | --localed | --locale)
  1007. ac_prev=localedir ;;
  1008. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1009. localedir=$ac_optarg ;;
  1010. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1011. | --localstate | --localstat | --localsta | --localst | --locals)
  1012. ac_prev=localstatedir ;;
  1013. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1014. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1015. localstatedir=$ac_optarg ;;
  1016. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1017. ac_prev=mandir ;;
  1018. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1019. mandir=$ac_optarg ;;
  1020. -nfp | --nfp | --nf)
  1021. # Obsolete; use --without-fp.
  1022. with_fp=no ;;
  1023. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1024. | --no-cr | --no-c | -n)
  1025. no_create=yes ;;
  1026. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1027. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1028. no_recursion=yes ;;
  1029. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1030. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1031. | --oldin | --oldi | --old | --ol | --o)
  1032. ac_prev=oldincludedir ;;
  1033. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1034. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1035. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1036. oldincludedir=$ac_optarg ;;
  1037. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1038. ac_prev=prefix ;;
  1039. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1040. prefix=$ac_optarg ;;
  1041. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1042. | --program-pre | --program-pr | --program-p)
  1043. ac_prev=program_prefix ;;
  1044. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1045. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1046. program_prefix=$ac_optarg ;;
  1047. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1048. | --program-suf | --program-su | --program-s)
  1049. ac_prev=program_suffix ;;
  1050. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1051. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1052. program_suffix=$ac_optarg ;;
  1053. -program-transform-name | --program-transform-name \
  1054. | --program-transform-nam | --program-transform-na \
  1055. | --program-transform-n | --program-transform- \
  1056. | --program-transform | --program-transfor \
  1057. | --program-transfo | --program-transf \
  1058. | --program-trans | --program-tran \
  1059. | --progr-tra | --program-tr | --program-t)
  1060. ac_prev=program_transform_name ;;
  1061. -program-transform-name=* | --program-transform-name=* \
  1062. | --program-transform-nam=* | --program-transform-na=* \
  1063. | --program-transform-n=* | --program-transform-=* \
  1064. | --program-transform=* | --program-transfor=* \
  1065. | --program-transfo=* | --program-transf=* \
  1066. | --program-trans=* | --program-tran=* \
  1067. | --progr-tra=* | --program-tr=* | --program-t=*)
  1068. program_transform_name=$ac_optarg ;;
  1069. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1070. ac_prev=pdfdir ;;
  1071. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1072. pdfdir=$ac_optarg ;;
  1073. -psdir | --psdir | --psdi | --psd | --ps)
  1074. ac_prev=psdir ;;
  1075. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1076. psdir=$ac_optarg ;;
  1077. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1078. | -silent | --silent | --silen | --sile | --sil)
  1079. silent=yes ;;
  1080. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1081. | --runstate | --runstat | --runsta | --runst | --runs \
  1082. | --run | --ru | --r)
  1083. ac_prev=runstatedir ;;
  1084. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1085. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1086. | --run=* | --ru=* | --r=*)
  1087. runstatedir=$ac_optarg ;;
  1088. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1089. ac_prev=sbindir ;;
  1090. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1091. | --sbi=* | --sb=*)
  1092. sbindir=$ac_optarg ;;
  1093. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1094. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1095. | --sharedst | --shareds | --shared | --share | --shar \
  1096. | --sha | --sh)
  1097. ac_prev=sharedstatedir ;;
  1098. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1099. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1100. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1101. | --sha=* | --sh=*)
  1102. sharedstatedir=$ac_optarg ;;
  1103. -site | --site | --sit)
  1104. ac_prev=site ;;
  1105. -site=* | --site=* | --sit=*)
  1106. site=$ac_optarg ;;
  1107. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1108. ac_prev=srcdir ;;
  1109. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1110. srcdir=$ac_optarg ;;
  1111. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1112. | --syscon | --sysco | --sysc | --sys | --sy)
  1113. ac_prev=sysconfdir ;;
  1114. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1115. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1116. sysconfdir=$ac_optarg ;;
  1117. -target | --target | --targe | --targ | --tar | --ta | --t)
  1118. ac_prev=target_alias ;;
  1119. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1120. target_alias=$ac_optarg ;;
  1121. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1122. verbose=yes ;;
  1123. -version | --version | --versio | --versi | --vers | -V)
  1124. ac_init_version=: ;;
  1125. -with-* | --with-*)
  1126. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1127. # Reject names that are not valid shell variable names.
  1128. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1129. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1130. ac_useropt_orig=$ac_useropt
  1131. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1132. case $ac_user_opts in
  1133. *"
  1134. "with_$ac_useropt"
  1135. "*) ;;
  1136. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1137. ac_unrecognized_sep=', ';;
  1138. esac
  1139. eval with_$ac_useropt=\$ac_optarg ;;
  1140. -without-* | --without-*)
  1141. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1142. # Reject names that are not valid shell variable names.
  1143. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1144. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1145. ac_useropt_orig=$ac_useropt
  1146. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1147. case $ac_user_opts in
  1148. *"
  1149. "with_$ac_useropt"
  1150. "*) ;;
  1151. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1152. ac_unrecognized_sep=', ';;
  1153. esac
  1154. eval with_$ac_useropt=no ;;
  1155. --x)
  1156. # Obsolete; use --with-x.
  1157. with_x=yes ;;
  1158. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1159. | --x-incl | --x-inc | --x-in | --x-i)
  1160. ac_prev=x_includes ;;
  1161. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1162. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1163. x_includes=$ac_optarg ;;
  1164. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1165. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1166. ac_prev=x_libraries ;;
  1167. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1168. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1169. x_libraries=$ac_optarg ;;
  1170. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1171. Try \`$0 --help' for more information"
  1172. ;;
  1173. *=*)
  1174. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1175. # Reject names that are not valid shell variable names.
  1176. case $ac_envvar in #(
  1177. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1178. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1179. esac
  1180. eval $ac_envvar=\$ac_optarg
  1181. export $ac_envvar ;;
  1182. *)
  1183. # FIXME: should be removed in autoconf 3.0.
  1184. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
  1185. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1186. printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
  1187. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1188. ;;
  1189. esac
  1190. done
  1191. if test -n "$ac_prev"; then
  1192. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1193. as_fn_error $? "missing argument to $ac_option"
  1194. fi
  1195. if test -n "$ac_unrecognized_opts"; then
  1196. case $enable_option_checking in
  1197. no) ;;
  1198. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1199. *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1200. esac
  1201. fi
  1202. # Check all directory arguments for consistency.
  1203. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1204. datadir sysconfdir sharedstatedir localstatedir includedir \
  1205. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1206. libdir localedir mandir runstatedir
  1207. do
  1208. eval ac_val=\$$ac_var
  1209. # Remove trailing slashes.
  1210. case $ac_val in
  1211. */ )
  1212. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1213. eval $ac_var=\$ac_val;;
  1214. esac
  1215. # Be sure to have absolute directory names.
  1216. case $ac_val in
  1217. [\\/$]* | ?:[\\/]* ) continue;;
  1218. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1219. esac
  1220. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1221. done
  1222. # There might be people who depend on the old broken behavior: `$host'
  1223. # used to hold the argument of --host etc.
  1224. # FIXME: To remove some day.
  1225. build=$build_alias
  1226. host=$host_alias
  1227. target=$target_alias
  1228. # FIXME: To remove some day.
  1229. if test "x$host_alias" != x; then
  1230. if test "x$build_alias" = x; then
  1231. cross_compiling=maybe
  1232. elif test "x$build_alias" != "x$host_alias"; then
  1233. cross_compiling=yes
  1234. fi
  1235. fi
  1236. ac_tool_prefix=
  1237. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1238. test "$silent" = yes && exec 6>/dev/null
  1239. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1240. ac_ls_di=`ls -di .` &&
  1241. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1242. as_fn_error $? "working directory cannot be determined"
  1243. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1244. as_fn_error $? "pwd does not report name of working directory"
  1245. # Find the source files, if location was not specified.
  1246. if test -z "$srcdir"; then
  1247. ac_srcdir_defaulted=yes
  1248. # Try the directory containing this script, then the parent directory.
  1249. ac_confdir=`$as_dirname -- "$as_myself" ||
  1250. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1251. X"$as_myself" : 'X\(//\)[^/]' \| \
  1252. X"$as_myself" : 'X\(//\)$' \| \
  1253. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1254. printf "%s\n" X"$as_myself" |
  1255. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1256. s//\1/
  1257. q
  1258. }
  1259. /^X\(\/\/\)[^/].*/{
  1260. s//\1/
  1261. q
  1262. }
  1263. /^X\(\/\/\)$/{
  1264. s//\1/
  1265. q
  1266. }
  1267. /^X\(\/\).*/{
  1268. s//\1/
  1269. q
  1270. }
  1271. s/.*/./; q'`
  1272. srcdir=$ac_confdir
  1273. if test ! -r "$srcdir/$ac_unique_file"; then
  1274. srcdir=..
  1275. fi
  1276. else
  1277. ac_srcdir_defaulted=no
  1278. fi
  1279. if test ! -r "$srcdir/$ac_unique_file"; then
  1280. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1281. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1282. fi
  1283. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1284. ac_abs_confdir=`(
  1285. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1286. pwd)`
  1287. # When building in place, set srcdir=.
  1288. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1289. srcdir=.
  1290. fi
  1291. # Remove unnecessary trailing slashes from srcdir.
  1292. # Double slashes in file names in object file debugging info
  1293. # mess up M-x gdb in Emacs.
  1294. case $srcdir in
  1295. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1296. esac
  1297. for ac_var in $ac_precious_vars; do
  1298. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1299. eval ac_env_${ac_var}_value=\$${ac_var}
  1300. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1301. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1302. done
  1303. #
  1304. # Report the --help message.
  1305. #
  1306. if test "$ac_init_help" = "long"; then
  1307. # Omit some internal or obsolete options to make the list less imposing.
  1308. # This message is too long to be a string in the A/UX 3.1 sh.
  1309. cat <<_ACEOF
  1310. \`configure' configures libssh2 - to adapt to many kinds of systems.
  1311. Usage: $0 [OPTION]... [VAR=VALUE]...
  1312. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1313. VAR=VALUE. See below for descriptions of some of the useful variables.
  1314. Defaults for the options are specified in brackets.
  1315. Configuration:
  1316. -h, --help display this help and exit
  1317. --help=short display options specific to this package
  1318. --help=recursive display the short help of all the included packages
  1319. -V, --version display version information and exit
  1320. -q, --quiet, --silent do not print \`checking ...' messages
  1321. --cache-file=FILE cache test results in FILE [disabled]
  1322. -C, --config-cache alias for \`--cache-file=config.cache'
  1323. -n, --no-create do not create output files
  1324. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1325. Installation directories:
  1326. --prefix=PREFIX install architecture-independent files in PREFIX
  1327. [$ac_default_prefix]
  1328. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1329. [PREFIX]
  1330. By default, \`make install' will install all the files in
  1331. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1332. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1333. for instance \`--prefix=\$HOME'.
  1334. For better control, use the options below.
  1335. Fine tuning of the installation directories:
  1336. --bindir=DIR user executables [EPREFIX/bin]
  1337. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1338. --libexecdir=DIR program executables [EPREFIX/libexec]
  1339. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1340. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1341. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1342. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1343. --libdir=DIR object code libraries [EPREFIX/lib]
  1344. --includedir=DIR C header files [PREFIX/include]
  1345. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1346. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1347. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1348. --infodir=DIR info documentation [DATAROOTDIR/info]
  1349. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1350. --mandir=DIR man documentation [DATAROOTDIR/man]
  1351. --docdir=DIR documentation root [DATAROOTDIR/doc/libssh2]
  1352. --htmldir=DIR html documentation [DOCDIR]
  1353. --dvidir=DIR dvi documentation [DOCDIR]
  1354. --pdfdir=DIR pdf documentation [DOCDIR]
  1355. --psdir=DIR ps documentation [DOCDIR]
  1356. _ACEOF
  1357. cat <<\_ACEOF
  1358. Program names:
  1359. --program-prefix=PREFIX prepend PREFIX to installed program names
  1360. --program-suffix=SUFFIX append SUFFIX to installed program names
  1361. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1362. System types:
  1363. --build=BUILD configure for building on BUILD [guessed]
  1364. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1365. _ACEOF
  1366. fi
  1367. if test -n "$ac_init_help"; then
  1368. case $ac_init_help in
  1369. short | recursive ) echo "Configuration of libssh2 -:";;
  1370. esac
  1371. cat <<\_ACEOF
  1372. Optional Features:
  1373. --disable-option-checking ignore unrecognized --enable/--with options
  1374. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1375. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1376. --enable-maintainer-mode
  1377. enable make rules and dependencies not useful (and
  1378. sometimes confusing) to the casual installer
  1379. --enable-silent-rules less verbose build output (undo: "make V=1")
  1380. --disable-silent-rules verbose build output (undo: "make V=0")
  1381. --enable-dependency-tracking
  1382. do not reject slow dependency extractors
  1383. --disable-dependency-tracking
  1384. speeds up one-time build
  1385. --enable-shared[=PKGS] build shared libraries [default=yes]
  1386. --enable-static[=PKGS] build static libraries [default=yes]
  1387. --enable-fast-install[=PKGS]
  1388. optimize for fast installation [default=yes]
  1389. --disable-libtool-lock avoid locking (might break parallel builds)
  1390. --disable-largefile omit support for large files
  1391. --disable-rpath do not hardcode runtime library paths
  1392. --enable-crypt-none Permit "none" cipher -- NOT RECOMMENDED
  1393. --enable-mac-none Permit "none" MAC -- NOT RECOMMENDED
  1394. --disable-gex-new Disable "new" diffie-hellman-group-exchange-sha1
  1395. method
  1396. --disable-clear-memory Disable clearing of memory before being freed
  1397. --enable-debug Enable pedantic and debug options
  1398. --disable-debug Disable debug options
  1399. --enable-hidden-symbols Hide internal symbols in library
  1400. --disable-hidden-symbols
  1401. Leave all symbols with default visibility in library
  1402. --enable-examples-build Build example applications (this is the default)
  1403. --disable-examples-build
  1404. Do not build example applications
  1405. --enable-ossfuzzers Whether to generate the fuzzers for OSS-Fuzz
  1406. --enable-werror Enable compiler warnings as errors
  1407. --disable-werror Disable compiler warnings as errors
  1408. Optional Packages:
  1409. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1410. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1411. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1412. both]
  1413. --with-aix-soname=aix|svr4|both
  1414. shared library versioning (aka "SONAME") variant to
  1415. provide on AIX, [default=aix].
  1416. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1417. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1418. compiler's sysroot if not specified).
  1419. --with-crypto=auto|openssl|libgcrypt|mbedtls|wincng
  1420. Select crypto backend (default: auto)
  1421. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1422. --with-libssl-prefix[=DIR] search for libssl in DIR/include and DIR/lib
  1423. --without-libssl-prefix don't search for libssl in includedir and libdir
  1424. --with-libgcrypt-prefix[=DIR] search for libgcrypt in DIR/include and DIR/lib
  1425. --without-libgcrypt-prefix don't search for libgcrypt in includedir and libdir
  1426. --with-libmbedcrypto-prefix[=DIR] search for libmbedcrypto in DIR/include and DIR/lib
  1427. --without-libmbedcrypto-prefix don't search for libmbedcrypto in includedir and libdir
  1428. --with-libcrypt32-prefix[=DIR] search for libcrypt32 in DIR/include and DIR/lib
  1429. --without-libcrypt32-prefix don't search for libcrypt32 in includedir and libdir
  1430. --with-libbcrypt-prefix[=DIR] search for libbcrypt in DIR/include and DIR/lib
  1431. --without-libbcrypt-prefix don't search for libbcrypt in includedir and libdir
  1432. --with-libz Use libz for compression
  1433. --with-libz-prefix[=DIR] search for libz in DIR/include and DIR/lib
  1434. --without-libz-prefix don't search for libz in includedir and libdir
  1435. Some influential environment variables:
  1436. CC C compiler command
  1437. CFLAGS C compiler flags
  1438. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1439. nonstandard directory <lib dir>
  1440. LIBS libraries to pass to the linker, e.g. -l<library>
  1441. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1442. you have headers in a nonstandard directory <include dir>
  1443. CXX C++ compiler command
  1444. CXXFLAGS C++ compiler flags
  1445. LT_SYS_LIBRARY_PATH
  1446. User-defined run-time library search path.
  1447. CXXCPP C++ preprocessor
  1448. CPP C preprocessor
  1449. Use these variables to override the choices made by `configure' or to help
  1450. it to find libraries and programs with nonstandard names/locations.
  1451. Report bugs to <[email protected]>.
  1452. _ACEOF
  1453. ac_status=$?
  1454. fi
  1455. if test "$ac_init_help" = "recursive"; then
  1456. # If there are subdirs, report their specific --help.
  1457. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1458. test -d "$ac_dir" ||
  1459. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1460. continue
  1461. ac_builddir=.
  1462. case "$ac_dir" in
  1463. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1464. *)
  1465. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  1466. # A ".." for each directory in $ac_dir_suffix.
  1467. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1468. case $ac_top_builddir_sub in
  1469. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1470. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1471. esac ;;
  1472. esac
  1473. ac_abs_top_builddir=$ac_pwd
  1474. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1475. # for backward compatibility:
  1476. ac_top_builddir=$ac_top_build_prefix
  1477. case $srcdir in
  1478. .) # We are building in place.
  1479. ac_srcdir=.
  1480. ac_top_srcdir=$ac_top_builddir_sub
  1481. ac_abs_top_srcdir=$ac_pwd ;;
  1482. [\\/]* | ?:[\\/]* ) # Absolute name.
  1483. ac_srcdir=$srcdir$ac_dir_suffix;
  1484. ac_top_srcdir=$srcdir
  1485. ac_abs_top_srcdir=$srcdir ;;
  1486. *) # Relative name.
  1487. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1488. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1489. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1490. esac
  1491. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1492. cd "$ac_dir" || { ac_status=$?; continue; }
  1493. # Check for configure.gnu first; this name is used for a wrapper for
  1494. # Metaconfig's "Configure" on case-insensitive file systems.
  1495. if test -f "$ac_srcdir/configure.gnu"; then
  1496. echo &&
  1497. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1498. elif test -f "$ac_srcdir/configure"; then
  1499. echo &&
  1500. $SHELL "$ac_srcdir/configure" --help=recursive
  1501. else
  1502. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1503. fi || ac_status=$?
  1504. cd "$ac_pwd" || { ac_status=$?; break; }
  1505. done
  1506. fi
  1507. test -n "$ac_init_help" && exit $ac_status
  1508. if $ac_init_version; then
  1509. cat <<\_ACEOF
  1510. libssh2 configure -
  1511. generated by GNU Autoconf 2.71
  1512. Copyright (C) 2021 Free Software Foundation, Inc.
  1513. This configure script is free software; the Free Software Foundation
  1514. gives unlimited permission to copy, distribute and modify it.
  1515. _ACEOF
  1516. exit
  1517. fi
  1518. ## ------------------------ ##
  1519. ## Autoconf initialization. ##
  1520. ## ------------------------ ##
  1521. # ac_fn_c_try_compile LINENO
  1522. # --------------------------
  1523. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1524. ac_fn_c_try_compile ()
  1525. {
  1526. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1527. rm -f conftest.$ac_objext conftest.beam
  1528. if { { ac_try="$ac_compile"
  1529. case "(($ac_try" in
  1530. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1531. *) ac_try_echo=$ac_try;;
  1532. esac
  1533. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1534. printf "%s\n" "$ac_try_echo"; } >&5
  1535. (eval "$ac_compile") 2>conftest.err
  1536. ac_status=$?
  1537. if test -s conftest.err; then
  1538. grep -v '^ *+' conftest.err >conftest.er1
  1539. cat conftest.er1 >&5
  1540. mv -f conftest.er1 conftest.err
  1541. fi
  1542. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1543. test $ac_status = 0; } && {
  1544. test -z "$ac_c_werror_flag" ||
  1545. test ! -s conftest.err
  1546. } && test -s conftest.$ac_objext
  1547. then :
  1548. ac_retval=0
  1549. else $as_nop
  1550. printf "%s\n" "$as_me: failed program was:" >&5
  1551. sed 's/^/| /' conftest.$ac_ext >&5
  1552. ac_retval=1
  1553. fi
  1554. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1555. as_fn_set_status $ac_retval
  1556. } # ac_fn_c_try_compile
  1557. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1558. # -------------------------------------------
  1559. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1560. # variable VAR accordingly.
  1561. ac_fn_c_check_type ()
  1562. {
  1563. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1564. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1565. printf %s "checking for $2... " >&6; }
  1566. if eval test \${$3+y}
  1567. then :
  1568. printf %s "(cached) " >&6
  1569. else $as_nop
  1570. eval "$3=no"
  1571. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1572. /* end confdefs.h. */
  1573. $4
  1574. int
  1575. main (void)
  1576. {
  1577. if (sizeof ($2))
  1578. return 0;
  1579. ;
  1580. return 0;
  1581. }
  1582. _ACEOF
  1583. if ac_fn_c_try_compile "$LINENO"
  1584. then :
  1585. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1586. /* end confdefs.h. */
  1587. $4
  1588. int
  1589. main (void)
  1590. {
  1591. if (sizeof (($2)))
  1592. return 0;
  1593. ;
  1594. return 0;
  1595. }
  1596. _ACEOF
  1597. if ac_fn_c_try_compile "$LINENO"
  1598. then :
  1599. else $as_nop
  1600. eval "$3=yes"
  1601. fi
  1602. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1603. fi
  1604. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1605. fi
  1606. eval ac_res=\$$3
  1607. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1608. printf "%s\n" "$ac_res" >&6; }
  1609. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1610. } # ac_fn_c_check_type
  1611. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1612. # -------------------------------------------------------
  1613. # Tests whether HEADER exists and can be compiled using the include files in
  1614. # INCLUDES, setting the cache variable VAR accordingly.
  1615. ac_fn_c_check_header_compile ()
  1616. {
  1617. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1618. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1619. printf %s "checking for $2... " >&6; }
  1620. if eval test \${$3+y}
  1621. then :
  1622. printf %s "(cached) " >&6
  1623. else $as_nop
  1624. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1625. /* end confdefs.h. */
  1626. $4
  1627. #include <$2>
  1628. _ACEOF
  1629. if ac_fn_c_try_compile "$LINENO"
  1630. then :
  1631. eval "$3=yes"
  1632. else $as_nop
  1633. eval "$3=no"
  1634. fi
  1635. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1636. fi
  1637. eval ac_res=\$$3
  1638. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1639. printf "%s\n" "$ac_res" >&6; }
  1640. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1641. } # ac_fn_c_check_header_compile
  1642. # ac_fn_c_try_link LINENO
  1643. # -----------------------
  1644. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1645. ac_fn_c_try_link ()
  1646. {
  1647. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1648. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1649. if { { ac_try="$ac_link"
  1650. case "(($ac_try" in
  1651. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1652. *) ac_try_echo=$ac_try;;
  1653. esac
  1654. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1655. printf "%s\n" "$ac_try_echo"; } >&5
  1656. (eval "$ac_link") 2>conftest.err
  1657. ac_status=$?
  1658. if test -s conftest.err; then
  1659. grep -v '^ *+' conftest.err >conftest.er1
  1660. cat conftest.er1 >&5
  1661. mv -f conftest.er1 conftest.err
  1662. fi
  1663. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1664. test $ac_status = 0; } && {
  1665. test -z "$ac_c_werror_flag" ||
  1666. test ! -s conftest.err
  1667. } && test -s conftest$ac_exeext && {
  1668. test "$cross_compiling" = yes ||
  1669. test -x conftest$ac_exeext
  1670. }
  1671. then :
  1672. ac_retval=0
  1673. else $as_nop
  1674. printf "%s\n" "$as_me: failed program was:" >&5
  1675. sed 's/^/| /' conftest.$ac_ext >&5
  1676. ac_retval=1
  1677. fi
  1678. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1679. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1680. # interfere with the next link command; also delete a directory that is
  1681. # left behind by Apple's compiler. We do this before executing the actions.
  1682. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1683. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1684. as_fn_set_status $ac_retval
  1685. } # ac_fn_c_try_link
  1686. # ac_fn_cxx_try_compile LINENO
  1687. # ----------------------------
  1688. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1689. ac_fn_cxx_try_compile ()
  1690. {
  1691. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1692. rm -f conftest.$ac_objext conftest.beam
  1693. if { { ac_try="$ac_compile"
  1694. case "(($ac_try" in
  1695. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1696. *) ac_try_echo=$ac_try;;
  1697. esac
  1698. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1699. printf "%s\n" "$ac_try_echo"; } >&5
  1700. (eval "$ac_compile") 2>conftest.err
  1701. ac_status=$?
  1702. if test -s conftest.err; then
  1703. grep -v '^ *+' conftest.err >conftest.er1
  1704. cat conftest.er1 >&5
  1705. mv -f conftest.er1 conftest.err
  1706. fi
  1707. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1708. test $ac_status = 0; } && {
  1709. test -z "$ac_cxx_werror_flag" ||
  1710. test ! -s conftest.err
  1711. } && test -s conftest.$ac_objext
  1712. then :
  1713. ac_retval=0
  1714. else $as_nop
  1715. printf "%s\n" "$as_me: failed program was:" >&5
  1716. sed 's/^/| /' conftest.$ac_ext >&5
  1717. ac_retval=1
  1718. fi
  1719. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1720. as_fn_set_status $ac_retval
  1721. } # ac_fn_cxx_try_compile
  1722. # ac_fn_c_check_func LINENO FUNC VAR
  1723. # ----------------------------------
  1724. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1725. ac_fn_c_check_func ()
  1726. {
  1727. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1728. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1729. printf %s "checking for $2... " >&6; }
  1730. if eval test \${$3+y}
  1731. then :
  1732. printf %s "(cached) " >&6
  1733. else $as_nop
  1734. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1735. /* end confdefs.h. */
  1736. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1737. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1738. #define $2 innocuous_$2
  1739. /* System header to define __stub macros and hopefully few prototypes,
  1740. which can conflict with char $2 (); below. */
  1741. #include <limits.h>
  1742. #undef $2
  1743. /* Override any GCC internal prototype to avoid an error.
  1744. Use char because int might match the return type of a GCC
  1745. builtin and then its argument prototype would still apply. */
  1746. #ifdef __cplusplus
  1747. extern "C"
  1748. #endif
  1749. char $2 ();
  1750. /* The GNU C library defines this for functions which it implements
  1751. to always fail with ENOSYS. Some functions are actually named
  1752. something starting with __ and the normal name is an alias. */
  1753. #if defined __stub_$2 || defined __stub___$2
  1754. choke me
  1755. #endif
  1756. int
  1757. main (void)
  1758. {
  1759. return $2 ();
  1760. ;
  1761. return 0;
  1762. }
  1763. _ACEOF
  1764. if ac_fn_c_try_link "$LINENO"
  1765. then :
  1766. eval "$3=yes"
  1767. else $as_nop
  1768. eval "$3=no"
  1769. fi
  1770. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  1771. conftest$ac_exeext conftest.$ac_ext
  1772. fi
  1773. eval ac_res=\$$3
  1774. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1775. printf "%s\n" "$ac_res" >&6; }
  1776. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1777. } # ac_fn_c_check_func
  1778. # ac_fn_cxx_try_cpp LINENO
  1779. # ------------------------
  1780. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1781. ac_fn_cxx_try_cpp ()
  1782. {
  1783. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1784. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1785. case "(($ac_try" in
  1786. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1787. *) ac_try_echo=$ac_try;;
  1788. esac
  1789. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1790. printf "%s\n" "$ac_try_echo"; } >&5
  1791. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1792. ac_status=$?
  1793. if test -s conftest.err; then
  1794. grep -v '^ *+' conftest.err >conftest.er1
  1795. cat conftest.er1 >&5
  1796. mv -f conftest.er1 conftest.err
  1797. fi
  1798. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1799. test $ac_status = 0; } > conftest.i && {
  1800. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1801. test ! -s conftest.err
  1802. }
  1803. then :
  1804. ac_retval=0
  1805. else $as_nop
  1806. printf "%s\n" "$as_me: failed program was:" >&5
  1807. sed 's/^/| /' conftest.$ac_ext >&5
  1808. ac_retval=1
  1809. fi
  1810. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1811. as_fn_set_status $ac_retval
  1812. } # ac_fn_cxx_try_cpp
  1813. # ac_fn_cxx_try_link LINENO
  1814. # -------------------------
  1815. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1816. ac_fn_cxx_try_link ()
  1817. {
  1818. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1819. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1820. if { { ac_try="$ac_link"
  1821. case "(($ac_try" in
  1822. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1823. *) ac_try_echo=$ac_try;;
  1824. esac
  1825. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1826. printf "%s\n" "$ac_try_echo"; } >&5
  1827. (eval "$ac_link") 2>conftest.err
  1828. ac_status=$?
  1829. if test -s conftest.err; then
  1830. grep -v '^ *+' conftest.err >conftest.er1
  1831. cat conftest.er1 >&5
  1832. mv -f conftest.er1 conftest.err
  1833. fi
  1834. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1835. test $ac_status = 0; } && {
  1836. test -z "$ac_cxx_werror_flag" ||
  1837. test ! -s conftest.err
  1838. } && test -s conftest$ac_exeext && {
  1839. test "$cross_compiling" = yes ||
  1840. test -x conftest$ac_exeext
  1841. }
  1842. then :
  1843. ac_retval=0
  1844. else $as_nop
  1845. printf "%s\n" "$as_me: failed program was:" >&5
  1846. sed 's/^/| /' conftest.$ac_ext >&5
  1847. ac_retval=1
  1848. fi
  1849. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1850. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1851. # interfere with the next link command; also delete a directory that is
  1852. # left behind by Apple's compiler. We do this before executing the actions.
  1853. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1854. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1855. as_fn_set_status $ac_retval
  1856. } # ac_fn_cxx_try_link
  1857. # ac_fn_c_try_run LINENO
  1858. # ----------------------
  1859. # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
  1860. # executables *can* be run.
  1861. ac_fn_c_try_run ()
  1862. {
  1863. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1864. if { { ac_try="$ac_link"
  1865. case "(($ac_try" in
  1866. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1867. *) ac_try_echo=$ac_try;;
  1868. esac
  1869. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1870. printf "%s\n" "$ac_try_echo"; } >&5
  1871. (eval "$ac_link") 2>&5
  1872. ac_status=$?
  1873. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1874. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1875. { { case "(($ac_try" in
  1876. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1877. *) ac_try_echo=$ac_try;;
  1878. esac
  1879. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1880. printf "%s\n" "$ac_try_echo"; } >&5
  1881. (eval "$ac_try") 2>&5
  1882. ac_status=$?
  1883. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1884. test $ac_status = 0; }; }
  1885. then :
  1886. ac_retval=0
  1887. else $as_nop
  1888. printf "%s\n" "$as_me: program exited with status $ac_status" >&5
  1889. printf "%s\n" "$as_me: failed program was:" >&5
  1890. sed 's/^/| /' conftest.$ac_ext >&5
  1891. ac_retval=$ac_status
  1892. fi
  1893. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1894. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1895. as_fn_set_status $ac_retval
  1896. } # ac_fn_c_try_run
  1897. # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
  1898. # ------------------------------------------------------------------
  1899. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1900. # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
  1901. ac_fn_check_decl ()
  1902. {
  1903. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1904. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1905. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1906. printf %s "checking whether $as_decl_name is declared... " >&6; }
  1907. if eval test \${$3+y}
  1908. then :
  1909. printf %s "(cached) " >&6
  1910. else $as_nop
  1911. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1912. eval ac_save_FLAGS=\$$6
  1913. as_fn_append $6 " $5"
  1914. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1915. /* end confdefs.h. */
  1916. $4
  1917. int
  1918. main (void)
  1919. {
  1920. #ifndef $as_decl_name
  1921. #ifdef __cplusplus
  1922. (void) $as_decl_use;
  1923. #else
  1924. (void) $as_decl_name;
  1925. #endif
  1926. #endif
  1927. ;
  1928. return 0;
  1929. }
  1930. _ACEOF
  1931. if ac_fn_c_try_compile "$LINENO"
  1932. then :
  1933. eval "$3=yes"
  1934. else $as_nop
  1935. eval "$3=no"
  1936. fi
  1937. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1938. eval $6=\$ac_save_FLAGS
  1939. fi
  1940. eval ac_res=\$$3
  1941. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1942. printf "%s\n" "$ac_res" >&6; }
  1943. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1944. } # ac_fn_check_decl
  1945. # ac_fn_c_try_cpp LINENO
  1946. # ----------------------
  1947. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1948. ac_fn_c_try_cpp ()
  1949. {
  1950. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1951. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1952. case "(($ac_try" in
  1953. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1954. *) ac_try_echo=$ac_try;;
  1955. esac
  1956. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1957. printf "%s\n" "$ac_try_echo"; } >&5
  1958. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1959. ac_status=$?
  1960. if test -s conftest.err; then
  1961. grep -v '^ *+' conftest.err >conftest.er1
  1962. cat conftest.er1 >&5
  1963. mv -f conftest.er1 conftest.err
  1964. fi
  1965. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1966. test $ac_status = 0; } > conftest.i && {
  1967. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1968. test ! -s conftest.err
  1969. }
  1970. then :
  1971. ac_retval=0
  1972. else $as_nop
  1973. printf "%s\n" "$as_me: failed program was:" >&5
  1974. sed 's/^/| /' conftest.$ac_ext >&5
  1975. ac_retval=1
  1976. fi
  1977. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1978. as_fn_set_status $ac_retval
  1979. } # ac_fn_c_try_cpp
  1980. ac_configure_args_raw=
  1981. for ac_arg
  1982. do
  1983. case $ac_arg in
  1984. *\'*)
  1985. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1986. esac
  1987. as_fn_append ac_configure_args_raw " '$ac_arg'"
  1988. done
  1989. case $ac_configure_args_raw in
  1990. *$as_nl*)
  1991. ac_safe_unquote= ;;
  1992. *)
  1993. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  1994. ac_unsafe_a="$ac_unsafe_z#~"
  1995. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  1996. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  1997. esac
  1998. cat >config.log <<_ACEOF
  1999. This file contains any messages produced by compilers while
  2000. running configure, to aid debugging if configure makes a mistake.
  2001. It was created by libssh2 $as_me -, which was
  2002. generated by GNU Autoconf 2.71. Invocation command line was
  2003. $ $0$ac_configure_args_raw
  2004. _ACEOF
  2005. exec 5>>config.log
  2006. {
  2007. cat <<_ASUNAME
  2008. ## --------- ##
  2009. ## Platform. ##
  2010. ## --------- ##
  2011. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2012. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2013. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2014. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2015. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2016. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2017. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2018. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2019. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2020. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2021. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2022. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2023. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2024. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2025. _ASUNAME
  2026. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2027. for as_dir in $PATH
  2028. do
  2029. IFS=$as_save_IFS
  2030. case $as_dir in #(((
  2031. '') as_dir=./ ;;
  2032. */) ;;
  2033. *) as_dir=$as_dir/ ;;
  2034. esac
  2035. printf "%s\n" "PATH: $as_dir"
  2036. done
  2037. IFS=$as_save_IFS
  2038. } >&5
  2039. cat >&5 <<_ACEOF
  2040. ## ----------- ##
  2041. ## Core tests. ##
  2042. ## ----------- ##
  2043. _ACEOF
  2044. # Keep a trace of the command line.
  2045. # Strip out --no-create and --no-recursion so they do not pile up.
  2046. # Strip out --silent because we don't want to record it for future runs.
  2047. # Also quote any args containing shell meta-characters.
  2048. # Make two passes to allow for proper duplicate-argument suppression.
  2049. ac_configure_args=
  2050. ac_configure_args0=
  2051. ac_configure_args1=
  2052. ac_must_keep_next=false
  2053. for ac_pass in 1 2
  2054. do
  2055. for ac_arg
  2056. do
  2057. case $ac_arg in
  2058. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2059. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2060. | -silent | --silent | --silen | --sile | --sil)
  2061. continue ;;
  2062. *\'*)
  2063. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2064. esac
  2065. case $ac_pass in
  2066. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2067. 2)
  2068. as_fn_append ac_configure_args1 " '$ac_arg'"
  2069. if test $ac_must_keep_next = true; then
  2070. ac_must_keep_next=false # Got value, back to normal.
  2071. else
  2072. case $ac_arg in
  2073. *=* | --config-cache | -C | -disable-* | --disable-* \
  2074. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2075. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2076. | -with-* | --with-* | -without-* | --without-* | --x)
  2077. case "$ac_configure_args0 " in
  2078. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2079. esac
  2080. ;;
  2081. -* ) ac_must_keep_next=true ;;
  2082. esac
  2083. fi
  2084. as_fn_append ac_configure_args " '$ac_arg'"
  2085. ;;
  2086. esac
  2087. done
  2088. done
  2089. { ac_configure_args0=; unset ac_configure_args0;}
  2090. { ac_configure_args1=; unset ac_configure_args1;}
  2091. # When interrupted or exit'd, cleanup temporary files, and complete
  2092. # config.log. We remove comments because anyway the quotes in there
  2093. # would cause problems or look ugly.
  2094. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2095. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2096. trap 'exit_status=$?
  2097. # Sanitize IFS.
  2098. IFS=" "" $as_nl"
  2099. # Save into config.log some information that might help in debugging.
  2100. {
  2101. echo
  2102. printf "%s\n" "## ---------------- ##
  2103. ## Cache variables. ##
  2104. ## ---------------- ##"
  2105. echo
  2106. # The following way of writing the cache mishandles newlines in values,
  2107. (
  2108. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2109. eval ac_val=\$$ac_var
  2110. case $ac_val in #(
  2111. *${as_nl}*)
  2112. case $ac_var in #(
  2113. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2114. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2115. esac
  2116. case $ac_var in #(
  2117. _ | IFS | as_nl) ;; #(
  2118. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2119. *) { eval $ac_var=; unset $ac_var;} ;;
  2120. esac ;;
  2121. esac
  2122. done
  2123. (set) 2>&1 |
  2124. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2125. *${as_nl}ac_space=\ *)
  2126. sed -n \
  2127. "s/'\''/'\''\\\\'\'''\''/g;
  2128. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2129. ;; #(
  2130. *)
  2131. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2132. ;;
  2133. esac |
  2134. sort
  2135. )
  2136. echo
  2137. printf "%s\n" "## ----------------- ##
  2138. ## Output variables. ##
  2139. ## ----------------- ##"
  2140. echo
  2141. for ac_var in $ac_subst_vars
  2142. do
  2143. eval ac_val=\$$ac_var
  2144. case $ac_val in
  2145. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2146. esac
  2147. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2148. done | sort
  2149. echo
  2150. if test -n "$ac_subst_files"; then
  2151. printf "%s\n" "## ------------------- ##
  2152. ## File substitutions. ##
  2153. ## ------------------- ##"
  2154. echo
  2155. for ac_var in $ac_subst_files
  2156. do
  2157. eval ac_val=\$$ac_var
  2158. case $ac_val in
  2159. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2160. esac
  2161. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2162. done | sort
  2163. echo
  2164. fi
  2165. if test -s confdefs.h; then
  2166. printf "%s\n" "## ----------- ##
  2167. ## confdefs.h. ##
  2168. ## ----------- ##"
  2169. echo
  2170. cat confdefs.h
  2171. echo
  2172. fi
  2173. test "$ac_signal" != 0 &&
  2174. printf "%s\n" "$as_me: caught signal $ac_signal"
  2175. printf "%s\n" "$as_me: exit $exit_status"
  2176. } >&5
  2177. rm -f core *.core core.conftest.* &&
  2178. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2179. exit $exit_status
  2180. ' 0
  2181. for ac_signal in 1 2 13 15; do
  2182. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2183. done
  2184. ac_signal=0
  2185. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2186. rm -f -r conftest* confdefs.h
  2187. printf "%s\n" "/* confdefs.h */" > confdefs.h
  2188. # Predefined preprocessor variables.
  2189. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
  2190. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
  2191. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
  2192. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
  2193. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
  2194. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
  2195. # Let the site file select an alternate cache file if it wants to.
  2196. # Prefer an explicitly selected file to automatically selected ones.
  2197. if test -n "$CONFIG_SITE"; then
  2198. ac_site_files="$CONFIG_SITE"
  2199. elif test "x$prefix" != xNONE; then
  2200. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  2201. else
  2202. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  2203. fi
  2204. for ac_site_file in $ac_site_files
  2205. do
  2206. case $ac_site_file in #(
  2207. */*) :
  2208. ;; #(
  2209. *) :
  2210. ac_site_file=./$ac_site_file ;;
  2211. esac
  2212. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  2213. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2214. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  2215. sed 's/^/| /' "$ac_site_file" >&5
  2216. . "$ac_site_file" \
  2217. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2218. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2219. as_fn_error $? "failed to load site script $ac_site_file
  2220. See \`config.log' for more details" "$LINENO" 5; }
  2221. fi
  2222. done
  2223. if test -r "$cache_file"; then
  2224. # Some versions of bash will fail to source /dev/null (special files
  2225. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2226. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2227. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2228. printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
  2229. case $cache_file in
  2230. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2231. *) . "./$cache_file";;
  2232. esac
  2233. fi
  2234. else
  2235. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2236. printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  2237. >$cache_file
  2238. fi
  2239. # Test code for whether the C compiler supports C89 (global declarations)
  2240. ac_c_conftest_c89_globals='
  2241. /* Does the compiler advertise C89 conformance?
  2242. Do not test the value of __STDC__, because some compilers set it to 0
  2243. while being otherwise adequately conformant. */
  2244. #if !defined __STDC__
  2245. # error "Compiler does not advertise C89 conformance"
  2246. #endif
  2247. #include <stddef.h>
  2248. #include <stdarg.h>
  2249. struct stat;
  2250. /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
  2251. struct buf { int x; };
  2252. struct buf * (*rcsopen) (struct buf *, struct stat *, int);
  2253. static char *e (p, i)
  2254. char **p;
  2255. int i;
  2256. {
  2257. return p[i];
  2258. }
  2259. static char *f (char * (*g) (char **, int), char **p, ...)
  2260. {
  2261. char *s;
  2262. va_list v;
  2263. va_start (v,p);
  2264. s = g (p, va_arg (v,int));
  2265. va_end (v);
  2266. return s;
  2267. }
  2268. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2269. function prototypes and stuff, but not \xHH hex character constants.
  2270. These do not provoke an error unfortunately, instead are silently treated
  2271. as an "x". The following induces an error, until -std is added to get
  2272. proper ANSI mode. Curiously \x00 != x always comes out true, for an
  2273. array size at least. It is necessary to write \x00 == 0 to get something
  2274. that is true only with -std. */
  2275. int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
  2276. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2277. inside strings and character constants. */
  2278. #define FOO(x) '\''x'\''
  2279. int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
  2280. int test (int i, double x);
  2281. struct s1 {int (*f) (int a);};
  2282. struct s2 {int (*f) (double a);};
  2283. int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
  2284. int, int);'
  2285. # Test code for whether the C compiler supports C89 (body of main).
  2286. ac_c_conftest_c89_main='
  2287. ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
  2288. '
  2289. # Test code for whether the C compiler supports C99 (global declarations)
  2290. ac_c_conftest_c99_globals='
  2291. // Does the compiler advertise C99 conformance?
  2292. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  2293. # error "Compiler does not advertise C99 conformance"
  2294. #endif
  2295. #include <stdbool.h>
  2296. extern int puts (const char *);
  2297. extern int printf (const char *, ...);
  2298. extern int dprintf (int, const char *, ...);
  2299. extern void *malloc (size_t);
  2300. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  2301. // dprintf is used instead of fprintf to avoid needing to declare
  2302. // FILE and stderr.
  2303. #define debug(...) dprintf (2, __VA_ARGS__)
  2304. #define showlist(...) puts (#__VA_ARGS__)
  2305. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  2306. static void
  2307. test_varargs_macros (void)
  2308. {
  2309. int x = 1234;
  2310. int y = 5678;
  2311. debug ("Flag");
  2312. debug ("X = %d\n", x);
  2313. showlist (The first, second, and third items.);
  2314. report (x>y, "x is %d but y is %d", x, y);
  2315. }
  2316. // Check long long types.
  2317. #define BIG64 18446744073709551615ull
  2318. #define BIG32 4294967295ul
  2319. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  2320. #if !BIG_OK
  2321. #error "your preprocessor is broken"
  2322. #endif
  2323. #if BIG_OK
  2324. #else
  2325. #error "your preprocessor is broken"
  2326. #endif
  2327. static long long int bignum = -9223372036854775807LL;
  2328. static unsigned long long int ubignum = BIG64;
  2329. struct incomplete_array
  2330. {
  2331. int datasize;
  2332. double data[];
  2333. };
  2334. struct named_init {
  2335. int number;
  2336. const wchar_t *name;
  2337. double average;
  2338. };
  2339. typedef const char *ccp;
  2340. static inline int
  2341. test_restrict (ccp restrict text)
  2342. {
  2343. // See if C++-style comments work.
  2344. // Iterate through items via the restricted pointer.
  2345. // Also check for declarations in for loops.
  2346. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
  2347. continue;
  2348. return 0;
  2349. }
  2350. // Check varargs and va_copy.
  2351. static bool
  2352. test_varargs (const char *format, ...)
  2353. {
  2354. va_list args;
  2355. va_start (args, format);
  2356. va_list args_copy;
  2357. va_copy (args_copy, args);
  2358. const char *str = "";
  2359. int number = 0;
  2360. float fnumber = 0;
  2361. while (*format)
  2362. {
  2363. switch (*format++)
  2364. {
  2365. case '\''s'\'': // string
  2366. str = va_arg (args_copy, const char *);
  2367. break;
  2368. case '\''d'\'': // int
  2369. number = va_arg (args_copy, int);
  2370. break;
  2371. case '\''f'\'': // float
  2372. fnumber = va_arg (args_copy, double);
  2373. break;
  2374. default:
  2375. break;
  2376. }
  2377. }
  2378. va_end (args_copy);
  2379. va_end (args);
  2380. return *str && number && fnumber;
  2381. }
  2382. '
  2383. # Test code for whether the C compiler supports C99 (body of main).
  2384. ac_c_conftest_c99_main='
  2385. // Check bool.
  2386. _Bool success = false;
  2387. success |= (argc != 0);
  2388. // Check restrict.
  2389. if (test_restrict ("String literal") == 0)
  2390. success = true;
  2391. char *restrict newvar = "Another string";
  2392. // Check varargs.
  2393. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  2394. test_varargs_macros ();
  2395. // Check flexible array members.
  2396. struct incomplete_array *ia =
  2397. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  2398. ia->datasize = 10;
  2399. for (int i = 0; i < ia->datasize; ++i)
  2400. ia->data[i] = i * 1.234;
  2401. // Check named initializers.
  2402. struct named_init ni = {
  2403. .number = 34,
  2404. .name = L"Test wide string",
  2405. .average = 543.34343,
  2406. };
  2407. ni.number = 58;
  2408. int dynamic_array[ni.number];
  2409. dynamic_array[0] = argv[0][0];
  2410. dynamic_array[ni.number - 1] = 543;
  2411. // work around unused variable warnings
  2412. ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
  2413. || dynamic_array[ni.number - 1] != 543);
  2414. '
  2415. # Test code for whether the C compiler supports C11 (global declarations)
  2416. ac_c_conftest_c11_globals='
  2417. // Does the compiler advertise C11 conformance?
  2418. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  2419. # error "Compiler does not advertise C11 conformance"
  2420. #endif
  2421. // Check _Alignas.
  2422. char _Alignas (double) aligned_as_double;
  2423. char _Alignas (0) no_special_alignment;
  2424. extern char aligned_as_int;
  2425. char _Alignas (0) _Alignas (int) aligned_as_int;
  2426. // Check _Alignof.
  2427. enum
  2428. {
  2429. int_alignment = _Alignof (int),
  2430. int_array_alignment = _Alignof (int[100]),
  2431. char_alignment = _Alignof (char)
  2432. };
  2433. _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
  2434. // Check _Noreturn.
  2435. int _Noreturn does_not_return (void) { for (;;) continue; }
  2436. // Check _Static_assert.
  2437. struct test_static_assert
  2438. {
  2439. int x;
  2440. _Static_assert (sizeof (int) <= sizeof (long int),
  2441. "_Static_assert does not work in struct");
  2442. long int y;
  2443. };
  2444. // Check UTF-8 literals.
  2445. #define u8 syntax error!
  2446. char const utf8_literal[] = u8"happens to be ASCII" "another string";
  2447. // Check duplicate typedefs.
  2448. typedef long *long_ptr;
  2449. typedef long int *long_ptr;
  2450. typedef long_ptr long_ptr;
  2451. // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
  2452. struct anonymous
  2453. {
  2454. union {
  2455. struct { int i; int j; };
  2456. struct { int k; long int l; } w;
  2457. };
  2458. int m;
  2459. } v1;
  2460. '
  2461. # Test code for whether the C compiler supports C11 (body of main).
  2462. ac_c_conftest_c11_main='
  2463. _Static_assert ((offsetof (struct anonymous, i)
  2464. == offsetof (struct anonymous, w.k)),
  2465. "Anonymous union alignment botch");
  2466. v1.i = 2;
  2467. v1.w.k = 5;
  2468. ok |= v1.i != 5;
  2469. '
  2470. # Test code for whether the C compiler supports C11 (complete).
  2471. ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
  2472. ${ac_c_conftest_c99_globals}
  2473. ${ac_c_conftest_c11_globals}
  2474. int
  2475. main (int argc, char **argv)
  2476. {
  2477. int ok = 0;
  2478. ${ac_c_conftest_c89_main}
  2479. ${ac_c_conftest_c99_main}
  2480. ${ac_c_conftest_c11_main}
  2481. return ok;
  2482. }
  2483. "
  2484. # Test code for whether the C compiler supports C99 (complete).
  2485. ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
  2486. ${ac_c_conftest_c99_globals}
  2487. int
  2488. main (int argc, char **argv)
  2489. {
  2490. int ok = 0;
  2491. ${ac_c_conftest_c89_main}
  2492. ${ac_c_conftest_c99_main}
  2493. return ok;
  2494. }
  2495. "
  2496. # Test code for whether the C compiler supports C89 (complete).
  2497. ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
  2498. int
  2499. main (int argc, char **argv)
  2500. {
  2501. int ok = 0;
  2502. ${ac_c_conftest_c89_main}
  2503. return ok;
  2504. }
  2505. "
  2506. as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
  2507. as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
  2508. as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
  2509. as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
  2510. as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
  2511. as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
  2512. as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
  2513. as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
  2514. as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
  2515. # Test code for whether the C++ compiler supports C++98 (global declarations)
  2516. ac_cxx_conftest_cxx98_globals='
  2517. // Does the compiler advertise C++98 conformance?
  2518. #if !defined __cplusplus || __cplusplus < 199711L
  2519. # error "Compiler does not advertise C++98 conformance"
  2520. #endif
  2521. // These inclusions are to reject old compilers that
  2522. // lack the unsuffixed header files.
  2523. #include <cstdlib>
  2524. #include <exception>
  2525. // <cassert> and <cstring> are *not* freestanding headers in C++98.
  2526. extern void assert (int);
  2527. namespace std {
  2528. extern int strcmp (const char *, const char *);
  2529. }
  2530. // Namespaces, exceptions, and templates were all added after "C++ 2.0".
  2531. using std::exception;
  2532. using std::strcmp;
  2533. namespace {
  2534. void test_exception_syntax()
  2535. {
  2536. try {
  2537. throw "test";
  2538. } catch (const char *s) {
  2539. // Extra parentheses suppress a warning when building autoconf itself,
  2540. // due to lint rules shared with more typical C programs.
  2541. assert (!(strcmp) (s, "test"));
  2542. }
  2543. }
  2544. template <typename T> struct test_template
  2545. {
  2546. T const val;
  2547. explicit test_template(T t) : val(t) {}
  2548. template <typename U> T add(U u) { return static_cast<T>(u) + val; }
  2549. };
  2550. } // anonymous namespace
  2551. '
  2552. # Test code for whether the C++ compiler supports C++98 (body of main)
  2553. ac_cxx_conftest_cxx98_main='
  2554. assert (argc);
  2555. assert (! argv[0]);
  2556. {
  2557. test_exception_syntax ();
  2558. test_template<double> tt (2.0);
  2559. assert (tt.add (4) == 6.0);
  2560. assert (true && !false);
  2561. }
  2562. '
  2563. # Test code for whether the C++ compiler supports C++11 (global declarations)
  2564. ac_cxx_conftest_cxx11_globals='
  2565. // Does the compiler advertise C++ 2011 conformance?
  2566. #if !defined __cplusplus || __cplusplus < 201103L
  2567. # error "Compiler does not advertise C++11 conformance"
  2568. #endif
  2569. namespace cxx11test
  2570. {
  2571. constexpr int get_val() { return 20; }
  2572. struct testinit
  2573. {
  2574. int i;
  2575. double d;
  2576. };
  2577. class delegate
  2578. {
  2579. public:
  2580. delegate(int n) : n(n) {}
  2581. delegate(): delegate(2354) {}
  2582. virtual int getval() { return this->n; };
  2583. protected:
  2584. int n;
  2585. };
  2586. class overridden : public delegate
  2587. {
  2588. public:
  2589. overridden(int n): delegate(n) {}
  2590. virtual int getval() override final { return this->n * 2; }
  2591. };
  2592. class nocopy
  2593. {
  2594. public:
  2595. nocopy(int i): i(i) {}
  2596. nocopy() = default;
  2597. nocopy(const nocopy&) = delete;
  2598. nocopy & operator=(const nocopy&) = delete;
  2599. private:
  2600. int i;
  2601. };
  2602. // for testing lambda expressions
  2603. template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
  2604. {
  2605. return f(v);
  2606. }
  2607. // for testing variadic templates and trailing return types
  2608. template <typename V> auto sum(V first) -> V
  2609. {
  2610. return first;
  2611. }
  2612. template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
  2613. {
  2614. return first + sum(rest...);
  2615. }
  2616. }
  2617. '
  2618. # Test code for whether the C++ compiler supports C++11 (body of main)
  2619. ac_cxx_conftest_cxx11_main='
  2620. {
  2621. // Test auto and decltype
  2622. auto a1 = 6538;
  2623. auto a2 = 48573953.4;
  2624. auto a3 = "String literal";
  2625. int total = 0;
  2626. for (auto i = a3; *i; ++i) { total += *i; }
  2627. decltype(a2) a4 = 34895.034;
  2628. }
  2629. {
  2630. // Test constexpr
  2631. short sa[cxx11test::get_val()] = { 0 };
  2632. }
  2633. {
  2634. // Test initializer lists
  2635. cxx11test::testinit il = { 4323, 435234.23544 };
  2636. }
  2637. {
  2638. // Test range-based for
  2639. int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
  2640. 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
  2641. for (auto &x : array) { x += 23; }
  2642. }
  2643. {
  2644. // Test lambda expressions
  2645. using cxx11test::eval;
  2646. assert (eval ([](int x) { return x*2; }, 21) == 42);
  2647. double d = 2.0;
  2648. assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
  2649. assert (d == 5.0);
  2650. assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
  2651. assert (d == 5.0);
  2652. }
  2653. {
  2654. // Test use of variadic templates
  2655. using cxx11test::sum;
  2656. auto a = sum(1);
  2657. auto b = sum(1, 2);
  2658. auto c = sum(1.0, 2.0, 3.0);
  2659. }
  2660. {
  2661. // Test constructor delegation
  2662. cxx11test::delegate d1;
  2663. cxx11test::delegate d2();
  2664. cxx11test::delegate d3(45);
  2665. }
  2666. {
  2667. // Test override and final
  2668. cxx11test::overridden o1(55464);
  2669. }
  2670. {
  2671. // Test nullptr
  2672. char *c = nullptr;
  2673. }
  2674. {
  2675. // Test template brackets
  2676. test_template<::test_template<int>> v(test_template<int>(12));
  2677. }
  2678. {
  2679. // Unicode literals
  2680. char const *utf8 = u8"UTF-8 string \u2500";
  2681. char16_t const *utf16 = u"UTF-8 string \u2500";
  2682. char32_t const *utf32 = U"UTF-32 string \u2500";
  2683. }
  2684. '
  2685. # Test code for whether the C compiler supports C++11 (complete).
  2686. ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
  2687. ${ac_cxx_conftest_cxx11_globals}
  2688. int
  2689. main (int argc, char **argv)
  2690. {
  2691. int ok = 0;
  2692. ${ac_cxx_conftest_cxx98_main}
  2693. ${ac_cxx_conftest_cxx11_main}
  2694. return ok;
  2695. }
  2696. "
  2697. # Test code for whether the C compiler supports C++98 (complete).
  2698. ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
  2699. int
  2700. main (int argc, char **argv)
  2701. {
  2702. int ok = 0;
  2703. ${ac_cxx_conftest_cxx98_main}
  2704. return ok;
  2705. }
  2706. "
  2707. # Auxiliary files required by this configure script.
  2708. ac_aux_files="config.rpath ltmain.sh compile config.guess config.sub missing install-sh"
  2709. # Locations in which to look for auxiliary files.
  2710. ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
  2711. # Search for a directory containing all of the required auxiliary files,
  2712. # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
  2713. # If we don't find one directory that contains all the files we need,
  2714. # we report the set of missing files from the *first* directory in
  2715. # $ac_aux_dir_candidates and give up.
  2716. ac_missing_aux_files=""
  2717. ac_first_candidate=:
  2718. printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
  2719. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2720. as_found=false
  2721. for as_dir in $ac_aux_dir_candidates
  2722. do
  2723. IFS=$as_save_IFS
  2724. case $as_dir in #(((
  2725. '') as_dir=./ ;;
  2726. */) ;;
  2727. *) as_dir=$as_dir/ ;;
  2728. esac
  2729. as_found=:
  2730. printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
  2731. ac_aux_dir_found=yes
  2732. ac_install_sh=
  2733. for ac_aux in $ac_aux_files
  2734. do
  2735. # As a special case, if "install-sh" is required, that requirement
  2736. # can be satisfied by any of "install-sh", "install.sh", or "shtool",
  2737. # and $ac_install_sh is set appropriately for whichever one is found.
  2738. if test x"$ac_aux" = x"install-sh"
  2739. then
  2740. if test -f "${as_dir}install-sh"; then
  2741. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
  2742. ac_install_sh="${as_dir}install-sh -c"
  2743. elif test -f "${as_dir}install.sh"; then
  2744. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
  2745. ac_install_sh="${as_dir}install.sh -c"
  2746. elif test -f "${as_dir}shtool"; then
  2747. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
  2748. ac_install_sh="${as_dir}shtool install -c"
  2749. else
  2750. ac_aux_dir_found=no
  2751. if $ac_first_candidate; then
  2752. ac_missing_aux_files="${ac_missing_aux_files} install-sh"
  2753. else
  2754. break
  2755. fi
  2756. fi
  2757. else
  2758. if test -f "${as_dir}${ac_aux}"; then
  2759. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
  2760. else
  2761. ac_aux_dir_found=no
  2762. if $ac_first_candidate; then
  2763. ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
  2764. else
  2765. break
  2766. fi
  2767. fi
  2768. fi
  2769. done
  2770. if test "$ac_aux_dir_found" = yes; then
  2771. ac_aux_dir="$as_dir"
  2772. break
  2773. fi
  2774. ac_first_candidate=false
  2775. as_found=false
  2776. done
  2777. IFS=$as_save_IFS
  2778. if $as_found
  2779. then :
  2780. else $as_nop
  2781. as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
  2782. fi
  2783. # These three variables are undocumented and unsupported,
  2784. # and are intended to be withdrawn in a future Autoconf release.
  2785. # They can cause serious problems if a builder's source tree is in a directory
  2786. # whose full name contains unusual characters.
  2787. if test -f "${ac_aux_dir}config.guess"; then
  2788. ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
  2789. fi
  2790. if test -f "${ac_aux_dir}config.sub"; then
  2791. ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
  2792. fi
  2793. if test -f "$ac_aux_dir/configure"; then
  2794. ac_configure="$SHELL ${ac_aux_dir}configure"
  2795. fi
  2796. # Check that the precious variables saved in the cache have kept the same
  2797. # value.
  2798. ac_cache_corrupted=false
  2799. for ac_var in $ac_precious_vars; do
  2800. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2801. eval ac_new_set=\$ac_env_${ac_var}_set
  2802. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2803. eval ac_new_val=\$ac_env_${ac_var}_value
  2804. case $ac_old_set,$ac_new_set in
  2805. set,)
  2806. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2807. printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2808. ac_cache_corrupted=: ;;
  2809. ,set)
  2810. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2811. printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2812. ac_cache_corrupted=: ;;
  2813. ,);;
  2814. *)
  2815. if test "x$ac_old_val" != "x$ac_new_val"; then
  2816. # differences in whitespace do not lead to failure.
  2817. ac_old_val_w=`echo x $ac_old_val`
  2818. ac_new_val_w=`echo x $ac_new_val`
  2819. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2820. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2821. printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2822. ac_cache_corrupted=:
  2823. else
  2824. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2825. printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2826. eval $ac_var=\$ac_old_val
  2827. fi
  2828. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2829. printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
  2830. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2831. printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
  2832. fi;;
  2833. esac
  2834. # Pass precious variables to config.status.
  2835. if test "$ac_new_set" = set; then
  2836. case $ac_new_val in
  2837. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2838. *) ac_arg=$ac_var=$ac_new_val ;;
  2839. esac
  2840. case " $ac_configure_args " in
  2841. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2842. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2843. esac
  2844. fi
  2845. done
  2846. if $ac_cache_corrupted; then
  2847. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2848. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2849. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2850. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  2851. as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
  2852. and start over" "$LINENO" 5
  2853. fi
  2854. ## -------------------- ##
  2855. ## Main body of script. ##
  2856. ## -------------------- ##
  2857. ac_ext=c
  2858. ac_cpp='$CPP $CPPFLAGS'
  2859. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2860. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2861. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2862. ac_config_headers="$ac_config_headers src/libssh2_config.h"
  2863. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2864. printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2865. # Check whether --enable-maintainer-mode was given.
  2866. if test ${enable_maintainer_mode+y}
  2867. then :
  2868. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2869. else $as_nop
  2870. USE_MAINTAINER_MODE=no
  2871. fi
  2872. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2873. printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
  2874. if test $USE_MAINTAINER_MODE = yes; then
  2875. MAINTAINER_MODE_TRUE=
  2876. MAINTAINER_MODE_FALSE='#'
  2877. else
  2878. MAINTAINER_MODE_TRUE='#'
  2879. MAINTAINER_MODE_FALSE=
  2880. fi
  2881. MAINT=$MAINTAINER_MODE_TRUE
  2882. # Check whether --enable-silent-rules was given.
  2883. if test ${enable_silent_rules+y}
  2884. then :
  2885. enableval=$enable_silent_rules;
  2886. fi
  2887. case $enable_silent_rules in # (((
  2888. yes) AM_DEFAULT_VERBOSITY=0;;
  2889. no) AM_DEFAULT_VERBOSITY=1;;
  2890. *) AM_DEFAULT_VERBOSITY=0;;
  2891. esac
  2892. am_make=${MAKE-make}
  2893. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2894. printf %s "checking whether $am_make supports nested variables... " >&6; }
  2895. if test ${am_cv_make_support_nested_variables+y}
  2896. then :
  2897. printf %s "(cached) " >&6
  2898. else $as_nop
  2899. if printf "%s\n" 'TRUE=$(BAR$(V))
  2900. BAR0=false
  2901. BAR1=true
  2902. V=1
  2903. am__doit:
  2904. @$(TRUE)
  2905. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2906. am_cv_make_support_nested_variables=yes
  2907. else
  2908. am_cv_make_support_nested_variables=no
  2909. fi
  2910. fi
  2911. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2912. printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
  2913. if test $am_cv_make_support_nested_variables = yes; then
  2914. AM_V='$(V)'
  2915. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2916. else
  2917. AM_V=$AM_DEFAULT_VERBOSITY
  2918. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2919. fi
  2920. AM_BACKSLASH='\'
  2921. # Extract the first word of "sed", so it can be a program name with args.
  2922. set dummy sed; ac_word=$2
  2923. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2924. printf %s "checking for $ac_word... " >&6; }
  2925. if test ${ac_cv_path_SED+y}
  2926. then :
  2927. printf %s "(cached) " >&6
  2928. else $as_nop
  2929. case $SED in
  2930. [\\/]* | ?:[\\/]*)
  2931. ac_cv_path_SED="$SED" # Let the user override the test with a path.
  2932. ;;
  2933. *)
  2934. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2935. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  2936. for as_dir in $as_dummy
  2937. do
  2938. IFS=$as_save_IFS
  2939. case $as_dir in #(((
  2940. '') as_dir=./ ;;
  2941. */) ;;
  2942. *) as_dir=$as_dir/ ;;
  2943. esac
  2944. for ac_exec_ext in '' $ac_executable_extensions; do
  2945. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2946. ac_cv_path_SED="$as_dir$ac_word$ac_exec_ext"
  2947. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2948. break 2
  2949. fi
  2950. done
  2951. done
  2952. IFS=$as_save_IFS
  2953. test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed-was-not-found-by-configure"
  2954. ;;
  2955. esac
  2956. fi
  2957. SED=$ac_cv_path_SED
  2958. if test -n "$SED"; then
  2959. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
  2960. printf "%s\n" "$SED" >&6; }
  2961. else
  2962. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2963. printf "%s\n" "no" >&6; }
  2964. fi
  2965. if test "x$SED" = "xsed-was-not-found-by-configure"; then
  2966. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: sed was not found, this may ruin your chances to build fine" >&5
  2967. printf "%s\n" "$as_me: WARNING: sed was not found, this may ruin your chances to build fine" >&2;}
  2968. fi
  2969. LIBSSH2VER=`$SED -ne 's/^#define LIBSSH2_VERSION *"\(.*\)"/\1/p' ${srcdir}/include/libssh2.h`
  2970. am__api_version='1.16'
  2971. # Find a good install program. We prefer a C program (faster),
  2972. # so one script is as good as another. But avoid the broken or
  2973. # incompatible versions:
  2974. # SysV /etc/install, /usr/sbin/install
  2975. # SunOS /usr/etc/install
  2976. # IRIX /sbin/install
  2977. # AIX /bin/install
  2978. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2979. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2980. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2981. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2982. # OS/2's system install, which has a completely different semantic
  2983. # ./install, which can be erroneously created by make from ./install.sh.
  2984. # Reject install programs that cannot install multiple files.
  2985. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2986. printf %s "checking for a BSD-compatible install... " >&6; }
  2987. if test -z "$INSTALL"; then
  2988. if test ${ac_cv_path_install+y}
  2989. then :
  2990. printf %s "(cached) " >&6
  2991. else $as_nop
  2992. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2993. for as_dir in $PATH
  2994. do
  2995. IFS=$as_save_IFS
  2996. case $as_dir in #(((
  2997. '') as_dir=./ ;;
  2998. */) ;;
  2999. *) as_dir=$as_dir/ ;;
  3000. esac
  3001. # Account for fact that we put trailing slashes in our PATH walk.
  3002. case $as_dir in #((
  3003. ./ | /[cC]/* | \
  3004. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3005. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3006. /usr/ucb/* ) ;;
  3007. *)
  3008. # OSF1 and SCO ODT 3.0 have their own names for install.
  3009. # Don't use installbsd from OSF since it installs stuff as root
  3010. # by default.
  3011. for ac_prog in ginstall scoinst install; do
  3012. for ac_exec_ext in '' $ac_executable_extensions; do
  3013. if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
  3014. if test $ac_prog = install &&
  3015. grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3016. # AIX install. It has an incompatible calling convention.
  3017. :
  3018. elif test $ac_prog = install &&
  3019. grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3020. # program-specific install script used by HP pwplus--don't use.
  3021. :
  3022. else
  3023. rm -rf conftest.one conftest.two conftest.dir
  3024. echo one > conftest.one
  3025. echo two > conftest.two
  3026. mkdir conftest.dir
  3027. if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
  3028. test -s conftest.one && test -s conftest.two &&
  3029. test -s conftest.dir/conftest.one &&
  3030. test -s conftest.dir/conftest.two
  3031. then
  3032. ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
  3033. break 3
  3034. fi
  3035. fi
  3036. fi
  3037. done
  3038. done
  3039. ;;
  3040. esac
  3041. done
  3042. IFS=$as_save_IFS
  3043. rm -rf conftest.one conftest.two conftest.dir
  3044. fi
  3045. if test ${ac_cv_path_install+y}; then
  3046. INSTALL=$ac_cv_path_install
  3047. else
  3048. # As a last resort, use the slow shell script. Don't cache a
  3049. # value for INSTALL within a source directory, because that will
  3050. # break other packages using the cache if that directory is
  3051. # removed, or if the value is a relative name.
  3052. INSTALL=$ac_install_sh
  3053. fi
  3054. fi
  3055. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3056. printf "%s\n" "$INSTALL" >&6; }
  3057. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3058. # It thinks the first close brace ends the variable substitution.
  3059. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3060. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3061. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3062. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  3063. printf %s "checking whether build environment is sane... " >&6; }
  3064. # Reject unsafe characters in $srcdir or the absolute working directory
  3065. # name. Accept space and tab only in the latter.
  3066. am_lf='
  3067. '
  3068. case `pwd` in
  3069. *[\\\"\#\$\&\'\`$am_lf]*)
  3070. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  3071. esac
  3072. case $srcdir in
  3073. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  3074. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  3075. esac
  3076. # Do 'set' in a subshell so we don't clobber the current shell's
  3077. # arguments. Must try -L first in case configure is actually a
  3078. # symlink; some systems play weird games with the mod time of symlinks
  3079. # (eg FreeBSD returns the mod time of the symlink's containing
  3080. # directory).
  3081. if (
  3082. am_has_slept=no
  3083. for am_try in 1 2; do
  3084. echo "timestamp, slept: $am_has_slept" > conftest.file
  3085. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  3086. if test "$*" = "X"; then
  3087. # -L didn't work.
  3088. set X `ls -t "$srcdir/configure" conftest.file`
  3089. fi
  3090. if test "$*" != "X $srcdir/configure conftest.file" \
  3091. && test "$*" != "X conftest.file $srcdir/configure"; then
  3092. # If neither matched, then we have a broken ls. This can happen
  3093. # if, for instance, CONFIG_SHELL is bash and it inherits a
  3094. # broken ls alias from the environment. This has actually
  3095. # happened. Such a system could not be considered "sane".
  3096. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  3097. alias in your environment" "$LINENO" 5
  3098. fi
  3099. if test "$2" = conftest.file || test $am_try -eq 2; then
  3100. break
  3101. fi
  3102. # Just in case.
  3103. sleep 1
  3104. am_has_slept=yes
  3105. done
  3106. test "$2" = conftest.file
  3107. )
  3108. then
  3109. # Ok.
  3110. :
  3111. else
  3112. as_fn_error $? "newly created file is older than distributed files!
  3113. Check your system clock" "$LINENO" 5
  3114. fi
  3115. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3116. printf "%s\n" "yes" >&6; }
  3117. # If we didn't sleep, we still need to ensure time stamps of config.status and
  3118. # generated files are strictly newer.
  3119. am_sleep_pid=
  3120. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  3121. ( sleep 1 ) &
  3122. am_sleep_pid=$!
  3123. fi
  3124. rm -f conftest.file
  3125. test "$program_prefix" != NONE &&
  3126. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  3127. # Use a double $ so make ignores it.
  3128. test "$program_suffix" != NONE &&
  3129. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  3130. # Double any \ or $.
  3131. # By default was `s,x,x', remove it if useless.
  3132. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  3133. program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
  3134. # Expand $ac_aux_dir to an absolute path.
  3135. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  3136. if test x"${MISSING+set}" != xset; then
  3137. MISSING="\${SHELL} '$am_aux_dir/missing'"
  3138. fi
  3139. # Use eval to expand $SHELL
  3140. if eval "$MISSING --is-lightweight"; then
  3141. am_missing_run="$MISSING "
  3142. else
  3143. am_missing_run=
  3144. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  3145. printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  3146. fi
  3147. if test x"${install_sh+set}" != xset; then
  3148. case $am_aux_dir in
  3149. *\ * | *\ *)
  3150. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  3151. *)
  3152. install_sh="\${SHELL} $am_aux_dir/install-sh"
  3153. esac
  3154. fi
  3155. # Installed binaries are usually stripped using 'strip' when the user
  3156. # run "make install-strip". However 'strip' might not be the right
  3157. # tool to use in cross-compilation environments, therefore Automake
  3158. # will honor the 'STRIP' environment variable to overrule this program.
  3159. if test "$cross_compiling" != no; then
  3160. if test -n "$ac_tool_prefix"; then
  3161. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  3162. set dummy ${ac_tool_prefix}strip; ac_word=$2
  3163. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3164. printf %s "checking for $ac_word... " >&6; }
  3165. if test ${ac_cv_prog_STRIP+y}
  3166. then :
  3167. printf %s "(cached) " >&6
  3168. else $as_nop
  3169. if test -n "$STRIP"; then
  3170. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3171. else
  3172. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3173. for as_dir in $PATH
  3174. do
  3175. IFS=$as_save_IFS
  3176. case $as_dir in #(((
  3177. '') as_dir=./ ;;
  3178. */) ;;
  3179. *) as_dir=$as_dir/ ;;
  3180. esac
  3181. for ac_exec_ext in '' $ac_executable_extensions; do
  3182. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3183. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  3184. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3185. break 2
  3186. fi
  3187. done
  3188. done
  3189. IFS=$as_save_IFS
  3190. fi
  3191. fi
  3192. STRIP=$ac_cv_prog_STRIP
  3193. if test -n "$STRIP"; then
  3194. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3195. printf "%s\n" "$STRIP" >&6; }
  3196. else
  3197. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3198. printf "%s\n" "no" >&6; }
  3199. fi
  3200. fi
  3201. if test -z "$ac_cv_prog_STRIP"; then
  3202. ac_ct_STRIP=$STRIP
  3203. # Extract the first word of "strip", so it can be a program name with args.
  3204. set dummy strip; ac_word=$2
  3205. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3206. printf %s "checking for $ac_word... " >&6; }
  3207. if test ${ac_cv_prog_ac_ct_STRIP+y}
  3208. then :
  3209. printf %s "(cached) " >&6
  3210. else $as_nop
  3211. if test -n "$ac_ct_STRIP"; then
  3212. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  3213. else
  3214. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3215. for as_dir in $PATH
  3216. do
  3217. IFS=$as_save_IFS
  3218. case $as_dir in #(((
  3219. '') as_dir=./ ;;
  3220. */) ;;
  3221. *) as_dir=$as_dir/ ;;
  3222. esac
  3223. for ac_exec_ext in '' $ac_executable_extensions; do
  3224. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3225. ac_cv_prog_ac_ct_STRIP="strip"
  3226. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3227. break 2
  3228. fi
  3229. done
  3230. done
  3231. IFS=$as_save_IFS
  3232. fi
  3233. fi
  3234. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  3235. if test -n "$ac_ct_STRIP"; then
  3236. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  3237. printf "%s\n" "$ac_ct_STRIP" >&6; }
  3238. else
  3239. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3240. printf "%s\n" "no" >&6; }
  3241. fi
  3242. if test "x$ac_ct_STRIP" = x; then
  3243. STRIP=":"
  3244. else
  3245. case $cross_compiling:$ac_tool_warned in
  3246. yes:)
  3247. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3248. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3249. ac_tool_warned=yes ;;
  3250. esac
  3251. STRIP=$ac_ct_STRIP
  3252. fi
  3253. else
  3254. STRIP="$ac_cv_prog_STRIP"
  3255. fi
  3256. fi
  3257. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  3258. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
  3259. printf %s "checking for a race-free mkdir -p... " >&6; }
  3260. if test -z "$MKDIR_P"; then
  3261. if test ${ac_cv_path_mkdir+y}
  3262. then :
  3263. printf %s "(cached) " >&6
  3264. else $as_nop
  3265. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3266. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3267. do
  3268. IFS=$as_save_IFS
  3269. case $as_dir in #(((
  3270. '') as_dir=./ ;;
  3271. */) ;;
  3272. *) as_dir=$as_dir/ ;;
  3273. esac
  3274. for ac_prog in mkdir gmkdir; do
  3275. for ac_exec_ext in '' $ac_executable_extensions; do
  3276. as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
  3277. case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3278. 'mkdir ('*'coreutils) '* | \
  3279. 'BusyBox '* | \
  3280. 'mkdir (fileutils) '4.1*)
  3281. ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
  3282. break 3;;
  3283. esac
  3284. done
  3285. done
  3286. done
  3287. IFS=$as_save_IFS
  3288. fi
  3289. test -d ./--version && rmdir ./--version
  3290. if test ${ac_cv_path_mkdir+y}; then
  3291. MKDIR_P="$ac_cv_path_mkdir -p"
  3292. else
  3293. # As a last resort, use the slow shell script. Don't cache a
  3294. # value for MKDIR_P within a source directory, because that will
  3295. # break other packages using the cache if that directory is
  3296. # removed, or if the value is a relative name.
  3297. MKDIR_P="$ac_install_sh -d"
  3298. fi
  3299. fi
  3300. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3301. printf "%s\n" "$MKDIR_P" >&6; }
  3302. for ac_prog in gawk mawk nawk awk
  3303. do
  3304. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3305. set dummy $ac_prog; ac_word=$2
  3306. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3307. printf %s "checking for $ac_word... " >&6; }
  3308. if test ${ac_cv_prog_AWK+y}
  3309. then :
  3310. printf %s "(cached) " >&6
  3311. else $as_nop
  3312. if test -n "$AWK"; then
  3313. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3314. else
  3315. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3316. for as_dir in $PATH
  3317. do
  3318. IFS=$as_save_IFS
  3319. case $as_dir in #(((
  3320. '') as_dir=./ ;;
  3321. */) ;;
  3322. *) as_dir=$as_dir/ ;;
  3323. esac
  3324. for ac_exec_ext in '' $ac_executable_extensions; do
  3325. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3326. ac_cv_prog_AWK="$ac_prog"
  3327. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3328. break 2
  3329. fi
  3330. done
  3331. done
  3332. IFS=$as_save_IFS
  3333. fi
  3334. fi
  3335. AWK=$ac_cv_prog_AWK
  3336. if test -n "$AWK"; then
  3337. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3338. printf "%s\n" "$AWK" >&6; }
  3339. else
  3340. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3341. printf "%s\n" "no" >&6; }
  3342. fi
  3343. test -n "$AWK" && break
  3344. done
  3345. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3346. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3347. set x ${MAKE-make}
  3348. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3349. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  3350. then :
  3351. printf %s "(cached) " >&6
  3352. else $as_nop
  3353. cat >conftest.make <<\_ACEOF
  3354. SHELL = /bin/sh
  3355. all:
  3356. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3357. _ACEOF
  3358. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3359. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3360. *@@@%%%=?*=@@@%%%*)
  3361. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3362. *)
  3363. eval ac_cv_prog_make_${ac_make}_set=no;;
  3364. esac
  3365. rm -f conftest.make
  3366. fi
  3367. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3368. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3369. printf "%s\n" "yes" >&6; }
  3370. SET_MAKE=
  3371. else
  3372. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3373. printf "%s\n" "no" >&6; }
  3374. SET_MAKE="MAKE=${MAKE-make}"
  3375. fi
  3376. rm -rf .tst 2>/dev/null
  3377. mkdir .tst 2>/dev/null
  3378. if test -d .tst; then
  3379. am__leading_dot=.
  3380. else
  3381. am__leading_dot=_
  3382. fi
  3383. rmdir .tst 2>/dev/null
  3384. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3385. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3386. # is not polluted with repeated "-I."
  3387. am__isrc=' -I$(srcdir)'
  3388. # test to see if srcdir already configured
  3389. if test -f $srcdir/config.status; then
  3390. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3391. fi
  3392. fi
  3393. # test whether we have cygpath
  3394. if test -z "$CYGPATH_W"; then
  3395. if (cygpath --version) >/dev/null 2>/dev/null; then
  3396. CYGPATH_W='cygpath -w'
  3397. else
  3398. CYGPATH_W=echo
  3399. fi
  3400. fi
  3401. # Define the identity of the package.
  3402. PACKAGE='libssh2'
  3403. VERSION='-'
  3404. printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
  3405. printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
  3406. # Some tools Automake needs.
  3407. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3408. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3409. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3410. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3411. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3412. # For better backward compatibility. To be removed once Automake 1.9.x
  3413. # dies out for good. For more background, see:
  3414. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3415. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3416. mkdir_p='$(MKDIR_P)'
  3417. # We need awk for the "check" target (and possibly the TAP driver). The
  3418. # system "awk" is bad on some platforms.
  3419. # Always define AMTAR for backward compatibility. Yes, it's still used
  3420. # in the wild :-( We should find a proper way to deprecate it ...
  3421. AMTAR='$${TAR-tar}'
  3422. # We'll loop over all known methods to create a tar archive until one works.
  3423. _am_tools='gnutar pax cpio none'
  3424. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  3425. # Variables for tags utilities; see am/tags.am
  3426. if test -z "$CTAGS"; then
  3427. CTAGS=ctags
  3428. fi
  3429. if test -z "$ETAGS"; then
  3430. ETAGS=etags
  3431. fi
  3432. if test -z "$CSCOPE"; then
  3433. CSCOPE=cscope
  3434. fi
  3435. # POSIX will say in a future version that running "rm -f" with no argument
  3436. # is OK; and we want to be able to make that assumption in our Makefile
  3437. # recipes. So use an aggressive probe to check that the usage we want is
  3438. # actually supported "in the wild" to an acceptable degree.
  3439. # See automake bug#10828.
  3440. # To make any issue more visible, cause the running configure to be aborted
  3441. # by default if the 'rm' program in use doesn't match our expectations; the
  3442. # user can still override this though.
  3443. if rm -f && rm -fr && rm -rf; then : OK; else
  3444. cat >&2 <<'END'
  3445. Oops!
  3446. Your 'rm' program seems unable to run without file operands specified
  3447. on the command line, even when the '-f' option is present. This is contrary
  3448. to the behaviour of most rm programs out there, and not conforming with
  3449. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  3450. Please tell [email protected] about your system, including the value
  3451. of your $PATH and any error possibly output before this message. This
  3452. can help us improve future automake versions.
  3453. END
  3454. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  3455. echo 'Configuration will proceed anyway, since you have set the' >&2
  3456. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  3457. echo >&2
  3458. else
  3459. cat >&2 <<'END'
  3460. Aborting the configuration process, to ensure you take notice of the issue.
  3461. You can download and install GNU coreutils to get an 'rm' implementation
  3462. that behaves properly: <https://www.gnu.org/software/coreutils/>.
  3463. If you want to complete the configuration process using your problematic
  3464. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  3465. to "yes", and re-run configure.
  3466. END
  3467. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  3468. fi
  3469. fi
  3470. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking libssh2 version" >&5
  3471. printf %s "checking libssh2 version... " >&6; }
  3472. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBSSH2VER" >&5
  3473. printf "%s\n" "$LIBSSH2VER" >&6; }
  3474. AB_VERSION=$LIBSSH2VER
  3475. # Make sure we can run config.sub.
  3476. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
  3477. as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
  3478. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3479. printf %s "checking build system type... " >&6; }
  3480. if test ${ac_cv_build+y}
  3481. then :
  3482. printf %s "(cached) " >&6
  3483. else $as_nop
  3484. ac_build_alias=$build_alias
  3485. test "x$ac_build_alias" = x &&
  3486. ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
  3487. test "x$ac_build_alias" = x &&
  3488. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3489. ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  3490. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
  3491. fi
  3492. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3493. printf "%s\n" "$ac_cv_build" >&6; }
  3494. case $ac_cv_build in
  3495. *-*-*) ;;
  3496. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3497. esac
  3498. build=$ac_cv_build
  3499. ac_save_IFS=$IFS; IFS='-'
  3500. set x $ac_cv_build
  3501. shift
  3502. build_cpu=$1
  3503. build_vendor=$2
  3504. shift; shift
  3505. # Remember, the first character of IFS is used to create $*,
  3506. # except with old shells:
  3507. build_os=$*
  3508. IFS=$ac_save_IFS
  3509. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3510. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3511. printf %s "checking host system type... " >&6; }
  3512. if test ${ac_cv_host+y}
  3513. then :
  3514. printf %s "(cached) " >&6
  3515. else $as_nop
  3516. if test "x$host_alias" = x; then
  3517. ac_cv_host=$ac_cv_build
  3518. else
  3519. ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
  3520. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
  3521. fi
  3522. fi
  3523. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3524. printf "%s\n" "$ac_cv_host" >&6; }
  3525. case $ac_cv_host in
  3526. *-*-*) ;;
  3527. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3528. esac
  3529. host=$ac_cv_host
  3530. ac_save_IFS=$IFS; IFS='-'
  3531. set x $ac_cv_host
  3532. shift
  3533. host_cpu=$1
  3534. host_vendor=$2
  3535. shift; shift
  3536. # Remember, the first character of IFS is used to create $*,
  3537. # except with old shells:
  3538. host_os=$*
  3539. IFS=$ac_save_IFS
  3540. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3541. if test -z "$AB_PACKAGE"; then
  3542. AB_PACKAGE=${PACKAGE_NAME:-$PACKAGE}
  3543. fi
  3544. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: autobuild project... $AB_PACKAGE" >&5
  3545. printf "%s\n" "$as_me: autobuild project... $AB_PACKAGE" >&6;}
  3546. if test -z "$AB_VERSION"; then
  3547. AB_VERSION=${PACKAGE_VERSION:-$VERSION}
  3548. fi
  3549. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: autobuild revision... $AB_VERSION" >&5
  3550. printf "%s\n" "$as_me: autobuild revision... $AB_VERSION" >&6;}
  3551. hostname=`hostname`
  3552. if test "$hostname"; then
  3553. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: autobuild hostname... $hostname" >&5
  3554. printf "%s\n" "$as_me: autobuild hostname... $hostname" >&6;}
  3555. fi
  3556. date=`date +%Y%m%d-%H%M%S`
  3557. if test "$?" != 0; then
  3558. date=`date`
  3559. fi
  3560. if test "$date"; then
  3561. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: autobuild timestamp... $date" >&5
  3562. printf "%s\n" "$as_me: autobuild timestamp... $date" >&6;}
  3563. fi
  3564. # Check for the OS.
  3565. # Daniel's note: this should not be necessary and we need to work to
  3566. # get this removed.
  3567. case "$host" in
  3568. *-mingw*)
  3569. CFLAGS="$CFLAGS -DLIBSSH2_WIN32"
  3570. LIBS="$LIBS -lws2_32"
  3571. ;;
  3572. *darwin*)
  3573. CFLAGS="$CFLAGS -DLIBSSH2_DARWIN"
  3574. ;;
  3575. *hpux*)
  3576. ;;
  3577. *osf*)
  3578. CFLAGS="$CFLAGS -D_POSIX_PII_SOCKET"
  3579. ;;
  3580. *)
  3581. ;;
  3582. esac
  3583. DEPDIR="${am__leading_dot}deps"
  3584. ac_config_commands="$ac_config_commands depfiles"
  3585. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
  3586. printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
  3587. cat > confinc.mk << 'END'
  3588. am__doit:
  3589. @echo this is the am__doit target >confinc.out
  3590. .PHONY: am__doit
  3591. END
  3592. am__include="#"
  3593. am__quote=
  3594. # BSD make does it like this.
  3595. echo '.include "confinc.mk" # ignored' > confmf.BSD
  3596. # Other make implementations (GNU, Solaris 10, AIX) do it like this.
  3597. echo 'include confinc.mk # ignored' > confmf.GNU
  3598. _am_result=no
  3599. for s in GNU BSD; do
  3600. { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
  3601. (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
  3602. ac_status=$?
  3603. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3604. (exit $ac_status); }
  3605. case $?:`cat confinc.out 2>/dev/null` in #(
  3606. '0:this is the am__doit target') :
  3607. case $s in #(
  3608. BSD) :
  3609. am__include='.include' am__quote='"' ;; #(
  3610. *) :
  3611. am__include='include' am__quote='' ;;
  3612. esac ;; #(
  3613. *) :
  3614. ;;
  3615. esac
  3616. if test "$am__include" != "#"; then
  3617. _am_result="yes ($s style)"
  3618. break
  3619. fi
  3620. done
  3621. rm -f confinc.* confmf.*
  3622. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
  3623. printf "%s\n" "${_am_result}" >&6; }
  3624. # Check whether --enable-dependency-tracking was given.
  3625. if test ${enable_dependency_tracking+y}
  3626. then :
  3627. enableval=$enable_dependency_tracking;
  3628. fi
  3629. if test "x$enable_dependency_tracking" != xno; then
  3630. am_depcomp="$ac_aux_dir/depcomp"
  3631. AMDEPBACKSLASH='\'
  3632. am__nodep='_no'
  3633. fi
  3634. if test "x$enable_dependency_tracking" != xno; then
  3635. AMDEP_TRUE=
  3636. AMDEP_FALSE='#'
  3637. else
  3638. AMDEP_TRUE='#'
  3639. AMDEP_FALSE=
  3640. fi
  3641. ac_ext=c
  3642. ac_cpp='$CPP $CPPFLAGS'
  3643. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3644. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3645. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3646. if test -n "$ac_tool_prefix"; then
  3647. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3648. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3649. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3650. printf %s "checking for $ac_word... " >&6; }
  3651. if test ${ac_cv_prog_CC+y}
  3652. then :
  3653. printf %s "(cached) " >&6
  3654. else $as_nop
  3655. if test -n "$CC"; then
  3656. ac_cv_prog_CC="$CC" # Let the user override the test.
  3657. else
  3658. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3659. for as_dir in $PATH
  3660. do
  3661. IFS=$as_save_IFS
  3662. case $as_dir in #(((
  3663. '') as_dir=./ ;;
  3664. */) ;;
  3665. *) as_dir=$as_dir/ ;;
  3666. esac
  3667. for ac_exec_ext in '' $ac_executable_extensions; do
  3668. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3669. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3670. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3671. break 2
  3672. fi
  3673. done
  3674. done
  3675. IFS=$as_save_IFS
  3676. fi
  3677. fi
  3678. CC=$ac_cv_prog_CC
  3679. if test -n "$CC"; then
  3680. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3681. printf "%s\n" "$CC" >&6; }
  3682. else
  3683. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3684. printf "%s\n" "no" >&6; }
  3685. fi
  3686. fi
  3687. if test -z "$ac_cv_prog_CC"; then
  3688. ac_ct_CC=$CC
  3689. # Extract the first word of "gcc", so it can be a program name with args.
  3690. set dummy gcc; ac_word=$2
  3691. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3692. printf %s "checking for $ac_word... " >&6; }
  3693. if test ${ac_cv_prog_ac_ct_CC+y}
  3694. then :
  3695. printf %s "(cached) " >&6
  3696. else $as_nop
  3697. if test -n "$ac_ct_CC"; then
  3698. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3699. else
  3700. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3701. for as_dir in $PATH
  3702. do
  3703. IFS=$as_save_IFS
  3704. case $as_dir in #(((
  3705. '') as_dir=./ ;;
  3706. */) ;;
  3707. *) as_dir=$as_dir/ ;;
  3708. esac
  3709. for ac_exec_ext in '' $ac_executable_extensions; do
  3710. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3711. ac_cv_prog_ac_ct_CC="gcc"
  3712. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3713. break 2
  3714. fi
  3715. done
  3716. done
  3717. IFS=$as_save_IFS
  3718. fi
  3719. fi
  3720. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3721. if test -n "$ac_ct_CC"; then
  3722. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3723. printf "%s\n" "$ac_ct_CC" >&6; }
  3724. else
  3725. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3726. printf "%s\n" "no" >&6; }
  3727. fi
  3728. if test "x$ac_ct_CC" = x; then
  3729. CC=""
  3730. else
  3731. case $cross_compiling:$ac_tool_warned in
  3732. yes:)
  3733. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3734. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3735. ac_tool_warned=yes ;;
  3736. esac
  3737. CC=$ac_ct_CC
  3738. fi
  3739. else
  3740. CC="$ac_cv_prog_CC"
  3741. fi
  3742. if test -z "$CC"; then
  3743. if test -n "$ac_tool_prefix"; then
  3744. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3745. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3746. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3747. printf %s "checking for $ac_word... " >&6; }
  3748. if test ${ac_cv_prog_CC+y}
  3749. then :
  3750. printf %s "(cached) " >&6
  3751. else $as_nop
  3752. if test -n "$CC"; then
  3753. ac_cv_prog_CC="$CC" # Let the user override the test.
  3754. else
  3755. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3756. for as_dir in $PATH
  3757. do
  3758. IFS=$as_save_IFS
  3759. case $as_dir in #(((
  3760. '') as_dir=./ ;;
  3761. */) ;;
  3762. *) as_dir=$as_dir/ ;;
  3763. esac
  3764. for ac_exec_ext in '' $ac_executable_extensions; do
  3765. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3766. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3767. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3768. break 2
  3769. fi
  3770. done
  3771. done
  3772. IFS=$as_save_IFS
  3773. fi
  3774. fi
  3775. CC=$ac_cv_prog_CC
  3776. if test -n "$CC"; then
  3777. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3778. printf "%s\n" "$CC" >&6; }
  3779. else
  3780. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3781. printf "%s\n" "no" >&6; }
  3782. fi
  3783. fi
  3784. fi
  3785. if test -z "$CC"; then
  3786. # Extract the first word of "cc", so it can be a program name with args.
  3787. set dummy cc; ac_word=$2
  3788. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3789. printf %s "checking for $ac_word... " >&6; }
  3790. if test ${ac_cv_prog_CC+y}
  3791. then :
  3792. printf %s "(cached) " >&6
  3793. else $as_nop
  3794. if test -n "$CC"; then
  3795. ac_cv_prog_CC="$CC" # Let the user override the test.
  3796. else
  3797. ac_prog_rejected=no
  3798. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3799. for as_dir in $PATH
  3800. do
  3801. IFS=$as_save_IFS
  3802. case $as_dir in #(((
  3803. '') as_dir=./ ;;
  3804. */) ;;
  3805. *) as_dir=$as_dir/ ;;
  3806. esac
  3807. for ac_exec_ext in '' $ac_executable_extensions; do
  3808. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3809. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3810. ac_prog_rejected=yes
  3811. continue
  3812. fi
  3813. ac_cv_prog_CC="cc"
  3814. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3815. break 2
  3816. fi
  3817. done
  3818. done
  3819. IFS=$as_save_IFS
  3820. if test $ac_prog_rejected = yes; then
  3821. # We found a bogon in the path, so make sure we never use it.
  3822. set dummy $ac_cv_prog_CC
  3823. shift
  3824. if test $# != 0; then
  3825. # We chose a different compiler from the bogus one.
  3826. # However, it has the same basename, so the bogon will be chosen
  3827. # first if we set CC to just the basename; use the full file name.
  3828. shift
  3829. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  3830. fi
  3831. fi
  3832. fi
  3833. fi
  3834. CC=$ac_cv_prog_CC
  3835. if test -n "$CC"; then
  3836. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3837. printf "%s\n" "$CC" >&6; }
  3838. else
  3839. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3840. printf "%s\n" "no" >&6; }
  3841. fi
  3842. fi
  3843. if test -z "$CC"; then
  3844. if test -n "$ac_tool_prefix"; then
  3845. for ac_prog in cl.exe
  3846. do
  3847. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3848. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3849. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3850. printf %s "checking for $ac_word... " >&6; }
  3851. if test ${ac_cv_prog_CC+y}
  3852. then :
  3853. printf %s "(cached) " >&6
  3854. else $as_nop
  3855. if test -n "$CC"; then
  3856. ac_cv_prog_CC="$CC" # Let the user override the test.
  3857. else
  3858. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3859. for as_dir in $PATH
  3860. do
  3861. IFS=$as_save_IFS
  3862. case $as_dir in #(((
  3863. '') as_dir=./ ;;
  3864. */) ;;
  3865. *) as_dir=$as_dir/ ;;
  3866. esac
  3867. for ac_exec_ext in '' $ac_executable_extensions; do
  3868. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3869. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3870. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3871. break 2
  3872. fi
  3873. done
  3874. done
  3875. IFS=$as_save_IFS
  3876. fi
  3877. fi
  3878. CC=$ac_cv_prog_CC
  3879. if test -n "$CC"; then
  3880. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3881. printf "%s\n" "$CC" >&6; }
  3882. else
  3883. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3884. printf "%s\n" "no" >&6; }
  3885. fi
  3886. test -n "$CC" && break
  3887. done
  3888. fi
  3889. if test -z "$CC"; then
  3890. ac_ct_CC=$CC
  3891. for ac_prog in cl.exe
  3892. do
  3893. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3894. set dummy $ac_prog; ac_word=$2
  3895. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3896. printf %s "checking for $ac_word... " >&6; }
  3897. if test ${ac_cv_prog_ac_ct_CC+y}
  3898. then :
  3899. printf %s "(cached) " >&6
  3900. else $as_nop
  3901. if test -n "$ac_ct_CC"; then
  3902. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3903. else
  3904. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3905. for as_dir in $PATH
  3906. do
  3907. IFS=$as_save_IFS
  3908. case $as_dir in #(((
  3909. '') as_dir=./ ;;
  3910. */) ;;
  3911. *) as_dir=$as_dir/ ;;
  3912. esac
  3913. for ac_exec_ext in '' $ac_executable_extensions; do
  3914. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3915. ac_cv_prog_ac_ct_CC="$ac_prog"
  3916. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3917. break 2
  3918. fi
  3919. done
  3920. done
  3921. IFS=$as_save_IFS
  3922. fi
  3923. fi
  3924. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3925. if test -n "$ac_ct_CC"; then
  3926. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3927. printf "%s\n" "$ac_ct_CC" >&6; }
  3928. else
  3929. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3930. printf "%s\n" "no" >&6; }
  3931. fi
  3932. test -n "$ac_ct_CC" && break
  3933. done
  3934. if test "x$ac_ct_CC" = x; then
  3935. CC=""
  3936. else
  3937. case $cross_compiling:$ac_tool_warned in
  3938. yes:)
  3939. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3940. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3941. ac_tool_warned=yes ;;
  3942. esac
  3943. CC=$ac_ct_CC
  3944. fi
  3945. fi
  3946. fi
  3947. if test -z "$CC"; then
  3948. if test -n "$ac_tool_prefix"; then
  3949. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  3950. set dummy ${ac_tool_prefix}clang; ac_word=$2
  3951. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3952. printf %s "checking for $ac_word... " >&6; }
  3953. if test ${ac_cv_prog_CC+y}
  3954. then :
  3955. printf %s "(cached) " >&6
  3956. else $as_nop
  3957. if test -n "$CC"; then
  3958. ac_cv_prog_CC="$CC" # Let the user override the test.
  3959. else
  3960. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3961. for as_dir in $PATH
  3962. do
  3963. IFS=$as_save_IFS
  3964. case $as_dir in #(((
  3965. '') as_dir=./ ;;
  3966. */) ;;
  3967. *) as_dir=$as_dir/ ;;
  3968. esac
  3969. for ac_exec_ext in '' $ac_executable_extensions; do
  3970. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3971. ac_cv_prog_CC="${ac_tool_prefix}clang"
  3972. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3973. break 2
  3974. fi
  3975. done
  3976. done
  3977. IFS=$as_save_IFS
  3978. fi
  3979. fi
  3980. CC=$ac_cv_prog_CC
  3981. if test -n "$CC"; then
  3982. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3983. printf "%s\n" "$CC" >&6; }
  3984. else
  3985. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3986. printf "%s\n" "no" >&6; }
  3987. fi
  3988. fi
  3989. if test -z "$ac_cv_prog_CC"; then
  3990. ac_ct_CC=$CC
  3991. # Extract the first word of "clang", so it can be a program name with args.
  3992. set dummy clang; ac_word=$2
  3993. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3994. printf %s "checking for $ac_word... " >&6; }
  3995. if test ${ac_cv_prog_ac_ct_CC+y}
  3996. then :
  3997. printf %s "(cached) " >&6
  3998. else $as_nop
  3999. if test -n "$ac_ct_CC"; then
  4000. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4001. else
  4002. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4003. for as_dir in $PATH
  4004. do
  4005. IFS=$as_save_IFS
  4006. case $as_dir in #(((
  4007. '') as_dir=./ ;;
  4008. */) ;;
  4009. *) as_dir=$as_dir/ ;;
  4010. esac
  4011. for ac_exec_ext in '' $ac_executable_extensions; do
  4012. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4013. ac_cv_prog_ac_ct_CC="clang"
  4014. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4015. break 2
  4016. fi
  4017. done
  4018. done
  4019. IFS=$as_save_IFS
  4020. fi
  4021. fi
  4022. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4023. if test -n "$ac_ct_CC"; then
  4024. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4025. printf "%s\n" "$ac_ct_CC" >&6; }
  4026. else
  4027. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4028. printf "%s\n" "no" >&6; }
  4029. fi
  4030. if test "x$ac_ct_CC" = x; then
  4031. CC=""
  4032. else
  4033. case $cross_compiling:$ac_tool_warned in
  4034. yes:)
  4035. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4036. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4037. ac_tool_warned=yes ;;
  4038. esac
  4039. CC=$ac_ct_CC
  4040. fi
  4041. else
  4042. CC="$ac_cv_prog_CC"
  4043. fi
  4044. fi
  4045. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4046. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  4047. as_fn_error $? "no acceptable C compiler found in \$PATH
  4048. See \`config.log' for more details" "$LINENO" 5; }
  4049. # Provide some information about the compiler.
  4050. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4051. set X $ac_compile
  4052. ac_compiler=$2
  4053. for ac_option in --version -v -V -qversion -version; do
  4054. { { ac_try="$ac_compiler $ac_option >&5"
  4055. case "(($ac_try" in
  4056. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4057. *) ac_try_echo=$ac_try;;
  4058. esac
  4059. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4060. printf "%s\n" "$ac_try_echo"; } >&5
  4061. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4062. ac_status=$?
  4063. if test -s conftest.err; then
  4064. sed '10a\
  4065. ... rest of stderr output deleted ...
  4066. 10q' conftest.err >conftest.er1
  4067. cat conftest.er1 >&5
  4068. fi
  4069. rm -f conftest.er1 conftest.err
  4070. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4071. test $ac_status = 0; }
  4072. done
  4073. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4074. /* end confdefs.h. */
  4075. int
  4076. main (void)
  4077. {
  4078. ;
  4079. return 0;
  4080. }
  4081. _ACEOF
  4082. ac_clean_files_save=$ac_clean_files
  4083. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  4084. # Try to create an executable without -o first, disregard a.out.
  4085. # It will help us diagnose broken compilers, and finding out an intuition
  4086. # of exeext.
  4087. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  4088. printf %s "checking whether the C compiler works... " >&6; }
  4089. ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  4090. # The possible output files:
  4091. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  4092. ac_rmfiles=
  4093. for ac_file in $ac_files
  4094. do
  4095. case $ac_file in
  4096. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4097. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  4098. esac
  4099. done
  4100. rm -f $ac_rmfiles
  4101. if { { ac_try="$ac_link_default"
  4102. case "(($ac_try" in
  4103. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4104. *) ac_try_echo=$ac_try;;
  4105. esac
  4106. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4107. printf "%s\n" "$ac_try_echo"; } >&5
  4108. (eval "$ac_link_default") 2>&5
  4109. ac_status=$?
  4110. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4111. test $ac_status = 0; }
  4112. then :
  4113. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  4114. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  4115. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  4116. # so that the user can short-circuit this test for compilers unknown to
  4117. # Autoconf.
  4118. for ac_file in $ac_files ''
  4119. do
  4120. test -f "$ac_file" || continue
  4121. case $ac_file in
  4122. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  4123. ;;
  4124. [ab].out )
  4125. # We found the default executable, but exeext='' is most
  4126. # certainly right.
  4127. break;;
  4128. *.* )
  4129. if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
  4130. then :; else
  4131. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4132. fi
  4133. # We set ac_cv_exeext here because the later test for it is not
  4134. # safe: cross compilers may not add the suffix if given an `-o'
  4135. # argument, so we may need to know it at that point already.
  4136. # Even if this section looks crufty: it has the advantage of
  4137. # actually working.
  4138. break;;
  4139. * )
  4140. break;;
  4141. esac
  4142. done
  4143. test "$ac_cv_exeext" = no && ac_cv_exeext=
  4144. else $as_nop
  4145. ac_file=''
  4146. fi
  4147. if test -z "$ac_file"
  4148. then :
  4149. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4150. printf "%s\n" "no" >&6; }
  4151. printf "%s\n" "$as_me: failed program was:" >&5
  4152. sed 's/^/| /' conftest.$ac_ext >&5
  4153. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4154. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  4155. as_fn_error 77 "C compiler cannot create executables
  4156. See \`config.log' for more details" "$LINENO" 5; }
  4157. else $as_nop
  4158. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4159. printf "%s\n" "yes" >&6; }
  4160. fi
  4161. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  4162. printf %s "checking for C compiler default output file name... " >&6; }
  4163. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  4164. printf "%s\n" "$ac_file" >&6; }
  4165. ac_exeext=$ac_cv_exeext
  4166. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  4167. ac_clean_files=$ac_clean_files_save
  4168. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  4169. printf %s "checking for suffix of executables... " >&6; }
  4170. if { { ac_try="$ac_link"
  4171. case "(($ac_try" in
  4172. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4173. *) ac_try_echo=$ac_try;;
  4174. esac
  4175. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4176. printf "%s\n" "$ac_try_echo"; } >&5
  4177. (eval "$ac_link") 2>&5
  4178. ac_status=$?
  4179. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4180. test $ac_status = 0; }
  4181. then :
  4182. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  4183. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  4184. # work properly (i.e., refer to `conftest.exe'), while it won't with
  4185. # `rm'.
  4186. for ac_file in conftest.exe conftest conftest.*; do
  4187. test -f "$ac_file" || continue
  4188. case $ac_file in
  4189. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4190. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4191. break;;
  4192. * ) break;;
  4193. esac
  4194. done
  4195. else $as_nop
  4196. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4197. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  4198. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  4199. See \`config.log' for more details" "$LINENO" 5; }
  4200. fi
  4201. rm -f conftest conftest$ac_cv_exeext
  4202. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  4203. printf "%s\n" "$ac_cv_exeext" >&6; }
  4204. rm -f conftest.$ac_ext
  4205. EXEEXT=$ac_cv_exeext
  4206. ac_exeext=$EXEEXT
  4207. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4208. /* end confdefs.h. */
  4209. #include <stdio.h>
  4210. int
  4211. main (void)
  4212. {
  4213. FILE *f = fopen ("conftest.out", "w");
  4214. return ferror (f) || fclose (f) != 0;
  4215. ;
  4216. return 0;
  4217. }
  4218. _ACEOF
  4219. ac_clean_files="$ac_clean_files conftest.out"
  4220. # Check that the compiler produces executables we can run. If not, either
  4221. # the compiler is broken, or we cross compile.
  4222. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  4223. printf %s "checking whether we are cross compiling... " >&6; }
  4224. if test "$cross_compiling" != yes; then
  4225. { { ac_try="$ac_link"
  4226. case "(($ac_try" in
  4227. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4228. *) ac_try_echo=$ac_try;;
  4229. esac
  4230. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4231. printf "%s\n" "$ac_try_echo"; } >&5
  4232. (eval "$ac_link") 2>&5
  4233. ac_status=$?
  4234. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4235. test $ac_status = 0; }
  4236. if { ac_try='./conftest$ac_cv_exeext'
  4237. { { case "(($ac_try" in
  4238. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4239. *) ac_try_echo=$ac_try;;
  4240. esac
  4241. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4242. printf "%s\n" "$ac_try_echo"; } >&5
  4243. (eval "$ac_try") 2>&5
  4244. ac_status=$?
  4245. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4246. test $ac_status = 0; }; }; then
  4247. cross_compiling=no
  4248. else
  4249. if test "$cross_compiling" = maybe; then
  4250. cross_compiling=yes
  4251. else
  4252. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4253. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  4254. as_fn_error 77 "cannot run C compiled programs.
  4255. If you meant to cross compile, use \`--host'.
  4256. See \`config.log' for more details" "$LINENO" 5; }
  4257. fi
  4258. fi
  4259. fi
  4260. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  4261. printf "%s\n" "$cross_compiling" >&6; }
  4262. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  4263. ac_clean_files=$ac_clean_files_save
  4264. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  4265. printf %s "checking for suffix of object files... " >&6; }
  4266. if test ${ac_cv_objext+y}
  4267. then :
  4268. printf %s "(cached) " >&6
  4269. else $as_nop
  4270. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4271. /* end confdefs.h. */
  4272. int
  4273. main (void)
  4274. {
  4275. ;
  4276. return 0;
  4277. }
  4278. _ACEOF
  4279. rm -f conftest.o conftest.obj
  4280. if { { ac_try="$ac_compile"
  4281. case "(($ac_try" in
  4282. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4283. *) ac_try_echo=$ac_try;;
  4284. esac
  4285. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4286. printf "%s\n" "$ac_try_echo"; } >&5
  4287. (eval "$ac_compile") 2>&5
  4288. ac_status=$?
  4289. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4290. test $ac_status = 0; }
  4291. then :
  4292. for ac_file in conftest.o conftest.obj conftest.*; do
  4293. test -f "$ac_file" || continue;
  4294. case $ac_file in
  4295. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  4296. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  4297. break;;
  4298. esac
  4299. done
  4300. else $as_nop
  4301. printf "%s\n" "$as_me: failed program was:" >&5
  4302. sed 's/^/| /' conftest.$ac_ext >&5
  4303. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4304. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  4305. as_fn_error $? "cannot compute suffix of object files: cannot compile
  4306. See \`config.log' for more details" "$LINENO" 5; }
  4307. fi
  4308. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  4309. fi
  4310. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  4311. printf "%s\n" "$ac_cv_objext" >&6; }
  4312. OBJEXT=$ac_cv_objext
  4313. ac_objext=$OBJEXT
  4314. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  4315. printf %s "checking whether the compiler supports GNU C... " >&6; }
  4316. if test ${ac_cv_c_compiler_gnu+y}
  4317. then :
  4318. printf %s "(cached) " >&6
  4319. else $as_nop
  4320. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4321. /* end confdefs.h. */
  4322. int
  4323. main (void)
  4324. {
  4325. #ifndef __GNUC__
  4326. choke me
  4327. #endif
  4328. ;
  4329. return 0;
  4330. }
  4331. _ACEOF
  4332. if ac_fn_c_try_compile "$LINENO"
  4333. then :
  4334. ac_compiler_gnu=yes
  4335. else $as_nop
  4336. ac_compiler_gnu=no
  4337. fi
  4338. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4339. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4340. fi
  4341. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4342. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  4343. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4344. if test $ac_compiler_gnu = yes; then
  4345. GCC=yes
  4346. else
  4347. GCC=
  4348. fi
  4349. ac_test_CFLAGS=${CFLAGS+y}
  4350. ac_save_CFLAGS=$CFLAGS
  4351. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4352. printf %s "checking whether $CC accepts -g... " >&6; }
  4353. if test ${ac_cv_prog_cc_g+y}
  4354. then :
  4355. printf %s "(cached) " >&6
  4356. else $as_nop
  4357. ac_save_c_werror_flag=$ac_c_werror_flag
  4358. ac_c_werror_flag=yes
  4359. ac_cv_prog_cc_g=no
  4360. CFLAGS="-g"
  4361. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4362. /* end confdefs.h. */
  4363. int
  4364. main (void)
  4365. {
  4366. ;
  4367. return 0;
  4368. }
  4369. _ACEOF
  4370. if ac_fn_c_try_compile "$LINENO"
  4371. then :
  4372. ac_cv_prog_cc_g=yes
  4373. else $as_nop
  4374. CFLAGS=""
  4375. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4376. /* end confdefs.h. */
  4377. int
  4378. main (void)
  4379. {
  4380. ;
  4381. return 0;
  4382. }
  4383. _ACEOF
  4384. if ac_fn_c_try_compile "$LINENO"
  4385. then :
  4386. else $as_nop
  4387. ac_c_werror_flag=$ac_save_c_werror_flag
  4388. CFLAGS="-g"
  4389. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4390. /* end confdefs.h. */
  4391. int
  4392. main (void)
  4393. {
  4394. ;
  4395. return 0;
  4396. }
  4397. _ACEOF
  4398. if ac_fn_c_try_compile "$LINENO"
  4399. then :
  4400. ac_cv_prog_cc_g=yes
  4401. fi
  4402. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4403. fi
  4404. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4405. fi
  4406. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4407. ac_c_werror_flag=$ac_save_c_werror_flag
  4408. fi
  4409. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4410. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  4411. if test $ac_test_CFLAGS; then
  4412. CFLAGS=$ac_save_CFLAGS
  4413. elif test $ac_cv_prog_cc_g = yes; then
  4414. if test "$GCC" = yes; then
  4415. CFLAGS="-g -O2"
  4416. else
  4417. CFLAGS="-g"
  4418. fi
  4419. else
  4420. if test "$GCC" = yes; then
  4421. CFLAGS="-O2"
  4422. else
  4423. CFLAGS=
  4424. fi
  4425. fi
  4426. ac_prog_cc_stdc=no
  4427. if test x$ac_prog_cc_stdc = xno
  4428. then :
  4429. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  4430. printf %s "checking for $CC option to enable C11 features... " >&6; }
  4431. if test ${ac_cv_prog_cc_c11+y}
  4432. then :
  4433. printf %s "(cached) " >&6
  4434. else $as_nop
  4435. ac_cv_prog_cc_c11=no
  4436. ac_save_CC=$CC
  4437. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4438. /* end confdefs.h. */
  4439. $ac_c_conftest_c11_program
  4440. _ACEOF
  4441. for ac_arg in '' -std=gnu11
  4442. do
  4443. CC="$ac_save_CC $ac_arg"
  4444. if ac_fn_c_try_compile "$LINENO"
  4445. then :
  4446. ac_cv_prog_cc_c11=$ac_arg
  4447. fi
  4448. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4449. test "x$ac_cv_prog_cc_c11" != "xno" && break
  4450. done
  4451. rm -f conftest.$ac_ext
  4452. CC=$ac_save_CC
  4453. fi
  4454. if test "x$ac_cv_prog_cc_c11" = xno
  4455. then :
  4456. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4457. printf "%s\n" "unsupported" >&6; }
  4458. else $as_nop
  4459. if test "x$ac_cv_prog_cc_c11" = x
  4460. then :
  4461. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4462. printf "%s\n" "none needed" >&6; }
  4463. else $as_nop
  4464. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  4465. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  4466. CC="$CC $ac_cv_prog_cc_c11"
  4467. fi
  4468. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  4469. ac_prog_cc_stdc=c11
  4470. fi
  4471. fi
  4472. if test x$ac_prog_cc_stdc = xno
  4473. then :
  4474. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  4475. printf %s "checking for $CC option to enable C99 features... " >&6; }
  4476. if test ${ac_cv_prog_cc_c99+y}
  4477. then :
  4478. printf %s "(cached) " >&6
  4479. else $as_nop
  4480. ac_cv_prog_cc_c99=no
  4481. ac_save_CC=$CC
  4482. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4483. /* end confdefs.h. */
  4484. $ac_c_conftest_c99_program
  4485. _ACEOF
  4486. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  4487. do
  4488. CC="$ac_save_CC $ac_arg"
  4489. if ac_fn_c_try_compile "$LINENO"
  4490. then :
  4491. ac_cv_prog_cc_c99=$ac_arg
  4492. fi
  4493. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4494. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4495. done
  4496. rm -f conftest.$ac_ext
  4497. CC=$ac_save_CC
  4498. fi
  4499. if test "x$ac_cv_prog_cc_c99" = xno
  4500. then :
  4501. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4502. printf "%s\n" "unsupported" >&6; }
  4503. else $as_nop
  4504. if test "x$ac_cv_prog_cc_c99" = x
  4505. then :
  4506. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4507. printf "%s\n" "none needed" >&6; }
  4508. else $as_nop
  4509. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4510. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  4511. CC="$CC $ac_cv_prog_cc_c99"
  4512. fi
  4513. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  4514. ac_prog_cc_stdc=c99
  4515. fi
  4516. fi
  4517. if test x$ac_prog_cc_stdc = xno
  4518. then :
  4519. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  4520. printf %s "checking for $CC option to enable C89 features... " >&6; }
  4521. if test ${ac_cv_prog_cc_c89+y}
  4522. then :
  4523. printf %s "(cached) " >&6
  4524. else $as_nop
  4525. ac_cv_prog_cc_c89=no
  4526. ac_save_CC=$CC
  4527. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4528. /* end confdefs.h. */
  4529. $ac_c_conftest_c89_program
  4530. _ACEOF
  4531. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4532. do
  4533. CC="$ac_save_CC $ac_arg"
  4534. if ac_fn_c_try_compile "$LINENO"
  4535. then :
  4536. ac_cv_prog_cc_c89=$ac_arg
  4537. fi
  4538. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4539. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4540. done
  4541. rm -f conftest.$ac_ext
  4542. CC=$ac_save_CC
  4543. fi
  4544. if test "x$ac_cv_prog_cc_c89" = xno
  4545. then :
  4546. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4547. printf "%s\n" "unsupported" >&6; }
  4548. else $as_nop
  4549. if test "x$ac_cv_prog_cc_c89" = x
  4550. then :
  4551. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4552. printf "%s\n" "none needed" >&6; }
  4553. else $as_nop
  4554. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4555. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  4556. CC="$CC $ac_cv_prog_cc_c89"
  4557. fi
  4558. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4559. ac_prog_cc_stdc=c89
  4560. fi
  4561. fi
  4562. ac_ext=c
  4563. ac_cpp='$CPP $CPPFLAGS'
  4564. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4565. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4566. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4567. ac_ext=c
  4568. ac_cpp='$CPP $CPPFLAGS'
  4569. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4570. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4571. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4572. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  4573. printf %s "checking whether $CC understands -c and -o together... " >&6; }
  4574. if test ${am_cv_prog_cc_c_o+y}
  4575. then :
  4576. printf %s "(cached) " >&6
  4577. else $as_nop
  4578. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4579. /* end confdefs.h. */
  4580. int
  4581. main (void)
  4582. {
  4583. ;
  4584. return 0;
  4585. }
  4586. _ACEOF
  4587. # Make sure it works both with $CC and with simple cc.
  4588. # Following AC_PROG_CC_C_O, we do the test twice because some
  4589. # compilers refuse to overwrite an existing .o file with -o,
  4590. # though they will create one.
  4591. am_cv_prog_cc_c_o=yes
  4592. for am_i in 1 2; do
  4593. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  4594. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  4595. ac_status=$?
  4596. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4597. (exit $ac_status); } \
  4598. && test -f conftest2.$ac_objext; then
  4599. : OK
  4600. else
  4601. am_cv_prog_cc_c_o=no
  4602. break
  4603. fi
  4604. done
  4605. rm -f core conftest*
  4606. unset am_i
  4607. fi
  4608. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4609. printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
  4610. if test "$am_cv_prog_cc_c_o" != yes; then
  4611. # Losing compiler, so override with the script.
  4612. # FIXME: It is wrong to rewrite CC.
  4613. # But if we don't then we get into trouble of one sort or another.
  4614. # A longer-term fix would be to have automake use am__CC in this case,
  4615. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4616. CC="$am_aux_dir/compile $CC"
  4617. fi
  4618. ac_ext=c
  4619. ac_cpp='$CPP $CPPFLAGS'
  4620. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4621. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4622. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4623. depcc="$CC" am_compiler_list=
  4624. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4625. printf %s "checking dependency style of $depcc... " >&6; }
  4626. if test ${am_cv_CC_dependencies_compiler_type+y}
  4627. then :
  4628. printf %s "(cached) " >&6
  4629. else $as_nop
  4630. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4631. # We make a subdir and do the tests there. Otherwise we can end up
  4632. # making bogus files that we don't know about and never remove. For
  4633. # instance it was reported that on HP-UX the gcc test will end up
  4634. # making a dummy file named 'D' -- because '-MD' means "put the output
  4635. # in D".
  4636. rm -rf conftest.dir
  4637. mkdir conftest.dir
  4638. # Copy depcomp to subdir because otherwise we won't find it if we're
  4639. # using a relative directory.
  4640. cp "$am_depcomp" conftest.dir
  4641. cd conftest.dir
  4642. # We will build objects and dependencies in a subdirectory because
  4643. # it helps to detect inapplicable dependency modes. For instance
  4644. # both Tru64's cc and ICC support -MD to output dependencies as a
  4645. # side effect of compilation, but ICC will put the dependencies in
  4646. # the current directory while Tru64 will put them in the object
  4647. # directory.
  4648. mkdir sub
  4649. am_cv_CC_dependencies_compiler_type=none
  4650. if test "$am_compiler_list" = ""; then
  4651. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4652. fi
  4653. am__universal=false
  4654. case " $depcc " in #(
  4655. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4656. esac
  4657. for depmode in $am_compiler_list; do
  4658. # Setup a source with many dependencies, because some compilers
  4659. # like to wrap large dependency lists on column 80 (with \), and
  4660. # we should not choose a depcomp mode which is confused by this.
  4661. #
  4662. # We need to recreate these files for each test, as the compiler may
  4663. # overwrite some of them when testing with obscure command lines.
  4664. # This happens at least with the AIX C compiler.
  4665. : > sub/conftest.c
  4666. for i in 1 2 3 4 5 6; do
  4667. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4668. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4669. # Solaris 10 /bin/sh.
  4670. echo '/* dummy */' > sub/conftst$i.h
  4671. done
  4672. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4673. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4674. # mode. It turns out that the SunPro C++ compiler does not properly
  4675. # handle '-M -o', and we need to detect this. Also, some Intel
  4676. # versions had trouble with output in subdirs.
  4677. am__obj=sub/conftest.${OBJEXT-o}
  4678. am__minus_obj="-o $am__obj"
  4679. case $depmode in
  4680. gcc)
  4681. # This depmode causes a compiler race in universal mode.
  4682. test "$am__universal" = false || continue
  4683. ;;
  4684. nosideeffect)
  4685. # After this tag, mechanisms are not by side-effect, so they'll
  4686. # only be used when explicitly requested.
  4687. if test "x$enable_dependency_tracking" = xyes; then
  4688. continue
  4689. else
  4690. break
  4691. fi
  4692. ;;
  4693. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4694. # This compiler won't grok '-c -o', but also, the minuso test has
  4695. # not run yet. These depmodes are late enough in the game, and
  4696. # so weak that their functioning should not be impacted.
  4697. am__obj=conftest.${OBJEXT-o}
  4698. am__minus_obj=
  4699. ;;
  4700. none) break ;;
  4701. esac
  4702. if depmode=$depmode \
  4703. source=sub/conftest.c object=$am__obj \
  4704. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4705. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4706. >/dev/null 2>conftest.err &&
  4707. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4708. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4709. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4710. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4711. # icc doesn't choke on unknown options, it will just issue warnings
  4712. # or remarks (even with -Werror). So we grep stderr for any message
  4713. # that says an option was ignored or not supported.
  4714. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4715. # icc: Command line warning: ignoring option '-M'; no argument required
  4716. # The diagnosis changed in icc 8.0:
  4717. # icc: Command line remark: option '-MP' not supported
  4718. if (grep 'ignoring option' conftest.err ||
  4719. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4720. am_cv_CC_dependencies_compiler_type=$depmode
  4721. break
  4722. fi
  4723. fi
  4724. done
  4725. cd ..
  4726. rm -rf conftest.dir
  4727. else
  4728. am_cv_CC_dependencies_compiler_type=none
  4729. fi
  4730. fi
  4731. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4732. printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
  4733. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4734. if
  4735. test "x$enable_dependency_tracking" != xno \
  4736. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4737. am__fastdepCC_TRUE=
  4738. am__fastdepCC_FALSE='#'
  4739. else
  4740. am__fastdepCC_TRUE='#'
  4741. am__fastdepCC_FALSE=
  4742. fi
  4743. ac_header= ac_cache=
  4744. for ac_item in $ac_header_c_list
  4745. do
  4746. if test $ac_cache; then
  4747. ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
  4748. if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
  4749. printf "%s\n" "#define $ac_item 1" >> confdefs.h
  4750. fi
  4751. ac_header= ac_cache=
  4752. elif test $ac_header; then
  4753. ac_cache=$ac_item
  4754. else
  4755. ac_header=$ac_item
  4756. fi
  4757. done
  4758. if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
  4759. then :
  4760. printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
  4761. fi
  4762. ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
  4763. if test "x$ac_cv_type_long_long" = xyes
  4764. then :
  4765. printf "%s\n" "#define HAVE_LONGLONG 1" >>confdefs.h
  4766. longlong="yes"
  4767. fi
  4768. #
  4769. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
  4770. printf %s "checking if _REENTRANT is already defined... " >&6; }
  4771. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4772. /* end confdefs.h. */
  4773. int
  4774. main (void)
  4775. {
  4776. #ifdef _REENTRANT
  4777. int dummy=1;
  4778. #else
  4779. force compilation error
  4780. #endif
  4781. ;
  4782. return 0;
  4783. }
  4784. _ACEOF
  4785. if ac_fn_c_try_compile "$LINENO"
  4786. then :
  4787. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4788. printf "%s\n" "yes" >&6; }
  4789. tmp_reentrant_initially_defined="yes"
  4790. else $as_nop
  4791. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4792. printf "%s\n" "no" >&6; }
  4793. tmp_reentrant_initially_defined="no"
  4794. fi
  4795. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4796. #
  4797. if test "$tmp_reentrant_initially_defined" = "no"; then
  4798. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
  4799. printf %s "checking if _REENTRANT is actually needed... " >&6; }
  4800. case $host in
  4801. *-*-solaris* | *-*-hpux*)
  4802. tmp_need_reentrant="yes"
  4803. ;;
  4804. *)
  4805. tmp_need_reentrant="no"
  4806. ;;
  4807. esac
  4808. if test "$tmp_need_reentrant" = "yes"; then
  4809. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4810. printf "%s\n" "yes" >&6; }
  4811. else
  4812. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4813. printf "%s\n" "no" >&6; }
  4814. fi
  4815. fi
  4816. #
  4817. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
  4818. printf %s "checking if _REENTRANT is onwards defined... " >&6; }
  4819. if test "$tmp_reentrant_initially_defined" = "yes" ||
  4820. test "$tmp_need_reentrant" = "yes"; then
  4821. printf "%s\n" "#define NEED_REENTRANT 1" >>confdefs.h
  4822. cat >>confdefs.h <<_EOF
  4823. #ifndef _REENTRANT
  4824. # define _REENTRANT
  4825. #endif
  4826. _EOF
  4827. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4828. printf "%s\n" "yes" >&6; }
  4829. else
  4830. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4831. printf "%s\n" "no" >&6; }
  4832. fi
  4833. #
  4834. # Some systems (Solaris?) have socket() in -lsocket.
  4835. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
  4836. printf %s "checking for library containing socket... " >&6; }
  4837. if test ${ac_cv_search_socket+y}
  4838. then :
  4839. printf %s "(cached) " >&6
  4840. else $as_nop
  4841. ac_func_search_save_LIBS=$LIBS
  4842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4843. /* end confdefs.h. */
  4844. /* Override any GCC internal prototype to avoid an error.
  4845. Use char because int might match the return type of a GCC
  4846. builtin and then its argument prototype would still apply. */
  4847. char socket ();
  4848. int
  4849. main (void)
  4850. {
  4851. return socket ();
  4852. ;
  4853. return 0;
  4854. }
  4855. _ACEOF
  4856. for ac_lib in '' socket
  4857. do
  4858. if test -z "$ac_lib"; then
  4859. ac_res="none required"
  4860. else
  4861. ac_res=-l$ac_lib
  4862. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4863. fi
  4864. if ac_fn_c_try_link "$LINENO"
  4865. then :
  4866. ac_cv_search_socket=$ac_res
  4867. fi
  4868. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  4869. conftest$ac_exeext
  4870. if test ${ac_cv_search_socket+y}
  4871. then :
  4872. break
  4873. fi
  4874. done
  4875. if test ${ac_cv_search_socket+y}
  4876. then :
  4877. else $as_nop
  4878. ac_cv_search_socket=no
  4879. fi
  4880. rm conftest.$ac_ext
  4881. LIBS=$ac_func_search_save_LIBS
  4882. fi
  4883. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
  4884. printf "%s\n" "$ac_cv_search_socket" >&6; }
  4885. ac_res=$ac_cv_search_socket
  4886. if test "$ac_res" != no
  4887. then :
  4888. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4889. fi
  4890. # Solaris has inet_addr() in -lnsl.
  4891. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_addr" >&5
  4892. printf %s "checking for library containing inet_addr... " >&6; }
  4893. if test ${ac_cv_search_inet_addr+y}
  4894. then :
  4895. printf %s "(cached) " >&6
  4896. else $as_nop
  4897. ac_func_search_save_LIBS=$LIBS
  4898. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4899. /* end confdefs.h. */
  4900. /* Override any GCC internal prototype to avoid an error.
  4901. Use char because int might match the return type of a GCC
  4902. builtin and then its argument prototype would still apply. */
  4903. char inet_addr ();
  4904. int
  4905. main (void)
  4906. {
  4907. return inet_addr ();
  4908. ;
  4909. return 0;
  4910. }
  4911. _ACEOF
  4912. for ac_lib in '' nsl
  4913. do
  4914. if test -z "$ac_lib"; then
  4915. ac_res="none required"
  4916. else
  4917. ac_res=-l$ac_lib
  4918. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4919. fi
  4920. if ac_fn_c_try_link "$LINENO"
  4921. then :
  4922. ac_cv_search_inet_addr=$ac_res
  4923. fi
  4924. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  4925. conftest$ac_exeext
  4926. if test ${ac_cv_search_inet_addr+y}
  4927. then :
  4928. break
  4929. fi
  4930. done
  4931. if test ${ac_cv_search_inet_addr+y}
  4932. then :
  4933. else $as_nop
  4934. ac_cv_search_inet_addr=no
  4935. fi
  4936. rm conftest.$ac_ext
  4937. LIBS=$ac_func_search_save_LIBS
  4938. fi
  4939. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_addr" >&5
  4940. printf "%s\n" "$ac_cv_search_inet_addr" >&6; }
  4941. ac_res=$ac_cv_search_inet_addr
  4942. if test "$ac_res" != no
  4943. then :
  4944. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4945. fi
  4946. ac_ext=c
  4947. ac_cpp='$CPP $CPPFLAGS'
  4948. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4949. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4950. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4951. if test -n "$ac_tool_prefix"; then
  4952. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4953. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4954. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4955. printf %s "checking for $ac_word... " >&6; }
  4956. if test ${ac_cv_prog_CC+y}
  4957. then :
  4958. printf %s "(cached) " >&6
  4959. else $as_nop
  4960. if test -n "$CC"; then
  4961. ac_cv_prog_CC="$CC" # Let the user override the test.
  4962. else
  4963. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4964. for as_dir in $PATH
  4965. do
  4966. IFS=$as_save_IFS
  4967. case $as_dir in #(((
  4968. '') as_dir=./ ;;
  4969. */) ;;
  4970. *) as_dir=$as_dir/ ;;
  4971. esac
  4972. for ac_exec_ext in '' $ac_executable_extensions; do
  4973. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4974. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4975. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4976. break 2
  4977. fi
  4978. done
  4979. done
  4980. IFS=$as_save_IFS
  4981. fi
  4982. fi
  4983. CC=$ac_cv_prog_CC
  4984. if test -n "$CC"; then
  4985. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4986. printf "%s\n" "$CC" >&6; }
  4987. else
  4988. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4989. printf "%s\n" "no" >&6; }
  4990. fi
  4991. fi
  4992. if test -z "$ac_cv_prog_CC"; then
  4993. ac_ct_CC=$CC
  4994. # Extract the first word of "gcc", so it can be a program name with args.
  4995. set dummy gcc; ac_word=$2
  4996. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4997. printf %s "checking for $ac_word... " >&6; }
  4998. if test ${ac_cv_prog_ac_ct_CC+y}
  4999. then :
  5000. printf %s "(cached) " >&6
  5001. else $as_nop
  5002. if test -n "$ac_ct_CC"; then
  5003. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  5004. else
  5005. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5006. for as_dir in $PATH
  5007. do
  5008. IFS=$as_save_IFS
  5009. case $as_dir in #(((
  5010. '') as_dir=./ ;;
  5011. */) ;;
  5012. *) as_dir=$as_dir/ ;;
  5013. esac
  5014. for ac_exec_ext in '' $ac_executable_extensions; do
  5015. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5016. ac_cv_prog_ac_ct_CC="gcc"
  5017. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5018. break 2
  5019. fi
  5020. done
  5021. done
  5022. IFS=$as_save_IFS
  5023. fi
  5024. fi
  5025. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  5026. if test -n "$ac_ct_CC"; then
  5027. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  5028. printf "%s\n" "$ac_ct_CC" >&6; }
  5029. else
  5030. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5031. printf "%s\n" "no" >&6; }
  5032. fi
  5033. if test "x$ac_ct_CC" = x; then
  5034. CC=""
  5035. else
  5036. case $cross_compiling:$ac_tool_warned in
  5037. yes:)
  5038. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5039. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5040. ac_tool_warned=yes ;;
  5041. esac
  5042. CC=$ac_ct_CC
  5043. fi
  5044. else
  5045. CC="$ac_cv_prog_CC"
  5046. fi
  5047. if test -z "$CC"; then
  5048. if test -n "$ac_tool_prefix"; then
  5049. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  5050. set dummy ${ac_tool_prefix}cc; ac_word=$2
  5051. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5052. printf %s "checking for $ac_word... " >&6; }
  5053. if test ${ac_cv_prog_CC+y}
  5054. then :
  5055. printf %s "(cached) " >&6
  5056. else $as_nop
  5057. if test -n "$CC"; then
  5058. ac_cv_prog_CC="$CC" # Let the user override the test.
  5059. else
  5060. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5061. for as_dir in $PATH
  5062. do
  5063. IFS=$as_save_IFS
  5064. case $as_dir in #(((
  5065. '') as_dir=./ ;;
  5066. */) ;;
  5067. *) as_dir=$as_dir/ ;;
  5068. esac
  5069. for ac_exec_ext in '' $ac_executable_extensions; do
  5070. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5071. ac_cv_prog_CC="${ac_tool_prefix}cc"
  5072. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5073. break 2
  5074. fi
  5075. done
  5076. done
  5077. IFS=$as_save_IFS
  5078. fi
  5079. fi
  5080. CC=$ac_cv_prog_CC
  5081. if test -n "$CC"; then
  5082. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  5083. printf "%s\n" "$CC" >&6; }
  5084. else
  5085. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5086. printf "%s\n" "no" >&6; }
  5087. fi
  5088. fi
  5089. fi
  5090. if test -z "$CC"; then
  5091. # Extract the first word of "cc", so it can be a program name with args.
  5092. set dummy cc; ac_word=$2
  5093. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5094. printf %s "checking for $ac_word... " >&6; }
  5095. if test ${ac_cv_prog_CC+y}
  5096. then :
  5097. printf %s "(cached) " >&6
  5098. else $as_nop
  5099. if test -n "$CC"; then
  5100. ac_cv_prog_CC="$CC" # Let the user override the test.
  5101. else
  5102. ac_prog_rejected=no
  5103. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5104. for as_dir in $PATH
  5105. do
  5106. IFS=$as_save_IFS
  5107. case $as_dir in #(((
  5108. '') as_dir=./ ;;
  5109. */) ;;
  5110. *) as_dir=$as_dir/ ;;
  5111. esac
  5112. for ac_exec_ext in '' $ac_executable_extensions; do
  5113. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5114. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  5115. ac_prog_rejected=yes
  5116. continue
  5117. fi
  5118. ac_cv_prog_CC="cc"
  5119. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5120. break 2
  5121. fi
  5122. done
  5123. done
  5124. IFS=$as_save_IFS
  5125. if test $ac_prog_rejected = yes; then
  5126. # We found a bogon in the path, so make sure we never use it.
  5127. set dummy $ac_cv_prog_CC
  5128. shift
  5129. if test $# != 0; then
  5130. # We chose a different compiler from the bogus one.
  5131. # However, it has the same basename, so the bogon will be chosen
  5132. # first if we set CC to just the basename; use the full file name.
  5133. shift
  5134. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  5135. fi
  5136. fi
  5137. fi
  5138. fi
  5139. CC=$ac_cv_prog_CC
  5140. if test -n "$CC"; then
  5141. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  5142. printf "%s\n" "$CC" >&6; }
  5143. else
  5144. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5145. printf "%s\n" "no" >&6; }
  5146. fi
  5147. fi
  5148. if test -z "$CC"; then
  5149. if test -n "$ac_tool_prefix"; then
  5150. for ac_prog in cl.exe
  5151. do
  5152. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5153. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5154. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5155. printf %s "checking for $ac_word... " >&6; }
  5156. if test ${ac_cv_prog_CC+y}
  5157. then :
  5158. printf %s "(cached) " >&6
  5159. else $as_nop
  5160. if test -n "$CC"; then
  5161. ac_cv_prog_CC="$CC" # Let the user override the test.
  5162. else
  5163. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5164. for as_dir in $PATH
  5165. do
  5166. IFS=$as_save_IFS
  5167. case $as_dir in #(((
  5168. '') as_dir=./ ;;
  5169. */) ;;
  5170. *) as_dir=$as_dir/ ;;
  5171. esac
  5172. for ac_exec_ext in '' $ac_executable_extensions; do
  5173. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5174. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  5175. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5176. break 2
  5177. fi
  5178. done
  5179. done
  5180. IFS=$as_save_IFS
  5181. fi
  5182. fi
  5183. CC=$ac_cv_prog_CC
  5184. if test -n "$CC"; then
  5185. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  5186. printf "%s\n" "$CC" >&6; }
  5187. else
  5188. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5189. printf "%s\n" "no" >&6; }
  5190. fi
  5191. test -n "$CC" && break
  5192. done
  5193. fi
  5194. if test -z "$CC"; then
  5195. ac_ct_CC=$CC
  5196. for ac_prog in cl.exe
  5197. do
  5198. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5199. set dummy $ac_prog; ac_word=$2
  5200. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5201. printf %s "checking for $ac_word... " >&6; }
  5202. if test ${ac_cv_prog_ac_ct_CC+y}
  5203. then :
  5204. printf %s "(cached) " >&6
  5205. else $as_nop
  5206. if test -n "$ac_ct_CC"; then
  5207. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  5208. else
  5209. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5210. for as_dir in $PATH
  5211. do
  5212. IFS=$as_save_IFS
  5213. case $as_dir in #(((
  5214. '') as_dir=./ ;;
  5215. */) ;;
  5216. *) as_dir=$as_dir/ ;;
  5217. esac
  5218. for ac_exec_ext in '' $ac_executable_extensions; do
  5219. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5220. ac_cv_prog_ac_ct_CC="$ac_prog"
  5221. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5222. break 2
  5223. fi
  5224. done
  5225. done
  5226. IFS=$as_save_IFS
  5227. fi
  5228. fi
  5229. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  5230. if test -n "$ac_ct_CC"; then
  5231. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  5232. printf "%s\n" "$ac_ct_CC" >&6; }
  5233. else
  5234. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5235. printf "%s\n" "no" >&6; }
  5236. fi
  5237. test -n "$ac_ct_CC" && break
  5238. done
  5239. if test "x$ac_ct_CC" = x; then
  5240. CC=""
  5241. else
  5242. case $cross_compiling:$ac_tool_warned in
  5243. yes:)
  5244. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5245. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5246. ac_tool_warned=yes ;;
  5247. esac
  5248. CC=$ac_ct_CC
  5249. fi
  5250. fi
  5251. fi
  5252. if test -z "$CC"; then
  5253. if test -n "$ac_tool_prefix"; then
  5254. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  5255. set dummy ${ac_tool_prefix}clang; ac_word=$2
  5256. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5257. printf %s "checking for $ac_word... " >&6; }
  5258. if test ${ac_cv_prog_CC+y}
  5259. then :
  5260. printf %s "(cached) " >&6
  5261. else $as_nop
  5262. if test -n "$CC"; then
  5263. ac_cv_prog_CC="$CC" # Let the user override the test.
  5264. else
  5265. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5266. for as_dir in $PATH
  5267. do
  5268. IFS=$as_save_IFS
  5269. case $as_dir in #(((
  5270. '') as_dir=./ ;;
  5271. */) ;;
  5272. *) as_dir=$as_dir/ ;;
  5273. esac
  5274. for ac_exec_ext in '' $ac_executable_extensions; do
  5275. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5276. ac_cv_prog_CC="${ac_tool_prefix}clang"
  5277. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5278. break 2
  5279. fi
  5280. done
  5281. done
  5282. IFS=$as_save_IFS
  5283. fi
  5284. fi
  5285. CC=$ac_cv_prog_CC
  5286. if test -n "$CC"; then
  5287. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  5288. printf "%s\n" "$CC" >&6; }
  5289. else
  5290. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5291. printf "%s\n" "no" >&6; }
  5292. fi
  5293. fi
  5294. if test -z "$ac_cv_prog_CC"; then
  5295. ac_ct_CC=$CC
  5296. # Extract the first word of "clang", so it can be a program name with args.
  5297. set dummy clang; ac_word=$2
  5298. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5299. printf %s "checking for $ac_word... " >&6; }
  5300. if test ${ac_cv_prog_ac_ct_CC+y}
  5301. then :
  5302. printf %s "(cached) " >&6
  5303. else $as_nop
  5304. if test -n "$ac_ct_CC"; then
  5305. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  5306. else
  5307. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5308. for as_dir in $PATH
  5309. do
  5310. IFS=$as_save_IFS
  5311. case $as_dir in #(((
  5312. '') as_dir=./ ;;
  5313. */) ;;
  5314. *) as_dir=$as_dir/ ;;
  5315. esac
  5316. for ac_exec_ext in '' $ac_executable_extensions; do
  5317. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5318. ac_cv_prog_ac_ct_CC="clang"
  5319. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5320. break 2
  5321. fi
  5322. done
  5323. done
  5324. IFS=$as_save_IFS
  5325. fi
  5326. fi
  5327. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  5328. if test -n "$ac_ct_CC"; then
  5329. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  5330. printf "%s\n" "$ac_ct_CC" >&6; }
  5331. else
  5332. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5333. printf "%s\n" "no" >&6; }
  5334. fi
  5335. if test "x$ac_ct_CC" = x; then
  5336. CC=""
  5337. else
  5338. case $cross_compiling:$ac_tool_warned in
  5339. yes:)
  5340. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5341. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5342. ac_tool_warned=yes ;;
  5343. esac
  5344. CC=$ac_ct_CC
  5345. fi
  5346. else
  5347. CC="$ac_cv_prog_CC"
  5348. fi
  5349. fi
  5350. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5351. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  5352. as_fn_error $? "no acceptable C compiler found in \$PATH
  5353. See \`config.log' for more details" "$LINENO" 5; }
  5354. # Provide some information about the compiler.
  5355. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  5356. set X $ac_compile
  5357. ac_compiler=$2
  5358. for ac_option in --version -v -V -qversion -version; do
  5359. { { ac_try="$ac_compiler $ac_option >&5"
  5360. case "(($ac_try" in
  5361. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5362. *) ac_try_echo=$ac_try;;
  5363. esac
  5364. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5365. printf "%s\n" "$ac_try_echo"; } >&5
  5366. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  5367. ac_status=$?
  5368. if test -s conftest.err; then
  5369. sed '10a\
  5370. ... rest of stderr output deleted ...
  5371. 10q' conftest.err >conftest.er1
  5372. cat conftest.er1 >&5
  5373. fi
  5374. rm -f conftest.er1 conftest.err
  5375. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5376. test $ac_status = 0; }
  5377. done
  5378. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  5379. printf %s "checking whether the compiler supports GNU C... " >&6; }
  5380. if test ${ac_cv_c_compiler_gnu+y}
  5381. then :
  5382. printf %s "(cached) " >&6
  5383. else $as_nop
  5384. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5385. /* end confdefs.h. */
  5386. int
  5387. main (void)
  5388. {
  5389. #ifndef __GNUC__
  5390. choke me
  5391. #endif
  5392. ;
  5393. return 0;
  5394. }
  5395. _ACEOF
  5396. if ac_fn_c_try_compile "$LINENO"
  5397. then :
  5398. ac_compiler_gnu=yes
  5399. else $as_nop
  5400. ac_compiler_gnu=no
  5401. fi
  5402. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5403. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  5404. fi
  5405. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  5406. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  5407. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5408. if test $ac_compiler_gnu = yes; then
  5409. GCC=yes
  5410. else
  5411. GCC=
  5412. fi
  5413. ac_test_CFLAGS=${CFLAGS+y}
  5414. ac_save_CFLAGS=$CFLAGS
  5415. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  5416. printf %s "checking whether $CC accepts -g... " >&6; }
  5417. if test ${ac_cv_prog_cc_g+y}
  5418. then :
  5419. printf %s "(cached) " >&6
  5420. else $as_nop
  5421. ac_save_c_werror_flag=$ac_c_werror_flag
  5422. ac_c_werror_flag=yes
  5423. ac_cv_prog_cc_g=no
  5424. CFLAGS="-g"
  5425. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5426. /* end confdefs.h. */
  5427. int
  5428. main (void)
  5429. {
  5430. ;
  5431. return 0;
  5432. }
  5433. _ACEOF
  5434. if ac_fn_c_try_compile "$LINENO"
  5435. then :
  5436. ac_cv_prog_cc_g=yes
  5437. else $as_nop
  5438. CFLAGS=""
  5439. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5440. /* end confdefs.h. */
  5441. int
  5442. main (void)
  5443. {
  5444. ;
  5445. return 0;
  5446. }
  5447. _ACEOF
  5448. if ac_fn_c_try_compile "$LINENO"
  5449. then :
  5450. else $as_nop
  5451. ac_c_werror_flag=$ac_save_c_werror_flag
  5452. CFLAGS="-g"
  5453. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5454. /* end confdefs.h. */
  5455. int
  5456. main (void)
  5457. {
  5458. ;
  5459. return 0;
  5460. }
  5461. _ACEOF
  5462. if ac_fn_c_try_compile "$LINENO"
  5463. then :
  5464. ac_cv_prog_cc_g=yes
  5465. fi
  5466. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5467. fi
  5468. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5469. fi
  5470. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5471. ac_c_werror_flag=$ac_save_c_werror_flag
  5472. fi
  5473. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  5474. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  5475. if test $ac_test_CFLAGS; then
  5476. CFLAGS=$ac_save_CFLAGS
  5477. elif test $ac_cv_prog_cc_g = yes; then
  5478. if test "$GCC" = yes; then
  5479. CFLAGS="-g -O2"
  5480. else
  5481. CFLAGS="-g"
  5482. fi
  5483. else
  5484. if test "$GCC" = yes; then
  5485. CFLAGS="-O2"
  5486. else
  5487. CFLAGS=
  5488. fi
  5489. fi
  5490. ac_prog_cc_stdc=no
  5491. if test x$ac_prog_cc_stdc = xno
  5492. then :
  5493. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  5494. printf %s "checking for $CC option to enable C11 features... " >&6; }
  5495. if test ${ac_cv_prog_cc_c11+y}
  5496. then :
  5497. printf %s "(cached) " >&6
  5498. else $as_nop
  5499. ac_cv_prog_cc_c11=no
  5500. ac_save_CC=$CC
  5501. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5502. /* end confdefs.h. */
  5503. $ac_c_conftest_c11_program
  5504. _ACEOF
  5505. for ac_arg in '' -std=gnu11
  5506. do
  5507. CC="$ac_save_CC $ac_arg"
  5508. if ac_fn_c_try_compile "$LINENO"
  5509. then :
  5510. ac_cv_prog_cc_c11=$ac_arg
  5511. fi
  5512. rm -f core conftest.err conftest.$ac_objext conftest.beam
  5513. test "x$ac_cv_prog_cc_c11" != "xno" && break
  5514. done
  5515. rm -f conftest.$ac_ext
  5516. CC=$ac_save_CC
  5517. fi
  5518. if test "x$ac_cv_prog_cc_c11" = xno
  5519. then :
  5520. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  5521. printf "%s\n" "unsupported" >&6; }
  5522. else $as_nop
  5523. if test "x$ac_cv_prog_cc_c11" = x
  5524. then :
  5525. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  5526. printf "%s\n" "none needed" >&6; }
  5527. else $as_nop
  5528. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  5529. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  5530. CC="$CC $ac_cv_prog_cc_c11"
  5531. fi
  5532. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  5533. ac_prog_cc_stdc=c11
  5534. fi
  5535. fi
  5536. if test x$ac_prog_cc_stdc = xno
  5537. then :
  5538. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  5539. printf %s "checking for $CC option to enable C99 features... " >&6; }
  5540. if test ${ac_cv_prog_cc_c99+y}
  5541. then :
  5542. printf %s "(cached) " >&6
  5543. else $as_nop
  5544. ac_cv_prog_cc_c99=no
  5545. ac_save_CC=$CC
  5546. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5547. /* end confdefs.h. */
  5548. $ac_c_conftest_c99_program
  5549. _ACEOF
  5550. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  5551. do
  5552. CC="$ac_save_CC $ac_arg"
  5553. if ac_fn_c_try_compile "$LINENO"
  5554. then :
  5555. ac_cv_prog_cc_c99=$ac_arg
  5556. fi
  5557. rm -f core conftest.err conftest.$ac_objext conftest.beam
  5558. test "x$ac_cv_prog_cc_c99" != "xno" && break
  5559. done
  5560. rm -f conftest.$ac_ext
  5561. CC=$ac_save_CC
  5562. fi
  5563. if test "x$ac_cv_prog_cc_c99" = xno
  5564. then :
  5565. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  5566. printf "%s\n" "unsupported" >&6; }
  5567. else $as_nop
  5568. if test "x$ac_cv_prog_cc_c99" = x
  5569. then :
  5570. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  5571. printf "%s\n" "none needed" >&6; }
  5572. else $as_nop
  5573. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  5574. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  5575. CC="$CC $ac_cv_prog_cc_c99"
  5576. fi
  5577. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  5578. ac_prog_cc_stdc=c99
  5579. fi
  5580. fi
  5581. if test x$ac_prog_cc_stdc = xno
  5582. then :
  5583. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  5584. printf %s "checking for $CC option to enable C89 features... " >&6; }
  5585. if test ${ac_cv_prog_cc_c89+y}
  5586. then :
  5587. printf %s "(cached) " >&6
  5588. else $as_nop
  5589. ac_cv_prog_cc_c89=no
  5590. ac_save_CC=$CC
  5591. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5592. /* end confdefs.h. */
  5593. $ac_c_conftest_c89_program
  5594. _ACEOF
  5595. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  5596. do
  5597. CC="$ac_save_CC $ac_arg"
  5598. if ac_fn_c_try_compile "$LINENO"
  5599. then :
  5600. ac_cv_prog_cc_c89=$ac_arg
  5601. fi
  5602. rm -f core conftest.err conftest.$ac_objext conftest.beam
  5603. test "x$ac_cv_prog_cc_c89" != "xno" && break
  5604. done
  5605. rm -f conftest.$ac_ext
  5606. CC=$ac_save_CC
  5607. fi
  5608. if test "x$ac_cv_prog_cc_c89" = xno
  5609. then :
  5610. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  5611. printf "%s\n" "unsupported" >&6; }
  5612. else $as_nop
  5613. if test "x$ac_cv_prog_cc_c89" = x
  5614. then :
  5615. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  5616. printf "%s\n" "none needed" >&6; }
  5617. else $as_nop
  5618. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  5619. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  5620. CC="$CC $ac_cv_prog_cc_c89"
  5621. fi
  5622. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  5623. ac_prog_cc_stdc=c89
  5624. fi
  5625. fi
  5626. ac_ext=c
  5627. ac_cpp='$CPP $CPPFLAGS'
  5628. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5629. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5630. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5631. ac_ext=c
  5632. ac_cpp='$CPP $CPPFLAGS'
  5633. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5634. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5635. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5636. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  5637. printf %s "checking whether $CC understands -c and -o together... " >&6; }
  5638. if test ${am_cv_prog_cc_c_o+y}
  5639. then :
  5640. printf %s "(cached) " >&6
  5641. else $as_nop
  5642. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5643. /* end confdefs.h. */
  5644. int
  5645. main (void)
  5646. {
  5647. ;
  5648. return 0;
  5649. }
  5650. _ACEOF
  5651. # Make sure it works both with $CC and with simple cc.
  5652. # Following AC_PROG_CC_C_O, we do the test twice because some
  5653. # compilers refuse to overwrite an existing .o file with -o,
  5654. # though they will create one.
  5655. am_cv_prog_cc_c_o=yes
  5656. for am_i in 1 2; do
  5657. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  5658. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  5659. ac_status=$?
  5660. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5661. (exit $ac_status); } \
  5662. && test -f conftest2.$ac_objext; then
  5663. : OK
  5664. else
  5665. am_cv_prog_cc_c_o=no
  5666. break
  5667. fi
  5668. done
  5669. rm -f core conftest*
  5670. unset am_i
  5671. fi
  5672. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  5673. printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
  5674. if test "$am_cv_prog_cc_c_o" != yes; then
  5675. # Losing compiler, so override with the script.
  5676. # FIXME: It is wrong to rewrite CC.
  5677. # But if we don't then we get into trouble of one sort or another.
  5678. # A longer-term fix would be to have automake use am__CC in this case,
  5679. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  5680. CC="$am_aux_dir/compile $CC"
  5681. fi
  5682. ac_ext=c
  5683. ac_cpp='$CPP $CPPFLAGS'
  5684. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5685. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5686. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5687. depcc="$CC" am_compiler_list=
  5688. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  5689. printf %s "checking dependency style of $depcc... " >&6; }
  5690. if test ${am_cv_CC_dependencies_compiler_type+y}
  5691. then :
  5692. printf %s "(cached) " >&6
  5693. else $as_nop
  5694. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5695. # We make a subdir and do the tests there. Otherwise we can end up
  5696. # making bogus files that we don't know about and never remove. For
  5697. # instance it was reported that on HP-UX the gcc test will end up
  5698. # making a dummy file named 'D' -- because '-MD' means "put the output
  5699. # in D".
  5700. rm -rf conftest.dir
  5701. mkdir conftest.dir
  5702. # Copy depcomp to subdir because otherwise we won't find it if we're
  5703. # using a relative directory.
  5704. cp "$am_depcomp" conftest.dir
  5705. cd conftest.dir
  5706. # We will build objects and dependencies in a subdirectory because
  5707. # it helps to detect inapplicable dependency modes. For instance
  5708. # both Tru64's cc and ICC support -MD to output dependencies as a
  5709. # side effect of compilation, but ICC will put the dependencies in
  5710. # the current directory while Tru64 will put them in the object
  5711. # directory.
  5712. mkdir sub
  5713. am_cv_CC_dependencies_compiler_type=none
  5714. if test "$am_compiler_list" = ""; then
  5715. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5716. fi
  5717. am__universal=false
  5718. case " $depcc " in #(
  5719. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  5720. esac
  5721. for depmode in $am_compiler_list; do
  5722. # Setup a source with many dependencies, because some compilers
  5723. # like to wrap large dependency lists on column 80 (with \), and
  5724. # we should not choose a depcomp mode which is confused by this.
  5725. #
  5726. # We need to recreate these files for each test, as the compiler may
  5727. # overwrite some of them when testing with obscure command lines.
  5728. # This happens at least with the AIX C compiler.
  5729. : > sub/conftest.c
  5730. for i in 1 2 3 4 5 6; do
  5731. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5732. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  5733. # Solaris 10 /bin/sh.
  5734. echo '/* dummy */' > sub/conftst$i.h
  5735. done
  5736. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5737. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  5738. # mode. It turns out that the SunPro C++ compiler does not properly
  5739. # handle '-M -o', and we need to detect this. Also, some Intel
  5740. # versions had trouble with output in subdirs.
  5741. am__obj=sub/conftest.${OBJEXT-o}
  5742. am__minus_obj="-o $am__obj"
  5743. case $depmode in
  5744. gcc)
  5745. # This depmode causes a compiler race in universal mode.
  5746. test "$am__universal" = false || continue
  5747. ;;
  5748. nosideeffect)
  5749. # After this tag, mechanisms are not by side-effect, so they'll
  5750. # only be used when explicitly requested.
  5751. if test "x$enable_dependency_tracking" = xyes; then
  5752. continue
  5753. else
  5754. break
  5755. fi
  5756. ;;
  5757. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  5758. # This compiler won't grok '-c -o', but also, the minuso test has
  5759. # not run yet. These depmodes are late enough in the game, and
  5760. # so weak that their functioning should not be impacted.
  5761. am__obj=conftest.${OBJEXT-o}
  5762. am__minus_obj=
  5763. ;;
  5764. none) break ;;
  5765. esac
  5766. if depmode=$depmode \
  5767. source=sub/conftest.c object=$am__obj \
  5768. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5769. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  5770. >/dev/null 2>conftest.err &&
  5771. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  5772. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5773. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  5774. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5775. # icc doesn't choke on unknown options, it will just issue warnings
  5776. # or remarks (even with -Werror). So we grep stderr for any message
  5777. # that says an option was ignored or not supported.
  5778. # When given -MP, icc 7.0 and 7.1 complain thusly:
  5779. # icc: Command line warning: ignoring option '-M'; no argument required
  5780. # The diagnosis changed in icc 8.0:
  5781. # icc: Command line remark: option '-MP' not supported
  5782. if (grep 'ignoring option' conftest.err ||
  5783. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5784. am_cv_CC_dependencies_compiler_type=$depmode
  5785. break
  5786. fi
  5787. fi
  5788. done
  5789. cd ..
  5790. rm -rf conftest.dir
  5791. else
  5792. am_cv_CC_dependencies_compiler_type=none
  5793. fi
  5794. fi
  5795. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  5796. printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
  5797. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  5798. if
  5799. test "x$enable_dependency_tracking" != xno \
  5800. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  5801. am__fastdepCC_TRUE=
  5802. am__fastdepCC_FALSE='#'
  5803. else
  5804. am__fastdepCC_TRUE='#'
  5805. am__fastdepCC_FALSE=
  5806. fi
  5807. ac_ext=cpp
  5808. ac_cpp='$CXXCPP $CPPFLAGS'
  5809. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5810. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5811. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5812. if test -z "$CXX"; then
  5813. if test -n "$CCC"; then
  5814. CXX=$CCC
  5815. else
  5816. if test -n "$ac_tool_prefix"; then
  5817. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  5818. do
  5819. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5820. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5821. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5822. printf %s "checking for $ac_word... " >&6; }
  5823. if test ${ac_cv_prog_CXX+y}
  5824. then :
  5825. printf %s "(cached) " >&6
  5826. else $as_nop
  5827. if test -n "$CXX"; then
  5828. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  5829. else
  5830. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5831. for as_dir in $PATH
  5832. do
  5833. IFS=$as_save_IFS
  5834. case $as_dir in #(((
  5835. '') as_dir=./ ;;
  5836. */) ;;
  5837. *) as_dir=$as_dir/ ;;
  5838. esac
  5839. for ac_exec_ext in '' $ac_executable_extensions; do
  5840. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5841. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  5842. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5843. break 2
  5844. fi
  5845. done
  5846. done
  5847. IFS=$as_save_IFS
  5848. fi
  5849. fi
  5850. CXX=$ac_cv_prog_CXX
  5851. if test -n "$CXX"; then
  5852. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  5853. printf "%s\n" "$CXX" >&6; }
  5854. else
  5855. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5856. printf "%s\n" "no" >&6; }
  5857. fi
  5858. test -n "$CXX" && break
  5859. done
  5860. fi
  5861. if test -z "$CXX"; then
  5862. ac_ct_CXX=$CXX
  5863. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  5864. do
  5865. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5866. set dummy $ac_prog; ac_word=$2
  5867. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5868. printf %s "checking for $ac_word... " >&6; }
  5869. if test ${ac_cv_prog_ac_ct_CXX+y}
  5870. then :
  5871. printf %s "(cached) " >&6
  5872. else $as_nop
  5873. if test -n "$ac_ct_CXX"; then
  5874. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  5875. else
  5876. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5877. for as_dir in $PATH
  5878. do
  5879. IFS=$as_save_IFS
  5880. case $as_dir in #(((
  5881. '') as_dir=./ ;;
  5882. */) ;;
  5883. *) as_dir=$as_dir/ ;;
  5884. esac
  5885. for ac_exec_ext in '' $ac_executable_extensions; do
  5886. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5887. ac_cv_prog_ac_ct_CXX="$ac_prog"
  5888. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5889. break 2
  5890. fi
  5891. done
  5892. done
  5893. IFS=$as_save_IFS
  5894. fi
  5895. fi
  5896. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  5897. if test -n "$ac_ct_CXX"; then
  5898. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  5899. printf "%s\n" "$ac_ct_CXX" >&6; }
  5900. else
  5901. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5902. printf "%s\n" "no" >&6; }
  5903. fi
  5904. test -n "$ac_ct_CXX" && break
  5905. done
  5906. if test "x$ac_ct_CXX" = x; then
  5907. CXX="g++"
  5908. else
  5909. case $cross_compiling:$ac_tool_warned in
  5910. yes:)
  5911. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5912. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5913. ac_tool_warned=yes ;;
  5914. esac
  5915. CXX=$ac_ct_CXX
  5916. fi
  5917. fi
  5918. fi
  5919. fi
  5920. # Provide some information about the compiler.
  5921. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  5922. set X $ac_compile
  5923. ac_compiler=$2
  5924. for ac_option in --version -v -V -qversion; do
  5925. { { ac_try="$ac_compiler $ac_option >&5"
  5926. case "(($ac_try" in
  5927. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5928. *) ac_try_echo=$ac_try;;
  5929. esac
  5930. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5931. printf "%s\n" "$ac_try_echo"; } >&5
  5932. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  5933. ac_status=$?
  5934. if test -s conftest.err; then
  5935. sed '10a\
  5936. ... rest of stderr output deleted ...
  5937. 10q' conftest.err >conftest.er1
  5938. cat conftest.er1 >&5
  5939. fi
  5940. rm -f conftest.er1 conftest.err
  5941. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5942. test $ac_status = 0; }
  5943. done
  5944. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
  5945. printf %s "checking whether the compiler supports GNU C++... " >&6; }
  5946. if test ${ac_cv_cxx_compiler_gnu+y}
  5947. then :
  5948. printf %s "(cached) " >&6
  5949. else $as_nop
  5950. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5951. /* end confdefs.h. */
  5952. int
  5953. main (void)
  5954. {
  5955. #ifndef __GNUC__
  5956. choke me
  5957. #endif
  5958. ;
  5959. return 0;
  5960. }
  5961. _ACEOF
  5962. if ac_fn_cxx_try_compile "$LINENO"
  5963. then :
  5964. ac_compiler_gnu=yes
  5965. else $as_nop
  5966. ac_compiler_gnu=no
  5967. fi
  5968. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5969. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  5970. fi
  5971. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  5972. printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
  5973. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5974. if test $ac_compiler_gnu = yes; then
  5975. GXX=yes
  5976. else
  5977. GXX=
  5978. fi
  5979. ac_test_CXXFLAGS=${CXXFLAGS+y}
  5980. ac_save_CXXFLAGS=$CXXFLAGS
  5981. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  5982. printf %s "checking whether $CXX accepts -g... " >&6; }
  5983. if test ${ac_cv_prog_cxx_g+y}
  5984. then :
  5985. printf %s "(cached) " >&6
  5986. else $as_nop
  5987. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  5988. ac_cxx_werror_flag=yes
  5989. ac_cv_prog_cxx_g=no
  5990. CXXFLAGS="-g"
  5991. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5992. /* end confdefs.h. */
  5993. int
  5994. main (void)
  5995. {
  5996. ;
  5997. return 0;
  5998. }
  5999. _ACEOF
  6000. if ac_fn_cxx_try_compile "$LINENO"
  6001. then :
  6002. ac_cv_prog_cxx_g=yes
  6003. else $as_nop
  6004. CXXFLAGS=""
  6005. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6006. /* end confdefs.h. */
  6007. int
  6008. main (void)
  6009. {
  6010. ;
  6011. return 0;
  6012. }
  6013. _ACEOF
  6014. if ac_fn_cxx_try_compile "$LINENO"
  6015. then :
  6016. else $as_nop
  6017. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  6018. CXXFLAGS="-g"
  6019. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6020. /* end confdefs.h. */
  6021. int
  6022. main (void)
  6023. {
  6024. ;
  6025. return 0;
  6026. }
  6027. _ACEOF
  6028. if ac_fn_cxx_try_compile "$LINENO"
  6029. then :
  6030. ac_cv_prog_cxx_g=yes
  6031. fi
  6032. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6033. fi
  6034. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6035. fi
  6036. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6037. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  6038. fi
  6039. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  6040. printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
  6041. if test $ac_test_CXXFLAGS; then
  6042. CXXFLAGS=$ac_save_CXXFLAGS
  6043. elif test $ac_cv_prog_cxx_g = yes; then
  6044. if test "$GXX" = yes; then
  6045. CXXFLAGS="-g -O2"
  6046. else
  6047. CXXFLAGS="-g"
  6048. fi
  6049. else
  6050. if test "$GXX" = yes; then
  6051. CXXFLAGS="-O2"
  6052. else
  6053. CXXFLAGS=
  6054. fi
  6055. fi
  6056. ac_prog_cxx_stdcxx=no
  6057. if test x$ac_prog_cxx_stdcxx = xno
  6058. then :
  6059. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
  6060. printf %s "checking for $CXX option to enable C++11 features... " >&6; }
  6061. if test ${ac_cv_prog_cxx_11+y}
  6062. then :
  6063. printf %s "(cached) " >&6
  6064. else $as_nop
  6065. ac_cv_prog_cxx_11=no
  6066. ac_save_CXX=$CXX
  6067. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6068. /* end confdefs.h. */
  6069. $ac_cxx_conftest_cxx11_program
  6070. _ACEOF
  6071. for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
  6072. do
  6073. CXX="$ac_save_CXX $ac_arg"
  6074. if ac_fn_cxx_try_compile "$LINENO"
  6075. then :
  6076. ac_cv_prog_cxx_cxx11=$ac_arg
  6077. fi
  6078. rm -f core conftest.err conftest.$ac_objext conftest.beam
  6079. test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
  6080. done
  6081. rm -f conftest.$ac_ext
  6082. CXX=$ac_save_CXX
  6083. fi
  6084. if test "x$ac_cv_prog_cxx_cxx11" = xno
  6085. then :
  6086. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  6087. printf "%s\n" "unsupported" >&6; }
  6088. else $as_nop
  6089. if test "x$ac_cv_prog_cxx_cxx11" = x
  6090. then :
  6091. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  6092. printf "%s\n" "none needed" >&6; }
  6093. else $as_nop
  6094. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
  6095. printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
  6096. CXX="$CXX $ac_cv_prog_cxx_cxx11"
  6097. fi
  6098. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
  6099. ac_prog_cxx_stdcxx=cxx11
  6100. fi
  6101. fi
  6102. if test x$ac_prog_cxx_stdcxx = xno
  6103. then :
  6104. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
  6105. printf %s "checking for $CXX option to enable C++98 features... " >&6; }
  6106. if test ${ac_cv_prog_cxx_98+y}
  6107. then :
  6108. printf %s "(cached) " >&6
  6109. else $as_nop
  6110. ac_cv_prog_cxx_98=no
  6111. ac_save_CXX=$CXX
  6112. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6113. /* end confdefs.h. */
  6114. $ac_cxx_conftest_cxx98_program
  6115. _ACEOF
  6116. for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
  6117. do
  6118. CXX="$ac_save_CXX $ac_arg"
  6119. if ac_fn_cxx_try_compile "$LINENO"
  6120. then :
  6121. ac_cv_prog_cxx_cxx98=$ac_arg
  6122. fi
  6123. rm -f core conftest.err conftest.$ac_objext conftest.beam
  6124. test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
  6125. done
  6126. rm -f conftest.$ac_ext
  6127. CXX=$ac_save_CXX
  6128. fi
  6129. if test "x$ac_cv_prog_cxx_cxx98" = xno
  6130. then :
  6131. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  6132. printf "%s\n" "unsupported" >&6; }
  6133. else $as_nop
  6134. if test "x$ac_cv_prog_cxx_cxx98" = x
  6135. then :
  6136. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  6137. printf "%s\n" "none needed" >&6; }
  6138. else $as_nop
  6139. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
  6140. printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
  6141. CXX="$CXX $ac_cv_prog_cxx_cxx98"
  6142. fi
  6143. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
  6144. ac_prog_cxx_stdcxx=cxx98
  6145. fi
  6146. fi
  6147. ac_ext=c
  6148. ac_cpp='$CPP $CPPFLAGS'
  6149. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6150. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6151. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6152. depcc="$CXX" am_compiler_list=
  6153. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  6154. printf %s "checking dependency style of $depcc... " >&6; }
  6155. if test ${am_cv_CXX_dependencies_compiler_type+y}
  6156. then :
  6157. printf %s "(cached) " >&6
  6158. else $as_nop
  6159. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  6160. # We make a subdir and do the tests there. Otherwise we can end up
  6161. # making bogus files that we don't know about and never remove. For
  6162. # instance it was reported that on HP-UX the gcc test will end up
  6163. # making a dummy file named 'D' -- because '-MD' means "put the output
  6164. # in D".
  6165. rm -rf conftest.dir
  6166. mkdir conftest.dir
  6167. # Copy depcomp to subdir because otherwise we won't find it if we're
  6168. # using a relative directory.
  6169. cp "$am_depcomp" conftest.dir
  6170. cd conftest.dir
  6171. # We will build objects and dependencies in a subdirectory because
  6172. # it helps to detect inapplicable dependency modes. For instance
  6173. # both Tru64's cc and ICC support -MD to output dependencies as a
  6174. # side effect of compilation, but ICC will put the dependencies in
  6175. # the current directory while Tru64 will put them in the object
  6176. # directory.
  6177. mkdir sub
  6178. am_cv_CXX_dependencies_compiler_type=none
  6179. if test "$am_compiler_list" = ""; then
  6180. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  6181. fi
  6182. am__universal=false
  6183. case " $depcc " in #(
  6184. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  6185. esac
  6186. for depmode in $am_compiler_list; do
  6187. # Setup a source with many dependencies, because some compilers
  6188. # like to wrap large dependency lists on column 80 (with \), and
  6189. # we should not choose a depcomp mode which is confused by this.
  6190. #
  6191. # We need to recreate these files for each test, as the compiler may
  6192. # overwrite some of them when testing with obscure command lines.
  6193. # This happens at least with the AIX C compiler.
  6194. : > sub/conftest.c
  6195. for i in 1 2 3 4 5 6; do
  6196. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  6197. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  6198. # Solaris 10 /bin/sh.
  6199. echo '/* dummy */' > sub/conftst$i.h
  6200. done
  6201. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  6202. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  6203. # mode. It turns out that the SunPro C++ compiler does not properly
  6204. # handle '-M -o', and we need to detect this. Also, some Intel
  6205. # versions had trouble with output in subdirs.
  6206. am__obj=sub/conftest.${OBJEXT-o}
  6207. am__minus_obj="-o $am__obj"
  6208. case $depmode in
  6209. gcc)
  6210. # This depmode causes a compiler race in universal mode.
  6211. test "$am__universal" = false || continue
  6212. ;;
  6213. nosideeffect)
  6214. # After this tag, mechanisms are not by side-effect, so they'll
  6215. # only be used when explicitly requested.
  6216. if test "x$enable_dependency_tracking" = xyes; then
  6217. continue
  6218. else
  6219. break
  6220. fi
  6221. ;;
  6222. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  6223. # This compiler won't grok '-c -o', but also, the minuso test has
  6224. # not run yet. These depmodes are late enough in the game, and
  6225. # so weak that their functioning should not be impacted.
  6226. am__obj=conftest.${OBJEXT-o}
  6227. am__minus_obj=
  6228. ;;
  6229. none) break ;;
  6230. esac
  6231. if depmode=$depmode \
  6232. source=sub/conftest.c object=$am__obj \
  6233. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  6234. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  6235. >/dev/null 2>conftest.err &&
  6236. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  6237. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  6238. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  6239. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  6240. # icc doesn't choke on unknown options, it will just issue warnings
  6241. # or remarks (even with -Werror). So we grep stderr for any message
  6242. # that says an option was ignored or not supported.
  6243. # When given -MP, icc 7.0 and 7.1 complain thusly:
  6244. # icc: Command line warning: ignoring option '-M'; no argument required
  6245. # The diagnosis changed in icc 8.0:
  6246. # icc: Command line remark: option '-MP' not supported
  6247. if (grep 'ignoring option' conftest.err ||
  6248. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  6249. am_cv_CXX_dependencies_compiler_type=$depmode
  6250. break
  6251. fi
  6252. fi
  6253. done
  6254. cd ..
  6255. rm -rf conftest.dir
  6256. else
  6257. am_cv_CXX_dependencies_compiler_type=none
  6258. fi
  6259. fi
  6260. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  6261. printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
  6262. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  6263. if
  6264. test "x$enable_dependency_tracking" != xno \
  6265. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  6266. am__fastdepCXX_TRUE=
  6267. am__fastdepCXX_FALSE='#'
  6268. else
  6269. am__fastdepCXX_TRUE='#'
  6270. am__fastdepCXX_FALSE=
  6271. fi
  6272. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  6273. printf %s "checking whether ln -s works... " >&6; }
  6274. LN_S=$as_ln_s
  6275. if test "$LN_S" = "ln -s"; then
  6276. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6277. printf "%s\n" "yes" >&6; }
  6278. else
  6279. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  6280. printf "%s\n" "no, using $LN_S" >&6; }
  6281. fi
  6282. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  6283. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  6284. set x ${MAKE-make}
  6285. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  6286. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  6287. then :
  6288. printf %s "(cached) " >&6
  6289. else $as_nop
  6290. cat >conftest.make <<\_ACEOF
  6291. SHELL = /bin/sh
  6292. all:
  6293. @echo '@@@%%%=$(MAKE)=@@@%%%'
  6294. _ACEOF
  6295. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  6296. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  6297. *@@@%%%=?*=@@@%%%*)
  6298. eval ac_cv_prog_make_${ac_make}_set=yes;;
  6299. *)
  6300. eval ac_cv_prog_make_${ac_make}_set=no;;
  6301. esac
  6302. rm -f conftest.make
  6303. fi
  6304. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  6305. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6306. printf "%s\n" "yes" >&6; }
  6307. SET_MAKE=
  6308. else
  6309. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6310. printf "%s\n" "no" >&6; }
  6311. SET_MAKE="MAKE=${MAKE-make}"
  6312. fi
  6313. for ac_prog in sshd
  6314. do
  6315. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6316. set dummy $ac_prog; ac_word=$2
  6317. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6318. printf %s "checking for $ac_word... " >&6; }
  6319. if test ${ac_cv_path_SSHD+y}
  6320. then :
  6321. printf %s "(cached) " >&6
  6322. else $as_nop
  6323. case $SSHD in
  6324. [\\/]* | ?:[\\/]*)
  6325. ac_cv_path_SSHD="$SSHD" # Let the user override the test with a path.
  6326. ;;
  6327. *)
  6328. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6329. for as_dir in $PATH$PATH_SEPARATOR/usr/libexec$PATH_SEPARATOR /usr/sbin$PATH_SEPARATOR/usr/etc$PATH_SEPARATOR/etc
  6330. do
  6331. IFS=$as_save_IFS
  6332. case $as_dir in #(((
  6333. '') as_dir=./ ;;
  6334. */) ;;
  6335. *) as_dir=$as_dir/ ;;
  6336. esac
  6337. for ac_exec_ext in '' $ac_executable_extensions; do
  6338. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6339. ac_cv_path_SSHD="$as_dir$ac_word$ac_exec_ext"
  6340. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6341. break 2
  6342. fi
  6343. done
  6344. done
  6345. IFS=$as_save_IFS
  6346. ;;
  6347. esac
  6348. fi
  6349. SSHD=$ac_cv_path_SSHD
  6350. if test -n "$SSHD"; then
  6351. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SSHD" >&5
  6352. printf "%s\n" "$SSHD" >&6; }
  6353. else
  6354. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6355. printf "%s\n" "no" >&6; }
  6356. fi
  6357. test -n "$SSHD" && break
  6358. done
  6359. if test -n "$SSHD"; then
  6360. SSHD_TRUE=
  6361. SSHD_FALSE='#'
  6362. else
  6363. SSHD_TRUE='#'
  6364. SSHD_FALSE=
  6365. fi
  6366. enable_win32_dll=yes
  6367. case $host in
  6368. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6369. if test -n "$ac_tool_prefix"; then
  6370. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6371. set dummy ${ac_tool_prefix}as; ac_word=$2
  6372. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6373. printf %s "checking for $ac_word... " >&6; }
  6374. if test ${ac_cv_prog_AS+y}
  6375. then :
  6376. printf %s "(cached) " >&6
  6377. else $as_nop
  6378. if test -n "$AS"; then
  6379. ac_cv_prog_AS="$AS" # Let the user override the test.
  6380. else
  6381. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6382. for as_dir in $PATH
  6383. do
  6384. IFS=$as_save_IFS
  6385. case $as_dir in #(((
  6386. '') as_dir=./ ;;
  6387. */) ;;
  6388. *) as_dir=$as_dir/ ;;
  6389. esac
  6390. for ac_exec_ext in '' $ac_executable_extensions; do
  6391. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6392. ac_cv_prog_AS="${ac_tool_prefix}as"
  6393. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6394. break 2
  6395. fi
  6396. done
  6397. done
  6398. IFS=$as_save_IFS
  6399. fi
  6400. fi
  6401. AS=$ac_cv_prog_AS
  6402. if test -n "$AS"; then
  6403. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6404. printf "%s\n" "$AS" >&6; }
  6405. else
  6406. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6407. printf "%s\n" "no" >&6; }
  6408. fi
  6409. fi
  6410. if test -z "$ac_cv_prog_AS"; then
  6411. ac_ct_AS=$AS
  6412. # Extract the first word of "as", so it can be a program name with args.
  6413. set dummy as; ac_word=$2
  6414. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6415. printf %s "checking for $ac_word... " >&6; }
  6416. if test ${ac_cv_prog_ac_ct_AS+y}
  6417. then :
  6418. printf %s "(cached) " >&6
  6419. else $as_nop
  6420. if test -n "$ac_ct_AS"; then
  6421. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6422. else
  6423. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6424. for as_dir in $PATH
  6425. do
  6426. IFS=$as_save_IFS
  6427. case $as_dir in #(((
  6428. '') as_dir=./ ;;
  6429. */) ;;
  6430. *) as_dir=$as_dir/ ;;
  6431. esac
  6432. for ac_exec_ext in '' $ac_executable_extensions; do
  6433. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6434. ac_cv_prog_ac_ct_AS="as"
  6435. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6436. break 2
  6437. fi
  6438. done
  6439. done
  6440. IFS=$as_save_IFS
  6441. fi
  6442. fi
  6443. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6444. if test -n "$ac_ct_AS"; then
  6445. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6446. printf "%s\n" "$ac_ct_AS" >&6; }
  6447. else
  6448. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6449. printf "%s\n" "no" >&6; }
  6450. fi
  6451. if test "x$ac_ct_AS" = x; then
  6452. AS="false"
  6453. else
  6454. case $cross_compiling:$ac_tool_warned in
  6455. yes:)
  6456. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6457. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6458. ac_tool_warned=yes ;;
  6459. esac
  6460. AS=$ac_ct_AS
  6461. fi
  6462. else
  6463. AS="$ac_cv_prog_AS"
  6464. fi
  6465. if test -n "$ac_tool_prefix"; then
  6466. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6467. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6468. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6469. printf %s "checking for $ac_word... " >&6; }
  6470. if test ${ac_cv_prog_DLLTOOL+y}
  6471. then :
  6472. printf %s "(cached) " >&6
  6473. else $as_nop
  6474. if test -n "$DLLTOOL"; then
  6475. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6476. else
  6477. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6478. for as_dir in $PATH
  6479. do
  6480. IFS=$as_save_IFS
  6481. case $as_dir in #(((
  6482. '') as_dir=./ ;;
  6483. */) ;;
  6484. *) as_dir=$as_dir/ ;;
  6485. esac
  6486. for ac_exec_ext in '' $ac_executable_extensions; do
  6487. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6488. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6489. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6490. break 2
  6491. fi
  6492. done
  6493. done
  6494. IFS=$as_save_IFS
  6495. fi
  6496. fi
  6497. DLLTOOL=$ac_cv_prog_DLLTOOL
  6498. if test -n "$DLLTOOL"; then
  6499. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6500. printf "%s\n" "$DLLTOOL" >&6; }
  6501. else
  6502. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6503. printf "%s\n" "no" >&6; }
  6504. fi
  6505. fi
  6506. if test -z "$ac_cv_prog_DLLTOOL"; then
  6507. ac_ct_DLLTOOL=$DLLTOOL
  6508. # Extract the first word of "dlltool", so it can be a program name with args.
  6509. set dummy dlltool; ac_word=$2
  6510. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6511. printf %s "checking for $ac_word... " >&6; }
  6512. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  6513. then :
  6514. printf %s "(cached) " >&6
  6515. else $as_nop
  6516. if test -n "$ac_ct_DLLTOOL"; then
  6517. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6518. else
  6519. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6520. for as_dir in $PATH
  6521. do
  6522. IFS=$as_save_IFS
  6523. case $as_dir in #(((
  6524. '') as_dir=./ ;;
  6525. */) ;;
  6526. *) as_dir=$as_dir/ ;;
  6527. esac
  6528. for ac_exec_ext in '' $ac_executable_extensions; do
  6529. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6530. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6531. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6532. break 2
  6533. fi
  6534. done
  6535. done
  6536. IFS=$as_save_IFS
  6537. fi
  6538. fi
  6539. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6540. if test -n "$ac_ct_DLLTOOL"; then
  6541. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6542. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  6543. else
  6544. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6545. printf "%s\n" "no" >&6; }
  6546. fi
  6547. if test "x$ac_ct_DLLTOOL" = x; then
  6548. DLLTOOL="false"
  6549. else
  6550. case $cross_compiling:$ac_tool_warned in
  6551. yes:)
  6552. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6553. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6554. ac_tool_warned=yes ;;
  6555. esac
  6556. DLLTOOL=$ac_ct_DLLTOOL
  6557. fi
  6558. else
  6559. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6560. fi
  6561. if test -n "$ac_tool_prefix"; then
  6562. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6563. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6564. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6565. printf %s "checking for $ac_word... " >&6; }
  6566. if test ${ac_cv_prog_OBJDUMP+y}
  6567. then :
  6568. printf %s "(cached) " >&6
  6569. else $as_nop
  6570. if test -n "$OBJDUMP"; then
  6571. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6572. else
  6573. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6574. for as_dir in $PATH
  6575. do
  6576. IFS=$as_save_IFS
  6577. case $as_dir in #(((
  6578. '') as_dir=./ ;;
  6579. */) ;;
  6580. *) as_dir=$as_dir/ ;;
  6581. esac
  6582. for ac_exec_ext in '' $ac_executable_extensions; do
  6583. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6584. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6585. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6586. break 2
  6587. fi
  6588. done
  6589. done
  6590. IFS=$as_save_IFS
  6591. fi
  6592. fi
  6593. OBJDUMP=$ac_cv_prog_OBJDUMP
  6594. if test -n "$OBJDUMP"; then
  6595. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6596. printf "%s\n" "$OBJDUMP" >&6; }
  6597. else
  6598. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6599. printf "%s\n" "no" >&6; }
  6600. fi
  6601. fi
  6602. if test -z "$ac_cv_prog_OBJDUMP"; then
  6603. ac_ct_OBJDUMP=$OBJDUMP
  6604. # Extract the first word of "objdump", so it can be a program name with args.
  6605. set dummy objdump; ac_word=$2
  6606. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6607. printf %s "checking for $ac_word... " >&6; }
  6608. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  6609. then :
  6610. printf %s "(cached) " >&6
  6611. else $as_nop
  6612. if test -n "$ac_ct_OBJDUMP"; then
  6613. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6614. else
  6615. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6616. for as_dir in $PATH
  6617. do
  6618. IFS=$as_save_IFS
  6619. case $as_dir in #(((
  6620. '') as_dir=./ ;;
  6621. */) ;;
  6622. *) as_dir=$as_dir/ ;;
  6623. esac
  6624. for ac_exec_ext in '' $ac_executable_extensions; do
  6625. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6626. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6627. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6628. break 2
  6629. fi
  6630. done
  6631. done
  6632. IFS=$as_save_IFS
  6633. fi
  6634. fi
  6635. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6636. if test -n "$ac_ct_OBJDUMP"; then
  6637. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6638. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  6639. else
  6640. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6641. printf "%s\n" "no" >&6; }
  6642. fi
  6643. if test "x$ac_ct_OBJDUMP" = x; then
  6644. OBJDUMP="false"
  6645. else
  6646. case $cross_compiling:$ac_tool_warned in
  6647. yes:)
  6648. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6649. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6650. ac_tool_warned=yes ;;
  6651. esac
  6652. OBJDUMP=$ac_ct_OBJDUMP
  6653. fi
  6654. else
  6655. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6656. fi
  6657. ;;
  6658. esac
  6659. test -z "$AS" && AS=as
  6660. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6661. test -z "$OBJDUMP" && OBJDUMP=objdump
  6662. case `pwd` in
  6663. *\ * | *\ *)
  6664. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  6665. printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  6666. esac
  6667. macro_version='2.4.6'
  6668. macro_revision='2.4.6'
  6669. ltmain=$ac_aux_dir/ltmain.sh
  6670. # Backslashify metacharacters that are still active within
  6671. # double-quoted strings.
  6672. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  6673. # Same as above, but do not quote variable references.
  6674. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  6675. # Sed substitution to delay expansion of an escaped shell variable in a
  6676. # double_quote_subst'ed string.
  6677. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  6678. # Sed substitution to delay expansion of an escaped single quote.
  6679. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  6680. # Sed substitution to avoid accidental globbing in evaled expressions
  6681. no_glob_subst='s/\*/\\\*/g'
  6682. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  6683. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  6684. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  6685. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  6686. printf %s "checking how to print strings... " >&6; }
  6687. # Test print first, because it will be a builtin if present.
  6688. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  6689. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  6690. ECHO='print -r --'
  6691. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  6692. ECHO='printf %s\n'
  6693. else
  6694. # Use this function as a fallback that always works.
  6695. func_fallback_echo ()
  6696. {
  6697. eval 'cat <<_LTECHO_EOF
  6698. $1
  6699. _LTECHO_EOF'
  6700. }
  6701. ECHO='func_fallback_echo'
  6702. fi
  6703. # func_echo_all arg...
  6704. # Invoke $ECHO with all args, space-separated.
  6705. func_echo_all ()
  6706. {
  6707. $ECHO ""
  6708. }
  6709. case $ECHO in
  6710. printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  6711. printf "%s\n" "printf" >&6; } ;;
  6712. print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  6713. printf "%s\n" "print -r" >&6; } ;;
  6714. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  6715. printf "%s\n" "cat" >&6; } ;;
  6716. esac
  6717. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  6718. printf %s "checking for a sed that does not truncate output... " >&6; }
  6719. if test ${ac_cv_path_SED+y}
  6720. then :
  6721. printf %s "(cached) " >&6
  6722. else $as_nop
  6723. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  6724. for ac_i in 1 2 3 4 5 6 7; do
  6725. ac_script="$ac_script$as_nl$ac_script"
  6726. done
  6727. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  6728. { ac_script=; unset ac_script;}
  6729. if test -z "$SED"; then
  6730. ac_path_SED_found=false
  6731. # Loop through the user's path and test for each of PROGNAME-LIST
  6732. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6733. for as_dir in $PATH
  6734. do
  6735. IFS=$as_save_IFS
  6736. case $as_dir in #(((
  6737. '') as_dir=./ ;;
  6738. */) ;;
  6739. *) as_dir=$as_dir/ ;;
  6740. esac
  6741. for ac_prog in sed gsed
  6742. do
  6743. for ac_exec_ext in '' $ac_executable_extensions; do
  6744. ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
  6745. as_fn_executable_p "$ac_path_SED" || continue
  6746. # Check for GNU ac_path_SED and select it if it is found.
  6747. # Check for GNU $ac_path_SED
  6748. case `"$ac_path_SED" --version 2>&1` in
  6749. *GNU*)
  6750. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  6751. *)
  6752. ac_count=0
  6753. printf %s 0123456789 >"conftest.in"
  6754. while :
  6755. do
  6756. cat "conftest.in" "conftest.in" >"conftest.tmp"
  6757. mv "conftest.tmp" "conftest.in"
  6758. cp "conftest.in" "conftest.nl"
  6759. printf "%s\n" '' >> "conftest.nl"
  6760. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  6761. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  6762. as_fn_arith $ac_count + 1 && ac_count=$as_val
  6763. if test $ac_count -gt ${ac_path_SED_max-0}; then
  6764. # Best one so far, save it but keep looking for a better one
  6765. ac_cv_path_SED="$ac_path_SED"
  6766. ac_path_SED_max=$ac_count
  6767. fi
  6768. # 10*(2^10) chars as input seems more than enough
  6769. test $ac_count -gt 10 && break
  6770. done
  6771. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  6772. esac
  6773. $ac_path_SED_found && break 3
  6774. done
  6775. done
  6776. done
  6777. IFS=$as_save_IFS
  6778. if test -z "$ac_cv_path_SED"; then
  6779. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  6780. fi
  6781. else
  6782. ac_cv_path_SED=$SED
  6783. fi
  6784. fi
  6785. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  6786. printf "%s\n" "$ac_cv_path_SED" >&6; }
  6787. SED="$ac_cv_path_SED"
  6788. rm -f conftest.sed
  6789. test -z "$SED" && SED=sed
  6790. Xsed="$SED -e 1s/^X//"
  6791. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  6792. printf %s "checking for grep that handles long lines and -e... " >&6; }
  6793. if test ${ac_cv_path_GREP+y}
  6794. then :
  6795. printf %s "(cached) " >&6
  6796. else $as_nop
  6797. if test -z "$GREP"; then
  6798. ac_path_GREP_found=false
  6799. # Loop through the user's path and test for each of PROGNAME-LIST
  6800. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6801. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  6802. do
  6803. IFS=$as_save_IFS
  6804. case $as_dir in #(((
  6805. '') as_dir=./ ;;
  6806. */) ;;
  6807. *) as_dir=$as_dir/ ;;
  6808. esac
  6809. for ac_prog in grep ggrep
  6810. do
  6811. for ac_exec_ext in '' $ac_executable_extensions; do
  6812. ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
  6813. as_fn_executable_p "$ac_path_GREP" || continue
  6814. # Check for GNU ac_path_GREP and select it if it is found.
  6815. # Check for GNU $ac_path_GREP
  6816. case `"$ac_path_GREP" --version 2>&1` in
  6817. *GNU*)
  6818. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  6819. *)
  6820. ac_count=0
  6821. printf %s 0123456789 >"conftest.in"
  6822. while :
  6823. do
  6824. cat "conftest.in" "conftest.in" >"conftest.tmp"
  6825. mv "conftest.tmp" "conftest.in"
  6826. cp "conftest.in" "conftest.nl"
  6827. printf "%s\n" 'GREP' >> "conftest.nl"
  6828. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  6829. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  6830. as_fn_arith $ac_count + 1 && ac_count=$as_val
  6831. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  6832. # Best one so far, save it but keep looking for a better one
  6833. ac_cv_path_GREP="$ac_path_GREP"
  6834. ac_path_GREP_max=$ac_count
  6835. fi
  6836. # 10*(2^10) chars as input seems more than enough
  6837. test $ac_count -gt 10 && break
  6838. done
  6839. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  6840. esac
  6841. $ac_path_GREP_found && break 3
  6842. done
  6843. done
  6844. done
  6845. IFS=$as_save_IFS
  6846. if test -z "$ac_cv_path_GREP"; then
  6847. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  6848. fi
  6849. else
  6850. ac_cv_path_GREP=$GREP
  6851. fi
  6852. fi
  6853. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  6854. printf "%s\n" "$ac_cv_path_GREP" >&6; }
  6855. GREP="$ac_cv_path_GREP"
  6856. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  6857. printf %s "checking for egrep... " >&6; }
  6858. if test ${ac_cv_path_EGREP+y}
  6859. then :
  6860. printf %s "(cached) " >&6
  6861. else $as_nop
  6862. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  6863. then ac_cv_path_EGREP="$GREP -E"
  6864. else
  6865. if test -z "$EGREP"; then
  6866. ac_path_EGREP_found=false
  6867. # Loop through the user's path and test for each of PROGNAME-LIST
  6868. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6869. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  6870. do
  6871. IFS=$as_save_IFS
  6872. case $as_dir in #(((
  6873. '') as_dir=./ ;;
  6874. */) ;;
  6875. *) as_dir=$as_dir/ ;;
  6876. esac
  6877. for ac_prog in egrep
  6878. do
  6879. for ac_exec_ext in '' $ac_executable_extensions; do
  6880. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  6881. as_fn_executable_p "$ac_path_EGREP" || continue
  6882. # Check for GNU ac_path_EGREP and select it if it is found.
  6883. # Check for GNU $ac_path_EGREP
  6884. case `"$ac_path_EGREP" --version 2>&1` in
  6885. *GNU*)
  6886. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  6887. *)
  6888. ac_count=0
  6889. printf %s 0123456789 >"conftest.in"
  6890. while :
  6891. do
  6892. cat "conftest.in" "conftest.in" >"conftest.tmp"
  6893. mv "conftest.tmp" "conftest.in"
  6894. cp "conftest.in" "conftest.nl"
  6895. printf "%s\n" 'EGREP' >> "conftest.nl"
  6896. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  6897. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  6898. as_fn_arith $ac_count + 1 && ac_count=$as_val
  6899. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  6900. # Best one so far, save it but keep looking for a better one
  6901. ac_cv_path_EGREP="$ac_path_EGREP"
  6902. ac_path_EGREP_max=$ac_count
  6903. fi
  6904. # 10*(2^10) chars as input seems more than enough
  6905. test $ac_count -gt 10 && break
  6906. done
  6907. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  6908. esac
  6909. $ac_path_EGREP_found && break 3
  6910. done
  6911. done
  6912. done
  6913. IFS=$as_save_IFS
  6914. if test -z "$ac_cv_path_EGREP"; then
  6915. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  6916. fi
  6917. else
  6918. ac_cv_path_EGREP=$EGREP
  6919. fi
  6920. fi
  6921. fi
  6922. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  6923. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  6924. EGREP="$ac_cv_path_EGREP"
  6925. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  6926. printf %s "checking for fgrep... " >&6; }
  6927. if test ${ac_cv_path_FGREP+y}
  6928. then :
  6929. printf %s "(cached) " >&6
  6930. else $as_nop
  6931. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  6932. then ac_cv_path_FGREP="$GREP -F"
  6933. else
  6934. if test -z "$FGREP"; then
  6935. ac_path_FGREP_found=false
  6936. # Loop through the user's path and test for each of PROGNAME-LIST
  6937. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6938. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  6939. do
  6940. IFS=$as_save_IFS
  6941. case $as_dir in #(((
  6942. '') as_dir=./ ;;
  6943. */) ;;
  6944. *) as_dir=$as_dir/ ;;
  6945. esac
  6946. for ac_prog in fgrep
  6947. do
  6948. for ac_exec_ext in '' $ac_executable_extensions; do
  6949. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  6950. as_fn_executable_p "$ac_path_FGREP" || continue
  6951. # Check for GNU ac_path_FGREP and select it if it is found.
  6952. # Check for GNU $ac_path_FGREP
  6953. case `"$ac_path_FGREP" --version 2>&1` in
  6954. *GNU*)
  6955. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  6956. *)
  6957. ac_count=0
  6958. printf %s 0123456789 >"conftest.in"
  6959. while :
  6960. do
  6961. cat "conftest.in" "conftest.in" >"conftest.tmp"
  6962. mv "conftest.tmp" "conftest.in"
  6963. cp "conftest.in" "conftest.nl"
  6964. printf "%s\n" 'FGREP' >> "conftest.nl"
  6965. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  6966. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  6967. as_fn_arith $ac_count + 1 && ac_count=$as_val
  6968. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  6969. # Best one so far, save it but keep looking for a better one
  6970. ac_cv_path_FGREP="$ac_path_FGREP"
  6971. ac_path_FGREP_max=$ac_count
  6972. fi
  6973. # 10*(2^10) chars as input seems more than enough
  6974. test $ac_count -gt 10 && break
  6975. done
  6976. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  6977. esac
  6978. $ac_path_FGREP_found && break 3
  6979. done
  6980. done
  6981. done
  6982. IFS=$as_save_IFS
  6983. if test -z "$ac_cv_path_FGREP"; then
  6984. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  6985. fi
  6986. else
  6987. ac_cv_path_FGREP=$FGREP
  6988. fi
  6989. fi
  6990. fi
  6991. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  6992. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  6993. FGREP="$ac_cv_path_FGREP"
  6994. test -z "$GREP" && GREP=grep
  6995. # Check whether --with-gnu-ld was given.
  6996. if test ${with_gnu_ld+y}
  6997. then :
  6998. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  6999. else $as_nop
  7000. with_gnu_ld=no
  7001. fi
  7002. ac_prog=ld
  7003. if test yes = "$GCC"; then
  7004. # Check if gcc -print-prog-name=ld gives a path.
  7005. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  7006. printf %s "checking for ld used by $CC... " >&6; }
  7007. case $host in
  7008. *-*-mingw*)
  7009. # gcc leaves a trailing carriage return, which upsets mingw
  7010. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  7011. *)
  7012. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  7013. esac
  7014. case $ac_prog in
  7015. # Accept absolute paths.
  7016. [\\/]* | ?:[\\/]*)
  7017. re_direlt='/[^/][^/]*/\.\./'
  7018. # Canonicalize the pathname of ld
  7019. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  7020. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  7021. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  7022. done
  7023. test -z "$LD" && LD=$ac_prog
  7024. ;;
  7025. "")
  7026. # If it fails, then pretend we aren't using GCC.
  7027. ac_prog=ld
  7028. ;;
  7029. *)
  7030. # If it is relative, then search for the first ld in PATH.
  7031. with_gnu_ld=unknown
  7032. ;;
  7033. esac
  7034. elif test yes = "$with_gnu_ld"; then
  7035. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  7036. printf %s "checking for GNU ld... " >&6; }
  7037. else
  7038. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  7039. printf %s "checking for non-GNU ld... " >&6; }
  7040. fi
  7041. if test ${lt_cv_path_LD+y}
  7042. then :
  7043. printf %s "(cached) " >&6
  7044. else $as_nop
  7045. if test -z "$LD"; then
  7046. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7047. for ac_dir in $PATH; do
  7048. IFS=$lt_save_ifs
  7049. test -z "$ac_dir" && ac_dir=.
  7050. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  7051. lt_cv_path_LD=$ac_dir/$ac_prog
  7052. # Check to see if the program is GNU ld. I'd rather use --version,
  7053. # but apparently some variants of GNU ld only accept -v.
  7054. # Break only if it was the GNU/non-GNU ld that we prefer.
  7055. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  7056. *GNU* | *'with BFD'*)
  7057. test no != "$with_gnu_ld" && break
  7058. ;;
  7059. *)
  7060. test yes != "$with_gnu_ld" && break
  7061. ;;
  7062. esac
  7063. fi
  7064. done
  7065. IFS=$lt_save_ifs
  7066. else
  7067. lt_cv_path_LD=$LD # Let the user override the test with a path.
  7068. fi
  7069. fi
  7070. LD=$lt_cv_path_LD
  7071. if test -n "$LD"; then
  7072. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  7073. printf "%s\n" "$LD" >&6; }
  7074. else
  7075. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7076. printf "%s\n" "no" >&6; }
  7077. fi
  7078. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  7079. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  7080. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  7081. if test ${lt_cv_prog_gnu_ld+y}
  7082. then :
  7083. printf %s "(cached) " >&6
  7084. else $as_nop
  7085. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  7086. case `$LD -v 2>&1 </dev/null` in
  7087. *GNU* | *'with BFD'*)
  7088. lt_cv_prog_gnu_ld=yes
  7089. ;;
  7090. *)
  7091. lt_cv_prog_gnu_ld=no
  7092. ;;
  7093. esac
  7094. fi
  7095. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  7096. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  7097. with_gnu_ld=$lt_cv_prog_gnu_ld
  7098. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  7099. printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  7100. if test ${lt_cv_path_NM+y}
  7101. then :
  7102. printf %s "(cached) " >&6
  7103. else $as_nop
  7104. if test -n "$NM"; then
  7105. # Let the user override the test.
  7106. lt_cv_path_NM=$NM
  7107. else
  7108. lt_nm_to_check=${ac_tool_prefix}nm
  7109. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  7110. lt_nm_to_check="$lt_nm_to_check nm"
  7111. fi
  7112. for lt_tmp_nm in $lt_nm_to_check; do
  7113. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7114. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  7115. IFS=$lt_save_ifs
  7116. test -z "$ac_dir" && ac_dir=.
  7117. tmp_nm=$ac_dir/$lt_tmp_nm
  7118. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  7119. # Check to see if the nm accepts a BSD-compat flag.
  7120. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  7121. # nm: unknown option "B" ignored
  7122. # Tru64's nm complains that /dev/null is an invalid object file
  7123. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  7124. case $build_os in
  7125. mingw*) lt_bad_file=conftest.nm/nofile ;;
  7126. *) lt_bad_file=/dev/null ;;
  7127. esac
  7128. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  7129. *$lt_bad_file* | *'Invalid file or object type'*)
  7130. lt_cv_path_NM="$tmp_nm -B"
  7131. break 2
  7132. ;;
  7133. *)
  7134. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  7135. */dev/null*)
  7136. lt_cv_path_NM="$tmp_nm -p"
  7137. break 2
  7138. ;;
  7139. *)
  7140. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  7141. continue # so that we can try to find one that supports BSD flags
  7142. ;;
  7143. esac
  7144. ;;
  7145. esac
  7146. fi
  7147. done
  7148. IFS=$lt_save_ifs
  7149. done
  7150. : ${lt_cv_path_NM=no}
  7151. fi
  7152. fi
  7153. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  7154. printf "%s\n" "$lt_cv_path_NM" >&6; }
  7155. if test no != "$lt_cv_path_NM"; then
  7156. NM=$lt_cv_path_NM
  7157. else
  7158. # Didn't find any BSD compatible name lister, look for dumpbin.
  7159. if test -n "$DUMPBIN"; then :
  7160. # Let the user override the test.
  7161. else
  7162. if test -n "$ac_tool_prefix"; then
  7163. for ac_prog in dumpbin "link -dump"
  7164. do
  7165. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  7166. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  7167. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7168. printf %s "checking for $ac_word... " >&6; }
  7169. if test ${ac_cv_prog_DUMPBIN+y}
  7170. then :
  7171. printf %s "(cached) " >&6
  7172. else $as_nop
  7173. if test -n "$DUMPBIN"; then
  7174. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  7175. else
  7176. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7177. for as_dir in $PATH
  7178. do
  7179. IFS=$as_save_IFS
  7180. case $as_dir in #(((
  7181. '') as_dir=./ ;;
  7182. */) ;;
  7183. *) as_dir=$as_dir/ ;;
  7184. esac
  7185. for ac_exec_ext in '' $ac_executable_extensions; do
  7186. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7187. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  7188. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7189. break 2
  7190. fi
  7191. done
  7192. done
  7193. IFS=$as_save_IFS
  7194. fi
  7195. fi
  7196. DUMPBIN=$ac_cv_prog_DUMPBIN
  7197. if test -n "$DUMPBIN"; then
  7198. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  7199. printf "%s\n" "$DUMPBIN" >&6; }
  7200. else
  7201. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7202. printf "%s\n" "no" >&6; }
  7203. fi
  7204. test -n "$DUMPBIN" && break
  7205. done
  7206. fi
  7207. if test -z "$DUMPBIN"; then
  7208. ac_ct_DUMPBIN=$DUMPBIN
  7209. for ac_prog in dumpbin "link -dump"
  7210. do
  7211. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7212. set dummy $ac_prog; ac_word=$2
  7213. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7214. printf %s "checking for $ac_word... " >&6; }
  7215. if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
  7216. then :
  7217. printf %s "(cached) " >&6
  7218. else $as_nop
  7219. if test -n "$ac_ct_DUMPBIN"; then
  7220. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  7221. else
  7222. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7223. for as_dir in $PATH
  7224. do
  7225. IFS=$as_save_IFS
  7226. case $as_dir in #(((
  7227. '') as_dir=./ ;;
  7228. */) ;;
  7229. *) as_dir=$as_dir/ ;;
  7230. esac
  7231. for ac_exec_ext in '' $ac_executable_extensions; do
  7232. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7233. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  7234. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7235. break 2
  7236. fi
  7237. done
  7238. done
  7239. IFS=$as_save_IFS
  7240. fi
  7241. fi
  7242. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  7243. if test -n "$ac_ct_DUMPBIN"; then
  7244. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  7245. printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
  7246. else
  7247. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7248. printf "%s\n" "no" >&6; }
  7249. fi
  7250. test -n "$ac_ct_DUMPBIN" && break
  7251. done
  7252. if test "x$ac_ct_DUMPBIN" = x; then
  7253. DUMPBIN=":"
  7254. else
  7255. case $cross_compiling:$ac_tool_warned in
  7256. yes:)
  7257. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7258. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7259. ac_tool_warned=yes ;;
  7260. esac
  7261. DUMPBIN=$ac_ct_DUMPBIN
  7262. fi
  7263. fi
  7264. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  7265. *COFF*)
  7266. DUMPBIN="$DUMPBIN -symbols -headers"
  7267. ;;
  7268. *)
  7269. DUMPBIN=:
  7270. ;;
  7271. esac
  7272. fi
  7273. if test : != "$DUMPBIN"; then
  7274. NM=$DUMPBIN
  7275. fi
  7276. fi
  7277. test -z "$NM" && NM=nm
  7278. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  7279. printf %s "checking the name lister ($NM) interface... " >&6; }
  7280. if test ${lt_cv_nm_interface+y}
  7281. then :
  7282. printf %s "(cached) " >&6
  7283. else $as_nop
  7284. lt_cv_nm_interface="BSD nm"
  7285. echo "int some_variable = 0;" > conftest.$ac_ext
  7286. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  7287. (eval "$ac_compile" 2>conftest.err)
  7288. cat conftest.err >&5
  7289. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  7290. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  7291. cat conftest.err >&5
  7292. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  7293. cat conftest.out >&5
  7294. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  7295. lt_cv_nm_interface="MS dumpbin"
  7296. fi
  7297. rm -f conftest*
  7298. fi
  7299. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  7300. printf "%s\n" "$lt_cv_nm_interface" >&6; }
  7301. # find the maximum length of command line arguments
  7302. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  7303. printf %s "checking the maximum length of command line arguments... " >&6; }
  7304. if test ${lt_cv_sys_max_cmd_len+y}
  7305. then :
  7306. printf %s "(cached) " >&6
  7307. else $as_nop
  7308. i=0
  7309. teststring=ABCD
  7310. case $build_os in
  7311. msdosdjgpp*)
  7312. # On DJGPP, this test can blow up pretty badly due to problems in libc
  7313. # (any single argument exceeding 2000 bytes causes a buffer overrun
  7314. # during glob expansion). Even if it were fixed, the result of this
  7315. # check would be larger than it should be.
  7316. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  7317. ;;
  7318. gnu*)
  7319. # Under GNU Hurd, this test is not required because there is
  7320. # no limit to the length of command line arguments.
  7321. # Libtool will interpret -1 as no limit whatsoever
  7322. lt_cv_sys_max_cmd_len=-1;
  7323. ;;
  7324. cygwin* | mingw* | cegcc*)
  7325. # On Win9x/ME, this test blows up -- it succeeds, but takes
  7326. # about 5 minutes as the teststring grows exponentially.
  7327. # Worse, since 9x/ME are not pre-emptively multitasking,
  7328. # you end up with a "frozen" computer, even though with patience
  7329. # the test eventually succeeds (with a max line length of 256k).
  7330. # Instead, let's just punt: use the minimum linelength reported by
  7331. # all of the supported platforms: 8192 (on NT/2K/XP).
  7332. lt_cv_sys_max_cmd_len=8192;
  7333. ;;
  7334. mint*)
  7335. # On MiNT this can take a long time and run out of memory.
  7336. lt_cv_sys_max_cmd_len=8192;
  7337. ;;
  7338. amigaos*)
  7339. # On AmigaOS with pdksh, this test takes hours, literally.
  7340. # So we just punt and use a minimum line length of 8192.
  7341. lt_cv_sys_max_cmd_len=8192;
  7342. ;;
  7343. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  7344. # This has been around since 386BSD, at least. Likely further.
  7345. if test -x /sbin/sysctl; then
  7346. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  7347. elif test -x /usr/sbin/sysctl; then
  7348. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  7349. else
  7350. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  7351. fi
  7352. # And add a safety zone
  7353. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  7354. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  7355. ;;
  7356. interix*)
  7357. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  7358. lt_cv_sys_max_cmd_len=196608
  7359. ;;
  7360. os2*)
  7361. # The test takes a long time on OS/2.
  7362. lt_cv_sys_max_cmd_len=8192
  7363. ;;
  7364. osf*)
  7365. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  7366. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  7367. # nice to cause kernel panics so lets avoid the loop below.
  7368. # First set a reasonable default.
  7369. lt_cv_sys_max_cmd_len=16384
  7370. #
  7371. if test -x /sbin/sysconfig; then
  7372. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  7373. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  7374. esac
  7375. fi
  7376. ;;
  7377. sco3.2v5*)
  7378. lt_cv_sys_max_cmd_len=102400
  7379. ;;
  7380. sysv5* | sco5v6* | sysv4.2uw2*)
  7381. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  7382. if test -n "$kargmax"; then
  7383. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  7384. else
  7385. lt_cv_sys_max_cmd_len=32768
  7386. fi
  7387. ;;
  7388. *)
  7389. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  7390. if test -n "$lt_cv_sys_max_cmd_len" && \
  7391. test undefined != "$lt_cv_sys_max_cmd_len"; then
  7392. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  7393. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  7394. else
  7395. # Make teststring a little bigger before we do anything with it.
  7396. # a 1K string should be a reasonable start.
  7397. for i in 1 2 3 4 5 6 7 8; do
  7398. teststring=$teststring$teststring
  7399. done
  7400. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  7401. # If test is not a shell built-in, we'll probably end up computing a
  7402. # maximum length that is only half of the actual maximum length, but
  7403. # we can't tell.
  7404. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  7405. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  7406. test 17 != "$i" # 1/2 MB should be enough
  7407. do
  7408. i=`expr $i + 1`
  7409. teststring=$teststring$teststring
  7410. done
  7411. # Only check the string length outside the loop.
  7412. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  7413. teststring=
  7414. # Add a significant safety factor because C++ compilers can tack on
  7415. # massive amounts of additional arguments before passing them to the
  7416. # linker. It appears as though 1/2 is a usable value.
  7417. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  7418. fi
  7419. ;;
  7420. esac
  7421. fi
  7422. if test -n "$lt_cv_sys_max_cmd_len"; then
  7423. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  7424. printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
  7425. else
  7426. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
  7427. printf "%s\n" "none" >&6; }
  7428. fi
  7429. max_cmd_len=$lt_cv_sys_max_cmd_len
  7430. : ${CP="cp -f"}
  7431. : ${MV="mv -f"}
  7432. : ${RM="rm -f"}
  7433. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  7434. lt_unset=unset
  7435. else
  7436. lt_unset=false
  7437. fi
  7438. # test EBCDIC or ASCII
  7439. case `echo X|tr X '\101'` in
  7440. A) # ASCII based system
  7441. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  7442. lt_SP2NL='tr \040 \012'
  7443. lt_NL2SP='tr \015\012 \040\040'
  7444. ;;
  7445. *) # EBCDIC based system
  7446. lt_SP2NL='tr \100 \n'
  7447. lt_NL2SP='tr \r\n \100\100'
  7448. ;;
  7449. esac
  7450. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  7451. printf %s "checking how to convert $build file names to $host format... " >&6; }
  7452. if test ${lt_cv_to_host_file_cmd+y}
  7453. then :
  7454. printf %s "(cached) " >&6
  7455. else $as_nop
  7456. case $host in
  7457. *-*-mingw* )
  7458. case $build in
  7459. *-*-mingw* ) # actually msys
  7460. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  7461. ;;
  7462. *-*-cygwin* )
  7463. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  7464. ;;
  7465. * ) # otherwise, assume *nix
  7466. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  7467. ;;
  7468. esac
  7469. ;;
  7470. *-*-cygwin* )
  7471. case $build in
  7472. *-*-mingw* ) # actually msys
  7473. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  7474. ;;
  7475. *-*-cygwin* )
  7476. lt_cv_to_host_file_cmd=func_convert_file_noop
  7477. ;;
  7478. * ) # otherwise, assume *nix
  7479. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  7480. ;;
  7481. esac
  7482. ;;
  7483. * ) # unhandled hosts (and "normal" native builds)
  7484. lt_cv_to_host_file_cmd=func_convert_file_noop
  7485. ;;
  7486. esac
  7487. fi
  7488. to_host_file_cmd=$lt_cv_to_host_file_cmd
  7489. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  7490. printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
  7491. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  7492. printf %s "checking how to convert $build file names to toolchain format... " >&6; }
  7493. if test ${lt_cv_to_tool_file_cmd+y}
  7494. then :
  7495. printf %s "(cached) " >&6
  7496. else $as_nop
  7497. #assume ordinary cross tools, or native build.
  7498. lt_cv_to_tool_file_cmd=func_convert_file_noop
  7499. case $host in
  7500. *-*-mingw* )
  7501. case $build in
  7502. *-*-mingw* ) # actually msys
  7503. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  7504. ;;
  7505. esac
  7506. ;;
  7507. esac
  7508. fi
  7509. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  7510. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  7511. printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
  7512. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  7513. printf %s "checking for $LD option to reload object files... " >&6; }
  7514. if test ${lt_cv_ld_reload_flag+y}
  7515. then :
  7516. printf %s "(cached) " >&6
  7517. else $as_nop
  7518. lt_cv_ld_reload_flag='-r'
  7519. fi
  7520. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  7521. printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
  7522. reload_flag=$lt_cv_ld_reload_flag
  7523. case $reload_flag in
  7524. "" | " "*) ;;
  7525. *) reload_flag=" $reload_flag" ;;
  7526. esac
  7527. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  7528. case $host_os in
  7529. cygwin* | mingw* | pw32* | cegcc*)
  7530. if test yes != "$GCC"; then
  7531. reload_cmds=false
  7532. fi
  7533. ;;
  7534. darwin*)
  7535. if test yes = "$GCC"; then
  7536. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  7537. else
  7538. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  7539. fi
  7540. ;;
  7541. esac
  7542. if test -n "$ac_tool_prefix"; then
  7543. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  7544. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  7545. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7546. printf %s "checking for $ac_word... " >&6; }
  7547. if test ${ac_cv_prog_OBJDUMP+y}
  7548. then :
  7549. printf %s "(cached) " >&6
  7550. else $as_nop
  7551. if test -n "$OBJDUMP"; then
  7552. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  7553. else
  7554. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7555. for as_dir in $PATH
  7556. do
  7557. IFS=$as_save_IFS
  7558. case $as_dir in #(((
  7559. '') as_dir=./ ;;
  7560. */) ;;
  7561. *) as_dir=$as_dir/ ;;
  7562. esac
  7563. for ac_exec_ext in '' $ac_executable_extensions; do
  7564. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7565. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  7566. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7567. break 2
  7568. fi
  7569. done
  7570. done
  7571. IFS=$as_save_IFS
  7572. fi
  7573. fi
  7574. OBJDUMP=$ac_cv_prog_OBJDUMP
  7575. if test -n "$OBJDUMP"; then
  7576. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  7577. printf "%s\n" "$OBJDUMP" >&6; }
  7578. else
  7579. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7580. printf "%s\n" "no" >&6; }
  7581. fi
  7582. fi
  7583. if test -z "$ac_cv_prog_OBJDUMP"; then
  7584. ac_ct_OBJDUMP=$OBJDUMP
  7585. # Extract the first word of "objdump", so it can be a program name with args.
  7586. set dummy objdump; ac_word=$2
  7587. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7588. printf %s "checking for $ac_word... " >&6; }
  7589. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  7590. then :
  7591. printf %s "(cached) " >&6
  7592. else $as_nop
  7593. if test -n "$ac_ct_OBJDUMP"; then
  7594. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  7595. else
  7596. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7597. for as_dir in $PATH
  7598. do
  7599. IFS=$as_save_IFS
  7600. case $as_dir in #(((
  7601. '') as_dir=./ ;;
  7602. */) ;;
  7603. *) as_dir=$as_dir/ ;;
  7604. esac
  7605. for ac_exec_ext in '' $ac_executable_extensions; do
  7606. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7607. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  7608. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7609. break 2
  7610. fi
  7611. done
  7612. done
  7613. IFS=$as_save_IFS
  7614. fi
  7615. fi
  7616. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  7617. if test -n "$ac_ct_OBJDUMP"; then
  7618. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  7619. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  7620. else
  7621. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7622. printf "%s\n" "no" >&6; }
  7623. fi
  7624. if test "x$ac_ct_OBJDUMP" = x; then
  7625. OBJDUMP="false"
  7626. else
  7627. case $cross_compiling:$ac_tool_warned in
  7628. yes:)
  7629. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7630. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7631. ac_tool_warned=yes ;;
  7632. esac
  7633. OBJDUMP=$ac_ct_OBJDUMP
  7634. fi
  7635. else
  7636. OBJDUMP="$ac_cv_prog_OBJDUMP"
  7637. fi
  7638. test -z "$OBJDUMP" && OBJDUMP=objdump
  7639. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  7640. printf %s "checking how to recognize dependent libraries... " >&6; }
  7641. if test ${lt_cv_deplibs_check_method+y}
  7642. then :
  7643. printf %s "(cached) " >&6
  7644. else $as_nop
  7645. lt_cv_file_magic_cmd='$MAGIC_CMD'
  7646. lt_cv_file_magic_test_file=
  7647. lt_cv_deplibs_check_method='unknown'
  7648. # Need to set the preceding variable on all platforms that support
  7649. # interlibrary dependencies.
  7650. # 'none' -- dependencies not supported.
  7651. # 'unknown' -- same as none, but documents that we really don't know.
  7652. # 'pass_all' -- all dependencies passed with no checks.
  7653. # 'test_compile' -- check by making test program.
  7654. # 'file_magic [[regex]]' -- check by looking for files in library path
  7655. # that responds to the $file_magic_cmd with a given extended regex.
  7656. # If you have 'file' or equivalent on your system and you're not sure
  7657. # whether 'pass_all' will *always* work, you probably want this one.
  7658. case $host_os in
  7659. aix[4-9]*)
  7660. lt_cv_deplibs_check_method=pass_all
  7661. ;;
  7662. beos*)
  7663. lt_cv_deplibs_check_method=pass_all
  7664. ;;
  7665. bsdi[45]*)
  7666. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  7667. lt_cv_file_magic_cmd='/usr/bin/file -L'
  7668. lt_cv_file_magic_test_file=/shlib/libc.so
  7669. ;;
  7670. cygwin*)
  7671. # func_win32_libid is a shell function defined in ltmain.sh
  7672. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  7673. lt_cv_file_magic_cmd='func_win32_libid'
  7674. ;;
  7675. mingw* | pw32*)
  7676. # Base MSYS/MinGW do not provide the 'file' command needed by
  7677. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  7678. # unless we find 'file', for example because we are cross-compiling.
  7679. if ( file / ) >/dev/null 2>&1; then
  7680. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  7681. lt_cv_file_magic_cmd='func_win32_libid'
  7682. else
  7683. # Keep this pattern in sync with the one in func_win32_libid.
  7684. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  7685. lt_cv_file_magic_cmd='$OBJDUMP -f'
  7686. fi
  7687. ;;
  7688. cegcc*)
  7689. # use the weaker test based on 'objdump'. See mingw*.
  7690. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  7691. lt_cv_file_magic_cmd='$OBJDUMP -f'
  7692. ;;
  7693. darwin* | rhapsody*)
  7694. lt_cv_deplibs_check_method=pass_all
  7695. ;;
  7696. freebsd* | dragonfly*)
  7697. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  7698. case $host_cpu in
  7699. i*86 )
  7700. # Not sure whether the presence of OpenBSD here was a mistake.
  7701. # Let's accept both of them until this is cleared up.
  7702. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  7703. lt_cv_file_magic_cmd=/usr/bin/file
  7704. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  7705. ;;
  7706. esac
  7707. else
  7708. lt_cv_deplibs_check_method=pass_all
  7709. fi
  7710. ;;
  7711. haiku*)
  7712. lt_cv_deplibs_check_method=pass_all
  7713. ;;
  7714. hpux10.20* | hpux11*)
  7715. lt_cv_file_magic_cmd=/usr/bin/file
  7716. case $host_cpu in
  7717. ia64*)
  7718. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  7719. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  7720. ;;
  7721. hppa*64*)
  7722. 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]'
  7723. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  7724. ;;
  7725. *)
  7726. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  7727. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  7728. ;;
  7729. esac
  7730. ;;
  7731. interix[3-9]*)
  7732. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  7733. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  7734. ;;
  7735. irix5* | irix6* | nonstopux*)
  7736. case $LD in
  7737. *-32|*"-32 ") libmagic=32-bit;;
  7738. *-n32|*"-n32 ") libmagic=N32;;
  7739. *-64|*"-64 ") libmagic=64-bit;;
  7740. *) libmagic=never-match;;
  7741. esac
  7742. lt_cv_deplibs_check_method=pass_all
  7743. ;;
  7744. # This must be glibc/ELF.
  7745. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  7746. lt_cv_deplibs_check_method=pass_all
  7747. ;;
  7748. netbsd* | netbsdelf*-gnu)
  7749. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  7750. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  7751. else
  7752. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  7753. fi
  7754. ;;
  7755. newos6*)
  7756. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  7757. lt_cv_file_magic_cmd=/usr/bin/file
  7758. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  7759. ;;
  7760. *nto* | *qnx*)
  7761. lt_cv_deplibs_check_method=pass_all
  7762. ;;
  7763. openbsd* | bitrig*)
  7764. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  7765. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  7766. else
  7767. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  7768. fi
  7769. ;;
  7770. osf3* | osf4* | osf5*)
  7771. lt_cv_deplibs_check_method=pass_all
  7772. ;;
  7773. rdos*)
  7774. lt_cv_deplibs_check_method=pass_all
  7775. ;;
  7776. solaris*)
  7777. lt_cv_deplibs_check_method=pass_all
  7778. ;;
  7779. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  7780. lt_cv_deplibs_check_method=pass_all
  7781. ;;
  7782. sysv4 | sysv4.3*)
  7783. case $host_vendor in
  7784. motorola)
  7785. 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]'
  7786. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  7787. ;;
  7788. ncr)
  7789. lt_cv_deplibs_check_method=pass_all
  7790. ;;
  7791. sequent)
  7792. lt_cv_file_magic_cmd='/bin/file'
  7793. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  7794. ;;
  7795. sni)
  7796. lt_cv_file_magic_cmd='/bin/file'
  7797. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  7798. lt_cv_file_magic_test_file=/lib/libc.so
  7799. ;;
  7800. siemens)
  7801. lt_cv_deplibs_check_method=pass_all
  7802. ;;
  7803. pc)
  7804. lt_cv_deplibs_check_method=pass_all
  7805. ;;
  7806. esac
  7807. ;;
  7808. tpf*)
  7809. lt_cv_deplibs_check_method=pass_all
  7810. ;;
  7811. os2*)
  7812. lt_cv_deplibs_check_method=pass_all
  7813. ;;
  7814. esac
  7815. fi
  7816. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  7817. printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
  7818. file_magic_glob=
  7819. want_nocaseglob=no
  7820. if test "$build" = "$host"; then
  7821. case $host_os in
  7822. mingw* | pw32*)
  7823. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  7824. want_nocaseglob=yes
  7825. else
  7826. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  7827. fi
  7828. ;;
  7829. esac
  7830. fi
  7831. file_magic_cmd=$lt_cv_file_magic_cmd
  7832. deplibs_check_method=$lt_cv_deplibs_check_method
  7833. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  7834. if test -n "$ac_tool_prefix"; then
  7835. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  7836. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  7837. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7838. printf %s "checking for $ac_word... " >&6; }
  7839. if test ${ac_cv_prog_DLLTOOL+y}
  7840. then :
  7841. printf %s "(cached) " >&6
  7842. else $as_nop
  7843. if test -n "$DLLTOOL"; then
  7844. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7845. else
  7846. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7847. for as_dir in $PATH
  7848. do
  7849. IFS=$as_save_IFS
  7850. case $as_dir in #(((
  7851. '') as_dir=./ ;;
  7852. */) ;;
  7853. *) as_dir=$as_dir/ ;;
  7854. esac
  7855. for ac_exec_ext in '' $ac_executable_extensions; do
  7856. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7857. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  7858. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7859. break 2
  7860. fi
  7861. done
  7862. done
  7863. IFS=$as_save_IFS
  7864. fi
  7865. fi
  7866. DLLTOOL=$ac_cv_prog_DLLTOOL
  7867. if test -n "$DLLTOOL"; then
  7868. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7869. printf "%s\n" "$DLLTOOL" >&6; }
  7870. else
  7871. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7872. printf "%s\n" "no" >&6; }
  7873. fi
  7874. fi
  7875. if test -z "$ac_cv_prog_DLLTOOL"; then
  7876. ac_ct_DLLTOOL=$DLLTOOL
  7877. # Extract the first word of "dlltool", so it can be a program name with args.
  7878. set dummy dlltool; ac_word=$2
  7879. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7880. printf %s "checking for $ac_word... " >&6; }
  7881. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  7882. then :
  7883. printf %s "(cached) " >&6
  7884. else $as_nop
  7885. if test -n "$ac_ct_DLLTOOL"; then
  7886. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  7887. else
  7888. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7889. for as_dir in $PATH
  7890. do
  7891. IFS=$as_save_IFS
  7892. case $as_dir in #(((
  7893. '') as_dir=./ ;;
  7894. */) ;;
  7895. *) as_dir=$as_dir/ ;;
  7896. esac
  7897. for ac_exec_ext in '' $ac_executable_extensions; do
  7898. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7899. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  7900. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7901. break 2
  7902. fi
  7903. done
  7904. done
  7905. IFS=$as_save_IFS
  7906. fi
  7907. fi
  7908. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  7909. if test -n "$ac_ct_DLLTOOL"; then
  7910. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  7911. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  7912. else
  7913. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7914. printf "%s\n" "no" >&6; }
  7915. fi
  7916. if test "x$ac_ct_DLLTOOL" = x; then
  7917. DLLTOOL="false"
  7918. else
  7919. case $cross_compiling:$ac_tool_warned in
  7920. yes:)
  7921. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7922. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7923. ac_tool_warned=yes ;;
  7924. esac
  7925. DLLTOOL=$ac_ct_DLLTOOL
  7926. fi
  7927. else
  7928. DLLTOOL="$ac_cv_prog_DLLTOOL"
  7929. fi
  7930. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7931. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  7932. printf %s "checking how to associate runtime and link libraries... " >&6; }
  7933. if test ${lt_cv_sharedlib_from_linklib_cmd+y}
  7934. then :
  7935. printf %s "(cached) " >&6
  7936. else $as_nop
  7937. lt_cv_sharedlib_from_linklib_cmd='unknown'
  7938. case $host_os in
  7939. cygwin* | mingw* | pw32* | cegcc*)
  7940. # two different shell functions defined in ltmain.sh;
  7941. # decide which one to use based on capabilities of $DLLTOOL
  7942. case `$DLLTOOL --help 2>&1` in
  7943. *--identify-strict*)
  7944. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  7945. ;;
  7946. *)
  7947. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  7948. ;;
  7949. esac
  7950. ;;
  7951. *)
  7952. # fallback: assume linklib IS sharedlib
  7953. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  7954. ;;
  7955. esac
  7956. fi
  7957. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  7958. printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  7959. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  7960. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  7961. if test -n "$ac_tool_prefix"; then
  7962. for ac_prog in ar
  7963. do
  7964. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  7965. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  7966. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7967. printf %s "checking for $ac_word... " >&6; }
  7968. if test ${ac_cv_prog_AR+y}
  7969. then :
  7970. printf %s "(cached) " >&6
  7971. else $as_nop
  7972. if test -n "$AR"; then
  7973. ac_cv_prog_AR="$AR" # Let the user override the test.
  7974. else
  7975. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7976. for as_dir in $PATH
  7977. do
  7978. IFS=$as_save_IFS
  7979. case $as_dir in #(((
  7980. '') as_dir=./ ;;
  7981. */) ;;
  7982. *) as_dir=$as_dir/ ;;
  7983. esac
  7984. for ac_exec_ext in '' $ac_executable_extensions; do
  7985. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7986. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  7987. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7988. break 2
  7989. fi
  7990. done
  7991. done
  7992. IFS=$as_save_IFS
  7993. fi
  7994. fi
  7995. AR=$ac_cv_prog_AR
  7996. if test -n "$AR"; then
  7997. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  7998. printf "%s\n" "$AR" >&6; }
  7999. else
  8000. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8001. printf "%s\n" "no" >&6; }
  8002. fi
  8003. test -n "$AR" && break
  8004. done
  8005. fi
  8006. if test -z "$AR"; then
  8007. ac_ct_AR=$AR
  8008. for ac_prog in ar
  8009. do
  8010. # Extract the first word of "$ac_prog", so it can be a program name with args.
  8011. set dummy $ac_prog; ac_word=$2
  8012. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8013. printf %s "checking for $ac_word... " >&6; }
  8014. if test ${ac_cv_prog_ac_ct_AR+y}
  8015. then :
  8016. printf %s "(cached) " >&6
  8017. else $as_nop
  8018. if test -n "$ac_ct_AR"; then
  8019. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  8020. else
  8021. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8022. for as_dir in $PATH
  8023. do
  8024. IFS=$as_save_IFS
  8025. case $as_dir in #(((
  8026. '') as_dir=./ ;;
  8027. */) ;;
  8028. *) as_dir=$as_dir/ ;;
  8029. esac
  8030. for ac_exec_ext in '' $ac_executable_extensions; do
  8031. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8032. ac_cv_prog_ac_ct_AR="$ac_prog"
  8033. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8034. break 2
  8035. fi
  8036. done
  8037. done
  8038. IFS=$as_save_IFS
  8039. fi
  8040. fi
  8041. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  8042. if test -n "$ac_ct_AR"; then
  8043. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  8044. printf "%s\n" "$ac_ct_AR" >&6; }
  8045. else
  8046. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8047. printf "%s\n" "no" >&6; }
  8048. fi
  8049. test -n "$ac_ct_AR" && break
  8050. done
  8051. if test "x$ac_ct_AR" = x; then
  8052. AR="false"
  8053. else
  8054. case $cross_compiling:$ac_tool_warned in
  8055. yes:)
  8056. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8057. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8058. ac_tool_warned=yes ;;
  8059. esac
  8060. AR=$ac_ct_AR
  8061. fi
  8062. fi
  8063. : ${AR=ar}
  8064. : ${AR_FLAGS=cr}
  8065. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  8066. printf %s "checking for archiver @FILE support... " >&6; }
  8067. if test ${lt_cv_ar_at_file+y}
  8068. then :
  8069. printf %s "(cached) " >&6
  8070. else $as_nop
  8071. lt_cv_ar_at_file=no
  8072. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8073. /* end confdefs.h. */
  8074. int
  8075. main (void)
  8076. {
  8077. ;
  8078. return 0;
  8079. }
  8080. _ACEOF
  8081. if ac_fn_c_try_compile "$LINENO"
  8082. then :
  8083. echo conftest.$ac_objext > conftest.lst
  8084. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  8085. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  8086. (eval $lt_ar_try) 2>&5
  8087. ac_status=$?
  8088. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8089. test $ac_status = 0; }
  8090. if test 0 -eq "$ac_status"; then
  8091. # Ensure the archiver fails upon bogus file names.
  8092. rm -f conftest.$ac_objext libconftest.a
  8093. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  8094. (eval $lt_ar_try) 2>&5
  8095. ac_status=$?
  8096. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8097. test $ac_status = 0; }
  8098. if test 0 -ne "$ac_status"; then
  8099. lt_cv_ar_at_file=@
  8100. fi
  8101. fi
  8102. rm -f conftest.* libconftest.a
  8103. fi
  8104. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  8105. fi
  8106. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  8107. printf "%s\n" "$lt_cv_ar_at_file" >&6; }
  8108. if test no = "$lt_cv_ar_at_file"; then
  8109. archiver_list_spec=
  8110. else
  8111. archiver_list_spec=$lt_cv_ar_at_file
  8112. fi
  8113. if test -n "$ac_tool_prefix"; then
  8114. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  8115. set dummy ${ac_tool_prefix}strip; ac_word=$2
  8116. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8117. printf %s "checking for $ac_word... " >&6; }
  8118. if test ${ac_cv_prog_STRIP+y}
  8119. then :
  8120. printf %s "(cached) " >&6
  8121. else $as_nop
  8122. if test -n "$STRIP"; then
  8123. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  8124. else
  8125. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8126. for as_dir in $PATH
  8127. do
  8128. IFS=$as_save_IFS
  8129. case $as_dir in #(((
  8130. '') as_dir=./ ;;
  8131. */) ;;
  8132. *) as_dir=$as_dir/ ;;
  8133. esac
  8134. for ac_exec_ext in '' $ac_executable_extensions; do
  8135. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8136. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  8137. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8138. break 2
  8139. fi
  8140. done
  8141. done
  8142. IFS=$as_save_IFS
  8143. fi
  8144. fi
  8145. STRIP=$ac_cv_prog_STRIP
  8146. if test -n "$STRIP"; then
  8147. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  8148. printf "%s\n" "$STRIP" >&6; }
  8149. else
  8150. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8151. printf "%s\n" "no" >&6; }
  8152. fi
  8153. fi
  8154. if test -z "$ac_cv_prog_STRIP"; then
  8155. ac_ct_STRIP=$STRIP
  8156. # Extract the first word of "strip", so it can be a program name with args.
  8157. set dummy strip; ac_word=$2
  8158. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8159. printf %s "checking for $ac_word... " >&6; }
  8160. if test ${ac_cv_prog_ac_ct_STRIP+y}
  8161. then :
  8162. printf %s "(cached) " >&6
  8163. else $as_nop
  8164. if test -n "$ac_ct_STRIP"; then
  8165. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  8166. else
  8167. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8168. for as_dir in $PATH
  8169. do
  8170. IFS=$as_save_IFS
  8171. case $as_dir in #(((
  8172. '') as_dir=./ ;;
  8173. */) ;;
  8174. *) as_dir=$as_dir/ ;;
  8175. esac
  8176. for ac_exec_ext in '' $ac_executable_extensions; do
  8177. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8178. ac_cv_prog_ac_ct_STRIP="strip"
  8179. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8180. break 2
  8181. fi
  8182. done
  8183. done
  8184. IFS=$as_save_IFS
  8185. fi
  8186. fi
  8187. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  8188. if test -n "$ac_ct_STRIP"; then
  8189. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  8190. printf "%s\n" "$ac_ct_STRIP" >&6; }
  8191. else
  8192. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8193. printf "%s\n" "no" >&6; }
  8194. fi
  8195. if test "x$ac_ct_STRIP" = x; then
  8196. STRIP=":"
  8197. else
  8198. case $cross_compiling:$ac_tool_warned in
  8199. yes:)
  8200. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8201. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8202. ac_tool_warned=yes ;;
  8203. esac
  8204. STRIP=$ac_ct_STRIP
  8205. fi
  8206. else
  8207. STRIP="$ac_cv_prog_STRIP"
  8208. fi
  8209. test -z "$STRIP" && STRIP=:
  8210. if test -n "$ac_tool_prefix"; then
  8211. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  8212. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  8213. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8214. printf %s "checking for $ac_word... " >&6; }
  8215. if test ${ac_cv_prog_RANLIB+y}
  8216. then :
  8217. printf %s "(cached) " >&6
  8218. else $as_nop
  8219. if test -n "$RANLIB"; then
  8220. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  8221. else
  8222. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8223. for as_dir in $PATH
  8224. do
  8225. IFS=$as_save_IFS
  8226. case $as_dir in #(((
  8227. '') as_dir=./ ;;
  8228. */) ;;
  8229. *) as_dir=$as_dir/ ;;
  8230. esac
  8231. for ac_exec_ext in '' $ac_executable_extensions; do
  8232. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8233. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  8234. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8235. break 2
  8236. fi
  8237. done
  8238. done
  8239. IFS=$as_save_IFS
  8240. fi
  8241. fi
  8242. RANLIB=$ac_cv_prog_RANLIB
  8243. if test -n "$RANLIB"; then
  8244. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  8245. printf "%s\n" "$RANLIB" >&6; }
  8246. else
  8247. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8248. printf "%s\n" "no" >&6; }
  8249. fi
  8250. fi
  8251. if test -z "$ac_cv_prog_RANLIB"; then
  8252. ac_ct_RANLIB=$RANLIB
  8253. # Extract the first word of "ranlib", so it can be a program name with args.
  8254. set dummy ranlib; ac_word=$2
  8255. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8256. printf %s "checking for $ac_word... " >&6; }
  8257. if test ${ac_cv_prog_ac_ct_RANLIB+y}
  8258. then :
  8259. printf %s "(cached) " >&6
  8260. else $as_nop
  8261. if test -n "$ac_ct_RANLIB"; then
  8262. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  8263. else
  8264. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8265. for as_dir in $PATH
  8266. do
  8267. IFS=$as_save_IFS
  8268. case $as_dir in #(((
  8269. '') as_dir=./ ;;
  8270. */) ;;
  8271. *) as_dir=$as_dir/ ;;
  8272. esac
  8273. for ac_exec_ext in '' $ac_executable_extensions; do
  8274. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8275. ac_cv_prog_ac_ct_RANLIB="ranlib"
  8276. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8277. break 2
  8278. fi
  8279. done
  8280. done
  8281. IFS=$as_save_IFS
  8282. fi
  8283. fi
  8284. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  8285. if test -n "$ac_ct_RANLIB"; then
  8286. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  8287. printf "%s\n" "$ac_ct_RANLIB" >&6; }
  8288. else
  8289. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8290. printf "%s\n" "no" >&6; }
  8291. fi
  8292. if test "x$ac_ct_RANLIB" = x; then
  8293. RANLIB=":"
  8294. else
  8295. case $cross_compiling:$ac_tool_warned in
  8296. yes:)
  8297. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8298. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8299. ac_tool_warned=yes ;;
  8300. esac
  8301. RANLIB=$ac_ct_RANLIB
  8302. fi
  8303. else
  8304. RANLIB="$ac_cv_prog_RANLIB"
  8305. fi
  8306. test -z "$RANLIB" && RANLIB=:
  8307. # Determine commands to create old-style static archives.
  8308. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  8309. old_postinstall_cmds='chmod 644 $oldlib'
  8310. old_postuninstall_cmds=
  8311. if test -n "$RANLIB"; then
  8312. case $host_os in
  8313. bitrig* | openbsd*)
  8314. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  8315. ;;
  8316. *)
  8317. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  8318. ;;
  8319. esac
  8320. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  8321. fi
  8322. case $host_os in
  8323. darwin*)
  8324. lock_old_archive_extraction=yes ;;
  8325. *)
  8326. lock_old_archive_extraction=no ;;
  8327. esac
  8328. # If no C compiler was specified, use CC.
  8329. LTCC=${LTCC-"$CC"}
  8330. # If no C compiler flags were specified, use CFLAGS.
  8331. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8332. # Allow CC to be a program name with arguments.
  8333. compiler=$CC
  8334. # Check for command to grab the raw symbol name followed by C symbol from nm.
  8335. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  8336. printf %s "checking command to parse $NM output from $compiler object... " >&6; }
  8337. if test ${lt_cv_sys_global_symbol_pipe+y}
  8338. then :
  8339. printf %s "(cached) " >&6
  8340. else $as_nop
  8341. # These are sane defaults that work on at least a few old systems.
  8342. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  8343. # Character class describing NM global symbol codes.
  8344. symcode='[BCDEGRST]'
  8345. # Regexp to match symbols that can be accessed directly from C.
  8346. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  8347. # Define system-specific variables.
  8348. case $host_os in
  8349. aix*)
  8350. symcode='[BCDT]'
  8351. ;;
  8352. cygwin* | mingw* | pw32* | cegcc*)
  8353. symcode='[ABCDGISTW]'
  8354. ;;
  8355. hpux*)
  8356. if test ia64 = "$host_cpu"; then
  8357. symcode='[ABCDEGRST]'
  8358. fi
  8359. ;;
  8360. irix* | nonstopux*)
  8361. symcode='[BCDEGRST]'
  8362. ;;
  8363. osf*)
  8364. symcode='[BCDEGQRST]'
  8365. ;;
  8366. solaris*)
  8367. symcode='[BDRT]'
  8368. ;;
  8369. sco3.2v5*)
  8370. symcode='[DT]'
  8371. ;;
  8372. sysv4.2uw2*)
  8373. symcode='[DT]'
  8374. ;;
  8375. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  8376. symcode='[ABDT]'
  8377. ;;
  8378. sysv4)
  8379. symcode='[DFNSTU]'
  8380. ;;
  8381. esac
  8382. # If we're using GNU nm, then use its standard symbol codes.
  8383. case `$NM -V 2>&1` in
  8384. *GNU* | *'with BFD'*)
  8385. symcode='[ABCDGIRSTW]' ;;
  8386. esac
  8387. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  8388. # Gets list of data symbols to import.
  8389. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  8390. # Adjust the below global symbol transforms to fixup imported variables.
  8391. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  8392. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  8393. lt_c_name_lib_hook="\
  8394. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  8395. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  8396. else
  8397. # Disable hooks by default.
  8398. lt_cv_sys_global_symbol_to_import=
  8399. lt_cdecl_hook=
  8400. lt_c_name_hook=
  8401. lt_c_name_lib_hook=
  8402. fi
  8403. # Transform an extracted symbol line into a proper C declaration.
  8404. # Some systems (esp. on ia64) link data and code symbols differently,
  8405. # so use this general approach.
  8406. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  8407. $lt_cdecl_hook\
  8408. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  8409. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  8410. # Transform an extracted symbol line into symbol name and symbol address
  8411. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  8412. $lt_c_name_hook\
  8413. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  8414. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  8415. # Transform an extracted symbol line into symbol name with lib prefix and
  8416. # symbol address.
  8417. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  8418. $lt_c_name_lib_hook\
  8419. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  8420. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  8421. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  8422. # Handle CRLF in mingw tool chain
  8423. opt_cr=
  8424. case $build_os in
  8425. mingw*)
  8426. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  8427. ;;
  8428. esac
  8429. # Try without a prefix underscore, then with it.
  8430. for ac_symprfx in "" "_"; do
  8431. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  8432. symxfrm="\\1 $ac_symprfx\\2 \\2"
  8433. # Write the raw and C identifiers.
  8434. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  8435. # Fake it for dumpbin and say T for any non-static function,
  8436. # D for any global variable and I for any imported variable.
  8437. # Also find C++ and __fastcall symbols from MSVC++,
  8438. # which start with @ or ?.
  8439. lt_cv_sys_global_symbol_pipe="$AWK '"\
  8440. " {last_section=section; section=\$ 3};"\
  8441. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  8442. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  8443. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  8444. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  8445. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  8446. " \$ 0!~/External *\|/{next};"\
  8447. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  8448. " {if(hide[section]) next};"\
  8449. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  8450. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  8451. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  8452. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  8453. " ' prfx=^$ac_symprfx"
  8454. else
  8455. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  8456. fi
  8457. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  8458. # Check to see that the pipe works correctly.
  8459. pipe_works=no
  8460. rm -f conftest*
  8461. cat > conftest.$ac_ext <<_LT_EOF
  8462. #ifdef __cplusplus
  8463. extern "C" {
  8464. #endif
  8465. char nm_test_var;
  8466. void nm_test_func(void);
  8467. void nm_test_func(void){}
  8468. #ifdef __cplusplus
  8469. }
  8470. #endif
  8471. int main(){nm_test_var='a';nm_test_func();return(0);}
  8472. _LT_EOF
  8473. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8474. (eval $ac_compile) 2>&5
  8475. ac_status=$?
  8476. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8477. test $ac_status = 0; }; then
  8478. # Now try to grab the symbols.
  8479. nlist=conftest.nm
  8480. $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
  8481. if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
  8482. # Try sorting and uniquifying the output.
  8483. if sort "$nlist" | uniq > "$nlist"T; then
  8484. mv -f "$nlist"T "$nlist"
  8485. else
  8486. rm -f "$nlist"T
  8487. fi
  8488. # Make sure that we snagged all the symbols we need.
  8489. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  8490. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  8491. cat <<_LT_EOF > conftest.$ac_ext
  8492. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  8493. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  8494. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  8495. relocations are performed -- see ld's documentation on pseudo-relocs. */
  8496. # define LT_DLSYM_CONST
  8497. #elif defined __osf__
  8498. /* This system does not cope well with relocations in const data. */
  8499. # define LT_DLSYM_CONST
  8500. #else
  8501. # define LT_DLSYM_CONST const
  8502. #endif
  8503. #ifdef __cplusplus
  8504. extern "C" {
  8505. #endif
  8506. _LT_EOF
  8507. # Now generate the symbol file.
  8508. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  8509. cat <<_LT_EOF >> conftest.$ac_ext
  8510. /* The mapping between symbol names and symbols. */
  8511. LT_DLSYM_CONST struct {
  8512. const char *name;
  8513. void *address;
  8514. }
  8515. lt__PROGRAM__LTX_preloaded_symbols[] =
  8516. {
  8517. { "@PROGRAM@", (void *) 0 },
  8518. _LT_EOF
  8519. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  8520. cat <<\_LT_EOF >> conftest.$ac_ext
  8521. {0, (void *) 0}
  8522. };
  8523. /* This works around a problem in FreeBSD linker */
  8524. #ifdef FREEBSD_WORKAROUND
  8525. static const void *lt_preloaded_setup() {
  8526. return lt__PROGRAM__LTX_preloaded_symbols;
  8527. }
  8528. #endif
  8529. #ifdef __cplusplus
  8530. }
  8531. #endif
  8532. _LT_EOF
  8533. # Now try linking the two files.
  8534. mv conftest.$ac_objext conftstm.$ac_objext
  8535. lt_globsym_save_LIBS=$LIBS
  8536. lt_globsym_save_CFLAGS=$CFLAGS
  8537. LIBS=conftstm.$ac_objext
  8538. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  8539. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  8540. (eval $ac_link) 2>&5
  8541. ac_status=$?
  8542. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8543. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  8544. pipe_works=yes
  8545. fi
  8546. LIBS=$lt_globsym_save_LIBS
  8547. CFLAGS=$lt_globsym_save_CFLAGS
  8548. else
  8549. echo "cannot find nm_test_func in $nlist" >&5
  8550. fi
  8551. else
  8552. echo "cannot find nm_test_var in $nlist" >&5
  8553. fi
  8554. else
  8555. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  8556. fi
  8557. else
  8558. echo "$progname: failed program was:" >&5
  8559. cat conftest.$ac_ext >&5
  8560. fi
  8561. rm -rf conftest* conftst*
  8562. # Do not use the global_symbol_pipe unless it works.
  8563. if test yes = "$pipe_works"; then
  8564. break
  8565. else
  8566. lt_cv_sys_global_symbol_pipe=
  8567. fi
  8568. done
  8569. fi
  8570. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  8571. lt_cv_sys_global_symbol_to_cdecl=
  8572. fi
  8573. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  8574. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  8575. printf "%s\n" "failed" >&6; }
  8576. else
  8577. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  8578. printf "%s\n" "ok" >&6; }
  8579. fi
  8580. # Response file support.
  8581. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  8582. nm_file_list_spec='@'
  8583. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  8584. nm_file_list_spec='@'
  8585. fi
  8586. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  8587. printf %s "checking for sysroot... " >&6; }
  8588. # Check whether --with-sysroot was given.
  8589. if test ${with_sysroot+y}
  8590. then :
  8591. withval=$with_sysroot;
  8592. else $as_nop
  8593. with_sysroot=no
  8594. fi
  8595. lt_sysroot=
  8596. case $with_sysroot in #(
  8597. yes)
  8598. if test yes = "$GCC"; then
  8599. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  8600. fi
  8601. ;; #(
  8602. /*)
  8603. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  8604. ;; #(
  8605. no|'')
  8606. ;; #(
  8607. *)
  8608. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  8609. printf "%s\n" "$with_sysroot" >&6; }
  8610. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  8611. ;;
  8612. esac
  8613. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  8614. printf "%s\n" "${lt_sysroot:-no}" >&6; }
  8615. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  8616. printf %s "checking for a working dd... " >&6; }
  8617. if test ${ac_cv_path_lt_DD+y}
  8618. then :
  8619. printf %s "(cached) " >&6
  8620. else $as_nop
  8621. printf 0123456789abcdef0123456789abcdef >conftest.i
  8622. cat conftest.i conftest.i >conftest2.i
  8623. : ${lt_DD:=$DD}
  8624. if test -z "$lt_DD"; then
  8625. ac_path_lt_DD_found=false
  8626. # Loop through the user's path and test for each of PROGNAME-LIST
  8627. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8628. for as_dir in $PATH
  8629. do
  8630. IFS=$as_save_IFS
  8631. case $as_dir in #(((
  8632. '') as_dir=./ ;;
  8633. */) ;;
  8634. *) as_dir=$as_dir/ ;;
  8635. esac
  8636. for ac_prog in dd
  8637. do
  8638. for ac_exec_ext in '' $ac_executable_extensions; do
  8639. ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
  8640. as_fn_executable_p "$ac_path_lt_DD" || continue
  8641. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  8642. cmp -s conftest.i conftest.out \
  8643. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  8644. fi
  8645. $ac_path_lt_DD_found && break 3
  8646. done
  8647. done
  8648. done
  8649. IFS=$as_save_IFS
  8650. if test -z "$ac_cv_path_lt_DD"; then
  8651. :
  8652. fi
  8653. else
  8654. ac_cv_path_lt_DD=$lt_DD
  8655. fi
  8656. rm -f conftest.i conftest2.i conftest.out
  8657. fi
  8658. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  8659. printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
  8660. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  8661. printf %s "checking how to truncate binary pipes... " >&6; }
  8662. if test ${lt_cv_truncate_bin+y}
  8663. then :
  8664. printf %s "(cached) " >&6
  8665. else $as_nop
  8666. printf 0123456789abcdef0123456789abcdef >conftest.i
  8667. cat conftest.i conftest.i >conftest2.i
  8668. lt_cv_truncate_bin=
  8669. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  8670. cmp -s conftest.i conftest.out \
  8671. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  8672. fi
  8673. rm -f conftest.i conftest2.i conftest.out
  8674. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  8675. fi
  8676. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  8677. printf "%s\n" "$lt_cv_truncate_bin" >&6; }
  8678. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  8679. func_cc_basename ()
  8680. {
  8681. for cc_temp in $*""; do
  8682. case $cc_temp in
  8683. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  8684. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  8685. \-*) ;;
  8686. *) break;;
  8687. esac
  8688. done
  8689. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  8690. }
  8691. # Check whether --enable-libtool-lock was given.
  8692. if test ${enable_libtool_lock+y}
  8693. then :
  8694. enableval=$enable_libtool_lock;
  8695. fi
  8696. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  8697. # Some flags need to be propagated to the compiler or linker for good
  8698. # libtool support.
  8699. case $host in
  8700. ia64-*-hpux*)
  8701. # Find out what ABI is being produced by ac_compile, and set mode
  8702. # options accordingly.
  8703. echo 'int i;' > conftest.$ac_ext
  8704. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8705. (eval $ac_compile) 2>&5
  8706. ac_status=$?
  8707. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8708. test $ac_status = 0; }; then
  8709. case `/usr/bin/file conftest.$ac_objext` in
  8710. *ELF-32*)
  8711. HPUX_IA64_MODE=32
  8712. ;;
  8713. *ELF-64*)
  8714. HPUX_IA64_MODE=64
  8715. ;;
  8716. esac
  8717. fi
  8718. rm -rf conftest*
  8719. ;;
  8720. *-*-irix6*)
  8721. # Find out what ABI is being produced by ac_compile, and set linker
  8722. # options accordingly.
  8723. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  8724. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8725. (eval $ac_compile) 2>&5
  8726. ac_status=$?
  8727. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8728. test $ac_status = 0; }; then
  8729. if test yes = "$lt_cv_prog_gnu_ld"; then
  8730. case `/usr/bin/file conftest.$ac_objext` in
  8731. *32-bit*)
  8732. LD="${LD-ld} -melf32bsmip"
  8733. ;;
  8734. *N32*)
  8735. LD="${LD-ld} -melf32bmipn32"
  8736. ;;
  8737. *64-bit*)
  8738. LD="${LD-ld} -melf64bmip"
  8739. ;;
  8740. esac
  8741. else
  8742. case `/usr/bin/file conftest.$ac_objext` in
  8743. *32-bit*)
  8744. LD="${LD-ld} -32"
  8745. ;;
  8746. *N32*)
  8747. LD="${LD-ld} -n32"
  8748. ;;
  8749. *64-bit*)
  8750. LD="${LD-ld} -64"
  8751. ;;
  8752. esac
  8753. fi
  8754. fi
  8755. rm -rf conftest*
  8756. ;;
  8757. mips64*-*linux*)
  8758. # Find out what ABI is being produced by ac_compile, and set linker
  8759. # options accordingly.
  8760. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  8761. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8762. (eval $ac_compile) 2>&5
  8763. ac_status=$?
  8764. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8765. test $ac_status = 0; }; then
  8766. emul=elf
  8767. case `/usr/bin/file conftest.$ac_objext` in
  8768. *32-bit*)
  8769. emul="${emul}32"
  8770. ;;
  8771. *64-bit*)
  8772. emul="${emul}64"
  8773. ;;
  8774. esac
  8775. case `/usr/bin/file conftest.$ac_objext` in
  8776. *MSB*)
  8777. emul="${emul}btsmip"
  8778. ;;
  8779. *LSB*)
  8780. emul="${emul}ltsmip"
  8781. ;;
  8782. esac
  8783. case `/usr/bin/file conftest.$ac_objext` in
  8784. *N32*)
  8785. emul="${emul}n32"
  8786. ;;
  8787. esac
  8788. LD="${LD-ld} -m $emul"
  8789. fi
  8790. rm -rf conftest*
  8791. ;;
  8792. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  8793. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  8794. # Find out what ABI is being produced by ac_compile, and set linker
  8795. # options accordingly. Note that the listed cases only cover the
  8796. # situations where additional linker options are needed (such as when
  8797. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  8798. # vice versa); the common cases where no linker options are needed do
  8799. # not appear in the list.
  8800. echo 'int i;' > conftest.$ac_ext
  8801. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8802. (eval $ac_compile) 2>&5
  8803. ac_status=$?
  8804. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8805. test $ac_status = 0; }; then
  8806. case `/usr/bin/file conftest.o` in
  8807. *32-bit*)
  8808. case $host in
  8809. x86_64-*kfreebsd*-gnu)
  8810. LD="${LD-ld} -m elf_i386_fbsd"
  8811. ;;
  8812. x86_64-*linux*)
  8813. case `/usr/bin/file conftest.o` in
  8814. *x86-64*)
  8815. LD="${LD-ld} -m elf32_x86_64"
  8816. ;;
  8817. *)
  8818. LD="${LD-ld} -m elf_i386"
  8819. ;;
  8820. esac
  8821. ;;
  8822. powerpc64le-*linux*)
  8823. LD="${LD-ld} -m elf32lppclinux"
  8824. ;;
  8825. powerpc64-*linux*)
  8826. LD="${LD-ld} -m elf32ppclinux"
  8827. ;;
  8828. s390x-*linux*)
  8829. LD="${LD-ld} -m elf_s390"
  8830. ;;
  8831. sparc64-*linux*)
  8832. LD="${LD-ld} -m elf32_sparc"
  8833. ;;
  8834. esac
  8835. ;;
  8836. *64-bit*)
  8837. case $host in
  8838. x86_64-*kfreebsd*-gnu)
  8839. LD="${LD-ld} -m elf_x86_64_fbsd"
  8840. ;;
  8841. x86_64-*linux*)
  8842. LD="${LD-ld} -m elf_x86_64"
  8843. ;;
  8844. powerpcle-*linux*)
  8845. LD="${LD-ld} -m elf64lppc"
  8846. ;;
  8847. powerpc-*linux*)
  8848. LD="${LD-ld} -m elf64ppc"
  8849. ;;
  8850. s390*-*linux*|s390*-*tpf*)
  8851. LD="${LD-ld} -m elf64_s390"
  8852. ;;
  8853. sparc*-*linux*)
  8854. LD="${LD-ld} -m elf64_sparc"
  8855. ;;
  8856. esac
  8857. ;;
  8858. esac
  8859. fi
  8860. rm -rf conftest*
  8861. ;;
  8862. *-*-sco3.2v5*)
  8863. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  8864. SAVE_CFLAGS=$CFLAGS
  8865. CFLAGS="$CFLAGS -belf"
  8866. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  8867. printf %s "checking whether the C compiler needs -belf... " >&6; }
  8868. if test ${lt_cv_cc_needs_belf+y}
  8869. then :
  8870. printf %s "(cached) " >&6
  8871. else $as_nop
  8872. ac_ext=c
  8873. ac_cpp='$CPP $CPPFLAGS'
  8874. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8875. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8876. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8877. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8878. /* end confdefs.h. */
  8879. int
  8880. main (void)
  8881. {
  8882. ;
  8883. return 0;
  8884. }
  8885. _ACEOF
  8886. if ac_fn_c_try_link "$LINENO"
  8887. then :
  8888. lt_cv_cc_needs_belf=yes
  8889. else $as_nop
  8890. lt_cv_cc_needs_belf=no
  8891. fi
  8892. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  8893. conftest$ac_exeext conftest.$ac_ext
  8894. ac_ext=c
  8895. ac_cpp='$CPP $CPPFLAGS'
  8896. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8897. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8898. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8899. fi
  8900. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  8901. printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
  8902. if test yes != "$lt_cv_cc_needs_belf"; then
  8903. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  8904. CFLAGS=$SAVE_CFLAGS
  8905. fi
  8906. ;;
  8907. *-*solaris*)
  8908. # Find out what ABI is being produced by ac_compile, and set linker
  8909. # options accordingly.
  8910. echo 'int i;' > conftest.$ac_ext
  8911. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8912. (eval $ac_compile) 2>&5
  8913. ac_status=$?
  8914. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8915. test $ac_status = 0; }; then
  8916. case `/usr/bin/file conftest.o` in
  8917. *64-bit*)
  8918. case $lt_cv_prog_gnu_ld in
  8919. yes*)
  8920. case $host in
  8921. i?86-*-solaris*|x86_64-*-solaris*)
  8922. LD="${LD-ld} -m elf_x86_64"
  8923. ;;
  8924. sparc*-*-solaris*)
  8925. LD="${LD-ld} -m elf64_sparc"
  8926. ;;
  8927. esac
  8928. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  8929. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  8930. LD=${LD-ld}_sol2
  8931. fi
  8932. ;;
  8933. *)
  8934. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  8935. LD="${LD-ld} -64"
  8936. fi
  8937. ;;
  8938. esac
  8939. ;;
  8940. esac
  8941. fi
  8942. rm -rf conftest*
  8943. ;;
  8944. esac
  8945. need_locks=$enable_libtool_lock
  8946. if test -n "$ac_tool_prefix"; then
  8947. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  8948. set dummy ${ac_tool_prefix}mt; ac_word=$2
  8949. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8950. printf %s "checking for $ac_word... " >&6; }
  8951. if test ${ac_cv_prog_MANIFEST_TOOL+y}
  8952. then :
  8953. printf %s "(cached) " >&6
  8954. else $as_nop
  8955. if test -n "$MANIFEST_TOOL"; then
  8956. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  8957. else
  8958. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8959. for as_dir in $PATH
  8960. do
  8961. IFS=$as_save_IFS
  8962. case $as_dir in #(((
  8963. '') as_dir=./ ;;
  8964. */) ;;
  8965. *) as_dir=$as_dir/ ;;
  8966. esac
  8967. for ac_exec_ext in '' $ac_executable_extensions; do
  8968. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8969. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  8970. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8971. break 2
  8972. fi
  8973. done
  8974. done
  8975. IFS=$as_save_IFS
  8976. fi
  8977. fi
  8978. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  8979. if test -n "$MANIFEST_TOOL"; then
  8980. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  8981. printf "%s\n" "$MANIFEST_TOOL" >&6; }
  8982. else
  8983. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8984. printf "%s\n" "no" >&6; }
  8985. fi
  8986. fi
  8987. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  8988. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  8989. # Extract the first word of "mt", so it can be a program name with args.
  8990. set dummy mt; ac_word=$2
  8991. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8992. printf %s "checking for $ac_word... " >&6; }
  8993. if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
  8994. then :
  8995. printf %s "(cached) " >&6
  8996. else $as_nop
  8997. if test -n "$ac_ct_MANIFEST_TOOL"; then
  8998. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  8999. else
  9000. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9001. for as_dir in $PATH
  9002. do
  9003. IFS=$as_save_IFS
  9004. case $as_dir in #(((
  9005. '') as_dir=./ ;;
  9006. */) ;;
  9007. *) as_dir=$as_dir/ ;;
  9008. esac
  9009. for ac_exec_ext in '' $ac_executable_extensions; do
  9010. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9011. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  9012. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  9013. break 2
  9014. fi
  9015. done
  9016. done
  9017. IFS=$as_save_IFS
  9018. fi
  9019. fi
  9020. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  9021. if test -n "$ac_ct_MANIFEST_TOOL"; then
  9022. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  9023. printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
  9024. else
  9025. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9026. printf "%s\n" "no" >&6; }
  9027. fi
  9028. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  9029. MANIFEST_TOOL=":"
  9030. else
  9031. case $cross_compiling:$ac_tool_warned in
  9032. yes:)
  9033. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9034. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9035. ac_tool_warned=yes ;;
  9036. esac
  9037. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  9038. fi
  9039. else
  9040. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  9041. fi
  9042. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  9043. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  9044. printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  9045. if test ${lt_cv_path_mainfest_tool+y}
  9046. then :
  9047. printf %s "(cached) " >&6
  9048. else $as_nop
  9049. lt_cv_path_mainfest_tool=no
  9050. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  9051. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  9052. cat conftest.err >&5
  9053. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  9054. lt_cv_path_mainfest_tool=yes
  9055. fi
  9056. rm -f conftest*
  9057. fi
  9058. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  9059. printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
  9060. if test yes != "$lt_cv_path_mainfest_tool"; then
  9061. MANIFEST_TOOL=:
  9062. fi
  9063. case $host_os in
  9064. rhapsody* | darwin*)
  9065. if test -n "$ac_tool_prefix"; then
  9066. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  9067. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  9068. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9069. printf %s "checking for $ac_word... " >&6; }
  9070. if test ${ac_cv_prog_DSYMUTIL+y}
  9071. then :
  9072. printf %s "(cached) " >&6
  9073. else $as_nop
  9074. if test -n "$DSYMUTIL"; then
  9075. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  9076. else
  9077. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9078. for as_dir in $PATH
  9079. do
  9080. IFS=$as_save_IFS
  9081. case $as_dir in #(((
  9082. '') as_dir=./ ;;
  9083. */) ;;
  9084. *) as_dir=$as_dir/ ;;
  9085. esac
  9086. for ac_exec_ext in '' $ac_executable_extensions; do
  9087. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9088. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  9089. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  9090. break 2
  9091. fi
  9092. done
  9093. done
  9094. IFS=$as_save_IFS
  9095. fi
  9096. fi
  9097. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  9098. if test -n "$DSYMUTIL"; then
  9099. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  9100. printf "%s\n" "$DSYMUTIL" >&6; }
  9101. else
  9102. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9103. printf "%s\n" "no" >&6; }
  9104. fi
  9105. fi
  9106. if test -z "$ac_cv_prog_DSYMUTIL"; then
  9107. ac_ct_DSYMUTIL=$DSYMUTIL
  9108. # Extract the first word of "dsymutil", so it can be a program name with args.
  9109. set dummy dsymutil; ac_word=$2
  9110. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9111. printf %s "checking for $ac_word... " >&6; }
  9112. if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
  9113. then :
  9114. printf %s "(cached) " >&6
  9115. else $as_nop
  9116. if test -n "$ac_ct_DSYMUTIL"; then
  9117. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  9118. else
  9119. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9120. for as_dir in $PATH
  9121. do
  9122. IFS=$as_save_IFS
  9123. case $as_dir in #(((
  9124. '') as_dir=./ ;;
  9125. */) ;;
  9126. *) as_dir=$as_dir/ ;;
  9127. esac
  9128. for ac_exec_ext in '' $ac_executable_extensions; do
  9129. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9130. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  9131. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  9132. break 2
  9133. fi
  9134. done
  9135. done
  9136. IFS=$as_save_IFS
  9137. fi
  9138. fi
  9139. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  9140. if test -n "$ac_ct_DSYMUTIL"; then
  9141. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  9142. printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
  9143. else
  9144. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9145. printf "%s\n" "no" >&6; }
  9146. fi
  9147. if test "x$ac_ct_DSYMUTIL" = x; then
  9148. DSYMUTIL=":"
  9149. else
  9150. case $cross_compiling:$ac_tool_warned in
  9151. yes:)
  9152. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9153. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9154. ac_tool_warned=yes ;;
  9155. esac
  9156. DSYMUTIL=$ac_ct_DSYMUTIL
  9157. fi
  9158. else
  9159. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  9160. fi
  9161. if test -n "$ac_tool_prefix"; then
  9162. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  9163. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  9164. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9165. printf %s "checking for $ac_word... " >&6; }
  9166. if test ${ac_cv_prog_NMEDIT+y}
  9167. then :
  9168. printf %s "(cached) " >&6
  9169. else $as_nop
  9170. if test -n "$NMEDIT"; then
  9171. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  9172. else
  9173. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9174. for as_dir in $PATH
  9175. do
  9176. IFS=$as_save_IFS
  9177. case $as_dir in #(((
  9178. '') as_dir=./ ;;
  9179. */) ;;
  9180. *) as_dir=$as_dir/ ;;
  9181. esac
  9182. for ac_exec_ext in '' $ac_executable_extensions; do
  9183. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9184. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  9185. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  9186. break 2
  9187. fi
  9188. done
  9189. done
  9190. IFS=$as_save_IFS
  9191. fi
  9192. fi
  9193. NMEDIT=$ac_cv_prog_NMEDIT
  9194. if test -n "$NMEDIT"; then
  9195. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  9196. printf "%s\n" "$NMEDIT" >&6; }
  9197. else
  9198. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9199. printf "%s\n" "no" >&6; }
  9200. fi
  9201. fi
  9202. if test -z "$ac_cv_prog_NMEDIT"; then
  9203. ac_ct_NMEDIT=$NMEDIT
  9204. # Extract the first word of "nmedit", so it can be a program name with args.
  9205. set dummy nmedit; ac_word=$2
  9206. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9207. printf %s "checking for $ac_word... " >&6; }
  9208. if test ${ac_cv_prog_ac_ct_NMEDIT+y}
  9209. then :
  9210. printf %s "(cached) " >&6
  9211. else $as_nop
  9212. if test -n "$ac_ct_NMEDIT"; then
  9213. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  9214. else
  9215. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9216. for as_dir in $PATH
  9217. do
  9218. IFS=$as_save_IFS
  9219. case $as_dir in #(((
  9220. '') as_dir=./ ;;
  9221. */) ;;
  9222. *) as_dir=$as_dir/ ;;
  9223. esac
  9224. for ac_exec_ext in '' $ac_executable_extensions; do
  9225. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9226. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  9227. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  9228. break 2
  9229. fi
  9230. done
  9231. done
  9232. IFS=$as_save_IFS
  9233. fi
  9234. fi
  9235. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  9236. if test -n "$ac_ct_NMEDIT"; then
  9237. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  9238. printf "%s\n" "$ac_ct_NMEDIT" >&6; }
  9239. else
  9240. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9241. printf "%s\n" "no" >&6; }
  9242. fi
  9243. if test "x$ac_ct_NMEDIT" = x; then
  9244. NMEDIT=":"
  9245. else
  9246. case $cross_compiling:$ac_tool_warned in
  9247. yes:)
  9248. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9249. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9250. ac_tool_warned=yes ;;
  9251. esac
  9252. NMEDIT=$ac_ct_NMEDIT
  9253. fi
  9254. else
  9255. NMEDIT="$ac_cv_prog_NMEDIT"
  9256. fi
  9257. if test -n "$ac_tool_prefix"; then
  9258. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  9259. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  9260. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9261. printf %s "checking for $ac_word... " >&6; }
  9262. if test ${ac_cv_prog_LIPO+y}
  9263. then :
  9264. printf %s "(cached) " >&6
  9265. else $as_nop
  9266. if test -n "$LIPO"; then
  9267. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  9268. else
  9269. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9270. for as_dir in $PATH
  9271. do
  9272. IFS=$as_save_IFS
  9273. case $as_dir in #(((
  9274. '') as_dir=./ ;;
  9275. */) ;;
  9276. *) as_dir=$as_dir/ ;;
  9277. esac
  9278. for ac_exec_ext in '' $ac_executable_extensions; do
  9279. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9280. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  9281. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  9282. break 2
  9283. fi
  9284. done
  9285. done
  9286. IFS=$as_save_IFS
  9287. fi
  9288. fi
  9289. LIPO=$ac_cv_prog_LIPO
  9290. if test -n "$LIPO"; then
  9291. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  9292. printf "%s\n" "$LIPO" >&6; }
  9293. else
  9294. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9295. printf "%s\n" "no" >&6; }
  9296. fi
  9297. fi
  9298. if test -z "$ac_cv_prog_LIPO"; then
  9299. ac_ct_LIPO=$LIPO
  9300. # Extract the first word of "lipo", so it can be a program name with args.
  9301. set dummy lipo; ac_word=$2
  9302. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9303. printf %s "checking for $ac_word... " >&6; }
  9304. if test ${ac_cv_prog_ac_ct_LIPO+y}
  9305. then :
  9306. printf %s "(cached) " >&6
  9307. else $as_nop
  9308. if test -n "$ac_ct_LIPO"; then
  9309. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  9310. else
  9311. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9312. for as_dir in $PATH
  9313. do
  9314. IFS=$as_save_IFS
  9315. case $as_dir in #(((
  9316. '') as_dir=./ ;;
  9317. */) ;;
  9318. *) as_dir=$as_dir/ ;;
  9319. esac
  9320. for ac_exec_ext in '' $ac_executable_extensions; do
  9321. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9322. ac_cv_prog_ac_ct_LIPO="lipo"
  9323. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  9324. break 2
  9325. fi
  9326. done
  9327. done
  9328. IFS=$as_save_IFS
  9329. fi
  9330. fi
  9331. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  9332. if test -n "$ac_ct_LIPO"; then
  9333. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  9334. printf "%s\n" "$ac_ct_LIPO" >&6; }
  9335. else
  9336. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9337. printf "%s\n" "no" >&6; }
  9338. fi
  9339. if test "x$ac_ct_LIPO" = x; then
  9340. LIPO=":"
  9341. else
  9342. case $cross_compiling:$ac_tool_warned in
  9343. yes:)
  9344. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9345. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9346. ac_tool_warned=yes ;;
  9347. esac
  9348. LIPO=$ac_ct_LIPO
  9349. fi
  9350. else
  9351. LIPO="$ac_cv_prog_LIPO"
  9352. fi
  9353. if test -n "$ac_tool_prefix"; then
  9354. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  9355. set dummy ${ac_tool_prefix}otool; ac_word=$2
  9356. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9357. printf %s "checking for $ac_word... " >&6; }
  9358. if test ${ac_cv_prog_OTOOL+y}
  9359. then :
  9360. printf %s "(cached) " >&6
  9361. else $as_nop
  9362. if test -n "$OTOOL"; then
  9363. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  9364. else
  9365. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9366. for as_dir in $PATH
  9367. do
  9368. IFS=$as_save_IFS
  9369. case $as_dir in #(((
  9370. '') as_dir=./ ;;
  9371. */) ;;
  9372. *) as_dir=$as_dir/ ;;
  9373. esac
  9374. for ac_exec_ext in '' $ac_executable_extensions; do
  9375. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9376. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  9377. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  9378. break 2
  9379. fi
  9380. done
  9381. done
  9382. IFS=$as_save_IFS
  9383. fi
  9384. fi
  9385. OTOOL=$ac_cv_prog_OTOOL
  9386. if test -n "$OTOOL"; then
  9387. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  9388. printf "%s\n" "$OTOOL" >&6; }
  9389. else
  9390. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9391. printf "%s\n" "no" >&6; }
  9392. fi
  9393. fi
  9394. if test -z "$ac_cv_prog_OTOOL"; then
  9395. ac_ct_OTOOL=$OTOOL
  9396. # Extract the first word of "otool", so it can be a program name with args.
  9397. set dummy otool; ac_word=$2
  9398. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9399. printf %s "checking for $ac_word... " >&6; }
  9400. if test ${ac_cv_prog_ac_ct_OTOOL+y}
  9401. then :
  9402. printf %s "(cached) " >&6
  9403. else $as_nop
  9404. if test -n "$ac_ct_OTOOL"; then
  9405. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  9406. else
  9407. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9408. for as_dir in $PATH
  9409. do
  9410. IFS=$as_save_IFS
  9411. case $as_dir in #(((
  9412. '') as_dir=./ ;;
  9413. */) ;;
  9414. *) as_dir=$as_dir/ ;;
  9415. esac
  9416. for ac_exec_ext in '' $ac_executable_extensions; do
  9417. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9418. ac_cv_prog_ac_ct_OTOOL="otool"
  9419. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  9420. break 2
  9421. fi
  9422. done
  9423. done
  9424. IFS=$as_save_IFS
  9425. fi
  9426. fi
  9427. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  9428. if test -n "$ac_ct_OTOOL"; then
  9429. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  9430. printf "%s\n" "$ac_ct_OTOOL" >&6; }
  9431. else
  9432. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9433. printf "%s\n" "no" >&6; }
  9434. fi
  9435. if test "x$ac_ct_OTOOL" = x; then
  9436. OTOOL=":"
  9437. else
  9438. case $cross_compiling:$ac_tool_warned in
  9439. yes:)
  9440. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9441. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9442. ac_tool_warned=yes ;;
  9443. esac
  9444. OTOOL=$ac_ct_OTOOL
  9445. fi
  9446. else
  9447. OTOOL="$ac_cv_prog_OTOOL"
  9448. fi
  9449. if test -n "$ac_tool_prefix"; then
  9450. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  9451. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  9452. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9453. printf %s "checking for $ac_word... " >&6; }
  9454. if test ${ac_cv_prog_OTOOL64+y}
  9455. then :
  9456. printf %s "(cached) " >&6
  9457. else $as_nop
  9458. if test -n "$OTOOL64"; then
  9459. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  9460. else
  9461. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9462. for as_dir in $PATH
  9463. do
  9464. IFS=$as_save_IFS
  9465. case $as_dir in #(((
  9466. '') as_dir=./ ;;
  9467. */) ;;
  9468. *) as_dir=$as_dir/ ;;
  9469. esac
  9470. for ac_exec_ext in '' $ac_executable_extensions; do
  9471. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9472. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  9473. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  9474. break 2
  9475. fi
  9476. done
  9477. done
  9478. IFS=$as_save_IFS
  9479. fi
  9480. fi
  9481. OTOOL64=$ac_cv_prog_OTOOL64
  9482. if test -n "$OTOOL64"; then
  9483. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  9484. printf "%s\n" "$OTOOL64" >&6; }
  9485. else
  9486. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9487. printf "%s\n" "no" >&6; }
  9488. fi
  9489. fi
  9490. if test -z "$ac_cv_prog_OTOOL64"; then
  9491. ac_ct_OTOOL64=$OTOOL64
  9492. # Extract the first word of "otool64", so it can be a program name with args.
  9493. set dummy otool64; 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_ac_ct_OTOOL64+y}
  9497. then :
  9498. printf %s "(cached) " >&6
  9499. else $as_nop
  9500. if test -n "$ac_ct_OTOOL64"; then
  9501. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # 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_ac_ct_OTOOL64="otool64"
  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. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  9524. if test -n "$ac_ct_OTOOL64"; then
  9525. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  9526. printf "%s\n" "$ac_ct_OTOOL64" >&6; }
  9527. else
  9528. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9529. printf "%s\n" "no" >&6; }
  9530. fi
  9531. if test "x$ac_ct_OTOOL64" = x; then
  9532. OTOOL64=":"
  9533. else
  9534. case $cross_compiling:$ac_tool_warned in
  9535. yes:)
  9536. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9537. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9538. ac_tool_warned=yes ;;
  9539. esac
  9540. OTOOL64=$ac_ct_OTOOL64
  9541. fi
  9542. else
  9543. OTOOL64="$ac_cv_prog_OTOOL64"
  9544. fi
  9545. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  9546. printf %s "checking for -single_module linker flag... " >&6; }
  9547. if test ${lt_cv_apple_cc_single_mod+y}
  9548. then :
  9549. printf %s "(cached) " >&6
  9550. else $as_nop
  9551. lt_cv_apple_cc_single_mod=no
  9552. if test -z "$LT_MULTI_MODULE"; then
  9553. # By default we will add the -single_module flag. You can override
  9554. # by either setting the environment variable LT_MULTI_MODULE
  9555. # non-empty at configure time, or by adding -multi_module to the
  9556. # link flags.
  9557. rm -rf libconftest.dylib*
  9558. echo "int foo(void){return 1;}" > conftest.c
  9559. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  9560. -dynamiclib -Wl,-single_module conftest.c" >&5
  9561. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  9562. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  9563. _lt_result=$?
  9564. # If there is a non-empty error log, and "single_module"
  9565. # appears in it, assume the flag caused a linker warning
  9566. if test -s conftest.err && $GREP single_module conftest.err; then
  9567. cat conftest.err >&5
  9568. # Otherwise, if the output was created with a 0 exit code from
  9569. # the compiler, it worked.
  9570. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  9571. lt_cv_apple_cc_single_mod=yes
  9572. else
  9573. cat conftest.err >&5
  9574. fi
  9575. rm -rf libconftest.dylib*
  9576. rm -f conftest.*
  9577. fi
  9578. fi
  9579. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  9580. printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
  9581. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  9582. printf %s "checking for -exported_symbols_list linker flag... " >&6; }
  9583. if test ${lt_cv_ld_exported_symbols_list+y}
  9584. then :
  9585. printf %s "(cached) " >&6
  9586. else $as_nop
  9587. lt_cv_ld_exported_symbols_list=no
  9588. save_LDFLAGS=$LDFLAGS
  9589. echo "_main" > conftest.sym
  9590. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  9591. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9592. /* end confdefs.h. */
  9593. int
  9594. main (void)
  9595. {
  9596. ;
  9597. return 0;
  9598. }
  9599. _ACEOF
  9600. if ac_fn_c_try_link "$LINENO"
  9601. then :
  9602. lt_cv_ld_exported_symbols_list=yes
  9603. else $as_nop
  9604. lt_cv_ld_exported_symbols_list=no
  9605. fi
  9606. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9607. conftest$ac_exeext conftest.$ac_ext
  9608. LDFLAGS=$save_LDFLAGS
  9609. fi
  9610. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  9611. printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
  9612. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  9613. printf %s "checking for -force_load linker flag... " >&6; }
  9614. if test ${lt_cv_ld_force_load+y}
  9615. then :
  9616. printf %s "(cached) " >&6
  9617. else $as_nop
  9618. lt_cv_ld_force_load=no
  9619. cat > conftest.c << _LT_EOF
  9620. int forced_loaded() { return 2;}
  9621. _LT_EOF
  9622. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  9623. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  9624. echo "$AR cr libconftest.a conftest.o" >&5
  9625. $AR cr libconftest.a conftest.o 2>&5
  9626. echo "$RANLIB libconftest.a" >&5
  9627. $RANLIB libconftest.a 2>&5
  9628. cat > conftest.c << _LT_EOF
  9629. int main() { return 0;}
  9630. _LT_EOF
  9631. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  9632. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  9633. _lt_result=$?
  9634. if test -s conftest.err && $GREP force_load conftest.err; then
  9635. cat conftest.err >&5
  9636. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  9637. lt_cv_ld_force_load=yes
  9638. else
  9639. cat conftest.err >&5
  9640. fi
  9641. rm -f conftest.err libconftest.a conftest conftest.c
  9642. rm -rf conftest.dSYM
  9643. fi
  9644. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  9645. printf "%s\n" "$lt_cv_ld_force_load" >&6; }
  9646. case $host_os in
  9647. rhapsody* | darwin1.[012])
  9648. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  9649. darwin1.*)
  9650. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  9651. darwin*) # darwin 5.x on
  9652. # if running on 10.5 or later, the deployment target defaults
  9653. # to the OS version, if on x86, and 10.4, the deployment
  9654. # target defaults to 10.4. Don't you love it?
  9655. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  9656. 10.0,*86*-darwin8*|10.0,*-darwin[912]*)
  9657. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  9658. 10.[012][,.]*)
  9659. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  9660. 10.*|11.*)
  9661. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  9662. esac
  9663. ;;
  9664. esac
  9665. if test yes = "$lt_cv_apple_cc_single_mod"; then
  9666. _lt_dar_single_mod='$single_module'
  9667. fi
  9668. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  9669. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  9670. else
  9671. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  9672. fi
  9673. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  9674. _lt_dsymutil='~$DSYMUTIL $lib || :'
  9675. else
  9676. _lt_dsymutil=
  9677. fi
  9678. ;;
  9679. esac
  9680. # func_munge_path_list VARIABLE PATH
  9681. # -----------------------------------
  9682. # VARIABLE is name of variable containing _space_ separated list of
  9683. # directories to be munged by the contents of PATH, which is string
  9684. # having a format:
  9685. # "DIR[:DIR]:"
  9686. # string "DIR[ DIR]" will be prepended to VARIABLE
  9687. # ":DIR[:DIR]"
  9688. # string "DIR[ DIR]" will be appended to VARIABLE
  9689. # "DIRP[:DIRP]::[DIRA:]DIRA"
  9690. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  9691. # "DIRA[ DIRA]" will be appended to VARIABLE
  9692. # "DIR[:DIR]"
  9693. # VARIABLE will be replaced by "DIR[ DIR]"
  9694. func_munge_path_list ()
  9695. {
  9696. case x$2 in
  9697. x)
  9698. ;;
  9699. *:)
  9700. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  9701. ;;
  9702. x:*)
  9703. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  9704. ;;
  9705. *::*)
  9706. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  9707. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  9708. ;;
  9709. *)
  9710. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  9711. ;;
  9712. esac
  9713. }
  9714. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  9715. "
  9716. if test "x$ac_cv_header_dlfcn_h" = xyes
  9717. then :
  9718. printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
  9719. fi
  9720. func_stripname_cnf ()
  9721. {
  9722. case $2 in
  9723. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  9724. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  9725. esac
  9726. } # func_stripname_cnf
  9727. # Set options
  9728. enable_dlopen=no
  9729. # Check whether --enable-shared was given.
  9730. if test ${enable_shared+y}
  9731. then :
  9732. enableval=$enable_shared; p=${PACKAGE-default}
  9733. case $enableval in
  9734. yes) enable_shared=yes ;;
  9735. no) enable_shared=no ;;
  9736. *)
  9737. enable_shared=no
  9738. # Look at the argument we got. We use all the common list separators.
  9739. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  9740. for pkg in $enableval; do
  9741. IFS=$lt_save_ifs
  9742. if test "X$pkg" = "X$p"; then
  9743. enable_shared=yes
  9744. fi
  9745. done
  9746. IFS=$lt_save_ifs
  9747. ;;
  9748. esac
  9749. else $as_nop
  9750. enable_shared=yes
  9751. fi
  9752. # Check whether --enable-static was given.
  9753. if test ${enable_static+y}
  9754. then :
  9755. enableval=$enable_static; p=${PACKAGE-default}
  9756. case $enableval in
  9757. yes) enable_static=yes ;;
  9758. no) enable_static=no ;;
  9759. *)
  9760. enable_static=no
  9761. # Look at the argument we got. We use all the common list separators.
  9762. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  9763. for pkg in $enableval; do
  9764. IFS=$lt_save_ifs
  9765. if test "X$pkg" = "X$p"; then
  9766. enable_static=yes
  9767. fi
  9768. done
  9769. IFS=$lt_save_ifs
  9770. ;;
  9771. esac
  9772. else $as_nop
  9773. enable_static=yes
  9774. fi
  9775. # Check whether --with-pic was given.
  9776. if test ${with_pic+y}
  9777. then :
  9778. withval=$with_pic; lt_p=${PACKAGE-default}
  9779. case $withval in
  9780. yes|no) pic_mode=$withval ;;
  9781. *)
  9782. pic_mode=default
  9783. # Look at the argument we got. We use all the common list separators.
  9784. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  9785. for lt_pkg in $withval; do
  9786. IFS=$lt_save_ifs
  9787. if test "X$lt_pkg" = "X$lt_p"; then
  9788. pic_mode=yes
  9789. fi
  9790. done
  9791. IFS=$lt_save_ifs
  9792. ;;
  9793. esac
  9794. else $as_nop
  9795. pic_mode=default
  9796. fi
  9797. # Check whether --enable-fast-install was given.
  9798. if test ${enable_fast_install+y}
  9799. then :
  9800. enableval=$enable_fast_install; p=${PACKAGE-default}
  9801. case $enableval in
  9802. yes) enable_fast_install=yes ;;
  9803. no) enable_fast_install=no ;;
  9804. *)
  9805. enable_fast_install=no
  9806. # Look at the argument we got. We use all the common list separators.
  9807. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  9808. for pkg in $enableval; do
  9809. IFS=$lt_save_ifs
  9810. if test "X$pkg" = "X$p"; then
  9811. enable_fast_install=yes
  9812. fi
  9813. done
  9814. IFS=$lt_save_ifs
  9815. ;;
  9816. esac
  9817. else $as_nop
  9818. enable_fast_install=yes
  9819. fi
  9820. shared_archive_member_spec=
  9821. case $host,$enable_shared in
  9822. power*-*-aix[5-9]*,yes)
  9823. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  9824. printf %s "checking which variant of shared library versioning to provide... " >&6; }
  9825. # Check whether --with-aix-soname was given.
  9826. if test ${with_aix_soname+y}
  9827. then :
  9828. withval=$with_aix_soname; case $withval in
  9829. aix|svr4|both)
  9830. ;;
  9831. *)
  9832. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  9833. ;;
  9834. esac
  9835. lt_cv_with_aix_soname=$with_aix_soname
  9836. else $as_nop
  9837. if test ${lt_cv_with_aix_soname+y}
  9838. then :
  9839. printf %s "(cached) " >&6
  9840. else $as_nop
  9841. lt_cv_with_aix_soname=aix
  9842. fi
  9843. with_aix_soname=$lt_cv_with_aix_soname
  9844. fi
  9845. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  9846. printf "%s\n" "$with_aix_soname" >&6; }
  9847. if test aix != "$with_aix_soname"; then
  9848. # For the AIX way of multilib, we name the shared archive member
  9849. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  9850. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  9851. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  9852. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  9853. if test 64 = "${OBJECT_MODE-32}"; then
  9854. shared_archive_member_spec=shr_64
  9855. else
  9856. shared_archive_member_spec=shr
  9857. fi
  9858. fi
  9859. ;;
  9860. *)
  9861. with_aix_soname=aix
  9862. ;;
  9863. esac
  9864. # This can be used to rebuild libtool when needed
  9865. LIBTOOL_DEPS=$ltmain
  9866. # Always use our own libtool.
  9867. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  9868. test -z "$LN_S" && LN_S="ln -s"
  9869. if test -n "${ZSH_VERSION+set}"; then
  9870. setopt NO_GLOB_SUBST
  9871. fi
  9872. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  9873. printf %s "checking for objdir... " >&6; }
  9874. if test ${lt_cv_objdir+y}
  9875. then :
  9876. printf %s "(cached) " >&6
  9877. else $as_nop
  9878. rm -f .libs 2>/dev/null
  9879. mkdir .libs 2>/dev/null
  9880. if test -d .libs; then
  9881. lt_cv_objdir=.libs
  9882. else
  9883. # MS-DOS does not allow filenames that begin with a dot.
  9884. lt_cv_objdir=_libs
  9885. fi
  9886. rmdir .libs 2>/dev/null
  9887. fi
  9888. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  9889. printf "%s\n" "$lt_cv_objdir" >&6; }
  9890. objdir=$lt_cv_objdir
  9891. printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
  9892. case $host_os in
  9893. aix3*)
  9894. # AIX sometimes has problems with the GCC collect2 program. For some
  9895. # reason, if we set the COLLECT_NAMES environment variable, the problems
  9896. # vanish in a puff of smoke.
  9897. if test set != "${COLLECT_NAMES+set}"; then
  9898. COLLECT_NAMES=
  9899. export COLLECT_NAMES
  9900. fi
  9901. ;;
  9902. esac
  9903. # Global variables:
  9904. ofile=libtool
  9905. can_build_shared=yes
  9906. # All known linkers require a '.a' archive for static linking (except MSVC,
  9907. # which needs '.lib').
  9908. libext=a
  9909. with_gnu_ld=$lt_cv_prog_gnu_ld
  9910. old_CC=$CC
  9911. old_CFLAGS=$CFLAGS
  9912. # Set sane defaults for various variables
  9913. test -z "$CC" && CC=cc
  9914. test -z "$LTCC" && LTCC=$CC
  9915. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  9916. test -z "$LD" && LD=ld
  9917. test -z "$ac_objext" && ac_objext=o
  9918. func_cc_basename $compiler
  9919. cc_basename=$func_cc_basename_result
  9920. # Only perform the check for file, if the check method requires it
  9921. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  9922. case $deplibs_check_method in
  9923. file_magic*)
  9924. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  9925. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  9926. printf %s "checking for ${ac_tool_prefix}file... " >&6; }
  9927. if test ${lt_cv_path_MAGIC_CMD+y}
  9928. then :
  9929. printf %s "(cached) " >&6
  9930. else $as_nop
  9931. case $MAGIC_CMD in
  9932. [\\/*] | ?:[\\/]*)
  9933. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  9934. ;;
  9935. *)
  9936. lt_save_MAGIC_CMD=$MAGIC_CMD
  9937. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  9938. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  9939. for ac_dir in $ac_dummy; do
  9940. IFS=$lt_save_ifs
  9941. test -z "$ac_dir" && ac_dir=.
  9942. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  9943. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  9944. if test -n "$file_magic_test_file"; then
  9945. case $deplibs_check_method in
  9946. "file_magic "*)
  9947. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  9948. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  9949. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  9950. $EGREP "$file_magic_regex" > /dev/null; then
  9951. :
  9952. else
  9953. cat <<_LT_EOF 1>&2
  9954. *** Warning: the command libtool uses to detect shared libraries,
  9955. *** $file_magic_cmd, produces output that libtool cannot recognize.
  9956. *** The result is that libtool may fail to recognize shared libraries
  9957. *** as such. This will affect the creation of libtool libraries that
  9958. *** depend on shared libraries, but programs linked with such libtool
  9959. *** libraries will work regardless of this problem. Nevertheless, you
  9960. *** may want to report the problem to your system manager and/or to
  9961. *** [email protected]
  9962. _LT_EOF
  9963. fi ;;
  9964. esac
  9965. fi
  9966. break
  9967. fi
  9968. done
  9969. IFS=$lt_save_ifs
  9970. MAGIC_CMD=$lt_save_MAGIC_CMD
  9971. ;;
  9972. esac
  9973. fi
  9974. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  9975. if test -n "$MAGIC_CMD"; then
  9976. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  9977. printf "%s\n" "$MAGIC_CMD" >&6; }
  9978. else
  9979. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9980. printf "%s\n" "no" >&6; }
  9981. fi
  9982. if test -z "$lt_cv_path_MAGIC_CMD"; then
  9983. if test -n "$ac_tool_prefix"; then
  9984. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  9985. printf %s "checking for file... " >&6; }
  9986. if test ${lt_cv_path_MAGIC_CMD+y}
  9987. then :
  9988. printf %s "(cached) " >&6
  9989. else $as_nop
  9990. case $MAGIC_CMD in
  9991. [\\/*] | ?:[\\/]*)
  9992. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  9993. ;;
  9994. *)
  9995. lt_save_MAGIC_CMD=$MAGIC_CMD
  9996. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  9997. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  9998. for ac_dir in $ac_dummy; do
  9999. IFS=$lt_save_ifs
  10000. test -z "$ac_dir" && ac_dir=.
  10001. if test -f "$ac_dir/file"; then
  10002. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  10003. if test -n "$file_magic_test_file"; then
  10004. case $deplibs_check_method in
  10005. "file_magic "*)
  10006. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  10007. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  10008. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  10009. $EGREP "$file_magic_regex" > /dev/null; then
  10010. :
  10011. else
  10012. cat <<_LT_EOF 1>&2
  10013. *** Warning: the command libtool uses to detect shared libraries,
  10014. *** $file_magic_cmd, produces output that libtool cannot recognize.
  10015. *** The result is that libtool may fail to recognize shared libraries
  10016. *** as such. This will affect the creation of libtool libraries that
  10017. *** depend on shared libraries, but programs linked with such libtool
  10018. *** libraries will work regardless of this problem. Nevertheless, you
  10019. *** may want to report the problem to your system manager and/or to
  10020. *** [email protected]
  10021. _LT_EOF
  10022. fi ;;
  10023. esac
  10024. fi
  10025. break
  10026. fi
  10027. done
  10028. IFS=$lt_save_ifs
  10029. MAGIC_CMD=$lt_save_MAGIC_CMD
  10030. ;;
  10031. esac
  10032. fi
  10033. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  10034. if test -n "$MAGIC_CMD"; then
  10035. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  10036. printf "%s\n" "$MAGIC_CMD" >&6; }
  10037. else
  10038. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10039. printf "%s\n" "no" >&6; }
  10040. fi
  10041. else
  10042. MAGIC_CMD=:
  10043. fi
  10044. fi
  10045. fi
  10046. ;;
  10047. esac
  10048. # Use C for the default configuration in the libtool script
  10049. lt_save_CC=$CC
  10050. ac_ext=c
  10051. ac_cpp='$CPP $CPPFLAGS'
  10052. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10053. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10054. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10055. # Source file extension for C test sources.
  10056. ac_ext=c
  10057. # Object file extension for compiled C test sources.
  10058. objext=o
  10059. objext=$objext
  10060. # Code to be used in simple compile tests
  10061. lt_simple_compile_test_code="int some_variable = 0;"
  10062. # Code to be used in simple link tests
  10063. lt_simple_link_test_code='int main(){return(0);}'
  10064. # If no C compiler was specified, use CC.
  10065. LTCC=${LTCC-"$CC"}
  10066. # If no C compiler flags were specified, use CFLAGS.
  10067. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10068. # Allow CC to be a program name with arguments.
  10069. compiler=$CC
  10070. # Save the default compiler, since it gets overwritten when the other
  10071. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  10072. compiler_DEFAULT=$CC
  10073. # save warnings/boilerplate of simple test code
  10074. ac_outfile=conftest.$ac_objext
  10075. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10076. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10077. _lt_compiler_boilerplate=`cat conftest.err`
  10078. $RM conftest*
  10079. ac_outfile=conftest.$ac_objext
  10080. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10081. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10082. _lt_linker_boilerplate=`cat conftest.err`
  10083. $RM -r conftest*
  10084. ## CAVEAT EMPTOR:
  10085. ## There is no encapsulation within the following macros, do not change
  10086. ## the running order or otherwise move them around unless you know exactly
  10087. ## what you are doing...
  10088. if test -n "$compiler"; then
  10089. lt_prog_compiler_no_builtin_flag=
  10090. if test yes = "$GCC"; then
  10091. case $cc_basename in
  10092. nvcc*)
  10093. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  10094. *)
  10095. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  10096. esac
  10097. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  10098. printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  10099. if test ${lt_cv_prog_compiler_rtti_exceptions+y}
  10100. then :
  10101. printf %s "(cached) " >&6
  10102. else $as_nop
  10103. lt_cv_prog_compiler_rtti_exceptions=no
  10104. ac_outfile=conftest.$ac_objext
  10105. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10106. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  10107. # Insert the option either (1) after the last *FLAGS variable, or
  10108. # (2) before a word containing "conftest.", or (3) at the end.
  10109. # Note that $ac_compile itself does not contain backslashes and begins
  10110. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10111. # The option is referenced via a variable to avoid confusing sed.
  10112. lt_compile=`echo "$ac_compile" | $SED \
  10113. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10114. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10115. -e 's:$: $lt_compiler_flag:'`
  10116. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  10117. (eval "$lt_compile" 2>conftest.err)
  10118. ac_status=$?
  10119. cat conftest.err >&5
  10120. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10121. if (exit $ac_status) && test -s "$ac_outfile"; then
  10122. # The compiler can only warn and ignore the option if not recognized
  10123. # So say no if there are warnings other than the usual output.
  10124. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  10125. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10126. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  10127. lt_cv_prog_compiler_rtti_exceptions=yes
  10128. fi
  10129. fi
  10130. $RM conftest*
  10131. fi
  10132. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  10133. printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  10134. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  10135. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  10136. else
  10137. :
  10138. fi
  10139. fi
  10140. lt_prog_compiler_wl=
  10141. lt_prog_compiler_pic=
  10142. lt_prog_compiler_static=
  10143. if test yes = "$GCC"; then
  10144. lt_prog_compiler_wl='-Wl,'
  10145. lt_prog_compiler_static='-static'
  10146. case $host_os in
  10147. aix*)
  10148. # All AIX code is PIC.
  10149. if test ia64 = "$host_cpu"; then
  10150. # AIX 5 now supports IA64 processor
  10151. lt_prog_compiler_static='-Bstatic'
  10152. fi
  10153. lt_prog_compiler_pic='-fPIC'
  10154. ;;
  10155. amigaos*)
  10156. case $host_cpu in
  10157. powerpc)
  10158. # see comment about AmigaOS4 .so support
  10159. lt_prog_compiler_pic='-fPIC'
  10160. ;;
  10161. m68k)
  10162. # FIXME: we need at least 68020 code to build shared libraries, but
  10163. # adding the '-m68020' flag to GCC prevents building anything better,
  10164. # like '-m68040'.
  10165. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  10166. ;;
  10167. esac
  10168. ;;
  10169. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  10170. # PIC is the default for these OSes.
  10171. ;;
  10172. mingw* | cygwin* | pw32* | os2* | cegcc*)
  10173. # This hack is so that the source file can tell whether it is being
  10174. # built for inclusion in a dll (and should export symbols for example).
  10175. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  10176. # (--disable-auto-import) libraries
  10177. lt_prog_compiler_pic='-DDLL_EXPORT'
  10178. case $host_os in
  10179. os2*)
  10180. lt_prog_compiler_static='$wl-static'
  10181. ;;
  10182. esac
  10183. ;;
  10184. darwin* | rhapsody*)
  10185. # PIC is the default on this platform
  10186. # Common symbols not allowed in MH_DYLIB files
  10187. lt_prog_compiler_pic='-fno-common'
  10188. ;;
  10189. haiku*)
  10190. # PIC is the default for Haiku.
  10191. # The "-static" flag exists, but is broken.
  10192. lt_prog_compiler_static=
  10193. ;;
  10194. hpux*)
  10195. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  10196. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  10197. # sets the default TLS model and affects inlining.
  10198. case $host_cpu in
  10199. hppa*64*)
  10200. # +Z the default
  10201. ;;
  10202. *)
  10203. lt_prog_compiler_pic='-fPIC'
  10204. ;;
  10205. esac
  10206. ;;
  10207. interix[3-9]*)
  10208. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  10209. # Instead, we relocate shared libraries at runtime.
  10210. ;;
  10211. msdosdjgpp*)
  10212. # Just because we use GCC doesn't mean we suddenly get shared libraries
  10213. # on systems that don't support them.
  10214. lt_prog_compiler_can_build_shared=no
  10215. enable_shared=no
  10216. ;;
  10217. *nto* | *qnx*)
  10218. # QNX uses GNU C++, but need to define -shared option too, otherwise
  10219. # it will coredump.
  10220. lt_prog_compiler_pic='-fPIC -shared'
  10221. ;;
  10222. sysv4*MP*)
  10223. if test -d /usr/nec; then
  10224. lt_prog_compiler_pic=-Kconform_pic
  10225. fi
  10226. ;;
  10227. *)
  10228. lt_prog_compiler_pic='-fPIC'
  10229. ;;
  10230. esac
  10231. case $cc_basename in
  10232. nvcc*) # Cuda Compiler Driver 2.2
  10233. lt_prog_compiler_wl='-Xlinker '
  10234. if test -n "$lt_prog_compiler_pic"; then
  10235. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  10236. fi
  10237. ;;
  10238. esac
  10239. else
  10240. # PORTME Check for flag to pass linker flags through the system compiler.
  10241. case $host_os in
  10242. aix*)
  10243. lt_prog_compiler_wl='-Wl,'
  10244. if test ia64 = "$host_cpu"; then
  10245. # AIX 5 now supports IA64 processor
  10246. lt_prog_compiler_static='-Bstatic'
  10247. else
  10248. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  10249. fi
  10250. ;;
  10251. darwin* | rhapsody*)
  10252. # PIC is the default on this platform
  10253. # Common symbols not allowed in MH_DYLIB files
  10254. lt_prog_compiler_pic='-fno-common'
  10255. case $cc_basename in
  10256. nagfor*)
  10257. # NAG Fortran compiler
  10258. lt_prog_compiler_wl='-Wl,-Wl,,'
  10259. lt_prog_compiler_pic='-PIC'
  10260. lt_prog_compiler_static='-Bstatic'
  10261. ;;
  10262. esac
  10263. ;;
  10264. mingw* | cygwin* | pw32* | os2* | cegcc*)
  10265. # This hack is so that the source file can tell whether it is being
  10266. # built for inclusion in a dll (and should export symbols for example).
  10267. lt_prog_compiler_pic='-DDLL_EXPORT'
  10268. case $host_os in
  10269. os2*)
  10270. lt_prog_compiler_static='$wl-static'
  10271. ;;
  10272. esac
  10273. ;;
  10274. hpux9* | hpux10* | hpux11*)
  10275. lt_prog_compiler_wl='-Wl,'
  10276. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  10277. # not for PA HP-UX.
  10278. case $host_cpu in
  10279. hppa*64*|ia64*)
  10280. # +Z the default
  10281. ;;
  10282. *)
  10283. lt_prog_compiler_pic='+Z'
  10284. ;;
  10285. esac
  10286. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  10287. lt_prog_compiler_static='$wl-a ${wl}archive'
  10288. ;;
  10289. irix5* | irix6* | nonstopux*)
  10290. lt_prog_compiler_wl='-Wl,'
  10291. # PIC (with -KPIC) is the default.
  10292. lt_prog_compiler_static='-non_shared'
  10293. ;;
  10294. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10295. case $cc_basename in
  10296. # old Intel for x86_64, which still supported -KPIC.
  10297. ecc*)
  10298. lt_prog_compiler_wl='-Wl,'
  10299. lt_prog_compiler_pic='-KPIC'
  10300. lt_prog_compiler_static='-static'
  10301. ;;
  10302. # flang / f18. f95 an alias for gfortran or flang on Debian
  10303. flang* | f18* | f95*)
  10304. lt_prog_compiler_wl='-Wl,'
  10305. lt_prog_compiler_pic='-fPIC'
  10306. lt_prog_compiler_static='-static'
  10307. ;;
  10308. # icc used to be incompatible with GCC.
  10309. # ICC 10 doesn't accept -KPIC any more.
  10310. icc* | ifort*)
  10311. lt_prog_compiler_wl='-Wl,'
  10312. lt_prog_compiler_pic='-fPIC'
  10313. lt_prog_compiler_static='-static'
  10314. ;;
  10315. # Lahey Fortran 8.1.
  10316. lf95*)
  10317. lt_prog_compiler_wl='-Wl,'
  10318. lt_prog_compiler_pic='--shared'
  10319. lt_prog_compiler_static='--static'
  10320. ;;
  10321. nagfor*)
  10322. # NAG Fortran compiler
  10323. lt_prog_compiler_wl='-Wl,-Wl,,'
  10324. lt_prog_compiler_pic='-PIC'
  10325. lt_prog_compiler_static='-Bstatic'
  10326. ;;
  10327. tcc*)
  10328. # Fabrice Bellard et al's Tiny C Compiler
  10329. lt_prog_compiler_wl='-Wl,'
  10330. lt_prog_compiler_pic='-fPIC'
  10331. lt_prog_compiler_static='-static'
  10332. ;;
  10333. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  10334. # Portland Group compilers (*not* the Pentium gcc compiler,
  10335. # which looks to be a dead project)
  10336. lt_prog_compiler_wl='-Wl,'
  10337. lt_prog_compiler_pic='-fpic'
  10338. lt_prog_compiler_static='-Bstatic'
  10339. ;;
  10340. ccc*)
  10341. lt_prog_compiler_wl='-Wl,'
  10342. # All Alpha code is PIC.
  10343. lt_prog_compiler_static='-non_shared'
  10344. ;;
  10345. xl* | bgxl* | bgf* | mpixl*)
  10346. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  10347. lt_prog_compiler_wl='-Wl,'
  10348. lt_prog_compiler_pic='-qpic'
  10349. lt_prog_compiler_static='-qstaticlink'
  10350. ;;
  10351. *)
  10352. case `$CC -V 2>&1 | sed 5q` in
  10353. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  10354. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  10355. lt_prog_compiler_pic='-KPIC'
  10356. lt_prog_compiler_static='-Bstatic'
  10357. lt_prog_compiler_wl=''
  10358. ;;
  10359. *Sun\ F* | *Sun*Fortran*)
  10360. lt_prog_compiler_pic='-KPIC'
  10361. lt_prog_compiler_static='-Bstatic'
  10362. lt_prog_compiler_wl='-Qoption ld '
  10363. ;;
  10364. *Sun\ C*)
  10365. # Sun C 5.9
  10366. lt_prog_compiler_pic='-KPIC'
  10367. lt_prog_compiler_static='-Bstatic'
  10368. lt_prog_compiler_wl='-Wl,'
  10369. ;;
  10370. *Intel*\ [CF]*Compiler*)
  10371. lt_prog_compiler_wl='-Wl,'
  10372. lt_prog_compiler_pic='-fPIC'
  10373. lt_prog_compiler_static='-static'
  10374. ;;
  10375. *Portland\ Group*)
  10376. lt_prog_compiler_wl='-Wl,'
  10377. lt_prog_compiler_pic='-fpic'
  10378. lt_prog_compiler_static='-Bstatic'
  10379. ;;
  10380. esac
  10381. ;;
  10382. esac
  10383. ;;
  10384. newsos6)
  10385. lt_prog_compiler_pic='-KPIC'
  10386. lt_prog_compiler_static='-Bstatic'
  10387. ;;
  10388. *nto* | *qnx*)
  10389. # QNX uses GNU C++, but need to define -shared option too, otherwise
  10390. # it will coredump.
  10391. lt_prog_compiler_pic='-fPIC -shared'
  10392. ;;
  10393. osf3* | osf4* | osf5*)
  10394. lt_prog_compiler_wl='-Wl,'
  10395. # All OSF/1 code is PIC.
  10396. lt_prog_compiler_static='-non_shared'
  10397. ;;
  10398. rdos*)
  10399. lt_prog_compiler_static='-non_shared'
  10400. ;;
  10401. solaris*)
  10402. lt_prog_compiler_pic='-KPIC'
  10403. lt_prog_compiler_static='-Bstatic'
  10404. case $cc_basename in
  10405. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  10406. lt_prog_compiler_wl='-Qoption ld ';;
  10407. *)
  10408. lt_prog_compiler_wl='-Wl,';;
  10409. esac
  10410. ;;
  10411. sunos4*)
  10412. lt_prog_compiler_wl='-Qoption ld '
  10413. lt_prog_compiler_pic='-PIC'
  10414. lt_prog_compiler_static='-Bstatic'
  10415. ;;
  10416. sysv4 | sysv4.2uw2* | sysv4.3*)
  10417. lt_prog_compiler_wl='-Wl,'
  10418. lt_prog_compiler_pic='-KPIC'
  10419. lt_prog_compiler_static='-Bstatic'
  10420. ;;
  10421. sysv4*MP*)
  10422. if test -d /usr/nec; then
  10423. lt_prog_compiler_pic='-Kconform_pic'
  10424. lt_prog_compiler_static='-Bstatic'
  10425. fi
  10426. ;;
  10427. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  10428. lt_prog_compiler_wl='-Wl,'
  10429. lt_prog_compiler_pic='-KPIC'
  10430. lt_prog_compiler_static='-Bstatic'
  10431. ;;
  10432. unicos*)
  10433. lt_prog_compiler_wl='-Wl,'
  10434. lt_prog_compiler_can_build_shared=no
  10435. ;;
  10436. uts4*)
  10437. lt_prog_compiler_pic='-pic'
  10438. lt_prog_compiler_static='-Bstatic'
  10439. ;;
  10440. *)
  10441. lt_prog_compiler_can_build_shared=no
  10442. ;;
  10443. esac
  10444. fi
  10445. case $host_os in
  10446. # For platforms that do not support PIC, -DPIC is meaningless:
  10447. *djgpp*)
  10448. lt_prog_compiler_pic=
  10449. ;;
  10450. *)
  10451. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  10452. ;;
  10453. esac
  10454. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  10455. printf %s "checking for $compiler option to produce PIC... " >&6; }
  10456. if test ${lt_cv_prog_compiler_pic+y}
  10457. then :
  10458. printf %s "(cached) " >&6
  10459. else $as_nop
  10460. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  10461. fi
  10462. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  10463. printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
  10464. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  10465. #
  10466. # Check to make sure the PIC flag actually works.
  10467. #
  10468. if test -n "$lt_prog_compiler_pic"; then
  10469. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  10470. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  10471. if test ${lt_cv_prog_compiler_pic_works+y}
  10472. then :
  10473. printf %s "(cached) " >&6
  10474. else $as_nop
  10475. lt_cv_prog_compiler_pic_works=no
  10476. ac_outfile=conftest.$ac_objext
  10477. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10478. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  10479. # Insert the option either (1) after the last *FLAGS variable, or
  10480. # (2) before a word containing "conftest.", or (3) at the end.
  10481. # Note that $ac_compile itself does not contain backslashes and begins
  10482. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10483. # The option is referenced via a variable to avoid confusing sed.
  10484. lt_compile=`echo "$ac_compile" | $SED \
  10485. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10486. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10487. -e 's:$: $lt_compiler_flag:'`
  10488. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  10489. (eval "$lt_compile" 2>conftest.err)
  10490. ac_status=$?
  10491. cat conftest.err >&5
  10492. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10493. if (exit $ac_status) && test -s "$ac_outfile"; then
  10494. # The compiler can only warn and ignore the option if not recognized
  10495. # So say no if there are warnings other than the usual output.
  10496. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  10497. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10498. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  10499. lt_cv_prog_compiler_pic_works=yes
  10500. fi
  10501. fi
  10502. $RM conftest*
  10503. fi
  10504. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  10505. printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
  10506. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  10507. case $lt_prog_compiler_pic in
  10508. "" | " "*) ;;
  10509. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  10510. esac
  10511. else
  10512. lt_prog_compiler_pic=
  10513. lt_prog_compiler_can_build_shared=no
  10514. fi
  10515. fi
  10516. #
  10517. # Check to make sure the static flag actually works.
  10518. #
  10519. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  10520. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  10521. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  10522. if test ${lt_cv_prog_compiler_static_works+y}
  10523. then :
  10524. printf %s "(cached) " >&6
  10525. else $as_nop
  10526. lt_cv_prog_compiler_static_works=no
  10527. save_LDFLAGS=$LDFLAGS
  10528. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  10529. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  10530. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  10531. # The linker can only warn and ignore the option if not recognized
  10532. # So say no if there are warnings
  10533. if test -s conftest.err; then
  10534. # Append any errors to the config.log.
  10535. cat conftest.err 1>&5
  10536. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  10537. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10538. if diff conftest.exp conftest.er2 >/dev/null; then
  10539. lt_cv_prog_compiler_static_works=yes
  10540. fi
  10541. else
  10542. lt_cv_prog_compiler_static_works=yes
  10543. fi
  10544. fi
  10545. $RM -r conftest*
  10546. LDFLAGS=$save_LDFLAGS
  10547. fi
  10548. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  10549. printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
  10550. if test yes = "$lt_cv_prog_compiler_static_works"; then
  10551. :
  10552. else
  10553. lt_prog_compiler_static=
  10554. fi
  10555. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  10556. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  10557. if test ${lt_cv_prog_compiler_c_o+y}
  10558. then :
  10559. printf %s "(cached) " >&6
  10560. else $as_nop
  10561. lt_cv_prog_compiler_c_o=no
  10562. $RM -r conftest 2>/dev/null
  10563. mkdir conftest
  10564. cd conftest
  10565. mkdir out
  10566. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10567. lt_compiler_flag="-o out/conftest2.$ac_objext"
  10568. # Insert the option either (1) after the last *FLAGS variable, or
  10569. # (2) before a word containing "conftest.", or (3) at the end.
  10570. # Note that $ac_compile itself does not contain backslashes and begins
  10571. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10572. lt_compile=`echo "$ac_compile" | $SED \
  10573. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10574. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10575. -e 's:$: $lt_compiler_flag:'`
  10576. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  10577. (eval "$lt_compile" 2>out/conftest.err)
  10578. ac_status=$?
  10579. cat out/conftest.err >&5
  10580. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10581. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  10582. then
  10583. # The compiler can only warn and ignore the option if not recognized
  10584. # So say no if there are warnings
  10585. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  10586. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  10587. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  10588. lt_cv_prog_compiler_c_o=yes
  10589. fi
  10590. fi
  10591. chmod u+w . 2>&5
  10592. $RM conftest*
  10593. # SGI C++ compiler will create directory out/ii_files/ for
  10594. # template instantiation
  10595. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  10596. $RM out/* && rmdir out
  10597. cd ..
  10598. $RM -r conftest
  10599. $RM conftest*
  10600. fi
  10601. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  10602. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  10603. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  10604. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  10605. if test ${lt_cv_prog_compiler_c_o+y}
  10606. then :
  10607. printf %s "(cached) " >&6
  10608. else $as_nop
  10609. lt_cv_prog_compiler_c_o=no
  10610. $RM -r conftest 2>/dev/null
  10611. mkdir conftest
  10612. cd conftest
  10613. mkdir out
  10614. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10615. lt_compiler_flag="-o out/conftest2.$ac_objext"
  10616. # Insert the option either (1) after the last *FLAGS variable, or
  10617. # (2) before a word containing "conftest.", or (3) at the end.
  10618. # Note that $ac_compile itself does not contain backslashes and begins
  10619. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10620. lt_compile=`echo "$ac_compile" | $SED \
  10621. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10622. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10623. -e 's:$: $lt_compiler_flag:'`
  10624. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  10625. (eval "$lt_compile" 2>out/conftest.err)
  10626. ac_status=$?
  10627. cat out/conftest.err >&5
  10628. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10629. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  10630. then
  10631. # The compiler can only warn and ignore the option if not recognized
  10632. # So say no if there are warnings
  10633. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  10634. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  10635. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  10636. lt_cv_prog_compiler_c_o=yes
  10637. fi
  10638. fi
  10639. chmod u+w . 2>&5
  10640. $RM conftest*
  10641. # SGI C++ compiler will create directory out/ii_files/ for
  10642. # template instantiation
  10643. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  10644. $RM out/* && rmdir out
  10645. cd ..
  10646. $RM -r conftest
  10647. $RM conftest*
  10648. fi
  10649. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  10650. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  10651. hard_links=nottested
  10652. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  10653. # do not overwrite the value of need_locks provided by the user
  10654. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  10655. printf %s "checking if we can lock with hard links... " >&6; }
  10656. hard_links=yes
  10657. $RM conftest*
  10658. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10659. touch conftest.a
  10660. ln conftest.a conftest.b 2>&5 || hard_links=no
  10661. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10662. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  10663. printf "%s\n" "$hard_links" >&6; }
  10664. if test no = "$hard_links"; then
  10665. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  10666. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  10667. need_locks=warn
  10668. fi
  10669. else
  10670. need_locks=no
  10671. fi
  10672. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10673. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10674. runpath_var=
  10675. allow_undefined_flag=
  10676. always_export_symbols=no
  10677. archive_cmds=
  10678. archive_expsym_cmds=
  10679. compiler_needs_object=no
  10680. enable_shared_with_static_runtimes=no
  10681. export_dynamic_flag_spec=
  10682. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  10683. hardcode_automatic=no
  10684. hardcode_direct=no
  10685. hardcode_direct_absolute=no
  10686. hardcode_libdir_flag_spec=
  10687. hardcode_libdir_separator=
  10688. hardcode_minus_L=no
  10689. hardcode_shlibpath_var=unsupported
  10690. inherit_rpath=no
  10691. link_all_deplibs=unknown
  10692. module_cmds=
  10693. module_expsym_cmds=
  10694. old_archive_from_new_cmds=
  10695. old_archive_from_expsyms_cmds=
  10696. thread_safe_flag_spec=
  10697. whole_archive_flag_spec=
  10698. # include_expsyms should be a list of space-separated symbols to be *always*
  10699. # included in the symbol list
  10700. include_expsyms=
  10701. # exclude_expsyms can be an extended regexp of symbols to exclude
  10702. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  10703. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  10704. # as well as any symbol that contains 'd'.
  10705. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  10706. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  10707. # platforms (ab)use it in PIC code, but their linkers get confused if
  10708. # the symbol is explicitly referenced. Since portable code cannot
  10709. # rely on this symbol name, it's probably fine to never include it in
  10710. # preloaded symbol tables.
  10711. # Exclude shared library initialization/finalization symbols.
  10712. extract_expsyms_cmds=
  10713. case $host_os in
  10714. cygwin* | mingw* | pw32* | cegcc*)
  10715. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  10716. # When not using gcc, we currently assume that we are using
  10717. # Microsoft Visual C++.
  10718. if test yes != "$GCC"; then
  10719. with_gnu_ld=no
  10720. fi
  10721. ;;
  10722. interix*)
  10723. # we just hope/assume this is gcc and not c89 (= MSVC++)
  10724. with_gnu_ld=yes
  10725. ;;
  10726. openbsd* | bitrig*)
  10727. with_gnu_ld=no
  10728. ;;
  10729. linux* | k*bsd*-gnu | gnu*)
  10730. link_all_deplibs=no
  10731. ;;
  10732. esac
  10733. ld_shlibs=yes
  10734. # On some targets, GNU ld is compatible enough with the native linker
  10735. # that we're better off using the native interface for both.
  10736. lt_use_gnu_ld_interface=no
  10737. if test yes = "$with_gnu_ld"; then
  10738. case $host_os in
  10739. aix*)
  10740. # The AIX port of GNU ld has always aspired to compatibility
  10741. # with the native linker. However, as the warning in the GNU ld
  10742. # block says, versions before 2.19.5* couldn't really create working
  10743. # shared libraries, regardless of the interface used.
  10744. case `$LD -v 2>&1` in
  10745. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  10746. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  10747. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  10748. *)
  10749. lt_use_gnu_ld_interface=yes
  10750. ;;
  10751. esac
  10752. ;;
  10753. *)
  10754. lt_use_gnu_ld_interface=yes
  10755. ;;
  10756. esac
  10757. fi
  10758. if test yes = "$lt_use_gnu_ld_interface"; then
  10759. # If archive_cmds runs LD, not CC, wlarc should be empty
  10760. wlarc='$wl'
  10761. # Set some defaults for GNU ld with shared library support. These
  10762. # are reset later if shared libraries are not supported. Putting them
  10763. # here allows them to be overridden if necessary.
  10764. runpath_var=LD_RUN_PATH
  10765. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10766. export_dynamic_flag_spec='$wl--export-dynamic'
  10767. # ancient GNU ld didn't support --whole-archive et. al.
  10768. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  10769. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  10770. else
  10771. whole_archive_flag_spec=
  10772. fi
  10773. supports_anon_versioning=no
  10774. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  10775. *GNU\ gold*) supports_anon_versioning=yes ;;
  10776. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  10777. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  10778. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  10779. *\ 2.11.*) ;; # other 2.11 versions
  10780. *) supports_anon_versioning=yes ;;
  10781. esac
  10782. # See if GNU ld supports shared libraries.
  10783. case $host_os in
  10784. aix[3-9]*)
  10785. # On AIX/PPC, the GNU linker is very broken
  10786. if test ia64 != "$host_cpu"; then
  10787. ld_shlibs=no
  10788. cat <<_LT_EOF 1>&2
  10789. *** Warning: the GNU linker, at least up to release 2.19, is reported
  10790. *** to be unable to reliably create shared libraries on AIX.
  10791. *** Therefore, libtool is disabling shared libraries support. If you
  10792. *** really care for shared libraries, you may want to install binutils
  10793. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  10794. *** You will then need to restart the configuration process.
  10795. _LT_EOF
  10796. fi
  10797. ;;
  10798. amigaos*)
  10799. case $host_cpu in
  10800. powerpc)
  10801. # see comment about AmigaOS4 .so support
  10802. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10803. archive_expsym_cmds=''
  10804. ;;
  10805. m68k)
  10806. 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)'
  10807. hardcode_libdir_flag_spec='-L$libdir'
  10808. hardcode_minus_L=yes
  10809. ;;
  10810. esac
  10811. ;;
  10812. beos*)
  10813. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10814. allow_undefined_flag=unsupported
  10815. # Joseph Beckenbach <[email protected]> says some releases of gcc
  10816. # support --undefined. This deserves some investigation. FIXME
  10817. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10818. else
  10819. ld_shlibs=no
  10820. fi
  10821. ;;
  10822. cygwin* | mingw* | pw32* | cegcc*)
  10823. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  10824. # as there is no search path for DLLs.
  10825. hardcode_libdir_flag_spec='-L$libdir'
  10826. export_dynamic_flag_spec='$wl--export-all-symbols'
  10827. allow_undefined_flag=unsupported
  10828. always_export_symbols=no
  10829. enable_shared_with_static_runtimes=yes
  10830. 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'
  10831. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  10832. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  10833. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  10834. # If the export-symbols file already is a .def file, use it as
  10835. # is; otherwise, prepend EXPORTS...
  10836. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  10837. cp $export_symbols $output_objdir/$soname.def;
  10838. else
  10839. echo EXPORTS > $output_objdir/$soname.def;
  10840. cat $export_symbols >> $output_objdir/$soname.def;
  10841. fi~
  10842. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  10843. else
  10844. ld_shlibs=no
  10845. fi
  10846. ;;
  10847. haiku*)
  10848. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10849. link_all_deplibs=yes
  10850. ;;
  10851. os2*)
  10852. hardcode_libdir_flag_spec='-L$libdir'
  10853. hardcode_minus_L=yes
  10854. allow_undefined_flag=unsupported
  10855. shrext_cmds=.dll
  10856. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  10857. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  10858. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  10859. $ECHO EXPORTS >> $output_objdir/$libname.def~
  10860. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  10861. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  10862. emximp -o $lib $output_objdir/$libname.def'
  10863. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  10864. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  10865. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  10866. $ECHO EXPORTS >> $output_objdir/$libname.def~
  10867. prefix_cmds="$SED"~
  10868. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  10869. prefix_cmds="$prefix_cmds -e 1d";
  10870. fi~
  10871. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  10872. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  10873. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  10874. emximp -o $lib $output_objdir/$libname.def'
  10875. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  10876. enable_shared_with_static_runtimes=yes
  10877. ;;
  10878. interix[3-9]*)
  10879. hardcode_direct=no
  10880. hardcode_shlibpath_var=no
  10881. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  10882. export_dynamic_flag_spec='$wl-E'
  10883. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10884. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10885. # default) and relocated if they conflict, which is a slow very memory
  10886. # consuming and fragmenting process. To avoid this, we pick a random,
  10887. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10888. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10889. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  10890. 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'
  10891. ;;
  10892. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  10893. tmp_diet=no
  10894. if test linux-dietlibc = "$host_os"; then
  10895. case $cc_basename in
  10896. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  10897. esac
  10898. fi
  10899. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  10900. && test no = "$tmp_diet"
  10901. then
  10902. tmp_addflag=' $pic_flag'
  10903. tmp_sharedflag='-shared'
  10904. case $cc_basename,$host_cpu in
  10905. pgcc*) # Portland Group C compiler
  10906. 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'
  10907. tmp_addflag=' $pic_flag'
  10908. ;;
  10909. pgf77* | pgf90* | pgf95* | pgfortran*)
  10910. # Portland Group f77 and f90 compilers
  10911. 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'
  10912. tmp_addflag=' $pic_flag -Mnomain' ;;
  10913. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  10914. tmp_addflag=' -i_dynamic' ;;
  10915. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  10916. tmp_addflag=' -i_dynamic -nofor_main' ;;
  10917. ifc* | ifort*) # Intel Fortran compiler
  10918. tmp_addflag=' -nofor_main' ;;
  10919. lf95*) # Lahey Fortran 8.1
  10920. whole_archive_flag_spec=
  10921. tmp_sharedflag='--shared' ;;
  10922. nagfor*) # NAGFOR 5.3
  10923. tmp_sharedflag='-Wl,-shared' ;;
  10924. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  10925. tmp_sharedflag='-qmkshrobj'
  10926. tmp_addflag= ;;
  10927. nvcc*) # Cuda Compiler Driver 2.2
  10928. 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'
  10929. compiler_needs_object=yes
  10930. ;;
  10931. esac
  10932. case `$CC -V 2>&1 | sed 5q` in
  10933. *Sun\ C*) # Sun C 5.9
  10934. 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'
  10935. compiler_needs_object=yes
  10936. tmp_sharedflag='-G' ;;
  10937. *Sun\ F*) # Sun Fortran 8.3
  10938. tmp_sharedflag='-G' ;;
  10939. esac
  10940. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10941. if test yes = "$supports_anon_versioning"; then
  10942. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  10943. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10944. echo "local: *; };" >> $output_objdir/$libname.ver~
  10945. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  10946. fi
  10947. case $cc_basename in
  10948. tcc*)
  10949. export_dynamic_flag_spec='-rdynamic'
  10950. ;;
  10951. xlf* | bgf* | bgxlf* | mpixlf*)
  10952. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  10953. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  10954. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10955. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  10956. if test yes = "$supports_anon_versioning"; then
  10957. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  10958. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10959. echo "local: *; };" >> $output_objdir/$libname.ver~
  10960. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  10961. fi
  10962. ;;
  10963. esac
  10964. else
  10965. ld_shlibs=no
  10966. fi
  10967. ;;
  10968. netbsd* | netbsdelf*-gnu)
  10969. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10970. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  10971. wlarc=
  10972. else
  10973. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10974. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  10975. fi
  10976. ;;
  10977. solaris*)
  10978. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  10979. ld_shlibs=no
  10980. cat <<_LT_EOF 1>&2
  10981. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  10982. *** create shared libraries on Solaris systems. Therefore, libtool
  10983. *** is disabling shared libraries support. We urge you to upgrade GNU
  10984. *** binutils to release 2.9.1 or newer. Another option is to modify
  10985. *** your PATH or compiler configuration so that the native linker is
  10986. *** used, and then restart.
  10987. _LT_EOF
  10988. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10989. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10990. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  10991. else
  10992. ld_shlibs=no
  10993. fi
  10994. ;;
  10995. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  10996. case `$LD -v 2>&1` in
  10997. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  10998. ld_shlibs=no
  10999. cat <<_LT_EOF 1>&2
  11000. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  11001. *** reliably create shared libraries on SCO systems. Therefore, libtool
  11002. *** is disabling shared libraries support. We urge you to upgrade GNU
  11003. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  11004. *** your PATH or compiler configuration so that the native linker is
  11005. *** used, and then restart.
  11006. _LT_EOF
  11007. ;;
  11008. *)
  11009. # For security reasons, it is highly recommended that you always
  11010. # use absolute paths for naming shared libraries, and exclude the
  11011. # DT_RUNPATH tag from executables and libraries. But doing so
  11012. # requires that you compile everything twice, which is a pain.
  11013. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11014. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  11015. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11016. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  11017. else
  11018. ld_shlibs=no
  11019. fi
  11020. ;;
  11021. esac
  11022. ;;
  11023. sunos4*)
  11024. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  11025. wlarc=
  11026. hardcode_direct=yes
  11027. hardcode_shlibpath_var=no
  11028. ;;
  11029. *)
  11030. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11031. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11032. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  11033. else
  11034. ld_shlibs=no
  11035. fi
  11036. ;;
  11037. esac
  11038. if test no = "$ld_shlibs"; then
  11039. runpath_var=
  11040. hardcode_libdir_flag_spec=
  11041. export_dynamic_flag_spec=
  11042. whole_archive_flag_spec=
  11043. fi
  11044. else
  11045. # PORTME fill in a description of your system's linker (not GNU ld)
  11046. case $host_os in
  11047. aix3*)
  11048. allow_undefined_flag=unsupported
  11049. always_export_symbols=yes
  11050. 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'
  11051. # Note: this linker hardcodes the directories in LIBPATH if there
  11052. # are no directories specified by -L.
  11053. hardcode_minus_L=yes
  11054. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  11055. # Neither direct hardcoding nor static linking is supported with a
  11056. # broken collect2.
  11057. hardcode_direct=unsupported
  11058. fi
  11059. ;;
  11060. aix[4-9]*)
  11061. if test ia64 = "$host_cpu"; then
  11062. # On IA64, the linker does run time linking by default, so we don't
  11063. # have to do anything special.
  11064. aix_use_runtimelinking=no
  11065. exp_sym_flag='-Bexport'
  11066. no_entry_flag=
  11067. else
  11068. # If we're using GNU nm, then we don't want the "-C" option.
  11069. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  11070. # Without the "-l" option, or with the "-B" option, AIX nm treats
  11071. # weak defined symbols like other global defined symbols, whereas
  11072. # GNU nm marks them as "W".
  11073. # While the 'weak' keyword is ignored in the Export File, we need
  11074. # it in the Import File for the 'aix-soname' feature, so we have
  11075. # to replace the "-B" option with "-P" for AIX nm.
  11076. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  11077. 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'
  11078. else
  11079. export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  11080. fi
  11081. aix_use_runtimelinking=no
  11082. # Test if we are trying to use run time linking or normal
  11083. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11084. # have runtime linking enabled, and use it for executables.
  11085. # For shared libraries, we enable/disable runtime linking
  11086. # depending on the kind of the shared library created -
  11087. # when "with_aix_soname,aix_use_runtimelinking" is:
  11088. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  11089. # "aix,yes" lib.so shared, rtl:yes, for executables
  11090. # lib.a static archive
  11091. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  11092. # lib.a(lib.so.V) shared, rtl:no, for executables
  11093. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  11094. # lib.a(lib.so.V) shared, rtl:no
  11095. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  11096. # lib.a static archive
  11097. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11098. for ld_flag in $LDFLAGS; do
  11099. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  11100. aix_use_runtimelinking=yes
  11101. break
  11102. fi
  11103. done
  11104. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  11105. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  11106. # so we don't have lib.a shared libs to link our executables.
  11107. # We have to force runtime linking in this case.
  11108. aix_use_runtimelinking=yes
  11109. LDFLAGS="$LDFLAGS -Wl,-brtl"
  11110. fi
  11111. ;;
  11112. esac
  11113. exp_sym_flag='-bexport'
  11114. no_entry_flag='-bnoentry'
  11115. fi
  11116. # When large executables or shared objects are built, AIX ld can
  11117. # have problems creating the table of contents. If linking a library
  11118. # or program results in "error TOC overflow" add -mminimal-toc to
  11119. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11120. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11121. archive_cmds=''
  11122. hardcode_direct=yes
  11123. hardcode_direct_absolute=yes
  11124. hardcode_libdir_separator=':'
  11125. link_all_deplibs=yes
  11126. file_list_spec='$wl-f,'
  11127. case $with_aix_soname,$aix_use_runtimelinking in
  11128. aix,*) ;; # traditional, no import file
  11129. svr4,* | *,yes) # use import file
  11130. # The Import File defines what to hardcode.
  11131. hardcode_direct=no
  11132. hardcode_direct_absolute=no
  11133. ;;
  11134. esac
  11135. if test yes = "$GCC"; then
  11136. case $host_os in aix4.[012]|aix4.[012].*)
  11137. # We only want to do this on AIX 4.2 and lower, the check
  11138. # below for broken collect2 doesn't work under 4.3+
  11139. collect2name=`$CC -print-prog-name=collect2`
  11140. if test -f "$collect2name" &&
  11141. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11142. then
  11143. # We have reworked collect2
  11144. :
  11145. else
  11146. # We have old collect2
  11147. hardcode_direct=unsupported
  11148. # It fails to find uninstalled libraries when the uninstalled
  11149. # path is not listed in the libpath. Setting hardcode_minus_L
  11150. # to unsupported forces relinking
  11151. hardcode_minus_L=yes
  11152. hardcode_libdir_flag_spec='-L$libdir'
  11153. hardcode_libdir_separator=
  11154. fi
  11155. ;;
  11156. esac
  11157. shared_flag='-shared'
  11158. if test yes = "$aix_use_runtimelinking"; then
  11159. shared_flag="$shared_flag "'$wl-G'
  11160. fi
  11161. # Need to ensure runtime linking is disabled for the traditional
  11162. # shared library, or the linker may eventually find shared libraries
  11163. # /with/ Import File - we do not want to mix them.
  11164. shared_flag_aix='-shared'
  11165. shared_flag_svr4='-shared $wl-G'
  11166. else
  11167. # not using gcc
  11168. if test ia64 = "$host_cpu"; then
  11169. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11170. # chokes on -Wl,-G. The following line is correct:
  11171. shared_flag='-G'
  11172. else
  11173. if test yes = "$aix_use_runtimelinking"; then
  11174. shared_flag='$wl-G'
  11175. else
  11176. shared_flag='$wl-bM:SRE'
  11177. fi
  11178. shared_flag_aix='$wl-bM:SRE'
  11179. shared_flag_svr4='$wl-G'
  11180. fi
  11181. fi
  11182. export_dynamic_flag_spec='$wl-bexpall'
  11183. # It seems that -bexpall does not export symbols beginning with
  11184. # underscore (_), so it is better to generate a list of symbols to export.
  11185. always_export_symbols=yes
  11186. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  11187. # Warning - without using the other runtime loading flags (-brtl),
  11188. # -berok will link without error, but may produce a broken library.
  11189. allow_undefined_flag='-berok'
  11190. # Determine the default libpath from the value encoded in an
  11191. # empty executable.
  11192. if test set = "${lt_cv_aix_libpath+set}"; then
  11193. aix_libpath=$lt_cv_aix_libpath
  11194. else
  11195. if test ${lt_cv_aix_libpath_+y}
  11196. then :
  11197. printf %s "(cached) " >&6
  11198. else $as_nop
  11199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11200. /* end confdefs.h. */
  11201. int
  11202. main (void)
  11203. {
  11204. ;
  11205. return 0;
  11206. }
  11207. _ACEOF
  11208. if ac_fn_c_try_link "$LINENO"
  11209. then :
  11210. lt_aix_libpath_sed='
  11211. /Import File Strings/,/^$/ {
  11212. /^0/ {
  11213. s/^0 *\([^ ]*\) *$/\1/
  11214. p
  11215. }
  11216. }'
  11217. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11218. # Check for a 64-bit object if we didn't find anything.
  11219. if test -z "$lt_cv_aix_libpath_"; then
  11220. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11221. fi
  11222. fi
  11223. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11224. conftest$ac_exeext conftest.$ac_ext
  11225. if test -z "$lt_cv_aix_libpath_"; then
  11226. lt_cv_aix_libpath_=/usr/lib:/lib
  11227. fi
  11228. fi
  11229. aix_libpath=$lt_cv_aix_libpath_
  11230. fi
  11231. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  11232. 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
  11233. else
  11234. if test ia64 = "$host_cpu"; then
  11235. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  11236. allow_undefined_flag="-z nodefs"
  11237. 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"
  11238. else
  11239. # Determine the default libpath from the value encoded in an
  11240. # empty executable.
  11241. if test set = "${lt_cv_aix_libpath+set}"; then
  11242. aix_libpath=$lt_cv_aix_libpath
  11243. else
  11244. if test ${lt_cv_aix_libpath_+y}
  11245. then :
  11246. printf %s "(cached) " >&6
  11247. else $as_nop
  11248. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11249. /* end confdefs.h. */
  11250. int
  11251. main (void)
  11252. {
  11253. ;
  11254. return 0;
  11255. }
  11256. _ACEOF
  11257. if ac_fn_c_try_link "$LINENO"
  11258. then :
  11259. lt_aix_libpath_sed='
  11260. /Import File Strings/,/^$/ {
  11261. /^0/ {
  11262. s/^0 *\([^ ]*\) *$/\1/
  11263. p
  11264. }
  11265. }'
  11266. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11267. # Check for a 64-bit object if we didn't find anything.
  11268. if test -z "$lt_cv_aix_libpath_"; then
  11269. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11270. fi
  11271. fi
  11272. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11273. conftest$ac_exeext conftest.$ac_ext
  11274. if test -z "$lt_cv_aix_libpath_"; then
  11275. lt_cv_aix_libpath_=/usr/lib:/lib
  11276. fi
  11277. fi
  11278. aix_libpath=$lt_cv_aix_libpath_
  11279. fi
  11280. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  11281. # Warning - without using the other run time loading flags,
  11282. # -berok will link without error, but may produce a broken library.
  11283. no_undefined_flag=' $wl-bernotok'
  11284. allow_undefined_flag=' $wl-berok'
  11285. if test yes = "$with_gnu_ld"; then
  11286. # We only use this code for GNU lds that support --whole-archive.
  11287. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  11288. else
  11289. # Exported symbols can be pulled into shared objects from archives
  11290. whole_archive_flag_spec='$convenience'
  11291. fi
  11292. archive_cmds_need_lc=yes
  11293. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  11294. # -brtl affects multiple linker settings, -berok does not and is overridden later
  11295. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  11296. if test svr4 != "$with_aix_soname"; then
  11297. # This is similar to how AIX traditionally builds its shared libraries.
  11298. 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'
  11299. fi
  11300. if test aix != "$with_aix_soname"; then
  11301. 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'
  11302. else
  11303. # used by -dlpreopen to get the symbols
  11304. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  11305. fi
  11306. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  11307. fi
  11308. fi
  11309. ;;
  11310. amigaos*)
  11311. case $host_cpu in
  11312. powerpc)
  11313. # see comment about AmigaOS4 .so support
  11314. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11315. archive_expsym_cmds=''
  11316. ;;
  11317. m68k)
  11318. 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)'
  11319. hardcode_libdir_flag_spec='-L$libdir'
  11320. hardcode_minus_L=yes
  11321. ;;
  11322. esac
  11323. ;;
  11324. bsdi[45]*)
  11325. export_dynamic_flag_spec=-rdynamic
  11326. ;;
  11327. cygwin* | mingw* | pw32* | cegcc*)
  11328. # When not using gcc, we currently assume that we are using
  11329. # Microsoft Visual C++.
  11330. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11331. # no search path for DLLs.
  11332. case $cc_basename in
  11333. cl*)
  11334. # Native MSVC
  11335. hardcode_libdir_flag_spec=' '
  11336. allow_undefined_flag=unsupported
  11337. always_export_symbols=yes
  11338. file_list_spec='@'
  11339. # Tell ltmain to make .lib files, not .a files.
  11340. libext=lib
  11341. # Tell ltmain to make .dll files, not .so files.
  11342. shrext_cmds=.dll
  11343. # FIXME: Setting linknames here is a bad hack.
  11344. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  11345. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  11346. cp "$export_symbols" "$output_objdir/$soname.def";
  11347. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  11348. else
  11349. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  11350. fi~
  11351. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11352. linknames='
  11353. # The linker will not automatically build a static lib if we build a DLL.
  11354. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  11355. enable_shared_with_static_runtimes=yes
  11356. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  11357. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  11358. # Don't use ranlib
  11359. old_postinstall_cmds='chmod 644 $oldlib'
  11360. postlink_cmds='lt_outputfile="@OUTPUT@"~
  11361. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11362. case $lt_outputfile in
  11363. *.exe|*.EXE) ;;
  11364. *)
  11365. lt_outputfile=$lt_outputfile.exe
  11366. lt_tool_outputfile=$lt_tool_outputfile.exe
  11367. ;;
  11368. esac~
  11369. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  11370. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11371. $RM "$lt_outputfile.manifest";
  11372. fi'
  11373. ;;
  11374. *)
  11375. # Assume MSVC wrapper
  11376. hardcode_libdir_flag_spec=' '
  11377. allow_undefined_flag=unsupported
  11378. # Tell ltmain to make .lib files, not .a files.
  11379. libext=lib
  11380. # Tell ltmain to make .dll files, not .so files.
  11381. shrext_cmds=.dll
  11382. # FIXME: Setting linknames here is a bad hack.
  11383. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  11384. # The linker will automatically build a .lib file if we build a DLL.
  11385. old_archive_from_new_cmds='true'
  11386. # FIXME: Should let the user specify the lib program.
  11387. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  11388. enable_shared_with_static_runtimes=yes
  11389. ;;
  11390. esac
  11391. ;;
  11392. darwin* | rhapsody*)
  11393. archive_cmds_need_lc=no
  11394. hardcode_direct=no
  11395. hardcode_automatic=yes
  11396. hardcode_shlibpath_var=unsupported
  11397. if test yes = "$lt_cv_ld_force_load"; then
  11398. 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\"`'
  11399. else
  11400. whole_archive_flag_spec=''
  11401. fi
  11402. link_all_deplibs=yes
  11403. allow_undefined_flag=$_lt_dar_allow_undefined
  11404. case $cc_basename in
  11405. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  11406. *) _lt_dar_can_shared=$GCC ;;
  11407. esac
  11408. if test yes = "$_lt_dar_can_shared"; then
  11409. output_verbose_link_cmd=func_echo_all
  11410. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  11411. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  11412. 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"
  11413. 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"
  11414. else
  11415. ld_shlibs=no
  11416. fi
  11417. ;;
  11418. dgux*)
  11419. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11420. hardcode_libdir_flag_spec='-L$libdir'
  11421. hardcode_shlibpath_var=no
  11422. ;;
  11423. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  11424. # support. Future versions do this automatically, but an explicit c++rt0.o
  11425. # does not break anything, and helps significantly (at the cost of a little
  11426. # extra space).
  11427. freebsd2.2*)
  11428. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  11429. hardcode_libdir_flag_spec='-R$libdir'
  11430. hardcode_direct=yes
  11431. hardcode_shlibpath_var=no
  11432. ;;
  11433. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  11434. freebsd2.*)
  11435. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  11436. hardcode_direct=yes
  11437. hardcode_minus_L=yes
  11438. hardcode_shlibpath_var=no
  11439. ;;
  11440. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  11441. freebsd* | dragonfly*)
  11442. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  11443. hardcode_libdir_flag_spec='-R$libdir'
  11444. hardcode_direct=yes
  11445. hardcode_shlibpath_var=no
  11446. ;;
  11447. hpux9*)
  11448. if test yes = "$GCC"; then
  11449. 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'
  11450. else
  11451. 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'
  11452. fi
  11453. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  11454. hardcode_libdir_separator=:
  11455. hardcode_direct=yes
  11456. # hardcode_minus_L: Not really in the search PATH,
  11457. # but as the default location of the library.
  11458. hardcode_minus_L=yes
  11459. export_dynamic_flag_spec='$wl-E'
  11460. ;;
  11461. hpux10*)
  11462. if test yes,no = "$GCC,$with_gnu_ld"; then
  11463. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  11464. else
  11465. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  11466. fi
  11467. if test no = "$with_gnu_ld"; then
  11468. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  11469. hardcode_libdir_separator=:
  11470. hardcode_direct=yes
  11471. hardcode_direct_absolute=yes
  11472. export_dynamic_flag_spec='$wl-E'
  11473. # hardcode_minus_L: Not really in the search PATH,
  11474. # but as the default location of the library.
  11475. hardcode_minus_L=yes
  11476. fi
  11477. ;;
  11478. hpux11*)
  11479. if test yes,no = "$GCC,$with_gnu_ld"; then
  11480. case $host_cpu in
  11481. hppa*64*)
  11482. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  11483. ;;
  11484. ia64*)
  11485. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  11486. ;;
  11487. *)
  11488. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  11489. ;;
  11490. esac
  11491. else
  11492. case $host_cpu in
  11493. hppa*64*)
  11494. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  11495. ;;
  11496. ia64*)
  11497. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  11498. ;;
  11499. *)
  11500. # Older versions of the 11.00 compiler do not understand -b yet
  11501. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  11502. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  11503. printf %s "checking if $CC understands -b... " >&6; }
  11504. if test ${lt_cv_prog_compiler__b+y}
  11505. then :
  11506. printf %s "(cached) " >&6
  11507. else $as_nop
  11508. lt_cv_prog_compiler__b=no
  11509. save_LDFLAGS=$LDFLAGS
  11510. LDFLAGS="$LDFLAGS -b"
  11511. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11512. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11513. # The linker can only warn and ignore the option if not recognized
  11514. # So say no if there are warnings
  11515. if test -s conftest.err; then
  11516. # Append any errors to the config.log.
  11517. cat conftest.err 1>&5
  11518. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  11519. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11520. if diff conftest.exp conftest.er2 >/dev/null; then
  11521. lt_cv_prog_compiler__b=yes
  11522. fi
  11523. else
  11524. lt_cv_prog_compiler__b=yes
  11525. fi
  11526. fi
  11527. $RM -r conftest*
  11528. LDFLAGS=$save_LDFLAGS
  11529. fi
  11530. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  11531. printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
  11532. if test yes = "$lt_cv_prog_compiler__b"; then
  11533. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  11534. else
  11535. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  11536. fi
  11537. ;;
  11538. esac
  11539. fi
  11540. if test no = "$with_gnu_ld"; then
  11541. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  11542. hardcode_libdir_separator=:
  11543. case $host_cpu in
  11544. hppa*64*|ia64*)
  11545. hardcode_direct=no
  11546. hardcode_shlibpath_var=no
  11547. ;;
  11548. *)
  11549. hardcode_direct=yes
  11550. hardcode_direct_absolute=yes
  11551. export_dynamic_flag_spec='$wl-E'
  11552. # hardcode_minus_L: Not really in the search PATH,
  11553. # but as the default location of the library.
  11554. hardcode_minus_L=yes
  11555. ;;
  11556. esac
  11557. fi
  11558. ;;
  11559. irix5* | irix6* | nonstopux*)
  11560. if test yes = "$GCC"; then
  11561. 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'
  11562. # Try to use the -exported_symbol ld option, if it does not
  11563. # work, assume that -exports_file does not work either and
  11564. # implicitly export all symbols.
  11565. # This should be the same for all languages, so no per-tag cache variable.
  11566. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  11567. printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  11568. if test ${lt_cv_irix_exported_symbol+y}
  11569. then :
  11570. printf %s "(cached) " >&6
  11571. else $as_nop
  11572. save_LDFLAGS=$LDFLAGS
  11573. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  11574. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11575. /* end confdefs.h. */
  11576. int foo (void) { return 0; }
  11577. _ACEOF
  11578. if ac_fn_c_try_link "$LINENO"
  11579. then :
  11580. lt_cv_irix_exported_symbol=yes
  11581. else $as_nop
  11582. lt_cv_irix_exported_symbol=no
  11583. fi
  11584. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11585. conftest$ac_exeext conftest.$ac_ext
  11586. LDFLAGS=$save_LDFLAGS
  11587. fi
  11588. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  11589. printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
  11590. if test yes = "$lt_cv_irix_exported_symbol"; then
  11591. 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'
  11592. fi
  11593. link_all_deplibs=no
  11594. else
  11595. 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'
  11596. 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'
  11597. fi
  11598. archive_cmds_need_lc='no'
  11599. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  11600. hardcode_libdir_separator=:
  11601. inherit_rpath=yes
  11602. link_all_deplibs=yes
  11603. ;;
  11604. linux*)
  11605. case $cc_basename in
  11606. tcc*)
  11607. # Fabrice Bellard et al's Tiny C Compiler
  11608. ld_shlibs=yes
  11609. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  11610. ;;
  11611. esac
  11612. ;;
  11613. netbsd* | netbsdelf*-gnu)
  11614. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11615. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  11616. else
  11617. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  11618. fi
  11619. hardcode_libdir_flag_spec='-R$libdir'
  11620. hardcode_direct=yes
  11621. hardcode_shlibpath_var=no
  11622. ;;
  11623. newsos6)
  11624. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11625. hardcode_direct=yes
  11626. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  11627. hardcode_libdir_separator=:
  11628. hardcode_shlibpath_var=no
  11629. ;;
  11630. *nto* | *qnx*)
  11631. ;;
  11632. openbsd* | bitrig*)
  11633. if test -f /usr/libexec/ld.so; then
  11634. hardcode_direct=yes
  11635. hardcode_shlibpath_var=no
  11636. hardcode_direct_absolute=yes
  11637. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  11638. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  11639. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  11640. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  11641. export_dynamic_flag_spec='$wl-E'
  11642. else
  11643. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  11644. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  11645. fi
  11646. else
  11647. ld_shlibs=no
  11648. fi
  11649. ;;
  11650. os2*)
  11651. hardcode_libdir_flag_spec='-L$libdir'
  11652. hardcode_minus_L=yes
  11653. allow_undefined_flag=unsupported
  11654. shrext_cmds=.dll
  11655. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  11656. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  11657. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  11658. $ECHO EXPORTS >> $output_objdir/$libname.def~
  11659. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  11660. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  11661. emximp -o $lib $output_objdir/$libname.def'
  11662. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  11663. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  11664. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  11665. $ECHO EXPORTS >> $output_objdir/$libname.def~
  11666. prefix_cmds="$SED"~
  11667. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  11668. prefix_cmds="$prefix_cmds -e 1d";
  11669. fi~
  11670. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  11671. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  11672. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  11673. emximp -o $lib $output_objdir/$libname.def'
  11674. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  11675. enable_shared_with_static_runtimes=yes
  11676. ;;
  11677. osf3*)
  11678. if test yes = "$GCC"; then
  11679. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  11680. 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'
  11681. else
  11682. allow_undefined_flag=' -expect_unresolved \*'
  11683. 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'
  11684. fi
  11685. archive_cmds_need_lc='no'
  11686. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  11687. hardcode_libdir_separator=:
  11688. ;;
  11689. osf4* | osf5*) # as osf3* with the addition of -msym flag
  11690. if test yes = "$GCC"; then
  11691. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  11692. 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'
  11693. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  11694. else
  11695. allow_undefined_flag=' -expect_unresolved \*'
  11696. 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'
  11697. 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~
  11698. $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'
  11699. # Both c and cxx compiler support -rpath directly
  11700. hardcode_libdir_flag_spec='-rpath $libdir'
  11701. fi
  11702. archive_cmds_need_lc='no'
  11703. hardcode_libdir_separator=:
  11704. ;;
  11705. solaris*)
  11706. no_undefined_flag=' -z defs'
  11707. if test yes = "$GCC"; then
  11708. wlarc='$wl'
  11709. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  11710. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11711. $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'
  11712. else
  11713. case `$CC -V 2>&1` in
  11714. *"Compilers 5.0"*)
  11715. wlarc=''
  11716. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11717. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11718. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  11719. ;;
  11720. *)
  11721. wlarc='$wl'
  11722. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  11723. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11724. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  11725. ;;
  11726. esac
  11727. fi
  11728. hardcode_libdir_flag_spec='-R$libdir'
  11729. hardcode_shlibpath_var=no
  11730. case $host_os in
  11731. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11732. *)
  11733. # The compiler driver will combine and reorder linker options,
  11734. # but understands '-z linker_flag'. GCC discards it without '$wl',
  11735. # but is careful enough not to reorder.
  11736. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11737. if test yes = "$GCC"; then
  11738. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  11739. else
  11740. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  11741. fi
  11742. ;;
  11743. esac
  11744. link_all_deplibs=yes
  11745. ;;
  11746. sunos4*)
  11747. if test sequent = "$host_vendor"; then
  11748. # Use $CC to link under sequent, because it throws in some extra .o
  11749. # files that make .init and .fini sections work.
  11750. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  11751. else
  11752. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  11753. fi
  11754. hardcode_libdir_flag_spec='-L$libdir'
  11755. hardcode_direct=yes
  11756. hardcode_minus_L=yes
  11757. hardcode_shlibpath_var=no
  11758. ;;
  11759. sysv4)
  11760. case $host_vendor in
  11761. sni)
  11762. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11763. hardcode_direct=yes # is this really true???
  11764. ;;
  11765. siemens)
  11766. ## LD is ld it makes a PLAMLIB
  11767. ## CC just makes a GrossModule.
  11768. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  11769. reload_cmds='$CC -r -o $output$reload_objs'
  11770. hardcode_direct=no
  11771. ;;
  11772. motorola)
  11773. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11774. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  11775. ;;
  11776. esac
  11777. runpath_var='LD_RUN_PATH'
  11778. hardcode_shlibpath_var=no
  11779. ;;
  11780. sysv4.3*)
  11781. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11782. hardcode_shlibpath_var=no
  11783. export_dynamic_flag_spec='-Bexport'
  11784. ;;
  11785. sysv4*MP*)
  11786. if test -d /usr/nec; then
  11787. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11788. hardcode_shlibpath_var=no
  11789. runpath_var=LD_RUN_PATH
  11790. hardcode_runpath_var=yes
  11791. ld_shlibs=yes
  11792. fi
  11793. ;;
  11794. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11795. no_undefined_flag='$wl-z,text'
  11796. archive_cmds_need_lc=no
  11797. hardcode_shlibpath_var=no
  11798. runpath_var='LD_RUN_PATH'
  11799. if test yes = "$GCC"; then
  11800. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11801. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11802. else
  11803. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11804. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11805. fi
  11806. ;;
  11807. sysv5* | sco3.2v5* | sco5v6*)
  11808. # Note: We CANNOT use -z defs as we might desire, because we do not
  11809. # link with -lc, and that would cause any symbols used from libc to
  11810. # always be unresolved, which means just about no library would
  11811. # ever link correctly. If we're not using GNU ld we use -z text
  11812. # though, which does catch some bad symbols but isn't as heavy-handed
  11813. # as -z defs.
  11814. no_undefined_flag='$wl-z,text'
  11815. allow_undefined_flag='$wl-z,nodefs'
  11816. archive_cmds_need_lc=no
  11817. hardcode_shlibpath_var=no
  11818. hardcode_libdir_flag_spec='$wl-R,$libdir'
  11819. hardcode_libdir_separator=':'
  11820. link_all_deplibs=yes
  11821. export_dynamic_flag_spec='$wl-Bexport'
  11822. runpath_var='LD_RUN_PATH'
  11823. if test yes = "$GCC"; then
  11824. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11825. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11826. else
  11827. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11828. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11829. fi
  11830. ;;
  11831. uts4*)
  11832. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11833. hardcode_libdir_flag_spec='-L$libdir'
  11834. hardcode_shlibpath_var=no
  11835. ;;
  11836. *)
  11837. ld_shlibs=no
  11838. ;;
  11839. esac
  11840. if test sni = "$host_vendor"; then
  11841. case $host in
  11842. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  11843. export_dynamic_flag_spec='$wl-Blargedynsym'
  11844. ;;
  11845. esac
  11846. fi
  11847. fi
  11848. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  11849. printf "%s\n" "$ld_shlibs" >&6; }
  11850. test no = "$ld_shlibs" && can_build_shared=no
  11851. with_gnu_ld=$with_gnu_ld
  11852. #
  11853. # Do we need to explicitly link libc?
  11854. #
  11855. case "x$archive_cmds_need_lc" in
  11856. x|xyes)
  11857. # Assume -lc should be added
  11858. archive_cmds_need_lc=yes
  11859. if test yes,yes = "$GCC,$enable_shared"; then
  11860. case $archive_cmds in
  11861. *'~'*)
  11862. # FIXME: we may have to deal with multi-command sequences.
  11863. ;;
  11864. '$CC '*)
  11865. # Test whether the compiler implicitly links with -lc since on some
  11866. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11867. # to ld, don't add -lc before -lgcc.
  11868. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  11869. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  11870. if test ${lt_cv_archive_cmds_need_lc+y}
  11871. then :
  11872. printf %s "(cached) " >&6
  11873. else $as_nop
  11874. $RM conftest*
  11875. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11876. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11877. (eval $ac_compile) 2>&5
  11878. ac_status=$?
  11879. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11880. test $ac_status = 0; } 2>conftest.err; then
  11881. soname=conftest
  11882. lib=conftest
  11883. libobjs=conftest.$ac_objext
  11884. deplibs=
  11885. wl=$lt_prog_compiler_wl
  11886. pic_flag=$lt_prog_compiler_pic
  11887. compiler_flags=-v
  11888. linker_flags=-v
  11889. verstring=
  11890. output_objdir=.
  11891. libname=conftest
  11892. lt_save_allow_undefined_flag=$allow_undefined_flag
  11893. allow_undefined_flag=
  11894. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  11895. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11896. ac_status=$?
  11897. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11898. test $ac_status = 0; }
  11899. then
  11900. lt_cv_archive_cmds_need_lc=no
  11901. else
  11902. lt_cv_archive_cmds_need_lc=yes
  11903. fi
  11904. allow_undefined_flag=$lt_save_allow_undefined_flag
  11905. else
  11906. cat conftest.err 1>&5
  11907. fi
  11908. $RM conftest*
  11909. fi
  11910. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  11911. printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
  11912. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  11913. ;;
  11914. esac
  11915. fi
  11916. ;;
  11917. esac
  11918. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  11919. printf %s "checking dynamic linker characteristics... " >&6; }
  11920. if test yes = "$GCC"; then
  11921. case $host_os in
  11922. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  11923. *) lt_awk_arg='/^libraries:/' ;;
  11924. esac
  11925. case $host_os in
  11926. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  11927. *) lt_sed_strip_eq='s|=/|/|g' ;;
  11928. esac
  11929. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  11930. case $lt_search_path_spec in
  11931. *\;*)
  11932. # if the path contains ";" then we assume it to be the separator
  11933. # otherwise default to the standard path separator (i.e. ":") - it is
  11934. # assumed that no part of a normal pathname contains ";" but that should
  11935. # okay in the real world where ";" in dirpaths is itself problematic.
  11936. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  11937. ;;
  11938. *)
  11939. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  11940. ;;
  11941. esac
  11942. # Ok, now we have the path, separated by spaces, we can step through it
  11943. # and add multilib dir if necessary...
  11944. lt_tmp_lt_search_path_spec=
  11945. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  11946. # ...but if some path component already ends with the multilib dir we assume
  11947. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  11948. case "$lt_multi_os_dir; $lt_search_path_spec " in
  11949. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  11950. lt_multi_os_dir=
  11951. ;;
  11952. esac
  11953. for lt_sys_path in $lt_search_path_spec; do
  11954. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  11955. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  11956. elif test -n "$lt_multi_os_dir"; then
  11957. test -d "$lt_sys_path" && \
  11958. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  11959. fi
  11960. done
  11961. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  11962. BEGIN {RS = " "; FS = "/|\n";} {
  11963. lt_foo = "";
  11964. lt_count = 0;
  11965. for (lt_i = NF; lt_i > 0; lt_i--) {
  11966. if ($lt_i != "" && $lt_i != ".") {
  11967. if ($lt_i == "..") {
  11968. lt_count++;
  11969. } else {
  11970. if (lt_count == 0) {
  11971. lt_foo = "/" $lt_i lt_foo;
  11972. } else {
  11973. lt_count--;
  11974. }
  11975. }
  11976. }
  11977. }
  11978. if (lt_foo != "") { lt_freq[lt_foo]++; }
  11979. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  11980. }'`
  11981. # AWK program above erroneously prepends '/' to C:/dos/paths
  11982. # for these hosts.
  11983. case $host_os in
  11984. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  11985. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  11986. esac
  11987. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  11988. else
  11989. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  11990. fi
  11991. library_names_spec=
  11992. libname_spec='lib$name'
  11993. soname_spec=
  11994. shrext_cmds=.so
  11995. postinstall_cmds=
  11996. postuninstall_cmds=
  11997. finish_cmds=
  11998. finish_eval=
  11999. shlibpath_var=
  12000. shlibpath_overrides_runpath=unknown
  12001. version_type=none
  12002. dynamic_linker="$host_os ld.so"
  12003. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12004. need_lib_prefix=unknown
  12005. hardcode_into_libs=no
  12006. # when you set need_version to no, make sure it does not cause -set_version
  12007. # flags to be left without arguments
  12008. need_version=unknown
  12009. case $host_os in
  12010. aix3*)
  12011. version_type=linux # correct to gnu/linux during the next big refactor
  12012. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  12013. shlibpath_var=LIBPATH
  12014. # AIX 3 has no versioning support, so we append a major version to the name.
  12015. soname_spec='$libname$release$shared_ext$major'
  12016. ;;
  12017. aix[4-9]*)
  12018. version_type=linux # correct to gnu/linux during the next big refactor
  12019. need_lib_prefix=no
  12020. need_version=no
  12021. hardcode_into_libs=yes
  12022. if test ia64 = "$host_cpu"; then
  12023. # AIX 5 supports IA64
  12024. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  12025. shlibpath_var=LD_LIBRARY_PATH
  12026. else
  12027. # With GCC up to 2.95.x, collect2 would create an import file
  12028. # for dependence libraries. The import file would start with
  12029. # the line '#! .'. This would cause the generated library to
  12030. # depend on '.', always an invalid library. This was fixed in
  12031. # development snapshots of GCC prior to 3.0.
  12032. case $host_os in
  12033. aix4 | aix4.[01] | aix4.[01].*)
  12034. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12035. echo ' yes '
  12036. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  12037. :
  12038. else
  12039. can_build_shared=no
  12040. fi
  12041. ;;
  12042. esac
  12043. # Using Import Files as archive members, it is possible to support
  12044. # filename-based versioning of shared library archives on AIX. While
  12045. # this would work for both with and without runtime linking, it will
  12046. # prevent static linking of such archives. So we do filename-based
  12047. # shared library versioning with .so extension only, which is used
  12048. # when both runtime linking and shared linking is enabled.
  12049. # Unfortunately, runtime linking may impact performance, so we do
  12050. # not want this to be the default eventually. Also, we use the
  12051. # versioned .so libs for executables only if there is the -brtl
  12052. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  12053. # To allow for filename-based versioning support, we need to create
  12054. # libNAME.so.V as an archive file, containing:
  12055. # *) an Import File, referring to the versioned filename of the
  12056. # archive as well as the shared archive member, telling the
  12057. # bitwidth (32 or 64) of that shared object, and providing the
  12058. # list of exported symbols of that shared object, eventually
  12059. # decorated with the 'weak' keyword
  12060. # *) the shared object with the F_LOADONLY flag set, to really avoid
  12061. # it being seen by the linker.
  12062. # At run time we better use the real file rather than another symlink,
  12063. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  12064. case $with_aix_soname,$aix_use_runtimelinking in
  12065. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  12066. # soname into executable. Probably we can add versioning support to
  12067. # collect2, so additional links can be useful in future.
  12068. aix,yes) # traditional libtool
  12069. dynamic_linker='AIX unversionable lib.so'
  12070. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12071. # instead of lib<name>.a to let people know that these are not
  12072. # typical AIX shared libraries.
  12073. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12074. ;;
  12075. aix,no) # traditional AIX only
  12076. dynamic_linker='AIX lib.a(lib.so.V)'
  12077. # We preserve .a as extension for shared libraries through AIX4.2
  12078. # and later when we are not doing run time linking.
  12079. library_names_spec='$libname$release.a $libname.a'
  12080. soname_spec='$libname$release$shared_ext$major'
  12081. ;;
  12082. svr4,*) # full svr4 only
  12083. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  12084. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  12085. # We do not specify a path in Import Files, so LIBPATH fires.
  12086. shlibpath_overrides_runpath=yes
  12087. ;;
  12088. *,yes) # both, prefer svr4
  12089. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  12090. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  12091. # unpreferred sharedlib libNAME.a needs extra handling
  12092. 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"'
  12093. 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"'
  12094. # We do not specify a path in Import Files, so LIBPATH fires.
  12095. shlibpath_overrides_runpath=yes
  12096. ;;
  12097. *,no) # both, prefer aix
  12098. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  12099. library_names_spec='$libname$release.a $libname.a'
  12100. soname_spec='$libname$release$shared_ext$major'
  12101. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  12102. 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)'
  12103. 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"'
  12104. ;;
  12105. esac
  12106. shlibpath_var=LIBPATH
  12107. fi
  12108. ;;
  12109. amigaos*)
  12110. case $host_cpu in
  12111. powerpc)
  12112. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12113. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12114. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12115. ;;
  12116. m68k)
  12117. library_names_spec='$libname.ixlibrary $libname.a'
  12118. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12119. 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'
  12120. ;;
  12121. esac
  12122. ;;
  12123. beos*)
  12124. library_names_spec='$libname$shared_ext'
  12125. dynamic_linker="$host_os ld.so"
  12126. shlibpath_var=LIBRARY_PATH
  12127. ;;
  12128. bsdi[45]*)
  12129. version_type=linux # correct to gnu/linux during the next big refactor
  12130. need_version=no
  12131. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12132. soname_spec='$libname$release$shared_ext$major'
  12133. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12134. shlibpath_var=LD_LIBRARY_PATH
  12135. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12136. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12137. # the default ld.so.conf also contains /usr/contrib/lib and
  12138. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12139. # libtool to hard-code these into programs
  12140. ;;
  12141. cygwin* | mingw* | pw32* | cegcc*)
  12142. version_type=windows
  12143. shrext_cmds=.dll
  12144. need_version=no
  12145. need_lib_prefix=no
  12146. case $GCC,$cc_basename in
  12147. yes,*)
  12148. # gcc
  12149. library_names_spec='$libname.dll.a'
  12150. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12151. postinstall_cmds='base_file=`basename \$file`~
  12152. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  12153. dldir=$destdir/`dirname \$dlpath`~
  12154. test -d \$dldir || mkdir -p \$dldir~
  12155. $install_prog $dir/$dlname \$dldir/$dlname~
  12156. chmod a+x \$dldir/$dlname~
  12157. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12158. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12159. fi'
  12160. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12161. dlpath=$dir/\$dldll~
  12162. $RM \$dlpath'
  12163. shlibpath_overrides_runpath=yes
  12164. case $host_os in
  12165. cygwin*)
  12166. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12167. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  12168. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  12169. ;;
  12170. mingw* | cegcc*)
  12171. # MinGW DLLs use traditional 'lib' prefix
  12172. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  12173. ;;
  12174. pw32*)
  12175. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12176. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  12177. ;;
  12178. esac
  12179. dynamic_linker='Win32 ld.exe'
  12180. ;;
  12181. *,cl*)
  12182. # Native MSVC
  12183. libname_spec='$name'
  12184. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  12185. library_names_spec='$libname.dll.lib'
  12186. case $build_os in
  12187. mingw*)
  12188. sys_lib_search_path_spec=
  12189. lt_save_ifs=$IFS
  12190. IFS=';'
  12191. for lt_path in $LIB
  12192. do
  12193. IFS=$lt_save_ifs
  12194. # Let DOS variable expansion print the short 8.3 style file name.
  12195. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12196. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12197. done
  12198. IFS=$lt_save_ifs
  12199. # Convert to MSYS style.
  12200. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12201. ;;
  12202. cygwin*)
  12203. # Convert to unix form, then to dos form, then back to unix form
  12204. # but this time dos style (no spaces!) so that the unix form looks
  12205. # like /cygdrive/c/PROGRA~1:/cygdr...
  12206. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12207. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12208. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12209. ;;
  12210. *)
  12211. sys_lib_search_path_spec=$LIB
  12212. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12213. # It is most probably a Windows format PATH.
  12214. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12215. else
  12216. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12217. fi
  12218. # FIXME: find the short name or the path components, as spaces are
  12219. # common. (e.g. "Program Files" -> "PROGRA~1")
  12220. ;;
  12221. esac
  12222. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12223. postinstall_cmds='base_file=`basename \$file`~
  12224. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  12225. dldir=$destdir/`dirname \$dlpath`~
  12226. test -d \$dldir || mkdir -p \$dldir~
  12227. $install_prog $dir/$dlname \$dldir/$dlname'
  12228. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12229. dlpath=$dir/\$dldll~
  12230. $RM \$dlpath'
  12231. shlibpath_overrides_runpath=yes
  12232. dynamic_linker='Win32 link.exe'
  12233. ;;
  12234. *)
  12235. # Assume MSVC wrapper
  12236. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  12237. dynamic_linker='Win32 ld.exe'
  12238. ;;
  12239. esac
  12240. # FIXME: first we should search . and the directory the executable is in
  12241. shlibpath_var=PATH
  12242. ;;
  12243. darwin* | rhapsody*)
  12244. dynamic_linker="$host_os dyld"
  12245. version_type=darwin
  12246. need_lib_prefix=no
  12247. need_version=no
  12248. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  12249. soname_spec='$libname$release$major$shared_ext'
  12250. shlibpath_overrides_runpath=yes
  12251. shlibpath_var=DYLD_LIBRARY_PATH
  12252. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12253. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  12254. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12255. ;;
  12256. dgux*)
  12257. version_type=linux # correct to gnu/linux during the next big refactor
  12258. need_lib_prefix=no
  12259. need_version=no
  12260. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12261. soname_spec='$libname$release$shared_ext$major'
  12262. shlibpath_var=LD_LIBRARY_PATH
  12263. ;;
  12264. freebsd* | dragonfly*)
  12265. # DragonFly does not have aout. When/if they implement a new
  12266. # versioning mechanism, adjust this.
  12267. if test -x /usr/bin/objformat; then
  12268. objformat=`/usr/bin/objformat`
  12269. else
  12270. case $host_os in
  12271. freebsd[23].*) objformat=aout ;;
  12272. *) objformat=elf ;;
  12273. esac
  12274. fi
  12275. version_type=freebsd-$objformat
  12276. case $version_type in
  12277. freebsd-elf*)
  12278. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12279. soname_spec='$libname$release$shared_ext$major'
  12280. need_version=no
  12281. need_lib_prefix=no
  12282. ;;
  12283. freebsd-*)
  12284. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  12285. need_version=yes
  12286. ;;
  12287. esac
  12288. shlibpath_var=LD_LIBRARY_PATH
  12289. case $host_os in
  12290. freebsd2.*)
  12291. shlibpath_overrides_runpath=yes
  12292. ;;
  12293. freebsd3.[01]* | freebsdelf3.[01]*)
  12294. shlibpath_overrides_runpath=yes
  12295. hardcode_into_libs=yes
  12296. ;;
  12297. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12298. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12299. shlibpath_overrides_runpath=no
  12300. hardcode_into_libs=yes
  12301. ;;
  12302. *) # from 4.6 on, and DragonFly
  12303. shlibpath_overrides_runpath=yes
  12304. hardcode_into_libs=yes
  12305. ;;
  12306. esac
  12307. ;;
  12308. haiku*)
  12309. version_type=linux # correct to gnu/linux during the next big refactor
  12310. need_lib_prefix=no
  12311. need_version=no
  12312. dynamic_linker="$host_os runtime_loader"
  12313. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12314. soname_spec='$libname$release$shared_ext$major'
  12315. shlibpath_var=LIBRARY_PATH
  12316. shlibpath_overrides_runpath=no
  12317. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12318. hardcode_into_libs=yes
  12319. ;;
  12320. hpux9* | hpux10* | hpux11*)
  12321. # Give a soname corresponding to the major version so that dld.sl refuses to
  12322. # link against other versions.
  12323. version_type=sunos
  12324. need_lib_prefix=no
  12325. need_version=no
  12326. case $host_cpu in
  12327. ia64*)
  12328. shrext_cmds='.so'
  12329. hardcode_into_libs=yes
  12330. dynamic_linker="$host_os dld.so"
  12331. shlibpath_var=LD_LIBRARY_PATH
  12332. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12333. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12334. soname_spec='$libname$release$shared_ext$major'
  12335. if test 32 = "$HPUX_IA64_MODE"; then
  12336. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12337. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  12338. else
  12339. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12340. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  12341. fi
  12342. ;;
  12343. hppa*64*)
  12344. shrext_cmds='.sl'
  12345. hardcode_into_libs=yes
  12346. dynamic_linker="$host_os dld.sl"
  12347. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12348. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12349. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12350. soname_spec='$libname$release$shared_ext$major'
  12351. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12352. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12353. ;;
  12354. *)
  12355. shrext_cmds='.sl'
  12356. dynamic_linker="$host_os dld.sl"
  12357. shlibpath_var=SHLIB_PATH
  12358. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12359. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12360. soname_spec='$libname$release$shared_ext$major'
  12361. ;;
  12362. esac
  12363. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12364. postinstall_cmds='chmod 555 $lib'
  12365. # or fails outright, so override atomically:
  12366. install_override_mode=555
  12367. ;;
  12368. interix[3-9]*)
  12369. version_type=linux # correct to gnu/linux during the next big refactor
  12370. need_lib_prefix=no
  12371. need_version=no
  12372. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12373. soname_spec='$libname$release$shared_ext$major'
  12374. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12375. shlibpath_var=LD_LIBRARY_PATH
  12376. shlibpath_overrides_runpath=no
  12377. hardcode_into_libs=yes
  12378. ;;
  12379. irix5* | irix6* | nonstopux*)
  12380. case $host_os in
  12381. nonstopux*) version_type=nonstopux ;;
  12382. *)
  12383. if test yes = "$lt_cv_prog_gnu_ld"; then
  12384. version_type=linux # correct to gnu/linux during the next big refactor
  12385. else
  12386. version_type=irix
  12387. fi ;;
  12388. esac
  12389. need_lib_prefix=no
  12390. need_version=no
  12391. soname_spec='$libname$release$shared_ext$major'
  12392. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  12393. case $host_os in
  12394. irix5* | nonstopux*)
  12395. libsuff= shlibsuff=
  12396. ;;
  12397. *)
  12398. case $LD in # libtool.m4 will add one of these switches to LD
  12399. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12400. libsuff= shlibsuff= libmagic=32-bit;;
  12401. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12402. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12403. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12404. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12405. *) libsuff= shlibsuff= libmagic=never-match;;
  12406. esac
  12407. ;;
  12408. esac
  12409. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12410. shlibpath_overrides_runpath=no
  12411. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  12412. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  12413. hardcode_into_libs=yes
  12414. ;;
  12415. # No shared lib support for Linux oldld, aout, or coff.
  12416. linux*oldld* | linux*aout* | linux*coff*)
  12417. dynamic_linker=no
  12418. ;;
  12419. linux*android*)
  12420. version_type=none # Android doesn't support versioned libraries.
  12421. need_lib_prefix=no
  12422. need_version=no
  12423. library_names_spec='$libname$release$shared_ext'
  12424. soname_spec='$libname$release$shared_ext'
  12425. finish_cmds=
  12426. shlibpath_var=LD_LIBRARY_PATH
  12427. shlibpath_overrides_runpath=yes
  12428. # This implies no fast_install, which is unacceptable.
  12429. # Some rework will be needed to allow for fast_install
  12430. # before this can be enabled.
  12431. hardcode_into_libs=yes
  12432. dynamic_linker='Android linker'
  12433. # Don't embed -rpath directories since the linker doesn't support them.
  12434. hardcode_libdir_flag_spec='-L$libdir'
  12435. ;;
  12436. # This must be glibc/ELF.
  12437. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12438. version_type=linux # correct to gnu/linux during the next big refactor
  12439. need_lib_prefix=no
  12440. need_version=no
  12441. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12442. soname_spec='$libname$release$shared_ext$major'
  12443. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12444. shlibpath_var=LD_LIBRARY_PATH
  12445. shlibpath_overrides_runpath=no
  12446. # Some binutils ld are patched to set DT_RUNPATH
  12447. if test ${lt_cv_shlibpath_overrides_runpath+y}
  12448. then :
  12449. printf %s "(cached) " >&6
  12450. else $as_nop
  12451. lt_cv_shlibpath_overrides_runpath=no
  12452. save_LDFLAGS=$LDFLAGS
  12453. save_libdir=$libdir
  12454. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  12455. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  12456. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12457. /* end confdefs.h. */
  12458. int
  12459. main (void)
  12460. {
  12461. ;
  12462. return 0;
  12463. }
  12464. _ACEOF
  12465. if ac_fn_c_try_link "$LINENO"
  12466. then :
  12467. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  12468. then :
  12469. lt_cv_shlibpath_overrides_runpath=yes
  12470. fi
  12471. fi
  12472. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12473. conftest$ac_exeext conftest.$ac_ext
  12474. LDFLAGS=$save_LDFLAGS
  12475. libdir=$save_libdir
  12476. fi
  12477. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  12478. # This implies no fast_install, which is unacceptable.
  12479. # Some rework will be needed to allow for fast_install
  12480. # before this can be enabled.
  12481. hardcode_into_libs=yes
  12482. # Ideally, we could use ldconfig to report *all* directores which are
  12483. # searched for libraries, however this is still not possible. Aside from not
  12484. # being certain /sbin/ldconfig is available, command
  12485. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  12486. # even though it is searched at run-time. Try to do the best guess by
  12487. # appending ld.so.conf contents (and includes) to the search path.
  12488. if test -f /etc/ld.so.conf; then
  12489. 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' ' '`
  12490. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12491. fi
  12492. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12493. # powerpc, because MkLinux only supported shared libraries with the
  12494. # GNU dynamic linker. Since this was broken with cross compilers,
  12495. # most powerpc-linux boxes support dynamic linking these days and
  12496. # people can always --disable-shared, the test was removed, and we
  12497. # assume the GNU/Linux dynamic linker is in use.
  12498. dynamic_linker='GNU/Linux ld.so'
  12499. ;;
  12500. netbsdelf*-gnu)
  12501. version_type=linux
  12502. need_lib_prefix=no
  12503. need_version=no
  12504. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12505. soname_spec='${libname}${release}${shared_ext}$major'
  12506. shlibpath_var=LD_LIBRARY_PATH
  12507. shlibpath_overrides_runpath=no
  12508. hardcode_into_libs=yes
  12509. dynamic_linker='NetBSD ld.elf_so'
  12510. ;;
  12511. netbsd*)
  12512. version_type=sunos
  12513. need_lib_prefix=no
  12514. need_version=no
  12515. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12516. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  12517. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12518. dynamic_linker='NetBSD (a.out) ld.so'
  12519. else
  12520. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12521. soname_spec='$libname$release$shared_ext$major'
  12522. dynamic_linker='NetBSD ld.elf_so'
  12523. fi
  12524. shlibpath_var=LD_LIBRARY_PATH
  12525. shlibpath_overrides_runpath=yes
  12526. hardcode_into_libs=yes
  12527. ;;
  12528. newsos6)
  12529. version_type=linux # correct to gnu/linux during the next big refactor
  12530. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12531. shlibpath_var=LD_LIBRARY_PATH
  12532. shlibpath_overrides_runpath=yes
  12533. ;;
  12534. *nto* | *qnx*)
  12535. version_type=qnx
  12536. need_lib_prefix=no
  12537. need_version=no
  12538. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12539. soname_spec='$libname$release$shared_ext$major'
  12540. shlibpath_var=LD_LIBRARY_PATH
  12541. shlibpath_overrides_runpath=no
  12542. hardcode_into_libs=yes
  12543. dynamic_linker='ldqnx.so'
  12544. ;;
  12545. openbsd* | bitrig*)
  12546. version_type=sunos
  12547. sys_lib_dlsearch_path_spec=/usr/lib
  12548. need_lib_prefix=no
  12549. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  12550. need_version=no
  12551. else
  12552. need_version=yes
  12553. fi
  12554. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  12555. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12556. shlibpath_var=LD_LIBRARY_PATH
  12557. shlibpath_overrides_runpath=yes
  12558. ;;
  12559. os2*)
  12560. libname_spec='$name'
  12561. version_type=windows
  12562. shrext_cmds=.dll
  12563. need_version=no
  12564. need_lib_prefix=no
  12565. # OS/2 can only load a DLL with a base name of 8 characters or less.
  12566. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  12567. v=$($ECHO $release$versuffix | tr -d .-);
  12568. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  12569. $ECHO $n$v`$shared_ext'
  12570. library_names_spec='${libname}_dll.$libext'
  12571. dynamic_linker='OS/2 ld.exe'
  12572. shlibpath_var=BEGINLIBPATH
  12573. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  12574. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12575. postinstall_cmds='base_file=`basename \$file`~
  12576. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  12577. dldir=$destdir/`dirname \$dlpath`~
  12578. test -d \$dldir || mkdir -p \$dldir~
  12579. $install_prog $dir/$dlname \$dldir/$dlname~
  12580. chmod a+x \$dldir/$dlname~
  12581. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12582. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12583. fi'
  12584. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  12585. dlpath=$dir/\$dldll~
  12586. $RM \$dlpath'
  12587. ;;
  12588. osf3* | osf4* | osf5*)
  12589. version_type=osf
  12590. need_lib_prefix=no
  12591. need_version=no
  12592. soname_spec='$libname$release$shared_ext$major'
  12593. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12594. shlibpath_var=LD_LIBRARY_PATH
  12595. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12596. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12597. ;;
  12598. rdos*)
  12599. dynamic_linker=no
  12600. ;;
  12601. solaris*)
  12602. version_type=linux # correct to gnu/linux during the next big refactor
  12603. need_lib_prefix=no
  12604. need_version=no
  12605. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12606. soname_spec='$libname$release$shared_ext$major'
  12607. shlibpath_var=LD_LIBRARY_PATH
  12608. shlibpath_overrides_runpath=yes
  12609. hardcode_into_libs=yes
  12610. # ldd complains unless libraries are executable
  12611. postinstall_cmds='chmod +x $lib'
  12612. ;;
  12613. sunos4*)
  12614. version_type=sunos
  12615. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  12616. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12617. shlibpath_var=LD_LIBRARY_PATH
  12618. shlibpath_overrides_runpath=yes
  12619. if test yes = "$with_gnu_ld"; then
  12620. need_lib_prefix=no
  12621. fi
  12622. need_version=yes
  12623. ;;
  12624. sysv4 | sysv4.3*)
  12625. version_type=linux # correct to gnu/linux during the next big refactor
  12626. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12627. soname_spec='$libname$release$shared_ext$major'
  12628. shlibpath_var=LD_LIBRARY_PATH
  12629. case $host_vendor in
  12630. sni)
  12631. shlibpath_overrides_runpath=no
  12632. need_lib_prefix=no
  12633. runpath_var=LD_RUN_PATH
  12634. ;;
  12635. siemens)
  12636. need_lib_prefix=no
  12637. ;;
  12638. motorola)
  12639. need_lib_prefix=no
  12640. need_version=no
  12641. shlibpath_overrides_runpath=no
  12642. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12643. ;;
  12644. esac
  12645. ;;
  12646. sysv4*MP*)
  12647. if test -d /usr/nec; then
  12648. version_type=linux # correct to gnu/linux during the next big refactor
  12649. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  12650. soname_spec='$libname$shared_ext.$major'
  12651. shlibpath_var=LD_LIBRARY_PATH
  12652. fi
  12653. ;;
  12654. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12655. version_type=sco
  12656. need_lib_prefix=no
  12657. need_version=no
  12658. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  12659. soname_spec='$libname$release$shared_ext$major'
  12660. shlibpath_var=LD_LIBRARY_PATH
  12661. shlibpath_overrides_runpath=yes
  12662. hardcode_into_libs=yes
  12663. if test yes = "$with_gnu_ld"; then
  12664. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12665. else
  12666. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12667. case $host_os in
  12668. sco3.2v5*)
  12669. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12670. ;;
  12671. esac
  12672. fi
  12673. sys_lib_dlsearch_path_spec='/usr/lib'
  12674. ;;
  12675. tpf*)
  12676. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  12677. version_type=linux # correct to gnu/linux during the next big refactor
  12678. need_lib_prefix=no
  12679. need_version=no
  12680. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12681. shlibpath_var=LD_LIBRARY_PATH
  12682. shlibpath_overrides_runpath=no
  12683. hardcode_into_libs=yes
  12684. ;;
  12685. uts4*)
  12686. version_type=linux # correct to gnu/linux during the next big refactor
  12687. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12688. soname_spec='$libname$release$shared_ext$major'
  12689. shlibpath_var=LD_LIBRARY_PATH
  12690. ;;
  12691. *)
  12692. dynamic_linker=no
  12693. ;;
  12694. esac
  12695. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  12696. printf "%s\n" "$dynamic_linker" >&6; }
  12697. test no = "$dynamic_linker" && can_build_shared=no
  12698. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12699. if test yes = "$GCC"; then
  12700. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12701. fi
  12702. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  12703. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  12704. fi
  12705. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  12706. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  12707. fi
  12708. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  12709. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  12710. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  12711. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  12712. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  12713. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  12714. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  12715. printf %s "checking how to hardcode library paths into programs... " >&6; }
  12716. hardcode_action=
  12717. if test -n "$hardcode_libdir_flag_spec" ||
  12718. test -n "$runpath_var" ||
  12719. test yes = "$hardcode_automatic"; then
  12720. # We can hardcode non-existent directories.
  12721. if test no != "$hardcode_direct" &&
  12722. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12723. # have to relink, otherwise we might link with an installed library
  12724. # when we should be linking with a yet-to-be-installed one
  12725. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  12726. test no != "$hardcode_minus_L"; then
  12727. # Linking always hardcodes the temporary library directory.
  12728. hardcode_action=relink
  12729. else
  12730. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12731. hardcode_action=immediate
  12732. fi
  12733. else
  12734. # We cannot hardcode anything, or else we can only hardcode existing
  12735. # directories.
  12736. hardcode_action=unsupported
  12737. fi
  12738. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  12739. printf "%s\n" "$hardcode_action" >&6; }
  12740. if test relink = "$hardcode_action" ||
  12741. test yes = "$inherit_rpath"; then
  12742. # Fast installation is not supported
  12743. enable_fast_install=no
  12744. elif test yes = "$shlibpath_overrides_runpath" ||
  12745. test no = "$enable_shared"; then
  12746. # Fast installation is not necessary
  12747. enable_fast_install=needless
  12748. fi
  12749. if test yes != "$enable_dlopen"; then
  12750. enable_dlopen=unknown
  12751. enable_dlopen_self=unknown
  12752. enable_dlopen_self_static=unknown
  12753. else
  12754. lt_cv_dlopen=no
  12755. lt_cv_dlopen_libs=
  12756. case $host_os in
  12757. beos*)
  12758. lt_cv_dlopen=load_add_on
  12759. lt_cv_dlopen_libs=
  12760. lt_cv_dlopen_self=yes
  12761. ;;
  12762. mingw* | pw32* | cegcc*)
  12763. lt_cv_dlopen=LoadLibrary
  12764. lt_cv_dlopen_libs=
  12765. ;;
  12766. cygwin*)
  12767. lt_cv_dlopen=dlopen
  12768. lt_cv_dlopen_libs=
  12769. ;;
  12770. darwin*)
  12771. # if libdl is installed we need to link against it
  12772. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  12773. printf %s "checking for dlopen in -ldl... " >&6; }
  12774. if test ${ac_cv_lib_dl_dlopen+y}
  12775. then :
  12776. printf %s "(cached) " >&6
  12777. else $as_nop
  12778. ac_check_lib_save_LIBS=$LIBS
  12779. LIBS="-ldl $LIBS"
  12780. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12781. /* end confdefs.h. */
  12782. /* Override any GCC internal prototype to avoid an error.
  12783. Use char because int might match the return type of a GCC
  12784. builtin and then its argument prototype would still apply. */
  12785. char dlopen ();
  12786. int
  12787. main (void)
  12788. {
  12789. return dlopen ();
  12790. ;
  12791. return 0;
  12792. }
  12793. _ACEOF
  12794. if ac_fn_c_try_link "$LINENO"
  12795. then :
  12796. ac_cv_lib_dl_dlopen=yes
  12797. else $as_nop
  12798. ac_cv_lib_dl_dlopen=no
  12799. fi
  12800. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12801. conftest$ac_exeext conftest.$ac_ext
  12802. LIBS=$ac_check_lib_save_LIBS
  12803. fi
  12804. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  12805. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  12806. if test "x$ac_cv_lib_dl_dlopen" = xyes
  12807. then :
  12808. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  12809. else $as_nop
  12810. lt_cv_dlopen=dyld
  12811. lt_cv_dlopen_libs=
  12812. lt_cv_dlopen_self=yes
  12813. fi
  12814. ;;
  12815. tpf*)
  12816. # Don't try to run any link tests for TPF. We know it's impossible
  12817. # because TPF is a cross-compiler, and we know how we open DSOs.
  12818. lt_cv_dlopen=dlopen
  12819. lt_cv_dlopen_libs=
  12820. lt_cv_dlopen_self=no
  12821. ;;
  12822. *)
  12823. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  12824. if test "x$ac_cv_func_shl_load" = xyes
  12825. then :
  12826. lt_cv_dlopen=shl_load
  12827. else $as_nop
  12828. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  12829. printf %s "checking for shl_load in -ldld... " >&6; }
  12830. if test ${ac_cv_lib_dld_shl_load+y}
  12831. then :
  12832. printf %s "(cached) " >&6
  12833. else $as_nop
  12834. ac_check_lib_save_LIBS=$LIBS
  12835. LIBS="-ldld $LIBS"
  12836. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12837. /* end confdefs.h. */
  12838. /* Override any GCC internal prototype to avoid an error.
  12839. Use char because int might match the return type of a GCC
  12840. builtin and then its argument prototype would still apply. */
  12841. char shl_load ();
  12842. int
  12843. main (void)
  12844. {
  12845. return shl_load ();
  12846. ;
  12847. return 0;
  12848. }
  12849. _ACEOF
  12850. if ac_fn_c_try_link "$LINENO"
  12851. then :
  12852. ac_cv_lib_dld_shl_load=yes
  12853. else $as_nop
  12854. ac_cv_lib_dld_shl_load=no
  12855. fi
  12856. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12857. conftest$ac_exeext conftest.$ac_ext
  12858. LIBS=$ac_check_lib_save_LIBS
  12859. fi
  12860. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  12861. printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
  12862. if test "x$ac_cv_lib_dld_shl_load" = xyes
  12863. then :
  12864. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  12865. else $as_nop
  12866. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  12867. if test "x$ac_cv_func_dlopen" = xyes
  12868. then :
  12869. lt_cv_dlopen=dlopen
  12870. else $as_nop
  12871. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  12872. printf %s "checking for dlopen in -ldl... " >&6; }
  12873. if test ${ac_cv_lib_dl_dlopen+y}
  12874. then :
  12875. printf %s "(cached) " >&6
  12876. else $as_nop
  12877. ac_check_lib_save_LIBS=$LIBS
  12878. LIBS="-ldl $LIBS"
  12879. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12880. /* end confdefs.h. */
  12881. /* Override any GCC internal prototype to avoid an error.
  12882. Use char because int might match the return type of a GCC
  12883. builtin and then its argument prototype would still apply. */
  12884. char dlopen ();
  12885. int
  12886. main (void)
  12887. {
  12888. return dlopen ();
  12889. ;
  12890. return 0;
  12891. }
  12892. _ACEOF
  12893. if ac_fn_c_try_link "$LINENO"
  12894. then :
  12895. ac_cv_lib_dl_dlopen=yes
  12896. else $as_nop
  12897. ac_cv_lib_dl_dlopen=no
  12898. fi
  12899. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12900. conftest$ac_exeext conftest.$ac_ext
  12901. LIBS=$ac_check_lib_save_LIBS
  12902. fi
  12903. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  12904. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  12905. if test "x$ac_cv_lib_dl_dlopen" = xyes
  12906. then :
  12907. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  12908. else $as_nop
  12909. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  12910. printf %s "checking for dlopen in -lsvld... " >&6; }
  12911. if test ${ac_cv_lib_svld_dlopen+y}
  12912. then :
  12913. printf %s "(cached) " >&6
  12914. else $as_nop
  12915. ac_check_lib_save_LIBS=$LIBS
  12916. LIBS="-lsvld $LIBS"
  12917. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12918. /* end confdefs.h. */
  12919. /* Override any GCC internal prototype to avoid an error.
  12920. Use char because int might match the return type of a GCC
  12921. builtin and then its argument prototype would still apply. */
  12922. char dlopen ();
  12923. int
  12924. main (void)
  12925. {
  12926. return dlopen ();
  12927. ;
  12928. return 0;
  12929. }
  12930. _ACEOF
  12931. if ac_fn_c_try_link "$LINENO"
  12932. then :
  12933. ac_cv_lib_svld_dlopen=yes
  12934. else $as_nop
  12935. ac_cv_lib_svld_dlopen=no
  12936. fi
  12937. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12938. conftest$ac_exeext conftest.$ac_ext
  12939. LIBS=$ac_check_lib_save_LIBS
  12940. fi
  12941. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  12942. printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
  12943. if test "x$ac_cv_lib_svld_dlopen" = xyes
  12944. then :
  12945. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  12946. else $as_nop
  12947. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  12948. printf %s "checking for dld_link in -ldld... " >&6; }
  12949. if test ${ac_cv_lib_dld_dld_link+y}
  12950. then :
  12951. printf %s "(cached) " >&6
  12952. else $as_nop
  12953. ac_check_lib_save_LIBS=$LIBS
  12954. LIBS="-ldld $LIBS"
  12955. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12956. /* end confdefs.h. */
  12957. /* Override any GCC internal prototype to avoid an error.
  12958. Use char because int might match the return type of a GCC
  12959. builtin and then its argument prototype would still apply. */
  12960. char dld_link ();
  12961. int
  12962. main (void)
  12963. {
  12964. return dld_link ();
  12965. ;
  12966. return 0;
  12967. }
  12968. _ACEOF
  12969. if ac_fn_c_try_link "$LINENO"
  12970. then :
  12971. ac_cv_lib_dld_dld_link=yes
  12972. else $as_nop
  12973. ac_cv_lib_dld_dld_link=no
  12974. fi
  12975. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12976. conftest$ac_exeext conftest.$ac_ext
  12977. LIBS=$ac_check_lib_save_LIBS
  12978. fi
  12979. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  12980. printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
  12981. if test "x$ac_cv_lib_dld_dld_link" = xyes
  12982. then :
  12983. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  12984. fi
  12985. fi
  12986. fi
  12987. fi
  12988. fi
  12989. fi
  12990. ;;
  12991. esac
  12992. if test no = "$lt_cv_dlopen"; then
  12993. enable_dlopen=no
  12994. else
  12995. enable_dlopen=yes
  12996. fi
  12997. case $lt_cv_dlopen in
  12998. dlopen)
  12999. save_CPPFLAGS=$CPPFLAGS
  13000. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  13001. save_LDFLAGS=$LDFLAGS
  13002. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  13003. save_LIBS=$LIBS
  13004. LIBS="$lt_cv_dlopen_libs $LIBS"
  13005. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  13006. printf %s "checking whether a program can dlopen itself... " >&6; }
  13007. if test ${lt_cv_dlopen_self+y}
  13008. then :
  13009. printf %s "(cached) " >&6
  13010. else $as_nop
  13011. if test yes = "$cross_compiling"; then :
  13012. lt_cv_dlopen_self=cross
  13013. else
  13014. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  13015. lt_status=$lt_dlunknown
  13016. cat > conftest.$ac_ext <<_LT_EOF
  13017. #line $LINENO "configure"
  13018. #include "confdefs.h"
  13019. #if HAVE_DLFCN_H
  13020. #include <dlfcn.h>
  13021. #endif
  13022. #include <stdio.h>
  13023. #ifdef RTLD_GLOBAL
  13024. # define LT_DLGLOBAL RTLD_GLOBAL
  13025. #else
  13026. # ifdef DL_GLOBAL
  13027. # define LT_DLGLOBAL DL_GLOBAL
  13028. # else
  13029. # define LT_DLGLOBAL 0
  13030. # endif
  13031. #endif
  13032. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  13033. find out it does not work in some platform. */
  13034. #ifndef LT_DLLAZY_OR_NOW
  13035. # ifdef RTLD_LAZY
  13036. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  13037. # else
  13038. # ifdef DL_LAZY
  13039. # define LT_DLLAZY_OR_NOW DL_LAZY
  13040. # else
  13041. # ifdef RTLD_NOW
  13042. # define LT_DLLAZY_OR_NOW RTLD_NOW
  13043. # else
  13044. # ifdef DL_NOW
  13045. # define LT_DLLAZY_OR_NOW DL_NOW
  13046. # else
  13047. # define LT_DLLAZY_OR_NOW 0
  13048. # endif
  13049. # endif
  13050. # endif
  13051. # endif
  13052. #endif
  13053. /* When -fvisibility=hidden is used, assume the code has been annotated
  13054. correspondingly for the symbols needed. */
  13055. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  13056. int fnord () __attribute__((visibility("default")));
  13057. #endif
  13058. int fnord () { return 42; }
  13059. int main ()
  13060. {
  13061. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  13062. int status = $lt_dlunknown;
  13063. if (self)
  13064. {
  13065. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  13066. else
  13067. {
  13068. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  13069. else puts (dlerror ());
  13070. }
  13071. /* dlclose (self); */
  13072. }
  13073. else
  13074. puts (dlerror ());
  13075. return status;
  13076. }
  13077. _LT_EOF
  13078. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  13079. (eval $ac_link) 2>&5
  13080. ac_status=$?
  13081. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13082. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  13083. (./conftest; exit; ) >&5 2>/dev/null
  13084. lt_status=$?
  13085. case x$lt_status in
  13086. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  13087. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  13088. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  13089. esac
  13090. else :
  13091. # compilation failed
  13092. lt_cv_dlopen_self=no
  13093. fi
  13094. fi
  13095. rm -fr conftest*
  13096. fi
  13097. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  13098. printf "%s\n" "$lt_cv_dlopen_self" >&6; }
  13099. if test yes = "$lt_cv_dlopen_self"; then
  13100. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  13101. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  13102. printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
  13103. if test ${lt_cv_dlopen_self_static+y}
  13104. then :
  13105. printf %s "(cached) " >&6
  13106. else $as_nop
  13107. if test yes = "$cross_compiling"; then :
  13108. lt_cv_dlopen_self_static=cross
  13109. else
  13110. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  13111. lt_status=$lt_dlunknown
  13112. cat > conftest.$ac_ext <<_LT_EOF
  13113. #line $LINENO "configure"
  13114. #include "confdefs.h"
  13115. #if HAVE_DLFCN_H
  13116. #include <dlfcn.h>
  13117. #endif
  13118. #include <stdio.h>
  13119. #ifdef RTLD_GLOBAL
  13120. # define LT_DLGLOBAL RTLD_GLOBAL
  13121. #else
  13122. # ifdef DL_GLOBAL
  13123. # define LT_DLGLOBAL DL_GLOBAL
  13124. # else
  13125. # define LT_DLGLOBAL 0
  13126. # endif
  13127. #endif
  13128. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  13129. find out it does not work in some platform. */
  13130. #ifndef LT_DLLAZY_OR_NOW
  13131. # ifdef RTLD_LAZY
  13132. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  13133. # else
  13134. # ifdef DL_LAZY
  13135. # define LT_DLLAZY_OR_NOW DL_LAZY
  13136. # else
  13137. # ifdef RTLD_NOW
  13138. # define LT_DLLAZY_OR_NOW RTLD_NOW
  13139. # else
  13140. # ifdef DL_NOW
  13141. # define LT_DLLAZY_OR_NOW DL_NOW
  13142. # else
  13143. # define LT_DLLAZY_OR_NOW 0
  13144. # endif
  13145. # endif
  13146. # endif
  13147. # endif
  13148. #endif
  13149. /* When -fvisibility=hidden is used, assume the code has been annotated
  13150. correspondingly for the symbols needed. */
  13151. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  13152. int fnord () __attribute__((visibility("default")));
  13153. #endif
  13154. int fnord () { return 42; }
  13155. int main ()
  13156. {
  13157. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  13158. int status = $lt_dlunknown;
  13159. if (self)
  13160. {
  13161. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  13162. else
  13163. {
  13164. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  13165. else puts (dlerror ());
  13166. }
  13167. /* dlclose (self); */
  13168. }
  13169. else
  13170. puts (dlerror ());
  13171. return status;
  13172. }
  13173. _LT_EOF
  13174. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  13175. (eval $ac_link) 2>&5
  13176. ac_status=$?
  13177. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13178. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  13179. (./conftest; exit; ) >&5 2>/dev/null
  13180. lt_status=$?
  13181. case x$lt_status in
  13182. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  13183. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  13184. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  13185. esac
  13186. else :
  13187. # compilation failed
  13188. lt_cv_dlopen_self_static=no
  13189. fi
  13190. fi
  13191. rm -fr conftest*
  13192. fi
  13193. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  13194. printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
  13195. fi
  13196. CPPFLAGS=$save_CPPFLAGS
  13197. LDFLAGS=$save_LDFLAGS
  13198. LIBS=$save_LIBS
  13199. ;;
  13200. esac
  13201. case $lt_cv_dlopen_self in
  13202. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  13203. *) enable_dlopen_self=unknown ;;
  13204. esac
  13205. case $lt_cv_dlopen_self_static in
  13206. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  13207. *) enable_dlopen_self_static=unknown ;;
  13208. esac
  13209. fi
  13210. striplib=
  13211. old_striplib=
  13212. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  13213. printf %s "checking whether stripping libraries is possible... " >&6; }
  13214. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  13215. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  13216. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  13217. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13218. printf "%s\n" "yes" >&6; }
  13219. else
  13220. # FIXME - insert some real tests, host_os isn't really good enough
  13221. case $host_os in
  13222. darwin*)
  13223. if test -n "$STRIP"; then
  13224. striplib="$STRIP -x"
  13225. old_striplib="$STRIP -S"
  13226. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13227. printf "%s\n" "yes" >&6; }
  13228. else
  13229. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13230. printf "%s\n" "no" >&6; }
  13231. fi
  13232. ;;
  13233. *)
  13234. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13235. printf "%s\n" "no" >&6; }
  13236. ;;
  13237. esac
  13238. fi
  13239. # Report what library types will actually be built
  13240. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  13241. printf %s "checking if libtool supports shared libraries... " >&6; }
  13242. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  13243. printf "%s\n" "$can_build_shared" >&6; }
  13244. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  13245. printf %s "checking whether to build shared libraries... " >&6; }
  13246. test no = "$can_build_shared" && enable_shared=no
  13247. # On AIX, shared libraries and static libraries use the same namespace, and
  13248. # are all built from PIC.
  13249. case $host_os in
  13250. aix3*)
  13251. test yes = "$enable_shared" && enable_static=no
  13252. if test -n "$RANLIB"; then
  13253. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  13254. postinstall_cmds='$RANLIB $lib'
  13255. fi
  13256. ;;
  13257. aix[4-9]*)
  13258. if test ia64 != "$host_cpu"; then
  13259. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  13260. yes,aix,yes) ;; # shared object as lib.so file only
  13261. yes,svr4,*) ;; # shared object as lib.so archive member only
  13262. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  13263. esac
  13264. fi
  13265. ;;
  13266. esac
  13267. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  13268. printf "%s\n" "$enable_shared" >&6; }
  13269. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  13270. printf %s "checking whether to build static libraries... " >&6; }
  13271. # Make sure either enable_shared or enable_static is yes.
  13272. test yes = "$enable_shared" || enable_static=yes
  13273. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  13274. printf "%s\n" "$enable_static" >&6; }
  13275. fi
  13276. ac_ext=c
  13277. ac_cpp='$CPP $CPPFLAGS'
  13278. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13279. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13280. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13281. CC=$lt_save_CC
  13282. if test -n "$CXX" && ( test no != "$CXX" &&
  13283. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  13284. (test g++ != "$CXX"))); then
  13285. ac_ext=cpp
  13286. ac_cpp='$CXXCPP $CPPFLAGS'
  13287. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13288. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13289. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13290. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  13291. printf %s "checking how to run the C++ preprocessor... " >&6; }
  13292. if test -z "$CXXCPP"; then
  13293. if test ${ac_cv_prog_CXXCPP+y}
  13294. then :
  13295. printf %s "(cached) " >&6
  13296. else $as_nop
  13297. # Double quotes because $CXX needs to be expanded
  13298. for CXXCPP in "$CXX -E" cpp /lib/cpp
  13299. do
  13300. ac_preproc_ok=false
  13301. for ac_cxx_preproc_warn_flag in '' yes
  13302. do
  13303. # Use a header file that comes with gcc, so configuring glibc
  13304. # with a fresh cross-compiler works.
  13305. # On the NeXT, cc -E runs the code through the compiler's parser,
  13306. # not just through cpp. "Syntax error" is here to catch this case.
  13307. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13308. /* end confdefs.h. */
  13309. #include <limits.h>
  13310. Syntax error
  13311. _ACEOF
  13312. if ac_fn_cxx_try_cpp "$LINENO"
  13313. then :
  13314. else $as_nop
  13315. # Broken: fails on valid input.
  13316. continue
  13317. fi
  13318. rm -f conftest.err conftest.i conftest.$ac_ext
  13319. # OK, works on sane cases. Now check whether nonexistent headers
  13320. # can be detected and how.
  13321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13322. /* end confdefs.h. */
  13323. #include <ac_nonexistent.h>
  13324. _ACEOF
  13325. if ac_fn_cxx_try_cpp "$LINENO"
  13326. then :
  13327. # Broken: success on invalid input.
  13328. continue
  13329. else $as_nop
  13330. # Passes both tests.
  13331. ac_preproc_ok=:
  13332. break
  13333. fi
  13334. rm -f conftest.err conftest.i conftest.$ac_ext
  13335. done
  13336. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  13337. rm -f conftest.i conftest.err conftest.$ac_ext
  13338. if $ac_preproc_ok
  13339. then :
  13340. break
  13341. fi
  13342. done
  13343. ac_cv_prog_CXXCPP=$CXXCPP
  13344. fi
  13345. CXXCPP=$ac_cv_prog_CXXCPP
  13346. else
  13347. ac_cv_prog_CXXCPP=$CXXCPP
  13348. fi
  13349. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  13350. printf "%s\n" "$CXXCPP" >&6; }
  13351. ac_preproc_ok=false
  13352. for ac_cxx_preproc_warn_flag in '' yes
  13353. do
  13354. # Use a header file that comes with gcc, so configuring glibc
  13355. # with a fresh cross-compiler works.
  13356. # On the NeXT, cc -E runs the code through the compiler's parser,
  13357. # not just through cpp. "Syntax error" is here to catch this case.
  13358. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13359. /* end confdefs.h. */
  13360. #include <limits.h>
  13361. Syntax error
  13362. _ACEOF
  13363. if ac_fn_cxx_try_cpp "$LINENO"
  13364. then :
  13365. else $as_nop
  13366. # Broken: fails on valid input.
  13367. continue
  13368. fi
  13369. rm -f conftest.err conftest.i conftest.$ac_ext
  13370. # OK, works on sane cases. Now check whether nonexistent headers
  13371. # can be detected and how.
  13372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13373. /* end confdefs.h. */
  13374. #include <ac_nonexistent.h>
  13375. _ACEOF
  13376. if ac_fn_cxx_try_cpp "$LINENO"
  13377. then :
  13378. # Broken: success on invalid input.
  13379. continue
  13380. else $as_nop
  13381. # Passes both tests.
  13382. ac_preproc_ok=:
  13383. break
  13384. fi
  13385. rm -f conftest.err conftest.i conftest.$ac_ext
  13386. done
  13387. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  13388. rm -f conftest.i conftest.err conftest.$ac_ext
  13389. if $ac_preproc_ok
  13390. then :
  13391. else $as_nop
  13392. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13393. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  13394. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  13395. See \`config.log' for more details" "$LINENO" 5; }
  13396. fi
  13397. ac_ext=c
  13398. ac_cpp='$CPP $CPPFLAGS'
  13399. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13400. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13401. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13402. else
  13403. _lt_caught_CXX_error=yes
  13404. fi
  13405. ac_ext=cpp
  13406. ac_cpp='$CXXCPP $CPPFLAGS'
  13407. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13408. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13409. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13410. archive_cmds_need_lc_CXX=no
  13411. allow_undefined_flag_CXX=
  13412. always_export_symbols_CXX=no
  13413. archive_expsym_cmds_CXX=
  13414. compiler_needs_object_CXX=no
  13415. export_dynamic_flag_spec_CXX=
  13416. hardcode_direct_CXX=no
  13417. hardcode_direct_absolute_CXX=no
  13418. hardcode_libdir_flag_spec_CXX=
  13419. hardcode_libdir_separator_CXX=
  13420. hardcode_minus_L_CXX=no
  13421. hardcode_shlibpath_var_CXX=unsupported
  13422. hardcode_automatic_CXX=no
  13423. inherit_rpath_CXX=no
  13424. module_cmds_CXX=
  13425. module_expsym_cmds_CXX=
  13426. link_all_deplibs_CXX=unknown
  13427. old_archive_cmds_CXX=$old_archive_cmds
  13428. reload_flag_CXX=$reload_flag
  13429. reload_cmds_CXX=$reload_cmds
  13430. no_undefined_flag_CXX=
  13431. whole_archive_flag_spec_CXX=
  13432. enable_shared_with_static_runtimes_CXX=no
  13433. # Source file extension for C++ test sources.
  13434. ac_ext=cpp
  13435. # Object file extension for compiled C++ test sources.
  13436. objext=o
  13437. objext_CXX=$objext
  13438. # No sense in running all these tests if we already determined that
  13439. # the CXX compiler isn't working. Some variables (like enable_shared)
  13440. # are currently assumed to apply to all compilers on this platform,
  13441. # and will be corrupted by setting them based on a non-working compiler.
  13442. if test yes != "$_lt_caught_CXX_error"; then
  13443. # Code to be used in simple compile tests
  13444. lt_simple_compile_test_code="int some_variable = 0;"
  13445. # Code to be used in simple link tests
  13446. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  13447. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  13448. # If no C compiler was specified, use CC.
  13449. LTCC=${LTCC-"$CC"}
  13450. # If no C compiler flags were specified, use CFLAGS.
  13451. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  13452. # Allow CC to be a program name with arguments.
  13453. compiler=$CC
  13454. # save warnings/boilerplate of simple test code
  13455. ac_outfile=conftest.$ac_objext
  13456. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  13457. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  13458. _lt_compiler_boilerplate=`cat conftest.err`
  13459. $RM conftest*
  13460. ac_outfile=conftest.$ac_objext
  13461. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  13462. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  13463. _lt_linker_boilerplate=`cat conftest.err`
  13464. $RM -r conftest*
  13465. # Allow CC to be a program name with arguments.
  13466. lt_save_CC=$CC
  13467. lt_save_CFLAGS=$CFLAGS
  13468. lt_save_LD=$LD
  13469. lt_save_GCC=$GCC
  13470. GCC=$GXX
  13471. lt_save_with_gnu_ld=$with_gnu_ld
  13472. lt_save_path_LD=$lt_cv_path_LD
  13473. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  13474. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  13475. else
  13476. $as_unset lt_cv_prog_gnu_ld
  13477. fi
  13478. if test -n "${lt_cv_path_LDCXX+set}"; then
  13479. lt_cv_path_LD=$lt_cv_path_LDCXX
  13480. else
  13481. $as_unset lt_cv_path_LD
  13482. fi
  13483. test -z "${LDCXX+set}" || LD=$LDCXX
  13484. CC=${CXX-"c++"}
  13485. CFLAGS=$CXXFLAGS
  13486. compiler=$CC
  13487. compiler_CXX=$CC
  13488. func_cc_basename $compiler
  13489. cc_basename=$func_cc_basename_result
  13490. if test -n "$compiler"; then
  13491. # We don't want -fno-exception when compiling C++ code, so set the
  13492. # no_builtin_flag separately
  13493. if test yes = "$GXX"; then
  13494. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  13495. else
  13496. lt_prog_compiler_no_builtin_flag_CXX=
  13497. fi
  13498. if test yes = "$GXX"; then
  13499. # Set up default GNU C++ configuration
  13500. # Check whether --with-gnu-ld was given.
  13501. if test ${with_gnu_ld+y}
  13502. then :
  13503. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  13504. else $as_nop
  13505. with_gnu_ld=no
  13506. fi
  13507. ac_prog=ld
  13508. if test yes = "$GCC"; then
  13509. # Check if gcc -print-prog-name=ld gives a path.
  13510. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  13511. printf %s "checking for ld used by $CC... " >&6; }
  13512. case $host in
  13513. *-*-mingw*)
  13514. # gcc leaves a trailing carriage return, which upsets mingw
  13515. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  13516. *)
  13517. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  13518. esac
  13519. case $ac_prog in
  13520. # Accept absolute paths.
  13521. [\\/]* | ?:[\\/]*)
  13522. re_direlt='/[^/][^/]*/\.\./'
  13523. # Canonicalize the pathname of ld
  13524. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  13525. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  13526. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  13527. done
  13528. test -z "$LD" && LD=$ac_prog
  13529. ;;
  13530. "")
  13531. # If it fails, then pretend we aren't using GCC.
  13532. ac_prog=ld
  13533. ;;
  13534. *)
  13535. # If it is relative, then search for the first ld in PATH.
  13536. with_gnu_ld=unknown
  13537. ;;
  13538. esac
  13539. elif test yes = "$with_gnu_ld"; then
  13540. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  13541. printf %s "checking for GNU ld... " >&6; }
  13542. else
  13543. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  13544. printf %s "checking for non-GNU ld... " >&6; }
  13545. fi
  13546. if test ${lt_cv_path_LD+y}
  13547. then :
  13548. printf %s "(cached) " >&6
  13549. else $as_nop
  13550. if test -z "$LD"; then
  13551. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  13552. for ac_dir in $PATH; do
  13553. IFS=$lt_save_ifs
  13554. test -z "$ac_dir" && ac_dir=.
  13555. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  13556. lt_cv_path_LD=$ac_dir/$ac_prog
  13557. # Check to see if the program is GNU ld. I'd rather use --version,
  13558. # but apparently some variants of GNU ld only accept -v.
  13559. # Break only if it was the GNU/non-GNU ld that we prefer.
  13560. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  13561. *GNU* | *'with BFD'*)
  13562. test no != "$with_gnu_ld" && break
  13563. ;;
  13564. *)
  13565. test yes != "$with_gnu_ld" && break
  13566. ;;
  13567. esac
  13568. fi
  13569. done
  13570. IFS=$lt_save_ifs
  13571. else
  13572. lt_cv_path_LD=$LD # Let the user override the test with a path.
  13573. fi
  13574. fi
  13575. LD=$lt_cv_path_LD
  13576. if test -n "$LD"; then
  13577. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  13578. printf "%s\n" "$LD" >&6; }
  13579. else
  13580. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13581. printf "%s\n" "no" >&6; }
  13582. fi
  13583. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  13584. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  13585. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  13586. if test ${lt_cv_prog_gnu_ld+y}
  13587. then :
  13588. printf %s "(cached) " >&6
  13589. else $as_nop
  13590. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  13591. case `$LD -v 2>&1 </dev/null` in
  13592. *GNU* | *'with BFD'*)
  13593. lt_cv_prog_gnu_ld=yes
  13594. ;;
  13595. *)
  13596. lt_cv_prog_gnu_ld=no
  13597. ;;
  13598. esac
  13599. fi
  13600. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  13601. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  13602. with_gnu_ld=$lt_cv_prog_gnu_ld
  13603. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  13604. # archiving commands below assume that GNU ld is being used.
  13605. if test yes = "$with_gnu_ld"; then
  13606. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13607. archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  13608. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13609. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13610. # If archive_cmds runs LD, not CC, wlarc should be empty
  13611. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  13612. # investigate it a little bit more. (MM)
  13613. wlarc='$wl'
  13614. # ancient GNU ld didn't support --whole-archive et. al.
  13615. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  13616. $GREP 'no-whole-archive' > /dev/null; then
  13617. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  13618. else
  13619. whole_archive_flag_spec_CXX=
  13620. fi
  13621. else
  13622. with_gnu_ld=no
  13623. wlarc=
  13624. # A generic and very simple default shared library creation
  13625. # command for GNU C++ for the case where it uses the native
  13626. # linker, instead of GNU ld. If possible, this setting should
  13627. # overridden to take advantage of the native linker features on
  13628. # the platform it is being used on.
  13629. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13630. fi
  13631. # Commands to make compiler produce verbose output that lists
  13632. # what "hidden" libraries, object files and flags are used when
  13633. # linking a shared library.
  13634. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
  13635. else
  13636. GXX=no
  13637. with_gnu_ld=no
  13638. wlarc=
  13639. fi
  13640. # PORTME: fill in a description of your system's C++ link characteristics
  13641. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13642. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  13643. ld_shlibs_CXX=yes
  13644. case $host_os in
  13645. aix3*)
  13646. # FIXME: insert proper C++ library support
  13647. ld_shlibs_CXX=no
  13648. ;;
  13649. aix[4-9]*)
  13650. if test ia64 = "$host_cpu"; then
  13651. # On IA64, the linker does run time linking by default, so we don't
  13652. # have to do anything special.
  13653. aix_use_runtimelinking=no
  13654. exp_sym_flag='-Bexport'
  13655. no_entry_flag=
  13656. else
  13657. aix_use_runtimelinking=no
  13658. # Test if we are trying to use run time linking or normal
  13659. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  13660. # have runtime linking enabled, and use it for executables.
  13661. # For shared libraries, we enable/disable runtime linking
  13662. # depending on the kind of the shared library created -
  13663. # when "with_aix_soname,aix_use_runtimelinking" is:
  13664. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  13665. # "aix,yes" lib.so shared, rtl:yes, for executables
  13666. # lib.a static archive
  13667. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  13668. # lib.a(lib.so.V) shared, rtl:no, for executables
  13669. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  13670. # lib.a(lib.so.V) shared, rtl:no
  13671. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  13672. # lib.a static archive
  13673. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  13674. for ld_flag in $LDFLAGS; do
  13675. case $ld_flag in
  13676. *-brtl*)
  13677. aix_use_runtimelinking=yes
  13678. break
  13679. ;;
  13680. esac
  13681. done
  13682. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  13683. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  13684. # so we don't have lib.a shared libs to link our executables.
  13685. # We have to force runtime linking in this case.
  13686. aix_use_runtimelinking=yes
  13687. LDFLAGS="$LDFLAGS -Wl,-brtl"
  13688. fi
  13689. ;;
  13690. esac
  13691. exp_sym_flag='-bexport'
  13692. no_entry_flag='-bnoentry'
  13693. fi
  13694. # When large executables or shared objects are built, AIX ld can
  13695. # have problems creating the table of contents. If linking a library
  13696. # or program results in "error TOC overflow" add -mminimal-toc to
  13697. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  13698. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  13699. archive_cmds_CXX=''
  13700. hardcode_direct_CXX=yes
  13701. hardcode_direct_absolute_CXX=yes
  13702. hardcode_libdir_separator_CXX=':'
  13703. link_all_deplibs_CXX=yes
  13704. file_list_spec_CXX='$wl-f,'
  13705. case $with_aix_soname,$aix_use_runtimelinking in
  13706. aix,*) ;; # no import file
  13707. svr4,* | *,yes) # use import file
  13708. # The Import File defines what to hardcode.
  13709. hardcode_direct_CXX=no
  13710. hardcode_direct_absolute_CXX=no
  13711. ;;
  13712. esac
  13713. if test yes = "$GXX"; then
  13714. case $host_os in aix4.[012]|aix4.[012].*)
  13715. # We only want to do this on AIX 4.2 and lower, the check
  13716. # below for broken collect2 doesn't work under 4.3+
  13717. collect2name=`$CC -print-prog-name=collect2`
  13718. if test -f "$collect2name" &&
  13719. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  13720. then
  13721. # We have reworked collect2
  13722. :
  13723. else
  13724. # We have old collect2
  13725. hardcode_direct_CXX=unsupported
  13726. # It fails to find uninstalled libraries when the uninstalled
  13727. # path is not listed in the libpath. Setting hardcode_minus_L
  13728. # to unsupported forces relinking
  13729. hardcode_minus_L_CXX=yes
  13730. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13731. hardcode_libdir_separator_CXX=
  13732. fi
  13733. esac
  13734. shared_flag='-shared'
  13735. if test yes = "$aix_use_runtimelinking"; then
  13736. shared_flag=$shared_flag' $wl-G'
  13737. fi
  13738. # Need to ensure runtime linking is disabled for the traditional
  13739. # shared library, or the linker may eventually find shared libraries
  13740. # /with/ Import File - we do not want to mix them.
  13741. shared_flag_aix='-shared'
  13742. shared_flag_svr4='-shared $wl-G'
  13743. else
  13744. # not using gcc
  13745. if test ia64 = "$host_cpu"; then
  13746. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  13747. # chokes on -Wl,-G. The following line is correct:
  13748. shared_flag='-G'
  13749. else
  13750. if test yes = "$aix_use_runtimelinking"; then
  13751. shared_flag='$wl-G'
  13752. else
  13753. shared_flag='$wl-bM:SRE'
  13754. fi
  13755. shared_flag_aix='$wl-bM:SRE'
  13756. shared_flag_svr4='$wl-G'
  13757. fi
  13758. fi
  13759. export_dynamic_flag_spec_CXX='$wl-bexpall'
  13760. # It seems that -bexpall does not export symbols beginning with
  13761. # underscore (_), so it is better to generate a list of symbols to
  13762. # export.
  13763. always_export_symbols_CXX=yes
  13764. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  13765. # Warning - without using the other runtime loading flags (-brtl),
  13766. # -berok will link without error, but may produce a broken library.
  13767. # The "-G" linker flag allows undefined symbols.
  13768. no_undefined_flag_CXX='-bernotok'
  13769. # Determine the default libpath from the value encoded in an empty
  13770. # executable.
  13771. if test set = "${lt_cv_aix_libpath+set}"; then
  13772. aix_libpath=$lt_cv_aix_libpath
  13773. else
  13774. if test ${lt_cv_aix_libpath__CXX+y}
  13775. then :
  13776. printf %s "(cached) " >&6
  13777. else $as_nop
  13778. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13779. /* end confdefs.h. */
  13780. int
  13781. main (void)
  13782. {
  13783. ;
  13784. return 0;
  13785. }
  13786. _ACEOF
  13787. if ac_fn_cxx_try_link "$LINENO"
  13788. then :
  13789. lt_aix_libpath_sed='
  13790. /Import File Strings/,/^$/ {
  13791. /^0/ {
  13792. s/^0 *\([^ ]*\) *$/\1/
  13793. p
  13794. }
  13795. }'
  13796. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13797. # Check for a 64-bit object if we didn't find anything.
  13798. if test -z "$lt_cv_aix_libpath__CXX"; then
  13799. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13800. fi
  13801. fi
  13802. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13803. conftest$ac_exeext conftest.$ac_ext
  13804. if test -z "$lt_cv_aix_libpath__CXX"; then
  13805. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  13806. fi
  13807. fi
  13808. aix_libpath=$lt_cv_aix_libpath__CXX
  13809. fi
  13810. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  13811. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  13812. else
  13813. if test ia64 = "$host_cpu"; then
  13814. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  13815. allow_undefined_flag_CXX="-z nodefs"
  13816. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
  13817. else
  13818. # Determine the default libpath from the value encoded in an
  13819. # empty executable.
  13820. if test set = "${lt_cv_aix_libpath+set}"; then
  13821. aix_libpath=$lt_cv_aix_libpath
  13822. else
  13823. if test ${lt_cv_aix_libpath__CXX+y}
  13824. then :
  13825. printf %s "(cached) " >&6
  13826. else $as_nop
  13827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13828. /* end confdefs.h. */
  13829. int
  13830. main (void)
  13831. {
  13832. ;
  13833. return 0;
  13834. }
  13835. _ACEOF
  13836. if ac_fn_cxx_try_link "$LINENO"
  13837. then :
  13838. lt_aix_libpath_sed='
  13839. /Import File Strings/,/^$/ {
  13840. /^0/ {
  13841. s/^0 *\([^ ]*\) *$/\1/
  13842. p
  13843. }
  13844. }'
  13845. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13846. # Check for a 64-bit object if we didn't find anything.
  13847. if test -z "$lt_cv_aix_libpath__CXX"; then
  13848. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13849. fi
  13850. fi
  13851. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13852. conftest$ac_exeext conftest.$ac_ext
  13853. if test -z "$lt_cv_aix_libpath__CXX"; then
  13854. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  13855. fi
  13856. fi
  13857. aix_libpath=$lt_cv_aix_libpath__CXX
  13858. fi
  13859. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  13860. # Warning - without using the other run time loading flags,
  13861. # -berok will link without error, but may produce a broken library.
  13862. no_undefined_flag_CXX=' $wl-bernotok'
  13863. allow_undefined_flag_CXX=' $wl-berok'
  13864. if test yes = "$with_gnu_ld"; then
  13865. # We only use this code for GNU lds that support --whole-archive.
  13866. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13867. else
  13868. # Exported symbols can be pulled into shared objects from archives
  13869. whole_archive_flag_spec_CXX='$convenience'
  13870. fi
  13871. archive_cmds_need_lc_CXX=yes
  13872. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  13873. # -brtl affects multiple linker settings, -berok does not and is overridden later
  13874. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  13875. if test svr4 != "$with_aix_soname"; then
  13876. # This is similar to how AIX traditionally builds its shared
  13877. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  13878. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  13879. fi
  13880. if test aix != "$with_aix_soname"; then
  13881. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  13882. else
  13883. # used by -dlpreopen to get the symbols
  13884. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  13885. fi
  13886. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  13887. fi
  13888. fi
  13889. ;;
  13890. beos*)
  13891. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  13892. allow_undefined_flag_CXX=unsupported
  13893. # Joseph Beckenbach <[email protected]> says some releases of gcc
  13894. # support --undefined. This deserves some investigation. FIXME
  13895. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13896. else
  13897. ld_shlibs_CXX=no
  13898. fi
  13899. ;;
  13900. chorus*)
  13901. case $cc_basename in
  13902. *)
  13903. # FIXME: insert proper C++ library support
  13904. ld_shlibs_CXX=no
  13905. ;;
  13906. esac
  13907. ;;
  13908. cygwin* | mingw* | pw32* | cegcc*)
  13909. case $GXX,$cc_basename in
  13910. ,cl* | no,cl*)
  13911. # Native MSVC
  13912. # hardcode_libdir_flag_spec is actually meaningless, as there is
  13913. # no search path for DLLs.
  13914. hardcode_libdir_flag_spec_CXX=' '
  13915. allow_undefined_flag_CXX=unsupported
  13916. always_export_symbols_CXX=yes
  13917. file_list_spec_CXX='@'
  13918. # Tell ltmain to make .lib files, not .a files.
  13919. libext=lib
  13920. # Tell ltmain to make .dll files, not .so files.
  13921. shrext_cmds=.dll
  13922. # FIXME: Setting linknames here is a bad hack.
  13923. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  13924. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13925. cp "$export_symbols" "$output_objdir/$soname.def";
  13926. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  13927. else
  13928. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  13929. fi~
  13930. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  13931. linknames='
  13932. # The linker will not automatically build a static lib if we build a DLL.
  13933. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  13934. enable_shared_with_static_runtimes_CXX=yes
  13935. # Don't use ranlib
  13936. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  13937. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  13938. lt_tool_outputfile="@TOOL_OUTPUT@"~
  13939. case $lt_outputfile in
  13940. *.exe|*.EXE) ;;
  13941. *)
  13942. lt_outputfile=$lt_outputfile.exe
  13943. lt_tool_outputfile=$lt_tool_outputfile.exe
  13944. ;;
  13945. esac~
  13946. func_to_tool_file "$lt_outputfile"~
  13947. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  13948. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  13949. $RM "$lt_outputfile.manifest";
  13950. fi'
  13951. ;;
  13952. *)
  13953. # g++
  13954. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  13955. # as there is no search path for DLLs.
  13956. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13957. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  13958. allow_undefined_flag_CXX=unsupported
  13959. always_export_symbols_CXX=no
  13960. enable_shared_with_static_runtimes_CXX=yes
  13961. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  13962. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  13963. # If the export-symbols file already is a .def file, use it as
  13964. # is; otherwise, prepend EXPORTS...
  13965. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13966. cp $export_symbols $output_objdir/$soname.def;
  13967. else
  13968. echo EXPORTS > $output_objdir/$soname.def;
  13969. cat $export_symbols >> $output_objdir/$soname.def;
  13970. fi~
  13971. $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  13972. else
  13973. ld_shlibs_CXX=no
  13974. fi
  13975. ;;
  13976. esac
  13977. ;;
  13978. darwin* | rhapsody*)
  13979. archive_cmds_need_lc_CXX=no
  13980. hardcode_direct_CXX=no
  13981. hardcode_automatic_CXX=yes
  13982. hardcode_shlibpath_var_CXX=unsupported
  13983. if test yes = "$lt_cv_ld_force_load"; then
  13984. whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  13985. else
  13986. whole_archive_flag_spec_CXX=''
  13987. fi
  13988. link_all_deplibs_CXX=yes
  13989. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  13990. case $cc_basename in
  13991. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  13992. *) _lt_dar_can_shared=$GCC ;;
  13993. esac
  13994. if test yes = "$_lt_dar_can_shared"; then
  13995. output_verbose_link_cmd=func_echo_all
  13996. archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  13997. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  13998. archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
  13999. module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
  14000. if test yes != "$lt_cv_apple_cc_single_mod"; then
  14001. archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
  14002. archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
  14003. fi
  14004. else
  14005. ld_shlibs_CXX=no
  14006. fi
  14007. ;;
  14008. os2*)
  14009. hardcode_libdir_flag_spec_CXX='-L$libdir'
  14010. hardcode_minus_L_CXX=yes
  14011. allow_undefined_flag_CXX=unsupported
  14012. shrext_cmds=.dll
  14013. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  14014. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  14015. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  14016. $ECHO EXPORTS >> $output_objdir/$libname.def~
  14017. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  14018. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  14019. emximp -o $lib $output_objdir/$libname.def'
  14020. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  14021. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  14022. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  14023. $ECHO EXPORTS >> $output_objdir/$libname.def~
  14024. prefix_cmds="$SED"~
  14025. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  14026. prefix_cmds="$prefix_cmds -e 1d";
  14027. fi~
  14028. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  14029. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  14030. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  14031. emximp -o $lib $output_objdir/$libname.def'
  14032. old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  14033. enable_shared_with_static_runtimes_CXX=yes
  14034. ;;
  14035. dgux*)
  14036. case $cc_basename in
  14037. ec++*)
  14038. # FIXME: insert proper C++ library support
  14039. ld_shlibs_CXX=no
  14040. ;;
  14041. ghcx*)
  14042. # Green Hills C++ Compiler
  14043. # FIXME: insert proper C++ library support
  14044. ld_shlibs_CXX=no
  14045. ;;
  14046. *)
  14047. # FIXME: insert proper C++ library support
  14048. ld_shlibs_CXX=no
  14049. ;;
  14050. esac
  14051. ;;
  14052. freebsd2.*)
  14053. # C++ shared libraries reported to be fairly broken before
  14054. # switch to ELF
  14055. ld_shlibs_CXX=no
  14056. ;;
  14057. freebsd-elf*)
  14058. archive_cmds_need_lc_CXX=no
  14059. ;;
  14060. freebsd* | dragonfly*)
  14061. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  14062. # conventions
  14063. ld_shlibs_CXX=yes
  14064. ;;
  14065. haiku*)
  14066. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  14067. link_all_deplibs_CXX=yes
  14068. ;;
  14069. hpux9*)
  14070. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  14071. hardcode_libdir_separator_CXX=:
  14072. export_dynamic_flag_spec_CXX='$wl-E'
  14073. hardcode_direct_CXX=yes
  14074. hardcode_minus_L_CXX=yes # Not in the search PATH,
  14075. # but as the default
  14076. # location of the library.
  14077. case $cc_basename in
  14078. CC*)
  14079. # FIXME: insert proper C++ library support
  14080. ld_shlibs_CXX=no
  14081. ;;
  14082. aCC*)
  14083. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  14084. # Commands to make compiler produce verbose output that lists
  14085. # what "hidden" libraries, object files and flags are used when
  14086. # linking a shared library.
  14087. #
  14088. # There doesn't appear to be a way to prevent this compiler from
  14089. # explicitly linking system object files so we need to strip them
  14090. # from the output so that they don't get included in the library
  14091. # dependencies.
  14092. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  14093. ;;
  14094. *)
  14095. if test yes = "$GXX"; then
  14096. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  14097. else
  14098. # FIXME: insert proper C++ library support
  14099. ld_shlibs_CXX=no
  14100. fi
  14101. ;;
  14102. esac
  14103. ;;
  14104. hpux10*|hpux11*)
  14105. if test no = "$with_gnu_ld"; then
  14106. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  14107. hardcode_libdir_separator_CXX=:
  14108. case $host_cpu in
  14109. hppa*64*|ia64*)
  14110. ;;
  14111. *)
  14112. export_dynamic_flag_spec_CXX='$wl-E'
  14113. ;;
  14114. esac
  14115. fi
  14116. case $host_cpu in
  14117. hppa*64*|ia64*)
  14118. hardcode_direct_CXX=no
  14119. hardcode_shlibpath_var_CXX=no
  14120. ;;
  14121. *)
  14122. hardcode_direct_CXX=yes
  14123. hardcode_direct_absolute_CXX=yes
  14124. hardcode_minus_L_CXX=yes # Not in the search PATH,
  14125. # but as the default
  14126. # location of the library.
  14127. ;;
  14128. esac
  14129. case $cc_basename in
  14130. CC*)
  14131. # FIXME: insert proper C++ library support
  14132. ld_shlibs_CXX=no
  14133. ;;
  14134. aCC*)
  14135. case $host_cpu in
  14136. hppa*64*)
  14137. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  14138. ;;
  14139. ia64*)
  14140. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  14141. ;;
  14142. *)
  14143. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  14144. ;;
  14145. esac
  14146. # Commands to make compiler produce verbose output that lists
  14147. # what "hidden" libraries, object files and flags are used when
  14148. # linking a shared library.
  14149. #
  14150. # There doesn't appear to be a way to prevent this compiler from
  14151. # explicitly linking system object files so we need to strip them
  14152. # from the output so that they don't get included in the library
  14153. # dependencies.
  14154. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  14155. ;;
  14156. *)
  14157. if test yes = "$GXX"; then
  14158. if test no = "$with_gnu_ld"; then
  14159. case $host_cpu in
  14160. hppa*64*)
  14161. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  14162. ;;
  14163. ia64*)
  14164. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  14165. ;;
  14166. *)
  14167. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  14168. ;;
  14169. esac
  14170. fi
  14171. else
  14172. # FIXME: insert proper C++ library support
  14173. ld_shlibs_CXX=no
  14174. fi
  14175. ;;
  14176. esac
  14177. ;;
  14178. interix[3-9]*)
  14179. hardcode_direct_CXX=no
  14180. hardcode_shlibpath_var_CXX=no
  14181. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  14182. export_dynamic_flag_spec_CXX='$wl-E'
  14183. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  14184. # Instead, shared libraries are loaded at an image base (0x10000000 by
  14185. # default) and relocated if they conflict, which is a slow very memory
  14186. # consuming and fragmenting process. To avoid this, we pick a random,
  14187. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  14188. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  14189. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  14190. archive_expsym_cmds_CXX='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  14191. ;;
  14192. irix5* | irix6*)
  14193. case $cc_basename in
  14194. CC*)
  14195. # SGI C++
  14196. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  14197. # Archives containing C++ object files must be created using
  14198. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  14199. # necessary to make sure instantiated templates are included
  14200. # in the archive.
  14201. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  14202. ;;
  14203. *)
  14204. if test yes = "$GXX"; then
  14205. if test no = "$with_gnu_ld"; then
  14206. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  14207. else
  14208. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
  14209. fi
  14210. fi
  14211. link_all_deplibs_CXX=yes
  14212. ;;
  14213. esac
  14214. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  14215. hardcode_libdir_separator_CXX=:
  14216. inherit_rpath_CXX=yes
  14217. ;;
  14218. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14219. case $cc_basename in
  14220. KCC*)
  14221. # Kuck and Associates, Inc. (KAI) C++ Compiler
  14222. # KCC will only create a shared library if the output file
  14223. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  14224. # to its proper name (with version) after linking.
  14225. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  14226. archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
  14227. # Commands to make compiler produce verbose output that lists
  14228. # what "hidden" libraries, object files and flags are used when
  14229. # linking a shared library.
  14230. #
  14231. # There doesn't appear to be a way to prevent this compiler from
  14232. # explicitly linking system object files so we need to strip them
  14233. # from the output so that they don't get included in the library
  14234. # dependencies.
  14235. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  14236. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  14237. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  14238. # Archives containing C++ object files must be created using
  14239. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  14240. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  14241. ;;
  14242. icpc* | ecpc* )
  14243. # Intel C++
  14244. with_gnu_ld=yes
  14245. # version 8.0 and above of icpc choke on multiply defined symbols
  14246. # if we add $predep_objects and $postdep_objects, however 7.1 and
  14247. # earlier do not add the objects themselves.
  14248. case `$CC -V 2>&1` in
  14249. *"Version 7."*)
  14250. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  14251. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  14252. ;;
  14253. *) # Version 8.0 or newer
  14254. tmp_idyn=
  14255. case $host_cpu in
  14256. ia64*) tmp_idyn=' -i_dynamic';;
  14257. esac
  14258. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  14259. archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  14260. ;;
  14261. esac
  14262. archive_cmds_need_lc_CXX=no
  14263. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  14264. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  14265. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  14266. ;;
  14267. pgCC* | pgcpp*)
  14268. # Portland Group C++ compiler
  14269. case `$CC -V` in
  14270. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  14271. prelink_cmds_CXX='tpldir=Template.dir~
  14272. rm -rf $tpldir~
  14273. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  14274. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  14275. old_archive_cmds_CXX='tpldir=Template.dir~
  14276. rm -rf $tpldir~
  14277. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  14278. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  14279. $RANLIB $oldlib'
  14280. archive_cmds_CXX='tpldir=Template.dir~
  14281. rm -rf $tpldir~
  14282. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  14283. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  14284. archive_expsym_cmds_CXX='tpldir=Template.dir~
  14285. rm -rf $tpldir~
  14286. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  14287. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  14288. ;;
  14289. *) # Version 6 and above use weak symbols
  14290. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  14291. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  14292. ;;
  14293. esac
  14294. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  14295. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  14296. whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  14297. ;;
  14298. cxx*)
  14299. # Compaq C++
  14300. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  14301. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'
  14302. runpath_var=LD_RUN_PATH
  14303. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  14304. hardcode_libdir_separator_CXX=:
  14305. # Commands to make compiler produce verbose output that lists
  14306. # what "hidden" libraries, object files and flags are used when
  14307. # linking a shared library.
  14308. #
  14309. # There doesn't appear to be a way to prevent this compiler from
  14310. # explicitly linking system object files so we need to strip them
  14311. # from the output so that they don't get included in the library
  14312. # dependencies.
  14313. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
  14314. ;;
  14315. xl* | mpixl* | bgxl*)
  14316. # IBM XL 8.0 on PPC, with GNU ld
  14317. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  14318. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  14319. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  14320. if test yes = "$supports_anon_versioning"; then
  14321. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  14322. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  14323. echo "local: *; };" >> $output_objdir/$libname.ver~
  14324. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  14325. fi
  14326. ;;
  14327. *)
  14328. case `$CC -V 2>&1 | sed 5q` in
  14329. *Sun\ C*)
  14330. # Sun C++ 5.9
  14331. no_undefined_flag_CXX=' -zdefs'
  14332. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  14333. archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
  14334. hardcode_libdir_flag_spec_CXX='-R$libdir'
  14335. whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  14336. compiler_needs_object_CXX=yes
  14337. # Not sure whether something based on
  14338. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  14339. # would be better.
  14340. output_verbose_link_cmd='func_echo_all'
  14341. # Archives containing C++ object files must be created using
  14342. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  14343. # necessary to make sure instantiated templates are included
  14344. # in the archive.
  14345. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  14346. ;;
  14347. esac
  14348. ;;
  14349. esac
  14350. ;;
  14351. lynxos*)
  14352. # FIXME: insert proper C++ library support
  14353. ld_shlibs_CXX=no
  14354. ;;
  14355. m88k*)
  14356. # FIXME: insert proper C++ library support
  14357. ld_shlibs_CXX=no
  14358. ;;
  14359. mvs*)
  14360. case $cc_basename in
  14361. cxx*)
  14362. # FIXME: insert proper C++ library support
  14363. ld_shlibs_CXX=no
  14364. ;;
  14365. *)
  14366. # FIXME: insert proper C++ library support
  14367. ld_shlibs_CXX=no
  14368. ;;
  14369. esac
  14370. ;;
  14371. netbsd*)
  14372. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  14373. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  14374. wlarc=
  14375. hardcode_libdir_flag_spec_CXX='-R$libdir'
  14376. hardcode_direct_CXX=yes
  14377. hardcode_shlibpath_var_CXX=no
  14378. fi
  14379. # Workaround some broken pre-1.5 toolchains
  14380. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  14381. ;;
  14382. *nto* | *qnx*)
  14383. ld_shlibs_CXX=yes
  14384. ;;
  14385. openbsd* | bitrig*)
  14386. if test -f /usr/libexec/ld.so; then
  14387. hardcode_direct_CXX=yes
  14388. hardcode_shlibpath_var_CXX=no
  14389. hardcode_direct_absolute_CXX=yes
  14390. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  14391. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  14392. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  14393. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  14394. export_dynamic_flag_spec_CXX='$wl-E'
  14395. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  14396. fi
  14397. output_verbose_link_cmd=func_echo_all
  14398. else
  14399. ld_shlibs_CXX=no
  14400. fi
  14401. ;;
  14402. osf3* | osf4* | osf5*)
  14403. case $cc_basename in
  14404. KCC*)
  14405. # Kuck and Associates, Inc. (KAI) C++ Compiler
  14406. # KCC will only create a shared library if the output file
  14407. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  14408. # to its proper name (with version) after linking.
  14409. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  14410. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  14411. hardcode_libdir_separator_CXX=:
  14412. # Archives containing C++ object files must be created using
  14413. # the KAI C++ compiler.
  14414. case $host in
  14415. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  14416. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  14417. esac
  14418. ;;
  14419. RCC*)
  14420. # Rational C++ 2.4.1
  14421. # FIXME: insert proper C++ library support
  14422. ld_shlibs_CXX=no
  14423. ;;
  14424. cxx*)
  14425. case $host in
  14426. osf3*)
  14427. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  14428. archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  14429. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  14430. ;;
  14431. *)
  14432. allow_undefined_flag_CXX=' -expect_unresolved \*'
  14433. archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  14434. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  14435. echo "-hidden">> $lib.exp~
  14436. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
  14437. $RM $lib.exp'
  14438. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  14439. ;;
  14440. esac
  14441. hardcode_libdir_separator_CXX=:
  14442. # Commands to make compiler produce verbose output that lists
  14443. # what "hidden" libraries, object files and flags are used when
  14444. # linking a shared library.
  14445. #
  14446. # There doesn't appear to be a way to prevent this compiler from
  14447. # explicitly linking system object files so we need to strip them
  14448. # from the output so that they don't get included in the library
  14449. # dependencies.
  14450. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  14451. ;;
  14452. *)
  14453. if test yes,no = "$GXX,$with_gnu_ld"; then
  14454. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  14455. case $host in
  14456. osf3*)
  14457. archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  14458. ;;
  14459. *)
  14460. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  14461. ;;
  14462. esac
  14463. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  14464. hardcode_libdir_separator_CXX=:
  14465. # Commands to make compiler produce verbose output that lists
  14466. # what "hidden" libraries, object files and flags are used when
  14467. # linking a shared library.
  14468. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
  14469. else
  14470. # FIXME: insert proper C++ library support
  14471. ld_shlibs_CXX=no
  14472. fi
  14473. ;;
  14474. esac
  14475. ;;
  14476. psos*)
  14477. # FIXME: insert proper C++ library support
  14478. ld_shlibs_CXX=no
  14479. ;;
  14480. sunos4*)
  14481. case $cc_basename in
  14482. CC*)
  14483. # Sun C++ 4.x
  14484. # FIXME: insert proper C++ library support
  14485. ld_shlibs_CXX=no
  14486. ;;
  14487. lcc*)
  14488. # Lucid
  14489. # FIXME: insert proper C++ library support
  14490. ld_shlibs_CXX=no
  14491. ;;
  14492. *)
  14493. # FIXME: insert proper C++ library support
  14494. ld_shlibs_CXX=no
  14495. ;;
  14496. esac
  14497. ;;
  14498. solaris*)
  14499. case $cc_basename in
  14500. CC* | sunCC*)
  14501. # Sun C++ 4.2, 5.x and Centerline C++
  14502. archive_cmds_need_lc_CXX=yes
  14503. no_undefined_flag_CXX=' -zdefs'
  14504. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  14505. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  14506. $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  14507. hardcode_libdir_flag_spec_CXX='-R$libdir'
  14508. hardcode_shlibpath_var_CXX=no
  14509. case $host_os in
  14510. solaris2.[0-5] | solaris2.[0-5].*) ;;
  14511. *)
  14512. # The compiler driver will combine and reorder linker options,
  14513. # but understands '-z linker_flag'.
  14514. # Supported since Solaris 2.6 (maybe 2.5.1?)
  14515. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  14516. ;;
  14517. esac
  14518. link_all_deplibs_CXX=yes
  14519. output_verbose_link_cmd='func_echo_all'
  14520. # Archives containing C++ object files must be created using
  14521. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  14522. # necessary to make sure instantiated templates are included
  14523. # in the archive.
  14524. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  14525. ;;
  14526. gcx*)
  14527. # Green Hills C++ Compiler
  14528. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  14529. # The C++ compiler must be used to create the archive.
  14530. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  14531. ;;
  14532. *)
  14533. # GNU C++ compiler with Solaris linker
  14534. if test yes,no = "$GXX,$with_gnu_ld"; then
  14535. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  14536. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  14537. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  14538. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  14539. $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  14540. # Commands to make compiler produce verbose output that lists
  14541. # what "hidden" libraries, object files and flags are used when
  14542. # linking a shared library.
  14543. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
  14544. else
  14545. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  14546. # platform.
  14547. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  14548. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  14549. $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  14550. # Commands to make compiler produce verbose output that lists
  14551. # what "hidden" libraries, object files and flags are used when
  14552. # linking a shared library.
  14553. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
  14554. fi
  14555. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  14556. case $host_os in
  14557. solaris2.[0-5] | solaris2.[0-5].*) ;;
  14558. *)
  14559. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  14560. ;;
  14561. esac
  14562. fi
  14563. ;;
  14564. esac
  14565. ;;
  14566. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  14567. no_undefined_flag_CXX='$wl-z,text'
  14568. archive_cmds_need_lc_CXX=no
  14569. hardcode_shlibpath_var_CXX=no
  14570. runpath_var='LD_RUN_PATH'
  14571. case $cc_basename in
  14572. CC*)
  14573. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14574. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14575. ;;
  14576. *)
  14577. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14578. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14579. ;;
  14580. esac
  14581. ;;
  14582. sysv5* | sco3.2v5* | sco5v6*)
  14583. # Note: We CANNOT use -z defs as we might desire, because we do not
  14584. # link with -lc, and that would cause any symbols used from libc to
  14585. # always be unresolved, which means just about no library would
  14586. # ever link correctly. If we're not using GNU ld we use -z text
  14587. # though, which does catch some bad symbols but isn't as heavy-handed
  14588. # as -z defs.
  14589. no_undefined_flag_CXX='$wl-z,text'
  14590. allow_undefined_flag_CXX='$wl-z,nodefs'
  14591. archive_cmds_need_lc_CXX=no
  14592. hardcode_shlibpath_var_CXX=no
  14593. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  14594. hardcode_libdir_separator_CXX=':'
  14595. link_all_deplibs_CXX=yes
  14596. export_dynamic_flag_spec_CXX='$wl-Bexport'
  14597. runpath_var='LD_RUN_PATH'
  14598. case $cc_basename in
  14599. CC*)
  14600. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14601. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14602. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  14603. '"$old_archive_cmds_CXX"
  14604. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  14605. '"$reload_cmds_CXX"
  14606. ;;
  14607. *)
  14608. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14609. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14610. ;;
  14611. esac
  14612. ;;
  14613. tandem*)
  14614. case $cc_basename in
  14615. NCC*)
  14616. # NonStop-UX NCC 3.20
  14617. # FIXME: insert proper C++ library support
  14618. ld_shlibs_CXX=no
  14619. ;;
  14620. *)
  14621. # FIXME: insert proper C++ library support
  14622. ld_shlibs_CXX=no
  14623. ;;
  14624. esac
  14625. ;;
  14626. vxworks*)
  14627. # FIXME: insert proper C++ library support
  14628. ld_shlibs_CXX=no
  14629. ;;
  14630. *)
  14631. # FIXME: insert proper C++ library support
  14632. ld_shlibs_CXX=no
  14633. ;;
  14634. esac
  14635. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  14636. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  14637. test no = "$ld_shlibs_CXX" && can_build_shared=no
  14638. GCC_CXX=$GXX
  14639. LD_CXX=$LD
  14640. ## CAVEAT EMPTOR:
  14641. ## There is no encapsulation within the following macros, do not change
  14642. ## the running order or otherwise move them around unless you know exactly
  14643. ## what you are doing...
  14644. # Dependencies to place before and after the object being linked:
  14645. predep_objects_CXX=
  14646. postdep_objects_CXX=
  14647. predeps_CXX=
  14648. postdeps_CXX=
  14649. compiler_lib_search_path_CXX=
  14650. cat > conftest.$ac_ext <<_LT_EOF
  14651. class Foo
  14652. {
  14653. public:
  14654. Foo (void) { a = 0; }
  14655. private:
  14656. int a;
  14657. };
  14658. _LT_EOF
  14659. _lt_libdeps_save_CFLAGS=$CFLAGS
  14660. case "$CC $CFLAGS " in #(
  14661. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  14662. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  14663. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  14664. esac
  14665. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14666. (eval $ac_compile) 2>&5
  14667. ac_status=$?
  14668. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14669. test $ac_status = 0; }; then
  14670. # Parse the compiler output and extract the necessary
  14671. # objects, libraries and library flags.
  14672. # Sentinel used to keep track of whether or not we are before
  14673. # the conftest object file.
  14674. pre_test_object_deps_done=no
  14675. for p in `eval "$output_verbose_link_cmd"`; do
  14676. case $prev$p in
  14677. -L* | -R* | -l*)
  14678. # Some compilers place space between "-{L,R}" and the path.
  14679. # Remove the space.
  14680. if test x-L = "$p" ||
  14681. test x-R = "$p"; then
  14682. prev=$p
  14683. continue
  14684. fi
  14685. # Expand the sysroot to ease extracting the directories later.
  14686. if test -z "$prev"; then
  14687. case $p in
  14688. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  14689. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  14690. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  14691. esac
  14692. fi
  14693. case $p in
  14694. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  14695. esac
  14696. if test no = "$pre_test_object_deps_done"; then
  14697. case $prev in
  14698. -L | -R)
  14699. # Internal compiler library paths should come after those
  14700. # provided the user. The postdeps already come after the
  14701. # user supplied libs so there is no need to process them.
  14702. if test -z "$compiler_lib_search_path_CXX"; then
  14703. compiler_lib_search_path_CXX=$prev$p
  14704. else
  14705. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  14706. fi
  14707. ;;
  14708. # The "-l" case would never come before the object being
  14709. # linked, so don't bother handling this case.
  14710. esac
  14711. else
  14712. if test -z "$postdeps_CXX"; then
  14713. postdeps_CXX=$prev$p
  14714. else
  14715. postdeps_CXX="${postdeps_CXX} $prev$p"
  14716. fi
  14717. fi
  14718. prev=
  14719. ;;
  14720. *.lto.$objext) ;; # Ignore GCC LTO objects
  14721. *.$objext)
  14722. # This assumes that the test object file only shows up
  14723. # once in the compiler output.
  14724. if test "$p" = "conftest.$objext"; then
  14725. pre_test_object_deps_done=yes
  14726. continue
  14727. fi
  14728. if test no = "$pre_test_object_deps_done"; then
  14729. if test -z "$predep_objects_CXX"; then
  14730. predep_objects_CXX=$p
  14731. else
  14732. predep_objects_CXX="$predep_objects_CXX $p"
  14733. fi
  14734. else
  14735. if test -z "$postdep_objects_CXX"; then
  14736. postdep_objects_CXX=$p
  14737. else
  14738. postdep_objects_CXX="$postdep_objects_CXX $p"
  14739. fi
  14740. fi
  14741. ;;
  14742. *) ;; # Ignore the rest.
  14743. esac
  14744. done
  14745. # Clean up.
  14746. rm -f a.out a.exe
  14747. else
  14748. echo "libtool.m4: error: problem compiling CXX test program"
  14749. fi
  14750. $RM -f confest.$objext
  14751. CFLAGS=$_lt_libdeps_save_CFLAGS
  14752. # PORTME: override above test on systems where it is broken
  14753. case $host_os in
  14754. interix[3-9]*)
  14755. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  14756. # hack all around it, let's just trust "g++" to DTRT.
  14757. predep_objects_CXX=
  14758. postdep_objects_CXX=
  14759. postdeps_CXX=
  14760. ;;
  14761. esac
  14762. case " $postdeps_CXX " in
  14763. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  14764. esac
  14765. compiler_lib_search_dirs_CXX=
  14766. if test -n "${compiler_lib_search_path_CXX}"; then
  14767. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  14768. fi
  14769. lt_prog_compiler_wl_CXX=
  14770. lt_prog_compiler_pic_CXX=
  14771. lt_prog_compiler_static_CXX=
  14772. # C++ specific cases for pic, static, wl, etc.
  14773. if test yes = "$GXX"; then
  14774. lt_prog_compiler_wl_CXX='-Wl,'
  14775. lt_prog_compiler_static_CXX='-static'
  14776. case $host_os in
  14777. aix*)
  14778. # All AIX code is PIC.
  14779. if test ia64 = "$host_cpu"; then
  14780. # AIX 5 now supports IA64 processor
  14781. lt_prog_compiler_static_CXX='-Bstatic'
  14782. fi
  14783. lt_prog_compiler_pic_CXX='-fPIC'
  14784. ;;
  14785. amigaos*)
  14786. case $host_cpu in
  14787. powerpc)
  14788. # see comment about AmigaOS4 .so support
  14789. lt_prog_compiler_pic_CXX='-fPIC'
  14790. ;;
  14791. m68k)
  14792. # FIXME: we need at least 68020 code to build shared libraries, but
  14793. # adding the '-m68020' flag to GCC prevents building anything better,
  14794. # like '-m68040'.
  14795. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  14796. ;;
  14797. esac
  14798. ;;
  14799. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  14800. # PIC is the default for these OSes.
  14801. ;;
  14802. mingw* | cygwin* | os2* | pw32* | cegcc*)
  14803. # This hack is so that the source file can tell whether it is being
  14804. # built for inclusion in a dll (and should export symbols for example).
  14805. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  14806. # (--disable-auto-import) libraries
  14807. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  14808. case $host_os in
  14809. os2*)
  14810. lt_prog_compiler_static_CXX='$wl-static'
  14811. ;;
  14812. esac
  14813. ;;
  14814. darwin* | rhapsody*)
  14815. # PIC is the default on this platform
  14816. # Common symbols not allowed in MH_DYLIB files
  14817. lt_prog_compiler_pic_CXX='-fno-common'
  14818. ;;
  14819. *djgpp*)
  14820. # DJGPP does not support shared libraries at all
  14821. lt_prog_compiler_pic_CXX=
  14822. ;;
  14823. haiku*)
  14824. # PIC is the default for Haiku.
  14825. # The "-static" flag exists, but is broken.
  14826. lt_prog_compiler_static_CXX=
  14827. ;;
  14828. interix[3-9]*)
  14829. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  14830. # Instead, we relocate shared libraries at runtime.
  14831. ;;
  14832. sysv4*MP*)
  14833. if test -d /usr/nec; then
  14834. lt_prog_compiler_pic_CXX=-Kconform_pic
  14835. fi
  14836. ;;
  14837. hpux*)
  14838. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  14839. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  14840. # sets the default TLS model and affects inlining.
  14841. case $host_cpu in
  14842. hppa*64*)
  14843. ;;
  14844. *)
  14845. lt_prog_compiler_pic_CXX='-fPIC'
  14846. ;;
  14847. esac
  14848. ;;
  14849. *qnx* | *nto*)
  14850. # QNX uses GNU C++, but need to define -shared option too, otherwise
  14851. # it will coredump.
  14852. lt_prog_compiler_pic_CXX='-fPIC -shared'
  14853. ;;
  14854. *)
  14855. lt_prog_compiler_pic_CXX='-fPIC'
  14856. ;;
  14857. esac
  14858. else
  14859. case $host_os in
  14860. aix[4-9]*)
  14861. # All AIX code is PIC.
  14862. if test ia64 = "$host_cpu"; then
  14863. # AIX 5 now supports IA64 processor
  14864. lt_prog_compiler_static_CXX='-Bstatic'
  14865. else
  14866. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  14867. fi
  14868. ;;
  14869. chorus*)
  14870. case $cc_basename in
  14871. cxch68*)
  14872. # Green Hills C++ Compiler
  14873. # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  14874. ;;
  14875. esac
  14876. ;;
  14877. mingw* | cygwin* | os2* | pw32* | cegcc*)
  14878. # This hack is so that the source file can tell whether it is being
  14879. # built for inclusion in a dll (and should export symbols for example).
  14880. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  14881. ;;
  14882. dgux*)
  14883. case $cc_basename in
  14884. ec++*)
  14885. lt_prog_compiler_pic_CXX='-KPIC'
  14886. ;;
  14887. ghcx*)
  14888. # Green Hills C++ Compiler
  14889. lt_prog_compiler_pic_CXX='-pic'
  14890. ;;
  14891. *)
  14892. ;;
  14893. esac
  14894. ;;
  14895. freebsd* | dragonfly*)
  14896. # FreeBSD uses GNU C++
  14897. ;;
  14898. hpux9* | hpux10* | hpux11*)
  14899. case $cc_basename in
  14900. CC*)
  14901. lt_prog_compiler_wl_CXX='-Wl,'
  14902. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  14903. if test ia64 != "$host_cpu"; then
  14904. lt_prog_compiler_pic_CXX='+Z'
  14905. fi
  14906. ;;
  14907. aCC*)
  14908. lt_prog_compiler_wl_CXX='-Wl,'
  14909. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  14910. case $host_cpu in
  14911. hppa*64*|ia64*)
  14912. # +Z the default
  14913. ;;
  14914. *)
  14915. lt_prog_compiler_pic_CXX='+Z'
  14916. ;;
  14917. esac
  14918. ;;
  14919. *)
  14920. ;;
  14921. esac
  14922. ;;
  14923. interix*)
  14924. # This is c89, which is MS Visual C++ (no shared libs)
  14925. # Anyone wants to do a port?
  14926. ;;
  14927. irix5* | irix6* | nonstopux*)
  14928. case $cc_basename in
  14929. CC*)
  14930. lt_prog_compiler_wl_CXX='-Wl,'
  14931. lt_prog_compiler_static_CXX='-non_shared'
  14932. # CC pic flag -KPIC is the default.
  14933. ;;
  14934. *)
  14935. ;;
  14936. esac
  14937. ;;
  14938. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14939. case $cc_basename in
  14940. KCC*)
  14941. # KAI C++ Compiler
  14942. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14943. lt_prog_compiler_pic_CXX='-fPIC'
  14944. ;;
  14945. ecpc* )
  14946. # old Intel C++ for x86_64, which still supported -KPIC.
  14947. lt_prog_compiler_wl_CXX='-Wl,'
  14948. lt_prog_compiler_pic_CXX='-KPIC'
  14949. lt_prog_compiler_static_CXX='-static'
  14950. ;;
  14951. icpc* )
  14952. # Intel C++, used to be incompatible with GCC.
  14953. # ICC 10 doesn't accept -KPIC any more.
  14954. lt_prog_compiler_wl_CXX='-Wl,'
  14955. lt_prog_compiler_pic_CXX='-fPIC'
  14956. lt_prog_compiler_static_CXX='-static'
  14957. ;;
  14958. pgCC* | pgcpp*)
  14959. # Portland Group C++ compiler
  14960. lt_prog_compiler_wl_CXX='-Wl,'
  14961. lt_prog_compiler_pic_CXX='-fpic'
  14962. lt_prog_compiler_static_CXX='-Bstatic'
  14963. ;;
  14964. cxx*)
  14965. # Compaq C++
  14966. # Make sure the PIC flag is empty. It appears that all Alpha
  14967. # Linux and Compaq Tru64 Unix objects are PIC.
  14968. lt_prog_compiler_pic_CXX=
  14969. lt_prog_compiler_static_CXX='-non_shared'
  14970. ;;
  14971. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  14972. # IBM XL 8.0, 9.0 on PPC and BlueGene
  14973. lt_prog_compiler_wl_CXX='-Wl,'
  14974. lt_prog_compiler_pic_CXX='-qpic'
  14975. lt_prog_compiler_static_CXX='-qstaticlink'
  14976. ;;
  14977. *)
  14978. case `$CC -V 2>&1 | sed 5q` in
  14979. *Sun\ C*)
  14980. # Sun C++ 5.9
  14981. lt_prog_compiler_pic_CXX='-KPIC'
  14982. lt_prog_compiler_static_CXX='-Bstatic'
  14983. lt_prog_compiler_wl_CXX='-Qoption ld '
  14984. ;;
  14985. esac
  14986. ;;
  14987. esac
  14988. ;;
  14989. lynxos*)
  14990. ;;
  14991. m88k*)
  14992. ;;
  14993. mvs*)
  14994. case $cc_basename in
  14995. cxx*)
  14996. lt_prog_compiler_pic_CXX='-W c,exportall'
  14997. ;;
  14998. *)
  14999. ;;
  15000. esac
  15001. ;;
  15002. netbsd* | netbsdelf*-gnu)
  15003. ;;
  15004. *qnx* | *nto*)
  15005. # QNX uses GNU C++, but need to define -shared option too, otherwise
  15006. # it will coredump.
  15007. lt_prog_compiler_pic_CXX='-fPIC -shared'
  15008. ;;
  15009. osf3* | osf4* | osf5*)
  15010. case $cc_basename in
  15011. KCC*)
  15012. lt_prog_compiler_wl_CXX='--backend -Wl,'
  15013. ;;
  15014. RCC*)
  15015. # Rational C++ 2.4.1
  15016. lt_prog_compiler_pic_CXX='-pic'
  15017. ;;
  15018. cxx*)
  15019. # Digital/Compaq C++
  15020. lt_prog_compiler_wl_CXX='-Wl,'
  15021. # Make sure the PIC flag is empty. It appears that all Alpha
  15022. # Linux and Compaq Tru64 Unix objects are PIC.
  15023. lt_prog_compiler_pic_CXX=
  15024. lt_prog_compiler_static_CXX='-non_shared'
  15025. ;;
  15026. *)
  15027. ;;
  15028. esac
  15029. ;;
  15030. psos*)
  15031. ;;
  15032. solaris*)
  15033. case $cc_basename in
  15034. CC* | sunCC*)
  15035. # Sun C++ 4.2, 5.x and Centerline C++
  15036. lt_prog_compiler_pic_CXX='-KPIC'
  15037. lt_prog_compiler_static_CXX='-Bstatic'
  15038. lt_prog_compiler_wl_CXX='-Qoption ld '
  15039. ;;
  15040. gcx*)
  15041. # Green Hills C++ Compiler
  15042. lt_prog_compiler_pic_CXX='-PIC'
  15043. ;;
  15044. *)
  15045. ;;
  15046. esac
  15047. ;;
  15048. sunos4*)
  15049. case $cc_basename in
  15050. CC*)
  15051. # Sun C++ 4.x
  15052. lt_prog_compiler_pic_CXX='-pic'
  15053. lt_prog_compiler_static_CXX='-Bstatic'
  15054. ;;
  15055. lcc*)
  15056. # Lucid
  15057. lt_prog_compiler_pic_CXX='-pic'
  15058. ;;
  15059. *)
  15060. ;;
  15061. esac
  15062. ;;
  15063. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  15064. case $cc_basename in
  15065. CC*)
  15066. lt_prog_compiler_wl_CXX='-Wl,'
  15067. lt_prog_compiler_pic_CXX='-KPIC'
  15068. lt_prog_compiler_static_CXX='-Bstatic'
  15069. ;;
  15070. esac
  15071. ;;
  15072. tandem*)
  15073. case $cc_basename in
  15074. NCC*)
  15075. # NonStop-UX NCC 3.20
  15076. lt_prog_compiler_pic_CXX='-KPIC'
  15077. ;;
  15078. *)
  15079. ;;
  15080. esac
  15081. ;;
  15082. vxworks*)
  15083. ;;
  15084. *)
  15085. lt_prog_compiler_can_build_shared_CXX=no
  15086. ;;
  15087. esac
  15088. fi
  15089. case $host_os in
  15090. # For platforms that do not support PIC, -DPIC is meaningless:
  15091. *djgpp*)
  15092. lt_prog_compiler_pic_CXX=
  15093. ;;
  15094. *)
  15095. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  15096. ;;
  15097. esac
  15098. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  15099. printf %s "checking for $compiler option to produce PIC... " >&6; }
  15100. if test ${lt_cv_prog_compiler_pic_CXX+y}
  15101. then :
  15102. printf %s "(cached) " >&6
  15103. else $as_nop
  15104. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  15105. fi
  15106. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  15107. printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
  15108. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  15109. #
  15110. # Check to make sure the PIC flag actually works.
  15111. #
  15112. if test -n "$lt_prog_compiler_pic_CXX"; then
  15113. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  15114. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  15115. if test ${lt_cv_prog_compiler_pic_works_CXX+y}
  15116. then :
  15117. printf %s "(cached) " >&6
  15118. else $as_nop
  15119. lt_cv_prog_compiler_pic_works_CXX=no
  15120. ac_outfile=conftest.$ac_objext
  15121. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  15122. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  15123. # Insert the option either (1) after the last *FLAGS variable, or
  15124. # (2) before a word containing "conftest.", or (3) at the end.
  15125. # Note that $ac_compile itself does not contain backslashes and begins
  15126. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15127. # The option is referenced via a variable to avoid confusing sed.
  15128. lt_compile=`echo "$ac_compile" | $SED \
  15129. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  15130. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15131. -e 's:$: $lt_compiler_flag:'`
  15132. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  15133. (eval "$lt_compile" 2>conftest.err)
  15134. ac_status=$?
  15135. cat conftest.err >&5
  15136. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15137. if (exit $ac_status) && test -s "$ac_outfile"; then
  15138. # The compiler can only warn and ignore the option if not recognized
  15139. # So say no if there are warnings other than the usual output.
  15140. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  15141. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  15142. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  15143. lt_cv_prog_compiler_pic_works_CXX=yes
  15144. fi
  15145. fi
  15146. $RM conftest*
  15147. fi
  15148. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  15149. printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  15150. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  15151. case $lt_prog_compiler_pic_CXX in
  15152. "" | " "*) ;;
  15153. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  15154. esac
  15155. else
  15156. lt_prog_compiler_pic_CXX=
  15157. lt_prog_compiler_can_build_shared_CXX=no
  15158. fi
  15159. fi
  15160. #
  15161. # Check to make sure the static flag actually works.
  15162. #
  15163. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  15164. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  15165. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  15166. if test ${lt_cv_prog_compiler_static_works_CXX+y}
  15167. then :
  15168. printf %s "(cached) " >&6
  15169. else $as_nop
  15170. lt_cv_prog_compiler_static_works_CXX=no
  15171. save_LDFLAGS=$LDFLAGS
  15172. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  15173. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  15174. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  15175. # The linker can only warn and ignore the option if not recognized
  15176. # So say no if there are warnings
  15177. if test -s conftest.err; then
  15178. # Append any errors to the config.log.
  15179. cat conftest.err 1>&5
  15180. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  15181. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  15182. if diff conftest.exp conftest.er2 >/dev/null; then
  15183. lt_cv_prog_compiler_static_works_CXX=yes
  15184. fi
  15185. else
  15186. lt_cv_prog_compiler_static_works_CXX=yes
  15187. fi
  15188. fi
  15189. $RM -r conftest*
  15190. LDFLAGS=$save_LDFLAGS
  15191. fi
  15192. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  15193. printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  15194. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  15195. :
  15196. else
  15197. lt_prog_compiler_static_CXX=
  15198. fi
  15199. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  15200. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  15201. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  15202. then :
  15203. printf %s "(cached) " >&6
  15204. else $as_nop
  15205. lt_cv_prog_compiler_c_o_CXX=no
  15206. $RM -r conftest 2>/dev/null
  15207. mkdir conftest
  15208. cd conftest
  15209. mkdir out
  15210. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  15211. lt_compiler_flag="-o out/conftest2.$ac_objext"
  15212. # Insert the option either (1) after the last *FLAGS variable, or
  15213. # (2) before a word containing "conftest.", or (3) at the end.
  15214. # Note that $ac_compile itself does not contain backslashes and begins
  15215. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15216. lt_compile=`echo "$ac_compile" | $SED \
  15217. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  15218. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15219. -e 's:$: $lt_compiler_flag:'`
  15220. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  15221. (eval "$lt_compile" 2>out/conftest.err)
  15222. ac_status=$?
  15223. cat out/conftest.err >&5
  15224. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15225. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  15226. then
  15227. # The compiler can only warn and ignore the option if not recognized
  15228. # So say no if there are warnings
  15229. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  15230. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  15231. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  15232. lt_cv_prog_compiler_c_o_CXX=yes
  15233. fi
  15234. fi
  15235. chmod u+w . 2>&5
  15236. $RM conftest*
  15237. # SGI C++ compiler will create directory out/ii_files/ for
  15238. # template instantiation
  15239. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  15240. $RM out/* && rmdir out
  15241. cd ..
  15242. $RM -r conftest
  15243. $RM conftest*
  15244. fi
  15245. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  15246. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  15247. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  15248. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  15249. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  15250. then :
  15251. printf %s "(cached) " >&6
  15252. else $as_nop
  15253. lt_cv_prog_compiler_c_o_CXX=no
  15254. $RM -r conftest 2>/dev/null
  15255. mkdir conftest
  15256. cd conftest
  15257. mkdir out
  15258. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  15259. lt_compiler_flag="-o out/conftest2.$ac_objext"
  15260. # Insert the option either (1) after the last *FLAGS variable, or
  15261. # (2) before a word containing "conftest.", or (3) at the end.
  15262. # Note that $ac_compile itself does not contain backslashes and begins
  15263. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15264. lt_compile=`echo "$ac_compile" | $SED \
  15265. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  15266. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15267. -e 's:$: $lt_compiler_flag:'`
  15268. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  15269. (eval "$lt_compile" 2>out/conftest.err)
  15270. ac_status=$?
  15271. cat out/conftest.err >&5
  15272. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15273. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  15274. then
  15275. # The compiler can only warn and ignore the option if not recognized
  15276. # So say no if there are warnings
  15277. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  15278. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  15279. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  15280. lt_cv_prog_compiler_c_o_CXX=yes
  15281. fi
  15282. fi
  15283. chmod u+w . 2>&5
  15284. $RM conftest*
  15285. # SGI C++ compiler will create directory out/ii_files/ for
  15286. # template instantiation
  15287. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  15288. $RM out/* && rmdir out
  15289. cd ..
  15290. $RM -r conftest
  15291. $RM conftest*
  15292. fi
  15293. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  15294. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  15295. hard_links=nottested
  15296. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  15297. # do not overwrite the value of need_locks provided by the user
  15298. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  15299. printf %s "checking if we can lock with hard links... " >&6; }
  15300. hard_links=yes
  15301. $RM conftest*
  15302. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  15303. touch conftest.a
  15304. ln conftest.a conftest.b 2>&5 || hard_links=no
  15305. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  15306. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  15307. printf "%s\n" "$hard_links" >&6; }
  15308. if test no = "$hard_links"; then
  15309. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  15310. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  15311. need_locks=warn
  15312. fi
  15313. else
  15314. need_locks=no
  15315. fi
  15316. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  15317. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  15318. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  15319. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  15320. case $host_os in
  15321. aix[4-9]*)
  15322. # If we're using GNU nm, then we don't want the "-C" option.
  15323. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  15324. # Without the "-l" option, or with the "-B" option, AIX nm treats
  15325. # weak defined symbols like other global defined symbols, whereas
  15326. # GNU nm marks them as "W".
  15327. # While the 'weak' keyword is ignored in the Export File, we need
  15328. # it in the Import File for the 'aix-soname' feature, so we have
  15329. # to replace the "-B" option with "-P" for AIX nm.
  15330. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  15331. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  15332. else
  15333. export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  15334. fi
  15335. ;;
  15336. pw32*)
  15337. export_symbols_cmds_CXX=$ltdll_cmds
  15338. ;;
  15339. cygwin* | mingw* | cegcc*)
  15340. case $cc_basename in
  15341. cl*)
  15342. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  15343. ;;
  15344. *)
  15345. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  15346. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  15347. ;;
  15348. esac
  15349. ;;
  15350. linux* | k*bsd*-gnu | gnu*)
  15351. link_all_deplibs_CXX=no
  15352. ;;
  15353. *)
  15354. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  15355. ;;
  15356. esac
  15357. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  15358. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  15359. test no = "$ld_shlibs_CXX" && can_build_shared=no
  15360. with_gnu_ld_CXX=$with_gnu_ld
  15361. #
  15362. # Do we need to explicitly link libc?
  15363. #
  15364. case "x$archive_cmds_need_lc_CXX" in
  15365. x|xyes)
  15366. # Assume -lc should be added
  15367. archive_cmds_need_lc_CXX=yes
  15368. if test yes,yes = "$GCC,$enable_shared"; then
  15369. case $archive_cmds_CXX in
  15370. *'~'*)
  15371. # FIXME: we may have to deal with multi-command sequences.
  15372. ;;
  15373. '$CC '*)
  15374. # Test whether the compiler implicitly links with -lc since on some
  15375. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  15376. # to ld, don't add -lc before -lgcc.
  15377. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  15378. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  15379. if test ${lt_cv_archive_cmds_need_lc_CXX+y}
  15380. then :
  15381. printf %s "(cached) " >&6
  15382. else $as_nop
  15383. $RM conftest*
  15384. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  15385. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  15386. (eval $ac_compile) 2>&5
  15387. ac_status=$?
  15388. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15389. test $ac_status = 0; } 2>conftest.err; then
  15390. soname=conftest
  15391. lib=conftest
  15392. libobjs=conftest.$ac_objext
  15393. deplibs=
  15394. wl=$lt_prog_compiler_wl_CXX
  15395. pic_flag=$lt_prog_compiler_pic_CXX
  15396. compiler_flags=-v
  15397. linker_flags=-v
  15398. verstring=
  15399. output_objdir=.
  15400. libname=conftest
  15401. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  15402. allow_undefined_flag_CXX=
  15403. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  15404. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  15405. ac_status=$?
  15406. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15407. test $ac_status = 0; }
  15408. then
  15409. lt_cv_archive_cmds_need_lc_CXX=no
  15410. else
  15411. lt_cv_archive_cmds_need_lc_CXX=yes
  15412. fi
  15413. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  15414. else
  15415. cat conftest.err 1>&5
  15416. fi
  15417. $RM conftest*
  15418. fi
  15419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  15420. printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  15421. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  15422. ;;
  15423. esac
  15424. fi
  15425. ;;
  15426. esac
  15427. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  15428. printf %s "checking dynamic linker characteristics... " >&6; }
  15429. library_names_spec=
  15430. libname_spec='lib$name'
  15431. soname_spec=
  15432. shrext_cmds=.so
  15433. postinstall_cmds=
  15434. postuninstall_cmds=
  15435. finish_cmds=
  15436. finish_eval=
  15437. shlibpath_var=
  15438. shlibpath_overrides_runpath=unknown
  15439. version_type=none
  15440. dynamic_linker="$host_os ld.so"
  15441. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  15442. need_lib_prefix=unknown
  15443. hardcode_into_libs=no
  15444. # when you set need_version to no, make sure it does not cause -set_version
  15445. # flags to be left without arguments
  15446. need_version=unknown
  15447. case $host_os in
  15448. aix3*)
  15449. version_type=linux # correct to gnu/linux during the next big refactor
  15450. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  15451. shlibpath_var=LIBPATH
  15452. # AIX 3 has no versioning support, so we append a major version to the name.
  15453. soname_spec='$libname$release$shared_ext$major'
  15454. ;;
  15455. aix[4-9]*)
  15456. version_type=linux # correct to gnu/linux during the next big refactor
  15457. need_lib_prefix=no
  15458. need_version=no
  15459. hardcode_into_libs=yes
  15460. if test ia64 = "$host_cpu"; then
  15461. # AIX 5 supports IA64
  15462. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  15463. shlibpath_var=LD_LIBRARY_PATH
  15464. else
  15465. # With GCC up to 2.95.x, collect2 would create an import file
  15466. # for dependence libraries. The import file would start with
  15467. # the line '#! .'. This would cause the generated library to
  15468. # depend on '.', always an invalid library. This was fixed in
  15469. # development snapshots of GCC prior to 3.0.
  15470. case $host_os in
  15471. aix4 | aix4.[01] | aix4.[01].*)
  15472. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  15473. echo ' yes '
  15474. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  15475. :
  15476. else
  15477. can_build_shared=no
  15478. fi
  15479. ;;
  15480. esac
  15481. # Using Import Files as archive members, it is possible to support
  15482. # filename-based versioning of shared library archives on AIX. While
  15483. # this would work for both with and without runtime linking, it will
  15484. # prevent static linking of such archives. So we do filename-based
  15485. # shared library versioning with .so extension only, which is used
  15486. # when both runtime linking and shared linking is enabled.
  15487. # Unfortunately, runtime linking may impact performance, so we do
  15488. # not want this to be the default eventually. Also, we use the
  15489. # versioned .so libs for executables only if there is the -brtl
  15490. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  15491. # To allow for filename-based versioning support, we need to create
  15492. # libNAME.so.V as an archive file, containing:
  15493. # *) an Import File, referring to the versioned filename of the
  15494. # archive as well as the shared archive member, telling the
  15495. # bitwidth (32 or 64) of that shared object, and providing the
  15496. # list of exported symbols of that shared object, eventually
  15497. # decorated with the 'weak' keyword
  15498. # *) the shared object with the F_LOADONLY flag set, to really avoid
  15499. # it being seen by the linker.
  15500. # At run time we better use the real file rather than another symlink,
  15501. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  15502. case $with_aix_soname,$aix_use_runtimelinking in
  15503. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  15504. # soname into executable. Probably we can add versioning support to
  15505. # collect2, so additional links can be useful in future.
  15506. aix,yes) # traditional libtool
  15507. dynamic_linker='AIX unversionable lib.so'
  15508. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  15509. # instead of lib<name>.a to let people know that these are not
  15510. # typical AIX shared libraries.
  15511. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15512. ;;
  15513. aix,no) # traditional AIX only
  15514. dynamic_linker='AIX lib.a(lib.so.V)'
  15515. # We preserve .a as extension for shared libraries through AIX4.2
  15516. # and later when we are not doing run time linking.
  15517. library_names_spec='$libname$release.a $libname.a'
  15518. soname_spec='$libname$release$shared_ext$major'
  15519. ;;
  15520. svr4,*) # full svr4 only
  15521. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  15522. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  15523. # We do not specify a path in Import Files, so LIBPATH fires.
  15524. shlibpath_overrides_runpath=yes
  15525. ;;
  15526. *,yes) # both, prefer svr4
  15527. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  15528. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  15529. # unpreferred sharedlib libNAME.a needs extra handling
  15530. 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"'
  15531. 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"'
  15532. # We do not specify a path in Import Files, so LIBPATH fires.
  15533. shlibpath_overrides_runpath=yes
  15534. ;;
  15535. *,no) # both, prefer aix
  15536. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  15537. library_names_spec='$libname$release.a $libname.a'
  15538. soname_spec='$libname$release$shared_ext$major'
  15539. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  15540. 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)'
  15541. 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"'
  15542. ;;
  15543. esac
  15544. shlibpath_var=LIBPATH
  15545. fi
  15546. ;;
  15547. amigaos*)
  15548. case $host_cpu in
  15549. powerpc)
  15550. # Since July 2007 AmigaOS4 officially supports .so libraries.
  15551. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  15552. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15553. ;;
  15554. m68k)
  15555. library_names_spec='$libname.ixlibrary $libname.a'
  15556. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  15557. 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'
  15558. ;;
  15559. esac
  15560. ;;
  15561. beos*)
  15562. library_names_spec='$libname$shared_ext'
  15563. dynamic_linker="$host_os ld.so"
  15564. shlibpath_var=LIBRARY_PATH
  15565. ;;
  15566. bsdi[45]*)
  15567. version_type=linux # correct to gnu/linux during the next big refactor
  15568. need_version=no
  15569. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15570. soname_spec='$libname$release$shared_ext$major'
  15571. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  15572. shlibpath_var=LD_LIBRARY_PATH
  15573. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  15574. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  15575. # the default ld.so.conf also contains /usr/contrib/lib and
  15576. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  15577. # libtool to hard-code these into programs
  15578. ;;
  15579. cygwin* | mingw* | pw32* | cegcc*)
  15580. version_type=windows
  15581. shrext_cmds=.dll
  15582. need_version=no
  15583. need_lib_prefix=no
  15584. case $GCC,$cc_basename in
  15585. yes,*)
  15586. # gcc
  15587. library_names_spec='$libname.dll.a'
  15588. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  15589. postinstall_cmds='base_file=`basename \$file`~
  15590. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  15591. dldir=$destdir/`dirname \$dlpath`~
  15592. test -d \$dldir || mkdir -p \$dldir~
  15593. $install_prog $dir/$dlname \$dldir/$dlname~
  15594. chmod a+x \$dldir/$dlname~
  15595. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  15596. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  15597. fi'
  15598. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  15599. dlpath=$dir/\$dldll~
  15600. $RM \$dlpath'
  15601. shlibpath_overrides_runpath=yes
  15602. case $host_os in
  15603. cygwin*)
  15604. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  15605. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  15606. ;;
  15607. mingw* | cegcc*)
  15608. # MinGW DLLs use traditional 'lib' prefix
  15609. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  15610. ;;
  15611. pw32*)
  15612. # pw32 DLLs use 'pw' prefix rather than 'lib'
  15613. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  15614. ;;
  15615. esac
  15616. dynamic_linker='Win32 ld.exe'
  15617. ;;
  15618. *,cl*)
  15619. # Native MSVC
  15620. libname_spec='$name'
  15621. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  15622. library_names_spec='$libname.dll.lib'
  15623. case $build_os in
  15624. mingw*)
  15625. sys_lib_search_path_spec=
  15626. lt_save_ifs=$IFS
  15627. IFS=';'
  15628. for lt_path in $LIB
  15629. do
  15630. IFS=$lt_save_ifs
  15631. # Let DOS variable expansion print the short 8.3 style file name.
  15632. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  15633. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  15634. done
  15635. IFS=$lt_save_ifs
  15636. # Convert to MSYS style.
  15637. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  15638. ;;
  15639. cygwin*)
  15640. # Convert to unix form, then to dos form, then back to unix form
  15641. # but this time dos style (no spaces!) so that the unix form looks
  15642. # like /cygdrive/c/PROGRA~1:/cygdr...
  15643. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  15644. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  15645. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  15646. ;;
  15647. *)
  15648. sys_lib_search_path_spec=$LIB
  15649. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  15650. # It is most probably a Windows format PATH.
  15651. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  15652. else
  15653. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  15654. fi
  15655. # FIXME: find the short name or the path components, as spaces are
  15656. # common. (e.g. "Program Files" -> "PROGRA~1")
  15657. ;;
  15658. esac
  15659. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  15660. postinstall_cmds='base_file=`basename \$file`~
  15661. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  15662. dldir=$destdir/`dirname \$dlpath`~
  15663. test -d \$dldir || mkdir -p \$dldir~
  15664. $install_prog $dir/$dlname \$dldir/$dlname'
  15665. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  15666. dlpath=$dir/\$dldll~
  15667. $RM \$dlpath'
  15668. shlibpath_overrides_runpath=yes
  15669. dynamic_linker='Win32 link.exe'
  15670. ;;
  15671. *)
  15672. # Assume MSVC wrapper
  15673. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  15674. dynamic_linker='Win32 ld.exe'
  15675. ;;
  15676. esac
  15677. # FIXME: first we should search . and the directory the executable is in
  15678. shlibpath_var=PATH
  15679. ;;
  15680. darwin* | rhapsody*)
  15681. dynamic_linker="$host_os dyld"
  15682. version_type=darwin
  15683. need_lib_prefix=no
  15684. need_version=no
  15685. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  15686. soname_spec='$libname$release$major$shared_ext'
  15687. shlibpath_overrides_runpath=yes
  15688. shlibpath_var=DYLD_LIBRARY_PATH
  15689. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  15690. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  15691. ;;
  15692. dgux*)
  15693. version_type=linux # correct to gnu/linux during the next big refactor
  15694. need_lib_prefix=no
  15695. need_version=no
  15696. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15697. soname_spec='$libname$release$shared_ext$major'
  15698. shlibpath_var=LD_LIBRARY_PATH
  15699. ;;
  15700. freebsd* | dragonfly*)
  15701. # DragonFly does not have aout. When/if they implement a new
  15702. # versioning mechanism, adjust this.
  15703. if test -x /usr/bin/objformat; then
  15704. objformat=`/usr/bin/objformat`
  15705. else
  15706. case $host_os in
  15707. freebsd[23].*) objformat=aout ;;
  15708. *) objformat=elf ;;
  15709. esac
  15710. fi
  15711. version_type=freebsd-$objformat
  15712. case $version_type in
  15713. freebsd-elf*)
  15714. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15715. soname_spec='$libname$release$shared_ext$major'
  15716. need_version=no
  15717. need_lib_prefix=no
  15718. ;;
  15719. freebsd-*)
  15720. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15721. need_version=yes
  15722. ;;
  15723. esac
  15724. shlibpath_var=LD_LIBRARY_PATH
  15725. case $host_os in
  15726. freebsd2.*)
  15727. shlibpath_overrides_runpath=yes
  15728. ;;
  15729. freebsd3.[01]* | freebsdelf3.[01]*)
  15730. shlibpath_overrides_runpath=yes
  15731. hardcode_into_libs=yes
  15732. ;;
  15733. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  15734. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  15735. shlibpath_overrides_runpath=no
  15736. hardcode_into_libs=yes
  15737. ;;
  15738. *) # from 4.6 on, and DragonFly
  15739. shlibpath_overrides_runpath=yes
  15740. hardcode_into_libs=yes
  15741. ;;
  15742. esac
  15743. ;;
  15744. haiku*)
  15745. version_type=linux # correct to gnu/linux during the next big refactor
  15746. need_lib_prefix=no
  15747. need_version=no
  15748. dynamic_linker="$host_os runtime_loader"
  15749. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15750. soname_spec='$libname$release$shared_ext$major'
  15751. shlibpath_var=LIBRARY_PATH
  15752. shlibpath_overrides_runpath=no
  15753. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  15754. hardcode_into_libs=yes
  15755. ;;
  15756. hpux9* | hpux10* | hpux11*)
  15757. # Give a soname corresponding to the major version so that dld.sl refuses to
  15758. # link against other versions.
  15759. version_type=sunos
  15760. need_lib_prefix=no
  15761. need_version=no
  15762. case $host_cpu in
  15763. ia64*)
  15764. shrext_cmds='.so'
  15765. hardcode_into_libs=yes
  15766. dynamic_linker="$host_os dld.so"
  15767. shlibpath_var=LD_LIBRARY_PATH
  15768. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15769. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15770. soname_spec='$libname$release$shared_ext$major'
  15771. if test 32 = "$HPUX_IA64_MODE"; then
  15772. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  15773. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  15774. else
  15775. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  15776. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  15777. fi
  15778. ;;
  15779. hppa*64*)
  15780. shrext_cmds='.sl'
  15781. hardcode_into_libs=yes
  15782. dynamic_linker="$host_os dld.sl"
  15783. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  15784. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15785. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15786. soname_spec='$libname$release$shared_ext$major'
  15787. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  15788. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15789. ;;
  15790. *)
  15791. shrext_cmds='.sl'
  15792. dynamic_linker="$host_os dld.sl"
  15793. shlibpath_var=SHLIB_PATH
  15794. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  15795. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15796. soname_spec='$libname$release$shared_ext$major'
  15797. ;;
  15798. esac
  15799. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  15800. postinstall_cmds='chmod 555 $lib'
  15801. # or fails outright, so override atomically:
  15802. install_override_mode=555
  15803. ;;
  15804. interix[3-9]*)
  15805. version_type=linux # correct to gnu/linux during the next big refactor
  15806. need_lib_prefix=no
  15807. need_version=no
  15808. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15809. soname_spec='$libname$release$shared_ext$major'
  15810. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  15811. shlibpath_var=LD_LIBRARY_PATH
  15812. shlibpath_overrides_runpath=no
  15813. hardcode_into_libs=yes
  15814. ;;
  15815. irix5* | irix6* | nonstopux*)
  15816. case $host_os in
  15817. nonstopux*) version_type=nonstopux ;;
  15818. *)
  15819. if test yes = "$lt_cv_prog_gnu_ld"; then
  15820. version_type=linux # correct to gnu/linux during the next big refactor
  15821. else
  15822. version_type=irix
  15823. fi ;;
  15824. esac
  15825. need_lib_prefix=no
  15826. need_version=no
  15827. soname_spec='$libname$release$shared_ext$major'
  15828. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  15829. case $host_os in
  15830. irix5* | nonstopux*)
  15831. libsuff= shlibsuff=
  15832. ;;
  15833. *)
  15834. case $LD in # libtool.m4 will add one of these switches to LD
  15835. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  15836. libsuff= shlibsuff= libmagic=32-bit;;
  15837. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  15838. libsuff=32 shlibsuff=N32 libmagic=N32;;
  15839. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  15840. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  15841. *) libsuff= shlibsuff= libmagic=never-match;;
  15842. esac
  15843. ;;
  15844. esac
  15845. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  15846. shlibpath_overrides_runpath=no
  15847. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  15848. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  15849. hardcode_into_libs=yes
  15850. ;;
  15851. # No shared lib support for Linux oldld, aout, or coff.
  15852. linux*oldld* | linux*aout* | linux*coff*)
  15853. dynamic_linker=no
  15854. ;;
  15855. linux*android*)
  15856. version_type=none # Android doesn't support versioned libraries.
  15857. need_lib_prefix=no
  15858. need_version=no
  15859. library_names_spec='$libname$release$shared_ext'
  15860. soname_spec='$libname$release$shared_ext'
  15861. finish_cmds=
  15862. shlibpath_var=LD_LIBRARY_PATH
  15863. shlibpath_overrides_runpath=yes
  15864. # This implies no fast_install, which is unacceptable.
  15865. # Some rework will be needed to allow for fast_install
  15866. # before this can be enabled.
  15867. hardcode_into_libs=yes
  15868. dynamic_linker='Android linker'
  15869. # Don't embed -rpath directories since the linker doesn't support them.
  15870. hardcode_libdir_flag_spec_CXX='-L$libdir'
  15871. ;;
  15872. # This must be glibc/ELF.
  15873. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  15874. version_type=linux # correct to gnu/linux during the next big refactor
  15875. need_lib_prefix=no
  15876. need_version=no
  15877. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15878. soname_spec='$libname$release$shared_ext$major'
  15879. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  15880. shlibpath_var=LD_LIBRARY_PATH
  15881. shlibpath_overrides_runpath=no
  15882. # Some binutils ld are patched to set DT_RUNPATH
  15883. if test ${lt_cv_shlibpath_overrides_runpath+y}
  15884. then :
  15885. printf %s "(cached) " >&6
  15886. else $as_nop
  15887. lt_cv_shlibpath_overrides_runpath=no
  15888. save_LDFLAGS=$LDFLAGS
  15889. save_libdir=$libdir
  15890. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  15891. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  15892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15893. /* end confdefs.h. */
  15894. int
  15895. main (void)
  15896. {
  15897. ;
  15898. return 0;
  15899. }
  15900. _ACEOF
  15901. if ac_fn_cxx_try_link "$LINENO"
  15902. then :
  15903. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  15904. then :
  15905. lt_cv_shlibpath_overrides_runpath=yes
  15906. fi
  15907. fi
  15908. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  15909. conftest$ac_exeext conftest.$ac_ext
  15910. LDFLAGS=$save_LDFLAGS
  15911. libdir=$save_libdir
  15912. fi
  15913. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  15914. # This implies no fast_install, which is unacceptable.
  15915. # Some rework will be needed to allow for fast_install
  15916. # before this can be enabled.
  15917. hardcode_into_libs=yes
  15918. # Ideally, we could use ldconfig to report *all* directores which are
  15919. # searched for libraries, however this is still not possible. Aside from not
  15920. # being certain /sbin/ldconfig is available, command
  15921. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  15922. # even though it is searched at run-time. Try to do the best guess by
  15923. # appending ld.so.conf contents (and includes) to the search path.
  15924. if test -f /etc/ld.so.conf; then
  15925. 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' ' '`
  15926. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  15927. fi
  15928. # We used to test for /lib/ld.so.1 and disable shared libraries on
  15929. # powerpc, because MkLinux only supported shared libraries with the
  15930. # GNU dynamic linker. Since this was broken with cross compilers,
  15931. # most powerpc-linux boxes support dynamic linking these days and
  15932. # people can always --disable-shared, the test was removed, and we
  15933. # assume the GNU/Linux dynamic linker is in use.
  15934. dynamic_linker='GNU/Linux ld.so'
  15935. ;;
  15936. netbsdelf*-gnu)
  15937. version_type=linux
  15938. need_lib_prefix=no
  15939. need_version=no
  15940. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15941. soname_spec='${libname}${release}${shared_ext}$major'
  15942. shlibpath_var=LD_LIBRARY_PATH
  15943. shlibpath_overrides_runpath=no
  15944. hardcode_into_libs=yes
  15945. dynamic_linker='NetBSD ld.elf_so'
  15946. ;;
  15947. netbsd*)
  15948. version_type=sunos
  15949. need_lib_prefix=no
  15950. need_version=no
  15951. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  15952. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15953. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15954. dynamic_linker='NetBSD (a.out) ld.so'
  15955. else
  15956. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15957. soname_spec='$libname$release$shared_ext$major'
  15958. dynamic_linker='NetBSD ld.elf_so'
  15959. fi
  15960. shlibpath_var=LD_LIBRARY_PATH
  15961. shlibpath_overrides_runpath=yes
  15962. hardcode_into_libs=yes
  15963. ;;
  15964. newsos6)
  15965. version_type=linux # correct to gnu/linux during the next big refactor
  15966. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15967. shlibpath_var=LD_LIBRARY_PATH
  15968. shlibpath_overrides_runpath=yes
  15969. ;;
  15970. *nto* | *qnx*)
  15971. version_type=qnx
  15972. need_lib_prefix=no
  15973. need_version=no
  15974. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15975. soname_spec='$libname$release$shared_ext$major'
  15976. shlibpath_var=LD_LIBRARY_PATH
  15977. shlibpath_overrides_runpath=no
  15978. hardcode_into_libs=yes
  15979. dynamic_linker='ldqnx.so'
  15980. ;;
  15981. openbsd* | bitrig*)
  15982. version_type=sunos
  15983. sys_lib_dlsearch_path_spec=/usr/lib
  15984. need_lib_prefix=no
  15985. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  15986. need_version=no
  15987. else
  15988. need_version=yes
  15989. fi
  15990. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15991. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15992. shlibpath_var=LD_LIBRARY_PATH
  15993. shlibpath_overrides_runpath=yes
  15994. ;;
  15995. os2*)
  15996. libname_spec='$name'
  15997. version_type=windows
  15998. shrext_cmds=.dll
  15999. need_version=no
  16000. need_lib_prefix=no
  16001. # OS/2 can only load a DLL with a base name of 8 characters or less.
  16002. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  16003. v=$($ECHO $release$versuffix | tr -d .-);
  16004. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  16005. $ECHO $n$v`$shared_ext'
  16006. library_names_spec='${libname}_dll.$libext'
  16007. dynamic_linker='OS/2 ld.exe'
  16008. shlibpath_var=BEGINLIBPATH
  16009. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  16010. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  16011. postinstall_cmds='base_file=`basename \$file`~
  16012. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  16013. dldir=$destdir/`dirname \$dlpath`~
  16014. test -d \$dldir || mkdir -p \$dldir~
  16015. $install_prog $dir/$dlname \$dldir/$dlname~
  16016. chmod a+x \$dldir/$dlname~
  16017. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  16018. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  16019. fi'
  16020. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  16021. dlpath=$dir/\$dldll~
  16022. $RM \$dlpath'
  16023. ;;
  16024. osf3* | osf4* | osf5*)
  16025. version_type=osf
  16026. need_lib_prefix=no
  16027. need_version=no
  16028. soname_spec='$libname$release$shared_ext$major'
  16029. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  16030. shlibpath_var=LD_LIBRARY_PATH
  16031. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  16032. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  16033. ;;
  16034. rdos*)
  16035. dynamic_linker=no
  16036. ;;
  16037. solaris*)
  16038. version_type=linux # correct to gnu/linux during the next big refactor
  16039. need_lib_prefix=no
  16040. need_version=no
  16041. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  16042. soname_spec='$libname$release$shared_ext$major'
  16043. shlibpath_var=LD_LIBRARY_PATH
  16044. shlibpath_overrides_runpath=yes
  16045. hardcode_into_libs=yes
  16046. # ldd complains unless libraries are executable
  16047. postinstall_cmds='chmod +x $lib'
  16048. ;;
  16049. sunos4*)
  16050. version_type=sunos
  16051. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  16052. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  16053. shlibpath_var=LD_LIBRARY_PATH
  16054. shlibpath_overrides_runpath=yes
  16055. if test yes = "$with_gnu_ld"; then
  16056. need_lib_prefix=no
  16057. fi
  16058. need_version=yes
  16059. ;;
  16060. sysv4 | sysv4.3*)
  16061. version_type=linux # correct to gnu/linux during the next big refactor
  16062. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  16063. soname_spec='$libname$release$shared_ext$major'
  16064. shlibpath_var=LD_LIBRARY_PATH
  16065. case $host_vendor in
  16066. sni)
  16067. shlibpath_overrides_runpath=no
  16068. need_lib_prefix=no
  16069. runpath_var=LD_RUN_PATH
  16070. ;;
  16071. siemens)
  16072. need_lib_prefix=no
  16073. ;;
  16074. motorola)
  16075. need_lib_prefix=no
  16076. need_version=no
  16077. shlibpath_overrides_runpath=no
  16078. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  16079. ;;
  16080. esac
  16081. ;;
  16082. sysv4*MP*)
  16083. if test -d /usr/nec; then
  16084. version_type=linux # correct to gnu/linux during the next big refactor
  16085. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  16086. soname_spec='$libname$shared_ext.$major'
  16087. shlibpath_var=LD_LIBRARY_PATH
  16088. fi
  16089. ;;
  16090. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  16091. version_type=sco
  16092. need_lib_prefix=no
  16093. need_version=no
  16094. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  16095. soname_spec='$libname$release$shared_ext$major'
  16096. shlibpath_var=LD_LIBRARY_PATH
  16097. shlibpath_overrides_runpath=yes
  16098. hardcode_into_libs=yes
  16099. if test yes = "$with_gnu_ld"; then
  16100. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  16101. else
  16102. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  16103. case $host_os in
  16104. sco3.2v5*)
  16105. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  16106. ;;
  16107. esac
  16108. fi
  16109. sys_lib_dlsearch_path_spec='/usr/lib'
  16110. ;;
  16111. tpf*)
  16112. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  16113. version_type=linux # correct to gnu/linux during the next big refactor
  16114. need_lib_prefix=no
  16115. need_version=no
  16116. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  16117. shlibpath_var=LD_LIBRARY_PATH
  16118. shlibpath_overrides_runpath=no
  16119. hardcode_into_libs=yes
  16120. ;;
  16121. uts4*)
  16122. version_type=linux # correct to gnu/linux during the next big refactor
  16123. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  16124. soname_spec='$libname$release$shared_ext$major'
  16125. shlibpath_var=LD_LIBRARY_PATH
  16126. ;;
  16127. *)
  16128. dynamic_linker=no
  16129. ;;
  16130. esac
  16131. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  16132. printf "%s\n" "$dynamic_linker" >&6; }
  16133. test no = "$dynamic_linker" && can_build_shared=no
  16134. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  16135. if test yes = "$GCC"; then
  16136. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  16137. fi
  16138. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  16139. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  16140. fi
  16141. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  16142. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  16143. fi
  16144. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  16145. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  16146. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  16147. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  16148. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  16149. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  16150. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  16151. printf %s "checking how to hardcode library paths into programs... " >&6; }
  16152. hardcode_action_CXX=
  16153. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  16154. test -n "$runpath_var_CXX" ||
  16155. test yes = "$hardcode_automatic_CXX"; then
  16156. # We can hardcode non-existent directories.
  16157. if test no != "$hardcode_direct_CXX" &&
  16158. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  16159. # have to relink, otherwise we might link with an installed library
  16160. # when we should be linking with a yet-to-be-installed one
  16161. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  16162. test no != "$hardcode_minus_L_CXX"; then
  16163. # Linking always hardcodes the temporary library directory.
  16164. hardcode_action_CXX=relink
  16165. else
  16166. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  16167. hardcode_action_CXX=immediate
  16168. fi
  16169. else
  16170. # We cannot hardcode anything, or else we can only hardcode existing
  16171. # directories.
  16172. hardcode_action_CXX=unsupported
  16173. fi
  16174. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  16175. printf "%s\n" "$hardcode_action_CXX" >&6; }
  16176. if test relink = "$hardcode_action_CXX" ||
  16177. test yes = "$inherit_rpath_CXX"; then
  16178. # Fast installation is not supported
  16179. enable_fast_install=no
  16180. elif test yes = "$shlibpath_overrides_runpath" ||
  16181. test no = "$enable_shared"; then
  16182. # Fast installation is not necessary
  16183. enable_fast_install=needless
  16184. fi
  16185. fi # test -n "$compiler"
  16186. CC=$lt_save_CC
  16187. CFLAGS=$lt_save_CFLAGS
  16188. LDCXX=$LD
  16189. LD=$lt_save_LD
  16190. GCC=$lt_save_GCC
  16191. with_gnu_ld=$lt_save_with_gnu_ld
  16192. lt_cv_path_LDCXX=$lt_cv_path_LD
  16193. lt_cv_path_LD=$lt_save_path_LD
  16194. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  16195. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  16196. fi # test yes != "$_lt_caught_CXX_error"
  16197. ac_ext=c
  16198. ac_cpp='$CPP $CPPFLAGS'
  16199. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16200. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16201. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16202. ac_config_commands="$ac_config_commands libtool"
  16203. # Only expand once:
  16204. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  16205. printf %s "checking whether byte ordering is bigendian... " >&6; }
  16206. if test ${ac_cv_c_bigendian+y}
  16207. then :
  16208. printf %s "(cached) " >&6
  16209. else $as_nop
  16210. ac_cv_c_bigendian=unknown
  16211. # See if we're dealing with a universal compiler.
  16212. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16213. /* end confdefs.h. */
  16214. #ifndef __APPLE_CC__
  16215. not a universal capable compiler
  16216. #endif
  16217. typedef int dummy;
  16218. _ACEOF
  16219. if ac_fn_c_try_compile "$LINENO"
  16220. then :
  16221. # Check for potential -arch flags. It is not universal unless
  16222. # there are at least two -arch flags with different values.
  16223. ac_arch=
  16224. ac_prev=
  16225. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  16226. if test -n "$ac_prev"; then
  16227. case $ac_word in
  16228. i?86 | x86_64 | ppc | ppc64)
  16229. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  16230. ac_arch=$ac_word
  16231. else
  16232. ac_cv_c_bigendian=universal
  16233. break
  16234. fi
  16235. ;;
  16236. esac
  16237. ac_prev=
  16238. elif test "x$ac_word" = "x-arch"; then
  16239. ac_prev=arch
  16240. fi
  16241. done
  16242. fi
  16243. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16244. if test $ac_cv_c_bigendian = unknown; then
  16245. # See if sys/param.h defines the BYTE_ORDER macro.
  16246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16247. /* end confdefs.h. */
  16248. #include <sys/types.h>
  16249. #include <sys/param.h>
  16250. int
  16251. main (void)
  16252. {
  16253. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  16254. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  16255. && LITTLE_ENDIAN)
  16256. bogus endian macros
  16257. #endif
  16258. ;
  16259. return 0;
  16260. }
  16261. _ACEOF
  16262. if ac_fn_c_try_compile "$LINENO"
  16263. then :
  16264. # It does; now see whether it defined to BIG_ENDIAN or not.
  16265. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16266. /* end confdefs.h. */
  16267. #include <sys/types.h>
  16268. #include <sys/param.h>
  16269. int
  16270. main (void)
  16271. {
  16272. #if BYTE_ORDER != BIG_ENDIAN
  16273. not big endian
  16274. #endif
  16275. ;
  16276. return 0;
  16277. }
  16278. _ACEOF
  16279. if ac_fn_c_try_compile "$LINENO"
  16280. then :
  16281. ac_cv_c_bigendian=yes
  16282. else $as_nop
  16283. ac_cv_c_bigendian=no
  16284. fi
  16285. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16286. fi
  16287. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16288. fi
  16289. if test $ac_cv_c_bigendian = unknown; then
  16290. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  16291. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16292. /* end confdefs.h. */
  16293. #include <limits.h>
  16294. int
  16295. main (void)
  16296. {
  16297. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  16298. bogus endian macros
  16299. #endif
  16300. ;
  16301. return 0;
  16302. }
  16303. _ACEOF
  16304. if ac_fn_c_try_compile "$LINENO"
  16305. then :
  16306. # It does; now see whether it defined to _BIG_ENDIAN or not.
  16307. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16308. /* end confdefs.h. */
  16309. #include <limits.h>
  16310. int
  16311. main (void)
  16312. {
  16313. #ifndef _BIG_ENDIAN
  16314. not big endian
  16315. #endif
  16316. ;
  16317. return 0;
  16318. }
  16319. _ACEOF
  16320. if ac_fn_c_try_compile "$LINENO"
  16321. then :
  16322. ac_cv_c_bigendian=yes
  16323. else $as_nop
  16324. ac_cv_c_bigendian=no
  16325. fi
  16326. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16327. fi
  16328. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16329. fi
  16330. if test $ac_cv_c_bigendian = unknown; then
  16331. # Compile a test program.
  16332. if test "$cross_compiling" = yes
  16333. then :
  16334. # Try to guess by grepping values from an object file.
  16335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16336. /* end confdefs.h. */
  16337. unsigned short int ascii_mm[] =
  16338. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  16339. unsigned short int ascii_ii[] =
  16340. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  16341. int use_ascii (int i) {
  16342. return ascii_mm[i] + ascii_ii[i];
  16343. }
  16344. unsigned short int ebcdic_ii[] =
  16345. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  16346. unsigned short int ebcdic_mm[] =
  16347. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  16348. int use_ebcdic (int i) {
  16349. return ebcdic_mm[i] + ebcdic_ii[i];
  16350. }
  16351. extern int foo;
  16352. int
  16353. main (void)
  16354. {
  16355. return use_ascii (foo) == use_ebcdic (foo);
  16356. ;
  16357. return 0;
  16358. }
  16359. _ACEOF
  16360. if ac_fn_c_try_compile "$LINENO"
  16361. then :
  16362. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  16363. ac_cv_c_bigendian=yes
  16364. fi
  16365. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  16366. if test "$ac_cv_c_bigendian" = unknown; then
  16367. ac_cv_c_bigendian=no
  16368. else
  16369. # finding both strings is unlikely to happen, but who knows?
  16370. ac_cv_c_bigendian=unknown
  16371. fi
  16372. fi
  16373. fi
  16374. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16375. else $as_nop
  16376. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16377. /* end confdefs.h. */
  16378. $ac_includes_default
  16379. int
  16380. main (void)
  16381. {
  16382. /* Are we little or big endian? From Harbison&Steele. */
  16383. union
  16384. {
  16385. long int l;
  16386. char c[sizeof (long int)];
  16387. } u;
  16388. u.l = 1;
  16389. return u.c[sizeof (long int) - 1] == 1;
  16390. ;
  16391. return 0;
  16392. }
  16393. _ACEOF
  16394. if ac_fn_c_try_run "$LINENO"
  16395. then :
  16396. ac_cv_c_bigendian=no
  16397. else $as_nop
  16398. ac_cv_c_bigendian=yes
  16399. fi
  16400. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16401. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16402. fi
  16403. fi
  16404. fi
  16405. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  16406. printf "%s\n" "$ac_cv_c_bigendian" >&6; }
  16407. case $ac_cv_c_bigendian in #(
  16408. yes)
  16409. printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
  16410. ;; #(
  16411. no)
  16412. ;; #(
  16413. universal)
  16414. printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  16415. ;; #(
  16416. *)
  16417. as_fn_error $? "unknown endianness
  16418. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  16419. esac
  16420. # Check whether --enable-largefile was given.
  16421. if test ${enable_largefile+y}
  16422. then :
  16423. enableval=$enable_largefile;
  16424. fi
  16425. if test "$enable_largefile" != no; then
  16426. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  16427. printf %s "checking for special C compiler options needed for large files... " >&6; }
  16428. if test ${ac_cv_sys_largefile_CC+y}
  16429. then :
  16430. printf %s "(cached) " >&6
  16431. else $as_nop
  16432. ac_cv_sys_largefile_CC=no
  16433. if test "$GCC" != yes; then
  16434. ac_save_CC=$CC
  16435. while :; do
  16436. # IRIX 6.2 and later do not support large files by default,
  16437. # so use the C compiler's -n32 option if that helps.
  16438. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16439. /* end confdefs.h. */
  16440. #include <sys/types.h>
  16441. /* Check that off_t can represent 2**63 - 1 correctly.
  16442. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  16443. since some C++ compilers masquerading as C compilers
  16444. incorrectly reject 9223372036854775807. */
  16445. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  16446. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  16447. && LARGE_OFF_T % 2147483647 == 1)
  16448. ? 1 : -1];
  16449. int
  16450. main (void)
  16451. {
  16452. ;
  16453. return 0;
  16454. }
  16455. _ACEOF
  16456. if ac_fn_c_try_compile "$LINENO"
  16457. then :
  16458. break
  16459. fi
  16460. rm -f core conftest.err conftest.$ac_objext conftest.beam
  16461. CC="$CC -n32"
  16462. if ac_fn_c_try_compile "$LINENO"
  16463. then :
  16464. ac_cv_sys_largefile_CC=' -n32'; break
  16465. fi
  16466. rm -f core conftest.err conftest.$ac_objext conftest.beam
  16467. break
  16468. done
  16469. CC=$ac_save_CC
  16470. rm -f conftest.$ac_ext
  16471. fi
  16472. fi
  16473. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  16474. printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
  16475. if test "$ac_cv_sys_largefile_CC" != no; then
  16476. CC=$CC$ac_cv_sys_largefile_CC
  16477. fi
  16478. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  16479. printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  16480. if test ${ac_cv_sys_file_offset_bits+y}
  16481. then :
  16482. printf %s "(cached) " >&6
  16483. else $as_nop
  16484. while :; do
  16485. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16486. /* end confdefs.h. */
  16487. #include <sys/types.h>
  16488. /* Check that off_t can represent 2**63 - 1 correctly.
  16489. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  16490. since some C++ compilers masquerading as C compilers
  16491. incorrectly reject 9223372036854775807. */
  16492. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  16493. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  16494. && LARGE_OFF_T % 2147483647 == 1)
  16495. ? 1 : -1];
  16496. int
  16497. main (void)
  16498. {
  16499. ;
  16500. return 0;
  16501. }
  16502. _ACEOF
  16503. if ac_fn_c_try_compile "$LINENO"
  16504. then :
  16505. ac_cv_sys_file_offset_bits=no; break
  16506. fi
  16507. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16508. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16509. /* end confdefs.h. */
  16510. #define _FILE_OFFSET_BITS 64
  16511. #include <sys/types.h>
  16512. /* Check that off_t can represent 2**63 - 1 correctly.
  16513. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  16514. since some C++ compilers masquerading as C compilers
  16515. incorrectly reject 9223372036854775807. */
  16516. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  16517. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  16518. && LARGE_OFF_T % 2147483647 == 1)
  16519. ? 1 : -1];
  16520. int
  16521. main (void)
  16522. {
  16523. ;
  16524. return 0;
  16525. }
  16526. _ACEOF
  16527. if ac_fn_c_try_compile "$LINENO"
  16528. then :
  16529. ac_cv_sys_file_offset_bits=64; break
  16530. fi
  16531. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16532. ac_cv_sys_file_offset_bits=unknown
  16533. break
  16534. done
  16535. fi
  16536. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  16537. printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
  16538. case $ac_cv_sys_file_offset_bits in #(
  16539. no | unknown) ;;
  16540. *)
  16541. printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
  16542. ;;
  16543. esac
  16544. rm -rf conftest*
  16545. if test $ac_cv_sys_file_offset_bits = unknown; then
  16546. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  16547. printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
  16548. if test ${ac_cv_sys_large_files+y}
  16549. then :
  16550. printf %s "(cached) " >&6
  16551. else $as_nop
  16552. while :; do
  16553. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16554. /* end confdefs.h. */
  16555. #include <sys/types.h>
  16556. /* Check that off_t can represent 2**63 - 1 correctly.
  16557. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  16558. since some C++ compilers masquerading as C compilers
  16559. incorrectly reject 9223372036854775807. */
  16560. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  16561. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  16562. && LARGE_OFF_T % 2147483647 == 1)
  16563. ? 1 : -1];
  16564. int
  16565. main (void)
  16566. {
  16567. ;
  16568. return 0;
  16569. }
  16570. _ACEOF
  16571. if ac_fn_c_try_compile "$LINENO"
  16572. then :
  16573. ac_cv_sys_large_files=no; break
  16574. fi
  16575. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16576. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16577. /* end confdefs.h. */
  16578. #define _LARGE_FILES 1
  16579. #include <sys/types.h>
  16580. /* Check that off_t can represent 2**63 - 1 correctly.
  16581. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  16582. since some C++ compilers masquerading as C compilers
  16583. incorrectly reject 9223372036854775807. */
  16584. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  16585. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  16586. && LARGE_OFF_T % 2147483647 == 1)
  16587. ? 1 : -1];
  16588. int
  16589. main (void)
  16590. {
  16591. ;
  16592. return 0;
  16593. }
  16594. _ACEOF
  16595. if ac_fn_c_try_compile "$LINENO"
  16596. then :
  16597. ac_cv_sys_large_files=1; break
  16598. fi
  16599. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16600. ac_cv_sys_large_files=unknown
  16601. break
  16602. done
  16603. fi
  16604. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  16605. printf "%s\n" "$ac_cv_sys_large_files" >&6; }
  16606. case $ac_cv_sys_large_files in #(
  16607. no | unknown) ;;
  16608. *)
  16609. printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
  16610. ;;
  16611. esac
  16612. rm -rf conftest*
  16613. fi
  16614. fi
  16615. # Crypto backends
  16616. found_crypto=none
  16617. found_crypto_str=""
  16618. support_clear_memory=no
  16619. crypto_errors=""
  16620. # Check whether --with-crypto was given.
  16621. if test ${with_crypto+y}
  16622. then :
  16623. withval=$with_crypto; use_crypto=$withval
  16624. else $as_nop
  16625. use_crypto=auto
  16626. fi
  16627. case "${use_crypto}" in
  16628. auto|openssl|libgcrypt|mbedtls|wincng)
  16629. if test "X$prefix" = "XNONE"; then
  16630. acl_final_prefix="$ac_default_prefix"
  16631. else
  16632. acl_final_prefix="$prefix"
  16633. fi
  16634. if test "X$exec_prefix" = "XNONE"; then
  16635. acl_final_exec_prefix='${prefix}'
  16636. else
  16637. acl_final_exec_prefix="$exec_prefix"
  16638. fi
  16639. acl_save_prefix="$prefix"
  16640. prefix="$acl_final_prefix"
  16641. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  16642. prefix="$acl_save_prefix"
  16643. # Check whether --with-gnu-ld was given.
  16644. if test ${with_gnu_ld+y}
  16645. then :
  16646. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  16647. else $as_nop
  16648. with_gnu_ld=no
  16649. fi
  16650. # Prepare PATH_SEPARATOR.
  16651. # The user is always right.
  16652. if test "${PATH_SEPARATOR+set}" != set; then
  16653. echo "#! /bin/sh" >conf$$.sh
  16654. echo "exit 0" >>conf$$.sh
  16655. chmod +x conf$$.sh
  16656. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  16657. PATH_SEPARATOR=';'
  16658. else
  16659. PATH_SEPARATOR=:
  16660. fi
  16661. rm -f conf$$.sh
  16662. fi
  16663. ac_prog=ld
  16664. if test "$GCC" = yes; then
  16665. # Check if gcc -print-prog-name=ld gives a path.
  16666. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
  16667. printf %s "checking for ld used by GCC... " >&6; }
  16668. case $host in
  16669. *-*-mingw*)
  16670. # gcc leaves a trailing carriage return which upsets mingw
  16671. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  16672. *)
  16673. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  16674. esac
  16675. case $ac_prog in
  16676. # Accept absolute paths.
  16677. [\\/]* | [A-Za-z]:[\\/]*)
  16678. re_direlt='/[^/][^/]*/\.\./'
  16679. # Canonicalize the path of ld
  16680. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  16681. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  16682. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  16683. done
  16684. test -z "$LD" && LD="$ac_prog"
  16685. ;;
  16686. "")
  16687. # If it fails, then pretend we aren't using GCC.
  16688. ac_prog=ld
  16689. ;;
  16690. *)
  16691. # If it is relative, then search for the first ld in PATH.
  16692. with_gnu_ld=unknown
  16693. ;;
  16694. esac
  16695. elif test "$with_gnu_ld" = yes; then
  16696. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  16697. printf %s "checking for GNU ld... " >&6; }
  16698. else
  16699. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  16700. printf %s "checking for non-GNU ld... " >&6; }
  16701. fi
  16702. if test ${acl_cv_path_LD+y}
  16703. then :
  16704. printf %s "(cached) " >&6
  16705. else $as_nop
  16706. if test -z "$LD"; then
  16707. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  16708. for ac_dir in $PATH; do
  16709. test -z "$ac_dir" && ac_dir=.
  16710. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  16711. acl_cv_path_LD="$ac_dir/$ac_prog"
  16712. # Check to see if the program is GNU ld. I'd rather use --version,
  16713. # but apparently some GNU ld's only accept -v.
  16714. # Break only if it was the GNU/non-GNU ld that we prefer.
  16715. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  16716. *GNU* | *'with BFD'*)
  16717. test "$with_gnu_ld" != no && break ;;
  16718. *)
  16719. test "$with_gnu_ld" != yes && break ;;
  16720. esac
  16721. fi
  16722. done
  16723. IFS="$ac_save_ifs"
  16724. else
  16725. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  16726. fi
  16727. fi
  16728. LD="$acl_cv_path_LD"
  16729. if test -n "$LD"; then
  16730. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  16731. printf "%s\n" "$LD" >&6; }
  16732. else
  16733. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16734. printf "%s\n" "no" >&6; }
  16735. fi
  16736. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  16737. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  16738. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  16739. if test ${acl_cv_prog_gnu_ld+y}
  16740. then :
  16741. printf %s "(cached) " >&6
  16742. else $as_nop
  16743. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  16744. case `$LD -v 2>&1 </dev/null` in
  16745. *GNU* | *'with BFD'*)
  16746. acl_cv_prog_gnu_ld=yes ;;
  16747. *)
  16748. acl_cv_prog_gnu_ld=no ;;
  16749. esac
  16750. fi
  16751. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
  16752. printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
  16753. with_gnu_ld=$acl_cv_prog_gnu_ld
  16754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
  16755. printf %s "checking for shared library run path origin... " >&6; }
  16756. if test ${acl_cv_rpath+y}
  16757. then :
  16758. printf %s "(cached) " >&6
  16759. else $as_nop
  16760. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  16761. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  16762. . ./conftest.sh
  16763. rm -f ./conftest.sh
  16764. acl_cv_rpath=done
  16765. fi
  16766. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
  16767. printf "%s\n" "$acl_cv_rpath" >&6; }
  16768. wl="$acl_cv_wl"
  16769. acl_libext="$acl_cv_libext"
  16770. acl_shlibext="$acl_cv_shlibext"
  16771. acl_libname_spec="$acl_cv_libname_spec"
  16772. acl_library_names_spec="$acl_cv_library_names_spec"
  16773. acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  16774. acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  16775. acl_hardcode_direct="$acl_cv_hardcode_direct"
  16776. acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  16777. # Check whether --enable-rpath was given.
  16778. if test ${enable_rpath+y}
  16779. then :
  16780. enableval=$enable_rpath; :
  16781. else $as_nop
  16782. enable_rpath=yes
  16783. fi
  16784. acl_libdirstem=lib
  16785. searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  16786. if test -n "$searchpath"; then
  16787. acl_save_IFS="${IFS= }"; IFS=":"
  16788. for searchdir in $searchpath; do
  16789. if test -d "$searchdir"; then
  16790. case "$searchdir" in
  16791. */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  16792. *) searchdir=`cd "$searchdir" && pwd`
  16793. case "$searchdir" in
  16794. */lib64 ) acl_libdirstem=lib64 ;;
  16795. esac ;;
  16796. esac
  16797. fi
  16798. done
  16799. IFS="$acl_save_IFS"
  16800. fi
  16801. if test "$use_crypto" = "auto" && test "$found_crypto" = "none" || test "$use_crypto" = "openssl"; then
  16802. libssh2_save_CPPFLAGS="$CPPFLAGS"
  16803. libssh2_save_LDFLAGS="$LDFLAGS"
  16804. if test "${with_libssl_prefix+set}" = set; then
  16805. CPPFLAGS="$CPPFLAGS${CPPFLAGS:+ }-I${with_libssl_prefix}/include"
  16806. LDFLAGS="$LDFLAGS${LDFLAGS:+ }-L${with_libssl_prefix}/lib"
  16807. fi
  16808. use_additional=yes
  16809. acl_save_prefix="$prefix"
  16810. prefix="$acl_final_prefix"
  16811. acl_save_exec_prefix="$exec_prefix"
  16812. exec_prefix="$acl_final_exec_prefix"
  16813. eval additional_includedir=\"$includedir\"
  16814. eval additional_libdir=\"$libdir\"
  16815. exec_prefix="$acl_save_exec_prefix"
  16816. prefix="$acl_save_prefix"
  16817. # Check whether --with-libssl-prefix was given.
  16818. if test ${with_libssl_prefix+y}
  16819. then :
  16820. withval=$with_libssl_prefix;
  16821. if test "X$withval" = "Xno"; then
  16822. use_additional=no
  16823. else
  16824. if test "X$withval" = "X"; then
  16825. acl_save_prefix="$prefix"
  16826. prefix="$acl_final_prefix"
  16827. acl_save_exec_prefix="$exec_prefix"
  16828. exec_prefix="$acl_final_exec_prefix"
  16829. eval additional_includedir=\"$includedir\"
  16830. eval additional_libdir=\"$libdir\"
  16831. exec_prefix="$acl_save_exec_prefix"
  16832. prefix="$acl_save_prefix"
  16833. else
  16834. additional_includedir="$withval/include"
  16835. additional_libdir="$withval/$acl_libdirstem"
  16836. fi
  16837. fi
  16838. fi
  16839. LIBSSL=
  16840. LTLIBSSL=
  16841. INCSSL=
  16842. LIBSSL_PREFIX=
  16843. rpathdirs=
  16844. ltrpathdirs=
  16845. names_already_handled=
  16846. names_next_round='ssl crypto'
  16847. while test -n "$names_next_round"; do
  16848. names_this_round="$names_next_round"
  16849. names_next_round=
  16850. for name in $names_this_round; do
  16851. already_handled=
  16852. for n in $names_already_handled; do
  16853. if test "$n" = "$name"; then
  16854. already_handled=yes
  16855. break
  16856. fi
  16857. done
  16858. if test -z "$already_handled"; then
  16859. names_already_handled="$names_already_handled $name"
  16860. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  16861. eval value=\"\$HAVE_LIB$uppername\"
  16862. if test -n "$value"; then
  16863. if test "$value" = yes; then
  16864. eval value=\"\$LIB$uppername\"
  16865. test -z "$value" || LIBSSL="${LIBSSL}${LIBSSL:+ }$value"
  16866. eval value=\"\$LTLIB$uppername\"
  16867. test -z "$value" || LTLIBSSL="${LTLIBSSL}${LTLIBSSL:+ }$value"
  16868. else
  16869. :
  16870. fi
  16871. else
  16872. found_dir=
  16873. found_la=
  16874. found_so=
  16875. found_a=
  16876. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  16877. if test -n "$acl_shlibext"; then
  16878. shrext=".$acl_shlibext" # typically: shrext=.so
  16879. else
  16880. shrext=
  16881. fi
  16882. if test $use_additional = yes; then
  16883. dir="$additional_libdir"
  16884. if test -n "$acl_shlibext"; then
  16885. if test -f "$dir/$libname$shrext"; then
  16886. found_dir="$dir"
  16887. found_so="$dir/$libname$shrext"
  16888. else
  16889. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  16890. ver=`(cd "$dir" && \
  16891. for f in "$libname$shrext".*; do echo "$f"; done \
  16892. | sed -e "s,^$libname$shrext\\\\.,," \
  16893. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  16894. | sed 1q ) 2>/dev/null`
  16895. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  16896. found_dir="$dir"
  16897. found_so="$dir/$libname$shrext.$ver"
  16898. fi
  16899. else
  16900. eval library_names=\"$acl_library_names_spec\"
  16901. for f in $library_names; do
  16902. if test -f "$dir/$f"; then
  16903. found_dir="$dir"
  16904. found_so="$dir/$f"
  16905. break
  16906. fi
  16907. done
  16908. fi
  16909. fi
  16910. fi
  16911. if test "X$found_dir" = "X"; then
  16912. if test -f "$dir/$libname.$acl_libext"; then
  16913. found_dir="$dir"
  16914. found_a="$dir/$libname.$acl_libext"
  16915. fi
  16916. fi
  16917. if test "X$found_dir" != "X"; then
  16918. if test -f "$dir/$libname.la"; then
  16919. found_la="$dir/$libname.la"
  16920. fi
  16921. fi
  16922. fi
  16923. if test "X$found_dir" = "X"; then
  16924. for x in $LDFLAGS $LTLIBSSL; do
  16925. acl_save_prefix="$prefix"
  16926. prefix="$acl_final_prefix"
  16927. acl_save_exec_prefix="$exec_prefix"
  16928. exec_prefix="$acl_final_exec_prefix"
  16929. eval x=\"$x\"
  16930. exec_prefix="$acl_save_exec_prefix"
  16931. prefix="$acl_save_prefix"
  16932. case "$x" in
  16933. -L*)
  16934. dir=`echo "X$x" | sed -e 's/^X-L//'`
  16935. if test -n "$acl_shlibext"; then
  16936. if test -f "$dir/$libname$shrext"; then
  16937. found_dir="$dir"
  16938. found_so="$dir/$libname$shrext"
  16939. else
  16940. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  16941. ver=`(cd "$dir" && \
  16942. for f in "$libname$shrext".*; do echo "$f"; done \
  16943. | sed -e "s,^$libname$shrext\\\\.,," \
  16944. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  16945. | sed 1q ) 2>/dev/null`
  16946. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  16947. found_dir="$dir"
  16948. found_so="$dir/$libname$shrext.$ver"
  16949. fi
  16950. else
  16951. eval library_names=\"$acl_library_names_spec\"
  16952. for f in $library_names; do
  16953. if test -f "$dir/$f"; then
  16954. found_dir="$dir"
  16955. found_so="$dir/$f"
  16956. break
  16957. fi
  16958. done
  16959. fi
  16960. fi
  16961. fi
  16962. if test "X$found_dir" = "X"; then
  16963. if test -f "$dir/$libname.$acl_libext"; then
  16964. found_dir="$dir"
  16965. found_a="$dir/$libname.$acl_libext"
  16966. fi
  16967. fi
  16968. if test "X$found_dir" != "X"; then
  16969. if test -f "$dir/$libname.la"; then
  16970. found_la="$dir/$libname.la"
  16971. fi
  16972. fi
  16973. ;;
  16974. esac
  16975. if test "X$found_dir" != "X"; then
  16976. break
  16977. fi
  16978. done
  16979. fi
  16980. if test "X$found_dir" != "X"; then
  16981. LTLIBSSL="${LTLIBSSL}${LTLIBSSL:+ }-L$found_dir -l$name"
  16982. if test "X$found_so" != "X"; then
  16983. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  16984. LIBSSL="${LIBSSL}${LIBSSL:+ }$found_so"
  16985. else
  16986. haveit=
  16987. for x in $ltrpathdirs; do
  16988. if test "X$x" = "X$found_dir"; then
  16989. haveit=yes
  16990. break
  16991. fi
  16992. done
  16993. if test -z "$haveit"; then
  16994. ltrpathdirs="$ltrpathdirs $found_dir"
  16995. fi
  16996. if test "$acl_hardcode_direct" = yes; then
  16997. LIBSSL="${LIBSSL}${LIBSSL:+ }$found_so"
  16998. else
  16999. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  17000. LIBSSL="${LIBSSL}${LIBSSL:+ }$found_so"
  17001. haveit=
  17002. for x in $rpathdirs; do
  17003. if test "X$x" = "X$found_dir"; then
  17004. haveit=yes
  17005. break
  17006. fi
  17007. done
  17008. if test -z "$haveit"; then
  17009. rpathdirs="$rpathdirs $found_dir"
  17010. fi
  17011. else
  17012. haveit=
  17013. for x in $LDFLAGS $LIBSSL; do
  17014. acl_save_prefix="$prefix"
  17015. prefix="$acl_final_prefix"
  17016. acl_save_exec_prefix="$exec_prefix"
  17017. exec_prefix="$acl_final_exec_prefix"
  17018. eval x=\"$x\"
  17019. exec_prefix="$acl_save_exec_prefix"
  17020. prefix="$acl_save_prefix"
  17021. if test "X$x" = "X-L$found_dir"; then
  17022. haveit=yes
  17023. break
  17024. fi
  17025. done
  17026. if test -z "$haveit"; then
  17027. LIBSSL="${LIBSSL}${LIBSSL:+ }-L$found_dir"
  17028. fi
  17029. if test "$acl_hardcode_minus_L" != no; then
  17030. LIBSSL="${LIBSSL}${LIBSSL:+ }$found_so"
  17031. else
  17032. LIBSSL="${LIBSSL}${LIBSSL:+ }-l$name"
  17033. fi
  17034. fi
  17035. fi
  17036. fi
  17037. else
  17038. if test "X$found_a" != "X"; then
  17039. LIBSSL="${LIBSSL}${LIBSSL:+ }$found_a"
  17040. else
  17041. LIBSSL="${LIBSSL}${LIBSSL:+ }-L$found_dir -l$name"
  17042. fi
  17043. fi
  17044. additional_includedir=
  17045. case "$found_dir" in
  17046. */$acl_libdirstem | */$acl_libdirstem/)
  17047. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  17048. LIBSSL_PREFIX="$basedir"
  17049. additional_includedir="$basedir/include"
  17050. ;;
  17051. esac
  17052. if test "X$additional_includedir" != "X"; then
  17053. if test "X$additional_includedir" != "X/usr/include"; then
  17054. haveit=
  17055. if test "X$additional_includedir" = "X/usr/local/include"; then
  17056. if test -n "$GCC"; then
  17057. case $host_os in
  17058. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  17059. esac
  17060. fi
  17061. fi
  17062. if test -z "$haveit"; then
  17063. for x in $CPPFLAGS $INCSSL; do
  17064. acl_save_prefix="$prefix"
  17065. prefix="$acl_final_prefix"
  17066. acl_save_exec_prefix="$exec_prefix"
  17067. exec_prefix="$acl_final_exec_prefix"
  17068. eval x=\"$x\"
  17069. exec_prefix="$acl_save_exec_prefix"
  17070. prefix="$acl_save_prefix"
  17071. if test "X$x" = "X-I$additional_includedir"; then
  17072. haveit=yes
  17073. break
  17074. fi
  17075. done
  17076. if test -z "$haveit"; then
  17077. if test -d "$additional_includedir"; then
  17078. INCSSL="${INCSSL}${INCSSL:+ }-I$additional_includedir"
  17079. fi
  17080. fi
  17081. fi
  17082. fi
  17083. fi
  17084. if test -n "$found_la"; then
  17085. save_libdir="$libdir"
  17086. case "$found_la" in
  17087. */* | *\\*) . "$found_la" ;;
  17088. *) . "./$found_la" ;;
  17089. esac
  17090. libdir="$save_libdir"
  17091. for dep in $dependency_libs; do
  17092. case "$dep" in
  17093. -L*)
  17094. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  17095. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  17096. haveit=
  17097. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  17098. if test -n "$GCC"; then
  17099. case $host_os in
  17100. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  17101. esac
  17102. fi
  17103. fi
  17104. if test -z "$haveit"; then
  17105. haveit=
  17106. for x in $LDFLAGS $LIBSSL; do
  17107. acl_save_prefix="$prefix"
  17108. prefix="$acl_final_prefix"
  17109. acl_save_exec_prefix="$exec_prefix"
  17110. exec_prefix="$acl_final_exec_prefix"
  17111. eval x=\"$x\"
  17112. exec_prefix="$acl_save_exec_prefix"
  17113. prefix="$acl_save_prefix"
  17114. if test "X$x" = "X-L$additional_libdir"; then
  17115. haveit=yes
  17116. break
  17117. fi
  17118. done
  17119. if test -z "$haveit"; then
  17120. if test -d "$additional_libdir"; then
  17121. LIBSSL="${LIBSSL}${LIBSSL:+ }-L$additional_libdir"
  17122. fi
  17123. fi
  17124. haveit=
  17125. for x in $LDFLAGS $LTLIBSSL; do
  17126. acl_save_prefix="$prefix"
  17127. prefix="$acl_final_prefix"
  17128. acl_save_exec_prefix="$exec_prefix"
  17129. exec_prefix="$acl_final_exec_prefix"
  17130. eval x=\"$x\"
  17131. exec_prefix="$acl_save_exec_prefix"
  17132. prefix="$acl_save_prefix"
  17133. if test "X$x" = "X-L$additional_libdir"; then
  17134. haveit=yes
  17135. break
  17136. fi
  17137. done
  17138. if test -z "$haveit"; then
  17139. if test -d "$additional_libdir"; then
  17140. LTLIBSSL="${LTLIBSSL}${LTLIBSSL:+ }-L$additional_libdir"
  17141. fi
  17142. fi
  17143. fi
  17144. fi
  17145. ;;
  17146. -R*)
  17147. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  17148. if test "$enable_rpath" != no; then
  17149. haveit=
  17150. for x in $rpathdirs; do
  17151. if test "X$x" = "X$dir"; then
  17152. haveit=yes
  17153. break
  17154. fi
  17155. done
  17156. if test -z "$haveit"; then
  17157. rpathdirs="$rpathdirs $dir"
  17158. fi
  17159. haveit=
  17160. for x in $ltrpathdirs; do
  17161. if test "X$x" = "X$dir"; then
  17162. haveit=yes
  17163. break
  17164. fi
  17165. done
  17166. if test -z "$haveit"; then
  17167. ltrpathdirs="$ltrpathdirs $dir"
  17168. fi
  17169. fi
  17170. ;;
  17171. -l*)
  17172. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  17173. ;;
  17174. *.la)
  17175. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  17176. ;;
  17177. *)
  17178. LIBSSL="${LIBSSL}${LIBSSL:+ }$dep"
  17179. LTLIBSSL="${LTLIBSSL}${LTLIBSSL:+ }$dep"
  17180. ;;
  17181. esac
  17182. done
  17183. fi
  17184. else
  17185. LIBSSL="${LIBSSL}${LIBSSL:+ }-l$name"
  17186. LTLIBSSL="${LTLIBSSL}${LTLIBSSL:+ }-l$name"
  17187. fi
  17188. fi
  17189. fi
  17190. done
  17191. done
  17192. if test "X$rpathdirs" != "X"; then
  17193. if test -n "$acl_hardcode_libdir_separator"; then
  17194. alldirs=
  17195. for found_dir in $rpathdirs; do
  17196. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  17197. done
  17198. acl_save_libdir="$libdir"
  17199. libdir="$alldirs"
  17200. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  17201. libdir="$acl_save_libdir"
  17202. LIBSSL="${LIBSSL}${LIBSSL:+ }$flag"
  17203. else
  17204. for found_dir in $rpathdirs; do
  17205. acl_save_libdir="$libdir"
  17206. libdir="$found_dir"
  17207. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  17208. libdir="$acl_save_libdir"
  17209. LIBSSL="${LIBSSL}${LIBSSL:+ }$flag"
  17210. done
  17211. fi
  17212. fi
  17213. if test "X$ltrpathdirs" != "X"; then
  17214. for found_dir in $ltrpathdirs; do
  17215. LTLIBSSL="${LTLIBSSL}${LTLIBSSL:+ }-R$found_dir"
  17216. done
  17217. fi
  17218. ac_save_CPPFLAGS="$CPPFLAGS"
  17219. for element in $INCSSL; do
  17220. haveit=
  17221. for x in $CPPFLAGS; do
  17222. acl_save_prefix="$prefix"
  17223. prefix="$acl_final_prefix"
  17224. acl_save_exec_prefix="$exec_prefix"
  17225. exec_prefix="$acl_final_exec_prefix"
  17226. eval x=\"$x\"
  17227. exec_prefix="$acl_save_exec_prefix"
  17228. prefix="$acl_save_prefix"
  17229. if test "X$x" = "X$element"; then
  17230. haveit=yes
  17231. break
  17232. fi
  17233. done
  17234. if test -z "$haveit"; then
  17235. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  17236. fi
  17237. done
  17238. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssl" >&5
  17239. printf %s "checking for libssl... " >&6; }
  17240. if test ${ac_cv_libssl+y}
  17241. then :
  17242. printf %s "(cached) " >&6
  17243. else $as_nop
  17244. ac_save_LIBS="$LIBS"
  17245. LIBS="$LIBS $LIBSSL"
  17246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17247. /* end confdefs.h. */
  17248. #include <openssl/ssl.h>
  17249. int
  17250. main (void)
  17251. {
  17252. ;
  17253. return 0;
  17254. }
  17255. _ACEOF
  17256. if ac_fn_c_try_link "$LINENO"
  17257. then :
  17258. ac_cv_libssl=yes
  17259. else $as_nop
  17260. ac_cv_libssl=no
  17261. fi
  17262. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17263. conftest$ac_exeext conftest.$ac_ext
  17264. LIBS="$ac_save_LIBS"
  17265. fi
  17266. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libssl" >&5
  17267. printf "%s\n" "$ac_cv_libssl" >&6; }
  17268. if test "$ac_cv_libssl" = yes; then
  17269. HAVE_LIBSSL=yes
  17270. printf "%s\n" "#define HAVE_LIBSSL 1" >>confdefs.h
  17271. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libssl" >&5
  17272. printf %s "checking how to link with libssl... " >&6; }
  17273. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBSSL" >&5
  17274. printf "%s\n" "$LIBSSL" >&6; }
  17275. else
  17276. HAVE_LIBSSL=no
  17277. CPPFLAGS="$ac_save_CPPFLAGS"
  17278. LIBSSL=
  17279. LTLIBSSL=
  17280. LIBSSL_PREFIX=
  17281. fi
  17282. LDFLAGS="$libssh2_save_LDFLAGS"
  17283. if test "$ac_cv_libssl" = "yes"; then :
  17284. printf "%s\n" "#define LIBSSH2_OPENSSL 1" >>confdefs.h
  17285. LIBSREQUIRED="$LIBSREQUIRED${LIBSREQUIRED:+ }libssl libcrypto"
  17286. # Not all OpenSSL have AES-CTR functions.
  17287. libssh2_save_LIBS="$LIBS"
  17288. LIBS="$LIBS $LIBSSL"
  17289. ac_fn_c_check_func "$LINENO" "EVP_aes_128_ctr" "ac_cv_func_EVP_aes_128_ctr"
  17290. if test "x$ac_cv_func_EVP_aes_128_ctr" = xyes
  17291. then :
  17292. printf "%s\n" "#define HAVE_EVP_AES_128_CTR 1" >>confdefs.h
  17293. fi
  17294. LIBS="$libssh2_save_LIBS"
  17295. found_crypto="openssl"
  17296. found_crypto_str="OpenSSL (AES-CTR: ${ac_cv_func_EVP_aes_128_ctr:-N/A})"
  17297. else
  17298. CPPFLAGS="$libssh2_save_CPPFLAGS"
  17299. fi
  17300. test "$found_crypto" = "none" &&
  17301. crypto_errors="${crypto_errors}No openssl crypto library found!
  17302. "
  17303. fi
  17304. if test "$use_crypto" = "auto" && test "$found_crypto" = "none" || test "$use_crypto" = "libgcrypt"; then
  17305. libssh2_save_CPPFLAGS="$CPPFLAGS"
  17306. libssh2_save_LDFLAGS="$LDFLAGS"
  17307. if test "${with_libgcrypt_prefix+set}" = set; then
  17308. CPPFLAGS="$CPPFLAGS${CPPFLAGS:+ }-I${with_libgcrypt_prefix}/include"
  17309. LDFLAGS="$LDFLAGS${LDFLAGS:+ }-L${with_libgcrypt_prefix}/lib"
  17310. fi
  17311. use_additional=yes
  17312. acl_save_prefix="$prefix"
  17313. prefix="$acl_final_prefix"
  17314. acl_save_exec_prefix="$exec_prefix"
  17315. exec_prefix="$acl_final_exec_prefix"
  17316. eval additional_includedir=\"$includedir\"
  17317. eval additional_libdir=\"$libdir\"
  17318. exec_prefix="$acl_save_exec_prefix"
  17319. prefix="$acl_save_prefix"
  17320. # Check whether --with-libgcrypt-prefix was given.
  17321. if test ${with_libgcrypt_prefix+y}
  17322. then :
  17323. withval=$with_libgcrypt_prefix;
  17324. if test "X$withval" = "Xno"; then
  17325. use_additional=no
  17326. else
  17327. if test "X$withval" = "X"; then
  17328. acl_save_prefix="$prefix"
  17329. prefix="$acl_final_prefix"
  17330. acl_save_exec_prefix="$exec_prefix"
  17331. exec_prefix="$acl_final_exec_prefix"
  17332. eval additional_includedir=\"$includedir\"
  17333. eval additional_libdir=\"$libdir\"
  17334. exec_prefix="$acl_save_exec_prefix"
  17335. prefix="$acl_save_prefix"
  17336. else
  17337. additional_includedir="$withval/include"
  17338. additional_libdir="$withval/$acl_libdirstem"
  17339. fi
  17340. fi
  17341. fi
  17342. LIBGCRYPT=
  17343. LTLIBGCRYPT=
  17344. INCGCRYPT=
  17345. LIBGCRYPT_PREFIX=
  17346. rpathdirs=
  17347. ltrpathdirs=
  17348. names_already_handled=
  17349. names_next_round='gcrypt '
  17350. while test -n "$names_next_round"; do
  17351. names_this_round="$names_next_round"
  17352. names_next_round=
  17353. for name in $names_this_round; do
  17354. already_handled=
  17355. for n in $names_already_handled; do
  17356. if test "$n" = "$name"; then
  17357. already_handled=yes
  17358. break
  17359. fi
  17360. done
  17361. if test -z "$already_handled"; then
  17362. names_already_handled="$names_already_handled $name"
  17363. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  17364. eval value=\"\$HAVE_LIB$uppername\"
  17365. if test -n "$value"; then
  17366. if test "$value" = yes; then
  17367. eval value=\"\$LIB$uppername\"
  17368. test -z "$value" || LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$value"
  17369. eval value=\"\$LTLIB$uppername\"
  17370. test -z "$value" || LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }$value"
  17371. else
  17372. :
  17373. fi
  17374. else
  17375. found_dir=
  17376. found_la=
  17377. found_so=
  17378. found_a=
  17379. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  17380. if test -n "$acl_shlibext"; then
  17381. shrext=".$acl_shlibext" # typically: shrext=.so
  17382. else
  17383. shrext=
  17384. fi
  17385. if test $use_additional = yes; then
  17386. dir="$additional_libdir"
  17387. if test -n "$acl_shlibext"; then
  17388. if test -f "$dir/$libname$shrext"; then
  17389. found_dir="$dir"
  17390. found_so="$dir/$libname$shrext"
  17391. else
  17392. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  17393. ver=`(cd "$dir" && \
  17394. for f in "$libname$shrext".*; do echo "$f"; done \
  17395. | sed -e "s,^$libname$shrext\\\\.,," \
  17396. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  17397. | sed 1q ) 2>/dev/null`
  17398. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  17399. found_dir="$dir"
  17400. found_so="$dir/$libname$shrext.$ver"
  17401. fi
  17402. else
  17403. eval library_names=\"$acl_library_names_spec\"
  17404. for f in $library_names; do
  17405. if test -f "$dir/$f"; then
  17406. found_dir="$dir"
  17407. found_so="$dir/$f"
  17408. break
  17409. fi
  17410. done
  17411. fi
  17412. fi
  17413. fi
  17414. if test "X$found_dir" = "X"; then
  17415. if test -f "$dir/$libname.$acl_libext"; then
  17416. found_dir="$dir"
  17417. found_a="$dir/$libname.$acl_libext"
  17418. fi
  17419. fi
  17420. if test "X$found_dir" != "X"; then
  17421. if test -f "$dir/$libname.la"; then
  17422. found_la="$dir/$libname.la"
  17423. fi
  17424. fi
  17425. fi
  17426. if test "X$found_dir" = "X"; then
  17427. for x in $LDFLAGS $LTLIBGCRYPT; do
  17428. acl_save_prefix="$prefix"
  17429. prefix="$acl_final_prefix"
  17430. acl_save_exec_prefix="$exec_prefix"
  17431. exec_prefix="$acl_final_exec_prefix"
  17432. eval x=\"$x\"
  17433. exec_prefix="$acl_save_exec_prefix"
  17434. prefix="$acl_save_prefix"
  17435. case "$x" in
  17436. -L*)
  17437. dir=`echo "X$x" | sed -e 's/^X-L//'`
  17438. if test -n "$acl_shlibext"; then
  17439. if test -f "$dir/$libname$shrext"; then
  17440. found_dir="$dir"
  17441. found_so="$dir/$libname$shrext"
  17442. else
  17443. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  17444. ver=`(cd "$dir" && \
  17445. for f in "$libname$shrext".*; do echo "$f"; done \
  17446. | sed -e "s,^$libname$shrext\\\\.,," \
  17447. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  17448. | sed 1q ) 2>/dev/null`
  17449. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  17450. found_dir="$dir"
  17451. found_so="$dir/$libname$shrext.$ver"
  17452. fi
  17453. else
  17454. eval library_names=\"$acl_library_names_spec\"
  17455. for f in $library_names; do
  17456. if test -f "$dir/$f"; then
  17457. found_dir="$dir"
  17458. found_so="$dir/$f"
  17459. break
  17460. fi
  17461. done
  17462. fi
  17463. fi
  17464. fi
  17465. if test "X$found_dir" = "X"; then
  17466. if test -f "$dir/$libname.$acl_libext"; then
  17467. found_dir="$dir"
  17468. found_a="$dir/$libname.$acl_libext"
  17469. fi
  17470. fi
  17471. if test "X$found_dir" != "X"; then
  17472. if test -f "$dir/$libname.la"; then
  17473. found_la="$dir/$libname.la"
  17474. fi
  17475. fi
  17476. ;;
  17477. esac
  17478. if test "X$found_dir" != "X"; then
  17479. break
  17480. fi
  17481. done
  17482. fi
  17483. if test "X$found_dir" != "X"; then
  17484. LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }-L$found_dir -l$name"
  17485. if test "X$found_so" != "X"; then
  17486. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  17487. LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_so"
  17488. else
  17489. haveit=
  17490. for x in $ltrpathdirs; do
  17491. if test "X$x" = "X$found_dir"; then
  17492. haveit=yes
  17493. break
  17494. fi
  17495. done
  17496. if test -z "$haveit"; then
  17497. ltrpathdirs="$ltrpathdirs $found_dir"
  17498. fi
  17499. if test "$acl_hardcode_direct" = yes; then
  17500. LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_so"
  17501. else
  17502. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  17503. LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_so"
  17504. haveit=
  17505. for x in $rpathdirs; do
  17506. if test "X$x" = "X$found_dir"; then
  17507. haveit=yes
  17508. break
  17509. fi
  17510. done
  17511. if test -z "$haveit"; then
  17512. rpathdirs="$rpathdirs $found_dir"
  17513. fi
  17514. else
  17515. haveit=
  17516. for x in $LDFLAGS $LIBGCRYPT; do
  17517. acl_save_prefix="$prefix"
  17518. prefix="$acl_final_prefix"
  17519. acl_save_exec_prefix="$exec_prefix"
  17520. exec_prefix="$acl_final_exec_prefix"
  17521. eval x=\"$x\"
  17522. exec_prefix="$acl_save_exec_prefix"
  17523. prefix="$acl_save_prefix"
  17524. if test "X$x" = "X-L$found_dir"; then
  17525. haveit=yes
  17526. break
  17527. fi
  17528. done
  17529. if test -z "$haveit"; then
  17530. LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-L$found_dir"
  17531. fi
  17532. if test "$acl_hardcode_minus_L" != no; then
  17533. LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_so"
  17534. else
  17535. LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-l$name"
  17536. fi
  17537. fi
  17538. fi
  17539. fi
  17540. else
  17541. if test "X$found_a" != "X"; then
  17542. LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_a"
  17543. else
  17544. LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-L$found_dir -l$name"
  17545. fi
  17546. fi
  17547. additional_includedir=
  17548. case "$found_dir" in
  17549. */$acl_libdirstem | */$acl_libdirstem/)
  17550. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  17551. LIBGCRYPT_PREFIX="$basedir"
  17552. additional_includedir="$basedir/include"
  17553. ;;
  17554. esac
  17555. if test "X$additional_includedir" != "X"; then
  17556. if test "X$additional_includedir" != "X/usr/include"; then
  17557. haveit=
  17558. if test "X$additional_includedir" = "X/usr/local/include"; then
  17559. if test -n "$GCC"; then
  17560. case $host_os in
  17561. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  17562. esac
  17563. fi
  17564. fi
  17565. if test -z "$haveit"; then
  17566. for x in $CPPFLAGS $INCGCRYPT; do
  17567. acl_save_prefix="$prefix"
  17568. prefix="$acl_final_prefix"
  17569. acl_save_exec_prefix="$exec_prefix"
  17570. exec_prefix="$acl_final_exec_prefix"
  17571. eval x=\"$x\"
  17572. exec_prefix="$acl_save_exec_prefix"
  17573. prefix="$acl_save_prefix"
  17574. if test "X$x" = "X-I$additional_includedir"; then
  17575. haveit=yes
  17576. break
  17577. fi
  17578. done
  17579. if test -z "$haveit"; then
  17580. if test -d "$additional_includedir"; then
  17581. INCGCRYPT="${INCGCRYPT}${INCGCRYPT:+ }-I$additional_includedir"
  17582. fi
  17583. fi
  17584. fi
  17585. fi
  17586. fi
  17587. if test -n "$found_la"; then
  17588. save_libdir="$libdir"
  17589. case "$found_la" in
  17590. */* | *\\*) . "$found_la" ;;
  17591. *) . "./$found_la" ;;
  17592. esac
  17593. libdir="$save_libdir"
  17594. for dep in $dependency_libs; do
  17595. case "$dep" in
  17596. -L*)
  17597. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  17598. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  17599. haveit=
  17600. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  17601. if test -n "$GCC"; then
  17602. case $host_os in
  17603. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  17604. esac
  17605. fi
  17606. fi
  17607. if test -z "$haveit"; then
  17608. haveit=
  17609. for x in $LDFLAGS $LIBGCRYPT; do
  17610. acl_save_prefix="$prefix"
  17611. prefix="$acl_final_prefix"
  17612. acl_save_exec_prefix="$exec_prefix"
  17613. exec_prefix="$acl_final_exec_prefix"
  17614. eval x=\"$x\"
  17615. exec_prefix="$acl_save_exec_prefix"
  17616. prefix="$acl_save_prefix"
  17617. if test "X$x" = "X-L$additional_libdir"; then
  17618. haveit=yes
  17619. break
  17620. fi
  17621. done
  17622. if test -z "$haveit"; then
  17623. if test -d "$additional_libdir"; then
  17624. LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-L$additional_libdir"
  17625. fi
  17626. fi
  17627. haveit=
  17628. for x in $LDFLAGS $LTLIBGCRYPT; do
  17629. acl_save_prefix="$prefix"
  17630. prefix="$acl_final_prefix"
  17631. acl_save_exec_prefix="$exec_prefix"
  17632. exec_prefix="$acl_final_exec_prefix"
  17633. eval x=\"$x\"
  17634. exec_prefix="$acl_save_exec_prefix"
  17635. prefix="$acl_save_prefix"
  17636. if test "X$x" = "X-L$additional_libdir"; then
  17637. haveit=yes
  17638. break
  17639. fi
  17640. done
  17641. if test -z "$haveit"; then
  17642. if test -d "$additional_libdir"; then
  17643. LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }-L$additional_libdir"
  17644. fi
  17645. fi
  17646. fi
  17647. fi
  17648. ;;
  17649. -R*)
  17650. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  17651. if test "$enable_rpath" != no; then
  17652. haveit=
  17653. for x in $rpathdirs; do
  17654. if test "X$x" = "X$dir"; then
  17655. haveit=yes
  17656. break
  17657. fi
  17658. done
  17659. if test -z "$haveit"; then
  17660. rpathdirs="$rpathdirs $dir"
  17661. fi
  17662. haveit=
  17663. for x in $ltrpathdirs; do
  17664. if test "X$x" = "X$dir"; then
  17665. haveit=yes
  17666. break
  17667. fi
  17668. done
  17669. if test -z "$haveit"; then
  17670. ltrpathdirs="$ltrpathdirs $dir"
  17671. fi
  17672. fi
  17673. ;;
  17674. -l*)
  17675. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  17676. ;;
  17677. *.la)
  17678. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  17679. ;;
  17680. *)
  17681. LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$dep"
  17682. LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }$dep"
  17683. ;;
  17684. esac
  17685. done
  17686. fi
  17687. else
  17688. LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-l$name"
  17689. LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }-l$name"
  17690. fi
  17691. fi
  17692. fi
  17693. done
  17694. done
  17695. if test "X$rpathdirs" != "X"; then
  17696. if test -n "$acl_hardcode_libdir_separator"; then
  17697. alldirs=
  17698. for found_dir in $rpathdirs; do
  17699. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  17700. done
  17701. acl_save_libdir="$libdir"
  17702. libdir="$alldirs"
  17703. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  17704. libdir="$acl_save_libdir"
  17705. LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$flag"
  17706. else
  17707. for found_dir in $rpathdirs; do
  17708. acl_save_libdir="$libdir"
  17709. libdir="$found_dir"
  17710. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  17711. libdir="$acl_save_libdir"
  17712. LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$flag"
  17713. done
  17714. fi
  17715. fi
  17716. if test "X$ltrpathdirs" != "X"; then
  17717. for found_dir in $ltrpathdirs; do
  17718. LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }-R$found_dir"
  17719. done
  17720. fi
  17721. ac_save_CPPFLAGS="$CPPFLAGS"
  17722. for element in $INCGCRYPT; do
  17723. haveit=
  17724. for x in $CPPFLAGS; do
  17725. acl_save_prefix="$prefix"
  17726. prefix="$acl_final_prefix"
  17727. acl_save_exec_prefix="$exec_prefix"
  17728. exec_prefix="$acl_final_exec_prefix"
  17729. eval x=\"$x\"
  17730. exec_prefix="$acl_save_exec_prefix"
  17731. prefix="$acl_save_prefix"
  17732. if test "X$x" = "X$element"; then
  17733. haveit=yes
  17734. break
  17735. fi
  17736. done
  17737. if test -z "$haveit"; then
  17738. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  17739. fi
  17740. done
  17741. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libgcrypt" >&5
  17742. printf %s "checking for libgcrypt... " >&6; }
  17743. if test ${ac_cv_libgcrypt+y}
  17744. then :
  17745. printf %s "(cached) " >&6
  17746. else $as_nop
  17747. ac_save_LIBS="$LIBS"
  17748. LIBS="$LIBS $LIBGCRYPT"
  17749. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17750. /* end confdefs.h. */
  17751. #include <gcrypt.h>
  17752. int
  17753. main (void)
  17754. {
  17755. ;
  17756. return 0;
  17757. }
  17758. _ACEOF
  17759. if ac_fn_c_try_link "$LINENO"
  17760. then :
  17761. ac_cv_libgcrypt=yes
  17762. else $as_nop
  17763. ac_cv_libgcrypt=no
  17764. fi
  17765. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17766. conftest$ac_exeext conftest.$ac_ext
  17767. LIBS="$ac_save_LIBS"
  17768. fi
  17769. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libgcrypt" >&5
  17770. printf "%s\n" "$ac_cv_libgcrypt" >&6; }
  17771. if test "$ac_cv_libgcrypt" = yes; then
  17772. HAVE_LIBGCRYPT=yes
  17773. printf "%s\n" "#define HAVE_LIBGCRYPT 1" >>confdefs.h
  17774. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libgcrypt" >&5
  17775. printf %s "checking how to link with libgcrypt... " >&6; }
  17776. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT" >&5
  17777. printf "%s\n" "$LIBGCRYPT" >&6; }
  17778. else
  17779. HAVE_LIBGCRYPT=no
  17780. CPPFLAGS="$ac_save_CPPFLAGS"
  17781. LIBGCRYPT=
  17782. LTLIBGCRYPT=
  17783. LIBGCRYPT_PREFIX=
  17784. fi
  17785. LDFLAGS="$libssh2_save_LDFLAGS"
  17786. if test "$ac_cv_libgcrypt" = "yes"; then :
  17787. printf "%s\n" "#define LIBSSH2_LIBGCRYPT 1" >>confdefs.h
  17788. found_crypto="libgcrypt"
  17789. else
  17790. CPPFLAGS="$libssh2_save_CPPFLAGS"
  17791. fi
  17792. test "$found_crypto" = "none" &&
  17793. crypto_errors="${crypto_errors}No libgcrypt crypto library found!
  17794. "
  17795. fi
  17796. if test "$use_crypto" = "auto" && test "$found_crypto" = "none" || test "$use_crypto" = "mbedtls"; then
  17797. libssh2_save_CPPFLAGS="$CPPFLAGS"
  17798. libssh2_save_LDFLAGS="$LDFLAGS"
  17799. if test "${with_libmbedcrypto_prefix+set}" = set; then
  17800. CPPFLAGS="$CPPFLAGS${CPPFLAGS:+ }-I${with_libmbedcrypto_prefix}/include"
  17801. LDFLAGS="$LDFLAGS${LDFLAGS:+ }-L${with_libmbedcrypto_prefix}/lib"
  17802. fi
  17803. use_additional=yes
  17804. acl_save_prefix="$prefix"
  17805. prefix="$acl_final_prefix"
  17806. acl_save_exec_prefix="$exec_prefix"
  17807. exec_prefix="$acl_final_exec_prefix"
  17808. eval additional_includedir=\"$includedir\"
  17809. eval additional_libdir=\"$libdir\"
  17810. exec_prefix="$acl_save_exec_prefix"
  17811. prefix="$acl_save_prefix"
  17812. # Check whether --with-libmbedcrypto-prefix was given.
  17813. if test ${with_libmbedcrypto_prefix+y}
  17814. then :
  17815. withval=$with_libmbedcrypto_prefix;
  17816. if test "X$withval" = "Xno"; then
  17817. use_additional=no
  17818. else
  17819. if test "X$withval" = "X"; then
  17820. acl_save_prefix="$prefix"
  17821. prefix="$acl_final_prefix"
  17822. acl_save_exec_prefix="$exec_prefix"
  17823. exec_prefix="$acl_final_exec_prefix"
  17824. eval additional_includedir=\"$includedir\"
  17825. eval additional_libdir=\"$libdir\"
  17826. exec_prefix="$acl_save_exec_prefix"
  17827. prefix="$acl_save_prefix"
  17828. else
  17829. additional_includedir="$withval/include"
  17830. additional_libdir="$withval/$acl_libdirstem"
  17831. fi
  17832. fi
  17833. fi
  17834. LIBMBEDCRYPTO=
  17835. LTLIBMBEDCRYPTO=
  17836. INCMBEDCRYPTO=
  17837. LIBMBEDCRYPTO_PREFIX=
  17838. rpathdirs=
  17839. ltrpathdirs=
  17840. names_already_handled=
  17841. names_next_round='mbedcrypto '
  17842. while test -n "$names_next_round"; do
  17843. names_this_round="$names_next_round"
  17844. names_next_round=
  17845. for name in $names_this_round; do
  17846. already_handled=
  17847. for n in $names_already_handled; do
  17848. if test "$n" = "$name"; then
  17849. already_handled=yes
  17850. break
  17851. fi
  17852. done
  17853. if test -z "$already_handled"; then
  17854. names_already_handled="$names_already_handled $name"
  17855. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  17856. eval value=\"\$HAVE_LIB$uppername\"
  17857. if test -n "$value"; then
  17858. if test "$value" = yes; then
  17859. eval value=\"\$LIB$uppername\"
  17860. test -z "$value" || LIBMBEDCRYPTO="${LIBMBEDCRYPTO}${LIBMBEDCRYPTO:+ }$value"
  17861. eval value=\"\$LTLIB$uppername\"
  17862. test -z "$value" || LTLIBMBEDCRYPTO="${LTLIBMBEDCRYPTO}${LTLIBMBEDCRYPTO:+ }$value"
  17863. else
  17864. :
  17865. fi
  17866. else
  17867. found_dir=
  17868. found_la=
  17869. found_so=
  17870. found_a=
  17871. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  17872. if test -n "$acl_shlibext"; then
  17873. shrext=".$acl_shlibext" # typically: shrext=.so
  17874. else
  17875. shrext=
  17876. fi
  17877. if test $use_additional = yes; then
  17878. dir="$additional_libdir"
  17879. if test -n "$acl_shlibext"; then
  17880. if test -f "$dir/$libname$shrext"; then
  17881. found_dir="$dir"
  17882. found_so="$dir/$libname$shrext"
  17883. else
  17884. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  17885. ver=`(cd "$dir" && \
  17886. for f in "$libname$shrext".*; do echo "$f"; done \
  17887. | sed -e "s,^$libname$shrext\\\\.,," \
  17888. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  17889. | sed 1q ) 2>/dev/null`
  17890. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  17891. found_dir="$dir"
  17892. found_so="$dir/$libname$shrext.$ver"
  17893. fi
  17894. else
  17895. eval library_names=\"$acl_library_names_spec\"
  17896. for f in $library_names; do
  17897. if test -f "$dir/$f"; then
  17898. found_dir="$dir"
  17899. found_so="$dir/$f"
  17900. break
  17901. fi
  17902. done
  17903. fi
  17904. fi
  17905. fi
  17906. if test "X$found_dir" = "X"; then
  17907. if test -f "$dir/$libname.$acl_libext"; then
  17908. found_dir="$dir"
  17909. found_a="$dir/$libname.$acl_libext"
  17910. fi
  17911. fi
  17912. if test "X$found_dir" != "X"; then
  17913. if test -f "$dir/$libname.la"; then
  17914. found_la="$dir/$libname.la"
  17915. fi
  17916. fi
  17917. fi
  17918. if test "X$found_dir" = "X"; then
  17919. for x in $LDFLAGS $LTLIBMBEDCRYPTO; do
  17920. acl_save_prefix="$prefix"
  17921. prefix="$acl_final_prefix"
  17922. acl_save_exec_prefix="$exec_prefix"
  17923. exec_prefix="$acl_final_exec_prefix"
  17924. eval x=\"$x\"
  17925. exec_prefix="$acl_save_exec_prefix"
  17926. prefix="$acl_save_prefix"
  17927. case "$x" in
  17928. -L*)
  17929. dir=`echo "X$x" | sed -e 's/^X-L//'`
  17930. if test -n "$acl_shlibext"; then
  17931. if test -f "$dir/$libname$shrext"; then
  17932. found_dir="$dir"
  17933. found_so="$dir/$libname$shrext"
  17934. else
  17935. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  17936. ver=`(cd "$dir" && \
  17937. for f in "$libname$shrext".*; do echo "$f"; done \
  17938. | sed -e "s,^$libname$shrext\\\\.,," \
  17939. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  17940. | sed 1q ) 2>/dev/null`
  17941. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  17942. found_dir="$dir"
  17943. found_so="$dir/$libname$shrext.$ver"
  17944. fi
  17945. else
  17946. eval library_names=\"$acl_library_names_spec\"
  17947. for f in $library_names; do
  17948. if test -f "$dir/$f"; then
  17949. found_dir="$dir"
  17950. found_so="$dir/$f"
  17951. break
  17952. fi
  17953. done
  17954. fi
  17955. fi
  17956. fi
  17957. if test "X$found_dir" = "X"; then
  17958. if test -f "$dir/$libname.$acl_libext"; then
  17959. found_dir="$dir"
  17960. found_a="$dir/$libname.$acl_libext"
  17961. fi
  17962. fi
  17963. if test "X$found_dir" != "X"; then
  17964. if test -f "$dir/$libname.la"; then
  17965. found_la="$dir/$libname.la"
  17966. fi
  17967. fi
  17968. ;;
  17969. esac
  17970. if test "X$found_dir" != "X"; then
  17971. break
  17972. fi
  17973. done
  17974. fi
  17975. if test "X$found_dir" != "X"; then
  17976. LTLIBMBEDCRYPTO="${LTLIBMBEDCRYPTO}${LTLIBMBEDCRYPTO:+ }-L$found_dir -l$name"
  17977. if test "X$found_so" != "X"; then
  17978. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  17979. LIBMBEDCRYPTO="${LIBMBEDCRYPTO}${LIBMBEDCRYPTO:+ }$found_so"
  17980. else
  17981. haveit=
  17982. for x in $ltrpathdirs; do
  17983. if test "X$x" = "X$found_dir"; then
  17984. haveit=yes
  17985. break
  17986. fi
  17987. done
  17988. if test -z "$haveit"; then
  17989. ltrpathdirs="$ltrpathdirs $found_dir"
  17990. fi
  17991. if test "$acl_hardcode_direct" = yes; then
  17992. LIBMBEDCRYPTO="${LIBMBEDCRYPTO}${LIBMBEDCRYPTO:+ }$found_so"
  17993. else
  17994. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  17995. LIBMBEDCRYPTO="${LIBMBEDCRYPTO}${LIBMBEDCRYPTO:+ }$found_so"
  17996. haveit=
  17997. for x in $rpathdirs; do
  17998. if test "X$x" = "X$found_dir"; then
  17999. haveit=yes
  18000. break
  18001. fi
  18002. done
  18003. if test -z "$haveit"; then
  18004. rpathdirs="$rpathdirs $found_dir"
  18005. fi
  18006. else
  18007. haveit=
  18008. for x in $LDFLAGS $LIBMBEDCRYPTO; do
  18009. acl_save_prefix="$prefix"
  18010. prefix="$acl_final_prefix"
  18011. acl_save_exec_prefix="$exec_prefix"
  18012. exec_prefix="$acl_final_exec_prefix"
  18013. eval x=\"$x\"
  18014. exec_prefix="$acl_save_exec_prefix"
  18015. prefix="$acl_save_prefix"
  18016. if test "X$x" = "X-L$found_dir"; then
  18017. haveit=yes
  18018. break
  18019. fi
  18020. done
  18021. if test -z "$haveit"; then
  18022. LIBMBEDCRYPTO="${LIBMBEDCRYPTO}${LIBMBEDCRYPTO:+ }-L$found_dir"
  18023. fi
  18024. if test "$acl_hardcode_minus_L" != no; then
  18025. LIBMBEDCRYPTO="${LIBMBEDCRYPTO}${LIBMBEDCRYPTO:+ }$found_so"
  18026. else
  18027. LIBMBEDCRYPTO="${LIBMBEDCRYPTO}${LIBMBEDCRYPTO:+ }-l$name"
  18028. fi
  18029. fi
  18030. fi
  18031. fi
  18032. else
  18033. if test "X$found_a" != "X"; then
  18034. LIBMBEDCRYPTO="${LIBMBEDCRYPTO}${LIBMBEDCRYPTO:+ }$found_a"
  18035. else
  18036. LIBMBEDCRYPTO="${LIBMBEDCRYPTO}${LIBMBEDCRYPTO:+ }-L$found_dir -l$name"
  18037. fi
  18038. fi
  18039. additional_includedir=
  18040. case "$found_dir" in
  18041. */$acl_libdirstem | */$acl_libdirstem/)
  18042. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  18043. LIBMBEDCRYPTO_PREFIX="$basedir"
  18044. additional_includedir="$basedir/include"
  18045. ;;
  18046. esac
  18047. if test "X$additional_includedir" != "X"; then
  18048. if test "X$additional_includedir" != "X/usr/include"; then
  18049. haveit=
  18050. if test "X$additional_includedir" = "X/usr/local/include"; then
  18051. if test -n "$GCC"; then
  18052. case $host_os in
  18053. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  18054. esac
  18055. fi
  18056. fi
  18057. if test -z "$haveit"; then
  18058. for x in $CPPFLAGS $INCMBEDCRYPTO; do
  18059. acl_save_prefix="$prefix"
  18060. prefix="$acl_final_prefix"
  18061. acl_save_exec_prefix="$exec_prefix"
  18062. exec_prefix="$acl_final_exec_prefix"
  18063. eval x=\"$x\"
  18064. exec_prefix="$acl_save_exec_prefix"
  18065. prefix="$acl_save_prefix"
  18066. if test "X$x" = "X-I$additional_includedir"; then
  18067. haveit=yes
  18068. break
  18069. fi
  18070. done
  18071. if test -z "$haveit"; then
  18072. if test -d "$additional_includedir"; then
  18073. INCMBEDCRYPTO="${INCMBEDCRYPTO}${INCMBEDCRYPTO:+ }-I$additional_includedir"
  18074. fi
  18075. fi
  18076. fi
  18077. fi
  18078. fi
  18079. if test -n "$found_la"; then
  18080. save_libdir="$libdir"
  18081. case "$found_la" in
  18082. */* | *\\*) . "$found_la" ;;
  18083. *) . "./$found_la" ;;
  18084. esac
  18085. libdir="$save_libdir"
  18086. for dep in $dependency_libs; do
  18087. case "$dep" in
  18088. -L*)
  18089. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  18090. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  18091. haveit=
  18092. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  18093. if test -n "$GCC"; then
  18094. case $host_os in
  18095. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  18096. esac
  18097. fi
  18098. fi
  18099. if test -z "$haveit"; then
  18100. haveit=
  18101. for x in $LDFLAGS $LIBMBEDCRYPTO; do
  18102. acl_save_prefix="$prefix"
  18103. prefix="$acl_final_prefix"
  18104. acl_save_exec_prefix="$exec_prefix"
  18105. exec_prefix="$acl_final_exec_prefix"
  18106. eval x=\"$x\"
  18107. exec_prefix="$acl_save_exec_prefix"
  18108. prefix="$acl_save_prefix"
  18109. if test "X$x" = "X-L$additional_libdir"; then
  18110. haveit=yes
  18111. break
  18112. fi
  18113. done
  18114. if test -z "$haveit"; then
  18115. if test -d "$additional_libdir"; then
  18116. LIBMBEDCRYPTO="${LIBMBEDCRYPTO}${LIBMBEDCRYPTO:+ }-L$additional_libdir"
  18117. fi
  18118. fi
  18119. haveit=
  18120. for x in $LDFLAGS $LTLIBMBEDCRYPTO; do
  18121. acl_save_prefix="$prefix"
  18122. prefix="$acl_final_prefix"
  18123. acl_save_exec_prefix="$exec_prefix"
  18124. exec_prefix="$acl_final_exec_prefix"
  18125. eval x=\"$x\"
  18126. exec_prefix="$acl_save_exec_prefix"
  18127. prefix="$acl_save_prefix"
  18128. if test "X$x" = "X-L$additional_libdir"; then
  18129. haveit=yes
  18130. break
  18131. fi
  18132. done
  18133. if test -z "$haveit"; then
  18134. if test -d "$additional_libdir"; then
  18135. LTLIBMBEDCRYPTO="${LTLIBMBEDCRYPTO}${LTLIBMBEDCRYPTO:+ }-L$additional_libdir"
  18136. fi
  18137. fi
  18138. fi
  18139. fi
  18140. ;;
  18141. -R*)
  18142. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  18143. if test "$enable_rpath" != no; then
  18144. haveit=
  18145. for x in $rpathdirs; do
  18146. if test "X$x" = "X$dir"; then
  18147. haveit=yes
  18148. break
  18149. fi
  18150. done
  18151. if test -z "$haveit"; then
  18152. rpathdirs="$rpathdirs $dir"
  18153. fi
  18154. haveit=
  18155. for x in $ltrpathdirs; do
  18156. if test "X$x" = "X$dir"; then
  18157. haveit=yes
  18158. break
  18159. fi
  18160. done
  18161. if test -z "$haveit"; then
  18162. ltrpathdirs="$ltrpathdirs $dir"
  18163. fi
  18164. fi
  18165. ;;
  18166. -l*)
  18167. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  18168. ;;
  18169. *.la)
  18170. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  18171. ;;
  18172. *)
  18173. LIBMBEDCRYPTO="${LIBMBEDCRYPTO}${LIBMBEDCRYPTO:+ }$dep"
  18174. LTLIBMBEDCRYPTO="${LTLIBMBEDCRYPTO}${LTLIBMBEDCRYPTO:+ }$dep"
  18175. ;;
  18176. esac
  18177. done
  18178. fi
  18179. else
  18180. LIBMBEDCRYPTO="${LIBMBEDCRYPTO}${LIBMBEDCRYPTO:+ }-l$name"
  18181. LTLIBMBEDCRYPTO="${LTLIBMBEDCRYPTO}${LTLIBMBEDCRYPTO:+ }-l$name"
  18182. fi
  18183. fi
  18184. fi
  18185. done
  18186. done
  18187. if test "X$rpathdirs" != "X"; then
  18188. if test -n "$acl_hardcode_libdir_separator"; then
  18189. alldirs=
  18190. for found_dir in $rpathdirs; do
  18191. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  18192. done
  18193. acl_save_libdir="$libdir"
  18194. libdir="$alldirs"
  18195. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  18196. libdir="$acl_save_libdir"
  18197. LIBMBEDCRYPTO="${LIBMBEDCRYPTO}${LIBMBEDCRYPTO:+ }$flag"
  18198. else
  18199. for found_dir in $rpathdirs; do
  18200. acl_save_libdir="$libdir"
  18201. libdir="$found_dir"
  18202. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  18203. libdir="$acl_save_libdir"
  18204. LIBMBEDCRYPTO="${LIBMBEDCRYPTO}${LIBMBEDCRYPTO:+ }$flag"
  18205. done
  18206. fi
  18207. fi
  18208. if test "X$ltrpathdirs" != "X"; then
  18209. for found_dir in $ltrpathdirs; do
  18210. LTLIBMBEDCRYPTO="${LTLIBMBEDCRYPTO}${LTLIBMBEDCRYPTO:+ }-R$found_dir"
  18211. done
  18212. fi
  18213. ac_save_CPPFLAGS="$CPPFLAGS"
  18214. for element in $INCMBEDCRYPTO; do
  18215. haveit=
  18216. for x in $CPPFLAGS; do
  18217. acl_save_prefix="$prefix"
  18218. prefix="$acl_final_prefix"
  18219. acl_save_exec_prefix="$exec_prefix"
  18220. exec_prefix="$acl_final_exec_prefix"
  18221. eval x=\"$x\"
  18222. exec_prefix="$acl_save_exec_prefix"
  18223. prefix="$acl_save_prefix"
  18224. if test "X$x" = "X$element"; then
  18225. haveit=yes
  18226. break
  18227. fi
  18228. done
  18229. if test -z "$haveit"; then
  18230. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  18231. fi
  18232. done
  18233. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libmbedcrypto" >&5
  18234. printf %s "checking for libmbedcrypto... " >&6; }
  18235. if test ${ac_cv_libmbedcrypto+y}
  18236. then :
  18237. printf %s "(cached) " >&6
  18238. else $as_nop
  18239. ac_save_LIBS="$LIBS"
  18240. LIBS="$LIBS $LIBMBEDCRYPTO"
  18241. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18242. /* end confdefs.h. */
  18243. #include <mbedtls/version.h>
  18244. int
  18245. main (void)
  18246. {
  18247. ;
  18248. return 0;
  18249. }
  18250. _ACEOF
  18251. if ac_fn_c_try_link "$LINENO"
  18252. then :
  18253. ac_cv_libmbedcrypto=yes
  18254. else $as_nop
  18255. ac_cv_libmbedcrypto=no
  18256. fi
  18257. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18258. conftest$ac_exeext conftest.$ac_ext
  18259. LIBS="$ac_save_LIBS"
  18260. fi
  18261. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libmbedcrypto" >&5
  18262. printf "%s\n" "$ac_cv_libmbedcrypto" >&6; }
  18263. if test "$ac_cv_libmbedcrypto" = yes; then
  18264. HAVE_LIBMBEDCRYPTO=yes
  18265. printf "%s\n" "#define HAVE_LIBMBEDCRYPTO 1" >>confdefs.h
  18266. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libmbedcrypto" >&5
  18267. printf %s "checking how to link with libmbedcrypto... " >&6; }
  18268. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBMBEDCRYPTO" >&5
  18269. printf "%s\n" "$LIBMBEDCRYPTO" >&6; }
  18270. else
  18271. HAVE_LIBMBEDCRYPTO=no
  18272. CPPFLAGS="$ac_save_CPPFLAGS"
  18273. LIBMBEDCRYPTO=
  18274. LTLIBMBEDCRYPTO=
  18275. LIBMBEDCRYPTO_PREFIX=
  18276. fi
  18277. LDFLAGS="$libssh2_save_LDFLAGS"
  18278. if test "$ac_cv_libmbedcrypto" = "yes"; then :
  18279. printf "%s\n" "#define LIBSSH2_MBEDTLS 1" >>confdefs.h
  18280. LIBS="$LIBS -lmbedcrypto"
  18281. found_crypto="mbedtls"
  18282. support_clear_memory=yes
  18283. else
  18284. CPPFLAGS="$libssh2_save_CPPFLAGS"
  18285. fi
  18286. test "$found_crypto" = "none" &&
  18287. crypto_errors="${crypto_errors}No mbedtls crypto library found!
  18288. "
  18289. fi
  18290. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
  18291. printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
  18292. if test ${ac_cv_c_undeclared_builtin_options+y}
  18293. then :
  18294. printf %s "(cached) " >&6
  18295. else $as_nop
  18296. ac_save_CFLAGS=$CFLAGS
  18297. ac_cv_c_undeclared_builtin_options='cannot detect'
  18298. for ac_arg in '' -fno-builtin; do
  18299. CFLAGS="$ac_save_CFLAGS $ac_arg"
  18300. # This test program should *not* compile successfully.
  18301. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18302. /* end confdefs.h. */
  18303. int
  18304. main (void)
  18305. {
  18306. (void) strchr;
  18307. ;
  18308. return 0;
  18309. }
  18310. _ACEOF
  18311. if ac_fn_c_try_compile "$LINENO"
  18312. then :
  18313. else $as_nop
  18314. # This test program should compile successfully.
  18315. # No library function is consistently available on
  18316. # freestanding implementations, so test against a dummy
  18317. # declaration. Include always-available headers on the
  18318. # off chance that they somehow elicit warnings.
  18319. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18320. /* end confdefs.h. */
  18321. #include <float.h>
  18322. #include <limits.h>
  18323. #include <stdarg.h>
  18324. #include <stddef.h>
  18325. extern void ac_decl (int, char *);
  18326. int
  18327. main (void)
  18328. {
  18329. (void) ac_decl (0, (char *) 0);
  18330. (void) ac_decl;
  18331. ;
  18332. return 0;
  18333. }
  18334. _ACEOF
  18335. if ac_fn_c_try_compile "$LINENO"
  18336. then :
  18337. if test x"$ac_arg" = x
  18338. then :
  18339. ac_cv_c_undeclared_builtin_options='none needed'
  18340. else $as_nop
  18341. ac_cv_c_undeclared_builtin_options=$ac_arg
  18342. fi
  18343. break
  18344. fi
  18345. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18346. fi
  18347. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18348. done
  18349. CFLAGS=$ac_save_CFLAGS
  18350. fi
  18351. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
  18352. printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
  18353. case $ac_cv_c_undeclared_builtin_options in #(
  18354. 'cannot detect') :
  18355. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  18356. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  18357. as_fn_error $? "cannot make $CC report undeclared builtins
  18358. See \`config.log' for more details" "$LINENO" 5; } ;; #(
  18359. 'none needed') :
  18360. ac_c_undeclared_builtin_options='' ;; #(
  18361. *) :
  18362. ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
  18363. esac
  18364. if test "$use_crypto" = "auto" && test "$found_crypto" = "none" || test "$use_crypto" = "wincng"; then
  18365. # Look for Windows Cryptography API: Next Generation
  18366. ac_fn_c_check_header_compile "$LINENO" "ntdef.h" "ac_cv_header_ntdef_h" "#include <windows.h>
  18367. "
  18368. if test "x$ac_cv_header_ntdef_h" = xyes
  18369. then :
  18370. printf "%s\n" "#define HAVE_NTDEF_H 1" >>confdefs.h
  18371. fi
  18372. ac_fn_c_check_header_compile "$LINENO" "ntstatus.h" "ac_cv_header_ntstatus_h" "#include <windows.h>
  18373. "
  18374. if test "x$ac_cv_header_ntstatus_h" = xyes
  18375. then :
  18376. printf "%s\n" "#define HAVE_NTSTATUS_H 1" >>confdefs.h
  18377. fi
  18378. ac_fn_check_decl "$LINENO" "SecureZeroMemory" "ac_cv_have_decl_SecureZeroMemory" "#include <windows.h>
  18379. " "$ac_c_undeclared_builtin_options" "CFLAGS"
  18380. if test "x$ac_cv_have_decl_SecureZeroMemory" = xyes
  18381. then :
  18382. ac_have_decl=1
  18383. else $as_nop
  18384. ac_have_decl=0
  18385. fi
  18386. printf "%s\n" "#define HAVE_DECL_SECUREZEROMEMORY $ac_have_decl" >>confdefs.h
  18387. libssh2_save_CPPFLAGS="$CPPFLAGS"
  18388. libssh2_save_LDFLAGS="$LDFLAGS"
  18389. if test "${with_libcrypt32_prefix+set}" = set; then
  18390. CPPFLAGS="$CPPFLAGS${CPPFLAGS:+ }-I${with_libcrypt32_prefix}/include"
  18391. LDFLAGS="$LDFLAGS${LDFLAGS:+ }-L${with_libcrypt32_prefix}/lib"
  18392. fi
  18393. use_additional=yes
  18394. acl_save_prefix="$prefix"
  18395. prefix="$acl_final_prefix"
  18396. acl_save_exec_prefix="$exec_prefix"
  18397. exec_prefix="$acl_final_exec_prefix"
  18398. eval additional_includedir=\"$includedir\"
  18399. eval additional_libdir=\"$libdir\"
  18400. exec_prefix="$acl_save_exec_prefix"
  18401. prefix="$acl_save_prefix"
  18402. # Check whether --with-libcrypt32-prefix was given.
  18403. if test ${with_libcrypt32_prefix+y}
  18404. then :
  18405. withval=$with_libcrypt32_prefix;
  18406. if test "X$withval" = "Xno"; then
  18407. use_additional=no
  18408. else
  18409. if test "X$withval" = "X"; then
  18410. acl_save_prefix="$prefix"
  18411. prefix="$acl_final_prefix"
  18412. acl_save_exec_prefix="$exec_prefix"
  18413. exec_prefix="$acl_final_exec_prefix"
  18414. eval additional_includedir=\"$includedir\"
  18415. eval additional_libdir=\"$libdir\"
  18416. exec_prefix="$acl_save_exec_prefix"
  18417. prefix="$acl_save_prefix"
  18418. else
  18419. additional_includedir="$withval/include"
  18420. additional_libdir="$withval/$acl_libdirstem"
  18421. fi
  18422. fi
  18423. fi
  18424. LIBCRYPT32=
  18425. LTLIBCRYPT32=
  18426. INCCRYPT32=
  18427. LIBCRYPT32_PREFIX=
  18428. rpathdirs=
  18429. ltrpathdirs=
  18430. names_already_handled=
  18431. names_next_round='crypt32 '
  18432. while test -n "$names_next_round"; do
  18433. names_this_round="$names_next_round"
  18434. names_next_round=
  18435. for name in $names_this_round; do
  18436. already_handled=
  18437. for n in $names_already_handled; do
  18438. if test "$n" = "$name"; then
  18439. already_handled=yes
  18440. break
  18441. fi
  18442. done
  18443. if test -z "$already_handled"; then
  18444. names_already_handled="$names_already_handled $name"
  18445. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  18446. eval value=\"\$HAVE_LIB$uppername\"
  18447. if test -n "$value"; then
  18448. if test "$value" = yes; then
  18449. eval value=\"\$LIB$uppername\"
  18450. test -z "$value" || LIBCRYPT32="${LIBCRYPT32}${LIBCRYPT32:+ }$value"
  18451. eval value=\"\$LTLIB$uppername\"
  18452. test -z "$value" || LTLIBCRYPT32="${LTLIBCRYPT32}${LTLIBCRYPT32:+ }$value"
  18453. else
  18454. :
  18455. fi
  18456. else
  18457. found_dir=
  18458. found_la=
  18459. found_so=
  18460. found_a=
  18461. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  18462. if test -n "$acl_shlibext"; then
  18463. shrext=".$acl_shlibext" # typically: shrext=.so
  18464. else
  18465. shrext=
  18466. fi
  18467. if test $use_additional = yes; then
  18468. dir="$additional_libdir"
  18469. if test -n "$acl_shlibext"; then
  18470. if test -f "$dir/$libname$shrext"; then
  18471. found_dir="$dir"
  18472. found_so="$dir/$libname$shrext"
  18473. else
  18474. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  18475. ver=`(cd "$dir" && \
  18476. for f in "$libname$shrext".*; do echo "$f"; done \
  18477. | sed -e "s,^$libname$shrext\\\\.,," \
  18478. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  18479. | sed 1q ) 2>/dev/null`
  18480. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  18481. found_dir="$dir"
  18482. found_so="$dir/$libname$shrext.$ver"
  18483. fi
  18484. else
  18485. eval library_names=\"$acl_library_names_spec\"
  18486. for f in $library_names; do
  18487. if test -f "$dir/$f"; then
  18488. found_dir="$dir"
  18489. found_so="$dir/$f"
  18490. break
  18491. fi
  18492. done
  18493. fi
  18494. fi
  18495. fi
  18496. if test "X$found_dir" = "X"; then
  18497. if test -f "$dir/$libname.$acl_libext"; then
  18498. found_dir="$dir"
  18499. found_a="$dir/$libname.$acl_libext"
  18500. fi
  18501. fi
  18502. if test "X$found_dir" != "X"; then
  18503. if test -f "$dir/$libname.la"; then
  18504. found_la="$dir/$libname.la"
  18505. fi
  18506. fi
  18507. fi
  18508. if test "X$found_dir" = "X"; then
  18509. for x in $LDFLAGS $LTLIBCRYPT32; do
  18510. acl_save_prefix="$prefix"
  18511. prefix="$acl_final_prefix"
  18512. acl_save_exec_prefix="$exec_prefix"
  18513. exec_prefix="$acl_final_exec_prefix"
  18514. eval x=\"$x\"
  18515. exec_prefix="$acl_save_exec_prefix"
  18516. prefix="$acl_save_prefix"
  18517. case "$x" in
  18518. -L*)
  18519. dir=`echo "X$x" | sed -e 's/^X-L//'`
  18520. if test -n "$acl_shlibext"; then
  18521. if test -f "$dir/$libname$shrext"; then
  18522. found_dir="$dir"
  18523. found_so="$dir/$libname$shrext"
  18524. else
  18525. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  18526. ver=`(cd "$dir" && \
  18527. for f in "$libname$shrext".*; do echo "$f"; done \
  18528. | sed -e "s,^$libname$shrext\\\\.,," \
  18529. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  18530. | sed 1q ) 2>/dev/null`
  18531. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  18532. found_dir="$dir"
  18533. found_so="$dir/$libname$shrext.$ver"
  18534. fi
  18535. else
  18536. eval library_names=\"$acl_library_names_spec\"
  18537. for f in $library_names; do
  18538. if test -f "$dir/$f"; then
  18539. found_dir="$dir"
  18540. found_so="$dir/$f"
  18541. break
  18542. fi
  18543. done
  18544. fi
  18545. fi
  18546. fi
  18547. if test "X$found_dir" = "X"; then
  18548. if test -f "$dir/$libname.$acl_libext"; then
  18549. found_dir="$dir"
  18550. found_a="$dir/$libname.$acl_libext"
  18551. fi
  18552. fi
  18553. if test "X$found_dir" != "X"; then
  18554. if test -f "$dir/$libname.la"; then
  18555. found_la="$dir/$libname.la"
  18556. fi
  18557. fi
  18558. ;;
  18559. esac
  18560. if test "X$found_dir" != "X"; then
  18561. break
  18562. fi
  18563. done
  18564. fi
  18565. if test "X$found_dir" != "X"; then
  18566. LTLIBCRYPT32="${LTLIBCRYPT32}${LTLIBCRYPT32:+ }-L$found_dir -l$name"
  18567. if test "X$found_so" != "X"; then
  18568. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  18569. LIBCRYPT32="${LIBCRYPT32}${LIBCRYPT32:+ }$found_so"
  18570. else
  18571. haveit=
  18572. for x in $ltrpathdirs; do
  18573. if test "X$x" = "X$found_dir"; then
  18574. haveit=yes
  18575. break
  18576. fi
  18577. done
  18578. if test -z "$haveit"; then
  18579. ltrpathdirs="$ltrpathdirs $found_dir"
  18580. fi
  18581. if test "$acl_hardcode_direct" = yes; then
  18582. LIBCRYPT32="${LIBCRYPT32}${LIBCRYPT32:+ }$found_so"
  18583. else
  18584. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  18585. LIBCRYPT32="${LIBCRYPT32}${LIBCRYPT32:+ }$found_so"
  18586. haveit=
  18587. for x in $rpathdirs; do
  18588. if test "X$x" = "X$found_dir"; then
  18589. haveit=yes
  18590. break
  18591. fi
  18592. done
  18593. if test -z "$haveit"; then
  18594. rpathdirs="$rpathdirs $found_dir"
  18595. fi
  18596. else
  18597. haveit=
  18598. for x in $LDFLAGS $LIBCRYPT32; do
  18599. acl_save_prefix="$prefix"
  18600. prefix="$acl_final_prefix"
  18601. acl_save_exec_prefix="$exec_prefix"
  18602. exec_prefix="$acl_final_exec_prefix"
  18603. eval x=\"$x\"
  18604. exec_prefix="$acl_save_exec_prefix"
  18605. prefix="$acl_save_prefix"
  18606. if test "X$x" = "X-L$found_dir"; then
  18607. haveit=yes
  18608. break
  18609. fi
  18610. done
  18611. if test -z "$haveit"; then
  18612. LIBCRYPT32="${LIBCRYPT32}${LIBCRYPT32:+ }-L$found_dir"
  18613. fi
  18614. if test "$acl_hardcode_minus_L" != no; then
  18615. LIBCRYPT32="${LIBCRYPT32}${LIBCRYPT32:+ }$found_so"
  18616. else
  18617. LIBCRYPT32="${LIBCRYPT32}${LIBCRYPT32:+ }-l$name"
  18618. fi
  18619. fi
  18620. fi
  18621. fi
  18622. else
  18623. if test "X$found_a" != "X"; then
  18624. LIBCRYPT32="${LIBCRYPT32}${LIBCRYPT32:+ }$found_a"
  18625. else
  18626. LIBCRYPT32="${LIBCRYPT32}${LIBCRYPT32:+ }-L$found_dir -l$name"
  18627. fi
  18628. fi
  18629. additional_includedir=
  18630. case "$found_dir" in
  18631. */$acl_libdirstem | */$acl_libdirstem/)
  18632. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  18633. LIBCRYPT32_PREFIX="$basedir"
  18634. additional_includedir="$basedir/include"
  18635. ;;
  18636. esac
  18637. if test "X$additional_includedir" != "X"; then
  18638. if test "X$additional_includedir" != "X/usr/include"; then
  18639. haveit=
  18640. if test "X$additional_includedir" = "X/usr/local/include"; then
  18641. if test -n "$GCC"; then
  18642. case $host_os in
  18643. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  18644. esac
  18645. fi
  18646. fi
  18647. if test -z "$haveit"; then
  18648. for x in $CPPFLAGS $INCCRYPT32; do
  18649. acl_save_prefix="$prefix"
  18650. prefix="$acl_final_prefix"
  18651. acl_save_exec_prefix="$exec_prefix"
  18652. exec_prefix="$acl_final_exec_prefix"
  18653. eval x=\"$x\"
  18654. exec_prefix="$acl_save_exec_prefix"
  18655. prefix="$acl_save_prefix"
  18656. if test "X$x" = "X-I$additional_includedir"; then
  18657. haveit=yes
  18658. break
  18659. fi
  18660. done
  18661. if test -z "$haveit"; then
  18662. if test -d "$additional_includedir"; then
  18663. INCCRYPT32="${INCCRYPT32}${INCCRYPT32:+ }-I$additional_includedir"
  18664. fi
  18665. fi
  18666. fi
  18667. fi
  18668. fi
  18669. if test -n "$found_la"; then
  18670. save_libdir="$libdir"
  18671. case "$found_la" in
  18672. */* | *\\*) . "$found_la" ;;
  18673. *) . "./$found_la" ;;
  18674. esac
  18675. libdir="$save_libdir"
  18676. for dep in $dependency_libs; do
  18677. case "$dep" in
  18678. -L*)
  18679. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  18680. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  18681. haveit=
  18682. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  18683. if test -n "$GCC"; then
  18684. case $host_os in
  18685. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  18686. esac
  18687. fi
  18688. fi
  18689. if test -z "$haveit"; then
  18690. haveit=
  18691. for x in $LDFLAGS $LIBCRYPT32; do
  18692. acl_save_prefix="$prefix"
  18693. prefix="$acl_final_prefix"
  18694. acl_save_exec_prefix="$exec_prefix"
  18695. exec_prefix="$acl_final_exec_prefix"
  18696. eval x=\"$x\"
  18697. exec_prefix="$acl_save_exec_prefix"
  18698. prefix="$acl_save_prefix"
  18699. if test "X$x" = "X-L$additional_libdir"; then
  18700. haveit=yes
  18701. break
  18702. fi
  18703. done
  18704. if test -z "$haveit"; then
  18705. if test -d "$additional_libdir"; then
  18706. LIBCRYPT32="${LIBCRYPT32}${LIBCRYPT32:+ }-L$additional_libdir"
  18707. fi
  18708. fi
  18709. haveit=
  18710. for x in $LDFLAGS $LTLIBCRYPT32; do
  18711. acl_save_prefix="$prefix"
  18712. prefix="$acl_final_prefix"
  18713. acl_save_exec_prefix="$exec_prefix"
  18714. exec_prefix="$acl_final_exec_prefix"
  18715. eval x=\"$x\"
  18716. exec_prefix="$acl_save_exec_prefix"
  18717. prefix="$acl_save_prefix"
  18718. if test "X$x" = "X-L$additional_libdir"; then
  18719. haveit=yes
  18720. break
  18721. fi
  18722. done
  18723. if test -z "$haveit"; then
  18724. if test -d "$additional_libdir"; then
  18725. LTLIBCRYPT32="${LTLIBCRYPT32}${LTLIBCRYPT32:+ }-L$additional_libdir"
  18726. fi
  18727. fi
  18728. fi
  18729. fi
  18730. ;;
  18731. -R*)
  18732. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  18733. if test "$enable_rpath" != no; then
  18734. haveit=
  18735. for x in $rpathdirs; do
  18736. if test "X$x" = "X$dir"; then
  18737. haveit=yes
  18738. break
  18739. fi
  18740. done
  18741. if test -z "$haveit"; then
  18742. rpathdirs="$rpathdirs $dir"
  18743. fi
  18744. haveit=
  18745. for x in $ltrpathdirs; do
  18746. if test "X$x" = "X$dir"; then
  18747. haveit=yes
  18748. break
  18749. fi
  18750. done
  18751. if test -z "$haveit"; then
  18752. ltrpathdirs="$ltrpathdirs $dir"
  18753. fi
  18754. fi
  18755. ;;
  18756. -l*)
  18757. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  18758. ;;
  18759. *.la)
  18760. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  18761. ;;
  18762. *)
  18763. LIBCRYPT32="${LIBCRYPT32}${LIBCRYPT32:+ }$dep"
  18764. LTLIBCRYPT32="${LTLIBCRYPT32}${LTLIBCRYPT32:+ }$dep"
  18765. ;;
  18766. esac
  18767. done
  18768. fi
  18769. else
  18770. LIBCRYPT32="${LIBCRYPT32}${LIBCRYPT32:+ }-l$name"
  18771. LTLIBCRYPT32="${LTLIBCRYPT32}${LTLIBCRYPT32:+ }-l$name"
  18772. fi
  18773. fi
  18774. fi
  18775. done
  18776. done
  18777. if test "X$rpathdirs" != "X"; then
  18778. if test -n "$acl_hardcode_libdir_separator"; then
  18779. alldirs=
  18780. for found_dir in $rpathdirs; do
  18781. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  18782. done
  18783. acl_save_libdir="$libdir"
  18784. libdir="$alldirs"
  18785. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  18786. libdir="$acl_save_libdir"
  18787. LIBCRYPT32="${LIBCRYPT32}${LIBCRYPT32:+ }$flag"
  18788. else
  18789. for found_dir in $rpathdirs; do
  18790. acl_save_libdir="$libdir"
  18791. libdir="$found_dir"
  18792. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  18793. libdir="$acl_save_libdir"
  18794. LIBCRYPT32="${LIBCRYPT32}${LIBCRYPT32:+ }$flag"
  18795. done
  18796. fi
  18797. fi
  18798. if test "X$ltrpathdirs" != "X"; then
  18799. for found_dir in $ltrpathdirs; do
  18800. LTLIBCRYPT32="${LTLIBCRYPT32}${LTLIBCRYPT32:+ }-R$found_dir"
  18801. done
  18802. fi
  18803. ac_save_CPPFLAGS="$CPPFLAGS"
  18804. for element in $INCCRYPT32; do
  18805. haveit=
  18806. for x in $CPPFLAGS; do
  18807. acl_save_prefix="$prefix"
  18808. prefix="$acl_final_prefix"
  18809. acl_save_exec_prefix="$exec_prefix"
  18810. exec_prefix="$acl_final_exec_prefix"
  18811. eval x=\"$x\"
  18812. exec_prefix="$acl_save_exec_prefix"
  18813. prefix="$acl_save_prefix"
  18814. if test "X$x" = "X$element"; then
  18815. haveit=yes
  18816. break
  18817. fi
  18818. done
  18819. if test -z "$haveit"; then
  18820. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  18821. fi
  18822. done
  18823. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcrypt32" >&5
  18824. printf %s "checking for libcrypt32... " >&6; }
  18825. if test ${ac_cv_libcrypt32+y}
  18826. then :
  18827. printf %s "(cached) " >&6
  18828. else $as_nop
  18829. ac_save_LIBS="$LIBS"
  18830. LIBS="$LIBS $LIBCRYPT32"
  18831. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18832. /* end confdefs.h. */
  18833. #include <windows.h>
  18834. #include <wincrypt.h>
  18835. int
  18836. main (void)
  18837. {
  18838. ;
  18839. return 0;
  18840. }
  18841. _ACEOF
  18842. if ac_fn_c_try_link "$LINENO"
  18843. then :
  18844. ac_cv_libcrypt32=yes
  18845. else $as_nop
  18846. ac_cv_libcrypt32=no
  18847. fi
  18848. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18849. conftest$ac_exeext conftest.$ac_ext
  18850. LIBS="$ac_save_LIBS"
  18851. fi
  18852. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libcrypt32" >&5
  18853. printf "%s\n" "$ac_cv_libcrypt32" >&6; }
  18854. if test "$ac_cv_libcrypt32" = yes; then
  18855. HAVE_LIBCRYPT32=yes
  18856. printf "%s\n" "#define HAVE_LIBCRYPT32 1" >>confdefs.h
  18857. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libcrypt32" >&5
  18858. printf %s "checking how to link with libcrypt32... " >&6; }
  18859. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBCRYPT32" >&5
  18860. printf "%s\n" "$LIBCRYPT32" >&6; }
  18861. else
  18862. HAVE_LIBCRYPT32=no
  18863. CPPFLAGS="$ac_save_CPPFLAGS"
  18864. LIBCRYPT32=
  18865. LTLIBCRYPT32=
  18866. LIBCRYPT32_PREFIX=
  18867. fi
  18868. LDFLAGS="$libssh2_save_LDFLAGS"
  18869. if test "$ac_cv_libcrypt32" = "yes"; then :
  18870. else
  18871. CPPFLAGS="$libssh2_save_CPPFLAGS"
  18872. fi
  18873. libssh2_save_CPPFLAGS="$CPPFLAGS"
  18874. libssh2_save_LDFLAGS="$LDFLAGS"
  18875. if test "${with_libbcrypt_prefix+set}" = set; then
  18876. CPPFLAGS="$CPPFLAGS${CPPFLAGS:+ }-I${with_libbcrypt_prefix}/include"
  18877. LDFLAGS="$LDFLAGS${LDFLAGS:+ }-L${with_libbcrypt_prefix}/lib"
  18878. fi
  18879. use_additional=yes
  18880. acl_save_prefix="$prefix"
  18881. prefix="$acl_final_prefix"
  18882. acl_save_exec_prefix="$exec_prefix"
  18883. exec_prefix="$acl_final_exec_prefix"
  18884. eval additional_includedir=\"$includedir\"
  18885. eval additional_libdir=\"$libdir\"
  18886. exec_prefix="$acl_save_exec_prefix"
  18887. prefix="$acl_save_prefix"
  18888. # Check whether --with-libbcrypt-prefix was given.
  18889. if test ${with_libbcrypt_prefix+y}
  18890. then :
  18891. withval=$with_libbcrypt_prefix;
  18892. if test "X$withval" = "Xno"; then
  18893. use_additional=no
  18894. else
  18895. if test "X$withval" = "X"; then
  18896. acl_save_prefix="$prefix"
  18897. prefix="$acl_final_prefix"
  18898. acl_save_exec_prefix="$exec_prefix"
  18899. exec_prefix="$acl_final_exec_prefix"
  18900. eval additional_includedir=\"$includedir\"
  18901. eval additional_libdir=\"$libdir\"
  18902. exec_prefix="$acl_save_exec_prefix"
  18903. prefix="$acl_save_prefix"
  18904. else
  18905. additional_includedir="$withval/include"
  18906. additional_libdir="$withval/$acl_libdirstem"
  18907. fi
  18908. fi
  18909. fi
  18910. LIBBCRYPT=
  18911. LTLIBBCRYPT=
  18912. INCBCRYPT=
  18913. LIBBCRYPT_PREFIX=
  18914. rpathdirs=
  18915. ltrpathdirs=
  18916. names_already_handled=
  18917. names_next_round='bcrypt '
  18918. while test -n "$names_next_round"; do
  18919. names_this_round="$names_next_round"
  18920. names_next_round=
  18921. for name in $names_this_round; do
  18922. already_handled=
  18923. for n in $names_already_handled; do
  18924. if test "$n" = "$name"; then
  18925. already_handled=yes
  18926. break
  18927. fi
  18928. done
  18929. if test -z "$already_handled"; then
  18930. names_already_handled="$names_already_handled $name"
  18931. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  18932. eval value=\"\$HAVE_LIB$uppername\"
  18933. if test -n "$value"; then
  18934. if test "$value" = yes; then
  18935. eval value=\"\$LIB$uppername\"
  18936. test -z "$value" || LIBBCRYPT="${LIBBCRYPT}${LIBBCRYPT:+ }$value"
  18937. eval value=\"\$LTLIB$uppername\"
  18938. test -z "$value" || LTLIBBCRYPT="${LTLIBBCRYPT}${LTLIBBCRYPT:+ }$value"
  18939. else
  18940. :
  18941. fi
  18942. else
  18943. found_dir=
  18944. found_la=
  18945. found_so=
  18946. found_a=
  18947. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  18948. if test -n "$acl_shlibext"; then
  18949. shrext=".$acl_shlibext" # typically: shrext=.so
  18950. else
  18951. shrext=
  18952. fi
  18953. if test $use_additional = yes; then
  18954. dir="$additional_libdir"
  18955. if test -n "$acl_shlibext"; then
  18956. if test -f "$dir/$libname$shrext"; then
  18957. found_dir="$dir"
  18958. found_so="$dir/$libname$shrext"
  18959. else
  18960. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  18961. ver=`(cd "$dir" && \
  18962. for f in "$libname$shrext".*; do echo "$f"; done \
  18963. | sed -e "s,^$libname$shrext\\\\.,," \
  18964. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  18965. | sed 1q ) 2>/dev/null`
  18966. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  18967. found_dir="$dir"
  18968. found_so="$dir/$libname$shrext.$ver"
  18969. fi
  18970. else
  18971. eval library_names=\"$acl_library_names_spec\"
  18972. for f in $library_names; do
  18973. if test -f "$dir/$f"; then
  18974. found_dir="$dir"
  18975. found_so="$dir/$f"
  18976. break
  18977. fi
  18978. done
  18979. fi
  18980. fi
  18981. fi
  18982. if test "X$found_dir" = "X"; then
  18983. if test -f "$dir/$libname.$acl_libext"; then
  18984. found_dir="$dir"
  18985. found_a="$dir/$libname.$acl_libext"
  18986. fi
  18987. fi
  18988. if test "X$found_dir" != "X"; then
  18989. if test -f "$dir/$libname.la"; then
  18990. found_la="$dir/$libname.la"
  18991. fi
  18992. fi
  18993. fi
  18994. if test "X$found_dir" = "X"; then
  18995. for x in $LDFLAGS $LTLIBBCRYPT; do
  18996. acl_save_prefix="$prefix"
  18997. prefix="$acl_final_prefix"
  18998. acl_save_exec_prefix="$exec_prefix"
  18999. exec_prefix="$acl_final_exec_prefix"
  19000. eval x=\"$x\"
  19001. exec_prefix="$acl_save_exec_prefix"
  19002. prefix="$acl_save_prefix"
  19003. case "$x" in
  19004. -L*)
  19005. dir=`echo "X$x" | sed -e 's/^X-L//'`
  19006. if test -n "$acl_shlibext"; then
  19007. if test -f "$dir/$libname$shrext"; then
  19008. found_dir="$dir"
  19009. found_so="$dir/$libname$shrext"
  19010. else
  19011. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  19012. ver=`(cd "$dir" && \
  19013. for f in "$libname$shrext".*; do echo "$f"; done \
  19014. | sed -e "s,^$libname$shrext\\\\.,," \
  19015. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  19016. | sed 1q ) 2>/dev/null`
  19017. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  19018. found_dir="$dir"
  19019. found_so="$dir/$libname$shrext.$ver"
  19020. fi
  19021. else
  19022. eval library_names=\"$acl_library_names_spec\"
  19023. for f in $library_names; do
  19024. if test -f "$dir/$f"; then
  19025. found_dir="$dir"
  19026. found_so="$dir/$f"
  19027. break
  19028. fi
  19029. done
  19030. fi
  19031. fi
  19032. fi
  19033. if test "X$found_dir" = "X"; then
  19034. if test -f "$dir/$libname.$acl_libext"; then
  19035. found_dir="$dir"
  19036. found_a="$dir/$libname.$acl_libext"
  19037. fi
  19038. fi
  19039. if test "X$found_dir" != "X"; then
  19040. if test -f "$dir/$libname.la"; then
  19041. found_la="$dir/$libname.la"
  19042. fi
  19043. fi
  19044. ;;
  19045. esac
  19046. if test "X$found_dir" != "X"; then
  19047. break
  19048. fi
  19049. done
  19050. fi
  19051. if test "X$found_dir" != "X"; then
  19052. LTLIBBCRYPT="${LTLIBBCRYPT}${LTLIBBCRYPT:+ }-L$found_dir -l$name"
  19053. if test "X$found_so" != "X"; then
  19054. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  19055. LIBBCRYPT="${LIBBCRYPT}${LIBBCRYPT:+ }$found_so"
  19056. else
  19057. haveit=
  19058. for x in $ltrpathdirs; do
  19059. if test "X$x" = "X$found_dir"; then
  19060. haveit=yes
  19061. break
  19062. fi
  19063. done
  19064. if test -z "$haveit"; then
  19065. ltrpathdirs="$ltrpathdirs $found_dir"
  19066. fi
  19067. if test "$acl_hardcode_direct" = yes; then
  19068. LIBBCRYPT="${LIBBCRYPT}${LIBBCRYPT:+ }$found_so"
  19069. else
  19070. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  19071. LIBBCRYPT="${LIBBCRYPT}${LIBBCRYPT:+ }$found_so"
  19072. haveit=
  19073. for x in $rpathdirs; do
  19074. if test "X$x" = "X$found_dir"; then
  19075. haveit=yes
  19076. break
  19077. fi
  19078. done
  19079. if test -z "$haveit"; then
  19080. rpathdirs="$rpathdirs $found_dir"
  19081. fi
  19082. else
  19083. haveit=
  19084. for x in $LDFLAGS $LIBBCRYPT; do
  19085. acl_save_prefix="$prefix"
  19086. prefix="$acl_final_prefix"
  19087. acl_save_exec_prefix="$exec_prefix"
  19088. exec_prefix="$acl_final_exec_prefix"
  19089. eval x=\"$x\"
  19090. exec_prefix="$acl_save_exec_prefix"
  19091. prefix="$acl_save_prefix"
  19092. if test "X$x" = "X-L$found_dir"; then
  19093. haveit=yes
  19094. break
  19095. fi
  19096. done
  19097. if test -z "$haveit"; then
  19098. LIBBCRYPT="${LIBBCRYPT}${LIBBCRYPT:+ }-L$found_dir"
  19099. fi
  19100. if test "$acl_hardcode_minus_L" != no; then
  19101. LIBBCRYPT="${LIBBCRYPT}${LIBBCRYPT:+ }$found_so"
  19102. else
  19103. LIBBCRYPT="${LIBBCRYPT}${LIBBCRYPT:+ }-l$name"
  19104. fi
  19105. fi
  19106. fi
  19107. fi
  19108. else
  19109. if test "X$found_a" != "X"; then
  19110. LIBBCRYPT="${LIBBCRYPT}${LIBBCRYPT:+ }$found_a"
  19111. else
  19112. LIBBCRYPT="${LIBBCRYPT}${LIBBCRYPT:+ }-L$found_dir -l$name"
  19113. fi
  19114. fi
  19115. additional_includedir=
  19116. case "$found_dir" in
  19117. */$acl_libdirstem | */$acl_libdirstem/)
  19118. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  19119. LIBBCRYPT_PREFIX="$basedir"
  19120. additional_includedir="$basedir/include"
  19121. ;;
  19122. esac
  19123. if test "X$additional_includedir" != "X"; then
  19124. if test "X$additional_includedir" != "X/usr/include"; then
  19125. haveit=
  19126. if test "X$additional_includedir" = "X/usr/local/include"; then
  19127. if test -n "$GCC"; then
  19128. case $host_os in
  19129. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  19130. esac
  19131. fi
  19132. fi
  19133. if test -z "$haveit"; then
  19134. for x in $CPPFLAGS $INCBCRYPT; do
  19135. acl_save_prefix="$prefix"
  19136. prefix="$acl_final_prefix"
  19137. acl_save_exec_prefix="$exec_prefix"
  19138. exec_prefix="$acl_final_exec_prefix"
  19139. eval x=\"$x\"
  19140. exec_prefix="$acl_save_exec_prefix"
  19141. prefix="$acl_save_prefix"
  19142. if test "X$x" = "X-I$additional_includedir"; then
  19143. haveit=yes
  19144. break
  19145. fi
  19146. done
  19147. if test -z "$haveit"; then
  19148. if test -d "$additional_includedir"; then
  19149. INCBCRYPT="${INCBCRYPT}${INCBCRYPT:+ }-I$additional_includedir"
  19150. fi
  19151. fi
  19152. fi
  19153. fi
  19154. fi
  19155. if test -n "$found_la"; then
  19156. save_libdir="$libdir"
  19157. case "$found_la" in
  19158. */* | *\\*) . "$found_la" ;;
  19159. *) . "./$found_la" ;;
  19160. esac
  19161. libdir="$save_libdir"
  19162. for dep in $dependency_libs; do
  19163. case "$dep" in
  19164. -L*)
  19165. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  19166. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  19167. haveit=
  19168. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  19169. if test -n "$GCC"; then
  19170. case $host_os in
  19171. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  19172. esac
  19173. fi
  19174. fi
  19175. if test -z "$haveit"; then
  19176. haveit=
  19177. for x in $LDFLAGS $LIBBCRYPT; do
  19178. acl_save_prefix="$prefix"
  19179. prefix="$acl_final_prefix"
  19180. acl_save_exec_prefix="$exec_prefix"
  19181. exec_prefix="$acl_final_exec_prefix"
  19182. eval x=\"$x\"
  19183. exec_prefix="$acl_save_exec_prefix"
  19184. prefix="$acl_save_prefix"
  19185. if test "X$x" = "X-L$additional_libdir"; then
  19186. haveit=yes
  19187. break
  19188. fi
  19189. done
  19190. if test -z "$haveit"; then
  19191. if test -d "$additional_libdir"; then
  19192. LIBBCRYPT="${LIBBCRYPT}${LIBBCRYPT:+ }-L$additional_libdir"
  19193. fi
  19194. fi
  19195. haveit=
  19196. for x in $LDFLAGS $LTLIBBCRYPT; do
  19197. acl_save_prefix="$prefix"
  19198. prefix="$acl_final_prefix"
  19199. acl_save_exec_prefix="$exec_prefix"
  19200. exec_prefix="$acl_final_exec_prefix"
  19201. eval x=\"$x\"
  19202. exec_prefix="$acl_save_exec_prefix"
  19203. prefix="$acl_save_prefix"
  19204. if test "X$x" = "X-L$additional_libdir"; then
  19205. haveit=yes
  19206. break
  19207. fi
  19208. done
  19209. if test -z "$haveit"; then
  19210. if test -d "$additional_libdir"; then
  19211. LTLIBBCRYPT="${LTLIBBCRYPT}${LTLIBBCRYPT:+ }-L$additional_libdir"
  19212. fi
  19213. fi
  19214. fi
  19215. fi
  19216. ;;
  19217. -R*)
  19218. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  19219. if test "$enable_rpath" != no; then
  19220. haveit=
  19221. for x in $rpathdirs; do
  19222. if test "X$x" = "X$dir"; then
  19223. haveit=yes
  19224. break
  19225. fi
  19226. done
  19227. if test -z "$haveit"; then
  19228. rpathdirs="$rpathdirs $dir"
  19229. fi
  19230. haveit=
  19231. for x in $ltrpathdirs; do
  19232. if test "X$x" = "X$dir"; then
  19233. haveit=yes
  19234. break
  19235. fi
  19236. done
  19237. if test -z "$haveit"; then
  19238. ltrpathdirs="$ltrpathdirs $dir"
  19239. fi
  19240. fi
  19241. ;;
  19242. -l*)
  19243. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  19244. ;;
  19245. *.la)
  19246. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  19247. ;;
  19248. *)
  19249. LIBBCRYPT="${LIBBCRYPT}${LIBBCRYPT:+ }$dep"
  19250. LTLIBBCRYPT="${LTLIBBCRYPT}${LTLIBBCRYPT:+ }$dep"
  19251. ;;
  19252. esac
  19253. done
  19254. fi
  19255. else
  19256. LIBBCRYPT="${LIBBCRYPT}${LIBBCRYPT:+ }-l$name"
  19257. LTLIBBCRYPT="${LTLIBBCRYPT}${LTLIBBCRYPT:+ }-l$name"
  19258. fi
  19259. fi
  19260. fi
  19261. done
  19262. done
  19263. if test "X$rpathdirs" != "X"; then
  19264. if test -n "$acl_hardcode_libdir_separator"; then
  19265. alldirs=
  19266. for found_dir in $rpathdirs; do
  19267. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  19268. done
  19269. acl_save_libdir="$libdir"
  19270. libdir="$alldirs"
  19271. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  19272. libdir="$acl_save_libdir"
  19273. LIBBCRYPT="${LIBBCRYPT}${LIBBCRYPT:+ }$flag"
  19274. else
  19275. for found_dir in $rpathdirs; do
  19276. acl_save_libdir="$libdir"
  19277. libdir="$found_dir"
  19278. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  19279. libdir="$acl_save_libdir"
  19280. LIBBCRYPT="${LIBBCRYPT}${LIBBCRYPT:+ }$flag"
  19281. done
  19282. fi
  19283. fi
  19284. if test "X$ltrpathdirs" != "X"; then
  19285. for found_dir in $ltrpathdirs; do
  19286. LTLIBBCRYPT="${LTLIBBCRYPT}${LTLIBBCRYPT:+ }-R$found_dir"
  19287. done
  19288. fi
  19289. ac_save_CPPFLAGS="$CPPFLAGS"
  19290. for element in $INCBCRYPT; do
  19291. haveit=
  19292. for x in $CPPFLAGS; do
  19293. acl_save_prefix="$prefix"
  19294. prefix="$acl_final_prefix"
  19295. acl_save_exec_prefix="$exec_prefix"
  19296. exec_prefix="$acl_final_exec_prefix"
  19297. eval x=\"$x\"
  19298. exec_prefix="$acl_save_exec_prefix"
  19299. prefix="$acl_save_prefix"
  19300. if test "X$x" = "X$element"; then
  19301. haveit=yes
  19302. break
  19303. fi
  19304. done
  19305. if test -z "$haveit"; then
  19306. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  19307. fi
  19308. done
  19309. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbcrypt" >&5
  19310. printf %s "checking for libbcrypt... " >&6; }
  19311. if test ${ac_cv_libbcrypt+y}
  19312. then :
  19313. printf %s "(cached) " >&6
  19314. else $as_nop
  19315. ac_save_LIBS="$LIBS"
  19316. LIBS="$LIBS $LIBBCRYPT"
  19317. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19318. /* end confdefs.h. */
  19319. #include <windows.h>
  19320. #include <bcrypt.h>
  19321. int
  19322. main (void)
  19323. {
  19324. ;
  19325. return 0;
  19326. }
  19327. _ACEOF
  19328. if ac_fn_c_try_link "$LINENO"
  19329. then :
  19330. ac_cv_libbcrypt=yes
  19331. else $as_nop
  19332. ac_cv_libbcrypt=no
  19333. fi
  19334. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19335. conftest$ac_exeext conftest.$ac_ext
  19336. LIBS="$ac_save_LIBS"
  19337. fi
  19338. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbcrypt" >&5
  19339. printf "%s\n" "$ac_cv_libbcrypt" >&6; }
  19340. if test "$ac_cv_libbcrypt" = yes; then
  19341. HAVE_LIBBCRYPT=yes
  19342. printf "%s\n" "#define HAVE_LIBBCRYPT 1" >>confdefs.h
  19343. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libbcrypt" >&5
  19344. printf %s "checking how to link with libbcrypt... " >&6; }
  19345. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBBCRYPT" >&5
  19346. printf "%s\n" "$LIBBCRYPT" >&6; }
  19347. else
  19348. HAVE_LIBBCRYPT=no
  19349. CPPFLAGS="$ac_save_CPPFLAGS"
  19350. LIBBCRYPT=
  19351. LTLIBBCRYPT=
  19352. LIBBCRYPT_PREFIX=
  19353. fi
  19354. LDFLAGS="$libssh2_save_LDFLAGS"
  19355. if test "$ac_cv_libbcrypt" = "yes"; then :
  19356. printf "%s\n" "#define LIBSSH2_WINCNG 1" >>confdefs.h
  19357. found_crypto="wincng"
  19358. found_crypto_str="Windows Cryptography API: Next Generation"
  19359. support_clear_memory="$ac_cv_have_decl_SecureZeroMemory"
  19360. else
  19361. CPPFLAGS="$libssh2_save_CPPFLAGS"
  19362. fi
  19363. test "$found_crypto" = "none" &&
  19364. crypto_errors="${crypto_errors}No wincng crypto library found!
  19365. "
  19366. fi
  19367. ;;
  19368. yes|"")
  19369. crypto_errors="No crypto backend specified!"
  19370. ;;
  19371. *)
  19372. crypto_errors="Unknown crypto backend '${use_crypto}' specified!"
  19373. ;;
  19374. esac
  19375. if test "$found_crypto" = "none"; then
  19376. crypto_errors="${crypto_errors}
  19377. Specify --with-crypto=\$backend and/or the neccessary library search prefix.
  19378. Known crypto backends: auto, openssl, libgcrypt, mbedtls, wincng"
  19379. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ERROR: ${crypto_errors}" >&5
  19380. printf "%s\n" "$as_me: ERROR: ${crypto_errors}" >&6;}
  19381. else
  19382. test "$found_crypto_str" = "" && found_crypto_str="$found_crypto"
  19383. fi
  19384. if test "$found_crypto" = "openssl"; then
  19385. OPENSSL_TRUE=
  19386. OPENSSL_FALSE='#'
  19387. else
  19388. OPENSSL_TRUE='#'
  19389. OPENSSL_FALSE=
  19390. fi
  19391. if test "$found_crypto" = "libgcrypt"; then
  19392. LIBGCRYPT_TRUE=
  19393. LIBGCRYPT_FALSE='#'
  19394. else
  19395. LIBGCRYPT_TRUE='#'
  19396. LIBGCRYPT_FALSE=
  19397. fi
  19398. if test "$found_crypto" = "mbedtls"; then
  19399. MBEDTLS_TRUE=
  19400. MBEDTLS_FALSE='#'
  19401. else
  19402. MBEDTLS_TRUE='#'
  19403. MBEDTLS_FALSE=
  19404. fi
  19405. if test "$found_crypto" = "wincng"; then
  19406. WINCNG_TRUE=
  19407. WINCNG_FALSE='#'
  19408. else
  19409. WINCNG_TRUE='#'
  19410. WINCNG_FALSE=
  19411. fi
  19412. # libz
  19413. # Check whether --with-libz was given.
  19414. if test ${with_libz+y}
  19415. then :
  19416. withval=$with_libz; use_libz=$withval
  19417. else $as_nop
  19418. use_libz=auto
  19419. fi
  19420. found_libz=no
  19421. libz_errors=""
  19422. if test "$use_libz" != no; then
  19423. use_additional=yes
  19424. acl_save_prefix="$prefix"
  19425. prefix="$acl_final_prefix"
  19426. acl_save_exec_prefix="$exec_prefix"
  19427. exec_prefix="$acl_final_exec_prefix"
  19428. eval additional_includedir=\"$includedir\"
  19429. eval additional_libdir=\"$libdir\"
  19430. exec_prefix="$acl_save_exec_prefix"
  19431. prefix="$acl_save_prefix"
  19432. # Check whether --with-libz-prefix was given.
  19433. if test ${with_libz_prefix+y}
  19434. then :
  19435. withval=$with_libz_prefix;
  19436. if test "X$withval" = "Xno"; then
  19437. use_additional=no
  19438. else
  19439. if test "X$withval" = "X"; then
  19440. acl_save_prefix="$prefix"
  19441. prefix="$acl_final_prefix"
  19442. acl_save_exec_prefix="$exec_prefix"
  19443. exec_prefix="$acl_final_exec_prefix"
  19444. eval additional_includedir=\"$includedir\"
  19445. eval additional_libdir=\"$libdir\"
  19446. exec_prefix="$acl_save_exec_prefix"
  19447. prefix="$acl_save_prefix"
  19448. else
  19449. additional_includedir="$withval/include"
  19450. additional_libdir="$withval/$acl_libdirstem"
  19451. fi
  19452. fi
  19453. fi
  19454. LIBZ=
  19455. LTLIBZ=
  19456. INCZ=
  19457. LIBZ_PREFIX=
  19458. rpathdirs=
  19459. ltrpathdirs=
  19460. names_already_handled=
  19461. names_next_round='z '
  19462. while test -n "$names_next_round"; do
  19463. names_this_round="$names_next_round"
  19464. names_next_round=
  19465. for name in $names_this_round; do
  19466. already_handled=
  19467. for n in $names_already_handled; do
  19468. if test "$n" = "$name"; then
  19469. already_handled=yes
  19470. break
  19471. fi
  19472. done
  19473. if test -z "$already_handled"; then
  19474. names_already_handled="$names_already_handled $name"
  19475. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  19476. eval value=\"\$HAVE_LIB$uppername\"
  19477. if test -n "$value"; then
  19478. if test "$value" = yes; then
  19479. eval value=\"\$LIB$uppername\"
  19480. test -z "$value" || LIBZ="${LIBZ}${LIBZ:+ }$value"
  19481. eval value=\"\$LTLIB$uppername\"
  19482. test -z "$value" || LTLIBZ="${LTLIBZ}${LTLIBZ:+ }$value"
  19483. else
  19484. :
  19485. fi
  19486. else
  19487. found_dir=
  19488. found_la=
  19489. found_so=
  19490. found_a=
  19491. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  19492. if test -n "$acl_shlibext"; then
  19493. shrext=".$acl_shlibext" # typically: shrext=.so
  19494. else
  19495. shrext=
  19496. fi
  19497. if test $use_additional = yes; then
  19498. dir="$additional_libdir"
  19499. if test -n "$acl_shlibext"; then
  19500. if test -f "$dir/$libname$shrext"; then
  19501. found_dir="$dir"
  19502. found_so="$dir/$libname$shrext"
  19503. else
  19504. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  19505. ver=`(cd "$dir" && \
  19506. for f in "$libname$shrext".*; do echo "$f"; done \
  19507. | sed -e "s,^$libname$shrext\\\\.,," \
  19508. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  19509. | sed 1q ) 2>/dev/null`
  19510. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  19511. found_dir="$dir"
  19512. found_so="$dir/$libname$shrext.$ver"
  19513. fi
  19514. else
  19515. eval library_names=\"$acl_library_names_spec\"
  19516. for f in $library_names; do
  19517. if test -f "$dir/$f"; then
  19518. found_dir="$dir"
  19519. found_so="$dir/$f"
  19520. break
  19521. fi
  19522. done
  19523. fi
  19524. fi
  19525. fi
  19526. if test "X$found_dir" = "X"; then
  19527. if test -f "$dir/$libname.$acl_libext"; then
  19528. found_dir="$dir"
  19529. found_a="$dir/$libname.$acl_libext"
  19530. fi
  19531. fi
  19532. if test "X$found_dir" != "X"; then
  19533. if test -f "$dir/$libname.la"; then
  19534. found_la="$dir/$libname.la"
  19535. fi
  19536. fi
  19537. fi
  19538. if test "X$found_dir" = "X"; then
  19539. for x in $LDFLAGS $LTLIBZ; do
  19540. acl_save_prefix="$prefix"
  19541. prefix="$acl_final_prefix"
  19542. acl_save_exec_prefix="$exec_prefix"
  19543. exec_prefix="$acl_final_exec_prefix"
  19544. eval x=\"$x\"
  19545. exec_prefix="$acl_save_exec_prefix"
  19546. prefix="$acl_save_prefix"
  19547. case "$x" in
  19548. -L*)
  19549. dir=`echo "X$x" | sed -e 's/^X-L//'`
  19550. if test -n "$acl_shlibext"; then
  19551. if test -f "$dir/$libname$shrext"; then
  19552. found_dir="$dir"
  19553. found_so="$dir/$libname$shrext"
  19554. else
  19555. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  19556. ver=`(cd "$dir" && \
  19557. for f in "$libname$shrext".*; do echo "$f"; done \
  19558. | sed -e "s,^$libname$shrext\\\\.,," \
  19559. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  19560. | sed 1q ) 2>/dev/null`
  19561. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  19562. found_dir="$dir"
  19563. found_so="$dir/$libname$shrext.$ver"
  19564. fi
  19565. else
  19566. eval library_names=\"$acl_library_names_spec\"
  19567. for f in $library_names; do
  19568. if test -f "$dir/$f"; then
  19569. found_dir="$dir"
  19570. found_so="$dir/$f"
  19571. break
  19572. fi
  19573. done
  19574. fi
  19575. fi
  19576. fi
  19577. if test "X$found_dir" = "X"; then
  19578. if test -f "$dir/$libname.$acl_libext"; then
  19579. found_dir="$dir"
  19580. found_a="$dir/$libname.$acl_libext"
  19581. fi
  19582. fi
  19583. if test "X$found_dir" != "X"; then
  19584. if test -f "$dir/$libname.la"; then
  19585. found_la="$dir/$libname.la"
  19586. fi
  19587. fi
  19588. ;;
  19589. esac
  19590. if test "X$found_dir" != "X"; then
  19591. break
  19592. fi
  19593. done
  19594. fi
  19595. if test "X$found_dir" != "X"; then
  19596. LTLIBZ="${LTLIBZ}${LTLIBZ:+ }-L$found_dir -l$name"
  19597. if test "X$found_so" != "X"; then
  19598. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  19599. LIBZ="${LIBZ}${LIBZ:+ }$found_so"
  19600. else
  19601. haveit=
  19602. for x in $ltrpathdirs; do
  19603. if test "X$x" = "X$found_dir"; then
  19604. haveit=yes
  19605. break
  19606. fi
  19607. done
  19608. if test -z "$haveit"; then
  19609. ltrpathdirs="$ltrpathdirs $found_dir"
  19610. fi
  19611. if test "$acl_hardcode_direct" = yes; then
  19612. LIBZ="${LIBZ}${LIBZ:+ }$found_so"
  19613. else
  19614. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  19615. LIBZ="${LIBZ}${LIBZ:+ }$found_so"
  19616. haveit=
  19617. for x in $rpathdirs; do
  19618. if test "X$x" = "X$found_dir"; then
  19619. haveit=yes
  19620. break
  19621. fi
  19622. done
  19623. if test -z "$haveit"; then
  19624. rpathdirs="$rpathdirs $found_dir"
  19625. fi
  19626. else
  19627. haveit=
  19628. for x in $LDFLAGS $LIBZ; do
  19629. acl_save_prefix="$prefix"
  19630. prefix="$acl_final_prefix"
  19631. acl_save_exec_prefix="$exec_prefix"
  19632. exec_prefix="$acl_final_exec_prefix"
  19633. eval x=\"$x\"
  19634. exec_prefix="$acl_save_exec_prefix"
  19635. prefix="$acl_save_prefix"
  19636. if test "X$x" = "X-L$found_dir"; then
  19637. haveit=yes
  19638. break
  19639. fi
  19640. done
  19641. if test -z "$haveit"; then
  19642. LIBZ="${LIBZ}${LIBZ:+ }-L$found_dir"
  19643. fi
  19644. if test "$acl_hardcode_minus_L" != no; then
  19645. LIBZ="${LIBZ}${LIBZ:+ }$found_so"
  19646. else
  19647. LIBZ="${LIBZ}${LIBZ:+ }-l$name"
  19648. fi
  19649. fi
  19650. fi
  19651. fi
  19652. else
  19653. if test "X$found_a" != "X"; then
  19654. LIBZ="${LIBZ}${LIBZ:+ }$found_a"
  19655. else
  19656. LIBZ="${LIBZ}${LIBZ:+ }-L$found_dir -l$name"
  19657. fi
  19658. fi
  19659. additional_includedir=
  19660. case "$found_dir" in
  19661. */$acl_libdirstem | */$acl_libdirstem/)
  19662. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  19663. LIBZ_PREFIX="$basedir"
  19664. additional_includedir="$basedir/include"
  19665. ;;
  19666. esac
  19667. if test "X$additional_includedir" != "X"; then
  19668. if test "X$additional_includedir" != "X/usr/include"; then
  19669. haveit=
  19670. if test "X$additional_includedir" = "X/usr/local/include"; then
  19671. if test -n "$GCC"; then
  19672. case $host_os in
  19673. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  19674. esac
  19675. fi
  19676. fi
  19677. if test -z "$haveit"; then
  19678. for x in $CPPFLAGS $INCZ; do
  19679. acl_save_prefix="$prefix"
  19680. prefix="$acl_final_prefix"
  19681. acl_save_exec_prefix="$exec_prefix"
  19682. exec_prefix="$acl_final_exec_prefix"
  19683. eval x=\"$x\"
  19684. exec_prefix="$acl_save_exec_prefix"
  19685. prefix="$acl_save_prefix"
  19686. if test "X$x" = "X-I$additional_includedir"; then
  19687. haveit=yes
  19688. break
  19689. fi
  19690. done
  19691. if test -z "$haveit"; then
  19692. if test -d "$additional_includedir"; then
  19693. INCZ="${INCZ}${INCZ:+ }-I$additional_includedir"
  19694. fi
  19695. fi
  19696. fi
  19697. fi
  19698. fi
  19699. if test -n "$found_la"; then
  19700. save_libdir="$libdir"
  19701. case "$found_la" in
  19702. */* | *\\*) . "$found_la" ;;
  19703. *) . "./$found_la" ;;
  19704. esac
  19705. libdir="$save_libdir"
  19706. for dep in $dependency_libs; do
  19707. case "$dep" in
  19708. -L*)
  19709. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  19710. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  19711. haveit=
  19712. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  19713. if test -n "$GCC"; then
  19714. case $host_os in
  19715. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  19716. esac
  19717. fi
  19718. fi
  19719. if test -z "$haveit"; then
  19720. haveit=
  19721. for x in $LDFLAGS $LIBZ; do
  19722. acl_save_prefix="$prefix"
  19723. prefix="$acl_final_prefix"
  19724. acl_save_exec_prefix="$exec_prefix"
  19725. exec_prefix="$acl_final_exec_prefix"
  19726. eval x=\"$x\"
  19727. exec_prefix="$acl_save_exec_prefix"
  19728. prefix="$acl_save_prefix"
  19729. if test "X$x" = "X-L$additional_libdir"; then
  19730. haveit=yes
  19731. break
  19732. fi
  19733. done
  19734. if test -z "$haveit"; then
  19735. if test -d "$additional_libdir"; then
  19736. LIBZ="${LIBZ}${LIBZ:+ }-L$additional_libdir"
  19737. fi
  19738. fi
  19739. haveit=
  19740. for x in $LDFLAGS $LTLIBZ; do
  19741. acl_save_prefix="$prefix"
  19742. prefix="$acl_final_prefix"
  19743. acl_save_exec_prefix="$exec_prefix"
  19744. exec_prefix="$acl_final_exec_prefix"
  19745. eval x=\"$x\"
  19746. exec_prefix="$acl_save_exec_prefix"
  19747. prefix="$acl_save_prefix"
  19748. if test "X$x" = "X-L$additional_libdir"; then
  19749. haveit=yes
  19750. break
  19751. fi
  19752. done
  19753. if test -z "$haveit"; then
  19754. if test -d "$additional_libdir"; then
  19755. LTLIBZ="${LTLIBZ}${LTLIBZ:+ }-L$additional_libdir"
  19756. fi
  19757. fi
  19758. fi
  19759. fi
  19760. ;;
  19761. -R*)
  19762. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  19763. if test "$enable_rpath" != no; then
  19764. haveit=
  19765. for x in $rpathdirs; do
  19766. if test "X$x" = "X$dir"; then
  19767. haveit=yes
  19768. break
  19769. fi
  19770. done
  19771. if test -z "$haveit"; then
  19772. rpathdirs="$rpathdirs $dir"
  19773. fi
  19774. haveit=
  19775. for x in $ltrpathdirs; do
  19776. if test "X$x" = "X$dir"; then
  19777. haveit=yes
  19778. break
  19779. fi
  19780. done
  19781. if test -z "$haveit"; then
  19782. ltrpathdirs="$ltrpathdirs $dir"
  19783. fi
  19784. fi
  19785. ;;
  19786. -l*)
  19787. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  19788. ;;
  19789. *.la)
  19790. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  19791. ;;
  19792. *)
  19793. LIBZ="${LIBZ}${LIBZ:+ }$dep"
  19794. LTLIBZ="${LTLIBZ}${LTLIBZ:+ }$dep"
  19795. ;;
  19796. esac
  19797. done
  19798. fi
  19799. else
  19800. LIBZ="${LIBZ}${LIBZ:+ }-l$name"
  19801. LTLIBZ="${LTLIBZ}${LTLIBZ:+ }-l$name"
  19802. fi
  19803. fi
  19804. fi
  19805. done
  19806. done
  19807. if test "X$rpathdirs" != "X"; then
  19808. if test -n "$acl_hardcode_libdir_separator"; then
  19809. alldirs=
  19810. for found_dir in $rpathdirs; do
  19811. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  19812. done
  19813. acl_save_libdir="$libdir"
  19814. libdir="$alldirs"
  19815. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  19816. libdir="$acl_save_libdir"
  19817. LIBZ="${LIBZ}${LIBZ:+ }$flag"
  19818. else
  19819. for found_dir in $rpathdirs; do
  19820. acl_save_libdir="$libdir"
  19821. libdir="$found_dir"
  19822. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  19823. libdir="$acl_save_libdir"
  19824. LIBZ="${LIBZ}${LIBZ:+ }$flag"
  19825. done
  19826. fi
  19827. fi
  19828. if test "X$ltrpathdirs" != "X"; then
  19829. for found_dir in $ltrpathdirs; do
  19830. LTLIBZ="${LTLIBZ}${LTLIBZ:+ }-R$found_dir"
  19831. done
  19832. fi
  19833. ac_save_CPPFLAGS="$CPPFLAGS"
  19834. for element in $INCZ; do
  19835. haveit=
  19836. for x in $CPPFLAGS; do
  19837. acl_save_prefix="$prefix"
  19838. prefix="$acl_final_prefix"
  19839. acl_save_exec_prefix="$exec_prefix"
  19840. exec_prefix="$acl_final_exec_prefix"
  19841. eval x=\"$x\"
  19842. exec_prefix="$acl_save_exec_prefix"
  19843. prefix="$acl_save_prefix"
  19844. if test "X$x" = "X$element"; then
  19845. haveit=yes
  19846. break
  19847. fi
  19848. done
  19849. if test -z "$haveit"; then
  19850. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  19851. fi
  19852. done
  19853. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libz" >&5
  19854. printf %s "checking for libz... " >&6; }
  19855. if test ${ac_cv_libz+y}
  19856. then :
  19857. printf %s "(cached) " >&6
  19858. else $as_nop
  19859. ac_save_LIBS="$LIBS"
  19860. LIBS="$LIBS $LIBZ"
  19861. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19862. /* end confdefs.h. */
  19863. #include <zlib.h>
  19864. int
  19865. main (void)
  19866. {
  19867. ;
  19868. return 0;
  19869. }
  19870. _ACEOF
  19871. if ac_fn_c_try_link "$LINENO"
  19872. then :
  19873. ac_cv_libz=yes
  19874. else $as_nop
  19875. ac_cv_libz=no
  19876. fi
  19877. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19878. conftest$ac_exeext conftest.$ac_ext
  19879. LIBS="$ac_save_LIBS"
  19880. fi
  19881. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libz" >&5
  19882. printf "%s\n" "$ac_cv_libz" >&6; }
  19883. if test "$ac_cv_libz" = yes; then
  19884. HAVE_LIBZ=yes
  19885. printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h
  19886. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libz" >&5
  19887. printf %s "checking how to link with libz... " >&6; }
  19888. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBZ" >&5
  19889. printf "%s\n" "$LIBZ" >&6; }
  19890. else
  19891. HAVE_LIBZ=no
  19892. CPPFLAGS="$ac_save_CPPFLAGS"
  19893. LIBZ=
  19894. LTLIBZ=
  19895. LIBZ_PREFIX=
  19896. fi
  19897. if test "$ac_cv_libz" != yes; then
  19898. if test "$use_libz" = auto; then
  19899. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Cannot find libz, disabling compression" >&5
  19900. printf "%s\n" "$as_me: Cannot find libz, disabling compression" >&6;}
  19901. found_libz="disabled; no libz found"
  19902. else
  19903. libz_errors="No libz found!
  19904. Try --with-libz-prefix=PATH if you know that you have it."
  19905. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ERROR: $libz_errors" >&5
  19906. printf "%s\n" "$as_me: ERROR: $libz_errors" >&6;}
  19907. fi
  19908. else
  19909. printf "%s\n" "#define LIBSSH2_HAVE_ZLIB 1" >>confdefs.h
  19910. LIBSREQUIRED="$LIBSREQUIRED${LIBSREQUIRED:+ }zlib"
  19911. found_libz="yes"
  19912. fi
  19913. fi
  19914. #
  19915. # Optional Settings
  19916. #
  19917. # Check whether --enable-crypt-none was given.
  19918. if test ${enable_crypt_none+y}
  19919. then :
  19920. enableval=$enable_crypt_none;
  19921. printf "%s\n" "#define LIBSSH2_CRYPT_NONE 1" >>confdefs.h
  19922. fi
  19923. # Check whether --enable-mac-none was given.
  19924. if test ${enable_mac_none+y}
  19925. then :
  19926. enableval=$enable_mac_none;
  19927. printf "%s\n" "#define LIBSSH2_MAC_NONE 1" >>confdefs.h
  19928. fi
  19929. # Check whether --enable-gex-new was given.
  19930. if test ${enable_gex_new+y}
  19931. then :
  19932. enableval=$enable_gex_new; GEX_NEW=$enableval
  19933. fi
  19934. if test "$GEX_NEW" != "no"; then
  19935. printf "%s\n" "#define LIBSSH2_DH_GEX_NEW 1" >>confdefs.h
  19936. fi
  19937. # Check whether --enable-clear-memory was given.
  19938. if test ${enable_clear_memory+y}
  19939. then :
  19940. enableval=$enable_clear_memory; CLEAR_MEMORY=$enableval
  19941. fi
  19942. if test "$CLEAR_MEMORY" != "no"; then
  19943. if test "$support_clear_memory" = "yes"; then
  19944. printf "%s\n" "#define LIBSSH2_CLEAR_MEMORY 1" >>confdefs.h
  19945. enable_clear_memory=yes
  19946. else
  19947. if test "$CLEAR_MEMORY" = "yes"; then
  19948. as_fn_error $? "secure clearing/zeroing of memory is not supported by the selected crypto backend" "$LINENO" 5
  19949. else
  19950. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: secure clearing/zeroing of memory is not supported by the selected crypto backend" >&5
  19951. printf "%s\n" "$as_me: WARNING: secure clearing/zeroing of memory is not supported by the selected crypto backend" >&2;}
  19952. fi
  19953. enable_clear_memory=unsupported
  19954. fi
  19955. else
  19956. if test "$support_clear_memory" = "yes"; then
  19957. enable_clear_memory=no
  19958. else
  19959. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: secure clearing/zeroing of memory is not supported by the selected crypto backend" >&5
  19960. printf "%s\n" "$as_me: WARNING: secure clearing/zeroing of memory is not supported by the selected crypto backend" >&2;}
  19961. enable_clear_memory=unsupported
  19962. fi
  19963. fi
  19964. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable pedantic and debug compiler options" >&5
  19965. printf %s "checking whether to enable pedantic and debug compiler options... " >&6; }
  19966. ac_ext=c
  19967. ac_cpp='$CPP $CPPFLAGS'
  19968. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19969. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19970. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19971. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  19972. printf %s "checking how to run the C preprocessor... " >&6; }
  19973. # On Suns, sometimes $CPP names a directory.
  19974. if test -n "$CPP" && test -d "$CPP"; then
  19975. CPP=
  19976. fi
  19977. if test -z "$CPP"; then
  19978. if test ${ac_cv_prog_CPP+y}
  19979. then :
  19980. printf %s "(cached) " >&6
  19981. else $as_nop
  19982. # Double quotes because $CC needs to be expanded
  19983. for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
  19984. do
  19985. ac_preproc_ok=false
  19986. for ac_c_preproc_warn_flag in '' yes
  19987. do
  19988. # Use a header file that comes with gcc, so configuring glibc
  19989. # with a fresh cross-compiler works.
  19990. # On the NeXT, cc -E runs the code through the compiler's parser,
  19991. # not just through cpp. "Syntax error" is here to catch this case.
  19992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19993. /* end confdefs.h. */
  19994. #include <limits.h>
  19995. Syntax error
  19996. _ACEOF
  19997. if ac_fn_c_try_cpp "$LINENO"
  19998. then :
  19999. else $as_nop
  20000. # Broken: fails on valid input.
  20001. continue
  20002. fi
  20003. rm -f conftest.err conftest.i conftest.$ac_ext
  20004. # OK, works on sane cases. Now check whether nonexistent headers
  20005. # can be detected and how.
  20006. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20007. /* end confdefs.h. */
  20008. #include <ac_nonexistent.h>
  20009. _ACEOF
  20010. if ac_fn_c_try_cpp "$LINENO"
  20011. then :
  20012. # Broken: success on invalid input.
  20013. continue
  20014. else $as_nop
  20015. # Passes both tests.
  20016. ac_preproc_ok=:
  20017. break
  20018. fi
  20019. rm -f conftest.err conftest.i conftest.$ac_ext
  20020. done
  20021. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  20022. rm -f conftest.i conftest.err conftest.$ac_ext
  20023. if $ac_preproc_ok
  20024. then :
  20025. break
  20026. fi
  20027. done
  20028. ac_cv_prog_CPP=$CPP
  20029. fi
  20030. CPP=$ac_cv_prog_CPP
  20031. else
  20032. ac_cv_prog_CPP=$CPP
  20033. fi
  20034. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  20035. printf "%s\n" "$CPP" >&6; }
  20036. ac_preproc_ok=false
  20037. for ac_c_preproc_warn_flag in '' yes
  20038. do
  20039. # Use a header file that comes with gcc, so configuring glibc
  20040. # with a fresh cross-compiler works.
  20041. # On the NeXT, cc -E runs the code through the compiler's parser,
  20042. # not just through cpp. "Syntax error" is here to catch this case.
  20043. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20044. /* end confdefs.h. */
  20045. #include <limits.h>
  20046. Syntax error
  20047. _ACEOF
  20048. if ac_fn_c_try_cpp "$LINENO"
  20049. then :
  20050. else $as_nop
  20051. # Broken: fails on valid input.
  20052. continue
  20053. fi
  20054. rm -f conftest.err conftest.i conftest.$ac_ext
  20055. # OK, works on sane cases. Now check whether nonexistent headers
  20056. # can be detected and how.
  20057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20058. /* end confdefs.h. */
  20059. #include <ac_nonexistent.h>
  20060. _ACEOF
  20061. if ac_fn_c_try_cpp "$LINENO"
  20062. then :
  20063. # Broken: success on invalid input.
  20064. continue
  20065. else $as_nop
  20066. # Passes both tests.
  20067. ac_preproc_ok=:
  20068. break
  20069. fi
  20070. rm -f conftest.err conftest.i conftest.$ac_ext
  20071. done
  20072. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  20073. rm -f conftest.i conftest.err conftest.$ac_ext
  20074. if $ac_preproc_ok
  20075. then :
  20076. else $as_nop
  20077. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  20078. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  20079. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  20080. See \`config.log' for more details" "$LINENO" 5; }
  20081. fi
  20082. ac_ext=c
  20083. ac_cpp='$CPP $CPPFLAGS'
  20084. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20085. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20086. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  20087. # Check whether --enable-debug was given.
  20088. if test ${enable_debug+y}
  20089. then :
  20090. enableval=$enable_debug; case "$enable_debug" in
  20091. no)
  20092. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20093. printf "%s\n" "no" >&6; }
  20094. CPPFLAGS="$CPPFLAGS -DNDEBUG"
  20095. ;;
  20096. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20097. printf "%s\n" "yes" >&6; }
  20098. enable_debug=yes
  20099. CPPFLAGS="$CPPFLAGS -DLIBSSH2DEBUG"
  20100. CFLAGS="$CFLAGS -g"
  20101. if test "z$ICC" = "z"; then
  20102. ICC="no"
  20103. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for icc in use" >&5
  20104. printf %s "checking for icc in use... " >&6; }
  20105. if test "$GCC" = "yes"; then
  20106. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20107. /* end confdefs.h. */
  20108. __INTEL_COMPILER
  20109. _ACEOF
  20110. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  20111. $EGREP "^__INTEL_COMPILER" >/dev/null 2>&1
  20112. then :
  20113. ICC="no"
  20114. else $as_nop
  20115. ICC="yes"
  20116. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20117. printf "%s\n" "yes" >&6; }
  20118. fi
  20119. rm -rf conftest*
  20120. fi
  20121. if test "$ICC" = "no"; then
  20122. # this is not ICC
  20123. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20124. printf "%s\n" "no" >&6; }
  20125. fi
  20126. fi
  20127. if test "$GCC" = "yes"; then
  20128. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
  20129. printf %s "checking gcc version... " >&6; }
  20130. gccver=`$CC -dumpversion`
  20131. num1=`echo $gccver | cut -d . -f1`
  20132. num2=`echo $gccver | cut -d . -f2`
  20133. gccnum=`(expr $num1 "*" 100 + $num2) 2>/dev/null`
  20134. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gccver" >&5
  20135. printf "%s\n" "$gccver" >&6; }
  20136. if test "$ICC" = "yes"; then
  20137. WARN="-wd279,269,981,1418,1419"
  20138. if test "$gccnum" -gt "600"; then
  20139. WARN="-Wall $WARN"
  20140. fi
  20141. else WARN="-W -Wall -Wwrite-strings -pedantic -Wpointer-arith -Wnested-externs -Winline -Wmissing-prototypes"
  20142. if test "$gccnum" -ge "207"; then
  20143. WARN="$WARN -Wmissing-declarations"
  20144. fi
  20145. if test "$gccnum" -gt "295"; then
  20146. WARN="$WARN -Wundef -Wno-long-long -Wsign-compare"
  20147. fi
  20148. if test "$gccnum" -ge "296"; then
  20149. WARN="$WARN -Wfloat-equal"
  20150. fi
  20151. if test "$gccnum" -gt "296"; then
  20152. WARN="$WARN -Wno-format-nonliteral"
  20153. fi
  20154. if test "$gccnum" -ge "303"; then
  20155. WARN="$WARN -Wendif-labels -Wstrict-prototypes"
  20156. fi
  20157. if test "$gccnum" -ge "304"; then
  20158. # try these on gcc 3.4
  20159. WARN="$WARN -Wdeclaration-after-statement"
  20160. fi
  20161. for flag in $CPPFLAGS; do
  20162. case "$flag" in
  20163. -I*)
  20164. add=`echo $flag | sed 's/^-I/-isystem /g'`
  20165. WARN="$WARN $add"
  20166. ;;
  20167. esac
  20168. done
  20169. fi
  20170. CFLAGS="$CFLAGS $WARN"
  20171. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added this set of compiler options: $WARN" >&5
  20172. printf "%s\n" "$as_me: Added this set of compiler options: $WARN" >&6;}
  20173. else
  20174. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added no extra compiler options" >&5
  20175. printf "%s\n" "$as_me: Added no extra compiler options" >&6;}
  20176. fi
  20177. NEWFLAGS=""
  20178. for flag in $CFLAGS; do
  20179. case "$flag" in
  20180. -O*)
  20181. ;;
  20182. *)
  20183. NEWFLAGS="$NEWFLAGS $flag"
  20184. ;;
  20185. esac
  20186. done
  20187. CFLAGS=$NEWFLAGS
  20188. ;;
  20189. esac
  20190. else $as_nop
  20191. enable_debug=no
  20192. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20193. printf "%s\n" "no" >&6; }
  20194. fi
  20195. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable hidden symbols in the library" >&5
  20196. printf %s "checking whether to enable hidden symbols in the library... " >&6; }
  20197. # Check whether --enable-hidden-symbols was given.
  20198. if test ${enable_hidden_symbols+y}
  20199. then :
  20200. enableval=$enable_hidden_symbols; case "$enableval" in
  20201. no)
  20202. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20203. printf "%s\n" "no" >&6; }
  20204. ;;
  20205. *)
  20206. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports it" >&5
  20207. printf %s "checking whether $CC supports it... " >&6; }
  20208. if test "$GCC" = yes ; then
  20209. if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
  20210. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20211. printf "%s\n" "yes" >&6; }
  20212. printf "%s\n" "#define LIBSSH2_API __attribute__ ((visibility (\"default\")))" >>confdefs.h
  20213. CFLAGS="$CFLAGS -fvisibility=hidden"
  20214. else
  20215. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20216. printf "%s\n" "no" >&6; }
  20217. fi
  20218. else
  20219. if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
  20220. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20221. printf "%s\n" "yes" >&6; }
  20222. printf "%s\n" "#define LIBSSH2_API __global" >>confdefs.h
  20223. CFLAGS="$CFLAGS -xldscope=hidden"
  20224. else
  20225. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20226. printf "%s\n" "no" >&6; }
  20227. fi
  20228. fi
  20229. ;;
  20230. esac
  20231. else $as_nop
  20232. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20233. printf "%s\n" "no" >&6; }
  20234. fi
  20235. # Build example applications?
  20236. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build example applications" >&5
  20237. printf %s "checking whether to build example applications... " >&6; }
  20238. # Check whether --enable-examples-build was given.
  20239. if test ${enable_examples_build+y}
  20240. then :
  20241. enableval=$enable_examples_build; case "$enableval" in
  20242. no | false)
  20243. build_examples='no'
  20244. ;;
  20245. *)
  20246. build_examples='yes'
  20247. ;;
  20248. esac
  20249. else $as_nop
  20250. build_examples='yes'
  20251. fi
  20252. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_examples" >&5
  20253. printf "%s\n" "$build_examples" >&6; }
  20254. if test "x$build_examples" != "xno"; then
  20255. BUILD_EXAMPLES_TRUE=
  20256. BUILD_EXAMPLES_FALSE='#'
  20257. else
  20258. BUILD_EXAMPLES_TRUE='#'
  20259. BUILD_EXAMPLES_FALSE=
  20260. fi
  20261. # Build OSS fuzzing targets?
  20262. # Check whether --enable-ossfuzzers was given.
  20263. if test ${enable_ossfuzzers+y}
  20264. then :
  20265. enableval=$enable_ossfuzzers; have_ossfuzzers=yes
  20266. else $as_nop
  20267. have_ossfuzzers=no
  20268. fi
  20269. if test "x$have_ossfuzzers" = "xyes"; then
  20270. USE_OSSFUZZERS_TRUE=
  20271. USE_OSSFUZZERS_FALSE='#'
  20272. else
  20273. USE_OSSFUZZERS_TRUE='#'
  20274. USE_OSSFUZZERS_FALSE=
  20275. fi
  20276. # Set the correct flags for the given fuzzing engine.
  20277. if test "x$LIB_FUZZING_ENGINE" = "x-fsanitize=fuzzer"; then
  20278. USE_OSSFUZZ_FLAG_TRUE=
  20279. USE_OSSFUZZ_FLAG_FALSE='#'
  20280. else
  20281. USE_OSSFUZZ_FLAG_TRUE='#'
  20282. USE_OSSFUZZ_FLAG_FALSE=
  20283. fi
  20284. if test -f "$LIB_FUZZING_ENGINE"; then
  20285. USE_OSSFUZZ_STATIC_TRUE=
  20286. USE_OSSFUZZ_STATIC_FALSE='#'
  20287. else
  20288. USE_OSSFUZZ_STATIC_TRUE='#'
  20289. USE_OSSFUZZ_STATIC_FALSE=
  20290. fi
  20291. # Checks for header files.
  20292. # AC_HEADER_STDC
  20293. ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
  20294. if test "x$ac_cv_header_errno_h" = xyes
  20295. then :
  20296. printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
  20297. fi
  20298. ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
  20299. if test "x$ac_cv_header_fcntl_h" = xyes
  20300. then :
  20301. printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
  20302. fi
  20303. ac_fn_c_check_header_compile "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
  20304. if test "x$ac_cv_header_stdio_h" = xyes
  20305. then :
  20306. printf "%s\n" "#define HAVE_STDIO_H 1" >>confdefs.h
  20307. fi
  20308. ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  20309. if test "x$ac_cv_header_stdlib_h" = xyes
  20310. then :
  20311. printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
  20312. fi
  20313. ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
  20314. if test "x$ac_cv_header_unistd_h" = xyes
  20315. then :
  20316. printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
  20317. fi
  20318. ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default"
  20319. if test "x$ac_cv_header_sys_uio_h" = xyes
  20320. then :
  20321. printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h
  20322. fi
  20323. ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
  20324. if test "x$ac_cv_header_sys_select_h" = xyes
  20325. then :
  20326. printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
  20327. fi
  20328. ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
  20329. if test "x$ac_cv_header_sys_socket_h" = xyes
  20330. then :
  20331. printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
  20332. fi
  20333. ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
  20334. if test "x$ac_cv_header_sys_ioctl_h" = xyes
  20335. then :
  20336. printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
  20337. fi
  20338. ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
  20339. if test "x$ac_cv_header_sys_time_h" = xyes
  20340. then :
  20341. printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
  20342. fi
  20343. ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
  20344. if test "x$ac_cv_header_arpa_inet_h" = xyes
  20345. then :
  20346. printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
  20347. fi
  20348. ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
  20349. if test "x$ac_cv_header_netinet_in_h" = xyes
  20350. then :
  20351. printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
  20352. fi
  20353. for ac_header in sys/un.h
  20354. do :
  20355. ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
  20356. if test "x$ac_cv_header_sys_un_h" = xyes
  20357. then :
  20358. printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h
  20359. have_sys_un_h=yes
  20360. else $as_nop
  20361. have_sys_un_h=no
  20362. fi
  20363. done
  20364. if test "x$have_sys_un_h" = xyes; then
  20365. HAVE_SYS_UN_H_TRUE=
  20366. HAVE_SYS_UN_H_FALSE='#'
  20367. else
  20368. HAVE_SYS_UN_H_TRUE='#'
  20369. HAVE_SYS_UN_H_FALSE=
  20370. fi
  20371. case $host in
  20372. *-*-cygwin* | *-*-cegcc*)
  20373. # These are POSIX-like systems using BSD-like sockets API.
  20374. ;;
  20375. *)
  20376. ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
  20377. if test "x$ac_cv_header_windows_h" = xyes
  20378. then :
  20379. printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
  20380. fi
  20381. ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
  20382. if test "x$ac_cv_header_winsock2_h" = xyes
  20383. then :
  20384. printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
  20385. fi
  20386. ac_fn_c_check_header_compile "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
  20387. if test "x$ac_cv_header_ws2tcpip_h" = xyes
  20388. then :
  20389. printf "%s\n" "#define HAVE_WS2TCPIP_H 1" >>confdefs.h
  20390. fi
  20391. ;;
  20392. esac
  20393. case $host in
  20394. *darwin*|*interix*)
  20395. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: poll use is disabled on this platform" >&5
  20396. printf "%s\n" "$as_me: poll use is disabled on this platform" >&6;}
  20397. ;;
  20398. *)
  20399. ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
  20400. if test "x$ac_cv_func_poll" = xyes
  20401. then :
  20402. printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
  20403. fi
  20404. ;;
  20405. esac
  20406. ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
  20407. if test "x$ac_cv_func_gettimeofday" = xyes
  20408. then :
  20409. printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
  20410. fi
  20411. ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
  20412. if test "x$ac_cv_func_select" = xyes
  20413. then :
  20414. printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
  20415. fi
  20416. ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
  20417. if test "x$ac_cv_func_strtoll" = xyes
  20418. then :
  20419. printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
  20420. fi
  20421. ac_fn_c_check_func "$LINENO" "memset_s" "ac_cv_func_memset_s"
  20422. if test "x$ac_cv_func_memset_s" = xyes
  20423. then :
  20424. printf "%s\n" "#define HAVE_MEMSET_S 1" >>confdefs.h
  20425. fi
  20426. if test "$ac_cv_func_select" != "yes"; then
  20427. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for select in ws2_32" >&5
  20428. printf %s "checking for select in ws2_32... " >&6; }
  20429. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20430. /* end confdefs.h. */
  20431. #ifdef HAVE_WINSOCK2_H
  20432. #ifndef WIN32_LEAN_AND_MEAN
  20433. #define WIN32_LEAN_AND_MEAN
  20434. #endif
  20435. #include <winsock2.h>
  20436. #endif
  20437. int
  20438. main (void)
  20439. {
  20440. select(0,(fd_set *)NULL,(fd_set *)NULL,(fd_set *)NULL,(struct timeval *)NULL);
  20441. ;
  20442. return 0;
  20443. }
  20444. _ACEOF
  20445. if ac_fn_c_try_link "$LINENO"
  20446. then :
  20447. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20448. printf "%s\n" "yes" >&6; }
  20449. HAVE_SELECT="1"
  20450. printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
  20451. else $as_nop
  20452. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20453. printf "%s\n" "no" >&6; }
  20454. fi
  20455. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20456. conftest$ac_exeext conftest.$ac_ext
  20457. fi
  20458. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  20459. if test "x$ac_cv_type_size_t" = xyes
  20460. then :
  20461. else $as_nop
  20462. printf "%s\n" "#define size_t unsigned int" >>confdefs.h
  20463. fi
  20464. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  20465. # for constant arguments. Useless!
  20466. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  20467. printf %s "checking for working alloca.h... " >&6; }
  20468. if test ${ac_cv_working_alloca_h+y}
  20469. then :
  20470. printf %s "(cached) " >&6
  20471. else $as_nop
  20472. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20473. /* end confdefs.h. */
  20474. #include <alloca.h>
  20475. int
  20476. main (void)
  20477. {
  20478. char *p = (char *) alloca (2 * sizeof (int));
  20479. if (p) return 0;
  20480. ;
  20481. return 0;
  20482. }
  20483. _ACEOF
  20484. if ac_fn_c_try_link "$LINENO"
  20485. then :
  20486. ac_cv_working_alloca_h=yes
  20487. else $as_nop
  20488. ac_cv_working_alloca_h=no
  20489. fi
  20490. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20491. conftest$ac_exeext conftest.$ac_ext
  20492. fi
  20493. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  20494. printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
  20495. if test $ac_cv_working_alloca_h = yes; then
  20496. printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
  20497. fi
  20498. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  20499. printf %s "checking for alloca... " >&6; }
  20500. if test ${ac_cv_func_alloca_works+y}
  20501. then :
  20502. printf %s "(cached) " >&6
  20503. else $as_nop
  20504. if test $ac_cv_working_alloca_h = yes; then
  20505. ac_cv_func_alloca_works=yes
  20506. else
  20507. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20508. /* end confdefs.h. */
  20509. #include <stdlib.h>
  20510. #include <stddef.h>
  20511. #ifndef alloca
  20512. # ifdef __GNUC__
  20513. # define alloca __builtin_alloca
  20514. # elif defined _MSC_VER
  20515. # include <malloc.h>
  20516. # define alloca _alloca
  20517. # else
  20518. # ifdef __cplusplus
  20519. extern "C"
  20520. # endif
  20521. void *alloca (size_t);
  20522. # endif
  20523. #endif
  20524. int
  20525. main (void)
  20526. {
  20527. char *p = (char *) alloca (1);
  20528. if (p) return 0;
  20529. ;
  20530. return 0;
  20531. }
  20532. _ACEOF
  20533. if ac_fn_c_try_link "$LINENO"
  20534. then :
  20535. ac_cv_func_alloca_works=yes
  20536. else $as_nop
  20537. ac_cv_func_alloca_works=no
  20538. fi
  20539. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20540. conftest$ac_exeext conftest.$ac_ext
  20541. fi
  20542. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  20543. printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
  20544. fi
  20545. if test $ac_cv_func_alloca_works = yes; then
  20546. printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
  20547. else
  20548. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  20549. # that cause trouble. Some versions do not even contain alloca or
  20550. # contain a buggy version. If you still want to use their alloca,
  20551. # use ar to extract alloca.o from them instead of compiling alloca.c.
  20552. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  20553. printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
  20554. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  20555. printf %s "checking stack direction for C alloca... " >&6; }
  20556. if test ${ac_cv_c_stack_direction+y}
  20557. then :
  20558. printf %s "(cached) " >&6
  20559. else $as_nop
  20560. if test "$cross_compiling" = yes
  20561. then :
  20562. ac_cv_c_stack_direction=0
  20563. else $as_nop
  20564. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20565. /* end confdefs.h. */
  20566. $ac_includes_default
  20567. int
  20568. find_stack_direction (int *addr, int depth)
  20569. {
  20570. int dir, dummy = 0;
  20571. if (! addr)
  20572. addr = &dummy;
  20573. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  20574. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  20575. return dir + dummy;
  20576. }
  20577. int
  20578. main (int argc, char **argv)
  20579. {
  20580. return find_stack_direction (0, argc + !argv + 20) < 0;
  20581. }
  20582. _ACEOF
  20583. if ac_fn_c_try_run "$LINENO"
  20584. then :
  20585. ac_cv_c_stack_direction=1
  20586. else $as_nop
  20587. ac_cv_c_stack_direction=-1
  20588. fi
  20589. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  20590. conftest.$ac_objext conftest.beam conftest.$ac_ext
  20591. fi
  20592. fi
  20593. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  20594. printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
  20595. printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
  20596. fi
  20597. # Checks for typedefs, structures, and compiler characteristics.
  20598. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  20599. printf %s "checking for an ANSI C-conforming const... " >&6; }
  20600. if test ${ac_cv_c_const+y}
  20601. then :
  20602. printf %s "(cached) " >&6
  20603. else $as_nop
  20604. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20605. /* end confdefs.h. */
  20606. int
  20607. main (void)
  20608. {
  20609. #ifndef __cplusplus
  20610. /* Ultrix mips cc rejects this sort of thing. */
  20611. typedef int charset[2];
  20612. const charset cs = { 0, 0 };
  20613. /* SunOS 4.1.1 cc rejects this. */
  20614. char const *const *pcpcc;
  20615. char **ppc;
  20616. /* NEC SVR4.0.2 mips cc rejects this. */
  20617. struct point {int x, y;};
  20618. static struct point const zero = {0,0};
  20619. /* IBM XL C 1.02.0.0 rejects this.
  20620. It does not let you subtract one const X* pointer from another in
  20621. an arm of an if-expression whose if-part is not a constant
  20622. expression */
  20623. const char *g = "string";
  20624. pcpcc = &g + (g ? g-g : 0);
  20625. /* HPUX 7.0 cc rejects these. */
  20626. ++pcpcc;
  20627. ppc = (char**) pcpcc;
  20628. pcpcc = (char const *const *) ppc;
  20629. { /* SCO 3.2v4 cc rejects this sort of thing. */
  20630. char tx;
  20631. char *t = &tx;
  20632. char const *s = 0 ? (char *) 0 : (char const *) 0;
  20633. *t++ = 0;
  20634. if (s) return 0;
  20635. }
  20636. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  20637. int x[] = {25, 17};
  20638. const int *foo = &x[0];
  20639. ++foo;
  20640. }
  20641. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  20642. typedef const int *iptr;
  20643. iptr p = 0;
  20644. ++p;
  20645. }
  20646. { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
  20647. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  20648. struct s { int j; const int *ap[3]; } bx;
  20649. struct s *b = &bx; b->j = 5;
  20650. }
  20651. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  20652. const int foo = 10;
  20653. if (!foo) return 0;
  20654. }
  20655. return !cs[0] && !zero.x;
  20656. #endif
  20657. ;
  20658. return 0;
  20659. }
  20660. _ACEOF
  20661. if ac_fn_c_try_compile "$LINENO"
  20662. then :
  20663. ac_cv_c_const=yes
  20664. else $as_nop
  20665. ac_cv_c_const=no
  20666. fi
  20667. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20668. fi
  20669. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  20670. printf "%s\n" "$ac_cv_c_const" >&6; }
  20671. if test $ac_cv_c_const = no; then
  20672. printf "%s\n" "#define const /**/" >>confdefs.h
  20673. fi
  20674. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  20675. printf %s "checking for inline... " >&6; }
  20676. if test ${ac_cv_c_inline+y}
  20677. then :
  20678. printf %s "(cached) " >&6
  20679. else $as_nop
  20680. ac_cv_c_inline=no
  20681. for ac_kw in inline __inline__ __inline; do
  20682. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20683. /* end confdefs.h. */
  20684. #ifndef __cplusplus
  20685. typedef int foo_t;
  20686. static $ac_kw foo_t static_foo (void) {return 0; }
  20687. $ac_kw foo_t foo (void) {return 0; }
  20688. #endif
  20689. _ACEOF
  20690. if ac_fn_c_try_compile "$LINENO"
  20691. then :
  20692. ac_cv_c_inline=$ac_kw
  20693. fi
  20694. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20695. test "$ac_cv_c_inline" != no && break
  20696. done
  20697. fi
  20698. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  20699. printf "%s\n" "$ac_cv_c_inline" >&6; }
  20700. case $ac_cv_c_inline in
  20701. inline | yes) ;;
  20702. *)
  20703. case $ac_cv_c_inline in
  20704. no) ac_val=;;
  20705. *) ac_val=$ac_cv_c_inline;;
  20706. esac
  20707. cat >>confdefs.h <<_ACEOF
  20708. #ifndef __cplusplus
  20709. #define inline $ac_val
  20710. #endif
  20711. _ACEOF
  20712. ;;
  20713. esac
  20714. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking non-blocking sockets style" >&5
  20715. printf %s "checking non-blocking sockets style... " >&6; }
  20716. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20717. /* end confdefs.h. */
  20718. /* headers for O_NONBLOCK test */
  20719. #include <sys/types.h>
  20720. #include <unistd.h>
  20721. #include <fcntl.h>
  20722. int
  20723. main (void)
  20724. {
  20725. /* try to compile O_NONBLOCK */
  20726. #if defined(sun) || defined(__sun__) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
  20727. # if defined(__SVR4) || defined(__srv4__)
  20728. # define PLATFORM_SOLARIS
  20729. # else
  20730. # define PLATFORM_SUNOS4
  20731. # endif
  20732. #endif
  20733. #if (defined(_AIX) || defined(__xlC__)) && !defined(_AIX41)
  20734. # define PLATFORM_AIX_V3
  20735. #endif
  20736. #if defined(PLATFORM_SUNOS4) || defined(PLATFORM_AIX_V3) || defined(__BEOS__)
  20737. #error "O_NONBLOCK does not work on this platform"
  20738. #endif
  20739. int socket;
  20740. int flags = fcntl(socket, F_SETFL, flags | O_NONBLOCK);
  20741. ;
  20742. return 0;
  20743. }
  20744. _ACEOF
  20745. if ac_fn_c_try_compile "$LINENO"
  20746. then :
  20747. nonblock="O_NONBLOCK"
  20748. printf "%s\n" "#define HAVE_O_NONBLOCK 1" >>confdefs.h
  20749. else $as_nop
  20750. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20751. /* end confdefs.h. */
  20752. /* headers for FIONBIO test */
  20753. #include <unistd.h>
  20754. #include <stropts.h>
  20755. int
  20756. main (void)
  20757. {
  20758. /* FIONBIO source test (old-style unix) */
  20759. int socket;
  20760. int flags = ioctl(socket, FIONBIO, &flags);
  20761. ;
  20762. return 0;
  20763. }
  20764. _ACEOF
  20765. if ac_fn_c_try_compile "$LINENO"
  20766. then :
  20767. nonblock="FIONBIO"
  20768. printf "%s\n" "#define HAVE_FIONBIO 1" >>confdefs.h
  20769. else $as_nop
  20770. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20771. /* end confdefs.h. */
  20772. /* headers for ioctlsocket test (Windows) */
  20773. #undef inline
  20774. #ifdef HAVE_WINDOWS_H
  20775. #ifndef WIN32_LEAN_AND_MEAN
  20776. #define WIN32_LEAN_AND_MEAN
  20777. #endif
  20778. #include <windows.h>
  20779. #ifdef HAVE_WINSOCK2_H
  20780. #include <winsock2.h>
  20781. #else
  20782. #ifdef HAVE_WINSOCK_H
  20783. #include <winsock.h>
  20784. #endif
  20785. #endif
  20786. #endif
  20787. int
  20788. main (void)
  20789. {
  20790. /* ioctlsocket source code */
  20791. SOCKET sd;
  20792. unsigned long flags = 0;
  20793. sd = socket(0, 0, 0);
  20794. ioctlsocket(sd, FIONBIO, &flags);
  20795. ;
  20796. return 0;
  20797. }
  20798. _ACEOF
  20799. if ac_fn_c_try_compile "$LINENO"
  20800. then :
  20801. nonblock="ioctlsocket"
  20802. printf "%s\n" "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
  20803. else $as_nop
  20804. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20805. /* end confdefs.h. */
  20806. /* headers for IoctlSocket test (Amiga?) */
  20807. #include <sys/ioctl.h>
  20808. int
  20809. main (void)
  20810. {
  20811. /* IoctlSocket source code */
  20812. int socket;
  20813. int flags = IoctlSocket(socket, FIONBIO, (long)1);
  20814. ;
  20815. return 0;
  20816. }
  20817. _ACEOF
  20818. if ac_fn_c_try_link "$LINENO"
  20819. then :
  20820. nonblock="IoctlSocket"
  20821. printf "%s\n" "#define HAVE_IOCTLSOCKET_CASE 1" >>confdefs.h
  20822. else $as_nop
  20823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20824. /* end confdefs.h. */
  20825. /* headers for SO_NONBLOCK test (BeOS) */
  20826. #include <socket.h>
  20827. int
  20828. main (void)
  20829. {
  20830. /* SO_NONBLOCK source code */
  20831. long b = 1;
  20832. int socket;
  20833. int flags = setsockopt(socket, SOL_SOCKET, SO_NONBLOCK, &b, sizeof(b));
  20834. ;
  20835. return 0;
  20836. }
  20837. _ACEOF
  20838. if ac_fn_c_try_compile "$LINENO"
  20839. then :
  20840. nonblock="SO_NONBLOCK"
  20841. printf "%s\n" "#define HAVE_SO_NONBLOCK 1" >>confdefs.h
  20842. else $as_nop
  20843. nonblock="nada"
  20844. printf "%s\n" "#define HAVE_DISABLED_NONBLOCKING 1" >>confdefs.h
  20845. fi
  20846. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20847. fi
  20848. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20849. conftest$ac_exeext conftest.$ac_ext
  20850. fi
  20851. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20852. fi
  20853. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20854. fi
  20855. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20856. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $nonblock" >&5
  20857. printf "%s\n" "$nonblock" >&6; }
  20858. if test "$nonblock" = "nada"; then
  20859. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: non-block sockets disabled" >&5
  20860. printf "%s\n" "$as_me: WARNING: non-block sockets disabled" >&2;}
  20861. fi
  20862. missing_required_deps=0
  20863. if test "${libz_errors}" != ""; then
  20864. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ERROR: ${libz_errors}" >&5
  20865. printf "%s\n" "$as_me: ERROR: ${libz_errors}" >&6;}
  20866. missing_required_deps=1
  20867. fi
  20868. if test "$found_crypto" = "none"; then
  20869. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ERROR: ${crypto_errors}" >&5
  20870. printf "%s\n" "$as_me: ERROR: ${crypto_errors}" >&6;}
  20871. missing_required_deps=1
  20872. fi
  20873. if test $missing_required_deps = 1; then
  20874. as_fn_error $? "Required dependencies are missing!" "$LINENO" 5
  20875. fi
  20876. # Configure parameters
  20877. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
  20878. printf %s "checking whether to enable compiler warnings as errors... " >&6; }
  20879. OPT_COMPILER_WERROR="default"
  20880. # Check whether --enable-werror was given.
  20881. if test ${enable_werror+y}
  20882. then :
  20883. enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
  20884. fi
  20885. case "$OPT_COMPILER_WERROR" in
  20886. no)
  20887. want_werror="no"
  20888. ;;
  20889. default)
  20890. want_werror="no"
  20891. ;;
  20892. *)
  20893. want_werror="yes"
  20894. ;;
  20895. esac
  20896. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
  20897. printf "%s\n" "$want_werror" >&6; }
  20898. if test X"$want_werror" = Xyes; then
  20899. CFLAGS="$CFLAGS -Werror"
  20900. fi
  20901. ac_config_files="$ac_config_files Makefile src/Makefile tests/Makefile tests/ossfuzz/Makefile example/Makefile docs/Makefile libssh2.pc"
  20902. cat >confcache <<\_ACEOF
  20903. # This file is a shell script that caches the results of configure
  20904. # tests run on this system so they can be shared between configure
  20905. # scripts and configure runs, see configure's option --config-cache.
  20906. # It is not useful on other systems. If it contains results you don't
  20907. # want to keep, you may remove or edit it.
  20908. #
  20909. # config.status only pays attention to the cache file if you give it
  20910. # the --recheck option to rerun configure.
  20911. #
  20912. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  20913. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  20914. # following values.
  20915. _ACEOF
  20916. # The following way of writing the cache mishandles newlines in values,
  20917. # but we know of no workaround that is simple, portable, and efficient.
  20918. # So, we kill variables containing newlines.
  20919. # Ultrix sh set writes to stderr and can't be redirected directly,
  20920. # and sets the high bit in the cache file unless we assign to the vars.
  20921. (
  20922. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  20923. eval ac_val=\$$ac_var
  20924. case $ac_val in #(
  20925. *${as_nl}*)
  20926. case $ac_var in #(
  20927. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  20928. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  20929. esac
  20930. case $ac_var in #(
  20931. _ | IFS | as_nl) ;; #(
  20932. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  20933. *) { eval $ac_var=; unset $ac_var;} ;;
  20934. esac ;;
  20935. esac
  20936. done
  20937. (set) 2>&1 |
  20938. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  20939. *${as_nl}ac_space=\ *)
  20940. # `set' does not quote correctly, so add quotes: double-quote
  20941. # substitution turns \\\\ into \\, and sed turns \\ into \.
  20942. sed -n \
  20943. "s/'/'\\\\''/g;
  20944. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  20945. ;; #(
  20946. *)
  20947. # `set' quotes correctly as required by POSIX, so do not add quotes.
  20948. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  20949. ;;
  20950. esac |
  20951. sort
  20952. ) |
  20953. sed '
  20954. /^ac_cv_env_/b end
  20955. t clear
  20956. :clear
  20957. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  20958. t end
  20959. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  20960. :end' >>confcache
  20961. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  20962. if test -w "$cache_file"; then
  20963. if test "x$cache_file" != "x/dev/null"; then
  20964. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  20965. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  20966. if test ! -f "$cache_file" || test -h "$cache_file"; then
  20967. cat confcache >"$cache_file"
  20968. else
  20969. case $cache_file in #(
  20970. */* | ?:*)
  20971. mv -f confcache "$cache_file"$$ &&
  20972. mv -f "$cache_file"$$ "$cache_file" ;; #(
  20973. *)
  20974. mv -f confcache "$cache_file" ;;
  20975. esac
  20976. fi
  20977. fi
  20978. else
  20979. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  20980. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  20981. fi
  20982. fi
  20983. rm -f confcache
  20984. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  20985. # Let make expand exec_prefix.
  20986. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  20987. DEFS=-DHAVE_CONFIG_H
  20988. ac_libobjs=
  20989. ac_ltlibobjs=
  20990. U=
  20991. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  20992. # 1. Remove the extension, and $U if already installed.
  20993. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  20994. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  20995. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  20996. # will be set to the directory where LIBOBJS objects are built.
  20997. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  20998. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  20999. done
  21000. LIBOBJS=$ac_libobjs
  21001. LTLIBOBJS=$ac_ltlibobjs
  21002. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  21003. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  21004. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21005. fi
  21006. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  21007. printf %s "checking that generated files are newer than configure... " >&6; }
  21008. if test -n "$am_sleep_pid"; then
  21009. # Hide warnings about reused PIDs.
  21010. wait $am_sleep_pid 2>/dev/null
  21011. fi
  21012. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
  21013. printf "%s\n" "done" >&6; }
  21014. if test -n "$EXEEXT"; then
  21015. am__EXEEXT_TRUE=
  21016. am__EXEEXT_FALSE='#'
  21017. else
  21018. am__EXEEXT_TRUE='#'
  21019. am__EXEEXT_FALSE=
  21020. fi
  21021. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  21022. as_fn_error $? "conditional \"AMDEP\" was never defined.
  21023. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21024. fi
  21025. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  21026. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  21027. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21028. fi
  21029. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  21030. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  21031. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21032. fi
  21033. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  21034. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  21035. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21036. fi
  21037. if test -z "${SSHD_TRUE}" && test -z "${SSHD_FALSE}"; then
  21038. as_fn_error $? "conditional \"SSHD\" was never defined.
  21039. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21040. fi
  21041. if test -z "${OPENSSL_TRUE}" && test -z "${OPENSSL_FALSE}"; then
  21042. as_fn_error $? "conditional \"OPENSSL\" was never defined.
  21043. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21044. fi
  21045. if test -z "${LIBGCRYPT_TRUE}" && test -z "${LIBGCRYPT_FALSE}"; then
  21046. as_fn_error $? "conditional \"LIBGCRYPT\" was never defined.
  21047. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21048. fi
  21049. if test -z "${MBEDTLS_TRUE}" && test -z "${MBEDTLS_FALSE}"; then
  21050. as_fn_error $? "conditional \"MBEDTLS\" was never defined.
  21051. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21052. fi
  21053. if test -z "${WINCNG_TRUE}" && test -z "${WINCNG_FALSE}"; then
  21054. as_fn_error $? "conditional \"WINCNG\" was never defined.
  21055. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21056. fi
  21057. if test -z "${BUILD_EXAMPLES_TRUE}" && test -z "${BUILD_EXAMPLES_FALSE}"; then
  21058. as_fn_error $? "conditional \"BUILD_EXAMPLES\" was never defined.
  21059. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21060. fi
  21061. if test -z "${USE_OSSFUZZERS_TRUE}" && test -z "${USE_OSSFUZZERS_FALSE}"; then
  21062. as_fn_error $? "conditional \"USE_OSSFUZZERS\" was never defined.
  21063. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21064. fi
  21065. if test -z "${USE_OSSFUZZ_FLAG_TRUE}" && test -z "${USE_OSSFUZZ_FLAG_FALSE}"; then
  21066. as_fn_error $? "conditional \"USE_OSSFUZZ_FLAG\" was never defined.
  21067. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21068. fi
  21069. if test -z "${USE_OSSFUZZ_STATIC_TRUE}" && test -z "${USE_OSSFUZZ_STATIC_FALSE}"; then
  21070. as_fn_error $? "conditional \"USE_OSSFUZZ_STATIC\" was never defined.
  21071. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21072. fi
  21073. if test -z "${HAVE_SYS_UN_H_TRUE}" && test -z "${HAVE_SYS_UN_H_FALSE}"; then
  21074. as_fn_error $? "conditional \"HAVE_SYS_UN_H\" was never defined.
  21075. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  21076. fi
  21077. : "${CONFIG_STATUS=./config.status}"
  21078. ac_write_fail=0
  21079. ac_clean_files_save=$ac_clean_files
  21080. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  21081. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  21082. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  21083. as_write_fail=0
  21084. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  21085. #! $SHELL
  21086. # Generated by $as_me.
  21087. # Run this file to recreate the current configuration.
  21088. # Compiler output produced by configure, useful for debugging
  21089. # configure, is in config.log if it exists.
  21090. debug=false
  21091. ac_cs_recheck=false
  21092. ac_cs_silent=false
  21093. SHELL=\${CONFIG_SHELL-$SHELL}
  21094. export SHELL
  21095. _ASEOF
  21096. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  21097. ## -------------------- ##
  21098. ## M4sh Initialization. ##
  21099. ## -------------------- ##
  21100. # Be more Bourne compatible
  21101. DUALCASE=1; export DUALCASE # for MKS sh
  21102. as_nop=:
  21103. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  21104. then :
  21105. emulate sh
  21106. NULLCMD=:
  21107. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  21108. # is contrary to our usage. Disable this feature.
  21109. alias -g '${1+"$@"}'='"$@"'
  21110. setopt NO_GLOB_SUBST
  21111. else $as_nop
  21112. case `(set -o) 2>/dev/null` in #(
  21113. *posix*) :
  21114. set -o posix ;; #(
  21115. *) :
  21116. ;;
  21117. esac
  21118. fi
  21119. # Reset variables that may have inherited troublesome values from
  21120. # the environment.
  21121. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  21122. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  21123. # side effect of setting IFS to empty, thus disabling word splitting.)
  21124. # Quoting is to prevent editors from complaining about space-tab.
  21125. as_nl='
  21126. '
  21127. export as_nl
  21128. IFS=" "" $as_nl"
  21129. PS1='$ '
  21130. PS2='> '
  21131. PS4='+ '
  21132. # Ensure predictable behavior from utilities with locale-dependent output.
  21133. LC_ALL=C
  21134. export LC_ALL
  21135. LANGUAGE=C
  21136. export LANGUAGE
  21137. # We cannot yet rely on "unset" to work, but we need these variables
  21138. # to be unset--not just set to an empty or harmless value--now, to
  21139. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  21140. # also avoids known problems related to "unset" and subshell syntax
  21141. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  21142. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  21143. do eval test \${$as_var+y} \
  21144. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  21145. done
  21146. # Ensure that fds 0, 1, and 2 are open.
  21147. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  21148. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  21149. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  21150. # The user is always right.
  21151. if ${PATH_SEPARATOR+false} :; then
  21152. PATH_SEPARATOR=:
  21153. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  21154. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  21155. PATH_SEPARATOR=';'
  21156. }
  21157. fi
  21158. # Find who we are. Look in the path if we contain no directory separator.
  21159. as_myself=
  21160. case $0 in #((
  21161. *[\\/]* ) as_myself=$0 ;;
  21162. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21163. for as_dir in $PATH
  21164. do
  21165. IFS=$as_save_IFS
  21166. case $as_dir in #(((
  21167. '') as_dir=./ ;;
  21168. */) ;;
  21169. *) as_dir=$as_dir/ ;;
  21170. esac
  21171. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  21172. done
  21173. IFS=$as_save_IFS
  21174. ;;
  21175. esac
  21176. # We did not find ourselves, most probably we were run as `sh COMMAND'
  21177. # in which case we are not to be found in the path.
  21178. if test "x$as_myself" = x; then
  21179. as_myself=$0
  21180. fi
  21181. if test ! -f "$as_myself"; then
  21182. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  21183. exit 1
  21184. fi
  21185. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  21186. # ----------------------------------------
  21187. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  21188. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  21189. # script with STATUS, using 1 if that was 0.
  21190. as_fn_error ()
  21191. {
  21192. as_status=$1; test $as_status -eq 0 && as_status=1
  21193. if test "$4"; then
  21194. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  21195. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  21196. fi
  21197. printf "%s\n" "$as_me: error: $2" >&2
  21198. as_fn_exit $as_status
  21199. } # as_fn_error
  21200. # as_fn_set_status STATUS
  21201. # -----------------------
  21202. # Set $? to STATUS, without forking.
  21203. as_fn_set_status ()
  21204. {
  21205. return $1
  21206. } # as_fn_set_status
  21207. # as_fn_exit STATUS
  21208. # -----------------
  21209. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  21210. as_fn_exit ()
  21211. {
  21212. set +e
  21213. as_fn_set_status $1
  21214. exit $1
  21215. } # as_fn_exit
  21216. # as_fn_unset VAR
  21217. # ---------------
  21218. # Portably unset VAR.
  21219. as_fn_unset ()
  21220. {
  21221. { eval $1=; unset $1;}
  21222. }
  21223. as_unset=as_fn_unset
  21224. # as_fn_append VAR VALUE
  21225. # ----------------------
  21226. # Append the text in VALUE to the end of the definition contained in VAR. Take
  21227. # advantage of any shell optimizations that allow amortized linear growth over
  21228. # repeated appends, instead of the typical quadratic growth present in naive
  21229. # implementations.
  21230. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  21231. then :
  21232. eval 'as_fn_append ()
  21233. {
  21234. eval $1+=\$2
  21235. }'
  21236. else $as_nop
  21237. as_fn_append ()
  21238. {
  21239. eval $1=\$$1\$2
  21240. }
  21241. fi # as_fn_append
  21242. # as_fn_arith ARG...
  21243. # ------------------
  21244. # Perform arithmetic evaluation on the ARGs, and store the result in the
  21245. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  21246. # must be portable across $(()) and expr.
  21247. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  21248. then :
  21249. eval 'as_fn_arith ()
  21250. {
  21251. as_val=$(( $* ))
  21252. }'
  21253. else $as_nop
  21254. as_fn_arith ()
  21255. {
  21256. as_val=`expr "$@" || test $? -eq 1`
  21257. }
  21258. fi # as_fn_arith
  21259. if expr a : '\(a\)' >/dev/null 2>&1 &&
  21260. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  21261. as_expr=expr
  21262. else
  21263. as_expr=false
  21264. fi
  21265. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  21266. as_basename=basename
  21267. else
  21268. as_basename=false
  21269. fi
  21270. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  21271. as_dirname=dirname
  21272. else
  21273. as_dirname=false
  21274. fi
  21275. as_me=`$as_basename -- "$0" ||
  21276. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  21277. X"$0" : 'X\(//\)$' \| \
  21278. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  21279. printf "%s\n" X/"$0" |
  21280. sed '/^.*\/\([^/][^/]*\)\/*$/{
  21281. s//\1/
  21282. q
  21283. }
  21284. /^X\/\(\/\/\)$/{
  21285. s//\1/
  21286. q
  21287. }
  21288. /^X\/\(\/\).*/{
  21289. s//\1/
  21290. q
  21291. }
  21292. s/.*/./; q'`
  21293. # Avoid depending upon Character Ranges.
  21294. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  21295. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  21296. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  21297. as_cr_digits='0123456789'
  21298. as_cr_alnum=$as_cr_Letters$as_cr_digits
  21299. # Determine whether it's possible to make 'echo' print without a newline.
  21300. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  21301. # for compatibility with existing Makefiles.
  21302. ECHO_C= ECHO_N= ECHO_T=
  21303. case `echo -n x` in #(((((
  21304. -n*)
  21305. case `echo 'xy\c'` in
  21306. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  21307. xy) ECHO_C='\c';;
  21308. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  21309. ECHO_T=' ';;
  21310. esac;;
  21311. *)
  21312. ECHO_N='-n';;
  21313. esac
  21314. # For backward compatibility with old third-party macros, we provide
  21315. # the shell variables $as_echo and $as_echo_n. New code should use
  21316. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  21317. as_echo='printf %s\n'
  21318. as_echo_n='printf %s'
  21319. rm -f conf$$ conf$$.exe conf$$.file
  21320. if test -d conf$$.dir; then
  21321. rm -f conf$$.dir/conf$$.file
  21322. else
  21323. rm -f conf$$.dir
  21324. mkdir conf$$.dir 2>/dev/null
  21325. fi
  21326. if (echo >conf$$.file) 2>/dev/null; then
  21327. if ln -s conf$$.file conf$$ 2>/dev/null; then
  21328. as_ln_s='ln -s'
  21329. # ... but there are two gotchas:
  21330. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  21331. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  21332. # In both cases, we have to default to `cp -pR'.
  21333. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  21334. as_ln_s='cp -pR'
  21335. elif ln conf$$.file conf$$ 2>/dev/null; then
  21336. as_ln_s=ln
  21337. else
  21338. as_ln_s='cp -pR'
  21339. fi
  21340. else
  21341. as_ln_s='cp -pR'
  21342. fi
  21343. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  21344. rmdir conf$$.dir 2>/dev/null
  21345. # as_fn_mkdir_p
  21346. # -------------
  21347. # Create "$as_dir" as a directory, including parents if necessary.
  21348. as_fn_mkdir_p ()
  21349. {
  21350. case $as_dir in #(
  21351. -*) as_dir=./$as_dir;;
  21352. esac
  21353. test -d "$as_dir" || eval $as_mkdir_p || {
  21354. as_dirs=
  21355. while :; do
  21356. case $as_dir in #(
  21357. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  21358. *) as_qdir=$as_dir;;
  21359. esac
  21360. as_dirs="'$as_qdir' $as_dirs"
  21361. as_dir=`$as_dirname -- "$as_dir" ||
  21362. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21363. X"$as_dir" : 'X\(//\)[^/]' \| \
  21364. X"$as_dir" : 'X\(//\)$' \| \
  21365. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  21366. printf "%s\n" X"$as_dir" |
  21367. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21368. s//\1/
  21369. q
  21370. }
  21371. /^X\(\/\/\)[^/].*/{
  21372. s//\1/
  21373. q
  21374. }
  21375. /^X\(\/\/\)$/{
  21376. s//\1/
  21377. q
  21378. }
  21379. /^X\(\/\).*/{
  21380. s//\1/
  21381. q
  21382. }
  21383. s/.*/./; q'`
  21384. test -d "$as_dir" && break
  21385. done
  21386. test -z "$as_dirs" || eval "mkdir $as_dirs"
  21387. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  21388. } # as_fn_mkdir_p
  21389. if mkdir -p . 2>/dev/null; then
  21390. as_mkdir_p='mkdir -p "$as_dir"'
  21391. else
  21392. test -d ./-p && rmdir ./-p
  21393. as_mkdir_p=false
  21394. fi
  21395. # as_fn_executable_p FILE
  21396. # -----------------------
  21397. # Test if FILE is an executable regular file.
  21398. as_fn_executable_p ()
  21399. {
  21400. test -f "$1" && test -x "$1"
  21401. } # as_fn_executable_p
  21402. as_test_x='test -x'
  21403. as_executable_p=as_fn_executable_p
  21404. # Sed expression to map a string onto a valid CPP name.
  21405. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  21406. # Sed expression to map a string onto a valid variable name.
  21407. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  21408. exec 6>&1
  21409. ## ----------------------------------- ##
  21410. ## Main body of $CONFIG_STATUS script. ##
  21411. ## ----------------------------------- ##
  21412. _ASEOF
  21413. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  21414. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21415. # Save the log message, to keep $0 and so on meaningful, and to
  21416. # report actual input values of CONFIG_FILES etc. instead of their
  21417. # values after options handling.
  21418. ac_log="
  21419. This file was extended by libssh2 $as_me -, which was
  21420. generated by GNU Autoconf 2.71. Invocation command line was
  21421. CONFIG_FILES = $CONFIG_FILES
  21422. CONFIG_HEADERS = $CONFIG_HEADERS
  21423. CONFIG_LINKS = $CONFIG_LINKS
  21424. CONFIG_COMMANDS = $CONFIG_COMMANDS
  21425. $ $0 $@
  21426. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  21427. "
  21428. _ACEOF
  21429. case $ac_config_files in *"
  21430. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  21431. esac
  21432. case $ac_config_headers in *"
  21433. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  21434. esac
  21435. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21436. # Files that config.status was made for.
  21437. config_files="$ac_config_files"
  21438. config_headers="$ac_config_headers"
  21439. config_commands="$ac_config_commands"
  21440. _ACEOF
  21441. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21442. ac_cs_usage="\
  21443. \`$as_me' instantiates files and other configuration actions
  21444. from templates according to the current configuration. Unless the files
  21445. and actions are specified as TAGs, all are instantiated by default.
  21446. Usage: $0 [OPTION]... [TAG]...
  21447. -h, --help print this help, then exit
  21448. -V, --version print version number and configuration settings, then exit
  21449. --config print configuration, then exit
  21450. -q, --quiet, --silent
  21451. do not print progress messages
  21452. -d, --debug don't remove temporary files
  21453. --recheck update $as_me by reconfiguring in the same conditions
  21454. --file=FILE[:TEMPLATE]
  21455. instantiate the configuration file FILE
  21456. --header=FILE[:TEMPLATE]
  21457. instantiate the configuration header FILE
  21458. Configuration files:
  21459. $config_files
  21460. Configuration headers:
  21461. $config_headers
  21462. Configuration commands:
  21463. $config_commands
  21464. Report bugs to <[email protected]>."
  21465. _ACEOF
  21466. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  21467. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  21468. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21469. ac_cs_config='$ac_cs_config_escaped'
  21470. ac_cs_version="\\
  21471. libssh2 config.status -
  21472. configured by $0, generated by GNU Autoconf 2.71,
  21473. with options \\"\$ac_cs_config\\"
  21474. Copyright (C) 2021 Free Software Foundation, Inc.
  21475. This config.status script is free software; the Free Software Foundation
  21476. gives unlimited permission to copy, distribute and modify it."
  21477. ac_pwd='$ac_pwd'
  21478. srcdir='$srcdir'
  21479. INSTALL='$INSTALL'
  21480. MKDIR_P='$MKDIR_P'
  21481. AWK='$AWK'
  21482. test -n "\$AWK" || AWK=awk
  21483. _ACEOF
  21484. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21485. # The default lists apply if the user does not specify any file.
  21486. ac_need_defaults=:
  21487. while test $# != 0
  21488. do
  21489. case $1 in
  21490. --*=?*)
  21491. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  21492. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  21493. ac_shift=:
  21494. ;;
  21495. --*=)
  21496. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  21497. ac_optarg=
  21498. ac_shift=:
  21499. ;;
  21500. *)
  21501. ac_option=$1
  21502. ac_optarg=$2
  21503. ac_shift=shift
  21504. ;;
  21505. esac
  21506. case $ac_option in
  21507. # Handling of the options.
  21508. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  21509. ac_cs_recheck=: ;;
  21510. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  21511. printf "%s\n" "$ac_cs_version"; exit ;;
  21512. --config | --confi | --conf | --con | --co | --c )
  21513. printf "%s\n" "$ac_cs_config"; exit ;;
  21514. --debug | --debu | --deb | --de | --d | -d )
  21515. debug=: ;;
  21516. --file | --fil | --fi | --f )
  21517. $ac_shift
  21518. case $ac_optarg in
  21519. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21520. '') as_fn_error $? "missing file argument" ;;
  21521. esac
  21522. as_fn_append CONFIG_FILES " '$ac_optarg'"
  21523. ac_need_defaults=false;;
  21524. --header | --heade | --head | --hea )
  21525. $ac_shift
  21526. case $ac_optarg in
  21527. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21528. esac
  21529. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  21530. ac_need_defaults=false;;
  21531. --he | --h)
  21532. # Conflict between --help and --header
  21533. as_fn_error $? "ambiguous option: \`$1'
  21534. Try \`$0 --help' for more information.";;
  21535. --help | --hel | -h )
  21536. printf "%s\n" "$ac_cs_usage"; exit ;;
  21537. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  21538. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  21539. ac_cs_silent=: ;;
  21540. # This is an error.
  21541. -*) as_fn_error $? "unrecognized option: \`$1'
  21542. Try \`$0 --help' for more information." ;;
  21543. *) as_fn_append ac_config_targets " $1"
  21544. ac_need_defaults=false ;;
  21545. esac
  21546. shift
  21547. done
  21548. ac_configure_extra_args=
  21549. if $ac_cs_silent; then
  21550. exec 6>/dev/null
  21551. ac_configure_extra_args="$ac_configure_extra_args --silent"
  21552. fi
  21553. _ACEOF
  21554. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21555. if \$ac_cs_recheck; then
  21556. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  21557. shift
  21558. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  21559. CONFIG_SHELL='$SHELL'
  21560. export CONFIG_SHELL
  21561. exec "\$@"
  21562. fi
  21563. _ACEOF
  21564. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21565. exec 5>>config.log
  21566. {
  21567. echo
  21568. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  21569. ## Running $as_me. ##
  21570. _ASBOX
  21571. printf "%s\n" "$ac_log"
  21572. } >&5
  21573. _ACEOF
  21574. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21575. #
  21576. # INIT-COMMANDS
  21577. #
  21578. AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
  21579. # The HP-UX ksh and POSIX shell print the target directory to stdout
  21580. # if CDPATH is set.
  21581. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  21582. sed_quote_subst='$sed_quote_subst'
  21583. double_quote_subst='$double_quote_subst'
  21584. delay_variable_subst='$delay_variable_subst'
  21585. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  21586. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  21587. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  21588. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  21589. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  21590. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  21591. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  21592. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  21593. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  21594. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  21595. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  21596. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  21597. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  21598. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  21599. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  21600. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  21601. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  21602. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  21603. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  21604. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  21605. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  21606. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  21607. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  21608. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  21609. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  21610. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  21611. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  21612. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  21613. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  21614. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  21615. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  21616. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  21617. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  21618. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  21619. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  21620. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  21621. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  21622. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  21623. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  21624. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  21625. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  21626. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  21627. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  21628. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  21629. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  21630. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  21631. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  21632. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  21633. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  21634. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  21635. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  21636. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  21637. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  21638. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  21639. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  21640. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  21641. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  21642. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  21643. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  21644. 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"`'
  21645. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  21646. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  21647. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  21648. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  21649. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  21650. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  21651. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  21652. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  21653. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  21654. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  21655. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  21656. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  21657. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  21658. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  21659. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  21660. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  21661. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  21662. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  21663. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  21664. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  21665. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  21666. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  21667. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  21668. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  21669. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  21670. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  21671. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  21672. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  21673. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  21674. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  21675. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  21676. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  21677. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  21678. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  21679. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  21680. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  21681. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  21682. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  21683. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  21684. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  21685. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  21686. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  21687. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  21688. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  21689. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  21690. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  21691. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  21692. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  21693. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  21694. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  21695. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  21696. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  21697. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  21698. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  21699. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  21700. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  21701. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  21702. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  21703. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  21704. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  21705. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  21706. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  21707. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  21708. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  21709. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  21710. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  21711. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  21712. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  21713. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  21714. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  21715. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  21716. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  21717. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  21718. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  21719. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  21720. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  21721. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  21722. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  21723. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  21724. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  21725. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  21726. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  21727. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  21728. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21729. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21730. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21731. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  21732. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  21733. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21734. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  21735. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  21736. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  21737. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  21738. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  21739. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  21740. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21741. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21742. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  21743. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21744. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21745. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21746. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21747. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21748. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21749. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  21750. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21751. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21752. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21753. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  21754. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  21755. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  21756. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  21757. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  21758. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  21759. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  21760. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  21761. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  21762. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21763. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  21764. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  21765. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21766. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21767. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21768. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  21769. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  21770. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  21771. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  21772. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  21773. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  21774. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  21775. LTCC='$LTCC'
  21776. LTCFLAGS='$LTCFLAGS'
  21777. compiler='$compiler_DEFAULT'
  21778. # A function that is used when there is no print builtin or printf.
  21779. func_fallback_echo ()
  21780. {
  21781. eval 'cat <<_LTECHO_EOF
  21782. \$1
  21783. _LTECHO_EOF'
  21784. }
  21785. # Quote evaled strings.
  21786. for var in AS \
  21787. DLLTOOL \
  21788. OBJDUMP \
  21789. SHELL \
  21790. ECHO \
  21791. PATH_SEPARATOR \
  21792. SED \
  21793. GREP \
  21794. EGREP \
  21795. FGREP \
  21796. LD \
  21797. NM \
  21798. LN_S \
  21799. lt_SP2NL \
  21800. lt_NL2SP \
  21801. reload_flag \
  21802. deplibs_check_method \
  21803. file_magic_cmd \
  21804. file_magic_glob \
  21805. want_nocaseglob \
  21806. sharedlib_from_linklib_cmd \
  21807. AR \
  21808. AR_FLAGS \
  21809. archiver_list_spec \
  21810. STRIP \
  21811. RANLIB \
  21812. CC \
  21813. CFLAGS \
  21814. compiler \
  21815. lt_cv_sys_global_symbol_pipe \
  21816. lt_cv_sys_global_symbol_to_cdecl \
  21817. lt_cv_sys_global_symbol_to_import \
  21818. lt_cv_sys_global_symbol_to_c_name_address \
  21819. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  21820. lt_cv_nm_interface \
  21821. nm_file_list_spec \
  21822. lt_cv_truncate_bin \
  21823. lt_prog_compiler_no_builtin_flag \
  21824. lt_prog_compiler_pic \
  21825. lt_prog_compiler_wl \
  21826. lt_prog_compiler_static \
  21827. lt_cv_prog_compiler_c_o \
  21828. need_locks \
  21829. MANIFEST_TOOL \
  21830. DSYMUTIL \
  21831. NMEDIT \
  21832. LIPO \
  21833. OTOOL \
  21834. OTOOL64 \
  21835. shrext_cmds \
  21836. export_dynamic_flag_spec \
  21837. whole_archive_flag_spec \
  21838. compiler_needs_object \
  21839. with_gnu_ld \
  21840. allow_undefined_flag \
  21841. no_undefined_flag \
  21842. hardcode_libdir_flag_spec \
  21843. hardcode_libdir_separator \
  21844. exclude_expsyms \
  21845. include_expsyms \
  21846. file_list_spec \
  21847. variables_saved_for_relink \
  21848. libname_spec \
  21849. library_names_spec \
  21850. soname_spec \
  21851. install_override_mode \
  21852. finish_eval \
  21853. old_striplib \
  21854. striplib \
  21855. compiler_lib_search_dirs \
  21856. predep_objects \
  21857. postdep_objects \
  21858. predeps \
  21859. postdeps \
  21860. compiler_lib_search_path \
  21861. LD_CXX \
  21862. reload_flag_CXX \
  21863. compiler_CXX \
  21864. lt_prog_compiler_no_builtin_flag_CXX \
  21865. lt_prog_compiler_pic_CXX \
  21866. lt_prog_compiler_wl_CXX \
  21867. lt_prog_compiler_static_CXX \
  21868. lt_cv_prog_compiler_c_o_CXX \
  21869. export_dynamic_flag_spec_CXX \
  21870. whole_archive_flag_spec_CXX \
  21871. compiler_needs_object_CXX \
  21872. with_gnu_ld_CXX \
  21873. allow_undefined_flag_CXX \
  21874. no_undefined_flag_CXX \
  21875. hardcode_libdir_flag_spec_CXX \
  21876. hardcode_libdir_separator_CXX \
  21877. exclude_expsyms_CXX \
  21878. include_expsyms_CXX \
  21879. file_list_spec_CXX \
  21880. compiler_lib_search_dirs_CXX \
  21881. predep_objects_CXX \
  21882. postdep_objects_CXX \
  21883. predeps_CXX \
  21884. postdeps_CXX \
  21885. compiler_lib_search_path_CXX; do
  21886. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  21887. *[\\\\\\\`\\"\\\$]*)
  21888. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  21889. ;;
  21890. *)
  21891. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  21892. ;;
  21893. esac
  21894. done
  21895. # Double-quote double-evaled strings.
  21896. for var in reload_cmds \
  21897. old_postinstall_cmds \
  21898. old_postuninstall_cmds \
  21899. old_archive_cmds \
  21900. extract_expsyms_cmds \
  21901. old_archive_from_new_cmds \
  21902. old_archive_from_expsyms_cmds \
  21903. archive_cmds \
  21904. archive_expsym_cmds \
  21905. module_cmds \
  21906. module_expsym_cmds \
  21907. export_symbols_cmds \
  21908. prelink_cmds \
  21909. postlink_cmds \
  21910. postinstall_cmds \
  21911. postuninstall_cmds \
  21912. finish_cmds \
  21913. sys_lib_search_path_spec \
  21914. configure_time_dlsearch_path \
  21915. configure_time_lt_sys_library_path \
  21916. reload_cmds_CXX \
  21917. old_archive_cmds_CXX \
  21918. old_archive_from_new_cmds_CXX \
  21919. old_archive_from_expsyms_cmds_CXX \
  21920. archive_cmds_CXX \
  21921. archive_expsym_cmds_CXX \
  21922. module_cmds_CXX \
  21923. module_expsym_cmds_CXX \
  21924. export_symbols_cmds_CXX \
  21925. prelink_cmds_CXX \
  21926. postlink_cmds_CXX; do
  21927. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  21928. *[\\\\\\\`\\"\\\$]*)
  21929. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  21930. ;;
  21931. *)
  21932. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  21933. ;;
  21934. esac
  21935. done
  21936. ac_aux_dir='$ac_aux_dir'
  21937. # See if we are running on zsh, and set the options that allow our
  21938. # commands through without removal of \ escapes INIT.
  21939. if test -n "\${ZSH_VERSION+set}"; then
  21940. setopt NO_GLOB_SUBST
  21941. fi
  21942. PACKAGE='$PACKAGE'
  21943. VERSION='$VERSION'
  21944. RM='$RM'
  21945. ofile='$ofile'
  21946. _ACEOF
  21947. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21948. # Handling of arguments.
  21949. for ac_config_target in $ac_config_targets
  21950. do
  21951. case $ac_config_target in
  21952. "src/libssh2_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/libssh2_config.h" ;;
  21953. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  21954. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  21955. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  21956. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  21957. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  21958. "tests/ossfuzz/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ossfuzz/Makefile" ;;
  21959. "example/Makefile") CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
  21960. "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
  21961. "libssh2.pc") CONFIG_FILES="$CONFIG_FILES libssh2.pc" ;;
  21962. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  21963. esac
  21964. done
  21965. # If the user did not use the arguments to specify the items to instantiate,
  21966. # then the envvar interface is used. Set only those that are not.
  21967. # We use the long form for the default assignment because of an extremely
  21968. # bizarre bug on SunOS 4.1.3.
  21969. if $ac_need_defaults; then
  21970. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  21971. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  21972. test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
  21973. fi
  21974. # Have a temporary directory for convenience. Make it in the build tree
  21975. # simply because there is no reason against having it here, and in addition,
  21976. # creating and moving files from /tmp can sometimes cause problems.
  21977. # Hook for its removal unless debugging.
  21978. # Note that there is a small window in which the directory will not be cleaned:
  21979. # after its creation but before its name has been assigned to `$tmp'.
  21980. $debug ||
  21981. {
  21982. tmp= ac_tmp=
  21983. trap 'exit_status=$?
  21984. : "${ac_tmp:=$tmp}"
  21985. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  21986. ' 0
  21987. trap 'as_fn_exit 1' 1 2 13 15
  21988. }
  21989. # Create a (secure) tmp directory for tmp files.
  21990. {
  21991. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  21992. test -d "$tmp"
  21993. } ||
  21994. {
  21995. tmp=./conf$$-$RANDOM
  21996. (umask 077 && mkdir "$tmp")
  21997. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  21998. ac_tmp=$tmp
  21999. # Set up the scripts for CONFIG_FILES section.
  22000. # No need to generate them if there are no CONFIG_FILES.
  22001. # This happens for instance with `./config.status config.h'.
  22002. if test -n "$CONFIG_FILES"; then
  22003. ac_cr=`echo X | tr X '\015'`
  22004. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  22005. # But we know of no other shell where ac_cr would be empty at this
  22006. # point, so we can use a bashism as a fallback.
  22007. if test "x$ac_cr" = x; then
  22008. eval ac_cr=\$\'\\r\'
  22009. fi
  22010. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  22011. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  22012. ac_cs_awk_cr='\\r'
  22013. else
  22014. ac_cs_awk_cr=$ac_cr
  22015. fi
  22016. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  22017. _ACEOF
  22018. {
  22019. echo "cat >conf$$subs.awk <<_ACEOF" &&
  22020. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  22021. echo "_ACEOF"
  22022. } >conf$$subs.sh ||
  22023. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22024. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  22025. ac_delim='%!_!# '
  22026. for ac_last_try in false false false false false :; do
  22027. . ./conf$$subs.sh ||
  22028. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22029. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  22030. if test $ac_delim_n = $ac_delim_num; then
  22031. break
  22032. elif $ac_last_try; then
  22033. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22034. else
  22035. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22036. fi
  22037. done
  22038. rm -f conf$$subs.sh
  22039. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22040. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  22041. _ACEOF
  22042. sed -n '
  22043. h
  22044. s/^/S["/; s/!.*/"]=/
  22045. p
  22046. g
  22047. s/^[^!]*!//
  22048. :repl
  22049. t repl
  22050. s/'"$ac_delim"'$//
  22051. t delim
  22052. :nl
  22053. h
  22054. s/\(.\{148\}\)..*/\1/
  22055. t more1
  22056. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  22057. p
  22058. n
  22059. b repl
  22060. :more1
  22061. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22062. p
  22063. g
  22064. s/.\{148\}//
  22065. t nl
  22066. :delim
  22067. h
  22068. s/\(.\{148\}\)..*/\1/
  22069. t more2
  22070. s/["\\]/\\&/g; s/^/"/; s/$/"/
  22071. p
  22072. b
  22073. :more2
  22074. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22075. p
  22076. g
  22077. s/.\{148\}//
  22078. t delim
  22079. ' <conf$$subs.awk | sed '
  22080. /^[^""]/{
  22081. N
  22082. s/\n//
  22083. }
  22084. ' >>$CONFIG_STATUS || ac_write_fail=1
  22085. rm -f conf$$subs.awk
  22086. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22087. _ACAWK
  22088. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  22089. for (key in S) S_is_set[key] = 1
  22090. FS = ""
  22091. }
  22092. {
  22093. line = $ 0
  22094. nfields = split(line, field, "@")
  22095. substed = 0
  22096. len = length(field[1])
  22097. for (i = 2; i < nfields; i++) {
  22098. key = field[i]
  22099. keylen = length(key)
  22100. if (S_is_set[key]) {
  22101. value = S[key]
  22102. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  22103. len += length(value) + length(field[++i])
  22104. substed = 1
  22105. } else
  22106. len += 1 + keylen
  22107. }
  22108. print line
  22109. }
  22110. _ACAWK
  22111. _ACEOF
  22112. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22113. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  22114. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  22115. else
  22116. cat
  22117. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  22118. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  22119. _ACEOF
  22120. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  22121. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  22122. # trailing colons and then remove the whole line if VPATH becomes empty
  22123. # (actually we leave an empty line to preserve line numbers).
  22124. if test "x$srcdir" = x.; then
  22125. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  22126. h
  22127. s///
  22128. s/^/:/
  22129. s/[ ]*$/:/
  22130. s/:\$(srcdir):/:/g
  22131. s/:\${srcdir}:/:/g
  22132. s/:@srcdir@:/:/g
  22133. s/^:*//
  22134. s/:*$//
  22135. x
  22136. s/\(=[ ]*\).*/\1/
  22137. G
  22138. s/\n//
  22139. s/^[^=]*=[ ]*$//
  22140. }'
  22141. fi
  22142. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22143. fi # test -n "$CONFIG_FILES"
  22144. # Set up the scripts for CONFIG_HEADERS section.
  22145. # No need to generate them if there are no CONFIG_HEADERS.
  22146. # This happens for instance with `./config.status Makefile'.
  22147. if test -n "$CONFIG_HEADERS"; then
  22148. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  22149. BEGIN {
  22150. _ACEOF
  22151. # Transform confdefs.h into an awk script `defines.awk', embedded as
  22152. # here-document in config.status, that substitutes the proper values into
  22153. # config.h.in to produce config.h.
  22154. # Create a delimiter string that does not exist in confdefs.h, to ease
  22155. # handling of long lines.
  22156. ac_delim='%!_!# '
  22157. for ac_last_try in false false :; do
  22158. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  22159. if test -z "$ac_tt"; then
  22160. break
  22161. elif $ac_last_try; then
  22162. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  22163. else
  22164. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22165. fi
  22166. done
  22167. # For the awk script, D is an array of macro values keyed by name,
  22168. # likewise P contains macro parameters if any. Preserve backslash
  22169. # newline sequences.
  22170. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  22171. sed -n '
  22172. s/.\{148\}/&'"$ac_delim"'/g
  22173. t rset
  22174. :rset
  22175. s/^[ ]*#[ ]*define[ ][ ]*/ /
  22176. t def
  22177. d
  22178. :def
  22179. s/\\$//
  22180. t bsnl
  22181. s/["\\]/\\&/g
  22182. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  22183. D["\1"]=" \3"/p
  22184. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  22185. d
  22186. :bsnl
  22187. s/["\\]/\\&/g
  22188. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  22189. D["\1"]=" \3\\\\\\n"\\/p
  22190. t cont
  22191. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  22192. t cont
  22193. d
  22194. :cont
  22195. n
  22196. s/.\{148\}/&'"$ac_delim"'/g
  22197. t clear
  22198. :clear
  22199. s/\\$//
  22200. t bsnlc
  22201. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  22202. d
  22203. :bsnlc
  22204. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  22205. b cont
  22206. ' <confdefs.h | sed '
  22207. s/'"$ac_delim"'/"\\\
  22208. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  22209. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22210. for (key in D) D_is_set[key] = 1
  22211. FS = ""
  22212. }
  22213. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  22214. line = \$ 0
  22215. split(line, arg, " ")
  22216. if (arg[1] == "#") {
  22217. defundef = arg[2]
  22218. mac1 = arg[3]
  22219. } else {
  22220. defundef = substr(arg[1], 2)
  22221. mac1 = arg[2]
  22222. }
  22223. split(mac1, mac2, "(") #)
  22224. macro = mac2[1]
  22225. prefix = substr(line, 1, index(line, defundef) - 1)
  22226. if (D_is_set[macro]) {
  22227. # Preserve the white space surrounding the "#".
  22228. print prefix "define", macro P[macro] D[macro]
  22229. next
  22230. } else {
  22231. # Replace #undef with comments. This is necessary, for example,
  22232. # in the case of _POSIX_SOURCE, which is predefined and required
  22233. # on some systems where configure will not decide to define it.
  22234. if (defundef == "undef") {
  22235. print "/*", prefix defundef, macro, "*/"
  22236. next
  22237. }
  22238. }
  22239. }
  22240. { print }
  22241. _ACAWK
  22242. _ACEOF
  22243. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22244. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  22245. fi # test -n "$CONFIG_HEADERS"
  22246. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  22247. shift
  22248. for ac_tag
  22249. do
  22250. case $ac_tag in
  22251. :[FHLC]) ac_mode=$ac_tag; continue;;
  22252. esac
  22253. case $ac_mode$ac_tag in
  22254. :[FHL]*:*);;
  22255. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  22256. :[FH]-) ac_tag=-:-;;
  22257. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  22258. esac
  22259. ac_save_IFS=$IFS
  22260. IFS=:
  22261. set x $ac_tag
  22262. IFS=$ac_save_IFS
  22263. shift
  22264. ac_file=$1
  22265. shift
  22266. case $ac_mode in
  22267. :L) ac_source=$1;;
  22268. :[FH])
  22269. ac_file_inputs=
  22270. for ac_f
  22271. do
  22272. case $ac_f in
  22273. -) ac_f="$ac_tmp/stdin";;
  22274. *) # Look for the file first in the build tree, then in the source tree
  22275. # (if the path is not absolute). The absolute path cannot be DOS-style,
  22276. # because $ac_f cannot contain `:'.
  22277. test -f "$ac_f" ||
  22278. case $ac_f in
  22279. [\\/$]*) false;;
  22280. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  22281. esac ||
  22282. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  22283. esac
  22284. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  22285. as_fn_append ac_file_inputs " '$ac_f'"
  22286. done
  22287. # Let's still pretend it is `configure' which instantiates (i.e., don't
  22288. # use $as_me), people would be surprised to read:
  22289. # /* config.h. Generated by config.status. */
  22290. configure_input='Generated from '`
  22291. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  22292. `' by configure.'
  22293. if test x"$ac_file" != x-; then
  22294. configure_input="$ac_file. $configure_input"
  22295. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  22296. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  22297. fi
  22298. # Neutralize special characters interpreted by sed in replacement strings.
  22299. case $configure_input in #(
  22300. *\&* | *\|* | *\\* )
  22301. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  22302. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  22303. *) ac_sed_conf_input=$configure_input;;
  22304. esac
  22305. case $ac_tag in
  22306. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  22307. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  22308. esac
  22309. ;;
  22310. esac
  22311. ac_dir=`$as_dirname -- "$ac_file" ||
  22312. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22313. X"$ac_file" : 'X\(//\)[^/]' \| \
  22314. X"$ac_file" : 'X\(//\)$' \| \
  22315. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  22316. printf "%s\n" X"$ac_file" |
  22317. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22318. s//\1/
  22319. q
  22320. }
  22321. /^X\(\/\/\)[^/].*/{
  22322. s//\1/
  22323. q
  22324. }
  22325. /^X\(\/\/\)$/{
  22326. s//\1/
  22327. q
  22328. }
  22329. /^X\(\/\).*/{
  22330. s//\1/
  22331. q
  22332. }
  22333. s/.*/./; q'`
  22334. as_dir="$ac_dir"; as_fn_mkdir_p
  22335. ac_builddir=.
  22336. case "$ac_dir" in
  22337. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  22338. *)
  22339. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  22340. # A ".." for each directory in $ac_dir_suffix.
  22341. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  22342. case $ac_top_builddir_sub in
  22343. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  22344. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  22345. esac ;;
  22346. esac
  22347. ac_abs_top_builddir=$ac_pwd
  22348. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  22349. # for backward compatibility:
  22350. ac_top_builddir=$ac_top_build_prefix
  22351. case $srcdir in
  22352. .) # We are building in place.
  22353. ac_srcdir=.
  22354. ac_top_srcdir=$ac_top_builddir_sub
  22355. ac_abs_top_srcdir=$ac_pwd ;;
  22356. [\\/]* | ?:[\\/]* ) # Absolute name.
  22357. ac_srcdir=$srcdir$ac_dir_suffix;
  22358. ac_top_srcdir=$srcdir
  22359. ac_abs_top_srcdir=$srcdir ;;
  22360. *) # Relative name.
  22361. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  22362. ac_top_srcdir=$ac_top_build_prefix$srcdir
  22363. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  22364. esac
  22365. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  22366. case $ac_mode in
  22367. :F)
  22368. #
  22369. # CONFIG_FILE
  22370. #
  22371. case $INSTALL in
  22372. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  22373. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  22374. esac
  22375. ac_MKDIR_P=$MKDIR_P
  22376. case $MKDIR_P in
  22377. [\\/$]* | ?:[\\/]* ) ;;
  22378. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  22379. esac
  22380. _ACEOF
  22381. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22382. # If the template does not know about datarootdir, expand it.
  22383. # FIXME: This hack should be removed a few years after 2.60.
  22384. ac_datarootdir_hack=; ac_datarootdir_seen=
  22385. ac_sed_dataroot='
  22386. /datarootdir/ {
  22387. p
  22388. q
  22389. }
  22390. /@datadir@/p
  22391. /@docdir@/p
  22392. /@infodir@/p
  22393. /@localedir@/p
  22394. /@mandir@/p'
  22395. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  22396. *datarootdir*) ac_datarootdir_seen=yes;;
  22397. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  22398. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  22399. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  22400. _ACEOF
  22401. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22402. ac_datarootdir_hack='
  22403. s&@datadir@&$datadir&g
  22404. s&@docdir@&$docdir&g
  22405. s&@infodir@&$infodir&g
  22406. s&@localedir@&$localedir&g
  22407. s&@mandir@&$mandir&g
  22408. s&\\\${datarootdir}&$datarootdir&g' ;;
  22409. esac
  22410. _ACEOF
  22411. # Neutralize VPATH when `$srcdir' = `.'.
  22412. # Shell code in configure.ac might set extrasub.
  22413. # FIXME: do we really want to maintain this feature?
  22414. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22415. ac_sed_extra="$ac_vpsub
  22416. $extrasub
  22417. _ACEOF
  22418. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22419. :t
  22420. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  22421. s|@configure_input@|$ac_sed_conf_input|;t t
  22422. s&@top_builddir@&$ac_top_builddir_sub&;t t
  22423. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  22424. s&@srcdir@&$ac_srcdir&;t t
  22425. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  22426. s&@top_srcdir@&$ac_top_srcdir&;t t
  22427. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  22428. s&@builddir@&$ac_builddir&;t t
  22429. s&@abs_builddir@&$ac_abs_builddir&;t t
  22430. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  22431. s&@INSTALL@&$ac_INSTALL&;t t
  22432. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  22433. $ac_datarootdir_hack
  22434. "
  22435. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  22436. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22437. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  22438. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  22439. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  22440. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  22441. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22442. which seems to be undefined. Please make sure it is defined" >&5
  22443. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22444. which seems to be undefined. Please make sure it is defined" >&2;}
  22445. rm -f "$ac_tmp/stdin"
  22446. case $ac_file in
  22447. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  22448. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  22449. esac \
  22450. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22451. ;;
  22452. :H)
  22453. #
  22454. # CONFIG_HEADER
  22455. #
  22456. if test x"$ac_file" != x-; then
  22457. {
  22458. printf "%s\n" "/* $configure_input */" >&1 \
  22459. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  22460. } >"$ac_tmp/config.h" \
  22461. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22462. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  22463. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  22464. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  22465. else
  22466. rm -f "$ac_file"
  22467. mv "$ac_tmp/config.h" "$ac_file" \
  22468. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22469. fi
  22470. else
  22471. printf "%s\n" "/* $configure_input */" >&1 \
  22472. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  22473. || as_fn_error $? "could not create -" "$LINENO" 5
  22474. fi
  22475. # Compute "$ac_file"'s index in $config_headers.
  22476. _am_arg="$ac_file"
  22477. _am_stamp_count=1
  22478. for _am_header in $config_headers :; do
  22479. case $_am_header in
  22480. $_am_arg | $_am_arg:* )
  22481. break ;;
  22482. * )
  22483. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  22484. esac
  22485. done
  22486. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  22487. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22488. X"$_am_arg" : 'X\(//\)[^/]' \| \
  22489. X"$_am_arg" : 'X\(//\)$' \| \
  22490. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  22491. printf "%s\n" X"$_am_arg" |
  22492. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22493. s//\1/
  22494. q
  22495. }
  22496. /^X\(\/\/\)[^/].*/{
  22497. s//\1/
  22498. q
  22499. }
  22500. /^X\(\/\/\)$/{
  22501. s//\1/
  22502. q
  22503. }
  22504. /^X\(\/\).*/{
  22505. s//\1/
  22506. q
  22507. }
  22508. s/.*/./; q'`/stamp-h$_am_stamp_count
  22509. ;;
  22510. :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  22511. printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
  22512. ;;
  22513. esac
  22514. case $ac_file$ac_mode in
  22515. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  22516. # Older Autoconf quotes --file arguments for eval, but not when files
  22517. # are listed without --file. Let's play safe and only enable the eval
  22518. # if we detect the quoting.
  22519. # TODO: see whether this extra hack can be removed once we start
  22520. # requiring Autoconf 2.70 or later.
  22521. case $CONFIG_FILES in #(
  22522. *\'*) :
  22523. eval set x "$CONFIG_FILES" ;; #(
  22524. *) :
  22525. set x $CONFIG_FILES ;; #(
  22526. *) :
  22527. ;;
  22528. esac
  22529. shift
  22530. # Used to flag and report bootstrapping failures.
  22531. am_rc=0
  22532. for am_mf
  22533. do
  22534. # Strip MF so we end up with the name of the file.
  22535. am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
  22536. # Check whether this is an Automake generated Makefile which includes
  22537. # dependency-tracking related rules and includes.
  22538. # Grep'ing the whole file directly is not great: AIX grep has a line
  22539. # limit of 2048, but all sed's we know have understand at least 4000.
  22540. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
  22541. || continue
  22542. am_dirpart=`$as_dirname -- "$am_mf" ||
  22543. $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22544. X"$am_mf" : 'X\(//\)[^/]' \| \
  22545. X"$am_mf" : 'X\(//\)$' \| \
  22546. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  22547. printf "%s\n" X"$am_mf" |
  22548. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22549. s//\1/
  22550. q
  22551. }
  22552. /^X\(\/\/\)[^/].*/{
  22553. s//\1/
  22554. q
  22555. }
  22556. /^X\(\/\/\)$/{
  22557. s//\1/
  22558. q
  22559. }
  22560. /^X\(\/\).*/{
  22561. s//\1/
  22562. q
  22563. }
  22564. s/.*/./; q'`
  22565. am_filepart=`$as_basename -- "$am_mf" ||
  22566. $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
  22567. X"$am_mf" : 'X\(//\)$' \| \
  22568. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  22569. printf "%s\n" X/"$am_mf" |
  22570. sed '/^.*\/\([^/][^/]*\)\/*$/{
  22571. s//\1/
  22572. q
  22573. }
  22574. /^X\/\(\/\/\)$/{
  22575. s//\1/
  22576. q
  22577. }
  22578. /^X\/\(\/\).*/{
  22579. s//\1/
  22580. q
  22581. }
  22582. s/.*/./; q'`
  22583. { echo "$as_me:$LINENO: cd "$am_dirpart" \
  22584. && sed -e '/# am--include-marker/d' "$am_filepart" \
  22585. | $MAKE -f - am--depfiles" >&5
  22586. (cd "$am_dirpart" \
  22587. && sed -e '/# am--include-marker/d' "$am_filepart" \
  22588. | $MAKE -f - am--depfiles) >&5 2>&5
  22589. ac_status=$?
  22590. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22591. (exit $ac_status); } || am_rc=$?
  22592. done
  22593. if test $am_rc -ne 0; then
  22594. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  22595. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  22596. as_fn_error $? "Something went wrong bootstrapping makefile fragments
  22597. for automatic dependency tracking. If GNU make was not used, consider
  22598. re-running the configure script with MAKE=\"gmake\" (or whatever is
  22599. necessary). You can also try re-running configure with the
  22600. '--disable-dependency-tracking' option to at least be able to build
  22601. the package (albeit without support for automatic dependency tracking).
  22602. See \`config.log' for more details" "$LINENO" 5; }
  22603. fi
  22604. { am_dirpart=; unset am_dirpart;}
  22605. { am_filepart=; unset am_filepart;}
  22606. { am_mf=; unset am_mf;}
  22607. { am_rc=; unset am_rc;}
  22608. rm -f conftest-deps.mk
  22609. }
  22610. ;;
  22611. "libtool":C)
  22612. # See if we are running on zsh, and set the options that allow our
  22613. # commands through without removal of \ escapes.
  22614. if test -n "${ZSH_VERSION+set}"; then
  22615. setopt NO_GLOB_SUBST
  22616. fi
  22617. cfgfile=${ofile}T
  22618. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  22619. $RM "$cfgfile"
  22620. cat <<_LT_EOF >> "$cfgfile"
  22621. #! $SHELL
  22622. # Generated automatically by $as_me ($PACKAGE) $VERSION
  22623. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  22624. # Provide generalized library-building support services.
  22625. # Written by Gordon Matzigkeit, 1996
  22626. # Copyright (C) 2014 Free Software Foundation, Inc.
  22627. # This is free software; see the source for copying conditions. There is NO
  22628. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  22629. # GNU Libtool is free software; you can redistribute it and/or modify
  22630. # it under the terms of the GNU General Public License as published by
  22631. # the Free Software Foundation; either version 2 of of the License, or
  22632. # (at your option) any later version.
  22633. #
  22634. # As a special exception to the GNU General Public License, if you
  22635. # distribute this file as part of a program or library that is built
  22636. # using GNU Libtool, you may include this file under the same
  22637. # distribution terms that you use for the rest of that program.
  22638. #
  22639. # GNU Libtool is distributed in the hope that it will be useful, but
  22640. # WITHOUT ANY WARRANTY; without even the implied warranty of
  22641. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22642. # GNU General Public License for more details.
  22643. #
  22644. # You should have received a copy of the GNU General Public License
  22645. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  22646. # The names of the tagged configurations supported by this script.
  22647. available_tags='CXX '
  22648. # Configured defaults for sys_lib_dlsearch_path munging.
  22649. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  22650. # ### BEGIN LIBTOOL CONFIG
  22651. # Assembler program.
  22652. AS=$lt_AS
  22653. # DLL creation program.
  22654. DLLTOOL=$lt_DLLTOOL
  22655. # Object dumper program.
  22656. OBJDUMP=$lt_OBJDUMP
  22657. # Which release of libtool.m4 was used?
  22658. macro_version=$macro_version
  22659. macro_revision=$macro_revision
  22660. # Whether or not to build shared libraries.
  22661. build_libtool_libs=$enable_shared
  22662. # Whether or not to build static libraries.
  22663. build_old_libs=$enable_static
  22664. # What type of objects to build.
  22665. pic_mode=$pic_mode
  22666. # Whether or not to optimize for fast installation.
  22667. fast_install=$enable_fast_install
  22668. # Shared archive member basename,for filename based shared library versioning on AIX.
  22669. shared_archive_member_spec=$shared_archive_member_spec
  22670. # Shell to use when invoking shell scripts.
  22671. SHELL=$lt_SHELL
  22672. # An echo program that protects backslashes.
  22673. ECHO=$lt_ECHO
  22674. # The PATH separator for the build system.
  22675. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  22676. # The host system.
  22677. host_alias=$host_alias
  22678. host=$host
  22679. host_os=$host_os
  22680. # The build system.
  22681. build_alias=$build_alias
  22682. build=$build
  22683. build_os=$build_os
  22684. # A sed program that does not truncate output.
  22685. SED=$lt_SED
  22686. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  22687. Xsed="\$SED -e 1s/^X//"
  22688. # A grep program that handles long lines.
  22689. GREP=$lt_GREP
  22690. # An ERE matcher.
  22691. EGREP=$lt_EGREP
  22692. # A literal string matcher.
  22693. FGREP=$lt_FGREP
  22694. # A BSD- or MS-compatible name lister.
  22695. NM=$lt_NM
  22696. # Whether we need soft or hard links.
  22697. LN_S=$lt_LN_S
  22698. # What is the maximum length of a command?
  22699. max_cmd_len=$max_cmd_len
  22700. # Object file suffix (normally "o").
  22701. objext=$ac_objext
  22702. # Executable file suffix (normally "").
  22703. exeext=$exeext
  22704. # whether the shell understands "unset".
  22705. lt_unset=$lt_unset
  22706. # turn spaces into newlines.
  22707. SP2NL=$lt_lt_SP2NL
  22708. # turn newlines into spaces.
  22709. NL2SP=$lt_lt_NL2SP
  22710. # convert \$build file names to \$host format.
  22711. to_host_file_cmd=$lt_cv_to_host_file_cmd
  22712. # convert \$build files to toolchain format.
  22713. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  22714. # Method to check whether dependent libraries are shared objects.
  22715. deplibs_check_method=$lt_deplibs_check_method
  22716. # Command to use when deplibs_check_method = "file_magic".
  22717. file_magic_cmd=$lt_file_magic_cmd
  22718. # How to find potential files when deplibs_check_method = "file_magic".
  22719. file_magic_glob=$lt_file_magic_glob
  22720. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  22721. want_nocaseglob=$lt_want_nocaseglob
  22722. # Command to associate shared and link libraries.
  22723. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  22724. # The archiver.
  22725. AR=$lt_AR
  22726. # Flags to create an archive.
  22727. AR_FLAGS=$lt_AR_FLAGS
  22728. # How to feed a file listing to the archiver.
  22729. archiver_list_spec=$lt_archiver_list_spec
  22730. # A symbol stripping program.
  22731. STRIP=$lt_STRIP
  22732. # Commands used to install an old-style archive.
  22733. RANLIB=$lt_RANLIB
  22734. old_postinstall_cmds=$lt_old_postinstall_cmds
  22735. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  22736. # Whether to use a lock for old archive extraction.
  22737. lock_old_archive_extraction=$lock_old_archive_extraction
  22738. # A C compiler.
  22739. LTCC=$lt_CC
  22740. # LTCC compiler flags.
  22741. LTCFLAGS=$lt_CFLAGS
  22742. # Take the output of nm and produce a listing of raw symbols and C names.
  22743. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  22744. # Transform the output of nm in a proper C declaration.
  22745. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  22746. # Transform the output of nm into a list of symbols to manually relocate.
  22747. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  22748. # Transform the output of nm in a C name address pair.
  22749. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  22750. # Transform the output of nm in a C name address pair when lib prefix is needed.
  22751. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  22752. # The name lister interface.
  22753. nm_interface=$lt_lt_cv_nm_interface
  22754. # Specify filename containing input files for \$NM.
  22755. nm_file_list_spec=$lt_nm_file_list_spec
  22756. # The root where to search for dependent libraries,and where our libraries should be installed.
  22757. lt_sysroot=$lt_sysroot
  22758. # Command to truncate a binary pipe.
  22759. lt_truncate_bin=$lt_lt_cv_truncate_bin
  22760. # The name of the directory that contains temporary libtool files.
  22761. objdir=$objdir
  22762. # Used to examine libraries when file_magic_cmd begins with "file".
  22763. MAGIC_CMD=$MAGIC_CMD
  22764. # Must we lock files when doing compilation?
  22765. need_locks=$lt_need_locks
  22766. # Manifest tool.
  22767. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  22768. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  22769. DSYMUTIL=$lt_DSYMUTIL
  22770. # Tool to change global to local symbols on Mac OS X.
  22771. NMEDIT=$lt_NMEDIT
  22772. # Tool to manipulate fat objects and archives on Mac OS X.
  22773. LIPO=$lt_LIPO
  22774. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  22775. OTOOL=$lt_OTOOL
  22776. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  22777. OTOOL64=$lt_OTOOL64
  22778. # Old archive suffix (normally "a").
  22779. libext=$libext
  22780. # Shared library suffix (normally ".so").
  22781. shrext_cmds=$lt_shrext_cmds
  22782. # The commands to extract the exported symbol list from a shared archive.
  22783. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  22784. # Variables whose values should be saved in libtool wrapper scripts and
  22785. # restored at link time.
  22786. variables_saved_for_relink=$lt_variables_saved_for_relink
  22787. # Do we need the "lib" prefix for modules?
  22788. need_lib_prefix=$need_lib_prefix
  22789. # Do we need a version for libraries?
  22790. need_version=$need_version
  22791. # Library versioning type.
  22792. version_type=$version_type
  22793. # Shared library runtime path variable.
  22794. runpath_var=$runpath_var
  22795. # Shared library path variable.
  22796. shlibpath_var=$shlibpath_var
  22797. # Is shlibpath searched before the hard-coded library search path?
  22798. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  22799. # Format of library name prefix.
  22800. libname_spec=$lt_libname_spec
  22801. # List of archive names. First name is the real one, the rest are links.
  22802. # The last name is the one that the linker finds with -lNAME
  22803. library_names_spec=$lt_library_names_spec
  22804. # The coded name of the library, if different from the real name.
  22805. soname_spec=$lt_soname_spec
  22806. # Permission mode override for installation of shared libraries.
  22807. install_override_mode=$lt_install_override_mode
  22808. # Command to use after installation of a shared archive.
  22809. postinstall_cmds=$lt_postinstall_cmds
  22810. # Command to use after uninstallation of a shared archive.
  22811. postuninstall_cmds=$lt_postuninstall_cmds
  22812. # Commands used to finish a libtool library installation in a directory.
  22813. finish_cmds=$lt_finish_cmds
  22814. # As "finish_cmds", except a single script fragment to be evaled but
  22815. # not shown.
  22816. finish_eval=$lt_finish_eval
  22817. # Whether we should hardcode library paths into libraries.
  22818. hardcode_into_libs=$hardcode_into_libs
  22819. # Compile-time system search path for libraries.
  22820. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  22821. # Detected run-time system search path for libraries.
  22822. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  22823. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  22824. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  22825. # Whether dlopen is supported.
  22826. dlopen_support=$enable_dlopen
  22827. # Whether dlopen of programs is supported.
  22828. dlopen_self=$enable_dlopen_self
  22829. # Whether dlopen of statically linked programs is supported.
  22830. dlopen_self_static=$enable_dlopen_self_static
  22831. # Commands to strip libraries.
  22832. old_striplib=$lt_old_striplib
  22833. striplib=$lt_striplib
  22834. # The linker used to build libraries.
  22835. LD=$lt_LD
  22836. # How to create reloadable object files.
  22837. reload_flag=$lt_reload_flag
  22838. reload_cmds=$lt_reload_cmds
  22839. # Commands used to build an old-style archive.
  22840. old_archive_cmds=$lt_old_archive_cmds
  22841. # A language specific compiler.
  22842. CC=$lt_compiler
  22843. # Is the compiler the GNU compiler?
  22844. with_gcc=$GCC
  22845. # Compiler flag to turn off builtin functions.
  22846. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  22847. # Additional compiler flags for building library objects.
  22848. pic_flag=$lt_lt_prog_compiler_pic
  22849. # How to pass a linker flag through the compiler.
  22850. wl=$lt_lt_prog_compiler_wl
  22851. # Compiler flag to prevent dynamic linking.
  22852. link_static_flag=$lt_lt_prog_compiler_static
  22853. # Does compiler simultaneously support -c and -o options?
  22854. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  22855. # Whether or not to add -lc for building shared libraries.
  22856. build_libtool_need_lc=$archive_cmds_need_lc
  22857. # Whether or not to disallow shared libs when runtime libs are static.
  22858. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  22859. # Compiler flag to allow reflexive dlopens.
  22860. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  22861. # Compiler flag to generate shared objects directly from archives.
  22862. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  22863. # Whether the compiler copes with passing no objects directly.
  22864. compiler_needs_object=$lt_compiler_needs_object
  22865. # Create an old-style archive from a shared archive.
  22866. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  22867. # Create a temporary old-style archive to link instead of a shared archive.
  22868. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  22869. # Commands used to build a shared archive.
  22870. archive_cmds=$lt_archive_cmds
  22871. archive_expsym_cmds=$lt_archive_expsym_cmds
  22872. # Commands used to build a loadable module if different from building
  22873. # a shared archive.
  22874. module_cmds=$lt_module_cmds
  22875. module_expsym_cmds=$lt_module_expsym_cmds
  22876. # Whether we are building with GNU ld or not.
  22877. with_gnu_ld=$lt_with_gnu_ld
  22878. # Flag that allows shared libraries with undefined symbols to be built.
  22879. allow_undefined_flag=$lt_allow_undefined_flag
  22880. # Flag that enforces no undefined symbols.
  22881. no_undefined_flag=$lt_no_undefined_flag
  22882. # Flag to hardcode \$libdir into a binary during linking.
  22883. # This must work even if \$libdir does not exist
  22884. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  22885. # Whether we need a single "-rpath" flag with a separated argument.
  22886. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  22887. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  22888. # DIR into the resulting binary.
  22889. hardcode_direct=$hardcode_direct
  22890. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  22891. # DIR into the resulting binary and the resulting library dependency is
  22892. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  22893. # library is relocated.
  22894. hardcode_direct_absolute=$hardcode_direct_absolute
  22895. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  22896. # into the resulting binary.
  22897. hardcode_minus_L=$hardcode_minus_L
  22898. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  22899. # into the resulting binary.
  22900. hardcode_shlibpath_var=$hardcode_shlibpath_var
  22901. # Set to "yes" if building a shared library automatically hardcodes DIR
  22902. # into the library and all subsequent libraries and executables linked
  22903. # against it.
  22904. hardcode_automatic=$hardcode_automatic
  22905. # Set to yes if linker adds runtime paths of dependent libraries
  22906. # to runtime path list.
  22907. inherit_rpath=$inherit_rpath
  22908. # Whether libtool must link a program against all its dependency libraries.
  22909. link_all_deplibs=$link_all_deplibs
  22910. # Set to "yes" if exported symbols are required.
  22911. always_export_symbols=$always_export_symbols
  22912. # The commands to list exported symbols.
  22913. export_symbols_cmds=$lt_export_symbols_cmds
  22914. # Symbols that should not be listed in the preloaded symbols.
  22915. exclude_expsyms=$lt_exclude_expsyms
  22916. # Symbols that must always be exported.
  22917. include_expsyms=$lt_include_expsyms
  22918. # Commands necessary for linking programs (against libraries) with templates.
  22919. prelink_cmds=$lt_prelink_cmds
  22920. # Commands necessary for finishing linking programs.
  22921. postlink_cmds=$lt_postlink_cmds
  22922. # Specify filename containing input files.
  22923. file_list_spec=$lt_file_list_spec
  22924. # How to hardcode a shared library path into an executable.
  22925. hardcode_action=$hardcode_action
  22926. # The directories searched by this compiler when creating a shared library.
  22927. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  22928. # Dependencies to place before and after the objects being linked to
  22929. # create a shared library.
  22930. predep_objects=$lt_predep_objects
  22931. postdep_objects=$lt_postdep_objects
  22932. predeps=$lt_predeps
  22933. postdeps=$lt_postdeps
  22934. # The library search path used internally by the compiler when linking
  22935. # a shared library.
  22936. compiler_lib_search_path=$lt_compiler_lib_search_path
  22937. # ### END LIBTOOL CONFIG
  22938. _LT_EOF
  22939. cat <<'_LT_EOF' >> "$cfgfile"
  22940. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  22941. # func_munge_path_list VARIABLE PATH
  22942. # -----------------------------------
  22943. # VARIABLE is name of variable containing _space_ separated list of
  22944. # directories to be munged by the contents of PATH, which is string
  22945. # having a format:
  22946. # "DIR[:DIR]:"
  22947. # string "DIR[ DIR]" will be prepended to VARIABLE
  22948. # ":DIR[:DIR]"
  22949. # string "DIR[ DIR]" will be appended to VARIABLE
  22950. # "DIRP[:DIRP]::[DIRA:]DIRA"
  22951. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  22952. # "DIRA[ DIRA]" will be appended to VARIABLE
  22953. # "DIR[:DIR]"
  22954. # VARIABLE will be replaced by "DIR[ DIR]"
  22955. func_munge_path_list ()
  22956. {
  22957. case x$2 in
  22958. x)
  22959. ;;
  22960. *:)
  22961. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  22962. ;;
  22963. x:*)
  22964. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  22965. ;;
  22966. *::*)
  22967. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  22968. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  22969. ;;
  22970. *)
  22971. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  22972. ;;
  22973. esac
  22974. }
  22975. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  22976. func_cc_basename ()
  22977. {
  22978. for cc_temp in $*""; do
  22979. case $cc_temp in
  22980. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  22981. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  22982. \-*) ;;
  22983. *) break;;
  22984. esac
  22985. done
  22986. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  22987. }
  22988. # ### END FUNCTIONS SHARED WITH CONFIGURE
  22989. _LT_EOF
  22990. case $host_os in
  22991. aix3*)
  22992. cat <<\_LT_EOF >> "$cfgfile"
  22993. # AIX sometimes has problems with the GCC collect2 program. For some
  22994. # reason, if we set the COLLECT_NAMES environment variable, the problems
  22995. # vanish in a puff of smoke.
  22996. if test set != "${COLLECT_NAMES+set}"; then
  22997. COLLECT_NAMES=
  22998. export COLLECT_NAMES
  22999. fi
  23000. _LT_EOF
  23001. ;;
  23002. esac
  23003. ltmain=$ac_aux_dir/ltmain.sh
  23004. # We use sed instead of cat because bash on DJGPP gets confused if
  23005. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  23006. # text mode, it properly converts lines to CR/LF. This bash problem
  23007. # is reportedly fixed, but why not run on old versions too?
  23008. sed '$q' "$ltmain" >> "$cfgfile" \
  23009. || (rm -f "$cfgfile"; exit 1)
  23010. mv -f "$cfgfile" "$ofile" ||
  23011. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  23012. chmod +x "$ofile"
  23013. cat <<_LT_EOF >> "$ofile"
  23014. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  23015. # The linker used to build libraries.
  23016. LD=$lt_LD_CXX
  23017. # How to create reloadable object files.
  23018. reload_flag=$lt_reload_flag_CXX
  23019. reload_cmds=$lt_reload_cmds_CXX
  23020. # Commands used to build an old-style archive.
  23021. old_archive_cmds=$lt_old_archive_cmds_CXX
  23022. # A language specific compiler.
  23023. CC=$lt_compiler_CXX
  23024. # Is the compiler the GNU compiler?
  23025. with_gcc=$GCC_CXX
  23026. # Compiler flag to turn off builtin functions.
  23027. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  23028. # Additional compiler flags for building library objects.
  23029. pic_flag=$lt_lt_prog_compiler_pic_CXX
  23030. # How to pass a linker flag through the compiler.
  23031. wl=$lt_lt_prog_compiler_wl_CXX
  23032. # Compiler flag to prevent dynamic linking.
  23033. link_static_flag=$lt_lt_prog_compiler_static_CXX
  23034. # Does compiler simultaneously support -c and -o options?
  23035. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  23036. # Whether or not to add -lc for building shared libraries.
  23037. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  23038. # Whether or not to disallow shared libs when runtime libs are static.
  23039. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  23040. # Compiler flag to allow reflexive dlopens.
  23041. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  23042. # Compiler flag to generate shared objects directly from archives.
  23043. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  23044. # Whether the compiler copes with passing no objects directly.
  23045. compiler_needs_object=$lt_compiler_needs_object_CXX
  23046. # Create an old-style archive from a shared archive.
  23047. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  23048. # Create a temporary old-style archive to link instead of a shared archive.
  23049. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  23050. # Commands used to build a shared archive.
  23051. archive_cmds=$lt_archive_cmds_CXX
  23052. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  23053. # Commands used to build a loadable module if different from building
  23054. # a shared archive.
  23055. module_cmds=$lt_module_cmds_CXX
  23056. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  23057. # Whether we are building with GNU ld or not.
  23058. with_gnu_ld=$lt_with_gnu_ld_CXX
  23059. # Flag that allows shared libraries with undefined symbols to be built.
  23060. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  23061. # Flag that enforces no undefined symbols.
  23062. no_undefined_flag=$lt_no_undefined_flag_CXX
  23063. # Flag to hardcode \$libdir into a binary during linking.
  23064. # This must work even if \$libdir does not exist
  23065. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  23066. # Whether we need a single "-rpath" flag with a separated argument.
  23067. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  23068. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  23069. # DIR into the resulting binary.
  23070. hardcode_direct=$hardcode_direct_CXX
  23071. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  23072. # DIR into the resulting binary and the resulting library dependency is
  23073. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  23074. # library is relocated.
  23075. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  23076. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  23077. # into the resulting binary.
  23078. hardcode_minus_L=$hardcode_minus_L_CXX
  23079. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  23080. # into the resulting binary.
  23081. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  23082. # Set to "yes" if building a shared library automatically hardcodes DIR
  23083. # into the library and all subsequent libraries and executables linked
  23084. # against it.
  23085. hardcode_automatic=$hardcode_automatic_CXX
  23086. # Set to yes if linker adds runtime paths of dependent libraries
  23087. # to runtime path list.
  23088. inherit_rpath=$inherit_rpath_CXX
  23089. # Whether libtool must link a program against all its dependency libraries.
  23090. link_all_deplibs=$link_all_deplibs_CXX
  23091. # Set to "yes" if exported symbols are required.
  23092. always_export_symbols=$always_export_symbols_CXX
  23093. # The commands to list exported symbols.
  23094. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  23095. # Symbols that should not be listed in the preloaded symbols.
  23096. exclude_expsyms=$lt_exclude_expsyms_CXX
  23097. # Symbols that must always be exported.
  23098. include_expsyms=$lt_include_expsyms_CXX
  23099. # Commands necessary for linking programs (against libraries) with templates.
  23100. prelink_cmds=$lt_prelink_cmds_CXX
  23101. # Commands necessary for finishing linking programs.
  23102. postlink_cmds=$lt_postlink_cmds_CXX
  23103. # Specify filename containing input files.
  23104. file_list_spec=$lt_file_list_spec_CXX
  23105. # How to hardcode a shared library path into an executable.
  23106. hardcode_action=$hardcode_action_CXX
  23107. # The directories searched by this compiler when creating a shared library.
  23108. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  23109. # Dependencies to place before and after the objects being linked to
  23110. # create a shared library.
  23111. predep_objects=$lt_predep_objects_CXX
  23112. postdep_objects=$lt_postdep_objects_CXX
  23113. predeps=$lt_predeps_CXX
  23114. postdeps=$lt_postdeps_CXX
  23115. # The library search path used internally by the compiler when linking
  23116. # a shared library.
  23117. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  23118. # ### END LIBTOOL TAG CONFIG: CXX
  23119. _LT_EOF
  23120. ;;
  23121. esac
  23122. done # for ac_tag
  23123. as_fn_exit 0
  23124. _ACEOF
  23125. ac_clean_files=$ac_clean_files_save
  23126. test $ac_write_fail = 0 ||
  23127. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  23128. # configure is writing to config.log, and then calls config.status.
  23129. # config.status does its own redirection, appending to config.log.
  23130. # Unfortunately, on DOS this fails, as config.log is still kept open
  23131. # by configure, so config.status won't be able to write to it; its
  23132. # output is simply discarded. So we exec the FD to /dev/null,
  23133. # effectively closing config.log, so it can be properly (re)opened and
  23134. # appended to by config.status. When coming back to configure, we
  23135. # need to make the FD available again.
  23136. if test "$no_create" != yes; then
  23137. ac_cs_success=:
  23138. ac_config_status_args=
  23139. test "$silent" = yes &&
  23140. ac_config_status_args="$ac_config_status_args --quiet"
  23141. exec 5>/dev/null
  23142. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  23143. exec 5>>config.log
  23144. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  23145. # would make configure fail if this is the last instruction.
  23146. $ac_cs_success || as_fn_exit 1
  23147. fi
  23148. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  23149. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  23150. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  23151. fi
  23152. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: summary of build options:
  23153. version: ${LIBSSH2VER}
  23154. Host type: ${host}
  23155. Install prefix: ${prefix}
  23156. Compiler: ${CC}
  23157. Compiler flags: ${CFLAGS}
  23158. Library types: Shared=${enable_shared}, Static=${enable_static}
  23159. Crypto library: ${found_crypto_str}
  23160. Clear memory: $enable_clear_memory
  23161. Debug build: $enable_debug
  23162. Build examples: $build_examples
  23163. Path to sshd: $ac_cv_path_SSHD (only for self-tests)
  23164. zlib compression: ${found_libz}
  23165. " >&5
  23166. printf "%s\n" "$as_me: summary of build options:
  23167. version: ${LIBSSH2VER}
  23168. Host type: ${host}
  23169. Install prefix: ${prefix}
  23170. Compiler: ${CC}
  23171. Compiler flags: ${CFLAGS}
  23172. Library types: Shared=${enable_shared}, Static=${enable_static}
  23173. Crypto library: ${found_crypto_str}
  23174. Clear memory: $enable_clear_memory
  23175. Debug build: $enable_debug
  23176. Build examples: $build_examples
  23177. Path to sshd: $ac_cv_path_SSHD (only for self-tests)
  23178. zlib compression: ${found_libz}
  23179. " >&6;}