configure 541 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for tpm2-tools 5.1.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  186. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  187. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. PATH=/empty FPATH=/empty; export PATH FPATH
  190. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  191. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  192. test \$(( 1 + 1 )) = 2 || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script 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_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME='tpm2-tools'
  539. PACKAGE_TARNAME='tpm2-tools'
  540. PACKAGE_VERSION='5.1'
  541. PACKAGE_STRING='tpm2-tools 5.1'
  542. PACKAGE_BUGREPORT=''
  543. PACKAGE_URL=''
  544. # Factoring default headers for most tests.
  545. ac_includes_default="\
  546. #include <stdio.h>
  547. #ifdef HAVE_SYS_TYPES_H
  548. # include <sys/types.h>
  549. #endif
  550. #ifdef HAVE_SYS_STAT_H
  551. # include <sys/stat.h>
  552. #endif
  553. #ifdef STDC_HEADERS
  554. # include <stdlib.h>
  555. # include <stddef.h>
  556. #else
  557. # ifdef HAVE_STDLIB_H
  558. # include <stdlib.h>
  559. # endif
  560. #endif
  561. #ifdef HAVE_STRING_H
  562. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  563. # include <memory.h>
  564. # endif
  565. # include <string.h>
  566. #endif
  567. #ifdef HAVE_STRINGS_H
  568. # include <strings.h>
  569. #endif
  570. #ifdef HAVE_INTTYPES_H
  571. # include <inttypes.h>
  572. #endif
  573. #ifdef HAVE_STDINT_H
  574. # include <stdint.h>
  575. #endif
  576. #ifdef HAVE_UNISTD_H
  577. # include <unistd.h>
  578. #endif"
  579. ac_subst_vars='am__EXEEXT_FALSE
  580. am__EXEEXT_TRUE
  581. LTLIBOBJS
  582. LIBOBJS
  583. PATH
  584. EXTRA_LDFLAGS
  585. EXTRA_CFLAGS
  586. OPENSSL
  587. EXPECT
  588. MKTEMP
  589. SHASUM
  590. SS
  591. XXD
  592. pkgpyexecdir
  593. pyexecdir
  594. pkgpythondir
  595. pythondir
  596. PYTHON_PLATFORM
  597. PYTHON_EXEC_PREFIX
  598. PYTHON_PREFIX
  599. PYTHON_VERSION
  600. PYTHON
  601. BASH_SHELL
  602. TPM2_SIM
  603. HAS_TPM2_SIM
  604. tpm_server
  605. swtpm
  606. TPM2_ABRMD
  607. tpm2_abrmd
  608. CMOCKA_LIBS
  609. CMOCKA_CFLAGS
  610. PERSISTENT_FALSE
  611. PERSISTENT_TRUE
  612. UNIT_FALSE
  613. UNIT_TRUE
  614. LIBDL_LDFLAGS
  615. tpmsim
  616. bashcompdir
  617. with_bashcompdir
  618. EFIVAR_LIBS
  619. EFIVAR_CFLAGS
  620. UUID_LIBS
  621. UUID_CFLAGS
  622. CURL_LIBS
  623. CURL_CFLAGS
  624. CRYPTO_LIBS
  625. CRYPTO_CFLAGS
  626. TSS2_SYS_LIBS
  627. TSS2_SYS_CFLAGS
  628. TSS2_RC_LIBS
  629. TSS2_RC_CFLAGS
  630. TSS2_MU_LIBS
  631. TSS2_MU_CFLAGS
  632. TSS2_TCTILDR_LIBS
  633. TSS2_TCTILDR_CFLAGS
  634. TSS2_ESYS_LIBS
  635. TSS2_ESYS_CFLAGS
  636. TSS2_ESYS_2_3_LIBS
  637. TSS2_ESYS_2_3_CFLAGS
  638. TSS2_ESYS_3_0_LIBS
  639. TSS2_ESYS_3_0_CFLAGS
  640. HAVE_FAPI_FALSE
  641. HAVE_FAPI_TRUE
  642. TSS2_FAPI_3_0_LIBS
  643. TSS2_FAPI_3_0_CFLAGS
  644. TSS2_FAPI_LIBS
  645. TSS2_FAPI_CFLAGS
  646. PKG_CONFIG_LIBDIR
  647. PKG_CONFIG_PATH
  648. PKG_CONFIG
  649. HAVE_MAN_PAGES_FALSE
  650. HAVE_MAN_PAGES_TRUE
  651. HAVE_PANDOC_FALSE
  652. HAVE_PANDOC_TRUE
  653. PANDOC
  654. AUTOCONF_CODE_COVERAGE_2019_01_06_FALSE
  655. AUTOCONF_CODE_COVERAGE_2019_01_06_TRUE
  656. CODE_COVERAGE_RULES
  657. CODE_COVERAGE_LDFLAGS
  658. CODE_COVERAGE_LIBS
  659. CODE_COVERAGE_CXXFLAGS
  660. CODE_COVERAGE_CFLAGS
  661. CODE_COVERAGE_CPPFLAGS
  662. GENHTML
  663. LCOV
  664. GCOV
  665. CODE_COVERAGE_ENABLED
  666. CODE_COVERAGE_ENABLED_FALSE
  667. CODE_COVERAGE_ENABLED_TRUE
  668. AM_BACKSLASH
  669. AM_DEFAULT_VERBOSITY
  670. AM_DEFAULT_V
  671. AM_V
  672. am__fastdepCC_FALSE
  673. am__fastdepCC_TRUE
  674. CCDEPMODE
  675. am__nodep
  676. AMDEPBACKSLASH
  677. AMDEP_FALSE
  678. AMDEP_TRUE
  679. am__quote
  680. am__include
  681. DEPDIR
  682. am__untar
  683. am__tar
  684. AMTAR
  685. am__leading_dot
  686. SET_MAKE
  687. mkdir_p
  688. MKDIR_P
  689. INSTALL_STRIP_PROGRAM
  690. install_sh
  691. MAKEINFO
  692. AUTOHEADER
  693. AUTOMAKE
  694. AUTOCONF
  695. ACLOCAL
  696. VERSION
  697. PACKAGE
  698. CYGPATH_W
  699. am__isrc
  700. INSTALL_DATA
  701. INSTALL_SCRIPT
  702. INSTALL_PROGRAM
  703. CPP
  704. LT_SYS_LIBRARY_PATH
  705. OTOOL64
  706. OTOOL
  707. LIPO
  708. NMEDIT
  709. DSYMUTIL
  710. MANIFEST_TOOL
  711. AWK
  712. RANLIB
  713. STRIP
  714. ac_ct_AR
  715. AR
  716. DLLTOOL
  717. OBJDUMP
  718. NM
  719. ac_ct_DUMPBIN
  720. DUMPBIN
  721. LD
  722. FGREP
  723. EGREP
  724. GREP
  725. SED
  726. host_os
  727. host_vendor
  728. host_cpu
  729. host
  730. build_os
  731. build_vendor
  732. build_cpu
  733. build
  734. LIBTOOL
  735. LN_S
  736. OBJEXT
  737. EXEEXT
  738. ac_ct_CC
  739. CPPFLAGS
  740. LDFLAGS
  741. CFLAGS
  742. CC
  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. ac_subst_files=''
  783. ac_user_opts='
  784. enable_option_checking
  785. enable_debug
  786. enable_shared
  787. enable_static
  788. with_pic
  789. enable_fast_install
  790. with_aix_soname
  791. with_gnu_ld
  792. with_sysroot
  793. enable_libtool_lock
  794. enable_dependency_tracking
  795. enable_silent_rules
  796. with_gcov
  797. enable_code_coverage
  798. enable_fapi
  799. with_bashcompdir
  800. with_tpmsim
  801. enable_unit
  802. enable_persistent
  803. enable_dlclose
  804. enable_hardening
  805. '
  806. ac_precious_vars='build_alias
  807. host_alias
  808. target_alias
  809. CC
  810. CFLAGS
  811. LDFLAGS
  812. LIBS
  813. CPPFLAGS
  814. LT_SYS_LIBRARY_PATH
  815. CPP
  816. PKG_CONFIG
  817. PKG_CONFIG_PATH
  818. PKG_CONFIG_LIBDIR
  819. TSS2_FAPI_CFLAGS
  820. TSS2_FAPI_LIBS
  821. TSS2_FAPI_3_0_CFLAGS
  822. TSS2_FAPI_3_0_LIBS
  823. TSS2_ESYS_3_0_CFLAGS
  824. TSS2_ESYS_3_0_LIBS
  825. TSS2_ESYS_2_3_CFLAGS
  826. TSS2_ESYS_2_3_LIBS
  827. TSS2_TCTILDR_CFLAGS
  828. TSS2_TCTILDR_LIBS
  829. TSS2_MU_CFLAGS
  830. TSS2_MU_LIBS
  831. TSS2_RC_CFLAGS
  832. TSS2_RC_LIBS
  833. TSS2_SYS_CFLAGS
  834. TSS2_SYS_LIBS
  835. CRYPTO_CFLAGS
  836. CRYPTO_LIBS
  837. CURL_CFLAGS
  838. CURL_LIBS
  839. UUID_CFLAGS
  840. UUID_LIBS
  841. EFIVAR_CFLAGS
  842. EFIVAR_LIBS
  843. with_bashcompdir
  844. CMOCKA_CFLAGS
  845. CMOCKA_LIBS
  846. PYTHON'
  847. # Initialize some variables set by options.
  848. ac_init_help=
  849. ac_init_version=false
  850. ac_unrecognized_opts=
  851. ac_unrecognized_sep=
  852. # The variables have the same names as the options, with
  853. # dashes changed to underlines.
  854. cache_file=/dev/null
  855. exec_prefix=NONE
  856. no_create=
  857. no_recursion=
  858. prefix=NONE
  859. program_prefix=NONE
  860. program_suffix=NONE
  861. program_transform_name=s,x,x,
  862. silent=
  863. site=
  864. srcdir=
  865. verbose=
  866. x_includes=NONE
  867. x_libraries=NONE
  868. # Installation directory options.
  869. # These are left unexpanded so users can "make install exec_prefix=/foo"
  870. # and all the variables that are supposed to be based on exec_prefix
  871. # by default will actually change.
  872. # Use braces instead of parens because sh, perl, etc. also accept them.
  873. # (The list follows the same order as the GNU Coding Standards.)
  874. bindir='${exec_prefix}/bin'
  875. sbindir='${exec_prefix}/sbin'
  876. libexecdir='${exec_prefix}/libexec'
  877. datarootdir='${prefix}/share'
  878. datadir='${datarootdir}'
  879. sysconfdir='${prefix}/etc'
  880. sharedstatedir='${prefix}/com'
  881. localstatedir='${prefix}/var'
  882. runstatedir='${localstatedir}/run'
  883. includedir='${prefix}/include'
  884. oldincludedir='/usr/include'
  885. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  886. infodir='${datarootdir}/info'
  887. htmldir='${docdir}'
  888. dvidir='${docdir}'
  889. pdfdir='${docdir}'
  890. psdir='${docdir}'
  891. libdir='${exec_prefix}/lib'
  892. localedir='${datarootdir}/locale'
  893. mandir='${datarootdir}/man'
  894. ac_prev=
  895. ac_dashdash=
  896. for ac_option
  897. do
  898. # If the previous option needs an argument, assign it.
  899. if test -n "$ac_prev"; then
  900. eval $ac_prev=\$ac_option
  901. ac_prev=
  902. continue
  903. fi
  904. case $ac_option in
  905. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  906. *=) ac_optarg= ;;
  907. *) ac_optarg=yes ;;
  908. esac
  909. # Accept the important Cygnus configure options, so we can diagnose typos.
  910. case $ac_dashdash$ac_option in
  911. --)
  912. ac_dashdash=yes ;;
  913. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  914. ac_prev=bindir ;;
  915. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  916. bindir=$ac_optarg ;;
  917. -build | --build | --buil | --bui | --bu)
  918. ac_prev=build_alias ;;
  919. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  920. build_alias=$ac_optarg ;;
  921. -cache-file | --cache-file | --cache-fil | --cache-fi \
  922. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  923. ac_prev=cache_file ;;
  924. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  925. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  926. cache_file=$ac_optarg ;;
  927. --config-cache | -C)
  928. cache_file=config.cache ;;
  929. -datadir | --datadir | --datadi | --datad)
  930. ac_prev=datadir ;;
  931. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  932. datadir=$ac_optarg ;;
  933. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  934. | --dataroo | --dataro | --datar)
  935. ac_prev=datarootdir ;;
  936. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  937. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  938. datarootdir=$ac_optarg ;;
  939. -disable-* | --disable-*)
  940. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  941. # Reject names that are not valid shell variable names.
  942. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  943. as_fn_error $? "invalid feature name: $ac_useropt"
  944. ac_useropt_orig=$ac_useropt
  945. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  946. case $ac_user_opts in
  947. *"
  948. "enable_$ac_useropt"
  949. "*) ;;
  950. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  951. ac_unrecognized_sep=', ';;
  952. esac
  953. eval enable_$ac_useropt=no ;;
  954. -docdir | --docdir | --docdi | --doc | --do)
  955. ac_prev=docdir ;;
  956. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  957. docdir=$ac_optarg ;;
  958. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  959. ac_prev=dvidir ;;
  960. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  961. dvidir=$ac_optarg ;;
  962. -enable-* | --enable-*)
  963. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  964. # Reject names that are not valid shell variable names.
  965. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  966. as_fn_error $? "invalid feature name: $ac_useropt"
  967. ac_useropt_orig=$ac_useropt
  968. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  969. case $ac_user_opts in
  970. *"
  971. "enable_$ac_useropt"
  972. "*) ;;
  973. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  974. ac_unrecognized_sep=', ';;
  975. esac
  976. eval enable_$ac_useropt=\$ac_optarg ;;
  977. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  978. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  979. | --exec | --exe | --ex)
  980. ac_prev=exec_prefix ;;
  981. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  982. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  983. | --exec=* | --exe=* | --ex=*)
  984. exec_prefix=$ac_optarg ;;
  985. -gas | --gas | --ga | --g)
  986. # Obsolete; use --with-gas.
  987. with_gas=yes ;;
  988. -help | --help | --hel | --he | -h)
  989. ac_init_help=long ;;
  990. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  991. ac_init_help=recursive ;;
  992. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  993. ac_init_help=short ;;
  994. -host | --host | --hos | --ho)
  995. ac_prev=host_alias ;;
  996. -host=* | --host=* | --hos=* | --ho=*)
  997. host_alias=$ac_optarg ;;
  998. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  999. ac_prev=htmldir ;;
  1000. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1001. | --ht=*)
  1002. htmldir=$ac_optarg ;;
  1003. -includedir | --includedir | --includedi | --included | --include \
  1004. | --includ | --inclu | --incl | --inc)
  1005. ac_prev=includedir ;;
  1006. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1007. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1008. includedir=$ac_optarg ;;
  1009. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1010. ac_prev=infodir ;;
  1011. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1012. infodir=$ac_optarg ;;
  1013. -libdir | --libdir | --libdi | --libd)
  1014. ac_prev=libdir ;;
  1015. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1016. libdir=$ac_optarg ;;
  1017. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1018. | --libexe | --libex | --libe)
  1019. ac_prev=libexecdir ;;
  1020. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1021. | --libexe=* | --libex=* | --libe=*)
  1022. libexecdir=$ac_optarg ;;
  1023. -localedir | --localedir | --localedi | --localed | --locale)
  1024. ac_prev=localedir ;;
  1025. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1026. localedir=$ac_optarg ;;
  1027. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1028. | --localstate | --localstat | --localsta | --localst | --locals)
  1029. ac_prev=localstatedir ;;
  1030. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1031. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1032. localstatedir=$ac_optarg ;;
  1033. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1034. ac_prev=mandir ;;
  1035. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1036. mandir=$ac_optarg ;;
  1037. -nfp | --nfp | --nf)
  1038. # Obsolete; use --without-fp.
  1039. with_fp=no ;;
  1040. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1041. | --no-cr | --no-c | -n)
  1042. no_create=yes ;;
  1043. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1044. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1045. no_recursion=yes ;;
  1046. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1047. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1048. | --oldin | --oldi | --old | --ol | --o)
  1049. ac_prev=oldincludedir ;;
  1050. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1051. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1052. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1053. oldincludedir=$ac_optarg ;;
  1054. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1055. ac_prev=prefix ;;
  1056. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1057. prefix=$ac_optarg ;;
  1058. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1059. | --program-pre | --program-pr | --program-p)
  1060. ac_prev=program_prefix ;;
  1061. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1062. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1063. program_prefix=$ac_optarg ;;
  1064. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1065. | --program-suf | --program-su | --program-s)
  1066. ac_prev=program_suffix ;;
  1067. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1068. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1069. program_suffix=$ac_optarg ;;
  1070. -program-transform-name | --program-transform-name \
  1071. | --program-transform-nam | --program-transform-na \
  1072. | --program-transform-n | --program-transform- \
  1073. | --program-transform | --program-transfor \
  1074. | --program-transfo | --program-transf \
  1075. | --program-trans | --program-tran \
  1076. | --progr-tra | --program-tr | --program-t)
  1077. ac_prev=program_transform_name ;;
  1078. -program-transform-name=* | --program-transform-name=* \
  1079. | --program-transform-nam=* | --program-transform-na=* \
  1080. | --program-transform-n=* | --program-transform-=* \
  1081. | --program-transform=* | --program-transfor=* \
  1082. | --program-transfo=* | --program-transf=* \
  1083. | --program-trans=* | --program-tran=* \
  1084. | --progr-tra=* | --program-tr=* | --program-t=*)
  1085. program_transform_name=$ac_optarg ;;
  1086. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1087. ac_prev=pdfdir ;;
  1088. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1089. pdfdir=$ac_optarg ;;
  1090. -psdir | --psdir | --psdi | --psd | --ps)
  1091. ac_prev=psdir ;;
  1092. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1093. psdir=$ac_optarg ;;
  1094. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1095. | -silent | --silent | --silen | --sile | --sil)
  1096. silent=yes ;;
  1097. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1098. | --runstate | --runstat | --runsta | --runst | --runs \
  1099. | --run | --ru | --r)
  1100. ac_prev=runstatedir ;;
  1101. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1102. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1103. | --run=* | --ru=* | --r=*)
  1104. runstatedir=$ac_optarg ;;
  1105. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1106. ac_prev=sbindir ;;
  1107. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1108. | --sbi=* | --sb=*)
  1109. sbindir=$ac_optarg ;;
  1110. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1111. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1112. | --sharedst | --shareds | --shared | --share | --shar \
  1113. | --sha | --sh)
  1114. ac_prev=sharedstatedir ;;
  1115. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1116. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1117. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1118. | --sha=* | --sh=*)
  1119. sharedstatedir=$ac_optarg ;;
  1120. -site | --site | --sit)
  1121. ac_prev=site ;;
  1122. -site=* | --site=* | --sit=*)
  1123. site=$ac_optarg ;;
  1124. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1125. ac_prev=srcdir ;;
  1126. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1127. srcdir=$ac_optarg ;;
  1128. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1129. | --syscon | --sysco | --sysc | --sys | --sy)
  1130. ac_prev=sysconfdir ;;
  1131. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1132. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1133. sysconfdir=$ac_optarg ;;
  1134. -target | --target | --targe | --targ | --tar | --ta | --t)
  1135. ac_prev=target_alias ;;
  1136. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1137. target_alias=$ac_optarg ;;
  1138. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1139. verbose=yes ;;
  1140. -version | --version | --versio | --versi | --vers | -V)
  1141. ac_init_version=: ;;
  1142. -with-* | --with-*)
  1143. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1144. # Reject names that are not valid shell variable names.
  1145. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1146. as_fn_error $? "invalid package name: $ac_useropt"
  1147. ac_useropt_orig=$ac_useropt
  1148. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1149. case $ac_user_opts in
  1150. *"
  1151. "with_$ac_useropt"
  1152. "*) ;;
  1153. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1154. ac_unrecognized_sep=', ';;
  1155. esac
  1156. eval with_$ac_useropt=\$ac_optarg ;;
  1157. -without-* | --without-*)
  1158. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1159. # Reject names that are not valid shell variable names.
  1160. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1161. as_fn_error $? "invalid package name: $ac_useropt"
  1162. ac_useropt_orig=$ac_useropt
  1163. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1164. case $ac_user_opts in
  1165. *"
  1166. "with_$ac_useropt"
  1167. "*) ;;
  1168. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1169. ac_unrecognized_sep=', ';;
  1170. esac
  1171. eval with_$ac_useropt=no ;;
  1172. --x)
  1173. # Obsolete; use --with-x.
  1174. with_x=yes ;;
  1175. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1176. | --x-incl | --x-inc | --x-in | --x-i)
  1177. ac_prev=x_includes ;;
  1178. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1179. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1180. x_includes=$ac_optarg ;;
  1181. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1182. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1183. ac_prev=x_libraries ;;
  1184. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1185. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1186. x_libraries=$ac_optarg ;;
  1187. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1188. Try \`$0 --help' for more information"
  1189. ;;
  1190. *=*)
  1191. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1192. # Reject names that are not valid shell variable names.
  1193. case $ac_envvar in #(
  1194. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1195. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1196. esac
  1197. eval $ac_envvar=\$ac_optarg
  1198. export $ac_envvar ;;
  1199. *)
  1200. # FIXME: should be removed in autoconf 3.0.
  1201. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1202. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1203. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1204. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1205. ;;
  1206. esac
  1207. done
  1208. if test -n "$ac_prev"; then
  1209. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1210. as_fn_error $? "missing argument to $ac_option"
  1211. fi
  1212. if test -n "$ac_unrecognized_opts"; then
  1213. case $enable_option_checking in
  1214. no) ;;
  1215. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1216. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1217. esac
  1218. fi
  1219. # Check all directory arguments for consistency.
  1220. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1221. datadir sysconfdir sharedstatedir localstatedir includedir \
  1222. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1223. libdir localedir mandir runstatedir
  1224. do
  1225. eval ac_val=\$$ac_var
  1226. # Remove trailing slashes.
  1227. case $ac_val in
  1228. */ )
  1229. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1230. eval $ac_var=\$ac_val;;
  1231. esac
  1232. # Be sure to have absolute directory names.
  1233. case $ac_val in
  1234. [\\/$]* | ?:[\\/]* ) continue;;
  1235. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1236. esac
  1237. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1238. done
  1239. # There might be people who depend on the old broken behavior: `$host'
  1240. # used to hold the argument of --host etc.
  1241. # FIXME: To remove some day.
  1242. build=$build_alias
  1243. host=$host_alias
  1244. target=$target_alias
  1245. # FIXME: To remove some day.
  1246. if test "x$host_alias" != x; then
  1247. if test "x$build_alias" = x; then
  1248. cross_compiling=maybe
  1249. elif test "x$build_alias" != "x$host_alias"; then
  1250. cross_compiling=yes
  1251. fi
  1252. fi
  1253. ac_tool_prefix=
  1254. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1255. test "$silent" = yes && exec 6>/dev/null
  1256. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1257. ac_ls_di=`ls -di .` &&
  1258. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1259. as_fn_error $? "working directory cannot be determined"
  1260. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1261. as_fn_error $? "pwd does not report name of working directory"
  1262. # Find the source files, if location was not specified.
  1263. if test -z "$srcdir"; then
  1264. ac_srcdir_defaulted=yes
  1265. # Try the directory containing this script, then the parent directory.
  1266. ac_confdir=`$as_dirname -- "$as_myself" ||
  1267. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1268. X"$as_myself" : 'X\(//\)[^/]' \| \
  1269. X"$as_myself" : 'X\(//\)$' \| \
  1270. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1271. $as_echo X"$as_myself" |
  1272. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1273. s//\1/
  1274. q
  1275. }
  1276. /^X\(\/\/\)[^/].*/{
  1277. s//\1/
  1278. q
  1279. }
  1280. /^X\(\/\/\)$/{
  1281. s//\1/
  1282. q
  1283. }
  1284. /^X\(\/\).*/{
  1285. s//\1/
  1286. q
  1287. }
  1288. s/.*/./; q'`
  1289. srcdir=$ac_confdir
  1290. if test ! -r "$srcdir/$ac_unique_file"; then
  1291. srcdir=..
  1292. fi
  1293. else
  1294. ac_srcdir_defaulted=no
  1295. fi
  1296. if test ! -r "$srcdir/$ac_unique_file"; then
  1297. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1298. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1299. fi
  1300. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1301. ac_abs_confdir=`(
  1302. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1303. pwd)`
  1304. # When building in place, set srcdir=.
  1305. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1306. srcdir=.
  1307. fi
  1308. # Remove unnecessary trailing slashes from srcdir.
  1309. # Double slashes in file names in object file debugging info
  1310. # mess up M-x gdb in Emacs.
  1311. case $srcdir in
  1312. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1313. esac
  1314. for ac_var in $ac_precious_vars; do
  1315. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1316. eval ac_env_${ac_var}_value=\$${ac_var}
  1317. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1318. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1319. done
  1320. #
  1321. # Report the --help message.
  1322. #
  1323. if test "$ac_init_help" = "long"; then
  1324. # Omit some internal or obsolete options to make the list less imposing.
  1325. # This message is too long to be a string in the A/UX 3.1 sh.
  1326. cat <<_ACEOF
  1327. \`configure' configures tpm2-tools 5.1 to adapt to many kinds of systems.
  1328. Usage: $0 [OPTION]... [VAR=VALUE]...
  1329. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1330. VAR=VALUE. See below for descriptions of some of the useful variables.
  1331. Defaults for the options are specified in brackets.
  1332. Configuration:
  1333. -h, --help display this help and exit
  1334. --help=short display options specific to this package
  1335. --help=recursive display the short help of all the included packages
  1336. -V, --version display version information and exit
  1337. -q, --quiet, --silent do not print \`checking ...' messages
  1338. --cache-file=FILE cache test results in FILE [disabled]
  1339. -C, --config-cache alias for \`--cache-file=config.cache'
  1340. -n, --no-create do not create output files
  1341. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1342. Installation directories:
  1343. --prefix=PREFIX install architecture-independent files in PREFIX
  1344. [$ac_default_prefix]
  1345. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1346. [PREFIX]
  1347. By default, \`make install' will install all the files in
  1348. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1349. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1350. for instance \`--prefix=\$HOME'.
  1351. For better control, use the options below.
  1352. Fine tuning of the installation directories:
  1353. --bindir=DIR user executables [EPREFIX/bin]
  1354. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1355. --libexecdir=DIR program executables [EPREFIX/libexec]
  1356. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1357. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1358. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1359. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1360. --libdir=DIR object code libraries [EPREFIX/lib]
  1361. --includedir=DIR C header files [PREFIX/include]
  1362. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1363. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1364. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1365. --infodir=DIR info documentation [DATAROOTDIR/info]
  1366. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1367. --mandir=DIR man documentation [DATAROOTDIR/man]
  1368. --docdir=DIR documentation root [DATAROOTDIR/doc/tpm2-tools]
  1369. --htmldir=DIR html documentation [DOCDIR]
  1370. --dvidir=DIR dvi documentation [DOCDIR]
  1371. --pdfdir=DIR pdf documentation [DOCDIR]
  1372. --psdir=DIR ps documentation [DOCDIR]
  1373. _ACEOF
  1374. cat <<\_ACEOF
  1375. Program names:
  1376. --program-prefix=PREFIX prepend PREFIX to installed program names
  1377. --program-suffix=SUFFIX append SUFFIX to installed program names
  1378. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1379. System types:
  1380. --build=BUILD configure for building on BUILD [guessed]
  1381. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1382. _ACEOF
  1383. fi
  1384. if test -n "$ac_init_help"; then
  1385. case $ac_init_help in
  1386. short | recursive ) echo "Configuration of tpm2-tools 5.1:";;
  1387. esac
  1388. cat <<\_ACEOF
  1389. Optional Features:
  1390. --disable-option-checking ignore unrecognized --enable/--with options
  1391. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1392. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1393. --enable-debug=[yes/info/profile/no]
  1394. compile with debugging
  1395. --enable-shared[=PKGS] build shared libraries [default=yes]
  1396. --enable-static[=PKGS] build static libraries [default=yes]
  1397. --enable-fast-install[=PKGS]
  1398. optimize for fast installation [default=yes]
  1399. --disable-libtool-lock avoid locking (might break parallel builds)
  1400. --enable-dependency-tracking
  1401. do not reject slow dependency extractors
  1402. --disable-dependency-tracking
  1403. speeds up one-time build
  1404. --enable-silent-rules less verbose build output (undo: "make V=1")
  1405. --disable-silent-rules verbose build output (undo: "make V=0")
  1406. --enable-code-coverage Whether to enable code coverage support
  1407. --disable-fapi disable FAPI tools (default: auto)
  1408. --enable-unit build cmocka unit tests
  1409. --disable-persistent disable tests that require resetting the TPM
  1410. --disable-dlclose Some versions of libc cause a sigsegv on exit, this
  1411. disables the dlclose and works around that bug
  1412. --disable-hardening Disable compiler and linker options to frustrate
  1413. memory corruption exploits
  1414. Optional Packages:
  1415. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1416. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1417. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1418. both]
  1419. --with-aix-soname=aix|svr4|both
  1420. shared library versioning (aka "SONAME") variant to
  1421. provide on AIX, [default=aix].
  1422. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1423. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1424. compiler's sysroot if not specified).
  1425. --with-gcov=GCOV use given GCOV for coverage (GCOV=gcov).
  1426. --with-bashcompdir=DIR directory for bash completions
  1427. --with-tpmsim=BIN simulator used for testing
  1428. Some influential environment variables:
  1429. CC C compiler command
  1430. CFLAGS C compiler flags
  1431. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1432. nonstandard directory <lib dir>
  1433. LIBS libraries to pass to the linker, e.g. -l<library>
  1434. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1435. you have headers in a nonstandard directory <include dir>
  1436. LT_SYS_LIBRARY_PATH
  1437. User-defined run-time library search path.
  1438. CPP C preprocessor
  1439. PKG_CONFIG path to pkg-config utility
  1440. PKG_CONFIG_PATH
  1441. directories to add to pkg-config's search path
  1442. PKG_CONFIG_LIBDIR
  1443. path overriding pkg-config's built-in search path
  1444. TSS2_FAPI_CFLAGS
  1445. C compiler flags for TSS2_FAPI, overriding pkg-config
  1446. TSS2_FAPI_LIBS
  1447. linker flags for TSS2_FAPI, overriding pkg-config
  1448. TSS2_FAPI_3_0_CFLAGS
  1449. C compiler flags for TSS2_FAPI_3_0, overriding pkg-config
  1450. TSS2_FAPI_3_0_LIBS
  1451. linker flags for TSS2_FAPI_3_0, overriding pkg-config
  1452. TSS2_ESYS_3_0_CFLAGS
  1453. C compiler flags for TSS2_ESYS_3_0, overriding pkg-config
  1454. TSS2_ESYS_3_0_LIBS
  1455. linker flags for TSS2_ESYS_3_0, overriding pkg-config
  1456. TSS2_ESYS_2_3_CFLAGS
  1457. C compiler flags for TSS2_ESYS_2_3, overriding pkg-config
  1458. TSS2_ESYS_2_3_LIBS
  1459. linker flags for TSS2_ESYS_2_3, overriding pkg-config
  1460. TSS2_TCTILDR_CFLAGS
  1461. C compiler flags for TSS2_TCTILDR, overriding pkg-config
  1462. TSS2_TCTILDR_LIBS
  1463. linker flags for TSS2_TCTILDR, overriding pkg-config
  1464. TSS2_MU_CFLAGS
  1465. C compiler flags for TSS2_MU, overriding pkg-config
  1466. TSS2_MU_LIBS
  1467. linker flags for TSS2_MU, overriding pkg-config
  1468. TSS2_RC_CFLAGS
  1469. C compiler flags for TSS2_RC, overriding pkg-config
  1470. TSS2_RC_LIBS
  1471. linker flags for TSS2_RC, overriding pkg-config
  1472. TSS2_SYS_CFLAGS
  1473. C compiler flags for TSS2_SYS, overriding pkg-config
  1474. TSS2_SYS_LIBS
  1475. linker flags for TSS2_SYS, overriding pkg-config
  1476. CRYPTO_CFLAGS
  1477. C compiler flags for CRYPTO, overriding pkg-config
  1478. CRYPTO_LIBS linker flags for CRYPTO, overriding pkg-config
  1479. CURL_CFLAGS C compiler flags for CURL, overriding pkg-config
  1480. CURL_LIBS linker flags for CURL, overriding pkg-config
  1481. UUID_CFLAGS C compiler flags for UUID, overriding pkg-config
  1482. UUID_LIBS linker flags for UUID, overriding pkg-config
  1483. EFIVAR_CFLAGS
  1484. C compiler flags for EFIVAR, overriding pkg-config
  1485. EFIVAR_LIBS linker flags for EFIVAR, overriding pkg-config
  1486. with_bashcompdir
  1487. value of completionsdir for bash-completion, overriding
  1488. pkg-config
  1489. CMOCKA_CFLAGS
  1490. C compiler flags for CMOCKA, overriding pkg-config
  1491. CMOCKA_LIBS linker flags for CMOCKA, overriding pkg-config
  1492. PYTHON the Python interpreter
  1493. Use these variables to override the choices made by `configure' or to help
  1494. it to find libraries and programs with nonstandard names/locations.
  1495. Report bugs to the package provider.
  1496. _ACEOF
  1497. ac_status=$?
  1498. fi
  1499. if test "$ac_init_help" = "recursive"; then
  1500. # If there are subdirs, report their specific --help.
  1501. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1502. test -d "$ac_dir" ||
  1503. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1504. continue
  1505. ac_builddir=.
  1506. case "$ac_dir" in
  1507. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1508. *)
  1509. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1510. # A ".." for each directory in $ac_dir_suffix.
  1511. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1512. case $ac_top_builddir_sub in
  1513. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1514. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1515. esac ;;
  1516. esac
  1517. ac_abs_top_builddir=$ac_pwd
  1518. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1519. # for backward compatibility:
  1520. ac_top_builddir=$ac_top_build_prefix
  1521. case $srcdir in
  1522. .) # We are building in place.
  1523. ac_srcdir=.
  1524. ac_top_srcdir=$ac_top_builddir_sub
  1525. ac_abs_top_srcdir=$ac_pwd ;;
  1526. [\\/]* | ?:[\\/]* ) # Absolute name.
  1527. ac_srcdir=$srcdir$ac_dir_suffix;
  1528. ac_top_srcdir=$srcdir
  1529. ac_abs_top_srcdir=$srcdir ;;
  1530. *) # Relative name.
  1531. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1532. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1533. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1534. esac
  1535. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1536. cd "$ac_dir" || { ac_status=$?; continue; }
  1537. # Check for guested configure.
  1538. if test -f "$ac_srcdir/configure.gnu"; then
  1539. echo &&
  1540. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1541. elif test -f "$ac_srcdir/configure"; then
  1542. echo &&
  1543. $SHELL "$ac_srcdir/configure" --help=recursive
  1544. else
  1545. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1546. fi || ac_status=$?
  1547. cd "$ac_pwd" || { ac_status=$?; break; }
  1548. done
  1549. fi
  1550. test -n "$ac_init_help" && exit $ac_status
  1551. if $ac_init_version; then
  1552. cat <<\_ACEOF
  1553. tpm2-tools configure 5.1
  1554. generated by GNU Autoconf 2.69
  1555. Copyright (C) 2012 Free Software Foundation, Inc.
  1556. This configure script is free software; the Free Software Foundation
  1557. gives unlimited permission to copy, distribute and modify it.
  1558. _ACEOF
  1559. exit
  1560. fi
  1561. ## ------------------------ ##
  1562. ## Autoconf initialization. ##
  1563. ## ------------------------ ##
  1564. # ac_fn_c_try_compile LINENO
  1565. # --------------------------
  1566. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1567. ac_fn_c_try_compile ()
  1568. {
  1569. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1570. rm -f conftest.$ac_objext
  1571. if { { ac_try="$ac_compile"
  1572. case "(($ac_try" in
  1573. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1574. *) ac_try_echo=$ac_try;;
  1575. esac
  1576. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1577. $as_echo "$ac_try_echo"; } >&5
  1578. (eval "$ac_compile") 2>conftest.err
  1579. ac_status=$?
  1580. if test -s conftest.err; then
  1581. grep -v '^ *+' conftest.err >conftest.er1
  1582. cat conftest.er1 >&5
  1583. mv -f conftest.er1 conftest.err
  1584. fi
  1585. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1586. test $ac_status = 0; } && {
  1587. test -z "$ac_c_werror_flag" ||
  1588. test ! -s conftest.err
  1589. } && test -s conftest.$ac_objext; then :
  1590. ac_retval=0
  1591. else
  1592. $as_echo "$as_me: failed program was:" >&5
  1593. sed 's/^/| /' conftest.$ac_ext >&5
  1594. ac_retval=1
  1595. fi
  1596. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1597. as_fn_set_status $ac_retval
  1598. } # ac_fn_c_try_compile
  1599. # ac_fn_c_try_link LINENO
  1600. # -----------------------
  1601. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1602. ac_fn_c_try_link ()
  1603. {
  1604. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1605. rm -f conftest.$ac_objext conftest$ac_exeext
  1606. if { { ac_try="$ac_link"
  1607. case "(($ac_try" in
  1608. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1609. *) ac_try_echo=$ac_try;;
  1610. esac
  1611. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1612. $as_echo "$ac_try_echo"; } >&5
  1613. (eval "$ac_link") 2>conftest.err
  1614. ac_status=$?
  1615. if test -s conftest.err; then
  1616. grep -v '^ *+' conftest.err >conftest.er1
  1617. cat conftest.er1 >&5
  1618. mv -f conftest.er1 conftest.err
  1619. fi
  1620. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1621. test $ac_status = 0; } && {
  1622. test -z "$ac_c_werror_flag" ||
  1623. test ! -s conftest.err
  1624. } && test -s conftest$ac_exeext && {
  1625. test "$cross_compiling" = yes ||
  1626. test -x conftest$ac_exeext
  1627. }; then :
  1628. ac_retval=0
  1629. else
  1630. $as_echo "$as_me: failed program was:" >&5
  1631. sed 's/^/| /' conftest.$ac_ext >&5
  1632. ac_retval=1
  1633. fi
  1634. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1635. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1636. # interfere with the next link command; also delete a directory that is
  1637. # left behind by Apple's compiler. We do this before executing the actions.
  1638. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1639. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1640. as_fn_set_status $ac_retval
  1641. } # ac_fn_c_try_link
  1642. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1643. # -------------------------------------------------------
  1644. # Tests whether HEADER exists and can be compiled using the include files in
  1645. # INCLUDES, setting the cache variable VAR accordingly.
  1646. ac_fn_c_check_header_compile ()
  1647. {
  1648. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1650. $as_echo_n "checking for $2... " >&6; }
  1651. if eval \${$3+:} false; then :
  1652. $as_echo_n "(cached) " >&6
  1653. else
  1654. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1655. /* end confdefs.h. */
  1656. $4
  1657. #include <$2>
  1658. _ACEOF
  1659. if ac_fn_c_try_compile "$LINENO"; then :
  1660. eval "$3=yes"
  1661. else
  1662. eval "$3=no"
  1663. fi
  1664. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1665. fi
  1666. eval ac_res=\$$3
  1667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1668. $as_echo "$ac_res" >&6; }
  1669. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1670. } # ac_fn_c_check_header_compile
  1671. # ac_fn_c_try_cpp LINENO
  1672. # ----------------------
  1673. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1674. ac_fn_c_try_cpp ()
  1675. {
  1676. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1677. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1678. case "(($ac_try" in
  1679. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1680. *) ac_try_echo=$ac_try;;
  1681. esac
  1682. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1683. $as_echo "$ac_try_echo"; } >&5
  1684. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1685. ac_status=$?
  1686. if test -s conftest.err; then
  1687. grep -v '^ *+' conftest.err >conftest.er1
  1688. cat conftest.er1 >&5
  1689. mv -f conftest.er1 conftest.err
  1690. fi
  1691. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1692. test $ac_status = 0; } > conftest.i && {
  1693. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1694. test ! -s conftest.err
  1695. }; then :
  1696. ac_retval=0
  1697. else
  1698. $as_echo "$as_me: failed program was:" >&5
  1699. sed 's/^/| /' conftest.$ac_ext >&5
  1700. ac_retval=1
  1701. fi
  1702. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1703. as_fn_set_status $ac_retval
  1704. } # ac_fn_c_try_cpp
  1705. # ac_fn_c_try_run LINENO
  1706. # ----------------------
  1707. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1708. # that executables *can* be run.
  1709. ac_fn_c_try_run ()
  1710. {
  1711. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1712. if { { ac_try="$ac_link"
  1713. case "(($ac_try" in
  1714. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1715. *) ac_try_echo=$ac_try;;
  1716. esac
  1717. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1718. $as_echo "$ac_try_echo"; } >&5
  1719. (eval "$ac_link") 2>&5
  1720. ac_status=$?
  1721. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1722. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1723. { { case "(($ac_try" in
  1724. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1725. *) ac_try_echo=$ac_try;;
  1726. esac
  1727. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1728. $as_echo "$ac_try_echo"; } >&5
  1729. (eval "$ac_try") 2>&5
  1730. ac_status=$?
  1731. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1732. test $ac_status = 0; }; }; then :
  1733. ac_retval=0
  1734. else
  1735. $as_echo "$as_me: program exited with status $ac_status" >&5
  1736. $as_echo "$as_me: failed program was:" >&5
  1737. sed 's/^/| /' conftest.$ac_ext >&5
  1738. ac_retval=$ac_status
  1739. fi
  1740. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1741. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1742. as_fn_set_status $ac_retval
  1743. } # ac_fn_c_try_run
  1744. # ac_fn_c_check_func LINENO FUNC VAR
  1745. # ----------------------------------
  1746. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1747. ac_fn_c_check_func ()
  1748. {
  1749. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1751. $as_echo_n "checking for $2... " >&6; }
  1752. if eval \${$3+:} false; then :
  1753. $as_echo_n "(cached) " >&6
  1754. else
  1755. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1756. /* end confdefs.h. */
  1757. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1758. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1759. #define $2 innocuous_$2
  1760. /* System header to define __stub macros and hopefully few prototypes,
  1761. which can conflict with char $2 (); below.
  1762. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1763. <limits.h> exists even on freestanding compilers. */
  1764. #ifdef __STDC__
  1765. # include <limits.h>
  1766. #else
  1767. # include <assert.h>
  1768. #endif
  1769. #undef $2
  1770. /* Override any GCC internal prototype to avoid an error.
  1771. Use char because int might match the return type of a GCC
  1772. builtin and then its argument prototype would still apply. */
  1773. #ifdef __cplusplus
  1774. extern "C"
  1775. #endif
  1776. char $2 ();
  1777. /* The GNU C library defines this for functions which it implements
  1778. to always fail with ENOSYS. Some functions are actually named
  1779. something starting with __ and the normal name is an alias. */
  1780. #if defined __stub_$2 || defined __stub___$2
  1781. choke me
  1782. #endif
  1783. int
  1784. main ()
  1785. {
  1786. return $2 ();
  1787. ;
  1788. return 0;
  1789. }
  1790. _ACEOF
  1791. if ac_fn_c_try_link "$LINENO"; then :
  1792. eval "$3=yes"
  1793. else
  1794. eval "$3=no"
  1795. fi
  1796. rm -f core conftest.err conftest.$ac_objext \
  1797. conftest$ac_exeext conftest.$ac_ext
  1798. fi
  1799. eval ac_res=\$$3
  1800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1801. $as_echo "$ac_res" >&6; }
  1802. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1803. } # ac_fn_c_check_func
  1804. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1805. # -------------------------------------------------------
  1806. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1807. # the include files in INCLUDES and setting the cache variable VAR
  1808. # accordingly.
  1809. ac_fn_c_check_header_mongrel ()
  1810. {
  1811. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1812. if eval \${$3+:} false; then :
  1813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1814. $as_echo_n "checking for $2... " >&6; }
  1815. if eval \${$3+:} false; then :
  1816. $as_echo_n "(cached) " >&6
  1817. fi
  1818. eval ac_res=\$$3
  1819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1820. $as_echo "$ac_res" >&6; }
  1821. else
  1822. # Is the header compilable?
  1823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1824. $as_echo_n "checking $2 usability... " >&6; }
  1825. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1826. /* end confdefs.h. */
  1827. $4
  1828. #include <$2>
  1829. _ACEOF
  1830. if ac_fn_c_try_compile "$LINENO"; then :
  1831. ac_header_compiler=yes
  1832. else
  1833. ac_header_compiler=no
  1834. fi
  1835. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1837. $as_echo "$ac_header_compiler" >&6; }
  1838. # Is the header present?
  1839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1840. $as_echo_n "checking $2 presence... " >&6; }
  1841. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1842. /* end confdefs.h. */
  1843. #include <$2>
  1844. _ACEOF
  1845. if ac_fn_c_try_cpp "$LINENO"; then :
  1846. ac_header_preproc=yes
  1847. else
  1848. ac_header_preproc=no
  1849. fi
  1850. rm -f conftest.err conftest.i conftest.$ac_ext
  1851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1852. $as_echo "$ac_header_preproc" >&6; }
  1853. # So? What about this header?
  1854. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1855. yes:no: )
  1856. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1857. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1858. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1859. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1860. ;;
  1861. no:yes:* )
  1862. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1863. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1864. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1865. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1866. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1867. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1868. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1869. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1870. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1871. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1872. ;;
  1873. esac
  1874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1875. $as_echo_n "checking for $2... " >&6; }
  1876. if eval \${$3+:} false; then :
  1877. $as_echo_n "(cached) " >&6
  1878. else
  1879. eval "$3=\$ac_header_compiler"
  1880. fi
  1881. eval ac_res=\$$3
  1882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1883. $as_echo "$ac_res" >&6; }
  1884. fi
  1885. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1886. } # ac_fn_c_check_header_mongrel
  1887. cat >config.log <<_ACEOF
  1888. This file contains any messages produced by compilers while
  1889. running configure, to aid debugging if configure makes a mistake.
  1890. It was created by tpm2-tools $as_me 5.1, which was
  1891. generated by GNU Autoconf 2.69. Invocation command line was
  1892. $ $0 $@
  1893. _ACEOF
  1894. exec 5>>config.log
  1895. {
  1896. cat <<_ASUNAME
  1897. ## --------- ##
  1898. ## Platform. ##
  1899. ## --------- ##
  1900. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1901. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1902. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1903. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1904. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1905. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1906. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1907. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1908. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1909. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1910. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1911. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1912. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1913. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1914. _ASUNAME
  1915. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1916. for as_dir in $PATH
  1917. do
  1918. IFS=$as_save_IFS
  1919. test -z "$as_dir" && as_dir=.
  1920. $as_echo "PATH: $as_dir"
  1921. done
  1922. IFS=$as_save_IFS
  1923. } >&5
  1924. cat >&5 <<_ACEOF
  1925. ## ----------- ##
  1926. ## Core tests. ##
  1927. ## ----------- ##
  1928. _ACEOF
  1929. # Keep a trace of the command line.
  1930. # Strip out --no-create and --no-recursion so they do not pile up.
  1931. # Strip out --silent because we don't want to record it for future runs.
  1932. # Also quote any args containing shell meta-characters.
  1933. # Make two passes to allow for proper duplicate-argument suppression.
  1934. ac_configure_args=
  1935. ac_configure_args0=
  1936. ac_configure_args1=
  1937. ac_must_keep_next=false
  1938. for ac_pass in 1 2
  1939. do
  1940. for ac_arg
  1941. do
  1942. case $ac_arg in
  1943. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1944. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1945. | -silent | --silent | --silen | --sile | --sil)
  1946. continue ;;
  1947. *\'*)
  1948. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1949. esac
  1950. case $ac_pass in
  1951. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1952. 2)
  1953. as_fn_append ac_configure_args1 " '$ac_arg'"
  1954. if test $ac_must_keep_next = true; then
  1955. ac_must_keep_next=false # Got value, back to normal.
  1956. else
  1957. case $ac_arg in
  1958. *=* | --config-cache | -C | -disable-* | --disable-* \
  1959. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1960. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1961. | -with-* | --with-* | -without-* | --without-* | --x)
  1962. case "$ac_configure_args0 " in
  1963. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1964. esac
  1965. ;;
  1966. -* ) ac_must_keep_next=true ;;
  1967. esac
  1968. fi
  1969. as_fn_append ac_configure_args " '$ac_arg'"
  1970. ;;
  1971. esac
  1972. done
  1973. done
  1974. { ac_configure_args0=; unset ac_configure_args0;}
  1975. { ac_configure_args1=; unset ac_configure_args1;}
  1976. # When interrupted or exit'd, cleanup temporary files, and complete
  1977. # config.log. We remove comments because anyway the quotes in there
  1978. # would cause problems or look ugly.
  1979. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1980. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1981. trap 'exit_status=$?
  1982. # Save into config.log some information that might help in debugging.
  1983. {
  1984. echo
  1985. $as_echo "## ---------------- ##
  1986. ## Cache variables. ##
  1987. ## ---------------- ##"
  1988. echo
  1989. # The following way of writing the cache mishandles newlines in values,
  1990. (
  1991. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1992. eval ac_val=\$$ac_var
  1993. case $ac_val in #(
  1994. *${as_nl}*)
  1995. case $ac_var in #(
  1996. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1997. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1998. esac
  1999. case $ac_var in #(
  2000. _ | IFS | as_nl) ;; #(
  2001. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2002. *) { eval $ac_var=; unset $ac_var;} ;;
  2003. esac ;;
  2004. esac
  2005. done
  2006. (set) 2>&1 |
  2007. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2008. *${as_nl}ac_space=\ *)
  2009. sed -n \
  2010. "s/'\''/'\''\\\\'\'''\''/g;
  2011. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2012. ;; #(
  2013. *)
  2014. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2015. ;;
  2016. esac |
  2017. sort
  2018. )
  2019. echo
  2020. $as_echo "## ----------------- ##
  2021. ## Output variables. ##
  2022. ## ----------------- ##"
  2023. echo
  2024. for ac_var in $ac_subst_vars
  2025. do
  2026. eval ac_val=\$$ac_var
  2027. case $ac_val in
  2028. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2029. esac
  2030. $as_echo "$ac_var='\''$ac_val'\''"
  2031. done | sort
  2032. echo
  2033. if test -n "$ac_subst_files"; then
  2034. $as_echo "## ------------------- ##
  2035. ## File substitutions. ##
  2036. ## ------------------- ##"
  2037. echo
  2038. for ac_var in $ac_subst_files
  2039. do
  2040. eval ac_val=\$$ac_var
  2041. case $ac_val in
  2042. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2043. esac
  2044. $as_echo "$ac_var='\''$ac_val'\''"
  2045. done | sort
  2046. echo
  2047. fi
  2048. if test -s confdefs.h; then
  2049. $as_echo "## ----------- ##
  2050. ## confdefs.h. ##
  2051. ## ----------- ##"
  2052. echo
  2053. cat confdefs.h
  2054. echo
  2055. fi
  2056. test "$ac_signal" != 0 &&
  2057. $as_echo "$as_me: caught signal $ac_signal"
  2058. $as_echo "$as_me: exit $exit_status"
  2059. } >&5
  2060. rm -f core *.core core.conftest.* &&
  2061. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2062. exit $exit_status
  2063. ' 0
  2064. for ac_signal in 1 2 13 15; do
  2065. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2066. done
  2067. ac_signal=0
  2068. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2069. rm -f -r conftest* confdefs.h
  2070. $as_echo "/* confdefs.h */" > confdefs.h
  2071. # Predefined preprocessor variables.
  2072. cat >>confdefs.h <<_ACEOF
  2073. #define PACKAGE_NAME "$PACKAGE_NAME"
  2074. _ACEOF
  2075. cat >>confdefs.h <<_ACEOF
  2076. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2077. _ACEOF
  2078. cat >>confdefs.h <<_ACEOF
  2079. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2080. _ACEOF
  2081. cat >>confdefs.h <<_ACEOF
  2082. #define PACKAGE_STRING "$PACKAGE_STRING"
  2083. _ACEOF
  2084. cat >>confdefs.h <<_ACEOF
  2085. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2086. _ACEOF
  2087. cat >>confdefs.h <<_ACEOF
  2088. #define PACKAGE_URL "$PACKAGE_URL"
  2089. _ACEOF
  2090. # Let the site file select an alternate cache file if it wants to.
  2091. # Prefer an explicitly selected file to automatically selected ones.
  2092. ac_site_file1=NONE
  2093. ac_site_file2=NONE
  2094. if test -n "$CONFIG_SITE"; then
  2095. # We do not want a PATH search for config.site.
  2096. case $CONFIG_SITE in #((
  2097. -*) ac_site_file1=./$CONFIG_SITE;;
  2098. */*) ac_site_file1=$CONFIG_SITE;;
  2099. *) ac_site_file1=./$CONFIG_SITE;;
  2100. esac
  2101. elif test "x$prefix" != xNONE; then
  2102. ac_site_file1=$prefix/share/config.site
  2103. ac_site_file2=$prefix/etc/config.site
  2104. else
  2105. ac_site_file1=$ac_default_prefix/share/config.site
  2106. ac_site_file2=$ac_default_prefix/etc/config.site
  2107. fi
  2108. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2109. do
  2110. test "x$ac_site_file" = xNONE && continue
  2111. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2112. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2113. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2114. sed 's/^/| /' "$ac_site_file" >&5
  2115. . "$ac_site_file" \
  2116. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2117. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2118. as_fn_error $? "failed to load site script $ac_site_file
  2119. See \`config.log' for more details" "$LINENO" 5; }
  2120. fi
  2121. done
  2122. if test -r "$cache_file"; then
  2123. # Some versions of bash will fail to source /dev/null (special files
  2124. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2125. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2126. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2127. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2128. case $cache_file in
  2129. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2130. *) . "./$cache_file";;
  2131. esac
  2132. fi
  2133. else
  2134. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2135. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2136. >$cache_file
  2137. fi
  2138. # Check that the precious variables saved in the cache have kept the same
  2139. # value.
  2140. ac_cache_corrupted=false
  2141. for ac_var in $ac_precious_vars; do
  2142. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2143. eval ac_new_set=\$ac_env_${ac_var}_set
  2144. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2145. eval ac_new_val=\$ac_env_${ac_var}_value
  2146. case $ac_old_set,$ac_new_set in
  2147. set,)
  2148. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2149. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2150. ac_cache_corrupted=: ;;
  2151. ,set)
  2152. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2153. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2154. ac_cache_corrupted=: ;;
  2155. ,);;
  2156. *)
  2157. if test "x$ac_old_val" != "x$ac_new_val"; then
  2158. # differences in whitespace do not lead to failure.
  2159. ac_old_val_w=`echo x $ac_old_val`
  2160. ac_new_val_w=`echo x $ac_new_val`
  2161. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2162. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2163. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2164. ac_cache_corrupted=:
  2165. else
  2166. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2167. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2168. eval $ac_var=\$ac_old_val
  2169. fi
  2170. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2171. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2172. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2173. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2174. fi;;
  2175. esac
  2176. # Pass precious variables to config.status.
  2177. if test "$ac_new_set" = set; then
  2178. case $ac_new_val in
  2179. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2180. *) ac_arg=$ac_var=$ac_new_val ;;
  2181. esac
  2182. case " $ac_configure_args " in
  2183. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2184. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2185. esac
  2186. fi
  2187. done
  2188. if $ac_cache_corrupted; then
  2189. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2190. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2191. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2192. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2193. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2194. fi
  2195. ## -------------------- ##
  2196. ## Main body of script. ##
  2197. ## -------------------- ##
  2198. ac_ext=c
  2199. ac_cpp='$CPP $CPPFLAGS'
  2200. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2201. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2202. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2203. # $is_release = ($PACKAGE_VERSION has a dash)
  2204. case $PACKAGE_VERSION in #(
  2205. *-*) :
  2206. ax_is_release=no ;; #(
  2207. *) :
  2208. ax_is_release=yes ;; #(
  2209. *) :
  2210. ;;
  2211. esac
  2212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5
  2213. $as_echo_n "checking whether to enable debugging... " >&6; }
  2214. ax_enable_debug_default=info
  2215. ax_enable_debug_is_release=$ax_is_release
  2216. # If this is a release, override the default.
  2217. if test "$ax_enable_debug_is_release" = "yes"; then :
  2218. ax_enable_debug_default="no"
  2219. fi
  2220. # Check whether --enable-debug was given.
  2221. if test "${enable_debug+set}" = set; then :
  2222. enableval=$enable_debug;
  2223. else
  2224. enable_debug=$ax_enable_debug_default
  2225. fi
  2226. # empty mean debug yes
  2227. if test "x$enable_debug" = "x"; then :
  2228. enable_debug="yes"
  2229. fi
  2230. # case of debug
  2231. case $enable_debug in #(
  2232. yes) :
  2233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2234. $as_echo "yes" >&6; }
  2235. CFLAGS="${CFLAGS} -g -O0"
  2236. CXXFLAGS="${CXXFLAGS} -g -O0"
  2237. FFLAGS="${FFLAGS} -g -O0"
  2238. FCFLAGS="${FCFLAGS} -g -O0"
  2239. OBJCFLAGS="${OBJCFLAGS} -g -O0"
  2240. ;; #(
  2241. info) :
  2242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: info" >&5
  2243. $as_echo "info" >&6; }
  2244. CFLAGS="${CFLAGS} -g"
  2245. CXXFLAGS="${CXXFLAGS} -g"
  2246. FFLAGS="${FFLAGS} -g"
  2247. FCFLAGS="${FCFLAGS} -g"
  2248. OBJCFLAGS="${OBJCFLAGS} -g"
  2249. ;; #(
  2250. profile) :
  2251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: profile" >&5
  2252. $as_echo "profile" >&6; }
  2253. CFLAGS="${CFLAGS} -g -pg"
  2254. CXXFLAGS="${CXXFLAGS} -g -pg"
  2255. FFLAGS="${FFLAGS} -g -pg"
  2256. FCFLAGS="${FCFLAGS} -g -pg"
  2257. OBJCFLAGS="${OBJCFLAGS} -g -pg"
  2258. LDFLAGS="${LDFLAGS} -pg"
  2259. ;; #(
  2260. *) :
  2261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2262. $as_echo "no" >&6; }
  2263. if test "x${CFLAGS+set}" != "xset"; then :
  2264. CFLAGS=""
  2265. fi
  2266. if test "x${CXXFLAGS+set}" != "xset"; then :
  2267. CXXFLAGS=""
  2268. fi
  2269. if test "x${FFLAGS+set}" != "xset"; then :
  2270. FFLAGS=""
  2271. fi
  2272. if test "x${FCFLAGS+set}" != "xset"; then :
  2273. FCFLAGS=""
  2274. fi
  2275. if test "x${OBJCFLAGS+set}" != "xset"; then :
  2276. OBJCFLAGS=""
  2277. fi
  2278. ;;
  2279. esac
  2280. if test "x$enable_debug" = "xyes"; then :
  2281. else
  2282. $as_echo "#define NDEBUG /**/" >>confdefs.h
  2283. fi
  2284. ax_enable_debug=$enable_debug
  2285. ac_ext=c
  2286. ac_cpp='$CPP $CPPFLAGS'
  2287. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2288. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2289. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2290. if test -n "$ac_tool_prefix"; then
  2291. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2292. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2294. $as_echo_n "checking for $ac_word... " >&6; }
  2295. if ${ac_cv_prog_CC+:} false; then :
  2296. $as_echo_n "(cached) " >&6
  2297. else
  2298. if test -n "$CC"; then
  2299. ac_cv_prog_CC="$CC" # Let the user override the test.
  2300. else
  2301. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2302. for as_dir in $PATH
  2303. do
  2304. IFS=$as_save_IFS
  2305. test -z "$as_dir" && as_dir=.
  2306. for ac_exec_ext in '' $ac_executable_extensions; do
  2307. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2308. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2309. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2310. break 2
  2311. fi
  2312. done
  2313. done
  2314. IFS=$as_save_IFS
  2315. fi
  2316. fi
  2317. CC=$ac_cv_prog_CC
  2318. if test -n "$CC"; then
  2319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2320. $as_echo "$CC" >&6; }
  2321. else
  2322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2323. $as_echo "no" >&6; }
  2324. fi
  2325. fi
  2326. if test -z "$ac_cv_prog_CC"; then
  2327. ac_ct_CC=$CC
  2328. # Extract the first word of "gcc", so it can be a program name with args.
  2329. set dummy gcc; ac_word=$2
  2330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2331. $as_echo_n "checking for $ac_word... " >&6; }
  2332. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2333. $as_echo_n "(cached) " >&6
  2334. else
  2335. if test -n "$ac_ct_CC"; then
  2336. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2337. else
  2338. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2339. for as_dir in $PATH
  2340. do
  2341. IFS=$as_save_IFS
  2342. test -z "$as_dir" && as_dir=.
  2343. for ac_exec_ext in '' $ac_executable_extensions; do
  2344. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2345. ac_cv_prog_ac_ct_CC="gcc"
  2346. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2347. break 2
  2348. fi
  2349. done
  2350. done
  2351. IFS=$as_save_IFS
  2352. fi
  2353. fi
  2354. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2355. if test -n "$ac_ct_CC"; then
  2356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2357. $as_echo "$ac_ct_CC" >&6; }
  2358. else
  2359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2360. $as_echo "no" >&6; }
  2361. fi
  2362. if test "x$ac_ct_CC" = x; then
  2363. CC=""
  2364. else
  2365. case $cross_compiling:$ac_tool_warned in
  2366. yes:)
  2367. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2368. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2369. ac_tool_warned=yes ;;
  2370. esac
  2371. CC=$ac_ct_CC
  2372. fi
  2373. else
  2374. CC="$ac_cv_prog_CC"
  2375. fi
  2376. if test -z "$CC"; then
  2377. if test -n "$ac_tool_prefix"; then
  2378. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2379. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2381. $as_echo_n "checking for $ac_word... " >&6; }
  2382. if ${ac_cv_prog_CC+:} false; then :
  2383. $as_echo_n "(cached) " >&6
  2384. else
  2385. if test -n "$CC"; then
  2386. ac_cv_prog_CC="$CC" # Let the user override the test.
  2387. else
  2388. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2389. for as_dir in $PATH
  2390. do
  2391. IFS=$as_save_IFS
  2392. test -z "$as_dir" && as_dir=.
  2393. for ac_exec_ext in '' $ac_executable_extensions; do
  2394. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2395. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2396. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2397. break 2
  2398. fi
  2399. done
  2400. done
  2401. IFS=$as_save_IFS
  2402. fi
  2403. fi
  2404. CC=$ac_cv_prog_CC
  2405. if test -n "$CC"; then
  2406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2407. $as_echo "$CC" >&6; }
  2408. else
  2409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2410. $as_echo "no" >&6; }
  2411. fi
  2412. fi
  2413. fi
  2414. if test -z "$CC"; then
  2415. # Extract the first word of "cc", so it can be a program name with args.
  2416. set dummy cc; ac_word=$2
  2417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2418. $as_echo_n "checking for $ac_word... " >&6; }
  2419. if ${ac_cv_prog_CC+:} false; then :
  2420. $as_echo_n "(cached) " >&6
  2421. else
  2422. if test -n "$CC"; then
  2423. ac_cv_prog_CC="$CC" # Let the user override the test.
  2424. else
  2425. ac_prog_rejected=no
  2426. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2427. for as_dir in $PATH
  2428. do
  2429. IFS=$as_save_IFS
  2430. test -z "$as_dir" && as_dir=.
  2431. for ac_exec_ext in '' $ac_executable_extensions; do
  2432. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2433. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2434. ac_prog_rejected=yes
  2435. continue
  2436. fi
  2437. ac_cv_prog_CC="cc"
  2438. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2439. break 2
  2440. fi
  2441. done
  2442. done
  2443. IFS=$as_save_IFS
  2444. if test $ac_prog_rejected = yes; then
  2445. # We found a bogon in the path, so make sure we never use it.
  2446. set dummy $ac_cv_prog_CC
  2447. shift
  2448. if test $# != 0; then
  2449. # We chose a different compiler from the bogus one.
  2450. # However, it has the same basename, so the bogon will be chosen
  2451. # first if we set CC to just the basename; use the full file name.
  2452. shift
  2453. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2454. fi
  2455. fi
  2456. fi
  2457. fi
  2458. CC=$ac_cv_prog_CC
  2459. if test -n "$CC"; then
  2460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2461. $as_echo "$CC" >&6; }
  2462. else
  2463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2464. $as_echo "no" >&6; }
  2465. fi
  2466. fi
  2467. if test -z "$CC"; then
  2468. if test -n "$ac_tool_prefix"; then
  2469. for ac_prog in cl.exe
  2470. do
  2471. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2472. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2474. $as_echo_n "checking for $ac_word... " >&6; }
  2475. if ${ac_cv_prog_CC+:} false; then :
  2476. $as_echo_n "(cached) " >&6
  2477. else
  2478. if test -n "$CC"; then
  2479. ac_cv_prog_CC="$CC" # Let the user override the test.
  2480. else
  2481. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2482. for as_dir in $PATH
  2483. do
  2484. IFS=$as_save_IFS
  2485. test -z "$as_dir" && as_dir=.
  2486. for ac_exec_ext in '' $ac_executable_extensions; do
  2487. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2488. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2489. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2490. break 2
  2491. fi
  2492. done
  2493. done
  2494. IFS=$as_save_IFS
  2495. fi
  2496. fi
  2497. CC=$ac_cv_prog_CC
  2498. if test -n "$CC"; then
  2499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2500. $as_echo "$CC" >&6; }
  2501. else
  2502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2503. $as_echo "no" >&6; }
  2504. fi
  2505. test -n "$CC" && break
  2506. done
  2507. fi
  2508. if test -z "$CC"; then
  2509. ac_ct_CC=$CC
  2510. for ac_prog in cl.exe
  2511. do
  2512. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2513. set dummy $ac_prog; ac_word=$2
  2514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2515. $as_echo_n "checking for $ac_word... " >&6; }
  2516. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2517. $as_echo_n "(cached) " >&6
  2518. else
  2519. if test -n "$ac_ct_CC"; then
  2520. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2521. else
  2522. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2523. for as_dir in $PATH
  2524. do
  2525. IFS=$as_save_IFS
  2526. test -z "$as_dir" && as_dir=.
  2527. for ac_exec_ext in '' $ac_executable_extensions; do
  2528. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2529. ac_cv_prog_ac_ct_CC="$ac_prog"
  2530. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2531. break 2
  2532. fi
  2533. done
  2534. done
  2535. IFS=$as_save_IFS
  2536. fi
  2537. fi
  2538. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2539. if test -n "$ac_ct_CC"; then
  2540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2541. $as_echo "$ac_ct_CC" >&6; }
  2542. else
  2543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2544. $as_echo "no" >&6; }
  2545. fi
  2546. test -n "$ac_ct_CC" && break
  2547. done
  2548. if test "x$ac_ct_CC" = x; then
  2549. CC=""
  2550. else
  2551. case $cross_compiling:$ac_tool_warned in
  2552. yes:)
  2553. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2554. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2555. ac_tool_warned=yes ;;
  2556. esac
  2557. CC=$ac_ct_CC
  2558. fi
  2559. fi
  2560. fi
  2561. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2562. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2563. as_fn_error $? "no acceptable C compiler found in \$PATH
  2564. See \`config.log' for more details" "$LINENO" 5; }
  2565. # Provide some information about the compiler.
  2566. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2567. set X $ac_compile
  2568. ac_compiler=$2
  2569. for ac_option in --version -v -V -qversion; do
  2570. { { ac_try="$ac_compiler $ac_option >&5"
  2571. case "(($ac_try" in
  2572. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2573. *) ac_try_echo=$ac_try;;
  2574. esac
  2575. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2576. $as_echo "$ac_try_echo"; } >&5
  2577. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2578. ac_status=$?
  2579. if test -s conftest.err; then
  2580. sed '10a\
  2581. ... rest of stderr output deleted ...
  2582. 10q' conftest.err >conftest.er1
  2583. cat conftest.er1 >&5
  2584. fi
  2585. rm -f conftest.er1 conftest.err
  2586. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2587. test $ac_status = 0; }
  2588. done
  2589. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2590. /* end confdefs.h. */
  2591. int
  2592. main ()
  2593. {
  2594. ;
  2595. return 0;
  2596. }
  2597. _ACEOF
  2598. ac_clean_files_save=$ac_clean_files
  2599. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2600. # Try to create an executable without -o first, disregard a.out.
  2601. # It will help us diagnose broken compilers, and finding out an intuition
  2602. # of exeext.
  2603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2604. $as_echo_n "checking whether the C compiler works... " >&6; }
  2605. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2606. # The possible output files:
  2607. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2608. ac_rmfiles=
  2609. for ac_file in $ac_files
  2610. do
  2611. case $ac_file in
  2612. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2613. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2614. esac
  2615. done
  2616. rm -f $ac_rmfiles
  2617. if { { ac_try="$ac_link_default"
  2618. case "(($ac_try" in
  2619. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2620. *) ac_try_echo=$ac_try;;
  2621. esac
  2622. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2623. $as_echo "$ac_try_echo"; } >&5
  2624. (eval "$ac_link_default") 2>&5
  2625. ac_status=$?
  2626. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2627. test $ac_status = 0; }; then :
  2628. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2629. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2630. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2631. # so that the user can short-circuit this test for compilers unknown to
  2632. # Autoconf.
  2633. for ac_file in $ac_files ''
  2634. do
  2635. test -f "$ac_file" || continue
  2636. case $ac_file in
  2637. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2638. ;;
  2639. [ab].out )
  2640. # We found the default executable, but exeext='' is most
  2641. # certainly right.
  2642. break;;
  2643. *.* )
  2644. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2645. then :; else
  2646. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2647. fi
  2648. # We set ac_cv_exeext here because the later test for it is not
  2649. # safe: cross compilers may not add the suffix if given an `-o'
  2650. # argument, so we may need to know it at that point already.
  2651. # Even if this section looks crufty: it has the advantage of
  2652. # actually working.
  2653. break;;
  2654. * )
  2655. break;;
  2656. esac
  2657. done
  2658. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2659. else
  2660. ac_file=''
  2661. fi
  2662. if test -z "$ac_file"; then :
  2663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2664. $as_echo "no" >&6; }
  2665. $as_echo "$as_me: failed program was:" >&5
  2666. sed 's/^/| /' conftest.$ac_ext >&5
  2667. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2668. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2669. as_fn_error 77 "C compiler cannot create executables
  2670. See \`config.log' for more details" "$LINENO" 5; }
  2671. else
  2672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2673. $as_echo "yes" >&6; }
  2674. fi
  2675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2676. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2678. $as_echo "$ac_file" >&6; }
  2679. ac_exeext=$ac_cv_exeext
  2680. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2681. ac_clean_files=$ac_clean_files_save
  2682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2683. $as_echo_n "checking for suffix of executables... " >&6; }
  2684. if { { ac_try="$ac_link"
  2685. case "(($ac_try" in
  2686. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2687. *) ac_try_echo=$ac_try;;
  2688. esac
  2689. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2690. $as_echo "$ac_try_echo"; } >&5
  2691. (eval "$ac_link") 2>&5
  2692. ac_status=$?
  2693. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2694. test $ac_status = 0; }; then :
  2695. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2696. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2697. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2698. # `rm'.
  2699. for ac_file in conftest.exe conftest conftest.*; do
  2700. test -f "$ac_file" || continue
  2701. case $ac_file in
  2702. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2703. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2704. break;;
  2705. * ) break;;
  2706. esac
  2707. done
  2708. else
  2709. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2710. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2711. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2712. See \`config.log' for more details" "$LINENO" 5; }
  2713. fi
  2714. rm -f conftest conftest$ac_cv_exeext
  2715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2716. $as_echo "$ac_cv_exeext" >&6; }
  2717. rm -f conftest.$ac_ext
  2718. EXEEXT=$ac_cv_exeext
  2719. ac_exeext=$EXEEXT
  2720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2721. /* end confdefs.h. */
  2722. #include <stdio.h>
  2723. int
  2724. main ()
  2725. {
  2726. FILE *f = fopen ("conftest.out", "w");
  2727. return ferror (f) || fclose (f) != 0;
  2728. ;
  2729. return 0;
  2730. }
  2731. _ACEOF
  2732. ac_clean_files="$ac_clean_files conftest.out"
  2733. # Check that the compiler produces executables we can run. If not, either
  2734. # the compiler is broken, or we cross compile.
  2735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2736. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2737. if test "$cross_compiling" != yes; then
  2738. { { ac_try="$ac_link"
  2739. case "(($ac_try" in
  2740. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2741. *) ac_try_echo=$ac_try;;
  2742. esac
  2743. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2744. $as_echo "$ac_try_echo"; } >&5
  2745. (eval "$ac_link") 2>&5
  2746. ac_status=$?
  2747. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2748. test $ac_status = 0; }
  2749. if { ac_try='./conftest$ac_cv_exeext'
  2750. { { case "(($ac_try" in
  2751. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2752. *) ac_try_echo=$ac_try;;
  2753. esac
  2754. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2755. $as_echo "$ac_try_echo"; } >&5
  2756. (eval "$ac_try") 2>&5
  2757. ac_status=$?
  2758. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2759. test $ac_status = 0; }; }; then
  2760. cross_compiling=no
  2761. else
  2762. if test "$cross_compiling" = maybe; then
  2763. cross_compiling=yes
  2764. else
  2765. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2766. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2767. as_fn_error $? "cannot run C compiled programs.
  2768. If you meant to cross compile, use \`--host'.
  2769. See \`config.log' for more details" "$LINENO" 5; }
  2770. fi
  2771. fi
  2772. fi
  2773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2774. $as_echo "$cross_compiling" >&6; }
  2775. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2776. ac_clean_files=$ac_clean_files_save
  2777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2778. $as_echo_n "checking for suffix of object files... " >&6; }
  2779. if ${ac_cv_objext+:} false; then :
  2780. $as_echo_n "(cached) " >&6
  2781. else
  2782. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2783. /* end confdefs.h. */
  2784. int
  2785. main ()
  2786. {
  2787. ;
  2788. return 0;
  2789. }
  2790. _ACEOF
  2791. rm -f conftest.o conftest.obj
  2792. if { { ac_try="$ac_compile"
  2793. case "(($ac_try" in
  2794. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2795. *) ac_try_echo=$ac_try;;
  2796. esac
  2797. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2798. $as_echo "$ac_try_echo"; } >&5
  2799. (eval "$ac_compile") 2>&5
  2800. ac_status=$?
  2801. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2802. test $ac_status = 0; }; then :
  2803. for ac_file in conftest.o conftest.obj conftest.*; do
  2804. test -f "$ac_file" || continue;
  2805. case $ac_file in
  2806. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2807. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2808. break;;
  2809. esac
  2810. done
  2811. else
  2812. $as_echo "$as_me: failed program was:" >&5
  2813. sed 's/^/| /' conftest.$ac_ext >&5
  2814. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2815. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2816. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2817. See \`config.log' for more details" "$LINENO" 5; }
  2818. fi
  2819. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2820. fi
  2821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2822. $as_echo "$ac_cv_objext" >&6; }
  2823. OBJEXT=$ac_cv_objext
  2824. ac_objext=$OBJEXT
  2825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2826. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2827. if ${ac_cv_c_compiler_gnu+:} false; then :
  2828. $as_echo_n "(cached) " >&6
  2829. else
  2830. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2831. /* end confdefs.h. */
  2832. int
  2833. main ()
  2834. {
  2835. #ifndef __GNUC__
  2836. choke me
  2837. #endif
  2838. ;
  2839. return 0;
  2840. }
  2841. _ACEOF
  2842. if ac_fn_c_try_compile "$LINENO"; then :
  2843. ac_compiler_gnu=yes
  2844. else
  2845. ac_compiler_gnu=no
  2846. fi
  2847. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2848. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2849. fi
  2850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2851. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2852. if test $ac_compiler_gnu = yes; then
  2853. GCC=yes
  2854. else
  2855. GCC=
  2856. fi
  2857. ac_test_CFLAGS=${CFLAGS+set}
  2858. ac_save_CFLAGS=$CFLAGS
  2859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2860. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2861. if ${ac_cv_prog_cc_g+:} false; then :
  2862. $as_echo_n "(cached) " >&6
  2863. else
  2864. ac_save_c_werror_flag=$ac_c_werror_flag
  2865. ac_c_werror_flag=yes
  2866. ac_cv_prog_cc_g=no
  2867. CFLAGS="-g"
  2868. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2869. /* end confdefs.h. */
  2870. int
  2871. main ()
  2872. {
  2873. ;
  2874. return 0;
  2875. }
  2876. _ACEOF
  2877. if ac_fn_c_try_compile "$LINENO"; then :
  2878. ac_cv_prog_cc_g=yes
  2879. else
  2880. CFLAGS=""
  2881. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2882. /* end confdefs.h. */
  2883. int
  2884. main ()
  2885. {
  2886. ;
  2887. return 0;
  2888. }
  2889. _ACEOF
  2890. if ac_fn_c_try_compile "$LINENO"; then :
  2891. else
  2892. ac_c_werror_flag=$ac_save_c_werror_flag
  2893. CFLAGS="-g"
  2894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2895. /* end confdefs.h. */
  2896. int
  2897. main ()
  2898. {
  2899. ;
  2900. return 0;
  2901. }
  2902. _ACEOF
  2903. if ac_fn_c_try_compile "$LINENO"; then :
  2904. ac_cv_prog_cc_g=yes
  2905. fi
  2906. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2907. fi
  2908. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2909. fi
  2910. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2911. ac_c_werror_flag=$ac_save_c_werror_flag
  2912. fi
  2913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2914. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2915. if test "$ac_test_CFLAGS" = set; then
  2916. CFLAGS=$ac_save_CFLAGS
  2917. elif test $ac_cv_prog_cc_g = yes; then
  2918. if test "$GCC" = yes; then
  2919. CFLAGS="-g -O2"
  2920. else
  2921. CFLAGS="-g"
  2922. fi
  2923. else
  2924. if test "$GCC" = yes; then
  2925. CFLAGS="-O2"
  2926. else
  2927. CFLAGS=
  2928. fi
  2929. fi
  2930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2931. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2932. if ${ac_cv_prog_cc_c89+:} false; then :
  2933. $as_echo_n "(cached) " >&6
  2934. else
  2935. ac_cv_prog_cc_c89=no
  2936. ac_save_CC=$CC
  2937. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2938. /* end confdefs.h. */
  2939. #include <stdarg.h>
  2940. #include <stdio.h>
  2941. struct stat;
  2942. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2943. struct buf { int x; };
  2944. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2945. static char *e (p, i)
  2946. char **p;
  2947. int i;
  2948. {
  2949. return p[i];
  2950. }
  2951. static char *f (char * (*g) (char **, int), char **p, ...)
  2952. {
  2953. char *s;
  2954. va_list v;
  2955. va_start (v,p);
  2956. s = g (p, va_arg (v,int));
  2957. va_end (v);
  2958. return s;
  2959. }
  2960. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2961. function prototypes and stuff, but not '\xHH' hex character constants.
  2962. These don't provoke an error unfortunately, instead are silently treated
  2963. as 'x'. The following induces an error, until -std is added to get
  2964. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2965. array size at least. It's necessary to write '\x00'==0 to get something
  2966. that's true only with -std. */
  2967. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2968. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2969. inside strings and character constants. */
  2970. #define FOO(x) 'x'
  2971. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2972. int test (int i, double x);
  2973. struct s1 {int (*f) (int a);};
  2974. struct s2 {int (*f) (double a);};
  2975. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2976. int argc;
  2977. char **argv;
  2978. int
  2979. main ()
  2980. {
  2981. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2982. ;
  2983. return 0;
  2984. }
  2985. _ACEOF
  2986. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2987. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2988. do
  2989. CC="$ac_save_CC $ac_arg"
  2990. if ac_fn_c_try_compile "$LINENO"; then :
  2991. ac_cv_prog_cc_c89=$ac_arg
  2992. fi
  2993. rm -f core conftest.err conftest.$ac_objext
  2994. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2995. done
  2996. rm -f conftest.$ac_ext
  2997. CC=$ac_save_CC
  2998. fi
  2999. # AC_CACHE_VAL
  3000. case "x$ac_cv_prog_cc_c89" in
  3001. x)
  3002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3003. $as_echo "none needed" >&6; } ;;
  3004. xno)
  3005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3006. $as_echo "unsupported" >&6; } ;;
  3007. *)
  3008. CC="$CC $ac_cv_prog_cc_c89"
  3009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3010. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3011. esac
  3012. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3013. fi
  3014. ac_ext=c
  3015. ac_cpp='$CPP $CPPFLAGS'
  3016. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3017. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3018. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3019. ac_aux_dir=
  3020. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  3021. if test -f "$ac_dir/install-sh"; then
  3022. ac_aux_dir=$ac_dir
  3023. ac_install_sh="$ac_aux_dir/install-sh -c"
  3024. break
  3025. elif test -f "$ac_dir/install.sh"; then
  3026. ac_aux_dir=$ac_dir
  3027. ac_install_sh="$ac_aux_dir/install.sh -c"
  3028. break
  3029. elif test -f "$ac_dir/shtool"; then
  3030. ac_aux_dir=$ac_dir
  3031. ac_install_sh="$ac_aux_dir/shtool install -c"
  3032. break
  3033. fi
  3034. done
  3035. if test -z "$ac_aux_dir"; then
  3036. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  3037. fi
  3038. # These three variables are undocumented and unsupported,
  3039. # and are intended to be withdrawn in a future Autoconf release.
  3040. # They can cause serious problems if a builder's source tree is in a directory
  3041. # whose full name contains unusual characters.
  3042. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  3043. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  3044. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  3045. # Expand $ac_aux_dir to an absolute path.
  3046. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  3047. ac_ext=c
  3048. ac_cpp='$CPP $CPPFLAGS'
  3049. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3050. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3051. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3053. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3054. if ${am_cv_prog_cc_c_o+:} false; then :
  3055. $as_echo_n "(cached) " >&6
  3056. else
  3057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3058. /* end confdefs.h. */
  3059. int
  3060. main ()
  3061. {
  3062. ;
  3063. return 0;
  3064. }
  3065. _ACEOF
  3066. # Make sure it works both with $CC and with simple cc.
  3067. # Following AC_PROG_CC_C_O, we do the test twice because some
  3068. # compilers refuse to overwrite an existing .o file with -o,
  3069. # though they will create one.
  3070. am_cv_prog_cc_c_o=yes
  3071. for am_i in 1 2; do
  3072. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3073. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3074. ac_status=$?
  3075. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3076. (exit $ac_status); } \
  3077. && test -f conftest2.$ac_objext; then
  3078. : OK
  3079. else
  3080. am_cv_prog_cc_c_o=no
  3081. break
  3082. fi
  3083. done
  3084. rm -f core conftest*
  3085. unset am_i
  3086. fi
  3087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3088. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3089. if test "$am_cv_prog_cc_c_o" != yes; then
  3090. # Losing compiler, so override with the script.
  3091. # FIXME: It is wrong to rewrite CC.
  3092. # But if we don't then we get into trouble of one sort or another.
  3093. # A longer-term fix would be to have automake use am__CC in this case,
  3094. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3095. CC="$am_aux_dir/compile $CC"
  3096. fi
  3097. ac_ext=c
  3098. ac_cpp='$CPP $CPPFLAGS'
  3099. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3100. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3101. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  3103. $as_echo_n "checking whether ln -s works... " >&6; }
  3104. LN_S=$as_ln_s
  3105. if test "$LN_S" = "ln -s"; then
  3106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3107. $as_echo "yes" >&6; }
  3108. else
  3109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  3110. $as_echo "no, using $LN_S" >&6; }
  3111. fi
  3112. case `pwd` in
  3113. *\ * | *\ *)
  3114. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3115. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3116. esac
  3117. macro_version='2.4.6'
  3118. macro_revision='2.4.6'
  3119. ltmain=$ac_aux_dir/ltmain.sh
  3120. # Make sure we can run config.sub.
  3121. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3122. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3124. $as_echo_n "checking build system type... " >&6; }
  3125. if ${ac_cv_build+:} false; then :
  3126. $as_echo_n "(cached) " >&6
  3127. else
  3128. ac_build_alias=$build_alias
  3129. test "x$ac_build_alias" = x &&
  3130. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3131. test "x$ac_build_alias" = x &&
  3132. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3133. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3134. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3135. fi
  3136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3137. $as_echo "$ac_cv_build" >&6; }
  3138. case $ac_cv_build in
  3139. *-*-*) ;;
  3140. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3141. esac
  3142. build=$ac_cv_build
  3143. ac_save_IFS=$IFS; IFS='-'
  3144. set x $ac_cv_build
  3145. shift
  3146. build_cpu=$1
  3147. build_vendor=$2
  3148. shift; shift
  3149. # Remember, the first character of IFS is used to create $*,
  3150. # except with old shells:
  3151. build_os=$*
  3152. IFS=$ac_save_IFS
  3153. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3155. $as_echo_n "checking host system type... " >&6; }
  3156. if ${ac_cv_host+:} false; then :
  3157. $as_echo_n "(cached) " >&6
  3158. else
  3159. if test "x$host_alias" = x; then
  3160. ac_cv_host=$ac_cv_build
  3161. else
  3162. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3163. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3164. fi
  3165. fi
  3166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3167. $as_echo "$ac_cv_host" >&6; }
  3168. case $ac_cv_host in
  3169. *-*-*) ;;
  3170. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3171. esac
  3172. host=$ac_cv_host
  3173. ac_save_IFS=$IFS; IFS='-'
  3174. set x $ac_cv_host
  3175. shift
  3176. host_cpu=$1
  3177. host_vendor=$2
  3178. shift; shift
  3179. # Remember, the first character of IFS is used to create $*,
  3180. # except with old shells:
  3181. host_os=$*
  3182. IFS=$ac_save_IFS
  3183. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3184. # Backslashify metacharacters that are still active within
  3185. # double-quoted strings.
  3186. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3187. # Same as above, but do not quote variable references.
  3188. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3189. # Sed substitution to delay expansion of an escaped shell variable in a
  3190. # double_quote_subst'ed string.
  3191. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3192. # Sed substitution to delay expansion of an escaped single quote.
  3193. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3194. # Sed substitution to avoid accidental globbing in evaled expressions
  3195. no_glob_subst='s/\*/\\\*/g'
  3196. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3197. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3198. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3200. $as_echo_n "checking how to print strings... " >&6; }
  3201. # Test print first, because it will be a builtin if present.
  3202. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3203. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3204. ECHO='print -r --'
  3205. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3206. ECHO='printf %s\n'
  3207. else
  3208. # Use this function as a fallback that always works.
  3209. func_fallback_echo ()
  3210. {
  3211. eval 'cat <<_LTECHO_EOF
  3212. $1
  3213. _LTECHO_EOF'
  3214. }
  3215. ECHO='func_fallback_echo'
  3216. fi
  3217. # func_echo_all arg...
  3218. # Invoke $ECHO with all args, space-separated.
  3219. func_echo_all ()
  3220. {
  3221. $ECHO ""
  3222. }
  3223. case $ECHO in
  3224. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3225. $as_echo "printf" >&6; } ;;
  3226. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3227. $as_echo "print -r" >&6; } ;;
  3228. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3229. $as_echo "cat" >&6; } ;;
  3230. esac
  3231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3232. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3233. if ${ac_cv_path_SED+:} false; then :
  3234. $as_echo_n "(cached) " >&6
  3235. else
  3236. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3237. for ac_i in 1 2 3 4 5 6 7; do
  3238. ac_script="$ac_script$as_nl$ac_script"
  3239. done
  3240. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3241. { ac_script=; unset ac_script;}
  3242. if test -z "$SED"; then
  3243. ac_path_SED_found=false
  3244. # Loop through the user's path and test for each of PROGNAME-LIST
  3245. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3246. for as_dir in $PATH
  3247. do
  3248. IFS=$as_save_IFS
  3249. test -z "$as_dir" && as_dir=.
  3250. for ac_prog in sed gsed; do
  3251. for ac_exec_ext in '' $ac_executable_extensions; do
  3252. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3253. as_fn_executable_p "$ac_path_SED" || continue
  3254. # Check for GNU ac_path_SED and select it if it is found.
  3255. # Check for GNU $ac_path_SED
  3256. case `"$ac_path_SED" --version 2>&1` in
  3257. *GNU*)
  3258. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3259. *)
  3260. ac_count=0
  3261. $as_echo_n 0123456789 >"conftest.in"
  3262. while :
  3263. do
  3264. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3265. mv "conftest.tmp" "conftest.in"
  3266. cp "conftest.in" "conftest.nl"
  3267. $as_echo '' >> "conftest.nl"
  3268. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3269. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3270. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3271. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3272. # Best one so far, save it but keep looking for a better one
  3273. ac_cv_path_SED="$ac_path_SED"
  3274. ac_path_SED_max=$ac_count
  3275. fi
  3276. # 10*(2^10) chars as input seems more than enough
  3277. test $ac_count -gt 10 && break
  3278. done
  3279. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3280. esac
  3281. $ac_path_SED_found && break 3
  3282. done
  3283. done
  3284. done
  3285. IFS=$as_save_IFS
  3286. if test -z "$ac_cv_path_SED"; then
  3287. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3288. fi
  3289. else
  3290. ac_cv_path_SED=$SED
  3291. fi
  3292. fi
  3293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3294. $as_echo "$ac_cv_path_SED" >&6; }
  3295. SED="$ac_cv_path_SED"
  3296. rm -f conftest.sed
  3297. test -z "$SED" && SED=sed
  3298. Xsed="$SED -e 1s/^X//"
  3299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3300. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3301. if ${ac_cv_path_GREP+:} false; then :
  3302. $as_echo_n "(cached) " >&6
  3303. else
  3304. if test -z "$GREP"; then
  3305. ac_path_GREP_found=false
  3306. # Loop through the user's path and test for each of PROGNAME-LIST
  3307. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3308. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3309. do
  3310. IFS=$as_save_IFS
  3311. test -z "$as_dir" && as_dir=.
  3312. for ac_prog in grep ggrep; do
  3313. for ac_exec_ext in '' $ac_executable_extensions; do
  3314. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3315. as_fn_executable_p "$ac_path_GREP" || continue
  3316. # Check for GNU ac_path_GREP and select it if it is found.
  3317. # Check for GNU $ac_path_GREP
  3318. case `"$ac_path_GREP" --version 2>&1` in
  3319. *GNU*)
  3320. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3321. *)
  3322. ac_count=0
  3323. $as_echo_n 0123456789 >"conftest.in"
  3324. while :
  3325. do
  3326. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3327. mv "conftest.tmp" "conftest.in"
  3328. cp "conftest.in" "conftest.nl"
  3329. $as_echo 'GREP' >> "conftest.nl"
  3330. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3331. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3332. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3333. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3334. # Best one so far, save it but keep looking for a better one
  3335. ac_cv_path_GREP="$ac_path_GREP"
  3336. ac_path_GREP_max=$ac_count
  3337. fi
  3338. # 10*(2^10) chars as input seems more than enough
  3339. test $ac_count -gt 10 && break
  3340. done
  3341. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3342. esac
  3343. $ac_path_GREP_found && break 3
  3344. done
  3345. done
  3346. done
  3347. IFS=$as_save_IFS
  3348. if test -z "$ac_cv_path_GREP"; then
  3349. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3350. fi
  3351. else
  3352. ac_cv_path_GREP=$GREP
  3353. fi
  3354. fi
  3355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3356. $as_echo "$ac_cv_path_GREP" >&6; }
  3357. GREP="$ac_cv_path_GREP"
  3358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3359. $as_echo_n "checking for egrep... " >&6; }
  3360. if ${ac_cv_path_EGREP+:} false; then :
  3361. $as_echo_n "(cached) " >&6
  3362. else
  3363. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3364. then ac_cv_path_EGREP="$GREP -E"
  3365. else
  3366. if test -z "$EGREP"; then
  3367. ac_path_EGREP_found=false
  3368. # Loop through the user's path and test for each of PROGNAME-LIST
  3369. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3370. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3371. do
  3372. IFS=$as_save_IFS
  3373. test -z "$as_dir" && as_dir=.
  3374. for ac_prog in egrep; do
  3375. for ac_exec_ext in '' $ac_executable_extensions; do
  3376. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3377. as_fn_executable_p "$ac_path_EGREP" || continue
  3378. # Check for GNU ac_path_EGREP and select it if it is found.
  3379. # Check for GNU $ac_path_EGREP
  3380. case `"$ac_path_EGREP" --version 2>&1` in
  3381. *GNU*)
  3382. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3383. *)
  3384. ac_count=0
  3385. $as_echo_n 0123456789 >"conftest.in"
  3386. while :
  3387. do
  3388. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3389. mv "conftest.tmp" "conftest.in"
  3390. cp "conftest.in" "conftest.nl"
  3391. $as_echo 'EGREP' >> "conftest.nl"
  3392. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3393. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3394. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3395. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3396. # Best one so far, save it but keep looking for a better one
  3397. ac_cv_path_EGREP="$ac_path_EGREP"
  3398. ac_path_EGREP_max=$ac_count
  3399. fi
  3400. # 10*(2^10) chars as input seems more than enough
  3401. test $ac_count -gt 10 && break
  3402. done
  3403. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3404. esac
  3405. $ac_path_EGREP_found && break 3
  3406. done
  3407. done
  3408. done
  3409. IFS=$as_save_IFS
  3410. if test -z "$ac_cv_path_EGREP"; then
  3411. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3412. fi
  3413. else
  3414. ac_cv_path_EGREP=$EGREP
  3415. fi
  3416. fi
  3417. fi
  3418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3419. $as_echo "$ac_cv_path_EGREP" >&6; }
  3420. EGREP="$ac_cv_path_EGREP"
  3421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3422. $as_echo_n "checking for fgrep... " >&6; }
  3423. if ${ac_cv_path_FGREP+:} false; then :
  3424. $as_echo_n "(cached) " >&6
  3425. else
  3426. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3427. then ac_cv_path_FGREP="$GREP -F"
  3428. else
  3429. if test -z "$FGREP"; then
  3430. ac_path_FGREP_found=false
  3431. # Loop through the user's path and test for each of PROGNAME-LIST
  3432. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3433. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3434. do
  3435. IFS=$as_save_IFS
  3436. test -z "$as_dir" && as_dir=.
  3437. for ac_prog in fgrep; do
  3438. for ac_exec_ext in '' $ac_executable_extensions; do
  3439. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3440. as_fn_executable_p "$ac_path_FGREP" || continue
  3441. # Check for GNU ac_path_FGREP and select it if it is found.
  3442. # Check for GNU $ac_path_FGREP
  3443. case `"$ac_path_FGREP" --version 2>&1` in
  3444. *GNU*)
  3445. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3446. *)
  3447. ac_count=0
  3448. $as_echo_n 0123456789 >"conftest.in"
  3449. while :
  3450. do
  3451. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3452. mv "conftest.tmp" "conftest.in"
  3453. cp "conftest.in" "conftest.nl"
  3454. $as_echo 'FGREP' >> "conftest.nl"
  3455. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3456. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3457. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3458. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3459. # Best one so far, save it but keep looking for a better one
  3460. ac_cv_path_FGREP="$ac_path_FGREP"
  3461. ac_path_FGREP_max=$ac_count
  3462. fi
  3463. # 10*(2^10) chars as input seems more than enough
  3464. test $ac_count -gt 10 && break
  3465. done
  3466. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3467. esac
  3468. $ac_path_FGREP_found && break 3
  3469. done
  3470. done
  3471. done
  3472. IFS=$as_save_IFS
  3473. if test -z "$ac_cv_path_FGREP"; then
  3474. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3475. fi
  3476. else
  3477. ac_cv_path_FGREP=$FGREP
  3478. fi
  3479. fi
  3480. fi
  3481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3482. $as_echo "$ac_cv_path_FGREP" >&6; }
  3483. FGREP="$ac_cv_path_FGREP"
  3484. test -z "$GREP" && GREP=grep
  3485. # Check whether --with-gnu-ld was given.
  3486. if test "${with_gnu_ld+set}" = set; then :
  3487. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  3488. else
  3489. with_gnu_ld=no
  3490. fi
  3491. ac_prog=ld
  3492. if test yes = "$GCC"; then
  3493. # Check if gcc -print-prog-name=ld gives a path.
  3494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3495. $as_echo_n "checking for ld used by $CC... " >&6; }
  3496. case $host in
  3497. *-*-mingw*)
  3498. # gcc leaves a trailing carriage return, which upsets mingw
  3499. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3500. *)
  3501. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3502. esac
  3503. case $ac_prog in
  3504. # Accept absolute paths.
  3505. [\\/]* | ?:[\\/]*)
  3506. re_direlt='/[^/][^/]*/\.\./'
  3507. # Canonicalize the pathname of ld
  3508. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3509. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3510. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3511. done
  3512. test -z "$LD" && LD=$ac_prog
  3513. ;;
  3514. "")
  3515. # If it fails, then pretend we aren't using GCC.
  3516. ac_prog=ld
  3517. ;;
  3518. *)
  3519. # If it is relative, then search for the first ld in PATH.
  3520. with_gnu_ld=unknown
  3521. ;;
  3522. esac
  3523. elif test yes = "$with_gnu_ld"; then
  3524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3525. $as_echo_n "checking for GNU ld... " >&6; }
  3526. else
  3527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3528. $as_echo_n "checking for non-GNU ld... " >&6; }
  3529. fi
  3530. if ${lt_cv_path_LD+:} false; then :
  3531. $as_echo_n "(cached) " >&6
  3532. else
  3533. if test -z "$LD"; then
  3534. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  3535. for ac_dir in $PATH; do
  3536. IFS=$lt_save_ifs
  3537. test -z "$ac_dir" && ac_dir=.
  3538. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3539. lt_cv_path_LD=$ac_dir/$ac_prog
  3540. # Check to see if the program is GNU ld. I'd rather use --version,
  3541. # but apparently some variants of GNU ld only accept -v.
  3542. # Break only if it was the GNU/non-GNU ld that we prefer.
  3543. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3544. *GNU* | *'with BFD'*)
  3545. test no != "$with_gnu_ld" && break
  3546. ;;
  3547. *)
  3548. test yes != "$with_gnu_ld" && break
  3549. ;;
  3550. esac
  3551. fi
  3552. done
  3553. IFS=$lt_save_ifs
  3554. else
  3555. lt_cv_path_LD=$LD # Let the user override the test with a path.
  3556. fi
  3557. fi
  3558. LD=$lt_cv_path_LD
  3559. if test -n "$LD"; then
  3560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3561. $as_echo "$LD" >&6; }
  3562. else
  3563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3564. $as_echo "no" >&6; }
  3565. fi
  3566. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3568. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3569. if ${lt_cv_prog_gnu_ld+:} false; then :
  3570. $as_echo_n "(cached) " >&6
  3571. else
  3572. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3573. case `$LD -v 2>&1 </dev/null` in
  3574. *GNU* | *'with BFD'*)
  3575. lt_cv_prog_gnu_ld=yes
  3576. ;;
  3577. *)
  3578. lt_cv_prog_gnu_ld=no
  3579. ;;
  3580. esac
  3581. fi
  3582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3583. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3584. with_gnu_ld=$lt_cv_prog_gnu_ld
  3585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3586. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3587. if ${lt_cv_path_NM+:} false; then :
  3588. $as_echo_n "(cached) " >&6
  3589. else
  3590. if test -n "$NM"; then
  3591. # Let the user override the test.
  3592. lt_cv_path_NM=$NM
  3593. else
  3594. lt_nm_to_check=${ac_tool_prefix}nm
  3595. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3596. lt_nm_to_check="$lt_nm_to_check nm"
  3597. fi
  3598. for lt_tmp_nm in $lt_nm_to_check; do
  3599. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  3600. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3601. IFS=$lt_save_ifs
  3602. test -z "$ac_dir" && ac_dir=.
  3603. tmp_nm=$ac_dir/$lt_tmp_nm
  3604. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  3605. # Check to see if the nm accepts a BSD-compat flag.
  3606. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  3607. # nm: unknown option "B" ignored
  3608. # Tru64's nm complains that /dev/null is an invalid object file
  3609. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  3610. case $build_os in
  3611. mingw*) lt_bad_file=conftest.nm/nofile ;;
  3612. *) lt_bad_file=/dev/null ;;
  3613. esac
  3614. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  3615. *$lt_bad_file* | *'Invalid file or object type'*)
  3616. lt_cv_path_NM="$tmp_nm -B"
  3617. break 2
  3618. ;;
  3619. *)
  3620. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3621. */dev/null*)
  3622. lt_cv_path_NM="$tmp_nm -p"
  3623. break 2
  3624. ;;
  3625. *)
  3626. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3627. continue # so that we can try to find one that supports BSD flags
  3628. ;;
  3629. esac
  3630. ;;
  3631. esac
  3632. fi
  3633. done
  3634. IFS=$lt_save_ifs
  3635. done
  3636. : ${lt_cv_path_NM=no}
  3637. fi
  3638. fi
  3639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3640. $as_echo "$lt_cv_path_NM" >&6; }
  3641. if test no != "$lt_cv_path_NM"; then
  3642. NM=$lt_cv_path_NM
  3643. else
  3644. # Didn't find any BSD compatible name lister, look for dumpbin.
  3645. if test -n "$DUMPBIN"; then :
  3646. # Let the user override the test.
  3647. else
  3648. if test -n "$ac_tool_prefix"; then
  3649. for ac_prog in dumpbin "link -dump"
  3650. do
  3651. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3652. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3654. $as_echo_n "checking for $ac_word... " >&6; }
  3655. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3656. $as_echo_n "(cached) " >&6
  3657. else
  3658. if test -n "$DUMPBIN"; then
  3659. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3660. else
  3661. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3662. for as_dir in $PATH
  3663. do
  3664. IFS=$as_save_IFS
  3665. test -z "$as_dir" && as_dir=.
  3666. for ac_exec_ext in '' $ac_executable_extensions; do
  3667. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3668. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3669. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3670. break 2
  3671. fi
  3672. done
  3673. done
  3674. IFS=$as_save_IFS
  3675. fi
  3676. fi
  3677. DUMPBIN=$ac_cv_prog_DUMPBIN
  3678. if test -n "$DUMPBIN"; then
  3679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3680. $as_echo "$DUMPBIN" >&6; }
  3681. else
  3682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3683. $as_echo "no" >&6; }
  3684. fi
  3685. test -n "$DUMPBIN" && break
  3686. done
  3687. fi
  3688. if test -z "$DUMPBIN"; then
  3689. ac_ct_DUMPBIN=$DUMPBIN
  3690. for ac_prog in dumpbin "link -dump"
  3691. do
  3692. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3693. set dummy $ac_prog; ac_word=$2
  3694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3695. $as_echo_n "checking for $ac_word... " >&6; }
  3696. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3697. $as_echo_n "(cached) " >&6
  3698. else
  3699. if test -n "$ac_ct_DUMPBIN"; then
  3700. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3701. else
  3702. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3703. for as_dir in $PATH
  3704. do
  3705. IFS=$as_save_IFS
  3706. test -z "$as_dir" && as_dir=.
  3707. for ac_exec_ext in '' $ac_executable_extensions; do
  3708. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3709. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3710. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3711. break 2
  3712. fi
  3713. done
  3714. done
  3715. IFS=$as_save_IFS
  3716. fi
  3717. fi
  3718. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3719. if test -n "$ac_ct_DUMPBIN"; then
  3720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3721. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3722. else
  3723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3724. $as_echo "no" >&6; }
  3725. fi
  3726. test -n "$ac_ct_DUMPBIN" && break
  3727. done
  3728. if test "x$ac_ct_DUMPBIN" = x; then
  3729. DUMPBIN=":"
  3730. else
  3731. case $cross_compiling:$ac_tool_warned in
  3732. yes:)
  3733. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3734. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3735. ac_tool_warned=yes ;;
  3736. esac
  3737. DUMPBIN=$ac_ct_DUMPBIN
  3738. fi
  3739. fi
  3740. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  3741. *COFF*)
  3742. DUMPBIN="$DUMPBIN -symbols -headers"
  3743. ;;
  3744. *)
  3745. DUMPBIN=:
  3746. ;;
  3747. esac
  3748. fi
  3749. if test : != "$DUMPBIN"; then
  3750. NM=$DUMPBIN
  3751. fi
  3752. fi
  3753. test -z "$NM" && NM=nm
  3754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3755. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3756. if ${lt_cv_nm_interface+:} false; then :
  3757. $as_echo_n "(cached) " >&6
  3758. else
  3759. lt_cv_nm_interface="BSD nm"
  3760. echo "int some_variable = 0;" > conftest.$ac_ext
  3761. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3762. (eval "$ac_compile" 2>conftest.err)
  3763. cat conftest.err >&5
  3764. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3765. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3766. cat conftest.err >&5
  3767. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  3768. cat conftest.out >&5
  3769. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3770. lt_cv_nm_interface="MS dumpbin"
  3771. fi
  3772. rm -f conftest*
  3773. fi
  3774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  3775. $as_echo "$lt_cv_nm_interface" >&6; }
  3776. # find the maximum length of command line arguments
  3777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  3778. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  3779. if ${lt_cv_sys_max_cmd_len+:} false; then :
  3780. $as_echo_n "(cached) " >&6
  3781. else
  3782. i=0
  3783. teststring=ABCD
  3784. case $build_os in
  3785. msdosdjgpp*)
  3786. # On DJGPP, this test can blow up pretty badly due to problems in libc
  3787. # (any single argument exceeding 2000 bytes causes a buffer overrun
  3788. # during glob expansion). Even if it were fixed, the result of this
  3789. # check would be larger than it should be.
  3790. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  3791. ;;
  3792. gnu*)
  3793. # Under GNU Hurd, this test is not required because there is
  3794. # no limit to the length of command line arguments.
  3795. # Libtool will interpret -1 as no limit whatsoever
  3796. lt_cv_sys_max_cmd_len=-1;
  3797. ;;
  3798. cygwin* | mingw* | cegcc*)
  3799. # On Win9x/ME, this test blows up -- it succeeds, but takes
  3800. # about 5 minutes as the teststring grows exponentially.
  3801. # Worse, since 9x/ME are not pre-emptively multitasking,
  3802. # you end up with a "frozen" computer, even though with patience
  3803. # the test eventually succeeds (with a max line length of 256k).
  3804. # Instead, let's just punt: use the minimum linelength reported by
  3805. # all of the supported platforms: 8192 (on NT/2K/XP).
  3806. lt_cv_sys_max_cmd_len=8192;
  3807. ;;
  3808. mint*)
  3809. # On MiNT this can take a long time and run out of memory.
  3810. lt_cv_sys_max_cmd_len=8192;
  3811. ;;
  3812. amigaos*)
  3813. # On AmigaOS with pdksh, this test takes hours, literally.
  3814. # So we just punt and use a minimum line length of 8192.
  3815. lt_cv_sys_max_cmd_len=8192;
  3816. ;;
  3817. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  3818. # This has been around since 386BSD, at least. Likely further.
  3819. if test -x /sbin/sysctl; then
  3820. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  3821. elif test -x /usr/sbin/sysctl; then
  3822. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  3823. else
  3824. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  3825. fi
  3826. # And add a safety zone
  3827. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3828. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3829. ;;
  3830. interix*)
  3831. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  3832. lt_cv_sys_max_cmd_len=196608
  3833. ;;
  3834. os2*)
  3835. # The test takes a long time on OS/2.
  3836. lt_cv_sys_max_cmd_len=8192
  3837. ;;
  3838. osf*)
  3839. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  3840. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  3841. # nice to cause kernel panics so lets avoid the loop below.
  3842. # First set a reasonable default.
  3843. lt_cv_sys_max_cmd_len=16384
  3844. #
  3845. if test -x /sbin/sysconfig; then
  3846. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  3847. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  3848. esac
  3849. fi
  3850. ;;
  3851. sco3.2v5*)
  3852. lt_cv_sys_max_cmd_len=102400
  3853. ;;
  3854. sysv5* | sco5v6* | sysv4.2uw2*)
  3855. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  3856. if test -n "$kargmax"; then
  3857. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  3858. else
  3859. lt_cv_sys_max_cmd_len=32768
  3860. fi
  3861. ;;
  3862. *)
  3863. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  3864. if test -n "$lt_cv_sys_max_cmd_len" && \
  3865. test undefined != "$lt_cv_sys_max_cmd_len"; then
  3866. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3867. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3868. else
  3869. # Make teststring a little bigger before we do anything with it.
  3870. # a 1K string should be a reasonable start.
  3871. for i in 1 2 3 4 5 6 7 8; do
  3872. teststring=$teststring$teststring
  3873. done
  3874. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  3875. # If test is not a shell built-in, we'll probably end up computing a
  3876. # maximum length that is only half of the actual maximum length, but
  3877. # we can't tell.
  3878. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  3879. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  3880. test 17 != "$i" # 1/2 MB should be enough
  3881. do
  3882. i=`expr $i + 1`
  3883. teststring=$teststring$teststring
  3884. done
  3885. # Only check the string length outside the loop.
  3886. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  3887. teststring=
  3888. # Add a significant safety factor because C++ compilers can tack on
  3889. # massive amounts of additional arguments before passing them to the
  3890. # linker. It appears as though 1/2 is a usable value.
  3891. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  3892. fi
  3893. ;;
  3894. esac
  3895. fi
  3896. if test -n "$lt_cv_sys_max_cmd_len"; then
  3897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  3898. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  3899. else
  3900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  3901. $as_echo "none" >&6; }
  3902. fi
  3903. max_cmd_len=$lt_cv_sys_max_cmd_len
  3904. : ${CP="cp -f"}
  3905. : ${MV="mv -f"}
  3906. : ${RM="rm -f"}
  3907. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  3908. lt_unset=unset
  3909. else
  3910. lt_unset=false
  3911. fi
  3912. # test EBCDIC or ASCII
  3913. case `echo X|tr X '\101'` in
  3914. A) # ASCII based system
  3915. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  3916. lt_SP2NL='tr \040 \012'
  3917. lt_NL2SP='tr \015\012 \040\040'
  3918. ;;
  3919. *) # EBCDIC based system
  3920. lt_SP2NL='tr \100 \n'
  3921. lt_NL2SP='tr \r\n \100\100'
  3922. ;;
  3923. esac
  3924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  3925. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  3926. if ${lt_cv_to_host_file_cmd+:} false; then :
  3927. $as_echo_n "(cached) " >&6
  3928. else
  3929. case $host in
  3930. *-*-mingw* )
  3931. case $build in
  3932. *-*-mingw* ) # actually msys
  3933. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  3934. ;;
  3935. *-*-cygwin* )
  3936. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  3937. ;;
  3938. * ) # otherwise, assume *nix
  3939. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  3940. ;;
  3941. esac
  3942. ;;
  3943. *-*-cygwin* )
  3944. case $build in
  3945. *-*-mingw* ) # actually msys
  3946. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  3947. ;;
  3948. *-*-cygwin* )
  3949. lt_cv_to_host_file_cmd=func_convert_file_noop
  3950. ;;
  3951. * ) # otherwise, assume *nix
  3952. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  3953. ;;
  3954. esac
  3955. ;;
  3956. * ) # unhandled hosts (and "normal" native builds)
  3957. lt_cv_to_host_file_cmd=func_convert_file_noop
  3958. ;;
  3959. esac
  3960. fi
  3961. to_host_file_cmd=$lt_cv_to_host_file_cmd
  3962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  3963. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  3964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  3965. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  3966. if ${lt_cv_to_tool_file_cmd+:} false; then :
  3967. $as_echo_n "(cached) " >&6
  3968. else
  3969. #assume ordinary cross tools, or native build.
  3970. lt_cv_to_tool_file_cmd=func_convert_file_noop
  3971. case $host in
  3972. *-*-mingw* )
  3973. case $build in
  3974. *-*-mingw* ) # actually msys
  3975. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  3976. ;;
  3977. esac
  3978. ;;
  3979. esac
  3980. fi
  3981. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  3982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  3983. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  3984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  3985. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  3986. if ${lt_cv_ld_reload_flag+:} false; then :
  3987. $as_echo_n "(cached) " >&6
  3988. else
  3989. lt_cv_ld_reload_flag='-r'
  3990. fi
  3991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  3992. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  3993. reload_flag=$lt_cv_ld_reload_flag
  3994. case $reload_flag in
  3995. "" | " "*) ;;
  3996. *) reload_flag=" $reload_flag" ;;
  3997. esac
  3998. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3999. case $host_os in
  4000. cygwin* | mingw* | pw32* | cegcc*)
  4001. if test yes != "$GCC"; then
  4002. reload_cmds=false
  4003. fi
  4004. ;;
  4005. darwin*)
  4006. if test yes = "$GCC"; then
  4007. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  4008. else
  4009. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4010. fi
  4011. ;;
  4012. esac
  4013. if test -n "$ac_tool_prefix"; then
  4014. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4015. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4017. $as_echo_n "checking for $ac_word... " >&6; }
  4018. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4019. $as_echo_n "(cached) " >&6
  4020. else
  4021. if test -n "$OBJDUMP"; then
  4022. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4023. else
  4024. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4025. for as_dir in $PATH
  4026. do
  4027. IFS=$as_save_IFS
  4028. test -z "$as_dir" && as_dir=.
  4029. for ac_exec_ext in '' $ac_executable_extensions; do
  4030. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4031. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4032. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4033. break 2
  4034. fi
  4035. done
  4036. done
  4037. IFS=$as_save_IFS
  4038. fi
  4039. fi
  4040. OBJDUMP=$ac_cv_prog_OBJDUMP
  4041. if test -n "$OBJDUMP"; then
  4042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4043. $as_echo "$OBJDUMP" >&6; }
  4044. else
  4045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4046. $as_echo "no" >&6; }
  4047. fi
  4048. fi
  4049. if test -z "$ac_cv_prog_OBJDUMP"; then
  4050. ac_ct_OBJDUMP=$OBJDUMP
  4051. # Extract the first word of "objdump", so it can be a program name with args.
  4052. set dummy objdump; ac_word=$2
  4053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4054. $as_echo_n "checking for $ac_word... " >&6; }
  4055. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4056. $as_echo_n "(cached) " >&6
  4057. else
  4058. if test -n "$ac_ct_OBJDUMP"; then
  4059. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4060. else
  4061. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4062. for as_dir in $PATH
  4063. do
  4064. IFS=$as_save_IFS
  4065. test -z "$as_dir" && as_dir=.
  4066. for ac_exec_ext in '' $ac_executable_extensions; do
  4067. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4068. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4069. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4070. break 2
  4071. fi
  4072. done
  4073. done
  4074. IFS=$as_save_IFS
  4075. fi
  4076. fi
  4077. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4078. if test -n "$ac_ct_OBJDUMP"; then
  4079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4080. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4081. else
  4082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4083. $as_echo "no" >&6; }
  4084. fi
  4085. if test "x$ac_ct_OBJDUMP" = x; then
  4086. OBJDUMP="false"
  4087. else
  4088. case $cross_compiling:$ac_tool_warned in
  4089. yes:)
  4090. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4091. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4092. ac_tool_warned=yes ;;
  4093. esac
  4094. OBJDUMP=$ac_ct_OBJDUMP
  4095. fi
  4096. else
  4097. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4098. fi
  4099. test -z "$OBJDUMP" && OBJDUMP=objdump
  4100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4101. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4102. if ${lt_cv_deplibs_check_method+:} false; then :
  4103. $as_echo_n "(cached) " >&6
  4104. else
  4105. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4106. lt_cv_file_magic_test_file=
  4107. lt_cv_deplibs_check_method='unknown'
  4108. # Need to set the preceding variable on all platforms that support
  4109. # interlibrary dependencies.
  4110. # 'none' -- dependencies not supported.
  4111. # 'unknown' -- same as none, but documents that we really don't know.
  4112. # 'pass_all' -- all dependencies passed with no checks.
  4113. # 'test_compile' -- check by making test program.
  4114. # 'file_magic [[regex]]' -- check by looking for files in library path
  4115. # that responds to the $file_magic_cmd with a given extended regex.
  4116. # If you have 'file' or equivalent on your system and you're not sure
  4117. # whether 'pass_all' will *always* work, you probably want this one.
  4118. case $host_os in
  4119. aix[4-9]*)
  4120. lt_cv_deplibs_check_method=pass_all
  4121. ;;
  4122. beos*)
  4123. lt_cv_deplibs_check_method=pass_all
  4124. ;;
  4125. bsdi[45]*)
  4126. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4127. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4128. lt_cv_file_magic_test_file=/shlib/libc.so
  4129. ;;
  4130. cygwin*)
  4131. # func_win32_libid is a shell function defined in ltmain.sh
  4132. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4133. lt_cv_file_magic_cmd='func_win32_libid'
  4134. ;;
  4135. mingw* | pw32*)
  4136. # Base MSYS/MinGW do not provide the 'file' command needed by
  4137. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4138. # unless we find 'file', for example because we are cross-compiling.
  4139. if ( file / ) >/dev/null 2>&1; then
  4140. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4141. lt_cv_file_magic_cmd='func_win32_libid'
  4142. else
  4143. # Keep this pattern in sync with the one in func_win32_libid.
  4144. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4145. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4146. fi
  4147. ;;
  4148. cegcc*)
  4149. # use the weaker test based on 'objdump'. See mingw*.
  4150. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4151. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4152. ;;
  4153. darwin* | rhapsody*)
  4154. lt_cv_deplibs_check_method=pass_all
  4155. ;;
  4156. freebsd* | dragonfly*)
  4157. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4158. case $host_cpu in
  4159. i*86 )
  4160. # Not sure whether the presence of OpenBSD here was a mistake.
  4161. # Let's accept both of them until this is cleared up.
  4162. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4163. lt_cv_file_magic_cmd=/usr/bin/file
  4164. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4165. ;;
  4166. esac
  4167. else
  4168. lt_cv_deplibs_check_method=pass_all
  4169. fi
  4170. ;;
  4171. haiku*)
  4172. lt_cv_deplibs_check_method=pass_all
  4173. ;;
  4174. hpux10.20* | hpux11*)
  4175. lt_cv_file_magic_cmd=/usr/bin/file
  4176. case $host_cpu in
  4177. ia64*)
  4178. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4179. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4180. ;;
  4181. hppa*64*)
  4182. 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]'
  4183. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4184. ;;
  4185. *)
  4186. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4187. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4188. ;;
  4189. esac
  4190. ;;
  4191. interix[3-9]*)
  4192. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4193. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4194. ;;
  4195. irix5* | irix6* | nonstopux*)
  4196. case $LD in
  4197. *-32|*"-32 ") libmagic=32-bit;;
  4198. *-n32|*"-n32 ") libmagic=N32;;
  4199. *-64|*"-64 ") libmagic=64-bit;;
  4200. *) libmagic=never-match;;
  4201. esac
  4202. lt_cv_deplibs_check_method=pass_all
  4203. ;;
  4204. # This must be glibc/ELF.
  4205. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  4206. lt_cv_deplibs_check_method=pass_all
  4207. ;;
  4208. netbsd* | netbsdelf*-gnu)
  4209. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4210. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4211. else
  4212. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4213. fi
  4214. ;;
  4215. newos6*)
  4216. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4217. lt_cv_file_magic_cmd=/usr/bin/file
  4218. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4219. ;;
  4220. *nto* | *qnx*)
  4221. lt_cv_deplibs_check_method=pass_all
  4222. ;;
  4223. openbsd* | bitrig*)
  4224. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  4225. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4226. else
  4227. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4228. fi
  4229. ;;
  4230. osf3* | osf4* | osf5*)
  4231. lt_cv_deplibs_check_method=pass_all
  4232. ;;
  4233. rdos*)
  4234. lt_cv_deplibs_check_method=pass_all
  4235. ;;
  4236. solaris*)
  4237. lt_cv_deplibs_check_method=pass_all
  4238. ;;
  4239. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4240. lt_cv_deplibs_check_method=pass_all
  4241. ;;
  4242. sysv4 | sysv4.3*)
  4243. case $host_vendor in
  4244. motorola)
  4245. 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]'
  4246. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4247. ;;
  4248. ncr)
  4249. lt_cv_deplibs_check_method=pass_all
  4250. ;;
  4251. sequent)
  4252. lt_cv_file_magic_cmd='/bin/file'
  4253. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4254. ;;
  4255. sni)
  4256. lt_cv_file_magic_cmd='/bin/file'
  4257. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4258. lt_cv_file_magic_test_file=/lib/libc.so
  4259. ;;
  4260. siemens)
  4261. lt_cv_deplibs_check_method=pass_all
  4262. ;;
  4263. pc)
  4264. lt_cv_deplibs_check_method=pass_all
  4265. ;;
  4266. esac
  4267. ;;
  4268. tpf*)
  4269. lt_cv_deplibs_check_method=pass_all
  4270. ;;
  4271. os2*)
  4272. lt_cv_deplibs_check_method=pass_all
  4273. ;;
  4274. esac
  4275. fi
  4276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4277. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4278. file_magic_glob=
  4279. want_nocaseglob=no
  4280. if test "$build" = "$host"; then
  4281. case $host_os in
  4282. mingw* | pw32*)
  4283. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4284. want_nocaseglob=yes
  4285. else
  4286. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4287. fi
  4288. ;;
  4289. esac
  4290. fi
  4291. file_magic_cmd=$lt_cv_file_magic_cmd
  4292. deplibs_check_method=$lt_cv_deplibs_check_method
  4293. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4294. if test -n "$ac_tool_prefix"; then
  4295. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4296. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4298. $as_echo_n "checking for $ac_word... " >&6; }
  4299. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4300. $as_echo_n "(cached) " >&6
  4301. else
  4302. if test -n "$DLLTOOL"; then
  4303. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4304. else
  4305. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4306. for as_dir in $PATH
  4307. do
  4308. IFS=$as_save_IFS
  4309. test -z "$as_dir" && as_dir=.
  4310. for ac_exec_ext in '' $ac_executable_extensions; do
  4311. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4312. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4313. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4314. break 2
  4315. fi
  4316. done
  4317. done
  4318. IFS=$as_save_IFS
  4319. fi
  4320. fi
  4321. DLLTOOL=$ac_cv_prog_DLLTOOL
  4322. if test -n "$DLLTOOL"; then
  4323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4324. $as_echo "$DLLTOOL" >&6; }
  4325. else
  4326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4327. $as_echo "no" >&6; }
  4328. fi
  4329. fi
  4330. if test -z "$ac_cv_prog_DLLTOOL"; then
  4331. ac_ct_DLLTOOL=$DLLTOOL
  4332. # Extract the first word of "dlltool", so it can be a program name with args.
  4333. set dummy dlltool; ac_word=$2
  4334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4335. $as_echo_n "checking for $ac_word... " >&6; }
  4336. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4337. $as_echo_n "(cached) " >&6
  4338. else
  4339. if test -n "$ac_ct_DLLTOOL"; then
  4340. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4341. else
  4342. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4343. for as_dir in $PATH
  4344. do
  4345. IFS=$as_save_IFS
  4346. test -z "$as_dir" && as_dir=.
  4347. for ac_exec_ext in '' $ac_executable_extensions; do
  4348. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4349. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4350. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4351. break 2
  4352. fi
  4353. done
  4354. done
  4355. IFS=$as_save_IFS
  4356. fi
  4357. fi
  4358. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4359. if test -n "$ac_ct_DLLTOOL"; then
  4360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4361. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4362. else
  4363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4364. $as_echo "no" >&6; }
  4365. fi
  4366. if test "x$ac_ct_DLLTOOL" = x; then
  4367. DLLTOOL="false"
  4368. else
  4369. case $cross_compiling:$ac_tool_warned in
  4370. yes:)
  4371. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4372. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4373. ac_tool_warned=yes ;;
  4374. esac
  4375. DLLTOOL=$ac_ct_DLLTOOL
  4376. fi
  4377. else
  4378. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4379. fi
  4380. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4382. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4383. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4384. $as_echo_n "(cached) " >&6
  4385. else
  4386. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4387. case $host_os in
  4388. cygwin* | mingw* | pw32* | cegcc*)
  4389. # two different shell functions defined in ltmain.sh;
  4390. # decide which one to use based on capabilities of $DLLTOOL
  4391. case `$DLLTOOL --help 2>&1` in
  4392. *--identify-strict*)
  4393. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4394. ;;
  4395. *)
  4396. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4397. ;;
  4398. esac
  4399. ;;
  4400. *)
  4401. # fallback: assume linklib IS sharedlib
  4402. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  4403. ;;
  4404. esac
  4405. fi
  4406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4407. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4408. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4409. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4410. if test -n "$ac_tool_prefix"; then
  4411. for ac_prog in ar
  4412. do
  4413. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4414. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4416. $as_echo_n "checking for $ac_word... " >&6; }
  4417. if ${ac_cv_prog_AR+:} false; then :
  4418. $as_echo_n "(cached) " >&6
  4419. else
  4420. if test -n "$AR"; then
  4421. ac_cv_prog_AR="$AR" # Let the user override the test.
  4422. else
  4423. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4424. for as_dir in $PATH
  4425. do
  4426. IFS=$as_save_IFS
  4427. test -z "$as_dir" && as_dir=.
  4428. for ac_exec_ext in '' $ac_executable_extensions; do
  4429. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4430. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4431. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4432. break 2
  4433. fi
  4434. done
  4435. done
  4436. IFS=$as_save_IFS
  4437. fi
  4438. fi
  4439. AR=$ac_cv_prog_AR
  4440. if test -n "$AR"; then
  4441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4442. $as_echo "$AR" >&6; }
  4443. else
  4444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4445. $as_echo "no" >&6; }
  4446. fi
  4447. test -n "$AR" && break
  4448. done
  4449. fi
  4450. if test -z "$AR"; then
  4451. ac_ct_AR=$AR
  4452. for ac_prog in ar
  4453. do
  4454. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4455. set dummy $ac_prog; ac_word=$2
  4456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4457. $as_echo_n "checking for $ac_word... " >&6; }
  4458. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4459. $as_echo_n "(cached) " >&6
  4460. else
  4461. if test -n "$ac_ct_AR"; then
  4462. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4463. else
  4464. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4465. for as_dir in $PATH
  4466. do
  4467. IFS=$as_save_IFS
  4468. test -z "$as_dir" && as_dir=.
  4469. for ac_exec_ext in '' $ac_executable_extensions; do
  4470. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4471. ac_cv_prog_ac_ct_AR="$ac_prog"
  4472. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4473. break 2
  4474. fi
  4475. done
  4476. done
  4477. IFS=$as_save_IFS
  4478. fi
  4479. fi
  4480. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4481. if test -n "$ac_ct_AR"; then
  4482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4483. $as_echo "$ac_ct_AR" >&6; }
  4484. else
  4485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4486. $as_echo "no" >&6; }
  4487. fi
  4488. test -n "$ac_ct_AR" && break
  4489. done
  4490. if test "x$ac_ct_AR" = x; then
  4491. AR="false"
  4492. else
  4493. case $cross_compiling:$ac_tool_warned in
  4494. yes:)
  4495. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4496. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4497. ac_tool_warned=yes ;;
  4498. esac
  4499. AR=$ac_ct_AR
  4500. fi
  4501. fi
  4502. : ${AR=ar}
  4503. : ${AR_FLAGS=cru}
  4504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4505. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4506. if ${lt_cv_ar_at_file+:} false; then :
  4507. $as_echo_n "(cached) " >&6
  4508. else
  4509. lt_cv_ar_at_file=no
  4510. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4511. /* end confdefs.h. */
  4512. int
  4513. main ()
  4514. {
  4515. ;
  4516. return 0;
  4517. }
  4518. _ACEOF
  4519. if ac_fn_c_try_compile "$LINENO"; then :
  4520. echo conftest.$ac_objext > conftest.lst
  4521. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4522. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4523. (eval $lt_ar_try) 2>&5
  4524. ac_status=$?
  4525. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4526. test $ac_status = 0; }
  4527. if test 0 -eq "$ac_status"; then
  4528. # Ensure the archiver fails upon bogus file names.
  4529. rm -f conftest.$ac_objext libconftest.a
  4530. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4531. (eval $lt_ar_try) 2>&5
  4532. ac_status=$?
  4533. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4534. test $ac_status = 0; }
  4535. if test 0 -ne "$ac_status"; then
  4536. lt_cv_ar_at_file=@
  4537. fi
  4538. fi
  4539. rm -f conftest.* libconftest.a
  4540. fi
  4541. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4542. fi
  4543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4544. $as_echo "$lt_cv_ar_at_file" >&6; }
  4545. if test no = "$lt_cv_ar_at_file"; then
  4546. archiver_list_spec=
  4547. else
  4548. archiver_list_spec=$lt_cv_ar_at_file
  4549. fi
  4550. if test -n "$ac_tool_prefix"; then
  4551. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4552. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4554. $as_echo_n "checking for $ac_word... " >&6; }
  4555. if ${ac_cv_prog_STRIP+:} false; then :
  4556. $as_echo_n "(cached) " >&6
  4557. else
  4558. if test -n "$STRIP"; then
  4559. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4560. else
  4561. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4562. for as_dir in $PATH
  4563. do
  4564. IFS=$as_save_IFS
  4565. test -z "$as_dir" && as_dir=.
  4566. for ac_exec_ext in '' $ac_executable_extensions; do
  4567. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4568. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4569. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4570. break 2
  4571. fi
  4572. done
  4573. done
  4574. IFS=$as_save_IFS
  4575. fi
  4576. fi
  4577. STRIP=$ac_cv_prog_STRIP
  4578. if test -n "$STRIP"; then
  4579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4580. $as_echo "$STRIP" >&6; }
  4581. else
  4582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4583. $as_echo "no" >&6; }
  4584. fi
  4585. fi
  4586. if test -z "$ac_cv_prog_STRIP"; then
  4587. ac_ct_STRIP=$STRIP
  4588. # Extract the first word of "strip", so it can be a program name with args.
  4589. set dummy strip; ac_word=$2
  4590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4591. $as_echo_n "checking for $ac_word... " >&6; }
  4592. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4593. $as_echo_n "(cached) " >&6
  4594. else
  4595. if test -n "$ac_ct_STRIP"; then
  4596. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4597. else
  4598. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4599. for as_dir in $PATH
  4600. do
  4601. IFS=$as_save_IFS
  4602. test -z "$as_dir" && as_dir=.
  4603. for ac_exec_ext in '' $ac_executable_extensions; do
  4604. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4605. ac_cv_prog_ac_ct_STRIP="strip"
  4606. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4607. break 2
  4608. fi
  4609. done
  4610. done
  4611. IFS=$as_save_IFS
  4612. fi
  4613. fi
  4614. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4615. if test -n "$ac_ct_STRIP"; then
  4616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4617. $as_echo "$ac_ct_STRIP" >&6; }
  4618. else
  4619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4620. $as_echo "no" >&6; }
  4621. fi
  4622. if test "x$ac_ct_STRIP" = x; then
  4623. STRIP=":"
  4624. else
  4625. case $cross_compiling:$ac_tool_warned in
  4626. yes:)
  4627. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4628. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4629. ac_tool_warned=yes ;;
  4630. esac
  4631. STRIP=$ac_ct_STRIP
  4632. fi
  4633. else
  4634. STRIP="$ac_cv_prog_STRIP"
  4635. fi
  4636. test -z "$STRIP" && STRIP=:
  4637. if test -n "$ac_tool_prefix"; then
  4638. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4639. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4641. $as_echo_n "checking for $ac_word... " >&6; }
  4642. if ${ac_cv_prog_RANLIB+:} false; then :
  4643. $as_echo_n "(cached) " >&6
  4644. else
  4645. if test -n "$RANLIB"; then
  4646. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4647. else
  4648. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4649. for as_dir in $PATH
  4650. do
  4651. IFS=$as_save_IFS
  4652. test -z "$as_dir" && as_dir=.
  4653. for ac_exec_ext in '' $ac_executable_extensions; do
  4654. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4655. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4656. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4657. break 2
  4658. fi
  4659. done
  4660. done
  4661. IFS=$as_save_IFS
  4662. fi
  4663. fi
  4664. RANLIB=$ac_cv_prog_RANLIB
  4665. if test -n "$RANLIB"; then
  4666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4667. $as_echo "$RANLIB" >&6; }
  4668. else
  4669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4670. $as_echo "no" >&6; }
  4671. fi
  4672. fi
  4673. if test -z "$ac_cv_prog_RANLIB"; then
  4674. ac_ct_RANLIB=$RANLIB
  4675. # Extract the first word of "ranlib", so it can be a program name with args.
  4676. set dummy ranlib; ac_word=$2
  4677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4678. $as_echo_n "checking for $ac_word... " >&6; }
  4679. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4680. $as_echo_n "(cached) " >&6
  4681. else
  4682. if test -n "$ac_ct_RANLIB"; then
  4683. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4684. else
  4685. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4686. for as_dir in $PATH
  4687. do
  4688. IFS=$as_save_IFS
  4689. test -z "$as_dir" && as_dir=.
  4690. for ac_exec_ext in '' $ac_executable_extensions; do
  4691. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4692. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4693. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4694. break 2
  4695. fi
  4696. done
  4697. done
  4698. IFS=$as_save_IFS
  4699. fi
  4700. fi
  4701. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4702. if test -n "$ac_ct_RANLIB"; then
  4703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4704. $as_echo "$ac_ct_RANLIB" >&6; }
  4705. else
  4706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4707. $as_echo "no" >&6; }
  4708. fi
  4709. if test "x$ac_ct_RANLIB" = x; then
  4710. RANLIB=":"
  4711. else
  4712. case $cross_compiling:$ac_tool_warned in
  4713. yes:)
  4714. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4715. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4716. ac_tool_warned=yes ;;
  4717. esac
  4718. RANLIB=$ac_ct_RANLIB
  4719. fi
  4720. else
  4721. RANLIB="$ac_cv_prog_RANLIB"
  4722. fi
  4723. test -z "$RANLIB" && RANLIB=:
  4724. # Determine commands to create old-style static archives.
  4725. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4726. old_postinstall_cmds='chmod 644 $oldlib'
  4727. old_postuninstall_cmds=
  4728. if test -n "$RANLIB"; then
  4729. case $host_os in
  4730. bitrig* | openbsd*)
  4731. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  4732. ;;
  4733. *)
  4734. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  4735. ;;
  4736. esac
  4737. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  4738. fi
  4739. case $host_os in
  4740. darwin*)
  4741. lock_old_archive_extraction=yes ;;
  4742. *)
  4743. lock_old_archive_extraction=no ;;
  4744. esac
  4745. for ac_prog in gawk mawk nawk awk
  4746. do
  4747. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4748. set dummy $ac_prog; ac_word=$2
  4749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4750. $as_echo_n "checking for $ac_word... " >&6; }
  4751. if ${ac_cv_prog_AWK+:} false; then :
  4752. $as_echo_n "(cached) " >&6
  4753. else
  4754. if test -n "$AWK"; then
  4755. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4756. else
  4757. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4758. for as_dir in $PATH
  4759. do
  4760. IFS=$as_save_IFS
  4761. test -z "$as_dir" && as_dir=.
  4762. for ac_exec_ext in '' $ac_executable_extensions; do
  4763. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4764. ac_cv_prog_AWK="$ac_prog"
  4765. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4766. break 2
  4767. fi
  4768. done
  4769. done
  4770. IFS=$as_save_IFS
  4771. fi
  4772. fi
  4773. AWK=$ac_cv_prog_AWK
  4774. if test -n "$AWK"; then
  4775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4776. $as_echo "$AWK" >&6; }
  4777. else
  4778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4779. $as_echo "no" >&6; }
  4780. fi
  4781. test -n "$AWK" && break
  4782. done
  4783. # If no C compiler was specified, use CC.
  4784. LTCC=${LTCC-"$CC"}
  4785. # If no C compiler flags were specified, use CFLAGS.
  4786. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4787. # Allow CC to be a program name with arguments.
  4788. compiler=$CC
  4789. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  4791. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  4792. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  4793. $as_echo_n "(cached) " >&6
  4794. else
  4795. # These are sane defaults that work on at least a few old systems.
  4796. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4797. # Character class describing NM global symbol codes.
  4798. symcode='[BCDEGRST]'
  4799. # Regexp to match symbols that can be accessed directly from C.
  4800. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4801. # Define system-specific variables.
  4802. case $host_os in
  4803. aix*)
  4804. symcode='[BCDT]'
  4805. ;;
  4806. cygwin* | mingw* | pw32* | cegcc*)
  4807. symcode='[ABCDGISTW]'
  4808. ;;
  4809. hpux*)
  4810. if test ia64 = "$host_cpu"; then
  4811. symcode='[ABCDEGRST]'
  4812. fi
  4813. ;;
  4814. irix* | nonstopux*)
  4815. symcode='[BCDEGRST]'
  4816. ;;
  4817. osf*)
  4818. symcode='[BCDEGQRST]'
  4819. ;;
  4820. solaris*)
  4821. symcode='[BDRT]'
  4822. ;;
  4823. sco3.2v5*)
  4824. symcode='[DT]'
  4825. ;;
  4826. sysv4.2uw2*)
  4827. symcode='[DT]'
  4828. ;;
  4829. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4830. symcode='[ABDT]'
  4831. ;;
  4832. sysv4)
  4833. symcode='[DFNSTU]'
  4834. ;;
  4835. esac
  4836. # If we're using GNU nm, then use its standard symbol codes.
  4837. case `$NM -V 2>&1` in
  4838. *GNU* | *'with BFD'*)
  4839. symcode='[ABCDGIRSTW]' ;;
  4840. esac
  4841. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  4842. # Gets list of data symbols to import.
  4843. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  4844. # Adjust the below global symbol transforms to fixup imported variables.
  4845. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  4846. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  4847. lt_c_name_lib_hook="\
  4848. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  4849. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  4850. else
  4851. # Disable hooks by default.
  4852. lt_cv_sys_global_symbol_to_import=
  4853. lt_cdecl_hook=
  4854. lt_c_name_hook=
  4855. lt_c_name_lib_hook=
  4856. fi
  4857. # Transform an extracted symbol line into a proper C declaration.
  4858. # Some systems (esp. on ia64) link data and code symbols differently,
  4859. # so use this general approach.
  4860. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  4861. $lt_cdecl_hook\
  4862. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  4863. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  4864. # Transform an extracted symbol line into symbol name and symbol address
  4865. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  4866. $lt_c_name_hook\
  4867. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  4868. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  4869. # Transform an extracted symbol line into symbol name with lib prefix and
  4870. # symbol address.
  4871. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  4872. $lt_c_name_lib_hook\
  4873. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  4874. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  4875. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  4876. # Handle CRLF in mingw tool chain
  4877. opt_cr=
  4878. case $build_os in
  4879. mingw*)
  4880. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4881. ;;
  4882. esac
  4883. # Try without a prefix underscore, then with it.
  4884. for ac_symprfx in "" "_"; do
  4885. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4886. symxfrm="\\1 $ac_symprfx\\2 \\2"
  4887. # Write the raw and C identifiers.
  4888. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  4889. # Fake it for dumpbin and say T for any non-static function,
  4890. # D for any global variable and I for any imported variable.
  4891. # Also find C++ and __fastcall symbols from MSVC++,
  4892. # which start with @ or ?.
  4893. lt_cv_sys_global_symbol_pipe="$AWK '"\
  4894. " {last_section=section; section=\$ 3};"\
  4895. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  4896. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  4897. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  4898. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  4899. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  4900. " \$ 0!~/External *\|/{next};"\
  4901. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  4902. " {if(hide[section]) next};"\
  4903. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  4904. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  4905. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  4906. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  4907. " ' prfx=^$ac_symprfx"
  4908. else
  4909. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  4910. fi
  4911. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  4912. # Check to see that the pipe works correctly.
  4913. pipe_works=no
  4914. rm -f conftest*
  4915. cat > conftest.$ac_ext <<_LT_EOF
  4916. #ifdef __cplusplus
  4917. extern "C" {
  4918. #endif
  4919. char nm_test_var;
  4920. void nm_test_func(void);
  4921. void nm_test_func(void){}
  4922. #ifdef __cplusplus
  4923. }
  4924. #endif
  4925. int main(){nm_test_var='a';nm_test_func();return(0);}
  4926. _LT_EOF
  4927. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  4928. (eval $ac_compile) 2>&5
  4929. ac_status=$?
  4930. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4931. test $ac_status = 0; }; then
  4932. # Now try to grab the symbols.
  4933. nlist=conftest.nm
  4934. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  4935. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  4936. ac_status=$?
  4937. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4938. test $ac_status = 0; } && test -s "$nlist"; then
  4939. # Try sorting and uniquifying the output.
  4940. if sort "$nlist" | uniq > "$nlist"T; then
  4941. mv -f "$nlist"T "$nlist"
  4942. else
  4943. rm -f "$nlist"T
  4944. fi
  4945. # Make sure that we snagged all the symbols we need.
  4946. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  4947. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  4948. cat <<_LT_EOF > conftest.$ac_ext
  4949. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  4950. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  4951. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  4952. relocations are performed -- see ld's documentation on pseudo-relocs. */
  4953. # define LT_DLSYM_CONST
  4954. #elif defined __osf__
  4955. /* This system does not cope well with relocations in const data. */
  4956. # define LT_DLSYM_CONST
  4957. #else
  4958. # define LT_DLSYM_CONST const
  4959. #endif
  4960. #ifdef __cplusplus
  4961. extern "C" {
  4962. #endif
  4963. _LT_EOF
  4964. # Now generate the symbol file.
  4965. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  4966. cat <<_LT_EOF >> conftest.$ac_ext
  4967. /* The mapping between symbol names and symbols. */
  4968. LT_DLSYM_CONST struct {
  4969. const char *name;
  4970. void *address;
  4971. }
  4972. lt__PROGRAM__LTX_preloaded_symbols[] =
  4973. {
  4974. { "@PROGRAM@", (void *) 0 },
  4975. _LT_EOF
  4976. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  4977. cat <<\_LT_EOF >> conftest.$ac_ext
  4978. {0, (void *) 0}
  4979. };
  4980. /* This works around a problem in FreeBSD linker */
  4981. #ifdef FREEBSD_WORKAROUND
  4982. static const void *lt_preloaded_setup() {
  4983. return lt__PROGRAM__LTX_preloaded_symbols;
  4984. }
  4985. #endif
  4986. #ifdef __cplusplus
  4987. }
  4988. #endif
  4989. _LT_EOF
  4990. # Now try linking the two files.
  4991. mv conftest.$ac_objext conftstm.$ac_objext
  4992. lt_globsym_save_LIBS=$LIBS
  4993. lt_globsym_save_CFLAGS=$CFLAGS
  4994. LIBS=conftstm.$ac_objext
  4995. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  4996. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  4997. (eval $ac_link) 2>&5
  4998. ac_status=$?
  4999. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5000. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  5001. pipe_works=yes
  5002. fi
  5003. LIBS=$lt_globsym_save_LIBS
  5004. CFLAGS=$lt_globsym_save_CFLAGS
  5005. else
  5006. echo "cannot find nm_test_func in $nlist" >&5
  5007. fi
  5008. else
  5009. echo "cannot find nm_test_var in $nlist" >&5
  5010. fi
  5011. else
  5012. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5013. fi
  5014. else
  5015. echo "$progname: failed program was:" >&5
  5016. cat conftest.$ac_ext >&5
  5017. fi
  5018. rm -rf conftest* conftst*
  5019. # Do not use the global_symbol_pipe unless it works.
  5020. if test yes = "$pipe_works"; then
  5021. break
  5022. else
  5023. lt_cv_sys_global_symbol_pipe=
  5024. fi
  5025. done
  5026. fi
  5027. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5028. lt_cv_sys_global_symbol_to_cdecl=
  5029. fi
  5030. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5032. $as_echo "failed" >&6; }
  5033. else
  5034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5035. $as_echo "ok" >&6; }
  5036. fi
  5037. # Response file support.
  5038. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5039. nm_file_list_spec='@'
  5040. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5041. nm_file_list_spec='@'
  5042. fi
  5043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5044. $as_echo_n "checking for sysroot... " >&6; }
  5045. # Check whether --with-sysroot was given.
  5046. if test "${with_sysroot+set}" = set; then :
  5047. withval=$with_sysroot;
  5048. else
  5049. with_sysroot=no
  5050. fi
  5051. lt_sysroot=
  5052. case $with_sysroot in #(
  5053. yes)
  5054. if test yes = "$GCC"; then
  5055. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5056. fi
  5057. ;; #(
  5058. /*)
  5059. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5060. ;; #(
  5061. no|'')
  5062. ;; #(
  5063. *)
  5064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  5065. $as_echo "$with_sysroot" >&6; }
  5066. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5067. ;;
  5068. esac
  5069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5070. $as_echo "${lt_sysroot:-no}" >&6; }
  5071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  5072. $as_echo_n "checking for a working dd... " >&6; }
  5073. if ${ac_cv_path_lt_DD+:} false; then :
  5074. $as_echo_n "(cached) " >&6
  5075. else
  5076. printf 0123456789abcdef0123456789abcdef >conftest.i
  5077. cat conftest.i conftest.i >conftest2.i
  5078. : ${lt_DD:=$DD}
  5079. if test -z "$lt_DD"; then
  5080. ac_path_lt_DD_found=false
  5081. # Loop through the user's path and test for each of PROGNAME-LIST
  5082. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5083. for as_dir in $PATH
  5084. do
  5085. IFS=$as_save_IFS
  5086. test -z "$as_dir" && as_dir=.
  5087. for ac_prog in dd; do
  5088. for ac_exec_ext in '' $ac_executable_extensions; do
  5089. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  5090. as_fn_executable_p "$ac_path_lt_DD" || continue
  5091. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  5092. cmp -s conftest.i conftest.out \
  5093. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  5094. fi
  5095. $ac_path_lt_DD_found && break 3
  5096. done
  5097. done
  5098. done
  5099. IFS=$as_save_IFS
  5100. if test -z "$ac_cv_path_lt_DD"; then
  5101. :
  5102. fi
  5103. else
  5104. ac_cv_path_lt_DD=$lt_DD
  5105. fi
  5106. rm -f conftest.i conftest2.i conftest.out
  5107. fi
  5108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  5109. $as_echo "$ac_cv_path_lt_DD" >&6; }
  5110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  5111. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  5112. if ${lt_cv_truncate_bin+:} false; then :
  5113. $as_echo_n "(cached) " >&6
  5114. else
  5115. printf 0123456789abcdef0123456789abcdef >conftest.i
  5116. cat conftest.i conftest.i >conftest2.i
  5117. lt_cv_truncate_bin=
  5118. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  5119. cmp -s conftest.i conftest.out \
  5120. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  5121. fi
  5122. rm -f conftest.i conftest2.i conftest.out
  5123. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  5124. fi
  5125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  5126. $as_echo "$lt_cv_truncate_bin" >&6; }
  5127. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  5128. func_cc_basename ()
  5129. {
  5130. for cc_temp in $*""; do
  5131. case $cc_temp in
  5132. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  5133. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  5134. \-*) ;;
  5135. *) break;;
  5136. esac
  5137. done
  5138. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  5139. }
  5140. # Check whether --enable-libtool-lock was given.
  5141. if test "${enable_libtool_lock+set}" = set; then :
  5142. enableval=$enable_libtool_lock;
  5143. fi
  5144. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  5145. # Some flags need to be propagated to the compiler or linker for good
  5146. # libtool support.
  5147. case $host in
  5148. ia64-*-hpux*)
  5149. # Find out what ABI is being produced by ac_compile, and set mode
  5150. # options accordingly.
  5151. echo 'int i;' > conftest.$ac_ext
  5152. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5153. (eval $ac_compile) 2>&5
  5154. ac_status=$?
  5155. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5156. test $ac_status = 0; }; then
  5157. case `/usr/bin/file conftest.$ac_objext` in
  5158. *ELF-32*)
  5159. HPUX_IA64_MODE=32
  5160. ;;
  5161. *ELF-64*)
  5162. HPUX_IA64_MODE=64
  5163. ;;
  5164. esac
  5165. fi
  5166. rm -rf conftest*
  5167. ;;
  5168. *-*-irix6*)
  5169. # Find out what ABI is being produced by ac_compile, and set linker
  5170. # options accordingly.
  5171. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5172. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5173. (eval $ac_compile) 2>&5
  5174. ac_status=$?
  5175. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5176. test $ac_status = 0; }; then
  5177. if test yes = "$lt_cv_prog_gnu_ld"; then
  5178. case `/usr/bin/file conftest.$ac_objext` in
  5179. *32-bit*)
  5180. LD="${LD-ld} -melf32bsmip"
  5181. ;;
  5182. *N32*)
  5183. LD="${LD-ld} -melf32bmipn32"
  5184. ;;
  5185. *64-bit*)
  5186. LD="${LD-ld} -melf64bmip"
  5187. ;;
  5188. esac
  5189. else
  5190. case `/usr/bin/file conftest.$ac_objext` in
  5191. *32-bit*)
  5192. LD="${LD-ld} -32"
  5193. ;;
  5194. *N32*)
  5195. LD="${LD-ld} -n32"
  5196. ;;
  5197. *64-bit*)
  5198. LD="${LD-ld} -64"
  5199. ;;
  5200. esac
  5201. fi
  5202. fi
  5203. rm -rf conftest*
  5204. ;;
  5205. mips64*-*linux*)
  5206. # Find out what ABI is being produced by ac_compile, and set linker
  5207. # options accordingly.
  5208. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5209. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5210. (eval $ac_compile) 2>&5
  5211. ac_status=$?
  5212. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5213. test $ac_status = 0; }; then
  5214. emul=elf
  5215. case `/usr/bin/file conftest.$ac_objext` in
  5216. *32-bit*)
  5217. emul="${emul}32"
  5218. ;;
  5219. *64-bit*)
  5220. emul="${emul}64"
  5221. ;;
  5222. esac
  5223. case `/usr/bin/file conftest.$ac_objext` in
  5224. *MSB*)
  5225. emul="${emul}btsmip"
  5226. ;;
  5227. *LSB*)
  5228. emul="${emul}ltsmip"
  5229. ;;
  5230. esac
  5231. case `/usr/bin/file conftest.$ac_objext` in
  5232. *N32*)
  5233. emul="${emul}n32"
  5234. ;;
  5235. esac
  5236. LD="${LD-ld} -m $emul"
  5237. fi
  5238. rm -rf conftest*
  5239. ;;
  5240. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5241. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5242. # Find out what ABI is being produced by ac_compile, and set linker
  5243. # options accordingly. Note that the listed cases only cover the
  5244. # situations where additional linker options are needed (such as when
  5245. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  5246. # vice versa); the common cases where no linker options are needed do
  5247. # not appear in the list.
  5248. echo 'int i;' > conftest.$ac_ext
  5249. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5250. (eval $ac_compile) 2>&5
  5251. ac_status=$?
  5252. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5253. test $ac_status = 0; }; then
  5254. case `/usr/bin/file conftest.o` in
  5255. *32-bit*)
  5256. case $host in
  5257. x86_64-*kfreebsd*-gnu)
  5258. LD="${LD-ld} -m elf_i386_fbsd"
  5259. ;;
  5260. x86_64-*linux*)
  5261. case `/usr/bin/file conftest.o` in
  5262. *x86-64*)
  5263. LD="${LD-ld} -m elf32_x86_64"
  5264. ;;
  5265. *)
  5266. LD="${LD-ld} -m elf_i386"
  5267. ;;
  5268. esac
  5269. ;;
  5270. powerpc64le-*linux*)
  5271. LD="${LD-ld} -m elf32lppclinux"
  5272. ;;
  5273. powerpc64-*linux*)
  5274. LD="${LD-ld} -m elf32ppclinux"
  5275. ;;
  5276. s390x-*linux*)
  5277. LD="${LD-ld} -m elf_s390"
  5278. ;;
  5279. sparc64-*linux*)
  5280. LD="${LD-ld} -m elf32_sparc"
  5281. ;;
  5282. esac
  5283. ;;
  5284. *64-bit*)
  5285. case $host in
  5286. x86_64-*kfreebsd*-gnu)
  5287. LD="${LD-ld} -m elf_x86_64_fbsd"
  5288. ;;
  5289. x86_64-*linux*)
  5290. LD="${LD-ld} -m elf_x86_64"
  5291. ;;
  5292. powerpcle-*linux*)
  5293. LD="${LD-ld} -m elf64lppc"
  5294. ;;
  5295. powerpc-*linux*)
  5296. LD="${LD-ld} -m elf64ppc"
  5297. ;;
  5298. s390*-*linux*|s390*-*tpf*)
  5299. LD="${LD-ld} -m elf64_s390"
  5300. ;;
  5301. sparc*-*linux*)
  5302. LD="${LD-ld} -m elf64_sparc"
  5303. ;;
  5304. esac
  5305. ;;
  5306. esac
  5307. fi
  5308. rm -rf conftest*
  5309. ;;
  5310. *-*-sco3.2v5*)
  5311. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5312. SAVE_CFLAGS=$CFLAGS
  5313. CFLAGS="$CFLAGS -belf"
  5314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5315. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5316. if ${lt_cv_cc_needs_belf+:} false; then :
  5317. $as_echo_n "(cached) " >&6
  5318. else
  5319. ac_ext=c
  5320. ac_cpp='$CPP $CPPFLAGS'
  5321. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5322. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5323. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5324. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5325. /* end confdefs.h. */
  5326. int
  5327. main ()
  5328. {
  5329. ;
  5330. return 0;
  5331. }
  5332. _ACEOF
  5333. if ac_fn_c_try_link "$LINENO"; then :
  5334. lt_cv_cc_needs_belf=yes
  5335. else
  5336. lt_cv_cc_needs_belf=no
  5337. fi
  5338. rm -f core conftest.err conftest.$ac_objext \
  5339. conftest$ac_exeext conftest.$ac_ext
  5340. ac_ext=c
  5341. ac_cpp='$CPP $CPPFLAGS'
  5342. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5343. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5344. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5345. fi
  5346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5347. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5348. if test yes != "$lt_cv_cc_needs_belf"; then
  5349. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5350. CFLAGS=$SAVE_CFLAGS
  5351. fi
  5352. ;;
  5353. *-*solaris*)
  5354. # Find out what ABI is being produced by ac_compile, and set linker
  5355. # options accordingly.
  5356. echo 'int i;' > conftest.$ac_ext
  5357. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5358. (eval $ac_compile) 2>&5
  5359. ac_status=$?
  5360. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5361. test $ac_status = 0; }; then
  5362. case `/usr/bin/file conftest.o` in
  5363. *64-bit*)
  5364. case $lt_cv_prog_gnu_ld in
  5365. yes*)
  5366. case $host in
  5367. i?86-*-solaris*|x86_64-*-solaris*)
  5368. LD="${LD-ld} -m elf_x86_64"
  5369. ;;
  5370. sparc*-*-solaris*)
  5371. LD="${LD-ld} -m elf64_sparc"
  5372. ;;
  5373. esac
  5374. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5375. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5376. LD=${LD-ld}_sol2
  5377. fi
  5378. ;;
  5379. *)
  5380. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5381. LD="${LD-ld} -64"
  5382. fi
  5383. ;;
  5384. esac
  5385. ;;
  5386. esac
  5387. fi
  5388. rm -rf conftest*
  5389. ;;
  5390. esac
  5391. need_locks=$enable_libtool_lock
  5392. if test -n "$ac_tool_prefix"; then
  5393. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5394. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5396. $as_echo_n "checking for $ac_word... " >&6; }
  5397. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5398. $as_echo_n "(cached) " >&6
  5399. else
  5400. if test -n "$MANIFEST_TOOL"; then
  5401. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5402. else
  5403. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5404. for as_dir in $PATH
  5405. do
  5406. IFS=$as_save_IFS
  5407. test -z "$as_dir" && as_dir=.
  5408. for ac_exec_ext in '' $ac_executable_extensions; do
  5409. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5410. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5411. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5412. break 2
  5413. fi
  5414. done
  5415. done
  5416. IFS=$as_save_IFS
  5417. fi
  5418. fi
  5419. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5420. if test -n "$MANIFEST_TOOL"; then
  5421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5422. $as_echo "$MANIFEST_TOOL" >&6; }
  5423. else
  5424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5425. $as_echo "no" >&6; }
  5426. fi
  5427. fi
  5428. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5429. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5430. # Extract the first word of "mt", so it can be a program name with args.
  5431. set dummy mt; ac_word=$2
  5432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5433. $as_echo_n "checking for $ac_word... " >&6; }
  5434. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5435. $as_echo_n "(cached) " >&6
  5436. else
  5437. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5438. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5439. else
  5440. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5441. for as_dir in $PATH
  5442. do
  5443. IFS=$as_save_IFS
  5444. test -z "$as_dir" && as_dir=.
  5445. for ac_exec_ext in '' $ac_executable_extensions; do
  5446. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5447. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5448. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5449. break 2
  5450. fi
  5451. done
  5452. done
  5453. IFS=$as_save_IFS
  5454. fi
  5455. fi
  5456. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5457. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5459. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5460. else
  5461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5462. $as_echo "no" >&6; }
  5463. fi
  5464. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5465. MANIFEST_TOOL=":"
  5466. else
  5467. case $cross_compiling:$ac_tool_warned in
  5468. yes:)
  5469. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5470. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5471. ac_tool_warned=yes ;;
  5472. esac
  5473. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5474. fi
  5475. else
  5476. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5477. fi
  5478. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5480. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5481. if ${lt_cv_path_mainfest_tool+:} false; then :
  5482. $as_echo_n "(cached) " >&6
  5483. else
  5484. lt_cv_path_mainfest_tool=no
  5485. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5486. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5487. cat conftest.err >&5
  5488. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5489. lt_cv_path_mainfest_tool=yes
  5490. fi
  5491. rm -f conftest*
  5492. fi
  5493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5494. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5495. if test yes != "$lt_cv_path_mainfest_tool"; then
  5496. MANIFEST_TOOL=:
  5497. fi
  5498. case $host_os in
  5499. rhapsody* | darwin*)
  5500. if test -n "$ac_tool_prefix"; then
  5501. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5502. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5504. $as_echo_n "checking for $ac_word... " >&6; }
  5505. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5506. $as_echo_n "(cached) " >&6
  5507. else
  5508. if test -n "$DSYMUTIL"; then
  5509. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5510. else
  5511. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5512. for as_dir in $PATH
  5513. do
  5514. IFS=$as_save_IFS
  5515. test -z "$as_dir" && as_dir=.
  5516. for ac_exec_ext in '' $ac_executable_extensions; do
  5517. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5518. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5519. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5520. break 2
  5521. fi
  5522. done
  5523. done
  5524. IFS=$as_save_IFS
  5525. fi
  5526. fi
  5527. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5528. if test -n "$DSYMUTIL"; then
  5529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5530. $as_echo "$DSYMUTIL" >&6; }
  5531. else
  5532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5533. $as_echo "no" >&6; }
  5534. fi
  5535. fi
  5536. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5537. ac_ct_DSYMUTIL=$DSYMUTIL
  5538. # Extract the first word of "dsymutil", so it can be a program name with args.
  5539. set dummy dsymutil; ac_word=$2
  5540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5541. $as_echo_n "checking for $ac_word... " >&6; }
  5542. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5543. $as_echo_n "(cached) " >&6
  5544. else
  5545. if test -n "$ac_ct_DSYMUTIL"; then
  5546. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5547. else
  5548. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5549. for as_dir in $PATH
  5550. do
  5551. IFS=$as_save_IFS
  5552. test -z "$as_dir" && as_dir=.
  5553. for ac_exec_ext in '' $ac_executable_extensions; do
  5554. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5555. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5556. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5557. break 2
  5558. fi
  5559. done
  5560. done
  5561. IFS=$as_save_IFS
  5562. fi
  5563. fi
  5564. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5565. if test -n "$ac_ct_DSYMUTIL"; then
  5566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5567. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5568. else
  5569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5570. $as_echo "no" >&6; }
  5571. fi
  5572. if test "x$ac_ct_DSYMUTIL" = x; then
  5573. DSYMUTIL=":"
  5574. else
  5575. case $cross_compiling:$ac_tool_warned in
  5576. yes:)
  5577. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5578. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5579. ac_tool_warned=yes ;;
  5580. esac
  5581. DSYMUTIL=$ac_ct_DSYMUTIL
  5582. fi
  5583. else
  5584. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5585. fi
  5586. if test -n "$ac_tool_prefix"; then
  5587. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5588. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5590. $as_echo_n "checking for $ac_word... " >&6; }
  5591. if ${ac_cv_prog_NMEDIT+:} false; then :
  5592. $as_echo_n "(cached) " >&6
  5593. else
  5594. if test -n "$NMEDIT"; then
  5595. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5596. else
  5597. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5598. for as_dir in $PATH
  5599. do
  5600. IFS=$as_save_IFS
  5601. test -z "$as_dir" && as_dir=.
  5602. for ac_exec_ext in '' $ac_executable_extensions; do
  5603. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5604. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5605. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5606. break 2
  5607. fi
  5608. done
  5609. done
  5610. IFS=$as_save_IFS
  5611. fi
  5612. fi
  5613. NMEDIT=$ac_cv_prog_NMEDIT
  5614. if test -n "$NMEDIT"; then
  5615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5616. $as_echo "$NMEDIT" >&6; }
  5617. else
  5618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5619. $as_echo "no" >&6; }
  5620. fi
  5621. fi
  5622. if test -z "$ac_cv_prog_NMEDIT"; then
  5623. ac_ct_NMEDIT=$NMEDIT
  5624. # Extract the first word of "nmedit", so it can be a program name with args.
  5625. set dummy nmedit; ac_word=$2
  5626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5627. $as_echo_n "checking for $ac_word... " >&6; }
  5628. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5629. $as_echo_n "(cached) " >&6
  5630. else
  5631. if test -n "$ac_ct_NMEDIT"; then
  5632. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5633. else
  5634. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5635. for as_dir in $PATH
  5636. do
  5637. IFS=$as_save_IFS
  5638. test -z "$as_dir" && as_dir=.
  5639. for ac_exec_ext in '' $ac_executable_extensions; do
  5640. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5641. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5642. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5643. break 2
  5644. fi
  5645. done
  5646. done
  5647. IFS=$as_save_IFS
  5648. fi
  5649. fi
  5650. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5651. if test -n "$ac_ct_NMEDIT"; then
  5652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5653. $as_echo "$ac_ct_NMEDIT" >&6; }
  5654. else
  5655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5656. $as_echo "no" >&6; }
  5657. fi
  5658. if test "x$ac_ct_NMEDIT" = x; then
  5659. NMEDIT=":"
  5660. else
  5661. case $cross_compiling:$ac_tool_warned in
  5662. yes:)
  5663. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5664. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5665. ac_tool_warned=yes ;;
  5666. esac
  5667. NMEDIT=$ac_ct_NMEDIT
  5668. fi
  5669. else
  5670. NMEDIT="$ac_cv_prog_NMEDIT"
  5671. fi
  5672. if test -n "$ac_tool_prefix"; then
  5673. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5674. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5676. $as_echo_n "checking for $ac_word... " >&6; }
  5677. if ${ac_cv_prog_LIPO+:} false; then :
  5678. $as_echo_n "(cached) " >&6
  5679. else
  5680. if test -n "$LIPO"; then
  5681. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5682. else
  5683. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5684. for as_dir in $PATH
  5685. do
  5686. IFS=$as_save_IFS
  5687. test -z "$as_dir" && as_dir=.
  5688. for ac_exec_ext in '' $ac_executable_extensions; do
  5689. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5690. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5691. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5692. break 2
  5693. fi
  5694. done
  5695. done
  5696. IFS=$as_save_IFS
  5697. fi
  5698. fi
  5699. LIPO=$ac_cv_prog_LIPO
  5700. if test -n "$LIPO"; then
  5701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5702. $as_echo "$LIPO" >&6; }
  5703. else
  5704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5705. $as_echo "no" >&6; }
  5706. fi
  5707. fi
  5708. if test -z "$ac_cv_prog_LIPO"; then
  5709. ac_ct_LIPO=$LIPO
  5710. # Extract the first word of "lipo", so it can be a program name with args.
  5711. set dummy lipo; ac_word=$2
  5712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5713. $as_echo_n "checking for $ac_word... " >&6; }
  5714. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5715. $as_echo_n "(cached) " >&6
  5716. else
  5717. if test -n "$ac_ct_LIPO"; then
  5718. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5719. else
  5720. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5721. for as_dir in $PATH
  5722. do
  5723. IFS=$as_save_IFS
  5724. test -z "$as_dir" && as_dir=.
  5725. for ac_exec_ext in '' $ac_executable_extensions; do
  5726. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5727. ac_cv_prog_ac_ct_LIPO="lipo"
  5728. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5729. break 2
  5730. fi
  5731. done
  5732. done
  5733. IFS=$as_save_IFS
  5734. fi
  5735. fi
  5736. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5737. if test -n "$ac_ct_LIPO"; then
  5738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5739. $as_echo "$ac_ct_LIPO" >&6; }
  5740. else
  5741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5742. $as_echo "no" >&6; }
  5743. fi
  5744. if test "x$ac_ct_LIPO" = x; then
  5745. LIPO=":"
  5746. else
  5747. case $cross_compiling:$ac_tool_warned in
  5748. yes:)
  5749. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5750. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5751. ac_tool_warned=yes ;;
  5752. esac
  5753. LIPO=$ac_ct_LIPO
  5754. fi
  5755. else
  5756. LIPO="$ac_cv_prog_LIPO"
  5757. fi
  5758. if test -n "$ac_tool_prefix"; then
  5759. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5760. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5762. $as_echo_n "checking for $ac_word... " >&6; }
  5763. if ${ac_cv_prog_OTOOL+:} false; then :
  5764. $as_echo_n "(cached) " >&6
  5765. else
  5766. if test -n "$OTOOL"; then
  5767. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5768. else
  5769. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5770. for as_dir in $PATH
  5771. do
  5772. IFS=$as_save_IFS
  5773. test -z "$as_dir" && as_dir=.
  5774. for ac_exec_ext in '' $ac_executable_extensions; do
  5775. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5776. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5777. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5778. break 2
  5779. fi
  5780. done
  5781. done
  5782. IFS=$as_save_IFS
  5783. fi
  5784. fi
  5785. OTOOL=$ac_cv_prog_OTOOL
  5786. if test -n "$OTOOL"; then
  5787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5788. $as_echo "$OTOOL" >&6; }
  5789. else
  5790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5791. $as_echo "no" >&6; }
  5792. fi
  5793. fi
  5794. if test -z "$ac_cv_prog_OTOOL"; then
  5795. ac_ct_OTOOL=$OTOOL
  5796. # Extract the first word of "otool", so it can be a program name with args.
  5797. set dummy otool; ac_word=$2
  5798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5799. $as_echo_n "checking for $ac_word... " >&6; }
  5800. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5801. $as_echo_n "(cached) " >&6
  5802. else
  5803. if test -n "$ac_ct_OTOOL"; then
  5804. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5805. else
  5806. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5807. for as_dir in $PATH
  5808. do
  5809. IFS=$as_save_IFS
  5810. test -z "$as_dir" && as_dir=.
  5811. for ac_exec_ext in '' $ac_executable_extensions; do
  5812. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5813. ac_cv_prog_ac_ct_OTOOL="otool"
  5814. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5815. break 2
  5816. fi
  5817. done
  5818. done
  5819. IFS=$as_save_IFS
  5820. fi
  5821. fi
  5822. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5823. if test -n "$ac_ct_OTOOL"; then
  5824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5825. $as_echo "$ac_ct_OTOOL" >&6; }
  5826. else
  5827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5828. $as_echo "no" >&6; }
  5829. fi
  5830. if test "x$ac_ct_OTOOL" = x; then
  5831. OTOOL=":"
  5832. else
  5833. case $cross_compiling:$ac_tool_warned in
  5834. yes:)
  5835. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5836. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5837. ac_tool_warned=yes ;;
  5838. esac
  5839. OTOOL=$ac_ct_OTOOL
  5840. fi
  5841. else
  5842. OTOOL="$ac_cv_prog_OTOOL"
  5843. fi
  5844. if test -n "$ac_tool_prefix"; then
  5845. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5846. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5848. $as_echo_n "checking for $ac_word... " >&6; }
  5849. if ${ac_cv_prog_OTOOL64+:} false; then :
  5850. $as_echo_n "(cached) " >&6
  5851. else
  5852. if test -n "$OTOOL64"; then
  5853. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5854. else
  5855. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5856. for as_dir in $PATH
  5857. do
  5858. IFS=$as_save_IFS
  5859. test -z "$as_dir" && as_dir=.
  5860. for ac_exec_ext in '' $ac_executable_extensions; do
  5861. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5862. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5863. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5864. break 2
  5865. fi
  5866. done
  5867. done
  5868. IFS=$as_save_IFS
  5869. fi
  5870. fi
  5871. OTOOL64=$ac_cv_prog_OTOOL64
  5872. if test -n "$OTOOL64"; then
  5873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5874. $as_echo "$OTOOL64" >&6; }
  5875. else
  5876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5877. $as_echo "no" >&6; }
  5878. fi
  5879. fi
  5880. if test -z "$ac_cv_prog_OTOOL64"; then
  5881. ac_ct_OTOOL64=$OTOOL64
  5882. # Extract the first word of "otool64", so it can be a program name with args.
  5883. set dummy otool64; ac_word=$2
  5884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5885. $as_echo_n "checking for $ac_word... " >&6; }
  5886. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5887. $as_echo_n "(cached) " >&6
  5888. else
  5889. if test -n "$ac_ct_OTOOL64"; then
  5890. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5891. else
  5892. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5893. for as_dir in $PATH
  5894. do
  5895. IFS=$as_save_IFS
  5896. test -z "$as_dir" && as_dir=.
  5897. for ac_exec_ext in '' $ac_executable_extensions; do
  5898. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5899. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5900. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5901. break 2
  5902. fi
  5903. done
  5904. done
  5905. IFS=$as_save_IFS
  5906. fi
  5907. fi
  5908. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5909. if test -n "$ac_ct_OTOOL64"; then
  5910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  5911. $as_echo "$ac_ct_OTOOL64" >&6; }
  5912. else
  5913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5914. $as_echo "no" >&6; }
  5915. fi
  5916. if test "x$ac_ct_OTOOL64" = x; then
  5917. OTOOL64=":"
  5918. else
  5919. case $cross_compiling:$ac_tool_warned in
  5920. yes:)
  5921. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5922. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5923. ac_tool_warned=yes ;;
  5924. esac
  5925. OTOOL64=$ac_ct_OTOOL64
  5926. fi
  5927. else
  5928. OTOOL64="$ac_cv_prog_OTOOL64"
  5929. fi
  5930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  5931. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5932. if ${lt_cv_apple_cc_single_mod+:} false; then :
  5933. $as_echo_n "(cached) " >&6
  5934. else
  5935. lt_cv_apple_cc_single_mod=no
  5936. if test -z "$LT_MULTI_MODULE"; then
  5937. # By default we will add the -single_module flag. You can override
  5938. # by either setting the environment variable LT_MULTI_MODULE
  5939. # non-empty at configure time, or by adding -multi_module to the
  5940. # link flags.
  5941. rm -rf libconftest.dylib*
  5942. echo "int foo(void){return 1;}" > conftest.c
  5943. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5944. -dynamiclib -Wl,-single_module conftest.c" >&5
  5945. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5946. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5947. _lt_result=$?
  5948. # If there is a non-empty error log, and "single_module"
  5949. # appears in it, assume the flag caused a linker warning
  5950. if test -s conftest.err && $GREP single_module conftest.err; then
  5951. cat conftest.err >&5
  5952. # Otherwise, if the output was created with a 0 exit code from
  5953. # the compiler, it worked.
  5954. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  5955. lt_cv_apple_cc_single_mod=yes
  5956. else
  5957. cat conftest.err >&5
  5958. fi
  5959. rm -rf libconftest.dylib*
  5960. rm -f conftest.*
  5961. fi
  5962. fi
  5963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  5964. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  5966. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5967. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  5968. $as_echo_n "(cached) " >&6
  5969. else
  5970. lt_cv_ld_exported_symbols_list=no
  5971. save_LDFLAGS=$LDFLAGS
  5972. echo "_main" > conftest.sym
  5973. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  5974. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5975. /* end confdefs.h. */
  5976. int
  5977. main ()
  5978. {
  5979. ;
  5980. return 0;
  5981. }
  5982. _ACEOF
  5983. if ac_fn_c_try_link "$LINENO"; then :
  5984. lt_cv_ld_exported_symbols_list=yes
  5985. else
  5986. lt_cv_ld_exported_symbols_list=no
  5987. fi
  5988. rm -f core conftest.err conftest.$ac_objext \
  5989. conftest$ac_exeext conftest.$ac_ext
  5990. LDFLAGS=$save_LDFLAGS
  5991. fi
  5992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  5993. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  5994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  5995. $as_echo_n "checking for -force_load linker flag... " >&6; }
  5996. if ${lt_cv_ld_force_load+:} false; then :
  5997. $as_echo_n "(cached) " >&6
  5998. else
  5999. lt_cv_ld_force_load=no
  6000. cat > conftest.c << _LT_EOF
  6001. int forced_loaded() { return 2;}
  6002. _LT_EOF
  6003. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6004. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6005. echo "$AR cru libconftest.a conftest.o" >&5
  6006. $AR cru libconftest.a conftest.o 2>&5
  6007. echo "$RANLIB libconftest.a" >&5
  6008. $RANLIB libconftest.a 2>&5
  6009. cat > conftest.c << _LT_EOF
  6010. int main() { return 0;}
  6011. _LT_EOF
  6012. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6013. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6014. _lt_result=$?
  6015. if test -s conftest.err && $GREP force_load conftest.err; then
  6016. cat conftest.err >&5
  6017. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  6018. lt_cv_ld_force_load=yes
  6019. else
  6020. cat conftest.err >&5
  6021. fi
  6022. rm -f conftest.err libconftest.a conftest conftest.c
  6023. rm -rf conftest.dSYM
  6024. fi
  6025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6026. $as_echo "$lt_cv_ld_force_load" >&6; }
  6027. case $host_os in
  6028. rhapsody* | darwin1.[012])
  6029. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  6030. darwin1.*)
  6031. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6032. darwin*) # darwin 5.x on
  6033. # if running on 10.5 or later, the deployment target defaults
  6034. # to the OS version, if on x86, and 10.4, the deployment
  6035. # target defaults to 10.4. Don't you love it?
  6036. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6037. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6038. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  6039. 10.[012][,.]*)
  6040. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6041. 10.*)
  6042. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  6043. esac
  6044. ;;
  6045. esac
  6046. if test yes = "$lt_cv_apple_cc_single_mod"; then
  6047. _lt_dar_single_mod='$single_module'
  6048. fi
  6049. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  6050. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  6051. else
  6052. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  6053. fi
  6054. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  6055. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6056. else
  6057. _lt_dsymutil=
  6058. fi
  6059. ;;
  6060. esac
  6061. # func_munge_path_list VARIABLE PATH
  6062. # -----------------------------------
  6063. # VARIABLE is name of variable containing _space_ separated list of
  6064. # directories to be munged by the contents of PATH, which is string
  6065. # having a format:
  6066. # "DIR[:DIR]:"
  6067. # string "DIR[ DIR]" will be prepended to VARIABLE
  6068. # ":DIR[:DIR]"
  6069. # string "DIR[ DIR]" will be appended to VARIABLE
  6070. # "DIRP[:DIRP]::[DIRA:]DIRA"
  6071. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  6072. # "DIRA[ DIRA]" will be appended to VARIABLE
  6073. # "DIR[:DIR]"
  6074. # VARIABLE will be replaced by "DIR[ DIR]"
  6075. func_munge_path_list ()
  6076. {
  6077. case x$2 in
  6078. x)
  6079. ;;
  6080. *:)
  6081. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  6082. ;;
  6083. x:*)
  6084. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  6085. ;;
  6086. *::*)
  6087. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  6088. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  6089. ;;
  6090. *)
  6091. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  6092. ;;
  6093. esac
  6094. }
  6095. ac_ext=c
  6096. ac_cpp='$CPP $CPPFLAGS'
  6097. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6098. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6099. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6101. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6102. # On Suns, sometimes $CPP names a directory.
  6103. if test -n "$CPP" && test -d "$CPP"; then
  6104. CPP=
  6105. fi
  6106. if test -z "$CPP"; then
  6107. if ${ac_cv_prog_CPP+:} false; then :
  6108. $as_echo_n "(cached) " >&6
  6109. else
  6110. # Double quotes because CPP needs to be expanded
  6111. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6112. do
  6113. ac_preproc_ok=false
  6114. for ac_c_preproc_warn_flag in '' yes
  6115. do
  6116. # Use a header file that comes with gcc, so configuring glibc
  6117. # with a fresh cross-compiler works.
  6118. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6119. # <limits.h> exists even on freestanding compilers.
  6120. # On the NeXT, cc -E runs the code through the compiler's parser,
  6121. # not just through cpp. "Syntax error" is here to catch this case.
  6122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6123. /* end confdefs.h. */
  6124. #ifdef __STDC__
  6125. # include <limits.h>
  6126. #else
  6127. # include <assert.h>
  6128. #endif
  6129. Syntax error
  6130. _ACEOF
  6131. if ac_fn_c_try_cpp "$LINENO"; then :
  6132. else
  6133. # Broken: fails on valid input.
  6134. continue
  6135. fi
  6136. rm -f conftest.err conftest.i conftest.$ac_ext
  6137. # OK, works on sane cases. Now check whether nonexistent headers
  6138. # can be detected and how.
  6139. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6140. /* end confdefs.h. */
  6141. #include <ac_nonexistent.h>
  6142. _ACEOF
  6143. if ac_fn_c_try_cpp "$LINENO"; then :
  6144. # Broken: success on invalid input.
  6145. continue
  6146. else
  6147. # Passes both tests.
  6148. ac_preproc_ok=:
  6149. break
  6150. fi
  6151. rm -f conftest.err conftest.i conftest.$ac_ext
  6152. done
  6153. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6154. rm -f conftest.i conftest.err conftest.$ac_ext
  6155. if $ac_preproc_ok; then :
  6156. break
  6157. fi
  6158. done
  6159. ac_cv_prog_CPP=$CPP
  6160. fi
  6161. CPP=$ac_cv_prog_CPP
  6162. else
  6163. ac_cv_prog_CPP=$CPP
  6164. fi
  6165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6166. $as_echo "$CPP" >&6; }
  6167. ac_preproc_ok=false
  6168. for ac_c_preproc_warn_flag in '' yes
  6169. do
  6170. # Use a header file that comes with gcc, so configuring glibc
  6171. # with a fresh cross-compiler works.
  6172. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6173. # <limits.h> exists even on freestanding compilers.
  6174. # On the NeXT, cc -E runs the code through the compiler's parser,
  6175. # not just through cpp. "Syntax error" is here to catch this case.
  6176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6177. /* end confdefs.h. */
  6178. #ifdef __STDC__
  6179. # include <limits.h>
  6180. #else
  6181. # include <assert.h>
  6182. #endif
  6183. Syntax error
  6184. _ACEOF
  6185. if ac_fn_c_try_cpp "$LINENO"; then :
  6186. else
  6187. # Broken: fails on valid input.
  6188. continue
  6189. fi
  6190. rm -f conftest.err conftest.i conftest.$ac_ext
  6191. # OK, works on sane cases. Now check whether nonexistent headers
  6192. # can be detected and how.
  6193. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6194. /* end confdefs.h. */
  6195. #include <ac_nonexistent.h>
  6196. _ACEOF
  6197. if ac_fn_c_try_cpp "$LINENO"; then :
  6198. # Broken: success on invalid input.
  6199. continue
  6200. else
  6201. # Passes both tests.
  6202. ac_preproc_ok=:
  6203. break
  6204. fi
  6205. rm -f conftest.err conftest.i conftest.$ac_ext
  6206. done
  6207. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6208. rm -f conftest.i conftest.err conftest.$ac_ext
  6209. if $ac_preproc_ok; then :
  6210. else
  6211. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6212. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6213. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6214. See \`config.log' for more details" "$LINENO" 5; }
  6215. fi
  6216. ac_ext=c
  6217. ac_cpp='$CPP $CPPFLAGS'
  6218. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6219. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6220. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6222. $as_echo_n "checking for ANSI C header files... " >&6; }
  6223. if ${ac_cv_header_stdc+:} false; then :
  6224. $as_echo_n "(cached) " >&6
  6225. else
  6226. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6227. /* end confdefs.h. */
  6228. #include <stdlib.h>
  6229. #include <stdarg.h>
  6230. #include <string.h>
  6231. #include <float.h>
  6232. int
  6233. main ()
  6234. {
  6235. ;
  6236. return 0;
  6237. }
  6238. _ACEOF
  6239. if ac_fn_c_try_compile "$LINENO"; then :
  6240. ac_cv_header_stdc=yes
  6241. else
  6242. ac_cv_header_stdc=no
  6243. fi
  6244. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6245. if test $ac_cv_header_stdc = yes; then
  6246. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6247. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6248. /* end confdefs.h. */
  6249. #include <string.h>
  6250. _ACEOF
  6251. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6252. $EGREP "memchr" >/dev/null 2>&1; then :
  6253. else
  6254. ac_cv_header_stdc=no
  6255. fi
  6256. rm -f conftest*
  6257. fi
  6258. if test $ac_cv_header_stdc = yes; then
  6259. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6260. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6261. /* end confdefs.h. */
  6262. #include <stdlib.h>
  6263. _ACEOF
  6264. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6265. $EGREP "free" >/dev/null 2>&1; then :
  6266. else
  6267. ac_cv_header_stdc=no
  6268. fi
  6269. rm -f conftest*
  6270. fi
  6271. if test $ac_cv_header_stdc = yes; then
  6272. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6273. if test "$cross_compiling" = yes; then :
  6274. :
  6275. else
  6276. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6277. /* end confdefs.h. */
  6278. #include <ctype.h>
  6279. #include <stdlib.h>
  6280. #if ((' ' & 0x0FF) == 0x020)
  6281. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6282. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6283. #else
  6284. # define ISLOWER(c) \
  6285. (('a' <= (c) && (c) <= 'i') \
  6286. || ('j' <= (c) && (c) <= 'r') \
  6287. || ('s' <= (c) && (c) <= 'z'))
  6288. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6289. #endif
  6290. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6291. int
  6292. main ()
  6293. {
  6294. int i;
  6295. for (i = 0; i < 256; i++)
  6296. if (XOR (islower (i), ISLOWER (i))
  6297. || toupper (i) != TOUPPER (i))
  6298. return 2;
  6299. return 0;
  6300. }
  6301. _ACEOF
  6302. if ac_fn_c_try_run "$LINENO"; then :
  6303. else
  6304. ac_cv_header_stdc=no
  6305. fi
  6306. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6307. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6308. fi
  6309. fi
  6310. fi
  6311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6312. $as_echo "$ac_cv_header_stdc" >&6; }
  6313. if test $ac_cv_header_stdc = yes; then
  6314. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6315. fi
  6316. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6317. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6318. inttypes.h stdint.h unistd.h
  6319. do :
  6320. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6321. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6322. "
  6323. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6324. cat >>confdefs.h <<_ACEOF
  6325. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6326. _ACEOF
  6327. fi
  6328. done
  6329. for ac_header in dlfcn.h
  6330. do :
  6331. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6332. "
  6333. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6334. cat >>confdefs.h <<_ACEOF
  6335. #define HAVE_DLFCN_H 1
  6336. _ACEOF
  6337. fi
  6338. done
  6339. # Set options
  6340. enable_dlopen=no
  6341. enable_win32_dll=no
  6342. # Check whether --enable-shared was given.
  6343. if test "${enable_shared+set}" = set; then :
  6344. enableval=$enable_shared; p=${PACKAGE-default}
  6345. case $enableval in
  6346. yes) enable_shared=yes ;;
  6347. no) enable_shared=no ;;
  6348. *)
  6349. enable_shared=no
  6350. # Look at the argument we got. We use all the common list separators.
  6351. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6352. for pkg in $enableval; do
  6353. IFS=$lt_save_ifs
  6354. if test "X$pkg" = "X$p"; then
  6355. enable_shared=yes
  6356. fi
  6357. done
  6358. IFS=$lt_save_ifs
  6359. ;;
  6360. esac
  6361. else
  6362. enable_shared=yes
  6363. fi
  6364. # Check whether --enable-static was given.
  6365. if test "${enable_static+set}" = set; then :
  6366. enableval=$enable_static; p=${PACKAGE-default}
  6367. case $enableval in
  6368. yes) enable_static=yes ;;
  6369. no) enable_static=no ;;
  6370. *)
  6371. enable_static=no
  6372. # Look at the argument we got. We use all the common list separators.
  6373. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6374. for pkg in $enableval; do
  6375. IFS=$lt_save_ifs
  6376. if test "X$pkg" = "X$p"; then
  6377. enable_static=yes
  6378. fi
  6379. done
  6380. IFS=$lt_save_ifs
  6381. ;;
  6382. esac
  6383. else
  6384. enable_static=yes
  6385. fi
  6386. # Check whether --with-pic was given.
  6387. if test "${with_pic+set}" = set; then :
  6388. withval=$with_pic; lt_p=${PACKAGE-default}
  6389. case $withval in
  6390. yes|no) pic_mode=$withval ;;
  6391. *)
  6392. pic_mode=default
  6393. # Look at the argument we got. We use all the common list separators.
  6394. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6395. for lt_pkg in $withval; do
  6396. IFS=$lt_save_ifs
  6397. if test "X$lt_pkg" = "X$lt_p"; then
  6398. pic_mode=yes
  6399. fi
  6400. done
  6401. IFS=$lt_save_ifs
  6402. ;;
  6403. esac
  6404. else
  6405. pic_mode=default
  6406. fi
  6407. # Check whether --enable-fast-install was given.
  6408. if test "${enable_fast_install+set}" = set; then :
  6409. enableval=$enable_fast_install; p=${PACKAGE-default}
  6410. case $enableval in
  6411. yes) enable_fast_install=yes ;;
  6412. no) enable_fast_install=no ;;
  6413. *)
  6414. enable_fast_install=no
  6415. # Look at the argument we got. We use all the common list separators.
  6416. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6417. for pkg in $enableval; do
  6418. IFS=$lt_save_ifs
  6419. if test "X$pkg" = "X$p"; then
  6420. enable_fast_install=yes
  6421. fi
  6422. done
  6423. IFS=$lt_save_ifs
  6424. ;;
  6425. esac
  6426. else
  6427. enable_fast_install=yes
  6428. fi
  6429. shared_archive_member_spec=
  6430. case $host,$enable_shared in
  6431. power*-*-aix[5-9]*,yes)
  6432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  6433. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  6434. # Check whether --with-aix-soname was given.
  6435. if test "${with_aix_soname+set}" = set; then :
  6436. withval=$with_aix_soname; case $withval in
  6437. aix|svr4|both)
  6438. ;;
  6439. *)
  6440. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  6441. ;;
  6442. esac
  6443. lt_cv_with_aix_soname=$with_aix_soname
  6444. else
  6445. if ${lt_cv_with_aix_soname+:} false; then :
  6446. $as_echo_n "(cached) " >&6
  6447. else
  6448. lt_cv_with_aix_soname=aix
  6449. fi
  6450. with_aix_soname=$lt_cv_with_aix_soname
  6451. fi
  6452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  6453. $as_echo "$with_aix_soname" >&6; }
  6454. if test aix != "$with_aix_soname"; then
  6455. # For the AIX way of multilib, we name the shared archive member
  6456. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  6457. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  6458. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  6459. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  6460. if test 64 = "${OBJECT_MODE-32}"; then
  6461. shared_archive_member_spec=shr_64
  6462. else
  6463. shared_archive_member_spec=shr
  6464. fi
  6465. fi
  6466. ;;
  6467. *)
  6468. with_aix_soname=aix
  6469. ;;
  6470. esac
  6471. # This can be used to rebuild libtool when needed
  6472. LIBTOOL_DEPS=$ltmain
  6473. # Always use our own libtool.
  6474. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6475. test -z "$LN_S" && LN_S="ln -s"
  6476. if test -n "${ZSH_VERSION+set}"; then
  6477. setopt NO_GLOB_SUBST
  6478. fi
  6479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6480. $as_echo_n "checking for objdir... " >&6; }
  6481. if ${lt_cv_objdir+:} false; then :
  6482. $as_echo_n "(cached) " >&6
  6483. else
  6484. rm -f .libs 2>/dev/null
  6485. mkdir .libs 2>/dev/null
  6486. if test -d .libs; then
  6487. lt_cv_objdir=.libs
  6488. else
  6489. # MS-DOS does not allow filenames that begin with a dot.
  6490. lt_cv_objdir=_libs
  6491. fi
  6492. rmdir .libs 2>/dev/null
  6493. fi
  6494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6495. $as_echo "$lt_cv_objdir" >&6; }
  6496. objdir=$lt_cv_objdir
  6497. cat >>confdefs.h <<_ACEOF
  6498. #define LT_OBJDIR "$lt_cv_objdir/"
  6499. _ACEOF
  6500. case $host_os in
  6501. aix3*)
  6502. # AIX sometimes has problems with the GCC collect2 program. For some
  6503. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6504. # vanish in a puff of smoke.
  6505. if test set != "${COLLECT_NAMES+set}"; then
  6506. COLLECT_NAMES=
  6507. export COLLECT_NAMES
  6508. fi
  6509. ;;
  6510. esac
  6511. # Global variables:
  6512. ofile=libtool
  6513. can_build_shared=yes
  6514. # All known linkers require a '.a' archive for static linking (except MSVC,
  6515. # which needs '.lib').
  6516. libext=a
  6517. with_gnu_ld=$lt_cv_prog_gnu_ld
  6518. old_CC=$CC
  6519. old_CFLAGS=$CFLAGS
  6520. # Set sane defaults for various variables
  6521. test -z "$CC" && CC=cc
  6522. test -z "$LTCC" && LTCC=$CC
  6523. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6524. test -z "$LD" && LD=ld
  6525. test -z "$ac_objext" && ac_objext=o
  6526. func_cc_basename $compiler
  6527. cc_basename=$func_cc_basename_result
  6528. # Only perform the check for file, if the check method requires it
  6529. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6530. case $deplibs_check_method in
  6531. file_magic*)
  6532. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6534. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6535. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6536. $as_echo_n "(cached) " >&6
  6537. else
  6538. case $MAGIC_CMD in
  6539. [\\/*] | ?:[\\/]*)
  6540. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  6541. ;;
  6542. *)
  6543. lt_save_MAGIC_CMD=$MAGIC_CMD
  6544. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  6545. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6546. for ac_dir in $ac_dummy; do
  6547. IFS=$lt_save_ifs
  6548. test -z "$ac_dir" && ac_dir=.
  6549. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  6550. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  6551. if test -n "$file_magic_test_file"; then
  6552. case $deplibs_check_method in
  6553. "file_magic "*)
  6554. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6555. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  6556. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6557. $EGREP "$file_magic_regex" > /dev/null; then
  6558. :
  6559. else
  6560. cat <<_LT_EOF 1>&2
  6561. *** Warning: the command libtool uses to detect shared libraries,
  6562. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6563. *** The result is that libtool may fail to recognize shared libraries
  6564. *** as such. This will affect the creation of libtool libraries that
  6565. *** depend on shared libraries, but programs linked with such libtool
  6566. *** libraries will work regardless of this problem. Nevertheless, you
  6567. *** may want to report the problem to your system manager and/or to
  6568. *** bug-libtool@gnu.org
  6569. _LT_EOF
  6570. fi ;;
  6571. esac
  6572. fi
  6573. break
  6574. fi
  6575. done
  6576. IFS=$lt_save_ifs
  6577. MAGIC_CMD=$lt_save_MAGIC_CMD
  6578. ;;
  6579. esac
  6580. fi
  6581. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  6582. if test -n "$MAGIC_CMD"; then
  6583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6584. $as_echo "$MAGIC_CMD" >&6; }
  6585. else
  6586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6587. $as_echo "no" >&6; }
  6588. fi
  6589. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6590. if test -n "$ac_tool_prefix"; then
  6591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6592. $as_echo_n "checking for file... " >&6; }
  6593. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6594. $as_echo_n "(cached) " >&6
  6595. else
  6596. case $MAGIC_CMD in
  6597. [\\/*] | ?:[\\/]*)
  6598. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  6599. ;;
  6600. *)
  6601. lt_save_MAGIC_CMD=$MAGIC_CMD
  6602. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  6603. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6604. for ac_dir in $ac_dummy; do
  6605. IFS=$lt_save_ifs
  6606. test -z "$ac_dir" && ac_dir=.
  6607. if test -f "$ac_dir/file"; then
  6608. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  6609. if test -n "$file_magic_test_file"; then
  6610. case $deplibs_check_method in
  6611. "file_magic "*)
  6612. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6613. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  6614. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6615. $EGREP "$file_magic_regex" > /dev/null; then
  6616. :
  6617. else
  6618. cat <<_LT_EOF 1>&2
  6619. *** Warning: the command libtool uses to detect shared libraries,
  6620. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6621. *** The result is that libtool may fail to recognize shared libraries
  6622. *** as such. This will affect the creation of libtool libraries that
  6623. *** depend on shared libraries, but programs linked with such libtool
  6624. *** libraries will work regardless of this problem. Nevertheless, you
  6625. *** may want to report the problem to your system manager and/or to
  6626. *** bug-libtool@gnu.org
  6627. _LT_EOF
  6628. fi ;;
  6629. esac
  6630. fi
  6631. break
  6632. fi
  6633. done
  6634. IFS=$lt_save_ifs
  6635. MAGIC_CMD=$lt_save_MAGIC_CMD
  6636. ;;
  6637. esac
  6638. fi
  6639. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  6640. if test -n "$MAGIC_CMD"; then
  6641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6642. $as_echo "$MAGIC_CMD" >&6; }
  6643. else
  6644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6645. $as_echo "no" >&6; }
  6646. fi
  6647. else
  6648. MAGIC_CMD=:
  6649. fi
  6650. fi
  6651. fi
  6652. ;;
  6653. esac
  6654. # Use C for the default configuration in the libtool script
  6655. lt_save_CC=$CC
  6656. ac_ext=c
  6657. ac_cpp='$CPP $CPPFLAGS'
  6658. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6659. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6660. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6661. # Source file extension for C test sources.
  6662. ac_ext=c
  6663. # Object file extension for compiled C test sources.
  6664. objext=o
  6665. objext=$objext
  6666. # Code to be used in simple compile tests
  6667. lt_simple_compile_test_code="int some_variable = 0;"
  6668. # Code to be used in simple link tests
  6669. lt_simple_link_test_code='int main(){return(0);}'
  6670. # If no C compiler was specified, use CC.
  6671. LTCC=${LTCC-"$CC"}
  6672. # If no C compiler flags were specified, use CFLAGS.
  6673. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6674. # Allow CC to be a program name with arguments.
  6675. compiler=$CC
  6676. # Save the default compiler, since it gets overwritten when the other
  6677. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6678. compiler_DEFAULT=$CC
  6679. # save warnings/boilerplate of simple test code
  6680. ac_outfile=conftest.$ac_objext
  6681. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6682. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6683. _lt_compiler_boilerplate=`cat conftest.err`
  6684. $RM conftest*
  6685. ac_outfile=conftest.$ac_objext
  6686. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6687. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6688. _lt_linker_boilerplate=`cat conftest.err`
  6689. $RM -r conftest*
  6690. ## CAVEAT EMPTOR:
  6691. ## There is no encapsulation within the following macros, do not change
  6692. ## the running order or otherwise move them around unless you know exactly
  6693. ## what you are doing...
  6694. if test -n "$compiler"; then
  6695. lt_prog_compiler_no_builtin_flag=
  6696. if test yes = "$GCC"; then
  6697. case $cc_basename in
  6698. nvcc*)
  6699. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6700. *)
  6701. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6702. esac
  6703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6704. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6705. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6706. $as_echo_n "(cached) " >&6
  6707. else
  6708. lt_cv_prog_compiler_rtti_exceptions=no
  6709. ac_outfile=conftest.$ac_objext
  6710. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6711. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  6712. # Insert the option either (1) after the last *FLAGS variable, or
  6713. # (2) before a word containing "conftest.", or (3) at the end.
  6714. # Note that $ac_compile itself does not contain backslashes and begins
  6715. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6716. # The option is referenced via a variable to avoid confusing sed.
  6717. lt_compile=`echo "$ac_compile" | $SED \
  6718. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6719. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6720. -e 's:$: $lt_compiler_flag:'`
  6721. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6722. (eval "$lt_compile" 2>conftest.err)
  6723. ac_status=$?
  6724. cat conftest.err >&5
  6725. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6726. if (exit $ac_status) && test -s "$ac_outfile"; then
  6727. # The compiler can only warn and ignore the option if not recognized
  6728. # So say no if there are warnings other than the usual output.
  6729. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6730. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6731. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6732. lt_cv_prog_compiler_rtti_exceptions=yes
  6733. fi
  6734. fi
  6735. $RM conftest*
  6736. fi
  6737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6738. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6739. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  6740. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6741. else
  6742. :
  6743. fi
  6744. fi
  6745. lt_prog_compiler_wl=
  6746. lt_prog_compiler_pic=
  6747. lt_prog_compiler_static=
  6748. if test yes = "$GCC"; then
  6749. lt_prog_compiler_wl='-Wl,'
  6750. lt_prog_compiler_static='-static'
  6751. case $host_os in
  6752. aix*)
  6753. # All AIX code is PIC.
  6754. if test ia64 = "$host_cpu"; then
  6755. # AIX 5 now supports IA64 processor
  6756. lt_prog_compiler_static='-Bstatic'
  6757. fi
  6758. lt_prog_compiler_pic='-fPIC'
  6759. ;;
  6760. amigaos*)
  6761. case $host_cpu in
  6762. powerpc)
  6763. # see comment about AmigaOS4 .so support
  6764. lt_prog_compiler_pic='-fPIC'
  6765. ;;
  6766. m68k)
  6767. # FIXME: we need at least 68020 code to build shared libraries, but
  6768. # adding the '-m68020' flag to GCC prevents building anything better,
  6769. # like '-m68040'.
  6770. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6771. ;;
  6772. esac
  6773. ;;
  6774. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6775. # PIC is the default for these OSes.
  6776. ;;
  6777. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6778. # This hack is so that the source file can tell whether it is being
  6779. # built for inclusion in a dll (and should export symbols for example).
  6780. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6781. # (--disable-auto-import) libraries
  6782. lt_prog_compiler_pic='-DDLL_EXPORT'
  6783. case $host_os in
  6784. os2*)
  6785. lt_prog_compiler_static='$wl-static'
  6786. ;;
  6787. esac
  6788. ;;
  6789. darwin* | rhapsody*)
  6790. # PIC is the default on this platform
  6791. # Common symbols not allowed in MH_DYLIB files
  6792. lt_prog_compiler_pic='-fno-common'
  6793. ;;
  6794. haiku*)
  6795. # PIC is the default for Haiku.
  6796. # The "-static" flag exists, but is broken.
  6797. lt_prog_compiler_static=
  6798. ;;
  6799. hpux*)
  6800. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6801. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6802. # sets the default TLS model and affects inlining.
  6803. case $host_cpu in
  6804. hppa*64*)
  6805. # +Z the default
  6806. ;;
  6807. *)
  6808. lt_prog_compiler_pic='-fPIC'
  6809. ;;
  6810. esac
  6811. ;;
  6812. interix[3-9]*)
  6813. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6814. # Instead, we relocate shared libraries at runtime.
  6815. ;;
  6816. msdosdjgpp*)
  6817. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6818. # on systems that don't support them.
  6819. lt_prog_compiler_can_build_shared=no
  6820. enable_shared=no
  6821. ;;
  6822. *nto* | *qnx*)
  6823. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6824. # it will coredump.
  6825. lt_prog_compiler_pic='-fPIC -shared'
  6826. ;;
  6827. sysv4*MP*)
  6828. if test -d /usr/nec; then
  6829. lt_prog_compiler_pic=-Kconform_pic
  6830. fi
  6831. ;;
  6832. *)
  6833. lt_prog_compiler_pic='-fPIC'
  6834. ;;
  6835. esac
  6836. case $cc_basename in
  6837. nvcc*) # Cuda Compiler Driver 2.2
  6838. lt_prog_compiler_wl='-Xlinker '
  6839. if test -n "$lt_prog_compiler_pic"; then
  6840. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  6841. fi
  6842. ;;
  6843. esac
  6844. else
  6845. # PORTME Check for flag to pass linker flags through the system compiler.
  6846. case $host_os in
  6847. aix*)
  6848. lt_prog_compiler_wl='-Wl,'
  6849. if test ia64 = "$host_cpu"; then
  6850. # AIX 5 now supports IA64 processor
  6851. lt_prog_compiler_static='-Bstatic'
  6852. else
  6853. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6854. fi
  6855. ;;
  6856. darwin* | rhapsody*)
  6857. # PIC is the default on this platform
  6858. # Common symbols not allowed in MH_DYLIB files
  6859. lt_prog_compiler_pic='-fno-common'
  6860. case $cc_basename in
  6861. nagfor*)
  6862. # NAG Fortran compiler
  6863. lt_prog_compiler_wl='-Wl,-Wl,,'
  6864. lt_prog_compiler_pic='-PIC'
  6865. lt_prog_compiler_static='-Bstatic'
  6866. ;;
  6867. esac
  6868. ;;
  6869. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6870. # This hack is so that the source file can tell whether it is being
  6871. # built for inclusion in a dll (and should export symbols for example).
  6872. lt_prog_compiler_pic='-DDLL_EXPORT'
  6873. case $host_os in
  6874. os2*)
  6875. lt_prog_compiler_static='$wl-static'
  6876. ;;
  6877. esac
  6878. ;;
  6879. hpux9* | hpux10* | hpux11*)
  6880. lt_prog_compiler_wl='-Wl,'
  6881. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6882. # not for PA HP-UX.
  6883. case $host_cpu in
  6884. hppa*64*|ia64*)
  6885. # +Z the default
  6886. ;;
  6887. *)
  6888. lt_prog_compiler_pic='+Z'
  6889. ;;
  6890. esac
  6891. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6892. lt_prog_compiler_static='$wl-a ${wl}archive'
  6893. ;;
  6894. irix5* | irix6* | nonstopux*)
  6895. lt_prog_compiler_wl='-Wl,'
  6896. # PIC (with -KPIC) is the default.
  6897. lt_prog_compiler_static='-non_shared'
  6898. ;;
  6899. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  6900. case $cc_basename in
  6901. # old Intel for x86_64, which still supported -KPIC.
  6902. ecc*)
  6903. lt_prog_compiler_wl='-Wl,'
  6904. lt_prog_compiler_pic='-KPIC'
  6905. lt_prog_compiler_static='-static'
  6906. ;;
  6907. # icc used to be incompatible with GCC.
  6908. # ICC 10 doesn't accept -KPIC any more.
  6909. icc* | ifort*)
  6910. lt_prog_compiler_wl='-Wl,'
  6911. lt_prog_compiler_pic='-fPIC'
  6912. lt_prog_compiler_static='-static'
  6913. ;;
  6914. # Lahey Fortran 8.1.
  6915. lf95*)
  6916. lt_prog_compiler_wl='-Wl,'
  6917. lt_prog_compiler_pic='--shared'
  6918. lt_prog_compiler_static='--static'
  6919. ;;
  6920. nagfor*)
  6921. # NAG Fortran compiler
  6922. lt_prog_compiler_wl='-Wl,-Wl,,'
  6923. lt_prog_compiler_pic='-PIC'
  6924. lt_prog_compiler_static='-Bstatic'
  6925. ;;
  6926. tcc*)
  6927. # Fabrice Bellard et al's Tiny C Compiler
  6928. lt_prog_compiler_wl='-Wl,'
  6929. lt_prog_compiler_pic='-fPIC'
  6930. lt_prog_compiler_static='-static'
  6931. ;;
  6932. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  6933. # Portland Group compilers (*not* the Pentium gcc compiler,
  6934. # which looks to be a dead project)
  6935. lt_prog_compiler_wl='-Wl,'
  6936. lt_prog_compiler_pic='-fpic'
  6937. lt_prog_compiler_static='-Bstatic'
  6938. ;;
  6939. ccc*)
  6940. lt_prog_compiler_wl='-Wl,'
  6941. # All Alpha code is PIC.
  6942. lt_prog_compiler_static='-non_shared'
  6943. ;;
  6944. xl* | bgxl* | bgf* | mpixl*)
  6945. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  6946. lt_prog_compiler_wl='-Wl,'
  6947. lt_prog_compiler_pic='-qpic'
  6948. lt_prog_compiler_static='-qstaticlink'
  6949. ;;
  6950. *)
  6951. case `$CC -V 2>&1 | sed 5q` in
  6952. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  6953. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  6954. lt_prog_compiler_pic='-KPIC'
  6955. lt_prog_compiler_static='-Bstatic'
  6956. lt_prog_compiler_wl=''
  6957. ;;
  6958. *Sun\ F* | *Sun*Fortran*)
  6959. lt_prog_compiler_pic='-KPIC'
  6960. lt_prog_compiler_static='-Bstatic'
  6961. lt_prog_compiler_wl='-Qoption ld '
  6962. ;;
  6963. *Sun\ C*)
  6964. # Sun C 5.9
  6965. lt_prog_compiler_pic='-KPIC'
  6966. lt_prog_compiler_static='-Bstatic'
  6967. lt_prog_compiler_wl='-Wl,'
  6968. ;;
  6969. *Intel*\ [CF]*Compiler*)
  6970. lt_prog_compiler_wl='-Wl,'
  6971. lt_prog_compiler_pic='-fPIC'
  6972. lt_prog_compiler_static='-static'
  6973. ;;
  6974. *Portland\ Group*)
  6975. lt_prog_compiler_wl='-Wl,'
  6976. lt_prog_compiler_pic='-fpic'
  6977. lt_prog_compiler_static='-Bstatic'
  6978. ;;
  6979. esac
  6980. ;;
  6981. esac
  6982. ;;
  6983. newsos6)
  6984. lt_prog_compiler_pic='-KPIC'
  6985. lt_prog_compiler_static='-Bstatic'
  6986. ;;
  6987. *nto* | *qnx*)
  6988. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6989. # it will coredump.
  6990. lt_prog_compiler_pic='-fPIC -shared'
  6991. ;;
  6992. osf3* | osf4* | osf5*)
  6993. lt_prog_compiler_wl='-Wl,'
  6994. # All OSF/1 code is PIC.
  6995. lt_prog_compiler_static='-non_shared'
  6996. ;;
  6997. rdos*)
  6998. lt_prog_compiler_static='-non_shared'
  6999. ;;
  7000. solaris*)
  7001. lt_prog_compiler_pic='-KPIC'
  7002. lt_prog_compiler_static='-Bstatic'
  7003. case $cc_basename in
  7004. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7005. lt_prog_compiler_wl='-Qoption ld ';;
  7006. *)
  7007. lt_prog_compiler_wl='-Wl,';;
  7008. esac
  7009. ;;
  7010. sunos4*)
  7011. lt_prog_compiler_wl='-Qoption ld '
  7012. lt_prog_compiler_pic='-PIC'
  7013. lt_prog_compiler_static='-Bstatic'
  7014. ;;
  7015. sysv4 | sysv4.2uw2* | sysv4.3*)
  7016. lt_prog_compiler_wl='-Wl,'
  7017. lt_prog_compiler_pic='-KPIC'
  7018. lt_prog_compiler_static='-Bstatic'
  7019. ;;
  7020. sysv4*MP*)
  7021. if test -d /usr/nec; then
  7022. lt_prog_compiler_pic='-Kconform_pic'
  7023. lt_prog_compiler_static='-Bstatic'
  7024. fi
  7025. ;;
  7026. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7027. lt_prog_compiler_wl='-Wl,'
  7028. lt_prog_compiler_pic='-KPIC'
  7029. lt_prog_compiler_static='-Bstatic'
  7030. ;;
  7031. unicos*)
  7032. lt_prog_compiler_wl='-Wl,'
  7033. lt_prog_compiler_can_build_shared=no
  7034. ;;
  7035. uts4*)
  7036. lt_prog_compiler_pic='-pic'
  7037. lt_prog_compiler_static='-Bstatic'
  7038. ;;
  7039. *)
  7040. lt_prog_compiler_can_build_shared=no
  7041. ;;
  7042. esac
  7043. fi
  7044. case $host_os in
  7045. # For platforms that do not support PIC, -DPIC is meaningless:
  7046. *djgpp*)
  7047. lt_prog_compiler_pic=
  7048. ;;
  7049. *)
  7050. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7051. ;;
  7052. esac
  7053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7054. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7055. if ${lt_cv_prog_compiler_pic+:} false; then :
  7056. $as_echo_n "(cached) " >&6
  7057. else
  7058. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7059. fi
  7060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7061. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7062. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7063. #
  7064. # Check to make sure the PIC flag actually works.
  7065. #
  7066. if test -n "$lt_prog_compiler_pic"; then
  7067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7068. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7069. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7070. $as_echo_n "(cached) " >&6
  7071. else
  7072. lt_cv_prog_compiler_pic_works=no
  7073. ac_outfile=conftest.$ac_objext
  7074. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7075. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  7076. # Insert the option either (1) after the last *FLAGS variable, or
  7077. # (2) before a word containing "conftest.", or (3) at the end.
  7078. # Note that $ac_compile itself does not contain backslashes and begins
  7079. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7080. # The option is referenced via a variable to avoid confusing sed.
  7081. lt_compile=`echo "$ac_compile" | $SED \
  7082. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7083. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7084. -e 's:$: $lt_compiler_flag:'`
  7085. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7086. (eval "$lt_compile" 2>conftest.err)
  7087. ac_status=$?
  7088. cat conftest.err >&5
  7089. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7090. if (exit $ac_status) && test -s "$ac_outfile"; then
  7091. # The compiler can only warn and ignore the option if not recognized
  7092. # So say no if there are warnings other than the usual output.
  7093. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7094. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7095. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7096. lt_cv_prog_compiler_pic_works=yes
  7097. fi
  7098. fi
  7099. $RM conftest*
  7100. fi
  7101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7102. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7103. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  7104. case $lt_prog_compiler_pic in
  7105. "" | " "*) ;;
  7106. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7107. esac
  7108. else
  7109. lt_prog_compiler_pic=
  7110. lt_prog_compiler_can_build_shared=no
  7111. fi
  7112. fi
  7113. #
  7114. # Check to make sure the static flag actually works.
  7115. #
  7116. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7118. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7119. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7120. $as_echo_n "(cached) " >&6
  7121. else
  7122. lt_cv_prog_compiler_static_works=no
  7123. save_LDFLAGS=$LDFLAGS
  7124. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7125. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7126. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7127. # The linker can only warn and ignore the option if not recognized
  7128. # So say no if there are warnings
  7129. if test -s conftest.err; then
  7130. # Append any errors to the config.log.
  7131. cat conftest.err 1>&5
  7132. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7133. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7134. if diff conftest.exp conftest.er2 >/dev/null; then
  7135. lt_cv_prog_compiler_static_works=yes
  7136. fi
  7137. else
  7138. lt_cv_prog_compiler_static_works=yes
  7139. fi
  7140. fi
  7141. $RM -r conftest*
  7142. LDFLAGS=$save_LDFLAGS
  7143. fi
  7144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7145. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7146. if test yes = "$lt_cv_prog_compiler_static_works"; then
  7147. :
  7148. else
  7149. lt_prog_compiler_static=
  7150. fi
  7151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7152. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7153. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7154. $as_echo_n "(cached) " >&6
  7155. else
  7156. lt_cv_prog_compiler_c_o=no
  7157. $RM -r conftest 2>/dev/null
  7158. mkdir conftest
  7159. cd conftest
  7160. mkdir out
  7161. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7162. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7163. # Insert the option either (1) after the last *FLAGS variable, or
  7164. # (2) before a word containing "conftest.", or (3) at the end.
  7165. # Note that $ac_compile itself does not contain backslashes and begins
  7166. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7167. lt_compile=`echo "$ac_compile" | $SED \
  7168. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7169. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7170. -e 's:$: $lt_compiler_flag:'`
  7171. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7172. (eval "$lt_compile" 2>out/conftest.err)
  7173. ac_status=$?
  7174. cat out/conftest.err >&5
  7175. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7176. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7177. then
  7178. # The compiler can only warn and ignore the option if not recognized
  7179. # So say no if there are warnings
  7180. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7181. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7182. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7183. lt_cv_prog_compiler_c_o=yes
  7184. fi
  7185. fi
  7186. chmod u+w . 2>&5
  7187. $RM conftest*
  7188. # SGI C++ compiler will create directory out/ii_files/ for
  7189. # template instantiation
  7190. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7191. $RM out/* && rmdir out
  7192. cd ..
  7193. $RM -r conftest
  7194. $RM conftest*
  7195. fi
  7196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7197. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7199. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7200. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7201. $as_echo_n "(cached) " >&6
  7202. else
  7203. lt_cv_prog_compiler_c_o=no
  7204. $RM -r conftest 2>/dev/null
  7205. mkdir conftest
  7206. cd conftest
  7207. mkdir out
  7208. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7209. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7210. # Insert the option either (1) after the last *FLAGS variable, or
  7211. # (2) before a word containing "conftest.", or (3) at the end.
  7212. # Note that $ac_compile itself does not contain backslashes and begins
  7213. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7214. lt_compile=`echo "$ac_compile" | $SED \
  7215. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7216. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7217. -e 's:$: $lt_compiler_flag:'`
  7218. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7219. (eval "$lt_compile" 2>out/conftest.err)
  7220. ac_status=$?
  7221. cat out/conftest.err >&5
  7222. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7223. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7224. then
  7225. # The compiler can only warn and ignore the option if not recognized
  7226. # So say no if there are warnings
  7227. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7228. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7229. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7230. lt_cv_prog_compiler_c_o=yes
  7231. fi
  7232. fi
  7233. chmod u+w . 2>&5
  7234. $RM conftest*
  7235. # SGI C++ compiler will create directory out/ii_files/ for
  7236. # template instantiation
  7237. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7238. $RM out/* && rmdir out
  7239. cd ..
  7240. $RM -r conftest
  7241. $RM conftest*
  7242. fi
  7243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7244. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7245. hard_links=nottested
  7246. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  7247. # do not overwrite the value of need_locks provided by the user
  7248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7249. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7250. hard_links=yes
  7251. $RM conftest*
  7252. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7253. touch conftest.a
  7254. ln conftest.a conftest.b 2>&5 || hard_links=no
  7255. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7257. $as_echo "$hard_links" >&6; }
  7258. if test no = "$hard_links"; then
  7259. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  7260. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  7261. need_locks=warn
  7262. fi
  7263. else
  7264. need_locks=no
  7265. fi
  7266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7267. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7268. runpath_var=
  7269. allow_undefined_flag=
  7270. always_export_symbols=no
  7271. archive_cmds=
  7272. archive_expsym_cmds=
  7273. compiler_needs_object=no
  7274. enable_shared_with_static_runtimes=no
  7275. export_dynamic_flag_spec=
  7276. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7277. hardcode_automatic=no
  7278. hardcode_direct=no
  7279. hardcode_direct_absolute=no
  7280. hardcode_libdir_flag_spec=
  7281. hardcode_libdir_separator=
  7282. hardcode_minus_L=no
  7283. hardcode_shlibpath_var=unsupported
  7284. inherit_rpath=no
  7285. link_all_deplibs=unknown
  7286. module_cmds=
  7287. module_expsym_cmds=
  7288. old_archive_from_new_cmds=
  7289. old_archive_from_expsyms_cmds=
  7290. thread_safe_flag_spec=
  7291. whole_archive_flag_spec=
  7292. # include_expsyms should be a list of space-separated symbols to be *always*
  7293. # included in the symbol list
  7294. include_expsyms=
  7295. # exclude_expsyms can be an extended regexp of symbols to exclude
  7296. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  7297. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  7298. # as well as any symbol that contains 'd'.
  7299. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7300. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7301. # platforms (ab)use it in PIC code, but their linkers get confused if
  7302. # the symbol is explicitly referenced. Since portable code cannot
  7303. # rely on this symbol name, it's probably fine to never include it in
  7304. # preloaded symbol tables.
  7305. # Exclude shared library initialization/finalization symbols.
  7306. extract_expsyms_cmds=
  7307. case $host_os in
  7308. cygwin* | mingw* | pw32* | cegcc*)
  7309. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7310. # When not using gcc, we currently assume that we are using
  7311. # Microsoft Visual C++.
  7312. if test yes != "$GCC"; then
  7313. with_gnu_ld=no
  7314. fi
  7315. ;;
  7316. interix*)
  7317. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7318. with_gnu_ld=yes
  7319. ;;
  7320. openbsd* | bitrig*)
  7321. with_gnu_ld=no
  7322. ;;
  7323. linux* | k*bsd*-gnu | gnu*)
  7324. link_all_deplibs=no
  7325. ;;
  7326. esac
  7327. ld_shlibs=yes
  7328. # On some targets, GNU ld is compatible enough with the native linker
  7329. # that we're better off using the native interface for both.
  7330. lt_use_gnu_ld_interface=no
  7331. if test yes = "$with_gnu_ld"; then
  7332. case $host_os in
  7333. aix*)
  7334. # The AIX port of GNU ld has always aspired to compatibility
  7335. # with the native linker. However, as the warning in the GNU ld
  7336. # block says, versions before 2.19.5* couldn't really create working
  7337. # shared libraries, regardless of the interface used.
  7338. case `$LD -v 2>&1` in
  7339. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7340. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7341. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7342. *)
  7343. lt_use_gnu_ld_interface=yes
  7344. ;;
  7345. esac
  7346. ;;
  7347. *)
  7348. lt_use_gnu_ld_interface=yes
  7349. ;;
  7350. esac
  7351. fi
  7352. if test yes = "$lt_use_gnu_ld_interface"; then
  7353. # If archive_cmds runs LD, not CC, wlarc should be empty
  7354. wlarc='$wl'
  7355. # Set some defaults for GNU ld with shared library support. These
  7356. # are reset later if shared libraries are not supported. Putting them
  7357. # here allows them to be overridden if necessary.
  7358. runpath_var=LD_RUN_PATH
  7359. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  7360. export_dynamic_flag_spec='$wl--export-dynamic'
  7361. # ancient GNU ld didn't support --whole-archive et. al.
  7362. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7363. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  7364. else
  7365. whole_archive_flag_spec=
  7366. fi
  7367. supports_anon_versioning=no
  7368. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  7369. *GNU\ gold*) supports_anon_versioning=yes ;;
  7370. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7371. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7372. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7373. *\ 2.11.*) ;; # other 2.11 versions
  7374. *) supports_anon_versioning=yes ;;
  7375. esac
  7376. # See if GNU ld supports shared libraries.
  7377. case $host_os in
  7378. aix[3-9]*)
  7379. # On AIX/PPC, the GNU linker is very broken
  7380. if test ia64 != "$host_cpu"; then
  7381. ld_shlibs=no
  7382. cat <<_LT_EOF 1>&2
  7383. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7384. *** to be unable to reliably create shared libraries on AIX.
  7385. *** Therefore, libtool is disabling shared libraries support. If you
  7386. *** really care for shared libraries, you may want to install binutils
  7387. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7388. *** You will then need to restart the configuration process.
  7389. _LT_EOF
  7390. fi
  7391. ;;
  7392. amigaos*)
  7393. case $host_cpu in
  7394. powerpc)
  7395. # see comment about AmigaOS4 .so support
  7396. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7397. archive_expsym_cmds=''
  7398. ;;
  7399. m68k)
  7400. 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)'
  7401. hardcode_libdir_flag_spec='-L$libdir'
  7402. hardcode_minus_L=yes
  7403. ;;
  7404. esac
  7405. ;;
  7406. beos*)
  7407. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7408. allow_undefined_flag=unsupported
  7409. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7410. # support --undefined. This deserves some investigation. FIXME
  7411. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7412. else
  7413. ld_shlibs=no
  7414. fi
  7415. ;;
  7416. cygwin* | mingw* | pw32* | cegcc*)
  7417. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7418. # as there is no search path for DLLs.
  7419. hardcode_libdir_flag_spec='-L$libdir'
  7420. export_dynamic_flag_spec='$wl--export-all-symbols'
  7421. allow_undefined_flag=unsupported
  7422. always_export_symbols=no
  7423. enable_shared_with_static_runtimes=yes
  7424. 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'
  7425. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7426. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7427. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7428. # If the export-symbols file already is a .def file, use it as
  7429. # is; otherwise, prepend EXPORTS...
  7430. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  7431. cp $export_symbols $output_objdir/$soname.def;
  7432. else
  7433. echo EXPORTS > $output_objdir/$soname.def;
  7434. cat $export_symbols >> $output_objdir/$soname.def;
  7435. fi~
  7436. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7437. else
  7438. ld_shlibs=no
  7439. fi
  7440. ;;
  7441. haiku*)
  7442. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7443. link_all_deplibs=yes
  7444. ;;
  7445. os2*)
  7446. hardcode_libdir_flag_spec='-L$libdir'
  7447. hardcode_minus_L=yes
  7448. allow_undefined_flag=unsupported
  7449. shrext_cmds=.dll
  7450. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  7451. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  7452. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  7453. $ECHO EXPORTS >> $output_objdir/$libname.def~
  7454. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  7455. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  7456. emximp -o $lib $output_objdir/$libname.def'
  7457. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  7458. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  7459. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  7460. $ECHO EXPORTS >> $output_objdir/$libname.def~
  7461. prefix_cmds="$SED"~
  7462. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  7463. prefix_cmds="$prefix_cmds -e 1d";
  7464. fi~
  7465. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  7466. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  7467. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  7468. emximp -o $lib $output_objdir/$libname.def'
  7469. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  7470. enable_shared_with_static_runtimes=yes
  7471. ;;
  7472. interix[3-9]*)
  7473. hardcode_direct=no
  7474. hardcode_shlibpath_var=no
  7475. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  7476. export_dynamic_flag_spec='$wl-E'
  7477. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7478. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7479. # default) and relocated if they conflict, which is a slow very memory
  7480. # consuming and fragmenting process. To avoid this, we pick a random,
  7481. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7482. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7483. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7484. 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'
  7485. ;;
  7486. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7487. tmp_diet=no
  7488. if test linux-dietlibc = "$host_os"; then
  7489. case $cc_basename in
  7490. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7491. esac
  7492. fi
  7493. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7494. && test no = "$tmp_diet"
  7495. then
  7496. tmp_addflag=' $pic_flag'
  7497. tmp_sharedflag='-shared'
  7498. case $cc_basename,$host_cpu in
  7499. pgcc*) # Portland Group C compiler
  7500. 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'
  7501. tmp_addflag=' $pic_flag'
  7502. ;;
  7503. pgf77* | pgf90* | pgf95* | pgfortran*)
  7504. # Portland Group f77 and f90 compilers
  7505. 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'
  7506. tmp_addflag=' $pic_flag -Mnomain' ;;
  7507. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7508. tmp_addflag=' -i_dynamic' ;;
  7509. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7510. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7511. ifc* | ifort*) # Intel Fortran compiler
  7512. tmp_addflag=' -nofor_main' ;;
  7513. lf95*) # Lahey Fortran 8.1
  7514. whole_archive_flag_spec=
  7515. tmp_sharedflag='--shared' ;;
  7516. nagfor*) # NAGFOR 5.3
  7517. tmp_sharedflag='-Wl,-shared' ;;
  7518. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7519. tmp_sharedflag='-qmkshrobj'
  7520. tmp_addflag= ;;
  7521. nvcc*) # Cuda Compiler Driver 2.2
  7522. 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'
  7523. compiler_needs_object=yes
  7524. ;;
  7525. esac
  7526. case `$CC -V 2>&1 | sed 5q` in
  7527. *Sun\ C*) # Sun C 5.9
  7528. 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'
  7529. compiler_needs_object=yes
  7530. tmp_sharedflag='-G' ;;
  7531. *Sun\ F*) # Sun Fortran 8.3
  7532. tmp_sharedflag='-G' ;;
  7533. esac
  7534. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7535. if test yes = "$supports_anon_versioning"; then
  7536. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7537. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7538. echo "local: *; };" >> $output_objdir/$libname.ver~
  7539. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  7540. fi
  7541. case $cc_basename in
  7542. tcc*)
  7543. export_dynamic_flag_spec='-rdynamic'
  7544. ;;
  7545. xlf* | bgf* | bgxlf* | mpixlf*)
  7546. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7547. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7548. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  7549. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7550. if test yes = "$supports_anon_versioning"; then
  7551. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7552. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7553. echo "local: *; };" >> $output_objdir/$libname.ver~
  7554. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7555. fi
  7556. ;;
  7557. esac
  7558. else
  7559. ld_shlibs=no
  7560. fi
  7561. ;;
  7562. netbsd* | netbsdelf*-gnu)
  7563. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7564. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7565. wlarc=
  7566. else
  7567. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7568. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  7569. fi
  7570. ;;
  7571. solaris*)
  7572. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7573. ld_shlibs=no
  7574. cat <<_LT_EOF 1>&2
  7575. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7576. *** create shared libraries on Solaris systems. Therefore, libtool
  7577. *** is disabling shared libraries support. We urge you to upgrade GNU
  7578. *** binutils to release 2.9.1 or newer. Another option is to modify
  7579. *** your PATH or compiler configuration so that the native linker is
  7580. *** used, and then restart.
  7581. _LT_EOF
  7582. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7583. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7584. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  7585. else
  7586. ld_shlibs=no
  7587. fi
  7588. ;;
  7589. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7590. case `$LD -v 2>&1` in
  7591. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7592. ld_shlibs=no
  7593. cat <<_LT_EOF 1>&2
  7594. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  7595. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7596. *** is disabling shared libraries support. We urge you to upgrade GNU
  7597. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7598. *** your PATH or compiler configuration so that the native linker is
  7599. *** used, and then restart.
  7600. _LT_EOF
  7601. ;;
  7602. *)
  7603. # For security reasons, it is highly recommended that you always
  7604. # use absolute paths for naming shared libraries, and exclude the
  7605. # DT_RUNPATH tag from executables and libraries. But doing so
  7606. # requires that you compile everything twice, which is a pain.
  7607. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7608. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  7609. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7610. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  7611. else
  7612. ld_shlibs=no
  7613. fi
  7614. ;;
  7615. esac
  7616. ;;
  7617. sunos4*)
  7618. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7619. wlarc=
  7620. hardcode_direct=yes
  7621. hardcode_shlibpath_var=no
  7622. ;;
  7623. *)
  7624. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7625. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7626. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  7627. else
  7628. ld_shlibs=no
  7629. fi
  7630. ;;
  7631. esac
  7632. if test no = "$ld_shlibs"; then
  7633. runpath_var=
  7634. hardcode_libdir_flag_spec=
  7635. export_dynamic_flag_spec=
  7636. whole_archive_flag_spec=
  7637. fi
  7638. else
  7639. # PORTME fill in a description of your system's linker (not GNU ld)
  7640. case $host_os in
  7641. aix3*)
  7642. allow_undefined_flag=unsupported
  7643. always_export_symbols=yes
  7644. 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'
  7645. # Note: this linker hardcodes the directories in LIBPATH if there
  7646. # are no directories specified by -L.
  7647. hardcode_minus_L=yes
  7648. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  7649. # Neither direct hardcoding nor static linking is supported with a
  7650. # broken collect2.
  7651. hardcode_direct=unsupported
  7652. fi
  7653. ;;
  7654. aix[4-9]*)
  7655. if test ia64 = "$host_cpu"; then
  7656. # On IA64, the linker does run time linking by default, so we don't
  7657. # have to do anything special.
  7658. aix_use_runtimelinking=no
  7659. exp_sym_flag='-Bexport'
  7660. no_entry_flag=
  7661. else
  7662. # If we're using GNU nm, then we don't want the "-C" option.
  7663. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  7664. # Without the "-l" option, or with the "-B" option, AIX nm treats
  7665. # weak defined symbols like other global defined symbols, whereas
  7666. # GNU nm marks them as "W".
  7667. # While the 'weak' keyword is ignored in the Export File, we need
  7668. # it in the Import File for the 'aix-soname' feature, so we have
  7669. # to replace the "-B" option with "-P" for AIX nm.
  7670. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7671. 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'
  7672. else
  7673. 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'
  7674. fi
  7675. aix_use_runtimelinking=no
  7676. # Test if we are trying to use run time linking or normal
  7677. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7678. # have runtime linking enabled, and use it for executables.
  7679. # For shared libraries, we enable/disable runtime linking
  7680. # depending on the kind of the shared library created -
  7681. # when "with_aix_soname,aix_use_runtimelinking" is:
  7682. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  7683. # "aix,yes" lib.so shared, rtl:yes, for executables
  7684. # lib.a static archive
  7685. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  7686. # lib.a(lib.so.V) shared, rtl:no, for executables
  7687. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  7688. # lib.a(lib.so.V) shared, rtl:no
  7689. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  7690. # lib.a static archive
  7691. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7692. for ld_flag in $LDFLAGS; do
  7693. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  7694. aix_use_runtimelinking=yes
  7695. break
  7696. fi
  7697. done
  7698. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  7699. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  7700. # so we don't have lib.a shared libs to link our executables.
  7701. # We have to force runtime linking in this case.
  7702. aix_use_runtimelinking=yes
  7703. LDFLAGS="$LDFLAGS -Wl,-brtl"
  7704. fi
  7705. ;;
  7706. esac
  7707. exp_sym_flag='-bexport'
  7708. no_entry_flag='-bnoentry'
  7709. fi
  7710. # When large executables or shared objects are built, AIX ld can
  7711. # have problems creating the table of contents. If linking a library
  7712. # or program results in "error TOC overflow" add -mminimal-toc to
  7713. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7714. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7715. archive_cmds=''
  7716. hardcode_direct=yes
  7717. hardcode_direct_absolute=yes
  7718. hardcode_libdir_separator=':'
  7719. link_all_deplibs=yes
  7720. file_list_spec='$wl-f,'
  7721. case $with_aix_soname,$aix_use_runtimelinking in
  7722. aix,*) ;; # traditional, no import file
  7723. svr4,* | *,yes) # use import file
  7724. # The Import File defines what to hardcode.
  7725. hardcode_direct=no
  7726. hardcode_direct_absolute=no
  7727. ;;
  7728. esac
  7729. if test yes = "$GCC"; then
  7730. case $host_os in aix4.[012]|aix4.[012].*)
  7731. # We only want to do this on AIX 4.2 and lower, the check
  7732. # below for broken collect2 doesn't work under 4.3+
  7733. collect2name=`$CC -print-prog-name=collect2`
  7734. if test -f "$collect2name" &&
  7735. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7736. then
  7737. # We have reworked collect2
  7738. :
  7739. else
  7740. # We have old collect2
  7741. hardcode_direct=unsupported
  7742. # It fails to find uninstalled libraries when the uninstalled
  7743. # path is not listed in the libpath. Setting hardcode_minus_L
  7744. # to unsupported forces relinking
  7745. hardcode_minus_L=yes
  7746. hardcode_libdir_flag_spec='-L$libdir'
  7747. hardcode_libdir_separator=
  7748. fi
  7749. ;;
  7750. esac
  7751. shared_flag='-shared'
  7752. if test yes = "$aix_use_runtimelinking"; then
  7753. shared_flag="$shared_flag "'$wl-G'
  7754. fi
  7755. # Need to ensure runtime linking is disabled for the traditional
  7756. # shared library, or the linker may eventually find shared libraries
  7757. # /with/ Import File - we do not want to mix them.
  7758. shared_flag_aix='-shared'
  7759. shared_flag_svr4='-shared $wl-G'
  7760. else
  7761. # not using gcc
  7762. if test ia64 = "$host_cpu"; then
  7763. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7764. # chokes on -Wl,-G. The following line is correct:
  7765. shared_flag='-G'
  7766. else
  7767. if test yes = "$aix_use_runtimelinking"; then
  7768. shared_flag='$wl-G'
  7769. else
  7770. shared_flag='$wl-bM:SRE'
  7771. fi
  7772. shared_flag_aix='$wl-bM:SRE'
  7773. shared_flag_svr4='$wl-G'
  7774. fi
  7775. fi
  7776. export_dynamic_flag_spec='$wl-bexpall'
  7777. # It seems that -bexpall does not export symbols beginning with
  7778. # underscore (_), so it is better to generate a list of symbols to export.
  7779. always_export_symbols=yes
  7780. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  7781. # Warning - without using the other runtime loading flags (-brtl),
  7782. # -berok will link without error, but may produce a broken library.
  7783. allow_undefined_flag='-berok'
  7784. # Determine the default libpath from the value encoded in an
  7785. # empty executable.
  7786. if test set = "${lt_cv_aix_libpath+set}"; then
  7787. aix_libpath=$lt_cv_aix_libpath
  7788. else
  7789. if ${lt_cv_aix_libpath_+:} false; then :
  7790. $as_echo_n "(cached) " >&6
  7791. else
  7792. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7793. /* end confdefs.h. */
  7794. int
  7795. main ()
  7796. {
  7797. ;
  7798. return 0;
  7799. }
  7800. _ACEOF
  7801. if ac_fn_c_try_link "$LINENO"; then :
  7802. lt_aix_libpath_sed='
  7803. /Import File Strings/,/^$/ {
  7804. /^0/ {
  7805. s/^0 *\([^ ]*\) *$/\1/
  7806. p
  7807. }
  7808. }'
  7809. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7810. # Check for a 64-bit object if we didn't find anything.
  7811. if test -z "$lt_cv_aix_libpath_"; then
  7812. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7813. fi
  7814. fi
  7815. rm -f core conftest.err conftest.$ac_objext \
  7816. conftest$ac_exeext conftest.$ac_ext
  7817. if test -z "$lt_cv_aix_libpath_"; then
  7818. lt_cv_aix_libpath_=/usr/lib:/lib
  7819. fi
  7820. fi
  7821. aix_libpath=$lt_cv_aix_libpath_
  7822. fi
  7823. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  7824. 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
  7825. else
  7826. if test ia64 = "$host_cpu"; then
  7827. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  7828. allow_undefined_flag="-z nodefs"
  7829. 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"
  7830. else
  7831. # Determine the default libpath from the value encoded in an
  7832. # empty executable.
  7833. if test set = "${lt_cv_aix_libpath+set}"; then
  7834. aix_libpath=$lt_cv_aix_libpath
  7835. else
  7836. if ${lt_cv_aix_libpath_+:} false; then :
  7837. $as_echo_n "(cached) " >&6
  7838. else
  7839. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7840. /* end confdefs.h. */
  7841. int
  7842. main ()
  7843. {
  7844. ;
  7845. return 0;
  7846. }
  7847. _ACEOF
  7848. if ac_fn_c_try_link "$LINENO"; then :
  7849. lt_aix_libpath_sed='
  7850. /Import File Strings/,/^$/ {
  7851. /^0/ {
  7852. s/^0 *\([^ ]*\) *$/\1/
  7853. p
  7854. }
  7855. }'
  7856. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7857. # Check for a 64-bit object if we didn't find anything.
  7858. if test -z "$lt_cv_aix_libpath_"; then
  7859. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7860. fi
  7861. fi
  7862. rm -f core conftest.err conftest.$ac_objext \
  7863. conftest$ac_exeext conftest.$ac_ext
  7864. if test -z "$lt_cv_aix_libpath_"; then
  7865. lt_cv_aix_libpath_=/usr/lib:/lib
  7866. fi
  7867. fi
  7868. aix_libpath=$lt_cv_aix_libpath_
  7869. fi
  7870. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  7871. # Warning - without using the other run time loading flags,
  7872. # -berok will link without error, but may produce a broken library.
  7873. no_undefined_flag=' $wl-bernotok'
  7874. allow_undefined_flag=' $wl-berok'
  7875. if test yes = "$with_gnu_ld"; then
  7876. # We only use this code for GNU lds that support --whole-archive.
  7877. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  7878. else
  7879. # Exported symbols can be pulled into shared objects from archives
  7880. whole_archive_flag_spec='$convenience'
  7881. fi
  7882. archive_cmds_need_lc=yes
  7883. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  7884. # -brtl affects multiple linker settings, -berok does not and is overridden later
  7885. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  7886. if test svr4 != "$with_aix_soname"; then
  7887. # This is similar to how AIX traditionally builds its shared libraries.
  7888. 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'
  7889. fi
  7890. if test aix != "$with_aix_soname"; then
  7891. 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'
  7892. else
  7893. # used by -dlpreopen to get the symbols
  7894. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  7895. fi
  7896. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  7897. fi
  7898. fi
  7899. ;;
  7900. amigaos*)
  7901. case $host_cpu in
  7902. powerpc)
  7903. # see comment about AmigaOS4 .so support
  7904. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7905. archive_expsym_cmds=''
  7906. ;;
  7907. m68k)
  7908. 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)'
  7909. hardcode_libdir_flag_spec='-L$libdir'
  7910. hardcode_minus_L=yes
  7911. ;;
  7912. esac
  7913. ;;
  7914. bsdi[45]*)
  7915. export_dynamic_flag_spec=-rdynamic
  7916. ;;
  7917. cygwin* | mingw* | pw32* | cegcc*)
  7918. # When not using gcc, we currently assume that we are using
  7919. # Microsoft Visual C++.
  7920. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7921. # no search path for DLLs.
  7922. case $cc_basename in
  7923. cl*)
  7924. # Native MSVC
  7925. hardcode_libdir_flag_spec=' '
  7926. allow_undefined_flag=unsupported
  7927. always_export_symbols=yes
  7928. file_list_spec='@'
  7929. # Tell ltmain to make .lib files, not .a files.
  7930. libext=lib
  7931. # Tell ltmain to make .dll files, not .so files.
  7932. shrext_cmds=.dll
  7933. # FIXME: Setting linknames here is a bad hack.
  7934. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  7935. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  7936. cp "$export_symbols" "$output_objdir/$soname.def";
  7937. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  7938. else
  7939. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  7940. fi~
  7941. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  7942. linknames='
  7943. # The linker will not automatically build a static lib if we build a DLL.
  7944. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  7945. enable_shared_with_static_runtimes=yes
  7946. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  7947. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7948. # Don't use ranlib
  7949. old_postinstall_cmds='chmod 644 $oldlib'
  7950. postlink_cmds='lt_outputfile="@OUTPUT@"~
  7951. lt_tool_outputfile="@TOOL_OUTPUT@"~
  7952. case $lt_outputfile in
  7953. *.exe|*.EXE) ;;
  7954. *)
  7955. lt_outputfile=$lt_outputfile.exe
  7956. lt_tool_outputfile=$lt_tool_outputfile.exe
  7957. ;;
  7958. esac~
  7959. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  7960. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  7961. $RM "$lt_outputfile.manifest";
  7962. fi'
  7963. ;;
  7964. *)
  7965. # Assume MSVC wrapper
  7966. hardcode_libdir_flag_spec=' '
  7967. allow_undefined_flag=unsupported
  7968. # Tell ltmain to make .lib files, not .a files.
  7969. libext=lib
  7970. # Tell ltmain to make .dll files, not .so files.
  7971. shrext_cmds=.dll
  7972. # FIXME: Setting linknames here is a bad hack.
  7973. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  7974. # The linker will automatically build a .lib file if we build a DLL.
  7975. old_archive_from_new_cmds='true'
  7976. # FIXME: Should let the user specify the lib program.
  7977. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7978. enable_shared_with_static_runtimes=yes
  7979. ;;
  7980. esac
  7981. ;;
  7982. darwin* | rhapsody*)
  7983. archive_cmds_need_lc=no
  7984. hardcode_direct=no
  7985. hardcode_automatic=yes
  7986. hardcode_shlibpath_var=unsupported
  7987. if test yes = "$lt_cv_ld_force_load"; then
  7988. 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\"`'
  7989. else
  7990. whole_archive_flag_spec=''
  7991. fi
  7992. link_all_deplibs=yes
  7993. allow_undefined_flag=$_lt_dar_allow_undefined
  7994. case $cc_basename in
  7995. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  7996. *) _lt_dar_can_shared=$GCC ;;
  7997. esac
  7998. if test yes = "$_lt_dar_can_shared"; then
  7999. output_verbose_link_cmd=func_echo_all
  8000. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  8001. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  8002. 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"
  8003. 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"
  8004. else
  8005. ld_shlibs=no
  8006. fi
  8007. ;;
  8008. dgux*)
  8009. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8010. hardcode_libdir_flag_spec='-L$libdir'
  8011. hardcode_shlibpath_var=no
  8012. ;;
  8013. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8014. # support. Future versions do this automatically, but an explicit c++rt0.o
  8015. # does not break anything, and helps significantly (at the cost of a little
  8016. # extra space).
  8017. freebsd2.2*)
  8018. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8019. hardcode_libdir_flag_spec='-R$libdir'
  8020. hardcode_direct=yes
  8021. hardcode_shlibpath_var=no
  8022. ;;
  8023. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8024. freebsd2.*)
  8025. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8026. hardcode_direct=yes
  8027. hardcode_minus_L=yes
  8028. hardcode_shlibpath_var=no
  8029. ;;
  8030. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8031. freebsd* | dragonfly*)
  8032. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8033. hardcode_libdir_flag_spec='-R$libdir'
  8034. hardcode_direct=yes
  8035. hardcode_shlibpath_var=no
  8036. ;;
  8037. hpux9*)
  8038. if test yes = "$GCC"; then
  8039. 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'
  8040. else
  8041. 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'
  8042. fi
  8043. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8044. hardcode_libdir_separator=:
  8045. hardcode_direct=yes
  8046. # hardcode_minus_L: Not really in the search PATH,
  8047. # but as the default location of the library.
  8048. hardcode_minus_L=yes
  8049. export_dynamic_flag_spec='$wl-E'
  8050. ;;
  8051. hpux10*)
  8052. if test yes,no = "$GCC,$with_gnu_ld"; then
  8053. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8054. else
  8055. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8056. fi
  8057. if test no = "$with_gnu_ld"; then
  8058. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8059. hardcode_libdir_separator=:
  8060. hardcode_direct=yes
  8061. hardcode_direct_absolute=yes
  8062. export_dynamic_flag_spec='$wl-E'
  8063. # hardcode_minus_L: Not really in the search PATH,
  8064. # but as the default location of the library.
  8065. hardcode_minus_L=yes
  8066. fi
  8067. ;;
  8068. hpux11*)
  8069. if test yes,no = "$GCC,$with_gnu_ld"; then
  8070. case $host_cpu in
  8071. hppa*64*)
  8072. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8073. ;;
  8074. ia64*)
  8075. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8076. ;;
  8077. *)
  8078. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8079. ;;
  8080. esac
  8081. else
  8082. case $host_cpu in
  8083. hppa*64*)
  8084. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8085. ;;
  8086. ia64*)
  8087. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8088. ;;
  8089. *)
  8090. # Older versions of the 11.00 compiler do not understand -b yet
  8091. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8093. $as_echo_n "checking if $CC understands -b... " >&6; }
  8094. if ${lt_cv_prog_compiler__b+:} false; then :
  8095. $as_echo_n "(cached) " >&6
  8096. else
  8097. lt_cv_prog_compiler__b=no
  8098. save_LDFLAGS=$LDFLAGS
  8099. LDFLAGS="$LDFLAGS -b"
  8100. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8101. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8102. # The linker can only warn and ignore the option if not recognized
  8103. # So say no if there are warnings
  8104. if test -s conftest.err; then
  8105. # Append any errors to the config.log.
  8106. cat conftest.err 1>&5
  8107. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8108. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8109. if diff conftest.exp conftest.er2 >/dev/null; then
  8110. lt_cv_prog_compiler__b=yes
  8111. fi
  8112. else
  8113. lt_cv_prog_compiler__b=yes
  8114. fi
  8115. fi
  8116. $RM -r conftest*
  8117. LDFLAGS=$save_LDFLAGS
  8118. fi
  8119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8120. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8121. if test yes = "$lt_cv_prog_compiler__b"; then
  8122. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8123. else
  8124. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8125. fi
  8126. ;;
  8127. esac
  8128. fi
  8129. if test no = "$with_gnu_ld"; then
  8130. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8131. hardcode_libdir_separator=:
  8132. case $host_cpu in
  8133. hppa*64*|ia64*)
  8134. hardcode_direct=no
  8135. hardcode_shlibpath_var=no
  8136. ;;
  8137. *)
  8138. hardcode_direct=yes
  8139. hardcode_direct_absolute=yes
  8140. export_dynamic_flag_spec='$wl-E'
  8141. # hardcode_minus_L: Not really in the search PATH,
  8142. # but as the default location of the library.
  8143. hardcode_minus_L=yes
  8144. ;;
  8145. esac
  8146. fi
  8147. ;;
  8148. irix5* | irix6* | nonstopux*)
  8149. if test yes = "$GCC"; then
  8150. 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'
  8151. # Try to use the -exported_symbol ld option, if it does not
  8152. # work, assume that -exports_file does not work either and
  8153. # implicitly export all symbols.
  8154. # This should be the same for all languages, so no per-tag cache variable.
  8155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8156. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8157. if ${lt_cv_irix_exported_symbol+:} false; then :
  8158. $as_echo_n "(cached) " >&6
  8159. else
  8160. save_LDFLAGS=$LDFLAGS
  8161. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  8162. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8163. /* end confdefs.h. */
  8164. int foo (void) { return 0; }
  8165. _ACEOF
  8166. if ac_fn_c_try_link "$LINENO"; then :
  8167. lt_cv_irix_exported_symbol=yes
  8168. else
  8169. lt_cv_irix_exported_symbol=no
  8170. fi
  8171. rm -f core conftest.err conftest.$ac_objext \
  8172. conftest$ac_exeext conftest.$ac_ext
  8173. LDFLAGS=$save_LDFLAGS
  8174. fi
  8175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8176. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8177. if test yes = "$lt_cv_irix_exported_symbol"; then
  8178. 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'
  8179. fi
  8180. link_all_deplibs=no
  8181. else
  8182. 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'
  8183. 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'
  8184. fi
  8185. archive_cmds_need_lc='no'
  8186. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8187. hardcode_libdir_separator=:
  8188. inherit_rpath=yes
  8189. link_all_deplibs=yes
  8190. ;;
  8191. linux*)
  8192. case $cc_basename in
  8193. tcc*)
  8194. # Fabrice Bellard et al's Tiny C Compiler
  8195. ld_shlibs=yes
  8196. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8197. ;;
  8198. esac
  8199. ;;
  8200. netbsd* | netbsdelf*-gnu)
  8201. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8202. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8203. else
  8204. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8205. fi
  8206. hardcode_libdir_flag_spec='-R$libdir'
  8207. hardcode_direct=yes
  8208. hardcode_shlibpath_var=no
  8209. ;;
  8210. newsos6)
  8211. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8212. hardcode_direct=yes
  8213. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8214. hardcode_libdir_separator=:
  8215. hardcode_shlibpath_var=no
  8216. ;;
  8217. *nto* | *qnx*)
  8218. ;;
  8219. openbsd* | bitrig*)
  8220. if test -f /usr/libexec/ld.so; then
  8221. hardcode_direct=yes
  8222. hardcode_shlibpath_var=no
  8223. hardcode_direct_absolute=yes
  8224. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  8225. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8226. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  8227. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8228. export_dynamic_flag_spec='$wl-E'
  8229. else
  8230. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8231. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8232. fi
  8233. else
  8234. ld_shlibs=no
  8235. fi
  8236. ;;
  8237. os2*)
  8238. hardcode_libdir_flag_spec='-L$libdir'
  8239. hardcode_minus_L=yes
  8240. allow_undefined_flag=unsupported
  8241. shrext_cmds=.dll
  8242. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8243. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8244. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8245. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8246. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8247. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8248. emximp -o $lib $output_objdir/$libname.def'
  8249. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8250. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8251. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8252. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8253. prefix_cmds="$SED"~
  8254. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8255. prefix_cmds="$prefix_cmds -e 1d";
  8256. fi~
  8257. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8258. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8259. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8260. emximp -o $lib $output_objdir/$libname.def'
  8261. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8262. enable_shared_with_static_runtimes=yes
  8263. ;;
  8264. osf3*)
  8265. if test yes = "$GCC"; then
  8266. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  8267. 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'
  8268. else
  8269. allow_undefined_flag=' -expect_unresolved \*'
  8270. 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'
  8271. fi
  8272. archive_cmds_need_lc='no'
  8273. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8274. hardcode_libdir_separator=:
  8275. ;;
  8276. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8277. if test yes = "$GCC"; then
  8278. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  8279. 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'
  8280. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8281. else
  8282. allow_undefined_flag=' -expect_unresolved \*'
  8283. 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'
  8284. 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~
  8285. $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'
  8286. # Both c and cxx compiler support -rpath directly
  8287. hardcode_libdir_flag_spec='-rpath $libdir'
  8288. fi
  8289. archive_cmds_need_lc='no'
  8290. hardcode_libdir_separator=:
  8291. ;;
  8292. solaris*)
  8293. no_undefined_flag=' -z defs'
  8294. if test yes = "$GCC"; then
  8295. wlarc='$wl'
  8296. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8297. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8298. $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'
  8299. else
  8300. case `$CC -V 2>&1` in
  8301. *"Compilers 5.0"*)
  8302. wlarc=''
  8303. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8304. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8305. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8306. ;;
  8307. *)
  8308. wlarc='$wl'
  8309. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8310. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8311. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8312. ;;
  8313. esac
  8314. fi
  8315. hardcode_libdir_flag_spec='-R$libdir'
  8316. hardcode_shlibpath_var=no
  8317. case $host_os in
  8318. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8319. *)
  8320. # The compiler driver will combine and reorder linker options,
  8321. # but understands '-z linker_flag'. GCC discards it without '$wl',
  8322. # but is careful enough not to reorder.
  8323. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8324. if test yes = "$GCC"; then
  8325. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  8326. else
  8327. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8328. fi
  8329. ;;
  8330. esac
  8331. link_all_deplibs=yes
  8332. ;;
  8333. sunos4*)
  8334. if test sequent = "$host_vendor"; then
  8335. # Use $CC to link under sequent, because it throws in some extra .o
  8336. # files that make .init and .fini sections work.
  8337. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8338. else
  8339. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8340. fi
  8341. hardcode_libdir_flag_spec='-L$libdir'
  8342. hardcode_direct=yes
  8343. hardcode_minus_L=yes
  8344. hardcode_shlibpath_var=no
  8345. ;;
  8346. sysv4)
  8347. case $host_vendor in
  8348. sni)
  8349. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8350. hardcode_direct=yes # is this really true???
  8351. ;;
  8352. siemens)
  8353. ## LD is ld it makes a PLAMLIB
  8354. ## CC just makes a GrossModule.
  8355. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8356. reload_cmds='$CC -r -o $output$reload_objs'
  8357. hardcode_direct=no
  8358. ;;
  8359. motorola)
  8360. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8361. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8362. ;;
  8363. esac
  8364. runpath_var='LD_RUN_PATH'
  8365. hardcode_shlibpath_var=no
  8366. ;;
  8367. sysv4.3*)
  8368. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8369. hardcode_shlibpath_var=no
  8370. export_dynamic_flag_spec='-Bexport'
  8371. ;;
  8372. sysv4*MP*)
  8373. if test -d /usr/nec; then
  8374. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8375. hardcode_shlibpath_var=no
  8376. runpath_var=LD_RUN_PATH
  8377. hardcode_runpath_var=yes
  8378. ld_shlibs=yes
  8379. fi
  8380. ;;
  8381. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8382. no_undefined_flag='$wl-z,text'
  8383. archive_cmds_need_lc=no
  8384. hardcode_shlibpath_var=no
  8385. runpath_var='LD_RUN_PATH'
  8386. if test yes = "$GCC"; then
  8387. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8388. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8389. else
  8390. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8391. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8392. fi
  8393. ;;
  8394. sysv5* | sco3.2v5* | sco5v6*)
  8395. # Note: We CANNOT use -z defs as we might desire, because we do not
  8396. # link with -lc, and that would cause any symbols used from libc to
  8397. # always be unresolved, which means just about no library would
  8398. # ever link correctly. If we're not using GNU ld we use -z text
  8399. # though, which does catch some bad symbols but isn't as heavy-handed
  8400. # as -z defs.
  8401. no_undefined_flag='$wl-z,text'
  8402. allow_undefined_flag='$wl-z,nodefs'
  8403. archive_cmds_need_lc=no
  8404. hardcode_shlibpath_var=no
  8405. hardcode_libdir_flag_spec='$wl-R,$libdir'
  8406. hardcode_libdir_separator=':'
  8407. link_all_deplibs=yes
  8408. export_dynamic_flag_spec='$wl-Bexport'
  8409. runpath_var='LD_RUN_PATH'
  8410. if test yes = "$GCC"; then
  8411. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8412. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8413. else
  8414. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8415. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8416. fi
  8417. ;;
  8418. uts4*)
  8419. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8420. hardcode_libdir_flag_spec='-L$libdir'
  8421. hardcode_shlibpath_var=no
  8422. ;;
  8423. *)
  8424. ld_shlibs=no
  8425. ;;
  8426. esac
  8427. if test sni = "$host_vendor"; then
  8428. case $host in
  8429. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8430. export_dynamic_flag_spec='$wl-Blargedynsym'
  8431. ;;
  8432. esac
  8433. fi
  8434. fi
  8435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8436. $as_echo "$ld_shlibs" >&6; }
  8437. test no = "$ld_shlibs" && can_build_shared=no
  8438. with_gnu_ld=$with_gnu_ld
  8439. #
  8440. # Do we need to explicitly link libc?
  8441. #
  8442. case "x$archive_cmds_need_lc" in
  8443. x|xyes)
  8444. # Assume -lc should be added
  8445. archive_cmds_need_lc=yes
  8446. if test yes,yes = "$GCC,$enable_shared"; then
  8447. case $archive_cmds in
  8448. *'~'*)
  8449. # FIXME: we may have to deal with multi-command sequences.
  8450. ;;
  8451. '$CC '*)
  8452. # Test whether the compiler implicitly links with -lc since on some
  8453. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8454. # to ld, don't add -lc before -lgcc.
  8455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8456. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8457. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8458. $as_echo_n "(cached) " >&6
  8459. else
  8460. $RM conftest*
  8461. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8462. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8463. (eval $ac_compile) 2>&5
  8464. ac_status=$?
  8465. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8466. test $ac_status = 0; } 2>conftest.err; then
  8467. soname=conftest
  8468. lib=conftest
  8469. libobjs=conftest.$ac_objext
  8470. deplibs=
  8471. wl=$lt_prog_compiler_wl
  8472. pic_flag=$lt_prog_compiler_pic
  8473. compiler_flags=-v
  8474. linker_flags=-v
  8475. verstring=
  8476. output_objdir=.
  8477. libname=conftest
  8478. lt_save_allow_undefined_flag=$allow_undefined_flag
  8479. allow_undefined_flag=
  8480. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8481. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8482. ac_status=$?
  8483. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8484. test $ac_status = 0; }
  8485. then
  8486. lt_cv_archive_cmds_need_lc=no
  8487. else
  8488. lt_cv_archive_cmds_need_lc=yes
  8489. fi
  8490. allow_undefined_flag=$lt_save_allow_undefined_flag
  8491. else
  8492. cat conftest.err 1>&5
  8493. fi
  8494. $RM conftest*
  8495. fi
  8496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8497. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8498. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8499. ;;
  8500. esac
  8501. fi
  8502. ;;
  8503. esac
  8504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8505. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8506. if test yes = "$GCC"; then
  8507. case $host_os in
  8508. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  8509. *) lt_awk_arg='/^libraries:/' ;;
  8510. esac
  8511. case $host_os in
  8512. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  8513. *) lt_sed_strip_eq='s|=/|/|g' ;;
  8514. esac
  8515. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8516. case $lt_search_path_spec in
  8517. *\;*)
  8518. # if the path contains ";" then we assume it to be the separator
  8519. # otherwise default to the standard path separator (i.e. ":") - it is
  8520. # assumed that no part of a normal pathname contains ";" but that should
  8521. # okay in the real world where ";" in dirpaths is itself problematic.
  8522. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8523. ;;
  8524. *)
  8525. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8526. ;;
  8527. esac
  8528. # Ok, now we have the path, separated by spaces, we can step through it
  8529. # and add multilib dir if necessary...
  8530. lt_tmp_lt_search_path_spec=
  8531. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8532. # ...but if some path component already ends with the multilib dir we assume
  8533. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  8534. case "$lt_multi_os_dir; $lt_search_path_spec " in
  8535. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  8536. lt_multi_os_dir=
  8537. ;;
  8538. esac
  8539. for lt_sys_path in $lt_search_path_spec; do
  8540. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  8541. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  8542. elif test -n "$lt_multi_os_dir"; then
  8543. test -d "$lt_sys_path" && \
  8544. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8545. fi
  8546. done
  8547. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8548. BEGIN {RS = " "; FS = "/|\n";} {
  8549. lt_foo = "";
  8550. lt_count = 0;
  8551. for (lt_i = NF; lt_i > 0; lt_i--) {
  8552. if ($lt_i != "" && $lt_i != ".") {
  8553. if ($lt_i == "..") {
  8554. lt_count++;
  8555. } else {
  8556. if (lt_count == 0) {
  8557. lt_foo = "/" $lt_i lt_foo;
  8558. } else {
  8559. lt_count--;
  8560. }
  8561. }
  8562. }
  8563. }
  8564. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8565. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8566. }'`
  8567. # AWK program above erroneously prepends '/' to C:/dos/paths
  8568. # for these hosts.
  8569. case $host_os in
  8570. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8571. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  8572. esac
  8573. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8574. else
  8575. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8576. fi
  8577. library_names_spec=
  8578. libname_spec='lib$name'
  8579. soname_spec=
  8580. shrext_cmds=.so
  8581. postinstall_cmds=
  8582. postuninstall_cmds=
  8583. finish_cmds=
  8584. finish_eval=
  8585. shlibpath_var=
  8586. shlibpath_overrides_runpath=unknown
  8587. version_type=none
  8588. dynamic_linker="$host_os ld.so"
  8589. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8590. need_lib_prefix=unknown
  8591. hardcode_into_libs=no
  8592. # when you set need_version to no, make sure it does not cause -set_version
  8593. # flags to be left without arguments
  8594. need_version=unknown
  8595. case $host_os in
  8596. aix3*)
  8597. version_type=linux # correct to gnu/linux during the next big refactor
  8598. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  8599. shlibpath_var=LIBPATH
  8600. # AIX 3 has no versioning support, so we append a major version to the name.
  8601. soname_spec='$libname$release$shared_ext$major'
  8602. ;;
  8603. aix[4-9]*)
  8604. version_type=linux # correct to gnu/linux during the next big refactor
  8605. need_lib_prefix=no
  8606. need_version=no
  8607. hardcode_into_libs=yes
  8608. if test ia64 = "$host_cpu"; then
  8609. # AIX 5 supports IA64
  8610. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  8611. shlibpath_var=LD_LIBRARY_PATH
  8612. else
  8613. # With GCC up to 2.95.x, collect2 would create an import file
  8614. # for dependence libraries. The import file would start with
  8615. # the line '#! .'. This would cause the generated library to
  8616. # depend on '.', always an invalid library. This was fixed in
  8617. # development snapshots of GCC prior to 3.0.
  8618. case $host_os in
  8619. aix4 | aix4.[01] | aix4.[01].*)
  8620. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8621. echo ' yes '
  8622. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  8623. :
  8624. else
  8625. can_build_shared=no
  8626. fi
  8627. ;;
  8628. esac
  8629. # Using Import Files as archive members, it is possible to support
  8630. # filename-based versioning of shared library archives on AIX. While
  8631. # this would work for both with and without runtime linking, it will
  8632. # prevent static linking of such archives. So we do filename-based
  8633. # shared library versioning with .so extension only, which is used
  8634. # when both runtime linking and shared linking is enabled.
  8635. # Unfortunately, runtime linking may impact performance, so we do
  8636. # not want this to be the default eventually. Also, we use the
  8637. # versioned .so libs for executables only if there is the -brtl
  8638. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  8639. # To allow for filename-based versioning support, we need to create
  8640. # libNAME.so.V as an archive file, containing:
  8641. # *) an Import File, referring to the versioned filename of the
  8642. # archive as well as the shared archive member, telling the
  8643. # bitwidth (32 or 64) of that shared object, and providing the
  8644. # list of exported symbols of that shared object, eventually
  8645. # decorated with the 'weak' keyword
  8646. # *) the shared object with the F_LOADONLY flag set, to really avoid
  8647. # it being seen by the linker.
  8648. # At run time we better use the real file rather than another symlink,
  8649. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  8650. case $with_aix_soname,$aix_use_runtimelinking in
  8651. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  8652. # soname into executable. Probably we can add versioning support to
  8653. # collect2, so additional links can be useful in future.
  8654. aix,yes) # traditional libtool
  8655. dynamic_linker='AIX unversionable lib.so'
  8656. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8657. # instead of lib<name>.a to let people know that these are not
  8658. # typical AIX shared libraries.
  8659. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  8660. ;;
  8661. aix,no) # traditional AIX only
  8662. dynamic_linker='AIX lib.a(lib.so.V)'
  8663. # We preserve .a as extension for shared libraries through AIX4.2
  8664. # and later when we are not doing run time linking.
  8665. library_names_spec='$libname$release.a $libname.a'
  8666. soname_spec='$libname$release$shared_ext$major'
  8667. ;;
  8668. svr4,*) # full svr4 only
  8669. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  8670. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  8671. # We do not specify a path in Import Files, so LIBPATH fires.
  8672. shlibpath_overrides_runpath=yes
  8673. ;;
  8674. *,yes) # both, prefer svr4
  8675. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  8676. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  8677. # unpreferred sharedlib libNAME.a needs extra handling
  8678. 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"'
  8679. 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"'
  8680. # We do not specify a path in Import Files, so LIBPATH fires.
  8681. shlibpath_overrides_runpath=yes
  8682. ;;
  8683. *,no) # both, prefer aix
  8684. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  8685. library_names_spec='$libname$release.a $libname.a'
  8686. soname_spec='$libname$release$shared_ext$major'
  8687. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  8688. 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)'
  8689. 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"'
  8690. ;;
  8691. esac
  8692. shlibpath_var=LIBPATH
  8693. fi
  8694. ;;
  8695. amigaos*)
  8696. case $host_cpu in
  8697. powerpc)
  8698. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8699. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8700. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  8701. ;;
  8702. m68k)
  8703. library_names_spec='$libname.ixlibrary $libname.a'
  8704. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8705. 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'
  8706. ;;
  8707. esac
  8708. ;;
  8709. beos*)
  8710. library_names_spec='$libname$shared_ext'
  8711. dynamic_linker="$host_os ld.so"
  8712. shlibpath_var=LIBRARY_PATH
  8713. ;;
  8714. bsdi[45]*)
  8715. version_type=linux # correct to gnu/linux during the next big refactor
  8716. need_version=no
  8717. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  8718. soname_spec='$libname$release$shared_ext$major'
  8719. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8720. shlibpath_var=LD_LIBRARY_PATH
  8721. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8722. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8723. # the default ld.so.conf also contains /usr/contrib/lib and
  8724. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8725. # libtool to hard-code these into programs
  8726. ;;
  8727. cygwin* | mingw* | pw32* | cegcc*)
  8728. version_type=windows
  8729. shrext_cmds=.dll
  8730. need_version=no
  8731. need_lib_prefix=no
  8732. case $GCC,$cc_basename in
  8733. yes,*)
  8734. # gcc
  8735. library_names_spec='$libname.dll.a'
  8736. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8737. postinstall_cmds='base_file=`basename \$file`~
  8738. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  8739. dldir=$destdir/`dirname \$dlpath`~
  8740. test -d \$dldir || mkdir -p \$dldir~
  8741. $install_prog $dir/$dlname \$dldir/$dlname~
  8742. chmod a+x \$dldir/$dlname~
  8743. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8744. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8745. fi'
  8746. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8747. dlpath=$dir/\$dldll~
  8748. $RM \$dlpath'
  8749. shlibpath_overrides_runpath=yes
  8750. case $host_os in
  8751. cygwin*)
  8752. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8753. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  8754. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8755. ;;
  8756. mingw* | cegcc*)
  8757. # MinGW DLLs use traditional 'lib' prefix
  8758. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  8759. ;;
  8760. pw32*)
  8761. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8762. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  8763. ;;
  8764. esac
  8765. dynamic_linker='Win32 ld.exe'
  8766. ;;
  8767. *,cl*)
  8768. # Native MSVC
  8769. libname_spec='$name'
  8770. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  8771. library_names_spec='$libname.dll.lib'
  8772. case $build_os in
  8773. mingw*)
  8774. sys_lib_search_path_spec=
  8775. lt_save_ifs=$IFS
  8776. IFS=';'
  8777. for lt_path in $LIB
  8778. do
  8779. IFS=$lt_save_ifs
  8780. # Let DOS variable expansion print the short 8.3 style file name.
  8781. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8782. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8783. done
  8784. IFS=$lt_save_ifs
  8785. # Convert to MSYS style.
  8786. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8787. ;;
  8788. cygwin*)
  8789. # Convert to unix form, then to dos form, then back to unix form
  8790. # but this time dos style (no spaces!) so that the unix form looks
  8791. # like /cygdrive/c/PROGRA~1:/cygdr...
  8792. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8793. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8794. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8795. ;;
  8796. *)
  8797. sys_lib_search_path_spec=$LIB
  8798. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8799. # It is most probably a Windows format PATH.
  8800. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8801. else
  8802. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8803. fi
  8804. # FIXME: find the short name or the path components, as spaces are
  8805. # common. (e.g. "Program Files" -> "PROGRA~1")
  8806. ;;
  8807. esac
  8808. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8809. postinstall_cmds='base_file=`basename \$file`~
  8810. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  8811. dldir=$destdir/`dirname \$dlpath`~
  8812. test -d \$dldir || mkdir -p \$dldir~
  8813. $install_prog $dir/$dlname \$dldir/$dlname'
  8814. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8815. dlpath=$dir/\$dldll~
  8816. $RM \$dlpath'
  8817. shlibpath_overrides_runpath=yes
  8818. dynamic_linker='Win32 link.exe'
  8819. ;;
  8820. *)
  8821. # Assume MSVC wrapper
  8822. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  8823. dynamic_linker='Win32 ld.exe'
  8824. ;;
  8825. esac
  8826. # FIXME: first we should search . and the directory the executable is in
  8827. shlibpath_var=PATH
  8828. ;;
  8829. darwin* | rhapsody*)
  8830. dynamic_linker="$host_os dyld"
  8831. version_type=darwin
  8832. need_lib_prefix=no
  8833. need_version=no
  8834. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  8835. soname_spec='$libname$release$major$shared_ext'
  8836. shlibpath_overrides_runpath=yes
  8837. shlibpath_var=DYLD_LIBRARY_PATH
  8838. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8839. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8840. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8841. ;;
  8842. dgux*)
  8843. version_type=linux # correct to gnu/linux during the next big refactor
  8844. need_lib_prefix=no
  8845. need_version=no
  8846. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  8847. soname_spec='$libname$release$shared_ext$major'
  8848. shlibpath_var=LD_LIBRARY_PATH
  8849. ;;
  8850. freebsd* | dragonfly*)
  8851. # DragonFly does not have aout. When/if they implement a new
  8852. # versioning mechanism, adjust this.
  8853. if test -x /usr/bin/objformat; then
  8854. objformat=`/usr/bin/objformat`
  8855. else
  8856. case $host_os in
  8857. freebsd[23].*) objformat=aout ;;
  8858. *) objformat=elf ;;
  8859. esac
  8860. fi
  8861. version_type=freebsd-$objformat
  8862. case $version_type in
  8863. freebsd-elf*)
  8864. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  8865. soname_spec='$libname$release$shared_ext$major'
  8866. need_version=no
  8867. need_lib_prefix=no
  8868. ;;
  8869. freebsd-*)
  8870. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  8871. need_version=yes
  8872. ;;
  8873. esac
  8874. shlibpath_var=LD_LIBRARY_PATH
  8875. case $host_os in
  8876. freebsd2.*)
  8877. shlibpath_overrides_runpath=yes
  8878. ;;
  8879. freebsd3.[01]* | freebsdelf3.[01]*)
  8880. shlibpath_overrides_runpath=yes
  8881. hardcode_into_libs=yes
  8882. ;;
  8883. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8884. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8885. shlibpath_overrides_runpath=no
  8886. hardcode_into_libs=yes
  8887. ;;
  8888. *) # from 4.6 on, and DragonFly
  8889. shlibpath_overrides_runpath=yes
  8890. hardcode_into_libs=yes
  8891. ;;
  8892. esac
  8893. ;;
  8894. haiku*)
  8895. version_type=linux # correct to gnu/linux during the next big refactor
  8896. need_lib_prefix=no
  8897. need_version=no
  8898. dynamic_linker="$host_os runtime_loader"
  8899. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  8900. soname_spec='$libname$release$shared_ext$major'
  8901. shlibpath_var=LIBRARY_PATH
  8902. shlibpath_overrides_runpath=no
  8903. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  8904. hardcode_into_libs=yes
  8905. ;;
  8906. hpux9* | hpux10* | hpux11*)
  8907. # Give a soname corresponding to the major version so that dld.sl refuses to
  8908. # link against other versions.
  8909. version_type=sunos
  8910. need_lib_prefix=no
  8911. need_version=no
  8912. case $host_cpu in
  8913. ia64*)
  8914. shrext_cmds='.so'
  8915. hardcode_into_libs=yes
  8916. dynamic_linker="$host_os dld.so"
  8917. shlibpath_var=LD_LIBRARY_PATH
  8918. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8919. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  8920. soname_spec='$libname$release$shared_ext$major'
  8921. if test 32 = "$HPUX_IA64_MODE"; then
  8922. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8923. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  8924. else
  8925. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8926. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  8927. fi
  8928. ;;
  8929. hppa*64*)
  8930. shrext_cmds='.sl'
  8931. hardcode_into_libs=yes
  8932. dynamic_linker="$host_os dld.sl"
  8933. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8934. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8935. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  8936. soname_spec='$libname$release$shared_ext$major'
  8937. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8938. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8939. ;;
  8940. *)
  8941. shrext_cmds='.sl'
  8942. dynamic_linker="$host_os dld.sl"
  8943. shlibpath_var=SHLIB_PATH
  8944. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8945. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  8946. soname_spec='$libname$release$shared_ext$major'
  8947. ;;
  8948. esac
  8949. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8950. postinstall_cmds='chmod 555 $lib'
  8951. # or fails outright, so override atomically:
  8952. install_override_mode=555
  8953. ;;
  8954. interix[3-9]*)
  8955. version_type=linux # correct to gnu/linux during the next big refactor
  8956. need_lib_prefix=no
  8957. need_version=no
  8958. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  8959. soname_spec='$libname$release$shared_ext$major'
  8960. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8961. shlibpath_var=LD_LIBRARY_PATH
  8962. shlibpath_overrides_runpath=no
  8963. hardcode_into_libs=yes
  8964. ;;
  8965. irix5* | irix6* | nonstopux*)
  8966. case $host_os in
  8967. nonstopux*) version_type=nonstopux ;;
  8968. *)
  8969. if test yes = "$lt_cv_prog_gnu_ld"; then
  8970. version_type=linux # correct to gnu/linux during the next big refactor
  8971. else
  8972. version_type=irix
  8973. fi ;;
  8974. esac
  8975. need_lib_prefix=no
  8976. need_version=no
  8977. soname_spec='$libname$release$shared_ext$major'
  8978. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  8979. case $host_os in
  8980. irix5* | nonstopux*)
  8981. libsuff= shlibsuff=
  8982. ;;
  8983. *)
  8984. case $LD in # libtool.m4 will add one of these switches to LD
  8985. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8986. libsuff= shlibsuff= libmagic=32-bit;;
  8987. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8988. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8989. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8990. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8991. *) libsuff= shlibsuff= libmagic=never-match;;
  8992. esac
  8993. ;;
  8994. esac
  8995. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8996. shlibpath_overrides_runpath=no
  8997. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  8998. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  8999. hardcode_into_libs=yes
  9000. ;;
  9001. # No shared lib support for Linux oldld, aout, or coff.
  9002. linux*oldld* | linux*aout* | linux*coff*)
  9003. dynamic_linker=no
  9004. ;;
  9005. linux*android*)
  9006. version_type=none # Android doesn't support versioned libraries.
  9007. need_lib_prefix=no
  9008. need_version=no
  9009. library_names_spec='$libname$release$shared_ext'
  9010. soname_spec='$libname$release$shared_ext'
  9011. finish_cmds=
  9012. shlibpath_var=LD_LIBRARY_PATH
  9013. shlibpath_overrides_runpath=yes
  9014. # This implies no fast_install, which is unacceptable.
  9015. # Some rework will be needed to allow for fast_install
  9016. # before this can be enabled.
  9017. hardcode_into_libs=yes
  9018. dynamic_linker='Android linker'
  9019. # Don't embed -rpath directories since the linker doesn't support them.
  9020. hardcode_libdir_flag_spec='-L$libdir'
  9021. ;;
  9022. # This must be glibc/ELF.
  9023. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9024. version_type=linux # correct to gnu/linux during the next big refactor
  9025. need_lib_prefix=no
  9026. need_version=no
  9027. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9028. soname_spec='$libname$release$shared_ext$major'
  9029. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9030. shlibpath_var=LD_LIBRARY_PATH
  9031. shlibpath_overrides_runpath=no
  9032. # Some binutils ld are patched to set DT_RUNPATH
  9033. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9034. $as_echo_n "(cached) " >&6
  9035. else
  9036. lt_cv_shlibpath_overrides_runpath=no
  9037. save_LDFLAGS=$LDFLAGS
  9038. save_libdir=$libdir
  9039. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9040. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9041. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9042. /* end confdefs.h. */
  9043. int
  9044. main ()
  9045. {
  9046. ;
  9047. return 0;
  9048. }
  9049. _ACEOF
  9050. if ac_fn_c_try_link "$LINENO"; then :
  9051. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9052. lt_cv_shlibpath_overrides_runpath=yes
  9053. fi
  9054. fi
  9055. rm -f core conftest.err conftest.$ac_objext \
  9056. conftest$ac_exeext conftest.$ac_ext
  9057. LDFLAGS=$save_LDFLAGS
  9058. libdir=$save_libdir
  9059. fi
  9060. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9061. # This implies no fast_install, which is unacceptable.
  9062. # Some rework will be needed to allow for fast_install
  9063. # before this can be enabled.
  9064. hardcode_into_libs=yes
  9065. # Ideally, we could use ldconfig to report *all* directores which are
  9066. # searched for libraries, however this is still not possible. Aside from not
  9067. # being certain /sbin/ldconfig is available, command
  9068. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  9069. # even though it is searched at run-time. Try to do the best guess by
  9070. # appending ld.so.conf contents (and includes) to the search path.
  9071. if test -f /etc/ld.so.conf; then
  9072. 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' ' '`
  9073. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9074. fi
  9075. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9076. # powerpc, because MkLinux only supported shared libraries with the
  9077. # GNU dynamic linker. Since this was broken with cross compilers,
  9078. # most powerpc-linux boxes support dynamic linking these days and
  9079. # people can always --disable-shared, the test was removed, and we
  9080. # assume the GNU/Linux dynamic linker is in use.
  9081. dynamic_linker='GNU/Linux ld.so'
  9082. ;;
  9083. netbsdelf*-gnu)
  9084. version_type=linux
  9085. need_lib_prefix=no
  9086. need_version=no
  9087. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9088. soname_spec='${libname}${release}${shared_ext}$major'
  9089. shlibpath_var=LD_LIBRARY_PATH
  9090. shlibpath_overrides_runpath=no
  9091. hardcode_into_libs=yes
  9092. dynamic_linker='NetBSD ld.elf_so'
  9093. ;;
  9094. netbsd*)
  9095. version_type=sunos
  9096. need_lib_prefix=no
  9097. need_version=no
  9098. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9099. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9100. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9101. dynamic_linker='NetBSD (a.out) ld.so'
  9102. else
  9103. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9104. soname_spec='$libname$release$shared_ext$major'
  9105. dynamic_linker='NetBSD ld.elf_so'
  9106. fi
  9107. shlibpath_var=LD_LIBRARY_PATH
  9108. shlibpath_overrides_runpath=yes
  9109. hardcode_into_libs=yes
  9110. ;;
  9111. newsos6)
  9112. version_type=linux # correct to gnu/linux during the next big refactor
  9113. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9114. shlibpath_var=LD_LIBRARY_PATH
  9115. shlibpath_overrides_runpath=yes
  9116. ;;
  9117. *nto* | *qnx*)
  9118. version_type=qnx
  9119. need_lib_prefix=no
  9120. need_version=no
  9121. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9122. soname_spec='$libname$release$shared_ext$major'
  9123. shlibpath_var=LD_LIBRARY_PATH
  9124. shlibpath_overrides_runpath=no
  9125. hardcode_into_libs=yes
  9126. dynamic_linker='ldqnx.so'
  9127. ;;
  9128. openbsd* | bitrig*)
  9129. version_type=sunos
  9130. sys_lib_dlsearch_path_spec=/usr/lib
  9131. need_lib_prefix=no
  9132. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9133. need_version=no
  9134. else
  9135. need_version=yes
  9136. fi
  9137. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9138. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9139. shlibpath_var=LD_LIBRARY_PATH
  9140. shlibpath_overrides_runpath=yes
  9141. ;;
  9142. os2*)
  9143. libname_spec='$name'
  9144. version_type=windows
  9145. shrext_cmds=.dll
  9146. need_version=no
  9147. need_lib_prefix=no
  9148. # OS/2 can only load a DLL with a base name of 8 characters or less.
  9149. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  9150. v=$($ECHO $release$versuffix | tr -d .-);
  9151. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  9152. $ECHO $n$v`$shared_ext'
  9153. library_names_spec='${libname}_dll.$libext'
  9154. dynamic_linker='OS/2 ld.exe'
  9155. shlibpath_var=BEGINLIBPATH
  9156. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9157. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9158. postinstall_cmds='base_file=`basename \$file`~
  9159. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  9160. dldir=$destdir/`dirname \$dlpath`~
  9161. test -d \$dldir || mkdir -p \$dldir~
  9162. $install_prog $dir/$dlname \$dldir/$dlname~
  9163. chmod a+x \$dldir/$dlname~
  9164. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9165. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9166. fi'
  9167. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  9168. dlpath=$dir/\$dldll~
  9169. $RM \$dlpath'
  9170. ;;
  9171. osf3* | osf4* | osf5*)
  9172. version_type=osf
  9173. need_lib_prefix=no
  9174. need_version=no
  9175. soname_spec='$libname$release$shared_ext$major'
  9176. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9177. shlibpath_var=LD_LIBRARY_PATH
  9178. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9179. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9180. ;;
  9181. rdos*)
  9182. dynamic_linker=no
  9183. ;;
  9184. solaris*)
  9185. version_type=linux # correct to gnu/linux during the next big refactor
  9186. need_lib_prefix=no
  9187. need_version=no
  9188. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9189. soname_spec='$libname$release$shared_ext$major'
  9190. shlibpath_var=LD_LIBRARY_PATH
  9191. shlibpath_overrides_runpath=yes
  9192. hardcode_into_libs=yes
  9193. # ldd complains unless libraries are executable
  9194. postinstall_cmds='chmod +x $lib'
  9195. ;;
  9196. sunos4*)
  9197. version_type=sunos
  9198. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9199. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9200. shlibpath_var=LD_LIBRARY_PATH
  9201. shlibpath_overrides_runpath=yes
  9202. if test yes = "$with_gnu_ld"; then
  9203. need_lib_prefix=no
  9204. fi
  9205. need_version=yes
  9206. ;;
  9207. sysv4 | sysv4.3*)
  9208. version_type=linux # correct to gnu/linux during the next big refactor
  9209. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9210. soname_spec='$libname$release$shared_ext$major'
  9211. shlibpath_var=LD_LIBRARY_PATH
  9212. case $host_vendor in
  9213. sni)
  9214. shlibpath_overrides_runpath=no
  9215. need_lib_prefix=no
  9216. runpath_var=LD_RUN_PATH
  9217. ;;
  9218. siemens)
  9219. need_lib_prefix=no
  9220. ;;
  9221. motorola)
  9222. need_lib_prefix=no
  9223. need_version=no
  9224. shlibpath_overrides_runpath=no
  9225. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9226. ;;
  9227. esac
  9228. ;;
  9229. sysv4*MP*)
  9230. if test -d /usr/nec; then
  9231. version_type=linux # correct to gnu/linux during the next big refactor
  9232. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  9233. soname_spec='$libname$shared_ext.$major'
  9234. shlibpath_var=LD_LIBRARY_PATH
  9235. fi
  9236. ;;
  9237. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9238. version_type=sco
  9239. need_lib_prefix=no
  9240. need_version=no
  9241. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  9242. soname_spec='$libname$release$shared_ext$major'
  9243. shlibpath_var=LD_LIBRARY_PATH
  9244. shlibpath_overrides_runpath=yes
  9245. hardcode_into_libs=yes
  9246. if test yes = "$with_gnu_ld"; then
  9247. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9248. else
  9249. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9250. case $host_os in
  9251. sco3.2v5*)
  9252. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9253. ;;
  9254. esac
  9255. fi
  9256. sys_lib_dlsearch_path_spec='/usr/lib'
  9257. ;;
  9258. tpf*)
  9259. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9260. version_type=linux # correct to gnu/linux during the next big refactor
  9261. need_lib_prefix=no
  9262. need_version=no
  9263. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9264. shlibpath_var=LD_LIBRARY_PATH
  9265. shlibpath_overrides_runpath=no
  9266. hardcode_into_libs=yes
  9267. ;;
  9268. uts4*)
  9269. version_type=linux # correct to gnu/linux during the next big refactor
  9270. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9271. soname_spec='$libname$release$shared_ext$major'
  9272. shlibpath_var=LD_LIBRARY_PATH
  9273. ;;
  9274. *)
  9275. dynamic_linker=no
  9276. ;;
  9277. esac
  9278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9279. $as_echo "$dynamic_linker" >&6; }
  9280. test no = "$dynamic_linker" && can_build_shared=no
  9281. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9282. if test yes = "$GCC"; then
  9283. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9284. fi
  9285. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  9286. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  9287. fi
  9288. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  9289. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  9290. fi
  9291. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  9292. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  9293. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  9294. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  9295. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  9296. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  9297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9298. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9299. hardcode_action=
  9300. if test -n "$hardcode_libdir_flag_spec" ||
  9301. test -n "$runpath_var" ||
  9302. test yes = "$hardcode_automatic"; then
  9303. # We can hardcode non-existent directories.
  9304. if test no != "$hardcode_direct" &&
  9305. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9306. # have to relink, otherwise we might link with an installed library
  9307. # when we should be linking with a yet-to-be-installed one
  9308. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  9309. test no != "$hardcode_minus_L"; then
  9310. # Linking always hardcodes the temporary library directory.
  9311. hardcode_action=relink
  9312. else
  9313. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9314. hardcode_action=immediate
  9315. fi
  9316. else
  9317. # We cannot hardcode anything, or else we can only hardcode existing
  9318. # directories.
  9319. hardcode_action=unsupported
  9320. fi
  9321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9322. $as_echo "$hardcode_action" >&6; }
  9323. if test relink = "$hardcode_action" ||
  9324. test yes = "$inherit_rpath"; then
  9325. # Fast installation is not supported
  9326. enable_fast_install=no
  9327. elif test yes = "$shlibpath_overrides_runpath" ||
  9328. test no = "$enable_shared"; then
  9329. # Fast installation is not necessary
  9330. enable_fast_install=needless
  9331. fi
  9332. if test yes != "$enable_dlopen"; then
  9333. enable_dlopen=unknown
  9334. enable_dlopen_self=unknown
  9335. enable_dlopen_self_static=unknown
  9336. else
  9337. lt_cv_dlopen=no
  9338. lt_cv_dlopen_libs=
  9339. case $host_os in
  9340. beos*)
  9341. lt_cv_dlopen=load_add_on
  9342. lt_cv_dlopen_libs=
  9343. lt_cv_dlopen_self=yes
  9344. ;;
  9345. mingw* | pw32* | cegcc*)
  9346. lt_cv_dlopen=LoadLibrary
  9347. lt_cv_dlopen_libs=
  9348. ;;
  9349. cygwin*)
  9350. lt_cv_dlopen=dlopen
  9351. lt_cv_dlopen_libs=
  9352. ;;
  9353. darwin*)
  9354. # if libdl is installed we need to link against it
  9355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9356. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9357. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9358. $as_echo_n "(cached) " >&6
  9359. else
  9360. ac_check_lib_save_LIBS=$LIBS
  9361. LIBS="-ldl $LIBS"
  9362. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9363. /* end confdefs.h. */
  9364. /* Override any GCC internal prototype to avoid an error.
  9365. Use char because int might match the return type of a GCC
  9366. builtin and then its argument prototype would still apply. */
  9367. #ifdef __cplusplus
  9368. extern "C"
  9369. #endif
  9370. char dlopen ();
  9371. int
  9372. main ()
  9373. {
  9374. return dlopen ();
  9375. ;
  9376. return 0;
  9377. }
  9378. _ACEOF
  9379. if ac_fn_c_try_link "$LINENO"; then :
  9380. ac_cv_lib_dl_dlopen=yes
  9381. else
  9382. ac_cv_lib_dl_dlopen=no
  9383. fi
  9384. rm -f core conftest.err conftest.$ac_objext \
  9385. conftest$ac_exeext conftest.$ac_ext
  9386. LIBS=$ac_check_lib_save_LIBS
  9387. fi
  9388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9389. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9390. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9391. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  9392. else
  9393. lt_cv_dlopen=dyld
  9394. lt_cv_dlopen_libs=
  9395. lt_cv_dlopen_self=yes
  9396. fi
  9397. ;;
  9398. tpf*)
  9399. # Don't try to run any link tests for TPF. We know it's impossible
  9400. # because TPF is a cross-compiler, and we know how we open DSOs.
  9401. lt_cv_dlopen=dlopen
  9402. lt_cv_dlopen_libs=
  9403. lt_cv_dlopen_self=no
  9404. ;;
  9405. *)
  9406. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9407. if test "x$ac_cv_func_shl_load" = xyes; then :
  9408. lt_cv_dlopen=shl_load
  9409. else
  9410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9411. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9412. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9413. $as_echo_n "(cached) " >&6
  9414. else
  9415. ac_check_lib_save_LIBS=$LIBS
  9416. LIBS="-ldld $LIBS"
  9417. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9418. /* end confdefs.h. */
  9419. /* Override any GCC internal prototype to avoid an error.
  9420. Use char because int might match the return type of a GCC
  9421. builtin and then its argument prototype would still apply. */
  9422. #ifdef __cplusplus
  9423. extern "C"
  9424. #endif
  9425. char shl_load ();
  9426. int
  9427. main ()
  9428. {
  9429. return shl_load ();
  9430. ;
  9431. return 0;
  9432. }
  9433. _ACEOF
  9434. if ac_fn_c_try_link "$LINENO"; then :
  9435. ac_cv_lib_dld_shl_load=yes
  9436. else
  9437. ac_cv_lib_dld_shl_load=no
  9438. fi
  9439. rm -f core conftest.err conftest.$ac_objext \
  9440. conftest$ac_exeext conftest.$ac_ext
  9441. LIBS=$ac_check_lib_save_LIBS
  9442. fi
  9443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9444. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9445. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9446. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  9447. else
  9448. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9449. if test "x$ac_cv_func_dlopen" = xyes; then :
  9450. lt_cv_dlopen=dlopen
  9451. else
  9452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9453. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9454. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9455. $as_echo_n "(cached) " >&6
  9456. else
  9457. ac_check_lib_save_LIBS=$LIBS
  9458. LIBS="-ldl $LIBS"
  9459. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9460. /* end confdefs.h. */
  9461. /* Override any GCC internal prototype to avoid an error.
  9462. Use char because int might match the return type of a GCC
  9463. builtin and then its argument prototype would still apply. */
  9464. #ifdef __cplusplus
  9465. extern "C"
  9466. #endif
  9467. char dlopen ();
  9468. int
  9469. main ()
  9470. {
  9471. return dlopen ();
  9472. ;
  9473. return 0;
  9474. }
  9475. _ACEOF
  9476. if ac_fn_c_try_link "$LINENO"; then :
  9477. ac_cv_lib_dl_dlopen=yes
  9478. else
  9479. ac_cv_lib_dl_dlopen=no
  9480. fi
  9481. rm -f core conftest.err conftest.$ac_objext \
  9482. conftest$ac_exeext conftest.$ac_ext
  9483. LIBS=$ac_check_lib_save_LIBS
  9484. fi
  9485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9486. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9487. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9488. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  9489. else
  9490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9491. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9492. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9493. $as_echo_n "(cached) " >&6
  9494. else
  9495. ac_check_lib_save_LIBS=$LIBS
  9496. LIBS="-lsvld $LIBS"
  9497. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9498. /* end confdefs.h. */
  9499. /* Override any GCC internal prototype to avoid an error.
  9500. Use char because int might match the return type of a GCC
  9501. builtin and then its argument prototype would still apply. */
  9502. #ifdef __cplusplus
  9503. extern "C"
  9504. #endif
  9505. char dlopen ();
  9506. int
  9507. main ()
  9508. {
  9509. return dlopen ();
  9510. ;
  9511. return 0;
  9512. }
  9513. _ACEOF
  9514. if ac_fn_c_try_link "$LINENO"; then :
  9515. ac_cv_lib_svld_dlopen=yes
  9516. else
  9517. ac_cv_lib_svld_dlopen=no
  9518. fi
  9519. rm -f core conftest.err conftest.$ac_objext \
  9520. conftest$ac_exeext conftest.$ac_ext
  9521. LIBS=$ac_check_lib_save_LIBS
  9522. fi
  9523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9524. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9525. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9526. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  9527. else
  9528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9529. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9530. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9531. $as_echo_n "(cached) " >&6
  9532. else
  9533. ac_check_lib_save_LIBS=$LIBS
  9534. LIBS="-ldld $LIBS"
  9535. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9536. /* end confdefs.h. */
  9537. /* Override any GCC internal prototype to avoid an error.
  9538. Use char because int might match the return type of a GCC
  9539. builtin and then its argument prototype would still apply. */
  9540. #ifdef __cplusplus
  9541. extern "C"
  9542. #endif
  9543. char dld_link ();
  9544. int
  9545. main ()
  9546. {
  9547. return dld_link ();
  9548. ;
  9549. return 0;
  9550. }
  9551. _ACEOF
  9552. if ac_fn_c_try_link "$LINENO"; then :
  9553. ac_cv_lib_dld_dld_link=yes
  9554. else
  9555. ac_cv_lib_dld_dld_link=no
  9556. fi
  9557. rm -f core conftest.err conftest.$ac_objext \
  9558. conftest$ac_exeext conftest.$ac_ext
  9559. LIBS=$ac_check_lib_save_LIBS
  9560. fi
  9561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9562. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9563. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9564. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  9565. fi
  9566. fi
  9567. fi
  9568. fi
  9569. fi
  9570. fi
  9571. ;;
  9572. esac
  9573. if test no = "$lt_cv_dlopen"; then
  9574. enable_dlopen=no
  9575. else
  9576. enable_dlopen=yes
  9577. fi
  9578. case $lt_cv_dlopen in
  9579. dlopen)
  9580. save_CPPFLAGS=$CPPFLAGS
  9581. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9582. save_LDFLAGS=$LDFLAGS
  9583. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9584. save_LIBS=$LIBS
  9585. LIBS="$lt_cv_dlopen_libs $LIBS"
  9586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9587. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9588. if ${lt_cv_dlopen_self+:} false; then :
  9589. $as_echo_n "(cached) " >&6
  9590. else
  9591. if test yes = "$cross_compiling"; then :
  9592. lt_cv_dlopen_self=cross
  9593. else
  9594. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9595. lt_status=$lt_dlunknown
  9596. cat > conftest.$ac_ext <<_LT_EOF
  9597. #line $LINENO "configure"
  9598. #include "confdefs.h"
  9599. #if HAVE_DLFCN_H
  9600. #include <dlfcn.h>
  9601. #endif
  9602. #include <stdio.h>
  9603. #ifdef RTLD_GLOBAL
  9604. # define LT_DLGLOBAL RTLD_GLOBAL
  9605. #else
  9606. # ifdef DL_GLOBAL
  9607. # define LT_DLGLOBAL DL_GLOBAL
  9608. # else
  9609. # define LT_DLGLOBAL 0
  9610. # endif
  9611. #endif
  9612. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9613. find out it does not work in some platform. */
  9614. #ifndef LT_DLLAZY_OR_NOW
  9615. # ifdef RTLD_LAZY
  9616. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9617. # else
  9618. # ifdef DL_LAZY
  9619. # define LT_DLLAZY_OR_NOW DL_LAZY
  9620. # else
  9621. # ifdef RTLD_NOW
  9622. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9623. # else
  9624. # ifdef DL_NOW
  9625. # define LT_DLLAZY_OR_NOW DL_NOW
  9626. # else
  9627. # define LT_DLLAZY_OR_NOW 0
  9628. # endif
  9629. # endif
  9630. # endif
  9631. # endif
  9632. #endif
  9633. /* When -fvisibility=hidden is used, assume the code has been annotated
  9634. correspondingly for the symbols needed. */
  9635. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9636. int fnord () __attribute__((visibility("default")));
  9637. #endif
  9638. int fnord () { return 42; }
  9639. int main ()
  9640. {
  9641. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9642. int status = $lt_dlunknown;
  9643. if (self)
  9644. {
  9645. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9646. else
  9647. {
  9648. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9649. else puts (dlerror ());
  9650. }
  9651. /* dlclose (self); */
  9652. }
  9653. else
  9654. puts (dlerror ());
  9655. return status;
  9656. }
  9657. _LT_EOF
  9658. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9659. (eval $ac_link) 2>&5
  9660. ac_status=$?
  9661. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9662. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  9663. (./conftest; exit; ) >&5 2>/dev/null
  9664. lt_status=$?
  9665. case x$lt_status in
  9666. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9667. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9668. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9669. esac
  9670. else :
  9671. # compilation failed
  9672. lt_cv_dlopen_self=no
  9673. fi
  9674. fi
  9675. rm -fr conftest*
  9676. fi
  9677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9678. $as_echo "$lt_cv_dlopen_self" >&6; }
  9679. if test yes = "$lt_cv_dlopen_self"; then
  9680. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9682. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9683. if ${lt_cv_dlopen_self_static+:} false; then :
  9684. $as_echo_n "(cached) " >&6
  9685. else
  9686. if test yes = "$cross_compiling"; then :
  9687. lt_cv_dlopen_self_static=cross
  9688. else
  9689. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9690. lt_status=$lt_dlunknown
  9691. cat > conftest.$ac_ext <<_LT_EOF
  9692. #line $LINENO "configure"
  9693. #include "confdefs.h"
  9694. #if HAVE_DLFCN_H
  9695. #include <dlfcn.h>
  9696. #endif
  9697. #include <stdio.h>
  9698. #ifdef RTLD_GLOBAL
  9699. # define LT_DLGLOBAL RTLD_GLOBAL
  9700. #else
  9701. # ifdef DL_GLOBAL
  9702. # define LT_DLGLOBAL DL_GLOBAL
  9703. # else
  9704. # define LT_DLGLOBAL 0
  9705. # endif
  9706. #endif
  9707. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9708. find out it does not work in some platform. */
  9709. #ifndef LT_DLLAZY_OR_NOW
  9710. # ifdef RTLD_LAZY
  9711. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9712. # else
  9713. # ifdef DL_LAZY
  9714. # define LT_DLLAZY_OR_NOW DL_LAZY
  9715. # else
  9716. # ifdef RTLD_NOW
  9717. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9718. # else
  9719. # ifdef DL_NOW
  9720. # define LT_DLLAZY_OR_NOW DL_NOW
  9721. # else
  9722. # define LT_DLLAZY_OR_NOW 0
  9723. # endif
  9724. # endif
  9725. # endif
  9726. # endif
  9727. #endif
  9728. /* When -fvisibility=hidden is used, assume the code has been annotated
  9729. correspondingly for the symbols needed. */
  9730. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9731. int fnord () __attribute__((visibility("default")));
  9732. #endif
  9733. int fnord () { return 42; }
  9734. int main ()
  9735. {
  9736. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9737. int status = $lt_dlunknown;
  9738. if (self)
  9739. {
  9740. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9741. else
  9742. {
  9743. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9744. else puts (dlerror ());
  9745. }
  9746. /* dlclose (self); */
  9747. }
  9748. else
  9749. puts (dlerror ());
  9750. return status;
  9751. }
  9752. _LT_EOF
  9753. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9754. (eval $ac_link) 2>&5
  9755. ac_status=$?
  9756. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9757. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  9758. (./conftest; exit; ) >&5 2>/dev/null
  9759. lt_status=$?
  9760. case x$lt_status in
  9761. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9762. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9763. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9764. esac
  9765. else :
  9766. # compilation failed
  9767. lt_cv_dlopen_self_static=no
  9768. fi
  9769. fi
  9770. rm -fr conftest*
  9771. fi
  9772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9773. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9774. fi
  9775. CPPFLAGS=$save_CPPFLAGS
  9776. LDFLAGS=$save_LDFLAGS
  9777. LIBS=$save_LIBS
  9778. ;;
  9779. esac
  9780. case $lt_cv_dlopen_self in
  9781. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9782. *) enable_dlopen_self=unknown ;;
  9783. esac
  9784. case $lt_cv_dlopen_self_static in
  9785. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9786. *) enable_dlopen_self_static=unknown ;;
  9787. esac
  9788. fi
  9789. striplib=
  9790. old_striplib=
  9791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9792. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9793. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9794. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9795. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9797. $as_echo "yes" >&6; }
  9798. else
  9799. # FIXME - insert some real tests, host_os isn't really good enough
  9800. case $host_os in
  9801. darwin*)
  9802. if test -n "$STRIP"; then
  9803. striplib="$STRIP -x"
  9804. old_striplib="$STRIP -S"
  9805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9806. $as_echo "yes" >&6; }
  9807. else
  9808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9809. $as_echo "no" >&6; }
  9810. fi
  9811. ;;
  9812. *)
  9813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9814. $as_echo "no" >&6; }
  9815. ;;
  9816. esac
  9817. fi
  9818. # Report what library types will actually be built
  9819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9820. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9822. $as_echo "$can_build_shared" >&6; }
  9823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9824. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9825. test no = "$can_build_shared" && enable_shared=no
  9826. # On AIX, shared libraries and static libraries use the same namespace, and
  9827. # are all built from PIC.
  9828. case $host_os in
  9829. aix3*)
  9830. test yes = "$enable_shared" && enable_static=no
  9831. if test -n "$RANLIB"; then
  9832. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9833. postinstall_cmds='$RANLIB $lib'
  9834. fi
  9835. ;;
  9836. aix[4-9]*)
  9837. if test ia64 != "$host_cpu"; then
  9838. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  9839. yes,aix,yes) ;; # shared object as lib.so file only
  9840. yes,svr4,*) ;; # shared object as lib.so archive member only
  9841. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  9842. esac
  9843. fi
  9844. ;;
  9845. esac
  9846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9847. $as_echo "$enable_shared" >&6; }
  9848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9849. $as_echo_n "checking whether to build static libraries... " >&6; }
  9850. # Make sure either enable_shared or enable_static is yes.
  9851. test yes = "$enable_shared" || enable_static=yes
  9852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9853. $as_echo "$enable_static" >&6; }
  9854. fi
  9855. ac_ext=c
  9856. ac_cpp='$CPP $CPPFLAGS'
  9857. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9858. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9859. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9860. CC=$lt_save_CC
  9861. ac_config_commands="$ac_config_commands libtool"
  9862. # Only expand once:
  9863. am__api_version='1.15'
  9864. # Find a good install program. We prefer a C program (faster),
  9865. # so one script is as good as another. But avoid the broken or
  9866. # incompatible versions:
  9867. # SysV /etc/install, /usr/sbin/install
  9868. # SunOS /usr/etc/install
  9869. # IRIX /sbin/install
  9870. # AIX /bin/install
  9871. # AmigaOS /C/install, which installs bootblocks on floppy discs
  9872. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  9873. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  9874. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  9875. # OS/2's system install, which has a completely different semantic
  9876. # ./install, which can be erroneously created by make from ./install.sh.
  9877. # Reject install programs that cannot install multiple files.
  9878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  9879. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  9880. if test -z "$INSTALL"; then
  9881. if ${ac_cv_path_install+:} false; then :
  9882. $as_echo_n "(cached) " >&6
  9883. else
  9884. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9885. for as_dir in $PATH
  9886. do
  9887. IFS=$as_save_IFS
  9888. test -z "$as_dir" && as_dir=.
  9889. # Account for people who put trailing slashes in PATH elements.
  9890. case $as_dir/ in #((
  9891. ./ | .// | /[cC]/* | \
  9892. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  9893. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  9894. /usr/ucb/* ) ;;
  9895. *)
  9896. # OSF1 and SCO ODT 3.0 have their own names for install.
  9897. # Don't use installbsd from OSF since it installs stuff as root
  9898. # by default.
  9899. for ac_prog in ginstall scoinst install; do
  9900. for ac_exec_ext in '' $ac_executable_extensions; do
  9901. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  9902. if test $ac_prog = install &&
  9903. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  9904. # AIX install. It has an incompatible calling convention.
  9905. :
  9906. elif test $ac_prog = install &&
  9907. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  9908. # program-specific install script used by HP pwplus--don't use.
  9909. :
  9910. else
  9911. rm -rf conftest.one conftest.two conftest.dir
  9912. echo one > conftest.one
  9913. echo two > conftest.two
  9914. mkdir conftest.dir
  9915. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  9916. test -s conftest.one && test -s conftest.two &&
  9917. test -s conftest.dir/conftest.one &&
  9918. test -s conftest.dir/conftest.two
  9919. then
  9920. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  9921. break 3
  9922. fi
  9923. fi
  9924. fi
  9925. done
  9926. done
  9927. ;;
  9928. esac
  9929. done
  9930. IFS=$as_save_IFS
  9931. rm -rf conftest.one conftest.two conftest.dir
  9932. fi
  9933. if test "${ac_cv_path_install+set}" = set; then
  9934. INSTALL=$ac_cv_path_install
  9935. else
  9936. # As a last resort, use the slow shell script. Don't cache a
  9937. # value for INSTALL within a source directory, because that will
  9938. # break other packages using the cache if that directory is
  9939. # removed, or if the value is a relative name.
  9940. INSTALL=$ac_install_sh
  9941. fi
  9942. fi
  9943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  9944. $as_echo "$INSTALL" >&6; }
  9945. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  9946. # It thinks the first close brace ends the variable substitution.
  9947. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  9948. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  9949. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  9950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  9951. $as_echo_n "checking whether build environment is sane... " >&6; }
  9952. # Reject unsafe characters in $srcdir or the absolute working directory
  9953. # name. Accept space and tab only in the latter.
  9954. am_lf='
  9955. '
  9956. case `pwd` in
  9957. *[\\\"\#\$\&\'\`$am_lf]*)
  9958. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  9959. esac
  9960. case $srcdir in
  9961. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  9962. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  9963. esac
  9964. # Do 'set' in a subshell so we don't clobber the current shell's
  9965. # arguments. Must try -L first in case configure is actually a
  9966. # symlink; some systems play weird games with the mod time of symlinks
  9967. # (eg FreeBSD returns the mod time of the symlink's containing
  9968. # directory).
  9969. if (
  9970. am_has_slept=no
  9971. for am_try in 1 2; do
  9972. echo "timestamp, slept: $am_has_slept" > conftest.file
  9973. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  9974. if test "$*" = "X"; then
  9975. # -L didn't work.
  9976. set X `ls -t "$srcdir/configure" conftest.file`
  9977. fi
  9978. if test "$*" != "X $srcdir/configure conftest.file" \
  9979. && test "$*" != "X conftest.file $srcdir/configure"; then
  9980. # If neither matched, then we have a broken ls. This can happen
  9981. # if, for instance, CONFIG_SHELL is bash and it inherits a
  9982. # broken ls alias from the environment. This has actually
  9983. # happened. Such a system could not be considered "sane".
  9984. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  9985. alias in your environment" "$LINENO" 5
  9986. fi
  9987. if test "$2" = conftest.file || test $am_try -eq 2; then
  9988. break
  9989. fi
  9990. # Just in case.
  9991. sleep 1
  9992. am_has_slept=yes
  9993. done
  9994. test "$2" = conftest.file
  9995. )
  9996. then
  9997. # Ok.
  9998. :
  9999. else
  10000. as_fn_error $? "newly created file is older than distributed files!
  10001. Check your system clock" "$LINENO" 5
  10002. fi
  10003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10004. $as_echo "yes" >&6; }
  10005. # If we didn't sleep, we still need to ensure time stamps of config.status and
  10006. # generated files are strictly newer.
  10007. am_sleep_pid=
  10008. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  10009. ( sleep 1 ) &
  10010. am_sleep_pid=$!
  10011. fi
  10012. rm -f conftest.file
  10013. test "$program_prefix" != NONE &&
  10014. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  10015. # Use a double $ so make ignores it.
  10016. test "$program_suffix" != NONE &&
  10017. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  10018. # Double any \ or $.
  10019. # By default was `s,x,x', remove it if useless.
  10020. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  10021. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  10022. if test x"${MISSING+set}" != xset; then
  10023. case $am_aux_dir in
  10024. *\ * | *\ *)
  10025. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  10026. *)
  10027. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  10028. esac
  10029. fi
  10030. # Use eval to expand $SHELL
  10031. if eval "$MISSING --is-lightweight"; then
  10032. am_missing_run="$MISSING "
  10033. else
  10034. am_missing_run=
  10035. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  10036. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  10037. fi
  10038. if test x"${install_sh+set}" != xset; then
  10039. case $am_aux_dir in
  10040. *\ * | *\ *)
  10041. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  10042. *)
  10043. install_sh="\${SHELL} $am_aux_dir/install-sh"
  10044. esac
  10045. fi
  10046. # Installed binaries are usually stripped using 'strip' when the user
  10047. # run "make install-strip". However 'strip' might not be the right
  10048. # tool to use in cross-compilation environments, therefore Automake
  10049. # will honor the 'STRIP' environment variable to overrule this program.
  10050. if test "$cross_compiling" != no; then
  10051. if test -n "$ac_tool_prefix"; then
  10052. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  10053. set dummy ${ac_tool_prefix}strip; ac_word=$2
  10054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10055. $as_echo_n "checking for $ac_word... " >&6; }
  10056. if ${ac_cv_prog_STRIP+:} false; then :
  10057. $as_echo_n "(cached) " >&6
  10058. else
  10059. if test -n "$STRIP"; then
  10060. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  10061. else
  10062. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10063. for as_dir in $PATH
  10064. do
  10065. IFS=$as_save_IFS
  10066. test -z "$as_dir" && as_dir=.
  10067. for ac_exec_ext in '' $ac_executable_extensions; do
  10068. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10069. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  10070. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10071. break 2
  10072. fi
  10073. done
  10074. done
  10075. IFS=$as_save_IFS
  10076. fi
  10077. fi
  10078. STRIP=$ac_cv_prog_STRIP
  10079. if test -n "$STRIP"; then
  10080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  10081. $as_echo "$STRIP" >&6; }
  10082. else
  10083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10084. $as_echo "no" >&6; }
  10085. fi
  10086. fi
  10087. if test -z "$ac_cv_prog_STRIP"; then
  10088. ac_ct_STRIP=$STRIP
  10089. # Extract the first word of "strip", so it can be a program name with args.
  10090. set dummy strip; ac_word=$2
  10091. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10092. $as_echo_n "checking for $ac_word... " >&6; }
  10093. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  10094. $as_echo_n "(cached) " >&6
  10095. else
  10096. if test -n "$ac_ct_STRIP"; then
  10097. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  10098. else
  10099. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10100. for as_dir in $PATH
  10101. do
  10102. IFS=$as_save_IFS
  10103. test -z "$as_dir" && as_dir=.
  10104. for ac_exec_ext in '' $ac_executable_extensions; do
  10105. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10106. ac_cv_prog_ac_ct_STRIP="strip"
  10107. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10108. break 2
  10109. fi
  10110. done
  10111. done
  10112. IFS=$as_save_IFS
  10113. fi
  10114. fi
  10115. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  10116. if test -n "$ac_ct_STRIP"; then
  10117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  10118. $as_echo "$ac_ct_STRIP" >&6; }
  10119. else
  10120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10121. $as_echo "no" >&6; }
  10122. fi
  10123. if test "x$ac_ct_STRIP" = x; then
  10124. STRIP=":"
  10125. else
  10126. case $cross_compiling:$ac_tool_warned in
  10127. yes:)
  10128. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10129. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10130. ac_tool_warned=yes ;;
  10131. esac
  10132. STRIP=$ac_ct_STRIP
  10133. fi
  10134. else
  10135. STRIP="$ac_cv_prog_STRIP"
  10136. fi
  10137. fi
  10138. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  10139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  10140. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  10141. if test -z "$MKDIR_P"; then
  10142. if ${ac_cv_path_mkdir+:} false; then :
  10143. $as_echo_n "(cached) " >&6
  10144. else
  10145. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10146. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  10147. do
  10148. IFS=$as_save_IFS
  10149. test -z "$as_dir" && as_dir=.
  10150. for ac_prog in mkdir gmkdir; do
  10151. for ac_exec_ext in '' $ac_executable_extensions; do
  10152. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  10153. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  10154. 'mkdir (GNU coreutils) '* | \
  10155. 'mkdir (coreutils) '* | \
  10156. 'mkdir (fileutils) '4.1*)
  10157. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  10158. break 3;;
  10159. esac
  10160. done
  10161. done
  10162. done
  10163. IFS=$as_save_IFS
  10164. fi
  10165. test -d ./--version && rmdir ./--version
  10166. if test "${ac_cv_path_mkdir+set}" = set; then
  10167. MKDIR_P="$ac_cv_path_mkdir -p"
  10168. else
  10169. # As a last resort, use the slow shell script. Don't cache a
  10170. # value for MKDIR_P within a source directory, because that will
  10171. # break other packages using the cache if that directory is
  10172. # removed, or if the value is a relative name.
  10173. MKDIR_P="$ac_install_sh -d"
  10174. fi
  10175. fi
  10176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  10177. $as_echo "$MKDIR_P" >&6; }
  10178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  10179. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  10180. set x ${MAKE-make}
  10181. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  10182. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  10183. $as_echo_n "(cached) " >&6
  10184. else
  10185. cat >conftest.make <<\_ACEOF
  10186. SHELL = /bin/sh
  10187. all:
  10188. @echo '@@@%%%=$(MAKE)=@@@%%%'
  10189. _ACEOF
  10190. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  10191. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  10192. *@@@%%%=?*=@@@%%%*)
  10193. eval ac_cv_prog_make_${ac_make}_set=yes;;
  10194. *)
  10195. eval ac_cv_prog_make_${ac_make}_set=no;;
  10196. esac
  10197. rm -f conftest.make
  10198. fi
  10199. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  10200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10201. $as_echo "yes" >&6; }
  10202. SET_MAKE=
  10203. else
  10204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10205. $as_echo "no" >&6; }
  10206. SET_MAKE="MAKE=${MAKE-make}"
  10207. fi
  10208. rm -rf .tst 2>/dev/null
  10209. mkdir .tst 2>/dev/null
  10210. if test -d .tst; then
  10211. am__leading_dot=.
  10212. else
  10213. am__leading_dot=_
  10214. fi
  10215. rmdir .tst 2>/dev/null
  10216. DEPDIR="${am__leading_dot}deps"
  10217. ac_config_commands="$ac_config_commands depfiles"
  10218. am_make=${MAKE-make}
  10219. cat > confinc << 'END'
  10220. am__doit:
  10221. @echo this is the am__doit target
  10222. .PHONY: am__doit
  10223. END
  10224. # If we don't find an include directive, just comment out the code.
  10225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  10226. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  10227. am__include="#"
  10228. am__quote=
  10229. _am_result=none
  10230. # First try GNU make style include.
  10231. echo "include confinc" > confmf
  10232. # Ignore all kinds of additional output from 'make'.
  10233. case `$am_make -s -f confmf 2> /dev/null` in #(
  10234. *the\ am__doit\ target*)
  10235. am__include=include
  10236. am__quote=
  10237. _am_result=GNU
  10238. ;;
  10239. esac
  10240. # Now try BSD make style include.
  10241. if test "$am__include" = "#"; then
  10242. echo '.include "confinc"' > confmf
  10243. case `$am_make -s -f confmf 2> /dev/null` in #(
  10244. *the\ am__doit\ target*)
  10245. am__include=.include
  10246. am__quote="\""
  10247. _am_result=BSD
  10248. ;;
  10249. esac
  10250. fi
  10251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  10252. $as_echo "$_am_result" >&6; }
  10253. rm -f confinc confmf
  10254. # Check whether --enable-dependency-tracking was given.
  10255. if test "${enable_dependency_tracking+set}" = set; then :
  10256. enableval=$enable_dependency_tracking;
  10257. fi
  10258. if test "x$enable_dependency_tracking" != xno; then
  10259. am_depcomp="$ac_aux_dir/depcomp"
  10260. AMDEPBACKSLASH='\'
  10261. am__nodep='_no'
  10262. fi
  10263. if test "x$enable_dependency_tracking" != xno; then
  10264. AMDEP_TRUE=
  10265. AMDEP_FALSE='#'
  10266. else
  10267. AMDEP_TRUE='#'
  10268. AMDEP_FALSE=
  10269. fi
  10270. # Check whether --enable-silent-rules was given.
  10271. if test "${enable_silent_rules+set}" = set; then :
  10272. enableval=$enable_silent_rules;
  10273. fi
  10274. case $enable_silent_rules in # (((
  10275. yes) AM_DEFAULT_VERBOSITY=0;;
  10276. no) AM_DEFAULT_VERBOSITY=1;;
  10277. *) AM_DEFAULT_VERBOSITY=1;;
  10278. esac
  10279. am_make=${MAKE-make}
  10280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  10281. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  10282. if ${am_cv_make_support_nested_variables+:} false; then :
  10283. $as_echo_n "(cached) " >&6
  10284. else
  10285. if $as_echo 'TRUE=$(BAR$(V))
  10286. BAR0=false
  10287. BAR1=true
  10288. V=1
  10289. am__doit:
  10290. @$(TRUE)
  10291. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  10292. am_cv_make_support_nested_variables=yes
  10293. else
  10294. am_cv_make_support_nested_variables=no
  10295. fi
  10296. fi
  10297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  10298. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  10299. if test $am_cv_make_support_nested_variables = yes; then
  10300. AM_V='$(V)'
  10301. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  10302. else
  10303. AM_V=$AM_DEFAULT_VERBOSITY
  10304. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  10305. fi
  10306. AM_BACKSLASH='\'
  10307. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  10308. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  10309. # is not polluted with repeated "-I."
  10310. am__isrc=' -I$(srcdir)'
  10311. # test to see if srcdir already configured
  10312. if test -f $srcdir/config.status; then
  10313. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  10314. fi
  10315. fi
  10316. # test whether we have cygpath
  10317. if test -z "$CYGPATH_W"; then
  10318. if (cygpath --version) >/dev/null 2>/dev/null; then
  10319. CYGPATH_W='cygpath -w'
  10320. else
  10321. CYGPATH_W=echo
  10322. fi
  10323. fi
  10324. # Define the identity of the package.
  10325. PACKAGE='tpm2-tools'
  10326. VERSION='5.1'
  10327. cat >>confdefs.h <<_ACEOF
  10328. #define PACKAGE "$PACKAGE"
  10329. _ACEOF
  10330. cat >>confdefs.h <<_ACEOF
  10331. #define VERSION "$VERSION"
  10332. _ACEOF
  10333. # Some tools Automake needs.
  10334. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  10335. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  10336. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  10337. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  10338. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  10339. # For better backward compatibility. To be removed once Automake 1.9.x
  10340. # dies out for good. For more background, see:
  10341. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  10342. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  10343. mkdir_p='$(MKDIR_P)'
  10344. # We need awk for the "check" target (and possibly the TAP driver). The
  10345. # system "awk" is bad on some platforms.
  10346. # Always define AMTAR for backward compatibility. Yes, it's still used
  10347. # in the wild :-( We should find a proper way to deprecate it ...
  10348. AMTAR='$${TAR-tar}'
  10349. # We'll loop over all known methods to create a tar archive until one works.
  10350. _am_tools='gnutar pax cpio none'
  10351. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  10352. depcc="$CC" am_compiler_list=
  10353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  10354. $as_echo_n "checking dependency style of $depcc... " >&6; }
  10355. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  10356. $as_echo_n "(cached) " >&6
  10357. else
  10358. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  10359. # We make a subdir and do the tests there. Otherwise we can end up
  10360. # making bogus files that we don't know about and never remove. For
  10361. # instance it was reported that on HP-UX the gcc test will end up
  10362. # making a dummy file named 'D' -- because '-MD' means "put the output
  10363. # in D".
  10364. rm -rf conftest.dir
  10365. mkdir conftest.dir
  10366. # Copy depcomp to subdir because otherwise we won't find it if we're
  10367. # using a relative directory.
  10368. cp "$am_depcomp" conftest.dir
  10369. cd conftest.dir
  10370. # We will build objects and dependencies in a subdirectory because
  10371. # it helps to detect inapplicable dependency modes. For instance
  10372. # both Tru64's cc and ICC support -MD to output dependencies as a
  10373. # side effect of compilation, but ICC will put the dependencies in
  10374. # the current directory while Tru64 will put them in the object
  10375. # directory.
  10376. mkdir sub
  10377. am_cv_CC_dependencies_compiler_type=none
  10378. if test "$am_compiler_list" = ""; then
  10379. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  10380. fi
  10381. am__universal=false
  10382. case " $depcc " in #(
  10383. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  10384. esac
  10385. for depmode in $am_compiler_list; do
  10386. # Setup a source with many dependencies, because some compilers
  10387. # like to wrap large dependency lists on column 80 (with \), and
  10388. # we should not choose a depcomp mode which is confused by this.
  10389. #
  10390. # We need to recreate these files for each test, as the compiler may
  10391. # overwrite some of them when testing with obscure command lines.
  10392. # This happens at least with the AIX C compiler.
  10393. : > sub/conftest.c
  10394. for i in 1 2 3 4 5 6; do
  10395. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  10396. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  10397. # Solaris 10 /bin/sh.
  10398. echo '/* dummy */' > sub/conftst$i.h
  10399. done
  10400. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  10401. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  10402. # mode. It turns out that the SunPro C++ compiler does not properly
  10403. # handle '-M -o', and we need to detect this. Also, some Intel
  10404. # versions had trouble with output in subdirs.
  10405. am__obj=sub/conftest.${OBJEXT-o}
  10406. am__minus_obj="-o $am__obj"
  10407. case $depmode in
  10408. gcc)
  10409. # This depmode causes a compiler race in universal mode.
  10410. test "$am__universal" = false || continue
  10411. ;;
  10412. nosideeffect)
  10413. # After this tag, mechanisms are not by side-effect, so they'll
  10414. # only be used when explicitly requested.
  10415. if test "x$enable_dependency_tracking" = xyes; then
  10416. continue
  10417. else
  10418. break
  10419. fi
  10420. ;;
  10421. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  10422. # This compiler won't grok '-c -o', but also, the minuso test has
  10423. # not run yet. These depmodes are late enough in the game, and
  10424. # so weak that their functioning should not be impacted.
  10425. am__obj=conftest.${OBJEXT-o}
  10426. am__minus_obj=
  10427. ;;
  10428. none) break ;;
  10429. esac
  10430. if depmode=$depmode \
  10431. source=sub/conftest.c object=$am__obj \
  10432. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  10433. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  10434. >/dev/null 2>conftest.err &&
  10435. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  10436. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  10437. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  10438. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  10439. # icc doesn't choke on unknown options, it will just issue warnings
  10440. # or remarks (even with -Werror). So we grep stderr for any message
  10441. # that says an option was ignored or not supported.
  10442. # When given -MP, icc 7.0 and 7.1 complain thusly:
  10443. # icc: Command line warning: ignoring option '-M'; no argument required
  10444. # The diagnosis changed in icc 8.0:
  10445. # icc: Command line remark: option '-MP' not supported
  10446. if (grep 'ignoring option' conftest.err ||
  10447. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  10448. am_cv_CC_dependencies_compiler_type=$depmode
  10449. break
  10450. fi
  10451. fi
  10452. done
  10453. cd ..
  10454. rm -rf conftest.dir
  10455. else
  10456. am_cv_CC_dependencies_compiler_type=none
  10457. fi
  10458. fi
  10459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  10460. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  10461. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  10462. if
  10463. test "x$enable_dependency_tracking" != xno \
  10464. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  10465. am__fastdepCC_TRUE=
  10466. am__fastdepCC_FALSE='#'
  10467. else
  10468. am__fastdepCC_TRUE='#'
  10469. am__fastdepCC_FALSE=
  10470. fi
  10471. # POSIX will say in a future version that running "rm -f" with no argument
  10472. # is OK; and we want to be able to make that assumption in our Makefile
  10473. # recipes. So use an aggressive probe to check that the usage we want is
  10474. # actually supported "in the wild" to an acceptable degree.
  10475. # See automake bug#10828.
  10476. # To make any issue more visible, cause the running configure to be aborted
  10477. # by default if the 'rm' program in use doesn't match our expectations; the
  10478. # user can still override this though.
  10479. if rm -f && rm -fr && rm -rf; then : OK; else
  10480. cat >&2 <<'END'
  10481. Oops!
  10482. Your 'rm' program seems unable to run without file operands specified
  10483. on the command line, even when the '-f' option is present. This is contrary
  10484. to the behaviour of most rm programs out there, and not conforming with
  10485. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  10486. Please tell bug-automake@gnu.org about your system, including the value
  10487. of your $PATH and any error possibly output before this message. This
  10488. can help us improve future automake versions.
  10489. END
  10490. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  10491. echo 'Configuration will proceed anyway, since you have set the' >&2
  10492. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  10493. echo >&2
  10494. else
  10495. cat >&2 <<'END'
  10496. Aborting the configuration process, to ensure you take notice of the issue.
  10497. You can download and install GNU coreutils to get an 'rm' implementation
  10498. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  10499. If you want to complete the configuration process using your problematic
  10500. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  10501. to "yes", and re-run configure.
  10502. END
  10503. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  10504. fi
  10505. fi
  10506. # enable "silent-rules" option by default
  10507. # Check whether --enable-silent-rules was given.
  10508. if test "${enable_silent_rules+set}" = set; then :
  10509. enableval=$enable_silent_rules;
  10510. fi
  10511. case $enable_silent_rules in # (((
  10512. yes) AM_DEFAULT_VERBOSITY=0;;
  10513. no) AM_DEFAULT_VERBOSITY=1;;
  10514. *) AM_DEFAULT_VERBOSITY=0;;
  10515. esac
  10516. am_make=${MAKE-make}
  10517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  10518. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  10519. if ${am_cv_make_support_nested_variables+:} false; then :
  10520. $as_echo_n "(cached) " >&6
  10521. else
  10522. if $as_echo 'TRUE=$(BAR$(V))
  10523. BAR0=false
  10524. BAR1=true
  10525. V=1
  10526. am__doit:
  10527. @$(TRUE)
  10528. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  10529. am_cv_make_support_nested_variables=yes
  10530. else
  10531. am_cv_make_support_nested_variables=no
  10532. fi
  10533. fi
  10534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  10535. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  10536. if test $am_cv_make_support_nested_variables = yes; then
  10537. AM_V='$(V)'
  10538. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  10539. else
  10540. AM_V=$AM_DEFAULT_VERBOSITY
  10541. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  10542. fi
  10543. AM_BACKSLASH='\'
  10544. # allow to override gcov location
  10545. # Check whether --with-gcov was given.
  10546. if test "${with_gcov+set}" = set; then :
  10547. withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
  10548. else
  10549. _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
  10550. fi
  10551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
  10552. $as_echo_n "checking whether to build with code coverage support... " >&6; }
  10553. # Check whether --enable-code-coverage was given.
  10554. if test "${enable_code_coverage+set}" = set; then :
  10555. enableval=$enable_code_coverage;
  10556. else
  10557. enable_code_coverage=no
  10558. fi
  10559. if test x$enable_code_coverage = xyes; then
  10560. CODE_COVERAGE_ENABLED_TRUE=
  10561. CODE_COVERAGE_ENABLED_FALSE='#'
  10562. else
  10563. CODE_COVERAGE_ENABLED_TRUE='#'
  10564. CODE_COVERAGE_ENABLED_FALSE=
  10565. fi
  10566. CODE_COVERAGE_ENABLED=$enable_code_coverage
  10567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
  10568. $as_echo "$enable_code_coverage" >&6; }
  10569. if test "$enable_code_coverage" = "yes" ; then :
  10570. # check for gcov
  10571. if test -n "$ac_tool_prefix"; then
  10572. # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
  10573. set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
  10574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10575. $as_echo_n "checking for $ac_word... " >&6; }
  10576. if ${ac_cv_prog_GCOV+:} false; then :
  10577. $as_echo_n "(cached) " >&6
  10578. else
  10579. if test -n "$GCOV"; then
  10580. ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
  10581. else
  10582. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10583. for as_dir in $PATH
  10584. do
  10585. IFS=$as_save_IFS
  10586. test -z "$as_dir" && as_dir=.
  10587. for ac_exec_ext in '' $ac_executable_extensions; do
  10588. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10589. ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
  10590. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10591. break 2
  10592. fi
  10593. done
  10594. done
  10595. IFS=$as_save_IFS
  10596. fi
  10597. fi
  10598. GCOV=$ac_cv_prog_GCOV
  10599. if test -n "$GCOV"; then
  10600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
  10601. $as_echo "$GCOV" >&6; }
  10602. else
  10603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10604. $as_echo "no" >&6; }
  10605. fi
  10606. fi
  10607. if test -z "$ac_cv_prog_GCOV"; then
  10608. ac_ct_GCOV=$GCOV
  10609. # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
  10610. set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
  10611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10612. $as_echo_n "checking for $ac_word... " >&6; }
  10613. if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
  10614. $as_echo_n "(cached) " >&6
  10615. else
  10616. if test -n "$ac_ct_GCOV"; then
  10617. ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
  10618. else
  10619. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10620. for as_dir in $PATH
  10621. do
  10622. IFS=$as_save_IFS
  10623. test -z "$as_dir" && as_dir=.
  10624. for ac_exec_ext in '' $ac_executable_extensions; do
  10625. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10626. ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
  10627. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10628. break 2
  10629. fi
  10630. done
  10631. done
  10632. IFS=$as_save_IFS
  10633. fi
  10634. fi
  10635. ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
  10636. if test -n "$ac_ct_GCOV"; then
  10637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
  10638. $as_echo "$ac_ct_GCOV" >&6; }
  10639. else
  10640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10641. $as_echo "no" >&6; }
  10642. fi
  10643. if test "x$ac_ct_GCOV" = x; then
  10644. GCOV=":"
  10645. else
  10646. case $cross_compiling:$ac_tool_warned in
  10647. yes:)
  10648. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10649. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10650. ac_tool_warned=yes ;;
  10651. esac
  10652. GCOV=$ac_ct_GCOV
  10653. fi
  10654. else
  10655. GCOV="$ac_cv_prog_GCOV"
  10656. fi
  10657. if test "X$GCOV" = "X:"; then :
  10658. as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
  10659. fi
  10660. if test "$GCC" = "no" ; then :
  10661. as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
  10662. fi
  10663. # Extract the first word of "lcov", so it can be a program name with args.
  10664. set dummy lcov; ac_word=$2
  10665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10666. $as_echo_n "checking for $ac_word... " >&6; }
  10667. if ${ac_cv_prog_LCOV+:} false; then :
  10668. $as_echo_n "(cached) " >&6
  10669. else
  10670. if test -n "$LCOV"; then
  10671. ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
  10672. else
  10673. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10674. for as_dir in $PATH
  10675. do
  10676. IFS=$as_save_IFS
  10677. test -z "$as_dir" && as_dir=.
  10678. for ac_exec_ext in '' $ac_executable_extensions; do
  10679. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10680. ac_cv_prog_LCOV="lcov"
  10681. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10682. break 2
  10683. fi
  10684. done
  10685. done
  10686. IFS=$as_save_IFS
  10687. fi
  10688. fi
  10689. LCOV=$ac_cv_prog_LCOV
  10690. if test -n "$LCOV"; then
  10691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
  10692. $as_echo "$LCOV" >&6; }
  10693. else
  10694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10695. $as_echo "no" >&6; }
  10696. fi
  10697. # Extract the first word of "genhtml", so it can be a program name with args.
  10698. set dummy genhtml; ac_word=$2
  10699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10700. $as_echo_n "checking for $ac_word... " >&6; }
  10701. if ${ac_cv_prog_GENHTML+:} false; then :
  10702. $as_echo_n "(cached) " >&6
  10703. else
  10704. if test -n "$GENHTML"; then
  10705. ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
  10706. else
  10707. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10708. for as_dir in $PATH
  10709. do
  10710. IFS=$as_save_IFS
  10711. test -z "$as_dir" && as_dir=.
  10712. for ac_exec_ext in '' $ac_executable_extensions; do
  10713. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10714. ac_cv_prog_GENHTML="genhtml"
  10715. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10716. break 2
  10717. fi
  10718. done
  10719. done
  10720. IFS=$as_save_IFS
  10721. fi
  10722. fi
  10723. GENHTML=$ac_cv_prog_GENHTML
  10724. if test -n "$GENHTML"; then
  10725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
  10726. $as_echo "$GENHTML" >&6; }
  10727. else
  10728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10729. $as_echo "no" >&6; }
  10730. fi
  10731. if test -z "$LCOV" ; then :
  10732. as_fn_error $? "To enable code coverage reporting you must have lcov installed" "$LINENO" 5
  10733. fi
  10734. if test -z "$GENHTML" ; then :
  10735. as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
  10736. fi
  10737. CODE_COVERAGE_CPPFLAGS="-DNDEBUG"
  10738. CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
  10739. CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
  10740. CODE_COVERAGE_LIBS="-lgcov"
  10741. CODE_COVERAGE_LDFLAGS="$CODE_COVERAGE_LIBS"
  10742. CODE_COVERAGE_RULES_CHECK='
  10743. -$(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) -k check
  10744. $(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
  10745. '
  10746. CODE_COVERAGE_RULES_CAPTURE='
  10747. $(code_coverage_v_lcov_cap)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --capture --output-file "$(CODE_COVERAGE_OUTPUT_FILE).tmp" --test-name "$(call code_coverage_sanitize,$(PACKAGE_NAME)-$(PACKAGE_VERSION))" --no-checksum --compat-libtool $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_OPTIONS)
  10748. $(code_coverage_v_lcov_ign)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --remove "$(CODE_COVERAGE_OUTPUT_FILE).tmp" "/tmp/*" $(CODE_COVERAGE_IGNORE_PATTERN) --output-file "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_RMOPTS)
  10749. -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
  10750. $(code_coverage_v_genhtml)LANG=C $(GENHTML) $(code_coverage_quiet) $(addprefix --prefix ,$(CODE_COVERAGE_DIRECTORY)) --output-directory "$(CODE_COVERAGE_OUTPUT_DIRECTORY)" --title "$(PACKAGE_NAME)-$(PACKAGE_VERSION) Code Coverage" --legend --show-details "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_GENHTML_OPTIONS)
  10751. @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
  10752. '
  10753. CODE_COVERAGE_RULES_CLEAN='
  10754. clean: code-coverage-clean
  10755. distclean: code-coverage-clean
  10756. code-coverage-clean:
  10757. -$(LCOV) --directory $(top_builddir) -z
  10758. -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
  10759. -find . \( -name "*.gcda" -o -name "*.gcno" -o -name "*.gcov" \) -delete
  10760. '
  10761. else
  10762. CODE_COVERAGE_RULES_CHECK='
  10763. @echo "Need to reconfigure with --enable-code-coverage"
  10764. '
  10765. CODE_COVERAGE_RULES_CAPTURE="$CODE_COVERAGE_RULES_CHECK"
  10766. CODE_COVERAGE_RULES_CLEAN=''
  10767. fi
  10768. CODE_COVERAGE_RULES='
  10769. # Code coverage
  10770. #
  10771. # Optional:
  10772. # - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
  10773. # Multiple directories may be specified, separated by whitespace.
  10774. # (Default: $(top_builddir))
  10775. # - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
  10776. # by lcov for code coverage. (Default:
  10777. # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
  10778. # - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
  10779. # reports to be created. (Default:
  10780. # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
  10781. # - CODE_COVERAGE_BRANCH_COVERAGE: Set to 1 to enforce branch coverage,
  10782. # set to 0 to disable it and leave empty to stay with the default.
  10783. # (Default: empty)
  10784. # - CODE_COVERAGE_LCOV_SHOPTS_DEFAULT: Extra options shared between both lcov
  10785. # instances. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
  10786. # - CODE_COVERAGE_LCOV_SHOPTS: Extra options to shared between both lcov
  10787. # instances. (Default: $CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
  10788. # - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
  10789. # - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the
  10790. # collecting lcov instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
  10791. # - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the collecting lcov
  10792. # instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
  10793. # - CODE_COVERAGE_LCOV_RMOPTS_DEFAULT: Extra options to pass to the filtering
  10794. # lcov instance. (Default: empty)
  10795. # - CODE_COVERAGE_LCOV_RMOPTS: Extra options to pass to the filtering lcov
  10796. # instance. (Default: $CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
  10797. # - CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT: Extra options to pass to the
  10798. # genhtml instance. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
  10799. # - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
  10800. # instance. (Default: $CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
  10801. # - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
  10802. #
  10803. # The generated report will be titled using the $(PACKAGE_NAME) and
  10804. # $(PACKAGE_VERSION). In order to add the current git hash to the title,
  10805. # use the git-version-gen script, available online.
  10806. # Optional variables
  10807. CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
  10808. CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
  10809. CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
  10810. CODE_COVERAGE_BRANCH_COVERAGE ?=
  10811. CODE_COVERAGE_LCOV_SHOPTS_DEFAULT ?= $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
  10812. --rc lcov_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
  10813. CODE_COVERAGE_LCOV_SHOPTS ?= $(CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
  10814. CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
  10815. CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
  10816. CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
  10817. CODE_COVERAGE_LCOV_RMOPTS_DEFAULT ?=
  10818. CODE_COVERAGE_LCOV_RMOPTS ?= $(CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
  10819. CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT ?=\
  10820. $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
  10821. --rc genhtml_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
  10822. CODE_COVERAGE_GENHTML_OPTIONS ?= $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
  10823. CODE_COVERAGE_IGNORE_PATTERN ?=
  10824. GITIGNOREFILES ?=
  10825. GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
  10826. code_coverage_v_lcov_cap = $(code_coverage_v_lcov_cap_$(V))
  10827. code_coverage_v_lcov_cap_ = $(code_coverage_v_lcov_cap_$(AM_DEFAULT_VERBOSITY))
  10828. code_coverage_v_lcov_cap_0 = @echo " LCOV --capture"\
  10829. $(CODE_COVERAGE_OUTPUT_FILE);
  10830. code_coverage_v_lcov_ign = $(code_coverage_v_lcov_ign_$(V))
  10831. code_coverage_v_lcov_ign_ = $(code_coverage_v_lcov_ign_$(AM_DEFAULT_VERBOSITY))
  10832. code_coverage_v_lcov_ign_0 = @echo " LCOV --remove /tmp/*"\
  10833. $(CODE_COVERAGE_IGNORE_PATTERN);
  10834. code_coverage_v_genhtml = $(code_coverage_v_genhtml_$(V))
  10835. code_coverage_v_genhtml_ = $(code_coverage_v_genhtml_$(AM_DEFAULT_VERBOSITY))
  10836. code_coverage_v_genhtml_0 = @echo " GEN " $(CODE_COVERAGE_OUTPUT_DIRECTORY);
  10837. code_coverage_quiet = $(code_coverage_quiet_$(V))
  10838. code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
  10839. code_coverage_quiet_0 = --quiet
  10840. # sanitizes the test-name: replaces with underscores: dashes and dots
  10841. code_coverage_sanitize = $(subst -,_,$(subst .,_,$(1)))
  10842. # Use recursive makes in order to ignore errors during check
  10843. check-code-coverage:'"$CODE_COVERAGE_RULES_CHECK"'
  10844. # Capture code coverage data
  10845. code-coverage-capture: code-coverage-capture-hook'"$CODE_COVERAGE_RULES_CAPTURE"'
  10846. # Hook rule executed before code-coverage-capture, overridable by the user
  10847. code-coverage-capture-hook:
  10848. '"$CODE_COVERAGE_RULES_CLEAN"'
  10849. A''M_DISTCHECK_CONFIGURE_FLAGS ?=
  10850. A''M_DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
  10851. .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
  10852. '
  10853. if false; then
  10854. AUTOCONF_CODE_COVERAGE_2019_01_06_TRUE=
  10855. AUTOCONF_CODE_COVERAGE_2019_01_06_FALSE='#'
  10856. else
  10857. AUTOCONF_CODE_COVERAGE_2019_01_06_TRUE='#'
  10858. AUTOCONF_CODE_COVERAGE_2019_01_06_FALSE=
  10859. fi
  10860. ac_config_files="$ac_config_files Makefile"
  10861. # enable autoheader config.h file
  10862. ac_config_headers="$ac_config_headers lib/config.h"
  10863. # Extract the first word of "pandoc", so it can be a program name with args.
  10864. set dummy pandoc; ac_word=$2
  10865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10866. $as_echo_n "checking for $ac_word... " >&6; }
  10867. if ${ac_cv_prog_PANDOC+:} false; then :
  10868. $as_echo_n "(cached) " >&6
  10869. else
  10870. if test -n "$PANDOC"; then
  10871. ac_cv_prog_PANDOC="$PANDOC" # Let the user override the test.
  10872. else
  10873. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10874. for as_dir in $PATH
  10875. do
  10876. IFS=$as_save_IFS
  10877. test -z "$as_dir" && as_dir=.
  10878. for ac_exec_ext in '' $ac_executable_extensions; do
  10879. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10880. ac_cv_prog_PANDOC="yes"
  10881. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10882. break 2
  10883. fi
  10884. done
  10885. done
  10886. IFS=$as_save_IFS
  10887. fi
  10888. fi
  10889. PANDOC=$ac_cv_prog_PANDOC
  10890. if test -n "$PANDOC"; then
  10891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5
  10892. $as_echo "$PANDOC" >&6; }
  10893. else
  10894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10895. $as_echo "no" >&6; }
  10896. fi
  10897. if test "x${PANDOC}" = x"yes"; then :
  10898. else
  10899. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Required executable pandoc not found, man pages will not be built" >&5
  10900. $as_echo "$as_me: WARNING: Required executable pandoc not found, man pages will not be built" >&2;}
  10901. fi
  10902. if test "x${PANDOC}" = "xyes"; then
  10903. HAVE_PANDOC_TRUE=
  10904. HAVE_PANDOC_FALSE='#'
  10905. else
  10906. HAVE_PANDOC_TRUE='#'
  10907. HAVE_PANDOC_FALSE=
  10908. fi
  10909. if test -d "${srcdir}/man/man1" -o "x${PANDOC}" = "xyes"; then
  10910. HAVE_MAN_PAGES_TRUE=
  10911. HAVE_MAN_PAGES_FALSE='#'
  10912. else
  10913. HAVE_MAN_PAGES_TRUE='#'
  10914. HAVE_MAN_PAGES_FALSE=
  10915. fi
  10916. # Check whether --enable-fapi was given.
  10917. if test "${enable_fapi+set}" = set; then :
  10918. enableval=$enable_fapi;
  10919. else
  10920. enable_fapi=check
  10921. fi
  10922. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  10923. if test -n "$ac_tool_prefix"; then
  10924. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  10925. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  10926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10927. $as_echo_n "checking for $ac_word... " >&6; }
  10928. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  10929. $as_echo_n "(cached) " >&6
  10930. else
  10931. case $PKG_CONFIG in
  10932. [\\/]* | ?:[\\/]*)
  10933. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  10934. ;;
  10935. *)
  10936. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10937. for as_dir in $PATH
  10938. do
  10939. IFS=$as_save_IFS
  10940. test -z "$as_dir" && as_dir=.
  10941. for ac_exec_ext in '' $ac_executable_extensions; do
  10942. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10943. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  10944. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10945. break 2
  10946. fi
  10947. done
  10948. done
  10949. IFS=$as_save_IFS
  10950. ;;
  10951. esac
  10952. fi
  10953. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  10954. if test -n "$PKG_CONFIG"; then
  10955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  10956. $as_echo "$PKG_CONFIG" >&6; }
  10957. else
  10958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10959. $as_echo "no" >&6; }
  10960. fi
  10961. fi
  10962. if test -z "$ac_cv_path_PKG_CONFIG"; then
  10963. ac_pt_PKG_CONFIG=$PKG_CONFIG
  10964. # Extract the first word of "pkg-config", so it can be a program name with args.
  10965. set dummy pkg-config; ac_word=$2
  10966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10967. $as_echo_n "checking for $ac_word... " >&6; }
  10968. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  10969. $as_echo_n "(cached) " >&6
  10970. else
  10971. case $ac_pt_PKG_CONFIG in
  10972. [\\/]* | ?:[\\/]*)
  10973. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  10974. ;;
  10975. *)
  10976. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10977. for as_dir in $PATH
  10978. do
  10979. IFS=$as_save_IFS
  10980. test -z "$as_dir" && as_dir=.
  10981. for ac_exec_ext in '' $ac_executable_extensions; do
  10982. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10983. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  10984. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10985. break 2
  10986. fi
  10987. done
  10988. done
  10989. IFS=$as_save_IFS
  10990. ;;
  10991. esac
  10992. fi
  10993. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  10994. if test -n "$ac_pt_PKG_CONFIG"; then
  10995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  10996. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  10997. else
  10998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10999. $as_echo "no" >&6; }
  11000. fi
  11001. if test "x$ac_pt_PKG_CONFIG" = x; then
  11002. PKG_CONFIG=""
  11003. else
  11004. case $cross_compiling:$ac_tool_warned in
  11005. yes:)
  11006. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11007. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11008. ac_tool_warned=yes ;;
  11009. esac
  11010. PKG_CONFIG=$ac_pt_PKG_CONFIG
  11011. fi
  11012. else
  11013. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  11014. fi
  11015. fi
  11016. if test -n "$PKG_CONFIG"; then
  11017. _pkg_min_version=0.9.0
  11018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  11019. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  11020. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  11021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11022. $as_echo "yes" >&6; }
  11023. else
  11024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11025. $as_echo "no" >&6; }
  11026. PKG_CONFIG=""
  11027. fi
  11028. fi
  11029. if test "$enable_fapi" = yes -o "$enable_fapi" = check; then :
  11030. pkg_failed=no
  11031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TSS2_FAPI" >&5
  11032. $as_echo_n "checking for TSS2_FAPI... " >&6; }
  11033. if test -n "$TSS2_FAPI_CFLAGS"; then
  11034. pkg_cv_TSS2_FAPI_CFLAGS="$TSS2_FAPI_CFLAGS"
  11035. elif test -n "$PKG_CONFIG"; then
  11036. if test -n "$PKG_CONFIG" && \
  11037. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tss2-fapi\""; } >&5
  11038. ($PKG_CONFIG --exists --print-errors "tss2-fapi") 2>&5
  11039. ac_status=$?
  11040. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11041. test $ac_status = 0; }; then
  11042. pkg_cv_TSS2_FAPI_CFLAGS=`$PKG_CONFIG --cflags "tss2-fapi" 2>/dev/null`
  11043. test "x$?" != "x0" && pkg_failed=yes
  11044. else
  11045. pkg_failed=yes
  11046. fi
  11047. else
  11048. pkg_failed=untried
  11049. fi
  11050. if test -n "$TSS2_FAPI_LIBS"; then
  11051. pkg_cv_TSS2_FAPI_LIBS="$TSS2_FAPI_LIBS"
  11052. elif test -n "$PKG_CONFIG"; then
  11053. if test -n "$PKG_CONFIG" && \
  11054. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tss2-fapi\""; } >&5
  11055. ($PKG_CONFIG --exists --print-errors "tss2-fapi") 2>&5
  11056. ac_status=$?
  11057. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11058. test $ac_status = 0; }; then
  11059. pkg_cv_TSS2_FAPI_LIBS=`$PKG_CONFIG --libs "tss2-fapi" 2>/dev/null`
  11060. test "x$?" != "x0" && pkg_failed=yes
  11061. else
  11062. pkg_failed=yes
  11063. fi
  11064. else
  11065. pkg_failed=untried
  11066. fi
  11067. if test $pkg_failed = yes; then
  11068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11069. $as_echo "no" >&6; }
  11070. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  11071. _pkg_short_errors_supported=yes
  11072. else
  11073. _pkg_short_errors_supported=no
  11074. fi
  11075. if test $_pkg_short_errors_supported = yes; then
  11076. TSS2_FAPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "tss2-fapi" 2>&1`
  11077. else
  11078. TSS2_FAPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "tss2-fapi" 2>&1`
  11079. fi
  11080. # Put the nasty error message in config.log where it belongs
  11081. echo "$TSS2_FAPI_PKG_ERRORS" >&5
  11082. if test "$enable_fapi" = yes; then :
  11083. as_fn_error $? "Required module tss2-fapi not found" "$LINENO" 5
  11084. fi
  11085. enable_fapi=no
  11086. elif test $pkg_failed = untried; then
  11087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11088. $as_echo "no" >&6; }
  11089. if test "$enable_fapi" = yes; then :
  11090. as_fn_error $? "Required module tss2-fapi not found" "$LINENO" 5
  11091. fi
  11092. enable_fapi=no
  11093. else
  11094. TSS2_FAPI_CFLAGS=$pkg_cv_TSS2_FAPI_CFLAGS
  11095. TSS2_FAPI_LIBS=$pkg_cv_TSS2_FAPI_LIBS
  11096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11097. $as_echo "yes" >&6; }
  11098. enable_fapi=yes
  11099. fi
  11100. pkg_failed=no
  11101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TSS2_FAPI_3_0" >&5
  11102. $as_echo_n "checking for TSS2_FAPI_3_0... " >&6; }
  11103. if test -n "$TSS2_FAPI_3_0_CFLAGS"; then
  11104. pkg_cv_TSS2_FAPI_3_0_CFLAGS="$TSS2_FAPI_3_0_CFLAGS"
  11105. elif test -n "$PKG_CONFIG"; then
  11106. if test -n "$PKG_CONFIG" && \
  11107. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tss2-fapi >= 3.0\""; } >&5
  11108. ($PKG_CONFIG --exists --print-errors "tss2-fapi >= 3.0") 2>&5
  11109. ac_status=$?
  11110. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11111. test $ac_status = 0; }; then
  11112. pkg_cv_TSS2_FAPI_3_0_CFLAGS=`$PKG_CONFIG --cflags "tss2-fapi >= 3.0" 2>/dev/null`
  11113. test "x$?" != "x0" && pkg_failed=yes
  11114. else
  11115. pkg_failed=yes
  11116. fi
  11117. else
  11118. pkg_failed=untried
  11119. fi
  11120. if test -n "$TSS2_FAPI_3_0_LIBS"; then
  11121. pkg_cv_TSS2_FAPI_3_0_LIBS="$TSS2_FAPI_3_0_LIBS"
  11122. elif test -n "$PKG_CONFIG"; then
  11123. if test -n "$PKG_CONFIG" && \
  11124. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tss2-fapi >= 3.0\""; } >&5
  11125. ($PKG_CONFIG --exists --print-errors "tss2-fapi >= 3.0") 2>&5
  11126. ac_status=$?
  11127. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11128. test $ac_status = 0; }; then
  11129. pkg_cv_TSS2_FAPI_3_0_LIBS=`$PKG_CONFIG --libs "tss2-fapi >= 3.0" 2>/dev/null`
  11130. test "x$?" != "x0" && pkg_failed=yes
  11131. else
  11132. pkg_failed=yes
  11133. fi
  11134. else
  11135. pkg_failed=untried
  11136. fi
  11137. if test $pkg_failed = yes; then
  11138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11139. $as_echo "no" >&6; }
  11140. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  11141. _pkg_short_errors_supported=yes
  11142. else
  11143. _pkg_short_errors_supported=no
  11144. fi
  11145. if test $_pkg_short_errors_supported = yes; then
  11146. TSS2_FAPI_3_0_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "tss2-fapi >= 3.0" 2>&1`
  11147. else
  11148. TSS2_FAPI_3_0_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "tss2-fapi >= 3.0" 2>&1`
  11149. fi
  11150. # Put the nasty error message in config.log where it belongs
  11151. echo "$TSS2_FAPI_3_0_PKG_ERRORS" >&5
  11152. true
  11153. elif test $pkg_failed = untried; then
  11154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11155. $as_echo "no" >&6; }
  11156. true
  11157. else
  11158. TSS2_FAPI_3_0_CFLAGS=$pkg_cv_TSS2_FAPI_3_0_CFLAGS
  11159. TSS2_FAPI_3_0_LIBS=$pkg_cv_TSS2_FAPI_3_0_LIBS
  11160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11161. $as_echo "yes" >&6; }
  11162. $as_echo "#define FAPI_3_0 1" >>confdefs.h
  11163. fi
  11164. fi
  11165. if test "$enable_fapi" = yes; then
  11166. HAVE_FAPI_TRUE=
  11167. HAVE_FAPI_FALSE='#'
  11168. else
  11169. HAVE_FAPI_TRUE='#'
  11170. HAVE_FAPI_FALSE=
  11171. fi
  11172. pkg_failed=no
  11173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TSS2_ESYS_3_0" >&5
  11174. $as_echo_n "checking for TSS2_ESYS_3_0... " >&6; }
  11175. if test -n "$TSS2_ESYS_3_0_CFLAGS"; then
  11176. pkg_cv_TSS2_ESYS_3_0_CFLAGS="$TSS2_ESYS_3_0_CFLAGS"
  11177. elif test -n "$PKG_CONFIG"; then
  11178. if test -n "$PKG_CONFIG" && \
  11179. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tss2-esys >= 3.0.0\""; } >&5
  11180. ($PKG_CONFIG --exists --print-errors "tss2-esys >= 3.0.0") 2>&5
  11181. ac_status=$?
  11182. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11183. test $ac_status = 0; }; then
  11184. pkg_cv_TSS2_ESYS_3_0_CFLAGS=`$PKG_CONFIG --cflags "tss2-esys >= 3.0.0" 2>/dev/null`
  11185. test "x$?" != "x0" && pkg_failed=yes
  11186. else
  11187. pkg_failed=yes
  11188. fi
  11189. else
  11190. pkg_failed=untried
  11191. fi
  11192. if test -n "$TSS2_ESYS_3_0_LIBS"; then
  11193. pkg_cv_TSS2_ESYS_3_0_LIBS="$TSS2_ESYS_3_0_LIBS"
  11194. elif test -n "$PKG_CONFIG"; then
  11195. if test -n "$PKG_CONFIG" && \
  11196. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tss2-esys >= 3.0.0\""; } >&5
  11197. ($PKG_CONFIG --exists --print-errors "tss2-esys >= 3.0.0") 2>&5
  11198. ac_status=$?
  11199. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11200. test $ac_status = 0; }; then
  11201. pkg_cv_TSS2_ESYS_3_0_LIBS=`$PKG_CONFIG --libs "tss2-esys >= 3.0.0" 2>/dev/null`
  11202. test "x$?" != "x0" && pkg_failed=yes
  11203. else
  11204. pkg_failed=yes
  11205. fi
  11206. else
  11207. pkg_failed=untried
  11208. fi
  11209. if test $pkg_failed = yes; then
  11210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11211. $as_echo "no" >&6; }
  11212. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  11213. _pkg_short_errors_supported=yes
  11214. else
  11215. _pkg_short_errors_supported=no
  11216. fi
  11217. if test $_pkg_short_errors_supported = yes; then
  11218. TSS2_ESYS_3_0_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "tss2-esys >= 3.0.0" 2>&1`
  11219. else
  11220. TSS2_ESYS_3_0_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "tss2-esys >= 3.0.0" 2>&1`
  11221. fi
  11222. # Put the nasty error message in config.log where it belongs
  11223. echo "$TSS2_ESYS_3_0_PKG_ERRORS" >&5
  11224. pkg_failed=no
  11225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TSS2_ESYS_2_3" >&5
  11226. $as_echo_n "checking for TSS2_ESYS_2_3... " >&6; }
  11227. if test -n "$TSS2_ESYS_2_3_CFLAGS"; then
  11228. pkg_cv_TSS2_ESYS_2_3_CFLAGS="$TSS2_ESYS_2_3_CFLAGS"
  11229. elif test -n "$PKG_CONFIG"; then
  11230. if test -n "$PKG_CONFIG" && \
  11231. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tss2-esys >= 2.4.0\""; } >&5
  11232. ($PKG_CONFIG --exists --print-errors "tss2-esys >= 2.4.0") 2>&5
  11233. ac_status=$?
  11234. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11235. test $ac_status = 0; }; then
  11236. pkg_cv_TSS2_ESYS_2_3_CFLAGS=`$PKG_CONFIG --cflags "tss2-esys >= 2.4.0" 2>/dev/null`
  11237. test "x$?" != "x0" && pkg_failed=yes
  11238. else
  11239. pkg_failed=yes
  11240. fi
  11241. else
  11242. pkg_failed=untried
  11243. fi
  11244. if test -n "$TSS2_ESYS_2_3_LIBS"; then
  11245. pkg_cv_TSS2_ESYS_2_3_LIBS="$TSS2_ESYS_2_3_LIBS"
  11246. elif test -n "$PKG_CONFIG"; then
  11247. if test -n "$PKG_CONFIG" && \
  11248. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tss2-esys >= 2.4.0\""; } >&5
  11249. ($PKG_CONFIG --exists --print-errors "tss2-esys >= 2.4.0") 2>&5
  11250. ac_status=$?
  11251. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11252. test $ac_status = 0; }; then
  11253. pkg_cv_TSS2_ESYS_2_3_LIBS=`$PKG_CONFIG --libs "tss2-esys >= 2.4.0" 2>/dev/null`
  11254. test "x$?" != "x0" && pkg_failed=yes
  11255. else
  11256. pkg_failed=yes
  11257. fi
  11258. else
  11259. pkg_failed=untried
  11260. fi
  11261. if test $pkg_failed = yes; then
  11262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11263. $as_echo "no" >&6; }
  11264. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  11265. _pkg_short_errors_supported=yes
  11266. else
  11267. _pkg_short_errors_supported=no
  11268. fi
  11269. if test $_pkg_short_errors_supported = yes; then
  11270. TSS2_ESYS_2_3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "tss2-esys >= 2.4.0" 2>&1`
  11271. else
  11272. TSS2_ESYS_2_3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "tss2-esys >= 2.4.0" 2>&1`
  11273. fi
  11274. # Put the nasty error message in config.log where it belongs
  11275. echo "$TSS2_ESYS_2_3_PKG_ERRORS" >&5
  11276. as_fn_error $? "Package requirements (tss2-esys >= 2.4.0) were not met:
  11277. $TSS2_ESYS_2_3_PKG_ERRORS
  11278. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  11279. installed software in a non-standard prefix.
  11280. Alternatively, you may set the environment variables TSS2_ESYS_2_3_CFLAGS
  11281. and TSS2_ESYS_2_3_LIBS to avoid the need to call pkg-config.
  11282. See the pkg-config man page for more details." "$LINENO" 5
  11283. elif test $pkg_failed = untried; then
  11284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11285. $as_echo "no" >&6; }
  11286. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11287. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11288. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  11289. is in your PATH or set the PKG_CONFIG environment variable to the full
  11290. path to pkg-config.
  11291. Alternatively, you may set the environment variables TSS2_ESYS_2_3_CFLAGS
  11292. and TSS2_ESYS_2_3_LIBS to avoid the need to call pkg-config.
  11293. See the pkg-config man page for more details.
  11294. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  11295. See \`config.log' for more details" "$LINENO" 5; }
  11296. else
  11297. TSS2_ESYS_2_3_CFLAGS=$pkg_cv_TSS2_ESYS_2_3_CFLAGS
  11298. TSS2_ESYS_2_3_LIBS=$pkg_cv_TSS2_ESYS_2_3_LIBS
  11299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11300. $as_echo "yes" >&6; }
  11301. $as_echo "#define ESYS_2_3 1" >>confdefs.h
  11302. TSS2_ESYS_CFLAGS=$TSS2_ESYS_2_3_CFLAGS
  11303. TSS2_ESYS_LIBS=$TSS2_ESYS_2_3_LIBS
  11304. fi
  11305. elif test $pkg_failed = untried; then
  11306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11307. $as_echo "no" >&6; }
  11308. pkg_failed=no
  11309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TSS2_ESYS_2_3" >&5
  11310. $as_echo_n "checking for TSS2_ESYS_2_3... " >&6; }
  11311. if test -n "$TSS2_ESYS_2_3_CFLAGS"; then
  11312. pkg_cv_TSS2_ESYS_2_3_CFLAGS="$TSS2_ESYS_2_3_CFLAGS"
  11313. elif test -n "$PKG_CONFIG"; then
  11314. if test -n "$PKG_CONFIG" && \
  11315. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tss2-esys >= 2.4.0\""; } >&5
  11316. ($PKG_CONFIG --exists --print-errors "tss2-esys >= 2.4.0") 2>&5
  11317. ac_status=$?
  11318. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11319. test $ac_status = 0; }; then
  11320. pkg_cv_TSS2_ESYS_2_3_CFLAGS=`$PKG_CONFIG --cflags "tss2-esys >= 2.4.0" 2>/dev/null`
  11321. test "x$?" != "x0" && pkg_failed=yes
  11322. else
  11323. pkg_failed=yes
  11324. fi
  11325. else
  11326. pkg_failed=untried
  11327. fi
  11328. if test -n "$TSS2_ESYS_2_3_LIBS"; then
  11329. pkg_cv_TSS2_ESYS_2_3_LIBS="$TSS2_ESYS_2_3_LIBS"
  11330. elif test -n "$PKG_CONFIG"; then
  11331. if test -n "$PKG_CONFIG" && \
  11332. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tss2-esys >= 2.4.0\""; } >&5
  11333. ($PKG_CONFIG --exists --print-errors "tss2-esys >= 2.4.0") 2>&5
  11334. ac_status=$?
  11335. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11336. test $ac_status = 0; }; then
  11337. pkg_cv_TSS2_ESYS_2_3_LIBS=`$PKG_CONFIG --libs "tss2-esys >= 2.4.0" 2>/dev/null`
  11338. test "x$?" != "x0" && pkg_failed=yes
  11339. else
  11340. pkg_failed=yes
  11341. fi
  11342. else
  11343. pkg_failed=untried
  11344. fi
  11345. if test $pkg_failed = yes; then
  11346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11347. $as_echo "no" >&6; }
  11348. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  11349. _pkg_short_errors_supported=yes
  11350. else
  11351. _pkg_short_errors_supported=no
  11352. fi
  11353. if test $_pkg_short_errors_supported = yes; then
  11354. TSS2_ESYS_2_3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "tss2-esys >= 2.4.0" 2>&1`
  11355. else
  11356. TSS2_ESYS_2_3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "tss2-esys >= 2.4.0" 2>&1`
  11357. fi
  11358. # Put the nasty error message in config.log where it belongs
  11359. echo "$TSS2_ESYS_2_3_PKG_ERRORS" >&5
  11360. as_fn_error $? "Package requirements (tss2-esys >= 2.4.0) were not met:
  11361. $TSS2_ESYS_2_3_PKG_ERRORS
  11362. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  11363. installed software in a non-standard prefix.
  11364. Alternatively, you may set the environment variables TSS2_ESYS_2_3_CFLAGS
  11365. and TSS2_ESYS_2_3_LIBS to avoid the need to call pkg-config.
  11366. See the pkg-config man page for more details." "$LINENO" 5
  11367. elif test $pkg_failed = untried; then
  11368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11369. $as_echo "no" >&6; }
  11370. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11371. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11372. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  11373. is in your PATH or set the PKG_CONFIG environment variable to the full
  11374. path to pkg-config.
  11375. Alternatively, you may set the environment variables TSS2_ESYS_2_3_CFLAGS
  11376. and TSS2_ESYS_2_3_LIBS to avoid the need to call pkg-config.
  11377. See the pkg-config man page for more details.
  11378. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  11379. See \`config.log' for more details" "$LINENO" 5; }
  11380. else
  11381. TSS2_ESYS_2_3_CFLAGS=$pkg_cv_TSS2_ESYS_2_3_CFLAGS
  11382. TSS2_ESYS_2_3_LIBS=$pkg_cv_TSS2_ESYS_2_3_LIBS
  11383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11384. $as_echo "yes" >&6; }
  11385. $as_echo "#define ESYS_2_3 1" >>confdefs.h
  11386. TSS2_ESYS_CFLAGS=$TSS2_ESYS_2_3_CFLAGS
  11387. TSS2_ESYS_LIBS=$TSS2_ESYS_2_3_LIBS
  11388. fi
  11389. else
  11390. TSS2_ESYS_3_0_CFLAGS=$pkg_cv_TSS2_ESYS_3_0_CFLAGS
  11391. TSS2_ESYS_3_0_LIBS=$pkg_cv_TSS2_ESYS_3_0_LIBS
  11392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11393. $as_echo "yes" >&6; }
  11394. $as_echo "#define ESYS_3_0 1" >>confdefs.h
  11395. TSS2_ESYS_CFLAGS=$TSS2_ESYS_3_0_CFLAGS
  11396. TSS2_ESYS_LIBS=$TSS2_ESYS_3_0_LIBS
  11397. fi
  11398. pkg_failed=no
  11399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TSS2_TCTILDR" >&5
  11400. $as_echo_n "checking for TSS2_TCTILDR... " >&6; }
  11401. if test -n "$TSS2_TCTILDR_CFLAGS"; then
  11402. pkg_cv_TSS2_TCTILDR_CFLAGS="$TSS2_TCTILDR_CFLAGS"
  11403. elif test -n "$PKG_CONFIG"; then
  11404. if test -n "$PKG_CONFIG" && \
  11405. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tss2-tctildr\""; } >&5
  11406. ($PKG_CONFIG --exists --print-errors "tss2-tctildr") 2>&5
  11407. ac_status=$?
  11408. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11409. test $ac_status = 0; }; then
  11410. pkg_cv_TSS2_TCTILDR_CFLAGS=`$PKG_CONFIG --cflags "tss2-tctildr" 2>/dev/null`
  11411. test "x$?" != "x0" && pkg_failed=yes
  11412. else
  11413. pkg_failed=yes
  11414. fi
  11415. else
  11416. pkg_failed=untried
  11417. fi
  11418. if test -n "$TSS2_TCTILDR_LIBS"; then
  11419. pkg_cv_TSS2_TCTILDR_LIBS="$TSS2_TCTILDR_LIBS"
  11420. elif test -n "$PKG_CONFIG"; then
  11421. if test -n "$PKG_CONFIG" && \
  11422. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tss2-tctildr\""; } >&5
  11423. ($PKG_CONFIG --exists --print-errors "tss2-tctildr") 2>&5
  11424. ac_status=$?
  11425. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11426. test $ac_status = 0; }; then
  11427. pkg_cv_TSS2_TCTILDR_LIBS=`$PKG_CONFIG --libs "tss2-tctildr" 2>/dev/null`
  11428. test "x$?" != "x0" && pkg_failed=yes
  11429. else
  11430. pkg_failed=yes
  11431. fi
  11432. else
  11433. pkg_failed=untried
  11434. fi
  11435. if test $pkg_failed = yes; then
  11436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11437. $as_echo "no" >&6; }
  11438. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  11439. _pkg_short_errors_supported=yes
  11440. else
  11441. _pkg_short_errors_supported=no
  11442. fi
  11443. if test $_pkg_short_errors_supported = yes; then
  11444. TSS2_TCTILDR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "tss2-tctildr" 2>&1`
  11445. else
  11446. TSS2_TCTILDR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "tss2-tctildr" 2>&1`
  11447. fi
  11448. # Put the nasty error message in config.log where it belongs
  11449. echo "$TSS2_TCTILDR_PKG_ERRORS" >&5
  11450. as_fn_error $? "Package requirements (tss2-tctildr) were not met:
  11451. $TSS2_TCTILDR_PKG_ERRORS
  11452. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  11453. installed software in a non-standard prefix.
  11454. Alternatively, you may set the environment variables TSS2_TCTILDR_CFLAGS
  11455. and TSS2_TCTILDR_LIBS to avoid the need to call pkg-config.
  11456. See the pkg-config man page for more details." "$LINENO" 5
  11457. elif test $pkg_failed = untried; then
  11458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11459. $as_echo "no" >&6; }
  11460. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11461. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11462. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  11463. is in your PATH or set the PKG_CONFIG environment variable to the full
  11464. path to pkg-config.
  11465. Alternatively, you may set the environment variables TSS2_TCTILDR_CFLAGS
  11466. and TSS2_TCTILDR_LIBS to avoid the need to call pkg-config.
  11467. See the pkg-config man page for more details.
  11468. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  11469. See \`config.log' for more details" "$LINENO" 5; }
  11470. else
  11471. TSS2_TCTILDR_CFLAGS=$pkg_cv_TSS2_TCTILDR_CFLAGS
  11472. TSS2_TCTILDR_LIBS=$pkg_cv_TSS2_TCTILDR_LIBS
  11473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11474. $as_echo "yes" >&6; }
  11475. fi
  11476. pkg_failed=no
  11477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TSS2_MU" >&5
  11478. $as_echo_n "checking for TSS2_MU... " >&6; }
  11479. if test -n "$TSS2_MU_CFLAGS"; then
  11480. pkg_cv_TSS2_MU_CFLAGS="$TSS2_MU_CFLAGS"
  11481. elif test -n "$PKG_CONFIG"; then
  11482. if test -n "$PKG_CONFIG" && \
  11483. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tss2-mu\""; } >&5
  11484. ($PKG_CONFIG --exists --print-errors "tss2-mu") 2>&5
  11485. ac_status=$?
  11486. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11487. test $ac_status = 0; }; then
  11488. pkg_cv_TSS2_MU_CFLAGS=`$PKG_CONFIG --cflags "tss2-mu" 2>/dev/null`
  11489. test "x$?" != "x0" && pkg_failed=yes
  11490. else
  11491. pkg_failed=yes
  11492. fi
  11493. else
  11494. pkg_failed=untried
  11495. fi
  11496. if test -n "$TSS2_MU_LIBS"; then
  11497. pkg_cv_TSS2_MU_LIBS="$TSS2_MU_LIBS"
  11498. elif test -n "$PKG_CONFIG"; then
  11499. if test -n "$PKG_CONFIG" && \
  11500. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tss2-mu\""; } >&5
  11501. ($PKG_CONFIG --exists --print-errors "tss2-mu") 2>&5
  11502. ac_status=$?
  11503. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11504. test $ac_status = 0; }; then
  11505. pkg_cv_TSS2_MU_LIBS=`$PKG_CONFIG --libs "tss2-mu" 2>/dev/null`
  11506. test "x$?" != "x0" && pkg_failed=yes
  11507. else
  11508. pkg_failed=yes
  11509. fi
  11510. else
  11511. pkg_failed=untried
  11512. fi
  11513. if test $pkg_failed = yes; then
  11514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11515. $as_echo "no" >&6; }
  11516. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  11517. _pkg_short_errors_supported=yes
  11518. else
  11519. _pkg_short_errors_supported=no
  11520. fi
  11521. if test $_pkg_short_errors_supported = yes; then
  11522. TSS2_MU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "tss2-mu" 2>&1`
  11523. else
  11524. TSS2_MU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "tss2-mu" 2>&1`
  11525. fi
  11526. # Put the nasty error message in config.log where it belongs
  11527. echo "$TSS2_MU_PKG_ERRORS" >&5
  11528. as_fn_error $? "Package requirements (tss2-mu) were not met:
  11529. $TSS2_MU_PKG_ERRORS
  11530. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  11531. installed software in a non-standard prefix.
  11532. Alternatively, you may set the environment variables TSS2_MU_CFLAGS
  11533. and TSS2_MU_LIBS to avoid the need to call pkg-config.
  11534. See the pkg-config man page for more details." "$LINENO" 5
  11535. elif test $pkg_failed = untried; then
  11536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11537. $as_echo "no" >&6; }
  11538. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11539. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11540. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  11541. is in your PATH or set the PKG_CONFIG environment variable to the full
  11542. path to pkg-config.
  11543. Alternatively, you may set the environment variables TSS2_MU_CFLAGS
  11544. and TSS2_MU_LIBS to avoid the need to call pkg-config.
  11545. See the pkg-config man page for more details.
  11546. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  11547. See \`config.log' for more details" "$LINENO" 5; }
  11548. else
  11549. TSS2_MU_CFLAGS=$pkg_cv_TSS2_MU_CFLAGS
  11550. TSS2_MU_LIBS=$pkg_cv_TSS2_MU_LIBS
  11551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11552. $as_echo "yes" >&6; }
  11553. fi
  11554. pkg_failed=no
  11555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TSS2_RC" >&5
  11556. $as_echo_n "checking for TSS2_RC... " >&6; }
  11557. if test -n "$TSS2_RC_CFLAGS"; then
  11558. pkg_cv_TSS2_RC_CFLAGS="$TSS2_RC_CFLAGS"
  11559. elif test -n "$PKG_CONFIG"; then
  11560. if test -n "$PKG_CONFIG" && \
  11561. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tss2-rc\""; } >&5
  11562. ($PKG_CONFIG --exists --print-errors "tss2-rc") 2>&5
  11563. ac_status=$?
  11564. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11565. test $ac_status = 0; }; then
  11566. pkg_cv_TSS2_RC_CFLAGS=`$PKG_CONFIG --cflags "tss2-rc" 2>/dev/null`
  11567. test "x$?" != "x0" && pkg_failed=yes
  11568. else
  11569. pkg_failed=yes
  11570. fi
  11571. else
  11572. pkg_failed=untried
  11573. fi
  11574. if test -n "$TSS2_RC_LIBS"; then
  11575. pkg_cv_TSS2_RC_LIBS="$TSS2_RC_LIBS"
  11576. elif test -n "$PKG_CONFIG"; then
  11577. if test -n "$PKG_CONFIG" && \
  11578. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tss2-rc\""; } >&5
  11579. ($PKG_CONFIG --exists --print-errors "tss2-rc") 2>&5
  11580. ac_status=$?
  11581. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11582. test $ac_status = 0; }; then
  11583. pkg_cv_TSS2_RC_LIBS=`$PKG_CONFIG --libs "tss2-rc" 2>/dev/null`
  11584. test "x$?" != "x0" && pkg_failed=yes
  11585. else
  11586. pkg_failed=yes
  11587. fi
  11588. else
  11589. pkg_failed=untried
  11590. fi
  11591. if test $pkg_failed = yes; then
  11592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11593. $as_echo "no" >&6; }
  11594. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  11595. _pkg_short_errors_supported=yes
  11596. else
  11597. _pkg_short_errors_supported=no
  11598. fi
  11599. if test $_pkg_short_errors_supported = yes; then
  11600. TSS2_RC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "tss2-rc" 2>&1`
  11601. else
  11602. TSS2_RC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "tss2-rc" 2>&1`
  11603. fi
  11604. # Put the nasty error message in config.log where it belongs
  11605. echo "$TSS2_RC_PKG_ERRORS" >&5
  11606. as_fn_error $? "Package requirements (tss2-rc) were not met:
  11607. $TSS2_RC_PKG_ERRORS
  11608. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  11609. installed software in a non-standard prefix.
  11610. Alternatively, you may set the environment variables TSS2_RC_CFLAGS
  11611. and TSS2_RC_LIBS to avoid the need to call pkg-config.
  11612. See the pkg-config man page for more details." "$LINENO" 5
  11613. elif test $pkg_failed = untried; then
  11614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11615. $as_echo "no" >&6; }
  11616. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11617. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11618. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  11619. is in your PATH or set the PKG_CONFIG environment variable to the full
  11620. path to pkg-config.
  11621. Alternatively, you may set the environment variables TSS2_RC_CFLAGS
  11622. and TSS2_RC_LIBS to avoid the need to call pkg-config.
  11623. See the pkg-config man page for more details.
  11624. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  11625. See \`config.log' for more details" "$LINENO" 5; }
  11626. else
  11627. TSS2_RC_CFLAGS=$pkg_cv_TSS2_RC_CFLAGS
  11628. TSS2_RC_LIBS=$pkg_cv_TSS2_RC_LIBS
  11629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11630. $as_echo "yes" >&6; }
  11631. fi
  11632. pkg_failed=no
  11633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TSS2_SYS" >&5
  11634. $as_echo_n "checking for TSS2_SYS... " >&6; }
  11635. if test -n "$TSS2_SYS_CFLAGS"; then
  11636. pkg_cv_TSS2_SYS_CFLAGS="$TSS2_SYS_CFLAGS"
  11637. elif test -n "$PKG_CONFIG"; then
  11638. if test -n "$PKG_CONFIG" && \
  11639. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tss2-sys\""; } >&5
  11640. ($PKG_CONFIG --exists --print-errors "tss2-sys") 2>&5
  11641. ac_status=$?
  11642. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11643. test $ac_status = 0; }; then
  11644. pkg_cv_TSS2_SYS_CFLAGS=`$PKG_CONFIG --cflags "tss2-sys" 2>/dev/null`
  11645. test "x$?" != "x0" && pkg_failed=yes
  11646. else
  11647. pkg_failed=yes
  11648. fi
  11649. else
  11650. pkg_failed=untried
  11651. fi
  11652. if test -n "$TSS2_SYS_LIBS"; then
  11653. pkg_cv_TSS2_SYS_LIBS="$TSS2_SYS_LIBS"
  11654. elif test -n "$PKG_CONFIG"; then
  11655. if test -n "$PKG_CONFIG" && \
  11656. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tss2-sys\""; } >&5
  11657. ($PKG_CONFIG --exists --print-errors "tss2-sys") 2>&5
  11658. ac_status=$?
  11659. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11660. test $ac_status = 0; }; then
  11661. pkg_cv_TSS2_SYS_LIBS=`$PKG_CONFIG --libs "tss2-sys" 2>/dev/null`
  11662. test "x$?" != "x0" && pkg_failed=yes
  11663. else
  11664. pkg_failed=yes
  11665. fi
  11666. else
  11667. pkg_failed=untried
  11668. fi
  11669. if test $pkg_failed = yes; then
  11670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11671. $as_echo "no" >&6; }
  11672. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  11673. _pkg_short_errors_supported=yes
  11674. else
  11675. _pkg_short_errors_supported=no
  11676. fi
  11677. if test $_pkg_short_errors_supported = yes; then
  11678. TSS2_SYS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "tss2-sys" 2>&1`
  11679. else
  11680. TSS2_SYS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "tss2-sys" 2>&1`
  11681. fi
  11682. # Put the nasty error message in config.log where it belongs
  11683. echo "$TSS2_SYS_PKG_ERRORS" >&5
  11684. as_fn_error $? "Package requirements (tss2-sys) were not met:
  11685. $TSS2_SYS_PKG_ERRORS
  11686. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  11687. installed software in a non-standard prefix.
  11688. Alternatively, you may set the environment variables TSS2_SYS_CFLAGS
  11689. and TSS2_SYS_LIBS to avoid the need to call pkg-config.
  11690. See the pkg-config man page for more details." "$LINENO" 5
  11691. elif test $pkg_failed = untried; then
  11692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11693. $as_echo "no" >&6; }
  11694. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11695. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11696. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  11697. is in your PATH or set the PKG_CONFIG environment variable to the full
  11698. path to pkg-config.
  11699. Alternatively, you may set the environment variables TSS2_SYS_CFLAGS
  11700. and TSS2_SYS_LIBS to avoid the need to call pkg-config.
  11701. See the pkg-config man page for more details.
  11702. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  11703. See \`config.log' for more details" "$LINENO" 5; }
  11704. else
  11705. TSS2_SYS_CFLAGS=$pkg_cv_TSS2_SYS_CFLAGS
  11706. TSS2_SYS_LIBS=$pkg_cv_TSS2_SYS_LIBS
  11707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11708. $as_echo "yes" >&6; }
  11709. fi
  11710. pkg_failed=no
  11711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO" >&5
  11712. $as_echo_n "checking for CRYPTO... " >&6; }
  11713. if test -n "$CRYPTO_CFLAGS"; then
  11714. pkg_cv_CRYPTO_CFLAGS="$CRYPTO_CFLAGS"
  11715. elif test -n "$PKG_CONFIG"; then
  11716. if test -n "$PKG_CONFIG" && \
  11717. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 1.0.2g\""; } >&5
  11718. ($PKG_CONFIG --exists --print-errors "libcrypto >= 1.0.2g") 2>&5
  11719. ac_status=$?
  11720. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11721. test $ac_status = 0; }; then
  11722. pkg_cv_CRYPTO_CFLAGS=`$PKG_CONFIG --cflags "libcrypto >= 1.0.2g" 2>/dev/null`
  11723. test "x$?" != "x0" && pkg_failed=yes
  11724. else
  11725. pkg_failed=yes
  11726. fi
  11727. else
  11728. pkg_failed=untried
  11729. fi
  11730. if test -n "$CRYPTO_LIBS"; then
  11731. pkg_cv_CRYPTO_LIBS="$CRYPTO_LIBS"
  11732. elif test -n "$PKG_CONFIG"; then
  11733. if test -n "$PKG_CONFIG" && \
  11734. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 1.0.2g\""; } >&5
  11735. ($PKG_CONFIG --exists --print-errors "libcrypto >= 1.0.2g") 2>&5
  11736. ac_status=$?
  11737. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11738. test $ac_status = 0; }; then
  11739. pkg_cv_CRYPTO_LIBS=`$PKG_CONFIG --libs "libcrypto >= 1.0.2g" 2>/dev/null`
  11740. test "x$?" != "x0" && pkg_failed=yes
  11741. else
  11742. pkg_failed=yes
  11743. fi
  11744. else
  11745. pkg_failed=untried
  11746. fi
  11747. if test $pkg_failed = yes; then
  11748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11749. $as_echo "no" >&6; }
  11750. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  11751. _pkg_short_errors_supported=yes
  11752. else
  11753. _pkg_short_errors_supported=no
  11754. fi
  11755. if test $_pkg_short_errors_supported = yes; then
  11756. CRYPTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcrypto >= 1.0.2g" 2>&1`
  11757. else
  11758. CRYPTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcrypto >= 1.0.2g" 2>&1`
  11759. fi
  11760. # Put the nasty error message in config.log where it belongs
  11761. echo "$CRYPTO_PKG_ERRORS" >&5
  11762. as_fn_error $? "Package requirements (libcrypto >= 1.0.2g) were not met:
  11763. $CRYPTO_PKG_ERRORS
  11764. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  11765. installed software in a non-standard prefix.
  11766. Alternatively, you may set the environment variables CRYPTO_CFLAGS
  11767. and CRYPTO_LIBS to avoid the need to call pkg-config.
  11768. See the pkg-config man page for more details." "$LINENO" 5
  11769. elif test $pkg_failed = untried; then
  11770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11771. $as_echo "no" >&6; }
  11772. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11773. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11774. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  11775. is in your PATH or set the PKG_CONFIG environment variable to the full
  11776. path to pkg-config.
  11777. Alternatively, you may set the environment variables CRYPTO_CFLAGS
  11778. and CRYPTO_LIBS to avoid the need to call pkg-config.
  11779. See the pkg-config man page for more details.
  11780. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  11781. See \`config.log' for more details" "$LINENO" 5; }
  11782. else
  11783. CRYPTO_CFLAGS=$pkg_cv_CRYPTO_CFLAGS
  11784. CRYPTO_LIBS=$pkg_cv_CRYPTO_LIBS
  11785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11786. $as_echo "yes" >&6; }
  11787. fi
  11788. pkg_failed=no
  11789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CURL" >&5
  11790. $as_echo_n "checking for CURL... " >&6; }
  11791. if test -n "$CURL_CFLAGS"; then
  11792. pkg_cv_CURL_CFLAGS="$CURL_CFLAGS"
  11793. elif test -n "$PKG_CONFIG"; then
  11794. if test -n "$PKG_CONFIG" && \
  11795. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
  11796. ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
  11797. ac_status=$?
  11798. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11799. test $ac_status = 0; }; then
  11800. pkg_cv_CURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl" 2>/dev/null`
  11801. test "x$?" != "x0" && pkg_failed=yes
  11802. else
  11803. pkg_failed=yes
  11804. fi
  11805. else
  11806. pkg_failed=untried
  11807. fi
  11808. if test -n "$CURL_LIBS"; then
  11809. pkg_cv_CURL_LIBS="$CURL_LIBS"
  11810. elif test -n "$PKG_CONFIG"; then
  11811. if test -n "$PKG_CONFIG" && \
  11812. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
  11813. ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
  11814. ac_status=$?
  11815. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11816. test $ac_status = 0; }; then
  11817. pkg_cv_CURL_LIBS=`$PKG_CONFIG --libs "libcurl" 2>/dev/null`
  11818. test "x$?" != "x0" && pkg_failed=yes
  11819. else
  11820. pkg_failed=yes
  11821. fi
  11822. else
  11823. pkg_failed=untried
  11824. fi
  11825. if test $pkg_failed = yes; then
  11826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11827. $as_echo "no" >&6; }
  11828. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  11829. _pkg_short_errors_supported=yes
  11830. else
  11831. _pkg_short_errors_supported=no
  11832. fi
  11833. if test $_pkg_short_errors_supported = yes; then
  11834. CURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl" 2>&1`
  11835. else
  11836. CURL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl" 2>&1`
  11837. fi
  11838. # Put the nasty error message in config.log where it belongs
  11839. echo "$CURL_PKG_ERRORS" >&5
  11840. as_fn_error $? "Package requirements (libcurl) were not met:
  11841. $CURL_PKG_ERRORS
  11842. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  11843. installed software in a non-standard prefix.
  11844. Alternatively, you may set the environment variables CURL_CFLAGS
  11845. and CURL_LIBS to avoid the need to call pkg-config.
  11846. See the pkg-config man page for more details." "$LINENO" 5
  11847. elif test $pkg_failed = untried; then
  11848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11849. $as_echo "no" >&6; }
  11850. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11851. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11852. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  11853. is in your PATH or set the PKG_CONFIG environment variable to the full
  11854. path to pkg-config.
  11855. Alternatively, you may set the environment variables CURL_CFLAGS
  11856. and CURL_LIBS to avoid the need to call pkg-config.
  11857. See the pkg-config man page for more details.
  11858. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  11859. See \`config.log' for more details" "$LINENO" 5; }
  11860. else
  11861. CURL_CFLAGS=$pkg_cv_CURL_CFLAGS
  11862. CURL_LIBS=$pkg_cv_CURL_LIBS
  11863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11864. $as_echo "yes" >&6; }
  11865. fi
  11866. pkg_failed=no
  11867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UUID" >&5
  11868. $as_echo_n "checking for UUID... " >&6; }
  11869. if test -n "$UUID_CFLAGS"; then
  11870. pkg_cv_UUID_CFLAGS="$UUID_CFLAGS"
  11871. elif test -n "$PKG_CONFIG"; then
  11872. if test -n "$PKG_CONFIG" && \
  11873. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid\""; } >&5
  11874. ($PKG_CONFIG --exists --print-errors "uuid") 2>&5
  11875. ac_status=$?
  11876. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11877. test $ac_status = 0; }; then
  11878. pkg_cv_UUID_CFLAGS=`$PKG_CONFIG --cflags "uuid" 2>/dev/null`
  11879. test "x$?" != "x0" && pkg_failed=yes
  11880. else
  11881. pkg_failed=yes
  11882. fi
  11883. else
  11884. pkg_failed=untried
  11885. fi
  11886. if test -n "$UUID_LIBS"; then
  11887. pkg_cv_UUID_LIBS="$UUID_LIBS"
  11888. elif test -n "$PKG_CONFIG"; then
  11889. if test -n "$PKG_CONFIG" && \
  11890. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid\""; } >&5
  11891. ($PKG_CONFIG --exists --print-errors "uuid") 2>&5
  11892. ac_status=$?
  11893. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11894. test $ac_status = 0; }; then
  11895. pkg_cv_UUID_LIBS=`$PKG_CONFIG --libs "uuid" 2>/dev/null`
  11896. test "x$?" != "x0" && pkg_failed=yes
  11897. else
  11898. pkg_failed=yes
  11899. fi
  11900. else
  11901. pkg_failed=untried
  11902. fi
  11903. if test $pkg_failed = yes; then
  11904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11905. $as_echo "no" >&6; }
  11906. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  11907. _pkg_short_errors_supported=yes
  11908. else
  11909. _pkg_short_errors_supported=no
  11910. fi
  11911. if test $_pkg_short_errors_supported = yes; then
  11912. UUID_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "uuid" 2>&1`
  11913. else
  11914. UUID_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "uuid" 2>&1`
  11915. fi
  11916. # Put the nasty error message in config.log where it belongs
  11917. echo "$UUID_PKG_ERRORS" >&5
  11918. as_fn_error $? "Package requirements (uuid) were not met:
  11919. $UUID_PKG_ERRORS
  11920. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  11921. installed software in a non-standard prefix.
  11922. Alternatively, you may set the environment variables UUID_CFLAGS
  11923. and UUID_LIBS to avoid the need to call pkg-config.
  11924. See the pkg-config man page for more details." "$LINENO" 5
  11925. elif test $pkg_failed = untried; then
  11926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11927. $as_echo "no" >&6; }
  11928. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11929. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11930. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  11931. is in your PATH or set the PKG_CONFIG environment variable to the full
  11932. path to pkg-config.
  11933. Alternatively, you may set the environment variables UUID_CFLAGS
  11934. and UUID_LIBS to avoid the need to call pkg-config.
  11935. See the pkg-config man page for more details.
  11936. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  11937. See \`config.log' for more details" "$LINENO" 5; }
  11938. else
  11939. UUID_CFLAGS=$pkg_cv_UUID_CFLAGS
  11940. UUID_LIBS=$pkg_cv_UUID_LIBS
  11941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11942. $as_echo "yes" >&6; }
  11943. fi
  11944. # pretty print of devicepath if efivar library is present
  11945. pkg_failed=no
  11946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EFIVAR" >&5
  11947. $as_echo_n "checking for EFIVAR... " >&6; }
  11948. if test -n "$EFIVAR_CFLAGS"; then
  11949. pkg_cv_EFIVAR_CFLAGS="$EFIVAR_CFLAGS"
  11950. elif test -n "$PKG_CONFIG"; then
  11951. if test -n "$PKG_CONFIG" && \
  11952. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"efivar\""; } >&5
  11953. ($PKG_CONFIG --exists --print-errors "efivar") 2>&5
  11954. ac_status=$?
  11955. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11956. test $ac_status = 0; }; then
  11957. pkg_cv_EFIVAR_CFLAGS=`$PKG_CONFIG --cflags "efivar" 2>/dev/null`
  11958. test "x$?" != "x0" && pkg_failed=yes
  11959. else
  11960. pkg_failed=yes
  11961. fi
  11962. else
  11963. pkg_failed=untried
  11964. fi
  11965. if test -n "$EFIVAR_LIBS"; then
  11966. pkg_cv_EFIVAR_LIBS="$EFIVAR_LIBS"
  11967. elif test -n "$PKG_CONFIG"; then
  11968. if test -n "$PKG_CONFIG" && \
  11969. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"efivar\""; } >&5
  11970. ($PKG_CONFIG --exists --print-errors "efivar") 2>&5
  11971. ac_status=$?
  11972. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11973. test $ac_status = 0; }; then
  11974. pkg_cv_EFIVAR_LIBS=`$PKG_CONFIG --libs "efivar" 2>/dev/null`
  11975. test "x$?" != "x0" && pkg_failed=yes
  11976. else
  11977. pkg_failed=yes
  11978. fi
  11979. else
  11980. pkg_failed=untried
  11981. fi
  11982. if test $pkg_failed = yes; then
  11983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11984. $as_echo "no" >&6; }
  11985. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  11986. _pkg_short_errors_supported=yes
  11987. else
  11988. _pkg_short_errors_supported=no
  11989. fi
  11990. if test $_pkg_short_errors_supported = yes; then
  11991. EFIVAR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "efivar" 2>&1`
  11992. else
  11993. EFIVAR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "efivar" 2>&1`
  11994. fi
  11995. # Put the nasty error message in config.log where it belongs
  11996. echo "$EFIVAR_PKG_ERRORS" >&5
  11997. true
  11998. elif test $pkg_failed = untried; then
  11999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12000. $as_echo "no" >&6; }
  12001. true
  12002. else
  12003. EFIVAR_CFLAGS=$pkg_cv_EFIVAR_CFLAGS
  12004. EFIVAR_LIBS=$pkg_cv_EFIVAR_LIBS
  12005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12006. $as_echo "yes" >&6; }
  12007. fi
  12008. for ac_header in efivar/efivar.h
  12009. do :
  12010. ac_fn_c_check_header_mongrel "$LINENO" "efivar/efivar.h" "ac_cv_header_efivar_efivar_h" "$ac_includes_default"
  12011. if test "x$ac_cv_header_efivar_efivar_h" = xyes; then :
  12012. cat >>confdefs.h <<_ACEOF
  12013. #define HAVE_EFIVAR_EFIVAR_H 1
  12014. _ACEOF
  12015. fi
  12016. done
  12017. # backwards compat with older pkg-config
  12018. # - pull in AC_DEFUN from pkg.m4
  12019. # Check whether --with-bashcompdir was given.
  12020. if test "${with_bashcompdir+set}" = set; then :
  12021. withval=$with_bashcompdir;
  12022. else
  12023. if test -n "$with_bashcompdir"; then
  12024. pkg_cv_with_bashcompdir="$with_bashcompdir"
  12025. elif test -n "$PKG_CONFIG"; then
  12026. if test -n "$PKG_CONFIG" && \
  12027. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bash-completion\""; } >&5
  12028. ($PKG_CONFIG --exists --print-errors "bash-completion") 2>&5
  12029. ac_status=$?
  12030. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12031. test $ac_status = 0; }; then
  12032. pkg_cv_with_bashcompdir=`$PKG_CONFIG --variable="completionsdir" "bash-completion" 2>/dev/null`
  12033. test "x$?" != "x0" && pkg_failed=yes
  12034. else
  12035. pkg_failed=yes
  12036. fi
  12037. else
  12038. pkg_failed=untried
  12039. fi
  12040. with_bashcompdir=$pkg_cv_with_bashcompdir
  12041. if test "x$with_bashcompdir" = x""; then :
  12042. with_bashcompdir="${datarootdir}/bash-completion/completions"
  12043. fi
  12044. fi
  12045. bashcompdir=$with_bashcompdir
  12046. # Check whether --with-tpmsim was given.
  12047. if test "${with_tpmsim+set}" = set; then :
  12048. withval=$with_tpmsim;
  12049. fi
  12050. tpmsim=$with_tpmsim
  12051. # Check OS and set library and compile flags accordingly
  12052. case "${host_os}" in
  12053. *nto-qnx*)
  12054. EXTRA_CFLAGS="$EXTRA_CFLAGS -D_QNX_SOURCE"
  12055. LIBDL_LDFLAGS=""
  12056. ;;
  12057. *)
  12058. LIBDL_LDFLAGS="-ldl"
  12059. ;;
  12060. esac
  12061. # Check whether --enable-unit was given.
  12062. if test "${enable_unit+set}" = set; then :
  12063. enableval=$enable_unit;
  12064. else
  12065. enable_unit=no
  12066. fi
  12067. if test "x$enable_unit" != xno; then
  12068. UNIT_TRUE=
  12069. UNIT_FALSE='#'
  12070. else
  12071. UNIT_TRUE='#'
  12072. UNIT_FALSE=
  12073. fi
  12074. # Check whether --enable-persistent was given.
  12075. if test "${enable_persistent+set}" = set; then :
  12076. enableval=$enable_persistent;
  12077. fi
  12078. if test "x$enable_persistent" != xno; then
  12079. PERSISTENT_TRUE=
  12080. PERSISTENT_FALSE='#'
  12081. else
  12082. PERSISTENT_TRUE='#'
  12083. PERSISTENT_FALSE=
  12084. fi
  12085. # Check OS and set library and compile flags accordingly
  12086. case "${host_os}" in
  12087. *bsd* | *BSD*)
  12088. HOSTOS='BSD'
  12089. ;;
  12090. *)
  12091. #Assume linux
  12092. HOSTOS='Linux'
  12093. ;;
  12094. esac
  12095. if test "x$enable_unit" != xno; then :
  12096. pkg_failed=no
  12097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMOCKA" >&5
  12098. $as_echo_n "checking for CMOCKA... " >&6; }
  12099. if test -n "$CMOCKA_CFLAGS"; then
  12100. pkg_cv_CMOCKA_CFLAGS="$CMOCKA_CFLAGS"
  12101. elif test -n "$PKG_CONFIG"; then
  12102. if test -n "$PKG_CONFIG" && \
  12103. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka\""; } >&5
  12104. ($PKG_CONFIG --exists --print-errors "cmocka") 2>&5
  12105. ac_status=$?
  12106. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12107. test $ac_status = 0; }; then
  12108. pkg_cv_CMOCKA_CFLAGS=`$PKG_CONFIG --cflags "cmocka" 2>/dev/null`
  12109. test "x$?" != "x0" && pkg_failed=yes
  12110. else
  12111. pkg_failed=yes
  12112. fi
  12113. else
  12114. pkg_failed=untried
  12115. fi
  12116. if test -n "$CMOCKA_LIBS"; then
  12117. pkg_cv_CMOCKA_LIBS="$CMOCKA_LIBS"
  12118. elif test -n "$PKG_CONFIG"; then
  12119. if test -n "$PKG_CONFIG" && \
  12120. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka\""; } >&5
  12121. ($PKG_CONFIG --exists --print-errors "cmocka") 2>&5
  12122. ac_status=$?
  12123. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12124. test $ac_status = 0; }; then
  12125. pkg_cv_CMOCKA_LIBS=`$PKG_CONFIG --libs "cmocka" 2>/dev/null`
  12126. test "x$?" != "x0" && pkg_failed=yes
  12127. else
  12128. pkg_failed=yes
  12129. fi
  12130. else
  12131. pkg_failed=untried
  12132. fi
  12133. if test $pkg_failed = yes; then
  12134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12135. $as_echo "no" >&6; }
  12136. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  12137. _pkg_short_errors_supported=yes
  12138. else
  12139. _pkg_short_errors_supported=no
  12140. fi
  12141. if test $_pkg_short_errors_supported = yes; then
  12142. CMOCKA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cmocka" 2>&1`
  12143. else
  12144. CMOCKA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cmocka" 2>&1`
  12145. fi
  12146. # Put the nasty error message in config.log where it belongs
  12147. echo "$CMOCKA_PKG_ERRORS" >&5
  12148. as_fn_error $? "Package requirements (cmocka) were not met:
  12149. $CMOCKA_PKG_ERRORS
  12150. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  12151. installed software in a non-standard prefix.
  12152. Alternatively, you may set the environment variables CMOCKA_CFLAGS
  12153. and CMOCKA_LIBS to avoid the need to call pkg-config.
  12154. See the pkg-config man page for more details." "$LINENO" 5
  12155. elif test $pkg_failed = untried; then
  12156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12157. $as_echo "no" >&6; }
  12158. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12159. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12160. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  12161. is in your PATH or set the PKG_CONFIG environment variable to the full
  12162. path to pkg-config.
  12163. Alternatively, you may set the environment variables CMOCKA_CFLAGS
  12164. and CMOCKA_LIBS to avoid the need to call pkg-config.
  12165. See the pkg-config man page for more details.
  12166. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  12167. See \`config.log' for more details" "$LINENO" 5; }
  12168. else
  12169. CMOCKA_CFLAGS=$pkg_cv_CMOCKA_CFLAGS
  12170. CMOCKA_LIBS=$pkg_cv_CMOCKA_LIBS
  12171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12172. $as_echo "yes" >&6; }
  12173. fi
  12174. # Extract the first word of "tpm2-abrmd", so it can be a program name with args.
  12175. set dummy tpm2-abrmd; ac_word=$2
  12176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12177. $as_echo_n "checking for $ac_word... " >&6; }
  12178. if ${ac_cv_prog_tpm2_abrmd+:} false; then :
  12179. $as_echo_n "(cached) " >&6
  12180. else
  12181. if test -n "$tpm2_abrmd"; then
  12182. ac_cv_prog_tpm2_abrmd="$tpm2_abrmd" # Let the user override the test.
  12183. else
  12184. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12185. for as_dir in $PATH
  12186. do
  12187. IFS=$as_save_IFS
  12188. test -z "$as_dir" && as_dir=.
  12189. for ac_exec_ext in '' $ac_executable_extensions; do
  12190. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12191. ac_cv_prog_tpm2_abrmd="yes"
  12192. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12193. break 2
  12194. fi
  12195. done
  12196. done
  12197. IFS=$as_save_IFS
  12198. test -z "$ac_cv_prog_tpm2_abrmd" && ac_cv_prog_tpm2_abrmd="no"
  12199. fi
  12200. fi
  12201. tpm2_abrmd=$ac_cv_prog_tpm2_abrmd
  12202. if test -n "$tpm2_abrmd"; then
  12203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tpm2_abrmd" >&5
  12204. $as_echo "$tpm2_abrmd" >&6; }
  12205. else
  12206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12207. $as_echo "no" >&6; }
  12208. fi
  12209. if test $tpm2_abrmd = yes; then :
  12210. TPM2_ABRMD=tpm2-abrmd
  12211. else
  12212. as_fn_error $? "Required executable tpm2_abrmd not found, try setting PATH" "$LINENO" 5
  12213. fi
  12214. if test -z "$tpmsim"; then :
  12215. # Extract the first word of "swtpm", so it can be a program name with args.
  12216. set dummy swtpm; ac_word=$2
  12217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12218. $as_echo_n "checking for $ac_word... " >&6; }
  12219. if ${ac_cv_prog_swtpm+:} false; then :
  12220. $as_echo_n "(cached) " >&6
  12221. else
  12222. if test -n "$swtpm"; then
  12223. ac_cv_prog_swtpm="$swtpm" # Let the user override the test.
  12224. else
  12225. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12226. for as_dir in $PATH
  12227. do
  12228. IFS=$as_save_IFS
  12229. test -z "$as_dir" && as_dir=.
  12230. for ac_exec_ext in '' $ac_executable_extensions; do
  12231. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12232. ac_cv_prog_swtpm="yes"
  12233. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12234. break 2
  12235. fi
  12236. done
  12237. done
  12238. IFS=$as_save_IFS
  12239. test -z "$ac_cv_prog_swtpm" && ac_cv_prog_swtpm="no"
  12240. fi
  12241. fi
  12242. swtpm=$ac_cv_prog_swtpm
  12243. if test -n "$swtpm"; then
  12244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swtpm" >&5
  12245. $as_echo "$swtpm" >&6; }
  12246. else
  12247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12248. $as_echo "no" >&6; }
  12249. fi
  12250. # Extract the first word of "tpm_server", so it can be a program name with args.
  12251. set dummy tpm_server; ac_word=$2
  12252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12253. $as_echo_n "checking for $ac_word... " >&6; }
  12254. if ${ac_cv_prog_tpm_server+:} false; then :
  12255. $as_echo_n "(cached) " >&6
  12256. else
  12257. if test -n "$tpm_server"; then
  12258. ac_cv_prog_tpm_server="$tpm_server" # Let the user override the test.
  12259. else
  12260. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12261. for as_dir in $PATH
  12262. do
  12263. IFS=$as_save_IFS
  12264. test -z "$as_dir" && as_dir=.
  12265. for ac_exec_ext in '' $ac_executable_extensions; do
  12266. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12267. ac_cv_prog_tpm_server="yes"
  12268. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12269. break 2
  12270. fi
  12271. done
  12272. done
  12273. IFS=$as_save_IFS
  12274. test -z "$ac_cv_prog_tpm_server" && ac_cv_prog_tpm_server="no"
  12275. fi
  12276. fi
  12277. tpm_server=$ac_cv_prog_tpm_server
  12278. if test -n "$tpm_server"; then
  12279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tpm_server" >&5
  12280. $as_echo "$tpm_server" >&6; }
  12281. else
  12282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12283. $as_echo "no" >&6; }
  12284. fi
  12285. if test $swtpm = yes; then :
  12286. TPM2_SIM=swtpm
  12287. else
  12288. if test $tpm_server = yes; then :
  12289. TPM2_SIM=tpm_server
  12290. else
  12291. as_fn_error $? "Required executables swtpm or tpm_server not found, try setting PATH" "$LINENO" 5
  12292. fi
  12293. fi
  12294. else
  12295. # Extract the first word of "$tpmsim", so it can be a program name with args.
  12296. set dummy $tpmsim; ac_word=$2
  12297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12298. $as_echo_n "checking for $ac_word... " >&6; }
  12299. if ${ac_cv_prog_HAS_TPM2_SIM+:} false; then :
  12300. $as_echo_n "(cached) " >&6
  12301. else
  12302. if test -n "$HAS_TPM2_SIM"; then
  12303. ac_cv_prog_HAS_TPM2_SIM="$HAS_TPM2_SIM" # Let the user override the test.
  12304. else
  12305. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12306. for as_dir in $PATH
  12307. do
  12308. IFS=$as_save_IFS
  12309. test -z "$as_dir" && as_dir=.
  12310. for ac_exec_ext in '' $ac_executable_extensions; do
  12311. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12312. ac_cv_prog_HAS_TPM2_SIM="yes"
  12313. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12314. break 2
  12315. fi
  12316. done
  12317. done
  12318. IFS=$as_save_IFS
  12319. test -z "$ac_cv_prog_HAS_TPM2_SIM" && ac_cv_prog_HAS_TPM2_SIM="no"
  12320. fi
  12321. fi
  12322. HAS_TPM2_SIM=$ac_cv_prog_HAS_TPM2_SIM
  12323. if test -n "$HAS_TPM2_SIM"; then
  12324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_TPM2_SIM" >&5
  12325. $as_echo "$HAS_TPM2_SIM" >&6; }
  12326. else
  12327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12328. $as_echo "no" >&6; }
  12329. fi
  12330. if test "$HAS_TPM2_SIM" = yes; then :
  12331. TPM2_SIM=$tpmsim
  12332. else
  12333. as_fn_error $? "Required executable $tpmsim not found, system tests require a tpm simulator shell!" "$LINENO" 5
  12334. fi
  12335. fi
  12336. # Extract the first word of "bash", so it can be a program name with args.
  12337. set dummy bash; ac_word=$2
  12338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12339. $as_echo_n "checking for $ac_word... " >&6; }
  12340. if ${ac_cv_prog_BASH_SHELL+:} false; then :
  12341. $as_echo_n "(cached) " >&6
  12342. else
  12343. if test -n "$BASH_SHELL"; then
  12344. ac_cv_prog_BASH_SHELL="$BASH_SHELL" # Let the user override the test.
  12345. else
  12346. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12347. for as_dir in $PATH
  12348. do
  12349. IFS=$as_save_IFS
  12350. test -z "$as_dir" && as_dir=.
  12351. for ac_exec_ext in '' $ac_executable_extensions; do
  12352. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12353. ac_cv_prog_BASH_SHELL="yes"
  12354. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12355. break 2
  12356. fi
  12357. done
  12358. done
  12359. IFS=$as_save_IFS
  12360. test -z "$ac_cv_prog_BASH_SHELL" && ac_cv_prog_BASH_SHELL="no"
  12361. fi
  12362. fi
  12363. BASH_SHELL=$ac_cv_prog_BASH_SHELL
  12364. if test -n "$BASH_SHELL"; then
  12365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH_SHELL" >&5
  12366. $as_echo "$BASH_SHELL" >&6; }
  12367. else
  12368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12369. $as_echo "no" >&6; }
  12370. fi
  12371. if test $BASH_SHELL = no; then :
  12372. as_fn_error $? "Required executable bash not found, system tests require a bash shell!" "$LINENO" 5
  12373. fi
  12374. if test -n "$PYTHON"; then
  12375. # If the user set $PYTHON, use it and don't search something else.
  12376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.7" >&5
  12377. $as_echo_n "checking whether $PYTHON version is >= 2.7... " >&6; }
  12378. prog="import sys
  12379. # split strings by '.' and convert to numeric. Append some zeros
  12380. # because we need at least 4 digits for the hex conversion.
  12381. # map returns an iterator in Python 3.0 and a list in 2.x
  12382. minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
  12383. minverhex = 0
  12384. # xrange is not present in Python 3.0 and range returns an iterator
  12385. for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
  12386. sys.exit(sys.hexversion < minverhex)"
  12387. if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
  12388. ($PYTHON -c "$prog") >&5 2>&5
  12389. ac_status=$?
  12390. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12391. (exit $ac_status); }; then :
  12392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12393. $as_echo "yes" >&6; }
  12394. else
  12395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12396. $as_echo "no" >&6; }
  12397. as_fn_error $? "Python interpreter is too old" "$LINENO" 5
  12398. fi
  12399. am_display_PYTHON=$PYTHON
  12400. else
  12401. # Otherwise, try each interpreter until we find one that satisfies
  12402. # VERSION.
  12403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.7" >&5
  12404. $as_echo_n "checking for a Python interpreter with version >= 2.7... " >&6; }
  12405. if ${am_cv_pathless_PYTHON+:} false; then :
  12406. $as_echo_n "(cached) " >&6
  12407. else
  12408. for am_cv_pathless_PYTHON in python python2 python3 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
  12409. test "$am_cv_pathless_PYTHON" = none && break
  12410. prog="import sys
  12411. # split strings by '.' and convert to numeric. Append some zeros
  12412. # because we need at least 4 digits for the hex conversion.
  12413. # map returns an iterator in Python 3.0 and a list in 2.x
  12414. minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
  12415. minverhex = 0
  12416. # xrange is not present in Python 3.0 and range returns an iterator
  12417. for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
  12418. sys.exit(sys.hexversion < minverhex)"
  12419. if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
  12420. ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
  12421. ac_status=$?
  12422. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12423. (exit $ac_status); }; then :
  12424. break
  12425. fi
  12426. done
  12427. fi
  12428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
  12429. $as_echo "$am_cv_pathless_PYTHON" >&6; }
  12430. # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
  12431. if test "$am_cv_pathless_PYTHON" = none; then
  12432. PYTHON=:
  12433. else
  12434. # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
  12435. set dummy $am_cv_pathless_PYTHON; ac_word=$2
  12436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12437. $as_echo_n "checking for $ac_word... " >&6; }
  12438. if ${ac_cv_path_PYTHON+:} false; then :
  12439. $as_echo_n "(cached) " >&6
  12440. else
  12441. case $PYTHON in
  12442. [\\/]* | ?:[\\/]*)
  12443. ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
  12444. ;;
  12445. *)
  12446. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12447. for as_dir in $PATH
  12448. do
  12449. IFS=$as_save_IFS
  12450. test -z "$as_dir" && as_dir=.
  12451. for ac_exec_ext in '' $ac_executable_extensions; do
  12452. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12453. ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
  12454. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12455. break 2
  12456. fi
  12457. done
  12458. done
  12459. IFS=$as_save_IFS
  12460. ;;
  12461. esac
  12462. fi
  12463. PYTHON=$ac_cv_path_PYTHON
  12464. if test -n "$PYTHON"; then
  12465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
  12466. $as_echo "$PYTHON" >&6; }
  12467. else
  12468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12469. $as_echo "no" >&6; }
  12470. fi
  12471. fi
  12472. am_display_PYTHON=$am_cv_pathless_PYTHON
  12473. fi
  12474. if test "$PYTHON" = :; then
  12475. as_fn_error $? "Required executable python not found, some system tests will fail!" "$LINENO" 5
  12476. else
  12477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
  12478. $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
  12479. if ${am_cv_python_version+:} false; then :
  12480. $as_echo_n "(cached) " >&6
  12481. else
  12482. am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
  12483. fi
  12484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
  12485. $as_echo "$am_cv_python_version" >&6; }
  12486. PYTHON_VERSION=$am_cv_python_version
  12487. PYTHON_PREFIX='${prefix}'
  12488. PYTHON_EXEC_PREFIX='${exec_prefix}'
  12489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
  12490. $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
  12491. if ${am_cv_python_platform+:} false; then :
  12492. $as_echo_n "(cached) " >&6
  12493. else
  12494. am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
  12495. fi
  12496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
  12497. $as_echo "$am_cv_python_platform" >&6; }
  12498. PYTHON_PLATFORM=$am_cv_python_platform
  12499. # Just factor out some code duplication.
  12500. am_python_setup_sysconfig="\
  12501. import sys
  12502. # Prefer sysconfig over distutils.sysconfig, for better compatibility
  12503. # with python 3.x. See automake bug#10227.
  12504. try:
  12505. import sysconfig
  12506. except ImportError:
  12507. can_use_sysconfig = 0
  12508. else:
  12509. can_use_sysconfig = 1
  12510. # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
  12511. # <https://github.com/pypa/virtualenv/issues/118>
  12512. try:
  12513. from platform import python_implementation
  12514. if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
  12515. can_use_sysconfig = 0
  12516. except ImportError:
  12517. pass"
  12518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
  12519. $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
  12520. if ${am_cv_python_pythondir+:} false; then :
  12521. $as_echo_n "(cached) " >&6
  12522. else
  12523. if test "x$prefix" = xNONE
  12524. then
  12525. am_py_prefix=$ac_default_prefix
  12526. else
  12527. am_py_prefix=$prefix
  12528. fi
  12529. am_cv_python_pythondir=`$PYTHON -c "
  12530. $am_python_setup_sysconfig
  12531. if can_use_sysconfig:
  12532. sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
  12533. else:
  12534. from distutils import sysconfig
  12535. sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
  12536. sys.stdout.write(sitedir)"`
  12537. case $am_cv_python_pythondir in
  12538. $am_py_prefix*)
  12539. am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
  12540. am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
  12541. ;;
  12542. *)
  12543. case $am_py_prefix in
  12544. /usr|/System*) ;;
  12545. *)
  12546. am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
  12547. ;;
  12548. esac
  12549. ;;
  12550. esac
  12551. fi
  12552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
  12553. $as_echo "$am_cv_python_pythondir" >&6; }
  12554. pythondir=$am_cv_python_pythondir
  12555. pkgpythondir=\${pythondir}/$PACKAGE
  12556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
  12557. $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
  12558. if ${am_cv_python_pyexecdir+:} false; then :
  12559. $as_echo_n "(cached) " >&6
  12560. else
  12561. if test "x$exec_prefix" = xNONE
  12562. then
  12563. am_py_exec_prefix=$am_py_prefix
  12564. else
  12565. am_py_exec_prefix=$exec_prefix
  12566. fi
  12567. am_cv_python_pyexecdir=`$PYTHON -c "
  12568. $am_python_setup_sysconfig
  12569. if can_use_sysconfig:
  12570. sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
  12571. else:
  12572. from distutils import sysconfig
  12573. sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
  12574. sys.stdout.write(sitedir)"`
  12575. case $am_cv_python_pyexecdir in
  12576. $am_py_exec_prefix*)
  12577. am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
  12578. am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
  12579. ;;
  12580. *)
  12581. case $am_py_exec_prefix in
  12582. /usr|/System*) ;;
  12583. *)
  12584. am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
  12585. ;;
  12586. esac
  12587. ;;
  12588. esac
  12589. fi
  12590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
  12591. $as_echo "$am_cv_python_pyexecdir" >&6; }
  12592. pyexecdir=$am_cv_python_pyexecdir
  12593. pkgpyexecdir=\${pyexecdir}/$PACKAGE
  12594. fi
  12595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for module yaml in $PYTHON" >&5
  12596. $as_echo_n "checking for module yaml in $PYTHON... " >&6; }
  12597. echo "import yaml" | $PYTHON - 2>/dev/null
  12598. if test $? -ne 0 ; then
  12599. as_fn_error $? "not found" "$LINENO" 5
  12600. else
  12601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
  12602. $as_echo "found" >&6; }
  12603. fi
  12604. # Extract the first word of "xxd", so it can be a program name with args.
  12605. set dummy xxd; ac_word=$2
  12606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12607. $as_echo_n "checking for $ac_word... " >&6; }
  12608. if ${ac_cv_prog_XXD+:} false; then :
  12609. $as_echo_n "(cached) " >&6
  12610. else
  12611. if test -n "$XXD"; then
  12612. ac_cv_prog_XXD="$XXD" # Let the user override the test.
  12613. else
  12614. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12615. for as_dir in $PATH
  12616. do
  12617. IFS=$as_save_IFS
  12618. test -z "$as_dir" && as_dir=.
  12619. for ac_exec_ext in '' $ac_executable_extensions; do
  12620. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12621. ac_cv_prog_XXD="yes"
  12622. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12623. break 2
  12624. fi
  12625. done
  12626. done
  12627. IFS=$as_save_IFS
  12628. test -z "$ac_cv_prog_XXD" && ac_cv_prog_XXD="no"
  12629. fi
  12630. fi
  12631. XXD=$ac_cv_prog_XXD
  12632. if test -n "$XXD"; then
  12633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XXD" >&5
  12634. $as_echo "$XXD" >&6; }
  12635. else
  12636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12637. $as_echo "no" >&6; }
  12638. fi
  12639. if test $XXD = no; then :
  12640. as_fn_error $? "Required executable xxd not found, some system tests will fail!" "$LINENO" 5
  12641. fi
  12642. if test "$HOSTOS" = "Linux"; then :
  12643. # Extract the first word of "ss", so it can be a program name with args.
  12644. set dummy ss; ac_word=$2
  12645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12646. $as_echo_n "checking for $ac_word... " >&6; }
  12647. if ${ac_cv_prog_SS+:} false; then :
  12648. $as_echo_n "(cached) " >&6
  12649. else
  12650. if test -n "$SS"; then
  12651. ac_cv_prog_SS="$SS" # Let the user override the test.
  12652. else
  12653. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12654. for as_dir in $PATH
  12655. do
  12656. IFS=$as_save_IFS
  12657. test -z "$as_dir" && as_dir=.
  12658. for ac_exec_ext in '' $ac_executable_extensions; do
  12659. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12660. ac_cv_prog_SS="yes"
  12661. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12662. break 2
  12663. fi
  12664. done
  12665. done
  12666. IFS=$as_save_IFS
  12667. test -z "$ac_cv_prog_SS" && ac_cv_prog_SS="no"
  12668. fi
  12669. fi
  12670. SS=$ac_cv_prog_SS
  12671. if test -n "$SS"; then
  12672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SS" >&5
  12673. $as_echo "$SS" >&6; }
  12674. else
  12675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12676. $as_echo "no" >&6; }
  12677. fi
  12678. else
  12679. # Extract the first word of "sockstat", so it can be a program name with args.
  12680. set dummy sockstat; ac_word=$2
  12681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12682. $as_echo_n "checking for $ac_word... " >&6; }
  12683. if ${ac_cv_prog_SS+:} false; then :
  12684. $as_echo_n "(cached) " >&6
  12685. else
  12686. if test -n "$SS"; then
  12687. ac_cv_prog_SS="$SS" # Let the user override the test.
  12688. else
  12689. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12690. for as_dir in $PATH
  12691. do
  12692. IFS=$as_save_IFS
  12693. test -z "$as_dir" && as_dir=.
  12694. for ac_exec_ext in '' $ac_executable_extensions; do
  12695. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12696. ac_cv_prog_SS="yes"
  12697. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12698. break 2
  12699. fi
  12700. done
  12701. done
  12702. IFS=$as_save_IFS
  12703. test -z "$ac_cv_prog_SS" && ac_cv_prog_SS="no"
  12704. fi
  12705. fi
  12706. SS=$ac_cv_prog_SS
  12707. if test -n "$SS"; then
  12708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SS" >&5
  12709. $as_echo "$SS" >&6; }
  12710. else
  12711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12712. $as_echo "no" >&6; }
  12713. fi
  12714. fi
  12715. if test $SS = no; then :
  12716. as_fn_error $? "Required executable ss/sockstat not found, some system tests will fail!" "$LINENO" 5
  12717. fi
  12718. # Extract the first word of "shasum", so it can be a program name with args.
  12719. set dummy shasum; ac_word=$2
  12720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12721. $as_echo_n "checking for $ac_word... " >&6; }
  12722. if ${ac_cv_prog_SHASUM+:} false; then :
  12723. $as_echo_n "(cached) " >&6
  12724. else
  12725. if test -n "$SHASUM"; then
  12726. ac_cv_prog_SHASUM="$SHASUM" # Let the user override the test.
  12727. else
  12728. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12729. for as_dir in $PATH
  12730. do
  12731. IFS=$as_save_IFS
  12732. test -z "$as_dir" && as_dir=.
  12733. for ac_exec_ext in '' $ac_executable_extensions; do
  12734. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12735. ac_cv_prog_SHASUM="yes"
  12736. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12737. break 2
  12738. fi
  12739. done
  12740. done
  12741. IFS=$as_save_IFS
  12742. test -z "$ac_cv_prog_SHASUM" && ac_cv_prog_SHASUM="no"
  12743. fi
  12744. fi
  12745. SHASUM=$ac_cv_prog_SHASUM
  12746. if test -n "$SHASUM"; then
  12747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHASUM" >&5
  12748. $as_echo "$SHASUM" >&6; }
  12749. else
  12750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12751. $as_echo "no" >&6; }
  12752. fi
  12753. if test $SHASUM = no; then :
  12754. as_fn_error $? "Required executable shasum not found, some system tests will fail!" "$LINENO" 5
  12755. fi
  12756. # Extract the first word of "mktemp", so it can be a program name with args.
  12757. set dummy mktemp; ac_word=$2
  12758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12759. $as_echo_n "checking for $ac_word... " >&6; }
  12760. if ${ac_cv_prog_MKTEMP+:} false; then :
  12761. $as_echo_n "(cached) " >&6
  12762. else
  12763. if test -n "$MKTEMP"; then
  12764. ac_cv_prog_MKTEMP="$MKTEMP" # Let the user override the test.
  12765. else
  12766. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12767. for as_dir in $PATH
  12768. do
  12769. IFS=$as_save_IFS
  12770. test -z "$as_dir" && as_dir=.
  12771. for ac_exec_ext in '' $ac_executable_extensions; do
  12772. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12773. ac_cv_prog_MKTEMP="yes"
  12774. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12775. break 2
  12776. fi
  12777. done
  12778. done
  12779. IFS=$as_save_IFS
  12780. test -z "$ac_cv_prog_MKTEMP" && ac_cv_prog_MKTEMP="no"
  12781. fi
  12782. fi
  12783. MKTEMP=$ac_cv_prog_MKTEMP
  12784. if test -n "$MKTEMP"; then
  12785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
  12786. $as_echo "$MKTEMP" >&6; }
  12787. else
  12788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12789. $as_echo "no" >&6; }
  12790. fi
  12791. if test $MKTEMP = no; then :
  12792. as_fn_error $? "Required executable mktemp not found, some system tests will fail!" "$LINENO" 5
  12793. fi
  12794. # Extract the first word of "expect", so it can be a program name with args.
  12795. set dummy expect; ac_word=$2
  12796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12797. $as_echo_n "checking for $ac_word... " >&6; }
  12798. if ${ac_cv_prog_EXPECT+:} false; then :
  12799. $as_echo_n "(cached) " >&6
  12800. else
  12801. if test -n "$EXPECT"; then
  12802. ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
  12803. else
  12804. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12805. for as_dir in $PATH
  12806. do
  12807. IFS=$as_save_IFS
  12808. test -z "$as_dir" && as_dir=.
  12809. for ac_exec_ext in '' $ac_executable_extensions; do
  12810. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12811. ac_cv_prog_EXPECT="yes"
  12812. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12813. break 2
  12814. fi
  12815. done
  12816. done
  12817. IFS=$as_save_IFS
  12818. test -z "$ac_cv_prog_EXPECT" && ac_cv_prog_EXPECT="no"
  12819. fi
  12820. fi
  12821. EXPECT=$ac_cv_prog_EXPECT
  12822. if test -n "$EXPECT"; then
  12823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
  12824. $as_echo "$EXPECT" >&6; }
  12825. else
  12826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12827. $as_echo "no" >&6; }
  12828. fi
  12829. if test $EXPECT = no; then :
  12830. as_fn_error $? "Required executable expect not found, some system tests will fail!" "$LINENO" 5
  12831. fi
  12832. # Extract the first word of "openssl", so it can be a program name with args.
  12833. set dummy openssl; ac_word=$2
  12834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12835. $as_echo_n "checking for $ac_word... " >&6; }
  12836. if ${ac_cv_prog_OPENSSL+:} false; then :
  12837. $as_echo_n "(cached) " >&6
  12838. else
  12839. if test -n "$OPENSSL"; then
  12840. ac_cv_prog_OPENSSL="$OPENSSL" # Let the user override the test.
  12841. else
  12842. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12843. for as_dir in $PATH
  12844. do
  12845. IFS=$as_save_IFS
  12846. test -z "$as_dir" && as_dir=.
  12847. for ac_exec_ext in '' $ac_executable_extensions; do
  12848. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12849. ac_cv_prog_OPENSSL="yes"
  12850. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12851. break 2
  12852. fi
  12853. done
  12854. done
  12855. IFS=$as_save_IFS
  12856. test -z "$ac_cv_prog_OPENSSL" && ac_cv_prog_OPENSSL="no"
  12857. fi
  12858. fi
  12859. OPENSSL=$ac_cv_prog_OPENSSL
  12860. if test -n "$OPENSSL"; then
  12861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
  12862. $as_echo "$OPENSSL" >&6; }
  12863. else
  12864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12865. $as_echo "no" >&6; }
  12866. fi
  12867. if test $OPENSSL = no; then :
  12868. as_fn_error $? "Required executable openssl not found, some system tests will fail!" "$LINENO" 5
  12869. fi
  12870. unit_test_tool_report="- tpm2_abrmd: $tpm2_abrmd
  12871. - TPM simulator: $TPM2_SIM
  12872. - bash: $BASH_SHELL
  12873. - python: $PYTHON
  12874. - xxd: $XXD
  12875. - ss: $SS
  12876. - shasum: $SHASUM
  12877. - mktemp: $MKTEMP
  12878. - expect: $EXPECT
  12879. - openssl: $OPENSSL"
  12880. fi
  12881. # Check whether --enable-dlclose was given.
  12882. if test "${enable_dlclose+set}" = set; then :
  12883. enableval=$enable_dlclose;
  12884. $as_echo "#define DISABLE_DLCLOSE 1" >>confdefs.h
  12885. fi
  12886. # Check whether --enable-hardening was given.
  12887. if test "${enable_hardening+set}" = set; then :
  12888. enableval=$enable_hardening;
  12889. else
  12890. enable_hardening="yes"
  12891. fi
  12892. # Good information on adding flags, and dealing with compilers can be found here:
  12893. # https://github.com/zcash/zcash/issues/1832
  12894. # https://github.com/kmcallister/autoharden/
  12895. if test x"$enable_hardening" != x"no"; then :
  12896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wall" >&5
  12897. $as_echo_n "checking whether C compiler accepts -Wall... " >&6; }
  12898. if ${ax_cv_check_cflags___Wall+:} false; then :
  12899. $as_echo_n "(cached) " >&6
  12900. else
  12901. ax_check_save_flags=$CFLAGS
  12902. CFLAGS="$CFLAGS -Wall"
  12903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12904. /* end confdefs.h. */
  12905. int
  12906. main ()
  12907. {
  12908. ;
  12909. return 0;
  12910. }
  12911. _ACEOF
  12912. if ac_fn_c_try_compile "$LINENO"; then :
  12913. ax_cv_check_cflags___Wall=yes
  12914. else
  12915. ax_cv_check_cflags___Wall=no
  12916. fi
  12917. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12918. CFLAGS=$ax_check_save_flags
  12919. fi
  12920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wall" >&5
  12921. $as_echo "$ax_cv_check_cflags___Wall" >&6; }
  12922. if test "x$ax_cv_check_cflags___Wall" = xyes; then :
  12923. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  12924. else
  12925. as_fn_error $? "Cannot enable -Wall, consider configuring with --disable-hardening" "$LINENO" 5
  12926. fi
  12927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wextra" >&5
  12928. $as_echo_n "checking whether C compiler accepts -Wextra... " >&6; }
  12929. if ${ax_cv_check_cflags___Wextra+:} false; then :
  12930. $as_echo_n "(cached) " >&6
  12931. else
  12932. ax_check_save_flags=$CFLAGS
  12933. CFLAGS="$CFLAGS -Wextra"
  12934. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12935. /* end confdefs.h. */
  12936. int
  12937. main ()
  12938. {
  12939. ;
  12940. return 0;
  12941. }
  12942. _ACEOF
  12943. if ac_fn_c_try_compile "$LINENO"; then :
  12944. ax_cv_check_cflags___Wextra=yes
  12945. else
  12946. ax_cv_check_cflags___Wextra=no
  12947. fi
  12948. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12949. CFLAGS=$ax_check_save_flags
  12950. fi
  12951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wextra" >&5
  12952. $as_echo "$ax_cv_check_cflags___Wextra" >&6; }
  12953. if test "x$ax_cv_check_cflags___Wextra" = xyes; then :
  12954. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wextra"
  12955. else
  12956. as_fn_error $? "Cannot enable -Wextra, consider configuring with --disable-hardening" "$LINENO" 5
  12957. fi
  12958. if test "x$ax_is_release" = "xno"; then :
  12959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror" >&5
  12960. $as_echo_n "checking whether C compiler accepts -Werror... " >&6; }
  12961. if ${ax_cv_check_cflags___Werror+:} false; then :
  12962. $as_echo_n "(cached) " >&6
  12963. else
  12964. ax_check_save_flags=$CFLAGS
  12965. CFLAGS="$CFLAGS -Werror"
  12966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12967. /* end confdefs.h. */
  12968. int
  12969. main ()
  12970. {
  12971. ;
  12972. return 0;
  12973. }
  12974. _ACEOF
  12975. if ac_fn_c_try_compile "$LINENO"; then :
  12976. ax_cv_check_cflags___Werror=yes
  12977. else
  12978. ax_cv_check_cflags___Werror=no
  12979. fi
  12980. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12981. CFLAGS=$ax_check_save_flags
  12982. fi
  12983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror" >&5
  12984. $as_echo "$ax_cv_check_cflags___Werror" >&6; }
  12985. if test "x$ax_cv_check_cflags___Werror" = xyes; then :
  12986. EXTRA_CFLAGS="$EXTRA_CFLAGS -Werror"
  12987. else
  12988. as_fn_error $? "Cannot enable -Werror, consider configuring with --disable-hardening" "$LINENO" 5
  12989. fi
  12990. fi
  12991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wformat" >&5
  12992. $as_echo_n "checking whether C compiler accepts -Wformat... " >&6; }
  12993. if ${ax_cv_check_cflags___Wformat+:} false; then :
  12994. $as_echo_n "(cached) " >&6
  12995. else
  12996. ax_check_save_flags=$CFLAGS
  12997. CFLAGS="$CFLAGS -Wformat"
  12998. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12999. /* end confdefs.h. */
  13000. int
  13001. main ()
  13002. {
  13003. ;
  13004. return 0;
  13005. }
  13006. _ACEOF
  13007. if ac_fn_c_try_compile "$LINENO"; then :
  13008. ax_cv_check_cflags___Wformat=yes
  13009. else
  13010. ax_cv_check_cflags___Wformat=no
  13011. fi
  13012. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13013. CFLAGS=$ax_check_save_flags
  13014. fi
  13015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wformat" >&5
  13016. $as_echo "$ax_cv_check_cflags___Wformat" >&6; }
  13017. if test "x$ax_cv_check_cflags___Wformat" = xyes; then :
  13018. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wformat"
  13019. else
  13020. as_fn_error $? "Cannot enable -Wformat, consider configuring with --disable-hardening" "$LINENO" 5
  13021. fi
  13022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wformat-security" >&5
  13023. $as_echo_n "checking whether C compiler accepts -Wformat-security... " >&6; }
  13024. if ${ax_cv_check_cflags___Wformat_security+:} false; then :
  13025. $as_echo_n "(cached) " >&6
  13026. else
  13027. ax_check_save_flags=$CFLAGS
  13028. CFLAGS="$CFLAGS -Wformat-security"
  13029. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13030. /* end confdefs.h. */
  13031. int
  13032. main ()
  13033. {
  13034. ;
  13035. return 0;
  13036. }
  13037. _ACEOF
  13038. if ac_fn_c_try_compile "$LINENO"; then :
  13039. ax_cv_check_cflags___Wformat_security=yes
  13040. else
  13041. ax_cv_check_cflags___Wformat_security=no
  13042. fi
  13043. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13044. CFLAGS=$ax_check_save_flags
  13045. fi
  13046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wformat_security" >&5
  13047. $as_echo "$ax_cv_check_cflags___Wformat_security" >&6; }
  13048. if test "x$ax_cv_check_cflags___Wformat_security" = xyes; then :
  13049. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wformat-security"
  13050. else
  13051. as_fn_error $? "Cannot enable -Wformat-security, consider configuring with --disable-hardening" "$LINENO" 5
  13052. fi
  13053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wstack-protector" >&5
  13054. $as_echo_n "checking whether C compiler accepts -Wstack-protector... " >&6; }
  13055. if ${ax_cv_check_cflags___Wstack_protector+:} false; then :
  13056. $as_echo_n "(cached) " >&6
  13057. else
  13058. ax_check_save_flags=$CFLAGS
  13059. CFLAGS="$CFLAGS -Wstack-protector"
  13060. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13061. /* end confdefs.h. */
  13062. int
  13063. main ()
  13064. {
  13065. ;
  13066. return 0;
  13067. }
  13068. _ACEOF
  13069. if ac_fn_c_try_compile "$LINENO"; then :
  13070. ax_cv_check_cflags___Wstack_protector=yes
  13071. else
  13072. ax_cv_check_cflags___Wstack_protector=no
  13073. fi
  13074. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13075. CFLAGS=$ax_check_save_flags
  13076. fi
  13077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wstack_protector" >&5
  13078. $as_echo "$ax_cv_check_cflags___Wstack_protector" >&6; }
  13079. if test "x$ax_cv_check_cflags___Wstack_protector" = xyes; then :
  13080. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wstack-protector"
  13081. else
  13082. as_fn_error $? "Cannot enable -Wstack-protector, consider configuring with --disable-hardening" "$LINENO" 5
  13083. fi
  13084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstack-protector-all" >&5
  13085. $as_echo_n "checking whether C compiler accepts -fstack-protector-all... " >&6; }
  13086. if ${ax_cv_check_cflags___fstack_protector_all+:} false; then :
  13087. $as_echo_n "(cached) " >&6
  13088. else
  13089. ax_check_save_flags=$CFLAGS
  13090. CFLAGS="$CFLAGS -fstack-protector-all"
  13091. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13092. /* end confdefs.h. */
  13093. int
  13094. main ()
  13095. {
  13096. ;
  13097. return 0;
  13098. }
  13099. _ACEOF
  13100. if ac_fn_c_try_compile "$LINENO"; then :
  13101. ax_cv_check_cflags___fstack_protector_all=yes
  13102. else
  13103. ax_cv_check_cflags___fstack_protector_all=no
  13104. fi
  13105. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13106. CFLAGS=$ax_check_save_flags
  13107. fi
  13108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstack_protector_all" >&5
  13109. $as_echo "$ax_cv_check_cflags___fstack_protector_all" >&6; }
  13110. if test "x$ax_cv_check_cflags___fstack_protector_all" = xyes; then :
  13111. EXTRA_CFLAGS="$EXTRA_CFLAGS -fstack-protector-all"
  13112. else
  13113. as_fn_error $? "Cannot enable -fstack-protector-all, consider configuring with --disable-hardening" "$LINENO" 5
  13114. fi
  13115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wstrict-overflow=5" >&5
  13116. $as_echo_n "checking whether C compiler accepts -Wstrict-overflow=5... " >&6; }
  13117. if ${ax_cv_check_cflags___Wstrict_overflow_5+:} false; then :
  13118. $as_echo_n "(cached) " >&6
  13119. else
  13120. ax_check_save_flags=$CFLAGS
  13121. CFLAGS="$CFLAGS -Wstrict-overflow=5"
  13122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13123. /* end confdefs.h. */
  13124. int
  13125. main ()
  13126. {
  13127. ;
  13128. return 0;
  13129. }
  13130. _ACEOF
  13131. if ac_fn_c_try_compile "$LINENO"; then :
  13132. ax_cv_check_cflags___Wstrict_overflow_5=yes
  13133. else
  13134. ax_cv_check_cflags___Wstrict_overflow_5=no
  13135. fi
  13136. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13137. CFLAGS=$ax_check_save_flags
  13138. fi
  13139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wstrict_overflow_5" >&5
  13140. $as_echo "$ax_cv_check_cflags___Wstrict_overflow_5" >&6; }
  13141. if test "x$ax_cv_check_cflags___Wstrict_overflow_5" = xyes; then :
  13142. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wstrict-overflow=5"
  13143. else
  13144. as_fn_error $? "Cannot enable -Wstrict-overflow=5, consider configuring with --disable-hardening" "$LINENO" 5
  13145. fi
  13146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -O2" >&5
  13147. $as_echo_n "checking whether C compiler accepts -O2... " >&6; }
  13148. if ${ax_cv_check_cflags___O2+:} false; then :
  13149. $as_echo_n "(cached) " >&6
  13150. else
  13151. ax_check_save_flags=$CFLAGS
  13152. CFLAGS="$CFLAGS -O2"
  13153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13154. /* end confdefs.h. */
  13155. int
  13156. main ()
  13157. {
  13158. ;
  13159. return 0;
  13160. }
  13161. _ACEOF
  13162. if ac_fn_c_try_compile "$LINENO"; then :
  13163. ax_cv_check_cflags___O2=yes
  13164. else
  13165. ax_cv_check_cflags___O2=no
  13166. fi
  13167. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13168. CFLAGS=$ax_check_save_flags
  13169. fi
  13170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___O2" >&5
  13171. $as_echo "$ax_cv_check_cflags___O2" >&6; }
  13172. if test "x$ax_cv_check_cflags___O2" = xyes; then :
  13173. EXTRA_CFLAGS="$EXTRA_CFLAGS -O2"
  13174. else
  13175. as_fn_error $? "Cannot enable -O2, consider configuring with --disable-hardening" "$LINENO" 5
  13176. fi
  13177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to add -D_FORTIFY_SOURCE=2 to CPPFLAGS" >&5
  13178. $as_echo_n "checking whether to add -D_FORTIFY_SOURCE=2 to CPPFLAGS... " >&6; }
  13179. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13180. /* end confdefs.h. */
  13181. int main() {
  13182. #ifndef _FORTIFY_SOURCE
  13183. return 0;
  13184. #else
  13185. this_is_an_error;
  13186. #endif
  13187. }
  13188. _ACEOF
  13189. if ac_fn_c_try_link "$LINENO"; then :
  13190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13191. $as_echo "yes" >&6; }
  13192. CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2"
  13193. else
  13194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13195. $as_echo "no" >&6; }
  13196. fi
  13197. rm -f core conftest.err conftest.$ac_objext \
  13198. conftest$ac_exeext conftest.$ac_ext
  13199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fPIC" >&5
  13200. $as_echo_n "checking whether C compiler accepts -fPIC... " >&6; }
  13201. if ${ax_cv_check_cflags___fPIC+:} false; then :
  13202. $as_echo_n "(cached) " >&6
  13203. else
  13204. ax_check_save_flags=$CFLAGS
  13205. CFLAGS="$CFLAGS -fPIC"
  13206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13207. /* end confdefs.h. */
  13208. int
  13209. main ()
  13210. {
  13211. ;
  13212. return 0;
  13213. }
  13214. _ACEOF
  13215. if ac_fn_c_try_compile "$LINENO"; then :
  13216. ax_cv_check_cflags___fPIC=yes
  13217. else
  13218. ax_cv_check_cflags___fPIC=no
  13219. fi
  13220. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13221. CFLAGS=$ax_check_save_flags
  13222. fi
  13223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fPIC" >&5
  13224. $as_echo "$ax_cv_check_cflags___fPIC" >&6; }
  13225. if test "x$ax_cv_check_cflags___fPIC" = xyes; then :
  13226. EXTRA_CFLAGS="$EXTRA_CFLAGS -fPIC"
  13227. else
  13228. as_fn_error $? "Cannot enable -fPIC, consider configuring with --disable-hardening" "$LINENO" 5
  13229. fi
  13230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -shared" >&5
  13231. $as_echo_n "checking whether the linker accepts -shared... " >&6; }
  13232. if ${ax_cv_check_ldflags___shared+:} false; then :
  13233. $as_echo_n "(cached) " >&6
  13234. else
  13235. ax_check_save_flags=$LDFLAGS
  13236. LDFLAGS="$LDFLAGS -shared"
  13237. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13238. /* end confdefs.h. */
  13239. int
  13240. main ()
  13241. {
  13242. ;
  13243. return 0;
  13244. }
  13245. _ACEOF
  13246. if ac_fn_c_try_link "$LINENO"; then :
  13247. ax_cv_check_ldflags___shared=yes
  13248. else
  13249. ax_cv_check_ldflags___shared=no
  13250. fi
  13251. rm -f core conftest.err conftest.$ac_objext \
  13252. conftest$ac_exeext conftest.$ac_ext
  13253. LDFLAGS=$ax_check_save_flags
  13254. fi
  13255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___shared" >&5
  13256. $as_echo "$ax_cv_check_ldflags___shared" >&6; }
  13257. if test "x$ax_cv_check_ldflags___shared" = xyes; then :
  13258. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -shared"
  13259. else
  13260. as_fn_error $? "Cannot enable -shared, consider configuring with --disable-hardening" "$LINENO" 5
  13261. fi
  13262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fPIE" >&5
  13263. $as_echo_n "checking whether C compiler accepts -fPIE... " >&6; }
  13264. if ${ax_cv_check_cflags___fPIE+:} false; then :
  13265. $as_echo_n "(cached) " >&6
  13266. else
  13267. ax_check_save_flags=$CFLAGS
  13268. CFLAGS="$CFLAGS -fPIE"
  13269. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13270. /* end confdefs.h. */
  13271. int
  13272. main ()
  13273. {
  13274. ;
  13275. return 0;
  13276. }
  13277. _ACEOF
  13278. if ac_fn_c_try_compile "$LINENO"; then :
  13279. ax_cv_check_cflags___fPIE=yes
  13280. else
  13281. ax_cv_check_cflags___fPIE=no
  13282. fi
  13283. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13284. CFLAGS=$ax_check_save_flags
  13285. fi
  13286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fPIE" >&5
  13287. $as_echo "$ax_cv_check_cflags___fPIE" >&6; }
  13288. if test "x$ax_cv_check_cflags___fPIE" = xyes; then :
  13289. EXTRA_CFLAGS="$EXTRA_CFLAGS -fPIE"
  13290. else
  13291. as_fn_error $? "Cannot enable -fPIE, consider configuring with --disable-hardening" "$LINENO" 5
  13292. fi
  13293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -pie" >&5
  13294. $as_echo_n "checking whether the linker accepts -pie... " >&6; }
  13295. if ${ax_cv_check_ldflags___pie+:} false; then :
  13296. $as_echo_n "(cached) " >&6
  13297. else
  13298. ax_check_save_flags=$LDFLAGS
  13299. LDFLAGS="$LDFLAGS -pie"
  13300. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13301. /* end confdefs.h. */
  13302. int
  13303. main ()
  13304. {
  13305. ;
  13306. return 0;
  13307. }
  13308. _ACEOF
  13309. if ac_fn_c_try_link "$LINENO"; then :
  13310. ax_cv_check_ldflags___pie=yes
  13311. else
  13312. ax_cv_check_ldflags___pie=no
  13313. fi
  13314. rm -f core conftest.err conftest.$ac_objext \
  13315. conftest$ac_exeext conftest.$ac_ext
  13316. LDFLAGS=$ax_check_save_flags
  13317. fi
  13318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___pie" >&5
  13319. $as_echo "$ax_cv_check_ldflags___pie" >&6; }
  13320. if test "x$ax_cv_check_ldflags___pie" = xyes; then :
  13321. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -pie"
  13322. else
  13323. as_fn_error $? "Cannot enable -pie, consider configuring with --disable-hardening" "$LINENO" 5
  13324. fi
  13325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,relro" >&5
  13326. $as_echo_n "checking whether the linker accepts -Wl,-z,relro... " >&6; }
  13327. if ${ax_cv_check_ldflags___Wl__z_relro+:} false; then :
  13328. $as_echo_n "(cached) " >&6
  13329. else
  13330. ax_check_save_flags=$LDFLAGS
  13331. LDFLAGS="$LDFLAGS -Wl,-z,relro"
  13332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13333. /* end confdefs.h. */
  13334. int
  13335. main ()
  13336. {
  13337. ;
  13338. return 0;
  13339. }
  13340. _ACEOF
  13341. if ac_fn_c_try_link "$LINENO"; then :
  13342. ax_cv_check_ldflags___Wl__z_relro=yes
  13343. else
  13344. ax_cv_check_ldflags___Wl__z_relro=no
  13345. fi
  13346. rm -f core conftest.err conftest.$ac_objext \
  13347. conftest$ac_exeext conftest.$ac_ext
  13348. LDFLAGS=$ax_check_save_flags
  13349. fi
  13350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_relro" >&5
  13351. $as_echo "$ax_cv_check_ldflags___Wl__z_relro" >&6; }
  13352. if test "x$ax_cv_check_ldflags___Wl__z_relro" = xyes; then :
  13353. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-z,relro"
  13354. else
  13355. as_fn_error $? "Cannot enable -Wl,-z,relro, consider configuring with --disable-hardening" "$LINENO" 5
  13356. fi
  13357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,now" >&5
  13358. $as_echo_n "checking whether the linker accepts -Wl,-z,now... " >&6; }
  13359. if ${ax_cv_check_ldflags___Wl__z_now+:} false; then :
  13360. $as_echo_n "(cached) " >&6
  13361. else
  13362. ax_check_save_flags=$LDFLAGS
  13363. LDFLAGS="$LDFLAGS -Wl,-z,now"
  13364. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13365. /* end confdefs.h. */
  13366. int
  13367. main ()
  13368. {
  13369. ;
  13370. return 0;
  13371. }
  13372. _ACEOF
  13373. if ac_fn_c_try_link "$LINENO"; then :
  13374. ax_cv_check_ldflags___Wl__z_now=yes
  13375. else
  13376. ax_cv_check_ldflags___Wl__z_now=no
  13377. fi
  13378. rm -f core conftest.err conftest.$ac_objext \
  13379. conftest$ac_exeext conftest.$ac_ext
  13380. LDFLAGS=$ax_check_save_flags
  13381. fi
  13382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_now" >&5
  13383. $as_echo "$ax_cv_check_ldflags___Wl__z_now" >&6; }
  13384. if test "x$ax_cv_check_ldflags___Wl__z_now" = xyes; then :
  13385. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-z,now"
  13386. else
  13387. as_fn_error $? "Cannot enable -Wl,-z,now, consider configuring with --disable-hardening" "$LINENO" 5
  13388. fi
  13389. else
  13390. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiling with --disable-hardening is dangerous!
  13391. you should consider fixing the configure script compiler flags
  13392. and submitting patches upstream!" >&5
  13393. $as_echo "$as_me: WARNING: Compiling with --disable-hardening is dangerous!
  13394. you should consider fixing the configure script compiler flags
  13395. and submitting patches upstream!" >&2;}
  13396. fi
  13397. # -D_GNU_SOURCE is required for execvpe() in options.c
  13398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -D_GNU_SOURCE" >&5
  13399. $as_echo_n "checking whether C compiler accepts -D_GNU_SOURCE... " >&6; }
  13400. if ${ax_cv_check_cflags___D_GNU_SOURCE+:} false; then :
  13401. $as_echo_n "(cached) " >&6
  13402. else
  13403. ax_check_save_flags=$CFLAGS
  13404. CFLAGS="$CFLAGS -D_GNU_SOURCE"
  13405. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13406. /* end confdefs.h. */
  13407. int
  13408. main ()
  13409. {
  13410. ;
  13411. return 0;
  13412. }
  13413. _ACEOF
  13414. if ac_fn_c_try_compile "$LINENO"; then :
  13415. ax_cv_check_cflags___D_GNU_SOURCE=yes
  13416. else
  13417. ax_cv_check_cflags___D_GNU_SOURCE=no
  13418. fi
  13419. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13420. CFLAGS=$ax_check_save_flags
  13421. fi
  13422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___D_GNU_SOURCE" >&5
  13423. $as_echo "$ax_cv_check_cflags___D_GNU_SOURCE" >&6; }
  13424. if test "x$ax_cv_check_cflags___D_GNU_SOURCE" = xyes; then :
  13425. EXTRA_CFLAGS="$EXTRA_CFLAGS -D_GNU_SOURCE"
  13426. else
  13427. as_fn_error $? "Cannot enable -D_GNU_SOURCE" "$LINENO" 5
  13428. fi
  13429. # Enable gnu99 mode, since we use some of these features.
  13430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -std=gnu99" >&5
  13431. $as_echo_n "checking whether C compiler accepts -std=gnu99... " >&6; }
  13432. if ${ax_cv_check_cflags___std_gnu99+:} false; then :
  13433. $as_echo_n "(cached) " >&6
  13434. else
  13435. ax_check_save_flags=$CFLAGS
  13436. CFLAGS="$CFLAGS -std=gnu99"
  13437. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13438. /* end confdefs.h. */
  13439. int
  13440. main ()
  13441. {
  13442. ;
  13443. return 0;
  13444. }
  13445. _ACEOF
  13446. if ac_fn_c_try_compile "$LINENO"; then :
  13447. ax_cv_check_cflags___std_gnu99=yes
  13448. else
  13449. ax_cv_check_cflags___std_gnu99=no
  13450. fi
  13451. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13452. CFLAGS=$ax_check_save_flags
  13453. fi
  13454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___std_gnu99" >&5
  13455. $as_echo "$ax_cv_check_cflags___std_gnu99" >&6; }
  13456. if test "x$ax_cv_check_cflags___std_gnu99" = xyes; then :
  13457. EXTRA_CFLAGS="$EXTRA_CFLAGS -std=gnu99"
  13458. else
  13459. as_fn_error $? "Cannot enable -std=gnu99" "$LINENO" 5
  13460. fi
  13461. # Best attempt compiler options that are on newer versions of GCC that
  13462. # we can't widely enforce without killing other peoples builds.
  13463. # Works with gcc only. Needs to be disabled on BSD and clang
  13464. if test "$HOSTOS" = "Linux"; then :
  13465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wstringop-overflow=4" >&5
  13466. $as_echo_n "checking whether C compiler accepts -Wstringop-overflow=4... " >&6; }
  13467. if ${ax_cv_check_cflags___Wstringop_overflow_4+:} false; then :
  13468. $as_echo_n "(cached) " >&6
  13469. else
  13470. ax_check_save_flags=$CFLAGS
  13471. CFLAGS="$CFLAGS -Wstringop-overflow=4"
  13472. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13473. /* end confdefs.h. */
  13474. int
  13475. main ()
  13476. {
  13477. ;
  13478. return 0;
  13479. }
  13480. _ACEOF
  13481. if ac_fn_c_try_compile "$LINENO"; then :
  13482. ax_cv_check_cflags___Wstringop_overflow_4=yes
  13483. else
  13484. ax_cv_check_cflags___Wstringop_overflow_4=no
  13485. fi
  13486. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13487. CFLAGS=$ax_check_save_flags
  13488. fi
  13489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wstringop_overflow_4" >&5
  13490. $as_echo "$ax_cv_check_cflags___Wstringop_overflow_4" >&6; }
  13491. if test "x$ax_cv_check_cflags___Wstringop_overflow_4" = xyes; then :
  13492. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wstringop-overflow=4"
  13493. else
  13494. :
  13495. fi
  13496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wstringop-truncation" >&5
  13497. $as_echo_n "checking whether C compiler accepts -Wstringop-truncation... " >&6; }
  13498. if ${ax_cv_check_cflags___Wstringop_truncation+:} false; then :
  13499. $as_echo_n "(cached) " >&6
  13500. else
  13501. ax_check_save_flags=$CFLAGS
  13502. CFLAGS="$CFLAGS -Wstringop-truncation"
  13503. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13504. /* end confdefs.h. */
  13505. int
  13506. main ()
  13507. {
  13508. ;
  13509. return 0;
  13510. }
  13511. _ACEOF
  13512. if ac_fn_c_try_compile "$LINENO"; then :
  13513. ax_cv_check_cflags___Wstringop_truncation=yes
  13514. else
  13515. ax_cv_check_cflags___Wstringop_truncation=no
  13516. fi
  13517. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13518. CFLAGS=$ax_check_save_flags
  13519. fi
  13520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wstringop_truncation" >&5
  13521. $as_echo "$ax_cv_check_cflags___Wstringop_truncation" >&6; }
  13522. if test "x$ax_cv_check_cflags___Wstringop_truncation" = xyes; then :
  13523. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wstringop-truncation"
  13524. else
  13525. :
  13526. fi
  13527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wduplicated-branches" >&5
  13528. $as_echo_n "checking whether C compiler accepts -Wduplicated-branches... " >&6; }
  13529. if ${ax_cv_check_cflags___Wduplicated_branches+:} false; then :
  13530. $as_echo_n "(cached) " >&6
  13531. else
  13532. ax_check_save_flags=$CFLAGS
  13533. CFLAGS="$CFLAGS -Wduplicated-branches"
  13534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13535. /* end confdefs.h. */
  13536. int
  13537. main ()
  13538. {
  13539. ;
  13540. return 0;
  13541. }
  13542. _ACEOF
  13543. if ac_fn_c_try_compile "$LINENO"; then :
  13544. ax_cv_check_cflags___Wduplicated_branches=yes
  13545. else
  13546. ax_cv_check_cflags___Wduplicated_branches=no
  13547. fi
  13548. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13549. CFLAGS=$ax_check_save_flags
  13550. fi
  13551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wduplicated_branches" >&5
  13552. $as_echo "$ax_cv_check_cflags___Wduplicated_branches" >&6; }
  13553. if test "x$ax_cv_check_cflags___Wduplicated_branches" = xyes; then :
  13554. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wduplicated-branches"
  13555. else
  13556. :
  13557. fi
  13558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wduplicated-cond" >&5
  13559. $as_echo_n "checking whether C compiler accepts -Wduplicated-cond... " >&6; }
  13560. if ${ax_cv_check_cflags___Wduplicated_cond+:} false; then :
  13561. $as_echo_n "(cached) " >&6
  13562. else
  13563. ax_check_save_flags=$CFLAGS
  13564. CFLAGS="$CFLAGS -Wduplicated-cond"
  13565. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13566. /* end confdefs.h. */
  13567. int
  13568. main ()
  13569. {
  13570. ;
  13571. return 0;
  13572. }
  13573. _ACEOF
  13574. if ac_fn_c_try_compile "$LINENO"; then :
  13575. ax_cv_check_cflags___Wduplicated_cond=yes
  13576. else
  13577. ax_cv_check_cflags___Wduplicated_cond=no
  13578. fi
  13579. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13580. CFLAGS=$ax_check_save_flags
  13581. fi
  13582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wduplicated_cond" >&5
  13583. $as_echo "$ax_cv_check_cflags___Wduplicated_cond" >&6; }
  13584. if test "x$ax_cv_check_cflags___Wduplicated_cond" = xyes; then :
  13585. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wduplicated-cond"
  13586. else
  13587. :
  13588. fi
  13589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wbool-compare" >&5
  13590. $as_echo_n "checking whether C compiler accepts -Wbool-compare... " >&6; }
  13591. if ${ax_cv_check_cflags___Wbool_compare+:} false; then :
  13592. $as_echo_n "(cached) " >&6
  13593. else
  13594. ax_check_save_flags=$CFLAGS
  13595. CFLAGS="$CFLAGS -Wbool-compare"
  13596. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13597. /* end confdefs.h. */
  13598. int
  13599. main ()
  13600. {
  13601. ;
  13602. return 0;
  13603. }
  13604. _ACEOF
  13605. if ac_fn_c_try_compile "$LINENO"; then :
  13606. ax_cv_check_cflags___Wbool_compare=yes
  13607. else
  13608. ax_cv_check_cflags___Wbool_compare=no
  13609. fi
  13610. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13611. CFLAGS=$ax_check_save_flags
  13612. fi
  13613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wbool_compare" >&5
  13614. $as_echo "$ax_cv_check_cflags___Wbool_compare" >&6; }
  13615. if test "x$ax_cv_check_cflags___Wbool_compare" = xyes; then :
  13616. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wbool-compare"
  13617. else
  13618. :
  13619. fi
  13620. fi
  13621. # Best attempt, strip unused stuff from the binary to reduce size.
  13622. # Rather than nesting these and making them ugly just use a counter.
  13623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fdata-sections" >&5
  13624. $as_echo_n "checking whether C compiler accepts -fdata-sections... " >&6; }
  13625. if ${ax_cv_check_cflags___fdata_sections+:} false; then :
  13626. $as_echo_n "(cached) " >&6
  13627. else
  13628. ax_check_save_flags=$CFLAGS
  13629. CFLAGS="$CFLAGS -fdata-sections"
  13630. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13631. /* end confdefs.h. */
  13632. int
  13633. main ()
  13634. {
  13635. ;
  13636. return 0;
  13637. }
  13638. _ACEOF
  13639. if ac_fn_c_try_compile "$LINENO"; then :
  13640. ax_cv_check_cflags___fdata_sections=yes
  13641. else
  13642. ax_cv_check_cflags___fdata_sections=no
  13643. fi
  13644. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13645. CFLAGS=$ax_check_save_flags
  13646. fi
  13647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fdata_sections" >&5
  13648. $as_echo "$ax_cv_check_cflags___fdata_sections" >&6; }
  13649. if test "x$ax_cv_check_cflags___fdata_sections" = xyes; then :
  13650. strip="${strip}y"
  13651. else
  13652. :
  13653. fi
  13654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -ffunction-sections" >&5
  13655. $as_echo_n "checking whether C compiler accepts -ffunction-sections... " >&6; }
  13656. if ${ax_cv_check_cflags___ffunction_sections+:} false; then :
  13657. $as_echo_n "(cached) " >&6
  13658. else
  13659. ax_check_save_flags=$CFLAGS
  13660. CFLAGS="$CFLAGS -ffunction-sections"
  13661. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13662. /* end confdefs.h. */
  13663. int
  13664. main ()
  13665. {
  13666. ;
  13667. return 0;
  13668. }
  13669. _ACEOF
  13670. if ac_fn_c_try_compile "$LINENO"; then :
  13671. ax_cv_check_cflags___ffunction_sections=yes
  13672. else
  13673. ax_cv_check_cflags___ffunction_sections=no
  13674. fi
  13675. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13676. CFLAGS=$ax_check_save_flags
  13677. fi
  13678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___ffunction_sections" >&5
  13679. $as_echo "$ax_cv_check_cflags___ffunction_sections" >&6; }
  13680. if test "x$ax_cv_check_cflags___ffunction_sections" = xyes; then :
  13681. strip="${strip}y"
  13682. else
  13683. :
  13684. fi
  13685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--gc-sections" >&5
  13686. $as_echo_n "checking whether the linker accepts -Wl,--gc-sections... " >&6; }
  13687. if ${ax_cv_check_ldflags___Wl___gc_sections+:} false; then :
  13688. $as_echo_n "(cached) " >&6
  13689. else
  13690. ax_check_save_flags=$LDFLAGS
  13691. LDFLAGS="$LDFLAGS -Wl,--gc-sections"
  13692. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13693. /* end confdefs.h. */
  13694. int
  13695. main ()
  13696. {
  13697. ;
  13698. return 0;
  13699. }
  13700. _ACEOF
  13701. if ac_fn_c_try_link "$LINENO"; then :
  13702. ax_cv_check_ldflags___Wl___gc_sections=yes
  13703. else
  13704. ax_cv_check_ldflags___Wl___gc_sections=no
  13705. fi
  13706. rm -f core conftest.err conftest.$ac_objext \
  13707. conftest$ac_exeext conftest.$ac_ext
  13708. LDFLAGS=$ax_check_save_flags
  13709. fi
  13710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___gc_sections" >&5
  13711. $as_echo "$ax_cv_check_ldflags___Wl___gc_sections" >&6; }
  13712. if test "x$ax_cv_check_ldflags___Wl___gc_sections" = xyes; then :
  13713. strip="${strip}y"
  13714. else
  13715. :
  13716. fi
  13717. if test x"$strip" = x"yyy"; then :
  13718. EXTRA_CFLAGS="$EXTRA_CFLAGS -fdata-sections -ffunction-sections"
  13719. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--gc-sections"
  13720. else
  13721. { $as_echo "$as_me:${as_lineno-$LINENO}: Not using compiler options to reduce binary size!" >&5
  13722. $as_echo "$as_me: Not using compiler options to reduce binary size!" >&6;}
  13723. fi
  13724. cat >confcache <<\_ACEOF
  13725. # This file is a shell script that caches the results of configure
  13726. # tests run on this system so they can be shared between configure
  13727. # scripts and configure runs, see configure's option --config-cache.
  13728. # It is not useful on other systems. If it contains results you don't
  13729. # want to keep, you may remove or edit it.
  13730. #
  13731. # config.status only pays attention to the cache file if you give it
  13732. # the --recheck option to rerun configure.
  13733. #
  13734. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13735. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13736. # following values.
  13737. _ACEOF
  13738. # The following way of writing the cache mishandles newlines in values,
  13739. # but we know of no workaround that is simple, portable, and efficient.
  13740. # So, we kill variables containing newlines.
  13741. # Ultrix sh set writes to stderr and can't be redirected directly,
  13742. # and sets the high bit in the cache file unless we assign to the vars.
  13743. (
  13744. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13745. eval ac_val=\$$ac_var
  13746. case $ac_val in #(
  13747. *${as_nl}*)
  13748. case $ac_var in #(
  13749. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13750. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13751. esac
  13752. case $ac_var in #(
  13753. _ | IFS | as_nl) ;; #(
  13754. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13755. *) { eval $ac_var=; unset $ac_var;} ;;
  13756. esac ;;
  13757. esac
  13758. done
  13759. (set) 2>&1 |
  13760. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13761. *${as_nl}ac_space=\ *)
  13762. # `set' does not quote correctly, so add quotes: double-quote
  13763. # substitution turns \\\\ into \\, and sed turns \\ into \.
  13764. sed -n \
  13765. "s/'/'\\\\''/g;
  13766. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13767. ;; #(
  13768. *)
  13769. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13770. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  13771. ;;
  13772. esac |
  13773. sort
  13774. ) |
  13775. sed '
  13776. /^ac_cv_env_/b end
  13777. t clear
  13778. :clear
  13779. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  13780. t end
  13781. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  13782. :end' >>confcache
  13783. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  13784. if test -w "$cache_file"; then
  13785. if test "x$cache_file" != "x/dev/null"; then
  13786. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  13787. $as_echo "$as_me: updating cache $cache_file" >&6;}
  13788. if test ! -f "$cache_file" || test -h "$cache_file"; then
  13789. cat confcache >"$cache_file"
  13790. else
  13791. case $cache_file in #(
  13792. */* | ?:*)
  13793. mv -f confcache "$cache_file"$$ &&
  13794. mv -f "$cache_file"$$ "$cache_file" ;; #(
  13795. *)
  13796. mv -f confcache "$cache_file" ;;
  13797. esac
  13798. fi
  13799. fi
  13800. else
  13801. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  13802. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  13803. fi
  13804. fi
  13805. rm -f confcache
  13806. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  13807. # Let make expand exec_prefix.
  13808. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  13809. DEFS=-DHAVE_CONFIG_H
  13810. ac_libobjs=
  13811. ac_ltlibobjs=
  13812. U=
  13813. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  13814. # 1. Remove the extension, and $U if already installed.
  13815. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  13816. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  13817. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  13818. # will be set to the directory where LIBOBJS objects are built.
  13819. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  13820. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  13821. done
  13822. LIBOBJS=$ac_libobjs
  13823. LTLIBOBJS=$ac_ltlibobjs
  13824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  13825. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  13826. if test -n "$am_sleep_pid"; then
  13827. # Hide warnings about reused PIDs.
  13828. wait $am_sleep_pid 2>/dev/null
  13829. fi
  13830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  13831. $as_echo "done" >&6; }
  13832. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  13833. as_fn_error $? "conditional \"AMDEP\" was never defined.
  13834. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13835. fi
  13836. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  13837. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  13838. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13839. fi
  13840. if test -n "$EXEEXT"; then
  13841. am__EXEEXT_TRUE=
  13842. am__EXEEXT_FALSE='#'
  13843. else
  13844. am__EXEEXT_TRUE='#'
  13845. am__EXEEXT_FALSE=
  13846. fi
  13847. if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
  13848. as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
  13849. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13850. fi
  13851. if test -z "${AUTOCONF_CODE_COVERAGE_2019_01_06_TRUE}" && test -z "${AUTOCONF_CODE_COVERAGE_2019_01_06_FALSE}"; then
  13852. as_fn_error $? "conditional \"AUTOCONF_CODE_COVERAGE_2019_01_06\" was never defined.
  13853. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13854. fi
  13855. if test -z "${HAVE_PANDOC_TRUE}" && test -z "${HAVE_PANDOC_FALSE}"; then
  13856. as_fn_error $? "conditional \"HAVE_PANDOC\" was never defined.
  13857. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13858. fi
  13859. if test -z "${HAVE_MAN_PAGES_TRUE}" && test -z "${HAVE_MAN_PAGES_FALSE}"; then
  13860. as_fn_error $? "conditional \"HAVE_MAN_PAGES\" was never defined.
  13861. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13862. fi
  13863. if test -z "${HAVE_FAPI_TRUE}" && test -z "${HAVE_FAPI_FALSE}"; then
  13864. as_fn_error $? "conditional \"HAVE_FAPI\" was never defined.
  13865. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13866. fi
  13867. if test -z "${UNIT_TRUE}" && test -z "${UNIT_FALSE}"; then
  13868. as_fn_error $? "conditional \"UNIT\" was never defined.
  13869. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13870. fi
  13871. if test -z "${PERSISTENT_TRUE}" && test -z "${PERSISTENT_FALSE}"; then
  13872. as_fn_error $? "conditional \"PERSISTENT\" was never defined.
  13873. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13874. fi
  13875. : "${CONFIG_STATUS=./config.status}"
  13876. ac_write_fail=0
  13877. ac_clean_files_save=$ac_clean_files
  13878. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  13879. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  13880. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  13881. as_write_fail=0
  13882. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  13883. #! $SHELL
  13884. # Generated by $as_me.
  13885. # Run this file to recreate the current configuration.
  13886. # Compiler output produced by configure, useful for debugging
  13887. # configure, is in config.log if it exists.
  13888. debug=false
  13889. ac_cs_recheck=false
  13890. ac_cs_silent=false
  13891. SHELL=\${CONFIG_SHELL-$SHELL}
  13892. export SHELL
  13893. _ASEOF
  13894. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  13895. ## -------------------- ##
  13896. ## M4sh Initialization. ##
  13897. ## -------------------- ##
  13898. # Be more Bourne compatible
  13899. DUALCASE=1; export DUALCASE # for MKS sh
  13900. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  13901. emulate sh
  13902. NULLCMD=:
  13903. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13904. # is contrary to our usage. Disable this feature.
  13905. alias -g '${1+"$@"}'='"$@"'
  13906. setopt NO_GLOB_SUBST
  13907. else
  13908. case `(set -o) 2>/dev/null` in #(
  13909. *posix*) :
  13910. set -o posix ;; #(
  13911. *) :
  13912. ;;
  13913. esac
  13914. fi
  13915. as_nl='
  13916. '
  13917. export as_nl
  13918. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  13919. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  13920. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  13921. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  13922. # Prefer a ksh shell builtin over an external printf program on Solaris,
  13923. # but without wasting forks for bash or zsh.
  13924. if test -z "$BASH_VERSION$ZSH_VERSION" \
  13925. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  13926. as_echo='print -r --'
  13927. as_echo_n='print -rn --'
  13928. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  13929. as_echo='printf %s\n'
  13930. as_echo_n='printf %s'
  13931. else
  13932. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  13933. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  13934. as_echo_n='/usr/ucb/echo -n'
  13935. else
  13936. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  13937. as_echo_n_body='eval
  13938. arg=$1;
  13939. case $arg in #(
  13940. *"$as_nl"*)
  13941. expr "X$arg" : "X\\(.*\\)$as_nl";
  13942. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  13943. esac;
  13944. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  13945. '
  13946. export as_echo_n_body
  13947. as_echo_n='sh -c $as_echo_n_body as_echo'
  13948. fi
  13949. export as_echo_body
  13950. as_echo='sh -c $as_echo_body as_echo'
  13951. fi
  13952. # The user is always right.
  13953. if test "${PATH_SEPARATOR+set}" != set; then
  13954. PATH_SEPARATOR=:
  13955. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  13956. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  13957. PATH_SEPARATOR=';'
  13958. }
  13959. fi
  13960. # IFS
  13961. # We need space, tab and new line, in precisely that order. Quoting is
  13962. # there to prevent editors from complaining about space-tab.
  13963. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  13964. # splitting by setting IFS to empty value.)
  13965. IFS=" "" $as_nl"
  13966. # Find who we are. Look in the path if we contain no directory separator.
  13967. as_myself=
  13968. case $0 in #((
  13969. *[\\/]* ) as_myself=$0 ;;
  13970. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13971. for as_dir in $PATH
  13972. do
  13973. IFS=$as_save_IFS
  13974. test -z "$as_dir" && as_dir=.
  13975. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13976. done
  13977. IFS=$as_save_IFS
  13978. ;;
  13979. esac
  13980. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13981. # in which case we are not to be found in the path.
  13982. if test "x$as_myself" = x; then
  13983. as_myself=$0
  13984. fi
  13985. if test ! -f "$as_myself"; then
  13986. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13987. exit 1
  13988. fi
  13989. # Unset variables that we do not need and which cause bugs (e.g. in
  13990. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  13991. # suppresses any "Segmentation fault" message there. '((' could
  13992. # trigger a bug in pdksh 5.2.14.
  13993. for as_var in BASH_ENV ENV MAIL MAILPATH
  13994. do eval test x\${$as_var+set} = xset \
  13995. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  13996. done
  13997. PS1='$ '
  13998. PS2='> '
  13999. PS4='+ '
  14000. # NLS nuisances.
  14001. LC_ALL=C
  14002. export LC_ALL
  14003. LANGUAGE=C
  14004. export LANGUAGE
  14005. # CDPATH.
  14006. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14007. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  14008. # ----------------------------------------
  14009. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  14010. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  14011. # script with STATUS, using 1 if that was 0.
  14012. as_fn_error ()
  14013. {
  14014. as_status=$1; test $as_status -eq 0 && as_status=1
  14015. if test "$4"; then
  14016. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14017. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  14018. fi
  14019. $as_echo "$as_me: error: $2" >&2
  14020. as_fn_exit $as_status
  14021. } # as_fn_error
  14022. # as_fn_set_status STATUS
  14023. # -----------------------
  14024. # Set $? to STATUS, without forking.
  14025. as_fn_set_status ()
  14026. {
  14027. return $1
  14028. } # as_fn_set_status
  14029. # as_fn_exit STATUS
  14030. # -----------------
  14031. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  14032. as_fn_exit ()
  14033. {
  14034. set +e
  14035. as_fn_set_status $1
  14036. exit $1
  14037. } # as_fn_exit
  14038. # as_fn_unset VAR
  14039. # ---------------
  14040. # Portably unset VAR.
  14041. as_fn_unset ()
  14042. {
  14043. { eval $1=; unset $1;}
  14044. }
  14045. as_unset=as_fn_unset
  14046. # as_fn_append VAR VALUE
  14047. # ----------------------
  14048. # Append the text in VALUE to the end of the definition contained in VAR. Take
  14049. # advantage of any shell optimizations that allow amortized linear growth over
  14050. # repeated appends, instead of the typical quadratic growth present in naive
  14051. # implementations.
  14052. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  14053. eval 'as_fn_append ()
  14054. {
  14055. eval $1+=\$2
  14056. }'
  14057. else
  14058. as_fn_append ()
  14059. {
  14060. eval $1=\$$1\$2
  14061. }
  14062. fi # as_fn_append
  14063. # as_fn_arith ARG...
  14064. # ------------------
  14065. # Perform arithmetic evaluation on the ARGs, and store the result in the
  14066. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  14067. # must be portable across $(()) and expr.
  14068. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  14069. eval 'as_fn_arith ()
  14070. {
  14071. as_val=$(( $* ))
  14072. }'
  14073. else
  14074. as_fn_arith ()
  14075. {
  14076. as_val=`expr "$@" || test $? -eq 1`
  14077. }
  14078. fi # as_fn_arith
  14079. if expr a : '\(a\)' >/dev/null 2>&1 &&
  14080. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  14081. as_expr=expr
  14082. else
  14083. as_expr=false
  14084. fi
  14085. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  14086. as_basename=basename
  14087. else
  14088. as_basename=false
  14089. fi
  14090. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  14091. as_dirname=dirname
  14092. else
  14093. as_dirname=false
  14094. fi
  14095. as_me=`$as_basename -- "$0" ||
  14096. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  14097. X"$0" : 'X\(//\)$' \| \
  14098. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  14099. $as_echo X/"$0" |
  14100. sed '/^.*\/\([^/][^/]*\)\/*$/{
  14101. s//\1/
  14102. q
  14103. }
  14104. /^X\/\(\/\/\)$/{
  14105. s//\1/
  14106. q
  14107. }
  14108. /^X\/\(\/\).*/{
  14109. s//\1/
  14110. q
  14111. }
  14112. s/.*/./; q'`
  14113. # Avoid depending upon Character Ranges.
  14114. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  14115. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  14116. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  14117. as_cr_digits='0123456789'
  14118. as_cr_alnum=$as_cr_Letters$as_cr_digits
  14119. ECHO_C= ECHO_N= ECHO_T=
  14120. case `echo -n x` in #(((((
  14121. -n*)
  14122. case `echo 'xy\c'` in
  14123. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  14124. xy) ECHO_C='\c';;
  14125. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  14126. ECHO_T=' ';;
  14127. esac;;
  14128. *)
  14129. ECHO_N='-n';;
  14130. esac
  14131. rm -f conf$$ conf$$.exe conf$$.file
  14132. if test -d conf$$.dir; then
  14133. rm -f conf$$.dir/conf$$.file
  14134. else
  14135. rm -f conf$$.dir
  14136. mkdir conf$$.dir 2>/dev/null
  14137. fi
  14138. if (echo >conf$$.file) 2>/dev/null; then
  14139. if ln -s conf$$.file conf$$ 2>/dev/null; then
  14140. as_ln_s='ln -s'
  14141. # ... but there are two gotchas:
  14142. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  14143. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  14144. # In both cases, we have to default to `cp -pR'.
  14145. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  14146. as_ln_s='cp -pR'
  14147. elif ln conf$$.file conf$$ 2>/dev/null; then
  14148. as_ln_s=ln
  14149. else
  14150. as_ln_s='cp -pR'
  14151. fi
  14152. else
  14153. as_ln_s='cp -pR'
  14154. fi
  14155. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  14156. rmdir conf$$.dir 2>/dev/null
  14157. # as_fn_mkdir_p
  14158. # -------------
  14159. # Create "$as_dir" as a directory, including parents if necessary.
  14160. as_fn_mkdir_p ()
  14161. {
  14162. case $as_dir in #(
  14163. -*) as_dir=./$as_dir;;
  14164. esac
  14165. test -d "$as_dir" || eval $as_mkdir_p || {
  14166. as_dirs=
  14167. while :; do
  14168. case $as_dir in #(
  14169. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  14170. *) as_qdir=$as_dir;;
  14171. esac
  14172. as_dirs="'$as_qdir' $as_dirs"
  14173. as_dir=`$as_dirname -- "$as_dir" ||
  14174. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14175. X"$as_dir" : 'X\(//\)[^/]' \| \
  14176. X"$as_dir" : 'X\(//\)$' \| \
  14177. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  14178. $as_echo X"$as_dir" |
  14179. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14180. s//\1/
  14181. q
  14182. }
  14183. /^X\(\/\/\)[^/].*/{
  14184. s//\1/
  14185. q
  14186. }
  14187. /^X\(\/\/\)$/{
  14188. s//\1/
  14189. q
  14190. }
  14191. /^X\(\/\).*/{
  14192. s//\1/
  14193. q
  14194. }
  14195. s/.*/./; q'`
  14196. test -d "$as_dir" && break
  14197. done
  14198. test -z "$as_dirs" || eval "mkdir $as_dirs"
  14199. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  14200. } # as_fn_mkdir_p
  14201. if mkdir -p . 2>/dev/null; then
  14202. as_mkdir_p='mkdir -p "$as_dir"'
  14203. else
  14204. test -d ./-p && rmdir ./-p
  14205. as_mkdir_p=false
  14206. fi
  14207. # as_fn_executable_p FILE
  14208. # -----------------------
  14209. # Test if FILE is an executable regular file.
  14210. as_fn_executable_p ()
  14211. {
  14212. test -f "$1" && test -x "$1"
  14213. } # as_fn_executable_p
  14214. as_test_x='test -x'
  14215. as_executable_p=as_fn_executable_p
  14216. # Sed expression to map a string onto a valid CPP name.
  14217. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  14218. # Sed expression to map a string onto a valid variable name.
  14219. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  14220. exec 6>&1
  14221. ## ----------------------------------- ##
  14222. ## Main body of $CONFIG_STATUS script. ##
  14223. ## ----------------------------------- ##
  14224. _ASEOF
  14225. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  14226. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14227. # Save the log message, to keep $0 and so on meaningful, and to
  14228. # report actual input values of CONFIG_FILES etc. instead of their
  14229. # values after options handling.
  14230. ac_log="
  14231. This file was extended by tpm2-tools $as_me 5.1, which was
  14232. generated by GNU Autoconf 2.69. Invocation command line was
  14233. CONFIG_FILES = $CONFIG_FILES
  14234. CONFIG_HEADERS = $CONFIG_HEADERS
  14235. CONFIG_LINKS = $CONFIG_LINKS
  14236. CONFIG_COMMANDS = $CONFIG_COMMANDS
  14237. $ $0 $@
  14238. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  14239. "
  14240. _ACEOF
  14241. case $ac_config_files in *"
  14242. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  14243. esac
  14244. case $ac_config_headers in *"
  14245. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  14246. esac
  14247. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14248. # Files that config.status was made for.
  14249. config_files="$ac_config_files"
  14250. config_headers="$ac_config_headers"
  14251. config_commands="$ac_config_commands"
  14252. _ACEOF
  14253. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14254. ac_cs_usage="\
  14255. \`$as_me' instantiates files and other configuration actions
  14256. from templates according to the current configuration. Unless the files
  14257. and actions are specified as TAGs, all are instantiated by default.
  14258. Usage: $0 [OPTION]... [TAG]...
  14259. -h, --help print this help, then exit
  14260. -V, --version print version number and configuration settings, then exit
  14261. --config print configuration, then exit
  14262. -q, --quiet, --silent
  14263. do not print progress messages
  14264. -d, --debug don't remove temporary files
  14265. --recheck update $as_me by reconfiguring in the same conditions
  14266. --file=FILE[:TEMPLATE]
  14267. instantiate the configuration file FILE
  14268. --header=FILE[:TEMPLATE]
  14269. instantiate the configuration header FILE
  14270. Configuration files:
  14271. $config_files
  14272. Configuration headers:
  14273. $config_headers
  14274. Configuration commands:
  14275. $config_commands
  14276. Report bugs to the package provider."
  14277. _ACEOF
  14278. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14279. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  14280. ac_cs_version="\\
  14281. tpm2-tools config.status 5.1
  14282. configured by $0, generated by GNU Autoconf 2.69,
  14283. with options \\"\$ac_cs_config\\"
  14284. Copyright (C) 2012 Free Software Foundation, Inc.
  14285. This config.status script is free software; the Free Software Foundation
  14286. gives unlimited permission to copy, distribute and modify it."
  14287. ac_pwd='$ac_pwd'
  14288. srcdir='$srcdir'
  14289. INSTALL='$INSTALL'
  14290. MKDIR_P='$MKDIR_P'
  14291. AWK='$AWK'
  14292. test -n "\$AWK" || AWK=awk
  14293. _ACEOF
  14294. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14295. # The default lists apply if the user does not specify any file.
  14296. ac_need_defaults=:
  14297. while test $# != 0
  14298. do
  14299. case $1 in
  14300. --*=?*)
  14301. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14302. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  14303. ac_shift=:
  14304. ;;
  14305. --*=)
  14306. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14307. ac_optarg=
  14308. ac_shift=:
  14309. ;;
  14310. *)
  14311. ac_option=$1
  14312. ac_optarg=$2
  14313. ac_shift=shift
  14314. ;;
  14315. esac
  14316. case $ac_option in
  14317. # Handling of the options.
  14318. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  14319. ac_cs_recheck=: ;;
  14320. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  14321. $as_echo "$ac_cs_version"; exit ;;
  14322. --config | --confi | --conf | --con | --co | --c )
  14323. $as_echo "$ac_cs_config"; exit ;;
  14324. --debug | --debu | --deb | --de | --d | -d )
  14325. debug=: ;;
  14326. --file | --fil | --fi | --f )
  14327. $ac_shift
  14328. case $ac_optarg in
  14329. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14330. '') as_fn_error $? "missing file argument" ;;
  14331. esac
  14332. as_fn_append CONFIG_FILES " '$ac_optarg'"
  14333. ac_need_defaults=false;;
  14334. --header | --heade | --head | --hea )
  14335. $ac_shift
  14336. case $ac_optarg in
  14337. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14338. esac
  14339. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  14340. ac_need_defaults=false;;
  14341. --he | --h)
  14342. # Conflict between --help and --header
  14343. as_fn_error $? "ambiguous option: \`$1'
  14344. Try \`$0 --help' for more information.";;
  14345. --help | --hel | -h )
  14346. $as_echo "$ac_cs_usage"; exit ;;
  14347. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14348. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  14349. ac_cs_silent=: ;;
  14350. # This is an error.
  14351. -*) as_fn_error $? "unrecognized option: \`$1'
  14352. Try \`$0 --help' for more information." ;;
  14353. *) as_fn_append ac_config_targets " $1"
  14354. ac_need_defaults=false ;;
  14355. esac
  14356. shift
  14357. done
  14358. ac_configure_extra_args=
  14359. if $ac_cs_silent; then
  14360. exec 6>/dev/null
  14361. ac_configure_extra_args="$ac_configure_extra_args --silent"
  14362. fi
  14363. _ACEOF
  14364. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14365. if \$ac_cs_recheck; then
  14366. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14367. shift
  14368. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  14369. CONFIG_SHELL='$SHELL'
  14370. export CONFIG_SHELL
  14371. exec "\$@"
  14372. fi
  14373. _ACEOF
  14374. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14375. exec 5>>config.log
  14376. {
  14377. echo
  14378. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  14379. ## Running $as_me. ##
  14380. _ASBOX
  14381. $as_echo "$ac_log"
  14382. } >&5
  14383. _ACEOF
  14384. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14385. #
  14386. # INIT-COMMANDS
  14387. #
  14388. # The HP-UX ksh and POSIX shell print the target directory to stdout
  14389. # if CDPATH is set.
  14390. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14391. sed_quote_subst='$sed_quote_subst'
  14392. double_quote_subst='$double_quote_subst'
  14393. delay_variable_subst='$delay_variable_subst'
  14394. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  14395. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  14396. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  14397. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  14398. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  14399. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  14400. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  14401. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  14402. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  14403. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  14404. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  14405. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  14406. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  14407. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  14408. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  14409. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  14410. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  14411. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  14412. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  14413. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  14414. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  14415. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  14416. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  14417. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  14418. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  14419. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  14420. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  14421. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  14422. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  14423. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  14424. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  14425. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  14426. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  14427. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  14428. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  14429. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  14430. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  14431. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  14432. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  14433. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  14434. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  14435. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  14436. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  14437. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  14438. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  14439. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  14440. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14441. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14442. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  14443. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  14444. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  14445. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  14446. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  14447. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  14448. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  14449. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  14450. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  14451. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  14452. 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"`'
  14453. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  14454. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  14455. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  14456. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  14457. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  14458. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  14459. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  14460. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  14461. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  14462. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  14463. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  14464. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  14465. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  14466. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  14467. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  14468. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  14469. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  14470. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  14471. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  14472. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  14473. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14474. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  14475. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  14476. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  14477. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  14478. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  14479. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  14480. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14481. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  14482. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14483. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  14484. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14485. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  14486. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14487. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14488. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  14489. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  14490. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  14491. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  14492. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  14493. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14494. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  14495. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  14496. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  14497. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  14498. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  14499. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  14500. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  14501. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  14502. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  14503. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  14504. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  14505. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  14506. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  14507. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  14508. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  14509. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14510. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  14511. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  14512. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  14513. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  14514. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  14515. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14516. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14517. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  14518. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  14519. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  14520. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  14521. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  14522. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  14523. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  14524. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  14525. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  14526. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  14527. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  14528. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  14529. LTCC='$LTCC'
  14530. LTCFLAGS='$LTCFLAGS'
  14531. compiler='$compiler_DEFAULT'
  14532. # A function that is used when there is no print builtin or printf.
  14533. func_fallback_echo ()
  14534. {
  14535. eval 'cat <<_LTECHO_EOF
  14536. \$1
  14537. _LTECHO_EOF'
  14538. }
  14539. # Quote evaled strings.
  14540. for var in SHELL \
  14541. ECHO \
  14542. PATH_SEPARATOR \
  14543. SED \
  14544. GREP \
  14545. EGREP \
  14546. FGREP \
  14547. LD \
  14548. NM \
  14549. LN_S \
  14550. lt_SP2NL \
  14551. lt_NL2SP \
  14552. reload_flag \
  14553. OBJDUMP \
  14554. deplibs_check_method \
  14555. file_magic_cmd \
  14556. file_magic_glob \
  14557. want_nocaseglob \
  14558. DLLTOOL \
  14559. sharedlib_from_linklib_cmd \
  14560. AR \
  14561. AR_FLAGS \
  14562. archiver_list_spec \
  14563. STRIP \
  14564. RANLIB \
  14565. CC \
  14566. CFLAGS \
  14567. compiler \
  14568. lt_cv_sys_global_symbol_pipe \
  14569. lt_cv_sys_global_symbol_to_cdecl \
  14570. lt_cv_sys_global_symbol_to_import \
  14571. lt_cv_sys_global_symbol_to_c_name_address \
  14572. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  14573. lt_cv_nm_interface \
  14574. nm_file_list_spec \
  14575. lt_cv_truncate_bin \
  14576. lt_prog_compiler_no_builtin_flag \
  14577. lt_prog_compiler_pic \
  14578. lt_prog_compiler_wl \
  14579. lt_prog_compiler_static \
  14580. lt_cv_prog_compiler_c_o \
  14581. need_locks \
  14582. MANIFEST_TOOL \
  14583. DSYMUTIL \
  14584. NMEDIT \
  14585. LIPO \
  14586. OTOOL \
  14587. OTOOL64 \
  14588. shrext_cmds \
  14589. export_dynamic_flag_spec \
  14590. whole_archive_flag_spec \
  14591. compiler_needs_object \
  14592. with_gnu_ld \
  14593. allow_undefined_flag \
  14594. no_undefined_flag \
  14595. hardcode_libdir_flag_spec \
  14596. hardcode_libdir_separator \
  14597. exclude_expsyms \
  14598. include_expsyms \
  14599. file_list_spec \
  14600. variables_saved_for_relink \
  14601. libname_spec \
  14602. library_names_spec \
  14603. soname_spec \
  14604. install_override_mode \
  14605. finish_eval \
  14606. old_striplib \
  14607. striplib; do
  14608. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  14609. *[\\\\\\\`\\"\\\$]*)
  14610. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  14611. ;;
  14612. *)
  14613. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14614. ;;
  14615. esac
  14616. done
  14617. # Double-quote double-evaled strings.
  14618. for var in reload_cmds \
  14619. old_postinstall_cmds \
  14620. old_postuninstall_cmds \
  14621. old_archive_cmds \
  14622. extract_expsyms_cmds \
  14623. old_archive_from_new_cmds \
  14624. old_archive_from_expsyms_cmds \
  14625. archive_cmds \
  14626. archive_expsym_cmds \
  14627. module_cmds \
  14628. module_expsym_cmds \
  14629. export_symbols_cmds \
  14630. prelink_cmds \
  14631. postlink_cmds \
  14632. postinstall_cmds \
  14633. postuninstall_cmds \
  14634. finish_cmds \
  14635. sys_lib_search_path_spec \
  14636. configure_time_dlsearch_path \
  14637. configure_time_lt_sys_library_path; do
  14638. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  14639. *[\\\\\\\`\\"\\\$]*)
  14640. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  14641. ;;
  14642. *)
  14643. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14644. ;;
  14645. esac
  14646. done
  14647. ac_aux_dir='$ac_aux_dir'
  14648. # See if we are running on zsh, and set the options that allow our
  14649. # commands through without removal of \ escapes INIT.
  14650. if test -n "\${ZSH_VERSION+set}"; then
  14651. setopt NO_GLOB_SUBST
  14652. fi
  14653. PACKAGE='$PACKAGE'
  14654. VERSION='$VERSION'
  14655. RM='$RM'
  14656. ofile='$ofile'
  14657. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  14658. _ACEOF
  14659. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14660. # Handling of arguments.
  14661. for ac_config_target in $ac_config_targets
  14662. do
  14663. case $ac_config_target in
  14664. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  14665. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  14666. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  14667. "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
  14668. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  14669. esac
  14670. done
  14671. # If the user did not use the arguments to specify the items to instantiate,
  14672. # then the envvar interface is used. Set only those that are not.
  14673. # We use the long form for the default assignment because of an extremely
  14674. # bizarre bug on SunOS 4.1.3.
  14675. if $ac_need_defaults; then
  14676. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  14677. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  14678. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  14679. fi
  14680. # Have a temporary directory for convenience. Make it in the build tree
  14681. # simply because there is no reason against having it here, and in addition,
  14682. # creating and moving files from /tmp can sometimes cause problems.
  14683. # Hook for its removal unless debugging.
  14684. # Note that there is a small window in which the directory will not be cleaned:
  14685. # after its creation but before its name has been assigned to `$tmp'.
  14686. $debug ||
  14687. {
  14688. tmp= ac_tmp=
  14689. trap 'exit_status=$?
  14690. : "${ac_tmp:=$tmp}"
  14691. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  14692. ' 0
  14693. trap 'as_fn_exit 1' 1 2 13 15
  14694. }
  14695. # Create a (secure) tmp directory for tmp files.
  14696. {
  14697. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  14698. test -d "$tmp"
  14699. } ||
  14700. {
  14701. tmp=./conf$$-$RANDOM
  14702. (umask 077 && mkdir "$tmp")
  14703. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  14704. ac_tmp=$tmp
  14705. # Set up the scripts for CONFIG_FILES section.
  14706. # No need to generate them if there are no CONFIG_FILES.
  14707. # This happens for instance with `./config.status config.h'.
  14708. if test -n "$CONFIG_FILES"; then
  14709. ac_cr=`echo X | tr X '\015'`
  14710. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  14711. # But we know of no other shell where ac_cr would be empty at this
  14712. # point, so we can use a bashism as a fallback.
  14713. if test "x$ac_cr" = x; then
  14714. eval ac_cr=\$\'\\r\'
  14715. fi
  14716. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  14717. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  14718. ac_cs_awk_cr='\\r'
  14719. else
  14720. ac_cs_awk_cr=$ac_cr
  14721. fi
  14722. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  14723. _ACEOF
  14724. {
  14725. echo "cat >conf$$subs.awk <<_ACEOF" &&
  14726. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  14727. echo "_ACEOF"
  14728. } >conf$$subs.sh ||
  14729. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14730. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  14731. ac_delim='%!_!# '
  14732. for ac_last_try in false false false false false :; do
  14733. . ./conf$$subs.sh ||
  14734. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14735. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  14736. if test $ac_delim_n = $ac_delim_num; then
  14737. break
  14738. elif $ac_last_try; then
  14739. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14740. else
  14741. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14742. fi
  14743. done
  14744. rm -f conf$$subs.sh
  14745. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14746. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  14747. _ACEOF
  14748. sed -n '
  14749. h
  14750. s/^/S["/; s/!.*/"]=/
  14751. p
  14752. g
  14753. s/^[^!]*!//
  14754. :repl
  14755. t repl
  14756. s/'"$ac_delim"'$//
  14757. t delim
  14758. :nl
  14759. h
  14760. s/\(.\{148\}\)..*/\1/
  14761. t more1
  14762. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  14763. p
  14764. n
  14765. b repl
  14766. :more1
  14767. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14768. p
  14769. g
  14770. s/.\{148\}//
  14771. t nl
  14772. :delim
  14773. h
  14774. s/\(.\{148\}\)..*/\1/
  14775. t more2
  14776. s/["\\]/\\&/g; s/^/"/; s/$/"/
  14777. p
  14778. b
  14779. :more2
  14780. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14781. p
  14782. g
  14783. s/.\{148\}//
  14784. t delim
  14785. ' <conf$$subs.awk | sed '
  14786. /^[^""]/{
  14787. N
  14788. s/\n//
  14789. }
  14790. ' >>$CONFIG_STATUS || ac_write_fail=1
  14791. rm -f conf$$subs.awk
  14792. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14793. _ACAWK
  14794. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  14795. for (key in S) S_is_set[key] = 1
  14796. FS = ""
  14797. }
  14798. {
  14799. line = $ 0
  14800. nfields = split(line, field, "@")
  14801. substed = 0
  14802. len = length(field[1])
  14803. for (i = 2; i < nfields; i++) {
  14804. key = field[i]
  14805. keylen = length(key)
  14806. if (S_is_set[key]) {
  14807. value = S[key]
  14808. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  14809. len += length(value) + length(field[++i])
  14810. substed = 1
  14811. } else
  14812. len += 1 + keylen
  14813. }
  14814. print line
  14815. }
  14816. _ACAWK
  14817. _ACEOF
  14818. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14819. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  14820. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  14821. else
  14822. cat
  14823. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  14824. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  14825. _ACEOF
  14826. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  14827. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  14828. # trailing colons and then remove the whole line if VPATH becomes empty
  14829. # (actually we leave an empty line to preserve line numbers).
  14830. if test "x$srcdir" = x.; then
  14831. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  14832. h
  14833. s///
  14834. s/^/:/
  14835. s/[ ]*$/:/
  14836. s/:\$(srcdir):/:/g
  14837. s/:\${srcdir}:/:/g
  14838. s/:@srcdir@:/:/g
  14839. s/^:*//
  14840. s/:*$//
  14841. x
  14842. s/\(=[ ]*\).*/\1/
  14843. G
  14844. s/\n//
  14845. s/^[^=]*=[ ]*$//
  14846. }'
  14847. fi
  14848. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14849. fi # test -n "$CONFIG_FILES"
  14850. # Set up the scripts for CONFIG_HEADERS section.
  14851. # No need to generate them if there are no CONFIG_HEADERS.
  14852. # This happens for instance with `./config.status Makefile'.
  14853. if test -n "$CONFIG_HEADERS"; then
  14854. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  14855. BEGIN {
  14856. _ACEOF
  14857. # Transform confdefs.h into an awk script `defines.awk', embedded as
  14858. # here-document in config.status, that substitutes the proper values into
  14859. # config.h.in to produce config.h.
  14860. # Create a delimiter string that does not exist in confdefs.h, to ease
  14861. # handling of long lines.
  14862. ac_delim='%!_!# '
  14863. for ac_last_try in false false :; do
  14864. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  14865. if test -z "$ac_tt"; then
  14866. break
  14867. elif $ac_last_try; then
  14868. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  14869. else
  14870. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14871. fi
  14872. done
  14873. # For the awk script, D is an array of macro values keyed by name,
  14874. # likewise P contains macro parameters if any. Preserve backslash
  14875. # newline sequences.
  14876. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  14877. sed -n '
  14878. s/.\{148\}/&'"$ac_delim"'/g
  14879. t rset
  14880. :rset
  14881. s/^[ ]*#[ ]*define[ ][ ]*/ /
  14882. t def
  14883. d
  14884. :def
  14885. s/\\$//
  14886. t bsnl
  14887. s/["\\]/\\&/g
  14888. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14889. D["\1"]=" \3"/p
  14890. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  14891. d
  14892. :bsnl
  14893. s/["\\]/\\&/g
  14894. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14895. D["\1"]=" \3\\\\\\n"\\/p
  14896. t cont
  14897. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  14898. t cont
  14899. d
  14900. :cont
  14901. n
  14902. s/.\{148\}/&'"$ac_delim"'/g
  14903. t clear
  14904. :clear
  14905. s/\\$//
  14906. t bsnlc
  14907. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  14908. d
  14909. :bsnlc
  14910. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  14911. b cont
  14912. ' <confdefs.h | sed '
  14913. s/'"$ac_delim"'/"\\\
  14914. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  14915. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14916. for (key in D) D_is_set[key] = 1
  14917. FS = ""
  14918. }
  14919. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  14920. line = \$ 0
  14921. split(line, arg, " ")
  14922. if (arg[1] == "#") {
  14923. defundef = arg[2]
  14924. mac1 = arg[3]
  14925. } else {
  14926. defundef = substr(arg[1], 2)
  14927. mac1 = arg[2]
  14928. }
  14929. split(mac1, mac2, "(") #)
  14930. macro = mac2[1]
  14931. prefix = substr(line, 1, index(line, defundef) - 1)
  14932. if (D_is_set[macro]) {
  14933. # Preserve the white space surrounding the "#".
  14934. print prefix "define", macro P[macro] D[macro]
  14935. next
  14936. } else {
  14937. # Replace #undef with comments. This is necessary, for example,
  14938. # in the case of _POSIX_SOURCE, which is predefined and required
  14939. # on some systems where configure will not decide to define it.
  14940. if (defundef == "undef") {
  14941. print "/*", prefix defundef, macro, "*/"
  14942. next
  14943. }
  14944. }
  14945. }
  14946. { print }
  14947. _ACAWK
  14948. _ACEOF
  14949. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14950. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  14951. fi # test -n "$CONFIG_HEADERS"
  14952. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  14953. shift
  14954. for ac_tag
  14955. do
  14956. case $ac_tag in
  14957. :[FHLC]) ac_mode=$ac_tag; continue;;
  14958. esac
  14959. case $ac_mode$ac_tag in
  14960. :[FHL]*:*);;
  14961. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  14962. :[FH]-) ac_tag=-:-;;
  14963. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  14964. esac
  14965. ac_save_IFS=$IFS
  14966. IFS=:
  14967. set x $ac_tag
  14968. IFS=$ac_save_IFS
  14969. shift
  14970. ac_file=$1
  14971. shift
  14972. case $ac_mode in
  14973. :L) ac_source=$1;;
  14974. :[FH])
  14975. ac_file_inputs=
  14976. for ac_f
  14977. do
  14978. case $ac_f in
  14979. -) ac_f="$ac_tmp/stdin";;
  14980. *) # Look for the file first in the build tree, then in the source tree
  14981. # (if the path is not absolute). The absolute path cannot be DOS-style,
  14982. # because $ac_f cannot contain `:'.
  14983. test -f "$ac_f" ||
  14984. case $ac_f in
  14985. [\\/$]*) false;;
  14986. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  14987. esac ||
  14988. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  14989. esac
  14990. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  14991. as_fn_append ac_file_inputs " '$ac_f'"
  14992. done
  14993. # Let's still pretend it is `configure' which instantiates (i.e., don't
  14994. # use $as_me), people would be surprised to read:
  14995. # /* config.h. Generated by config.status. */
  14996. configure_input='Generated from '`
  14997. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  14998. `' by configure.'
  14999. if test x"$ac_file" != x-; then
  15000. configure_input="$ac_file. $configure_input"
  15001. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  15002. $as_echo "$as_me: creating $ac_file" >&6;}
  15003. fi
  15004. # Neutralize special characters interpreted by sed in replacement strings.
  15005. case $configure_input in #(
  15006. *\&* | *\|* | *\\* )
  15007. ac_sed_conf_input=`$as_echo "$configure_input" |
  15008. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  15009. *) ac_sed_conf_input=$configure_input;;
  15010. esac
  15011. case $ac_tag in
  15012. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  15013. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  15014. esac
  15015. ;;
  15016. esac
  15017. ac_dir=`$as_dirname -- "$ac_file" ||
  15018. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15019. X"$ac_file" : 'X\(//\)[^/]' \| \
  15020. X"$ac_file" : 'X\(//\)$' \| \
  15021. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  15022. $as_echo X"$ac_file" |
  15023. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15024. s//\1/
  15025. q
  15026. }
  15027. /^X\(\/\/\)[^/].*/{
  15028. s//\1/
  15029. q
  15030. }
  15031. /^X\(\/\/\)$/{
  15032. s//\1/
  15033. q
  15034. }
  15035. /^X\(\/\).*/{
  15036. s//\1/
  15037. q
  15038. }
  15039. s/.*/./; q'`
  15040. as_dir="$ac_dir"; as_fn_mkdir_p
  15041. ac_builddir=.
  15042. case "$ac_dir" in
  15043. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15044. *)
  15045. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  15046. # A ".." for each directory in $ac_dir_suffix.
  15047. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  15048. case $ac_top_builddir_sub in
  15049. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15050. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  15051. esac ;;
  15052. esac
  15053. ac_abs_top_builddir=$ac_pwd
  15054. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  15055. # for backward compatibility:
  15056. ac_top_builddir=$ac_top_build_prefix
  15057. case $srcdir in
  15058. .) # We are building in place.
  15059. ac_srcdir=.
  15060. ac_top_srcdir=$ac_top_builddir_sub
  15061. ac_abs_top_srcdir=$ac_pwd ;;
  15062. [\\/]* | ?:[\\/]* ) # Absolute name.
  15063. ac_srcdir=$srcdir$ac_dir_suffix;
  15064. ac_top_srcdir=$srcdir
  15065. ac_abs_top_srcdir=$srcdir ;;
  15066. *) # Relative name.
  15067. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  15068. ac_top_srcdir=$ac_top_build_prefix$srcdir
  15069. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  15070. esac
  15071. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  15072. case $ac_mode in
  15073. :F)
  15074. #
  15075. # CONFIG_FILE
  15076. #
  15077. case $INSTALL in
  15078. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  15079. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  15080. esac
  15081. ac_MKDIR_P=$MKDIR_P
  15082. case $MKDIR_P in
  15083. [\\/$]* | ?:[\\/]* ) ;;
  15084. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  15085. esac
  15086. _ACEOF
  15087. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15088. # If the template does not know about datarootdir, expand it.
  15089. # FIXME: This hack should be removed a few years after 2.60.
  15090. ac_datarootdir_hack=; ac_datarootdir_seen=
  15091. ac_sed_dataroot='
  15092. /datarootdir/ {
  15093. p
  15094. q
  15095. }
  15096. /@datadir@/p
  15097. /@docdir@/p
  15098. /@infodir@/p
  15099. /@localedir@/p
  15100. /@mandir@/p'
  15101. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  15102. *datarootdir*) ac_datarootdir_seen=yes;;
  15103. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  15104. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  15105. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  15106. _ACEOF
  15107. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15108. ac_datarootdir_hack='
  15109. s&@datadir@&$datadir&g
  15110. s&@docdir@&$docdir&g
  15111. s&@infodir@&$infodir&g
  15112. s&@localedir@&$localedir&g
  15113. s&@mandir@&$mandir&g
  15114. s&\\\${datarootdir}&$datarootdir&g' ;;
  15115. esac
  15116. _ACEOF
  15117. # Neutralize VPATH when `$srcdir' = `.'.
  15118. # Shell code in configure.ac might set extrasub.
  15119. # FIXME: do we really want to maintain this feature?
  15120. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15121. ac_sed_extra="$ac_vpsub
  15122. $extrasub
  15123. _ACEOF
  15124. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15125. :t
  15126. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  15127. s|@configure_input@|$ac_sed_conf_input|;t t
  15128. s&@top_builddir@&$ac_top_builddir_sub&;t t
  15129. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  15130. s&@srcdir@&$ac_srcdir&;t t
  15131. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  15132. s&@top_srcdir@&$ac_top_srcdir&;t t
  15133. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  15134. s&@builddir@&$ac_builddir&;t t
  15135. s&@abs_builddir@&$ac_abs_builddir&;t t
  15136. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  15137. s&@INSTALL@&$ac_INSTALL&;t t
  15138. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  15139. $ac_datarootdir_hack
  15140. "
  15141. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  15142. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15143. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  15144. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  15145. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  15146. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  15147. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15148. which seems to be undefined. Please make sure it is defined" >&5
  15149. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15150. which seems to be undefined. Please make sure it is defined" >&2;}
  15151. rm -f "$ac_tmp/stdin"
  15152. case $ac_file in
  15153. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  15154. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  15155. esac \
  15156. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15157. ;;
  15158. :H)
  15159. #
  15160. # CONFIG_HEADER
  15161. #
  15162. if test x"$ac_file" != x-; then
  15163. {
  15164. $as_echo "/* $configure_input */" \
  15165. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  15166. } >"$ac_tmp/config.h" \
  15167. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15168. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  15169. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  15170. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  15171. else
  15172. rm -f "$ac_file"
  15173. mv "$ac_tmp/config.h" "$ac_file" \
  15174. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15175. fi
  15176. else
  15177. $as_echo "/* $configure_input */" \
  15178. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  15179. || as_fn_error $? "could not create -" "$LINENO" 5
  15180. fi
  15181. # Compute "$ac_file"'s index in $config_headers.
  15182. _am_arg="$ac_file"
  15183. _am_stamp_count=1
  15184. for _am_header in $config_headers :; do
  15185. case $_am_header in
  15186. $_am_arg | $_am_arg:* )
  15187. break ;;
  15188. * )
  15189. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  15190. esac
  15191. done
  15192. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  15193. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15194. X"$_am_arg" : 'X\(//\)[^/]' \| \
  15195. X"$_am_arg" : 'X\(//\)$' \| \
  15196. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  15197. $as_echo X"$_am_arg" |
  15198. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15199. s//\1/
  15200. q
  15201. }
  15202. /^X\(\/\/\)[^/].*/{
  15203. s//\1/
  15204. q
  15205. }
  15206. /^X\(\/\/\)$/{
  15207. s//\1/
  15208. q
  15209. }
  15210. /^X\(\/\).*/{
  15211. s//\1/
  15212. q
  15213. }
  15214. s/.*/./; q'`/stamp-h$_am_stamp_count
  15215. ;;
  15216. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  15217. $as_echo "$as_me: executing $ac_file commands" >&6;}
  15218. ;;
  15219. esac
  15220. case $ac_file$ac_mode in
  15221. "libtool":C)
  15222. # See if we are running on zsh, and set the options that allow our
  15223. # commands through without removal of \ escapes.
  15224. if test -n "${ZSH_VERSION+set}"; then
  15225. setopt NO_GLOB_SUBST
  15226. fi
  15227. cfgfile=${ofile}T
  15228. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  15229. $RM "$cfgfile"
  15230. cat <<_LT_EOF >> "$cfgfile"
  15231. #! $SHELL
  15232. # Generated automatically by $as_me ($PACKAGE) $VERSION
  15233. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  15234. # Provide generalized library-building support services.
  15235. # Written by Gordon Matzigkeit, 1996
  15236. # Copyright (C) 2014 Free Software Foundation, Inc.
  15237. # This is free software; see the source for copying conditions. There is NO
  15238. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  15239. # GNU Libtool is free software; you can redistribute it and/or modify
  15240. # it under the terms of the GNU General Public License as published by
  15241. # the Free Software Foundation; either version 2 of of the License, or
  15242. # (at your option) any later version.
  15243. #
  15244. # As a special exception to the GNU General Public License, if you
  15245. # distribute this file as part of a program or library that is built
  15246. # using GNU Libtool, you may include this file under the same
  15247. # distribution terms that you use for the rest of that program.
  15248. #
  15249. # GNU Libtool is distributed in the hope that it will be useful, but
  15250. # WITHOUT ANY WARRANTY; without even the implied warranty of
  15251. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15252. # GNU General Public License for more details.
  15253. #
  15254. # You should have received a copy of the GNU General Public License
  15255. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  15256. # The names of the tagged configurations supported by this script.
  15257. available_tags=''
  15258. # Configured defaults for sys_lib_dlsearch_path munging.
  15259. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  15260. # ### BEGIN LIBTOOL CONFIG
  15261. # Which release of libtool.m4 was used?
  15262. macro_version=$macro_version
  15263. macro_revision=$macro_revision
  15264. # Whether or not to build shared libraries.
  15265. build_libtool_libs=$enable_shared
  15266. # Whether or not to build static libraries.
  15267. build_old_libs=$enable_static
  15268. # What type of objects to build.
  15269. pic_mode=$pic_mode
  15270. # Whether or not to optimize for fast installation.
  15271. fast_install=$enable_fast_install
  15272. # Shared archive member basename,for filename based shared library versioning on AIX.
  15273. shared_archive_member_spec=$shared_archive_member_spec
  15274. # Shell to use when invoking shell scripts.
  15275. SHELL=$lt_SHELL
  15276. # An echo program that protects backslashes.
  15277. ECHO=$lt_ECHO
  15278. # The PATH separator for the build system.
  15279. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  15280. # The host system.
  15281. host_alias=$host_alias
  15282. host=$host
  15283. host_os=$host_os
  15284. # The build system.
  15285. build_alias=$build_alias
  15286. build=$build
  15287. build_os=$build_os
  15288. # A sed program that does not truncate output.
  15289. SED=$lt_SED
  15290. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  15291. Xsed="\$SED -e 1s/^X//"
  15292. # A grep program that handles long lines.
  15293. GREP=$lt_GREP
  15294. # An ERE matcher.
  15295. EGREP=$lt_EGREP
  15296. # A literal string matcher.
  15297. FGREP=$lt_FGREP
  15298. # A BSD- or MS-compatible name lister.
  15299. NM=$lt_NM
  15300. # Whether we need soft or hard links.
  15301. LN_S=$lt_LN_S
  15302. # What is the maximum length of a command?
  15303. max_cmd_len=$max_cmd_len
  15304. # Object file suffix (normally "o").
  15305. objext=$ac_objext
  15306. # Executable file suffix (normally "").
  15307. exeext=$exeext
  15308. # whether the shell understands "unset".
  15309. lt_unset=$lt_unset
  15310. # turn spaces into newlines.
  15311. SP2NL=$lt_lt_SP2NL
  15312. # turn newlines into spaces.
  15313. NL2SP=$lt_lt_NL2SP
  15314. # convert \$build file names to \$host format.
  15315. to_host_file_cmd=$lt_cv_to_host_file_cmd
  15316. # convert \$build files to toolchain format.
  15317. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  15318. # An object symbol dumper.
  15319. OBJDUMP=$lt_OBJDUMP
  15320. # Method to check whether dependent libraries are shared objects.
  15321. deplibs_check_method=$lt_deplibs_check_method
  15322. # Command to use when deplibs_check_method = "file_magic".
  15323. file_magic_cmd=$lt_file_magic_cmd
  15324. # How to find potential files when deplibs_check_method = "file_magic".
  15325. file_magic_glob=$lt_file_magic_glob
  15326. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  15327. want_nocaseglob=$lt_want_nocaseglob
  15328. # DLL creation program.
  15329. DLLTOOL=$lt_DLLTOOL
  15330. # Command to associate shared and link libraries.
  15331. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  15332. # The archiver.
  15333. AR=$lt_AR
  15334. # Flags to create an archive.
  15335. AR_FLAGS=$lt_AR_FLAGS
  15336. # How to feed a file listing to the archiver.
  15337. archiver_list_spec=$lt_archiver_list_spec
  15338. # A symbol stripping program.
  15339. STRIP=$lt_STRIP
  15340. # Commands used to install an old-style archive.
  15341. RANLIB=$lt_RANLIB
  15342. old_postinstall_cmds=$lt_old_postinstall_cmds
  15343. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  15344. # Whether to use a lock for old archive extraction.
  15345. lock_old_archive_extraction=$lock_old_archive_extraction
  15346. # A C compiler.
  15347. LTCC=$lt_CC
  15348. # LTCC compiler flags.
  15349. LTCFLAGS=$lt_CFLAGS
  15350. # Take the output of nm and produce a listing of raw symbols and C names.
  15351. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  15352. # Transform the output of nm in a proper C declaration.
  15353. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  15354. # Transform the output of nm into a list of symbols to manually relocate.
  15355. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  15356. # Transform the output of nm in a C name address pair.
  15357. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  15358. # Transform the output of nm in a C name address pair when lib prefix is needed.
  15359. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  15360. # The name lister interface.
  15361. nm_interface=$lt_lt_cv_nm_interface
  15362. # Specify filename containing input files for \$NM.
  15363. nm_file_list_spec=$lt_nm_file_list_spec
  15364. # The root where to search for dependent libraries,and where our libraries should be installed.
  15365. lt_sysroot=$lt_sysroot
  15366. # Command to truncate a binary pipe.
  15367. lt_truncate_bin=$lt_lt_cv_truncate_bin
  15368. # The name of the directory that contains temporary libtool files.
  15369. objdir=$objdir
  15370. # Used to examine libraries when file_magic_cmd begins with "file".
  15371. MAGIC_CMD=$MAGIC_CMD
  15372. # Must we lock files when doing compilation?
  15373. need_locks=$lt_need_locks
  15374. # Manifest tool.
  15375. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  15376. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  15377. DSYMUTIL=$lt_DSYMUTIL
  15378. # Tool to change global to local symbols on Mac OS X.
  15379. NMEDIT=$lt_NMEDIT
  15380. # Tool to manipulate fat objects and archives on Mac OS X.
  15381. LIPO=$lt_LIPO
  15382. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  15383. OTOOL=$lt_OTOOL
  15384. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  15385. OTOOL64=$lt_OTOOL64
  15386. # Old archive suffix (normally "a").
  15387. libext=$libext
  15388. # Shared library suffix (normally ".so").
  15389. shrext_cmds=$lt_shrext_cmds
  15390. # The commands to extract the exported symbol list from a shared archive.
  15391. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  15392. # Variables whose values should be saved in libtool wrapper scripts and
  15393. # restored at link time.
  15394. variables_saved_for_relink=$lt_variables_saved_for_relink
  15395. # Do we need the "lib" prefix for modules?
  15396. need_lib_prefix=$need_lib_prefix
  15397. # Do we need a version for libraries?
  15398. need_version=$need_version
  15399. # Library versioning type.
  15400. version_type=$version_type
  15401. # Shared library runtime path variable.
  15402. runpath_var=$runpath_var
  15403. # Shared library path variable.
  15404. shlibpath_var=$shlibpath_var
  15405. # Is shlibpath searched before the hard-coded library search path?
  15406. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  15407. # Format of library name prefix.
  15408. libname_spec=$lt_libname_spec
  15409. # List of archive names. First name is the real one, the rest are links.
  15410. # The last name is the one that the linker finds with -lNAME
  15411. library_names_spec=$lt_library_names_spec
  15412. # The coded name of the library, if different from the real name.
  15413. soname_spec=$lt_soname_spec
  15414. # Permission mode override for installation of shared libraries.
  15415. install_override_mode=$lt_install_override_mode
  15416. # Command to use after installation of a shared archive.
  15417. postinstall_cmds=$lt_postinstall_cmds
  15418. # Command to use after uninstallation of a shared archive.
  15419. postuninstall_cmds=$lt_postuninstall_cmds
  15420. # Commands used to finish a libtool library installation in a directory.
  15421. finish_cmds=$lt_finish_cmds
  15422. # As "finish_cmds", except a single script fragment to be evaled but
  15423. # not shown.
  15424. finish_eval=$lt_finish_eval
  15425. # Whether we should hardcode library paths into libraries.
  15426. hardcode_into_libs=$hardcode_into_libs
  15427. # Compile-time system search path for libraries.
  15428. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  15429. # Detected run-time system search path for libraries.
  15430. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  15431. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  15432. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  15433. # Whether dlopen is supported.
  15434. dlopen_support=$enable_dlopen
  15435. # Whether dlopen of programs is supported.
  15436. dlopen_self=$enable_dlopen_self
  15437. # Whether dlopen of statically linked programs is supported.
  15438. dlopen_self_static=$enable_dlopen_self_static
  15439. # Commands to strip libraries.
  15440. old_striplib=$lt_old_striplib
  15441. striplib=$lt_striplib
  15442. # The linker used to build libraries.
  15443. LD=$lt_LD
  15444. # How to create reloadable object files.
  15445. reload_flag=$lt_reload_flag
  15446. reload_cmds=$lt_reload_cmds
  15447. # Commands used to build an old-style archive.
  15448. old_archive_cmds=$lt_old_archive_cmds
  15449. # A language specific compiler.
  15450. CC=$lt_compiler
  15451. # Is the compiler the GNU compiler?
  15452. with_gcc=$GCC
  15453. # Compiler flag to turn off builtin functions.
  15454. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  15455. # Additional compiler flags for building library objects.
  15456. pic_flag=$lt_lt_prog_compiler_pic
  15457. # How to pass a linker flag through the compiler.
  15458. wl=$lt_lt_prog_compiler_wl
  15459. # Compiler flag to prevent dynamic linking.
  15460. link_static_flag=$lt_lt_prog_compiler_static
  15461. # Does compiler simultaneously support -c and -o options?
  15462. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  15463. # Whether or not to add -lc for building shared libraries.
  15464. build_libtool_need_lc=$archive_cmds_need_lc
  15465. # Whether or not to disallow shared libs when runtime libs are static.
  15466. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  15467. # Compiler flag to allow reflexive dlopens.
  15468. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  15469. # Compiler flag to generate shared objects directly from archives.
  15470. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  15471. # Whether the compiler copes with passing no objects directly.
  15472. compiler_needs_object=$lt_compiler_needs_object
  15473. # Create an old-style archive from a shared archive.
  15474. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  15475. # Create a temporary old-style archive to link instead of a shared archive.
  15476. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  15477. # Commands used to build a shared archive.
  15478. archive_cmds=$lt_archive_cmds
  15479. archive_expsym_cmds=$lt_archive_expsym_cmds
  15480. # Commands used to build a loadable module if different from building
  15481. # a shared archive.
  15482. module_cmds=$lt_module_cmds
  15483. module_expsym_cmds=$lt_module_expsym_cmds
  15484. # Whether we are building with GNU ld or not.
  15485. with_gnu_ld=$lt_with_gnu_ld
  15486. # Flag that allows shared libraries with undefined symbols to be built.
  15487. allow_undefined_flag=$lt_allow_undefined_flag
  15488. # Flag that enforces no undefined symbols.
  15489. no_undefined_flag=$lt_no_undefined_flag
  15490. # Flag to hardcode \$libdir into a binary during linking.
  15491. # This must work even if \$libdir does not exist
  15492. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  15493. # Whether we need a single "-rpath" flag with a separated argument.
  15494. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  15495. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  15496. # DIR into the resulting binary.
  15497. hardcode_direct=$hardcode_direct
  15498. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  15499. # DIR into the resulting binary and the resulting library dependency is
  15500. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  15501. # library is relocated.
  15502. hardcode_direct_absolute=$hardcode_direct_absolute
  15503. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15504. # into the resulting binary.
  15505. hardcode_minus_L=$hardcode_minus_L
  15506. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  15507. # into the resulting binary.
  15508. hardcode_shlibpath_var=$hardcode_shlibpath_var
  15509. # Set to "yes" if building a shared library automatically hardcodes DIR
  15510. # into the library and all subsequent libraries and executables linked
  15511. # against it.
  15512. hardcode_automatic=$hardcode_automatic
  15513. # Set to yes if linker adds runtime paths of dependent libraries
  15514. # to runtime path list.
  15515. inherit_rpath=$inherit_rpath
  15516. # Whether libtool must link a program against all its dependency libraries.
  15517. link_all_deplibs=$link_all_deplibs
  15518. # Set to "yes" if exported symbols are required.
  15519. always_export_symbols=$always_export_symbols
  15520. # The commands to list exported symbols.
  15521. export_symbols_cmds=$lt_export_symbols_cmds
  15522. # Symbols that should not be listed in the preloaded symbols.
  15523. exclude_expsyms=$lt_exclude_expsyms
  15524. # Symbols that must always be exported.
  15525. include_expsyms=$lt_include_expsyms
  15526. # Commands necessary for linking programs (against libraries) with templates.
  15527. prelink_cmds=$lt_prelink_cmds
  15528. # Commands necessary for finishing linking programs.
  15529. postlink_cmds=$lt_postlink_cmds
  15530. # Specify filename containing input files.
  15531. file_list_spec=$lt_file_list_spec
  15532. # How to hardcode a shared library path into an executable.
  15533. hardcode_action=$hardcode_action
  15534. # ### END LIBTOOL CONFIG
  15535. _LT_EOF
  15536. cat <<'_LT_EOF' >> "$cfgfile"
  15537. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  15538. # func_munge_path_list VARIABLE PATH
  15539. # -----------------------------------
  15540. # VARIABLE is name of variable containing _space_ separated list of
  15541. # directories to be munged by the contents of PATH, which is string
  15542. # having a format:
  15543. # "DIR[:DIR]:"
  15544. # string "DIR[ DIR]" will be prepended to VARIABLE
  15545. # ":DIR[:DIR]"
  15546. # string "DIR[ DIR]" will be appended to VARIABLE
  15547. # "DIRP[:DIRP]::[DIRA:]DIRA"
  15548. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  15549. # "DIRA[ DIRA]" will be appended to VARIABLE
  15550. # "DIR[:DIR]"
  15551. # VARIABLE will be replaced by "DIR[ DIR]"
  15552. func_munge_path_list ()
  15553. {
  15554. case x$2 in
  15555. x)
  15556. ;;
  15557. *:)
  15558. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  15559. ;;
  15560. x:*)
  15561. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  15562. ;;
  15563. *::*)
  15564. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  15565. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  15566. ;;
  15567. *)
  15568. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  15569. ;;
  15570. esac
  15571. }
  15572. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  15573. func_cc_basename ()
  15574. {
  15575. for cc_temp in $*""; do
  15576. case $cc_temp in
  15577. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  15578. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  15579. \-*) ;;
  15580. *) break;;
  15581. esac
  15582. done
  15583. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  15584. }
  15585. # ### END FUNCTIONS SHARED WITH CONFIGURE
  15586. _LT_EOF
  15587. case $host_os in
  15588. aix3*)
  15589. cat <<\_LT_EOF >> "$cfgfile"
  15590. # AIX sometimes has problems with the GCC collect2 program. For some
  15591. # reason, if we set the COLLECT_NAMES environment variable, the problems
  15592. # vanish in a puff of smoke.
  15593. if test set != "${COLLECT_NAMES+set}"; then
  15594. COLLECT_NAMES=
  15595. export COLLECT_NAMES
  15596. fi
  15597. _LT_EOF
  15598. ;;
  15599. esac
  15600. ltmain=$ac_aux_dir/ltmain.sh
  15601. # We use sed instead of cat because bash on DJGPP gets confused if
  15602. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  15603. # text mode, it properly converts lines to CR/LF. This bash problem
  15604. # is reportedly fixed, but why not run on old versions too?
  15605. sed '$q' "$ltmain" >> "$cfgfile" \
  15606. || (rm -f "$cfgfile"; exit 1)
  15607. mv -f "$cfgfile" "$ofile" ||
  15608. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  15609. chmod +x "$ofile"
  15610. ;;
  15611. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  15612. # Older Autoconf quotes --file arguments for eval, but not when files
  15613. # are listed without --file. Let's play safe and only enable the eval
  15614. # if we detect the quoting.
  15615. case $CONFIG_FILES in
  15616. *\'*) eval set x "$CONFIG_FILES" ;;
  15617. *) set x $CONFIG_FILES ;;
  15618. esac
  15619. shift
  15620. for mf
  15621. do
  15622. # Strip MF so we end up with the name of the file.
  15623. mf=`echo "$mf" | sed -e 's/:.*$//'`
  15624. # Check whether this is an Automake generated Makefile or not.
  15625. # We used to match only the files named 'Makefile.in', but
  15626. # some people rename them; so instead we look at the file content.
  15627. # Grep'ing the first line is not enough: some people post-process
  15628. # each Makefile.in and add a new line on top of each file to say so.
  15629. # Grep'ing the whole file is not good either: AIX grep has a line
  15630. # limit of 2048, but all sed's we know have understand at least 4000.
  15631. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  15632. dirpart=`$as_dirname -- "$mf" ||
  15633. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15634. X"$mf" : 'X\(//\)[^/]' \| \
  15635. X"$mf" : 'X\(//\)$' \| \
  15636. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  15637. $as_echo X"$mf" |
  15638. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15639. s//\1/
  15640. q
  15641. }
  15642. /^X\(\/\/\)[^/].*/{
  15643. s//\1/
  15644. q
  15645. }
  15646. /^X\(\/\/\)$/{
  15647. s//\1/
  15648. q
  15649. }
  15650. /^X\(\/\).*/{
  15651. s//\1/
  15652. q
  15653. }
  15654. s/.*/./; q'`
  15655. else
  15656. continue
  15657. fi
  15658. # Extract the definition of DEPDIR, am__include, and am__quote
  15659. # from the Makefile without running 'make'.
  15660. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  15661. test -z "$DEPDIR" && continue
  15662. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  15663. test -z "$am__include" && continue
  15664. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  15665. # Find all dependency output files, they are included files with
  15666. # $(DEPDIR) in their names. We invoke sed twice because it is the
  15667. # simplest approach to changing $(DEPDIR) to its actual value in the
  15668. # expansion.
  15669. for file in `sed -n "
  15670. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  15671. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  15672. # Make sure the directory exists.
  15673. test -f "$dirpart/$file" && continue
  15674. fdir=`$as_dirname -- "$file" ||
  15675. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15676. X"$file" : 'X\(//\)[^/]' \| \
  15677. X"$file" : 'X\(//\)$' \| \
  15678. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  15679. $as_echo X"$file" |
  15680. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15681. s//\1/
  15682. q
  15683. }
  15684. /^X\(\/\/\)[^/].*/{
  15685. s//\1/
  15686. q
  15687. }
  15688. /^X\(\/\/\)$/{
  15689. s//\1/
  15690. q
  15691. }
  15692. /^X\(\/\).*/{
  15693. s//\1/
  15694. q
  15695. }
  15696. s/.*/./; q'`
  15697. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  15698. # echo "creating $dirpart/$file"
  15699. echo '# dummy' > "$dirpart/$file"
  15700. done
  15701. done
  15702. }
  15703. ;;
  15704. esac
  15705. done # for ac_tag
  15706. as_fn_exit 0
  15707. _ACEOF
  15708. ac_clean_files=$ac_clean_files_save
  15709. test $ac_write_fail = 0 ||
  15710. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  15711. # configure is writing to config.log, and then calls config.status.
  15712. # config.status does its own redirection, appending to config.log.
  15713. # Unfortunately, on DOS this fails, as config.log is still kept open
  15714. # by configure, so config.status won't be able to write to it; its
  15715. # output is simply discarded. So we exec the FD to /dev/null,
  15716. # effectively closing config.log, so it can be properly (re)opened and
  15717. # appended to by config.status. When coming back to configure, we
  15718. # need to make the FD available again.
  15719. if test "$no_create" != yes; then
  15720. ac_cs_success=:
  15721. ac_config_status_args=
  15722. test "$silent" = yes &&
  15723. ac_config_status_args="$ac_config_status_args --quiet"
  15724. exec 5>/dev/null
  15725. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  15726. exec 5>>config.log
  15727. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  15728. # would make configure fail if this is the last instruction.
  15729. $ac_cs_success || as_fn_exit 1
  15730. fi
  15731. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  15732. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  15733. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  15734. fi
  15735. { $as_echo "$as_me:${as_lineno-$LINENO}: result:
  15736. - $PACKAGE_NAME: $VERSION
  15737. - Man pages: ${PANDOC:-no}
  15738. - Unit tests: $enable_unit
  15739. $unit_test_tool_report
  15740. " >&5
  15741. $as_echo "
  15742. - $PACKAGE_NAME: $VERSION
  15743. - Man pages: ${PANDOC:-no}
  15744. - Unit tests: $enable_unit
  15745. $unit_test_tool_report
  15746. " >&6; }