configure 759 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for tpm2-tss 3.2.0.
  4. #
  5. # Report bugs to <https://github.com/tpm2-software/tpm2-tss/issues>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test \$(( 1 + 1 )) = 2 || exit 1
  188. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  189. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  190. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  191. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  192. PATH=/empty FPATH=/empty; export PATH FPATH
  193. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  194. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  195. if (eval "$as_required") 2>/dev/null; then :
  196. as_have_required=yes
  197. else
  198. as_have_required=no
  199. fi
  200. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  201. else
  202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  203. as_found=false
  204. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  205. do
  206. IFS=$as_save_IFS
  207. test -z "$as_dir" && as_dir=.
  208. as_found=:
  209. case $as_dir in #(
  210. /*)
  211. for as_base in sh bash ksh sh5; do
  212. # Try only shells that exist, to save several forks.
  213. as_shell=$as_dir/$as_base
  214. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  215. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. CONFIG_SHELL=$as_shell as_have_required=yes
  217. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  218. break 2
  219. fi
  220. fi
  221. done;;
  222. esac
  223. as_found=false
  224. done
  225. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  226. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  227. CONFIG_SHELL=$SHELL as_have_required=yes
  228. fi; }
  229. IFS=$as_save_IFS
  230. if test "x$CONFIG_SHELL" != x; then :
  231. export CONFIG_SHELL
  232. # We cannot yet assume a decent shell, so we have to provide a
  233. # neutralization value for shells without unset; and this also
  234. # works around shells that cannot unset nonexistent variables.
  235. # Preserve -v and -x to the replacement shell.
  236. BASH_ENV=/dev/null
  237. ENV=/dev/null
  238. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  239. case $- in # ((((
  240. *v*x* | *x*v* ) as_opts=-vx ;;
  241. *v* ) as_opts=-v ;;
  242. *x* ) as_opts=-x ;;
  243. * ) as_opts= ;;
  244. esac
  245. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  246. # Admittedly, this is quite paranoid, since all the known shells bail
  247. # out after a failed `exec'.
  248. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  249. exit 255
  250. fi
  251. if test x$as_have_required = xno; then :
  252. $as_echo "$0: This script requires a shell more modern than all"
  253. $as_echo "$0: the shells that I found on your system."
  254. if test x${ZSH_VERSION+set} = xset ; then
  255. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  256. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  257. else
  258. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  259. $0: https://github.com/tpm2-software/tpm2-tss/issues about
  260. $0: your system, including any error possibly output before
  261. $0: this message. Then install a modern shell, or manually
  262. $0: run the script under such a shell if you do have one."
  263. fi
  264. exit 1
  265. fi
  266. fi
  267. fi
  268. SHELL=${CONFIG_SHELL-/bin/sh}
  269. export SHELL
  270. # Unset more variables known to interfere with behavior of common tools.
  271. CLICOLOR_FORCE= GREP_OPTIONS=
  272. unset CLICOLOR_FORCE GREP_OPTIONS
  273. ## --------------------- ##
  274. ## M4sh Shell Functions. ##
  275. ## --------------------- ##
  276. # as_fn_unset VAR
  277. # ---------------
  278. # Portably unset VAR.
  279. as_fn_unset ()
  280. {
  281. { eval $1=; unset $1;}
  282. }
  283. as_unset=as_fn_unset
  284. # as_fn_set_status STATUS
  285. # -----------------------
  286. # Set $? to STATUS, without forking.
  287. as_fn_set_status ()
  288. {
  289. return $1
  290. } # as_fn_set_status
  291. # as_fn_exit STATUS
  292. # -----------------
  293. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  294. as_fn_exit ()
  295. {
  296. set +e
  297. as_fn_set_status $1
  298. exit $1
  299. } # as_fn_exit
  300. # as_fn_mkdir_p
  301. # -------------
  302. # Create "$as_dir" as a directory, including parents if necessary.
  303. as_fn_mkdir_p ()
  304. {
  305. case $as_dir in #(
  306. -*) as_dir=./$as_dir;;
  307. esac
  308. test -d "$as_dir" || eval $as_mkdir_p || {
  309. as_dirs=
  310. while :; do
  311. case $as_dir in #(
  312. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  313. *) as_qdir=$as_dir;;
  314. esac
  315. as_dirs="'$as_qdir' $as_dirs"
  316. as_dir=`$as_dirname -- "$as_dir" ||
  317. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  318. X"$as_dir" : 'X\(//\)[^/]' \| \
  319. X"$as_dir" : 'X\(//\)$' \| \
  320. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  321. $as_echo X"$as_dir" |
  322. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  323. s//\1/
  324. q
  325. }
  326. /^X\(\/\/\)[^/].*/{
  327. s//\1/
  328. q
  329. }
  330. /^X\(\/\/\)$/{
  331. s//\1/
  332. q
  333. }
  334. /^X\(\/\).*/{
  335. s//\1/
  336. q
  337. }
  338. s/.*/./; q'`
  339. test -d "$as_dir" && break
  340. done
  341. test -z "$as_dirs" || eval "mkdir $as_dirs"
  342. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  343. } # as_fn_mkdir_p
  344. # as_fn_executable_p FILE
  345. # -----------------------
  346. # Test if FILE is an executable regular file.
  347. as_fn_executable_p ()
  348. {
  349. test -f "$1" && test -x "$1"
  350. } # as_fn_executable_p
  351. # as_fn_append VAR VALUE
  352. # ----------------------
  353. # Append the text in VALUE to the end of the definition contained in VAR. Take
  354. # advantage of any shell optimizations that allow amortized linear growth over
  355. # repeated appends, instead of the typical quadratic growth present in naive
  356. # implementations.
  357. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  358. eval 'as_fn_append ()
  359. {
  360. eval $1+=\$2
  361. }'
  362. else
  363. as_fn_append ()
  364. {
  365. eval $1=\$$1\$2
  366. }
  367. fi # as_fn_append
  368. # as_fn_arith ARG...
  369. # ------------------
  370. # Perform arithmetic evaluation on the ARGs, and store the result in the
  371. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  372. # must be portable across $(()) and expr.
  373. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  374. eval 'as_fn_arith ()
  375. {
  376. as_val=$(( $* ))
  377. }'
  378. else
  379. as_fn_arith ()
  380. {
  381. as_val=`expr "$@" || test $? -eq 1`
  382. }
  383. fi # as_fn_arith
  384. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  385. # ----------------------------------------
  386. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  387. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  388. # script with STATUS, using 1 if that was 0.
  389. as_fn_error ()
  390. {
  391. as_status=$1; test $as_status -eq 0 && as_status=1
  392. if test "$4"; then
  393. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  394. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  395. fi
  396. $as_echo "$as_me: error: $2" >&2
  397. as_fn_exit $as_status
  398. } # as_fn_error
  399. if expr a : '\(a\)' >/dev/null 2>&1 &&
  400. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  401. as_expr=expr
  402. else
  403. as_expr=false
  404. fi
  405. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  406. as_basename=basename
  407. else
  408. as_basename=false
  409. fi
  410. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  411. as_dirname=dirname
  412. else
  413. as_dirname=false
  414. fi
  415. as_me=`$as_basename -- "$0" ||
  416. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  417. X"$0" : 'X\(//\)$' \| \
  418. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  419. $as_echo X/"$0" |
  420. sed '/^.*\/\([^/][^/]*\)\/*$/{
  421. s//\1/
  422. q
  423. }
  424. /^X\/\(\/\/\)$/{
  425. s//\1/
  426. q
  427. }
  428. /^X\/\(\/\).*/{
  429. s//\1/
  430. q
  431. }
  432. s/.*/./; q'`
  433. # Avoid depending upon Character Ranges.
  434. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  435. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  436. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  437. as_cr_digits='0123456789'
  438. as_cr_alnum=$as_cr_Letters$as_cr_digits
  439. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  440. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  441. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  442. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  443. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  444. sed -n '
  445. p
  446. /[$]LINENO/=
  447. ' <$as_myself |
  448. sed '
  449. s/[$]LINENO.*/&-/
  450. t lineno
  451. b
  452. :lineno
  453. N
  454. :loop
  455. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  456. t loop
  457. s/-\n.*//
  458. ' >$as_me.lineno &&
  459. chmod +x "$as_me.lineno" ||
  460. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  461. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  462. # already done that, so ensure we don't try to do so again and fall
  463. # in an infinite loop. This has already happened in practice.
  464. _as_can_reexec=no; export _as_can_reexec
  465. # Don't try to exec as it changes $[0], causing all sort of problems
  466. # (the dirname of $[0] is not the place where we might find the
  467. # original and so on. Autoconf is especially sensitive to this).
  468. . "./$as_me.lineno"
  469. # Exit status is that of the last command.
  470. exit
  471. }
  472. ECHO_C= ECHO_N= ECHO_T=
  473. case `echo -n x` in #(((((
  474. -n*)
  475. case `echo 'xy\c'` in
  476. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  477. xy) ECHO_C='\c';;
  478. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  479. ECHO_T=' ';;
  480. esac;;
  481. *)
  482. ECHO_N='-n';;
  483. esac
  484. rm -f conf$$ conf$$.exe conf$$.file
  485. if test -d conf$$.dir; then
  486. rm -f conf$$.dir/conf$$.file
  487. else
  488. rm -f conf$$.dir
  489. mkdir conf$$.dir 2>/dev/null
  490. fi
  491. if (echo >conf$$.file) 2>/dev/null; then
  492. if ln -s conf$$.file conf$$ 2>/dev/null; then
  493. as_ln_s='ln -s'
  494. # ... but there are two gotchas:
  495. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  496. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  497. # In both cases, we have to default to `cp -pR'.
  498. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  499. as_ln_s='cp -pR'
  500. elif ln conf$$.file conf$$ 2>/dev/null; then
  501. as_ln_s=ln
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. else
  506. as_ln_s='cp -pR'
  507. fi
  508. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  509. rmdir conf$$.dir 2>/dev/null
  510. if mkdir -p . 2>/dev/null; then
  511. as_mkdir_p='mkdir -p "$as_dir"'
  512. else
  513. test -d ./-p && rmdir ./-p
  514. as_mkdir_p=false
  515. fi
  516. as_test_x='test -x'
  517. as_executable_p=as_fn_executable_p
  518. # Sed expression to map a string onto a valid CPP name.
  519. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  520. # Sed expression to map a string onto a valid variable name.
  521. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  522. SHELL=${CONFIG_SHELL-/bin/sh}
  523. test -n "$DJDIR" || exec 7<&0 </dev/null
  524. exec 6>&1
  525. # Name of the host.
  526. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  527. # so uname gets run too.
  528. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  529. #
  530. # Initializations.
  531. #
  532. ac_default_prefix=/usr/local
  533. ac_clean_files=
  534. ac_config_libobj_dir=.
  535. LIBOBJS=
  536. cross_compiling=no
  537. subdirs=
  538. MFLAGS=
  539. MAKEFLAGS=
  540. # Identity of this package.
  541. PACKAGE_NAME='tpm2-tss'
  542. PACKAGE_TARNAME='tpm2-tss'
  543. PACKAGE_VERSION='3.2.0'
  544. PACKAGE_STRING='tpm2-tss 3.2.0'
  545. PACKAGE_BUGREPORT='https://github.com/tpm2-software/tpm2-tss/issues'
  546. PACKAGE_URL='https://github.com/tpm2-software/tpm2-tss'
  547. # Factoring default headers for most tests.
  548. ac_includes_default="\
  549. #include <stdio.h>
  550. #ifdef HAVE_SYS_TYPES_H
  551. # include <sys/types.h>
  552. #endif
  553. #ifdef HAVE_SYS_STAT_H
  554. # include <sys/stat.h>
  555. #endif
  556. #ifdef STDC_HEADERS
  557. # include <stdlib.h>
  558. # include <stddef.h>
  559. #else
  560. # ifdef HAVE_STDLIB_H
  561. # include <stdlib.h>
  562. # endif
  563. #endif
  564. #ifdef HAVE_STRING_H
  565. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  566. # include <memory.h>
  567. # endif
  568. # include <string.h>
  569. #endif
  570. #ifdef HAVE_STRINGS_H
  571. # include <strings.h>
  572. #endif
  573. #ifdef HAVE_INTTYPES_H
  574. # include <inttypes.h>
  575. #endif
  576. #ifdef HAVE_STDINT_H
  577. # include <stdint.h>
  578. #endif
  579. #ifdef HAVE_UNISTD_H
  580. # include <unistd.h>
  581. #endif"
  582. ac_subst_vars='am__EXEEXT_FALSE
  583. am__EXEEXT_TRUE
  584. LTLIBOBJS
  585. LIBOBJS
  586. AUTOCONF_CODE_COVERAGE_2019_01_06_FALSE
  587. AUTOCONF_CODE_COVERAGE_2019_01_06_TRUE
  588. CODE_COVERAGE_LIBS
  589. CODE_COVERAGE_CXXFLAGS
  590. CODE_COVERAGE_CFLAGS
  591. CODE_COVERAGE_CPPFLAGS
  592. GENHTML
  593. LCOV
  594. GCOV
  595. ifnGNUmake
  596. ifGNUmake
  597. CODE_COVERAGE_ENABLED
  598. CODE_COVERAGE_ENABLED_FALSE
  599. CODE_COVERAGE_ENABLED_TRUE
  600. result_doxygen
  601. DOXYMAN_FALSE
  602. DOXYMAN_TRUE
  603. DX_RULES
  604. PAPER_SIZE
  605. DOXYGEN_PAPER_SIZE
  606. GENERATE_LATEX
  607. DX_PDFLATEX
  608. DX_FLAG_pdf
  609. DX_EGREP
  610. DX_DVIPS
  611. DX_MAKEINDEX
  612. DX_LATEX
  613. DX_FLAG_ps
  614. DX_FLAG_html
  615. GENERATE_CHI
  616. DX_FLAG_chi
  617. GENERATE_HTMLHELP
  618. GENERATE_HTML
  619. HHC_PATH
  620. DX_HHC
  621. DX_FLAG_chm
  622. GENERATE_XML
  623. DX_FLAG_xml
  624. GENERATE_RTF
  625. DX_FLAG_rtf
  626. GENERATE_MAN
  627. DX_FLAG_man
  628. DOT_PATH
  629. HAVE_DOT
  630. DX_DOT
  631. DX_FLAG_dot
  632. PERL_PATH
  633. DX_PERL
  634. DX_DOXYGEN
  635. DX_FLAG_doc
  636. PROJECT
  637. SRCDIR
  638. DX_ENV
  639. DX_DOCDIR
  640. DX_CONFIG
  641. DX_PROJECT
  642. PATH
  643. addgroup
  644. adduser
  645. groupadd
  646. useradd
  647. SYSD_TMPFILES_FALSE
  648. SYSD_TMPFILES_TRUE
  649. systemd_tmpfiles
  650. SYSD_SYSUSERS_FALSE
  651. SYSD_SYSUSERS_TRUE
  652. systemd_sysusers
  653. EXTRA_LDFLAGS
  654. HAVE_LD_VERSION_SCRIPT_FALSE
  655. HAVE_LD_VERSION_SCRIPT_TRUE
  656. VALGRIND_CHECK_RULES
  657. valgrind_enabled_tools
  658. valgrind_tools
  659. ENABLE_VALGRIND_sgcheck
  660. ENABLE_VALGRIND_drd
  661. ENABLE_VALGRIND_helgrind
  662. ENABLE_VALGRIND_memcheck
  663. VALGRIND_ENABLED
  664. VALGRIND_ENABLED_FALSE
  665. VALGRIND_ENABLED_TRUE
  666. VALGRIND
  667. ENABLE_FUZZING_FALSE
  668. ENABLE_FUZZING_TRUE
  669. FUZZ_LDFLAGS
  670. SANITIZER_LDFLAGS
  671. SANITIZER_CFLAGS
  672. ENABLE_INTEGRATION_FALSE
  673. ENABLE_INTEGRATION_TRUE
  674. ENABLE_INTEGRATION
  675. INTEGRATION_ARGS
  676. INTEGRATION_TCTI
  677. result_tpm_server
  678. result_swtpm
  679. result_rm
  680. result_env
  681. result_grep
  682. result_expr
  683. result_awk
  684. result_od
  685. result_mktemp
  686. result_basename
  687. result_dirname
  688. result_realpath
  689. result_cat
  690. result_sleep
  691. result_stdbuf
  692. result_kill
  693. result_echo
  694. result_sockstat
  695. result_ss
  696. DEVICEMANDATORY_FALSE
  697. DEVICEMANDATORY_TRUE
  698. DEVICEOPTIONAL_FALSE
  699. DEVICEOPTIONAL_TRUE
  700. DEVICEDESTRUCTIVE_FALSE
  701. DEVICEDESTRUCTIVE_TRUE
  702. TESTDEVICE_FALSE
  703. TESTDEVICE_TRUE
  704. WITH_UDEVRULESPREFIX_FALSE
  705. WITH_UDEVRULESPREFIX_TRUE
  706. udevrulesprefix
  707. udevrulesdir
  708. NO_DL_FALSE
  709. NO_DL_TRUE
  710. ENABLE_TCTI_FUZZING_FALSE
  711. ENABLE_TCTI_FUZZING_TRUE
  712. ENABLE_TCTI_CMD_FALSE
  713. ENABLE_TCTI_CMD_TRUE
  714. ENABLE_TCTI_LIBTPMS_FALSE
  715. ENABLE_TCTI_LIBTPMS_TRUE
  716. ENABLE_TCTI_PCAP_FALSE
  717. ENABLE_TCTI_PCAP_TRUE
  718. ENABLE_TCTI_SWTPM_FALSE
  719. ENABLE_TCTI_SWTPM_TRUE
  720. ENABLE_TCTI_MSSIM_FALSE
  721. ENABLE_TCTI_MSSIM_TRUE
  722. ENABLE_TCTI_DEVICE_FALSE
  723. ENABLE_TCTI_DEVICE_TRUE
  724. CURL_LIBS
  725. CURL_CFLAGS
  726. JSONC_LIBS
  727. JSONC_CFLAGS
  728. TSS2_ESYS_LDFLAGS_CRYPTO
  729. TSS2_ESYS_CFLAGS_CRYPTO
  730. CRYPTO_LIBS
  731. CRYPTO_CFLAGS
  732. ESYS_MBED_FALSE
  733. ESYS_MBED_TRUE
  734. ESYS_OSSL_FALSE
  735. ESYS_OSSL_TRUE
  736. FAPI_FALSE
  737. FAPI_TRUE
  738. ESYS_FALSE
  739. ESYS_TRUE
  740. UNIT_FALSE
  741. UNIT_TRUE
  742. CMOCKA_LIBS
  743. CMOCKA_CFLAGS
  744. PKG_CONFIG_LIBDIR
  745. PKG_CONFIG_PATH
  746. PKG_CONFIG
  747. tmpfilesdir
  748. sysusersdir
  749. userstatedir
  750. HOSTOS_LINUX_FALSE
  751. HOSTOS_LINUX_TRUE
  752. HOSTOS
  753. LIBSOCKET_LDFLAGS
  754. EXTRA_CFLAGS
  755. pkgconfigdir
  756. LIBADD_DL
  757. LT_DLPREOPEN
  758. LIBADD_DLD_LINK
  759. LIBADD_SHL_LOAD
  760. LIBADD_DLOPEN
  761. LT_DLLOADERS
  762. CXXCPP
  763. LT_SYS_LIBRARY_PATH
  764. OTOOL64
  765. OTOOL
  766. LIPO
  767. NMEDIT
  768. DSYMUTIL
  769. MANIFEST_TOOL
  770. RANLIB
  771. ac_ct_AR
  772. AR
  773. DLLTOOL
  774. OBJDUMP
  775. NM
  776. ac_ct_DUMPBIN
  777. DUMPBIN
  778. LD
  779. FGREP
  780. SED
  781. LIBTOOL
  782. EGREP
  783. GREP
  784. CPP
  785. LN_S
  786. am__fastdepCXX_FALSE
  787. am__fastdepCXX_TRUE
  788. CXXDEPMODE
  789. ac_ct_CXX
  790. CXXFLAGS
  791. CXX
  792. am__fastdepCC_FALSE
  793. am__fastdepCC_TRUE
  794. CCDEPMODE
  795. am__nodep
  796. AMDEPBACKSLASH
  797. AMDEP_FALSE
  798. AMDEP_TRUE
  799. am__include
  800. DEPDIR
  801. OBJEXT
  802. EXEEXT
  803. ac_ct_CC
  804. CPPFLAGS
  805. LDFLAGS
  806. CFLAGS
  807. CC
  808. host_os
  809. host_vendor
  810. host_cpu
  811. host
  812. build_os
  813. build_vendor
  814. build_cpu
  815. build
  816. DISTCHECK_CONFIGURE_FLAGS
  817. AM_BACKSLASH
  818. AM_DEFAULT_VERBOSITY
  819. AM_DEFAULT_V
  820. AM_V
  821. am__untar
  822. am__tar
  823. AMTAR
  824. am__leading_dot
  825. SET_MAKE
  826. AWK
  827. mkdir_p
  828. MKDIR_P
  829. INSTALL_STRIP_PROGRAM
  830. STRIP
  831. install_sh
  832. MAKEINFO
  833. AUTOHEADER
  834. AUTOMAKE
  835. AUTOCONF
  836. ACLOCAL
  837. VERSION
  838. PACKAGE
  839. CYGPATH_W
  840. am__isrc
  841. INSTALL_DATA
  842. INSTALL_SCRIPT
  843. INSTALL_PROGRAM
  844. target_alias
  845. host_alias
  846. build_alias
  847. LIBS
  848. ECHO_T
  849. ECHO_N
  850. ECHO_C
  851. DEFS
  852. mandir
  853. localedir
  854. libdir
  855. psdir
  856. pdfdir
  857. dvidir
  858. htmldir
  859. infodir
  860. docdir
  861. oldincludedir
  862. includedir
  863. runstatedir
  864. localstatedir
  865. sharedstatedir
  866. sysconfdir
  867. datadir
  868. datarootdir
  869. libexecdir
  870. sbindir
  871. bindir
  872. program_transform_name
  873. prefix
  874. exec_prefix
  875. PACKAGE_URL
  876. PACKAGE_BUGREPORT
  877. PACKAGE_STRING
  878. PACKAGE_VERSION
  879. PACKAGE_TARNAME
  880. PACKAGE_NAME
  881. PATH_SEPARATOR
  882. SHELL
  883. am__quote'
  884. ac_subst_files=''
  885. ac_user_opts='
  886. enable_option_checking
  887. enable_silent_rules
  888. enable_debug
  889. enable_dependency_tracking
  890. enable_shared
  891. enable_static
  892. with_pic
  893. enable_fast_install
  894. with_aix_soname
  895. with_gnu_ld
  896. with_sysroot
  897. enable_libtool_lock
  898. with_pkgconfigdir
  899. with_runstatedir
  900. with_userstatedir
  901. with_sysusersdir
  902. with_tmpfilesdir
  903. enable_unit
  904. enable_esys
  905. enable_fapi
  906. enable_fapi_async_tests
  907. with_crypto
  908. with_tctidefaultmodule
  909. with_tctidefaultconfig
  910. enable_tcti_device
  911. enable_tcti_mssim
  912. enable_tcti_swtpm
  913. enable_tcti_pcap
  914. enable_tcti_libtpms
  915. enable_tcti_cmd
  916. enable_tcti_fuzzing
  917. enable_nodl
  918. with_udevrulesdir
  919. with_udevrulesprefix
  920. with_device
  921. with_devicetests
  922. enable_integration
  923. with_sanitizer
  924. with_fuzzing
  925. enable_valgrind
  926. enable_valgrind_memcheck
  927. enable_valgrind_helgrind
  928. enable_valgrind_drd
  929. enable_valgrind_sgcheck
  930. enable_ld_version_script
  931. enable_log_file
  932. with_maxloglevel
  933. enable_defaultflags
  934. enable_weakcrypto
  935. enable_self_generated_certificate
  936. enable_doxygen_doc
  937. enable_doxygen_dot
  938. enable_doxygen_man
  939. enable_doxygen_rtf
  940. enable_doxygen_xml
  941. enable_doxygen_chm
  942. enable_doxygen_chi
  943. enable_doxygen_html
  944. enable_doxygen_ps
  945. enable_doxygen_pdf
  946. with_gcov
  947. enable_code_coverage
  948. '
  949. ac_precious_vars='build_alias
  950. host_alias
  951. target_alias
  952. CC
  953. CFLAGS
  954. LDFLAGS
  955. LIBS
  956. CPPFLAGS
  957. CXX
  958. CXXFLAGS
  959. CCC
  960. CPP
  961. LT_SYS_LIBRARY_PATH
  962. CXXCPP
  963. PKG_CONFIG
  964. PKG_CONFIG_PATH
  965. PKG_CONFIG_LIBDIR
  966. CMOCKA_CFLAGS
  967. CMOCKA_LIBS
  968. CRYPTO_CFLAGS
  969. CRYPTO_LIBS
  970. JSONC_CFLAGS
  971. JSONC_LIBS
  972. CURL_CFLAGS
  973. CURL_LIBS
  974. DOXYGEN_PAPER_SIZE'
  975. # Initialize some variables set by options.
  976. ac_init_help=
  977. ac_init_version=false
  978. ac_unrecognized_opts=
  979. ac_unrecognized_sep=
  980. # The variables have the same names as the options, with
  981. # dashes changed to underlines.
  982. cache_file=/dev/null
  983. exec_prefix=NONE
  984. no_create=
  985. no_recursion=
  986. prefix=NONE
  987. program_prefix=NONE
  988. program_suffix=NONE
  989. program_transform_name=s,x,x,
  990. silent=
  991. site=
  992. srcdir=
  993. verbose=
  994. x_includes=NONE
  995. x_libraries=NONE
  996. # Installation directory options.
  997. # These are left unexpanded so users can "make install exec_prefix=/foo"
  998. # and all the variables that are supposed to be based on exec_prefix
  999. # by default will actually change.
  1000. # Use braces instead of parens because sh, perl, etc. also accept them.
  1001. # (The list follows the same order as the GNU Coding Standards.)
  1002. bindir='${exec_prefix}/bin'
  1003. sbindir='${exec_prefix}/sbin'
  1004. libexecdir='${exec_prefix}/libexec'
  1005. datarootdir='${prefix}/share'
  1006. datadir='${datarootdir}'
  1007. sysconfdir='${prefix}/etc'
  1008. sharedstatedir='${prefix}/com'
  1009. localstatedir='${prefix}/var'
  1010. runstatedir='${localstatedir}/run'
  1011. includedir='${prefix}/include'
  1012. oldincludedir='/usr/include'
  1013. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  1014. infodir='${datarootdir}/info'
  1015. htmldir='${docdir}'
  1016. dvidir='${docdir}'
  1017. pdfdir='${docdir}'
  1018. psdir='${docdir}'
  1019. libdir='${exec_prefix}/lib'
  1020. localedir='${datarootdir}/locale'
  1021. mandir='${datarootdir}/man'
  1022. ac_prev=
  1023. ac_dashdash=
  1024. for ac_option
  1025. do
  1026. # If the previous option needs an argument, assign it.
  1027. if test -n "$ac_prev"; then
  1028. eval $ac_prev=\$ac_option
  1029. ac_prev=
  1030. continue
  1031. fi
  1032. case $ac_option in
  1033. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1034. *=) ac_optarg= ;;
  1035. *) ac_optarg=yes ;;
  1036. esac
  1037. # Accept the important Cygnus configure options, so we can diagnose typos.
  1038. case $ac_dashdash$ac_option in
  1039. --)
  1040. ac_dashdash=yes ;;
  1041. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1042. ac_prev=bindir ;;
  1043. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1044. bindir=$ac_optarg ;;
  1045. -build | --build | --buil | --bui | --bu)
  1046. ac_prev=build_alias ;;
  1047. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1048. build_alias=$ac_optarg ;;
  1049. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1050. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1051. ac_prev=cache_file ;;
  1052. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1053. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1054. cache_file=$ac_optarg ;;
  1055. --config-cache | -C)
  1056. cache_file=config.cache ;;
  1057. -datadir | --datadir | --datadi | --datad)
  1058. ac_prev=datadir ;;
  1059. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1060. datadir=$ac_optarg ;;
  1061. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1062. | --dataroo | --dataro | --datar)
  1063. ac_prev=datarootdir ;;
  1064. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1065. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1066. datarootdir=$ac_optarg ;;
  1067. -disable-* | --disable-*)
  1068. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1069. # Reject names that are not valid shell variable names.
  1070. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1071. as_fn_error $? "invalid feature name: $ac_useropt"
  1072. ac_useropt_orig=$ac_useropt
  1073. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1074. case $ac_user_opts in
  1075. *"
  1076. "enable_$ac_useropt"
  1077. "*) ;;
  1078. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1079. ac_unrecognized_sep=', ';;
  1080. esac
  1081. eval enable_$ac_useropt=no ;;
  1082. -docdir | --docdir | --docdi | --doc | --do)
  1083. ac_prev=docdir ;;
  1084. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1085. docdir=$ac_optarg ;;
  1086. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1087. ac_prev=dvidir ;;
  1088. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1089. dvidir=$ac_optarg ;;
  1090. -enable-* | --enable-*)
  1091. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1092. # Reject names that are not valid shell variable names.
  1093. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1094. as_fn_error $? "invalid feature name: $ac_useropt"
  1095. ac_useropt_orig=$ac_useropt
  1096. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1097. case $ac_user_opts in
  1098. *"
  1099. "enable_$ac_useropt"
  1100. "*) ;;
  1101. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1102. ac_unrecognized_sep=', ';;
  1103. esac
  1104. eval enable_$ac_useropt=\$ac_optarg ;;
  1105. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1106. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1107. | --exec | --exe | --ex)
  1108. ac_prev=exec_prefix ;;
  1109. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1110. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1111. | --exec=* | --exe=* | --ex=*)
  1112. exec_prefix=$ac_optarg ;;
  1113. -gas | --gas | --ga | --g)
  1114. # Obsolete; use --with-gas.
  1115. with_gas=yes ;;
  1116. -help | --help | --hel | --he | -h)
  1117. ac_init_help=long ;;
  1118. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1119. ac_init_help=recursive ;;
  1120. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1121. ac_init_help=short ;;
  1122. -host | --host | --hos | --ho)
  1123. ac_prev=host_alias ;;
  1124. -host=* | --host=* | --hos=* | --ho=*)
  1125. host_alias=$ac_optarg ;;
  1126. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1127. ac_prev=htmldir ;;
  1128. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1129. | --ht=*)
  1130. htmldir=$ac_optarg ;;
  1131. -includedir | --includedir | --includedi | --included | --include \
  1132. | --includ | --inclu | --incl | --inc)
  1133. ac_prev=includedir ;;
  1134. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1135. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1136. includedir=$ac_optarg ;;
  1137. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1138. ac_prev=infodir ;;
  1139. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1140. infodir=$ac_optarg ;;
  1141. -libdir | --libdir | --libdi | --libd)
  1142. ac_prev=libdir ;;
  1143. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1144. libdir=$ac_optarg ;;
  1145. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1146. | --libexe | --libex | --libe)
  1147. ac_prev=libexecdir ;;
  1148. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1149. | --libexe=* | --libex=* | --libe=*)
  1150. libexecdir=$ac_optarg ;;
  1151. -localedir | --localedir | --localedi | --localed | --locale)
  1152. ac_prev=localedir ;;
  1153. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1154. localedir=$ac_optarg ;;
  1155. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1156. | --localstate | --localstat | --localsta | --localst | --locals)
  1157. ac_prev=localstatedir ;;
  1158. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1159. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1160. localstatedir=$ac_optarg ;;
  1161. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1162. ac_prev=mandir ;;
  1163. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1164. mandir=$ac_optarg ;;
  1165. -nfp | --nfp | --nf)
  1166. # Obsolete; use --without-fp.
  1167. with_fp=no ;;
  1168. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1169. | --no-cr | --no-c | -n)
  1170. no_create=yes ;;
  1171. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1172. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1173. no_recursion=yes ;;
  1174. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1175. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1176. | --oldin | --oldi | --old | --ol | --o)
  1177. ac_prev=oldincludedir ;;
  1178. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1179. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1180. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1181. oldincludedir=$ac_optarg ;;
  1182. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1183. ac_prev=prefix ;;
  1184. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1185. prefix=$ac_optarg ;;
  1186. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1187. | --program-pre | --program-pr | --program-p)
  1188. ac_prev=program_prefix ;;
  1189. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1190. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1191. program_prefix=$ac_optarg ;;
  1192. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1193. | --program-suf | --program-su | --program-s)
  1194. ac_prev=program_suffix ;;
  1195. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1196. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1197. program_suffix=$ac_optarg ;;
  1198. -program-transform-name | --program-transform-name \
  1199. | --program-transform-nam | --program-transform-na \
  1200. | --program-transform-n | --program-transform- \
  1201. | --program-transform | --program-transfor \
  1202. | --program-transfo | --program-transf \
  1203. | --program-trans | --program-tran \
  1204. | --progr-tra | --program-tr | --program-t)
  1205. ac_prev=program_transform_name ;;
  1206. -program-transform-name=* | --program-transform-name=* \
  1207. | --program-transform-nam=* | --program-transform-na=* \
  1208. | --program-transform-n=* | --program-transform-=* \
  1209. | --program-transform=* | --program-transfor=* \
  1210. | --program-transfo=* | --program-transf=* \
  1211. | --program-trans=* | --program-tran=* \
  1212. | --progr-tra=* | --program-tr=* | --program-t=*)
  1213. program_transform_name=$ac_optarg ;;
  1214. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1215. ac_prev=pdfdir ;;
  1216. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1217. pdfdir=$ac_optarg ;;
  1218. -psdir | --psdir | --psdi | --psd | --ps)
  1219. ac_prev=psdir ;;
  1220. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1221. psdir=$ac_optarg ;;
  1222. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1223. | -silent | --silent | --silen | --sile | --sil)
  1224. silent=yes ;;
  1225. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1226. | --runstate | --runstat | --runsta | --runst | --runs \
  1227. | --run | --ru | --r)
  1228. ac_prev=runstatedir ;;
  1229. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1230. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1231. | --run=* | --ru=* | --r=*)
  1232. runstatedir=$ac_optarg ;;
  1233. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1234. ac_prev=sbindir ;;
  1235. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1236. | --sbi=* | --sb=*)
  1237. sbindir=$ac_optarg ;;
  1238. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1239. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1240. | --sharedst | --shareds | --shared | --share | --shar \
  1241. | --sha | --sh)
  1242. ac_prev=sharedstatedir ;;
  1243. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1244. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1245. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1246. | --sha=* | --sh=*)
  1247. sharedstatedir=$ac_optarg ;;
  1248. -site | --site | --sit)
  1249. ac_prev=site ;;
  1250. -site=* | --site=* | --sit=*)
  1251. site=$ac_optarg ;;
  1252. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1253. ac_prev=srcdir ;;
  1254. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1255. srcdir=$ac_optarg ;;
  1256. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1257. | --syscon | --sysco | --sysc | --sys | --sy)
  1258. ac_prev=sysconfdir ;;
  1259. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1260. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1261. sysconfdir=$ac_optarg ;;
  1262. -target | --target | --targe | --targ | --tar | --ta | --t)
  1263. ac_prev=target_alias ;;
  1264. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1265. target_alias=$ac_optarg ;;
  1266. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1267. verbose=yes ;;
  1268. -version | --version | --versio | --versi | --vers | -V)
  1269. ac_init_version=: ;;
  1270. -with-* | --with-*)
  1271. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1272. # Reject names that are not valid shell variable names.
  1273. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1274. as_fn_error $? "invalid package name: $ac_useropt"
  1275. ac_useropt_orig=$ac_useropt
  1276. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1277. case $ac_user_opts in
  1278. *"
  1279. "with_$ac_useropt"
  1280. "*) ;;
  1281. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1282. ac_unrecognized_sep=', ';;
  1283. esac
  1284. eval with_$ac_useropt=\$ac_optarg ;;
  1285. -without-* | --without-*)
  1286. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1287. # Reject names that are not valid shell variable names.
  1288. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1289. as_fn_error $? "invalid package name: $ac_useropt"
  1290. ac_useropt_orig=$ac_useropt
  1291. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1292. case $ac_user_opts in
  1293. *"
  1294. "with_$ac_useropt"
  1295. "*) ;;
  1296. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1297. ac_unrecognized_sep=', ';;
  1298. esac
  1299. eval with_$ac_useropt=no ;;
  1300. --x)
  1301. # Obsolete; use --with-x.
  1302. with_x=yes ;;
  1303. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1304. | --x-incl | --x-inc | --x-in | --x-i)
  1305. ac_prev=x_includes ;;
  1306. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1307. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1308. x_includes=$ac_optarg ;;
  1309. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1310. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1311. ac_prev=x_libraries ;;
  1312. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1313. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1314. x_libraries=$ac_optarg ;;
  1315. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1316. Try \`$0 --help' for more information"
  1317. ;;
  1318. *=*)
  1319. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1320. # Reject names that are not valid shell variable names.
  1321. case $ac_envvar in #(
  1322. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1323. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1324. esac
  1325. eval $ac_envvar=\$ac_optarg
  1326. export $ac_envvar ;;
  1327. *)
  1328. # FIXME: should be removed in autoconf 3.0.
  1329. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1330. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1331. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1332. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1333. ;;
  1334. esac
  1335. done
  1336. if test -n "$ac_prev"; then
  1337. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1338. as_fn_error $? "missing argument to $ac_option"
  1339. fi
  1340. if test -n "$ac_unrecognized_opts"; then
  1341. case $enable_option_checking in
  1342. no) ;;
  1343. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1344. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1345. esac
  1346. fi
  1347. # Check all directory arguments for consistency.
  1348. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1349. datadir sysconfdir sharedstatedir localstatedir includedir \
  1350. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1351. libdir localedir mandir runstatedir
  1352. do
  1353. eval ac_val=\$$ac_var
  1354. # Remove trailing slashes.
  1355. case $ac_val in
  1356. */ )
  1357. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1358. eval $ac_var=\$ac_val;;
  1359. esac
  1360. # Be sure to have absolute directory names.
  1361. case $ac_val in
  1362. [\\/$]* | ?:[\\/]* ) continue;;
  1363. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1364. esac
  1365. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1366. done
  1367. # There might be people who depend on the old broken behavior: `$host'
  1368. # used to hold the argument of --host etc.
  1369. # FIXME: To remove some day.
  1370. build=$build_alias
  1371. host=$host_alias
  1372. target=$target_alias
  1373. # FIXME: To remove some day.
  1374. if test "x$host_alias" != x; then
  1375. if test "x$build_alias" = x; then
  1376. cross_compiling=maybe
  1377. elif test "x$build_alias" != "x$host_alias"; then
  1378. cross_compiling=yes
  1379. fi
  1380. fi
  1381. ac_tool_prefix=
  1382. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1383. test "$silent" = yes && exec 6>/dev/null
  1384. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1385. ac_ls_di=`ls -di .` &&
  1386. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1387. as_fn_error $? "working directory cannot be determined"
  1388. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1389. as_fn_error $? "pwd does not report name of working directory"
  1390. # Find the source files, if location was not specified.
  1391. if test -z "$srcdir"; then
  1392. ac_srcdir_defaulted=yes
  1393. # Try the directory containing this script, then the parent directory.
  1394. ac_confdir=`$as_dirname -- "$as_myself" ||
  1395. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1396. X"$as_myself" : 'X\(//\)[^/]' \| \
  1397. X"$as_myself" : 'X\(//\)$' \| \
  1398. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1399. $as_echo X"$as_myself" |
  1400. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1401. s//\1/
  1402. q
  1403. }
  1404. /^X\(\/\/\)[^/].*/{
  1405. s//\1/
  1406. q
  1407. }
  1408. /^X\(\/\/\)$/{
  1409. s//\1/
  1410. q
  1411. }
  1412. /^X\(\/\).*/{
  1413. s//\1/
  1414. q
  1415. }
  1416. s/.*/./; q'`
  1417. srcdir=$ac_confdir
  1418. if test ! -r "$srcdir/$ac_unique_file"; then
  1419. srcdir=..
  1420. fi
  1421. else
  1422. ac_srcdir_defaulted=no
  1423. fi
  1424. if test ! -r "$srcdir/$ac_unique_file"; then
  1425. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1426. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1427. fi
  1428. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1429. ac_abs_confdir=`(
  1430. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1431. pwd)`
  1432. # When building in place, set srcdir=.
  1433. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1434. srcdir=.
  1435. fi
  1436. # Remove unnecessary trailing slashes from srcdir.
  1437. # Double slashes in file names in object file debugging info
  1438. # mess up M-x gdb in Emacs.
  1439. case $srcdir in
  1440. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1441. esac
  1442. for ac_var in $ac_precious_vars; do
  1443. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1444. eval ac_env_${ac_var}_value=\$${ac_var}
  1445. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1446. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1447. done
  1448. #
  1449. # Report the --help message.
  1450. #
  1451. if test "$ac_init_help" = "long"; then
  1452. # Omit some internal or obsolete options to make the list less imposing.
  1453. # This message is too long to be a string in the A/UX 3.1 sh.
  1454. cat <<_ACEOF
  1455. \`configure' configures tpm2-tss 3.2.0 to adapt to many kinds of systems.
  1456. Usage: $0 [OPTION]... [VAR=VALUE]...
  1457. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1458. VAR=VALUE. See below for descriptions of some of the useful variables.
  1459. Defaults for the options are specified in brackets.
  1460. Configuration:
  1461. -h, --help display this help and exit
  1462. --help=short display options specific to this package
  1463. --help=recursive display the short help of all the included packages
  1464. -V, --version display version information and exit
  1465. -q, --quiet, --silent do not print \`checking ...' messages
  1466. --cache-file=FILE cache test results in FILE [disabled]
  1467. -C, --config-cache alias for \`--cache-file=config.cache'
  1468. -n, --no-create do not create output files
  1469. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1470. Installation directories:
  1471. --prefix=PREFIX install architecture-independent files in PREFIX
  1472. [$ac_default_prefix]
  1473. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1474. [PREFIX]
  1475. By default, \`make install' will install all the files in
  1476. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1477. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1478. for instance \`--prefix=\$HOME'.
  1479. For better control, use the options below.
  1480. Fine tuning of the installation directories:
  1481. --bindir=DIR user executables [EPREFIX/bin]
  1482. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1483. --libexecdir=DIR program executables [EPREFIX/libexec]
  1484. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1485. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1486. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1487. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1488. --libdir=DIR object code libraries [EPREFIX/lib]
  1489. --includedir=DIR C header files [PREFIX/include]
  1490. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1491. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1492. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1493. --infodir=DIR info documentation [DATAROOTDIR/info]
  1494. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1495. --mandir=DIR man documentation [DATAROOTDIR/man]
  1496. --docdir=DIR documentation root [DATAROOTDIR/doc/tpm2-tss]
  1497. --htmldir=DIR html documentation [DOCDIR]
  1498. --dvidir=DIR dvi documentation [DOCDIR]
  1499. --pdfdir=DIR pdf documentation [DOCDIR]
  1500. --psdir=DIR ps documentation [DOCDIR]
  1501. _ACEOF
  1502. cat <<\_ACEOF
  1503. Program names:
  1504. --program-prefix=PREFIX prepend PREFIX to installed program names
  1505. --program-suffix=SUFFIX append SUFFIX to installed program names
  1506. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1507. System types:
  1508. --build=BUILD configure for building on BUILD [guessed]
  1509. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1510. _ACEOF
  1511. fi
  1512. if test -n "$ac_init_help"; then
  1513. case $ac_init_help in
  1514. short | recursive ) echo "Configuration of tpm2-tss 3.2.0:";;
  1515. esac
  1516. cat <<\_ACEOF
  1517. Optional Features:
  1518. --disable-option-checking ignore unrecognized --enable/--with options
  1519. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1520. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1521. --enable-silent-rules less verbose build output (undo: "make V=1")
  1522. --disable-silent-rules verbose build output (undo: "make V=0")
  1523. --enable-debug=[yes/info/profile/no]
  1524. compile with debugging
  1525. --enable-dependency-tracking
  1526. do not reject slow dependency extractors
  1527. --disable-dependency-tracking
  1528. speeds up one-time build
  1529. --enable-shared[=PKGS] build shared libraries [default=yes]
  1530. --enable-static[=PKGS] build static libraries [default=yes]
  1531. --enable-fast-install[=PKGS]
  1532. optimize for fast installation [default=yes]
  1533. --disable-libtool-lock avoid locking (might break parallel builds)
  1534. --enable-unit build cmocka unit tests
  1535. --disable-esys don't build the esys layer
  1536. --enable-fapi build the fapi layer (default is yes)
  1537. --enable-fapi-async-tests
  1538. Force fapi to spin asynchronously. (NOT FOR
  1539. PRODUCTION!)
  1540. --disable-tcti-device don't build the tcti-device module
  1541. --disable-tcti-mssim don't build the tcti-mssim module
  1542. --disable-tcti-swtpm don't build the tcti-swtpm module
  1543. --disable-tcti-pcap don't build the tcti-pcap module
  1544. --disable-tcti-libtpms don't build the tcti-libtpms module
  1545. --disable-tcti-cmd don't build the tcti-cmd module
  1546. --enable-tcti-fuzzing build the tcti-fuzzing module
  1547. --enable-nodl link against TCTIs directly, do not use dlopen
  1548. --enable-integration build and execute integration tests
  1549. --enable-valgrind Whether to enable Valgrind on the unit tests
  1550. --disable-valgrind-memcheck
  1551. Whether to skip memcheck during the Valgrind tests
  1552. --disable-valgrind-helgrind
  1553. Whether to skip helgrind during the Valgrind tests
  1554. --disable-valgrind-drd Whether to skip drd during the Valgrind tests
  1555. --disable-valgrind-sgcheck
  1556. Whether to skip sgcheck during the Valgrind tests
  1557. --enable-ld-version-script
  1558. enable linker version script (default is enabled
  1559. when possible)
  1560. --disable-log-file write logging to stderr only
  1561. --disable-defaultflags Disable default preprocessor, compiler, and linker
  1562. flags.
  1563. --disable-weakcrypto Disable crypto algorithms considered weak
  1564. --enable-self-generated-certificate
  1565. Alllow usage of self generated root certifcate
  1566. --disable-doxygen-doc don't generate any doxygen documentation
  1567. --enable-doxygen-dot generate graphics for doxygen documentation
  1568. --disable-doxygen-man don't generate doxygen manual pages
  1569. --disable-doxygen-rtf don't generate doxygen RTF documentation
  1570. --enable-doxygen-xml generate doxygen XML documentation
  1571. --enable-doxygen-chm generate doxygen compressed HTML help documentation
  1572. --enable-doxygen-chi generate doxygen separate compressed HTML help index
  1573. file
  1574. --disable-doxygen-html don't generate doxygen plain HTML documentation
  1575. --enable-doxygen-ps generate doxygen PostScript documentation
  1576. --enable-doxygen-pdf generate doxygen PDF documentation
  1577. --enable-code-coverage Whether to enable code coverage support
  1578. Optional Packages:
  1579. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1580. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1581. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1582. both]
  1583. --with-aix-soname=aix|svr4|both
  1584. shared library versioning (aka "SONAME") variant to
  1585. provide on AIX, [default=aix].
  1586. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1587. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1588. compiler's sysroot if not specified).
  1589. --with-pkgconfigdir pkg-config installation directory
  1590. ['${libdir}/pkgconfig']
  1591. --with-runstatedir=<dir>
  1592. replacement for --runstatedir in Autoconf <2.70
  1593. --with-userstatedir=<dir>
  1594. sets the relative path in the user's home (default
  1595. is ".local/share")
  1596. --with-sysusersdir=<dir>
  1597. sets the sysusers.d directory (default is
  1598. "${sysconfdir}/sysusers.d")
  1599. --with-tmpfilesdir=<dir>
  1600. sets the tmpfiles.d directory (default is
  1601. "${sysconfdir}/tmpfiles.d")
  1602. --with-crypto={ossl,mbed}
  1603. sets the ESYS crypto backend (default is OpenSSL)
  1604. --with-tctidefaultmodule
  1605. The default TCTI module for ESYS. (Default:
  1606. libtss2-tcti-default.so)
  1607. --with-tctidefaultconfig
  1608. The default tcti module's configuration.
  1609. --with-udevrulesdir=DIR udev rules directory
  1610. --with-udevrulesprefix=XY
  1611. prefix for udev rules file
  1612. --with-device=<device> TPM device for testing
  1613. --with-devicetests=<case>
  1614. Comma-separated values of possible tests:
  1615. destructive,mandatory,optional default is mandatory
  1616. --with-sanitizer={none,address,undefined}
  1617. build with the given sanitizer
  1618. --with-fuzzing={none,libfuzzer,ossfuzz}
  1619. fuzzing to build with (default is none)
  1620. --with-maxloglevel={none,error,warning,info,debug,trace}
  1621. sets the maximum log level (default is trace)
  1622. --with-gcov=GCOV use given GCOV for coverage (GCOV=gcov).
  1623. Some influential environment variables:
  1624. CC C compiler command
  1625. CFLAGS C compiler flags
  1626. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1627. nonstandard directory <lib dir>
  1628. LIBS libraries to pass to the linker, e.g. -l<library>
  1629. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1630. you have headers in a nonstandard directory <include dir>
  1631. CXX C++ compiler command
  1632. CXXFLAGS C++ compiler flags
  1633. CPP C preprocessor
  1634. LT_SYS_LIBRARY_PATH
  1635. User-defined run-time library search path.
  1636. CXXCPP C++ preprocessor
  1637. PKG_CONFIG path to pkg-config utility
  1638. PKG_CONFIG_PATH
  1639. directories to add to pkg-config's search path
  1640. PKG_CONFIG_LIBDIR
  1641. path overriding pkg-config's built-in search path
  1642. CMOCKA_CFLAGS
  1643. C compiler flags for CMOCKA, overriding pkg-config
  1644. CMOCKA_LIBS linker flags for CMOCKA, overriding pkg-config
  1645. CRYPTO_CFLAGS
  1646. C compiler flags for CRYPTO, overriding pkg-config
  1647. CRYPTO_LIBS linker flags for CRYPTO, overriding pkg-config
  1648. JSONC_CFLAGS
  1649. C compiler flags for JSONC, overriding pkg-config
  1650. JSONC_LIBS linker flags for JSONC, overriding pkg-config
  1651. CURL_CFLAGS C compiler flags for CURL, overriding pkg-config
  1652. CURL_LIBS linker flags for CURL, overriding pkg-config
  1653. DOXYGEN_PAPER_SIZE
  1654. a4wide (default), a4, letter, legal or executive
  1655. Use these variables to override the choices made by `configure' or to help
  1656. it to find libraries and programs with nonstandard names/locations.
  1657. Report bugs to <https://github.com/tpm2-software/tpm2-tss/issues>.
  1658. tpm2-tss home page: <https://github.com/tpm2-software/tpm2-tss>.
  1659. _ACEOF
  1660. ac_status=$?
  1661. fi
  1662. if test "$ac_init_help" = "recursive"; then
  1663. # If there are subdirs, report their specific --help.
  1664. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1665. test -d "$ac_dir" ||
  1666. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1667. continue
  1668. ac_builddir=.
  1669. case "$ac_dir" in
  1670. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1671. *)
  1672. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1673. # A ".." for each directory in $ac_dir_suffix.
  1674. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1675. case $ac_top_builddir_sub in
  1676. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1677. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1678. esac ;;
  1679. esac
  1680. ac_abs_top_builddir=$ac_pwd
  1681. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1682. # for backward compatibility:
  1683. ac_top_builddir=$ac_top_build_prefix
  1684. case $srcdir in
  1685. .) # We are building in place.
  1686. ac_srcdir=.
  1687. ac_top_srcdir=$ac_top_builddir_sub
  1688. ac_abs_top_srcdir=$ac_pwd ;;
  1689. [\\/]* | ?:[\\/]* ) # Absolute name.
  1690. ac_srcdir=$srcdir$ac_dir_suffix;
  1691. ac_top_srcdir=$srcdir
  1692. ac_abs_top_srcdir=$srcdir ;;
  1693. *) # Relative name.
  1694. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1695. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1696. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1697. esac
  1698. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1699. cd "$ac_dir" || { ac_status=$?; continue; }
  1700. # Check for guested configure.
  1701. if test -f "$ac_srcdir/configure.gnu"; then
  1702. echo &&
  1703. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1704. elif test -f "$ac_srcdir/configure"; then
  1705. echo &&
  1706. $SHELL "$ac_srcdir/configure" --help=recursive
  1707. else
  1708. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1709. fi || ac_status=$?
  1710. cd "$ac_pwd" || { ac_status=$?; break; }
  1711. done
  1712. fi
  1713. test -n "$ac_init_help" && exit $ac_status
  1714. if $ac_init_version; then
  1715. cat <<\_ACEOF
  1716. tpm2-tss configure 3.2.0
  1717. generated by GNU Autoconf 2.69
  1718. Copyright (C) 2012 Free Software Foundation, Inc.
  1719. This configure script is free software; the Free Software Foundation
  1720. gives unlimited permission to copy, distribute and modify it.
  1721. _ACEOF
  1722. exit
  1723. fi
  1724. ## ------------------------ ##
  1725. ## Autoconf initialization. ##
  1726. ## ------------------------ ##
  1727. # ac_fn_c_try_compile LINENO
  1728. # --------------------------
  1729. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1730. ac_fn_c_try_compile ()
  1731. {
  1732. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1733. rm -f conftest.$ac_objext
  1734. if { { ac_try="$ac_compile"
  1735. case "(($ac_try" in
  1736. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1737. *) ac_try_echo=$ac_try;;
  1738. esac
  1739. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1740. $as_echo "$ac_try_echo"; } >&5
  1741. (eval "$ac_compile") 2>conftest.err
  1742. ac_status=$?
  1743. if test -s conftest.err; then
  1744. grep -v '^ *+' conftest.err >conftest.er1
  1745. cat conftest.er1 >&5
  1746. mv -f conftest.er1 conftest.err
  1747. fi
  1748. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1749. test $ac_status = 0; } && {
  1750. test -z "$ac_c_werror_flag" ||
  1751. test ! -s conftest.err
  1752. } && test -s conftest.$ac_objext; then :
  1753. ac_retval=0
  1754. else
  1755. $as_echo "$as_me: failed program was:" >&5
  1756. sed 's/^/| /' conftest.$ac_ext >&5
  1757. ac_retval=1
  1758. fi
  1759. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1760. as_fn_set_status $ac_retval
  1761. } # ac_fn_c_try_compile
  1762. # ac_fn_cxx_try_compile LINENO
  1763. # ----------------------------
  1764. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1765. ac_fn_cxx_try_compile ()
  1766. {
  1767. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1768. rm -f conftest.$ac_objext
  1769. if { { ac_try="$ac_compile"
  1770. case "(($ac_try" in
  1771. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1772. *) ac_try_echo=$ac_try;;
  1773. esac
  1774. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1775. $as_echo "$ac_try_echo"; } >&5
  1776. (eval "$ac_compile") 2>conftest.err
  1777. ac_status=$?
  1778. if test -s conftest.err; then
  1779. grep -v '^ *+' conftest.err >conftest.er1
  1780. cat conftest.er1 >&5
  1781. mv -f conftest.er1 conftest.err
  1782. fi
  1783. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1784. test $ac_status = 0; } && {
  1785. test -z "$ac_cxx_werror_flag" ||
  1786. test ! -s conftest.err
  1787. } && test -s conftest.$ac_objext; then :
  1788. ac_retval=0
  1789. else
  1790. $as_echo "$as_me: failed program was:" >&5
  1791. sed 's/^/| /' conftest.$ac_ext >&5
  1792. ac_retval=1
  1793. fi
  1794. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1795. as_fn_set_status $ac_retval
  1796. } # ac_fn_cxx_try_compile
  1797. # ac_fn_c_try_cpp LINENO
  1798. # ----------------------
  1799. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1800. ac_fn_c_try_cpp ()
  1801. {
  1802. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1803. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1804. case "(($ac_try" in
  1805. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1806. *) ac_try_echo=$ac_try;;
  1807. esac
  1808. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1809. $as_echo "$ac_try_echo"; } >&5
  1810. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1811. ac_status=$?
  1812. if test -s conftest.err; then
  1813. grep -v '^ *+' conftest.err >conftest.er1
  1814. cat conftest.er1 >&5
  1815. mv -f conftest.er1 conftest.err
  1816. fi
  1817. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1818. test $ac_status = 0; } > conftest.i && {
  1819. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1820. test ! -s conftest.err
  1821. }; then :
  1822. ac_retval=0
  1823. else
  1824. $as_echo "$as_me: failed program was:" >&5
  1825. sed 's/^/| /' conftest.$ac_ext >&5
  1826. ac_retval=1
  1827. fi
  1828. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1829. as_fn_set_status $ac_retval
  1830. } # ac_fn_c_try_cpp
  1831. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1832. # -------------------------------------------------------
  1833. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1834. # the include files in INCLUDES and setting the cache variable VAR
  1835. # accordingly.
  1836. ac_fn_c_check_header_mongrel ()
  1837. {
  1838. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1839. if eval \${$3+:} false; then :
  1840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1841. $as_echo_n "checking for $2... " >&6; }
  1842. if eval \${$3+:} false; then :
  1843. $as_echo_n "(cached) " >&6
  1844. fi
  1845. eval ac_res=\$$3
  1846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1847. $as_echo "$ac_res" >&6; }
  1848. else
  1849. # Is the header compilable?
  1850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1851. $as_echo_n "checking $2 usability... " >&6; }
  1852. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1853. /* end confdefs.h. */
  1854. $4
  1855. #include <$2>
  1856. _ACEOF
  1857. if ac_fn_c_try_compile "$LINENO"; then :
  1858. ac_header_compiler=yes
  1859. else
  1860. ac_header_compiler=no
  1861. fi
  1862. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1864. $as_echo "$ac_header_compiler" >&6; }
  1865. # Is the header present?
  1866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1867. $as_echo_n "checking $2 presence... " >&6; }
  1868. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1869. /* end confdefs.h. */
  1870. #include <$2>
  1871. _ACEOF
  1872. if ac_fn_c_try_cpp "$LINENO"; then :
  1873. ac_header_preproc=yes
  1874. else
  1875. ac_header_preproc=no
  1876. fi
  1877. rm -f conftest.err conftest.i conftest.$ac_ext
  1878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1879. $as_echo "$ac_header_preproc" >&6; }
  1880. # So? What about this header?
  1881. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1882. yes:no: )
  1883. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1884. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1885. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1886. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1887. ;;
  1888. no:yes:* )
  1889. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1890. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1891. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1892. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1893. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1894. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1895. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1896. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1897. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1898. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1899. ( $as_echo "## --------------------------------------------------------------- ##
  1900. ## Report this to https://github.com/tpm2-software/tpm2-tss/issues ##
  1901. ## --------------------------------------------------------------- ##"
  1902. ) | sed "s/^/$as_me: WARNING: /" >&2
  1903. ;;
  1904. esac
  1905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1906. $as_echo_n "checking for $2... " >&6; }
  1907. if eval \${$3+:} false; then :
  1908. $as_echo_n "(cached) " >&6
  1909. else
  1910. eval "$3=\$ac_header_compiler"
  1911. fi
  1912. eval ac_res=\$$3
  1913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1914. $as_echo "$ac_res" >&6; }
  1915. fi
  1916. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1917. } # ac_fn_c_check_header_mongrel
  1918. # ac_fn_c_try_run LINENO
  1919. # ----------------------
  1920. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1921. # that executables *can* be run.
  1922. ac_fn_c_try_run ()
  1923. {
  1924. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1925. if { { ac_try="$ac_link"
  1926. case "(($ac_try" in
  1927. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1928. *) ac_try_echo=$ac_try;;
  1929. esac
  1930. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1931. $as_echo "$ac_try_echo"; } >&5
  1932. (eval "$ac_link") 2>&5
  1933. ac_status=$?
  1934. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1935. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1936. { { case "(($ac_try" in
  1937. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1938. *) ac_try_echo=$ac_try;;
  1939. esac
  1940. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1941. $as_echo "$ac_try_echo"; } >&5
  1942. (eval "$ac_try") 2>&5
  1943. ac_status=$?
  1944. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1945. test $ac_status = 0; }; }; then :
  1946. ac_retval=0
  1947. else
  1948. $as_echo "$as_me: program exited with status $ac_status" >&5
  1949. $as_echo "$as_me: failed program was:" >&5
  1950. sed 's/^/| /' conftest.$ac_ext >&5
  1951. ac_retval=$ac_status
  1952. fi
  1953. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1954. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1955. as_fn_set_status $ac_retval
  1956. } # ac_fn_c_try_run
  1957. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1958. # -------------------------------------------------------
  1959. # Tests whether HEADER exists and can be compiled using the include files in
  1960. # INCLUDES, setting the cache variable VAR accordingly.
  1961. ac_fn_c_check_header_compile ()
  1962. {
  1963. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1965. $as_echo_n "checking for $2... " >&6; }
  1966. if eval \${$3+:} false; then :
  1967. $as_echo_n "(cached) " >&6
  1968. else
  1969. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1970. /* end confdefs.h. */
  1971. $4
  1972. #include <$2>
  1973. _ACEOF
  1974. if ac_fn_c_try_compile "$LINENO"; then :
  1975. eval "$3=yes"
  1976. else
  1977. eval "$3=no"
  1978. fi
  1979. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1980. fi
  1981. eval ac_res=\$$3
  1982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1983. $as_echo "$ac_res" >&6; }
  1984. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1985. } # ac_fn_c_check_header_compile
  1986. # ac_fn_c_try_link LINENO
  1987. # -----------------------
  1988. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1989. ac_fn_c_try_link ()
  1990. {
  1991. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1992. rm -f conftest.$ac_objext conftest$ac_exeext
  1993. if { { ac_try="$ac_link"
  1994. case "(($ac_try" in
  1995. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1996. *) ac_try_echo=$ac_try;;
  1997. esac
  1998. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1999. $as_echo "$ac_try_echo"; } >&5
  2000. (eval "$ac_link") 2>conftest.err
  2001. ac_status=$?
  2002. if test -s conftest.err; then
  2003. grep -v '^ *+' conftest.err >conftest.er1
  2004. cat conftest.er1 >&5
  2005. mv -f conftest.er1 conftest.err
  2006. fi
  2007. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2008. test $ac_status = 0; } && {
  2009. test -z "$ac_c_werror_flag" ||
  2010. test ! -s conftest.err
  2011. } && test -s conftest$ac_exeext && {
  2012. test "$cross_compiling" = yes ||
  2013. test -x conftest$ac_exeext
  2014. }; then :
  2015. ac_retval=0
  2016. else
  2017. $as_echo "$as_me: failed program was:" >&5
  2018. sed 's/^/| /' conftest.$ac_ext >&5
  2019. ac_retval=1
  2020. fi
  2021. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2022. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2023. # interfere with the next link command; also delete a directory that is
  2024. # left behind by Apple's compiler. We do this before executing the actions.
  2025. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2026. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2027. as_fn_set_status $ac_retval
  2028. } # ac_fn_c_try_link
  2029. # ac_fn_c_check_func LINENO FUNC VAR
  2030. # ----------------------------------
  2031. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  2032. ac_fn_c_check_func ()
  2033. {
  2034. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2036. $as_echo_n "checking for $2... " >&6; }
  2037. if eval \${$3+:} false; then :
  2038. $as_echo_n "(cached) " >&6
  2039. else
  2040. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2041. /* end confdefs.h. */
  2042. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  2043. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  2044. #define $2 innocuous_$2
  2045. /* System header to define __stub macros and hopefully few prototypes,
  2046. which can conflict with char $2 (); below.
  2047. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2048. <limits.h> exists even on freestanding compilers. */
  2049. #ifdef __STDC__
  2050. # include <limits.h>
  2051. #else
  2052. # include <assert.h>
  2053. #endif
  2054. #undef $2
  2055. /* Override any GCC internal prototype to avoid an error.
  2056. Use char because int might match the return type of a GCC
  2057. builtin and then its argument prototype would still apply. */
  2058. #ifdef __cplusplus
  2059. extern "C"
  2060. #endif
  2061. char $2 ();
  2062. /* The GNU C library defines this for functions which it implements
  2063. to always fail with ENOSYS. Some functions are actually named
  2064. something starting with __ and the normal name is an alias. */
  2065. #if defined __stub_$2 || defined __stub___$2
  2066. choke me
  2067. #endif
  2068. int
  2069. main ()
  2070. {
  2071. return $2 ();
  2072. ;
  2073. return 0;
  2074. }
  2075. _ACEOF
  2076. if ac_fn_c_try_link "$LINENO"; then :
  2077. eval "$3=yes"
  2078. else
  2079. eval "$3=no"
  2080. fi
  2081. rm -f core conftest.err conftest.$ac_objext \
  2082. conftest$ac_exeext conftest.$ac_ext
  2083. fi
  2084. eval ac_res=\$$3
  2085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2086. $as_echo "$ac_res" >&6; }
  2087. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2088. } # ac_fn_c_check_func
  2089. # ac_fn_cxx_try_cpp LINENO
  2090. # ------------------------
  2091. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2092. ac_fn_cxx_try_cpp ()
  2093. {
  2094. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2095. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2096. case "(($ac_try" in
  2097. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2098. *) ac_try_echo=$ac_try;;
  2099. esac
  2100. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2101. $as_echo "$ac_try_echo"; } >&5
  2102. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2103. ac_status=$?
  2104. if test -s conftest.err; then
  2105. grep -v '^ *+' conftest.err >conftest.er1
  2106. cat conftest.er1 >&5
  2107. mv -f conftest.er1 conftest.err
  2108. fi
  2109. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2110. test $ac_status = 0; } > conftest.i && {
  2111. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2112. test ! -s conftest.err
  2113. }; then :
  2114. ac_retval=0
  2115. else
  2116. $as_echo "$as_me: failed program was:" >&5
  2117. sed 's/^/| /' conftest.$ac_ext >&5
  2118. ac_retval=1
  2119. fi
  2120. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2121. as_fn_set_status $ac_retval
  2122. } # ac_fn_cxx_try_cpp
  2123. # ac_fn_cxx_try_link LINENO
  2124. # -------------------------
  2125. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2126. ac_fn_cxx_try_link ()
  2127. {
  2128. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2129. rm -f conftest.$ac_objext conftest$ac_exeext
  2130. if { { ac_try="$ac_link"
  2131. case "(($ac_try" in
  2132. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2133. *) ac_try_echo=$ac_try;;
  2134. esac
  2135. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2136. $as_echo "$ac_try_echo"; } >&5
  2137. (eval "$ac_link") 2>conftest.err
  2138. ac_status=$?
  2139. if test -s conftest.err; then
  2140. grep -v '^ *+' conftest.err >conftest.er1
  2141. cat conftest.er1 >&5
  2142. mv -f conftest.er1 conftest.err
  2143. fi
  2144. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2145. test $ac_status = 0; } && {
  2146. test -z "$ac_cxx_werror_flag" ||
  2147. test ! -s conftest.err
  2148. } && test -s conftest$ac_exeext && {
  2149. test "$cross_compiling" = yes ||
  2150. test -x conftest$ac_exeext
  2151. }; then :
  2152. ac_retval=0
  2153. else
  2154. $as_echo "$as_me: failed program was:" >&5
  2155. sed 's/^/| /' conftest.$ac_ext >&5
  2156. ac_retval=1
  2157. fi
  2158. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2159. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2160. # interfere with the next link command; also delete a directory that is
  2161. # left behind by Apple's compiler. We do this before executing the actions.
  2162. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2163. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2164. as_fn_set_status $ac_retval
  2165. } # ac_fn_cxx_try_link
  2166. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  2167. # ---------------------------------------------
  2168. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  2169. # accordingly.
  2170. ac_fn_c_check_decl ()
  2171. {
  2172. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2173. as_decl_name=`echo $2|sed 's/ *(.*//'`
  2174. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  2175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  2176. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  2177. if eval \${$3+:} false; then :
  2178. $as_echo_n "(cached) " >&6
  2179. else
  2180. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2181. /* end confdefs.h. */
  2182. $4
  2183. int
  2184. main ()
  2185. {
  2186. #ifndef $as_decl_name
  2187. #ifdef __cplusplus
  2188. (void) $as_decl_use;
  2189. #else
  2190. (void) $as_decl_name;
  2191. #endif
  2192. #endif
  2193. ;
  2194. return 0;
  2195. }
  2196. _ACEOF
  2197. if ac_fn_c_try_compile "$LINENO"; then :
  2198. eval "$3=yes"
  2199. else
  2200. eval "$3=no"
  2201. fi
  2202. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2203. fi
  2204. eval ac_res=\$$3
  2205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2206. $as_echo "$ac_res" >&6; }
  2207. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2208. } # ac_fn_c_check_decl
  2209. cat >config.log <<_ACEOF
  2210. This file contains any messages produced by compilers while
  2211. running configure, to aid debugging if configure makes a mistake.
  2212. It was created by tpm2-tss $as_me 3.2.0, which was
  2213. generated by GNU Autoconf 2.69. Invocation command line was
  2214. $ $0 $@
  2215. _ACEOF
  2216. exec 5>>config.log
  2217. {
  2218. cat <<_ASUNAME
  2219. ## --------- ##
  2220. ## Platform. ##
  2221. ## --------- ##
  2222. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2223. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2224. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2225. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2226. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2227. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2228. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2229. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2230. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2231. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2232. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2233. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2234. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2235. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2236. _ASUNAME
  2237. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2238. for as_dir in $PATH
  2239. do
  2240. IFS=$as_save_IFS
  2241. test -z "$as_dir" && as_dir=.
  2242. $as_echo "PATH: $as_dir"
  2243. done
  2244. IFS=$as_save_IFS
  2245. } >&5
  2246. cat >&5 <<_ACEOF
  2247. ## ----------- ##
  2248. ## Core tests. ##
  2249. ## ----------- ##
  2250. _ACEOF
  2251. # Keep a trace of the command line.
  2252. # Strip out --no-create and --no-recursion so they do not pile up.
  2253. # Strip out --silent because we don't want to record it for future runs.
  2254. # Also quote any args containing shell meta-characters.
  2255. # Make two passes to allow for proper duplicate-argument suppression.
  2256. ac_configure_args=
  2257. ac_configure_args0=
  2258. ac_configure_args1=
  2259. ac_must_keep_next=false
  2260. for ac_pass in 1 2
  2261. do
  2262. for ac_arg
  2263. do
  2264. case $ac_arg in
  2265. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2266. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2267. | -silent | --silent | --silen | --sile | --sil)
  2268. continue ;;
  2269. *\'*)
  2270. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2271. esac
  2272. case $ac_pass in
  2273. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2274. 2)
  2275. as_fn_append ac_configure_args1 " '$ac_arg'"
  2276. if test $ac_must_keep_next = true; then
  2277. ac_must_keep_next=false # Got value, back to normal.
  2278. else
  2279. case $ac_arg in
  2280. *=* | --config-cache | -C | -disable-* | --disable-* \
  2281. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2282. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2283. | -with-* | --with-* | -without-* | --without-* | --x)
  2284. case "$ac_configure_args0 " in
  2285. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2286. esac
  2287. ;;
  2288. -* ) ac_must_keep_next=true ;;
  2289. esac
  2290. fi
  2291. as_fn_append ac_configure_args " '$ac_arg'"
  2292. ;;
  2293. esac
  2294. done
  2295. done
  2296. { ac_configure_args0=; unset ac_configure_args0;}
  2297. { ac_configure_args1=; unset ac_configure_args1;}
  2298. # When interrupted or exit'd, cleanup temporary files, and complete
  2299. # config.log. We remove comments because anyway the quotes in there
  2300. # would cause problems or look ugly.
  2301. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2302. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2303. trap 'exit_status=$?
  2304. # Save into config.log some information that might help in debugging.
  2305. {
  2306. echo
  2307. $as_echo "## ---------------- ##
  2308. ## Cache variables. ##
  2309. ## ---------------- ##"
  2310. echo
  2311. # The following way of writing the cache mishandles newlines in values,
  2312. (
  2313. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2314. eval ac_val=\$$ac_var
  2315. case $ac_val in #(
  2316. *${as_nl}*)
  2317. case $ac_var in #(
  2318. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2319. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2320. esac
  2321. case $ac_var in #(
  2322. _ | IFS | as_nl) ;; #(
  2323. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2324. *) { eval $ac_var=; unset $ac_var;} ;;
  2325. esac ;;
  2326. esac
  2327. done
  2328. (set) 2>&1 |
  2329. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2330. *${as_nl}ac_space=\ *)
  2331. sed -n \
  2332. "s/'\''/'\''\\\\'\'''\''/g;
  2333. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2334. ;; #(
  2335. *)
  2336. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2337. ;;
  2338. esac |
  2339. sort
  2340. )
  2341. echo
  2342. $as_echo "## ----------------- ##
  2343. ## Output variables. ##
  2344. ## ----------------- ##"
  2345. echo
  2346. for ac_var in $ac_subst_vars
  2347. do
  2348. eval ac_val=\$$ac_var
  2349. case $ac_val in
  2350. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2351. esac
  2352. $as_echo "$ac_var='\''$ac_val'\''"
  2353. done | sort
  2354. echo
  2355. if test -n "$ac_subst_files"; then
  2356. $as_echo "## ------------------- ##
  2357. ## File substitutions. ##
  2358. ## ------------------- ##"
  2359. echo
  2360. for ac_var in $ac_subst_files
  2361. do
  2362. eval ac_val=\$$ac_var
  2363. case $ac_val in
  2364. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2365. esac
  2366. $as_echo "$ac_var='\''$ac_val'\''"
  2367. done | sort
  2368. echo
  2369. fi
  2370. if test -s confdefs.h; then
  2371. $as_echo "## ----------- ##
  2372. ## confdefs.h. ##
  2373. ## ----------- ##"
  2374. echo
  2375. cat confdefs.h
  2376. echo
  2377. fi
  2378. test "$ac_signal" != 0 &&
  2379. $as_echo "$as_me: caught signal $ac_signal"
  2380. $as_echo "$as_me: exit $exit_status"
  2381. } >&5
  2382. rm -f core *.core core.conftest.* &&
  2383. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2384. exit $exit_status
  2385. ' 0
  2386. for ac_signal in 1 2 13 15; do
  2387. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2388. done
  2389. ac_signal=0
  2390. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2391. rm -f -r conftest* confdefs.h
  2392. $as_echo "/* confdefs.h */" > confdefs.h
  2393. # Predefined preprocessor variables.
  2394. cat >>confdefs.h <<_ACEOF
  2395. #define PACKAGE_NAME "$PACKAGE_NAME"
  2396. _ACEOF
  2397. cat >>confdefs.h <<_ACEOF
  2398. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2399. _ACEOF
  2400. cat >>confdefs.h <<_ACEOF
  2401. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2402. _ACEOF
  2403. cat >>confdefs.h <<_ACEOF
  2404. #define PACKAGE_STRING "$PACKAGE_STRING"
  2405. _ACEOF
  2406. cat >>confdefs.h <<_ACEOF
  2407. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2408. _ACEOF
  2409. cat >>confdefs.h <<_ACEOF
  2410. #define PACKAGE_URL "$PACKAGE_URL"
  2411. _ACEOF
  2412. # Let the site file select an alternate cache file if it wants to.
  2413. # Prefer an explicitly selected file to automatically selected ones.
  2414. ac_site_file1=NONE
  2415. ac_site_file2=NONE
  2416. if test -n "$CONFIG_SITE"; then
  2417. # We do not want a PATH search for config.site.
  2418. case $CONFIG_SITE in #((
  2419. -*) ac_site_file1=./$CONFIG_SITE;;
  2420. */*) ac_site_file1=$CONFIG_SITE;;
  2421. *) ac_site_file1=./$CONFIG_SITE;;
  2422. esac
  2423. elif test "x$prefix" != xNONE; then
  2424. ac_site_file1=$prefix/share/config.site
  2425. ac_site_file2=$prefix/etc/config.site
  2426. else
  2427. ac_site_file1=$ac_default_prefix/share/config.site
  2428. ac_site_file2=$ac_default_prefix/etc/config.site
  2429. fi
  2430. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2431. do
  2432. test "x$ac_site_file" = xNONE && continue
  2433. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2434. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2435. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2436. sed 's/^/| /' "$ac_site_file" >&5
  2437. . "$ac_site_file" \
  2438. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2439. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2440. as_fn_error $? "failed to load site script $ac_site_file
  2441. See \`config.log' for more details" "$LINENO" 5; }
  2442. fi
  2443. done
  2444. if test -r "$cache_file"; then
  2445. # Some versions of bash will fail to source /dev/null (special files
  2446. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2447. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2448. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2449. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2450. case $cache_file in
  2451. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2452. *) . "./$cache_file";;
  2453. esac
  2454. fi
  2455. else
  2456. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2457. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2458. >$cache_file
  2459. fi
  2460. # Check that the precious variables saved in the cache have kept the same
  2461. # value.
  2462. ac_cache_corrupted=false
  2463. for ac_var in $ac_precious_vars; do
  2464. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2465. eval ac_new_set=\$ac_env_${ac_var}_set
  2466. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2467. eval ac_new_val=\$ac_env_${ac_var}_value
  2468. case $ac_old_set,$ac_new_set in
  2469. set,)
  2470. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2471. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2472. ac_cache_corrupted=: ;;
  2473. ,set)
  2474. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2475. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2476. ac_cache_corrupted=: ;;
  2477. ,);;
  2478. *)
  2479. if test "x$ac_old_val" != "x$ac_new_val"; then
  2480. # differences in whitespace do not lead to failure.
  2481. ac_old_val_w=`echo x $ac_old_val`
  2482. ac_new_val_w=`echo x $ac_new_val`
  2483. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2484. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2485. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2486. ac_cache_corrupted=:
  2487. else
  2488. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2489. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2490. eval $ac_var=\$ac_old_val
  2491. fi
  2492. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2493. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2494. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2495. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2496. fi;;
  2497. esac
  2498. # Pass precious variables to config.status.
  2499. if test "$ac_new_set" = set; then
  2500. case $ac_new_val in
  2501. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2502. *) ac_arg=$ac_var=$ac_new_val ;;
  2503. esac
  2504. case " $ac_configure_args " in
  2505. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2506. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2507. esac
  2508. fi
  2509. done
  2510. if $ac_cache_corrupted; then
  2511. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2512. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2513. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2514. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2515. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2516. fi
  2517. ## -------------------- ##
  2518. ## Main body of script. ##
  2519. ## -------------------- ##
  2520. ac_ext=c
  2521. ac_cpp='$CPP $CPPFLAGS'
  2522. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2523. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2524. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2525. am__api_version='1.16'
  2526. ac_aux_dir=
  2527. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2528. if test -f "$ac_dir/install-sh"; then
  2529. ac_aux_dir=$ac_dir
  2530. ac_install_sh="$ac_aux_dir/install-sh -c"
  2531. break
  2532. elif test -f "$ac_dir/install.sh"; then
  2533. ac_aux_dir=$ac_dir
  2534. ac_install_sh="$ac_aux_dir/install.sh -c"
  2535. break
  2536. elif test -f "$ac_dir/shtool"; then
  2537. ac_aux_dir=$ac_dir
  2538. ac_install_sh="$ac_aux_dir/shtool install -c"
  2539. break
  2540. fi
  2541. done
  2542. if test -z "$ac_aux_dir"; then
  2543. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2544. fi
  2545. # These three variables are undocumented and unsupported,
  2546. # and are intended to be withdrawn in a future Autoconf release.
  2547. # They can cause serious problems if a builder's source tree is in a directory
  2548. # whose full name contains unusual characters.
  2549. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2550. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2551. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2552. # Find a good install program. We prefer a C program (faster),
  2553. # so one script is as good as another. But avoid the broken or
  2554. # incompatible versions:
  2555. # SysV /etc/install, /usr/sbin/install
  2556. # SunOS /usr/etc/install
  2557. # IRIX /sbin/install
  2558. # AIX /bin/install
  2559. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2560. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2561. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2562. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2563. # OS/2's system install, which has a completely different semantic
  2564. # ./install, which can be erroneously created by make from ./install.sh.
  2565. # Reject install programs that cannot install multiple files.
  2566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2567. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2568. if test -z "$INSTALL"; then
  2569. if ${ac_cv_path_install+:} false; then :
  2570. $as_echo_n "(cached) " >&6
  2571. else
  2572. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2573. for as_dir in $PATH
  2574. do
  2575. IFS=$as_save_IFS
  2576. test -z "$as_dir" && as_dir=.
  2577. # Account for people who put trailing slashes in PATH elements.
  2578. case $as_dir/ in #((
  2579. ./ | .// | /[cC]/* | \
  2580. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2581. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2582. /usr/ucb/* ) ;;
  2583. *)
  2584. # OSF1 and SCO ODT 3.0 have their own names for install.
  2585. # Don't use installbsd from OSF since it installs stuff as root
  2586. # by default.
  2587. for ac_prog in ginstall scoinst install; do
  2588. for ac_exec_ext in '' $ac_executable_extensions; do
  2589. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2590. if test $ac_prog = install &&
  2591. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2592. # AIX install. It has an incompatible calling convention.
  2593. :
  2594. elif test $ac_prog = install &&
  2595. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2596. # program-specific install script used by HP pwplus--don't use.
  2597. :
  2598. else
  2599. rm -rf conftest.one conftest.two conftest.dir
  2600. echo one > conftest.one
  2601. echo two > conftest.two
  2602. mkdir conftest.dir
  2603. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2604. test -s conftest.one && test -s conftest.two &&
  2605. test -s conftest.dir/conftest.one &&
  2606. test -s conftest.dir/conftest.two
  2607. then
  2608. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2609. break 3
  2610. fi
  2611. fi
  2612. fi
  2613. done
  2614. done
  2615. ;;
  2616. esac
  2617. done
  2618. IFS=$as_save_IFS
  2619. rm -rf conftest.one conftest.two conftest.dir
  2620. fi
  2621. if test "${ac_cv_path_install+set}" = set; then
  2622. INSTALL=$ac_cv_path_install
  2623. else
  2624. # As a last resort, use the slow shell script. Don't cache a
  2625. # value for INSTALL within a source directory, because that will
  2626. # break other packages using the cache if that directory is
  2627. # removed, or if the value is a relative name.
  2628. INSTALL=$ac_install_sh
  2629. fi
  2630. fi
  2631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2632. $as_echo "$INSTALL" >&6; }
  2633. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2634. # It thinks the first close brace ends the variable substitution.
  2635. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2636. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2637. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2639. $as_echo_n "checking whether build environment is sane... " >&6; }
  2640. # Reject unsafe characters in $srcdir or the absolute working directory
  2641. # name. Accept space and tab only in the latter.
  2642. am_lf='
  2643. '
  2644. case `pwd` in
  2645. *[\\\"\#\$\&\'\`$am_lf]*)
  2646. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2647. esac
  2648. case $srcdir in
  2649. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2650. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2651. esac
  2652. # Do 'set' in a subshell so we don't clobber the current shell's
  2653. # arguments. Must try -L first in case configure is actually a
  2654. # symlink; some systems play weird games with the mod time of symlinks
  2655. # (eg FreeBSD returns the mod time of the symlink's containing
  2656. # directory).
  2657. if (
  2658. am_has_slept=no
  2659. for am_try in 1 2; do
  2660. echo "timestamp, slept: $am_has_slept" > conftest.file
  2661. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2662. if test "$*" = "X"; then
  2663. # -L didn't work.
  2664. set X `ls -t "$srcdir/configure" conftest.file`
  2665. fi
  2666. if test "$*" != "X $srcdir/configure conftest.file" \
  2667. && test "$*" != "X conftest.file $srcdir/configure"; then
  2668. # If neither matched, then we have a broken ls. This can happen
  2669. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2670. # broken ls alias from the environment. This has actually
  2671. # happened. Such a system could not be considered "sane".
  2672. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2673. alias in your environment" "$LINENO" 5
  2674. fi
  2675. if test "$2" = conftest.file || test $am_try -eq 2; then
  2676. break
  2677. fi
  2678. # Just in case.
  2679. sleep 1
  2680. am_has_slept=yes
  2681. done
  2682. test "$2" = conftest.file
  2683. )
  2684. then
  2685. # Ok.
  2686. :
  2687. else
  2688. as_fn_error $? "newly created file is older than distributed files!
  2689. Check your system clock" "$LINENO" 5
  2690. fi
  2691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2692. $as_echo "yes" >&6; }
  2693. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2694. # generated files are strictly newer.
  2695. am_sleep_pid=
  2696. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2697. ( sleep 1 ) &
  2698. am_sleep_pid=$!
  2699. fi
  2700. rm -f conftest.file
  2701. test "$program_prefix" != NONE &&
  2702. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2703. # Use a double $ so make ignores it.
  2704. test "$program_suffix" != NONE &&
  2705. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2706. # Double any \ or $.
  2707. # By default was `s,x,x', remove it if useless.
  2708. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2709. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2710. # Expand $ac_aux_dir to an absolute path.
  2711. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2712. if test x"${MISSING+set}" != xset; then
  2713. case $am_aux_dir in
  2714. *\ * | *\ *)
  2715. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2716. *)
  2717. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2718. esac
  2719. fi
  2720. # Use eval to expand $SHELL
  2721. if eval "$MISSING --is-lightweight"; then
  2722. am_missing_run="$MISSING "
  2723. else
  2724. am_missing_run=
  2725. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2726. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2727. fi
  2728. if test x"${install_sh+set}" != xset; then
  2729. case $am_aux_dir in
  2730. *\ * | *\ *)
  2731. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2732. *)
  2733. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2734. esac
  2735. fi
  2736. # Installed binaries are usually stripped using 'strip' when the user
  2737. # run "make install-strip". However 'strip' might not be the right
  2738. # tool to use in cross-compilation environments, therefore Automake
  2739. # will honor the 'STRIP' environment variable to overrule this program.
  2740. if test "$cross_compiling" != no; then
  2741. if test -n "$ac_tool_prefix"; then
  2742. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2743. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2745. $as_echo_n "checking for $ac_word... " >&6; }
  2746. if ${ac_cv_prog_STRIP+:} false; then :
  2747. $as_echo_n "(cached) " >&6
  2748. else
  2749. if test -n "$STRIP"; then
  2750. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2751. else
  2752. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2753. for as_dir in $PATH
  2754. do
  2755. IFS=$as_save_IFS
  2756. test -z "$as_dir" && as_dir=.
  2757. for ac_exec_ext in '' $ac_executable_extensions; do
  2758. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2759. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2760. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2761. break 2
  2762. fi
  2763. done
  2764. done
  2765. IFS=$as_save_IFS
  2766. fi
  2767. fi
  2768. STRIP=$ac_cv_prog_STRIP
  2769. if test -n "$STRIP"; then
  2770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2771. $as_echo "$STRIP" >&6; }
  2772. else
  2773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2774. $as_echo "no" >&6; }
  2775. fi
  2776. fi
  2777. if test -z "$ac_cv_prog_STRIP"; then
  2778. ac_ct_STRIP=$STRIP
  2779. # Extract the first word of "strip", so it can be a program name with args.
  2780. set dummy strip; ac_word=$2
  2781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2782. $as_echo_n "checking for $ac_word... " >&6; }
  2783. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2784. $as_echo_n "(cached) " >&6
  2785. else
  2786. if test -n "$ac_ct_STRIP"; then
  2787. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2788. else
  2789. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2790. for as_dir in $PATH
  2791. do
  2792. IFS=$as_save_IFS
  2793. test -z "$as_dir" && as_dir=.
  2794. for ac_exec_ext in '' $ac_executable_extensions; do
  2795. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2796. ac_cv_prog_ac_ct_STRIP="strip"
  2797. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2798. break 2
  2799. fi
  2800. done
  2801. done
  2802. IFS=$as_save_IFS
  2803. fi
  2804. fi
  2805. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2806. if test -n "$ac_ct_STRIP"; then
  2807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2808. $as_echo "$ac_ct_STRIP" >&6; }
  2809. else
  2810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2811. $as_echo "no" >&6; }
  2812. fi
  2813. if test "x$ac_ct_STRIP" = x; then
  2814. STRIP=":"
  2815. else
  2816. case $cross_compiling:$ac_tool_warned in
  2817. yes:)
  2818. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2819. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2820. ac_tool_warned=yes ;;
  2821. esac
  2822. STRIP=$ac_ct_STRIP
  2823. fi
  2824. else
  2825. STRIP="$ac_cv_prog_STRIP"
  2826. fi
  2827. fi
  2828. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2830. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2831. if test -z "$MKDIR_P"; then
  2832. if ${ac_cv_path_mkdir+:} false; then :
  2833. $as_echo_n "(cached) " >&6
  2834. else
  2835. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2836. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2837. do
  2838. IFS=$as_save_IFS
  2839. test -z "$as_dir" && as_dir=.
  2840. for ac_prog in mkdir gmkdir; do
  2841. for ac_exec_ext in '' $ac_executable_extensions; do
  2842. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2843. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2844. 'mkdir (GNU coreutils) '* | \
  2845. 'mkdir (coreutils) '* | \
  2846. 'mkdir (fileutils) '4.1*)
  2847. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2848. break 3;;
  2849. esac
  2850. done
  2851. done
  2852. done
  2853. IFS=$as_save_IFS
  2854. fi
  2855. test -d ./--version && rmdir ./--version
  2856. if test "${ac_cv_path_mkdir+set}" = set; then
  2857. MKDIR_P="$ac_cv_path_mkdir -p"
  2858. else
  2859. # As a last resort, use the slow shell script. Don't cache a
  2860. # value for MKDIR_P within a source directory, because that will
  2861. # break other packages using the cache if that directory is
  2862. # removed, or if the value is a relative name.
  2863. MKDIR_P="$ac_install_sh -d"
  2864. fi
  2865. fi
  2866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2867. $as_echo "$MKDIR_P" >&6; }
  2868. for ac_prog in gawk mawk nawk awk
  2869. do
  2870. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2871. set dummy $ac_prog; ac_word=$2
  2872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2873. $as_echo_n "checking for $ac_word... " >&6; }
  2874. if ${ac_cv_prog_AWK+:} false; then :
  2875. $as_echo_n "(cached) " >&6
  2876. else
  2877. if test -n "$AWK"; then
  2878. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2879. else
  2880. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2881. for as_dir in $PATH
  2882. do
  2883. IFS=$as_save_IFS
  2884. test -z "$as_dir" && as_dir=.
  2885. for ac_exec_ext in '' $ac_executable_extensions; do
  2886. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2887. ac_cv_prog_AWK="$ac_prog"
  2888. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2889. break 2
  2890. fi
  2891. done
  2892. done
  2893. IFS=$as_save_IFS
  2894. fi
  2895. fi
  2896. AWK=$ac_cv_prog_AWK
  2897. if test -n "$AWK"; then
  2898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2899. $as_echo "$AWK" >&6; }
  2900. else
  2901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2902. $as_echo "no" >&6; }
  2903. fi
  2904. test -n "$AWK" && break
  2905. done
  2906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2907. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2908. set x ${MAKE-make}
  2909. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2910. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2911. $as_echo_n "(cached) " >&6
  2912. else
  2913. cat >conftest.make <<\_ACEOF
  2914. SHELL = /bin/sh
  2915. all:
  2916. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2917. _ACEOF
  2918. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2919. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2920. *@@@%%%=?*=@@@%%%*)
  2921. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2922. *)
  2923. eval ac_cv_prog_make_${ac_make}_set=no;;
  2924. esac
  2925. rm -f conftest.make
  2926. fi
  2927. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2929. $as_echo "yes" >&6; }
  2930. SET_MAKE=
  2931. else
  2932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2933. $as_echo "no" >&6; }
  2934. SET_MAKE="MAKE=${MAKE-make}"
  2935. fi
  2936. rm -rf .tst 2>/dev/null
  2937. mkdir .tst 2>/dev/null
  2938. if test -d .tst; then
  2939. am__leading_dot=.
  2940. else
  2941. am__leading_dot=_
  2942. fi
  2943. rmdir .tst 2>/dev/null
  2944. # Check whether --enable-silent-rules was given.
  2945. if test "${enable_silent_rules+set}" = set; then :
  2946. enableval=$enable_silent_rules;
  2947. fi
  2948. case $enable_silent_rules in # (((
  2949. yes) AM_DEFAULT_VERBOSITY=0;;
  2950. no) AM_DEFAULT_VERBOSITY=1;;
  2951. *) AM_DEFAULT_VERBOSITY=1;;
  2952. esac
  2953. am_make=${MAKE-make}
  2954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2955. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2956. if ${am_cv_make_support_nested_variables+:} false; then :
  2957. $as_echo_n "(cached) " >&6
  2958. else
  2959. if $as_echo 'TRUE=$(BAR$(V))
  2960. BAR0=false
  2961. BAR1=true
  2962. V=1
  2963. am__doit:
  2964. @$(TRUE)
  2965. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2966. am_cv_make_support_nested_variables=yes
  2967. else
  2968. am_cv_make_support_nested_variables=no
  2969. fi
  2970. fi
  2971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2972. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2973. if test $am_cv_make_support_nested_variables = yes; then
  2974. AM_V='$(V)'
  2975. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2976. else
  2977. AM_V=$AM_DEFAULT_VERBOSITY
  2978. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2979. fi
  2980. AM_BACKSLASH='\'
  2981. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2982. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2983. # is not polluted with repeated "-I."
  2984. am__isrc=' -I$(srcdir)'
  2985. # test to see if srcdir already configured
  2986. if test -f $srcdir/config.status; then
  2987. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2988. fi
  2989. fi
  2990. # test whether we have cygpath
  2991. if test -z "$CYGPATH_W"; then
  2992. if (cygpath --version) >/dev/null 2>/dev/null; then
  2993. CYGPATH_W='cygpath -w'
  2994. else
  2995. CYGPATH_W=echo
  2996. fi
  2997. fi
  2998. # Define the identity of the package.
  2999. PACKAGE='tpm2-tss'
  3000. VERSION='3.2.0'
  3001. cat >>confdefs.h <<_ACEOF
  3002. #define PACKAGE "$PACKAGE"
  3003. _ACEOF
  3004. cat >>confdefs.h <<_ACEOF
  3005. #define VERSION "$VERSION"
  3006. _ACEOF
  3007. # Some tools Automake needs.
  3008. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3009. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3010. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3011. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3012. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3013. # For better backward compatibility. To be removed once Automake 1.9.x
  3014. # dies out for good. For more background, see:
  3015. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3016. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3017. mkdir_p='$(MKDIR_P)'
  3018. # We need awk for the "check" target (and possibly the TAP driver). The
  3019. # system "awk" is bad on some platforms.
  3020. # Always define AMTAR for backward compatibility. Yes, it's still used
  3021. # in the wild :-( We should find a proper way to deprecate it ...
  3022. AMTAR='$${TAR-tar}'
  3023. # We'll loop over all known methods to create a tar archive until one works.
  3024. _am_tools='gnutar pax cpio none'
  3025. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  3026. # POSIX will say in a future version that running "rm -f" with no argument
  3027. # is OK; and we want to be able to make that assumption in our Makefile
  3028. # recipes. So use an aggressive probe to check that the usage we want is
  3029. # actually supported "in the wild" to an acceptable degree.
  3030. # See automake bug#10828.
  3031. # To make any issue more visible, cause the running configure to be aborted
  3032. # by default if the 'rm' program in use doesn't match our expectations; the
  3033. # user can still override this though.
  3034. if rm -f && rm -fr && rm -rf; then : OK; else
  3035. cat >&2 <<'END'
  3036. Oops!
  3037. Your 'rm' program seems unable to run without file operands specified
  3038. on the command line, even when the '-f' option is present. This is contrary
  3039. to the behaviour of most rm programs out there, and not conforming with
  3040. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  3041. Please tell bug-automake@gnu.org about your system, including the value
  3042. of your $PATH and any error possibly output before this message. This
  3043. can help us improve future automake versions.
  3044. END
  3045. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  3046. echo 'Configuration will proceed anyway, since you have set the' >&2
  3047. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  3048. echo >&2
  3049. else
  3050. cat >&2 <<'END'
  3051. Aborting the configuration process, to ensure you take notice of the issue.
  3052. You can download and install GNU coreutils to get an 'rm' implementation
  3053. that behaves properly: <https://www.gnu.org/software/coreutils/>.
  3054. If you want to complete the configuration process using your problematic
  3055. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  3056. to "yes", and re-run configure.
  3057. END
  3058. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  3059. fi
  3060. fi
  3061. # Check whether --enable-silent-rules was given.
  3062. if test "${enable_silent_rules+set}" = set; then :
  3063. enableval=$enable_silent_rules;
  3064. fi
  3065. case $enable_silent_rules in # (((
  3066. yes) AM_DEFAULT_VERBOSITY=0;;
  3067. no) AM_DEFAULT_VERBOSITY=1;;
  3068. *) AM_DEFAULT_VERBOSITY=0;;
  3069. esac
  3070. am_make=${MAKE-make}
  3071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3072. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  3073. if ${am_cv_make_support_nested_variables+:} false; then :
  3074. $as_echo_n "(cached) " >&6
  3075. else
  3076. if $as_echo 'TRUE=$(BAR$(V))
  3077. BAR0=false
  3078. BAR1=true
  3079. V=1
  3080. am__doit:
  3081. @$(TRUE)
  3082. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3083. am_cv_make_support_nested_variables=yes
  3084. else
  3085. am_cv_make_support_nested_variables=no
  3086. fi
  3087. fi
  3088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3089. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3090. if test $am_cv_make_support_nested_variables = yes; then
  3091. AM_V='$(V)'
  3092. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3093. else
  3094. AM_V=$AM_DEFAULT_VERBOSITY
  3095. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3096. fi
  3097. AM_BACKSLASH='\'
  3098. #Backward compatible setting of "silent-rules"
  3099. ac_config_headers="$ac_config_headers config.h"
  3100. ac_config_files="$ac_config_files Makefile Doxyfile lib/tss2-sys.pc lib/tss2-esys.pc lib/tss2-mu.pc lib/tss2-tcti-device.pc lib/tss2-tcti-mssim.pc lib/tss2-tcti-swtpm.pc lib/tss2-tcti-libtpms.pc lib/tss2-tcti-pcap.pc lib/tss2-rc.pc lib/tss2-tctildr.pc lib/tss2-fapi.pc lib/tss2-tcti-cmd.pc"
  3101. # propagate configure arguments to distcheck
  3102. DISTCHECK_CONFIGURE_FLAGS=$ac_configure_args
  3103. # Make sure we can run config.sub.
  3104. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3105. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3107. $as_echo_n "checking build system type... " >&6; }
  3108. if ${ac_cv_build+:} false; then :
  3109. $as_echo_n "(cached) " >&6
  3110. else
  3111. ac_build_alias=$build_alias
  3112. test "x$ac_build_alias" = x &&
  3113. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3114. test "x$ac_build_alias" = x &&
  3115. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3116. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3117. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3118. fi
  3119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3120. $as_echo "$ac_cv_build" >&6; }
  3121. case $ac_cv_build in
  3122. *-*-*) ;;
  3123. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3124. esac
  3125. build=$ac_cv_build
  3126. ac_save_IFS=$IFS; IFS='-'
  3127. set x $ac_cv_build
  3128. shift
  3129. build_cpu=$1
  3130. build_vendor=$2
  3131. shift; shift
  3132. # Remember, the first character of IFS is used to create $*,
  3133. # except with old shells:
  3134. build_os=$*
  3135. IFS=$ac_save_IFS
  3136. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3138. $as_echo_n "checking host system type... " >&6; }
  3139. if ${ac_cv_host+:} false; then :
  3140. $as_echo_n "(cached) " >&6
  3141. else
  3142. if test "x$host_alias" = x; then
  3143. ac_cv_host=$ac_cv_build
  3144. else
  3145. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3146. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3147. fi
  3148. fi
  3149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3150. $as_echo "$ac_cv_host" >&6; }
  3151. case $ac_cv_host in
  3152. *-*-*) ;;
  3153. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3154. esac
  3155. host=$ac_cv_host
  3156. ac_save_IFS=$IFS; IFS='-'
  3157. set x $ac_cv_host
  3158. shift
  3159. host_cpu=$1
  3160. host_vendor=$2
  3161. shift; shift
  3162. # Remember, the first character of IFS is used to create $*,
  3163. # except with old shells:
  3164. host_os=$*
  3165. IFS=$ac_save_IFS
  3166. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3167. # $is_release = ($PACKAGE_VERSION has a dash)
  3168. case $PACKAGE_VERSION in #(
  3169. *-*) :
  3170. ax_is_release=no ;; #(
  3171. *) :
  3172. ax_is_release=yes ;; #(
  3173. *) :
  3174. ;;
  3175. esac
  3176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5
  3177. $as_echo_n "checking whether to enable debugging... " >&6; }
  3178. ax_enable_debug_default=info
  3179. ax_enable_debug_is_release=$ax_is_release
  3180. # If this is a release, override the default.
  3181. if test "$ax_enable_debug_is_release" = "yes"; then :
  3182. ax_enable_debug_default="no"
  3183. fi
  3184. # Check whether --enable-debug was given.
  3185. if test "${enable_debug+set}" = set; then :
  3186. enableval=$enable_debug;
  3187. else
  3188. enable_debug=$ax_enable_debug_default
  3189. fi
  3190. # empty mean debug yes
  3191. if test "x$enable_debug" = "x"; then :
  3192. enable_debug="yes"
  3193. fi
  3194. # case of debug
  3195. case $enable_debug in #(
  3196. yes) :
  3197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3198. $as_echo "yes" >&6; }
  3199. CFLAGS="${CFLAGS} -g -O0"
  3200. CXXFLAGS="${CXXFLAGS} -g -O0"
  3201. FFLAGS="${FFLAGS} -g -O0"
  3202. FCFLAGS="${FCFLAGS} -g -O0"
  3203. OBJCFLAGS="${OBJCFLAGS} -g -O0"
  3204. ;; #(
  3205. info) :
  3206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: info" >&5
  3207. $as_echo "info" >&6; }
  3208. CFLAGS="${CFLAGS} -g"
  3209. CXXFLAGS="${CXXFLAGS} -g"
  3210. FFLAGS="${FFLAGS} -g"
  3211. FCFLAGS="${FCFLAGS} -g"
  3212. OBJCFLAGS="${OBJCFLAGS} -g"
  3213. ;; #(
  3214. profile) :
  3215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: profile" >&5
  3216. $as_echo "profile" >&6; }
  3217. CFLAGS="${CFLAGS} -g -pg"
  3218. CXXFLAGS="${CXXFLAGS} -g -pg"
  3219. FFLAGS="${FFLAGS} -g -pg"
  3220. FCFLAGS="${FCFLAGS} -g -pg"
  3221. OBJCFLAGS="${OBJCFLAGS} -g -pg"
  3222. LDFLAGS="${LDFLAGS} -pg"
  3223. ;; #(
  3224. *) :
  3225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3226. $as_echo "no" >&6; }
  3227. if test "x${CFLAGS+set}" != "xset"; then :
  3228. CFLAGS=""
  3229. fi
  3230. if test "x${CXXFLAGS+set}" != "xset"; then :
  3231. CXXFLAGS=""
  3232. fi
  3233. if test "x${FFLAGS+set}" != "xset"; then :
  3234. FFLAGS=""
  3235. fi
  3236. if test "x${FCFLAGS+set}" != "xset"; then :
  3237. FCFLAGS=""
  3238. fi
  3239. if test "x${OBJCFLAGS+set}" != "xset"; then :
  3240. OBJCFLAGS=""
  3241. fi
  3242. ;;
  3243. esac
  3244. if test "x$enable_debug" = "xyes"; then :
  3245. else
  3246. $as_echo "#define NDEBUG 1" >>confdefs.h
  3247. fi
  3248. ax_enable_debug=$enable_debug
  3249. ac_ext=c
  3250. ac_cpp='$CPP $CPPFLAGS'
  3251. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3252. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3253. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3254. if test -n "$ac_tool_prefix"; then
  3255. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3256. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3258. $as_echo_n "checking for $ac_word... " >&6; }
  3259. if ${ac_cv_prog_CC+:} false; then :
  3260. $as_echo_n "(cached) " >&6
  3261. else
  3262. if test -n "$CC"; then
  3263. ac_cv_prog_CC="$CC" # Let the user override the test.
  3264. else
  3265. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3266. for as_dir in $PATH
  3267. do
  3268. IFS=$as_save_IFS
  3269. test -z "$as_dir" && as_dir=.
  3270. for ac_exec_ext in '' $ac_executable_extensions; do
  3271. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3272. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3273. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3274. break 2
  3275. fi
  3276. done
  3277. done
  3278. IFS=$as_save_IFS
  3279. fi
  3280. fi
  3281. CC=$ac_cv_prog_CC
  3282. if test -n "$CC"; then
  3283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3284. $as_echo "$CC" >&6; }
  3285. else
  3286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3287. $as_echo "no" >&6; }
  3288. fi
  3289. fi
  3290. if test -z "$ac_cv_prog_CC"; then
  3291. ac_ct_CC=$CC
  3292. # Extract the first word of "gcc", so it can be a program name with args.
  3293. set dummy gcc; ac_word=$2
  3294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3295. $as_echo_n "checking for $ac_word... " >&6; }
  3296. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3297. $as_echo_n "(cached) " >&6
  3298. else
  3299. if test -n "$ac_ct_CC"; then
  3300. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3301. else
  3302. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3303. for as_dir in $PATH
  3304. do
  3305. IFS=$as_save_IFS
  3306. test -z "$as_dir" && as_dir=.
  3307. for ac_exec_ext in '' $ac_executable_extensions; do
  3308. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3309. ac_cv_prog_ac_ct_CC="gcc"
  3310. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3311. break 2
  3312. fi
  3313. done
  3314. done
  3315. IFS=$as_save_IFS
  3316. fi
  3317. fi
  3318. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3319. if test -n "$ac_ct_CC"; then
  3320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3321. $as_echo "$ac_ct_CC" >&6; }
  3322. else
  3323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3324. $as_echo "no" >&6; }
  3325. fi
  3326. if test "x$ac_ct_CC" = x; then
  3327. CC=""
  3328. else
  3329. case $cross_compiling:$ac_tool_warned in
  3330. yes:)
  3331. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3332. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3333. ac_tool_warned=yes ;;
  3334. esac
  3335. CC=$ac_ct_CC
  3336. fi
  3337. else
  3338. CC="$ac_cv_prog_CC"
  3339. fi
  3340. if test -z "$CC"; then
  3341. if test -n "$ac_tool_prefix"; then
  3342. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3343. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3345. $as_echo_n "checking for $ac_word... " >&6; }
  3346. if ${ac_cv_prog_CC+:} false; then :
  3347. $as_echo_n "(cached) " >&6
  3348. else
  3349. if test -n "$CC"; then
  3350. ac_cv_prog_CC="$CC" # Let the user override the test.
  3351. else
  3352. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3353. for as_dir in $PATH
  3354. do
  3355. IFS=$as_save_IFS
  3356. test -z "$as_dir" && as_dir=.
  3357. for ac_exec_ext in '' $ac_executable_extensions; do
  3358. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3359. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3360. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3361. break 2
  3362. fi
  3363. done
  3364. done
  3365. IFS=$as_save_IFS
  3366. fi
  3367. fi
  3368. CC=$ac_cv_prog_CC
  3369. if test -n "$CC"; then
  3370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3371. $as_echo "$CC" >&6; }
  3372. else
  3373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3374. $as_echo "no" >&6; }
  3375. fi
  3376. fi
  3377. fi
  3378. if test -z "$CC"; then
  3379. # Extract the first word of "cc", so it can be a program name with args.
  3380. set dummy cc; ac_word=$2
  3381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3382. $as_echo_n "checking for $ac_word... " >&6; }
  3383. if ${ac_cv_prog_CC+:} false; then :
  3384. $as_echo_n "(cached) " >&6
  3385. else
  3386. if test -n "$CC"; then
  3387. ac_cv_prog_CC="$CC" # Let the user override the test.
  3388. else
  3389. ac_prog_rejected=no
  3390. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3391. for as_dir in $PATH
  3392. do
  3393. IFS=$as_save_IFS
  3394. test -z "$as_dir" && as_dir=.
  3395. for ac_exec_ext in '' $ac_executable_extensions; do
  3396. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3397. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3398. ac_prog_rejected=yes
  3399. continue
  3400. fi
  3401. ac_cv_prog_CC="cc"
  3402. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3403. break 2
  3404. fi
  3405. done
  3406. done
  3407. IFS=$as_save_IFS
  3408. if test $ac_prog_rejected = yes; then
  3409. # We found a bogon in the path, so make sure we never use it.
  3410. set dummy $ac_cv_prog_CC
  3411. shift
  3412. if test $# != 0; then
  3413. # We chose a different compiler from the bogus one.
  3414. # However, it has the same basename, so the bogon will be chosen
  3415. # first if we set CC to just the basename; use the full file name.
  3416. shift
  3417. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3418. fi
  3419. fi
  3420. fi
  3421. fi
  3422. CC=$ac_cv_prog_CC
  3423. if test -n "$CC"; then
  3424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3425. $as_echo "$CC" >&6; }
  3426. else
  3427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3428. $as_echo "no" >&6; }
  3429. fi
  3430. fi
  3431. if test -z "$CC"; then
  3432. if test -n "$ac_tool_prefix"; then
  3433. for ac_prog in cl.exe
  3434. do
  3435. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3436. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3438. $as_echo_n "checking for $ac_word... " >&6; }
  3439. if ${ac_cv_prog_CC+:} false; then :
  3440. $as_echo_n "(cached) " >&6
  3441. else
  3442. if test -n "$CC"; then
  3443. ac_cv_prog_CC="$CC" # Let the user override the test.
  3444. else
  3445. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3446. for as_dir in $PATH
  3447. do
  3448. IFS=$as_save_IFS
  3449. test -z "$as_dir" && as_dir=.
  3450. for ac_exec_ext in '' $ac_executable_extensions; do
  3451. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3452. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3453. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3454. break 2
  3455. fi
  3456. done
  3457. done
  3458. IFS=$as_save_IFS
  3459. fi
  3460. fi
  3461. CC=$ac_cv_prog_CC
  3462. if test -n "$CC"; then
  3463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3464. $as_echo "$CC" >&6; }
  3465. else
  3466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3467. $as_echo "no" >&6; }
  3468. fi
  3469. test -n "$CC" && break
  3470. done
  3471. fi
  3472. if test -z "$CC"; then
  3473. ac_ct_CC=$CC
  3474. for ac_prog in cl.exe
  3475. do
  3476. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3477. set dummy $ac_prog; ac_word=$2
  3478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3479. $as_echo_n "checking for $ac_word... " >&6; }
  3480. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3481. $as_echo_n "(cached) " >&6
  3482. else
  3483. if test -n "$ac_ct_CC"; then
  3484. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3485. else
  3486. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3487. for as_dir in $PATH
  3488. do
  3489. IFS=$as_save_IFS
  3490. test -z "$as_dir" && as_dir=.
  3491. for ac_exec_ext in '' $ac_executable_extensions; do
  3492. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3493. ac_cv_prog_ac_ct_CC="$ac_prog"
  3494. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3495. break 2
  3496. fi
  3497. done
  3498. done
  3499. IFS=$as_save_IFS
  3500. fi
  3501. fi
  3502. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3503. if test -n "$ac_ct_CC"; then
  3504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3505. $as_echo "$ac_ct_CC" >&6; }
  3506. else
  3507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3508. $as_echo "no" >&6; }
  3509. fi
  3510. test -n "$ac_ct_CC" && break
  3511. done
  3512. if test "x$ac_ct_CC" = x; then
  3513. CC=""
  3514. else
  3515. case $cross_compiling:$ac_tool_warned in
  3516. yes:)
  3517. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3518. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3519. ac_tool_warned=yes ;;
  3520. esac
  3521. CC=$ac_ct_CC
  3522. fi
  3523. fi
  3524. fi
  3525. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3526. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3527. as_fn_error $? "no acceptable C compiler found in \$PATH
  3528. See \`config.log' for more details" "$LINENO" 5; }
  3529. # Provide some information about the compiler.
  3530. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3531. set X $ac_compile
  3532. ac_compiler=$2
  3533. for ac_option in --version -v -V -qversion; do
  3534. { { ac_try="$ac_compiler $ac_option >&5"
  3535. case "(($ac_try" in
  3536. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3537. *) ac_try_echo=$ac_try;;
  3538. esac
  3539. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3540. $as_echo "$ac_try_echo"; } >&5
  3541. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3542. ac_status=$?
  3543. if test -s conftest.err; then
  3544. sed '10a\
  3545. ... rest of stderr output deleted ...
  3546. 10q' conftest.err >conftest.er1
  3547. cat conftest.er1 >&5
  3548. fi
  3549. rm -f conftest.er1 conftest.err
  3550. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3551. test $ac_status = 0; }
  3552. done
  3553. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3554. /* end confdefs.h. */
  3555. int
  3556. main ()
  3557. {
  3558. ;
  3559. return 0;
  3560. }
  3561. _ACEOF
  3562. ac_clean_files_save=$ac_clean_files
  3563. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3564. # Try to create an executable without -o first, disregard a.out.
  3565. # It will help us diagnose broken compilers, and finding out an intuition
  3566. # of exeext.
  3567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3568. $as_echo_n "checking whether the C compiler works... " >&6; }
  3569. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3570. # The possible output files:
  3571. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3572. ac_rmfiles=
  3573. for ac_file in $ac_files
  3574. do
  3575. case $ac_file in
  3576. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3577. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3578. esac
  3579. done
  3580. rm -f $ac_rmfiles
  3581. if { { ac_try="$ac_link_default"
  3582. case "(($ac_try" in
  3583. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3584. *) ac_try_echo=$ac_try;;
  3585. esac
  3586. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3587. $as_echo "$ac_try_echo"; } >&5
  3588. (eval "$ac_link_default") 2>&5
  3589. ac_status=$?
  3590. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3591. test $ac_status = 0; }; then :
  3592. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3593. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3594. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3595. # so that the user can short-circuit this test for compilers unknown to
  3596. # Autoconf.
  3597. for ac_file in $ac_files ''
  3598. do
  3599. test -f "$ac_file" || continue
  3600. case $ac_file in
  3601. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3602. ;;
  3603. [ab].out )
  3604. # We found the default executable, but exeext='' is most
  3605. # certainly right.
  3606. break;;
  3607. *.* )
  3608. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3609. then :; else
  3610. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3611. fi
  3612. # We set ac_cv_exeext here because the later test for it is not
  3613. # safe: cross compilers may not add the suffix if given an `-o'
  3614. # argument, so we may need to know it at that point already.
  3615. # Even if this section looks crufty: it has the advantage of
  3616. # actually working.
  3617. break;;
  3618. * )
  3619. break;;
  3620. esac
  3621. done
  3622. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3623. else
  3624. ac_file=''
  3625. fi
  3626. if test -z "$ac_file"; then :
  3627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3628. $as_echo "no" >&6; }
  3629. $as_echo "$as_me: failed program was:" >&5
  3630. sed 's/^/| /' conftest.$ac_ext >&5
  3631. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3632. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3633. as_fn_error 77 "C compiler cannot create executables
  3634. See \`config.log' for more details" "$LINENO" 5; }
  3635. else
  3636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3637. $as_echo "yes" >&6; }
  3638. fi
  3639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3640. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3642. $as_echo "$ac_file" >&6; }
  3643. ac_exeext=$ac_cv_exeext
  3644. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3645. ac_clean_files=$ac_clean_files_save
  3646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3647. $as_echo_n "checking for suffix of executables... " >&6; }
  3648. if { { ac_try="$ac_link"
  3649. case "(($ac_try" in
  3650. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3651. *) ac_try_echo=$ac_try;;
  3652. esac
  3653. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3654. $as_echo "$ac_try_echo"; } >&5
  3655. (eval "$ac_link") 2>&5
  3656. ac_status=$?
  3657. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3658. test $ac_status = 0; }; then :
  3659. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3660. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3661. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3662. # `rm'.
  3663. for ac_file in conftest.exe conftest conftest.*; do
  3664. test -f "$ac_file" || continue
  3665. case $ac_file in
  3666. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3667. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3668. break;;
  3669. * ) break;;
  3670. esac
  3671. done
  3672. else
  3673. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3674. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3675. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3676. See \`config.log' for more details" "$LINENO" 5; }
  3677. fi
  3678. rm -f conftest conftest$ac_cv_exeext
  3679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3680. $as_echo "$ac_cv_exeext" >&6; }
  3681. rm -f conftest.$ac_ext
  3682. EXEEXT=$ac_cv_exeext
  3683. ac_exeext=$EXEEXT
  3684. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3685. /* end confdefs.h. */
  3686. #include <stdio.h>
  3687. int
  3688. main ()
  3689. {
  3690. FILE *f = fopen ("conftest.out", "w");
  3691. return ferror (f) || fclose (f) != 0;
  3692. ;
  3693. return 0;
  3694. }
  3695. _ACEOF
  3696. ac_clean_files="$ac_clean_files conftest.out"
  3697. # Check that the compiler produces executables we can run. If not, either
  3698. # the compiler is broken, or we cross compile.
  3699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3700. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3701. if test "$cross_compiling" != yes; then
  3702. { { ac_try="$ac_link"
  3703. case "(($ac_try" in
  3704. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3705. *) ac_try_echo=$ac_try;;
  3706. esac
  3707. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3708. $as_echo "$ac_try_echo"; } >&5
  3709. (eval "$ac_link") 2>&5
  3710. ac_status=$?
  3711. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3712. test $ac_status = 0; }
  3713. if { ac_try='./conftest$ac_cv_exeext'
  3714. { { case "(($ac_try" in
  3715. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3716. *) ac_try_echo=$ac_try;;
  3717. esac
  3718. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3719. $as_echo "$ac_try_echo"; } >&5
  3720. (eval "$ac_try") 2>&5
  3721. ac_status=$?
  3722. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3723. test $ac_status = 0; }; }; then
  3724. cross_compiling=no
  3725. else
  3726. if test "$cross_compiling" = maybe; then
  3727. cross_compiling=yes
  3728. else
  3729. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3730. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3731. as_fn_error $? "cannot run C compiled programs.
  3732. If you meant to cross compile, use \`--host'.
  3733. See \`config.log' for more details" "$LINENO" 5; }
  3734. fi
  3735. fi
  3736. fi
  3737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3738. $as_echo "$cross_compiling" >&6; }
  3739. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3740. ac_clean_files=$ac_clean_files_save
  3741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3742. $as_echo_n "checking for suffix of object files... " >&6; }
  3743. if ${ac_cv_objext+:} false; then :
  3744. $as_echo_n "(cached) " >&6
  3745. else
  3746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3747. /* end confdefs.h. */
  3748. int
  3749. main ()
  3750. {
  3751. ;
  3752. return 0;
  3753. }
  3754. _ACEOF
  3755. rm -f conftest.o conftest.obj
  3756. if { { ac_try="$ac_compile"
  3757. case "(($ac_try" in
  3758. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3759. *) ac_try_echo=$ac_try;;
  3760. esac
  3761. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3762. $as_echo "$ac_try_echo"; } >&5
  3763. (eval "$ac_compile") 2>&5
  3764. ac_status=$?
  3765. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3766. test $ac_status = 0; }; then :
  3767. for ac_file in conftest.o conftest.obj conftest.*; do
  3768. test -f "$ac_file" || continue;
  3769. case $ac_file in
  3770. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3771. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3772. break;;
  3773. esac
  3774. done
  3775. else
  3776. $as_echo "$as_me: failed program was:" >&5
  3777. sed 's/^/| /' conftest.$ac_ext >&5
  3778. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3779. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3780. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3781. See \`config.log' for more details" "$LINENO" 5; }
  3782. fi
  3783. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3784. fi
  3785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3786. $as_echo "$ac_cv_objext" >&6; }
  3787. OBJEXT=$ac_cv_objext
  3788. ac_objext=$OBJEXT
  3789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3790. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3791. if ${ac_cv_c_compiler_gnu+:} false; then :
  3792. $as_echo_n "(cached) " >&6
  3793. else
  3794. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3795. /* end confdefs.h. */
  3796. int
  3797. main ()
  3798. {
  3799. #ifndef __GNUC__
  3800. choke me
  3801. #endif
  3802. ;
  3803. return 0;
  3804. }
  3805. _ACEOF
  3806. if ac_fn_c_try_compile "$LINENO"; then :
  3807. ac_compiler_gnu=yes
  3808. else
  3809. ac_compiler_gnu=no
  3810. fi
  3811. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3812. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3813. fi
  3814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3815. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3816. if test $ac_compiler_gnu = yes; then
  3817. GCC=yes
  3818. else
  3819. GCC=
  3820. fi
  3821. ac_test_CFLAGS=${CFLAGS+set}
  3822. ac_save_CFLAGS=$CFLAGS
  3823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3824. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3825. if ${ac_cv_prog_cc_g+:} false; then :
  3826. $as_echo_n "(cached) " >&6
  3827. else
  3828. ac_save_c_werror_flag=$ac_c_werror_flag
  3829. ac_c_werror_flag=yes
  3830. ac_cv_prog_cc_g=no
  3831. CFLAGS="-g"
  3832. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3833. /* end confdefs.h. */
  3834. int
  3835. main ()
  3836. {
  3837. ;
  3838. return 0;
  3839. }
  3840. _ACEOF
  3841. if ac_fn_c_try_compile "$LINENO"; then :
  3842. ac_cv_prog_cc_g=yes
  3843. else
  3844. CFLAGS=""
  3845. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3846. /* end confdefs.h. */
  3847. int
  3848. main ()
  3849. {
  3850. ;
  3851. return 0;
  3852. }
  3853. _ACEOF
  3854. if ac_fn_c_try_compile "$LINENO"; then :
  3855. else
  3856. ac_c_werror_flag=$ac_save_c_werror_flag
  3857. CFLAGS="-g"
  3858. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3859. /* end confdefs.h. */
  3860. int
  3861. main ()
  3862. {
  3863. ;
  3864. return 0;
  3865. }
  3866. _ACEOF
  3867. if ac_fn_c_try_compile "$LINENO"; then :
  3868. ac_cv_prog_cc_g=yes
  3869. fi
  3870. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3871. fi
  3872. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3873. fi
  3874. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3875. ac_c_werror_flag=$ac_save_c_werror_flag
  3876. fi
  3877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3878. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3879. if test "$ac_test_CFLAGS" = set; then
  3880. CFLAGS=$ac_save_CFLAGS
  3881. elif test $ac_cv_prog_cc_g = yes; then
  3882. if test "$GCC" = yes; then
  3883. CFLAGS="-g -O2"
  3884. else
  3885. CFLAGS="-g"
  3886. fi
  3887. else
  3888. if test "$GCC" = yes; then
  3889. CFLAGS="-O2"
  3890. else
  3891. CFLAGS=
  3892. fi
  3893. fi
  3894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3895. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3896. if ${ac_cv_prog_cc_c89+:} false; then :
  3897. $as_echo_n "(cached) " >&6
  3898. else
  3899. ac_cv_prog_cc_c89=no
  3900. ac_save_CC=$CC
  3901. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3902. /* end confdefs.h. */
  3903. #include <stdarg.h>
  3904. #include <stdio.h>
  3905. struct stat;
  3906. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3907. struct buf { int x; };
  3908. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3909. static char *e (p, i)
  3910. char **p;
  3911. int i;
  3912. {
  3913. return p[i];
  3914. }
  3915. static char *f (char * (*g) (char **, int), char **p, ...)
  3916. {
  3917. char *s;
  3918. va_list v;
  3919. va_start (v,p);
  3920. s = g (p, va_arg (v,int));
  3921. va_end (v);
  3922. return s;
  3923. }
  3924. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3925. function prototypes and stuff, but not '\xHH' hex character constants.
  3926. These don't provoke an error unfortunately, instead are silently treated
  3927. as 'x'. The following induces an error, until -std is added to get
  3928. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3929. array size at least. It's necessary to write '\x00'==0 to get something
  3930. that's true only with -std. */
  3931. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3932. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3933. inside strings and character constants. */
  3934. #define FOO(x) 'x'
  3935. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3936. int test (int i, double x);
  3937. struct s1 {int (*f) (int a);};
  3938. struct s2 {int (*f) (double a);};
  3939. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3940. int argc;
  3941. char **argv;
  3942. int
  3943. main ()
  3944. {
  3945. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3946. ;
  3947. return 0;
  3948. }
  3949. _ACEOF
  3950. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3951. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3952. do
  3953. CC="$ac_save_CC $ac_arg"
  3954. if ac_fn_c_try_compile "$LINENO"; then :
  3955. ac_cv_prog_cc_c89=$ac_arg
  3956. fi
  3957. rm -f core conftest.err conftest.$ac_objext
  3958. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3959. done
  3960. rm -f conftest.$ac_ext
  3961. CC=$ac_save_CC
  3962. fi
  3963. # AC_CACHE_VAL
  3964. case "x$ac_cv_prog_cc_c89" in
  3965. x)
  3966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3967. $as_echo "none needed" >&6; } ;;
  3968. xno)
  3969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3970. $as_echo "unsupported" >&6; } ;;
  3971. *)
  3972. CC="$CC $ac_cv_prog_cc_c89"
  3973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3974. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3975. esac
  3976. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3977. fi
  3978. ac_ext=c
  3979. ac_cpp='$CPP $CPPFLAGS'
  3980. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3981. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3982. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3983. ac_ext=c
  3984. ac_cpp='$CPP $CPPFLAGS'
  3985. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3986. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3987. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3989. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3990. if ${am_cv_prog_cc_c_o+:} false; then :
  3991. $as_echo_n "(cached) " >&6
  3992. else
  3993. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3994. /* end confdefs.h. */
  3995. int
  3996. main ()
  3997. {
  3998. ;
  3999. return 0;
  4000. }
  4001. _ACEOF
  4002. # Make sure it works both with $CC and with simple cc.
  4003. # Following AC_PROG_CC_C_O, we do the test twice because some
  4004. # compilers refuse to overwrite an existing .o file with -o,
  4005. # though they will create one.
  4006. am_cv_prog_cc_c_o=yes
  4007. for am_i in 1 2; do
  4008. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  4009. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  4010. ac_status=$?
  4011. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4012. (exit $ac_status); } \
  4013. && test -f conftest2.$ac_objext; then
  4014. : OK
  4015. else
  4016. am_cv_prog_cc_c_o=no
  4017. break
  4018. fi
  4019. done
  4020. rm -f core conftest*
  4021. unset am_i
  4022. fi
  4023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4024. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  4025. if test "$am_cv_prog_cc_c_o" != yes; then
  4026. # Losing compiler, so override with the script.
  4027. # FIXME: It is wrong to rewrite CC.
  4028. # But if we don't then we get into trouble of one sort or another.
  4029. # A longer-term fix would be to have automake use am__CC in this case,
  4030. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4031. CC="$am_aux_dir/compile $CC"
  4032. fi
  4033. ac_ext=c
  4034. ac_cpp='$CPP $CPPFLAGS'
  4035. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4036. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4037. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4038. DEPDIR="${am__leading_dot}deps"
  4039. ac_config_commands="$ac_config_commands depfiles"
  4040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
  4041. $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
  4042. cat > confinc.mk << 'END'
  4043. am__doit:
  4044. @echo this is the am__doit target >confinc.out
  4045. .PHONY: am__doit
  4046. END
  4047. am__include="#"
  4048. am__quote=
  4049. # BSD make does it like this.
  4050. echo '.include "confinc.mk" # ignored' > confmf.BSD
  4051. # Other make implementations (GNU, Solaris 10, AIX) do it like this.
  4052. echo 'include confinc.mk # ignored' > confmf.GNU
  4053. _am_result=no
  4054. for s in GNU BSD; do
  4055. { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
  4056. (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
  4057. ac_status=$?
  4058. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4059. (exit $ac_status); }
  4060. case $?:`cat confinc.out 2>/dev/null` in #(
  4061. '0:this is the am__doit target') :
  4062. case $s in #(
  4063. BSD) :
  4064. am__include='.include' am__quote='"' ;; #(
  4065. *) :
  4066. am__include='include' am__quote='' ;;
  4067. esac ;; #(
  4068. *) :
  4069. ;;
  4070. esac
  4071. if test "$am__include" != "#"; then
  4072. _am_result="yes ($s style)"
  4073. break
  4074. fi
  4075. done
  4076. rm -f confinc.* confmf.*
  4077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
  4078. $as_echo "${_am_result}" >&6; }
  4079. # Check whether --enable-dependency-tracking was given.
  4080. if test "${enable_dependency_tracking+set}" = set; then :
  4081. enableval=$enable_dependency_tracking;
  4082. fi
  4083. if test "x$enable_dependency_tracking" != xno; then
  4084. am_depcomp="$ac_aux_dir/depcomp"
  4085. AMDEPBACKSLASH='\'
  4086. am__nodep='_no'
  4087. fi
  4088. if test "x$enable_dependency_tracking" != xno; then
  4089. AMDEP_TRUE=
  4090. AMDEP_FALSE='#'
  4091. else
  4092. AMDEP_TRUE='#'
  4093. AMDEP_FALSE=
  4094. fi
  4095. depcc="$CC" am_compiler_list=
  4096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4097. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4098. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4099. $as_echo_n "(cached) " >&6
  4100. else
  4101. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4102. # We make a subdir and do the tests there. Otherwise we can end up
  4103. # making bogus files that we don't know about and never remove. For
  4104. # instance it was reported that on HP-UX the gcc test will end up
  4105. # making a dummy file named 'D' -- because '-MD' means "put the output
  4106. # in D".
  4107. rm -rf conftest.dir
  4108. mkdir conftest.dir
  4109. # Copy depcomp to subdir because otherwise we won't find it if we're
  4110. # using a relative directory.
  4111. cp "$am_depcomp" conftest.dir
  4112. cd conftest.dir
  4113. # We will build objects and dependencies in a subdirectory because
  4114. # it helps to detect inapplicable dependency modes. For instance
  4115. # both Tru64's cc and ICC support -MD to output dependencies as a
  4116. # side effect of compilation, but ICC will put the dependencies in
  4117. # the current directory while Tru64 will put them in the object
  4118. # directory.
  4119. mkdir sub
  4120. am_cv_CC_dependencies_compiler_type=none
  4121. if test "$am_compiler_list" = ""; then
  4122. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4123. fi
  4124. am__universal=false
  4125. case " $depcc " in #(
  4126. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4127. esac
  4128. for depmode in $am_compiler_list; do
  4129. # Setup a source with many dependencies, because some compilers
  4130. # like to wrap large dependency lists on column 80 (with \), and
  4131. # we should not choose a depcomp mode which is confused by this.
  4132. #
  4133. # We need to recreate these files for each test, as the compiler may
  4134. # overwrite some of them when testing with obscure command lines.
  4135. # This happens at least with the AIX C compiler.
  4136. : > sub/conftest.c
  4137. for i in 1 2 3 4 5 6; do
  4138. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4139. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4140. # Solaris 10 /bin/sh.
  4141. echo '/* dummy */' > sub/conftst$i.h
  4142. done
  4143. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4144. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4145. # mode. It turns out that the SunPro C++ compiler does not properly
  4146. # handle '-M -o', and we need to detect this. Also, some Intel
  4147. # versions had trouble with output in subdirs.
  4148. am__obj=sub/conftest.${OBJEXT-o}
  4149. am__minus_obj="-o $am__obj"
  4150. case $depmode in
  4151. gcc)
  4152. # This depmode causes a compiler race in universal mode.
  4153. test "$am__universal" = false || continue
  4154. ;;
  4155. nosideeffect)
  4156. # After this tag, mechanisms are not by side-effect, so they'll
  4157. # only be used when explicitly requested.
  4158. if test "x$enable_dependency_tracking" = xyes; then
  4159. continue
  4160. else
  4161. break
  4162. fi
  4163. ;;
  4164. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4165. # This compiler won't grok '-c -o', but also, the minuso test has
  4166. # not run yet. These depmodes are late enough in the game, and
  4167. # so weak that their functioning should not be impacted.
  4168. am__obj=conftest.${OBJEXT-o}
  4169. am__minus_obj=
  4170. ;;
  4171. none) break ;;
  4172. esac
  4173. if depmode=$depmode \
  4174. source=sub/conftest.c object=$am__obj \
  4175. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4176. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4177. >/dev/null 2>conftest.err &&
  4178. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4179. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4180. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4181. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4182. # icc doesn't choke on unknown options, it will just issue warnings
  4183. # or remarks (even with -Werror). So we grep stderr for any message
  4184. # that says an option was ignored or not supported.
  4185. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4186. # icc: Command line warning: ignoring option '-M'; no argument required
  4187. # The diagnosis changed in icc 8.0:
  4188. # icc: Command line remark: option '-MP' not supported
  4189. if (grep 'ignoring option' conftest.err ||
  4190. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4191. am_cv_CC_dependencies_compiler_type=$depmode
  4192. break
  4193. fi
  4194. fi
  4195. done
  4196. cd ..
  4197. rm -rf conftest.dir
  4198. else
  4199. am_cv_CC_dependencies_compiler_type=none
  4200. fi
  4201. fi
  4202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4203. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4204. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4205. if
  4206. test "x$enable_dependency_tracking" != xno \
  4207. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4208. am__fastdepCC_TRUE=
  4209. am__fastdepCC_FALSE='#'
  4210. else
  4211. am__fastdepCC_TRUE='#'
  4212. am__fastdepCC_FALSE=
  4213. fi
  4214. ac_ext=cpp
  4215. ac_cpp='$CXXCPP $CPPFLAGS'
  4216. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4217. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4218. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4219. if test -z "$CXX"; then
  4220. if test -n "$CCC"; then
  4221. CXX=$CCC
  4222. else
  4223. if test -n "$ac_tool_prefix"; then
  4224. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4225. do
  4226. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4227. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4229. $as_echo_n "checking for $ac_word... " >&6; }
  4230. if ${ac_cv_prog_CXX+:} false; then :
  4231. $as_echo_n "(cached) " >&6
  4232. else
  4233. if test -n "$CXX"; then
  4234. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4235. else
  4236. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4237. for as_dir in $PATH
  4238. do
  4239. IFS=$as_save_IFS
  4240. test -z "$as_dir" && as_dir=.
  4241. for ac_exec_ext in '' $ac_executable_extensions; do
  4242. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4243. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4244. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4245. break 2
  4246. fi
  4247. done
  4248. done
  4249. IFS=$as_save_IFS
  4250. fi
  4251. fi
  4252. CXX=$ac_cv_prog_CXX
  4253. if test -n "$CXX"; then
  4254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  4255. $as_echo "$CXX" >&6; }
  4256. else
  4257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4258. $as_echo "no" >&6; }
  4259. fi
  4260. test -n "$CXX" && break
  4261. done
  4262. fi
  4263. if test -z "$CXX"; then
  4264. ac_ct_CXX=$CXX
  4265. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4266. do
  4267. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4268. set dummy $ac_prog; ac_word=$2
  4269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4270. $as_echo_n "checking for $ac_word... " >&6; }
  4271. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  4272. $as_echo_n "(cached) " >&6
  4273. else
  4274. if test -n "$ac_ct_CXX"; then
  4275. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4276. else
  4277. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4278. for as_dir in $PATH
  4279. do
  4280. IFS=$as_save_IFS
  4281. test -z "$as_dir" && as_dir=.
  4282. for ac_exec_ext in '' $ac_executable_extensions; do
  4283. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4284. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4285. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4286. break 2
  4287. fi
  4288. done
  4289. done
  4290. IFS=$as_save_IFS
  4291. fi
  4292. fi
  4293. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4294. if test -n "$ac_ct_CXX"; then
  4295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  4296. $as_echo "$ac_ct_CXX" >&6; }
  4297. else
  4298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4299. $as_echo "no" >&6; }
  4300. fi
  4301. test -n "$ac_ct_CXX" && break
  4302. done
  4303. if test "x$ac_ct_CXX" = x; then
  4304. CXX="g++"
  4305. else
  4306. case $cross_compiling:$ac_tool_warned in
  4307. yes:)
  4308. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4309. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4310. ac_tool_warned=yes ;;
  4311. esac
  4312. CXX=$ac_ct_CXX
  4313. fi
  4314. fi
  4315. fi
  4316. fi
  4317. # Provide some information about the compiler.
  4318. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  4319. set X $ac_compile
  4320. ac_compiler=$2
  4321. for ac_option in --version -v -V -qversion; do
  4322. { { ac_try="$ac_compiler $ac_option >&5"
  4323. case "(($ac_try" in
  4324. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4325. *) ac_try_echo=$ac_try;;
  4326. esac
  4327. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4328. $as_echo "$ac_try_echo"; } >&5
  4329. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4330. ac_status=$?
  4331. if test -s conftest.err; then
  4332. sed '10a\
  4333. ... rest of stderr output deleted ...
  4334. 10q' conftest.err >conftest.er1
  4335. cat conftest.er1 >&5
  4336. fi
  4337. rm -f conftest.er1 conftest.err
  4338. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4339. test $ac_status = 0; }
  4340. done
  4341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  4342. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  4343. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  4344. $as_echo_n "(cached) " >&6
  4345. else
  4346. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4347. /* end confdefs.h. */
  4348. int
  4349. main ()
  4350. {
  4351. #ifndef __GNUC__
  4352. choke me
  4353. #endif
  4354. ;
  4355. return 0;
  4356. }
  4357. _ACEOF
  4358. if ac_fn_cxx_try_compile "$LINENO"; then :
  4359. ac_compiler_gnu=yes
  4360. else
  4361. ac_compiler_gnu=no
  4362. fi
  4363. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4364. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4365. fi
  4366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  4367. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  4368. if test $ac_compiler_gnu = yes; then
  4369. GXX=yes
  4370. else
  4371. GXX=
  4372. fi
  4373. ac_test_CXXFLAGS=${CXXFLAGS+set}
  4374. ac_save_CXXFLAGS=$CXXFLAGS
  4375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  4376. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  4377. if ${ac_cv_prog_cxx_g+:} false; then :
  4378. $as_echo_n "(cached) " >&6
  4379. else
  4380. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  4381. ac_cxx_werror_flag=yes
  4382. ac_cv_prog_cxx_g=no
  4383. CXXFLAGS="-g"
  4384. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4385. /* end confdefs.h. */
  4386. int
  4387. main ()
  4388. {
  4389. ;
  4390. return 0;
  4391. }
  4392. _ACEOF
  4393. if ac_fn_cxx_try_compile "$LINENO"; then :
  4394. ac_cv_prog_cxx_g=yes
  4395. else
  4396. CXXFLAGS=""
  4397. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4398. /* end confdefs.h. */
  4399. int
  4400. main ()
  4401. {
  4402. ;
  4403. return 0;
  4404. }
  4405. _ACEOF
  4406. if ac_fn_cxx_try_compile "$LINENO"; then :
  4407. else
  4408. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4409. CXXFLAGS="-g"
  4410. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4411. /* end confdefs.h. */
  4412. int
  4413. main ()
  4414. {
  4415. ;
  4416. return 0;
  4417. }
  4418. _ACEOF
  4419. if ac_fn_cxx_try_compile "$LINENO"; then :
  4420. ac_cv_prog_cxx_g=yes
  4421. fi
  4422. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4423. fi
  4424. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4425. fi
  4426. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4427. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4428. fi
  4429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  4430. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  4431. if test "$ac_test_CXXFLAGS" = set; then
  4432. CXXFLAGS=$ac_save_CXXFLAGS
  4433. elif test $ac_cv_prog_cxx_g = yes; then
  4434. if test "$GXX" = yes; then
  4435. CXXFLAGS="-g -O2"
  4436. else
  4437. CXXFLAGS="-g"
  4438. fi
  4439. else
  4440. if test "$GXX" = yes; then
  4441. CXXFLAGS="-O2"
  4442. else
  4443. CXXFLAGS=
  4444. fi
  4445. fi
  4446. ac_ext=c
  4447. ac_cpp='$CPP $CPPFLAGS'
  4448. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4449. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4450. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4451. depcc="$CXX" am_compiler_list=
  4452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4453. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4454. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  4455. $as_echo_n "(cached) " >&6
  4456. else
  4457. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4458. # We make a subdir and do the tests there. Otherwise we can end up
  4459. # making bogus files that we don't know about and never remove. For
  4460. # instance it was reported that on HP-UX the gcc test will end up
  4461. # making a dummy file named 'D' -- because '-MD' means "put the output
  4462. # in D".
  4463. rm -rf conftest.dir
  4464. mkdir conftest.dir
  4465. # Copy depcomp to subdir because otherwise we won't find it if we're
  4466. # using a relative directory.
  4467. cp "$am_depcomp" conftest.dir
  4468. cd conftest.dir
  4469. # We will build objects and dependencies in a subdirectory because
  4470. # it helps to detect inapplicable dependency modes. For instance
  4471. # both Tru64's cc and ICC support -MD to output dependencies as a
  4472. # side effect of compilation, but ICC will put the dependencies in
  4473. # the current directory while Tru64 will put them in the object
  4474. # directory.
  4475. mkdir sub
  4476. am_cv_CXX_dependencies_compiler_type=none
  4477. if test "$am_compiler_list" = ""; then
  4478. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4479. fi
  4480. am__universal=false
  4481. case " $depcc " in #(
  4482. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4483. esac
  4484. for depmode in $am_compiler_list; do
  4485. # Setup a source with many dependencies, because some compilers
  4486. # like to wrap large dependency lists on column 80 (with \), and
  4487. # we should not choose a depcomp mode which is confused by this.
  4488. #
  4489. # We need to recreate these files for each test, as the compiler may
  4490. # overwrite some of them when testing with obscure command lines.
  4491. # This happens at least with the AIX C compiler.
  4492. : > sub/conftest.c
  4493. for i in 1 2 3 4 5 6; do
  4494. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4495. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4496. # Solaris 10 /bin/sh.
  4497. echo '/* dummy */' > sub/conftst$i.h
  4498. done
  4499. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4500. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4501. # mode. It turns out that the SunPro C++ compiler does not properly
  4502. # handle '-M -o', and we need to detect this. Also, some Intel
  4503. # versions had trouble with output in subdirs.
  4504. am__obj=sub/conftest.${OBJEXT-o}
  4505. am__minus_obj="-o $am__obj"
  4506. case $depmode in
  4507. gcc)
  4508. # This depmode causes a compiler race in universal mode.
  4509. test "$am__universal" = false || continue
  4510. ;;
  4511. nosideeffect)
  4512. # After this tag, mechanisms are not by side-effect, so they'll
  4513. # only be used when explicitly requested.
  4514. if test "x$enable_dependency_tracking" = xyes; then
  4515. continue
  4516. else
  4517. break
  4518. fi
  4519. ;;
  4520. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4521. # This compiler won't grok '-c -o', but also, the minuso test has
  4522. # not run yet. These depmodes are late enough in the game, and
  4523. # so weak that their functioning should not be impacted.
  4524. am__obj=conftest.${OBJEXT-o}
  4525. am__minus_obj=
  4526. ;;
  4527. none) break ;;
  4528. esac
  4529. if depmode=$depmode \
  4530. source=sub/conftest.c object=$am__obj \
  4531. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4532. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4533. >/dev/null 2>conftest.err &&
  4534. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4535. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4536. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4537. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4538. # icc doesn't choke on unknown options, it will just issue warnings
  4539. # or remarks (even with -Werror). So we grep stderr for any message
  4540. # that says an option was ignored or not supported.
  4541. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4542. # icc: Command line warning: ignoring option '-M'; no argument required
  4543. # The diagnosis changed in icc 8.0:
  4544. # icc: Command line remark: option '-MP' not supported
  4545. if (grep 'ignoring option' conftest.err ||
  4546. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4547. am_cv_CXX_dependencies_compiler_type=$depmode
  4548. break
  4549. fi
  4550. fi
  4551. done
  4552. cd ..
  4553. rm -rf conftest.dir
  4554. else
  4555. am_cv_CXX_dependencies_compiler_type=none
  4556. fi
  4557. fi
  4558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  4559. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  4560. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  4561. if
  4562. test "x$enable_dependency_tracking" != xno \
  4563. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  4564. am__fastdepCXX_TRUE=
  4565. am__fastdepCXX_FALSE='#'
  4566. else
  4567. am__fastdepCXX_TRUE='#'
  4568. am__fastdepCXX_FALSE=
  4569. fi
  4570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4571. $as_echo_n "checking whether ln -s works... " >&6; }
  4572. LN_S=$as_ln_s
  4573. if test "$LN_S" = "ln -s"; then
  4574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4575. $as_echo "yes" >&6; }
  4576. else
  4577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4578. $as_echo "no, using $LN_S" >&6; }
  4579. fi
  4580. ac_ext=c
  4581. ac_cpp='$CPP $CPPFLAGS'
  4582. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4583. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4584. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4586. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4587. # On Suns, sometimes $CPP names a directory.
  4588. if test -n "$CPP" && test -d "$CPP"; then
  4589. CPP=
  4590. fi
  4591. if test -z "$CPP"; then
  4592. if ${ac_cv_prog_CPP+:} false; then :
  4593. $as_echo_n "(cached) " >&6
  4594. else
  4595. # Double quotes because CPP needs to be expanded
  4596. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4597. do
  4598. ac_preproc_ok=false
  4599. for ac_c_preproc_warn_flag in '' yes
  4600. do
  4601. # Use a header file that comes with gcc, so configuring glibc
  4602. # with a fresh cross-compiler works.
  4603. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4604. # <limits.h> exists even on freestanding compilers.
  4605. # On the NeXT, cc -E runs the code through the compiler's parser,
  4606. # not just through cpp. "Syntax error" is here to catch this case.
  4607. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4608. /* end confdefs.h. */
  4609. #ifdef __STDC__
  4610. # include <limits.h>
  4611. #else
  4612. # include <assert.h>
  4613. #endif
  4614. Syntax error
  4615. _ACEOF
  4616. if ac_fn_c_try_cpp "$LINENO"; then :
  4617. else
  4618. # Broken: fails on valid input.
  4619. continue
  4620. fi
  4621. rm -f conftest.err conftest.i conftest.$ac_ext
  4622. # OK, works on sane cases. Now check whether nonexistent headers
  4623. # can be detected and how.
  4624. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4625. /* end confdefs.h. */
  4626. #include <ac_nonexistent.h>
  4627. _ACEOF
  4628. if ac_fn_c_try_cpp "$LINENO"; then :
  4629. # Broken: success on invalid input.
  4630. continue
  4631. else
  4632. # Passes both tests.
  4633. ac_preproc_ok=:
  4634. break
  4635. fi
  4636. rm -f conftest.err conftest.i conftest.$ac_ext
  4637. done
  4638. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4639. rm -f conftest.i conftest.err conftest.$ac_ext
  4640. if $ac_preproc_ok; then :
  4641. break
  4642. fi
  4643. done
  4644. ac_cv_prog_CPP=$CPP
  4645. fi
  4646. CPP=$ac_cv_prog_CPP
  4647. else
  4648. ac_cv_prog_CPP=$CPP
  4649. fi
  4650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4651. $as_echo "$CPP" >&6; }
  4652. ac_preproc_ok=false
  4653. for ac_c_preproc_warn_flag in '' yes
  4654. do
  4655. # Use a header file that comes with gcc, so configuring glibc
  4656. # with a fresh cross-compiler works.
  4657. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4658. # <limits.h> exists even on freestanding compilers.
  4659. # On the NeXT, cc -E runs the code through the compiler's parser,
  4660. # not just through cpp. "Syntax error" is here to catch this case.
  4661. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4662. /* end confdefs.h. */
  4663. #ifdef __STDC__
  4664. # include <limits.h>
  4665. #else
  4666. # include <assert.h>
  4667. #endif
  4668. Syntax error
  4669. _ACEOF
  4670. if ac_fn_c_try_cpp "$LINENO"; then :
  4671. else
  4672. # Broken: fails on valid input.
  4673. continue
  4674. fi
  4675. rm -f conftest.err conftest.i conftest.$ac_ext
  4676. # OK, works on sane cases. Now check whether nonexistent headers
  4677. # can be detected and how.
  4678. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4679. /* end confdefs.h. */
  4680. #include <ac_nonexistent.h>
  4681. _ACEOF
  4682. if ac_fn_c_try_cpp "$LINENO"; then :
  4683. # Broken: success on invalid input.
  4684. continue
  4685. else
  4686. # Passes both tests.
  4687. ac_preproc_ok=:
  4688. break
  4689. fi
  4690. rm -f conftest.err conftest.i conftest.$ac_ext
  4691. done
  4692. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4693. rm -f conftest.i conftest.err conftest.$ac_ext
  4694. if $ac_preproc_ok; then :
  4695. else
  4696. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4697. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4698. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4699. See \`config.log' for more details" "$LINENO" 5; }
  4700. fi
  4701. ac_ext=c
  4702. ac_cpp='$CPP $CPPFLAGS'
  4703. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4704. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4705. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4707. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4708. if ${ac_cv_path_GREP+:} false; then :
  4709. $as_echo_n "(cached) " >&6
  4710. else
  4711. if test -z "$GREP"; then
  4712. ac_path_GREP_found=false
  4713. # Loop through the user's path and test for each of PROGNAME-LIST
  4714. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4715. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4716. do
  4717. IFS=$as_save_IFS
  4718. test -z "$as_dir" && as_dir=.
  4719. for ac_prog in grep ggrep; do
  4720. for ac_exec_ext in '' $ac_executable_extensions; do
  4721. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4722. as_fn_executable_p "$ac_path_GREP" || continue
  4723. # Check for GNU ac_path_GREP and select it if it is found.
  4724. # Check for GNU $ac_path_GREP
  4725. case `"$ac_path_GREP" --version 2>&1` in
  4726. *GNU*)
  4727. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4728. *)
  4729. ac_count=0
  4730. $as_echo_n 0123456789 >"conftest.in"
  4731. while :
  4732. do
  4733. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4734. mv "conftest.tmp" "conftest.in"
  4735. cp "conftest.in" "conftest.nl"
  4736. $as_echo 'GREP' >> "conftest.nl"
  4737. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4738. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4739. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4740. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4741. # Best one so far, save it but keep looking for a better one
  4742. ac_cv_path_GREP="$ac_path_GREP"
  4743. ac_path_GREP_max=$ac_count
  4744. fi
  4745. # 10*(2^10) chars as input seems more than enough
  4746. test $ac_count -gt 10 && break
  4747. done
  4748. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4749. esac
  4750. $ac_path_GREP_found && break 3
  4751. done
  4752. done
  4753. done
  4754. IFS=$as_save_IFS
  4755. if test -z "$ac_cv_path_GREP"; then
  4756. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4757. fi
  4758. else
  4759. ac_cv_path_GREP=$GREP
  4760. fi
  4761. fi
  4762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4763. $as_echo "$ac_cv_path_GREP" >&6; }
  4764. GREP="$ac_cv_path_GREP"
  4765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4766. $as_echo_n "checking for egrep... " >&6; }
  4767. if ${ac_cv_path_EGREP+:} false; then :
  4768. $as_echo_n "(cached) " >&6
  4769. else
  4770. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4771. then ac_cv_path_EGREP="$GREP -E"
  4772. else
  4773. if test -z "$EGREP"; then
  4774. ac_path_EGREP_found=false
  4775. # Loop through the user's path and test for each of PROGNAME-LIST
  4776. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4777. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4778. do
  4779. IFS=$as_save_IFS
  4780. test -z "$as_dir" && as_dir=.
  4781. for ac_prog in egrep; do
  4782. for ac_exec_ext in '' $ac_executable_extensions; do
  4783. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4784. as_fn_executable_p "$ac_path_EGREP" || continue
  4785. # Check for GNU ac_path_EGREP and select it if it is found.
  4786. # Check for GNU $ac_path_EGREP
  4787. case `"$ac_path_EGREP" --version 2>&1` in
  4788. *GNU*)
  4789. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4790. *)
  4791. ac_count=0
  4792. $as_echo_n 0123456789 >"conftest.in"
  4793. while :
  4794. do
  4795. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4796. mv "conftest.tmp" "conftest.in"
  4797. cp "conftest.in" "conftest.nl"
  4798. $as_echo 'EGREP' >> "conftest.nl"
  4799. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4800. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4801. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4802. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4803. # Best one so far, save it but keep looking for a better one
  4804. ac_cv_path_EGREP="$ac_path_EGREP"
  4805. ac_path_EGREP_max=$ac_count
  4806. fi
  4807. # 10*(2^10) chars as input seems more than enough
  4808. test $ac_count -gt 10 && break
  4809. done
  4810. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4811. esac
  4812. $ac_path_EGREP_found && break 3
  4813. done
  4814. done
  4815. done
  4816. IFS=$as_save_IFS
  4817. if test -z "$ac_cv_path_EGREP"; then
  4818. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4819. fi
  4820. else
  4821. ac_cv_path_EGREP=$EGREP
  4822. fi
  4823. fi
  4824. fi
  4825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4826. $as_echo "$ac_cv_path_EGREP" >&6; }
  4827. EGREP="$ac_cv_path_EGREP"
  4828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4829. $as_echo_n "checking for ANSI C header files... " >&6; }
  4830. if ${ac_cv_header_stdc+:} false; then :
  4831. $as_echo_n "(cached) " >&6
  4832. else
  4833. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4834. /* end confdefs.h. */
  4835. #include <stdlib.h>
  4836. #include <stdarg.h>
  4837. #include <string.h>
  4838. #include <float.h>
  4839. int
  4840. main ()
  4841. {
  4842. ;
  4843. return 0;
  4844. }
  4845. _ACEOF
  4846. if ac_fn_c_try_compile "$LINENO"; then :
  4847. ac_cv_header_stdc=yes
  4848. else
  4849. ac_cv_header_stdc=no
  4850. fi
  4851. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4852. if test $ac_cv_header_stdc = yes; then
  4853. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4854. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4855. /* end confdefs.h. */
  4856. #include <string.h>
  4857. _ACEOF
  4858. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4859. $EGREP "memchr" >/dev/null 2>&1; then :
  4860. else
  4861. ac_cv_header_stdc=no
  4862. fi
  4863. rm -f conftest*
  4864. fi
  4865. if test $ac_cv_header_stdc = yes; then
  4866. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4867. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4868. /* end confdefs.h. */
  4869. #include <stdlib.h>
  4870. _ACEOF
  4871. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4872. $EGREP "free" >/dev/null 2>&1; then :
  4873. else
  4874. ac_cv_header_stdc=no
  4875. fi
  4876. rm -f conftest*
  4877. fi
  4878. if test $ac_cv_header_stdc = yes; then
  4879. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4880. if test "$cross_compiling" = yes; then :
  4881. :
  4882. else
  4883. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4884. /* end confdefs.h. */
  4885. #include <ctype.h>
  4886. #include <stdlib.h>
  4887. #if ((' ' & 0x0FF) == 0x020)
  4888. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4889. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4890. #else
  4891. # define ISLOWER(c) \
  4892. (('a' <= (c) && (c) <= 'i') \
  4893. || ('j' <= (c) && (c) <= 'r') \
  4894. || ('s' <= (c) && (c) <= 'z'))
  4895. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4896. #endif
  4897. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4898. int
  4899. main ()
  4900. {
  4901. int i;
  4902. for (i = 0; i < 256; i++)
  4903. if (XOR (islower (i), ISLOWER (i))
  4904. || toupper (i) != TOUPPER (i))
  4905. return 2;
  4906. return 0;
  4907. }
  4908. _ACEOF
  4909. if ac_fn_c_try_run "$LINENO"; then :
  4910. else
  4911. ac_cv_header_stdc=no
  4912. fi
  4913. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4914. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4915. fi
  4916. fi
  4917. fi
  4918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4919. $as_echo "$ac_cv_header_stdc" >&6; }
  4920. if test $ac_cv_header_stdc = yes; then
  4921. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4922. fi
  4923. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4924. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4925. inttypes.h stdint.h unistd.h
  4926. do :
  4927. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4928. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4929. "
  4930. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4931. cat >>confdefs.h <<_ACEOF
  4932. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4933. _ACEOF
  4934. fi
  4935. done
  4936. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  4937. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  4938. MINIX=yes
  4939. else
  4940. MINIX=
  4941. fi
  4942. if test "$MINIX" = yes; then
  4943. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  4944. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4945. $as_echo "#define _MINIX 1" >>confdefs.h
  4946. fi
  4947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4948. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4949. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  4950. $as_echo_n "(cached) " >&6
  4951. else
  4952. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4953. /* end confdefs.h. */
  4954. # define __EXTENSIONS__ 1
  4955. $ac_includes_default
  4956. int
  4957. main ()
  4958. {
  4959. ;
  4960. return 0;
  4961. }
  4962. _ACEOF
  4963. if ac_fn_c_try_compile "$LINENO"; then :
  4964. ac_cv_safe_to_define___extensions__=yes
  4965. else
  4966. ac_cv_safe_to_define___extensions__=no
  4967. fi
  4968. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4969. fi
  4970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4971. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4972. test $ac_cv_safe_to_define___extensions__ = yes &&
  4973. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  4974. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  4975. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  4976. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4977. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  4978. case `pwd` in
  4979. *\ * | *\ *)
  4980. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4981. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4982. esac
  4983. macro_version='2.4.6'
  4984. macro_revision='2.4.6'
  4985. ltmain=$ac_aux_dir/ltmain.sh
  4986. # Backslashify metacharacters that are still active within
  4987. # double-quoted strings.
  4988. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4989. # Same as above, but do not quote variable references.
  4990. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4991. # Sed substitution to delay expansion of an escaped shell variable in a
  4992. # double_quote_subst'ed string.
  4993. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4994. # Sed substitution to delay expansion of an escaped single quote.
  4995. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4996. # Sed substitution to avoid accidental globbing in evaled expressions
  4997. no_glob_subst='s/\*/\\\*/g'
  4998. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4999. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  5000. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  5001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  5002. $as_echo_n "checking how to print strings... " >&6; }
  5003. # Test print first, because it will be a builtin if present.
  5004. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  5005. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  5006. ECHO='print -r --'
  5007. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  5008. ECHO='printf %s\n'
  5009. else
  5010. # Use this function as a fallback that always works.
  5011. func_fallback_echo ()
  5012. {
  5013. eval 'cat <<_LTECHO_EOF
  5014. $1
  5015. _LTECHO_EOF'
  5016. }
  5017. ECHO='func_fallback_echo'
  5018. fi
  5019. # func_echo_all arg...
  5020. # Invoke $ECHO with all args, space-separated.
  5021. func_echo_all ()
  5022. {
  5023. $ECHO ""
  5024. }
  5025. case $ECHO in
  5026. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  5027. $as_echo "printf" >&6; } ;;
  5028. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  5029. $as_echo "print -r" >&6; } ;;
  5030. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  5031. $as_echo "cat" >&6; } ;;
  5032. esac
  5033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  5034. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  5035. if ${ac_cv_path_SED+:} false; then :
  5036. $as_echo_n "(cached) " >&6
  5037. else
  5038. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  5039. for ac_i in 1 2 3 4 5 6 7; do
  5040. ac_script="$ac_script$as_nl$ac_script"
  5041. done
  5042. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  5043. { ac_script=; unset ac_script;}
  5044. if test -z "$SED"; then
  5045. ac_path_SED_found=false
  5046. # Loop through the user's path and test for each of PROGNAME-LIST
  5047. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5048. for as_dir in $PATH
  5049. do
  5050. IFS=$as_save_IFS
  5051. test -z "$as_dir" && as_dir=.
  5052. for ac_prog in sed gsed; do
  5053. for ac_exec_ext in '' $ac_executable_extensions; do
  5054. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  5055. as_fn_executable_p "$ac_path_SED" || continue
  5056. # Check for GNU ac_path_SED and select it if it is found.
  5057. # Check for GNU $ac_path_SED
  5058. case `"$ac_path_SED" --version 2>&1` in
  5059. *GNU*)
  5060. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  5061. *)
  5062. ac_count=0
  5063. $as_echo_n 0123456789 >"conftest.in"
  5064. while :
  5065. do
  5066. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5067. mv "conftest.tmp" "conftest.in"
  5068. cp "conftest.in" "conftest.nl"
  5069. $as_echo '' >> "conftest.nl"
  5070. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5071. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5072. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5073. if test $ac_count -gt ${ac_path_SED_max-0}; then
  5074. # Best one so far, save it but keep looking for a better one
  5075. ac_cv_path_SED="$ac_path_SED"
  5076. ac_path_SED_max=$ac_count
  5077. fi
  5078. # 10*(2^10) chars as input seems more than enough
  5079. test $ac_count -gt 10 && break
  5080. done
  5081. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5082. esac
  5083. $ac_path_SED_found && break 3
  5084. done
  5085. done
  5086. done
  5087. IFS=$as_save_IFS
  5088. if test -z "$ac_cv_path_SED"; then
  5089. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  5090. fi
  5091. else
  5092. ac_cv_path_SED=$SED
  5093. fi
  5094. fi
  5095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  5096. $as_echo "$ac_cv_path_SED" >&6; }
  5097. SED="$ac_cv_path_SED"
  5098. rm -f conftest.sed
  5099. test -z "$SED" && SED=sed
  5100. Xsed="$SED -e 1s/^X//"
  5101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  5102. $as_echo_n "checking for fgrep... " >&6; }
  5103. if ${ac_cv_path_FGREP+:} false; then :
  5104. $as_echo_n "(cached) " >&6
  5105. else
  5106. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  5107. then ac_cv_path_FGREP="$GREP -F"
  5108. else
  5109. if test -z "$FGREP"; then
  5110. ac_path_FGREP_found=false
  5111. # Loop through the user's path and test for each of PROGNAME-LIST
  5112. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5113. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5114. do
  5115. IFS=$as_save_IFS
  5116. test -z "$as_dir" && as_dir=.
  5117. for ac_prog in fgrep; do
  5118. for ac_exec_ext in '' $ac_executable_extensions; do
  5119. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  5120. as_fn_executable_p "$ac_path_FGREP" || continue
  5121. # Check for GNU ac_path_FGREP and select it if it is found.
  5122. # Check for GNU $ac_path_FGREP
  5123. case `"$ac_path_FGREP" --version 2>&1` in
  5124. *GNU*)
  5125. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5126. *)
  5127. ac_count=0
  5128. $as_echo_n 0123456789 >"conftest.in"
  5129. while :
  5130. do
  5131. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5132. mv "conftest.tmp" "conftest.in"
  5133. cp "conftest.in" "conftest.nl"
  5134. $as_echo 'FGREP' >> "conftest.nl"
  5135. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5136. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5137. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5138. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5139. # Best one so far, save it but keep looking for a better one
  5140. ac_cv_path_FGREP="$ac_path_FGREP"
  5141. ac_path_FGREP_max=$ac_count
  5142. fi
  5143. # 10*(2^10) chars as input seems more than enough
  5144. test $ac_count -gt 10 && break
  5145. done
  5146. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5147. esac
  5148. $ac_path_FGREP_found && break 3
  5149. done
  5150. done
  5151. done
  5152. IFS=$as_save_IFS
  5153. if test -z "$ac_cv_path_FGREP"; then
  5154. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5155. fi
  5156. else
  5157. ac_cv_path_FGREP=$FGREP
  5158. fi
  5159. fi
  5160. fi
  5161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5162. $as_echo "$ac_cv_path_FGREP" >&6; }
  5163. FGREP="$ac_cv_path_FGREP"
  5164. test -z "$GREP" && GREP=grep
  5165. # Check whether --with-gnu-ld was given.
  5166. if test "${with_gnu_ld+set}" = set; then :
  5167. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  5168. else
  5169. with_gnu_ld=no
  5170. fi
  5171. ac_prog=ld
  5172. if test yes = "$GCC"; then
  5173. # Check if gcc -print-prog-name=ld gives a path.
  5174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5175. $as_echo_n "checking for ld used by $CC... " >&6; }
  5176. case $host in
  5177. *-*-mingw*)
  5178. # gcc leaves a trailing carriage return, which upsets mingw
  5179. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5180. *)
  5181. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5182. esac
  5183. case $ac_prog in
  5184. # Accept absolute paths.
  5185. [\\/]* | ?:[\\/]*)
  5186. re_direlt='/[^/][^/]*/\.\./'
  5187. # Canonicalize the pathname of ld
  5188. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5189. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5190. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5191. done
  5192. test -z "$LD" && LD=$ac_prog
  5193. ;;
  5194. "")
  5195. # If it fails, then pretend we aren't using GCC.
  5196. ac_prog=ld
  5197. ;;
  5198. *)
  5199. # If it is relative, then search for the first ld in PATH.
  5200. with_gnu_ld=unknown
  5201. ;;
  5202. esac
  5203. elif test yes = "$with_gnu_ld"; then
  5204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5205. $as_echo_n "checking for GNU ld... " >&6; }
  5206. else
  5207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5208. $as_echo_n "checking for non-GNU ld... " >&6; }
  5209. fi
  5210. if ${lt_cv_path_LD+:} false; then :
  5211. $as_echo_n "(cached) " >&6
  5212. else
  5213. if test -z "$LD"; then
  5214. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5215. for ac_dir in $PATH; do
  5216. IFS=$lt_save_ifs
  5217. test -z "$ac_dir" && ac_dir=.
  5218. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5219. lt_cv_path_LD=$ac_dir/$ac_prog
  5220. # Check to see if the program is GNU ld. I'd rather use --version,
  5221. # but apparently some variants of GNU ld only accept -v.
  5222. # Break only if it was the GNU/non-GNU ld that we prefer.
  5223. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5224. *GNU* | *'with BFD'*)
  5225. test no != "$with_gnu_ld" && break
  5226. ;;
  5227. *)
  5228. test yes != "$with_gnu_ld" && break
  5229. ;;
  5230. esac
  5231. fi
  5232. done
  5233. IFS=$lt_save_ifs
  5234. else
  5235. lt_cv_path_LD=$LD # Let the user override the test with a path.
  5236. fi
  5237. fi
  5238. LD=$lt_cv_path_LD
  5239. if test -n "$LD"; then
  5240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5241. $as_echo "$LD" >&6; }
  5242. else
  5243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5244. $as_echo "no" >&6; }
  5245. fi
  5246. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5248. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5249. if ${lt_cv_prog_gnu_ld+:} false; then :
  5250. $as_echo_n "(cached) " >&6
  5251. else
  5252. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5253. case `$LD -v 2>&1 </dev/null` in
  5254. *GNU* | *'with BFD'*)
  5255. lt_cv_prog_gnu_ld=yes
  5256. ;;
  5257. *)
  5258. lt_cv_prog_gnu_ld=no
  5259. ;;
  5260. esac
  5261. fi
  5262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5263. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5264. with_gnu_ld=$lt_cv_prog_gnu_ld
  5265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5266. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5267. if ${lt_cv_path_NM+:} false; then :
  5268. $as_echo_n "(cached) " >&6
  5269. else
  5270. if test -n "$NM"; then
  5271. # Let the user override the test.
  5272. lt_cv_path_NM=$NM
  5273. else
  5274. lt_nm_to_check=${ac_tool_prefix}nm
  5275. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5276. lt_nm_to_check="$lt_nm_to_check nm"
  5277. fi
  5278. for lt_tmp_nm in $lt_nm_to_check; do
  5279. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5280. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5281. IFS=$lt_save_ifs
  5282. test -z "$ac_dir" && ac_dir=.
  5283. tmp_nm=$ac_dir/$lt_tmp_nm
  5284. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  5285. # Check to see if the nm accepts a BSD-compat flag.
  5286. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  5287. # nm: unknown option "B" ignored
  5288. # Tru64's nm complains that /dev/null is an invalid object file
  5289. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  5290. case $build_os in
  5291. mingw*) lt_bad_file=conftest.nm/nofile ;;
  5292. *) lt_bad_file=/dev/null ;;
  5293. esac
  5294. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  5295. *$lt_bad_file* | *'Invalid file or object type'*)
  5296. lt_cv_path_NM="$tmp_nm -B"
  5297. break 2
  5298. ;;
  5299. *)
  5300. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5301. */dev/null*)
  5302. lt_cv_path_NM="$tmp_nm -p"
  5303. break 2
  5304. ;;
  5305. *)
  5306. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5307. continue # so that we can try to find one that supports BSD flags
  5308. ;;
  5309. esac
  5310. ;;
  5311. esac
  5312. fi
  5313. done
  5314. IFS=$lt_save_ifs
  5315. done
  5316. : ${lt_cv_path_NM=no}
  5317. fi
  5318. fi
  5319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5320. $as_echo "$lt_cv_path_NM" >&6; }
  5321. if test no != "$lt_cv_path_NM"; then
  5322. NM=$lt_cv_path_NM
  5323. else
  5324. # Didn't find any BSD compatible name lister, look for dumpbin.
  5325. if test -n "$DUMPBIN"; then :
  5326. # Let the user override the test.
  5327. else
  5328. if test -n "$ac_tool_prefix"; then
  5329. for ac_prog in dumpbin "link -dump"
  5330. do
  5331. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5332. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5334. $as_echo_n "checking for $ac_word... " >&6; }
  5335. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5336. $as_echo_n "(cached) " >&6
  5337. else
  5338. if test -n "$DUMPBIN"; then
  5339. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5340. else
  5341. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5342. for as_dir in $PATH
  5343. do
  5344. IFS=$as_save_IFS
  5345. test -z "$as_dir" && as_dir=.
  5346. for ac_exec_ext in '' $ac_executable_extensions; do
  5347. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5348. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5349. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5350. break 2
  5351. fi
  5352. done
  5353. done
  5354. IFS=$as_save_IFS
  5355. fi
  5356. fi
  5357. DUMPBIN=$ac_cv_prog_DUMPBIN
  5358. if test -n "$DUMPBIN"; then
  5359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5360. $as_echo "$DUMPBIN" >&6; }
  5361. else
  5362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5363. $as_echo "no" >&6; }
  5364. fi
  5365. test -n "$DUMPBIN" && break
  5366. done
  5367. fi
  5368. if test -z "$DUMPBIN"; then
  5369. ac_ct_DUMPBIN=$DUMPBIN
  5370. for ac_prog in dumpbin "link -dump"
  5371. do
  5372. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5373. set dummy $ac_prog; ac_word=$2
  5374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5375. $as_echo_n "checking for $ac_word... " >&6; }
  5376. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5377. $as_echo_n "(cached) " >&6
  5378. else
  5379. if test -n "$ac_ct_DUMPBIN"; then
  5380. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5381. else
  5382. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5383. for as_dir in $PATH
  5384. do
  5385. IFS=$as_save_IFS
  5386. test -z "$as_dir" && as_dir=.
  5387. for ac_exec_ext in '' $ac_executable_extensions; do
  5388. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5389. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5390. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5391. break 2
  5392. fi
  5393. done
  5394. done
  5395. IFS=$as_save_IFS
  5396. fi
  5397. fi
  5398. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5399. if test -n "$ac_ct_DUMPBIN"; then
  5400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5401. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5402. else
  5403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5404. $as_echo "no" >&6; }
  5405. fi
  5406. test -n "$ac_ct_DUMPBIN" && break
  5407. done
  5408. if test "x$ac_ct_DUMPBIN" = x; then
  5409. DUMPBIN=":"
  5410. else
  5411. case $cross_compiling:$ac_tool_warned in
  5412. yes:)
  5413. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5414. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5415. ac_tool_warned=yes ;;
  5416. esac
  5417. DUMPBIN=$ac_ct_DUMPBIN
  5418. fi
  5419. fi
  5420. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  5421. *COFF*)
  5422. DUMPBIN="$DUMPBIN -symbols -headers"
  5423. ;;
  5424. *)
  5425. DUMPBIN=:
  5426. ;;
  5427. esac
  5428. fi
  5429. if test : != "$DUMPBIN"; then
  5430. NM=$DUMPBIN
  5431. fi
  5432. fi
  5433. test -z "$NM" && NM=nm
  5434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5435. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5436. if ${lt_cv_nm_interface+:} false; then :
  5437. $as_echo_n "(cached) " >&6
  5438. else
  5439. lt_cv_nm_interface="BSD nm"
  5440. echo "int some_variable = 0;" > conftest.$ac_ext
  5441. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5442. (eval "$ac_compile" 2>conftest.err)
  5443. cat conftest.err >&5
  5444. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5445. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5446. cat conftest.err >&5
  5447. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5448. cat conftest.out >&5
  5449. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5450. lt_cv_nm_interface="MS dumpbin"
  5451. fi
  5452. rm -f conftest*
  5453. fi
  5454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5455. $as_echo "$lt_cv_nm_interface" >&6; }
  5456. # find the maximum length of command line arguments
  5457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5458. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5459. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5460. $as_echo_n "(cached) " >&6
  5461. else
  5462. i=0
  5463. teststring=ABCD
  5464. case $build_os in
  5465. msdosdjgpp*)
  5466. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5467. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5468. # during glob expansion). Even if it were fixed, the result of this
  5469. # check would be larger than it should be.
  5470. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5471. ;;
  5472. gnu*)
  5473. # Under GNU Hurd, this test is not required because there is
  5474. # no limit to the length of command line arguments.
  5475. # Libtool will interpret -1 as no limit whatsoever
  5476. lt_cv_sys_max_cmd_len=-1;
  5477. ;;
  5478. cygwin* | mingw* | cegcc*)
  5479. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5480. # about 5 minutes as the teststring grows exponentially.
  5481. # Worse, since 9x/ME are not pre-emptively multitasking,
  5482. # you end up with a "frozen" computer, even though with patience
  5483. # the test eventually succeeds (with a max line length of 256k).
  5484. # Instead, let's just punt: use the minimum linelength reported by
  5485. # all of the supported platforms: 8192 (on NT/2K/XP).
  5486. lt_cv_sys_max_cmd_len=8192;
  5487. ;;
  5488. mint*)
  5489. # On MiNT this can take a long time and run out of memory.
  5490. lt_cv_sys_max_cmd_len=8192;
  5491. ;;
  5492. amigaos*)
  5493. # On AmigaOS with pdksh, this test takes hours, literally.
  5494. # So we just punt and use a minimum line length of 8192.
  5495. lt_cv_sys_max_cmd_len=8192;
  5496. ;;
  5497. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  5498. # This has been around since 386BSD, at least. Likely further.
  5499. if test -x /sbin/sysctl; then
  5500. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5501. elif test -x /usr/sbin/sysctl; then
  5502. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5503. else
  5504. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5505. fi
  5506. # And add a safety zone
  5507. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5508. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5509. ;;
  5510. interix*)
  5511. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5512. lt_cv_sys_max_cmd_len=196608
  5513. ;;
  5514. os2*)
  5515. # The test takes a long time on OS/2.
  5516. lt_cv_sys_max_cmd_len=8192
  5517. ;;
  5518. osf*)
  5519. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5520. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5521. # nice to cause kernel panics so lets avoid the loop below.
  5522. # First set a reasonable default.
  5523. lt_cv_sys_max_cmd_len=16384
  5524. #
  5525. if test -x /sbin/sysconfig; then
  5526. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5527. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5528. esac
  5529. fi
  5530. ;;
  5531. sco3.2v5*)
  5532. lt_cv_sys_max_cmd_len=102400
  5533. ;;
  5534. sysv5* | sco5v6* | sysv4.2uw2*)
  5535. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5536. if test -n "$kargmax"; then
  5537. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5538. else
  5539. lt_cv_sys_max_cmd_len=32768
  5540. fi
  5541. ;;
  5542. *)
  5543. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5544. if test -n "$lt_cv_sys_max_cmd_len" && \
  5545. test undefined != "$lt_cv_sys_max_cmd_len"; then
  5546. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5547. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5548. else
  5549. # Make teststring a little bigger before we do anything with it.
  5550. # a 1K string should be a reasonable start.
  5551. for i in 1 2 3 4 5 6 7 8; do
  5552. teststring=$teststring$teststring
  5553. done
  5554. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5555. # If test is not a shell built-in, we'll probably end up computing a
  5556. # maximum length that is only half of the actual maximum length, but
  5557. # we can't tell.
  5558. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  5559. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5560. test 17 != "$i" # 1/2 MB should be enough
  5561. do
  5562. i=`expr $i + 1`
  5563. teststring=$teststring$teststring
  5564. done
  5565. # Only check the string length outside the loop.
  5566. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5567. teststring=
  5568. # Add a significant safety factor because C++ compilers can tack on
  5569. # massive amounts of additional arguments before passing them to the
  5570. # linker. It appears as though 1/2 is a usable value.
  5571. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5572. fi
  5573. ;;
  5574. esac
  5575. fi
  5576. if test -n "$lt_cv_sys_max_cmd_len"; then
  5577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5578. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5579. else
  5580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5581. $as_echo "none" >&6; }
  5582. fi
  5583. max_cmd_len=$lt_cv_sys_max_cmd_len
  5584. : ${CP="cp -f"}
  5585. : ${MV="mv -f"}
  5586. : ${RM="rm -f"}
  5587. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5588. lt_unset=unset
  5589. else
  5590. lt_unset=false
  5591. fi
  5592. # test EBCDIC or ASCII
  5593. case `echo X|tr X '\101'` in
  5594. A) # ASCII based system
  5595. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5596. lt_SP2NL='tr \040 \012'
  5597. lt_NL2SP='tr \015\012 \040\040'
  5598. ;;
  5599. *) # EBCDIC based system
  5600. lt_SP2NL='tr \100 \n'
  5601. lt_NL2SP='tr \r\n \100\100'
  5602. ;;
  5603. esac
  5604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5605. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5606. if ${lt_cv_to_host_file_cmd+:} false; then :
  5607. $as_echo_n "(cached) " >&6
  5608. else
  5609. case $host in
  5610. *-*-mingw* )
  5611. case $build in
  5612. *-*-mingw* ) # actually msys
  5613. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5614. ;;
  5615. *-*-cygwin* )
  5616. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5617. ;;
  5618. * ) # otherwise, assume *nix
  5619. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5620. ;;
  5621. esac
  5622. ;;
  5623. *-*-cygwin* )
  5624. case $build in
  5625. *-*-mingw* ) # actually msys
  5626. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5627. ;;
  5628. *-*-cygwin* )
  5629. lt_cv_to_host_file_cmd=func_convert_file_noop
  5630. ;;
  5631. * ) # otherwise, assume *nix
  5632. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5633. ;;
  5634. esac
  5635. ;;
  5636. * ) # unhandled hosts (and "normal" native builds)
  5637. lt_cv_to_host_file_cmd=func_convert_file_noop
  5638. ;;
  5639. esac
  5640. fi
  5641. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5643. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5645. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5646. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5647. $as_echo_n "(cached) " >&6
  5648. else
  5649. #assume ordinary cross tools, or native build.
  5650. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5651. case $host in
  5652. *-*-mingw* )
  5653. case $build in
  5654. *-*-mingw* ) # actually msys
  5655. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5656. ;;
  5657. esac
  5658. ;;
  5659. esac
  5660. fi
  5661. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5663. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5665. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5666. if ${lt_cv_ld_reload_flag+:} false; then :
  5667. $as_echo_n "(cached) " >&6
  5668. else
  5669. lt_cv_ld_reload_flag='-r'
  5670. fi
  5671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5672. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5673. reload_flag=$lt_cv_ld_reload_flag
  5674. case $reload_flag in
  5675. "" | " "*) ;;
  5676. *) reload_flag=" $reload_flag" ;;
  5677. esac
  5678. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5679. case $host_os in
  5680. cygwin* | mingw* | pw32* | cegcc*)
  5681. if test yes != "$GCC"; then
  5682. reload_cmds=false
  5683. fi
  5684. ;;
  5685. darwin*)
  5686. if test yes = "$GCC"; then
  5687. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  5688. else
  5689. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5690. fi
  5691. ;;
  5692. esac
  5693. if test -n "$ac_tool_prefix"; then
  5694. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5695. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5697. $as_echo_n "checking for $ac_word... " >&6; }
  5698. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5699. $as_echo_n "(cached) " >&6
  5700. else
  5701. if test -n "$OBJDUMP"; then
  5702. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5703. else
  5704. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5705. for as_dir in $PATH
  5706. do
  5707. IFS=$as_save_IFS
  5708. test -z "$as_dir" && as_dir=.
  5709. for ac_exec_ext in '' $ac_executable_extensions; do
  5710. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5711. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5712. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5713. break 2
  5714. fi
  5715. done
  5716. done
  5717. IFS=$as_save_IFS
  5718. fi
  5719. fi
  5720. OBJDUMP=$ac_cv_prog_OBJDUMP
  5721. if test -n "$OBJDUMP"; then
  5722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5723. $as_echo "$OBJDUMP" >&6; }
  5724. else
  5725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5726. $as_echo "no" >&6; }
  5727. fi
  5728. fi
  5729. if test -z "$ac_cv_prog_OBJDUMP"; then
  5730. ac_ct_OBJDUMP=$OBJDUMP
  5731. # Extract the first word of "objdump", so it can be a program name with args.
  5732. set dummy objdump; ac_word=$2
  5733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5734. $as_echo_n "checking for $ac_word... " >&6; }
  5735. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5736. $as_echo_n "(cached) " >&6
  5737. else
  5738. if test -n "$ac_ct_OBJDUMP"; then
  5739. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5740. else
  5741. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5742. for as_dir in $PATH
  5743. do
  5744. IFS=$as_save_IFS
  5745. test -z "$as_dir" && as_dir=.
  5746. for ac_exec_ext in '' $ac_executable_extensions; do
  5747. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5748. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5749. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5750. break 2
  5751. fi
  5752. done
  5753. done
  5754. IFS=$as_save_IFS
  5755. fi
  5756. fi
  5757. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5758. if test -n "$ac_ct_OBJDUMP"; then
  5759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5760. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5761. else
  5762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5763. $as_echo "no" >&6; }
  5764. fi
  5765. if test "x$ac_ct_OBJDUMP" = x; then
  5766. OBJDUMP="false"
  5767. else
  5768. case $cross_compiling:$ac_tool_warned in
  5769. yes:)
  5770. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5771. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5772. ac_tool_warned=yes ;;
  5773. esac
  5774. OBJDUMP=$ac_ct_OBJDUMP
  5775. fi
  5776. else
  5777. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5778. fi
  5779. test -z "$OBJDUMP" && OBJDUMP=objdump
  5780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5781. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5782. if ${lt_cv_deplibs_check_method+:} false; then :
  5783. $as_echo_n "(cached) " >&6
  5784. else
  5785. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5786. lt_cv_file_magic_test_file=
  5787. lt_cv_deplibs_check_method='unknown'
  5788. # Need to set the preceding variable on all platforms that support
  5789. # interlibrary dependencies.
  5790. # 'none' -- dependencies not supported.
  5791. # 'unknown' -- same as none, but documents that we really don't know.
  5792. # 'pass_all' -- all dependencies passed with no checks.
  5793. # 'test_compile' -- check by making test program.
  5794. # 'file_magic [[regex]]' -- check by looking for files in library path
  5795. # that responds to the $file_magic_cmd with a given extended regex.
  5796. # If you have 'file' or equivalent on your system and you're not sure
  5797. # whether 'pass_all' will *always* work, you probably want this one.
  5798. case $host_os in
  5799. aix[4-9]*)
  5800. lt_cv_deplibs_check_method=pass_all
  5801. ;;
  5802. beos*)
  5803. lt_cv_deplibs_check_method=pass_all
  5804. ;;
  5805. bsdi[45]*)
  5806. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5807. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5808. lt_cv_file_magic_test_file=/shlib/libc.so
  5809. ;;
  5810. cygwin*)
  5811. # func_win32_libid is a shell function defined in ltmain.sh
  5812. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5813. lt_cv_file_magic_cmd='func_win32_libid'
  5814. ;;
  5815. mingw* | pw32*)
  5816. # Base MSYS/MinGW do not provide the 'file' command needed by
  5817. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5818. # unless we find 'file', for example because we are cross-compiling.
  5819. if ( file / ) >/dev/null 2>&1; then
  5820. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5821. lt_cv_file_magic_cmd='func_win32_libid'
  5822. else
  5823. # Keep this pattern in sync with the one in func_win32_libid.
  5824. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5825. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5826. fi
  5827. ;;
  5828. cegcc*)
  5829. # use the weaker test based on 'objdump'. See mingw*.
  5830. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5831. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5832. ;;
  5833. darwin* | rhapsody*)
  5834. lt_cv_deplibs_check_method=pass_all
  5835. ;;
  5836. freebsd* | dragonfly*)
  5837. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5838. case $host_cpu in
  5839. i*86 )
  5840. # Not sure whether the presence of OpenBSD here was a mistake.
  5841. # Let's accept both of them until this is cleared up.
  5842. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5843. lt_cv_file_magic_cmd=/usr/bin/file
  5844. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5845. ;;
  5846. esac
  5847. else
  5848. lt_cv_deplibs_check_method=pass_all
  5849. fi
  5850. ;;
  5851. haiku*)
  5852. lt_cv_deplibs_check_method=pass_all
  5853. ;;
  5854. hpux10.20* | hpux11*)
  5855. lt_cv_file_magic_cmd=/usr/bin/file
  5856. case $host_cpu in
  5857. ia64*)
  5858. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5859. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5860. ;;
  5861. hppa*64*)
  5862. 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]'
  5863. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5864. ;;
  5865. *)
  5866. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5867. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5868. ;;
  5869. esac
  5870. ;;
  5871. interix[3-9]*)
  5872. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5873. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5874. ;;
  5875. irix5* | irix6* | nonstopux*)
  5876. case $LD in
  5877. *-32|*"-32 ") libmagic=32-bit;;
  5878. *-n32|*"-n32 ") libmagic=N32;;
  5879. *-64|*"-64 ") libmagic=64-bit;;
  5880. *) libmagic=never-match;;
  5881. esac
  5882. lt_cv_deplibs_check_method=pass_all
  5883. ;;
  5884. # This must be glibc/ELF.
  5885. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5886. lt_cv_deplibs_check_method=pass_all
  5887. ;;
  5888. netbsd* | netbsdelf*-gnu)
  5889. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5890. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5891. else
  5892. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5893. fi
  5894. ;;
  5895. newos6*)
  5896. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5897. lt_cv_file_magic_cmd=/usr/bin/file
  5898. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5899. ;;
  5900. *nto* | *qnx*)
  5901. lt_cv_deplibs_check_method=pass_all
  5902. ;;
  5903. openbsd* | bitrig*)
  5904. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5905. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5906. else
  5907. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5908. fi
  5909. ;;
  5910. osf3* | osf4* | osf5*)
  5911. lt_cv_deplibs_check_method=pass_all
  5912. ;;
  5913. rdos*)
  5914. lt_cv_deplibs_check_method=pass_all
  5915. ;;
  5916. solaris*)
  5917. lt_cv_deplibs_check_method=pass_all
  5918. ;;
  5919. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5920. lt_cv_deplibs_check_method=pass_all
  5921. ;;
  5922. sysv4 | sysv4.3*)
  5923. case $host_vendor in
  5924. motorola)
  5925. 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]'
  5926. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5927. ;;
  5928. ncr)
  5929. lt_cv_deplibs_check_method=pass_all
  5930. ;;
  5931. sequent)
  5932. lt_cv_file_magic_cmd='/bin/file'
  5933. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5934. ;;
  5935. sni)
  5936. lt_cv_file_magic_cmd='/bin/file'
  5937. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5938. lt_cv_file_magic_test_file=/lib/libc.so
  5939. ;;
  5940. siemens)
  5941. lt_cv_deplibs_check_method=pass_all
  5942. ;;
  5943. pc)
  5944. lt_cv_deplibs_check_method=pass_all
  5945. ;;
  5946. esac
  5947. ;;
  5948. tpf*)
  5949. lt_cv_deplibs_check_method=pass_all
  5950. ;;
  5951. os2*)
  5952. lt_cv_deplibs_check_method=pass_all
  5953. ;;
  5954. esac
  5955. fi
  5956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5957. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5958. file_magic_glob=
  5959. want_nocaseglob=no
  5960. if test "$build" = "$host"; then
  5961. case $host_os in
  5962. mingw* | pw32*)
  5963. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5964. want_nocaseglob=yes
  5965. else
  5966. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5967. fi
  5968. ;;
  5969. esac
  5970. fi
  5971. file_magic_cmd=$lt_cv_file_magic_cmd
  5972. deplibs_check_method=$lt_cv_deplibs_check_method
  5973. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5974. if test -n "$ac_tool_prefix"; then
  5975. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5976. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5978. $as_echo_n "checking for $ac_word... " >&6; }
  5979. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5980. $as_echo_n "(cached) " >&6
  5981. else
  5982. if test -n "$DLLTOOL"; then
  5983. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5984. else
  5985. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5986. for as_dir in $PATH
  5987. do
  5988. IFS=$as_save_IFS
  5989. test -z "$as_dir" && as_dir=.
  5990. for ac_exec_ext in '' $ac_executable_extensions; do
  5991. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5992. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5993. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5994. break 2
  5995. fi
  5996. done
  5997. done
  5998. IFS=$as_save_IFS
  5999. fi
  6000. fi
  6001. DLLTOOL=$ac_cv_prog_DLLTOOL
  6002. if test -n "$DLLTOOL"; then
  6003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6004. $as_echo "$DLLTOOL" >&6; }
  6005. else
  6006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6007. $as_echo "no" >&6; }
  6008. fi
  6009. fi
  6010. if test -z "$ac_cv_prog_DLLTOOL"; then
  6011. ac_ct_DLLTOOL=$DLLTOOL
  6012. # Extract the first word of "dlltool", so it can be a program name with args.
  6013. set dummy dlltool; ac_word=$2
  6014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6015. $as_echo_n "checking for $ac_word... " >&6; }
  6016. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6017. $as_echo_n "(cached) " >&6
  6018. else
  6019. if test -n "$ac_ct_DLLTOOL"; then
  6020. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6021. else
  6022. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6023. for as_dir in $PATH
  6024. do
  6025. IFS=$as_save_IFS
  6026. test -z "$as_dir" && as_dir=.
  6027. for ac_exec_ext in '' $ac_executable_extensions; do
  6028. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6029. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6030. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6031. break 2
  6032. fi
  6033. done
  6034. done
  6035. IFS=$as_save_IFS
  6036. fi
  6037. fi
  6038. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6039. if test -n "$ac_ct_DLLTOOL"; then
  6040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6041. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6042. else
  6043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6044. $as_echo "no" >&6; }
  6045. fi
  6046. if test "x$ac_ct_DLLTOOL" = x; then
  6047. DLLTOOL="false"
  6048. else
  6049. case $cross_compiling:$ac_tool_warned in
  6050. yes:)
  6051. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6052. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6053. ac_tool_warned=yes ;;
  6054. esac
  6055. DLLTOOL=$ac_ct_DLLTOOL
  6056. fi
  6057. else
  6058. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6059. fi
  6060. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  6062. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  6063. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  6064. $as_echo_n "(cached) " >&6
  6065. else
  6066. lt_cv_sharedlib_from_linklib_cmd='unknown'
  6067. case $host_os in
  6068. cygwin* | mingw* | pw32* | cegcc*)
  6069. # two different shell functions defined in ltmain.sh;
  6070. # decide which one to use based on capabilities of $DLLTOOL
  6071. case `$DLLTOOL --help 2>&1` in
  6072. *--identify-strict*)
  6073. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  6074. ;;
  6075. *)
  6076. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  6077. ;;
  6078. esac
  6079. ;;
  6080. *)
  6081. # fallback: assume linklib IS sharedlib
  6082. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  6083. ;;
  6084. esac
  6085. fi
  6086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  6087. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  6088. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  6089. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  6090. if test -n "$ac_tool_prefix"; then
  6091. for ac_prog in ar
  6092. do
  6093. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6094. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6096. $as_echo_n "checking for $ac_word... " >&6; }
  6097. if ${ac_cv_prog_AR+:} false; then :
  6098. $as_echo_n "(cached) " >&6
  6099. else
  6100. if test -n "$AR"; then
  6101. ac_cv_prog_AR="$AR" # Let the user override the test.
  6102. else
  6103. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6104. for as_dir in $PATH
  6105. do
  6106. IFS=$as_save_IFS
  6107. test -z "$as_dir" && as_dir=.
  6108. for ac_exec_ext in '' $ac_executable_extensions; do
  6109. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6110. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  6111. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6112. break 2
  6113. fi
  6114. done
  6115. done
  6116. IFS=$as_save_IFS
  6117. fi
  6118. fi
  6119. AR=$ac_cv_prog_AR
  6120. if test -n "$AR"; then
  6121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6122. $as_echo "$AR" >&6; }
  6123. else
  6124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6125. $as_echo "no" >&6; }
  6126. fi
  6127. test -n "$AR" && break
  6128. done
  6129. fi
  6130. if test -z "$AR"; then
  6131. ac_ct_AR=$AR
  6132. for ac_prog in ar
  6133. do
  6134. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6135. set dummy $ac_prog; ac_word=$2
  6136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6137. $as_echo_n "checking for $ac_word... " >&6; }
  6138. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  6139. $as_echo_n "(cached) " >&6
  6140. else
  6141. if test -n "$ac_ct_AR"; then
  6142. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6143. else
  6144. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6145. for as_dir in $PATH
  6146. do
  6147. IFS=$as_save_IFS
  6148. test -z "$as_dir" && as_dir=.
  6149. for ac_exec_ext in '' $ac_executable_extensions; do
  6150. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6151. ac_cv_prog_ac_ct_AR="$ac_prog"
  6152. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6153. break 2
  6154. fi
  6155. done
  6156. done
  6157. IFS=$as_save_IFS
  6158. fi
  6159. fi
  6160. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6161. if test -n "$ac_ct_AR"; then
  6162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6163. $as_echo "$ac_ct_AR" >&6; }
  6164. else
  6165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6166. $as_echo "no" >&6; }
  6167. fi
  6168. test -n "$ac_ct_AR" && break
  6169. done
  6170. if test "x$ac_ct_AR" = x; then
  6171. AR="false"
  6172. else
  6173. case $cross_compiling:$ac_tool_warned in
  6174. yes:)
  6175. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6176. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6177. ac_tool_warned=yes ;;
  6178. esac
  6179. AR=$ac_ct_AR
  6180. fi
  6181. fi
  6182. : ${AR=ar}
  6183. : ${AR_FLAGS=cr}
  6184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  6185. $as_echo_n "checking for archiver @FILE support... " >&6; }
  6186. if ${lt_cv_ar_at_file+:} false; then :
  6187. $as_echo_n "(cached) " >&6
  6188. else
  6189. lt_cv_ar_at_file=no
  6190. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6191. /* end confdefs.h. */
  6192. int
  6193. main ()
  6194. {
  6195. ;
  6196. return 0;
  6197. }
  6198. _ACEOF
  6199. if ac_fn_c_try_compile "$LINENO"; then :
  6200. echo conftest.$ac_objext > conftest.lst
  6201. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  6202. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6203. (eval $lt_ar_try) 2>&5
  6204. ac_status=$?
  6205. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6206. test $ac_status = 0; }
  6207. if test 0 -eq "$ac_status"; then
  6208. # Ensure the archiver fails upon bogus file names.
  6209. rm -f conftest.$ac_objext libconftest.a
  6210. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6211. (eval $lt_ar_try) 2>&5
  6212. ac_status=$?
  6213. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6214. test $ac_status = 0; }
  6215. if test 0 -ne "$ac_status"; then
  6216. lt_cv_ar_at_file=@
  6217. fi
  6218. fi
  6219. rm -f conftest.* libconftest.a
  6220. fi
  6221. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6222. fi
  6223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  6224. $as_echo "$lt_cv_ar_at_file" >&6; }
  6225. if test no = "$lt_cv_ar_at_file"; then
  6226. archiver_list_spec=
  6227. else
  6228. archiver_list_spec=$lt_cv_ar_at_file
  6229. fi
  6230. if test -n "$ac_tool_prefix"; then
  6231. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6232. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6234. $as_echo_n "checking for $ac_word... " >&6; }
  6235. if ${ac_cv_prog_STRIP+:} false; then :
  6236. $as_echo_n "(cached) " >&6
  6237. else
  6238. if test -n "$STRIP"; then
  6239. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6240. else
  6241. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6242. for as_dir in $PATH
  6243. do
  6244. IFS=$as_save_IFS
  6245. test -z "$as_dir" && as_dir=.
  6246. for ac_exec_ext in '' $ac_executable_extensions; do
  6247. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6248. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6249. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6250. break 2
  6251. fi
  6252. done
  6253. done
  6254. IFS=$as_save_IFS
  6255. fi
  6256. fi
  6257. STRIP=$ac_cv_prog_STRIP
  6258. if test -n "$STRIP"; then
  6259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6260. $as_echo "$STRIP" >&6; }
  6261. else
  6262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6263. $as_echo "no" >&6; }
  6264. fi
  6265. fi
  6266. if test -z "$ac_cv_prog_STRIP"; then
  6267. ac_ct_STRIP=$STRIP
  6268. # Extract the first word of "strip", so it can be a program name with args.
  6269. set dummy strip; ac_word=$2
  6270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6271. $as_echo_n "checking for $ac_word... " >&6; }
  6272. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  6273. $as_echo_n "(cached) " >&6
  6274. else
  6275. if test -n "$ac_ct_STRIP"; then
  6276. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6277. else
  6278. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6279. for as_dir in $PATH
  6280. do
  6281. IFS=$as_save_IFS
  6282. test -z "$as_dir" && as_dir=.
  6283. for ac_exec_ext in '' $ac_executable_extensions; do
  6284. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6285. ac_cv_prog_ac_ct_STRIP="strip"
  6286. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6287. break 2
  6288. fi
  6289. done
  6290. done
  6291. IFS=$as_save_IFS
  6292. fi
  6293. fi
  6294. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6295. if test -n "$ac_ct_STRIP"; then
  6296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6297. $as_echo "$ac_ct_STRIP" >&6; }
  6298. else
  6299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6300. $as_echo "no" >&6; }
  6301. fi
  6302. if test "x$ac_ct_STRIP" = x; then
  6303. STRIP=":"
  6304. else
  6305. case $cross_compiling:$ac_tool_warned in
  6306. yes:)
  6307. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6308. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6309. ac_tool_warned=yes ;;
  6310. esac
  6311. STRIP=$ac_ct_STRIP
  6312. fi
  6313. else
  6314. STRIP="$ac_cv_prog_STRIP"
  6315. fi
  6316. test -z "$STRIP" && STRIP=:
  6317. if test -n "$ac_tool_prefix"; then
  6318. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6319. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6321. $as_echo_n "checking for $ac_word... " >&6; }
  6322. if ${ac_cv_prog_RANLIB+:} false; then :
  6323. $as_echo_n "(cached) " >&6
  6324. else
  6325. if test -n "$RANLIB"; then
  6326. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6327. else
  6328. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6329. for as_dir in $PATH
  6330. do
  6331. IFS=$as_save_IFS
  6332. test -z "$as_dir" && as_dir=.
  6333. for ac_exec_ext in '' $ac_executable_extensions; do
  6334. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6335. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6336. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6337. break 2
  6338. fi
  6339. done
  6340. done
  6341. IFS=$as_save_IFS
  6342. fi
  6343. fi
  6344. RANLIB=$ac_cv_prog_RANLIB
  6345. if test -n "$RANLIB"; then
  6346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6347. $as_echo "$RANLIB" >&6; }
  6348. else
  6349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6350. $as_echo "no" >&6; }
  6351. fi
  6352. fi
  6353. if test -z "$ac_cv_prog_RANLIB"; then
  6354. ac_ct_RANLIB=$RANLIB
  6355. # Extract the first word of "ranlib", so it can be a program name with args.
  6356. set dummy ranlib; ac_word=$2
  6357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6358. $as_echo_n "checking for $ac_word... " >&6; }
  6359. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6360. $as_echo_n "(cached) " >&6
  6361. else
  6362. if test -n "$ac_ct_RANLIB"; then
  6363. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6364. else
  6365. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6366. for as_dir in $PATH
  6367. do
  6368. IFS=$as_save_IFS
  6369. test -z "$as_dir" && as_dir=.
  6370. for ac_exec_ext in '' $ac_executable_extensions; do
  6371. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6372. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6373. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6374. break 2
  6375. fi
  6376. done
  6377. done
  6378. IFS=$as_save_IFS
  6379. fi
  6380. fi
  6381. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6382. if test -n "$ac_ct_RANLIB"; then
  6383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6384. $as_echo "$ac_ct_RANLIB" >&6; }
  6385. else
  6386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6387. $as_echo "no" >&6; }
  6388. fi
  6389. if test "x$ac_ct_RANLIB" = x; then
  6390. RANLIB=":"
  6391. else
  6392. case $cross_compiling:$ac_tool_warned in
  6393. yes:)
  6394. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6395. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6396. ac_tool_warned=yes ;;
  6397. esac
  6398. RANLIB=$ac_ct_RANLIB
  6399. fi
  6400. else
  6401. RANLIB="$ac_cv_prog_RANLIB"
  6402. fi
  6403. test -z "$RANLIB" && RANLIB=:
  6404. # Determine commands to create old-style static archives.
  6405. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6406. old_postinstall_cmds='chmod 644 $oldlib'
  6407. old_postuninstall_cmds=
  6408. if test -n "$RANLIB"; then
  6409. case $host_os in
  6410. bitrig* | openbsd*)
  6411. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6412. ;;
  6413. *)
  6414. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6415. ;;
  6416. esac
  6417. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6418. fi
  6419. case $host_os in
  6420. darwin*)
  6421. lock_old_archive_extraction=yes ;;
  6422. *)
  6423. lock_old_archive_extraction=no ;;
  6424. esac
  6425. # If no C compiler was specified, use CC.
  6426. LTCC=${LTCC-"$CC"}
  6427. # If no C compiler flags were specified, use CFLAGS.
  6428. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6429. # Allow CC to be a program name with arguments.
  6430. compiler=$CC
  6431. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6433. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6434. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6435. $as_echo_n "(cached) " >&6
  6436. else
  6437. # These are sane defaults that work on at least a few old systems.
  6438. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6439. # Character class describing NM global symbol codes.
  6440. symcode='[BCDEGRST]'
  6441. # Regexp to match symbols that can be accessed directly from C.
  6442. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6443. # Define system-specific variables.
  6444. case $host_os in
  6445. aix*)
  6446. symcode='[BCDT]'
  6447. ;;
  6448. cygwin* | mingw* | pw32* | cegcc*)
  6449. symcode='[ABCDGISTW]'
  6450. ;;
  6451. hpux*)
  6452. if test ia64 = "$host_cpu"; then
  6453. symcode='[ABCDEGRST]'
  6454. fi
  6455. ;;
  6456. irix* | nonstopux*)
  6457. symcode='[BCDEGRST]'
  6458. ;;
  6459. osf*)
  6460. symcode='[BCDEGQRST]'
  6461. ;;
  6462. solaris*)
  6463. symcode='[BDRT]'
  6464. ;;
  6465. sco3.2v5*)
  6466. symcode='[DT]'
  6467. ;;
  6468. sysv4.2uw2*)
  6469. symcode='[DT]'
  6470. ;;
  6471. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6472. symcode='[ABDT]'
  6473. ;;
  6474. sysv4)
  6475. symcode='[DFNSTU]'
  6476. ;;
  6477. esac
  6478. # If we're using GNU nm, then use its standard symbol codes.
  6479. case `$NM -V 2>&1` in
  6480. *GNU* | *'with BFD'*)
  6481. symcode='[ABCDGIRSTW]' ;;
  6482. esac
  6483. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6484. # Gets list of data symbols to import.
  6485. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  6486. # Adjust the below global symbol transforms to fixup imported variables.
  6487. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  6488. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  6489. lt_c_name_lib_hook="\
  6490. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  6491. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  6492. else
  6493. # Disable hooks by default.
  6494. lt_cv_sys_global_symbol_to_import=
  6495. lt_cdecl_hook=
  6496. lt_c_name_hook=
  6497. lt_c_name_lib_hook=
  6498. fi
  6499. # Transform an extracted symbol line into a proper C declaration.
  6500. # Some systems (esp. on ia64) link data and code symbols differently,
  6501. # so use this general approach.
  6502. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  6503. $lt_cdecl_hook\
  6504. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  6505. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  6506. # Transform an extracted symbol line into symbol name and symbol address
  6507. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  6508. $lt_c_name_hook\
  6509. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6510. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  6511. # Transform an extracted symbol line into symbol name with lib prefix and
  6512. # symbol address.
  6513. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  6514. $lt_c_name_lib_hook\
  6515. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6516. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  6517. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  6518. # Handle CRLF in mingw tool chain
  6519. opt_cr=
  6520. case $build_os in
  6521. mingw*)
  6522. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6523. ;;
  6524. esac
  6525. # Try without a prefix underscore, then with it.
  6526. for ac_symprfx in "" "_"; do
  6527. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6528. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6529. # Write the raw and C identifiers.
  6530. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6531. # Fake it for dumpbin and say T for any non-static function,
  6532. # D for any global variable and I for any imported variable.
  6533. # Also find C++ and __fastcall symbols from MSVC++,
  6534. # which start with @ or ?.
  6535. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6536. " {last_section=section; section=\$ 3};"\
  6537. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6538. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6539. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  6540. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  6541. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  6542. " \$ 0!~/External *\|/{next};"\
  6543. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6544. " {if(hide[section]) next};"\
  6545. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  6546. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  6547. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  6548. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  6549. " ' prfx=^$ac_symprfx"
  6550. else
  6551. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6552. fi
  6553. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6554. # Check to see that the pipe works correctly.
  6555. pipe_works=no
  6556. rm -f conftest*
  6557. cat > conftest.$ac_ext <<_LT_EOF
  6558. #ifdef __cplusplus
  6559. extern "C" {
  6560. #endif
  6561. char nm_test_var;
  6562. void nm_test_func(void);
  6563. void nm_test_func(void){}
  6564. #ifdef __cplusplus
  6565. }
  6566. #endif
  6567. int main(){nm_test_var='a';nm_test_func();return(0);}
  6568. _LT_EOF
  6569. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6570. (eval $ac_compile) 2>&5
  6571. ac_status=$?
  6572. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6573. test $ac_status = 0; }; then
  6574. # Now try to grab the symbols.
  6575. nlist=conftest.nm
  6576. $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
  6577. if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
  6578. # Try sorting and uniquifying the output.
  6579. if sort "$nlist" | uniq > "$nlist"T; then
  6580. mv -f "$nlist"T "$nlist"
  6581. else
  6582. rm -f "$nlist"T
  6583. fi
  6584. # Make sure that we snagged all the symbols we need.
  6585. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6586. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6587. cat <<_LT_EOF > conftest.$ac_ext
  6588. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6589. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  6590. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  6591. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6592. # define LT_DLSYM_CONST
  6593. #elif defined __osf__
  6594. /* This system does not cope well with relocations in const data. */
  6595. # define LT_DLSYM_CONST
  6596. #else
  6597. # define LT_DLSYM_CONST const
  6598. #endif
  6599. #ifdef __cplusplus
  6600. extern "C" {
  6601. #endif
  6602. _LT_EOF
  6603. # Now generate the symbol file.
  6604. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6605. cat <<_LT_EOF >> conftest.$ac_ext
  6606. /* The mapping between symbol names and symbols. */
  6607. LT_DLSYM_CONST struct {
  6608. const char *name;
  6609. void *address;
  6610. }
  6611. lt__PROGRAM__LTX_preloaded_symbols[] =
  6612. {
  6613. { "@PROGRAM@", (void *) 0 },
  6614. _LT_EOF
  6615. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6616. cat <<\_LT_EOF >> conftest.$ac_ext
  6617. {0, (void *) 0}
  6618. };
  6619. /* This works around a problem in FreeBSD linker */
  6620. #ifdef FREEBSD_WORKAROUND
  6621. static const void *lt_preloaded_setup() {
  6622. return lt__PROGRAM__LTX_preloaded_symbols;
  6623. }
  6624. #endif
  6625. #ifdef __cplusplus
  6626. }
  6627. #endif
  6628. _LT_EOF
  6629. # Now try linking the two files.
  6630. mv conftest.$ac_objext conftstm.$ac_objext
  6631. lt_globsym_save_LIBS=$LIBS
  6632. lt_globsym_save_CFLAGS=$CFLAGS
  6633. LIBS=conftstm.$ac_objext
  6634. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6635. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6636. (eval $ac_link) 2>&5
  6637. ac_status=$?
  6638. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6639. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6640. pipe_works=yes
  6641. fi
  6642. LIBS=$lt_globsym_save_LIBS
  6643. CFLAGS=$lt_globsym_save_CFLAGS
  6644. else
  6645. echo "cannot find nm_test_func in $nlist" >&5
  6646. fi
  6647. else
  6648. echo "cannot find nm_test_var in $nlist" >&5
  6649. fi
  6650. else
  6651. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6652. fi
  6653. else
  6654. echo "$progname: failed program was:" >&5
  6655. cat conftest.$ac_ext >&5
  6656. fi
  6657. rm -rf conftest* conftst*
  6658. # Do not use the global_symbol_pipe unless it works.
  6659. if test yes = "$pipe_works"; then
  6660. break
  6661. else
  6662. lt_cv_sys_global_symbol_pipe=
  6663. fi
  6664. done
  6665. fi
  6666. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6667. lt_cv_sys_global_symbol_to_cdecl=
  6668. fi
  6669. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6671. $as_echo "failed" >&6; }
  6672. else
  6673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6674. $as_echo "ok" >&6; }
  6675. fi
  6676. # Response file support.
  6677. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6678. nm_file_list_spec='@'
  6679. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6680. nm_file_list_spec='@'
  6681. fi
  6682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6683. $as_echo_n "checking for sysroot... " >&6; }
  6684. # Check whether --with-sysroot was given.
  6685. if test "${with_sysroot+set}" = set; then :
  6686. withval=$with_sysroot;
  6687. else
  6688. with_sysroot=no
  6689. fi
  6690. lt_sysroot=
  6691. case $with_sysroot in #(
  6692. yes)
  6693. if test yes = "$GCC"; then
  6694. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6695. fi
  6696. ;; #(
  6697. /*)
  6698. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6699. ;; #(
  6700. no|'')
  6701. ;; #(
  6702. *)
  6703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6704. $as_echo "$with_sysroot" >&6; }
  6705. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6706. ;;
  6707. esac
  6708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6709. $as_echo "${lt_sysroot:-no}" >&6; }
  6710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6711. $as_echo_n "checking for a working dd... " >&6; }
  6712. if ${ac_cv_path_lt_DD+:} false; then :
  6713. $as_echo_n "(cached) " >&6
  6714. else
  6715. printf 0123456789abcdef0123456789abcdef >conftest.i
  6716. cat conftest.i conftest.i >conftest2.i
  6717. : ${lt_DD:=$DD}
  6718. if test -z "$lt_DD"; then
  6719. ac_path_lt_DD_found=false
  6720. # Loop through the user's path and test for each of PROGNAME-LIST
  6721. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6722. for as_dir in $PATH
  6723. do
  6724. IFS=$as_save_IFS
  6725. test -z "$as_dir" && as_dir=.
  6726. for ac_prog in dd; do
  6727. for ac_exec_ext in '' $ac_executable_extensions; do
  6728. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  6729. as_fn_executable_p "$ac_path_lt_DD" || continue
  6730. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6731. cmp -s conftest.i conftest.out \
  6732. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6733. fi
  6734. $ac_path_lt_DD_found && break 3
  6735. done
  6736. done
  6737. done
  6738. IFS=$as_save_IFS
  6739. if test -z "$ac_cv_path_lt_DD"; then
  6740. :
  6741. fi
  6742. else
  6743. ac_cv_path_lt_DD=$lt_DD
  6744. fi
  6745. rm -f conftest.i conftest2.i conftest.out
  6746. fi
  6747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6748. $as_echo "$ac_cv_path_lt_DD" >&6; }
  6749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6750. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  6751. if ${lt_cv_truncate_bin+:} false; then :
  6752. $as_echo_n "(cached) " >&6
  6753. else
  6754. printf 0123456789abcdef0123456789abcdef >conftest.i
  6755. cat conftest.i conftest.i >conftest2.i
  6756. lt_cv_truncate_bin=
  6757. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6758. cmp -s conftest.i conftest.out \
  6759. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6760. fi
  6761. rm -f conftest.i conftest2.i conftest.out
  6762. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6763. fi
  6764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6765. $as_echo "$lt_cv_truncate_bin" >&6; }
  6766. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6767. func_cc_basename ()
  6768. {
  6769. for cc_temp in $*""; do
  6770. case $cc_temp in
  6771. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6772. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6773. \-*) ;;
  6774. *) break;;
  6775. esac
  6776. done
  6777. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6778. }
  6779. # Check whether --enable-libtool-lock was given.
  6780. if test "${enable_libtool_lock+set}" = set; then :
  6781. enableval=$enable_libtool_lock;
  6782. fi
  6783. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6784. # Some flags need to be propagated to the compiler or linker for good
  6785. # libtool support.
  6786. case $host in
  6787. ia64-*-hpux*)
  6788. # Find out what ABI is being produced by ac_compile, and set mode
  6789. # options accordingly.
  6790. echo 'int i;' > conftest.$ac_ext
  6791. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6792. (eval $ac_compile) 2>&5
  6793. ac_status=$?
  6794. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6795. test $ac_status = 0; }; then
  6796. case `/usr/bin/file conftest.$ac_objext` in
  6797. *ELF-32*)
  6798. HPUX_IA64_MODE=32
  6799. ;;
  6800. *ELF-64*)
  6801. HPUX_IA64_MODE=64
  6802. ;;
  6803. esac
  6804. fi
  6805. rm -rf conftest*
  6806. ;;
  6807. *-*-irix6*)
  6808. # Find out what ABI is being produced by ac_compile, and set linker
  6809. # options accordingly.
  6810. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6811. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6812. (eval $ac_compile) 2>&5
  6813. ac_status=$?
  6814. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6815. test $ac_status = 0; }; then
  6816. if test yes = "$lt_cv_prog_gnu_ld"; then
  6817. case `/usr/bin/file conftest.$ac_objext` in
  6818. *32-bit*)
  6819. LD="${LD-ld} -melf32bsmip"
  6820. ;;
  6821. *N32*)
  6822. LD="${LD-ld} -melf32bmipn32"
  6823. ;;
  6824. *64-bit*)
  6825. LD="${LD-ld} -melf64bmip"
  6826. ;;
  6827. esac
  6828. else
  6829. case `/usr/bin/file conftest.$ac_objext` in
  6830. *32-bit*)
  6831. LD="${LD-ld} -32"
  6832. ;;
  6833. *N32*)
  6834. LD="${LD-ld} -n32"
  6835. ;;
  6836. *64-bit*)
  6837. LD="${LD-ld} -64"
  6838. ;;
  6839. esac
  6840. fi
  6841. fi
  6842. rm -rf conftest*
  6843. ;;
  6844. mips64*-*linux*)
  6845. # Find out what ABI is being produced by ac_compile, and set linker
  6846. # options accordingly.
  6847. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6848. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6849. (eval $ac_compile) 2>&5
  6850. ac_status=$?
  6851. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6852. test $ac_status = 0; }; then
  6853. emul=elf
  6854. case `/usr/bin/file conftest.$ac_objext` in
  6855. *32-bit*)
  6856. emul="${emul}32"
  6857. ;;
  6858. *64-bit*)
  6859. emul="${emul}64"
  6860. ;;
  6861. esac
  6862. case `/usr/bin/file conftest.$ac_objext` in
  6863. *MSB*)
  6864. emul="${emul}btsmip"
  6865. ;;
  6866. *LSB*)
  6867. emul="${emul}ltsmip"
  6868. ;;
  6869. esac
  6870. case `/usr/bin/file conftest.$ac_objext` in
  6871. *N32*)
  6872. emul="${emul}n32"
  6873. ;;
  6874. esac
  6875. LD="${LD-ld} -m $emul"
  6876. fi
  6877. rm -rf conftest*
  6878. ;;
  6879. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6880. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6881. # Find out what ABI is being produced by ac_compile, and set linker
  6882. # options accordingly. Note that the listed cases only cover the
  6883. # situations where additional linker options are needed (such as when
  6884. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6885. # vice versa); the common cases where no linker options are needed do
  6886. # not appear in the list.
  6887. echo 'int i;' > conftest.$ac_ext
  6888. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6889. (eval $ac_compile) 2>&5
  6890. ac_status=$?
  6891. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6892. test $ac_status = 0; }; then
  6893. case `/usr/bin/file conftest.o` in
  6894. *32-bit*)
  6895. case $host in
  6896. x86_64-*kfreebsd*-gnu)
  6897. LD="${LD-ld} -m elf_i386_fbsd"
  6898. ;;
  6899. x86_64-*linux*)
  6900. case `/usr/bin/file conftest.o` in
  6901. *x86-64*)
  6902. LD="${LD-ld} -m elf32_x86_64"
  6903. ;;
  6904. *)
  6905. LD="${LD-ld} -m elf_i386"
  6906. ;;
  6907. esac
  6908. ;;
  6909. powerpc64le-*linux*)
  6910. LD="${LD-ld} -m elf32lppclinux"
  6911. ;;
  6912. powerpc64-*linux*)
  6913. LD="${LD-ld} -m elf32ppclinux"
  6914. ;;
  6915. s390x-*linux*)
  6916. LD="${LD-ld} -m elf_s390"
  6917. ;;
  6918. sparc64-*linux*)
  6919. LD="${LD-ld} -m elf32_sparc"
  6920. ;;
  6921. esac
  6922. ;;
  6923. *64-bit*)
  6924. case $host in
  6925. x86_64-*kfreebsd*-gnu)
  6926. LD="${LD-ld} -m elf_x86_64_fbsd"
  6927. ;;
  6928. x86_64-*linux*)
  6929. LD="${LD-ld} -m elf_x86_64"
  6930. ;;
  6931. powerpcle-*linux*)
  6932. LD="${LD-ld} -m elf64lppc"
  6933. ;;
  6934. powerpc-*linux*)
  6935. LD="${LD-ld} -m elf64ppc"
  6936. ;;
  6937. s390*-*linux*|s390*-*tpf*)
  6938. LD="${LD-ld} -m elf64_s390"
  6939. ;;
  6940. sparc*-*linux*)
  6941. LD="${LD-ld} -m elf64_sparc"
  6942. ;;
  6943. esac
  6944. ;;
  6945. esac
  6946. fi
  6947. rm -rf conftest*
  6948. ;;
  6949. *-*-sco3.2v5*)
  6950. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6951. SAVE_CFLAGS=$CFLAGS
  6952. CFLAGS="$CFLAGS -belf"
  6953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6954. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6955. if ${lt_cv_cc_needs_belf+:} false; then :
  6956. $as_echo_n "(cached) " >&6
  6957. else
  6958. ac_ext=c
  6959. ac_cpp='$CPP $CPPFLAGS'
  6960. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6961. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6962. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6963. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6964. /* end confdefs.h. */
  6965. int
  6966. main ()
  6967. {
  6968. ;
  6969. return 0;
  6970. }
  6971. _ACEOF
  6972. if ac_fn_c_try_link "$LINENO"; then :
  6973. lt_cv_cc_needs_belf=yes
  6974. else
  6975. lt_cv_cc_needs_belf=no
  6976. fi
  6977. rm -f core conftest.err conftest.$ac_objext \
  6978. conftest$ac_exeext conftest.$ac_ext
  6979. ac_ext=c
  6980. ac_cpp='$CPP $CPPFLAGS'
  6981. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6982. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6983. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6984. fi
  6985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6986. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6987. if test yes != "$lt_cv_cc_needs_belf"; then
  6988. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6989. CFLAGS=$SAVE_CFLAGS
  6990. fi
  6991. ;;
  6992. *-*solaris*)
  6993. # Find out what ABI is being produced by ac_compile, and set linker
  6994. # options accordingly.
  6995. echo 'int i;' > conftest.$ac_ext
  6996. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6997. (eval $ac_compile) 2>&5
  6998. ac_status=$?
  6999. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7000. test $ac_status = 0; }; then
  7001. case `/usr/bin/file conftest.o` in
  7002. *64-bit*)
  7003. case $lt_cv_prog_gnu_ld in
  7004. yes*)
  7005. case $host in
  7006. i?86-*-solaris*|x86_64-*-solaris*)
  7007. LD="${LD-ld} -m elf_x86_64"
  7008. ;;
  7009. sparc*-*-solaris*)
  7010. LD="${LD-ld} -m elf64_sparc"
  7011. ;;
  7012. esac
  7013. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  7014. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  7015. LD=${LD-ld}_sol2
  7016. fi
  7017. ;;
  7018. *)
  7019. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  7020. LD="${LD-ld} -64"
  7021. fi
  7022. ;;
  7023. esac
  7024. ;;
  7025. esac
  7026. fi
  7027. rm -rf conftest*
  7028. ;;
  7029. esac
  7030. need_locks=$enable_libtool_lock
  7031. if test -n "$ac_tool_prefix"; then
  7032. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  7033. set dummy ${ac_tool_prefix}mt; ac_word=$2
  7034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7035. $as_echo_n "checking for $ac_word... " >&6; }
  7036. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  7037. $as_echo_n "(cached) " >&6
  7038. else
  7039. if test -n "$MANIFEST_TOOL"; then
  7040. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  7041. else
  7042. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7043. for as_dir in $PATH
  7044. do
  7045. IFS=$as_save_IFS
  7046. test -z "$as_dir" && as_dir=.
  7047. for ac_exec_ext in '' $ac_executable_extensions; do
  7048. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7049. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  7050. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7051. break 2
  7052. fi
  7053. done
  7054. done
  7055. IFS=$as_save_IFS
  7056. fi
  7057. fi
  7058. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  7059. if test -n "$MANIFEST_TOOL"; then
  7060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  7061. $as_echo "$MANIFEST_TOOL" >&6; }
  7062. else
  7063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7064. $as_echo "no" >&6; }
  7065. fi
  7066. fi
  7067. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  7068. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  7069. # Extract the first word of "mt", so it can be a program name with args.
  7070. set dummy mt; ac_word=$2
  7071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7072. $as_echo_n "checking for $ac_word... " >&6; }
  7073. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  7074. $as_echo_n "(cached) " >&6
  7075. else
  7076. if test -n "$ac_ct_MANIFEST_TOOL"; then
  7077. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  7078. else
  7079. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7080. for as_dir in $PATH
  7081. do
  7082. IFS=$as_save_IFS
  7083. test -z "$as_dir" && as_dir=.
  7084. for ac_exec_ext in '' $ac_executable_extensions; do
  7085. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7086. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  7087. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7088. break 2
  7089. fi
  7090. done
  7091. done
  7092. IFS=$as_save_IFS
  7093. fi
  7094. fi
  7095. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  7096. if test -n "$ac_ct_MANIFEST_TOOL"; then
  7097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  7098. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  7099. else
  7100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7101. $as_echo "no" >&6; }
  7102. fi
  7103. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  7104. MANIFEST_TOOL=":"
  7105. else
  7106. case $cross_compiling:$ac_tool_warned in
  7107. yes:)
  7108. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7109. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7110. ac_tool_warned=yes ;;
  7111. esac
  7112. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  7113. fi
  7114. else
  7115. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  7116. fi
  7117. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  7118. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  7119. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  7120. if ${lt_cv_path_mainfest_tool+:} false; then :
  7121. $as_echo_n "(cached) " >&6
  7122. else
  7123. lt_cv_path_mainfest_tool=no
  7124. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  7125. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  7126. cat conftest.err >&5
  7127. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  7128. lt_cv_path_mainfest_tool=yes
  7129. fi
  7130. rm -f conftest*
  7131. fi
  7132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  7133. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  7134. if test yes != "$lt_cv_path_mainfest_tool"; then
  7135. MANIFEST_TOOL=:
  7136. fi
  7137. case $host_os in
  7138. rhapsody* | darwin*)
  7139. if test -n "$ac_tool_prefix"; then
  7140. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  7141. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  7142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7143. $as_echo_n "checking for $ac_word... " >&6; }
  7144. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  7145. $as_echo_n "(cached) " >&6
  7146. else
  7147. if test -n "$DSYMUTIL"; then
  7148. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  7149. else
  7150. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7151. for as_dir in $PATH
  7152. do
  7153. IFS=$as_save_IFS
  7154. test -z "$as_dir" && as_dir=.
  7155. for ac_exec_ext in '' $ac_executable_extensions; do
  7156. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7157. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  7158. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7159. break 2
  7160. fi
  7161. done
  7162. done
  7163. IFS=$as_save_IFS
  7164. fi
  7165. fi
  7166. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  7167. if test -n "$DSYMUTIL"; then
  7168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  7169. $as_echo "$DSYMUTIL" >&6; }
  7170. else
  7171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7172. $as_echo "no" >&6; }
  7173. fi
  7174. fi
  7175. if test -z "$ac_cv_prog_DSYMUTIL"; then
  7176. ac_ct_DSYMUTIL=$DSYMUTIL
  7177. # Extract the first word of "dsymutil", so it can be a program name with args.
  7178. set dummy dsymutil; ac_word=$2
  7179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7180. $as_echo_n "checking for $ac_word... " >&6; }
  7181. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  7182. $as_echo_n "(cached) " >&6
  7183. else
  7184. if test -n "$ac_ct_DSYMUTIL"; then
  7185. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  7186. else
  7187. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7188. for as_dir in $PATH
  7189. do
  7190. IFS=$as_save_IFS
  7191. test -z "$as_dir" && as_dir=.
  7192. for ac_exec_ext in '' $ac_executable_extensions; do
  7193. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7194. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  7195. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7196. break 2
  7197. fi
  7198. done
  7199. done
  7200. IFS=$as_save_IFS
  7201. fi
  7202. fi
  7203. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  7204. if test -n "$ac_ct_DSYMUTIL"; then
  7205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  7206. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  7207. else
  7208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7209. $as_echo "no" >&6; }
  7210. fi
  7211. if test "x$ac_ct_DSYMUTIL" = x; then
  7212. DSYMUTIL=":"
  7213. else
  7214. case $cross_compiling:$ac_tool_warned in
  7215. yes:)
  7216. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7217. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7218. ac_tool_warned=yes ;;
  7219. esac
  7220. DSYMUTIL=$ac_ct_DSYMUTIL
  7221. fi
  7222. else
  7223. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  7224. fi
  7225. if test -n "$ac_tool_prefix"; then
  7226. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  7227. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  7228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7229. $as_echo_n "checking for $ac_word... " >&6; }
  7230. if ${ac_cv_prog_NMEDIT+:} false; then :
  7231. $as_echo_n "(cached) " >&6
  7232. else
  7233. if test -n "$NMEDIT"; then
  7234. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  7235. else
  7236. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7237. for as_dir in $PATH
  7238. do
  7239. IFS=$as_save_IFS
  7240. test -z "$as_dir" && as_dir=.
  7241. for ac_exec_ext in '' $ac_executable_extensions; do
  7242. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7243. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  7244. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7245. break 2
  7246. fi
  7247. done
  7248. done
  7249. IFS=$as_save_IFS
  7250. fi
  7251. fi
  7252. NMEDIT=$ac_cv_prog_NMEDIT
  7253. if test -n "$NMEDIT"; then
  7254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  7255. $as_echo "$NMEDIT" >&6; }
  7256. else
  7257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7258. $as_echo "no" >&6; }
  7259. fi
  7260. fi
  7261. if test -z "$ac_cv_prog_NMEDIT"; then
  7262. ac_ct_NMEDIT=$NMEDIT
  7263. # Extract the first word of "nmedit", so it can be a program name with args.
  7264. set dummy nmedit; ac_word=$2
  7265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7266. $as_echo_n "checking for $ac_word... " >&6; }
  7267. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  7268. $as_echo_n "(cached) " >&6
  7269. else
  7270. if test -n "$ac_ct_NMEDIT"; then
  7271. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7272. else
  7273. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7274. for as_dir in $PATH
  7275. do
  7276. IFS=$as_save_IFS
  7277. test -z "$as_dir" && as_dir=.
  7278. for ac_exec_ext in '' $ac_executable_extensions; do
  7279. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7280. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7281. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7282. break 2
  7283. fi
  7284. done
  7285. done
  7286. IFS=$as_save_IFS
  7287. fi
  7288. fi
  7289. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7290. if test -n "$ac_ct_NMEDIT"; then
  7291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7292. $as_echo "$ac_ct_NMEDIT" >&6; }
  7293. else
  7294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7295. $as_echo "no" >&6; }
  7296. fi
  7297. if test "x$ac_ct_NMEDIT" = x; then
  7298. NMEDIT=":"
  7299. else
  7300. case $cross_compiling:$ac_tool_warned in
  7301. yes:)
  7302. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7303. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7304. ac_tool_warned=yes ;;
  7305. esac
  7306. NMEDIT=$ac_ct_NMEDIT
  7307. fi
  7308. else
  7309. NMEDIT="$ac_cv_prog_NMEDIT"
  7310. fi
  7311. if test -n "$ac_tool_prefix"; then
  7312. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7313. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7315. $as_echo_n "checking for $ac_word... " >&6; }
  7316. if ${ac_cv_prog_LIPO+:} false; then :
  7317. $as_echo_n "(cached) " >&6
  7318. else
  7319. if test -n "$LIPO"; then
  7320. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7321. else
  7322. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7323. for as_dir in $PATH
  7324. do
  7325. IFS=$as_save_IFS
  7326. test -z "$as_dir" && as_dir=.
  7327. for ac_exec_ext in '' $ac_executable_extensions; do
  7328. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7329. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7330. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7331. break 2
  7332. fi
  7333. done
  7334. done
  7335. IFS=$as_save_IFS
  7336. fi
  7337. fi
  7338. LIPO=$ac_cv_prog_LIPO
  7339. if test -n "$LIPO"; then
  7340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7341. $as_echo "$LIPO" >&6; }
  7342. else
  7343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7344. $as_echo "no" >&6; }
  7345. fi
  7346. fi
  7347. if test -z "$ac_cv_prog_LIPO"; then
  7348. ac_ct_LIPO=$LIPO
  7349. # Extract the first word of "lipo", so it can be a program name with args.
  7350. set dummy lipo; ac_word=$2
  7351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7352. $as_echo_n "checking for $ac_word... " >&6; }
  7353. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  7354. $as_echo_n "(cached) " >&6
  7355. else
  7356. if test -n "$ac_ct_LIPO"; then
  7357. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7358. else
  7359. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7360. for as_dir in $PATH
  7361. do
  7362. IFS=$as_save_IFS
  7363. test -z "$as_dir" && as_dir=.
  7364. for ac_exec_ext in '' $ac_executable_extensions; do
  7365. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7366. ac_cv_prog_ac_ct_LIPO="lipo"
  7367. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7368. break 2
  7369. fi
  7370. done
  7371. done
  7372. IFS=$as_save_IFS
  7373. fi
  7374. fi
  7375. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7376. if test -n "$ac_ct_LIPO"; then
  7377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7378. $as_echo "$ac_ct_LIPO" >&6; }
  7379. else
  7380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7381. $as_echo "no" >&6; }
  7382. fi
  7383. if test "x$ac_ct_LIPO" = x; then
  7384. LIPO=":"
  7385. else
  7386. case $cross_compiling:$ac_tool_warned in
  7387. yes:)
  7388. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7389. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7390. ac_tool_warned=yes ;;
  7391. esac
  7392. LIPO=$ac_ct_LIPO
  7393. fi
  7394. else
  7395. LIPO="$ac_cv_prog_LIPO"
  7396. fi
  7397. if test -n "$ac_tool_prefix"; then
  7398. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7399. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7401. $as_echo_n "checking for $ac_word... " >&6; }
  7402. if ${ac_cv_prog_OTOOL+:} false; then :
  7403. $as_echo_n "(cached) " >&6
  7404. else
  7405. if test -n "$OTOOL"; then
  7406. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7407. else
  7408. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7409. for as_dir in $PATH
  7410. do
  7411. IFS=$as_save_IFS
  7412. test -z "$as_dir" && as_dir=.
  7413. for ac_exec_ext in '' $ac_executable_extensions; do
  7414. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7415. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7416. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7417. break 2
  7418. fi
  7419. done
  7420. done
  7421. IFS=$as_save_IFS
  7422. fi
  7423. fi
  7424. OTOOL=$ac_cv_prog_OTOOL
  7425. if test -n "$OTOOL"; then
  7426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7427. $as_echo "$OTOOL" >&6; }
  7428. else
  7429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7430. $as_echo "no" >&6; }
  7431. fi
  7432. fi
  7433. if test -z "$ac_cv_prog_OTOOL"; then
  7434. ac_ct_OTOOL=$OTOOL
  7435. # Extract the first word of "otool", so it can be a program name with args.
  7436. set dummy otool; ac_word=$2
  7437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7438. $as_echo_n "checking for $ac_word... " >&6; }
  7439. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  7440. $as_echo_n "(cached) " >&6
  7441. else
  7442. if test -n "$ac_ct_OTOOL"; then
  7443. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7444. else
  7445. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7446. for as_dir in $PATH
  7447. do
  7448. IFS=$as_save_IFS
  7449. test -z "$as_dir" && as_dir=.
  7450. for ac_exec_ext in '' $ac_executable_extensions; do
  7451. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7452. ac_cv_prog_ac_ct_OTOOL="otool"
  7453. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7454. break 2
  7455. fi
  7456. done
  7457. done
  7458. IFS=$as_save_IFS
  7459. fi
  7460. fi
  7461. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7462. if test -n "$ac_ct_OTOOL"; then
  7463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7464. $as_echo "$ac_ct_OTOOL" >&6; }
  7465. else
  7466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7467. $as_echo "no" >&6; }
  7468. fi
  7469. if test "x$ac_ct_OTOOL" = x; then
  7470. OTOOL=":"
  7471. else
  7472. case $cross_compiling:$ac_tool_warned in
  7473. yes:)
  7474. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7475. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7476. ac_tool_warned=yes ;;
  7477. esac
  7478. OTOOL=$ac_ct_OTOOL
  7479. fi
  7480. else
  7481. OTOOL="$ac_cv_prog_OTOOL"
  7482. fi
  7483. if test -n "$ac_tool_prefix"; then
  7484. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7485. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7487. $as_echo_n "checking for $ac_word... " >&6; }
  7488. if ${ac_cv_prog_OTOOL64+:} false; then :
  7489. $as_echo_n "(cached) " >&6
  7490. else
  7491. if test -n "$OTOOL64"; then
  7492. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7493. else
  7494. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7495. for as_dir in $PATH
  7496. do
  7497. IFS=$as_save_IFS
  7498. test -z "$as_dir" && as_dir=.
  7499. for ac_exec_ext in '' $ac_executable_extensions; do
  7500. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7501. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7502. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7503. break 2
  7504. fi
  7505. done
  7506. done
  7507. IFS=$as_save_IFS
  7508. fi
  7509. fi
  7510. OTOOL64=$ac_cv_prog_OTOOL64
  7511. if test -n "$OTOOL64"; then
  7512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7513. $as_echo "$OTOOL64" >&6; }
  7514. else
  7515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7516. $as_echo "no" >&6; }
  7517. fi
  7518. fi
  7519. if test -z "$ac_cv_prog_OTOOL64"; then
  7520. ac_ct_OTOOL64=$OTOOL64
  7521. # Extract the first word of "otool64", so it can be a program name with args.
  7522. set dummy otool64; ac_word=$2
  7523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7524. $as_echo_n "checking for $ac_word... " >&6; }
  7525. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7526. $as_echo_n "(cached) " >&6
  7527. else
  7528. if test -n "$ac_ct_OTOOL64"; then
  7529. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7530. else
  7531. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7532. for as_dir in $PATH
  7533. do
  7534. IFS=$as_save_IFS
  7535. test -z "$as_dir" && as_dir=.
  7536. for ac_exec_ext in '' $ac_executable_extensions; do
  7537. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7538. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7539. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7540. break 2
  7541. fi
  7542. done
  7543. done
  7544. IFS=$as_save_IFS
  7545. fi
  7546. fi
  7547. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7548. if test -n "$ac_ct_OTOOL64"; then
  7549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7550. $as_echo "$ac_ct_OTOOL64" >&6; }
  7551. else
  7552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7553. $as_echo "no" >&6; }
  7554. fi
  7555. if test "x$ac_ct_OTOOL64" = x; then
  7556. OTOOL64=":"
  7557. else
  7558. case $cross_compiling:$ac_tool_warned in
  7559. yes:)
  7560. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7561. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7562. ac_tool_warned=yes ;;
  7563. esac
  7564. OTOOL64=$ac_ct_OTOOL64
  7565. fi
  7566. else
  7567. OTOOL64="$ac_cv_prog_OTOOL64"
  7568. fi
  7569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7570. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7571. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7572. $as_echo_n "(cached) " >&6
  7573. else
  7574. lt_cv_apple_cc_single_mod=no
  7575. if test -z "$LT_MULTI_MODULE"; then
  7576. # By default we will add the -single_module flag. You can override
  7577. # by either setting the environment variable LT_MULTI_MODULE
  7578. # non-empty at configure time, or by adding -multi_module to the
  7579. # link flags.
  7580. rm -rf libconftest.dylib*
  7581. echo "int foo(void){return 1;}" > conftest.c
  7582. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7583. -dynamiclib -Wl,-single_module conftest.c" >&5
  7584. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7585. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7586. _lt_result=$?
  7587. # If there is a non-empty error log, and "single_module"
  7588. # appears in it, assume the flag caused a linker warning
  7589. if test -s conftest.err && $GREP single_module conftest.err; then
  7590. cat conftest.err >&5
  7591. # Otherwise, if the output was created with a 0 exit code from
  7592. # the compiler, it worked.
  7593. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7594. lt_cv_apple_cc_single_mod=yes
  7595. else
  7596. cat conftest.err >&5
  7597. fi
  7598. rm -rf libconftest.dylib*
  7599. rm -f conftest.*
  7600. fi
  7601. fi
  7602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7603. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7605. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7606. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7607. $as_echo_n "(cached) " >&6
  7608. else
  7609. lt_cv_ld_exported_symbols_list=no
  7610. save_LDFLAGS=$LDFLAGS
  7611. echo "_main" > conftest.sym
  7612. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7613. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7614. /* end confdefs.h. */
  7615. int
  7616. main ()
  7617. {
  7618. ;
  7619. return 0;
  7620. }
  7621. _ACEOF
  7622. if ac_fn_c_try_link "$LINENO"; then :
  7623. lt_cv_ld_exported_symbols_list=yes
  7624. else
  7625. lt_cv_ld_exported_symbols_list=no
  7626. fi
  7627. rm -f core conftest.err conftest.$ac_objext \
  7628. conftest$ac_exeext conftest.$ac_ext
  7629. LDFLAGS=$save_LDFLAGS
  7630. fi
  7631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7632. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7634. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7635. if ${lt_cv_ld_force_load+:} false; then :
  7636. $as_echo_n "(cached) " >&6
  7637. else
  7638. lt_cv_ld_force_load=no
  7639. cat > conftest.c << _LT_EOF
  7640. int forced_loaded() { return 2;}
  7641. _LT_EOF
  7642. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7643. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7644. echo "$AR cr libconftest.a conftest.o" >&5
  7645. $AR cr libconftest.a conftest.o 2>&5
  7646. echo "$RANLIB libconftest.a" >&5
  7647. $RANLIB libconftest.a 2>&5
  7648. cat > conftest.c << _LT_EOF
  7649. int main() { return 0;}
  7650. _LT_EOF
  7651. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7652. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7653. _lt_result=$?
  7654. if test -s conftest.err && $GREP force_load conftest.err; then
  7655. cat conftest.err >&5
  7656. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7657. lt_cv_ld_force_load=yes
  7658. else
  7659. cat conftest.err >&5
  7660. fi
  7661. rm -f conftest.err libconftest.a conftest conftest.c
  7662. rm -rf conftest.dSYM
  7663. fi
  7664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7665. $as_echo "$lt_cv_ld_force_load" >&6; }
  7666. case $host_os in
  7667. rhapsody* | darwin1.[012])
  7668. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7669. darwin1.*)
  7670. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7671. darwin*) # darwin 5.x on
  7672. # if running on 10.5 or later, the deployment target defaults
  7673. # to the OS version, if on x86, and 10.4, the deployment
  7674. # target defaults to 10.4. Don't you love it?
  7675. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7676. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7677. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7678. 10.[012][,.]*)
  7679. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7680. 10.*)
  7681. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7682. esac
  7683. ;;
  7684. esac
  7685. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7686. _lt_dar_single_mod='$single_module'
  7687. fi
  7688. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7689. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7690. else
  7691. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7692. fi
  7693. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7694. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7695. else
  7696. _lt_dsymutil=
  7697. fi
  7698. ;;
  7699. esac
  7700. # func_munge_path_list VARIABLE PATH
  7701. # -----------------------------------
  7702. # VARIABLE is name of variable containing _space_ separated list of
  7703. # directories to be munged by the contents of PATH, which is string
  7704. # having a format:
  7705. # "DIR[:DIR]:"
  7706. # string "DIR[ DIR]" will be prepended to VARIABLE
  7707. # ":DIR[:DIR]"
  7708. # string "DIR[ DIR]" will be appended to VARIABLE
  7709. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7710. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7711. # "DIRA[ DIRA]" will be appended to VARIABLE
  7712. # "DIR[:DIR]"
  7713. # VARIABLE will be replaced by "DIR[ DIR]"
  7714. func_munge_path_list ()
  7715. {
  7716. case x$2 in
  7717. x)
  7718. ;;
  7719. *:)
  7720. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7721. ;;
  7722. x:*)
  7723. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7724. ;;
  7725. *::*)
  7726. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7727. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7728. ;;
  7729. *)
  7730. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7731. ;;
  7732. esac
  7733. }
  7734. for ac_header in dlfcn.h
  7735. do :
  7736. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7737. "
  7738. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7739. cat >>confdefs.h <<_ACEOF
  7740. #define HAVE_DLFCN_H 1
  7741. _ACEOF
  7742. fi
  7743. done
  7744. func_stripname_cnf ()
  7745. {
  7746. case $2 in
  7747. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  7748. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  7749. esac
  7750. } # func_stripname_cnf
  7751. # Set options
  7752. enable_dlopen=no
  7753. enable_win32_dll=no
  7754. # Check whether --enable-shared was given.
  7755. if test "${enable_shared+set}" = set; then :
  7756. enableval=$enable_shared; p=${PACKAGE-default}
  7757. case $enableval in
  7758. yes) enable_shared=yes ;;
  7759. no) enable_shared=no ;;
  7760. *)
  7761. enable_shared=no
  7762. # Look at the argument we got. We use all the common list separators.
  7763. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7764. for pkg in $enableval; do
  7765. IFS=$lt_save_ifs
  7766. if test "X$pkg" = "X$p"; then
  7767. enable_shared=yes
  7768. fi
  7769. done
  7770. IFS=$lt_save_ifs
  7771. ;;
  7772. esac
  7773. else
  7774. enable_shared=yes
  7775. fi
  7776. # Check whether --enable-static was given.
  7777. if test "${enable_static+set}" = set; then :
  7778. enableval=$enable_static; p=${PACKAGE-default}
  7779. case $enableval in
  7780. yes) enable_static=yes ;;
  7781. no) enable_static=no ;;
  7782. *)
  7783. enable_static=no
  7784. # Look at the argument we got. We use all the common list separators.
  7785. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7786. for pkg in $enableval; do
  7787. IFS=$lt_save_ifs
  7788. if test "X$pkg" = "X$p"; then
  7789. enable_static=yes
  7790. fi
  7791. done
  7792. IFS=$lt_save_ifs
  7793. ;;
  7794. esac
  7795. else
  7796. enable_static=yes
  7797. fi
  7798. # Check whether --with-pic was given.
  7799. if test "${with_pic+set}" = set; then :
  7800. withval=$with_pic; lt_p=${PACKAGE-default}
  7801. case $withval in
  7802. yes|no) pic_mode=$withval ;;
  7803. *)
  7804. pic_mode=default
  7805. # Look at the argument we got. We use all the common list separators.
  7806. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7807. for lt_pkg in $withval; do
  7808. IFS=$lt_save_ifs
  7809. if test "X$lt_pkg" = "X$lt_p"; then
  7810. pic_mode=yes
  7811. fi
  7812. done
  7813. IFS=$lt_save_ifs
  7814. ;;
  7815. esac
  7816. else
  7817. pic_mode=default
  7818. fi
  7819. # Check whether --enable-fast-install was given.
  7820. if test "${enable_fast_install+set}" = set; then :
  7821. enableval=$enable_fast_install; p=${PACKAGE-default}
  7822. case $enableval in
  7823. yes) enable_fast_install=yes ;;
  7824. no) enable_fast_install=no ;;
  7825. *)
  7826. enable_fast_install=no
  7827. # Look at the argument we got. We use all the common list separators.
  7828. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7829. for pkg in $enableval; do
  7830. IFS=$lt_save_ifs
  7831. if test "X$pkg" = "X$p"; then
  7832. enable_fast_install=yes
  7833. fi
  7834. done
  7835. IFS=$lt_save_ifs
  7836. ;;
  7837. esac
  7838. else
  7839. enable_fast_install=yes
  7840. fi
  7841. shared_archive_member_spec=
  7842. case $host,$enable_shared in
  7843. power*-*-aix[5-9]*,yes)
  7844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7845. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  7846. # Check whether --with-aix-soname was given.
  7847. if test "${with_aix_soname+set}" = set; then :
  7848. withval=$with_aix_soname; case $withval in
  7849. aix|svr4|both)
  7850. ;;
  7851. *)
  7852. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7853. ;;
  7854. esac
  7855. lt_cv_with_aix_soname=$with_aix_soname
  7856. else
  7857. if ${lt_cv_with_aix_soname+:} false; then :
  7858. $as_echo_n "(cached) " >&6
  7859. else
  7860. lt_cv_with_aix_soname=aix
  7861. fi
  7862. with_aix_soname=$lt_cv_with_aix_soname
  7863. fi
  7864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7865. $as_echo "$with_aix_soname" >&6; }
  7866. if test aix != "$with_aix_soname"; then
  7867. # For the AIX way of multilib, we name the shared archive member
  7868. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7869. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7870. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7871. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7872. if test 64 = "${OBJECT_MODE-32}"; then
  7873. shared_archive_member_spec=shr_64
  7874. else
  7875. shared_archive_member_spec=shr
  7876. fi
  7877. fi
  7878. ;;
  7879. *)
  7880. with_aix_soname=aix
  7881. ;;
  7882. esac
  7883. # This can be used to rebuild libtool when needed
  7884. LIBTOOL_DEPS=$ltmain
  7885. # Always use our own libtool.
  7886. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7887. test -z "$LN_S" && LN_S="ln -s"
  7888. if test -n "${ZSH_VERSION+set}"; then
  7889. setopt NO_GLOB_SUBST
  7890. fi
  7891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7892. $as_echo_n "checking for objdir... " >&6; }
  7893. if ${lt_cv_objdir+:} false; then :
  7894. $as_echo_n "(cached) " >&6
  7895. else
  7896. rm -f .libs 2>/dev/null
  7897. mkdir .libs 2>/dev/null
  7898. if test -d .libs; then
  7899. lt_cv_objdir=.libs
  7900. else
  7901. # MS-DOS does not allow filenames that begin with a dot.
  7902. lt_cv_objdir=_libs
  7903. fi
  7904. rmdir .libs 2>/dev/null
  7905. fi
  7906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7907. $as_echo "$lt_cv_objdir" >&6; }
  7908. objdir=$lt_cv_objdir
  7909. cat >>confdefs.h <<_ACEOF
  7910. #define LT_OBJDIR "$lt_cv_objdir/"
  7911. _ACEOF
  7912. case $host_os in
  7913. aix3*)
  7914. # AIX sometimes has problems with the GCC collect2 program. For some
  7915. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7916. # vanish in a puff of smoke.
  7917. if test set != "${COLLECT_NAMES+set}"; then
  7918. COLLECT_NAMES=
  7919. export COLLECT_NAMES
  7920. fi
  7921. ;;
  7922. esac
  7923. # Global variables:
  7924. ofile=libtool
  7925. can_build_shared=yes
  7926. # All known linkers require a '.a' archive for static linking (except MSVC,
  7927. # which needs '.lib').
  7928. libext=a
  7929. with_gnu_ld=$lt_cv_prog_gnu_ld
  7930. old_CC=$CC
  7931. old_CFLAGS=$CFLAGS
  7932. # Set sane defaults for various variables
  7933. test -z "$CC" && CC=cc
  7934. test -z "$LTCC" && LTCC=$CC
  7935. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7936. test -z "$LD" && LD=ld
  7937. test -z "$ac_objext" && ac_objext=o
  7938. func_cc_basename $compiler
  7939. cc_basename=$func_cc_basename_result
  7940. # Only perform the check for file, if the check method requires it
  7941. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7942. case $deplibs_check_method in
  7943. file_magic*)
  7944. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7946. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7947. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7948. $as_echo_n "(cached) " >&6
  7949. else
  7950. case $MAGIC_CMD in
  7951. [\\/*] | ?:[\\/]*)
  7952. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7953. ;;
  7954. *)
  7955. lt_save_MAGIC_CMD=$MAGIC_CMD
  7956. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7957. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7958. for ac_dir in $ac_dummy; do
  7959. IFS=$lt_save_ifs
  7960. test -z "$ac_dir" && ac_dir=.
  7961. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7962. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7963. if test -n "$file_magic_test_file"; then
  7964. case $deplibs_check_method in
  7965. "file_magic "*)
  7966. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7967. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7968. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7969. $EGREP "$file_magic_regex" > /dev/null; then
  7970. :
  7971. else
  7972. cat <<_LT_EOF 1>&2
  7973. *** Warning: the command libtool uses to detect shared libraries,
  7974. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7975. *** The result is that libtool may fail to recognize shared libraries
  7976. *** as such. This will affect the creation of libtool libraries that
  7977. *** depend on shared libraries, but programs linked with such libtool
  7978. *** libraries will work regardless of this problem. Nevertheless, you
  7979. *** may want to report the problem to your system manager and/or to
  7980. *** bug-libtool@gnu.org
  7981. _LT_EOF
  7982. fi ;;
  7983. esac
  7984. fi
  7985. break
  7986. fi
  7987. done
  7988. IFS=$lt_save_ifs
  7989. MAGIC_CMD=$lt_save_MAGIC_CMD
  7990. ;;
  7991. esac
  7992. fi
  7993. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7994. if test -n "$MAGIC_CMD"; then
  7995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7996. $as_echo "$MAGIC_CMD" >&6; }
  7997. else
  7998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7999. $as_echo "no" >&6; }
  8000. fi
  8001. if test -z "$lt_cv_path_MAGIC_CMD"; then
  8002. if test -n "$ac_tool_prefix"; then
  8003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  8004. $as_echo_n "checking for file... " >&6; }
  8005. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  8006. $as_echo_n "(cached) " >&6
  8007. else
  8008. case $MAGIC_CMD in
  8009. [\\/*] | ?:[\\/]*)
  8010. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  8011. ;;
  8012. *)
  8013. lt_save_MAGIC_CMD=$MAGIC_CMD
  8014. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  8015. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8016. for ac_dir in $ac_dummy; do
  8017. IFS=$lt_save_ifs
  8018. test -z "$ac_dir" && ac_dir=.
  8019. if test -f "$ac_dir/file"; then
  8020. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  8021. if test -n "$file_magic_test_file"; then
  8022. case $deplibs_check_method in
  8023. "file_magic "*)
  8024. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8025. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8026. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8027. $EGREP "$file_magic_regex" > /dev/null; then
  8028. :
  8029. else
  8030. cat <<_LT_EOF 1>&2
  8031. *** Warning: the command libtool uses to detect shared libraries,
  8032. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8033. *** The result is that libtool may fail to recognize shared libraries
  8034. *** as such. This will affect the creation of libtool libraries that
  8035. *** depend on shared libraries, but programs linked with such libtool
  8036. *** libraries will work regardless of this problem. Nevertheless, you
  8037. *** may want to report the problem to your system manager and/or to
  8038. *** bug-libtool@gnu.org
  8039. _LT_EOF
  8040. fi ;;
  8041. esac
  8042. fi
  8043. break
  8044. fi
  8045. done
  8046. IFS=$lt_save_ifs
  8047. MAGIC_CMD=$lt_save_MAGIC_CMD
  8048. ;;
  8049. esac
  8050. fi
  8051. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8052. if test -n "$MAGIC_CMD"; then
  8053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8054. $as_echo "$MAGIC_CMD" >&6; }
  8055. else
  8056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8057. $as_echo "no" >&6; }
  8058. fi
  8059. else
  8060. MAGIC_CMD=:
  8061. fi
  8062. fi
  8063. fi
  8064. ;;
  8065. esac
  8066. # Use C for the default configuration in the libtool script
  8067. lt_save_CC=$CC
  8068. ac_ext=c
  8069. ac_cpp='$CPP $CPPFLAGS'
  8070. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8071. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8072. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8073. # Source file extension for C test sources.
  8074. ac_ext=c
  8075. # Object file extension for compiled C test sources.
  8076. objext=o
  8077. objext=$objext
  8078. # Code to be used in simple compile tests
  8079. lt_simple_compile_test_code="int some_variable = 0;"
  8080. # Code to be used in simple link tests
  8081. lt_simple_link_test_code='int main(){return(0);}'
  8082. # If no C compiler was specified, use CC.
  8083. LTCC=${LTCC-"$CC"}
  8084. # If no C compiler flags were specified, use CFLAGS.
  8085. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8086. # Allow CC to be a program name with arguments.
  8087. compiler=$CC
  8088. # Save the default compiler, since it gets overwritten when the other
  8089. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8090. compiler_DEFAULT=$CC
  8091. # save warnings/boilerplate of simple test code
  8092. ac_outfile=conftest.$ac_objext
  8093. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  8094. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8095. _lt_compiler_boilerplate=`cat conftest.err`
  8096. $RM conftest*
  8097. ac_outfile=conftest.$ac_objext
  8098. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8099. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8100. _lt_linker_boilerplate=`cat conftest.err`
  8101. $RM -r conftest*
  8102. ## CAVEAT EMPTOR:
  8103. ## There is no encapsulation within the following macros, do not change
  8104. ## the running order or otherwise move them around unless you know exactly
  8105. ## what you are doing...
  8106. if test -n "$compiler"; then
  8107. lt_prog_compiler_no_builtin_flag=
  8108. if test yes = "$GCC"; then
  8109. case $cc_basename in
  8110. nvcc*)
  8111. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  8112. *)
  8113. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  8114. esac
  8115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8116. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8117. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  8118. $as_echo_n "(cached) " >&6
  8119. else
  8120. lt_cv_prog_compiler_rtti_exceptions=no
  8121. ac_outfile=conftest.$ac_objext
  8122. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8123. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  8124. # Insert the option either (1) after the last *FLAGS variable, or
  8125. # (2) before a word containing "conftest.", or (3) at the end.
  8126. # Note that $ac_compile itself does not contain backslashes and begins
  8127. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8128. # The option is referenced via a variable to avoid confusing sed.
  8129. lt_compile=`echo "$ac_compile" | $SED \
  8130. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8131. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8132. -e 's:$: $lt_compiler_flag:'`
  8133. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8134. (eval "$lt_compile" 2>conftest.err)
  8135. ac_status=$?
  8136. cat conftest.err >&5
  8137. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8138. if (exit $ac_status) && test -s "$ac_outfile"; then
  8139. # The compiler can only warn and ignore the option if not recognized
  8140. # So say no if there are warnings other than the usual output.
  8141. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8142. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8143. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8144. lt_cv_prog_compiler_rtti_exceptions=yes
  8145. fi
  8146. fi
  8147. $RM conftest*
  8148. fi
  8149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8150. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8151. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  8152. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8153. else
  8154. :
  8155. fi
  8156. fi
  8157. lt_prog_compiler_wl=
  8158. lt_prog_compiler_pic=
  8159. lt_prog_compiler_static=
  8160. if test yes = "$GCC"; then
  8161. lt_prog_compiler_wl='-Wl,'
  8162. lt_prog_compiler_static='-static'
  8163. case $host_os in
  8164. aix*)
  8165. # All AIX code is PIC.
  8166. if test ia64 = "$host_cpu"; then
  8167. # AIX 5 now supports IA64 processor
  8168. lt_prog_compiler_static='-Bstatic'
  8169. fi
  8170. lt_prog_compiler_pic='-fPIC'
  8171. ;;
  8172. amigaos*)
  8173. case $host_cpu in
  8174. powerpc)
  8175. # see comment about AmigaOS4 .so support
  8176. lt_prog_compiler_pic='-fPIC'
  8177. ;;
  8178. m68k)
  8179. # FIXME: we need at least 68020 code to build shared libraries, but
  8180. # adding the '-m68020' flag to GCC prevents building anything better,
  8181. # like '-m68040'.
  8182. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8183. ;;
  8184. esac
  8185. ;;
  8186. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8187. # PIC is the default for these OSes.
  8188. ;;
  8189. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8190. # This hack is so that the source file can tell whether it is being
  8191. # built for inclusion in a dll (and should export symbols for example).
  8192. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8193. # (--disable-auto-import) libraries
  8194. lt_prog_compiler_pic='-DDLL_EXPORT'
  8195. case $host_os in
  8196. os2*)
  8197. lt_prog_compiler_static='$wl-static'
  8198. ;;
  8199. esac
  8200. ;;
  8201. darwin* | rhapsody*)
  8202. # PIC is the default on this platform
  8203. # Common symbols not allowed in MH_DYLIB files
  8204. lt_prog_compiler_pic='-fno-common'
  8205. ;;
  8206. haiku*)
  8207. # PIC is the default for Haiku.
  8208. # The "-static" flag exists, but is broken.
  8209. lt_prog_compiler_static=
  8210. ;;
  8211. hpux*)
  8212. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8213. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8214. # sets the default TLS model and affects inlining.
  8215. case $host_cpu in
  8216. hppa*64*)
  8217. # +Z the default
  8218. ;;
  8219. *)
  8220. lt_prog_compiler_pic='-fPIC'
  8221. ;;
  8222. esac
  8223. ;;
  8224. interix[3-9]*)
  8225. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8226. # Instead, we relocate shared libraries at runtime.
  8227. ;;
  8228. msdosdjgpp*)
  8229. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8230. # on systems that don't support them.
  8231. lt_prog_compiler_can_build_shared=no
  8232. enable_shared=no
  8233. ;;
  8234. *nto* | *qnx*)
  8235. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8236. # it will coredump.
  8237. lt_prog_compiler_pic='-fPIC -shared'
  8238. ;;
  8239. sysv4*MP*)
  8240. if test -d /usr/nec; then
  8241. lt_prog_compiler_pic=-Kconform_pic
  8242. fi
  8243. ;;
  8244. *)
  8245. lt_prog_compiler_pic='-fPIC'
  8246. ;;
  8247. esac
  8248. case $cc_basename in
  8249. nvcc*) # Cuda Compiler Driver 2.2
  8250. lt_prog_compiler_wl='-Xlinker '
  8251. if test -n "$lt_prog_compiler_pic"; then
  8252. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8253. fi
  8254. ;;
  8255. esac
  8256. else
  8257. # PORTME Check for flag to pass linker flags through the system compiler.
  8258. case $host_os in
  8259. aix*)
  8260. lt_prog_compiler_wl='-Wl,'
  8261. if test ia64 = "$host_cpu"; then
  8262. # AIX 5 now supports IA64 processor
  8263. lt_prog_compiler_static='-Bstatic'
  8264. else
  8265. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8266. fi
  8267. ;;
  8268. darwin* | rhapsody*)
  8269. # PIC is the default on this platform
  8270. # Common symbols not allowed in MH_DYLIB files
  8271. lt_prog_compiler_pic='-fno-common'
  8272. case $cc_basename in
  8273. nagfor*)
  8274. # NAG Fortran compiler
  8275. lt_prog_compiler_wl='-Wl,-Wl,,'
  8276. lt_prog_compiler_pic='-PIC'
  8277. lt_prog_compiler_static='-Bstatic'
  8278. ;;
  8279. esac
  8280. ;;
  8281. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8282. # This hack is so that the source file can tell whether it is being
  8283. # built for inclusion in a dll (and should export symbols for example).
  8284. lt_prog_compiler_pic='-DDLL_EXPORT'
  8285. case $host_os in
  8286. os2*)
  8287. lt_prog_compiler_static='$wl-static'
  8288. ;;
  8289. esac
  8290. ;;
  8291. hpux9* | hpux10* | hpux11*)
  8292. lt_prog_compiler_wl='-Wl,'
  8293. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8294. # not for PA HP-UX.
  8295. case $host_cpu in
  8296. hppa*64*|ia64*)
  8297. # +Z the default
  8298. ;;
  8299. *)
  8300. lt_prog_compiler_pic='+Z'
  8301. ;;
  8302. esac
  8303. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8304. lt_prog_compiler_static='$wl-a ${wl}archive'
  8305. ;;
  8306. irix5* | irix6* | nonstopux*)
  8307. lt_prog_compiler_wl='-Wl,'
  8308. # PIC (with -KPIC) is the default.
  8309. lt_prog_compiler_static='-non_shared'
  8310. ;;
  8311. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8312. case $cc_basename in
  8313. # old Intel for x86_64, which still supported -KPIC.
  8314. ecc*)
  8315. lt_prog_compiler_wl='-Wl,'
  8316. lt_prog_compiler_pic='-KPIC'
  8317. lt_prog_compiler_static='-static'
  8318. ;;
  8319. # flang / f18. f95 an alias for gfortran or flang on Debian
  8320. flang* | f18* | f95*)
  8321. lt_prog_compiler_wl='-Wl,'
  8322. lt_prog_compiler_pic='-fPIC'
  8323. lt_prog_compiler_static='-static'
  8324. ;;
  8325. # icc used to be incompatible with GCC.
  8326. # ICC 10 doesn't accept -KPIC any more.
  8327. icc* | ifort*)
  8328. lt_prog_compiler_wl='-Wl,'
  8329. lt_prog_compiler_pic='-fPIC'
  8330. lt_prog_compiler_static='-static'
  8331. ;;
  8332. # Lahey Fortran 8.1.
  8333. lf95*)
  8334. lt_prog_compiler_wl='-Wl,'
  8335. lt_prog_compiler_pic='--shared'
  8336. lt_prog_compiler_static='--static'
  8337. ;;
  8338. nagfor*)
  8339. # NAG Fortran compiler
  8340. lt_prog_compiler_wl='-Wl,-Wl,,'
  8341. lt_prog_compiler_pic='-PIC'
  8342. lt_prog_compiler_static='-Bstatic'
  8343. ;;
  8344. tcc*)
  8345. # Fabrice Bellard et al's Tiny C Compiler
  8346. lt_prog_compiler_wl='-Wl,'
  8347. lt_prog_compiler_pic='-fPIC'
  8348. lt_prog_compiler_static='-static'
  8349. ;;
  8350. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8351. # Portland Group compilers (*not* the Pentium gcc compiler,
  8352. # which looks to be a dead project)
  8353. lt_prog_compiler_wl='-Wl,'
  8354. lt_prog_compiler_pic='-fpic'
  8355. lt_prog_compiler_static='-Bstatic'
  8356. ;;
  8357. ccc*)
  8358. lt_prog_compiler_wl='-Wl,'
  8359. # All Alpha code is PIC.
  8360. lt_prog_compiler_static='-non_shared'
  8361. ;;
  8362. xl* | bgxl* | bgf* | mpixl*)
  8363. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8364. lt_prog_compiler_wl='-Wl,'
  8365. lt_prog_compiler_pic='-qpic'
  8366. lt_prog_compiler_static='-qstaticlink'
  8367. ;;
  8368. *)
  8369. case `$CC -V 2>&1 | sed 5q` in
  8370. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8371. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8372. lt_prog_compiler_pic='-KPIC'
  8373. lt_prog_compiler_static='-Bstatic'
  8374. lt_prog_compiler_wl=''
  8375. ;;
  8376. *Sun\ F* | *Sun*Fortran*)
  8377. lt_prog_compiler_pic='-KPIC'
  8378. lt_prog_compiler_static='-Bstatic'
  8379. lt_prog_compiler_wl='-Qoption ld '
  8380. ;;
  8381. *Sun\ C*)
  8382. # Sun C 5.9
  8383. lt_prog_compiler_pic='-KPIC'
  8384. lt_prog_compiler_static='-Bstatic'
  8385. lt_prog_compiler_wl='-Wl,'
  8386. ;;
  8387. *Intel*\ [CF]*Compiler*)
  8388. lt_prog_compiler_wl='-Wl,'
  8389. lt_prog_compiler_pic='-fPIC'
  8390. lt_prog_compiler_static='-static'
  8391. ;;
  8392. *Portland\ Group*)
  8393. lt_prog_compiler_wl='-Wl,'
  8394. lt_prog_compiler_pic='-fpic'
  8395. lt_prog_compiler_static='-Bstatic'
  8396. ;;
  8397. esac
  8398. ;;
  8399. esac
  8400. ;;
  8401. newsos6)
  8402. lt_prog_compiler_pic='-KPIC'
  8403. lt_prog_compiler_static='-Bstatic'
  8404. ;;
  8405. *nto* | *qnx*)
  8406. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8407. # it will coredump.
  8408. lt_prog_compiler_pic='-fPIC -shared'
  8409. ;;
  8410. osf3* | osf4* | osf5*)
  8411. lt_prog_compiler_wl='-Wl,'
  8412. # All OSF/1 code is PIC.
  8413. lt_prog_compiler_static='-non_shared'
  8414. ;;
  8415. rdos*)
  8416. lt_prog_compiler_static='-non_shared'
  8417. ;;
  8418. solaris*)
  8419. lt_prog_compiler_pic='-KPIC'
  8420. lt_prog_compiler_static='-Bstatic'
  8421. case $cc_basename in
  8422. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8423. lt_prog_compiler_wl='-Qoption ld ';;
  8424. *)
  8425. lt_prog_compiler_wl='-Wl,';;
  8426. esac
  8427. ;;
  8428. sunos4*)
  8429. lt_prog_compiler_wl='-Qoption ld '
  8430. lt_prog_compiler_pic='-PIC'
  8431. lt_prog_compiler_static='-Bstatic'
  8432. ;;
  8433. sysv4 | sysv4.2uw2* | sysv4.3*)
  8434. lt_prog_compiler_wl='-Wl,'
  8435. lt_prog_compiler_pic='-KPIC'
  8436. lt_prog_compiler_static='-Bstatic'
  8437. ;;
  8438. sysv4*MP*)
  8439. if test -d /usr/nec; then
  8440. lt_prog_compiler_pic='-Kconform_pic'
  8441. lt_prog_compiler_static='-Bstatic'
  8442. fi
  8443. ;;
  8444. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8445. lt_prog_compiler_wl='-Wl,'
  8446. lt_prog_compiler_pic='-KPIC'
  8447. lt_prog_compiler_static='-Bstatic'
  8448. ;;
  8449. unicos*)
  8450. lt_prog_compiler_wl='-Wl,'
  8451. lt_prog_compiler_can_build_shared=no
  8452. ;;
  8453. uts4*)
  8454. lt_prog_compiler_pic='-pic'
  8455. lt_prog_compiler_static='-Bstatic'
  8456. ;;
  8457. *)
  8458. lt_prog_compiler_can_build_shared=no
  8459. ;;
  8460. esac
  8461. fi
  8462. case $host_os in
  8463. # For platforms that do not support PIC, -DPIC is meaningless:
  8464. *djgpp*)
  8465. lt_prog_compiler_pic=
  8466. ;;
  8467. *)
  8468. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8469. ;;
  8470. esac
  8471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8472. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8473. if ${lt_cv_prog_compiler_pic+:} false; then :
  8474. $as_echo_n "(cached) " >&6
  8475. else
  8476. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8477. fi
  8478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8479. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  8480. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8481. #
  8482. # Check to make sure the PIC flag actually works.
  8483. #
  8484. if test -n "$lt_prog_compiler_pic"; then
  8485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8486. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8487. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8488. $as_echo_n "(cached) " >&6
  8489. else
  8490. lt_cv_prog_compiler_pic_works=no
  8491. ac_outfile=conftest.$ac_objext
  8492. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8493. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8494. # Insert the option either (1) after the last *FLAGS variable, or
  8495. # (2) before a word containing "conftest.", or (3) at the end.
  8496. # Note that $ac_compile itself does not contain backslashes and begins
  8497. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8498. # The option is referenced via a variable to avoid confusing sed.
  8499. lt_compile=`echo "$ac_compile" | $SED \
  8500. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8501. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8502. -e 's:$: $lt_compiler_flag:'`
  8503. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8504. (eval "$lt_compile" 2>conftest.err)
  8505. ac_status=$?
  8506. cat conftest.err >&5
  8507. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8508. if (exit $ac_status) && test -s "$ac_outfile"; then
  8509. # The compiler can only warn and ignore the option if not recognized
  8510. # So say no if there are warnings other than the usual output.
  8511. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8512. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8513. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8514. lt_cv_prog_compiler_pic_works=yes
  8515. fi
  8516. fi
  8517. $RM conftest*
  8518. fi
  8519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8520. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8521. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8522. case $lt_prog_compiler_pic in
  8523. "" | " "*) ;;
  8524. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8525. esac
  8526. else
  8527. lt_prog_compiler_pic=
  8528. lt_prog_compiler_can_build_shared=no
  8529. fi
  8530. fi
  8531. #
  8532. # Check to make sure the static flag actually works.
  8533. #
  8534. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8536. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8537. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8538. $as_echo_n "(cached) " >&6
  8539. else
  8540. lt_cv_prog_compiler_static_works=no
  8541. save_LDFLAGS=$LDFLAGS
  8542. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8543. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8544. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8545. # The linker can only warn and ignore the option if not recognized
  8546. # So say no if there are warnings
  8547. if test -s conftest.err; then
  8548. # Append any errors to the config.log.
  8549. cat conftest.err 1>&5
  8550. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8551. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8552. if diff conftest.exp conftest.er2 >/dev/null; then
  8553. lt_cv_prog_compiler_static_works=yes
  8554. fi
  8555. else
  8556. lt_cv_prog_compiler_static_works=yes
  8557. fi
  8558. fi
  8559. $RM -r conftest*
  8560. LDFLAGS=$save_LDFLAGS
  8561. fi
  8562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8563. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8564. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8565. :
  8566. else
  8567. lt_prog_compiler_static=
  8568. fi
  8569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8570. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8571. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8572. $as_echo_n "(cached) " >&6
  8573. else
  8574. lt_cv_prog_compiler_c_o=no
  8575. $RM -r conftest 2>/dev/null
  8576. mkdir conftest
  8577. cd conftest
  8578. mkdir out
  8579. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8580. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8581. # Insert the option either (1) after the last *FLAGS variable, or
  8582. # (2) before a word containing "conftest.", or (3) at the end.
  8583. # Note that $ac_compile itself does not contain backslashes and begins
  8584. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8585. lt_compile=`echo "$ac_compile" | $SED \
  8586. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8587. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8588. -e 's:$: $lt_compiler_flag:'`
  8589. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8590. (eval "$lt_compile" 2>out/conftest.err)
  8591. ac_status=$?
  8592. cat out/conftest.err >&5
  8593. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8594. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8595. then
  8596. # The compiler can only warn and ignore the option if not recognized
  8597. # So say no if there are warnings
  8598. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8599. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8600. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8601. lt_cv_prog_compiler_c_o=yes
  8602. fi
  8603. fi
  8604. chmod u+w . 2>&5
  8605. $RM conftest*
  8606. # SGI C++ compiler will create directory out/ii_files/ for
  8607. # template instantiation
  8608. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8609. $RM out/* && rmdir out
  8610. cd ..
  8611. $RM -r conftest
  8612. $RM conftest*
  8613. fi
  8614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8615. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8617. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8618. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8619. $as_echo_n "(cached) " >&6
  8620. else
  8621. lt_cv_prog_compiler_c_o=no
  8622. $RM -r conftest 2>/dev/null
  8623. mkdir conftest
  8624. cd conftest
  8625. mkdir out
  8626. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8627. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8628. # Insert the option either (1) after the last *FLAGS variable, or
  8629. # (2) before a word containing "conftest.", or (3) at the end.
  8630. # Note that $ac_compile itself does not contain backslashes and begins
  8631. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8632. lt_compile=`echo "$ac_compile" | $SED \
  8633. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8634. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8635. -e 's:$: $lt_compiler_flag:'`
  8636. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8637. (eval "$lt_compile" 2>out/conftest.err)
  8638. ac_status=$?
  8639. cat out/conftest.err >&5
  8640. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8641. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8642. then
  8643. # The compiler can only warn and ignore the option if not recognized
  8644. # So say no if there are warnings
  8645. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8646. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8647. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8648. lt_cv_prog_compiler_c_o=yes
  8649. fi
  8650. fi
  8651. chmod u+w . 2>&5
  8652. $RM conftest*
  8653. # SGI C++ compiler will create directory out/ii_files/ for
  8654. # template instantiation
  8655. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8656. $RM out/* && rmdir out
  8657. cd ..
  8658. $RM -r conftest
  8659. $RM conftest*
  8660. fi
  8661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8662. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8663. hard_links=nottested
  8664. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8665. # do not overwrite the value of need_locks provided by the user
  8666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8667. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8668. hard_links=yes
  8669. $RM conftest*
  8670. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8671. touch conftest.a
  8672. ln conftest.a conftest.b 2>&5 || hard_links=no
  8673. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8675. $as_echo "$hard_links" >&6; }
  8676. if test no = "$hard_links"; then
  8677. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8678. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8679. need_locks=warn
  8680. fi
  8681. else
  8682. need_locks=no
  8683. fi
  8684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8685. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8686. runpath_var=
  8687. allow_undefined_flag=
  8688. always_export_symbols=no
  8689. archive_cmds=
  8690. archive_expsym_cmds=
  8691. compiler_needs_object=no
  8692. enable_shared_with_static_runtimes=no
  8693. export_dynamic_flag_spec=
  8694. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8695. hardcode_automatic=no
  8696. hardcode_direct=no
  8697. hardcode_direct_absolute=no
  8698. hardcode_libdir_flag_spec=
  8699. hardcode_libdir_separator=
  8700. hardcode_minus_L=no
  8701. hardcode_shlibpath_var=unsupported
  8702. inherit_rpath=no
  8703. link_all_deplibs=unknown
  8704. module_cmds=
  8705. module_expsym_cmds=
  8706. old_archive_from_new_cmds=
  8707. old_archive_from_expsyms_cmds=
  8708. thread_safe_flag_spec=
  8709. whole_archive_flag_spec=
  8710. # include_expsyms should be a list of space-separated symbols to be *always*
  8711. # included in the symbol list
  8712. include_expsyms=
  8713. # exclude_expsyms can be an extended regexp of symbols to exclude
  8714. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8715. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8716. # as well as any symbol that contains 'd'.
  8717. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8718. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8719. # platforms (ab)use it in PIC code, but their linkers get confused if
  8720. # the symbol is explicitly referenced. Since portable code cannot
  8721. # rely on this symbol name, it's probably fine to never include it in
  8722. # preloaded symbol tables.
  8723. # Exclude shared library initialization/finalization symbols.
  8724. extract_expsyms_cmds=
  8725. case $host_os in
  8726. cygwin* | mingw* | pw32* | cegcc*)
  8727. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8728. # When not using gcc, we currently assume that we are using
  8729. # Microsoft Visual C++.
  8730. if test yes != "$GCC"; then
  8731. with_gnu_ld=no
  8732. fi
  8733. ;;
  8734. interix*)
  8735. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8736. with_gnu_ld=yes
  8737. ;;
  8738. openbsd* | bitrig*)
  8739. with_gnu_ld=no
  8740. ;;
  8741. linux* | k*bsd*-gnu | gnu*)
  8742. link_all_deplibs=no
  8743. ;;
  8744. esac
  8745. ld_shlibs=yes
  8746. # On some targets, GNU ld is compatible enough with the native linker
  8747. # that we're better off using the native interface for both.
  8748. lt_use_gnu_ld_interface=no
  8749. if test yes = "$with_gnu_ld"; then
  8750. case $host_os in
  8751. aix*)
  8752. # The AIX port of GNU ld has always aspired to compatibility
  8753. # with the native linker. However, as the warning in the GNU ld
  8754. # block says, versions before 2.19.5* couldn't really create working
  8755. # shared libraries, regardless of the interface used.
  8756. case `$LD -v 2>&1` in
  8757. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8758. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8759. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8760. *)
  8761. lt_use_gnu_ld_interface=yes
  8762. ;;
  8763. esac
  8764. ;;
  8765. *)
  8766. lt_use_gnu_ld_interface=yes
  8767. ;;
  8768. esac
  8769. fi
  8770. if test yes = "$lt_use_gnu_ld_interface"; then
  8771. # If archive_cmds runs LD, not CC, wlarc should be empty
  8772. wlarc='$wl'
  8773. # Set some defaults for GNU ld with shared library support. These
  8774. # are reset later if shared libraries are not supported. Putting them
  8775. # here allows them to be overridden if necessary.
  8776. runpath_var=LD_RUN_PATH
  8777. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8778. export_dynamic_flag_spec='$wl--export-dynamic'
  8779. # ancient GNU ld didn't support --whole-archive et. al.
  8780. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8781. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  8782. else
  8783. whole_archive_flag_spec=
  8784. fi
  8785. supports_anon_versioning=no
  8786. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  8787. *GNU\ gold*) supports_anon_versioning=yes ;;
  8788. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8789. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8790. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8791. *\ 2.11.*) ;; # other 2.11 versions
  8792. *) supports_anon_versioning=yes ;;
  8793. esac
  8794. # See if GNU ld supports shared libraries.
  8795. case $host_os in
  8796. aix[3-9]*)
  8797. # On AIX/PPC, the GNU linker is very broken
  8798. if test ia64 != "$host_cpu"; then
  8799. ld_shlibs=no
  8800. cat <<_LT_EOF 1>&2
  8801. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8802. *** to be unable to reliably create shared libraries on AIX.
  8803. *** Therefore, libtool is disabling shared libraries support. If you
  8804. *** really care for shared libraries, you may want to install binutils
  8805. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8806. *** You will then need to restart the configuration process.
  8807. _LT_EOF
  8808. fi
  8809. ;;
  8810. amigaos*)
  8811. case $host_cpu in
  8812. powerpc)
  8813. # see comment about AmigaOS4 .so support
  8814. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8815. archive_expsym_cmds=''
  8816. ;;
  8817. m68k)
  8818. 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)'
  8819. hardcode_libdir_flag_spec='-L$libdir'
  8820. hardcode_minus_L=yes
  8821. ;;
  8822. esac
  8823. ;;
  8824. beos*)
  8825. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8826. allow_undefined_flag=unsupported
  8827. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8828. # support --undefined. This deserves some investigation. FIXME
  8829. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8830. else
  8831. ld_shlibs=no
  8832. fi
  8833. ;;
  8834. cygwin* | mingw* | pw32* | cegcc*)
  8835. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8836. # as there is no search path for DLLs.
  8837. hardcode_libdir_flag_spec='-L$libdir'
  8838. export_dynamic_flag_spec='$wl--export-all-symbols'
  8839. allow_undefined_flag=unsupported
  8840. always_export_symbols=no
  8841. enable_shared_with_static_runtimes=yes
  8842. 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'
  8843. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8844. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8845. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8846. # If the export-symbols file already is a .def file, use it as
  8847. # is; otherwise, prepend EXPORTS...
  8848. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8849. cp $export_symbols $output_objdir/$soname.def;
  8850. else
  8851. echo EXPORTS > $output_objdir/$soname.def;
  8852. cat $export_symbols >> $output_objdir/$soname.def;
  8853. fi~
  8854. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8855. else
  8856. ld_shlibs=no
  8857. fi
  8858. ;;
  8859. haiku*)
  8860. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8861. link_all_deplibs=yes
  8862. ;;
  8863. os2*)
  8864. hardcode_libdir_flag_spec='-L$libdir'
  8865. hardcode_minus_L=yes
  8866. allow_undefined_flag=unsupported
  8867. shrext_cmds=.dll
  8868. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8869. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8870. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8871. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8872. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8873. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8874. emximp -o $lib $output_objdir/$libname.def'
  8875. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8876. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8877. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8878. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8879. prefix_cmds="$SED"~
  8880. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8881. prefix_cmds="$prefix_cmds -e 1d";
  8882. fi~
  8883. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8884. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8885. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8886. emximp -o $lib $output_objdir/$libname.def'
  8887. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8888. enable_shared_with_static_runtimes=yes
  8889. ;;
  8890. interix[3-9]*)
  8891. hardcode_direct=no
  8892. hardcode_shlibpath_var=no
  8893. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8894. export_dynamic_flag_spec='$wl-E'
  8895. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8896. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8897. # default) and relocated if they conflict, which is a slow very memory
  8898. # consuming and fragmenting process. To avoid this, we pick a random,
  8899. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8900. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8901. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8902. 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'
  8903. ;;
  8904. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8905. tmp_diet=no
  8906. if test linux-dietlibc = "$host_os"; then
  8907. case $cc_basename in
  8908. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8909. esac
  8910. fi
  8911. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8912. && test no = "$tmp_diet"
  8913. then
  8914. tmp_addflag=' $pic_flag'
  8915. tmp_sharedflag='-shared'
  8916. case $cc_basename,$host_cpu in
  8917. pgcc*) # Portland Group C compiler
  8918. 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'
  8919. tmp_addflag=' $pic_flag'
  8920. ;;
  8921. pgf77* | pgf90* | pgf95* | pgfortran*)
  8922. # Portland Group f77 and f90 compilers
  8923. 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'
  8924. tmp_addflag=' $pic_flag -Mnomain' ;;
  8925. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8926. tmp_addflag=' -i_dynamic' ;;
  8927. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8928. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8929. ifc* | ifort*) # Intel Fortran compiler
  8930. tmp_addflag=' -nofor_main' ;;
  8931. lf95*) # Lahey Fortran 8.1
  8932. whole_archive_flag_spec=
  8933. tmp_sharedflag='--shared' ;;
  8934. nagfor*) # NAGFOR 5.3
  8935. tmp_sharedflag='-Wl,-shared' ;;
  8936. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8937. tmp_sharedflag='-qmkshrobj'
  8938. tmp_addflag= ;;
  8939. nvcc*) # Cuda Compiler Driver 2.2
  8940. 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'
  8941. compiler_needs_object=yes
  8942. ;;
  8943. esac
  8944. case `$CC -V 2>&1 | sed 5q` in
  8945. *Sun\ C*) # Sun C 5.9
  8946. 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'
  8947. compiler_needs_object=yes
  8948. tmp_sharedflag='-G' ;;
  8949. *Sun\ F*) # Sun Fortran 8.3
  8950. tmp_sharedflag='-G' ;;
  8951. esac
  8952. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8953. if test yes = "$supports_anon_versioning"; then
  8954. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8955. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8956. echo "local: *; };" >> $output_objdir/$libname.ver~
  8957. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8958. fi
  8959. case $cc_basename in
  8960. tcc*)
  8961. export_dynamic_flag_spec='-rdynamic'
  8962. ;;
  8963. xlf* | bgf* | bgxlf* | mpixlf*)
  8964. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8965. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8966. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8967. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8968. if test yes = "$supports_anon_versioning"; then
  8969. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8970. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8971. echo "local: *; };" >> $output_objdir/$libname.ver~
  8972. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8973. fi
  8974. ;;
  8975. esac
  8976. else
  8977. ld_shlibs=no
  8978. fi
  8979. ;;
  8980. netbsd* | netbsdelf*-gnu)
  8981. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8982. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8983. wlarc=
  8984. else
  8985. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8986. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8987. fi
  8988. ;;
  8989. solaris*)
  8990. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8991. ld_shlibs=no
  8992. cat <<_LT_EOF 1>&2
  8993. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8994. *** create shared libraries on Solaris systems. Therefore, libtool
  8995. *** is disabling shared libraries support. We urge you to upgrade GNU
  8996. *** binutils to release 2.9.1 or newer. Another option is to modify
  8997. *** your PATH or compiler configuration so that the native linker is
  8998. *** used, and then restart.
  8999. _LT_EOF
  9000. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9001. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9002. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9003. else
  9004. ld_shlibs=no
  9005. fi
  9006. ;;
  9007. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  9008. case `$LD -v 2>&1` in
  9009. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  9010. ld_shlibs=no
  9011. cat <<_LT_EOF 1>&2
  9012. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  9013. *** reliably create shared libraries on SCO systems. Therefore, libtool
  9014. *** is disabling shared libraries support. We urge you to upgrade GNU
  9015. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  9016. *** your PATH or compiler configuration so that the native linker is
  9017. *** used, and then restart.
  9018. _LT_EOF
  9019. ;;
  9020. *)
  9021. # For security reasons, it is highly recommended that you always
  9022. # use absolute paths for naming shared libraries, and exclude the
  9023. # DT_RUNPATH tag from executables and libraries. But doing so
  9024. # requires that you compile everything twice, which is a pain.
  9025. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9026. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9027. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9028. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9029. else
  9030. ld_shlibs=no
  9031. fi
  9032. ;;
  9033. esac
  9034. ;;
  9035. sunos4*)
  9036. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9037. wlarc=
  9038. hardcode_direct=yes
  9039. hardcode_shlibpath_var=no
  9040. ;;
  9041. *)
  9042. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9043. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9044. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9045. else
  9046. ld_shlibs=no
  9047. fi
  9048. ;;
  9049. esac
  9050. if test no = "$ld_shlibs"; then
  9051. runpath_var=
  9052. hardcode_libdir_flag_spec=
  9053. export_dynamic_flag_spec=
  9054. whole_archive_flag_spec=
  9055. fi
  9056. else
  9057. # PORTME fill in a description of your system's linker (not GNU ld)
  9058. case $host_os in
  9059. aix3*)
  9060. allow_undefined_flag=unsupported
  9061. always_export_symbols=yes
  9062. 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'
  9063. # Note: this linker hardcodes the directories in LIBPATH if there
  9064. # are no directories specified by -L.
  9065. hardcode_minus_L=yes
  9066. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  9067. # Neither direct hardcoding nor static linking is supported with a
  9068. # broken collect2.
  9069. hardcode_direct=unsupported
  9070. fi
  9071. ;;
  9072. aix[4-9]*)
  9073. if test ia64 = "$host_cpu"; then
  9074. # On IA64, the linker does run time linking by default, so we don't
  9075. # have to do anything special.
  9076. aix_use_runtimelinking=no
  9077. exp_sym_flag='-Bexport'
  9078. no_entry_flag=
  9079. else
  9080. # If we're using GNU nm, then we don't want the "-C" option.
  9081. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  9082. # Without the "-l" option, or with the "-B" option, AIX nm treats
  9083. # weak defined symbols like other global defined symbols, whereas
  9084. # GNU nm marks them as "W".
  9085. # While the 'weak' keyword is ignored in the Export File, we need
  9086. # it in the Import File for the 'aix-soname' feature, so we have
  9087. # to replace the "-B" option with "-P" for AIX nm.
  9088. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  9089. 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'
  9090. else
  9091. 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'
  9092. fi
  9093. aix_use_runtimelinking=no
  9094. # Test if we are trying to use run time linking or normal
  9095. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9096. # have runtime linking enabled, and use it for executables.
  9097. # For shared libraries, we enable/disable runtime linking
  9098. # depending on the kind of the shared library created -
  9099. # when "with_aix_soname,aix_use_runtimelinking" is:
  9100. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  9101. # "aix,yes" lib.so shared, rtl:yes, for executables
  9102. # lib.a static archive
  9103. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  9104. # lib.a(lib.so.V) shared, rtl:no, for executables
  9105. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  9106. # lib.a(lib.so.V) shared, rtl:no
  9107. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  9108. # lib.a static archive
  9109. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  9110. for ld_flag in $LDFLAGS; do
  9111. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  9112. aix_use_runtimelinking=yes
  9113. break
  9114. fi
  9115. done
  9116. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  9117. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  9118. # so we don't have lib.a shared libs to link our executables.
  9119. # We have to force runtime linking in this case.
  9120. aix_use_runtimelinking=yes
  9121. LDFLAGS="$LDFLAGS -Wl,-brtl"
  9122. fi
  9123. ;;
  9124. esac
  9125. exp_sym_flag='-bexport'
  9126. no_entry_flag='-bnoentry'
  9127. fi
  9128. # When large executables or shared objects are built, AIX ld can
  9129. # have problems creating the table of contents. If linking a library
  9130. # or program results in "error TOC overflow" add -mminimal-toc to
  9131. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9132. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9133. archive_cmds=''
  9134. hardcode_direct=yes
  9135. hardcode_direct_absolute=yes
  9136. hardcode_libdir_separator=':'
  9137. link_all_deplibs=yes
  9138. file_list_spec='$wl-f,'
  9139. case $with_aix_soname,$aix_use_runtimelinking in
  9140. aix,*) ;; # traditional, no import file
  9141. svr4,* | *,yes) # use import file
  9142. # The Import File defines what to hardcode.
  9143. hardcode_direct=no
  9144. hardcode_direct_absolute=no
  9145. ;;
  9146. esac
  9147. if test yes = "$GCC"; then
  9148. case $host_os in aix4.[012]|aix4.[012].*)
  9149. # We only want to do this on AIX 4.2 and lower, the check
  9150. # below for broken collect2 doesn't work under 4.3+
  9151. collect2name=`$CC -print-prog-name=collect2`
  9152. if test -f "$collect2name" &&
  9153. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9154. then
  9155. # We have reworked collect2
  9156. :
  9157. else
  9158. # We have old collect2
  9159. hardcode_direct=unsupported
  9160. # It fails to find uninstalled libraries when the uninstalled
  9161. # path is not listed in the libpath. Setting hardcode_minus_L
  9162. # to unsupported forces relinking
  9163. hardcode_minus_L=yes
  9164. hardcode_libdir_flag_spec='-L$libdir'
  9165. hardcode_libdir_separator=
  9166. fi
  9167. ;;
  9168. esac
  9169. shared_flag='-shared'
  9170. if test yes = "$aix_use_runtimelinking"; then
  9171. shared_flag="$shared_flag "'$wl-G'
  9172. fi
  9173. # Need to ensure runtime linking is disabled for the traditional
  9174. # shared library, or the linker may eventually find shared libraries
  9175. # /with/ Import File - we do not want to mix them.
  9176. shared_flag_aix='-shared'
  9177. shared_flag_svr4='-shared $wl-G'
  9178. else
  9179. # not using gcc
  9180. if test ia64 = "$host_cpu"; then
  9181. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9182. # chokes on -Wl,-G. The following line is correct:
  9183. shared_flag='-G'
  9184. else
  9185. if test yes = "$aix_use_runtimelinking"; then
  9186. shared_flag='$wl-G'
  9187. else
  9188. shared_flag='$wl-bM:SRE'
  9189. fi
  9190. shared_flag_aix='$wl-bM:SRE'
  9191. shared_flag_svr4='$wl-G'
  9192. fi
  9193. fi
  9194. export_dynamic_flag_spec='$wl-bexpall'
  9195. # It seems that -bexpall does not export symbols beginning with
  9196. # underscore (_), so it is better to generate a list of symbols to export.
  9197. always_export_symbols=yes
  9198. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  9199. # Warning - without using the other runtime loading flags (-brtl),
  9200. # -berok will link without error, but may produce a broken library.
  9201. allow_undefined_flag='-berok'
  9202. # Determine the default libpath from the value encoded in an
  9203. # empty executable.
  9204. if test set = "${lt_cv_aix_libpath+set}"; then
  9205. aix_libpath=$lt_cv_aix_libpath
  9206. else
  9207. if ${lt_cv_aix_libpath_+:} false; then :
  9208. $as_echo_n "(cached) " >&6
  9209. else
  9210. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9211. /* end confdefs.h. */
  9212. int
  9213. main ()
  9214. {
  9215. ;
  9216. return 0;
  9217. }
  9218. _ACEOF
  9219. if ac_fn_c_try_link "$LINENO"; then :
  9220. lt_aix_libpath_sed='
  9221. /Import File Strings/,/^$/ {
  9222. /^0/ {
  9223. s/^0 *\([^ ]*\) *$/\1/
  9224. p
  9225. }
  9226. }'
  9227. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9228. # Check for a 64-bit object if we didn't find anything.
  9229. if test -z "$lt_cv_aix_libpath_"; then
  9230. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9231. fi
  9232. fi
  9233. rm -f core conftest.err conftest.$ac_objext \
  9234. conftest$ac_exeext conftest.$ac_ext
  9235. if test -z "$lt_cv_aix_libpath_"; then
  9236. lt_cv_aix_libpath_=/usr/lib:/lib
  9237. fi
  9238. fi
  9239. aix_libpath=$lt_cv_aix_libpath_
  9240. fi
  9241. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9242. 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
  9243. else
  9244. if test ia64 = "$host_cpu"; then
  9245. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9246. allow_undefined_flag="-z nodefs"
  9247. 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"
  9248. else
  9249. # Determine the default libpath from the value encoded in an
  9250. # empty executable.
  9251. if test set = "${lt_cv_aix_libpath+set}"; then
  9252. aix_libpath=$lt_cv_aix_libpath
  9253. else
  9254. if ${lt_cv_aix_libpath_+:} false; then :
  9255. $as_echo_n "(cached) " >&6
  9256. else
  9257. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9258. /* end confdefs.h. */
  9259. int
  9260. main ()
  9261. {
  9262. ;
  9263. return 0;
  9264. }
  9265. _ACEOF
  9266. if ac_fn_c_try_link "$LINENO"; then :
  9267. lt_aix_libpath_sed='
  9268. /Import File Strings/,/^$/ {
  9269. /^0/ {
  9270. s/^0 *\([^ ]*\) *$/\1/
  9271. p
  9272. }
  9273. }'
  9274. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9275. # Check for a 64-bit object if we didn't find anything.
  9276. if test -z "$lt_cv_aix_libpath_"; then
  9277. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9278. fi
  9279. fi
  9280. rm -f core conftest.err conftest.$ac_objext \
  9281. conftest$ac_exeext conftest.$ac_ext
  9282. if test -z "$lt_cv_aix_libpath_"; then
  9283. lt_cv_aix_libpath_=/usr/lib:/lib
  9284. fi
  9285. fi
  9286. aix_libpath=$lt_cv_aix_libpath_
  9287. fi
  9288. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9289. # Warning - without using the other run time loading flags,
  9290. # -berok will link without error, but may produce a broken library.
  9291. no_undefined_flag=' $wl-bernotok'
  9292. allow_undefined_flag=' $wl-berok'
  9293. if test yes = "$with_gnu_ld"; then
  9294. # We only use this code for GNU lds that support --whole-archive.
  9295. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9296. else
  9297. # Exported symbols can be pulled into shared objects from archives
  9298. whole_archive_flag_spec='$convenience'
  9299. fi
  9300. archive_cmds_need_lc=yes
  9301. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9302. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9303. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9304. if test svr4 != "$with_aix_soname"; then
  9305. # This is similar to how AIX traditionally builds its shared libraries.
  9306. 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'
  9307. fi
  9308. if test aix != "$with_aix_soname"; then
  9309. 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'
  9310. else
  9311. # used by -dlpreopen to get the symbols
  9312. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  9313. fi
  9314. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  9315. fi
  9316. fi
  9317. ;;
  9318. amigaos*)
  9319. case $host_cpu in
  9320. powerpc)
  9321. # see comment about AmigaOS4 .so support
  9322. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9323. archive_expsym_cmds=''
  9324. ;;
  9325. m68k)
  9326. 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)'
  9327. hardcode_libdir_flag_spec='-L$libdir'
  9328. hardcode_minus_L=yes
  9329. ;;
  9330. esac
  9331. ;;
  9332. bsdi[45]*)
  9333. export_dynamic_flag_spec=-rdynamic
  9334. ;;
  9335. cygwin* | mingw* | pw32* | cegcc*)
  9336. # When not using gcc, we currently assume that we are using
  9337. # Microsoft Visual C++.
  9338. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9339. # no search path for DLLs.
  9340. case $cc_basename in
  9341. cl*)
  9342. # Native MSVC
  9343. hardcode_libdir_flag_spec=' '
  9344. allow_undefined_flag=unsupported
  9345. always_export_symbols=yes
  9346. file_list_spec='@'
  9347. # Tell ltmain to make .lib files, not .a files.
  9348. libext=lib
  9349. # Tell ltmain to make .dll files, not .so files.
  9350. shrext_cmds=.dll
  9351. # FIXME: Setting linknames here is a bad hack.
  9352. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9353. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9354. cp "$export_symbols" "$output_objdir/$soname.def";
  9355. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9356. else
  9357. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9358. fi~
  9359. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9360. linknames='
  9361. # The linker will not automatically build a static lib if we build a DLL.
  9362. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9363. enable_shared_with_static_runtimes=yes
  9364. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9365. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9366. # Don't use ranlib
  9367. old_postinstall_cmds='chmod 644 $oldlib'
  9368. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9369. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9370. case $lt_outputfile in
  9371. *.exe|*.EXE) ;;
  9372. *)
  9373. lt_outputfile=$lt_outputfile.exe
  9374. lt_tool_outputfile=$lt_tool_outputfile.exe
  9375. ;;
  9376. esac~
  9377. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9378. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9379. $RM "$lt_outputfile.manifest";
  9380. fi'
  9381. ;;
  9382. *)
  9383. # Assume MSVC wrapper
  9384. hardcode_libdir_flag_spec=' '
  9385. allow_undefined_flag=unsupported
  9386. # Tell ltmain to make .lib files, not .a files.
  9387. libext=lib
  9388. # Tell ltmain to make .dll files, not .so files.
  9389. shrext_cmds=.dll
  9390. # FIXME: Setting linknames here is a bad hack.
  9391. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9392. # The linker will automatically build a .lib file if we build a DLL.
  9393. old_archive_from_new_cmds='true'
  9394. # FIXME: Should let the user specify the lib program.
  9395. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9396. enable_shared_with_static_runtimes=yes
  9397. ;;
  9398. esac
  9399. ;;
  9400. darwin* | rhapsody*)
  9401. archive_cmds_need_lc=no
  9402. hardcode_direct=no
  9403. hardcode_automatic=yes
  9404. hardcode_shlibpath_var=unsupported
  9405. if test yes = "$lt_cv_ld_force_load"; then
  9406. 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\"`'
  9407. else
  9408. whole_archive_flag_spec=''
  9409. fi
  9410. link_all_deplibs=yes
  9411. allow_undefined_flag=$_lt_dar_allow_undefined
  9412. case $cc_basename in
  9413. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  9414. *) _lt_dar_can_shared=$GCC ;;
  9415. esac
  9416. if test yes = "$_lt_dar_can_shared"; then
  9417. output_verbose_link_cmd=func_echo_all
  9418. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  9419. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  9420. 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"
  9421. 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"
  9422. else
  9423. ld_shlibs=no
  9424. fi
  9425. ;;
  9426. dgux*)
  9427. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9428. hardcode_libdir_flag_spec='-L$libdir'
  9429. hardcode_shlibpath_var=no
  9430. ;;
  9431. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9432. # support. Future versions do this automatically, but an explicit c++rt0.o
  9433. # does not break anything, and helps significantly (at the cost of a little
  9434. # extra space).
  9435. freebsd2.2*)
  9436. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9437. hardcode_libdir_flag_spec='-R$libdir'
  9438. hardcode_direct=yes
  9439. hardcode_shlibpath_var=no
  9440. ;;
  9441. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9442. freebsd2.*)
  9443. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9444. hardcode_direct=yes
  9445. hardcode_minus_L=yes
  9446. hardcode_shlibpath_var=no
  9447. ;;
  9448. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9449. freebsd* | dragonfly*)
  9450. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9451. hardcode_libdir_flag_spec='-R$libdir'
  9452. hardcode_direct=yes
  9453. hardcode_shlibpath_var=no
  9454. ;;
  9455. hpux9*)
  9456. if test yes = "$GCC"; then
  9457. 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'
  9458. else
  9459. 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'
  9460. fi
  9461. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9462. hardcode_libdir_separator=:
  9463. hardcode_direct=yes
  9464. # hardcode_minus_L: Not really in the search PATH,
  9465. # but as the default location of the library.
  9466. hardcode_minus_L=yes
  9467. export_dynamic_flag_spec='$wl-E'
  9468. ;;
  9469. hpux10*)
  9470. if test yes,no = "$GCC,$with_gnu_ld"; then
  9471. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9472. else
  9473. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9474. fi
  9475. if test no = "$with_gnu_ld"; then
  9476. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9477. hardcode_libdir_separator=:
  9478. hardcode_direct=yes
  9479. hardcode_direct_absolute=yes
  9480. export_dynamic_flag_spec='$wl-E'
  9481. # hardcode_minus_L: Not really in the search PATH,
  9482. # but as the default location of the library.
  9483. hardcode_minus_L=yes
  9484. fi
  9485. ;;
  9486. hpux11*)
  9487. if test yes,no = "$GCC,$with_gnu_ld"; then
  9488. case $host_cpu in
  9489. hppa*64*)
  9490. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9491. ;;
  9492. ia64*)
  9493. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9494. ;;
  9495. *)
  9496. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9497. ;;
  9498. esac
  9499. else
  9500. case $host_cpu in
  9501. hppa*64*)
  9502. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9503. ;;
  9504. ia64*)
  9505. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9506. ;;
  9507. *)
  9508. # Older versions of the 11.00 compiler do not understand -b yet
  9509. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9511. $as_echo_n "checking if $CC understands -b... " >&6; }
  9512. if ${lt_cv_prog_compiler__b+:} false; then :
  9513. $as_echo_n "(cached) " >&6
  9514. else
  9515. lt_cv_prog_compiler__b=no
  9516. save_LDFLAGS=$LDFLAGS
  9517. LDFLAGS="$LDFLAGS -b"
  9518. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9519. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9520. # The linker can only warn and ignore the option if not recognized
  9521. # So say no if there are warnings
  9522. if test -s conftest.err; then
  9523. # Append any errors to the config.log.
  9524. cat conftest.err 1>&5
  9525. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9526. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9527. if diff conftest.exp conftest.er2 >/dev/null; then
  9528. lt_cv_prog_compiler__b=yes
  9529. fi
  9530. else
  9531. lt_cv_prog_compiler__b=yes
  9532. fi
  9533. fi
  9534. $RM -r conftest*
  9535. LDFLAGS=$save_LDFLAGS
  9536. fi
  9537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9538. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9539. if test yes = "$lt_cv_prog_compiler__b"; then
  9540. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9541. else
  9542. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9543. fi
  9544. ;;
  9545. esac
  9546. fi
  9547. if test no = "$with_gnu_ld"; then
  9548. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9549. hardcode_libdir_separator=:
  9550. case $host_cpu in
  9551. hppa*64*|ia64*)
  9552. hardcode_direct=no
  9553. hardcode_shlibpath_var=no
  9554. ;;
  9555. *)
  9556. hardcode_direct=yes
  9557. hardcode_direct_absolute=yes
  9558. export_dynamic_flag_spec='$wl-E'
  9559. # hardcode_minus_L: Not really in the search PATH,
  9560. # but as the default location of the library.
  9561. hardcode_minus_L=yes
  9562. ;;
  9563. esac
  9564. fi
  9565. ;;
  9566. irix5* | irix6* | nonstopux*)
  9567. if test yes = "$GCC"; then
  9568. 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'
  9569. # Try to use the -exported_symbol ld option, if it does not
  9570. # work, assume that -exports_file does not work either and
  9571. # implicitly export all symbols.
  9572. # This should be the same for all languages, so no per-tag cache variable.
  9573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9574. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9575. if ${lt_cv_irix_exported_symbol+:} false; then :
  9576. $as_echo_n "(cached) " >&6
  9577. else
  9578. save_LDFLAGS=$LDFLAGS
  9579. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9580. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9581. /* end confdefs.h. */
  9582. int foo (void) { return 0; }
  9583. _ACEOF
  9584. if ac_fn_c_try_link "$LINENO"; then :
  9585. lt_cv_irix_exported_symbol=yes
  9586. else
  9587. lt_cv_irix_exported_symbol=no
  9588. fi
  9589. rm -f core conftest.err conftest.$ac_objext \
  9590. conftest$ac_exeext conftest.$ac_ext
  9591. LDFLAGS=$save_LDFLAGS
  9592. fi
  9593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9594. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9595. if test yes = "$lt_cv_irix_exported_symbol"; then
  9596. 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'
  9597. fi
  9598. link_all_deplibs=no
  9599. else
  9600. 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'
  9601. 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'
  9602. fi
  9603. archive_cmds_need_lc='no'
  9604. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9605. hardcode_libdir_separator=:
  9606. inherit_rpath=yes
  9607. link_all_deplibs=yes
  9608. ;;
  9609. linux*)
  9610. case $cc_basename in
  9611. tcc*)
  9612. # Fabrice Bellard et al's Tiny C Compiler
  9613. ld_shlibs=yes
  9614. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9615. ;;
  9616. esac
  9617. ;;
  9618. netbsd* | netbsdelf*-gnu)
  9619. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9620. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9621. else
  9622. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9623. fi
  9624. hardcode_libdir_flag_spec='-R$libdir'
  9625. hardcode_direct=yes
  9626. hardcode_shlibpath_var=no
  9627. ;;
  9628. newsos6)
  9629. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9630. hardcode_direct=yes
  9631. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9632. hardcode_libdir_separator=:
  9633. hardcode_shlibpath_var=no
  9634. ;;
  9635. *nto* | *qnx*)
  9636. ;;
  9637. openbsd* | bitrig*)
  9638. if test -f /usr/libexec/ld.so; then
  9639. hardcode_direct=yes
  9640. hardcode_shlibpath_var=no
  9641. hardcode_direct_absolute=yes
  9642. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9643. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9644. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9645. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9646. export_dynamic_flag_spec='$wl-E'
  9647. else
  9648. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9649. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9650. fi
  9651. else
  9652. ld_shlibs=no
  9653. fi
  9654. ;;
  9655. os2*)
  9656. hardcode_libdir_flag_spec='-L$libdir'
  9657. hardcode_minus_L=yes
  9658. allow_undefined_flag=unsupported
  9659. shrext_cmds=.dll
  9660. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9661. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9662. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9663. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9664. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9665. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9666. emximp -o $lib $output_objdir/$libname.def'
  9667. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9668. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9669. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9670. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9671. prefix_cmds="$SED"~
  9672. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9673. prefix_cmds="$prefix_cmds -e 1d";
  9674. fi~
  9675. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9676. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9677. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9678. emximp -o $lib $output_objdir/$libname.def'
  9679. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9680. enable_shared_with_static_runtimes=yes
  9681. ;;
  9682. osf3*)
  9683. if test yes = "$GCC"; then
  9684. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9685. 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'
  9686. else
  9687. allow_undefined_flag=' -expect_unresolved \*'
  9688. 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'
  9689. fi
  9690. archive_cmds_need_lc='no'
  9691. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9692. hardcode_libdir_separator=:
  9693. ;;
  9694. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9695. if test yes = "$GCC"; then
  9696. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9697. 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'
  9698. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9699. else
  9700. allow_undefined_flag=' -expect_unresolved \*'
  9701. 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'
  9702. 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~
  9703. $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'
  9704. # Both c and cxx compiler support -rpath directly
  9705. hardcode_libdir_flag_spec='-rpath $libdir'
  9706. fi
  9707. archive_cmds_need_lc='no'
  9708. hardcode_libdir_separator=:
  9709. ;;
  9710. solaris*)
  9711. no_undefined_flag=' -z defs'
  9712. if test yes = "$GCC"; then
  9713. wlarc='$wl'
  9714. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9715. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9716. $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'
  9717. else
  9718. case `$CC -V 2>&1` in
  9719. *"Compilers 5.0"*)
  9720. wlarc=''
  9721. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9722. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9723. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9724. ;;
  9725. *)
  9726. wlarc='$wl'
  9727. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9728. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9729. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9730. ;;
  9731. esac
  9732. fi
  9733. hardcode_libdir_flag_spec='-R$libdir'
  9734. hardcode_shlibpath_var=no
  9735. case $host_os in
  9736. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9737. *)
  9738. # The compiler driver will combine and reorder linker options,
  9739. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9740. # but is careful enough not to reorder.
  9741. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9742. if test yes = "$GCC"; then
  9743. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9744. else
  9745. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9746. fi
  9747. ;;
  9748. esac
  9749. link_all_deplibs=yes
  9750. ;;
  9751. sunos4*)
  9752. if test sequent = "$host_vendor"; then
  9753. # Use $CC to link under sequent, because it throws in some extra .o
  9754. # files that make .init and .fini sections work.
  9755. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9756. else
  9757. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9758. fi
  9759. hardcode_libdir_flag_spec='-L$libdir'
  9760. hardcode_direct=yes
  9761. hardcode_minus_L=yes
  9762. hardcode_shlibpath_var=no
  9763. ;;
  9764. sysv4)
  9765. case $host_vendor in
  9766. sni)
  9767. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9768. hardcode_direct=yes # is this really true???
  9769. ;;
  9770. siemens)
  9771. ## LD is ld it makes a PLAMLIB
  9772. ## CC just makes a GrossModule.
  9773. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9774. reload_cmds='$CC -r -o $output$reload_objs'
  9775. hardcode_direct=no
  9776. ;;
  9777. motorola)
  9778. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9779. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9780. ;;
  9781. esac
  9782. runpath_var='LD_RUN_PATH'
  9783. hardcode_shlibpath_var=no
  9784. ;;
  9785. sysv4.3*)
  9786. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9787. hardcode_shlibpath_var=no
  9788. export_dynamic_flag_spec='-Bexport'
  9789. ;;
  9790. sysv4*MP*)
  9791. if test -d /usr/nec; then
  9792. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9793. hardcode_shlibpath_var=no
  9794. runpath_var=LD_RUN_PATH
  9795. hardcode_runpath_var=yes
  9796. ld_shlibs=yes
  9797. fi
  9798. ;;
  9799. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9800. no_undefined_flag='$wl-z,text'
  9801. archive_cmds_need_lc=no
  9802. hardcode_shlibpath_var=no
  9803. runpath_var='LD_RUN_PATH'
  9804. if test yes = "$GCC"; then
  9805. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9806. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9807. else
  9808. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9809. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9810. fi
  9811. ;;
  9812. sysv5* | sco3.2v5* | sco5v6*)
  9813. # Note: We CANNOT use -z defs as we might desire, because we do not
  9814. # link with -lc, and that would cause any symbols used from libc to
  9815. # always be unresolved, which means just about no library would
  9816. # ever link correctly. If we're not using GNU ld we use -z text
  9817. # though, which does catch some bad symbols but isn't as heavy-handed
  9818. # as -z defs.
  9819. no_undefined_flag='$wl-z,text'
  9820. allow_undefined_flag='$wl-z,nodefs'
  9821. archive_cmds_need_lc=no
  9822. hardcode_shlibpath_var=no
  9823. hardcode_libdir_flag_spec='$wl-R,$libdir'
  9824. hardcode_libdir_separator=':'
  9825. link_all_deplibs=yes
  9826. export_dynamic_flag_spec='$wl-Bexport'
  9827. runpath_var='LD_RUN_PATH'
  9828. if test yes = "$GCC"; then
  9829. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9830. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9831. else
  9832. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9833. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9834. fi
  9835. ;;
  9836. uts4*)
  9837. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9838. hardcode_libdir_flag_spec='-L$libdir'
  9839. hardcode_shlibpath_var=no
  9840. ;;
  9841. *)
  9842. ld_shlibs=no
  9843. ;;
  9844. esac
  9845. if test sni = "$host_vendor"; then
  9846. case $host in
  9847. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9848. export_dynamic_flag_spec='$wl-Blargedynsym'
  9849. ;;
  9850. esac
  9851. fi
  9852. fi
  9853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9854. $as_echo "$ld_shlibs" >&6; }
  9855. test no = "$ld_shlibs" && can_build_shared=no
  9856. with_gnu_ld=$with_gnu_ld
  9857. #
  9858. # Do we need to explicitly link libc?
  9859. #
  9860. case "x$archive_cmds_need_lc" in
  9861. x|xyes)
  9862. # Assume -lc should be added
  9863. archive_cmds_need_lc=yes
  9864. if test yes,yes = "$GCC,$enable_shared"; then
  9865. case $archive_cmds in
  9866. *'~'*)
  9867. # FIXME: we may have to deal with multi-command sequences.
  9868. ;;
  9869. '$CC '*)
  9870. # Test whether the compiler implicitly links with -lc since on some
  9871. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9872. # to ld, don't add -lc before -lgcc.
  9873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9874. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9875. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9876. $as_echo_n "(cached) " >&6
  9877. else
  9878. $RM conftest*
  9879. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9880. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9881. (eval $ac_compile) 2>&5
  9882. ac_status=$?
  9883. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9884. test $ac_status = 0; } 2>conftest.err; then
  9885. soname=conftest
  9886. lib=conftest
  9887. libobjs=conftest.$ac_objext
  9888. deplibs=
  9889. wl=$lt_prog_compiler_wl
  9890. pic_flag=$lt_prog_compiler_pic
  9891. compiler_flags=-v
  9892. linker_flags=-v
  9893. verstring=
  9894. output_objdir=.
  9895. libname=conftest
  9896. lt_save_allow_undefined_flag=$allow_undefined_flag
  9897. allow_undefined_flag=
  9898. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9899. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9900. ac_status=$?
  9901. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9902. test $ac_status = 0; }
  9903. then
  9904. lt_cv_archive_cmds_need_lc=no
  9905. else
  9906. lt_cv_archive_cmds_need_lc=yes
  9907. fi
  9908. allow_undefined_flag=$lt_save_allow_undefined_flag
  9909. else
  9910. cat conftest.err 1>&5
  9911. fi
  9912. $RM conftest*
  9913. fi
  9914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9915. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9916. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9917. ;;
  9918. esac
  9919. fi
  9920. ;;
  9921. esac
  9922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9923. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9924. if test yes = "$GCC"; then
  9925. case $host_os in
  9926. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9927. *) lt_awk_arg='/^libraries:/' ;;
  9928. esac
  9929. case $host_os in
  9930. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9931. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9932. esac
  9933. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9934. case $lt_search_path_spec in
  9935. *\;*)
  9936. # if the path contains ";" then we assume it to be the separator
  9937. # otherwise default to the standard path separator (i.e. ":") - it is
  9938. # assumed that no part of a normal pathname contains ";" but that should
  9939. # okay in the real world where ";" in dirpaths is itself problematic.
  9940. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9941. ;;
  9942. *)
  9943. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9944. ;;
  9945. esac
  9946. # Ok, now we have the path, separated by spaces, we can step through it
  9947. # and add multilib dir if necessary...
  9948. lt_tmp_lt_search_path_spec=
  9949. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9950. # ...but if some path component already ends with the multilib dir we assume
  9951. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9952. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9953. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9954. lt_multi_os_dir=
  9955. ;;
  9956. esac
  9957. for lt_sys_path in $lt_search_path_spec; do
  9958. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9959. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9960. elif test -n "$lt_multi_os_dir"; then
  9961. test -d "$lt_sys_path" && \
  9962. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9963. fi
  9964. done
  9965. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9966. BEGIN {RS = " "; FS = "/|\n";} {
  9967. lt_foo = "";
  9968. lt_count = 0;
  9969. for (lt_i = NF; lt_i > 0; lt_i--) {
  9970. if ($lt_i != "" && $lt_i != ".") {
  9971. if ($lt_i == "..") {
  9972. lt_count++;
  9973. } else {
  9974. if (lt_count == 0) {
  9975. lt_foo = "/" $lt_i lt_foo;
  9976. } else {
  9977. lt_count--;
  9978. }
  9979. }
  9980. }
  9981. }
  9982. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9983. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9984. }'`
  9985. # AWK program above erroneously prepends '/' to C:/dos/paths
  9986. # for these hosts.
  9987. case $host_os in
  9988. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9989. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9990. esac
  9991. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9992. else
  9993. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9994. fi
  9995. library_names_spec=
  9996. libname_spec='lib$name'
  9997. soname_spec=
  9998. shrext_cmds=.so
  9999. postinstall_cmds=
  10000. postuninstall_cmds=
  10001. finish_cmds=
  10002. finish_eval=
  10003. shlibpath_var=
  10004. shlibpath_overrides_runpath=unknown
  10005. version_type=none
  10006. dynamic_linker="$host_os ld.so"
  10007. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  10008. need_lib_prefix=unknown
  10009. hardcode_into_libs=no
  10010. # when you set need_version to no, make sure it does not cause -set_version
  10011. # flags to be left without arguments
  10012. need_version=unknown
  10013. case $host_os in
  10014. aix3*)
  10015. version_type=linux # correct to gnu/linux during the next big refactor
  10016. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  10017. shlibpath_var=LIBPATH
  10018. # AIX 3 has no versioning support, so we append a major version to the name.
  10019. soname_spec='$libname$release$shared_ext$major'
  10020. ;;
  10021. aix[4-9]*)
  10022. version_type=linux # correct to gnu/linux during the next big refactor
  10023. need_lib_prefix=no
  10024. need_version=no
  10025. hardcode_into_libs=yes
  10026. if test ia64 = "$host_cpu"; then
  10027. # AIX 5 supports IA64
  10028. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  10029. shlibpath_var=LD_LIBRARY_PATH
  10030. else
  10031. # With GCC up to 2.95.x, collect2 would create an import file
  10032. # for dependence libraries. The import file would start with
  10033. # the line '#! .'. This would cause the generated library to
  10034. # depend on '.', always an invalid library. This was fixed in
  10035. # development snapshots of GCC prior to 3.0.
  10036. case $host_os in
  10037. aix4 | aix4.[01] | aix4.[01].*)
  10038. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10039. echo ' yes '
  10040. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  10041. :
  10042. else
  10043. can_build_shared=no
  10044. fi
  10045. ;;
  10046. esac
  10047. # Using Import Files as archive members, it is possible to support
  10048. # filename-based versioning of shared library archives on AIX. While
  10049. # this would work for both with and without runtime linking, it will
  10050. # prevent static linking of such archives. So we do filename-based
  10051. # shared library versioning with .so extension only, which is used
  10052. # when both runtime linking and shared linking is enabled.
  10053. # Unfortunately, runtime linking may impact performance, so we do
  10054. # not want this to be the default eventually. Also, we use the
  10055. # versioned .so libs for executables only if there is the -brtl
  10056. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  10057. # To allow for filename-based versioning support, we need to create
  10058. # libNAME.so.V as an archive file, containing:
  10059. # *) an Import File, referring to the versioned filename of the
  10060. # archive as well as the shared archive member, telling the
  10061. # bitwidth (32 or 64) of that shared object, and providing the
  10062. # list of exported symbols of that shared object, eventually
  10063. # decorated with the 'weak' keyword
  10064. # *) the shared object with the F_LOADONLY flag set, to really avoid
  10065. # it being seen by the linker.
  10066. # At run time we better use the real file rather than another symlink,
  10067. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  10068. case $with_aix_soname,$aix_use_runtimelinking in
  10069. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  10070. # soname into executable. Probably we can add versioning support to
  10071. # collect2, so additional links can be useful in future.
  10072. aix,yes) # traditional libtool
  10073. dynamic_linker='AIX unversionable lib.so'
  10074. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10075. # instead of lib<name>.a to let people know that these are not
  10076. # typical AIX shared libraries.
  10077. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10078. ;;
  10079. aix,no) # traditional AIX only
  10080. dynamic_linker='AIX lib.a(lib.so.V)'
  10081. # We preserve .a as extension for shared libraries through AIX4.2
  10082. # and later when we are not doing run time linking.
  10083. library_names_spec='$libname$release.a $libname.a'
  10084. soname_spec='$libname$release$shared_ext$major'
  10085. ;;
  10086. svr4,*) # full svr4 only
  10087. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  10088. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10089. # We do not specify a path in Import Files, so LIBPATH fires.
  10090. shlibpath_overrides_runpath=yes
  10091. ;;
  10092. *,yes) # both, prefer svr4
  10093. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  10094. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10095. # unpreferred sharedlib libNAME.a needs extra handling
  10096. 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"'
  10097. 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"'
  10098. # We do not specify a path in Import Files, so LIBPATH fires.
  10099. shlibpath_overrides_runpath=yes
  10100. ;;
  10101. *,no) # both, prefer aix
  10102. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  10103. library_names_spec='$libname$release.a $libname.a'
  10104. soname_spec='$libname$release$shared_ext$major'
  10105. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  10106. 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)'
  10107. 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"'
  10108. ;;
  10109. esac
  10110. shlibpath_var=LIBPATH
  10111. fi
  10112. ;;
  10113. amigaos*)
  10114. case $host_cpu in
  10115. powerpc)
  10116. # Since July 2007 AmigaOS4 officially supports .so libraries.
  10117. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  10118. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10119. ;;
  10120. m68k)
  10121. library_names_spec='$libname.ixlibrary $libname.a'
  10122. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10123. 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'
  10124. ;;
  10125. esac
  10126. ;;
  10127. beos*)
  10128. library_names_spec='$libname$shared_ext'
  10129. dynamic_linker="$host_os ld.so"
  10130. shlibpath_var=LIBRARY_PATH
  10131. ;;
  10132. bsdi[45]*)
  10133. version_type=linux # correct to gnu/linux during the next big refactor
  10134. need_version=no
  10135. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10136. soname_spec='$libname$release$shared_ext$major'
  10137. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10138. shlibpath_var=LD_LIBRARY_PATH
  10139. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10140. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10141. # the default ld.so.conf also contains /usr/contrib/lib and
  10142. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10143. # libtool to hard-code these into programs
  10144. ;;
  10145. cygwin* | mingw* | pw32* | cegcc*)
  10146. version_type=windows
  10147. shrext_cmds=.dll
  10148. need_version=no
  10149. need_lib_prefix=no
  10150. case $GCC,$cc_basename in
  10151. yes,*)
  10152. # gcc
  10153. library_names_spec='$libname.dll.a'
  10154. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10155. postinstall_cmds='base_file=`basename \$file`~
  10156. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10157. dldir=$destdir/`dirname \$dlpath`~
  10158. test -d \$dldir || mkdir -p \$dldir~
  10159. $install_prog $dir/$dlname \$dldir/$dlname~
  10160. chmod a+x \$dldir/$dlname~
  10161. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10162. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10163. fi'
  10164. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10165. dlpath=$dir/\$dldll~
  10166. $RM \$dlpath'
  10167. shlibpath_overrides_runpath=yes
  10168. case $host_os in
  10169. cygwin*)
  10170. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10171. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10172. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10173. ;;
  10174. mingw* | cegcc*)
  10175. # MinGW DLLs use traditional 'lib' prefix
  10176. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10177. ;;
  10178. pw32*)
  10179. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10180. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10181. ;;
  10182. esac
  10183. dynamic_linker='Win32 ld.exe'
  10184. ;;
  10185. *,cl*)
  10186. # Native MSVC
  10187. libname_spec='$name'
  10188. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10189. library_names_spec='$libname.dll.lib'
  10190. case $build_os in
  10191. mingw*)
  10192. sys_lib_search_path_spec=
  10193. lt_save_ifs=$IFS
  10194. IFS=';'
  10195. for lt_path in $LIB
  10196. do
  10197. IFS=$lt_save_ifs
  10198. # Let DOS variable expansion print the short 8.3 style file name.
  10199. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10200. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10201. done
  10202. IFS=$lt_save_ifs
  10203. # Convert to MSYS style.
  10204. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10205. ;;
  10206. cygwin*)
  10207. # Convert to unix form, then to dos form, then back to unix form
  10208. # but this time dos style (no spaces!) so that the unix form looks
  10209. # like /cygdrive/c/PROGRA~1:/cygdr...
  10210. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10211. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10212. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10213. ;;
  10214. *)
  10215. sys_lib_search_path_spec=$LIB
  10216. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10217. # It is most probably a Windows format PATH.
  10218. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10219. else
  10220. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10221. fi
  10222. # FIXME: find the short name or the path components, as spaces are
  10223. # common. (e.g. "Program Files" -> "PROGRA~1")
  10224. ;;
  10225. esac
  10226. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10227. postinstall_cmds='base_file=`basename \$file`~
  10228. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10229. dldir=$destdir/`dirname \$dlpath`~
  10230. test -d \$dldir || mkdir -p \$dldir~
  10231. $install_prog $dir/$dlname \$dldir/$dlname'
  10232. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10233. dlpath=$dir/\$dldll~
  10234. $RM \$dlpath'
  10235. shlibpath_overrides_runpath=yes
  10236. dynamic_linker='Win32 link.exe'
  10237. ;;
  10238. *)
  10239. # Assume MSVC wrapper
  10240. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10241. dynamic_linker='Win32 ld.exe'
  10242. ;;
  10243. esac
  10244. # FIXME: first we should search . and the directory the executable is in
  10245. shlibpath_var=PATH
  10246. ;;
  10247. darwin* | rhapsody*)
  10248. dynamic_linker="$host_os dyld"
  10249. version_type=darwin
  10250. need_lib_prefix=no
  10251. need_version=no
  10252. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  10253. soname_spec='$libname$release$major$shared_ext'
  10254. shlibpath_overrides_runpath=yes
  10255. shlibpath_var=DYLD_LIBRARY_PATH
  10256. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10257. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10258. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10259. ;;
  10260. dgux*)
  10261. version_type=linux # correct to gnu/linux during the next big refactor
  10262. need_lib_prefix=no
  10263. need_version=no
  10264. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10265. soname_spec='$libname$release$shared_ext$major'
  10266. shlibpath_var=LD_LIBRARY_PATH
  10267. ;;
  10268. freebsd* | dragonfly*)
  10269. # DragonFly does not have aout. When/if they implement a new
  10270. # versioning mechanism, adjust this.
  10271. if test -x /usr/bin/objformat; then
  10272. objformat=`/usr/bin/objformat`
  10273. else
  10274. case $host_os in
  10275. freebsd[23].*) objformat=aout ;;
  10276. *) objformat=elf ;;
  10277. esac
  10278. fi
  10279. version_type=freebsd-$objformat
  10280. case $version_type in
  10281. freebsd-elf*)
  10282. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10283. soname_spec='$libname$release$shared_ext$major'
  10284. need_version=no
  10285. need_lib_prefix=no
  10286. ;;
  10287. freebsd-*)
  10288. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10289. need_version=yes
  10290. ;;
  10291. esac
  10292. shlibpath_var=LD_LIBRARY_PATH
  10293. case $host_os in
  10294. freebsd2.*)
  10295. shlibpath_overrides_runpath=yes
  10296. ;;
  10297. freebsd3.[01]* | freebsdelf3.[01]*)
  10298. shlibpath_overrides_runpath=yes
  10299. hardcode_into_libs=yes
  10300. ;;
  10301. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10302. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10303. shlibpath_overrides_runpath=no
  10304. hardcode_into_libs=yes
  10305. ;;
  10306. *) # from 4.6 on, and DragonFly
  10307. shlibpath_overrides_runpath=yes
  10308. hardcode_into_libs=yes
  10309. ;;
  10310. esac
  10311. ;;
  10312. haiku*)
  10313. version_type=linux # correct to gnu/linux during the next big refactor
  10314. need_lib_prefix=no
  10315. need_version=no
  10316. dynamic_linker="$host_os runtime_loader"
  10317. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10318. soname_spec='$libname$release$shared_ext$major'
  10319. shlibpath_var=LIBRARY_PATH
  10320. shlibpath_overrides_runpath=no
  10321. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10322. hardcode_into_libs=yes
  10323. ;;
  10324. hpux9* | hpux10* | hpux11*)
  10325. # Give a soname corresponding to the major version so that dld.sl refuses to
  10326. # link against other versions.
  10327. version_type=sunos
  10328. need_lib_prefix=no
  10329. need_version=no
  10330. case $host_cpu in
  10331. ia64*)
  10332. shrext_cmds='.so'
  10333. hardcode_into_libs=yes
  10334. dynamic_linker="$host_os dld.so"
  10335. shlibpath_var=LD_LIBRARY_PATH
  10336. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10337. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10338. soname_spec='$libname$release$shared_ext$major'
  10339. if test 32 = "$HPUX_IA64_MODE"; then
  10340. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10341. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10342. else
  10343. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10344. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10345. fi
  10346. ;;
  10347. hppa*64*)
  10348. shrext_cmds='.sl'
  10349. hardcode_into_libs=yes
  10350. dynamic_linker="$host_os dld.sl"
  10351. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10352. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10353. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10354. soname_spec='$libname$release$shared_ext$major'
  10355. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10356. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10357. ;;
  10358. *)
  10359. shrext_cmds='.sl'
  10360. dynamic_linker="$host_os dld.sl"
  10361. shlibpath_var=SHLIB_PATH
  10362. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10363. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10364. soname_spec='$libname$release$shared_ext$major'
  10365. ;;
  10366. esac
  10367. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10368. postinstall_cmds='chmod 555 $lib'
  10369. # or fails outright, so override atomically:
  10370. install_override_mode=555
  10371. ;;
  10372. interix[3-9]*)
  10373. version_type=linux # correct to gnu/linux during the next big refactor
  10374. need_lib_prefix=no
  10375. need_version=no
  10376. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10377. soname_spec='$libname$release$shared_ext$major'
  10378. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10379. shlibpath_var=LD_LIBRARY_PATH
  10380. shlibpath_overrides_runpath=no
  10381. hardcode_into_libs=yes
  10382. ;;
  10383. irix5* | irix6* | nonstopux*)
  10384. case $host_os in
  10385. nonstopux*) version_type=nonstopux ;;
  10386. *)
  10387. if test yes = "$lt_cv_prog_gnu_ld"; then
  10388. version_type=linux # correct to gnu/linux during the next big refactor
  10389. else
  10390. version_type=irix
  10391. fi ;;
  10392. esac
  10393. need_lib_prefix=no
  10394. need_version=no
  10395. soname_spec='$libname$release$shared_ext$major'
  10396. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  10397. case $host_os in
  10398. irix5* | nonstopux*)
  10399. libsuff= shlibsuff=
  10400. ;;
  10401. *)
  10402. case $LD in # libtool.m4 will add one of these switches to LD
  10403. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10404. libsuff= shlibsuff= libmagic=32-bit;;
  10405. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10406. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10407. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10408. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10409. *) libsuff= shlibsuff= libmagic=never-match;;
  10410. esac
  10411. ;;
  10412. esac
  10413. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10414. shlibpath_overrides_runpath=no
  10415. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  10416. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  10417. hardcode_into_libs=yes
  10418. ;;
  10419. # No shared lib support for Linux oldld, aout, or coff.
  10420. linux*oldld* | linux*aout* | linux*coff*)
  10421. dynamic_linker=no
  10422. ;;
  10423. linux*android*)
  10424. version_type=none # Android doesn't support versioned libraries.
  10425. need_lib_prefix=no
  10426. need_version=no
  10427. library_names_spec='$libname$release$shared_ext'
  10428. soname_spec='$libname$release$shared_ext'
  10429. finish_cmds=
  10430. shlibpath_var=LD_LIBRARY_PATH
  10431. shlibpath_overrides_runpath=yes
  10432. # This implies no fast_install, which is unacceptable.
  10433. # Some rework will be needed to allow for fast_install
  10434. # before this can be enabled.
  10435. hardcode_into_libs=yes
  10436. dynamic_linker='Android linker'
  10437. # Don't embed -rpath directories since the linker doesn't support them.
  10438. hardcode_libdir_flag_spec='-L$libdir'
  10439. ;;
  10440. # This must be glibc/ELF.
  10441. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10442. version_type=linux # correct to gnu/linux during the next big refactor
  10443. need_lib_prefix=no
  10444. need_version=no
  10445. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10446. soname_spec='$libname$release$shared_ext$major'
  10447. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10448. shlibpath_var=LD_LIBRARY_PATH
  10449. shlibpath_overrides_runpath=no
  10450. # Some binutils ld are patched to set DT_RUNPATH
  10451. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  10452. $as_echo_n "(cached) " >&6
  10453. else
  10454. lt_cv_shlibpath_overrides_runpath=no
  10455. save_LDFLAGS=$LDFLAGS
  10456. save_libdir=$libdir
  10457. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10458. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10459. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10460. /* end confdefs.h. */
  10461. int
  10462. main ()
  10463. {
  10464. ;
  10465. return 0;
  10466. }
  10467. _ACEOF
  10468. if ac_fn_c_try_link "$LINENO"; then :
  10469. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  10470. lt_cv_shlibpath_overrides_runpath=yes
  10471. fi
  10472. fi
  10473. rm -f core conftest.err conftest.$ac_objext \
  10474. conftest$ac_exeext conftest.$ac_ext
  10475. LDFLAGS=$save_LDFLAGS
  10476. libdir=$save_libdir
  10477. fi
  10478. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10479. # This implies no fast_install, which is unacceptable.
  10480. # Some rework will be needed to allow for fast_install
  10481. # before this can be enabled.
  10482. hardcode_into_libs=yes
  10483. # Ideally, we could use ldconfig to report *all* directores which are
  10484. # searched for libraries, however this is still not possible. Aside from not
  10485. # being certain /sbin/ldconfig is available, command
  10486. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  10487. # even though it is searched at run-time. Try to do the best guess by
  10488. # appending ld.so.conf contents (and includes) to the search path.
  10489. if test -f /etc/ld.so.conf; then
  10490. 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' ' '`
  10491. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  10492. fi
  10493. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10494. # powerpc, because MkLinux only supported shared libraries with the
  10495. # GNU dynamic linker. Since this was broken with cross compilers,
  10496. # most powerpc-linux boxes support dynamic linking these days and
  10497. # people can always --disable-shared, the test was removed, and we
  10498. # assume the GNU/Linux dynamic linker is in use.
  10499. dynamic_linker='GNU/Linux ld.so'
  10500. ;;
  10501. netbsdelf*-gnu)
  10502. version_type=linux
  10503. need_lib_prefix=no
  10504. need_version=no
  10505. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10506. soname_spec='${libname}${release}${shared_ext}$major'
  10507. shlibpath_var=LD_LIBRARY_PATH
  10508. shlibpath_overrides_runpath=no
  10509. hardcode_into_libs=yes
  10510. dynamic_linker='NetBSD ld.elf_so'
  10511. ;;
  10512. netbsd*)
  10513. version_type=sunos
  10514. need_lib_prefix=no
  10515. need_version=no
  10516. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10517. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10518. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10519. dynamic_linker='NetBSD (a.out) ld.so'
  10520. else
  10521. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10522. soname_spec='$libname$release$shared_ext$major'
  10523. dynamic_linker='NetBSD ld.elf_so'
  10524. fi
  10525. shlibpath_var=LD_LIBRARY_PATH
  10526. shlibpath_overrides_runpath=yes
  10527. hardcode_into_libs=yes
  10528. ;;
  10529. newsos6)
  10530. version_type=linux # correct to gnu/linux during the next big refactor
  10531. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10532. shlibpath_var=LD_LIBRARY_PATH
  10533. shlibpath_overrides_runpath=yes
  10534. ;;
  10535. *nto* | *qnx*)
  10536. version_type=qnx
  10537. need_lib_prefix=no
  10538. need_version=no
  10539. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10540. soname_spec='$libname$release$shared_ext$major'
  10541. shlibpath_var=LD_LIBRARY_PATH
  10542. shlibpath_overrides_runpath=no
  10543. hardcode_into_libs=yes
  10544. dynamic_linker='ldqnx.so'
  10545. ;;
  10546. openbsd* | bitrig*)
  10547. version_type=sunos
  10548. sys_lib_dlsearch_path_spec=/usr/lib
  10549. need_lib_prefix=no
  10550. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10551. need_version=no
  10552. else
  10553. need_version=yes
  10554. fi
  10555. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10556. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10557. shlibpath_var=LD_LIBRARY_PATH
  10558. shlibpath_overrides_runpath=yes
  10559. ;;
  10560. os2*)
  10561. libname_spec='$name'
  10562. version_type=windows
  10563. shrext_cmds=.dll
  10564. need_version=no
  10565. need_lib_prefix=no
  10566. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10567. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10568. v=$($ECHO $release$versuffix | tr -d .-);
  10569. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10570. $ECHO $n$v`$shared_ext'
  10571. library_names_spec='${libname}_dll.$libext'
  10572. dynamic_linker='OS/2 ld.exe'
  10573. shlibpath_var=BEGINLIBPATH
  10574. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10575. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10576. postinstall_cmds='base_file=`basename \$file`~
  10577. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10578. dldir=$destdir/`dirname \$dlpath`~
  10579. test -d \$dldir || mkdir -p \$dldir~
  10580. $install_prog $dir/$dlname \$dldir/$dlname~
  10581. chmod a+x \$dldir/$dlname~
  10582. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10583. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10584. fi'
  10585. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10586. dlpath=$dir/\$dldll~
  10587. $RM \$dlpath'
  10588. ;;
  10589. osf3* | osf4* | osf5*)
  10590. version_type=osf
  10591. need_lib_prefix=no
  10592. need_version=no
  10593. soname_spec='$libname$release$shared_ext$major'
  10594. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10595. shlibpath_var=LD_LIBRARY_PATH
  10596. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10597. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10598. ;;
  10599. rdos*)
  10600. dynamic_linker=no
  10601. ;;
  10602. solaris*)
  10603. version_type=linux # correct to gnu/linux during the next big refactor
  10604. need_lib_prefix=no
  10605. need_version=no
  10606. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10607. soname_spec='$libname$release$shared_ext$major'
  10608. shlibpath_var=LD_LIBRARY_PATH
  10609. shlibpath_overrides_runpath=yes
  10610. hardcode_into_libs=yes
  10611. # ldd complains unless libraries are executable
  10612. postinstall_cmds='chmod +x $lib'
  10613. ;;
  10614. sunos4*)
  10615. version_type=sunos
  10616. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10617. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10618. shlibpath_var=LD_LIBRARY_PATH
  10619. shlibpath_overrides_runpath=yes
  10620. if test yes = "$with_gnu_ld"; then
  10621. need_lib_prefix=no
  10622. fi
  10623. need_version=yes
  10624. ;;
  10625. sysv4 | sysv4.3*)
  10626. version_type=linux # correct to gnu/linux during the next big refactor
  10627. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10628. soname_spec='$libname$release$shared_ext$major'
  10629. shlibpath_var=LD_LIBRARY_PATH
  10630. case $host_vendor in
  10631. sni)
  10632. shlibpath_overrides_runpath=no
  10633. need_lib_prefix=no
  10634. runpath_var=LD_RUN_PATH
  10635. ;;
  10636. siemens)
  10637. need_lib_prefix=no
  10638. ;;
  10639. motorola)
  10640. need_lib_prefix=no
  10641. need_version=no
  10642. shlibpath_overrides_runpath=no
  10643. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10644. ;;
  10645. esac
  10646. ;;
  10647. sysv4*MP*)
  10648. if test -d /usr/nec; then
  10649. version_type=linux # correct to gnu/linux during the next big refactor
  10650. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10651. soname_spec='$libname$shared_ext.$major'
  10652. shlibpath_var=LD_LIBRARY_PATH
  10653. fi
  10654. ;;
  10655. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10656. version_type=sco
  10657. need_lib_prefix=no
  10658. need_version=no
  10659. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10660. soname_spec='$libname$release$shared_ext$major'
  10661. shlibpath_var=LD_LIBRARY_PATH
  10662. shlibpath_overrides_runpath=yes
  10663. hardcode_into_libs=yes
  10664. if test yes = "$with_gnu_ld"; then
  10665. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10666. else
  10667. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10668. case $host_os in
  10669. sco3.2v5*)
  10670. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10671. ;;
  10672. esac
  10673. fi
  10674. sys_lib_dlsearch_path_spec='/usr/lib'
  10675. ;;
  10676. tpf*)
  10677. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10678. version_type=linux # correct to gnu/linux during the next big refactor
  10679. need_lib_prefix=no
  10680. need_version=no
  10681. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10682. shlibpath_var=LD_LIBRARY_PATH
  10683. shlibpath_overrides_runpath=no
  10684. hardcode_into_libs=yes
  10685. ;;
  10686. uts4*)
  10687. version_type=linux # correct to gnu/linux during the next big refactor
  10688. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10689. soname_spec='$libname$release$shared_ext$major'
  10690. shlibpath_var=LD_LIBRARY_PATH
  10691. ;;
  10692. *)
  10693. dynamic_linker=no
  10694. ;;
  10695. esac
  10696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10697. $as_echo "$dynamic_linker" >&6; }
  10698. test no = "$dynamic_linker" && can_build_shared=no
  10699. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10700. if test yes = "$GCC"; then
  10701. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10702. fi
  10703. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10704. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10705. fi
  10706. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10707. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10708. fi
  10709. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10710. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10711. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10712. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10713. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10714. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10716. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10717. hardcode_action=
  10718. if test -n "$hardcode_libdir_flag_spec" ||
  10719. test -n "$runpath_var" ||
  10720. test yes = "$hardcode_automatic"; then
  10721. # We can hardcode non-existent directories.
  10722. if test no != "$hardcode_direct" &&
  10723. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10724. # have to relink, otherwise we might link with an installed library
  10725. # when we should be linking with a yet-to-be-installed one
  10726. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10727. test no != "$hardcode_minus_L"; then
  10728. # Linking always hardcodes the temporary library directory.
  10729. hardcode_action=relink
  10730. else
  10731. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10732. hardcode_action=immediate
  10733. fi
  10734. else
  10735. # We cannot hardcode anything, or else we can only hardcode existing
  10736. # directories.
  10737. hardcode_action=unsupported
  10738. fi
  10739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10740. $as_echo "$hardcode_action" >&6; }
  10741. if test relink = "$hardcode_action" ||
  10742. test yes = "$inherit_rpath"; then
  10743. # Fast installation is not supported
  10744. enable_fast_install=no
  10745. elif test yes = "$shlibpath_overrides_runpath" ||
  10746. test no = "$enable_shared"; then
  10747. # Fast installation is not necessary
  10748. enable_fast_install=needless
  10749. fi
  10750. if test yes != "$enable_dlopen"; then
  10751. enable_dlopen=unknown
  10752. enable_dlopen_self=unknown
  10753. enable_dlopen_self_static=unknown
  10754. else
  10755. lt_cv_dlopen=no
  10756. lt_cv_dlopen_libs=
  10757. case $host_os in
  10758. beos*)
  10759. lt_cv_dlopen=load_add_on
  10760. lt_cv_dlopen_libs=
  10761. lt_cv_dlopen_self=yes
  10762. ;;
  10763. mingw* | pw32* | cegcc*)
  10764. lt_cv_dlopen=LoadLibrary
  10765. lt_cv_dlopen_libs=
  10766. ;;
  10767. cygwin*)
  10768. lt_cv_dlopen=dlopen
  10769. lt_cv_dlopen_libs=
  10770. ;;
  10771. darwin*)
  10772. # if libdl is installed we need to link against it
  10773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10774. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10775. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10776. $as_echo_n "(cached) " >&6
  10777. else
  10778. ac_check_lib_save_LIBS=$LIBS
  10779. LIBS="-ldl $LIBS"
  10780. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10781. /* end confdefs.h. */
  10782. /* Override any GCC internal prototype to avoid an error.
  10783. Use char because int might match the return type of a GCC
  10784. builtin and then its argument prototype would still apply. */
  10785. #ifdef __cplusplus
  10786. extern "C"
  10787. #endif
  10788. char dlopen ();
  10789. int
  10790. main ()
  10791. {
  10792. return dlopen ();
  10793. ;
  10794. return 0;
  10795. }
  10796. _ACEOF
  10797. if ac_fn_c_try_link "$LINENO"; then :
  10798. ac_cv_lib_dl_dlopen=yes
  10799. else
  10800. ac_cv_lib_dl_dlopen=no
  10801. fi
  10802. rm -f core conftest.err conftest.$ac_objext \
  10803. conftest$ac_exeext conftest.$ac_ext
  10804. LIBS=$ac_check_lib_save_LIBS
  10805. fi
  10806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10807. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10808. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10809. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10810. else
  10811. lt_cv_dlopen=dyld
  10812. lt_cv_dlopen_libs=
  10813. lt_cv_dlopen_self=yes
  10814. fi
  10815. ;;
  10816. tpf*)
  10817. # Don't try to run any link tests for TPF. We know it's impossible
  10818. # because TPF is a cross-compiler, and we know how we open DSOs.
  10819. lt_cv_dlopen=dlopen
  10820. lt_cv_dlopen_libs=
  10821. lt_cv_dlopen_self=no
  10822. ;;
  10823. *)
  10824. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10825. if test "x$ac_cv_func_shl_load" = xyes; then :
  10826. lt_cv_dlopen=shl_load
  10827. else
  10828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10829. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10830. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10831. $as_echo_n "(cached) " >&6
  10832. else
  10833. ac_check_lib_save_LIBS=$LIBS
  10834. LIBS="-ldld $LIBS"
  10835. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10836. /* end confdefs.h. */
  10837. /* Override any GCC internal prototype to avoid an error.
  10838. Use char because int might match the return type of a GCC
  10839. builtin and then its argument prototype would still apply. */
  10840. #ifdef __cplusplus
  10841. extern "C"
  10842. #endif
  10843. char shl_load ();
  10844. int
  10845. main ()
  10846. {
  10847. return shl_load ();
  10848. ;
  10849. return 0;
  10850. }
  10851. _ACEOF
  10852. if ac_fn_c_try_link "$LINENO"; then :
  10853. ac_cv_lib_dld_shl_load=yes
  10854. else
  10855. ac_cv_lib_dld_shl_load=no
  10856. fi
  10857. rm -f core conftest.err conftest.$ac_objext \
  10858. conftest$ac_exeext conftest.$ac_ext
  10859. LIBS=$ac_check_lib_save_LIBS
  10860. fi
  10861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10862. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10863. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10864. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10865. else
  10866. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10867. if test "x$ac_cv_func_dlopen" = xyes; then :
  10868. lt_cv_dlopen=dlopen
  10869. else
  10870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10871. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10872. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10873. $as_echo_n "(cached) " >&6
  10874. else
  10875. ac_check_lib_save_LIBS=$LIBS
  10876. LIBS="-ldl $LIBS"
  10877. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10878. /* end confdefs.h. */
  10879. /* Override any GCC internal prototype to avoid an error.
  10880. Use char because int might match the return type of a GCC
  10881. builtin and then its argument prototype would still apply. */
  10882. #ifdef __cplusplus
  10883. extern "C"
  10884. #endif
  10885. char dlopen ();
  10886. int
  10887. main ()
  10888. {
  10889. return dlopen ();
  10890. ;
  10891. return 0;
  10892. }
  10893. _ACEOF
  10894. if ac_fn_c_try_link "$LINENO"; then :
  10895. ac_cv_lib_dl_dlopen=yes
  10896. else
  10897. ac_cv_lib_dl_dlopen=no
  10898. fi
  10899. rm -f core conftest.err conftest.$ac_objext \
  10900. conftest$ac_exeext conftest.$ac_ext
  10901. LIBS=$ac_check_lib_save_LIBS
  10902. fi
  10903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10904. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10905. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10906. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10907. else
  10908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10909. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10910. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10911. $as_echo_n "(cached) " >&6
  10912. else
  10913. ac_check_lib_save_LIBS=$LIBS
  10914. LIBS="-lsvld $LIBS"
  10915. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10916. /* end confdefs.h. */
  10917. /* Override any GCC internal prototype to avoid an error.
  10918. Use char because int might match the return type of a GCC
  10919. builtin and then its argument prototype would still apply. */
  10920. #ifdef __cplusplus
  10921. extern "C"
  10922. #endif
  10923. char dlopen ();
  10924. int
  10925. main ()
  10926. {
  10927. return dlopen ();
  10928. ;
  10929. return 0;
  10930. }
  10931. _ACEOF
  10932. if ac_fn_c_try_link "$LINENO"; then :
  10933. ac_cv_lib_svld_dlopen=yes
  10934. else
  10935. ac_cv_lib_svld_dlopen=no
  10936. fi
  10937. rm -f core conftest.err conftest.$ac_objext \
  10938. conftest$ac_exeext conftest.$ac_ext
  10939. LIBS=$ac_check_lib_save_LIBS
  10940. fi
  10941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10942. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10943. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10944. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10945. else
  10946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10947. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10948. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10949. $as_echo_n "(cached) " >&6
  10950. else
  10951. ac_check_lib_save_LIBS=$LIBS
  10952. LIBS="-ldld $LIBS"
  10953. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10954. /* end confdefs.h. */
  10955. /* Override any GCC internal prototype to avoid an error.
  10956. Use char because int might match the return type of a GCC
  10957. builtin and then its argument prototype would still apply. */
  10958. #ifdef __cplusplus
  10959. extern "C"
  10960. #endif
  10961. char dld_link ();
  10962. int
  10963. main ()
  10964. {
  10965. return dld_link ();
  10966. ;
  10967. return 0;
  10968. }
  10969. _ACEOF
  10970. if ac_fn_c_try_link "$LINENO"; then :
  10971. ac_cv_lib_dld_dld_link=yes
  10972. else
  10973. ac_cv_lib_dld_dld_link=no
  10974. fi
  10975. rm -f core conftest.err conftest.$ac_objext \
  10976. conftest$ac_exeext conftest.$ac_ext
  10977. LIBS=$ac_check_lib_save_LIBS
  10978. fi
  10979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10980. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10981. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10982. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10983. fi
  10984. fi
  10985. fi
  10986. fi
  10987. fi
  10988. fi
  10989. ;;
  10990. esac
  10991. if test no = "$lt_cv_dlopen"; then
  10992. enable_dlopen=no
  10993. else
  10994. enable_dlopen=yes
  10995. fi
  10996. case $lt_cv_dlopen in
  10997. dlopen)
  10998. save_CPPFLAGS=$CPPFLAGS
  10999. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  11000. save_LDFLAGS=$LDFLAGS
  11001. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  11002. save_LIBS=$LIBS
  11003. LIBS="$lt_cv_dlopen_libs $LIBS"
  11004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  11005. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  11006. if ${lt_cv_dlopen_self+:} false; then :
  11007. $as_echo_n "(cached) " >&6
  11008. else
  11009. if test yes = "$cross_compiling"; then :
  11010. lt_cv_dlopen_self=cross
  11011. else
  11012. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11013. lt_status=$lt_dlunknown
  11014. cat > conftest.$ac_ext <<_LT_EOF
  11015. #line $LINENO "configure"
  11016. #include "confdefs.h"
  11017. #if HAVE_DLFCN_H
  11018. #include <dlfcn.h>
  11019. #endif
  11020. #include <stdio.h>
  11021. #ifdef RTLD_GLOBAL
  11022. # define LT_DLGLOBAL RTLD_GLOBAL
  11023. #else
  11024. # ifdef DL_GLOBAL
  11025. # define LT_DLGLOBAL DL_GLOBAL
  11026. # else
  11027. # define LT_DLGLOBAL 0
  11028. # endif
  11029. #endif
  11030. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11031. find out it does not work in some platform. */
  11032. #ifndef LT_DLLAZY_OR_NOW
  11033. # ifdef RTLD_LAZY
  11034. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11035. # else
  11036. # ifdef DL_LAZY
  11037. # define LT_DLLAZY_OR_NOW DL_LAZY
  11038. # else
  11039. # ifdef RTLD_NOW
  11040. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11041. # else
  11042. # ifdef DL_NOW
  11043. # define LT_DLLAZY_OR_NOW DL_NOW
  11044. # else
  11045. # define LT_DLLAZY_OR_NOW 0
  11046. # endif
  11047. # endif
  11048. # endif
  11049. # endif
  11050. #endif
  11051. /* When -fvisibility=hidden is used, assume the code has been annotated
  11052. correspondingly for the symbols needed. */
  11053. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11054. int fnord () __attribute__((visibility("default")));
  11055. #endif
  11056. int fnord () { return 42; }
  11057. int main ()
  11058. {
  11059. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11060. int status = $lt_dlunknown;
  11061. if (self)
  11062. {
  11063. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11064. else
  11065. {
  11066. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11067. else puts (dlerror ());
  11068. }
  11069. /* dlclose (self); */
  11070. }
  11071. else
  11072. puts (dlerror ());
  11073. return status;
  11074. }
  11075. _LT_EOF
  11076. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11077. (eval $ac_link) 2>&5
  11078. ac_status=$?
  11079. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11080. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11081. (./conftest; exit; ) >&5 2>/dev/null
  11082. lt_status=$?
  11083. case x$lt_status in
  11084. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  11085. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  11086. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  11087. esac
  11088. else :
  11089. # compilation failed
  11090. lt_cv_dlopen_self=no
  11091. fi
  11092. fi
  11093. rm -fr conftest*
  11094. fi
  11095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  11096. $as_echo "$lt_cv_dlopen_self" >&6; }
  11097. if test yes = "$lt_cv_dlopen_self"; then
  11098. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  11099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  11100. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  11101. if ${lt_cv_dlopen_self_static+:} false; then :
  11102. $as_echo_n "(cached) " >&6
  11103. else
  11104. if test yes = "$cross_compiling"; then :
  11105. lt_cv_dlopen_self_static=cross
  11106. else
  11107. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11108. lt_status=$lt_dlunknown
  11109. cat > conftest.$ac_ext <<_LT_EOF
  11110. #line $LINENO "configure"
  11111. #include "confdefs.h"
  11112. #if HAVE_DLFCN_H
  11113. #include <dlfcn.h>
  11114. #endif
  11115. #include <stdio.h>
  11116. #ifdef RTLD_GLOBAL
  11117. # define LT_DLGLOBAL RTLD_GLOBAL
  11118. #else
  11119. # ifdef DL_GLOBAL
  11120. # define LT_DLGLOBAL DL_GLOBAL
  11121. # else
  11122. # define LT_DLGLOBAL 0
  11123. # endif
  11124. #endif
  11125. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11126. find out it does not work in some platform. */
  11127. #ifndef LT_DLLAZY_OR_NOW
  11128. # ifdef RTLD_LAZY
  11129. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11130. # else
  11131. # ifdef DL_LAZY
  11132. # define LT_DLLAZY_OR_NOW DL_LAZY
  11133. # else
  11134. # ifdef RTLD_NOW
  11135. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11136. # else
  11137. # ifdef DL_NOW
  11138. # define LT_DLLAZY_OR_NOW DL_NOW
  11139. # else
  11140. # define LT_DLLAZY_OR_NOW 0
  11141. # endif
  11142. # endif
  11143. # endif
  11144. # endif
  11145. #endif
  11146. /* When -fvisibility=hidden is used, assume the code has been annotated
  11147. correspondingly for the symbols needed. */
  11148. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11149. int fnord () __attribute__((visibility("default")));
  11150. #endif
  11151. int fnord () { return 42; }
  11152. int main ()
  11153. {
  11154. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11155. int status = $lt_dlunknown;
  11156. if (self)
  11157. {
  11158. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11159. else
  11160. {
  11161. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11162. else puts (dlerror ());
  11163. }
  11164. /* dlclose (self); */
  11165. }
  11166. else
  11167. puts (dlerror ());
  11168. return status;
  11169. }
  11170. _LT_EOF
  11171. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11172. (eval $ac_link) 2>&5
  11173. ac_status=$?
  11174. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11175. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11176. (./conftest; exit; ) >&5 2>/dev/null
  11177. lt_status=$?
  11178. case x$lt_status in
  11179. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11180. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11181. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11182. esac
  11183. else :
  11184. # compilation failed
  11185. lt_cv_dlopen_self_static=no
  11186. fi
  11187. fi
  11188. rm -fr conftest*
  11189. fi
  11190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11191. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  11192. fi
  11193. CPPFLAGS=$save_CPPFLAGS
  11194. LDFLAGS=$save_LDFLAGS
  11195. LIBS=$save_LIBS
  11196. ;;
  11197. esac
  11198. case $lt_cv_dlopen_self in
  11199. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11200. *) enable_dlopen_self=unknown ;;
  11201. esac
  11202. case $lt_cv_dlopen_self_static in
  11203. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11204. *) enable_dlopen_self_static=unknown ;;
  11205. esac
  11206. fi
  11207. striplib=
  11208. old_striplib=
  11209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11210. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  11211. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11212. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  11213. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  11214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11215. $as_echo "yes" >&6; }
  11216. else
  11217. # FIXME - insert some real tests, host_os isn't really good enough
  11218. case $host_os in
  11219. darwin*)
  11220. if test -n "$STRIP"; then
  11221. striplib="$STRIP -x"
  11222. old_striplib="$STRIP -S"
  11223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11224. $as_echo "yes" >&6; }
  11225. else
  11226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11227. $as_echo "no" >&6; }
  11228. fi
  11229. ;;
  11230. *)
  11231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11232. $as_echo "no" >&6; }
  11233. ;;
  11234. esac
  11235. fi
  11236. # Report what library types will actually be built
  11237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11238. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  11239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11240. $as_echo "$can_build_shared" >&6; }
  11241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11242. $as_echo_n "checking whether to build shared libraries... " >&6; }
  11243. test no = "$can_build_shared" && enable_shared=no
  11244. # On AIX, shared libraries and static libraries use the same namespace, and
  11245. # are all built from PIC.
  11246. case $host_os in
  11247. aix3*)
  11248. test yes = "$enable_shared" && enable_static=no
  11249. if test -n "$RANLIB"; then
  11250. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11251. postinstall_cmds='$RANLIB $lib'
  11252. fi
  11253. ;;
  11254. aix[4-9]*)
  11255. if test ia64 != "$host_cpu"; then
  11256. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11257. yes,aix,yes) ;; # shared object as lib.so file only
  11258. yes,svr4,*) ;; # shared object as lib.so archive member only
  11259. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11260. esac
  11261. fi
  11262. ;;
  11263. esac
  11264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11265. $as_echo "$enable_shared" >&6; }
  11266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11267. $as_echo_n "checking whether to build static libraries... " >&6; }
  11268. # Make sure either enable_shared or enable_static is yes.
  11269. test yes = "$enable_shared" || enable_static=yes
  11270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11271. $as_echo "$enable_static" >&6; }
  11272. fi
  11273. ac_ext=c
  11274. ac_cpp='$CPP $CPPFLAGS'
  11275. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11276. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11277. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11278. CC=$lt_save_CC
  11279. if test -n "$CXX" && ( test no != "$CXX" &&
  11280. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  11281. (test g++ != "$CXX"))); then
  11282. ac_ext=cpp
  11283. ac_cpp='$CXXCPP $CPPFLAGS'
  11284. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11285. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11286. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  11288. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  11289. if test -z "$CXXCPP"; then
  11290. if ${ac_cv_prog_CXXCPP+:} false; then :
  11291. $as_echo_n "(cached) " >&6
  11292. else
  11293. # Double quotes because CXXCPP needs to be expanded
  11294. for CXXCPP in "$CXX -E" "/lib/cpp"
  11295. do
  11296. ac_preproc_ok=false
  11297. for ac_cxx_preproc_warn_flag in '' yes
  11298. do
  11299. # Use a header file that comes with gcc, so configuring glibc
  11300. # with a fresh cross-compiler works.
  11301. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11302. # <limits.h> exists even on freestanding compilers.
  11303. # On the NeXT, cc -E runs the code through the compiler's parser,
  11304. # not just through cpp. "Syntax error" is here to catch this case.
  11305. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11306. /* end confdefs.h. */
  11307. #ifdef __STDC__
  11308. # include <limits.h>
  11309. #else
  11310. # include <assert.h>
  11311. #endif
  11312. Syntax error
  11313. _ACEOF
  11314. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11315. else
  11316. # Broken: fails on valid input.
  11317. continue
  11318. fi
  11319. rm -f conftest.err conftest.i conftest.$ac_ext
  11320. # OK, works on sane cases. Now check whether nonexistent headers
  11321. # can be detected and how.
  11322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11323. /* end confdefs.h. */
  11324. #include <ac_nonexistent.h>
  11325. _ACEOF
  11326. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11327. # Broken: success on invalid input.
  11328. continue
  11329. else
  11330. # Passes both tests.
  11331. ac_preproc_ok=:
  11332. break
  11333. fi
  11334. rm -f conftest.err conftest.i conftest.$ac_ext
  11335. done
  11336. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11337. rm -f conftest.i conftest.err conftest.$ac_ext
  11338. if $ac_preproc_ok; then :
  11339. break
  11340. fi
  11341. done
  11342. ac_cv_prog_CXXCPP=$CXXCPP
  11343. fi
  11344. CXXCPP=$ac_cv_prog_CXXCPP
  11345. else
  11346. ac_cv_prog_CXXCPP=$CXXCPP
  11347. fi
  11348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  11349. $as_echo "$CXXCPP" >&6; }
  11350. ac_preproc_ok=false
  11351. for ac_cxx_preproc_warn_flag in '' yes
  11352. do
  11353. # Use a header file that comes with gcc, so configuring glibc
  11354. # with a fresh cross-compiler works.
  11355. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11356. # <limits.h> exists even on freestanding compilers.
  11357. # On the NeXT, cc -E runs the code through the compiler's parser,
  11358. # not just through cpp. "Syntax error" is here to catch this case.
  11359. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11360. /* end confdefs.h. */
  11361. #ifdef __STDC__
  11362. # include <limits.h>
  11363. #else
  11364. # include <assert.h>
  11365. #endif
  11366. Syntax error
  11367. _ACEOF
  11368. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11369. else
  11370. # Broken: fails on valid input.
  11371. continue
  11372. fi
  11373. rm -f conftest.err conftest.i conftest.$ac_ext
  11374. # OK, works on sane cases. Now check whether nonexistent headers
  11375. # can be detected and how.
  11376. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11377. /* end confdefs.h. */
  11378. #include <ac_nonexistent.h>
  11379. _ACEOF
  11380. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11381. # Broken: success on invalid input.
  11382. continue
  11383. else
  11384. # Passes both tests.
  11385. ac_preproc_ok=:
  11386. break
  11387. fi
  11388. rm -f conftest.err conftest.i conftest.$ac_ext
  11389. done
  11390. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11391. rm -f conftest.i conftest.err conftest.$ac_ext
  11392. if $ac_preproc_ok; then :
  11393. else
  11394. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11395. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11396. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  11397. See \`config.log' for more details" "$LINENO" 5; }
  11398. fi
  11399. ac_ext=c
  11400. ac_cpp='$CPP $CPPFLAGS'
  11401. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11402. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11403. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11404. else
  11405. _lt_caught_CXX_error=yes
  11406. fi
  11407. ac_ext=cpp
  11408. ac_cpp='$CXXCPP $CPPFLAGS'
  11409. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11410. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11411. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11412. archive_cmds_need_lc_CXX=no
  11413. allow_undefined_flag_CXX=
  11414. always_export_symbols_CXX=no
  11415. archive_expsym_cmds_CXX=
  11416. compiler_needs_object_CXX=no
  11417. export_dynamic_flag_spec_CXX=
  11418. hardcode_direct_CXX=no
  11419. hardcode_direct_absolute_CXX=no
  11420. hardcode_libdir_flag_spec_CXX=
  11421. hardcode_libdir_separator_CXX=
  11422. hardcode_minus_L_CXX=no
  11423. hardcode_shlibpath_var_CXX=unsupported
  11424. hardcode_automatic_CXX=no
  11425. inherit_rpath_CXX=no
  11426. module_cmds_CXX=
  11427. module_expsym_cmds_CXX=
  11428. link_all_deplibs_CXX=unknown
  11429. old_archive_cmds_CXX=$old_archive_cmds
  11430. reload_flag_CXX=$reload_flag
  11431. reload_cmds_CXX=$reload_cmds
  11432. no_undefined_flag_CXX=
  11433. whole_archive_flag_spec_CXX=
  11434. enable_shared_with_static_runtimes_CXX=no
  11435. # Source file extension for C++ test sources.
  11436. ac_ext=cpp
  11437. # Object file extension for compiled C++ test sources.
  11438. objext=o
  11439. objext_CXX=$objext
  11440. # No sense in running all these tests if we already determined that
  11441. # the CXX compiler isn't working. Some variables (like enable_shared)
  11442. # are currently assumed to apply to all compilers on this platform,
  11443. # and will be corrupted by setting them based on a non-working compiler.
  11444. if test yes != "$_lt_caught_CXX_error"; then
  11445. # Code to be used in simple compile tests
  11446. lt_simple_compile_test_code="int some_variable = 0;"
  11447. # Code to be used in simple link tests
  11448. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  11449. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11450. # If no C compiler was specified, use CC.
  11451. LTCC=${LTCC-"$CC"}
  11452. # If no C compiler flags were specified, use CFLAGS.
  11453. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11454. # Allow CC to be a program name with arguments.
  11455. compiler=$CC
  11456. # save warnings/boilerplate of simple test code
  11457. ac_outfile=conftest.$ac_objext
  11458. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11459. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11460. _lt_compiler_boilerplate=`cat conftest.err`
  11461. $RM conftest*
  11462. ac_outfile=conftest.$ac_objext
  11463. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11464. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11465. _lt_linker_boilerplate=`cat conftest.err`
  11466. $RM -r conftest*
  11467. # Allow CC to be a program name with arguments.
  11468. lt_save_CC=$CC
  11469. lt_save_CFLAGS=$CFLAGS
  11470. lt_save_LD=$LD
  11471. lt_save_GCC=$GCC
  11472. GCC=$GXX
  11473. lt_save_with_gnu_ld=$with_gnu_ld
  11474. lt_save_path_LD=$lt_cv_path_LD
  11475. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  11476. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11477. else
  11478. $as_unset lt_cv_prog_gnu_ld
  11479. fi
  11480. if test -n "${lt_cv_path_LDCXX+set}"; then
  11481. lt_cv_path_LD=$lt_cv_path_LDCXX
  11482. else
  11483. $as_unset lt_cv_path_LD
  11484. fi
  11485. test -z "${LDCXX+set}" || LD=$LDCXX
  11486. CC=${CXX-"c++"}
  11487. CFLAGS=$CXXFLAGS
  11488. compiler=$CC
  11489. compiler_CXX=$CC
  11490. func_cc_basename $compiler
  11491. cc_basename=$func_cc_basename_result
  11492. if test -n "$compiler"; then
  11493. # We don't want -fno-exception when compiling C++ code, so set the
  11494. # no_builtin_flag separately
  11495. if test yes = "$GXX"; then
  11496. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11497. else
  11498. lt_prog_compiler_no_builtin_flag_CXX=
  11499. fi
  11500. if test yes = "$GXX"; then
  11501. # Set up default GNU C++ configuration
  11502. # Check whether --with-gnu-ld was given.
  11503. if test "${with_gnu_ld+set}" = set; then :
  11504. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  11505. else
  11506. with_gnu_ld=no
  11507. fi
  11508. ac_prog=ld
  11509. if test yes = "$GCC"; then
  11510. # Check if gcc -print-prog-name=ld gives a path.
  11511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11512. $as_echo_n "checking for ld used by $CC... " >&6; }
  11513. case $host in
  11514. *-*-mingw*)
  11515. # gcc leaves a trailing carriage return, which upsets mingw
  11516. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11517. *)
  11518. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11519. esac
  11520. case $ac_prog in
  11521. # Accept absolute paths.
  11522. [\\/]* | ?:[\\/]*)
  11523. re_direlt='/[^/][^/]*/\.\./'
  11524. # Canonicalize the pathname of ld
  11525. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11526. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11527. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11528. done
  11529. test -z "$LD" && LD=$ac_prog
  11530. ;;
  11531. "")
  11532. # If it fails, then pretend we aren't using GCC.
  11533. ac_prog=ld
  11534. ;;
  11535. *)
  11536. # If it is relative, then search for the first ld in PATH.
  11537. with_gnu_ld=unknown
  11538. ;;
  11539. esac
  11540. elif test yes = "$with_gnu_ld"; then
  11541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11542. $as_echo_n "checking for GNU ld... " >&6; }
  11543. else
  11544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11545. $as_echo_n "checking for non-GNU ld... " >&6; }
  11546. fi
  11547. if ${lt_cv_path_LD+:} false; then :
  11548. $as_echo_n "(cached) " >&6
  11549. else
  11550. if test -z "$LD"; then
  11551. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  11552. for ac_dir in $PATH; do
  11553. IFS=$lt_save_ifs
  11554. test -z "$ac_dir" && ac_dir=.
  11555. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11556. lt_cv_path_LD=$ac_dir/$ac_prog
  11557. # Check to see if the program is GNU ld. I'd rather use --version,
  11558. # but apparently some variants of GNU ld only accept -v.
  11559. # Break only if it was the GNU/non-GNU ld that we prefer.
  11560. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11561. *GNU* | *'with BFD'*)
  11562. test no != "$with_gnu_ld" && break
  11563. ;;
  11564. *)
  11565. test yes != "$with_gnu_ld" && break
  11566. ;;
  11567. esac
  11568. fi
  11569. done
  11570. IFS=$lt_save_ifs
  11571. else
  11572. lt_cv_path_LD=$LD # Let the user override the test with a path.
  11573. fi
  11574. fi
  11575. LD=$lt_cv_path_LD
  11576. if test -n "$LD"; then
  11577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11578. $as_echo "$LD" >&6; }
  11579. else
  11580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11581. $as_echo "no" >&6; }
  11582. fi
  11583. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11585. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11586. if ${lt_cv_prog_gnu_ld+:} false; then :
  11587. $as_echo_n "(cached) " >&6
  11588. else
  11589. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11590. case `$LD -v 2>&1 </dev/null` in
  11591. *GNU* | *'with BFD'*)
  11592. lt_cv_prog_gnu_ld=yes
  11593. ;;
  11594. *)
  11595. lt_cv_prog_gnu_ld=no
  11596. ;;
  11597. esac
  11598. fi
  11599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11600. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11601. with_gnu_ld=$lt_cv_prog_gnu_ld
  11602. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11603. # archiving commands below assume that GNU ld is being used.
  11604. if test yes = "$with_gnu_ld"; then
  11605. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  11606. archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  11607. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  11608. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  11609. # If archive_cmds runs LD, not CC, wlarc should be empty
  11610. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11611. # investigate it a little bit more. (MM)
  11612. wlarc='$wl'
  11613. # ancient GNU ld didn't support --whole-archive et. al.
  11614. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11615. $GREP 'no-whole-archive' > /dev/null; then
  11616. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  11617. else
  11618. whole_archive_flag_spec_CXX=
  11619. fi
  11620. else
  11621. with_gnu_ld=no
  11622. wlarc=
  11623. # A generic and very simple default shared library creation
  11624. # command for GNU C++ for the case where it uses the native
  11625. # linker, instead of GNU ld. If possible, this setting should
  11626. # overridden to take advantage of the native linker features on
  11627. # the platform it is being used on.
  11628. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11629. fi
  11630. # Commands to make compiler produce verbose output that lists
  11631. # what "hidden" libraries, object files and flags are used when
  11632. # linking a shared library.
  11633. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
  11634. else
  11635. GXX=no
  11636. with_gnu_ld=no
  11637. wlarc=
  11638. fi
  11639. # PORTME: fill in a description of your system's C++ link characteristics
  11640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11641. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11642. ld_shlibs_CXX=yes
  11643. case $host_os in
  11644. aix3*)
  11645. # FIXME: insert proper C++ library support
  11646. ld_shlibs_CXX=no
  11647. ;;
  11648. aix[4-9]*)
  11649. if test ia64 = "$host_cpu"; then
  11650. # On IA64, the linker does run time linking by default, so we don't
  11651. # have to do anything special.
  11652. aix_use_runtimelinking=no
  11653. exp_sym_flag='-Bexport'
  11654. no_entry_flag=
  11655. else
  11656. aix_use_runtimelinking=no
  11657. # Test if we are trying to use run time linking or normal
  11658. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11659. # have runtime linking enabled, and use it for executables.
  11660. # For shared libraries, we enable/disable runtime linking
  11661. # depending on the kind of the shared library created -
  11662. # when "with_aix_soname,aix_use_runtimelinking" is:
  11663. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  11664. # "aix,yes" lib.so shared, rtl:yes, for executables
  11665. # lib.a static archive
  11666. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  11667. # lib.a(lib.so.V) shared, rtl:no, for executables
  11668. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  11669. # lib.a(lib.so.V) shared, rtl:no
  11670. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  11671. # lib.a static archive
  11672. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11673. for ld_flag in $LDFLAGS; do
  11674. case $ld_flag in
  11675. *-brtl*)
  11676. aix_use_runtimelinking=yes
  11677. break
  11678. ;;
  11679. esac
  11680. done
  11681. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  11682. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  11683. # so we don't have lib.a shared libs to link our executables.
  11684. # We have to force runtime linking in this case.
  11685. aix_use_runtimelinking=yes
  11686. LDFLAGS="$LDFLAGS -Wl,-brtl"
  11687. fi
  11688. ;;
  11689. esac
  11690. exp_sym_flag='-bexport'
  11691. no_entry_flag='-bnoentry'
  11692. fi
  11693. # When large executables or shared objects are built, AIX ld can
  11694. # have problems creating the table of contents. If linking a library
  11695. # or program results in "error TOC overflow" add -mminimal-toc to
  11696. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11697. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11698. archive_cmds_CXX=''
  11699. hardcode_direct_CXX=yes
  11700. hardcode_direct_absolute_CXX=yes
  11701. hardcode_libdir_separator_CXX=':'
  11702. link_all_deplibs_CXX=yes
  11703. file_list_spec_CXX='$wl-f,'
  11704. case $with_aix_soname,$aix_use_runtimelinking in
  11705. aix,*) ;; # no import file
  11706. svr4,* | *,yes) # use import file
  11707. # The Import File defines what to hardcode.
  11708. hardcode_direct_CXX=no
  11709. hardcode_direct_absolute_CXX=no
  11710. ;;
  11711. esac
  11712. if test yes = "$GXX"; then
  11713. case $host_os in aix4.[012]|aix4.[012].*)
  11714. # We only want to do this on AIX 4.2 and lower, the check
  11715. # below for broken collect2 doesn't work under 4.3+
  11716. collect2name=`$CC -print-prog-name=collect2`
  11717. if test -f "$collect2name" &&
  11718. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11719. then
  11720. # We have reworked collect2
  11721. :
  11722. else
  11723. # We have old collect2
  11724. hardcode_direct_CXX=unsupported
  11725. # It fails to find uninstalled libraries when the uninstalled
  11726. # path is not listed in the libpath. Setting hardcode_minus_L
  11727. # to unsupported forces relinking
  11728. hardcode_minus_L_CXX=yes
  11729. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11730. hardcode_libdir_separator_CXX=
  11731. fi
  11732. esac
  11733. shared_flag='-shared'
  11734. if test yes = "$aix_use_runtimelinking"; then
  11735. shared_flag=$shared_flag' $wl-G'
  11736. fi
  11737. # Need to ensure runtime linking is disabled for the traditional
  11738. # shared library, or the linker may eventually find shared libraries
  11739. # /with/ Import File - we do not want to mix them.
  11740. shared_flag_aix='-shared'
  11741. shared_flag_svr4='-shared $wl-G'
  11742. else
  11743. # not using gcc
  11744. if test ia64 = "$host_cpu"; then
  11745. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11746. # chokes on -Wl,-G. The following line is correct:
  11747. shared_flag='-G'
  11748. else
  11749. if test yes = "$aix_use_runtimelinking"; then
  11750. shared_flag='$wl-G'
  11751. else
  11752. shared_flag='$wl-bM:SRE'
  11753. fi
  11754. shared_flag_aix='$wl-bM:SRE'
  11755. shared_flag_svr4='$wl-G'
  11756. fi
  11757. fi
  11758. export_dynamic_flag_spec_CXX='$wl-bexpall'
  11759. # It seems that -bexpall does not export symbols beginning with
  11760. # underscore (_), so it is better to generate a list of symbols to
  11761. # export.
  11762. always_export_symbols_CXX=yes
  11763. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  11764. # Warning - without using the other runtime loading flags (-brtl),
  11765. # -berok will link without error, but may produce a broken library.
  11766. # The "-G" linker flag allows undefined symbols.
  11767. no_undefined_flag_CXX='-bernotok'
  11768. # Determine the default libpath from the value encoded in an empty
  11769. # executable.
  11770. if test set = "${lt_cv_aix_libpath+set}"; then
  11771. aix_libpath=$lt_cv_aix_libpath
  11772. else
  11773. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11774. $as_echo_n "(cached) " >&6
  11775. else
  11776. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11777. /* end confdefs.h. */
  11778. int
  11779. main ()
  11780. {
  11781. ;
  11782. return 0;
  11783. }
  11784. _ACEOF
  11785. if ac_fn_cxx_try_link "$LINENO"; then :
  11786. lt_aix_libpath_sed='
  11787. /Import File Strings/,/^$/ {
  11788. /^0/ {
  11789. s/^0 *\([^ ]*\) *$/\1/
  11790. p
  11791. }
  11792. }'
  11793. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11794. # Check for a 64-bit object if we didn't find anything.
  11795. if test -z "$lt_cv_aix_libpath__CXX"; then
  11796. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11797. fi
  11798. fi
  11799. rm -f core conftest.err conftest.$ac_objext \
  11800. conftest$ac_exeext conftest.$ac_ext
  11801. if test -z "$lt_cv_aix_libpath__CXX"; then
  11802. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  11803. fi
  11804. fi
  11805. aix_libpath=$lt_cv_aix_libpath__CXX
  11806. fi
  11807. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  11808. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  11809. else
  11810. if test ia64 = "$host_cpu"; then
  11811. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  11812. allow_undefined_flag_CXX="-z nodefs"
  11813. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
  11814. else
  11815. # Determine the default libpath from the value encoded in an
  11816. # empty executable.
  11817. if test set = "${lt_cv_aix_libpath+set}"; then
  11818. aix_libpath=$lt_cv_aix_libpath
  11819. else
  11820. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11821. $as_echo_n "(cached) " >&6
  11822. else
  11823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11824. /* end confdefs.h. */
  11825. int
  11826. main ()
  11827. {
  11828. ;
  11829. return 0;
  11830. }
  11831. _ACEOF
  11832. if ac_fn_cxx_try_link "$LINENO"; then :
  11833. lt_aix_libpath_sed='
  11834. /Import File Strings/,/^$/ {
  11835. /^0/ {
  11836. s/^0 *\([^ ]*\) *$/\1/
  11837. p
  11838. }
  11839. }'
  11840. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11841. # Check for a 64-bit object if we didn't find anything.
  11842. if test -z "$lt_cv_aix_libpath__CXX"; then
  11843. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11844. fi
  11845. fi
  11846. rm -f core conftest.err conftest.$ac_objext \
  11847. conftest$ac_exeext conftest.$ac_ext
  11848. if test -z "$lt_cv_aix_libpath__CXX"; then
  11849. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  11850. fi
  11851. fi
  11852. aix_libpath=$lt_cv_aix_libpath__CXX
  11853. fi
  11854. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  11855. # Warning - without using the other run time loading flags,
  11856. # -berok will link without error, but may produce a broken library.
  11857. no_undefined_flag_CXX=' $wl-bernotok'
  11858. allow_undefined_flag_CXX=' $wl-berok'
  11859. if test yes = "$with_gnu_ld"; then
  11860. # We only use this code for GNU lds that support --whole-archive.
  11861. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  11862. else
  11863. # Exported symbols can be pulled into shared objects from archives
  11864. whole_archive_flag_spec_CXX='$convenience'
  11865. fi
  11866. archive_cmds_need_lc_CXX=yes
  11867. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  11868. # -brtl affects multiple linker settings, -berok does not and is overridden later
  11869. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  11870. if test svr4 != "$with_aix_soname"; then
  11871. # This is similar to how AIX traditionally builds its shared
  11872. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  11873. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  11874. fi
  11875. if test aix != "$with_aix_soname"; then
  11876. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  11877. else
  11878. # used by -dlpreopen to get the symbols
  11879. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  11880. fi
  11881. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  11882. fi
  11883. fi
  11884. ;;
  11885. beos*)
  11886. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11887. allow_undefined_flag_CXX=unsupported
  11888. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11889. # support --undefined. This deserves some investigation. FIXME
  11890. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11891. else
  11892. ld_shlibs_CXX=no
  11893. fi
  11894. ;;
  11895. chorus*)
  11896. case $cc_basename in
  11897. *)
  11898. # FIXME: insert proper C++ library support
  11899. ld_shlibs_CXX=no
  11900. ;;
  11901. esac
  11902. ;;
  11903. cygwin* | mingw* | pw32* | cegcc*)
  11904. case $GXX,$cc_basename in
  11905. ,cl* | no,cl*)
  11906. # Native MSVC
  11907. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11908. # no search path for DLLs.
  11909. hardcode_libdir_flag_spec_CXX=' '
  11910. allow_undefined_flag_CXX=unsupported
  11911. always_export_symbols_CXX=yes
  11912. file_list_spec_CXX='@'
  11913. # Tell ltmain to make .lib files, not .a files.
  11914. libext=lib
  11915. # Tell ltmain to make .dll files, not .so files.
  11916. shrext_cmds=.dll
  11917. # FIXME: Setting linknames here is a bad hack.
  11918. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  11919. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  11920. cp "$export_symbols" "$output_objdir/$soname.def";
  11921. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  11922. else
  11923. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  11924. fi~
  11925. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11926. linknames='
  11927. # The linker will not automatically build a static lib if we build a DLL.
  11928. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11929. enable_shared_with_static_runtimes_CXX=yes
  11930. # Don't use ranlib
  11931. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11932. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11933. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11934. case $lt_outputfile in
  11935. *.exe|*.EXE) ;;
  11936. *)
  11937. lt_outputfile=$lt_outputfile.exe
  11938. lt_tool_outputfile=$lt_tool_outputfile.exe
  11939. ;;
  11940. esac~
  11941. func_to_tool_file "$lt_outputfile"~
  11942. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  11943. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11944. $RM "$lt_outputfile.manifest";
  11945. fi'
  11946. ;;
  11947. *)
  11948. # g++
  11949. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11950. # as there is no search path for DLLs.
  11951. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11952. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  11953. allow_undefined_flag_CXX=unsupported
  11954. always_export_symbols_CXX=no
  11955. enable_shared_with_static_runtimes_CXX=yes
  11956. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11957. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11958. # If the export-symbols file already is a .def file, use it as
  11959. # is; otherwise, prepend EXPORTS...
  11960. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  11961. cp $export_symbols $output_objdir/$soname.def;
  11962. else
  11963. echo EXPORTS > $output_objdir/$soname.def;
  11964. cat $export_symbols >> $output_objdir/$soname.def;
  11965. fi~
  11966. $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11967. else
  11968. ld_shlibs_CXX=no
  11969. fi
  11970. ;;
  11971. esac
  11972. ;;
  11973. darwin* | rhapsody*)
  11974. archive_cmds_need_lc_CXX=no
  11975. hardcode_direct_CXX=no
  11976. hardcode_automatic_CXX=yes
  11977. hardcode_shlibpath_var_CXX=unsupported
  11978. if test yes = "$lt_cv_ld_force_load"; then
  11979. whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  11980. else
  11981. whole_archive_flag_spec_CXX=''
  11982. fi
  11983. link_all_deplibs_CXX=yes
  11984. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  11985. case $cc_basename in
  11986. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  11987. *) _lt_dar_can_shared=$GCC ;;
  11988. esac
  11989. if test yes = "$_lt_dar_can_shared"; then
  11990. output_verbose_link_cmd=func_echo_all
  11991. archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  11992. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  11993. archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
  11994. module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
  11995. if test yes != "$lt_cv_apple_cc_single_mod"; then
  11996. archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
  11997. archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
  11998. fi
  11999. else
  12000. ld_shlibs_CXX=no
  12001. fi
  12002. ;;
  12003. os2*)
  12004. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12005. hardcode_minus_L_CXX=yes
  12006. allow_undefined_flag_CXX=unsupported
  12007. shrext_cmds=.dll
  12008. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  12009. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  12010. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  12011. $ECHO EXPORTS >> $output_objdir/$libname.def~
  12012. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  12013. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  12014. emximp -o $lib $output_objdir/$libname.def'
  12015. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  12016. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  12017. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  12018. $ECHO EXPORTS >> $output_objdir/$libname.def~
  12019. prefix_cmds="$SED"~
  12020. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  12021. prefix_cmds="$prefix_cmds -e 1d";
  12022. fi~
  12023. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  12024. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  12025. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  12026. emximp -o $lib $output_objdir/$libname.def'
  12027. old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  12028. enable_shared_with_static_runtimes_CXX=yes
  12029. ;;
  12030. dgux*)
  12031. case $cc_basename in
  12032. ec++*)
  12033. # FIXME: insert proper C++ library support
  12034. ld_shlibs_CXX=no
  12035. ;;
  12036. ghcx*)
  12037. # Green Hills C++ Compiler
  12038. # FIXME: insert proper C++ library support
  12039. ld_shlibs_CXX=no
  12040. ;;
  12041. *)
  12042. # FIXME: insert proper C++ library support
  12043. ld_shlibs_CXX=no
  12044. ;;
  12045. esac
  12046. ;;
  12047. freebsd2.*)
  12048. # C++ shared libraries reported to be fairly broken before
  12049. # switch to ELF
  12050. ld_shlibs_CXX=no
  12051. ;;
  12052. freebsd-elf*)
  12053. archive_cmds_need_lc_CXX=no
  12054. ;;
  12055. freebsd* | dragonfly*)
  12056. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  12057. # conventions
  12058. ld_shlibs_CXX=yes
  12059. ;;
  12060. haiku*)
  12061. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12062. link_all_deplibs_CXX=yes
  12063. ;;
  12064. hpux9*)
  12065. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  12066. hardcode_libdir_separator_CXX=:
  12067. export_dynamic_flag_spec_CXX='$wl-E'
  12068. hardcode_direct_CXX=yes
  12069. hardcode_minus_L_CXX=yes # Not in the search PATH,
  12070. # but as the default
  12071. # location of the library.
  12072. case $cc_basename in
  12073. CC*)
  12074. # FIXME: insert proper C++ library support
  12075. ld_shlibs_CXX=no
  12076. ;;
  12077. aCC*)
  12078. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  12079. # Commands to make compiler produce verbose output that lists
  12080. # what "hidden" libraries, object files and flags are used when
  12081. # linking a shared library.
  12082. #
  12083. # There doesn't appear to be a way to prevent this compiler from
  12084. # explicitly linking system object files so we need to strip them
  12085. # from the output so that they don't get included in the library
  12086. # dependencies.
  12087. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  12088. ;;
  12089. *)
  12090. if test yes = "$GXX"; then
  12091. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  12092. else
  12093. # FIXME: insert proper C++ library support
  12094. ld_shlibs_CXX=no
  12095. fi
  12096. ;;
  12097. esac
  12098. ;;
  12099. hpux10*|hpux11*)
  12100. if test no = "$with_gnu_ld"; then
  12101. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  12102. hardcode_libdir_separator_CXX=:
  12103. case $host_cpu in
  12104. hppa*64*|ia64*)
  12105. ;;
  12106. *)
  12107. export_dynamic_flag_spec_CXX='$wl-E'
  12108. ;;
  12109. esac
  12110. fi
  12111. case $host_cpu in
  12112. hppa*64*|ia64*)
  12113. hardcode_direct_CXX=no
  12114. hardcode_shlibpath_var_CXX=no
  12115. ;;
  12116. *)
  12117. hardcode_direct_CXX=yes
  12118. hardcode_direct_absolute_CXX=yes
  12119. hardcode_minus_L_CXX=yes # Not in the search PATH,
  12120. # but as the default
  12121. # location of the library.
  12122. ;;
  12123. esac
  12124. case $cc_basename in
  12125. CC*)
  12126. # FIXME: insert proper C++ library support
  12127. ld_shlibs_CXX=no
  12128. ;;
  12129. aCC*)
  12130. case $host_cpu in
  12131. hppa*64*)
  12132. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12133. ;;
  12134. ia64*)
  12135. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12136. ;;
  12137. *)
  12138. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12139. ;;
  12140. esac
  12141. # Commands to make compiler produce verbose output that lists
  12142. # what "hidden" libraries, object files and flags are used when
  12143. # linking a shared library.
  12144. #
  12145. # There doesn't appear to be a way to prevent this compiler from
  12146. # explicitly linking system object files so we need to strip them
  12147. # from the output so that they don't get included in the library
  12148. # dependencies.
  12149. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  12150. ;;
  12151. *)
  12152. if test yes = "$GXX"; then
  12153. if test no = "$with_gnu_ld"; then
  12154. case $host_cpu in
  12155. hppa*64*)
  12156. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12157. ;;
  12158. ia64*)
  12159. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12160. ;;
  12161. *)
  12162. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12163. ;;
  12164. esac
  12165. fi
  12166. else
  12167. # FIXME: insert proper C++ library support
  12168. ld_shlibs_CXX=no
  12169. fi
  12170. ;;
  12171. esac
  12172. ;;
  12173. interix[3-9]*)
  12174. hardcode_direct_CXX=no
  12175. hardcode_shlibpath_var_CXX=no
  12176. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12177. export_dynamic_flag_spec_CXX='$wl-E'
  12178. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  12179. # Instead, shared libraries are loaded at an image base (0x10000000 by
  12180. # default) and relocated if they conflict, which is a slow very memory
  12181. # consuming and fragmenting process. To avoid this, we pick a random,
  12182. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  12183. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  12184. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  12185. archive_expsym_cmds_CXX='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  12186. ;;
  12187. irix5* | irix6*)
  12188. case $cc_basename in
  12189. CC*)
  12190. # SGI C++
  12191. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  12192. # Archives containing C++ object files must be created using
  12193. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  12194. # necessary to make sure instantiated templates are included
  12195. # in the archive.
  12196. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  12197. ;;
  12198. *)
  12199. if test yes = "$GXX"; then
  12200. if test no = "$with_gnu_ld"; then
  12201. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  12202. else
  12203. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
  12204. fi
  12205. fi
  12206. link_all_deplibs_CXX=yes
  12207. ;;
  12208. esac
  12209. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12210. hardcode_libdir_separator_CXX=:
  12211. inherit_rpath_CXX=yes
  12212. ;;
  12213. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12214. case $cc_basename in
  12215. KCC*)
  12216. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12217. # KCC will only create a shared library if the output file
  12218. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12219. # to its proper name (with version) after linking.
  12220. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  12221. archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
  12222. # Commands to make compiler produce verbose output that lists
  12223. # what "hidden" libraries, object files and flags are used when
  12224. # linking a shared library.
  12225. #
  12226. # There doesn't appear to be a way to prevent this compiler from
  12227. # explicitly linking system object files so we need to strip them
  12228. # from the output so that they don't get included in the library
  12229. # dependencies.
  12230. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  12231. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12232. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12233. # Archives containing C++ object files must be created using
  12234. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  12235. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  12236. ;;
  12237. icpc* | ecpc* )
  12238. # Intel C++
  12239. with_gnu_ld=yes
  12240. # version 8.0 and above of icpc choke on multiply defined symbols
  12241. # if we add $predep_objects and $postdep_objects, however 7.1 and
  12242. # earlier do not add the objects themselves.
  12243. case `$CC -V 2>&1` in
  12244. *"Version 7."*)
  12245. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12246. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  12247. ;;
  12248. *) # Version 8.0 or newer
  12249. tmp_idyn=
  12250. case $host_cpu in
  12251. ia64*) tmp_idyn=' -i_dynamic';;
  12252. esac
  12253. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12254. archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  12255. ;;
  12256. esac
  12257. archive_cmds_need_lc_CXX=no
  12258. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12259. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12260. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12261. ;;
  12262. pgCC* | pgcpp*)
  12263. # Portland Group C++ compiler
  12264. case `$CC -V` in
  12265. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  12266. prelink_cmds_CXX='tpldir=Template.dir~
  12267. rm -rf $tpldir~
  12268. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  12269. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  12270. old_archive_cmds_CXX='tpldir=Template.dir~
  12271. rm -rf $tpldir~
  12272. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  12273. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  12274. $RANLIB $oldlib'
  12275. archive_cmds_CXX='tpldir=Template.dir~
  12276. rm -rf $tpldir~
  12277. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  12278. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12279. archive_expsym_cmds_CXX='tpldir=Template.dir~
  12280. rm -rf $tpldir~
  12281. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  12282. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  12283. ;;
  12284. *) # Version 6 and above use weak symbols
  12285. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12286. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  12287. ;;
  12288. esac
  12289. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  12290. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12291. whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  12292. ;;
  12293. cxx*)
  12294. # Compaq C++
  12295. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12296. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'
  12297. runpath_var=LD_RUN_PATH
  12298. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12299. hardcode_libdir_separator_CXX=:
  12300. # Commands to make compiler produce verbose output that lists
  12301. # what "hidden" libraries, object files and flags are used when
  12302. # linking a shared library.
  12303. #
  12304. # There doesn't appear to be a way to prevent this compiler from
  12305. # explicitly linking system object files so we need to strip them
  12306. # from the output so that they don't get included in the library
  12307. # dependencies.
  12308. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
  12309. ;;
  12310. xl* | mpixl* | bgxl*)
  12311. # IBM XL 8.0 on PPC, with GNU ld
  12312. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12313. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12314. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12315. if test yes = "$supports_anon_versioning"; then
  12316. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  12317. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12318. echo "local: *; };" >> $output_objdir/$libname.ver~
  12319. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  12320. fi
  12321. ;;
  12322. *)
  12323. case `$CC -V 2>&1 | sed 5q` in
  12324. *Sun\ C*)
  12325. # Sun C++ 5.9
  12326. no_undefined_flag_CXX=' -zdefs'
  12327. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12328. archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
  12329. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12330. whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  12331. compiler_needs_object_CXX=yes
  12332. # Not sure whether something based on
  12333. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  12334. # would be better.
  12335. output_verbose_link_cmd='func_echo_all'
  12336. # Archives containing C++ object files must be created using
  12337. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12338. # necessary to make sure instantiated templates are included
  12339. # in the archive.
  12340. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12341. ;;
  12342. esac
  12343. ;;
  12344. esac
  12345. ;;
  12346. lynxos*)
  12347. # FIXME: insert proper C++ library support
  12348. ld_shlibs_CXX=no
  12349. ;;
  12350. m88k*)
  12351. # FIXME: insert proper C++ library support
  12352. ld_shlibs_CXX=no
  12353. ;;
  12354. mvs*)
  12355. case $cc_basename in
  12356. cxx*)
  12357. # FIXME: insert proper C++ library support
  12358. ld_shlibs_CXX=no
  12359. ;;
  12360. *)
  12361. # FIXME: insert proper C++ library support
  12362. ld_shlibs_CXX=no
  12363. ;;
  12364. esac
  12365. ;;
  12366. netbsd*)
  12367. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12368. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  12369. wlarc=
  12370. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12371. hardcode_direct_CXX=yes
  12372. hardcode_shlibpath_var_CXX=no
  12373. fi
  12374. # Workaround some broken pre-1.5 toolchains
  12375. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  12376. ;;
  12377. *nto* | *qnx*)
  12378. ld_shlibs_CXX=yes
  12379. ;;
  12380. openbsd* | bitrig*)
  12381. if test -f /usr/libexec/ld.so; then
  12382. hardcode_direct_CXX=yes
  12383. hardcode_shlibpath_var_CXX=no
  12384. hardcode_direct_absolute_CXX=yes
  12385. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12386. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12387. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  12388. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  12389. export_dynamic_flag_spec_CXX='$wl-E'
  12390. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12391. fi
  12392. output_verbose_link_cmd=func_echo_all
  12393. else
  12394. ld_shlibs_CXX=no
  12395. fi
  12396. ;;
  12397. osf3* | osf4* | osf5*)
  12398. case $cc_basename in
  12399. KCC*)
  12400. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12401. # KCC will only create a shared library if the output file
  12402. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12403. # to its proper name (with version) after linking.
  12404. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  12405. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12406. hardcode_libdir_separator_CXX=:
  12407. # Archives containing C++ object files must be created using
  12408. # the KAI C++ compiler.
  12409. case $host in
  12410. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  12411. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  12412. esac
  12413. ;;
  12414. RCC*)
  12415. # Rational C++ 2.4.1
  12416. # FIXME: insert proper C++ library support
  12417. ld_shlibs_CXX=no
  12418. ;;
  12419. cxx*)
  12420. case $host in
  12421. osf3*)
  12422. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  12423. archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  12424. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12425. ;;
  12426. *)
  12427. allow_undefined_flag_CXX=' -expect_unresolved \*'
  12428. archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  12429. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  12430. echo "-hidden">> $lib.exp~
  12431. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
  12432. $RM $lib.exp'
  12433. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12434. ;;
  12435. esac
  12436. hardcode_libdir_separator_CXX=:
  12437. # Commands to make compiler produce verbose output that lists
  12438. # what "hidden" libraries, object files and flags are used when
  12439. # linking a shared library.
  12440. #
  12441. # There doesn't appear to be a way to prevent this compiler from
  12442. # explicitly linking system object files so we need to strip them
  12443. # from the output so that they don't get included in the library
  12444. # dependencies.
  12445. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  12446. ;;
  12447. *)
  12448. if test yes,no = "$GXX,$with_gnu_ld"; then
  12449. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  12450. case $host in
  12451. osf3*)
  12452. archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  12453. ;;
  12454. *)
  12455. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  12456. ;;
  12457. esac
  12458. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12459. hardcode_libdir_separator_CXX=:
  12460. # Commands to make compiler produce verbose output that lists
  12461. # what "hidden" libraries, object files and flags are used when
  12462. # linking a shared library.
  12463. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
  12464. else
  12465. # FIXME: insert proper C++ library support
  12466. ld_shlibs_CXX=no
  12467. fi
  12468. ;;
  12469. esac
  12470. ;;
  12471. psos*)
  12472. # FIXME: insert proper C++ library support
  12473. ld_shlibs_CXX=no
  12474. ;;
  12475. sunos4*)
  12476. case $cc_basename in
  12477. CC*)
  12478. # Sun C++ 4.x
  12479. # FIXME: insert proper C++ library support
  12480. ld_shlibs_CXX=no
  12481. ;;
  12482. lcc*)
  12483. # Lucid
  12484. # FIXME: insert proper C++ library support
  12485. ld_shlibs_CXX=no
  12486. ;;
  12487. *)
  12488. # FIXME: insert proper C++ library support
  12489. ld_shlibs_CXX=no
  12490. ;;
  12491. esac
  12492. ;;
  12493. solaris*)
  12494. case $cc_basename in
  12495. CC* | sunCC*)
  12496. # Sun C++ 4.2, 5.x and Centerline C++
  12497. archive_cmds_need_lc_CXX=yes
  12498. no_undefined_flag_CXX=' -zdefs'
  12499. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12500. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12501. $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12502. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12503. hardcode_shlibpath_var_CXX=no
  12504. case $host_os in
  12505. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12506. *)
  12507. # The compiler driver will combine and reorder linker options,
  12508. # but understands '-z linker_flag'.
  12509. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12510. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  12511. ;;
  12512. esac
  12513. link_all_deplibs_CXX=yes
  12514. output_verbose_link_cmd='func_echo_all'
  12515. # Archives containing C++ object files must be created using
  12516. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12517. # necessary to make sure instantiated templates are included
  12518. # in the archive.
  12519. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12520. ;;
  12521. gcx*)
  12522. # Green Hills C++ Compiler
  12523. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12524. # The C++ compiler must be used to create the archive.
  12525. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  12526. ;;
  12527. *)
  12528. # GNU C++ compiler with Solaris linker
  12529. if test yes,no = "$GXX,$with_gnu_ld"; then
  12530. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  12531. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  12532. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12533. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12534. $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12535. # Commands to make compiler produce verbose output that lists
  12536. # what "hidden" libraries, object files and flags are used when
  12537. # linking a shared library.
  12538. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
  12539. else
  12540. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  12541. # platform.
  12542. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  12543. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12544. $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12545. # Commands to make compiler produce verbose output that lists
  12546. # what "hidden" libraries, object files and flags are used when
  12547. # linking a shared library.
  12548. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
  12549. fi
  12550. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  12551. case $host_os in
  12552. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12553. *)
  12554. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  12555. ;;
  12556. esac
  12557. fi
  12558. ;;
  12559. esac
  12560. ;;
  12561. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12562. no_undefined_flag_CXX='$wl-z,text'
  12563. archive_cmds_need_lc_CXX=no
  12564. hardcode_shlibpath_var_CXX=no
  12565. runpath_var='LD_RUN_PATH'
  12566. case $cc_basename in
  12567. CC*)
  12568. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12569. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12570. ;;
  12571. *)
  12572. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12573. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12574. ;;
  12575. esac
  12576. ;;
  12577. sysv5* | sco3.2v5* | sco5v6*)
  12578. # Note: We CANNOT use -z defs as we might desire, because we do not
  12579. # link with -lc, and that would cause any symbols used from libc to
  12580. # always be unresolved, which means just about no library would
  12581. # ever link correctly. If we're not using GNU ld we use -z text
  12582. # though, which does catch some bad symbols but isn't as heavy-handed
  12583. # as -z defs.
  12584. no_undefined_flag_CXX='$wl-z,text'
  12585. allow_undefined_flag_CXX='$wl-z,nodefs'
  12586. archive_cmds_need_lc_CXX=no
  12587. hardcode_shlibpath_var_CXX=no
  12588. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  12589. hardcode_libdir_separator_CXX=':'
  12590. link_all_deplibs_CXX=yes
  12591. export_dynamic_flag_spec_CXX='$wl-Bexport'
  12592. runpath_var='LD_RUN_PATH'
  12593. case $cc_basename in
  12594. CC*)
  12595. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12596. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12597. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  12598. '"$old_archive_cmds_CXX"
  12599. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  12600. '"$reload_cmds_CXX"
  12601. ;;
  12602. *)
  12603. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12604. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12605. ;;
  12606. esac
  12607. ;;
  12608. tandem*)
  12609. case $cc_basename in
  12610. NCC*)
  12611. # NonStop-UX NCC 3.20
  12612. # FIXME: insert proper C++ library support
  12613. ld_shlibs_CXX=no
  12614. ;;
  12615. *)
  12616. # FIXME: insert proper C++ library support
  12617. ld_shlibs_CXX=no
  12618. ;;
  12619. esac
  12620. ;;
  12621. vxworks*)
  12622. # FIXME: insert proper C++ library support
  12623. ld_shlibs_CXX=no
  12624. ;;
  12625. *)
  12626. # FIXME: insert proper C++ library support
  12627. ld_shlibs_CXX=no
  12628. ;;
  12629. esac
  12630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12631. $as_echo "$ld_shlibs_CXX" >&6; }
  12632. test no = "$ld_shlibs_CXX" && can_build_shared=no
  12633. GCC_CXX=$GXX
  12634. LD_CXX=$LD
  12635. ## CAVEAT EMPTOR:
  12636. ## There is no encapsulation within the following macros, do not change
  12637. ## the running order or otherwise move them around unless you know exactly
  12638. ## what you are doing...
  12639. # Dependencies to place before and after the object being linked:
  12640. predep_objects_CXX=
  12641. postdep_objects_CXX=
  12642. predeps_CXX=
  12643. postdeps_CXX=
  12644. compiler_lib_search_path_CXX=
  12645. cat > conftest.$ac_ext <<_LT_EOF
  12646. class Foo
  12647. {
  12648. public:
  12649. Foo (void) { a = 0; }
  12650. private:
  12651. int a;
  12652. };
  12653. _LT_EOF
  12654. _lt_libdeps_save_CFLAGS=$CFLAGS
  12655. case "$CC $CFLAGS " in #(
  12656. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  12657. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  12658. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  12659. esac
  12660. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12661. (eval $ac_compile) 2>&5
  12662. ac_status=$?
  12663. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12664. test $ac_status = 0; }; then
  12665. # Parse the compiler output and extract the necessary
  12666. # objects, libraries and library flags.
  12667. # Sentinel used to keep track of whether or not we are before
  12668. # the conftest object file.
  12669. pre_test_object_deps_done=no
  12670. for p in `eval "$output_verbose_link_cmd"`; do
  12671. case $prev$p in
  12672. -L* | -R* | -l*)
  12673. # Some compilers place space between "-{L,R}" and the path.
  12674. # Remove the space.
  12675. if test x-L = "$p" ||
  12676. test x-R = "$p"; then
  12677. prev=$p
  12678. continue
  12679. fi
  12680. # Expand the sysroot to ease extracting the directories later.
  12681. if test -z "$prev"; then
  12682. case $p in
  12683. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  12684. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12685. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12686. esac
  12687. fi
  12688. case $p in
  12689. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12690. esac
  12691. if test no = "$pre_test_object_deps_done"; then
  12692. case $prev in
  12693. -L | -R)
  12694. # Internal compiler library paths should come after those
  12695. # provided the user. The postdeps already come after the
  12696. # user supplied libs so there is no need to process them.
  12697. if test -z "$compiler_lib_search_path_CXX"; then
  12698. compiler_lib_search_path_CXX=$prev$p
  12699. else
  12700. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  12701. fi
  12702. ;;
  12703. # The "-l" case would never come before the object being
  12704. # linked, so don't bother handling this case.
  12705. esac
  12706. else
  12707. if test -z "$postdeps_CXX"; then
  12708. postdeps_CXX=$prev$p
  12709. else
  12710. postdeps_CXX="${postdeps_CXX} $prev$p"
  12711. fi
  12712. fi
  12713. prev=
  12714. ;;
  12715. *.lto.$objext) ;; # Ignore GCC LTO objects
  12716. *.$objext)
  12717. # This assumes that the test object file only shows up
  12718. # once in the compiler output.
  12719. if test "$p" = "conftest.$objext"; then
  12720. pre_test_object_deps_done=yes
  12721. continue
  12722. fi
  12723. if test no = "$pre_test_object_deps_done"; then
  12724. if test -z "$predep_objects_CXX"; then
  12725. predep_objects_CXX=$p
  12726. else
  12727. predep_objects_CXX="$predep_objects_CXX $p"
  12728. fi
  12729. else
  12730. if test -z "$postdep_objects_CXX"; then
  12731. postdep_objects_CXX=$p
  12732. else
  12733. postdep_objects_CXX="$postdep_objects_CXX $p"
  12734. fi
  12735. fi
  12736. ;;
  12737. *) ;; # Ignore the rest.
  12738. esac
  12739. done
  12740. # Clean up.
  12741. rm -f a.out a.exe
  12742. else
  12743. echo "libtool.m4: error: problem compiling CXX test program"
  12744. fi
  12745. $RM -f confest.$objext
  12746. CFLAGS=$_lt_libdeps_save_CFLAGS
  12747. # PORTME: override above test on systems where it is broken
  12748. case $host_os in
  12749. interix[3-9]*)
  12750. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12751. # hack all around it, let's just trust "g++" to DTRT.
  12752. predep_objects_CXX=
  12753. postdep_objects_CXX=
  12754. postdeps_CXX=
  12755. ;;
  12756. esac
  12757. case " $postdeps_CXX " in
  12758. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12759. esac
  12760. compiler_lib_search_dirs_CXX=
  12761. if test -n "${compiler_lib_search_path_CXX}"; then
  12762. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  12763. fi
  12764. lt_prog_compiler_wl_CXX=
  12765. lt_prog_compiler_pic_CXX=
  12766. lt_prog_compiler_static_CXX=
  12767. # C++ specific cases for pic, static, wl, etc.
  12768. if test yes = "$GXX"; then
  12769. lt_prog_compiler_wl_CXX='-Wl,'
  12770. lt_prog_compiler_static_CXX='-static'
  12771. case $host_os in
  12772. aix*)
  12773. # All AIX code is PIC.
  12774. if test ia64 = "$host_cpu"; then
  12775. # AIX 5 now supports IA64 processor
  12776. lt_prog_compiler_static_CXX='-Bstatic'
  12777. fi
  12778. lt_prog_compiler_pic_CXX='-fPIC'
  12779. ;;
  12780. amigaos*)
  12781. case $host_cpu in
  12782. powerpc)
  12783. # see comment about AmigaOS4 .so support
  12784. lt_prog_compiler_pic_CXX='-fPIC'
  12785. ;;
  12786. m68k)
  12787. # FIXME: we need at least 68020 code to build shared libraries, but
  12788. # adding the '-m68020' flag to GCC prevents building anything better,
  12789. # like '-m68040'.
  12790. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12791. ;;
  12792. esac
  12793. ;;
  12794. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12795. # PIC is the default for these OSes.
  12796. ;;
  12797. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12798. # This hack is so that the source file can tell whether it is being
  12799. # built for inclusion in a dll (and should export symbols for example).
  12800. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12801. # (--disable-auto-import) libraries
  12802. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12803. case $host_os in
  12804. os2*)
  12805. lt_prog_compiler_static_CXX='$wl-static'
  12806. ;;
  12807. esac
  12808. ;;
  12809. darwin* | rhapsody*)
  12810. # PIC is the default on this platform
  12811. # Common symbols not allowed in MH_DYLIB files
  12812. lt_prog_compiler_pic_CXX='-fno-common'
  12813. ;;
  12814. *djgpp*)
  12815. # DJGPP does not support shared libraries at all
  12816. lt_prog_compiler_pic_CXX=
  12817. ;;
  12818. haiku*)
  12819. # PIC is the default for Haiku.
  12820. # The "-static" flag exists, but is broken.
  12821. lt_prog_compiler_static_CXX=
  12822. ;;
  12823. interix[3-9]*)
  12824. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12825. # Instead, we relocate shared libraries at runtime.
  12826. ;;
  12827. sysv4*MP*)
  12828. if test -d /usr/nec; then
  12829. lt_prog_compiler_pic_CXX=-Kconform_pic
  12830. fi
  12831. ;;
  12832. hpux*)
  12833. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12834. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12835. # sets the default TLS model and affects inlining.
  12836. case $host_cpu in
  12837. hppa*64*)
  12838. ;;
  12839. *)
  12840. lt_prog_compiler_pic_CXX='-fPIC'
  12841. ;;
  12842. esac
  12843. ;;
  12844. *qnx* | *nto*)
  12845. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12846. # it will coredump.
  12847. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12848. ;;
  12849. *)
  12850. lt_prog_compiler_pic_CXX='-fPIC'
  12851. ;;
  12852. esac
  12853. else
  12854. case $host_os in
  12855. aix[4-9]*)
  12856. # All AIX code is PIC.
  12857. if test ia64 = "$host_cpu"; then
  12858. # AIX 5 now supports IA64 processor
  12859. lt_prog_compiler_static_CXX='-Bstatic'
  12860. else
  12861. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12862. fi
  12863. ;;
  12864. chorus*)
  12865. case $cc_basename in
  12866. cxch68*)
  12867. # Green Hills C++ Compiler
  12868. # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  12869. ;;
  12870. esac
  12871. ;;
  12872. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12873. # This hack is so that the source file can tell whether it is being
  12874. # built for inclusion in a dll (and should export symbols for example).
  12875. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12876. ;;
  12877. dgux*)
  12878. case $cc_basename in
  12879. ec++*)
  12880. lt_prog_compiler_pic_CXX='-KPIC'
  12881. ;;
  12882. ghcx*)
  12883. # Green Hills C++ Compiler
  12884. lt_prog_compiler_pic_CXX='-pic'
  12885. ;;
  12886. *)
  12887. ;;
  12888. esac
  12889. ;;
  12890. freebsd* | dragonfly*)
  12891. # FreeBSD uses GNU C++
  12892. ;;
  12893. hpux9* | hpux10* | hpux11*)
  12894. case $cc_basename in
  12895. CC*)
  12896. lt_prog_compiler_wl_CXX='-Wl,'
  12897. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  12898. if test ia64 != "$host_cpu"; then
  12899. lt_prog_compiler_pic_CXX='+Z'
  12900. fi
  12901. ;;
  12902. aCC*)
  12903. lt_prog_compiler_wl_CXX='-Wl,'
  12904. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  12905. case $host_cpu in
  12906. hppa*64*|ia64*)
  12907. # +Z the default
  12908. ;;
  12909. *)
  12910. lt_prog_compiler_pic_CXX='+Z'
  12911. ;;
  12912. esac
  12913. ;;
  12914. *)
  12915. ;;
  12916. esac
  12917. ;;
  12918. interix*)
  12919. # This is c89, which is MS Visual C++ (no shared libs)
  12920. # Anyone wants to do a port?
  12921. ;;
  12922. irix5* | irix6* | nonstopux*)
  12923. case $cc_basename in
  12924. CC*)
  12925. lt_prog_compiler_wl_CXX='-Wl,'
  12926. lt_prog_compiler_static_CXX='-non_shared'
  12927. # CC pic flag -KPIC is the default.
  12928. ;;
  12929. *)
  12930. ;;
  12931. esac
  12932. ;;
  12933. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12934. case $cc_basename in
  12935. KCC*)
  12936. # KAI C++ Compiler
  12937. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12938. lt_prog_compiler_pic_CXX='-fPIC'
  12939. ;;
  12940. ecpc* )
  12941. # old Intel C++ for x86_64, which still supported -KPIC.
  12942. lt_prog_compiler_wl_CXX='-Wl,'
  12943. lt_prog_compiler_pic_CXX='-KPIC'
  12944. lt_prog_compiler_static_CXX='-static'
  12945. ;;
  12946. icpc* )
  12947. # Intel C++, used to be incompatible with GCC.
  12948. # ICC 10 doesn't accept -KPIC any more.
  12949. lt_prog_compiler_wl_CXX='-Wl,'
  12950. lt_prog_compiler_pic_CXX='-fPIC'
  12951. lt_prog_compiler_static_CXX='-static'
  12952. ;;
  12953. pgCC* | pgcpp*)
  12954. # Portland Group C++ compiler
  12955. lt_prog_compiler_wl_CXX='-Wl,'
  12956. lt_prog_compiler_pic_CXX='-fpic'
  12957. lt_prog_compiler_static_CXX='-Bstatic'
  12958. ;;
  12959. cxx*)
  12960. # Compaq C++
  12961. # Make sure the PIC flag is empty. It appears that all Alpha
  12962. # Linux and Compaq Tru64 Unix objects are PIC.
  12963. lt_prog_compiler_pic_CXX=
  12964. lt_prog_compiler_static_CXX='-non_shared'
  12965. ;;
  12966. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12967. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12968. lt_prog_compiler_wl_CXX='-Wl,'
  12969. lt_prog_compiler_pic_CXX='-qpic'
  12970. lt_prog_compiler_static_CXX='-qstaticlink'
  12971. ;;
  12972. *)
  12973. case `$CC -V 2>&1 | sed 5q` in
  12974. *Sun\ C*)
  12975. # Sun C++ 5.9
  12976. lt_prog_compiler_pic_CXX='-KPIC'
  12977. lt_prog_compiler_static_CXX='-Bstatic'
  12978. lt_prog_compiler_wl_CXX='-Qoption ld '
  12979. ;;
  12980. esac
  12981. ;;
  12982. esac
  12983. ;;
  12984. lynxos*)
  12985. ;;
  12986. m88k*)
  12987. ;;
  12988. mvs*)
  12989. case $cc_basename in
  12990. cxx*)
  12991. lt_prog_compiler_pic_CXX='-W c,exportall'
  12992. ;;
  12993. *)
  12994. ;;
  12995. esac
  12996. ;;
  12997. netbsd* | netbsdelf*-gnu)
  12998. ;;
  12999. *qnx* | *nto*)
  13000. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13001. # it will coredump.
  13002. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13003. ;;
  13004. osf3* | osf4* | osf5*)
  13005. case $cc_basename in
  13006. KCC*)
  13007. lt_prog_compiler_wl_CXX='--backend -Wl,'
  13008. ;;
  13009. RCC*)
  13010. # Rational C++ 2.4.1
  13011. lt_prog_compiler_pic_CXX='-pic'
  13012. ;;
  13013. cxx*)
  13014. # Digital/Compaq C++
  13015. lt_prog_compiler_wl_CXX='-Wl,'
  13016. # Make sure the PIC flag is empty. It appears that all Alpha
  13017. # Linux and Compaq Tru64 Unix objects are PIC.
  13018. lt_prog_compiler_pic_CXX=
  13019. lt_prog_compiler_static_CXX='-non_shared'
  13020. ;;
  13021. *)
  13022. ;;
  13023. esac
  13024. ;;
  13025. psos*)
  13026. ;;
  13027. solaris*)
  13028. case $cc_basename in
  13029. CC* | sunCC*)
  13030. # Sun C++ 4.2, 5.x and Centerline C++
  13031. lt_prog_compiler_pic_CXX='-KPIC'
  13032. lt_prog_compiler_static_CXX='-Bstatic'
  13033. lt_prog_compiler_wl_CXX='-Qoption ld '
  13034. ;;
  13035. gcx*)
  13036. # Green Hills C++ Compiler
  13037. lt_prog_compiler_pic_CXX='-PIC'
  13038. ;;
  13039. *)
  13040. ;;
  13041. esac
  13042. ;;
  13043. sunos4*)
  13044. case $cc_basename in
  13045. CC*)
  13046. # Sun C++ 4.x
  13047. lt_prog_compiler_pic_CXX='-pic'
  13048. lt_prog_compiler_static_CXX='-Bstatic'
  13049. ;;
  13050. lcc*)
  13051. # Lucid
  13052. lt_prog_compiler_pic_CXX='-pic'
  13053. ;;
  13054. *)
  13055. ;;
  13056. esac
  13057. ;;
  13058. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  13059. case $cc_basename in
  13060. CC*)
  13061. lt_prog_compiler_wl_CXX='-Wl,'
  13062. lt_prog_compiler_pic_CXX='-KPIC'
  13063. lt_prog_compiler_static_CXX='-Bstatic'
  13064. ;;
  13065. esac
  13066. ;;
  13067. tandem*)
  13068. case $cc_basename in
  13069. NCC*)
  13070. # NonStop-UX NCC 3.20
  13071. lt_prog_compiler_pic_CXX='-KPIC'
  13072. ;;
  13073. *)
  13074. ;;
  13075. esac
  13076. ;;
  13077. vxworks*)
  13078. ;;
  13079. *)
  13080. lt_prog_compiler_can_build_shared_CXX=no
  13081. ;;
  13082. esac
  13083. fi
  13084. case $host_os in
  13085. # For platforms that do not support PIC, -DPIC is meaningless:
  13086. *djgpp*)
  13087. lt_prog_compiler_pic_CXX=
  13088. ;;
  13089. *)
  13090. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  13091. ;;
  13092. esac
  13093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  13094. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  13095. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  13096. $as_echo_n "(cached) " >&6
  13097. else
  13098. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  13099. fi
  13100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  13101. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  13102. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  13103. #
  13104. # Check to make sure the PIC flag actually works.
  13105. #
  13106. if test -n "$lt_prog_compiler_pic_CXX"; then
  13107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  13108. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  13109. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  13110. $as_echo_n "(cached) " >&6
  13111. else
  13112. lt_cv_prog_compiler_pic_works_CXX=no
  13113. ac_outfile=conftest.$ac_objext
  13114. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13115. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  13116. # Insert the option either (1) after the last *FLAGS variable, or
  13117. # (2) before a word containing "conftest.", or (3) at the end.
  13118. # Note that $ac_compile itself does not contain backslashes and begins
  13119. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13120. # The option is referenced via a variable to avoid confusing sed.
  13121. lt_compile=`echo "$ac_compile" | $SED \
  13122. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13123. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13124. -e 's:$: $lt_compiler_flag:'`
  13125. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13126. (eval "$lt_compile" 2>conftest.err)
  13127. ac_status=$?
  13128. cat conftest.err >&5
  13129. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13130. if (exit $ac_status) && test -s "$ac_outfile"; then
  13131. # The compiler can only warn and ignore the option if not recognized
  13132. # So say no if there are warnings other than the usual output.
  13133. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  13134. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13135. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  13136. lt_cv_prog_compiler_pic_works_CXX=yes
  13137. fi
  13138. fi
  13139. $RM conftest*
  13140. fi
  13141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  13142. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  13143. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  13144. case $lt_prog_compiler_pic_CXX in
  13145. "" | " "*) ;;
  13146. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  13147. esac
  13148. else
  13149. lt_prog_compiler_pic_CXX=
  13150. lt_prog_compiler_can_build_shared_CXX=no
  13151. fi
  13152. fi
  13153. #
  13154. # Check to make sure the static flag actually works.
  13155. #
  13156. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  13157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  13158. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  13159. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  13160. $as_echo_n "(cached) " >&6
  13161. else
  13162. lt_cv_prog_compiler_static_works_CXX=no
  13163. save_LDFLAGS=$LDFLAGS
  13164. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  13165. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  13166. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  13167. # The linker can only warn and ignore the option if not recognized
  13168. # So say no if there are warnings
  13169. if test -s conftest.err; then
  13170. # Append any errors to the config.log.
  13171. cat conftest.err 1>&5
  13172. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  13173. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13174. if diff conftest.exp conftest.er2 >/dev/null; then
  13175. lt_cv_prog_compiler_static_works_CXX=yes
  13176. fi
  13177. else
  13178. lt_cv_prog_compiler_static_works_CXX=yes
  13179. fi
  13180. fi
  13181. $RM -r conftest*
  13182. LDFLAGS=$save_LDFLAGS
  13183. fi
  13184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  13185. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  13186. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  13187. :
  13188. else
  13189. lt_prog_compiler_static_CXX=
  13190. fi
  13191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13192. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13193. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  13194. $as_echo_n "(cached) " >&6
  13195. else
  13196. lt_cv_prog_compiler_c_o_CXX=no
  13197. $RM -r conftest 2>/dev/null
  13198. mkdir conftest
  13199. cd conftest
  13200. mkdir out
  13201. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13202. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13203. # Insert the option either (1) after the last *FLAGS variable, or
  13204. # (2) before a word containing "conftest.", or (3) at the end.
  13205. # Note that $ac_compile itself does not contain backslashes and begins
  13206. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13207. lt_compile=`echo "$ac_compile" | $SED \
  13208. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13209. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13210. -e 's:$: $lt_compiler_flag:'`
  13211. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13212. (eval "$lt_compile" 2>out/conftest.err)
  13213. ac_status=$?
  13214. cat out/conftest.err >&5
  13215. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13216. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13217. then
  13218. # The compiler can only warn and ignore the option if not recognized
  13219. # So say no if there are warnings
  13220. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13221. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13222. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13223. lt_cv_prog_compiler_c_o_CXX=yes
  13224. fi
  13225. fi
  13226. chmod u+w . 2>&5
  13227. $RM conftest*
  13228. # SGI C++ compiler will create directory out/ii_files/ for
  13229. # template instantiation
  13230. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13231. $RM out/* && rmdir out
  13232. cd ..
  13233. $RM -r conftest
  13234. $RM conftest*
  13235. fi
  13236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13237. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13239. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13240. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  13241. $as_echo_n "(cached) " >&6
  13242. else
  13243. lt_cv_prog_compiler_c_o_CXX=no
  13244. $RM -r conftest 2>/dev/null
  13245. mkdir conftest
  13246. cd conftest
  13247. mkdir out
  13248. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13249. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13250. # Insert the option either (1) after the last *FLAGS variable, or
  13251. # (2) before a word containing "conftest.", or (3) at the end.
  13252. # Note that $ac_compile itself does not contain backslashes and begins
  13253. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13254. lt_compile=`echo "$ac_compile" | $SED \
  13255. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13256. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13257. -e 's:$: $lt_compiler_flag:'`
  13258. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13259. (eval "$lt_compile" 2>out/conftest.err)
  13260. ac_status=$?
  13261. cat out/conftest.err >&5
  13262. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13263. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13264. then
  13265. # The compiler can only warn and ignore the option if not recognized
  13266. # So say no if there are warnings
  13267. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13268. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13269. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13270. lt_cv_prog_compiler_c_o_CXX=yes
  13271. fi
  13272. fi
  13273. chmod u+w . 2>&5
  13274. $RM conftest*
  13275. # SGI C++ compiler will create directory out/ii_files/ for
  13276. # template instantiation
  13277. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13278. $RM out/* && rmdir out
  13279. cd ..
  13280. $RM -r conftest
  13281. $RM conftest*
  13282. fi
  13283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13284. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13285. hard_links=nottested
  13286. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  13287. # do not overwrite the value of need_locks provided by the user
  13288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  13289. $as_echo_n "checking if we can lock with hard links... " >&6; }
  13290. hard_links=yes
  13291. $RM conftest*
  13292. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13293. touch conftest.a
  13294. ln conftest.a conftest.b 2>&5 || hard_links=no
  13295. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  13297. $as_echo "$hard_links" >&6; }
  13298. if test no = "$hard_links"; then
  13299. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  13300. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  13301. need_locks=warn
  13302. fi
  13303. else
  13304. need_locks=no
  13305. fi
  13306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13307. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  13308. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13309. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  13310. case $host_os in
  13311. aix[4-9]*)
  13312. # If we're using GNU nm, then we don't want the "-C" option.
  13313. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  13314. # Without the "-l" option, or with the "-B" option, AIX nm treats
  13315. # weak defined symbols like other global defined symbols, whereas
  13316. # GNU nm marks them as "W".
  13317. # While the 'weak' keyword is ignored in the Export File, we need
  13318. # it in the Import File for the 'aix-soname' feature, so we have
  13319. # to replace the "-B" option with "-P" for AIX nm.
  13320. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  13321. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  13322. else
  13323. export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  13324. fi
  13325. ;;
  13326. pw32*)
  13327. export_symbols_cmds_CXX=$ltdll_cmds
  13328. ;;
  13329. cygwin* | mingw* | cegcc*)
  13330. case $cc_basename in
  13331. cl*)
  13332. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  13333. ;;
  13334. *)
  13335. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  13336. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  13337. ;;
  13338. esac
  13339. ;;
  13340. linux* | k*bsd*-gnu | gnu*)
  13341. link_all_deplibs_CXX=no
  13342. ;;
  13343. *)
  13344. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13345. ;;
  13346. esac
  13347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13348. $as_echo "$ld_shlibs_CXX" >&6; }
  13349. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13350. with_gnu_ld_CXX=$with_gnu_ld
  13351. #
  13352. # Do we need to explicitly link libc?
  13353. #
  13354. case "x$archive_cmds_need_lc_CXX" in
  13355. x|xyes)
  13356. # Assume -lc should be added
  13357. archive_cmds_need_lc_CXX=yes
  13358. if test yes,yes = "$GCC,$enable_shared"; then
  13359. case $archive_cmds_CXX in
  13360. *'~'*)
  13361. # FIXME: we may have to deal with multi-command sequences.
  13362. ;;
  13363. '$CC '*)
  13364. # Test whether the compiler implicitly links with -lc since on some
  13365. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13366. # to ld, don't add -lc before -lgcc.
  13367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  13368. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  13369. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  13370. $as_echo_n "(cached) " >&6
  13371. else
  13372. $RM conftest*
  13373. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13374. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13375. (eval $ac_compile) 2>&5
  13376. ac_status=$?
  13377. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13378. test $ac_status = 0; } 2>conftest.err; then
  13379. soname=conftest
  13380. lib=conftest
  13381. libobjs=conftest.$ac_objext
  13382. deplibs=
  13383. wl=$lt_prog_compiler_wl_CXX
  13384. pic_flag=$lt_prog_compiler_pic_CXX
  13385. compiler_flags=-v
  13386. linker_flags=-v
  13387. verstring=
  13388. output_objdir=.
  13389. libname=conftest
  13390. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  13391. allow_undefined_flag_CXX=
  13392. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  13393. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13394. ac_status=$?
  13395. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13396. test $ac_status = 0; }
  13397. then
  13398. lt_cv_archive_cmds_need_lc_CXX=no
  13399. else
  13400. lt_cv_archive_cmds_need_lc_CXX=yes
  13401. fi
  13402. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  13403. else
  13404. cat conftest.err 1>&5
  13405. fi
  13406. $RM conftest*
  13407. fi
  13408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  13409. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  13410. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  13411. ;;
  13412. esac
  13413. fi
  13414. ;;
  13415. esac
  13416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  13417. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  13418. library_names_spec=
  13419. libname_spec='lib$name'
  13420. soname_spec=
  13421. shrext_cmds=.so
  13422. postinstall_cmds=
  13423. postuninstall_cmds=
  13424. finish_cmds=
  13425. finish_eval=
  13426. shlibpath_var=
  13427. shlibpath_overrides_runpath=unknown
  13428. version_type=none
  13429. dynamic_linker="$host_os ld.so"
  13430. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13431. need_lib_prefix=unknown
  13432. hardcode_into_libs=no
  13433. # when you set need_version to no, make sure it does not cause -set_version
  13434. # flags to be left without arguments
  13435. need_version=unknown
  13436. case $host_os in
  13437. aix3*)
  13438. version_type=linux # correct to gnu/linux during the next big refactor
  13439. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  13440. shlibpath_var=LIBPATH
  13441. # AIX 3 has no versioning support, so we append a major version to the name.
  13442. soname_spec='$libname$release$shared_ext$major'
  13443. ;;
  13444. aix[4-9]*)
  13445. version_type=linux # correct to gnu/linux during the next big refactor
  13446. need_lib_prefix=no
  13447. need_version=no
  13448. hardcode_into_libs=yes
  13449. if test ia64 = "$host_cpu"; then
  13450. # AIX 5 supports IA64
  13451. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  13452. shlibpath_var=LD_LIBRARY_PATH
  13453. else
  13454. # With GCC up to 2.95.x, collect2 would create an import file
  13455. # for dependence libraries. The import file would start with
  13456. # the line '#! .'. This would cause the generated library to
  13457. # depend on '.', always an invalid library. This was fixed in
  13458. # development snapshots of GCC prior to 3.0.
  13459. case $host_os in
  13460. aix4 | aix4.[01] | aix4.[01].*)
  13461. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13462. echo ' yes '
  13463. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  13464. :
  13465. else
  13466. can_build_shared=no
  13467. fi
  13468. ;;
  13469. esac
  13470. # Using Import Files as archive members, it is possible to support
  13471. # filename-based versioning of shared library archives on AIX. While
  13472. # this would work for both with and without runtime linking, it will
  13473. # prevent static linking of such archives. So we do filename-based
  13474. # shared library versioning with .so extension only, which is used
  13475. # when both runtime linking and shared linking is enabled.
  13476. # Unfortunately, runtime linking may impact performance, so we do
  13477. # not want this to be the default eventually. Also, we use the
  13478. # versioned .so libs for executables only if there is the -brtl
  13479. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  13480. # To allow for filename-based versioning support, we need to create
  13481. # libNAME.so.V as an archive file, containing:
  13482. # *) an Import File, referring to the versioned filename of the
  13483. # archive as well as the shared archive member, telling the
  13484. # bitwidth (32 or 64) of that shared object, and providing the
  13485. # list of exported symbols of that shared object, eventually
  13486. # decorated with the 'weak' keyword
  13487. # *) the shared object with the F_LOADONLY flag set, to really avoid
  13488. # it being seen by the linker.
  13489. # At run time we better use the real file rather than another symlink,
  13490. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  13491. case $with_aix_soname,$aix_use_runtimelinking in
  13492. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  13493. # soname into executable. Probably we can add versioning support to
  13494. # collect2, so additional links can be useful in future.
  13495. aix,yes) # traditional libtool
  13496. dynamic_linker='AIX unversionable lib.so'
  13497. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13498. # instead of lib<name>.a to let people know that these are not
  13499. # typical AIX shared libraries.
  13500. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13501. ;;
  13502. aix,no) # traditional AIX only
  13503. dynamic_linker='AIX lib.a(lib.so.V)'
  13504. # We preserve .a as extension for shared libraries through AIX4.2
  13505. # and later when we are not doing run time linking.
  13506. library_names_spec='$libname$release.a $libname.a'
  13507. soname_spec='$libname$release$shared_ext$major'
  13508. ;;
  13509. svr4,*) # full svr4 only
  13510. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  13511. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  13512. # We do not specify a path in Import Files, so LIBPATH fires.
  13513. shlibpath_overrides_runpath=yes
  13514. ;;
  13515. *,yes) # both, prefer svr4
  13516. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  13517. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  13518. # unpreferred sharedlib libNAME.a needs extra handling
  13519. 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"'
  13520. 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"'
  13521. # We do not specify a path in Import Files, so LIBPATH fires.
  13522. shlibpath_overrides_runpath=yes
  13523. ;;
  13524. *,no) # both, prefer aix
  13525. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  13526. library_names_spec='$libname$release.a $libname.a'
  13527. soname_spec='$libname$release$shared_ext$major'
  13528. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  13529. 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)'
  13530. 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"'
  13531. ;;
  13532. esac
  13533. shlibpath_var=LIBPATH
  13534. fi
  13535. ;;
  13536. amigaos*)
  13537. case $host_cpu in
  13538. powerpc)
  13539. # Since July 2007 AmigaOS4 officially supports .so libraries.
  13540. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  13541. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13542. ;;
  13543. m68k)
  13544. library_names_spec='$libname.ixlibrary $libname.a'
  13545. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13546. 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'
  13547. ;;
  13548. esac
  13549. ;;
  13550. beos*)
  13551. library_names_spec='$libname$shared_ext'
  13552. dynamic_linker="$host_os ld.so"
  13553. shlibpath_var=LIBRARY_PATH
  13554. ;;
  13555. bsdi[45]*)
  13556. version_type=linux # correct to gnu/linux during the next big refactor
  13557. need_version=no
  13558. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13559. soname_spec='$libname$release$shared_ext$major'
  13560. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13561. shlibpath_var=LD_LIBRARY_PATH
  13562. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13563. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13564. # the default ld.so.conf also contains /usr/contrib/lib and
  13565. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13566. # libtool to hard-code these into programs
  13567. ;;
  13568. cygwin* | mingw* | pw32* | cegcc*)
  13569. version_type=windows
  13570. shrext_cmds=.dll
  13571. need_version=no
  13572. need_lib_prefix=no
  13573. case $GCC,$cc_basename in
  13574. yes,*)
  13575. # gcc
  13576. library_names_spec='$libname.dll.a'
  13577. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13578. postinstall_cmds='base_file=`basename \$file`~
  13579. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  13580. dldir=$destdir/`dirname \$dlpath`~
  13581. test -d \$dldir || mkdir -p \$dldir~
  13582. $install_prog $dir/$dlname \$dldir/$dlname~
  13583. chmod a+x \$dldir/$dlname~
  13584. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13585. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13586. fi'
  13587. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13588. dlpath=$dir/\$dldll~
  13589. $RM \$dlpath'
  13590. shlibpath_overrides_runpath=yes
  13591. case $host_os in
  13592. cygwin*)
  13593. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13594. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13595. ;;
  13596. mingw* | cegcc*)
  13597. # MinGW DLLs use traditional 'lib' prefix
  13598. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13599. ;;
  13600. pw32*)
  13601. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13602. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13603. ;;
  13604. esac
  13605. dynamic_linker='Win32 ld.exe'
  13606. ;;
  13607. *,cl*)
  13608. # Native MSVC
  13609. libname_spec='$name'
  13610. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13611. library_names_spec='$libname.dll.lib'
  13612. case $build_os in
  13613. mingw*)
  13614. sys_lib_search_path_spec=
  13615. lt_save_ifs=$IFS
  13616. IFS=';'
  13617. for lt_path in $LIB
  13618. do
  13619. IFS=$lt_save_ifs
  13620. # Let DOS variable expansion print the short 8.3 style file name.
  13621. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  13622. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  13623. done
  13624. IFS=$lt_save_ifs
  13625. # Convert to MSYS style.
  13626. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  13627. ;;
  13628. cygwin*)
  13629. # Convert to unix form, then to dos form, then back to unix form
  13630. # but this time dos style (no spaces!) so that the unix form looks
  13631. # like /cygdrive/c/PROGRA~1:/cygdr...
  13632. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  13633. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  13634. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13635. ;;
  13636. *)
  13637. sys_lib_search_path_spec=$LIB
  13638. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13639. # It is most probably a Windows format PATH.
  13640. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13641. else
  13642. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13643. fi
  13644. # FIXME: find the short name or the path components, as spaces are
  13645. # common. (e.g. "Program Files" -> "PROGRA~1")
  13646. ;;
  13647. esac
  13648. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13649. postinstall_cmds='base_file=`basename \$file`~
  13650. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  13651. dldir=$destdir/`dirname \$dlpath`~
  13652. test -d \$dldir || mkdir -p \$dldir~
  13653. $install_prog $dir/$dlname \$dldir/$dlname'
  13654. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13655. dlpath=$dir/\$dldll~
  13656. $RM \$dlpath'
  13657. shlibpath_overrides_runpath=yes
  13658. dynamic_linker='Win32 link.exe'
  13659. ;;
  13660. *)
  13661. # Assume MSVC wrapper
  13662. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  13663. dynamic_linker='Win32 ld.exe'
  13664. ;;
  13665. esac
  13666. # FIXME: first we should search . and the directory the executable is in
  13667. shlibpath_var=PATH
  13668. ;;
  13669. darwin* | rhapsody*)
  13670. dynamic_linker="$host_os dyld"
  13671. version_type=darwin
  13672. need_lib_prefix=no
  13673. need_version=no
  13674. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  13675. soname_spec='$libname$release$major$shared_ext'
  13676. shlibpath_overrides_runpath=yes
  13677. shlibpath_var=DYLD_LIBRARY_PATH
  13678. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13679. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13680. ;;
  13681. dgux*)
  13682. version_type=linux # correct to gnu/linux during the next big refactor
  13683. need_lib_prefix=no
  13684. need_version=no
  13685. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13686. soname_spec='$libname$release$shared_ext$major'
  13687. shlibpath_var=LD_LIBRARY_PATH
  13688. ;;
  13689. freebsd* | dragonfly*)
  13690. # DragonFly does not have aout. When/if they implement a new
  13691. # versioning mechanism, adjust this.
  13692. if test -x /usr/bin/objformat; then
  13693. objformat=`/usr/bin/objformat`
  13694. else
  13695. case $host_os in
  13696. freebsd[23].*) objformat=aout ;;
  13697. *) objformat=elf ;;
  13698. esac
  13699. fi
  13700. version_type=freebsd-$objformat
  13701. case $version_type in
  13702. freebsd-elf*)
  13703. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13704. soname_spec='$libname$release$shared_ext$major'
  13705. need_version=no
  13706. need_lib_prefix=no
  13707. ;;
  13708. freebsd-*)
  13709. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13710. need_version=yes
  13711. ;;
  13712. esac
  13713. shlibpath_var=LD_LIBRARY_PATH
  13714. case $host_os in
  13715. freebsd2.*)
  13716. shlibpath_overrides_runpath=yes
  13717. ;;
  13718. freebsd3.[01]* | freebsdelf3.[01]*)
  13719. shlibpath_overrides_runpath=yes
  13720. hardcode_into_libs=yes
  13721. ;;
  13722. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13723. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13724. shlibpath_overrides_runpath=no
  13725. hardcode_into_libs=yes
  13726. ;;
  13727. *) # from 4.6 on, and DragonFly
  13728. shlibpath_overrides_runpath=yes
  13729. hardcode_into_libs=yes
  13730. ;;
  13731. esac
  13732. ;;
  13733. haiku*)
  13734. version_type=linux # correct to gnu/linux during the next big refactor
  13735. need_lib_prefix=no
  13736. need_version=no
  13737. dynamic_linker="$host_os runtime_loader"
  13738. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13739. soname_spec='$libname$release$shared_ext$major'
  13740. shlibpath_var=LIBRARY_PATH
  13741. shlibpath_overrides_runpath=no
  13742. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13743. hardcode_into_libs=yes
  13744. ;;
  13745. hpux9* | hpux10* | hpux11*)
  13746. # Give a soname corresponding to the major version so that dld.sl refuses to
  13747. # link against other versions.
  13748. version_type=sunos
  13749. need_lib_prefix=no
  13750. need_version=no
  13751. case $host_cpu in
  13752. ia64*)
  13753. shrext_cmds='.so'
  13754. hardcode_into_libs=yes
  13755. dynamic_linker="$host_os dld.so"
  13756. shlibpath_var=LD_LIBRARY_PATH
  13757. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13758. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13759. soname_spec='$libname$release$shared_ext$major'
  13760. if test 32 = "$HPUX_IA64_MODE"; then
  13761. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13762. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  13763. else
  13764. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13765. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  13766. fi
  13767. ;;
  13768. hppa*64*)
  13769. shrext_cmds='.sl'
  13770. hardcode_into_libs=yes
  13771. dynamic_linker="$host_os dld.sl"
  13772. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13773. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13774. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13775. soname_spec='$libname$release$shared_ext$major'
  13776. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13777. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13778. ;;
  13779. *)
  13780. shrext_cmds='.sl'
  13781. dynamic_linker="$host_os dld.sl"
  13782. shlibpath_var=SHLIB_PATH
  13783. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13784. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13785. soname_spec='$libname$release$shared_ext$major'
  13786. ;;
  13787. esac
  13788. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13789. postinstall_cmds='chmod 555 $lib'
  13790. # or fails outright, so override atomically:
  13791. install_override_mode=555
  13792. ;;
  13793. interix[3-9]*)
  13794. version_type=linux # correct to gnu/linux during the next big refactor
  13795. need_lib_prefix=no
  13796. need_version=no
  13797. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13798. soname_spec='$libname$release$shared_ext$major'
  13799. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13800. shlibpath_var=LD_LIBRARY_PATH
  13801. shlibpath_overrides_runpath=no
  13802. hardcode_into_libs=yes
  13803. ;;
  13804. irix5* | irix6* | nonstopux*)
  13805. case $host_os in
  13806. nonstopux*) version_type=nonstopux ;;
  13807. *)
  13808. if test yes = "$lt_cv_prog_gnu_ld"; then
  13809. version_type=linux # correct to gnu/linux during the next big refactor
  13810. else
  13811. version_type=irix
  13812. fi ;;
  13813. esac
  13814. need_lib_prefix=no
  13815. need_version=no
  13816. soname_spec='$libname$release$shared_ext$major'
  13817. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  13818. case $host_os in
  13819. irix5* | nonstopux*)
  13820. libsuff= shlibsuff=
  13821. ;;
  13822. *)
  13823. case $LD in # libtool.m4 will add one of these switches to LD
  13824. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13825. libsuff= shlibsuff= libmagic=32-bit;;
  13826. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13827. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13828. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13829. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13830. *) libsuff= shlibsuff= libmagic=never-match;;
  13831. esac
  13832. ;;
  13833. esac
  13834. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13835. shlibpath_overrides_runpath=no
  13836. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  13837. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  13838. hardcode_into_libs=yes
  13839. ;;
  13840. # No shared lib support for Linux oldld, aout, or coff.
  13841. linux*oldld* | linux*aout* | linux*coff*)
  13842. dynamic_linker=no
  13843. ;;
  13844. linux*android*)
  13845. version_type=none # Android doesn't support versioned libraries.
  13846. need_lib_prefix=no
  13847. need_version=no
  13848. library_names_spec='$libname$release$shared_ext'
  13849. soname_spec='$libname$release$shared_ext'
  13850. finish_cmds=
  13851. shlibpath_var=LD_LIBRARY_PATH
  13852. shlibpath_overrides_runpath=yes
  13853. # This implies no fast_install, which is unacceptable.
  13854. # Some rework will be needed to allow for fast_install
  13855. # before this can be enabled.
  13856. hardcode_into_libs=yes
  13857. dynamic_linker='Android linker'
  13858. # Don't embed -rpath directories since the linker doesn't support them.
  13859. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13860. ;;
  13861. # This must be glibc/ELF.
  13862. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13863. version_type=linux # correct to gnu/linux during the next big refactor
  13864. need_lib_prefix=no
  13865. need_version=no
  13866. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13867. soname_spec='$libname$release$shared_ext$major'
  13868. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13869. shlibpath_var=LD_LIBRARY_PATH
  13870. shlibpath_overrides_runpath=no
  13871. # Some binutils ld are patched to set DT_RUNPATH
  13872. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13873. $as_echo_n "(cached) " >&6
  13874. else
  13875. lt_cv_shlibpath_overrides_runpath=no
  13876. save_LDFLAGS=$LDFLAGS
  13877. save_libdir=$libdir
  13878. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13879. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13880. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13881. /* end confdefs.h. */
  13882. int
  13883. main ()
  13884. {
  13885. ;
  13886. return 0;
  13887. }
  13888. _ACEOF
  13889. if ac_fn_cxx_try_link "$LINENO"; then :
  13890. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13891. lt_cv_shlibpath_overrides_runpath=yes
  13892. fi
  13893. fi
  13894. rm -f core conftest.err conftest.$ac_objext \
  13895. conftest$ac_exeext conftest.$ac_ext
  13896. LDFLAGS=$save_LDFLAGS
  13897. libdir=$save_libdir
  13898. fi
  13899. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13900. # This implies no fast_install, which is unacceptable.
  13901. # Some rework will be needed to allow for fast_install
  13902. # before this can be enabled.
  13903. hardcode_into_libs=yes
  13904. # Ideally, we could use ldconfig to report *all* directores which are
  13905. # searched for libraries, however this is still not possible. Aside from not
  13906. # being certain /sbin/ldconfig is available, command
  13907. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  13908. # even though it is searched at run-time. Try to do the best guess by
  13909. # appending ld.so.conf contents (and includes) to the search path.
  13910. if test -f /etc/ld.so.conf; then
  13911. 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' ' '`
  13912. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13913. fi
  13914. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13915. # powerpc, because MkLinux only supported shared libraries with the
  13916. # GNU dynamic linker. Since this was broken with cross compilers,
  13917. # most powerpc-linux boxes support dynamic linking these days and
  13918. # people can always --disable-shared, the test was removed, and we
  13919. # assume the GNU/Linux dynamic linker is in use.
  13920. dynamic_linker='GNU/Linux ld.so'
  13921. ;;
  13922. netbsdelf*-gnu)
  13923. version_type=linux
  13924. need_lib_prefix=no
  13925. need_version=no
  13926. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13927. soname_spec='${libname}${release}${shared_ext}$major'
  13928. shlibpath_var=LD_LIBRARY_PATH
  13929. shlibpath_overrides_runpath=no
  13930. hardcode_into_libs=yes
  13931. dynamic_linker='NetBSD ld.elf_so'
  13932. ;;
  13933. netbsd*)
  13934. version_type=sunos
  13935. need_lib_prefix=no
  13936. need_version=no
  13937. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13938. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13939. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13940. dynamic_linker='NetBSD (a.out) ld.so'
  13941. else
  13942. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13943. soname_spec='$libname$release$shared_ext$major'
  13944. dynamic_linker='NetBSD ld.elf_so'
  13945. fi
  13946. shlibpath_var=LD_LIBRARY_PATH
  13947. shlibpath_overrides_runpath=yes
  13948. hardcode_into_libs=yes
  13949. ;;
  13950. newsos6)
  13951. version_type=linux # correct to gnu/linux during the next big refactor
  13952. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13953. shlibpath_var=LD_LIBRARY_PATH
  13954. shlibpath_overrides_runpath=yes
  13955. ;;
  13956. *nto* | *qnx*)
  13957. version_type=qnx
  13958. need_lib_prefix=no
  13959. need_version=no
  13960. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13961. soname_spec='$libname$release$shared_ext$major'
  13962. shlibpath_var=LD_LIBRARY_PATH
  13963. shlibpath_overrides_runpath=no
  13964. hardcode_into_libs=yes
  13965. dynamic_linker='ldqnx.so'
  13966. ;;
  13967. openbsd* | bitrig*)
  13968. version_type=sunos
  13969. sys_lib_dlsearch_path_spec=/usr/lib
  13970. need_lib_prefix=no
  13971. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  13972. need_version=no
  13973. else
  13974. need_version=yes
  13975. fi
  13976. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13977. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13978. shlibpath_var=LD_LIBRARY_PATH
  13979. shlibpath_overrides_runpath=yes
  13980. ;;
  13981. os2*)
  13982. libname_spec='$name'
  13983. version_type=windows
  13984. shrext_cmds=.dll
  13985. need_version=no
  13986. need_lib_prefix=no
  13987. # OS/2 can only load a DLL with a base name of 8 characters or less.
  13988. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  13989. v=$($ECHO $release$versuffix | tr -d .-);
  13990. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  13991. $ECHO $n$v`$shared_ext'
  13992. library_names_spec='${libname}_dll.$libext'
  13993. dynamic_linker='OS/2 ld.exe'
  13994. shlibpath_var=BEGINLIBPATH
  13995. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  13996. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13997. postinstall_cmds='base_file=`basename \$file`~
  13998. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  13999. dldir=$destdir/`dirname \$dlpath`~
  14000. test -d \$dldir || mkdir -p \$dldir~
  14001. $install_prog $dir/$dlname \$dldir/$dlname~
  14002. chmod a+x \$dldir/$dlname~
  14003. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14004. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14005. fi'
  14006. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  14007. dlpath=$dir/\$dldll~
  14008. $RM \$dlpath'
  14009. ;;
  14010. osf3* | osf4* | osf5*)
  14011. version_type=osf
  14012. need_lib_prefix=no
  14013. need_version=no
  14014. soname_spec='$libname$release$shared_ext$major'
  14015. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14016. shlibpath_var=LD_LIBRARY_PATH
  14017. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  14018. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14019. ;;
  14020. rdos*)
  14021. dynamic_linker=no
  14022. ;;
  14023. solaris*)
  14024. version_type=linux # correct to gnu/linux during the next big refactor
  14025. need_lib_prefix=no
  14026. need_version=no
  14027. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14028. soname_spec='$libname$release$shared_ext$major'
  14029. shlibpath_var=LD_LIBRARY_PATH
  14030. shlibpath_overrides_runpath=yes
  14031. hardcode_into_libs=yes
  14032. # ldd complains unless libraries are executable
  14033. postinstall_cmds='chmod +x $lib'
  14034. ;;
  14035. sunos4*)
  14036. version_type=sunos
  14037. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14038. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  14039. shlibpath_var=LD_LIBRARY_PATH
  14040. shlibpath_overrides_runpath=yes
  14041. if test yes = "$with_gnu_ld"; then
  14042. need_lib_prefix=no
  14043. fi
  14044. need_version=yes
  14045. ;;
  14046. sysv4 | sysv4.3*)
  14047. version_type=linux # correct to gnu/linux during the next big refactor
  14048. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14049. soname_spec='$libname$release$shared_ext$major'
  14050. shlibpath_var=LD_LIBRARY_PATH
  14051. case $host_vendor in
  14052. sni)
  14053. shlibpath_overrides_runpath=no
  14054. need_lib_prefix=no
  14055. runpath_var=LD_RUN_PATH
  14056. ;;
  14057. siemens)
  14058. need_lib_prefix=no
  14059. ;;
  14060. motorola)
  14061. need_lib_prefix=no
  14062. need_version=no
  14063. shlibpath_overrides_runpath=no
  14064. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  14065. ;;
  14066. esac
  14067. ;;
  14068. sysv4*MP*)
  14069. if test -d /usr/nec; then
  14070. version_type=linux # correct to gnu/linux during the next big refactor
  14071. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  14072. soname_spec='$libname$shared_ext.$major'
  14073. shlibpath_var=LD_LIBRARY_PATH
  14074. fi
  14075. ;;
  14076. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  14077. version_type=sco
  14078. need_lib_prefix=no
  14079. need_version=no
  14080. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  14081. soname_spec='$libname$release$shared_ext$major'
  14082. shlibpath_var=LD_LIBRARY_PATH
  14083. shlibpath_overrides_runpath=yes
  14084. hardcode_into_libs=yes
  14085. if test yes = "$with_gnu_ld"; then
  14086. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  14087. else
  14088. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  14089. case $host_os in
  14090. sco3.2v5*)
  14091. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  14092. ;;
  14093. esac
  14094. fi
  14095. sys_lib_dlsearch_path_spec='/usr/lib'
  14096. ;;
  14097. tpf*)
  14098. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  14099. version_type=linux # correct to gnu/linux during the next big refactor
  14100. need_lib_prefix=no
  14101. need_version=no
  14102. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14103. shlibpath_var=LD_LIBRARY_PATH
  14104. shlibpath_overrides_runpath=no
  14105. hardcode_into_libs=yes
  14106. ;;
  14107. uts4*)
  14108. version_type=linux # correct to gnu/linux during the next big refactor
  14109. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14110. soname_spec='$libname$release$shared_ext$major'
  14111. shlibpath_var=LD_LIBRARY_PATH
  14112. ;;
  14113. *)
  14114. dynamic_linker=no
  14115. ;;
  14116. esac
  14117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  14118. $as_echo "$dynamic_linker" >&6; }
  14119. test no = "$dynamic_linker" && can_build_shared=no
  14120. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  14121. if test yes = "$GCC"; then
  14122. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  14123. fi
  14124. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  14125. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  14126. fi
  14127. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  14128. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  14129. fi
  14130. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  14131. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  14132. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  14133. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  14134. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  14135. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  14136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  14137. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  14138. hardcode_action_CXX=
  14139. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  14140. test -n "$runpath_var_CXX" ||
  14141. test yes = "$hardcode_automatic_CXX"; then
  14142. # We can hardcode non-existent directories.
  14143. if test no != "$hardcode_direct_CXX" &&
  14144. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  14145. # have to relink, otherwise we might link with an installed library
  14146. # when we should be linking with a yet-to-be-installed one
  14147. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  14148. test no != "$hardcode_minus_L_CXX"; then
  14149. # Linking always hardcodes the temporary library directory.
  14150. hardcode_action_CXX=relink
  14151. else
  14152. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  14153. hardcode_action_CXX=immediate
  14154. fi
  14155. else
  14156. # We cannot hardcode anything, or else we can only hardcode existing
  14157. # directories.
  14158. hardcode_action_CXX=unsupported
  14159. fi
  14160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  14161. $as_echo "$hardcode_action_CXX" >&6; }
  14162. if test relink = "$hardcode_action_CXX" ||
  14163. test yes = "$inherit_rpath_CXX"; then
  14164. # Fast installation is not supported
  14165. enable_fast_install=no
  14166. elif test yes = "$shlibpath_overrides_runpath" ||
  14167. test no = "$enable_shared"; then
  14168. # Fast installation is not necessary
  14169. enable_fast_install=needless
  14170. fi
  14171. fi # test -n "$compiler"
  14172. CC=$lt_save_CC
  14173. CFLAGS=$lt_save_CFLAGS
  14174. LDCXX=$LD
  14175. LD=$lt_save_LD
  14176. GCC=$lt_save_GCC
  14177. with_gnu_ld=$lt_save_with_gnu_ld
  14178. lt_cv_path_LDCXX=$lt_cv_path_LD
  14179. lt_cv_path_LD=$lt_save_path_LD
  14180. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  14181. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  14182. fi # test yes != "$_lt_caught_CXX_error"
  14183. ac_ext=c
  14184. ac_cpp='$CPP $CPPFLAGS'
  14185. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14186. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14187. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14188. ac_config_commands="$ac_config_commands libtool"
  14189. # Only expand once:
  14190. LT_DLLOADERS=
  14191. ac_ext=c
  14192. ac_cpp='$CPP $CPPFLAGS'
  14193. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14194. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14195. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14196. lt_dlload_save_LIBS=$LIBS
  14197. LIBADD_DLOPEN=
  14198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
  14199. $as_echo_n "checking for library containing dlopen... " >&6; }
  14200. if ${ac_cv_search_dlopen+:} false; then :
  14201. $as_echo_n "(cached) " >&6
  14202. else
  14203. ac_func_search_save_LIBS=$LIBS
  14204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14205. /* end confdefs.h. */
  14206. /* Override any GCC internal prototype to avoid an error.
  14207. Use char because int might match the return type of a GCC
  14208. builtin and then its argument prototype would still apply. */
  14209. #ifdef __cplusplus
  14210. extern "C"
  14211. #endif
  14212. char dlopen ();
  14213. int
  14214. main ()
  14215. {
  14216. return dlopen ();
  14217. ;
  14218. return 0;
  14219. }
  14220. _ACEOF
  14221. for ac_lib in '' dl; do
  14222. if test -z "$ac_lib"; then
  14223. ac_res="none required"
  14224. else
  14225. ac_res=-l$ac_lib
  14226. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  14227. fi
  14228. if ac_fn_c_try_link "$LINENO"; then :
  14229. ac_cv_search_dlopen=$ac_res
  14230. fi
  14231. rm -f core conftest.err conftest.$ac_objext \
  14232. conftest$ac_exeext
  14233. if ${ac_cv_search_dlopen+:} false; then :
  14234. break
  14235. fi
  14236. done
  14237. if ${ac_cv_search_dlopen+:} false; then :
  14238. else
  14239. ac_cv_search_dlopen=no
  14240. fi
  14241. rm conftest.$ac_ext
  14242. LIBS=$ac_func_search_save_LIBS
  14243. fi
  14244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
  14245. $as_echo "$ac_cv_search_dlopen" >&6; }
  14246. ac_res=$ac_cv_search_dlopen
  14247. if test "$ac_res" != no; then :
  14248. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  14249. $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
  14250. if test "$ac_cv_search_dlopen" != "none required"; then
  14251. LIBADD_DLOPEN=-ldl
  14252. fi
  14253. libltdl_cv_lib_dl_dlopen=yes
  14254. LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
  14255. else
  14256. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14257. /* end confdefs.h. */
  14258. #if HAVE_DLFCN_H
  14259. # include <dlfcn.h>
  14260. #endif
  14261. int
  14262. main ()
  14263. {
  14264. dlopen(0, 0);
  14265. ;
  14266. return 0;
  14267. }
  14268. _ACEOF
  14269. if ac_fn_c_try_link "$LINENO"; then :
  14270. $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
  14271. libltdl_cv_func_dlopen=yes
  14272. LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
  14273. else
  14274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  14275. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  14276. if ${ac_cv_lib_svld_dlopen+:} false; then :
  14277. $as_echo_n "(cached) " >&6
  14278. else
  14279. ac_check_lib_save_LIBS=$LIBS
  14280. LIBS="-lsvld $LIBS"
  14281. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14282. /* end confdefs.h. */
  14283. /* Override any GCC internal prototype to avoid an error.
  14284. Use char because int might match the return type of a GCC
  14285. builtin and then its argument prototype would still apply. */
  14286. #ifdef __cplusplus
  14287. extern "C"
  14288. #endif
  14289. char dlopen ();
  14290. int
  14291. main ()
  14292. {
  14293. return dlopen ();
  14294. ;
  14295. return 0;
  14296. }
  14297. _ACEOF
  14298. if ac_fn_c_try_link "$LINENO"; then :
  14299. ac_cv_lib_svld_dlopen=yes
  14300. else
  14301. ac_cv_lib_svld_dlopen=no
  14302. fi
  14303. rm -f core conftest.err conftest.$ac_objext \
  14304. conftest$ac_exeext conftest.$ac_ext
  14305. LIBS=$ac_check_lib_save_LIBS
  14306. fi
  14307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  14308. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  14309. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  14310. $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
  14311. LIBADD_DLOPEN=-lsvld libltdl_cv_func_dlopen=yes
  14312. LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
  14313. fi
  14314. fi
  14315. rm -f core conftest.err conftest.$ac_objext \
  14316. conftest$ac_exeext conftest.$ac_ext
  14317. fi
  14318. if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"
  14319. then
  14320. lt_save_LIBS=$LIBS
  14321. LIBS="$LIBS $LIBADD_DLOPEN"
  14322. for ac_func in dlerror
  14323. do :
  14324. ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
  14325. if test "x$ac_cv_func_dlerror" = xyes; then :
  14326. cat >>confdefs.h <<_ACEOF
  14327. #define HAVE_DLERROR 1
  14328. _ACEOF
  14329. fi
  14330. done
  14331. LIBS=$lt_save_LIBS
  14332. fi
  14333. LIBADD_SHL_LOAD=
  14334. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  14335. if test "x$ac_cv_func_shl_load" = xyes; then :
  14336. $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
  14337. LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
  14338. else
  14339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  14340. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  14341. if ${ac_cv_lib_dld_shl_load+:} false; then :
  14342. $as_echo_n "(cached) " >&6
  14343. else
  14344. ac_check_lib_save_LIBS=$LIBS
  14345. LIBS="-ldld $LIBS"
  14346. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14347. /* end confdefs.h. */
  14348. /* Override any GCC internal prototype to avoid an error.
  14349. Use char because int might match the return type of a GCC
  14350. builtin and then its argument prototype would still apply. */
  14351. #ifdef __cplusplus
  14352. extern "C"
  14353. #endif
  14354. char shl_load ();
  14355. int
  14356. main ()
  14357. {
  14358. return shl_load ();
  14359. ;
  14360. return 0;
  14361. }
  14362. _ACEOF
  14363. if ac_fn_c_try_link "$LINENO"; then :
  14364. ac_cv_lib_dld_shl_load=yes
  14365. else
  14366. ac_cv_lib_dld_shl_load=no
  14367. fi
  14368. rm -f core conftest.err conftest.$ac_objext \
  14369. conftest$ac_exeext conftest.$ac_ext
  14370. LIBS=$ac_check_lib_save_LIBS
  14371. fi
  14372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  14373. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  14374. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  14375. $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
  14376. LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
  14377. LIBADD_SHL_LOAD=-ldld
  14378. fi
  14379. fi
  14380. case $host_os in
  14381. darwin[1567].*)
  14382. # We only want this for pre-Mac OS X 10.4.
  14383. ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
  14384. if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
  14385. $as_echo "#define HAVE_DYLD 1" >>confdefs.h
  14386. LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
  14387. fi
  14388. ;;
  14389. beos*)
  14390. LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
  14391. ;;
  14392. cygwin* | mingw* | pw32*)
  14393. ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
  14394. "
  14395. if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
  14396. ac_have_decl=1
  14397. else
  14398. ac_have_decl=0
  14399. fi
  14400. cat >>confdefs.h <<_ACEOF
  14401. #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
  14402. _ACEOF
  14403. LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
  14404. ;;
  14405. esac
  14406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  14407. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  14408. if ${ac_cv_lib_dld_dld_link+:} false; then :
  14409. $as_echo_n "(cached) " >&6
  14410. else
  14411. ac_check_lib_save_LIBS=$LIBS
  14412. LIBS="-ldld $LIBS"
  14413. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14414. /* end confdefs.h. */
  14415. /* Override any GCC internal prototype to avoid an error.
  14416. Use char because int might match the return type of a GCC
  14417. builtin and then its argument prototype would still apply. */
  14418. #ifdef __cplusplus
  14419. extern "C"
  14420. #endif
  14421. char dld_link ();
  14422. int
  14423. main ()
  14424. {
  14425. return dld_link ();
  14426. ;
  14427. return 0;
  14428. }
  14429. _ACEOF
  14430. if ac_fn_c_try_link "$LINENO"; then :
  14431. ac_cv_lib_dld_dld_link=yes
  14432. else
  14433. ac_cv_lib_dld_dld_link=no
  14434. fi
  14435. rm -f core conftest.err conftest.$ac_objext \
  14436. conftest$ac_exeext conftest.$ac_ext
  14437. LIBS=$ac_check_lib_save_LIBS
  14438. fi
  14439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  14440. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  14441. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  14442. $as_echo "#define HAVE_DLD 1" >>confdefs.h
  14443. LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
  14444. fi
  14445. LT_DLPREOPEN=
  14446. if test -n "$LT_DLLOADERS"
  14447. then
  14448. for lt_loader in $LT_DLLOADERS; do
  14449. LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
  14450. done
  14451. $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
  14452. fi
  14453. LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
  14454. LIBS=$lt_dlload_save_LIBS
  14455. ac_ext=c
  14456. ac_cpp='$CPP $CPPFLAGS'
  14457. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14458. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14459. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14460. # Check whether --with-pkgconfigdir was given.
  14461. if test "${with_pkgconfigdir+set}" = set; then :
  14462. withval=$with_pkgconfigdir;
  14463. else
  14464. with_pkgconfigdir='${libdir}/pkgconfig'
  14465. fi
  14466. pkgconfigdir=$with_pkgconfigdir
  14467. # Check OS and set library and compile flags accordingly
  14468. case "${host_os}" in
  14469. *nto-qnx*)
  14470. HOSTOS='QNX'
  14471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -D_QNX_SOURCE" >&5
  14472. $as_echo_n "checking whether C compiler accepts -D_QNX_SOURCE... " >&6; }
  14473. if ${ax_cv_check_cflags___________Wall__Werror_______D_QNX_SOURCE+:} false; then :
  14474. $as_echo_n "(cached) " >&6
  14475. else
  14476. ax_check_save_flags=$CFLAGS
  14477. CFLAGS="$CFLAGS
  14478. -Wall -Werror
  14479. -D_QNX_SOURCE"
  14480. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14481. /* end confdefs.h. */
  14482. int
  14483. main ()
  14484. {
  14485. ;
  14486. return 0;
  14487. }
  14488. _ACEOF
  14489. if ac_fn_c_try_compile "$LINENO"; then :
  14490. ax_cv_check_cflags___________Wall__Werror_______D_QNX_SOURCE=yes
  14491. else
  14492. ax_cv_check_cflags___________Wall__Werror_______D_QNX_SOURCE=no
  14493. fi
  14494. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14495. CFLAGS=$ax_check_save_flags
  14496. fi
  14497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___________Wall__Werror_______D_QNX_SOURCE" >&5
  14498. $as_echo "$ax_cv_check_cflags___________Wall__Werror_______D_QNX_SOURCE" >&6; }
  14499. if test "x$ax_cv_check_cflags___________Wall__Werror_______D_QNX_SOURCE" = xyes; then :
  14500. EXTRA_CFLAGS="$EXTRA_CFLAGS -D_QNX_SOURCE"
  14501. else
  14502. if test x != xrequired; then :
  14503. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Optional CFLAG \"-D_QNX_SOURCE\" not supported by your compiler, continuing." >&5
  14504. $as_echo "$as_me: WARNING: Optional CFLAG \"-D_QNX_SOURCE\" not supported by your compiler, continuing." >&2;}
  14505. else
  14506. as_fn_error $? "Required CFLAG \"-D_QNX_SOURCE\" not supported by your compiler, aborting." "$LINENO" 5
  14507. fi
  14508. fi
  14509. LIBSOCKET_LDFLAGS="-lsocket"
  14510. ;;
  14511. *bsd* | *BSD*)
  14512. HOSTOS='BSD'
  14513. LIBSOCKET_LDFLAGS=""
  14514. ;;
  14515. *)
  14516. #Assume linux
  14517. HOSTOS='Linux'
  14518. LIBSOCKET_LDFLAGS=""
  14519. ;;
  14520. esac
  14521. if test x"$HOSTOS" = xLinux; then
  14522. HOSTOS_LINUX_TRUE=
  14523. HOSTOS_LINUX_FALSE='#'
  14524. else
  14525. HOSTOS_LINUX_TRUE='#'
  14526. HOSTOS_LINUX_FALSE=
  14527. fi
  14528. # runstatedir is only defined in the yet unreleased Autoconf 2.70
  14529. # Check whether --with-runstatedir was given.
  14530. if test "${with_runstatedir+set}" = set; then :
  14531. withval=$with_runstatedir; runstatedir="$withval"
  14532. fi
  14533. if test -z "$runstatedir"; then :
  14534. runstatedir="${localstatedir}/run"
  14535. fi
  14536. _lcl_receval="$sysconfdir"
  14537. SYSCONFDIR=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  14538. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  14539. _lcl_receval_old=''
  14540. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  14541. _lcl_receval_old="$_lcl_receval"
  14542. eval _lcl_receval="\"$_lcl_receval\""
  14543. done
  14544. echo "$_lcl_receval")`
  14545. cat >>confdefs.h <<_ACEOF
  14546. #define SYSCONFDIR "$SYSCONFDIR"
  14547. _ACEOF
  14548. # Check whether --with-userstatedir was given.
  14549. if test "${with_userstatedir+set}" = set; then :
  14550. withval=$with_userstatedir;
  14551. else
  14552. with_userstatedir=.local/share
  14553. fi
  14554. userstatedir=$with_userstatedir
  14555. # Check whether --with-sysusersdir was given.
  14556. if test "${with_sysusersdir+set}" = set; then :
  14557. withval=$with_sysusersdir;
  14558. else
  14559. with_sysusersdir="${sysconfdir}/sysusers.d"
  14560. fi
  14561. sysusersdir=$with_sysusersdir
  14562. # Check whether --with-tmpfilesdir was given.
  14563. if test "${with_tmpfilesdir+set}" = set; then :
  14564. withval=$with_tmpfilesdir;
  14565. else
  14566. with_tmpfilesdir="${sysconfdir}/tmpfiles.d"
  14567. fi
  14568. tmpfilesdir=$with_tmpfilesdir
  14569. # Check whether --enable-unit was given.
  14570. if test "${enable_unit+set}" = set; then :
  14571. enableval=$enable_unit;
  14572. else
  14573. enable_unit=no
  14574. fi
  14575. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  14576. if test -n "$ac_tool_prefix"; then
  14577. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  14578. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  14579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14580. $as_echo_n "checking for $ac_word... " >&6; }
  14581. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  14582. $as_echo_n "(cached) " >&6
  14583. else
  14584. case $PKG_CONFIG in
  14585. [\\/]* | ?:[\\/]*)
  14586. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  14587. ;;
  14588. *)
  14589. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14590. for as_dir in $PATH
  14591. do
  14592. IFS=$as_save_IFS
  14593. test -z "$as_dir" && as_dir=.
  14594. for ac_exec_ext in '' $ac_executable_extensions; do
  14595. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14596. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14597. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14598. break 2
  14599. fi
  14600. done
  14601. done
  14602. IFS=$as_save_IFS
  14603. ;;
  14604. esac
  14605. fi
  14606. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  14607. if test -n "$PKG_CONFIG"; then
  14608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  14609. $as_echo "$PKG_CONFIG" >&6; }
  14610. else
  14611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14612. $as_echo "no" >&6; }
  14613. fi
  14614. fi
  14615. if test -z "$ac_cv_path_PKG_CONFIG"; then
  14616. ac_pt_PKG_CONFIG=$PKG_CONFIG
  14617. # Extract the first word of "pkg-config", so it can be a program name with args.
  14618. set dummy pkg-config; ac_word=$2
  14619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14620. $as_echo_n "checking for $ac_word... " >&6; }
  14621. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  14622. $as_echo_n "(cached) " >&6
  14623. else
  14624. case $ac_pt_PKG_CONFIG in
  14625. [\\/]* | ?:[\\/]*)
  14626. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  14627. ;;
  14628. *)
  14629. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14630. for as_dir in $PATH
  14631. do
  14632. IFS=$as_save_IFS
  14633. test -z "$as_dir" && as_dir=.
  14634. for ac_exec_ext in '' $ac_executable_extensions; do
  14635. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14636. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14637. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14638. break 2
  14639. fi
  14640. done
  14641. done
  14642. IFS=$as_save_IFS
  14643. ;;
  14644. esac
  14645. fi
  14646. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  14647. if test -n "$ac_pt_PKG_CONFIG"; then
  14648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  14649. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  14650. else
  14651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14652. $as_echo "no" >&6; }
  14653. fi
  14654. if test "x$ac_pt_PKG_CONFIG" = x; then
  14655. PKG_CONFIG=""
  14656. else
  14657. case $cross_compiling:$ac_tool_warned in
  14658. yes:)
  14659. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14660. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14661. ac_tool_warned=yes ;;
  14662. esac
  14663. PKG_CONFIG=$ac_pt_PKG_CONFIG
  14664. fi
  14665. else
  14666. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  14667. fi
  14668. fi
  14669. if test -n "$PKG_CONFIG"; then
  14670. _pkg_min_version=0.9.0
  14671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  14672. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  14673. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  14674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14675. $as_echo "yes" >&6; }
  14676. else
  14677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14678. $as_echo "no" >&6; }
  14679. PKG_CONFIG=""
  14680. fi
  14681. fi
  14682. if test "x$enable_unit" != xno; then :
  14683. pkg_failed=no
  14684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMOCKA" >&5
  14685. $as_echo_n "checking for CMOCKA... " >&6; }
  14686. if test -n "$CMOCKA_CFLAGS"; then
  14687. pkg_cv_CMOCKA_CFLAGS="$CMOCKA_CFLAGS"
  14688. elif test -n "$PKG_CONFIG"; then
  14689. if test -n "$PKG_CONFIG" && \
  14690. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.0\""; } >&5
  14691. ($PKG_CONFIG --exists --print-errors "cmocka >= 1.0") 2>&5
  14692. ac_status=$?
  14693. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14694. test $ac_status = 0; }; then
  14695. pkg_cv_CMOCKA_CFLAGS=`$PKG_CONFIG --cflags "cmocka >= 1.0" 2>/dev/null`
  14696. test "x$?" != "x0" && pkg_failed=yes
  14697. else
  14698. pkg_failed=yes
  14699. fi
  14700. else
  14701. pkg_failed=untried
  14702. fi
  14703. if test -n "$CMOCKA_LIBS"; then
  14704. pkg_cv_CMOCKA_LIBS="$CMOCKA_LIBS"
  14705. elif test -n "$PKG_CONFIG"; then
  14706. if test -n "$PKG_CONFIG" && \
  14707. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cmocka >= 1.0\""; } >&5
  14708. ($PKG_CONFIG --exists --print-errors "cmocka >= 1.0") 2>&5
  14709. ac_status=$?
  14710. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14711. test $ac_status = 0; }; then
  14712. pkg_cv_CMOCKA_LIBS=`$PKG_CONFIG --libs "cmocka >= 1.0" 2>/dev/null`
  14713. test "x$?" != "x0" && pkg_failed=yes
  14714. else
  14715. pkg_failed=yes
  14716. fi
  14717. else
  14718. pkg_failed=untried
  14719. fi
  14720. if test $pkg_failed = yes; then
  14721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14722. $as_echo "no" >&6; }
  14723. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  14724. _pkg_short_errors_supported=yes
  14725. else
  14726. _pkg_short_errors_supported=no
  14727. fi
  14728. if test $_pkg_short_errors_supported = yes; then
  14729. CMOCKA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cmocka >= 1.0" 2>&1`
  14730. else
  14731. CMOCKA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cmocka >= 1.0" 2>&1`
  14732. fi
  14733. # Put the nasty error message in config.log where it belongs
  14734. echo "$CMOCKA_PKG_ERRORS" >&5
  14735. as_fn_error $? "Unit test enabled, but cmocka missing or version requirements not met. cmocka version must be >= 1.0" "$LINENO" 5
  14736. elif test $pkg_failed = untried; then
  14737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14738. $as_echo "no" >&6; }
  14739. as_fn_error $? "Unit test enabled, but cmocka missing or version requirements not met. cmocka version must be >= 1.0" "$LINENO" 5
  14740. else
  14741. CMOCKA_CFLAGS=$pkg_cv_CMOCKA_CFLAGS
  14742. CMOCKA_LIBS=$pkg_cv_CMOCKA_LIBS
  14743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14744. $as_echo "yes" >&6; }
  14745. fi
  14746. fi
  14747. if test "x$enable_unit" != xno; then
  14748. UNIT_TRUE=
  14749. UNIT_FALSE='#'
  14750. else
  14751. UNIT_TRUE='#'
  14752. UNIT_FALSE=
  14753. fi
  14754. if test "x$enable_unit" != xno; then :
  14755. $as_echo "#define UNIT 1" >>confdefs.h
  14756. fi
  14757. # Check whether --enable-esys was given.
  14758. if test "${enable_esys+set}" = set; then :
  14759. enableval=$enable_esys;
  14760. else
  14761. enable_esys=yes
  14762. fi
  14763. if test "x$enable_esys" = "xyes"; then
  14764. ESYS_TRUE=
  14765. ESYS_FALSE='#'
  14766. else
  14767. ESYS_TRUE='#'
  14768. ESYS_FALSE=
  14769. fi
  14770. ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
  14771. if test "x$ac_cv_func_strndup" = xyes; then :
  14772. else
  14773. as_fn_error $? "strndup function not found" "$LINENO" 5
  14774. fi
  14775. for ac_func in reallocarray
  14776. do :
  14777. ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
  14778. if test "x$ac_cv_func_reallocarray" = xyes; then :
  14779. cat >>confdefs.h <<_ACEOF
  14780. #define HAVE_REALLOCARRAY 1
  14781. _ACEOF
  14782. fi
  14783. done
  14784. # Check whether --enable-fapi was given.
  14785. if test "${enable_fapi+set}" = set; then :
  14786. enableval=$enable_fapi; enable_fapi=$enableval
  14787. else
  14788. enable_fapi=yes
  14789. fi
  14790. if test "x$enable_fapi" = "xyes"; then
  14791. FAPI_TRUE=
  14792. FAPI_FALSE='#'
  14793. else
  14794. FAPI_TRUE='#'
  14795. FAPI_FALSE=
  14796. fi
  14797. # Check whether --enable-fapi-async-tests was given.
  14798. if test "${enable_fapi_async_tests+set}" = set; then :
  14799. enableval=$enable_fapi_async_tests;
  14800. else
  14801. enable_fapi_async_tests=no
  14802. fi
  14803. if test "x$enable_fapi_async_tests" = "xyes"; then :
  14804. $as_echo "#define TEST_FAPI_ASYNC 1" >>confdefs.h
  14805. fi
  14806. if test "x$enable_fapi_async_tests" = "xyes"; then :
  14807. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"FAPI compiled with asynchronous spinning testing. NOT FOR PRODUCTION!\"" >&5
  14808. $as_echo "$as_me: WARNING: \"FAPI compiled with asynchronous spinning testing. NOT FOR PRODUCTION!\"" >&2;}
  14809. fi
  14810. # Check whether --with-crypto was given.
  14811. if test "${with_crypto+set}" = set; then :
  14812. withval=$with_crypto;
  14813. else
  14814. with_crypto=ossl
  14815. fi
  14816. if test "x$with_crypto" = "xossl"; then
  14817. ESYS_OSSL_TRUE=
  14818. ESYS_OSSL_FALSE='#'
  14819. else
  14820. ESYS_OSSL_TRUE='#'
  14821. ESYS_OSSL_FALSE=
  14822. fi
  14823. if test "x$with_crypto" = "xmbed"; then
  14824. ESYS_MBED_TRUE=
  14825. ESYS_MBED_FALSE='#'
  14826. else
  14827. ESYS_MBED_TRUE='#'
  14828. ESYS_MBED_FALSE=
  14829. fi
  14830. if test "x$enable_esys" = xyes; then :
  14831. if test "x$with_crypto" = xossl; then :
  14832. pkg_failed=no
  14833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO" >&5
  14834. $as_echo_n "checking for CRYPTO... " >&6; }
  14835. if test -n "$CRYPTO_CFLAGS"; then
  14836. pkg_cv_CRYPTO_CFLAGS="$CRYPTO_CFLAGS"
  14837. elif test -n "$PKG_CONFIG"; then
  14838. if test -n "$PKG_CONFIG" && \
  14839. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 1.1.0\""; } >&5
  14840. ($PKG_CONFIG --exists --print-errors "libcrypto >= 1.1.0") 2>&5
  14841. ac_status=$?
  14842. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14843. test $ac_status = 0; }; then
  14844. pkg_cv_CRYPTO_CFLAGS=`$PKG_CONFIG --cflags "libcrypto >= 1.1.0" 2>/dev/null`
  14845. test "x$?" != "x0" && pkg_failed=yes
  14846. else
  14847. pkg_failed=yes
  14848. fi
  14849. else
  14850. pkg_failed=untried
  14851. fi
  14852. if test -n "$CRYPTO_LIBS"; then
  14853. pkg_cv_CRYPTO_LIBS="$CRYPTO_LIBS"
  14854. elif test -n "$PKG_CONFIG"; then
  14855. if test -n "$PKG_CONFIG" && \
  14856. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 1.1.0\""; } >&5
  14857. ($PKG_CONFIG --exists --print-errors "libcrypto >= 1.1.0") 2>&5
  14858. ac_status=$?
  14859. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14860. test $ac_status = 0; }; then
  14861. pkg_cv_CRYPTO_LIBS=`$PKG_CONFIG --libs "libcrypto >= 1.1.0" 2>/dev/null`
  14862. test "x$?" != "x0" && pkg_failed=yes
  14863. else
  14864. pkg_failed=yes
  14865. fi
  14866. else
  14867. pkg_failed=untried
  14868. fi
  14869. if test $pkg_failed = yes; then
  14870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14871. $as_echo "no" >&6; }
  14872. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  14873. _pkg_short_errors_supported=yes
  14874. else
  14875. _pkg_short_errors_supported=no
  14876. fi
  14877. if test $_pkg_short_errors_supported = yes; then
  14878. CRYPTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcrypto >= 1.1.0" 2>&1`
  14879. else
  14880. CRYPTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcrypto >= 1.1.0" 2>&1`
  14881. fi
  14882. # Put the nasty error message in config.log where it belongs
  14883. echo "$CRYPTO_PKG_ERRORS" >&5
  14884. as_fn_error $? "OpenSSL libcrypto is missing or version requirements not met. OpenSSL version must be >= 1.1.0" "$LINENO" 5
  14885. elif test $pkg_failed = untried; then
  14886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14887. $as_echo "no" >&6; }
  14888. as_fn_error $? "OpenSSL libcrypto is missing or version requirements not met. OpenSSL version must be >= 1.1.0" "$LINENO" 5
  14889. else
  14890. CRYPTO_CFLAGS=$pkg_cv_CRYPTO_CFLAGS
  14891. CRYPTO_LIBS=$pkg_cv_CRYPTO_LIBS
  14892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14893. $as_echo "yes" >&6; }
  14894. fi
  14895. $as_echo "#define OSSL 1" >>confdefs.h
  14896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_sm3 in -lcrypto" >&5
  14897. $as_echo_n "checking for EVP_sm3 in -lcrypto... " >&6; }
  14898. if ${ac_cv_lib_crypto_EVP_sm3+:} false; then :
  14899. $as_echo_n "(cached) " >&6
  14900. else
  14901. ac_check_lib_save_LIBS=$LIBS
  14902. LIBS="-lcrypto $LIBS"
  14903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14904. /* end confdefs.h. */
  14905. /* Override any GCC internal prototype to avoid an error.
  14906. Use char because int might match the return type of a GCC
  14907. builtin and then its argument prototype would still apply. */
  14908. #ifdef __cplusplus
  14909. extern "C"
  14910. #endif
  14911. char EVP_sm3 ();
  14912. int
  14913. main ()
  14914. {
  14915. return EVP_sm3 ();
  14916. ;
  14917. return 0;
  14918. }
  14919. _ACEOF
  14920. if ac_fn_c_try_link "$LINENO"; then :
  14921. ac_cv_lib_crypto_EVP_sm3=yes
  14922. else
  14923. ac_cv_lib_crypto_EVP_sm3=no
  14924. fi
  14925. rm -f core conftest.err conftest.$ac_objext \
  14926. conftest$ac_exeext conftest.$ac_ext
  14927. LIBS=$ac_check_lib_save_LIBS
  14928. fi
  14929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_sm3" >&5
  14930. $as_echo "$ac_cv_lib_crypto_EVP_sm3" >&6; }
  14931. if test "x$ac_cv_lib_crypto_EVP_sm3" = xyes; then :
  14932. $as_echo "#define HAVE_EVP_SM3 1" >>confdefs.h
  14933. fi
  14934. TSS2_ESYS_CFLAGS_CRYPTO="$CRYPTO_CFLAGS"
  14935. TSS2_ESYS_LDFLAGS_CRYPTO="$CRYPTO_LIBS"
  14936. elif test "x$with_crypto" = xmbed; then :
  14937. ac_fn_c_check_header_mongrel "$LINENO" "mbedtls/md.h" "ac_cv_header_mbedtls_md_h" "$ac_includes_default"
  14938. if test "x$ac_cv_header_mbedtls_md_h" = xyes; then :
  14939. else
  14940. as_fn_error $? "Missing required mbedTLS library" "$LINENO" 5
  14941. fi
  14942. $as_echo "#define MBED 1" >>confdefs.h
  14943. TSS2_ESYS_CFLAGS_CRYPTO="$LIBMBED_CFLAGS"
  14944. TSS2_ESYS_LDFLAGS_CRYPTO="-lmbedcrypto"
  14945. else
  14946. as_fn_error $? "Bad value for --with-crypto $with_crypto" "$LINENO" 5
  14947. fi
  14948. fi
  14949. if test "x$enable_fapi" != xno && test "x$enable_esys" = "xno"; then :
  14950. as_fn_error $? "ESYS has to be enabled to compile FAPI." "$LINENO" 5
  14951. fi
  14952. if test "x$enable_fapi" != xno && test "x$with_crypto" != "xossl"; then :
  14953. as_fn_error $? "FAPI has to be compiled with OpenSSL" "$LINENO" 5
  14954. fi
  14955. if test "x$enable_fapi" = xyes ; then :
  14956. pkg_failed=no
  14957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JSONC" >&5
  14958. $as_echo_n "checking for JSONC... " >&6; }
  14959. if test -n "$JSONC_CFLAGS"; then
  14960. pkg_cv_JSONC_CFLAGS="$JSONC_CFLAGS"
  14961. elif test -n "$PKG_CONFIG"; then
  14962. if test -n "$PKG_CONFIG" && \
  14963. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c\""; } >&5
  14964. ($PKG_CONFIG --exists --print-errors "json-c") 2>&5
  14965. ac_status=$?
  14966. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14967. test $ac_status = 0; }; then
  14968. pkg_cv_JSONC_CFLAGS=`$PKG_CONFIG --cflags "json-c" 2>/dev/null`
  14969. test "x$?" != "x0" && pkg_failed=yes
  14970. else
  14971. pkg_failed=yes
  14972. fi
  14973. else
  14974. pkg_failed=untried
  14975. fi
  14976. if test -n "$JSONC_LIBS"; then
  14977. pkg_cv_JSONC_LIBS="$JSONC_LIBS"
  14978. elif test -n "$PKG_CONFIG"; then
  14979. if test -n "$PKG_CONFIG" && \
  14980. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c\""; } >&5
  14981. ($PKG_CONFIG --exists --print-errors "json-c") 2>&5
  14982. ac_status=$?
  14983. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14984. test $ac_status = 0; }; then
  14985. pkg_cv_JSONC_LIBS=`$PKG_CONFIG --libs "json-c" 2>/dev/null`
  14986. test "x$?" != "x0" && pkg_failed=yes
  14987. else
  14988. pkg_failed=yes
  14989. fi
  14990. else
  14991. pkg_failed=untried
  14992. fi
  14993. if test $pkg_failed = yes; then
  14994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14995. $as_echo "no" >&6; }
  14996. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  14997. _pkg_short_errors_supported=yes
  14998. else
  14999. _pkg_short_errors_supported=no
  15000. fi
  15001. if test $_pkg_short_errors_supported = yes; then
  15002. JSONC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-c" 2>&1`
  15003. else
  15004. JSONC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-c" 2>&1`
  15005. fi
  15006. # Put the nasty error message in config.log where it belongs
  15007. echo "$JSONC_PKG_ERRORS" >&5
  15008. as_fn_error $? "Package requirements (json-c) were not met:
  15009. $JSONC_PKG_ERRORS
  15010. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  15011. installed software in a non-standard prefix.
  15012. Alternatively, you may set the environment variables JSONC_CFLAGS
  15013. and JSONC_LIBS to avoid the need to call pkg-config.
  15014. See the pkg-config man page for more details." "$LINENO" 5
  15015. elif test $pkg_failed = untried; then
  15016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15017. $as_echo "no" >&6; }
  15018. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15019. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15020. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  15021. is in your PATH or set the PKG_CONFIG environment variable to the full
  15022. path to pkg-config.
  15023. Alternatively, you may set the environment variables JSONC_CFLAGS
  15024. and JSONC_LIBS to avoid the need to call pkg-config.
  15025. See the pkg-config man page for more details.
  15026. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  15027. See \`config.log' for more details" "$LINENO" 5; }
  15028. else
  15029. JSONC_CFLAGS=$pkg_cv_JSONC_CFLAGS
  15030. JSONC_LIBS=$pkg_cv_JSONC_LIBS
  15031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15032. $as_echo "yes" >&6; }
  15033. fi
  15034. fi
  15035. if test "x$enable_fapi" = xyes ; then :
  15036. pkg_failed=no
  15037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CURL" >&5
  15038. $as_echo_n "checking for CURL... " >&6; }
  15039. if test -n "$CURL_CFLAGS"; then
  15040. pkg_cv_CURL_CFLAGS="$CURL_CFLAGS"
  15041. elif test -n "$PKG_CONFIG"; then
  15042. if test -n "$PKG_CONFIG" && \
  15043. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
  15044. ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
  15045. ac_status=$?
  15046. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15047. test $ac_status = 0; }; then
  15048. pkg_cv_CURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl" 2>/dev/null`
  15049. test "x$?" != "x0" && pkg_failed=yes
  15050. else
  15051. pkg_failed=yes
  15052. fi
  15053. else
  15054. pkg_failed=untried
  15055. fi
  15056. if test -n "$CURL_LIBS"; then
  15057. pkg_cv_CURL_LIBS="$CURL_LIBS"
  15058. elif test -n "$PKG_CONFIG"; then
  15059. if test -n "$PKG_CONFIG" && \
  15060. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
  15061. ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
  15062. ac_status=$?
  15063. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15064. test $ac_status = 0; }; then
  15065. pkg_cv_CURL_LIBS=`$PKG_CONFIG --libs "libcurl" 2>/dev/null`
  15066. test "x$?" != "x0" && pkg_failed=yes
  15067. else
  15068. pkg_failed=yes
  15069. fi
  15070. else
  15071. pkg_failed=untried
  15072. fi
  15073. if test $pkg_failed = yes; then
  15074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15075. $as_echo "no" >&6; }
  15076. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  15077. _pkg_short_errors_supported=yes
  15078. else
  15079. _pkg_short_errors_supported=no
  15080. fi
  15081. if test $_pkg_short_errors_supported = yes; then
  15082. CURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl" 2>&1`
  15083. else
  15084. CURL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl" 2>&1`
  15085. fi
  15086. # Put the nasty error message in config.log where it belongs
  15087. echo "$CURL_PKG_ERRORS" >&5
  15088. as_fn_error $? "Package requirements (libcurl) were not met:
  15089. $CURL_PKG_ERRORS
  15090. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  15091. installed software in a non-standard prefix.
  15092. Alternatively, you may set the environment variables CURL_CFLAGS
  15093. and CURL_LIBS to avoid the need to call pkg-config.
  15094. See the pkg-config man page for more details." "$LINENO" 5
  15095. elif test $pkg_failed = untried; then
  15096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15097. $as_echo "no" >&6; }
  15098. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15099. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15100. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  15101. is in your PATH or set the PKG_CONFIG environment variable to the full
  15102. path to pkg-config.
  15103. Alternatively, you may set the environment variables CURL_CFLAGS
  15104. and CURL_LIBS to avoid the need to call pkg-config.
  15105. See the pkg-config man page for more details.
  15106. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  15107. See \`config.log' for more details" "$LINENO" 5; }
  15108. else
  15109. CURL_CFLAGS=$pkg_cv_CURL_CFLAGS
  15110. CURL_LIBS=$pkg_cv_CURL_LIBS
  15111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15112. $as_echo "yes" >&6; }
  15113. fi
  15114. fi
  15115. # Check whether --with-tctidefaultmodule was given.
  15116. if test "${with_tctidefaultmodule+set}" = set; then :
  15117. withval=$with_tctidefaultmodule;
  15118. cat >>confdefs.h <<_ACEOF
  15119. #define ESYS_TCTI_DEFAULT_MODULE "$with_tctidefaultmodule"
  15120. _ACEOF
  15121. else
  15122. with_tctidefaultmodule=libtss2-tcti-default.so
  15123. fi
  15124. # Check whether --with-tctidefaultconfig was given.
  15125. if test "${with_tctidefaultconfig+set}" = set; then :
  15126. withval=$with_tctidefaultconfig;
  15127. cat >>confdefs.h <<_ACEOF
  15128. #define ESYS_TCTI_DEFAULT_CONFIG "$with_tctidefaultconfig"
  15129. _ACEOF
  15130. fi
  15131. # Check whether --enable-tcti-device was given.
  15132. if test "${enable_tcti_device+set}" = set; then :
  15133. enableval=$enable_tcti_device;
  15134. else
  15135. enable_tcti_device=yes
  15136. fi
  15137. if test "x$enable_tcti_device" != xno; then
  15138. ENABLE_TCTI_DEVICE_TRUE=
  15139. ENABLE_TCTI_DEVICE_FALSE='#'
  15140. else
  15141. ENABLE_TCTI_DEVICE_TRUE='#'
  15142. ENABLE_TCTI_DEVICE_FALSE=
  15143. fi
  15144. if test "x$enable_tcti_device" = "xyes"; then :
  15145. $as_echo "#define TCTI_DEVICE 1" >>confdefs.h
  15146. fi
  15147. # Check whether --enable-tcti-mssim was given.
  15148. if test "${enable_tcti_mssim+set}" = set; then :
  15149. enableval=$enable_tcti_mssim;
  15150. else
  15151. enable_tcti_mssim=yes
  15152. fi
  15153. if test "x$enable_tcti_mssim" != xno; then
  15154. ENABLE_TCTI_MSSIM_TRUE=
  15155. ENABLE_TCTI_MSSIM_FALSE='#'
  15156. else
  15157. ENABLE_TCTI_MSSIM_TRUE='#'
  15158. ENABLE_TCTI_MSSIM_FALSE=
  15159. fi
  15160. if test "x$enable_tcti_mssim" = "xyes"; then :
  15161. $as_echo "#define TCTI_MSSIM 1" >>confdefs.h
  15162. fi
  15163. # Check whether --enable-tcti-swtpm was given.
  15164. if test "${enable_tcti_swtpm+set}" = set; then :
  15165. enableval=$enable_tcti_swtpm;
  15166. else
  15167. enable_tcti_swtpm=yes
  15168. fi
  15169. if test "x$enable_tcti_swtpm" != xno; then
  15170. ENABLE_TCTI_SWTPM_TRUE=
  15171. ENABLE_TCTI_SWTPM_FALSE='#'
  15172. else
  15173. ENABLE_TCTI_SWTPM_TRUE='#'
  15174. ENABLE_TCTI_SWTPM_FALSE=
  15175. fi
  15176. if test "x$enable_tcti_swtpm" = "xyes"; then :
  15177. $as_echo "#define TCTI_SWTPM 1" >>confdefs.h
  15178. fi
  15179. # Check whether --enable-tcti-pcap was given.
  15180. if test "${enable_tcti_pcap+set}" = set; then :
  15181. enableval=$enable_tcti_pcap;
  15182. else
  15183. enable_tcti_pcap=yes
  15184. fi
  15185. if test "x$enable_tcti_pcap" != xno; then
  15186. ENABLE_TCTI_PCAP_TRUE=
  15187. ENABLE_TCTI_PCAP_FALSE='#'
  15188. else
  15189. ENABLE_TCTI_PCAP_TRUE='#'
  15190. ENABLE_TCTI_PCAP_FALSE=
  15191. fi
  15192. # Check whether --enable-tcti-libtpms was given.
  15193. if test "${enable_tcti_libtpms+set}" = set; then :
  15194. enableval=$enable_tcti_libtpms; if test "x$enable_tcti_libtpms" = "xyes"; then :
  15195. ac_fn_c_check_header_mongrel "$LINENO" "libtpms/tpm_library.h" "ac_cv_header_libtpms_tpm_library_h" "$ac_includes_default"
  15196. if test "x$ac_cv_header_libtpms_tpm_library_h" = xyes; then :
  15197. else
  15198. as_fn_error $? "library libtpms missing" "$LINENO" 5
  15199. fi
  15200. fi
  15201. else
  15202. ac_fn_c_check_header_mongrel "$LINENO" "libtpms/tpm_library.h" "ac_cv_header_libtpms_tpm_library_h" "$ac_includes_default"
  15203. if test "x$ac_cv_header_libtpms_tpm_library_h" = xyes; then :
  15204. enable_tcti_libtpms=yes
  15205. else
  15206. enable_tcti_libtpms=no
  15207. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: library libtpms missing" >&5
  15208. $as_echo "$as_me: WARNING: library libtpms missing" >&2;}
  15209. fi
  15210. fi
  15211. if test "x$enable_tcti_libtpms" != xno; then
  15212. ENABLE_TCTI_LIBTPMS_TRUE=
  15213. ENABLE_TCTI_LIBTPMS_FALSE='#'
  15214. else
  15215. ENABLE_TCTI_LIBTPMS_TRUE='#'
  15216. ENABLE_TCTI_LIBTPMS_FALSE=
  15217. fi
  15218. # Check whether --enable-tcti-cmd was given.
  15219. if test "${enable_tcti_cmd+set}" = set; then :
  15220. enableval=$enable_tcti_cmd;
  15221. else
  15222. enable_tcti_cmd=yes
  15223. fi
  15224. if test "x$enable_tcti_cmd" != xno; then
  15225. ENABLE_TCTI_CMD_TRUE=
  15226. ENABLE_TCTI_CMD_FALSE='#'
  15227. else
  15228. ENABLE_TCTI_CMD_TRUE='#'
  15229. ENABLE_TCTI_CMD_FALSE=
  15230. fi
  15231. if test "x$enable_tcti_cmd" = "xyes"; then :
  15232. $as_echo "#define TCTI_CMD 1" >>confdefs.h
  15233. fi
  15234. # Check whether --enable-tcti-fuzzing was given.
  15235. if test "${enable_tcti_fuzzing+set}" = set; then :
  15236. enableval=$enable_tcti_fuzzing;
  15237. else
  15238. enable_tcti_fuzzing=no
  15239. fi
  15240. if test "x$enable_tcti_fuzzing" != xno; then
  15241. ENABLE_TCTI_FUZZING_TRUE=
  15242. ENABLE_TCTI_FUZZING_FALSE='#'
  15243. else
  15244. ENABLE_TCTI_FUZZING_TRUE='#'
  15245. ENABLE_TCTI_FUZZING_FALSE=
  15246. fi
  15247. if test "x$enable_tcti_fuzzing" = "xyes"; then :
  15248. $as_echo "#define TCTI_FUZZING 1" >>confdefs.h
  15249. fi
  15250. # Check whether --enable-nodl was given.
  15251. if test "${enable_nodl+set}" = set; then :
  15252. enableval=$enable_nodl;
  15253. else
  15254. enable_nodl=no
  15255. fi
  15256. if test "x$enable_nodl" = "xyes"; then
  15257. NO_DL_TRUE=
  15258. NO_DL_FALSE='#'
  15259. else
  15260. NO_DL_TRUE='#'
  15261. NO_DL_FALSE=
  15262. fi
  15263. if test "x$enable_nodl" = "xyes"; then :
  15264. $as_echo "#define NO_DL 1" >>confdefs.h
  15265. fi
  15266. #
  15267. # udev
  15268. #
  15269. # Check whether --with-udevrulesdir was given.
  15270. if test "${with_udevrulesdir+set}" = set; then :
  15271. withval=$with_udevrulesdir;
  15272. else
  15273. with_udevrulesdir=${libdir}/udev/rules.d
  15274. fi
  15275. case ":$with_udevrulesdir:" in
  15276. # change empty paths to '.'
  15277. ::) with_udevrulesdir='.' ;;
  15278. # strip trailing slashes
  15279. :*[\\/]:) with_udevrulesdir=`echo "$with_udevrulesdir" | sed 's,[\\/]*$,,'` ;;
  15280. :*:) ;;
  15281. esac
  15282. # squeeze repeated slashes
  15283. case "$with_udevrulesdir" in
  15284. # if the path contains any backslashes, turn slashes into backslashes
  15285. *\\*) with_udevrulesdir=`echo "$with_udevrulesdir" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  15286. # if the path contains slashes, also turn backslashes into slashes
  15287. *) with_udevrulesdir=`echo "$with_udevrulesdir" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  15288. esac
  15289. udevrulesdir=$with_udevrulesdir
  15290. # Check whether --with-udevrulesprefix was given.
  15291. if test "${with_udevrulesprefix+set}" = set; then :
  15292. withval=$with_udevrulesprefix; udevrulesprefix=$with_udevrulesprefix
  15293. fi
  15294. if test -n "$with_udevrulesprefix"; then
  15295. WITH_UDEVRULESPREFIX_TRUE=
  15296. WITH_UDEVRULESPREFIX_FALSE='#'
  15297. else
  15298. WITH_UDEVRULESPREFIX_TRUE='#'
  15299. WITH_UDEVRULESPREFIX_FALSE=
  15300. fi
  15301. # Check whether --with-device was given.
  15302. if test "${with_device+set}" = set; then :
  15303. withval=$with_device; if test -w "$with_device" && test -r "$with_device"; then :
  15304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: success" >&5
  15305. $as_echo "success" >&6; }
  15306. case ":$with_device:" in
  15307. # change empty paths to '.'
  15308. ::) with_device='.' ;;
  15309. # strip trailing slashes
  15310. :*[\\/]:) with_device=`echo "$with_device" | sed 's,[\\/]*$,,'` ;;
  15311. :*:) ;;
  15312. esac
  15313. # squeeze repeated slashes
  15314. case "$with_device" in
  15315. # if the path contains any backslashes, turn slashes into backslashes
  15316. *\\*) with_device=`echo "$with_device" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  15317. # if the path contains slashes, also turn backslashes into slashes
  15318. *) with_device=`echo "$with_device" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  15319. esac
  15320. with_device_set=yes
  15321. else
  15322. as_fn_error $? "TPM device provided does not exist or is not writable" "$LINENO" 5
  15323. fi
  15324. else
  15325. with_device_set=no
  15326. fi
  15327. if test "x$with_device_set" = xyes; then
  15328. TESTDEVICE_TRUE=
  15329. TESTDEVICE_FALSE='#'
  15330. else
  15331. TESTDEVICE_TRUE='#'
  15332. TESTDEVICE_FALSE=
  15333. fi
  15334. # Check whether --with-devicetests was given.
  15335. if test "${with_devicetests+set}" = set; then :
  15336. withval=$with_devicetests; if test "x" = x$(echo $with_devicetests | sed 's/destructive//g' | sed 's/mandatory//g' | sed 's/optional//g' | sed 's/,//g') ; then :
  15337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: success" >&5
  15338. $as_echo "success" >&6; }
  15339. with_devicetests_set=yes
  15340. else
  15341. as_fn_error $? "Illegal test type for device tests." "$LINENO" 5
  15342. fi
  15343. else
  15344. with_devicetests="mandatory"
  15345. fi
  15346. if echo $with_devicetests | grep destructive > /dev/null; then
  15347. enable_device_destructive="yes"
  15348. fi
  15349. if test "x$enable_device_destructive" = "xyes"; then
  15350. DEVICEDESTRUCTIVE_TRUE=
  15351. DEVICEDESTRUCTIVE_FALSE='#'
  15352. else
  15353. DEVICEDESTRUCTIVE_TRUE='#'
  15354. DEVICEDESTRUCTIVE_FALSE=
  15355. fi
  15356. if echo $with_devicetests | grep optional > /dev/null; then
  15357. enable_device_optional="yes"
  15358. fi
  15359. if test "x$enable_device_optional" = "xyes"; then
  15360. DEVICEOPTIONAL_TRUE=
  15361. DEVICEOPTIONAL_FALSE='#'
  15362. else
  15363. DEVICEOPTIONAL_TRUE='#'
  15364. DEVICEOPTIONAL_FALSE=
  15365. fi
  15366. if echo $with_devicetests | grep mandatory > /dev/null; then
  15367. enable_device_mandatory="yes"
  15368. fi
  15369. if test "x$enable_device_mandatory" = "xyes"; then
  15370. DEVICEMANDATORY_TRUE=
  15371. DEVICEMANDATORY_FALSE='#'
  15372. else
  15373. DEVICEMANDATORY_TRUE='#'
  15374. DEVICEMANDATORY_FALSE=
  15375. fi
  15376. #
  15377. # enable integration tests and check for simulator binary
  15378. #
  15379. # Check whether --enable-integration was given.
  15380. if test "${enable_integration+set}" = set; then :
  15381. enableval=$enable_integration;
  15382. else
  15383. enable_integration=no
  15384. fi
  15385. if test "x$enable_integration" = "xyes"; then :
  15386. if test "$HOSTOS" = "Linux"; then :
  15387. # Extract the first word of "ss", so it can be a program name with args.
  15388. set dummy ss; ac_word=$2
  15389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15390. $as_echo_n "checking for $ac_word... " >&6; }
  15391. if ${ac_cv_prog_result_ss+:} false; then :
  15392. $as_echo_n "(cached) " >&6
  15393. else
  15394. if test -n "$result_ss"; then
  15395. ac_cv_prog_result_ss="$result_ss" # Let the user override the test.
  15396. else
  15397. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15398. for as_dir in $PATH
  15399. do
  15400. IFS=$as_save_IFS
  15401. test -z "$as_dir" && as_dir=.
  15402. for ac_exec_ext in '' $ac_executable_extensions; do
  15403. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15404. ac_cv_prog_result_ss="yes"
  15405. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15406. break 2
  15407. fi
  15408. done
  15409. done
  15410. IFS=$as_save_IFS
  15411. test -z "$ac_cv_prog_result_ss" && ac_cv_prog_result_ss="no"
  15412. fi
  15413. fi
  15414. result_ss=$ac_cv_prog_result_ss
  15415. if test -n "$result_ss"; then
  15416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result_ss" >&5
  15417. $as_echo "$result_ss" >&6; }
  15418. else
  15419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15420. $as_echo "no" >&6; }
  15421. fi
  15422. if test "x$result_ss" != "xyes"; then :
  15423. as_fn_error $? "Missing required program 'ss': ensure it is installed and on PATH." "$LINENO" 5
  15424. fi
  15425. else
  15426. # Extract the first word of "sockstat", so it can be a program name with args.
  15427. set dummy sockstat; ac_word=$2
  15428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15429. $as_echo_n "checking for $ac_word... " >&6; }
  15430. if ${ac_cv_prog_result_sockstat+:} false; then :
  15431. $as_echo_n "(cached) " >&6
  15432. else
  15433. if test -n "$result_sockstat"; then
  15434. ac_cv_prog_result_sockstat="$result_sockstat" # Let the user override the test.
  15435. else
  15436. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15437. for as_dir in $PATH
  15438. do
  15439. IFS=$as_save_IFS
  15440. test -z "$as_dir" && as_dir=.
  15441. for ac_exec_ext in '' $ac_executable_extensions; do
  15442. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15443. ac_cv_prog_result_sockstat="yes"
  15444. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15445. break 2
  15446. fi
  15447. done
  15448. done
  15449. IFS=$as_save_IFS
  15450. test -z "$ac_cv_prog_result_sockstat" && ac_cv_prog_result_sockstat="no"
  15451. fi
  15452. fi
  15453. result_sockstat=$ac_cv_prog_result_sockstat
  15454. if test -n "$result_sockstat"; then
  15455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result_sockstat" >&5
  15456. $as_echo "$result_sockstat" >&6; }
  15457. else
  15458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15459. $as_echo "no" >&6; }
  15460. fi
  15461. if test "x$result_sockstat" != "xyes"; then :
  15462. as_fn_error $? "Missing required program 'sockstat': ensure it is installed and on PATH." "$LINENO" 5
  15463. fi
  15464. fi
  15465. # Extract the first word of "echo", so it can be a program name with args.
  15466. set dummy echo; ac_word=$2
  15467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15468. $as_echo_n "checking for $ac_word... " >&6; }
  15469. if ${ac_cv_prog_result_echo+:} false; then :
  15470. $as_echo_n "(cached) " >&6
  15471. else
  15472. if test -n "$result_echo"; then
  15473. ac_cv_prog_result_echo="$result_echo" # Let the user override the test.
  15474. else
  15475. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15476. for as_dir in $PATH
  15477. do
  15478. IFS=$as_save_IFS
  15479. test -z "$as_dir" && as_dir=.
  15480. for ac_exec_ext in '' $ac_executable_extensions; do
  15481. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15482. ac_cv_prog_result_echo="yes"
  15483. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15484. break 2
  15485. fi
  15486. done
  15487. done
  15488. IFS=$as_save_IFS
  15489. test -z "$ac_cv_prog_result_echo" && ac_cv_prog_result_echo="no"
  15490. fi
  15491. fi
  15492. result_echo=$ac_cv_prog_result_echo
  15493. if test -n "$result_echo"; then
  15494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result_echo" >&5
  15495. $as_echo "$result_echo" >&6; }
  15496. else
  15497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15498. $as_echo "no" >&6; }
  15499. fi
  15500. if test "x$result_echo" != "xyes"; then :
  15501. as_fn_error $? "Missing required program 'echo': ensure it is installed and on PATH." "$LINENO" 5
  15502. fi
  15503. # Extract the first word of "kill", so it can be a program name with args.
  15504. set dummy kill; ac_word=$2
  15505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15506. $as_echo_n "checking for $ac_word... " >&6; }
  15507. if ${ac_cv_prog_result_kill+:} false; then :
  15508. $as_echo_n "(cached) " >&6
  15509. else
  15510. if test -n "$result_kill"; then
  15511. ac_cv_prog_result_kill="$result_kill" # Let the user override the test.
  15512. else
  15513. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15514. for as_dir in $PATH
  15515. do
  15516. IFS=$as_save_IFS
  15517. test -z "$as_dir" && as_dir=.
  15518. for ac_exec_ext in '' $ac_executable_extensions; do
  15519. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15520. ac_cv_prog_result_kill="yes"
  15521. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15522. break 2
  15523. fi
  15524. done
  15525. done
  15526. IFS=$as_save_IFS
  15527. test -z "$ac_cv_prog_result_kill" && ac_cv_prog_result_kill="no"
  15528. fi
  15529. fi
  15530. result_kill=$ac_cv_prog_result_kill
  15531. if test -n "$result_kill"; then
  15532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result_kill" >&5
  15533. $as_echo "$result_kill" >&6; }
  15534. else
  15535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15536. $as_echo "no" >&6; }
  15537. fi
  15538. if test "x$result_kill" != "xyes"; then :
  15539. as_fn_error $? "Missing required program 'kill': ensure it is installed and on PATH." "$LINENO" 5
  15540. fi
  15541. # Extract the first word of "stdbuf", so it can be a program name with args.
  15542. set dummy stdbuf; ac_word=$2
  15543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15544. $as_echo_n "checking for $ac_word... " >&6; }
  15545. if ${ac_cv_prog_result_stdbuf+:} false; then :
  15546. $as_echo_n "(cached) " >&6
  15547. else
  15548. if test -n "$result_stdbuf"; then
  15549. ac_cv_prog_result_stdbuf="$result_stdbuf" # Let the user override the test.
  15550. else
  15551. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15552. for as_dir in $PATH
  15553. do
  15554. IFS=$as_save_IFS
  15555. test -z "$as_dir" && as_dir=.
  15556. for ac_exec_ext in '' $ac_executable_extensions; do
  15557. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15558. ac_cv_prog_result_stdbuf="yes"
  15559. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15560. break 2
  15561. fi
  15562. done
  15563. done
  15564. IFS=$as_save_IFS
  15565. test -z "$ac_cv_prog_result_stdbuf" && ac_cv_prog_result_stdbuf="no"
  15566. fi
  15567. fi
  15568. result_stdbuf=$ac_cv_prog_result_stdbuf
  15569. if test -n "$result_stdbuf"; then
  15570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result_stdbuf" >&5
  15571. $as_echo "$result_stdbuf" >&6; }
  15572. else
  15573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15574. $as_echo "no" >&6; }
  15575. fi
  15576. if test "x$result_stdbuf" != "xyes"; then :
  15577. as_fn_error $? "Missing required program 'stdbuf': ensure it is installed and on PATH." "$LINENO" 5
  15578. fi
  15579. # Extract the first word of "sleep", so it can be a program name with args.
  15580. set dummy sleep; ac_word=$2
  15581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15582. $as_echo_n "checking for $ac_word... " >&6; }
  15583. if ${ac_cv_prog_result_sleep+:} false; then :
  15584. $as_echo_n "(cached) " >&6
  15585. else
  15586. if test -n "$result_sleep"; then
  15587. ac_cv_prog_result_sleep="$result_sleep" # Let the user override the test.
  15588. else
  15589. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15590. for as_dir in $PATH
  15591. do
  15592. IFS=$as_save_IFS
  15593. test -z "$as_dir" && as_dir=.
  15594. for ac_exec_ext in '' $ac_executable_extensions; do
  15595. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15596. ac_cv_prog_result_sleep="yes"
  15597. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15598. break 2
  15599. fi
  15600. done
  15601. done
  15602. IFS=$as_save_IFS
  15603. test -z "$ac_cv_prog_result_sleep" && ac_cv_prog_result_sleep="no"
  15604. fi
  15605. fi
  15606. result_sleep=$ac_cv_prog_result_sleep
  15607. if test -n "$result_sleep"; then
  15608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result_sleep" >&5
  15609. $as_echo "$result_sleep" >&6; }
  15610. else
  15611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15612. $as_echo "no" >&6; }
  15613. fi
  15614. if test "x$result_sleep" != "xyes"; then :
  15615. as_fn_error $? "Missing required program 'sleep': ensure it is installed and on PATH." "$LINENO" 5
  15616. fi
  15617. # Extract the first word of "cat", so it can be a program name with args.
  15618. set dummy cat; ac_word=$2
  15619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15620. $as_echo_n "checking for $ac_word... " >&6; }
  15621. if ${ac_cv_prog_result_cat+:} false; then :
  15622. $as_echo_n "(cached) " >&6
  15623. else
  15624. if test -n "$result_cat"; then
  15625. ac_cv_prog_result_cat="$result_cat" # Let the user override the test.
  15626. else
  15627. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15628. for as_dir in $PATH
  15629. do
  15630. IFS=$as_save_IFS
  15631. test -z "$as_dir" && as_dir=.
  15632. for ac_exec_ext in '' $ac_executable_extensions; do
  15633. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15634. ac_cv_prog_result_cat="yes"
  15635. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15636. break 2
  15637. fi
  15638. done
  15639. done
  15640. IFS=$as_save_IFS
  15641. test -z "$ac_cv_prog_result_cat" && ac_cv_prog_result_cat="no"
  15642. fi
  15643. fi
  15644. result_cat=$ac_cv_prog_result_cat
  15645. if test -n "$result_cat"; then
  15646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result_cat" >&5
  15647. $as_echo "$result_cat" >&6; }
  15648. else
  15649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15650. $as_echo "no" >&6; }
  15651. fi
  15652. if test "x$result_cat" != "xyes"; then :
  15653. as_fn_error $? "Missing required program 'cat': ensure it is installed and on PATH." "$LINENO" 5
  15654. fi
  15655. # Extract the first word of "realpath", so it can be a program name with args.
  15656. set dummy realpath; ac_word=$2
  15657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15658. $as_echo_n "checking for $ac_word... " >&6; }
  15659. if ${ac_cv_prog_result_realpath+:} false; then :
  15660. $as_echo_n "(cached) " >&6
  15661. else
  15662. if test -n "$result_realpath"; then
  15663. ac_cv_prog_result_realpath="$result_realpath" # Let the user override the test.
  15664. else
  15665. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15666. for as_dir in $PATH
  15667. do
  15668. IFS=$as_save_IFS
  15669. test -z "$as_dir" && as_dir=.
  15670. for ac_exec_ext in '' $ac_executable_extensions; do
  15671. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15672. ac_cv_prog_result_realpath="yes"
  15673. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15674. break 2
  15675. fi
  15676. done
  15677. done
  15678. IFS=$as_save_IFS
  15679. test -z "$ac_cv_prog_result_realpath" && ac_cv_prog_result_realpath="no"
  15680. fi
  15681. fi
  15682. result_realpath=$ac_cv_prog_result_realpath
  15683. if test -n "$result_realpath"; then
  15684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result_realpath" >&5
  15685. $as_echo "$result_realpath" >&6; }
  15686. else
  15687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15688. $as_echo "no" >&6; }
  15689. fi
  15690. if test "x$result_realpath" != "xyes"; then :
  15691. as_fn_error $? "Missing required program 'realpath': ensure it is installed and on PATH." "$LINENO" 5
  15692. fi
  15693. # Extract the first word of "dirname", so it can be a program name with args.
  15694. set dummy dirname; ac_word=$2
  15695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15696. $as_echo_n "checking for $ac_word... " >&6; }
  15697. if ${ac_cv_prog_result_dirname+:} false; then :
  15698. $as_echo_n "(cached) " >&6
  15699. else
  15700. if test -n "$result_dirname"; then
  15701. ac_cv_prog_result_dirname="$result_dirname" # Let the user override the test.
  15702. else
  15703. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15704. for as_dir in $PATH
  15705. do
  15706. IFS=$as_save_IFS
  15707. test -z "$as_dir" && as_dir=.
  15708. for ac_exec_ext in '' $ac_executable_extensions; do
  15709. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15710. ac_cv_prog_result_dirname="yes"
  15711. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15712. break 2
  15713. fi
  15714. done
  15715. done
  15716. IFS=$as_save_IFS
  15717. test -z "$ac_cv_prog_result_dirname" && ac_cv_prog_result_dirname="no"
  15718. fi
  15719. fi
  15720. result_dirname=$ac_cv_prog_result_dirname
  15721. if test -n "$result_dirname"; then
  15722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result_dirname" >&5
  15723. $as_echo "$result_dirname" >&6; }
  15724. else
  15725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15726. $as_echo "no" >&6; }
  15727. fi
  15728. if test "x$result_dirname" != "xyes"; then :
  15729. as_fn_error $? "Missing required program 'dirname': ensure it is installed and on PATH." "$LINENO" 5
  15730. fi
  15731. # Extract the first word of "basename", so it can be a program name with args.
  15732. set dummy basename; ac_word=$2
  15733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15734. $as_echo_n "checking for $ac_word... " >&6; }
  15735. if ${ac_cv_prog_result_basename+:} false; then :
  15736. $as_echo_n "(cached) " >&6
  15737. else
  15738. if test -n "$result_basename"; then
  15739. ac_cv_prog_result_basename="$result_basename" # Let the user override the test.
  15740. else
  15741. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15742. for as_dir in $PATH
  15743. do
  15744. IFS=$as_save_IFS
  15745. test -z "$as_dir" && as_dir=.
  15746. for ac_exec_ext in '' $ac_executable_extensions; do
  15747. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15748. ac_cv_prog_result_basename="yes"
  15749. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15750. break 2
  15751. fi
  15752. done
  15753. done
  15754. IFS=$as_save_IFS
  15755. test -z "$ac_cv_prog_result_basename" && ac_cv_prog_result_basename="no"
  15756. fi
  15757. fi
  15758. result_basename=$ac_cv_prog_result_basename
  15759. if test -n "$result_basename"; then
  15760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result_basename" >&5
  15761. $as_echo "$result_basename" >&6; }
  15762. else
  15763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15764. $as_echo "no" >&6; }
  15765. fi
  15766. if test "x$result_basename" != "xyes"; then :
  15767. as_fn_error $? "Missing required program 'basename': ensure it is installed and on PATH." "$LINENO" 5
  15768. fi
  15769. # Extract the first word of "mktemp", so it can be a program name with args.
  15770. set dummy mktemp; ac_word=$2
  15771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15772. $as_echo_n "checking for $ac_word... " >&6; }
  15773. if ${ac_cv_prog_result_mktemp+:} false; then :
  15774. $as_echo_n "(cached) " >&6
  15775. else
  15776. if test -n "$result_mktemp"; then
  15777. ac_cv_prog_result_mktemp="$result_mktemp" # Let the user override the test.
  15778. else
  15779. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15780. for as_dir in $PATH
  15781. do
  15782. IFS=$as_save_IFS
  15783. test -z "$as_dir" && as_dir=.
  15784. for ac_exec_ext in '' $ac_executable_extensions; do
  15785. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15786. ac_cv_prog_result_mktemp="yes"
  15787. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15788. break 2
  15789. fi
  15790. done
  15791. done
  15792. IFS=$as_save_IFS
  15793. test -z "$ac_cv_prog_result_mktemp" && ac_cv_prog_result_mktemp="no"
  15794. fi
  15795. fi
  15796. result_mktemp=$ac_cv_prog_result_mktemp
  15797. if test -n "$result_mktemp"; then
  15798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result_mktemp" >&5
  15799. $as_echo "$result_mktemp" >&6; }
  15800. else
  15801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15802. $as_echo "no" >&6; }
  15803. fi
  15804. if test "x$result_mktemp" != "xyes"; then :
  15805. as_fn_error $? "Missing required program 'mktemp': ensure it is installed and on PATH." "$LINENO" 5
  15806. fi
  15807. # Extract the first word of "od", so it can be a program name with args.
  15808. set dummy od; ac_word=$2
  15809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15810. $as_echo_n "checking for $ac_word... " >&6; }
  15811. if ${ac_cv_prog_result_od+:} false; then :
  15812. $as_echo_n "(cached) " >&6
  15813. else
  15814. if test -n "$result_od"; then
  15815. ac_cv_prog_result_od="$result_od" # Let the user override the test.
  15816. else
  15817. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15818. for as_dir in $PATH
  15819. do
  15820. IFS=$as_save_IFS
  15821. test -z "$as_dir" && as_dir=.
  15822. for ac_exec_ext in '' $ac_executable_extensions; do
  15823. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15824. ac_cv_prog_result_od="yes"
  15825. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15826. break 2
  15827. fi
  15828. done
  15829. done
  15830. IFS=$as_save_IFS
  15831. test -z "$ac_cv_prog_result_od" && ac_cv_prog_result_od="no"
  15832. fi
  15833. fi
  15834. result_od=$ac_cv_prog_result_od
  15835. if test -n "$result_od"; then
  15836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result_od" >&5
  15837. $as_echo "$result_od" >&6; }
  15838. else
  15839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15840. $as_echo "no" >&6; }
  15841. fi
  15842. if test "x$result_od" != "xyes"; then :
  15843. as_fn_error $? "Missing required program 'od': ensure it is installed and on PATH." "$LINENO" 5
  15844. fi
  15845. # Extract the first word of "awk", so it can be a program name with args.
  15846. set dummy awk; ac_word=$2
  15847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15848. $as_echo_n "checking for $ac_word... " >&6; }
  15849. if ${ac_cv_prog_result_awk+:} false; then :
  15850. $as_echo_n "(cached) " >&6
  15851. else
  15852. if test -n "$result_awk"; then
  15853. ac_cv_prog_result_awk="$result_awk" # Let the user override the test.
  15854. else
  15855. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15856. for as_dir in $PATH
  15857. do
  15858. IFS=$as_save_IFS
  15859. test -z "$as_dir" && as_dir=.
  15860. for ac_exec_ext in '' $ac_executable_extensions; do
  15861. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15862. ac_cv_prog_result_awk="yes"
  15863. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15864. break 2
  15865. fi
  15866. done
  15867. done
  15868. IFS=$as_save_IFS
  15869. test -z "$ac_cv_prog_result_awk" && ac_cv_prog_result_awk="no"
  15870. fi
  15871. fi
  15872. result_awk=$ac_cv_prog_result_awk
  15873. if test -n "$result_awk"; then
  15874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result_awk" >&5
  15875. $as_echo "$result_awk" >&6; }
  15876. else
  15877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15878. $as_echo "no" >&6; }
  15879. fi
  15880. if test "x$result_awk" != "xyes"; then :
  15881. as_fn_error $? "Missing required program 'awk': ensure it is installed and on PATH." "$LINENO" 5
  15882. fi
  15883. # Extract the first word of "expr", so it can be a program name with args.
  15884. set dummy expr; ac_word=$2
  15885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15886. $as_echo_n "checking for $ac_word... " >&6; }
  15887. if ${ac_cv_prog_result_expr+:} false; then :
  15888. $as_echo_n "(cached) " >&6
  15889. else
  15890. if test -n "$result_expr"; then
  15891. ac_cv_prog_result_expr="$result_expr" # Let the user override the test.
  15892. else
  15893. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15894. for as_dir in $PATH
  15895. do
  15896. IFS=$as_save_IFS
  15897. test -z "$as_dir" && as_dir=.
  15898. for ac_exec_ext in '' $ac_executable_extensions; do
  15899. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15900. ac_cv_prog_result_expr="yes"
  15901. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15902. break 2
  15903. fi
  15904. done
  15905. done
  15906. IFS=$as_save_IFS
  15907. test -z "$ac_cv_prog_result_expr" && ac_cv_prog_result_expr="no"
  15908. fi
  15909. fi
  15910. result_expr=$ac_cv_prog_result_expr
  15911. if test -n "$result_expr"; then
  15912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result_expr" >&5
  15913. $as_echo "$result_expr" >&6; }
  15914. else
  15915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15916. $as_echo "no" >&6; }
  15917. fi
  15918. if test "x$result_expr" != "xyes"; then :
  15919. as_fn_error $? "Missing required program 'expr': ensure it is installed and on PATH." "$LINENO" 5
  15920. fi
  15921. # Extract the first word of "grep", so it can be a program name with args.
  15922. set dummy grep; ac_word=$2
  15923. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15924. $as_echo_n "checking for $ac_word... " >&6; }
  15925. if ${ac_cv_prog_result_grep+:} false; then :
  15926. $as_echo_n "(cached) " >&6
  15927. else
  15928. if test -n "$result_grep"; then
  15929. ac_cv_prog_result_grep="$result_grep" # Let the user override the test.
  15930. else
  15931. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15932. for as_dir in $PATH
  15933. do
  15934. IFS=$as_save_IFS
  15935. test -z "$as_dir" && as_dir=.
  15936. for ac_exec_ext in '' $ac_executable_extensions; do
  15937. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15938. ac_cv_prog_result_grep="yes"
  15939. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15940. break 2
  15941. fi
  15942. done
  15943. done
  15944. IFS=$as_save_IFS
  15945. test -z "$ac_cv_prog_result_grep" && ac_cv_prog_result_grep="no"
  15946. fi
  15947. fi
  15948. result_grep=$ac_cv_prog_result_grep
  15949. if test -n "$result_grep"; then
  15950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result_grep" >&5
  15951. $as_echo "$result_grep" >&6; }
  15952. else
  15953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15954. $as_echo "no" >&6; }
  15955. fi
  15956. if test "x$result_grep" != "xyes"; then :
  15957. as_fn_error $? "Missing required program 'grep': ensure it is installed and on PATH." "$LINENO" 5
  15958. fi
  15959. # Extract the first word of "env", so it can be a program name with args.
  15960. set dummy env; ac_word=$2
  15961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15962. $as_echo_n "checking for $ac_word... " >&6; }
  15963. if ${ac_cv_prog_result_env+:} false; then :
  15964. $as_echo_n "(cached) " >&6
  15965. else
  15966. if test -n "$result_env"; then
  15967. ac_cv_prog_result_env="$result_env" # Let the user override the test.
  15968. else
  15969. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15970. for as_dir in $PATH
  15971. do
  15972. IFS=$as_save_IFS
  15973. test -z "$as_dir" && as_dir=.
  15974. for ac_exec_ext in '' $ac_executable_extensions; do
  15975. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15976. ac_cv_prog_result_env="yes"
  15977. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15978. break 2
  15979. fi
  15980. done
  15981. done
  15982. IFS=$as_save_IFS
  15983. test -z "$ac_cv_prog_result_env" && ac_cv_prog_result_env="no"
  15984. fi
  15985. fi
  15986. result_env=$ac_cv_prog_result_env
  15987. if test -n "$result_env"; then
  15988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result_env" >&5
  15989. $as_echo "$result_env" >&6; }
  15990. else
  15991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15992. $as_echo "no" >&6; }
  15993. fi
  15994. if test "x$result_env" != "xyes"; then :
  15995. as_fn_error $? "Missing required program 'env': ensure it is installed and on PATH." "$LINENO" 5
  15996. fi
  15997. # Extract the first word of "rm", so it can be a program name with args.
  15998. set dummy rm; ac_word=$2
  15999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16000. $as_echo_n "checking for $ac_word... " >&6; }
  16001. if ${ac_cv_prog_result_rm+:} false; then :
  16002. $as_echo_n "(cached) " >&6
  16003. else
  16004. if test -n "$result_rm"; then
  16005. ac_cv_prog_result_rm="$result_rm" # Let the user override the test.
  16006. else
  16007. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16008. for as_dir in $PATH
  16009. do
  16010. IFS=$as_save_IFS
  16011. test -z "$as_dir" && as_dir=.
  16012. for ac_exec_ext in '' $ac_executable_extensions; do
  16013. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16014. ac_cv_prog_result_rm="yes"
  16015. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16016. break 2
  16017. fi
  16018. done
  16019. done
  16020. IFS=$as_save_IFS
  16021. test -z "$ac_cv_prog_result_rm" && ac_cv_prog_result_rm="no"
  16022. fi
  16023. fi
  16024. result_rm=$ac_cv_prog_result_rm
  16025. if test -n "$result_rm"; then
  16026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result_rm" >&5
  16027. $as_echo "$result_rm" >&6; }
  16028. else
  16029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16030. $as_echo "no" >&6; }
  16031. fi
  16032. if test "x$result_rm" != "xyes"; then :
  16033. as_fn_error $? "Missing required program 'rm': ensure it is installed and on PATH." "$LINENO" 5
  16034. fi
  16035. if test "x$with_crypto" != xossl || test "x$enable_esys" != xyes; then :
  16036. pkg_failed=no
  16037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO" >&5
  16038. $as_echo_n "checking for CRYPTO... " >&6; }
  16039. if test -n "$CRYPTO_CFLAGS"; then
  16040. pkg_cv_CRYPTO_CFLAGS="$CRYPTO_CFLAGS"
  16041. elif test -n "$PKG_CONFIG"; then
  16042. if test -n "$PKG_CONFIG" && \
  16043. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto\""; } >&5
  16044. ($PKG_CONFIG --exists --print-errors "libcrypto") 2>&5
  16045. ac_status=$?
  16046. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16047. test $ac_status = 0; }; then
  16048. pkg_cv_CRYPTO_CFLAGS=`$PKG_CONFIG --cflags "libcrypto" 2>/dev/null`
  16049. test "x$?" != "x0" && pkg_failed=yes
  16050. else
  16051. pkg_failed=yes
  16052. fi
  16053. else
  16054. pkg_failed=untried
  16055. fi
  16056. if test -n "$CRYPTO_LIBS"; then
  16057. pkg_cv_CRYPTO_LIBS="$CRYPTO_LIBS"
  16058. elif test -n "$PKG_CONFIG"; then
  16059. if test -n "$PKG_CONFIG" && \
  16060. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto\""; } >&5
  16061. ($PKG_CONFIG --exists --print-errors "libcrypto") 2>&5
  16062. ac_status=$?
  16063. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16064. test $ac_status = 0; }; then
  16065. pkg_cv_CRYPTO_LIBS=`$PKG_CONFIG --libs "libcrypto" 2>/dev/null`
  16066. test "x$?" != "x0" && pkg_failed=yes
  16067. else
  16068. pkg_failed=yes
  16069. fi
  16070. else
  16071. pkg_failed=untried
  16072. fi
  16073. if test $pkg_failed = yes; then
  16074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16075. $as_echo "no" >&6; }
  16076. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16077. _pkg_short_errors_supported=yes
  16078. else
  16079. _pkg_short_errors_supported=no
  16080. fi
  16081. if test $_pkg_short_errors_supported = yes; then
  16082. CRYPTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcrypto" 2>&1`
  16083. else
  16084. CRYPTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcrypto" 2>&1`
  16085. fi
  16086. # Put the nasty error message in config.log where it belongs
  16087. echo "$CRYPTO_PKG_ERRORS" >&5
  16088. as_fn_error $? "Package requirements (libcrypto) were not met:
  16089. $CRYPTO_PKG_ERRORS
  16090. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  16091. installed software in a non-standard prefix.
  16092. Alternatively, you may set the environment variables CRYPTO_CFLAGS
  16093. and CRYPTO_LIBS to avoid the need to call pkg-config.
  16094. See the pkg-config man page for more details." "$LINENO" 5
  16095. elif test $pkg_failed = untried; then
  16096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16097. $as_echo "no" >&6; }
  16098. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16099. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16100. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  16101. is in your PATH or set the PKG_CONFIG environment variable to the full
  16102. path to pkg-config.
  16103. Alternatively, you may set the environment variables CRYPTO_CFLAGS
  16104. and CRYPTO_LIBS to avoid the need to call pkg-config.
  16105. See the pkg-config man page for more details.
  16106. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  16107. See \`config.log' for more details" "$LINENO" 5; }
  16108. else
  16109. CRYPTO_CFLAGS=$pkg_cv_CRYPTO_CFLAGS
  16110. CRYPTO_LIBS=$pkg_cv_CRYPTO_LIBS
  16111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16112. $as_echo "yes" >&6; }
  16113. fi
  16114. fi
  16115. ac_fn_c_check_header_mongrel "$LINENO" "uthash.h" "ac_cv_header_uthash_h" "$ac_includes_default"
  16116. if test "x$ac_cv_header_uthash_h" = xyes; then :
  16117. else
  16118. as_fn_error $? "Can not find uthash.h. Please install uthash-dev" "$LINENO" 5
  16119. fi
  16120. # choose tcti for testing and look for TPM simulator binary
  16121. integration_tcti="none"
  16122. integration_args=""
  16123. if test "x$with_device_set" = xyes; then :
  16124. # use device if --with-device was passed
  16125. integration_tcti=device
  16126. integration_args="--device=$with_device"
  16127. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using physical TPM for integration testing" >&5
  16128. $as_echo "$as_me: WARNING: Using physical TPM for integration testing" >&2;}
  16129. fi
  16130. if test "x$integration_tcti" = "xnone" && test "x$enable_tcti_swtpm" != xyes && test "x$enable_tcti_mssim" != xyes; then :
  16131. as_fn_error $? "No suitable TCTI for testing enabled. Please use option --enable-tcti-swtpm (recommended) or --enable-tcti-mssim (fallback) to enable a suitable TCTI or disable testing with --disable-integration." "$LINENO" 5
  16132. fi
  16133. if test "x$integration_tcti" = "xnone" && test "x$enable_tcti_swtpm" = "xyes"; then :
  16134. # check for swtpm binary
  16135. # Extract the first word of "swtpm", so it can be a program name with args.
  16136. set dummy swtpm; ac_word=$2
  16137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16138. $as_echo_n "checking for $ac_word... " >&6; }
  16139. if ${ac_cv_prog_result_swtpm+:} false; then :
  16140. $as_echo_n "(cached) " >&6
  16141. else
  16142. if test -n "$result_swtpm"; then
  16143. ac_cv_prog_result_swtpm="$result_swtpm" # Let the user override the test.
  16144. else
  16145. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16146. for as_dir in $PATH
  16147. do
  16148. IFS=$as_save_IFS
  16149. test -z "$as_dir" && as_dir=.
  16150. for ac_exec_ext in '' $ac_executable_extensions; do
  16151. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16152. ac_cv_prog_result_swtpm="yes"
  16153. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16154. break 2
  16155. fi
  16156. done
  16157. done
  16158. IFS=$as_save_IFS
  16159. test -z "$ac_cv_prog_result_swtpm" && ac_cv_prog_result_swtpm="no"
  16160. fi
  16161. fi
  16162. result_swtpm=$ac_cv_prog_result_swtpm
  16163. if test -n "$result_swtpm"; then
  16164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result_swtpm" >&5
  16165. $as_echo "$result_swtpm" >&6; }
  16166. else
  16167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16168. $as_echo "no" >&6; }
  16169. fi
  16170. if test "x$result_swtpm" = "xyes"; then :
  16171. integration_tcti=swtpm
  16172. else
  16173. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Executable swtpm not found in PATH." >&5
  16174. $as_echo "$as_me: WARNING: Executable swtpm not found in PATH." >&2;}
  16175. fi
  16176. fi
  16177. if test "x$integration_tcti" = "xnone" && test "x$enable_tcti_mssim" = "xyes"; then :
  16178. # check for mssim binary
  16179. { $as_echo "$as_me:${as_lineno-$LINENO}: Falling back to testing with tcti-mssim." >&5
  16180. $as_echo "$as_me: Falling back to testing with tcti-mssim." >&6;}
  16181. # Extract the first word of "tpm_server", so it can be a program name with args.
  16182. set dummy tpm_server; ac_word=$2
  16183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16184. $as_echo_n "checking for $ac_word... " >&6; }
  16185. if ${ac_cv_prog_result_tpm_server+:} false; then :
  16186. $as_echo_n "(cached) " >&6
  16187. else
  16188. if test -n "$result_tpm_server"; then
  16189. ac_cv_prog_result_tpm_server="$result_tpm_server" # Let the user override the test.
  16190. else
  16191. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16192. for as_dir in $PATH
  16193. do
  16194. IFS=$as_save_IFS
  16195. test -z "$as_dir" && as_dir=.
  16196. for ac_exec_ext in '' $ac_executable_extensions; do
  16197. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16198. ac_cv_prog_result_tpm_server="yes"
  16199. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16200. break 2
  16201. fi
  16202. done
  16203. done
  16204. IFS=$as_save_IFS
  16205. test -z "$ac_cv_prog_result_tpm_server" && ac_cv_prog_result_tpm_server="no"
  16206. fi
  16207. fi
  16208. result_tpm_server=$ac_cv_prog_result_tpm_server
  16209. if test -n "$result_tpm_server"; then
  16210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result_tpm_server" >&5
  16211. $as_echo "$result_tpm_server" >&6; }
  16212. else
  16213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16214. $as_echo "no" >&6; }
  16215. fi
  16216. if test "x$result_tpm_server" = "xyes"; then :
  16217. integration_tcti=mssim
  16218. $as_echo "#define INTEGRATION_TCTI_MSSIM 1" >>confdefs.h
  16219. else
  16220. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Executable tpm_server not found in PATH (fallback)" >&5
  16221. $as_echo "$as_me: WARNING: Executable tpm_server not found in PATH (fallback)" >&2;}
  16222. fi
  16223. fi
  16224. if test "x$integration_tcti" = "xnone"; then :
  16225. as_fn_error $? "No simulator executable found in PATH for testing TCTI." "$LINENO" 5
  16226. fi
  16227. INTEGRATION_TCTI=$integration_tcti
  16228. INTEGRATION_ARGS=$integration_args
  16229. ENABLE_INTEGRATION=$enable_integration
  16230. fi
  16231. if test "x$enable_integration" = "xyes"; then
  16232. ENABLE_INTEGRATION_TRUE=
  16233. ENABLE_INTEGRATION_FALSE='#'
  16234. else
  16235. ENABLE_INTEGRATION_TRUE='#'
  16236. ENABLE_INTEGRATION_FALSE=
  16237. fi
  16238. #
  16239. # sanitizer compiler flags
  16240. #
  16241. # Check whether --with-sanitizer was given.
  16242. if test "${with_sanitizer+set}" = set; then :
  16243. withval=$with_sanitizer;
  16244. else
  16245. with_sanitizer=none
  16246. fi
  16247. case "x$with_sanitizer" in #(
  16248. "xnone") :
  16249. ;; #(
  16250. "xaddress") :
  16251. SANITIZER_CFLAGS="-fsanitize=address -fno-omit-frame-pointer"
  16252. SANITIZER_LDFLAGS="-lasan"
  16253. ;; #(
  16254. "xundefined") :
  16255. SANITIZER_CFLAGS="-fsanitize=undefined"
  16256. SANITIZER_LDFLAGS="-lubsan"
  16257. ;; #(
  16258. "xundefined,address") :
  16259. SANITIZER_CFLAGS="-fsanitize=undefined,address -fno-omit-frame-pointer"
  16260. SANITIZER_LDFLAGS="-lasan -lubsan"
  16261. ;; #(
  16262. *) :
  16263. as_fn_error $? "Bad value for --with-sanitizer" "$LINENO" 5 ;;
  16264. esac
  16265. #
  16266. # fuzz testing
  16267. #
  16268. # Check whether --with-fuzzing was given.
  16269. if test "${with_fuzzing+set}" = set; then :
  16270. withval=$with_fuzzing;
  16271. else
  16272. with_fuzzing=none
  16273. fi
  16274. case "x$with_fuzzing" in #(
  16275. "xnone") :
  16276. ;; #(
  16277. "xlibfuzzer") :
  16278. FUZZ_LDFLAGS="$FUZZ_LDFLAGS -fsanitize=fuzzer"
  16279. ;; #(
  16280. "xossfuzz") :
  16281. if test "x$LIB_FUZZING_ENGINE" = "x"; then :
  16282. as_fn_error $? "OSS Fuzz testing requires LIB_FUZZING_ENGINE environment variable be set" "$LINENO" 5
  16283. fi
  16284. FUZZ_LDFLAGS="$FUZZ_LDFLAGS -lFuzzingEngine"
  16285. ;; #(
  16286. *) :
  16287. as_fn_error $? "Bad value for --with-fuzzing" "$LINENO" 5 ;;
  16288. esac
  16289. if test "x$with_fuzzing" != "xnone"; then
  16290. ENABLE_FUZZING_TRUE=
  16291. ENABLE_FUZZING_FALSE='#'
  16292. else
  16293. ENABLE_FUZZING_TRUE='#'
  16294. ENABLE_FUZZING_FALSE=
  16295. fi
  16296. if test "x$with_fuzzing" != "xnone"; then :
  16297. if test "x$enable_tcti_fuzzing" = xno; then :
  16298. as_fn_error $? "Fuzz tests can not be enabled without the TCTI_FUZZING module" "$LINENO" 5
  16299. fi
  16300. if test "x$GEN_FUZZ" != "x1"; then :
  16301. as_fn_error $? "Fuzz tests can not be enabled without \"GEN_FUZZ=1\" variable" "$LINENO" 5
  16302. fi
  16303. fi
  16304. # Check whether --enable-valgrind was given.
  16305. if test "${enable_valgrind+set}" = set; then :
  16306. enableval=$enable_valgrind; enable_valgrind=$enableval
  16307. else
  16308. enable_valgrind=
  16309. fi
  16310. if test "$enable_valgrind" != "no"; then :
  16311. # Check for Valgrind.
  16312. # Extract the first word of "valgrind", so it can be a program name with args.
  16313. set dummy valgrind; ac_word=$2
  16314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16315. $as_echo_n "checking for $ac_word... " >&6; }
  16316. if ${ac_cv_prog_VALGRIND+:} false; then :
  16317. $as_echo_n "(cached) " >&6
  16318. else
  16319. if test -n "$VALGRIND"; then
  16320. ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test.
  16321. else
  16322. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16323. for as_dir in $PATH
  16324. do
  16325. IFS=$as_save_IFS
  16326. test -z "$as_dir" && as_dir=.
  16327. for ac_exec_ext in '' $ac_executable_extensions; do
  16328. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16329. ac_cv_prog_VALGRIND="valgrind"
  16330. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16331. break 2
  16332. fi
  16333. done
  16334. done
  16335. IFS=$as_save_IFS
  16336. fi
  16337. fi
  16338. VALGRIND=$ac_cv_prog_VALGRIND
  16339. if test -n "$VALGRIND"; then
  16340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
  16341. $as_echo "$VALGRIND" >&6; }
  16342. else
  16343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16344. $as_echo "no" >&6; }
  16345. fi
  16346. if test "$VALGRIND" = ""; then :
  16347. if test "$enable_valgrind" = "yes"; then :
  16348. as_fn_error $? "Could not find valgrind; either install it or reconfigure with --disable-valgrind" "$LINENO" 5
  16349. else
  16350. enable_valgrind=no
  16351. fi
  16352. else
  16353. enable_valgrind=yes
  16354. fi
  16355. fi
  16356. if test "$enable_valgrind" = "yes"; then
  16357. VALGRIND_ENABLED_TRUE=
  16358. VALGRIND_ENABLED_FALSE='#'
  16359. else
  16360. VALGRIND_ENABLED_TRUE='#'
  16361. VALGRIND_ENABLED_FALSE=
  16362. fi
  16363. VALGRIND_ENABLED=$enable_valgrind
  16364. # Check for Valgrind tools we care about.
  16365. valgrind_enabled_tools=
  16366. # Check whether --enable-valgrind-memcheck was given.
  16367. if test "${enable_valgrind_memcheck+set}" = set; then :
  16368. enableval=$enable_valgrind_memcheck; enable_valgrind_memcheck=$enableval
  16369. else
  16370. enable_valgrind_memcheck=
  16371. fi
  16372. if test "$enable_valgrind" = "no"; then :
  16373. enable_valgrind_memcheck=no
  16374. elif test "$enable_valgrind_memcheck" != "no"; then :
  16375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Valgrind tool memcheck" >&5
  16376. $as_echo_n "checking for Valgrind tool memcheck... " >&6; }
  16377. if ${ax_cv_valgrind_tool_memcheck+:} false; then :
  16378. $as_echo_n "(cached) " >&6
  16379. else
  16380. ax_cv_valgrind_tool_memcheck=no
  16381. if `$VALGRIND --tool=memcheck --help >/dev/null 2>&1`; then :
  16382. ax_cv_valgrind_tool_memcheck=yes
  16383. fi
  16384. fi
  16385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_valgrind_tool_memcheck" >&5
  16386. $as_echo "$ax_cv_valgrind_tool_memcheck" >&6; }
  16387. if test "$ax_cv_valgrind_tool_memcheck" = "no"; then :
  16388. if test "$enable_valgrind_memcheck" = "yes"; then :
  16389. as_fn_error $? "Valgrind does not support memcheck; reconfigure with --disable-valgrind-memcheck" "$LINENO" 5
  16390. else
  16391. enable_valgrind_memcheck=no
  16392. fi
  16393. else
  16394. enable_valgrind_memcheck=yes
  16395. fi
  16396. fi
  16397. if test "$enable_valgrind_memcheck" = "yes"; then :
  16398. valgrind_enabled_tools="$valgrind_enabled_tools memcheck"
  16399. fi
  16400. ENABLE_VALGRIND_memcheck=$enable_valgrind_memcheck
  16401. # Check whether --enable-valgrind-helgrind was given.
  16402. if test "${enable_valgrind_helgrind+set}" = set; then :
  16403. enableval=$enable_valgrind_helgrind; enable_valgrind_helgrind=$enableval
  16404. else
  16405. enable_valgrind_helgrind=
  16406. fi
  16407. if test "$enable_valgrind" = "no"; then :
  16408. enable_valgrind_helgrind=no
  16409. elif test "$enable_valgrind_helgrind" != "no"; then :
  16410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Valgrind tool helgrind" >&5
  16411. $as_echo_n "checking for Valgrind tool helgrind... " >&6; }
  16412. if ${ax_cv_valgrind_tool_helgrind+:} false; then :
  16413. $as_echo_n "(cached) " >&6
  16414. else
  16415. ax_cv_valgrind_tool_helgrind=no
  16416. if `$VALGRIND --tool=helgrind --help >/dev/null 2>&1`; then :
  16417. ax_cv_valgrind_tool_helgrind=yes
  16418. fi
  16419. fi
  16420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_valgrind_tool_helgrind" >&5
  16421. $as_echo "$ax_cv_valgrind_tool_helgrind" >&6; }
  16422. if test "$ax_cv_valgrind_tool_helgrind" = "no"; then :
  16423. if test "$enable_valgrind_helgrind" = "yes"; then :
  16424. as_fn_error $? "Valgrind does not support helgrind; reconfigure with --disable-valgrind-helgrind" "$LINENO" 5
  16425. else
  16426. enable_valgrind_helgrind=no
  16427. fi
  16428. else
  16429. enable_valgrind_helgrind=yes
  16430. fi
  16431. fi
  16432. if test "$enable_valgrind_helgrind" = "yes"; then :
  16433. valgrind_enabled_tools="$valgrind_enabled_tools helgrind"
  16434. fi
  16435. ENABLE_VALGRIND_helgrind=$enable_valgrind_helgrind
  16436. # Check whether --enable-valgrind-drd was given.
  16437. if test "${enable_valgrind_drd+set}" = set; then :
  16438. enableval=$enable_valgrind_drd; enable_valgrind_drd=$enableval
  16439. else
  16440. enable_valgrind_drd=
  16441. fi
  16442. if test "$enable_valgrind" = "no"; then :
  16443. enable_valgrind_drd=no
  16444. elif test "$enable_valgrind_drd" != "no"; then :
  16445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Valgrind tool drd" >&5
  16446. $as_echo_n "checking for Valgrind tool drd... " >&6; }
  16447. if ${ax_cv_valgrind_tool_drd+:} false; then :
  16448. $as_echo_n "(cached) " >&6
  16449. else
  16450. ax_cv_valgrind_tool_drd=no
  16451. if `$VALGRIND --tool=drd --help >/dev/null 2>&1`; then :
  16452. ax_cv_valgrind_tool_drd=yes
  16453. fi
  16454. fi
  16455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_valgrind_tool_drd" >&5
  16456. $as_echo "$ax_cv_valgrind_tool_drd" >&6; }
  16457. if test "$ax_cv_valgrind_tool_drd" = "no"; then :
  16458. if test "$enable_valgrind_drd" = "yes"; then :
  16459. as_fn_error $? "Valgrind does not support drd; reconfigure with --disable-valgrind-drd" "$LINENO" 5
  16460. else
  16461. enable_valgrind_drd=no
  16462. fi
  16463. else
  16464. enable_valgrind_drd=yes
  16465. fi
  16466. fi
  16467. if test "$enable_valgrind_drd" = "yes"; then :
  16468. valgrind_enabled_tools="$valgrind_enabled_tools drd"
  16469. fi
  16470. ENABLE_VALGRIND_drd=$enable_valgrind_drd
  16471. # Check whether --enable-valgrind-sgcheck was given.
  16472. if test "${enable_valgrind_sgcheck+set}" = set; then :
  16473. enableval=$enable_valgrind_sgcheck; enable_valgrind_sgcheck=$enableval
  16474. else
  16475. enable_valgrind_sgcheck=
  16476. fi
  16477. if test "$enable_valgrind" = "no"; then :
  16478. enable_valgrind_sgcheck=no
  16479. elif test "$enable_valgrind_sgcheck" != "no"; then :
  16480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Valgrind tool sgcheck" >&5
  16481. $as_echo_n "checking for Valgrind tool sgcheck... " >&6; }
  16482. if ${ax_cv_valgrind_tool_sgcheck+:} false; then :
  16483. $as_echo_n "(cached) " >&6
  16484. else
  16485. ax_cv_valgrind_tool_sgcheck=no
  16486. if `$VALGRIND --tool=exp-sgcheck --help >/dev/null 2>&1`; then :
  16487. ax_cv_valgrind_tool_sgcheck=yes
  16488. fi
  16489. fi
  16490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_valgrind_tool_sgcheck" >&5
  16491. $as_echo "$ax_cv_valgrind_tool_sgcheck" >&6; }
  16492. if test "$ax_cv_valgrind_tool_sgcheck" = "no"; then :
  16493. if test "$enable_valgrind_sgcheck" = "yes"; then :
  16494. as_fn_error $? "Valgrind does not support sgcheck; reconfigure with --disable-valgrind-sgcheck" "$LINENO" 5
  16495. else
  16496. enable_valgrind_sgcheck=no
  16497. fi
  16498. else
  16499. enable_valgrind_sgcheck=yes
  16500. fi
  16501. fi
  16502. if test "$enable_valgrind_sgcheck" = "yes"; then :
  16503. valgrind_enabled_tools="$valgrind_enabled_tools sgcheck"
  16504. fi
  16505. ENABLE_VALGRIND_sgcheck=$enable_valgrind_sgcheck
  16506. valgrind_tools="memcheck helgrind drd sgcheck"
  16507. valgrind_enabled_tools=$valgrind_enabled_tools
  16508. VALGRIND_CHECK_RULES='
  16509. # Valgrind check
  16510. #
  16511. # Optional:
  16512. # - VALGRIND_SUPPRESSIONS_FILES: Space-separated list of Valgrind suppressions
  16513. # files to load. (Default: empty)
  16514. # - VALGRIND_FLAGS: General flags to pass to all Valgrind tools.
  16515. # (Default: --num-callers=30)
  16516. # - VALGRIND_$toolname_FLAGS: Flags to pass to Valgrind $toolname (one of:
  16517. # memcheck, helgrind, drd, sgcheck). (Default: various)
  16518. # Optional variables
  16519. VALGRIND_SUPPRESSIONS ?= $(addprefix --suppressions=,$(VALGRIND_SUPPRESSIONS_FILES))
  16520. VALGRIND_FLAGS ?= --num-callers=30
  16521. VALGRIND_memcheck_FLAGS ?= --leak-check=full --show-reachable=no
  16522. VALGRIND_helgrind_FLAGS ?= --history-level=approx
  16523. VALGRIND_drd_FLAGS ?=
  16524. VALGRIND_sgcheck_FLAGS ?=
  16525. # Internal use
  16526. valgrind_log_files = $(addprefix test-suite-,$(addsuffix .log,$(valgrind_tools)))
  16527. valgrind_memcheck_flags = --tool=memcheck $(VALGRIND_memcheck_FLAGS)
  16528. valgrind_helgrind_flags = --tool=helgrind $(VALGRIND_helgrind_FLAGS)
  16529. valgrind_drd_flags = --tool=drd $(VALGRIND_drd_FLAGS)
  16530. valgrind_sgcheck_flags = --tool=exp-sgcheck $(VALGRIND_sgcheck_FLAGS)
  16531. valgrind_quiet = $(valgrind_quiet_$(V))
  16532. valgrind_quiet_ = $(valgrind_quiet_$(AM_DEFAULT_VERBOSITY))
  16533. valgrind_quiet_0 = --quiet
  16534. valgrind_v_use = $(valgrind_v_use_$(V))
  16535. valgrind_v_use_ = $(valgrind_v_use_$(AM_DEFAULT_VERBOSITY))
  16536. valgrind_v_use_0 = @echo " USE " $(patsubst check-valgrind-%-am,%,$''@):;
  16537. # Support running with and without libtool.
  16538. ifneq ($(LIBTOOL),)
  16539. valgrind_lt = $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=execute
  16540. else
  16541. valgrind_lt =
  16542. endif
  16543. # Use recursive makes in order to ignore errors during check
  16544. check-valgrind-am:
  16545. ifeq ($(VALGRIND_ENABLED),yes)
  16546. $(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) -k \
  16547. $(foreach tool, $(valgrind_enabled_tools), check-valgrind-$(tool))
  16548. else
  16549. @echo "Need to reconfigure with --enable-valgrind"
  16550. endif
  16551. # Valgrind running
  16552. VALGRIND_TESTS_ENVIRONMENT = \
  16553. $(TESTS_ENVIRONMENT) \
  16554. env VALGRIND=$(VALGRIND) \
  16555. G_SLICE=always-malloc,debug-blocks \
  16556. G_DEBUG=fatal-warnings,fatal-criticals,gc-friendly
  16557. VALGRIND_LOG_COMPILER = \
  16558. $(valgrind_lt) \
  16559. $(VALGRIND) $(VALGRIND_SUPPRESSIONS) --error-exitcode=1 $(VALGRIND_FLAGS)
  16560. define valgrind_tool_rule
  16561. check-valgrind-$(1)-am:
  16562. ifeq ($$(VALGRIND_ENABLED)-$$(ENABLE_VALGRIND_$(1)),yes-yes)
  16563. ifneq ($$(TESTS),)
  16564. $$(valgrind_v_use)$$(MAKE) check-TESTS \
  16565. TESTS_ENVIRONMENT="$$(VALGRIND_TESTS_ENVIRONMENT)" \
  16566. LOG_COMPILER="$$(VALGRIND_LOG_COMPILER)" \
  16567. LOG_FLAGS="$$(valgrind_$(1)_flags)" \
  16568. TEST_SUITE_LOG=test-suite-$(1).log
  16569. endif
  16570. else ifeq ($$(VALGRIND_ENABLED),yes)
  16571. @echo "Need to reconfigure with --enable-valgrind-$(1)"
  16572. else
  16573. @echo "Need to reconfigure with --enable-valgrind"
  16574. endif
  16575. endef
  16576. $(foreach tool,$(valgrind_tools),$(eval $(call valgrind_tool_rule,$(tool))))
  16577. A''M_DISTCHECK_CONFIGURE_FLAGS ?=
  16578. A''M_DISTCHECK_CONFIGURE_FLAGS += --disable-valgrind
  16579. MOSTLYCLEANFILES ?=
  16580. MOSTLYCLEANFILES += $(valgrind_log_files)
  16581. .PHONY: check-valgrind $(add-prefix check-valgrind-,$(valgrind_tools))
  16582. '
  16583. # Check whether --enable-ld-version-script was given.
  16584. if test "${enable_ld_version_script+set}" = set; then :
  16585. enableval=$enable_ld_version_script; have_ld_version_script=$enableval
  16586. else
  16587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
  16588. $as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
  16589. if ${gl_cv_sys_ld_version_script+:} false; then :
  16590. $as_echo_n "(cached) " >&6
  16591. else
  16592. gl_cv_sys_ld_version_script=no
  16593. save_LDFLAGS=$LDFLAGS
  16594. LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
  16595. echo foo >conftest.map
  16596. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16597. /* end confdefs.h. */
  16598. int
  16599. main ()
  16600. {
  16601. ;
  16602. return 0;
  16603. }
  16604. _ACEOF
  16605. if ac_fn_c_try_link "$LINENO"; then :
  16606. else
  16607. cat > conftest.map <<EOF
  16608. VERS_1 {
  16609. global: sym;
  16610. };
  16611. VERS_2 {
  16612. global: sym;
  16613. } VERS_1;
  16614. EOF
  16615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16616. /* end confdefs.h. */
  16617. int
  16618. main ()
  16619. {
  16620. ;
  16621. return 0;
  16622. }
  16623. _ACEOF
  16624. if ac_fn_c_try_link "$LINENO"; then :
  16625. gl_cv_sys_ld_version_script=yes
  16626. fi
  16627. rm -f core conftest.err conftest.$ac_objext \
  16628. conftest$ac_exeext conftest.$ac_ext
  16629. fi
  16630. rm -f core conftest.err conftest.$ac_objext \
  16631. conftest$ac_exeext conftest.$ac_ext
  16632. rm -f conftest.map
  16633. LDFLAGS=$save_LDFLAGS
  16634. fi
  16635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_ld_version_script" >&5
  16636. $as_echo "$gl_cv_sys_ld_version_script" >&6; }
  16637. have_ld_version_script=$gl_cv_sys_ld_version_script
  16638. fi
  16639. if test "$have_ld_version_script" = yes; then
  16640. HAVE_LD_VERSION_SCRIPT_TRUE=
  16641. HAVE_LD_VERSION_SCRIPT_FALSE='#'
  16642. else
  16643. HAVE_LD_VERSION_SCRIPT_TRUE='#'
  16644. HAVE_LD_VERSION_SCRIPT_FALSE=
  16645. fi
  16646. # Check whether --enable-log-file was given.
  16647. if test "${enable_log_file+set}" = set; then :
  16648. enableval=$enable_log_file;
  16649. else
  16650. enable_log_file=yes
  16651. fi
  16652. if test "x$enable_log_file" != xno; then :
  16653. $as_echo "#define LOG_FILE_ENABLED 1" >>confdefs.h
  16654. fi
  16655. # Check whether --with-maxloglevel was given.
  16656. if test "${with_maxloglevel+set}" = set; then :
  16657. withval=$with_maxloglevel;
  16658. else
  16659. with_maxloglevel=trace
  16660. fi
  16661. case "x$with_maxloglevel" in #(
  16662. "xnone") :
  16663. cat >>confdefs.h <<_ACEOF
  16664. #define MAXLOGLEVEL 0
  16665. _ACEOF
  16666. ;; #(
  16667. "xerror") :
  16668. cat >>confdefs.h <<_ACEOF
  16669. #define MAXLOGLEVEL 2
  16670. _ACEOF
  16671. ;; #(
  16672. "xwarning") :
  16673. cat >>confdefs.h <<_ACEOF
  16674. #define MAXLOGLEVEL 3
  16675. _ACEOF
  16676. ;; #(
  16677. "xinfo") :
  16678. cat >>confdefs.h <<_ACEOF
  16679. #define MAXLOGLEVEL 4
  16680. _ACEOF
  16681. ;; #(
  16682. "xdebug") :
  16683. cat >>confdefs.h <<_ACEOF
  16684. #define MAXLOGLEVEL 5
  16685. _ACEOF
  16686. ;; #(
  16687. "xtrace") :
  16688. cat >>confdefs.h <<_ACEOF
  16689. #define MAXLOGLEVEL 6
  16690. _ACEOF
  16691. ;; #(
  16692. *) :
  16693. as_fn_error $? "Bad value for --with-maxloglevel" "$LINENO" 5 ;;
  16694. esac
  16695. # Check whether --enable-defaultflags was given.
  16696. if test "${enable_defaultflags+set}" = set; then :
  16697. enableval=$enable_defaultflags;
  16698. else
  16699. enable_defaultflags=yes
  16700. fi
  16701. if test "x$enable_defaultflags" = "xyes"; then :
  16702. if test "x$enable_debug" = "xno"; then :
  16703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -O2" >&5
  16704. $as_echo_n "checking whether C compiler accepts -O2... " >&6; }
  16705. if ${ax_cv_check_cflags___________Wall__Werror_______O2+:} false; then :
  16706. $as_echo_n "(cached) " >&6
  16707. else
  16708. ax_check_save_flags=$CFLAGS
  16709. CFLAGS="$CFLAGS
  16710. -Wall -Werror
  16711. -O2"
  16712. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16713. /* end confdefs.h. */
  16714. int
  16715. main ()
  16716. {
  16717. ;
  16718. return 0;
  16719. }
  16720. _ACEOF
  16721. if ac_fn_c_try_compile "$LINENO"; then :
  16722. ax_cv_check_cflags___________Wall__Werror_______O2=yes
  16723. else
  16724. ax_cv_check_cflags___________Wall__Werror_______O2=no
  16725. fi
  16726. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16727. CFLAGS=$ax_check_save_flags
  16728. fi
  16729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___________Wall__Werror_______O2" >&5
  16730. $as_echo "$ax_cv_check_cflags___________Wall__Werror_______O2" >&6; }
  16731. if test "x$ax_cv_check_cflags___________Wall__Werror_______O2" = xyes; then :
  16732. EXTRA_CFLAGS="$EXTRA_CFLAGS -O2"
  16733. else
  16734. if test x != xrequired; then :
  16735. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Optional CFLAG \"-O2\" not supported by your compiler, continuing." >&5
  16736. $as_echo "$as_me: WARNING: Optional CFLAG \"-O2\" not supported by your compiler, continuing." >&2;}
  16737. else
  16738. as_fn_error $? "Required CFLAG \"-O2\" not supported by your compiler, aborting." "$LINENO" 5
  16739. fi
  16740. fi
  16741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to add -D_FORTIFY_SOURCE=2 to CPPFLAGS" >&5
  16742. $as_echo_n "checking whether to add -D_FORTIFY_SOURCE=2 to CPPFLAGS... " >&6; }
  16743. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16744. /* end confdefs.h. */
  16745. int main() {
  16746. #ifndef _FORTIFY_SOURCE
  16747. return 0;
  16748. #else
  16749. this_is_an_error;
  16750. #endif
  16751. }
  16752. _ACEOF
  16753. if ac_fn_c_try_link "$LINENO"; then :
  16754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16755. $as_echo "yes" >&6; }
  16756. CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2"
  16757. else
  16758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16759. $as_echo "no" >&6; }
  16760. fi
  16761. rm -f core conftest.err conftest.$ac_objext \
  16762. conftest$ac_exeext conftest.$ac_ext
  16763. fi
  16764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -std=c99" >&5
  16765. $as_echo_n "checking whether C compiler accepts -std=c99... " >&6; }
  16766. if ${ax_cv_check_cflags___________Wall__Werror_______std_c99+:} false; then :
  16767. $as_echo_n "(cached) " >&6
  16768. else
  16769. ax_check_save_flags=$CFLAGS
  16770. CFLAGS="$CFLAGS
  16771. -Wall -Werror
  16772. -std=c99"
  16773. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16774. /* end confdefs.h. */
  16775. int
  16776. main ()
  16777. {
  16778. ;
  16779. return 0;
  16780. }
  16781. _ACEOF
  16782. if ac_fn_c_try_compile "$LINENO"; then :
  16783. ax_cv_check_cflags___________Wall__Werror_______std_c99=yes
  16784. else
  16785. ax_cv_check_cflags___________Wall__Werror_______std_c99=no
  16786. fi
  16787. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16788. CFLAGS=$ax_check_save_flags
  16789. fi
  16790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___________Wall__Werror_______std_c99" >&5
  16791. $as_echo "$ax_cv_check_cflags___________Wall__Werror_______std_c99" >&6; }
  16792. if test "x$ax_cv_check_cflags___________Wall__Werror_______std_c99" = xyes; then :
  16793. EXTRA_CFLAGS="$EXTRA_CFLAGS -std=c99"
  16794. else
  16795. if test x != xrequired; then :
  16796. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Optional CFLAG \"-std=c99\" not supported by your compiler, continuing." >&5
  16797. $as_echo "$as_me: WARNING: Optional CFLAG \"-std=c99\" not supported by your compiler, continuing." >&2;}
  16798. else
  16799. as_fn_error $? "Required CFLAG \"-std=c99\" not supported by your compiler, aborting." "$LINENO" 5
  16800. fi
  16801. fi
  16802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wall" >&5
  16803. $as_echo_n "checking whether C compiler accepts -Wall... " >&6; }
  16804. if ${ax_cv_check_cflags___________Wall__Werror_______Wall+:} false; then :
  16805. $as_echo_n "(cached) " >&6
  16806. else
  16807. ax_check_save_flags=$CFLAGS
  16808. CFLAGS="$CFLAGS
  16809. -Wall -Werror
  16810. -Wall"
  16811. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16812. /* end confdefs.h. */
  16813. int
  16814. main ()
  16815. {
  16816. ;
  16817. return 0;
  16818. }
  16819. _ACEOF
  16820. if ac_fn_c_try_compile "$LINENO"; then :
  16821. ax_cv_check_cflags___________Wall__Werror_______Wall=yes
  16822. else
  16823. ax_cv_check_cflags___________Wall__Werror_______Wall=no
  16824. fi
  16825. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16826. CFLAGS=$ax_check_save_flags
  16827. fi
  16828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___________Wall__Werror_______Wall" >&5
  16829. $as_echo "$ax_cv_check_cflags___________Wall__Werror_______Wall" >&6; }
  16830. if test "x$ax_cv_check_cflags___________Wall__Werror_______Wall" = xyes; then :
  16831. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  16832. else
  16833. if test x != xrequired; then :
  16834. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Optional CFLAG \"-Wall\" not supported by your compiler, continuing." >&5
  16835. $as_echo "$as_me: WARNING: Optional CFLAG \"-Wall\" not supported by your compiler, continuing." >&2;}
  16836. else
  16837. as_fn_error $? "Required CFLAG \"-Wall\" not supported by your compiler, aborting." "$LINENO" 5
  16838. fi
  16839. fi
  16840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wextra" >&5
  16841. $as_echo_n "checking whether C compiler accepts -Wextra... " >&6; }
  16842. if ${ax_cv_check_cflags___________Wall__Werror_______Wextra+:} false; then :
  16843. $as_echo_n "(cached) " >&6
  16844. else
  16845. ax_check_save_flags=$CFLAGS
  16846. CFLAGS="$CFLAGS
  16847. -Wall -Werror
  16848. -Wextra"
  16849. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16850. /* end confdefs.h. */
  16851. int
  16852. main ()
  16853. {
  16854. ;
  16855. return 0;
  16856. }
  16857. _ACEOF
  16858. if ac_fn_c_try_compile "$LINENO"; then :
  16859. ax_cv_check_cflags___________Wall__Werror_______Wextra=yes
  16860. else
  16861. ax_cv_check_cflags___________Wall__Werror_______Wextra=no
  16862. fi
  16863. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16864. CFLAGS=$ax_check_save_flags
  16865. fi
  16866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___________Wall__Werror_______Wextra" >&5
  16867. $as_echo "$ax_cv_check_cflags___________Wall__Werror_______Wextra" >&6; }
  16868. if test "x$ax_cv_check_cflags___________Wall__Werror_______Wextra" = xyes; then :
  16869. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wextra"
  16870. else
  16871. if test x != xrequired; then :
  16872. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Optional CFLAG \"-Wextra\" not supported by your compiler, continuing." >&5
  16873. $as_echo "$as_me: WARNING: Optional CFLAG \"-Wextra\" not supported by your compiler, continuing." >&2;}
  16874. else
  16875. as_fn_error $? "Required CFLAG \"-Wextra\" not supported by your compiler, aborting." "$LINENO" 5
  16876. fi
  16877. fi
  16878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wformat-security" >&5
  16879. $as_echo_n "checking whether C compiler accepts -Wformat-security... " >&6; }
  16880. if ${ax_cv_check_cflags___________Wall__Werror_______Wformat_security+:} false; then :
  16881. $as_echo_n "(cached) " >&6
  16882. else
  16883. ax_check_save_flags=$CFLAGS
  16884. CFLAGS="$CFLAGS
  16885. -Wall -Werror
  16886. -Wformat-security"
  16887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16888. /* end confdefs.h. */
  16889. int
  16890. main ()
  16891. {
  16892. ;
  16893. return 0;
  16894. }
  16895. _ACEOF
  16896. if ac_fn_c_try_compile "$LINENO"; then :
  16897. ax_cv_check_cflags___________Wall__Werror_______Wformat_security=yes
  16898. else
  16899. ax_cv_check_cflags___________Wall__Werror_______Wformat_security=no
  16900. fi
  16901. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16902. CFLAGS=$ax_check_save_flags
  16903. fi
  16904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___________Wall__Werror_______Wformat_security" >&5
  16905. $as_echo "$ax_cv_check_cflags___________Wall__Werror_______Wformat_security" >&6; }
  16906. if test "x$ax_cv_check_cflags___________Wall__Werror_______Wformat_security" = xyes; then :
  16907. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wformat-security"
  16908. else
  16909. if test x != xrequired; then :
  16910. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Optional CFLAG \"-Wformat-security\" not supported by your compiler, continuing." >&5
  16911. $as_echo "$as_me: WARNING: Optional CFLAG \"-Wformat-security\" not supported by your compiler, continuing." >&2;}
  16912. else
  16913. as_fn_error $? "Required CFLAG \"-Wformat-security\" not supported by your compiler, aborting." "$LINENO" 5
  16914. fi
  16915. fi
  16916. if test "x$ax_is_release" = "xno"; then :
  16917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror" >&5
  16918. $as_echo_n "checking whether C compiler accepts -Werror... " >&6; }
  16919. if ${ax_cv_check_cflags___________Wall__Werror_______Werror+:} false; then :
  16920. $as_echo_n "(cached) " >&6
  16921. else
  16922. ax_check_save_flags=$CFLAGS
  16923. CFLAGS="$CFLAGS
  16924. -Wall -Werror
  16925. -Werror"
  16926. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16927. /* end confdefs.h. */
  16928. int
  16929. main ()
  16930. {
  16931. ;
  16932. return 0;
  16933. }
  16934. _ACEOF
  16935. if ac_fn_c_try_compile "$LINENO"; then :
  16936. ax_cv_check_cflags___________Wall__Werror_______Werror=yes
  16937. else
  16938. ax_cv_check_cflags___________Wall__Werror_______Werror=no
  16939. fi
  16940. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16941. CFLAGS=$ax_check_save_flags
  16942. fi
  16943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___________Wall__Werror_______Werror" >&5
  16944. $as_echo "$ax_cv_check_cflags___________Wall__Werror_______Werror" >&6; }
  16945. if test "x$ax_cv_check_cflags___________Wall__Werror_______Werror" = xyes; then :
  16946. EXTRA_CFLAGS="$EXTRA_CFLAGS -Werror"
  16947. else
  16948. if test x != xrequired; then :
  16949. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Optional CFLAG \"-Werror\" not supported by your compiler, continuing." >&5
  16950. $as_echo "$as_me: WARNING: Optional CFLAG \"-Werror\" not supported by your compiler, continuing." >&2;}
  16951. else
  16952. as_fn_error $? "Required CFLAG \"-Werror\" not supported by your compiler, aborting." "$LINENO" 5
  16953. fi
  16954. fi
  16955. fi
  16956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstack-protector-all" >&5
  16957. $as_echo_n "checking whether C compiler accepts -fstack-protector-all... " >&6; }
  16958. if ${ax_cv_check_cflags___________Wall__Werror_______fstack_protector_all+:} false; then :
  16959. $as_echo_n "(cached) " >&6
  16960. else
  16961. ax_check_save_flags=$CFLAGS
  16962. CFLAGS="$CFLAGS
  16963. -Wall -Werror
  16964. -fstack-protector-all"
  16965. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16966. /* end confdefs.h. */
  16967. int
  16968. main ()
  16969. {
  16970. ;
  16971. return 0;
  16972. }
  16973. _ACEOF
  16974. if ac_fn_c_try_compile "$LINENO"; then :
  16975. ax_cv_check_cflags___________Wall__Werror_______fstack_protector_all=yes
  16976. else
  16977. ax_cv_check_cflags___________Wall__Werror_______fstack_protector_all=no
  16978. fi
  16979. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16980. CFLAGS=$ax_check_save_flags
  16981. fi
  16982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___________Wall__Werror_______fstack_protector_all" >&5
  16983. $as_echo "$ax_cv_check_cflags___________Wall__Werror_______fstack_protector_all" >&6; }
  16984. if test "x$ax_cv_check_cflags___________Wall__Werror_______fstack_protector_all" = xyes; then :
  16985. EXTRA_CFLAGS="$EXTRA_CFLAGS -fstack-protector-all"
  16986. else
  16987. if test x != xrequired; then :
  16988. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Optional CFLAG \"-fstack-protector-all\" not supported by your compiler, continuing." >&5
  16989. $as_echo "$as_me: WARNING: Optional CFLAG \"-fstack-protector-all\" not supported by your compiler, continuing." >&2;}
  16990. else
  16991. as_fn_error $? "Required CFLAG \"-fstack-protector-all\" not supported by your compiler, aborting." "$LINENO" 5
  16992. fi
  16993. fi
  16994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fpic" >&5
  16995. $as_echo_n "checking whether C compiler accepts -fpic... " >&6; }
  16996. if ${ax_cv_check_cflags___________Wall__Werror_______fpic+:} false; then :
  16997. $as_echo_n "(cached) " >&6
  16998. else
  16999. ax_check_save_flags=$CFLAGS
  17000. CFLAGS="$CFLAGS
  17001. -Wall -Werror
  17002. -fpic"
  17003. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17004. /* end confdefs.h. */
  17005. int
  17006. main ()
  17007. {
  17008. ;
  17009. return 0;
  17010. }
  17011. _ACEOF
  17012. if ac_fn_c_try_compile "$LINENO"; then :
  17013. ax_cv_check_cflags___________Wall__Werror_______fpic=yes
  17014. else
  17015. ax_cv_check_cflags___________Wall__Werror_______fpic=no
  17016. fi
  17017. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17018. CFLAGS=$ax_check_save_flags
  17019. fi
  17020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___________Wall__Werror_______fpic" >&5
  17021. $as_echo "$ax_cv_check_cflags___________Wall__Werror_______fpic" >&6; }
  17022. if test "x$ax_cv_check_cflags___________Wall__Werror_______fpic" = xyes; then :
  17023. EXTRA_CFLAGS="$EXTRA_CFLAGS -fpic"
  17024. else
  17025. if test x != xrequired; then :
  17026. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Optional CFLAG \"-fpic\" not supported by your compiler, continuing." >&5
  17027. $as_echo "$as_me: WARNING: Optional CFLAG \"-fpic\" not supported by your compiler, continuing." >&2;}
  17028. else
  17029. as_fn_error $? "Required CFLAG \"-fpic\" not supported by your compiler, aborting." "$LINENO" 5
  17030. fi
  17031. fi
  17032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fPIC" >&5
  17033. $as_echo_n "checking whether C compiler accepts -fPIC... " >&6; }
  17034. if ${ax_cv_check_cflags___________Wall__Werror_______fPIC+:} false; then :
  17035. $as_echo_n "(cached) " >&6
  17036. else
  17037. ax_check_save_flags=$CFLAGS
  17038. CFLAGS="$CFLAGS
  17039. -Wall -Werror
  17040. -fPIC"
  17041. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17042. /* end confdefs.h. */
  17043. int
  17044. main ()
  17045. {
  17046. ;
  17047. return 0;
  17048. }
  17049. _ACEOF
  17050. if ac_fn_c_try_compile "$LINENO"; then :
  17051. ax_cv_check_cflags___________Wall__Werror_______fPIC=yes
  17052. else
  17053. ax_cv_check_cflags___________Wall__Werror_______fPIC=no
  17054. fi
  17055. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17056. CFLAGS=$ax_check_save_flags
  17057. fi
  17058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___________Wall__Werror_______fPIC" >&5
  17059. $as_echo "$ax_cv_check_cflags___________Wall__Werror_______fPIC" >&6; }
  17060. if test "x$ax_cv_check_cflags___________Wall__Werror_______fPIC" = xyes; then :
  17061. EXTRA_CFLAGS="$EXTRA_CFLAGS -fPIC"
  17062. else
  17063. if test x != xrequired; then :
  17064. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Optional CFLAG \"-fPIC\" not supported by your compiler, continuing." >&5
  17065. $as_echo "$as_me: WARNING: Optional CFLAG \"-fPIC\" not supported by your compiler, continuing." >&2;}
  17066. else
  17067. as_fn_error $? "Required CFLAG \"-fPIC\" not supported by your compiler, aborting." "$LINENO" 5
  17068. fi
  17069. fi
  17070. # work around GCC bug #53119
  17071. # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53119
  17072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-missing-braces" >&5
  17073. $as_echo_n "checking whether C compiler accepts -Wno-missing-braces... " >&6; }
  17074. if ${ax_cv_check_cflags___________Wall__Werror_______Wno_missing_braces+:} false; then :
  17075. $as_echo_n "(cached) " >&6
  17076. else
  17077. ax_check_save_flags=$CFLAGS
  17078. CFLAGS="$CFLAGS
  17079. -Wall -Werror
  17080. -Wno-missing-braces"
  17081. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17082. /* end confdefs.h. */
  17083. int
  17084. main ()
  17085. {
  17086. ;
  17087. return 0;
  17088. }
  17089. _ACEOF
  17090. if ac_fn_c_try_compile "$LINENO"; then :
  17091. ax_cv_check_cflags___________Wall__Werror_______Wno_missing_braces=yes
  17092. else
  17093. ax_cv_check_cflags___________Wall__Werror_______Wno_missing_braces=no
  17094. fi
  17095. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17096. CFLAGS=$ax_check_save_flags
  17097. fi
  17098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___________Wall__Werror_______Wno_missing_braces" >&5
  17099. $as_echo "$ax_cv_check_cflags___________Wall__Werror_______Wno_missing_braces" >&6; }
  17100. if test "x$ax_cv_check_cflags___________Wall__Werror_______Wno_missing_braces" = xyes; then :
  17101. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-missing-braces"
  17102. else
  17103. if test x != xrequired; then :
  17104. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Optional CFLAG \"-Wno-missing-braces\" not supported by your compiler, continuing." >&5
  17105. $as_echo "$as_me: WARNING: Optional CFLAG \"-Wno-missing-braces\" not supported by your compiler, continuing." >&2;}
  17106. else
  17107. as_fn_error $? "Required CFLAG \"-Wno-missing-braces\" not supported by your compiler, aborting." "$LINENO" 5
  17108. fi
  17109. fi
  17110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wstrict-overflow=5" >&5
  17111. $as_echo_n "checking whether C compiler accepts -Wstrict-overflow=5... " >&6; }
  17112. if ${ax_cv_check_cflags___________Wall__Werror_______Wstrict_overflow_5+:} false; then :
  17113. $as_echo_n "(cached) " >&6
  17114. else
  17115. ax_check_save_flags=$CFLAGS
  17116. CFLAGS="$CFLAGS
  17117. -Wall -Werror
  17118. -Wstrict-overflow=5"
  17119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17120. /* end confdefs.h. */
  17121. int
  17122. main ()
  17123. {
  17124. ;
  17125. return 0;
  17126. }
  17127. _ACEOF
  17128. if ac_fn_c_try_compile "$LINENO"; then :
  17129. ax_cv_check_cflags___________Wall__Werror_______Wstrict_overflow_5=yes
  17130. else
  17131. ax_cv_check_cflags___________Wall__Werror_______Wstrict_overflow_5=no
  17132. fi
  17133. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17134. CFLAGS=$ax_check_save_flags
  17135. fi
  17136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___________Wall__Werror_______Wstrict_overflow_5" >&5
  17137. $as_echo "$ax_cv_check_cflags___________Wall__Werror_______Wstrict_overflow_5" >&6; }
  17138. if test "x$ax_cv_check_cflags___________Wall__Werror_______Wstrict_overflow_5" = xyes; then :
  17139. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wstrict-overflow=5"
  17140. else
  17141. if test x != xrequired; then :
  17142. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Optional CFLAG \"-Wstrict-overflow=5\" not supported by your compiler, continuing." >&5
  17143. $as_echo "$as_me: WARNING: Optional CFLAG \"-Wstrict-overflow=5\" not supported by your compiler, continuing." >&2;}
  17144. else
  17145. as_fn_error $? "Required CFLAG \"-Wstrict-overflow=5\" not supported by your compiler, aborting." "$LINENO" 5
  17146. fi
  17147. fi
  17148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--no-undefined" >&5
  17149. $as_echo_n "checking whether the linker accepts -Wl,--no-undefined... " >&6; }
  17150. if ${ax_cv_check_ldflags___Wl___no_undefined+:} false; then :
  17151. $as_echo_n "(cached) " >&6
  17152. else
  17153. ax_check_save_flags=$LDFLAGS
  17154. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  17155. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17156. /* end confdefs.h. */
  17157. int
  17158. main ()
  17159. {
  17160. ;
  17161. return 0;
  17162. }
  17163. _ACEOF
  17164. if ac_fn_c_try_link "$LINENO"; then :
  17165. ax_cv_check_ldflags___Wl___no_undefined=yes
  17166. else
  17167. ax_cv_check_ldflags___Wl___no_undefined=no
  17168. fi
  17169. rm -f core conftest.err conftest.$ac_objext \
  17170. conftest$ac_exeext conftest.$ac_ext
  17171. LDFLAGS=$ax_check_save_flags
  17172. fi
  17173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___no_undefined" >&5
  17174. $as_echo "$ax_cv_check_ldflags___Wl___no_undefined" >&6; }
  17175. if test "x$ax_cv_check_ldflags___Wl___no_undefined" = xyes; then :
  17176. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
  17177. else
  17178. if test x != xrequired; then :
  17179. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Optional LDFLAG \"-Wl,--no-undefined\" not supported by your linker, continuing." >&5
  17180. $as_echo "$as_me: WARNING: Optional LDFLAG \"-Wl,--no-undefined\" not supported by your linker, continuing." >&2;}
  17181. else
  17182. as_fn_error $? "Required LDFLAG \"-Wl,--no-undefined\" not supported by your linker, aborting." "$LINENO" 5
  17183. fi
  17184. fi
  17185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,noexecstack" >&5
  17186. $as_echo_n "checking whether the linker accepts -Wl,-z,noexecstack... " >&6; }
  17187. if ${ax_cv_check_ldflags___Wl__z_noexecstack+:} false; then :
  17188. $as_echo_n "(cached) " >&6
  17189. else
  17190. ax_check_save_flags=$LDFLAGS
  17191. LDFLAGS="$LDFLAGS -Wl,-z,noexecstack"
  17192. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17193. /* end confdefs.h. */
  17194. int
  17195. main ()
  17196. {
  17197. ;
  17198. return 0;
  17199. }
  17200. _ACEOF
  17201. if ac_fn_c_try_link "$LINENO"; then :
  17202. ax_cv_check_ldflags___Wl__z_noexecstack=yes
  17203. else
  17204. ax_cv_check_ldflags___Wl__z_noexecstack=no
  17205. fi
  17206. rm -f core conftest.err conftest.$ac_objext \
  17207. conftest$ac_exeext conftest.$ac_ext
  17208. LDFLAGS=$ax_check_save_flags
  17209. fi
  17210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_noexecstack" >&5
  17211. $as_echo "$ax_cv_check_ldflags___Wl__z_noexecstack" >&6; }
  17212. if test "x$ax_cv_check_ldflags___Wl__z_noexecstack" = xyes; then :
  17213. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-z,noexecstack"
  17214. else
  17215. if test x != xrequired; then :
  17216. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Optional LDFLAG \"-Wl,-z,noexecstack\" not supported by your linker, continuing." >&5
  17217. $as_echo "$as_me: WARNING: Optional LDFLAG \"-Wl,-z,noexecstack\" not supported by your linker, continuing." >&2;}
  17218. else
  17219. as_fn_error $? "Required LDFLAG \"-Wl,-z,noexecstack\" not supported by your linker, aborting." "$LINENO" 5
  17220. fi
  17221. fi
  17222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,now" >&5
  17223. $as_echo_n "checking whether the linker accepts -Wl,-z,now... " >&6; }
  17224. if ${ax_cv_check_ldflags___Wl__z_now+:} false; then :
  17225. $as_echo_n "(cached) " >&6
  17226. else
  17227. ax_check_save_flags=$LDFLAGS
  17228. LDFLAGS="$LDFLAGS -Wl,-z,now"
  17229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17230. /* end confdefs.h. */
  17231. int
  17232. main ()
  17233. {
  17234. ;
  17235. return 0;
  17236. }
  17237. _ACEOF
  17238. if ac_fn_c_try_link "$LINENO"; then :
  17239. ax_cv_check_ldflags___Wl__z_now=yes
  17240. else
  17241. ax_cv_check_ldflags___Wl__z_now=no
  17242. fi
  17243. rm -f core conftest.err conftest.$ac_objext \
  17244. conftest$ac_exeext conftest.$ac_ext
  17245. LDFLAGS=$ax_check_save_flags
  17246. fi
  17247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_now" >&5
  17248. $as_echo "$ax_cv_check_ldflags___Wl__z_now" >&6; }
  17249. if test "x$ax_cv_check_ldflags___Wl__z_now" = xyes; then :
  17250. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-z,now"
  17251. else
  17252. if test x != xrequired; then :
  17253. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Optional LDFLAG \"-Wl,-z,now\" not supported by your linker, continuing." >&5
  17254. $as_echo "$as_me: WARNING: Optional LDFLAG \"-Wl,-z,now\" not supported by your linker, continuing." >&2;}
  17255. else
  17256. as_fn_error $? "Required LDFLAG \"-Wl,-z,now\" not supported by your linker, aborting." "$LINENO" 5
  17257. fi
  17258. fi
  17259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,relro" >&5
  17260. $as_echo_n "checking whether the linker accepts -Wl,-z,relro... " >&6; }
  17261. if ${ax_cv_check_ldflags___Wl__z_relro+:} false; then :
  17262. $as_echo_n "(cached) " >&6
  17263. else
  17264. ax_check_save_flags=$LDFLAGS
  17265. LDFLAGS="$LDFLAGS -Wl,-z,relro"
  17266. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17267. /* end confdefs.h. */
  17268. int
  17269. main ()
  17270. {
  17271. ;
  17272. return 0;
  17273. }
  17274. _ACEOF
  17275. if ac_fn_c_try_link "$LINENO"; then :
  17276. ax_cv_check_ldflags___Wl__z_relro=yes
  17277. else
  17278. ax_cv_check_ldflags___Wl__z_relro=no
  17279. fi
  17280. rm -f core conftest.err conftest.$ac_objext \
  17281. conftest$ac_exeext conftest.$ac_ext
  17282. LDFLAGS=$ax_check_save_flags
  17283. fi
  17284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_relro" >&5
  17285. $as_echo "$ax_cv_check_ldflags___Wl__z_relro" >&6; }
  17286. if test "x$ax_cv_check_ldflags___Wl__z_relro" = xyes; then :
  17287. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-z,relro"
  17288. else
  17289. if test x != xrequired; then :
  17290. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Optional LDFLAG \"-Wl,-z,relro\" not supported by your linker, continuing." >&5
  17291. $as_echo "$as_me: WARNING: Optional LDFLAG \"-Wl,-z,relro\" not supported by your linker, continuing." >&2;}
  17292. else
  17293. as_fn_error $? "Required LDFLAG \"-Wl,-z,relro\" not supported by your linker, aborting." "$LINENO" 5
  17294. fi
  17295. fi
  17296. fi
  17297. # Check whether --enable-weakcrypto was given.
  17298. if test "${enable_weakcrypto+set}" = set; then :
  17299. enableval=$enable_weakcrypto;
  17300. else
  17301. enable_weakcrypto=no
  17302. fi
  17303. if test "x$enable_weakcrypto" = "xyes"; then :
  17304. $as_echo "#define DISABLE_WEAK_CRYPTO 1" >>confdefs.h
  17305. fi
  17306. # Check whether --enable-self-generated-certificate was given.
  17307. if test "${enable_self_generated_certificate+set}" = set; then :
  17308. enableval=$enable_self_generated_certificate;
  17309. else
  17310. enable_self_generated_certificate=no
  17311. fi
  17312. if test "x$enable_self_generated_certificate" = xyes; then :
  17313. $as_echo "#define SELF_GENERATED_CERTIFICATE 1" >>confdefs.h
  17314. else
  17315. if test "x$integration_tcti" != "xdevice"; then :
  17316. $as_echo "#define FAPI_TEST_EK_CERT_LESS 1" >>confdefs.h
  17317. fi
  17318. fi
  17319. if test "x$enable_integration" = "xyes" && test "x$enable_self_generated_certificate" != "xyes" && test "x$integration_tcti" != "xdevice"; then :
  17320. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Running integration tests without EK certificate verification, use --enable-self-generated-certificate for full test coverage" >&5
  17321. $as_echo "$as_me: WARNING: Running integration tests without EK certificate verification, use --enable-self-generated-certificate for full test coverage" >&2;}
  17322. fi
  17323. # Check for systemd helper tools used by make install
  17324. # Extract the first word of "systemd-sysusers", so it can be a program name with args.
  17325. set dummy systemd-sysusers; ac_word=$2
  17326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17327. $as_echo_n "checking for $ac_word... " >&6; }
  17328. if ${ac_cv_prog_systemd_sysusers+:} false; then :
  17329. $as_echo_n "(cached) " >&6
  17330. else
  17331. if test -n "$systemd_sysusers"; then
  17332. ac_cv_prog_systemd_sysusers="$systemd_sysusers" # Let the user override the test.
  17333. else
  17334. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17335. for as_dir in $PATH
  17336. do
  17337. IFS=$as_save_IFS
  17338. test -z "$as_dir" && as_dir=.
  17339. for ac_exec_ext in '' $ac_executable_extensions; do
  17340. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17341. ac_cv_prog_systemd_sysusers="yes"
  17342. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17343. break 2
  17344. fi
  17345. done
  17346. done
  17347. IFS=$as_save_IFS
  17348. fi
  17349. fi
  17350. systemd_sysusers=$ac_cv_prog_systemd_sysusers
  17351. if test -n "$systemd_sysusers"; then
  17352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $systemd_sysusers" >&5
  17353. $as_echo "$systemd_sysusers" >&6; }
  17354. else
  17355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17356. $as_echo "no" >&6; }
  17357. fi
  17358. if test "x$systemd_sysusers" = "xyes"; then
  17359. SYSD_SYSUSERS_TRUE=
  17360. SYSD_SYSUSERS_FALSE='#'
  17361. else
  17362. SYSD_SYSUSERS_TRUE='#'
  17363. SYSD_SYSUSERS_FALSE=
  17364. fi
  17365. # Extract the first word of "systemd-tmpfiles", so it can be a program name with args.
  17366. set dummy systemd-tmpfiles; ac_word=$2
  17367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17368. $as_echo_n "checking for $ac_word... " >&6; }
  17369. if ${ac_cv_prog_systemd_tmpfiles+:} false; then :
  17370. $as_echo_n "(cached) " >&6
  17371. else
  17372. if test -n "$systemd_tmpfiles"; then
  17373. ac_cv_prog_systemd_tmpfiles="$systemd_tmpfiles" # Let the user override the test.
  17374. else
  17375. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17376. for as_dir in $PATH
  17377. do
  17378. IFS=$as_save_IFS
  17379. test -z "$as_dir" && as_dir=.
  17380. for ac_exec_ext in '' $ac_executable_extensions; do
  17381. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17382. ac_cv_prog_systemd_tmpfiles="yes"
  17383. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17384. break 2
  17385. fi
  17386. done
  17387. done
  17388. IFS=$as_save_IFS
  17389. fi
  17390. fi
  17391. systemd_tmpfiles=$ac_cv_prog_systemd_tmpfiles
  17392. if test -n "$systemd_tmpfiles"; then
  17393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $systemd_tmpfiles" >&5
  17394. $as_echo "$systemd_tmpfiles" >&6; }
  17395. else
  17396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17397. $as_echo "no" >&6; }
  17398. fi
  17399. if test "x$systemd_tmpfiles" = "xyes"; then
  17400. SYSD_TMPFILES_TRUE=
  17401. SYSD_TMPFILES_FALSE='#'
  17402. else
  17403. SYSD_TMPFILES_TRUE='#'
  17404. SYSD_TMPFILES_FALSE=
  17405. fi
  17406. # Check all tools used by make install
  17407. if test "$HOSTOS" = "Linux"; then :
  17408. # Extract the first word of "useradd", so it can be a program name with args.
  17409. set dummy useradd; ac_word=$2
  17410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17411. $as_echo_n "checking for $ac_word... " >&6; }
  17412. if ${ac_cv_prog_useradd+:} false; then :
  17413. $as_echo_n "(cached) " >&6
  17414. else
  17415. if test -n "$useradd"; then
  17416. ac_cv_prog_useradd="$useradd" # Let the user override the test.
  17417. else
  17418. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17419. for as_dir in $PATH
  17420. do
  17421. IFS=$as_save_IFS
  17422. test -z "$as_dir" && as_dir=.
  17423. for ac_exec_ext in '' $ac_executable_extensions; do
  17424. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17425. ac_cv_prog_useradd="yes"
  17426. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17427. break 2
  17428. fi
  17429. done
  17430. done
  17431. IFS=$as_save_IFS
  17432. fi
  17433. fi
  17434. useradd=$ac_cv_prog_useradd
  17435. if test -n "$useradd"; then
  17436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $useradd" >&5
  17437. $as_echo "$useradd" >&6; }
  17438. else
  17439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17440. $as_echo "no" >&6; }
  17441. fi
  17442. # Extract the first word of "groupadd", so it can be a program name with args.
  17443. set dummy groupadd; ac_word=$2
  17444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17445. $as_echo_n "checking for $ac_word... " >&6; }
  17446. if ${ac_cv_prog_groupadd+:} false; then :
  17447. $as_echo_n "(cached) " >&6
  17448. else
  17449. if test -n "$groupadd"; then
  17450. ac_cv_prog_groupadd="$groupadd" # Let the user override the test.
  17451. else
  17452. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17453. for as_dir in $PATH
  17454. do
  17455. IFS=$as_save_IFS
  17456. test -z "$as_dir" && as_dir=.
  17457. for ac_exec_ext in '' $ac_executable_extensions; do
  17458. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17459. ac_cv_prog_groupadd="yes"
  17460. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17461. break 2
  17462. fi
  17463. done
  17464. done
  17465. IFS=$as_save_IFS
  17466. fi
  17467. fi
  17468. groupadd=$ac_cv_prog_groupadd
  17469. if test -n "$groupadd"; then
  17470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $groupadd" >&5
  17471. $as_echo "$groupadd" >&6; }
  17472. else
  17473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17474. $as_echo "no" >&6; }
  17475. fi
  17476. # Extract the first word of "adduser", so it can be a program name with args.
  17477. set dummy adduser; ac_word=$2
  17478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17479. $as_echo_n "checking for $ac_word... " >&6; }
  17480. if ${ac_cv_prog_adduser+:} false; then :
  17481. $as_echo_n "(cached) " >&6
  17482. else
  17483. if test -n "$adduser"; then
  17484. ac_cv_prog_adduser="$adduser" # Let the user override the test.
  17485. else
  17486. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17487. for as_dir in $PATH
  17488. do
  17489. IFS=$as_save_IFS
  17490. test -z "$as_dir" && as_dir=.
  17491. for ac_exec_ext in '' $ac_executable_extensions; do
  17492. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17493. ac_cv_prog_adduser="yes"
  17494. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17495. break 2
  17496. fi
  17497. done
  17498. done
  17499. IFS=$as_save_IFS
  17500. fi
  17501. fi
  17502. adduser=$ac_cv_prog_adduser
  17503. if test -n "$adduser"; then
  17504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $adduser" >&5
  17505. $as_echo "$adduser" >&6; }
  17506. else
  17507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17508. $as_echo "no" >&6; }
  17509. fi
  17510. # Extract the first word of "addgroup", so it can be a program name with args.
  17511. set dummy addgroup; ac_word=$2
  17512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17513. $as_echo_n "checking for $ac_word... " >&6; }
  17514. if ${ac_cv_prog_addgroup+:} false; then :
  17515. $as_echo_n "(cached) " >&6
  17516. else
  17517. if test -n "$addgroup"; then
  17518. ac_cv_prog_addgroup="$addgroup" # Let the user override the test.
  17519. else
  17520. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17521. for as_dir in $PATH
  17522. do
  17523. IFS=$as_save_IFS
  17524. test -z "$as_dir" && as_dir=.
  17525. for ac_exec_ext in '' $ac_executable_extensions; do
  17526. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17527. ac_cv_prog_addgroup="yes"
  17528. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17529. break 2
  17530. fi
  17531. done
  17532. done
  17533. IFS=$as_save_IFS
  17534. fi
  17535. fi
  17536. addgroup=$ac_cv_prog_addgroup
  17537. if test -n "$addgroup"; then
  17538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addgroup" >&5
  17539. $as_echo "$addgroup" >&6; }
  17540. else
  17541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17542. $as_echo "no" >&6; }
  17543. fi
  17544. if test "x$addgroup" != "xyes" && test "x$groupadd" != "xyes" ; then :
  17545. as_fn_error $? "addgroup or groupadd are needed." "$LINENO" 5
  17546. fi
  17547. if test "x$adduser" != "xyes" && test "x$useradd" != "xyes" ; then :
  17548. as_fn_error $? "adduser or useradd are needed." "$LINENO" 5
  17549. fi
  17550. fi
  17551. # Files:
  17552. DX_PROJECT=$PACKAGE_NAME
  17553. DX_CONFIG='Doxyfile'
  17554. DX_DOCDIR='doxygen-doc'
  17555. # Environment variables used inside doxygen.cfg:
  17556. DX_ENV="$DX_ENV SRCDIR='$srcdir'"
  17557. SRCDIR=$srcdir
  17558. DX_ENV="$DX_ENV PROJECT='$DX_PROJECT'"
  17559. PROJECT=$DX_PROJECT
  17560. DX_ENV="$DX_ENV VERSION='$PACKAGE_VERSION'"
  17561. # Doxygen itself:
  17562. # Check whether --enable-doxygen-doc was given.
  17563. if test "${enable_doxygen_doc+set}" = set; then :
  17564. enableval=$enable_doxygen_doc;
  17565. case "$enableval" in
  17566. #(
  17567. y|Y|yes|Yes|YES)
  17568. DX_FLAG_doc=1
  17569. ;; #(
  17570. n|N|no|No|NO)
  17571. DX_FLAG_doc=0
  17572. ;; #(
  17573. *)
  17574. as_fn_error $? "invalid value '$enableval' given to doxygen-doc" "$LINENO" 5
  17575. ;;
  17576. esac
  17577. else
  17578. DX_FLAG_doc=1
  17579. fi
  17580. if test "$DX_FLAG_doc" = 1; then
  17581. if test -n "$ac_tool_prefix"; then
  17582. # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args.
  17583. set dummy ${ac_tool_prefix}doxygen; ac_word=$2
  17584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17585. $as_echo_n "checking for $ac_word... " >&6; }
  17586. if ${ac_cv_path_DX_DOXYGEN+:} false; then :
  17587. $as_echo_n "(cached) " >&6
  17588. else
  17589. case $DX_DOXYGEN in
  17590. [\\/]* | ?:[\\/]*)
  17591. ac_cv_path_DX_DOXYGEN="$DX_DOXYGEN" # Let the user override the test with a path.
  17592. ;;
  17593. *)
  17594. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17595. for as_dir in $PATH
  17596. do
  17597. IFS=$as_save_IFS
  17598. test -z "$as_dir" && as_dir=.
  17599. for ac_exec_ext in '' $ac_executable_extensions; do
  17600. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17601. ac_cv_path_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
  17602. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17603. break 2
  17604. fi
  17605. done
  17606. done
  17607. IFS=$as_save_IFS
  17608. ;;
  17609. esac
  17610. fi
  17611. DX_DOXYGEN=$ac_cv_path_DX_DOXYGEN
  17612. if test -n "$DX_DOXYGEN"; then
  17613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOXYGEN" >&5
  17614. $as_echo "$DX_DOXYGEN" >&6; }
  17615. else
  17616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17617. $as_echo "no" >&6; }
  17618. fi
  17619. fi
  17620. if test -z "$ac_cv_path_DX_DOXYGEN"; then
  17621. ac_pt_DX_DOXYGEN=$DX_DOXYGEN
  17622. # Extract the first word of "doxygen", so it can be a program name with args.
  17623. set dummy doxygen; ac_word=$2
  17624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17625. $as_echo_n "checking for $ac_word... " >&6; }
  17626. if ${ac_cv_path_ac_pt_DX_DOXYGEN+:} false; then :
  17627. $as_echo_n "(cached) " >&6
  17628. else
  17629. case $ac_pt_DX_DOXYGEN in
  17630. [\\/]* | ?:[\\/]*)
  17631. ac_cv_path_ac_pt_DX_DOXYGEN="$ac_pt_DX_DOXYGEN" # Let the user override the test with a path.
  17632. ;;
  17633. *)
  17634. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17635. for as_dir in $PATH
  17636. do
  17637. IFS=$as_save_IFS
  17638. test -z "$as_dir" && as_dir=.
  17639. for ac_exec_ext in '' $ac_executable_extensions; do
  17640. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17641. ac_cv_path_ac_pt_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
  17642. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17643. break 2
  17644. fi
  17645. done
  17646. done
  17647. IFS=$as_save_IFS
  17648. ;;
  17649. esac
  17650. fi
  17651. ac_pt_DX_DOXYGEN=$ac_cv_path_ac_pt_DX_DOXYGEN
  17652. if test -n "$ac_pt_DX_DOXYGEN"; then
  17653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOXYGEN" >&5
  17654. $as_echo "$ac_pt_DX_DOXYGEN" >&6; }
  17655. else
  17656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17657. $as_echo "no" >&6; }
  17658. fi
  17659. if test "x$ac_pt_DX_DOXYGEN" = x; then
  17660. DX_DOXYGEN=""
  17661. else
  17662. case $cross_compiling:$ac_tool_warned in
  17663. yes:)
  17664. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  17665. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  17666. ac_tool_warned=yes ;;
  17667. esac
  17668. DX_DOXYGEN=$ac_pt_DX_DOXYGEN
  17669. fi
  17670. else
  17671. DX_DOXYGEN="$ac_cv_path_DX_DOXYGEN"
  17672. fi
  17673. if test "$DX_FLAG_doc$DX_DOXYGEN" = 1; then
  17674. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - will not generate any doxygen documentation" >&5
  17675. $as_echo "$as_me: WARNING: doxygen not found - will not generate any doxygen documentation" >&2;}
  17676. DX_FLAG_doc=0
  17677. fi
  17678. if test -n "$ac_tool_prefix"; then
  17679. # Extract the first word of "${ac_tool_prefix}perl", so it can be a program name with args.
  17680. set dummy ${ac_tool_prefix}perl; ac_word=$2
  17681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17682. $as_echo_n "checking for $ac_word... " >&6; }
  17683. if ${ac_cv_path_DX_PERL+:} false; then :
  17684. $as_echo_n "(cached) " >&6
  17685. else
  17686. case $DX_PERL in
  17687. [\\/]* | ?:[\\/]*)
  17688. ac_cv_path_DX_PERL="$DX_PERL" # Let the user override the test with a path.
  17689. ;;
  17690. *)
  17691. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17692. for as_dir in $PATH
  17693. do
  17694. IFS=$as_save_IFS
  17695. test -z "$as_dir" && as_dir=.
  17696. for ac_exec_ext in '' $ac_executable_extensions; do
  17697. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17698. ac_cv_path_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
  17699. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17700. break 2
  17701. fi
  17702. done
  17703. done
  17704. IFS=$as_save_IFS
  17705. ;;
  17706. esac
  17707. fi
  17708. DX_PERL=$ac_cv_path_DX_PERL
  17709. if test -n "$DX_PERL"; then
  17710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PERL" >&5
  17711. $as_echo "$DX_PERL" >&6; }
  17712. else
  17713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17714. $as_echo "no" >&6; }
  17715. fi
  17716. fi
  17717. if test -z "$ac_cv_path_DX_PERL"; then
  17718. ac_pt_DX_PERL=$DX_PERL
  17719. # Extract the first word of "perl", so it can be a program name with args.
  17720. set dummy perl; ac_word=$2
  17721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17722. $as_echo_n "checking for $ac_word... " >&6; }
  17723. if ${ac_cv_path_ac_pt_DX_PERL+:} false; then :
  17724. $as_echo_n "(cached) " >&6
  17725. else
  17726. case $ac_pt_DX_PERL in
  17727. [\\/]* | ?:[\\/]*)
  17728. ac_cv_path_ac_pt_DX_PERL="$ac_pt_DX_PERL" # Let the user override the test with a path.
  17729. ;;
  17730. *)
  17731. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17732. for as_dir in $PATH
  17733. do
  17734. IFS=$as_save_IFS
  17735. test -z "$as_dir" && as_dir=.
  17736. for ac_exec_ext in '' $ac_executable_extensions; do
  17737. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17738. ac_cv_path_ac_pt_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
  17739. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17740. break 2
  17741. fi
  17742. done
  17743. done
  17744. IFS=$as_save_IFS
  17745. ;;
  17746. esac
  17747. fi
  17748. ac_pt_DX_PERL=$ac_cv_path_ac_pt_DX_PERL
  17749. if test -n "$ac_pt_DX_PERL"; then
  17750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PERL" >&5
  17751. $as_echo "$ac_pt_DX_PERL" >&6; }
  17752. else
  17753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17754. $as_echo "no" >&6; }
  17755. fi
  17756. if test "x$ac_pt_DX_PERL" = x; then
  17757. DX_PERL=""
  17758. else
  17759. case $cross_compiling:$ac_tool_warned in
  17760. yes:)
  17761. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  17762. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  17763. ac_tool_warned=yes ;;
  17764. esac
  17765. DX_PERL=$ac_pt_DX_PERL
  17766. fi
  17767. else
  17768. DX_PERL="$ac_cv_path_DX_PERL"
  17769. fi
  17770. if test "$DX_FLAG_doc$DX_PERL" = 1; then
  17771. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - will not generate any doxygen documentation" >&5
  17772. $as_echo "$as_me: WARNING: perl not found - will not generate any doxygen documentation" >&2;}
  17773. DX_FLAG_doc=0
  17774. fi
  17775. :
  17776. fi
  17777. if test "$DX_FLAG_doc" = 1; then
  17778. DX_ENV="$DX_ENV PERL_PATH='$DX_PERL'"
  17779. PERL_PATH=$DX_PERL
  17780. :
  17781. else
  17782. :
  17783. fi
  17784. # Dot for graphics:
  17785. # Check whether --enable-doxygen-dot was given.
  17786. if test "${enable_doxygen_dot+set}" = set; then :
  17787. enableval=$enable_doxygen_dot;
  17788. case "$enableval" in
  17789. #(
  17790. y|Y|yes|Yes|YES)
  17791. DX_FLAG_dot=1
  17792. test "$DX_FLAG_doc" = "1" \
  17793. || as_fn_error $? "doxygen-dot requires doxygen-doc" "$LINENO" 5
  17794. ;; #(
  17795. n|N|no|No|NO)
  17796. DX_FLAG_dot=0
  17797. ;; #(
  17798. *)
  17799. as_fn_error $? "invalid value '$enableval' given to doxygen-dot" "$LINENO" 5
  17800. ;;
  17801. esac
  17802. else
  17803. DX_FLAG_dot=0
  17804. test "$DX_FLAG_doc" = "1" || DX_FLAG_dot=0
  17805. fi
  17806. if test "$DX_FLAG_dot" = 1; then
  17807. if test -n "$ac_tool_prefix"; then
  17808. # Extract the first word of "${ac_tool_prefix}dot", so it can be a program name with args.
  17809. set dummy ${ac_tool_prefix}dot; ac_word=$2
  17810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17811. $as_echo_n "checking for $ac_word... " >&6; }
  17812. if ${ac_cv_path_DX_DOT+:} false; then :
  17813. $as_echo_n "(cached) " >&6
  17814. else
  17815. case $DX_DOT in
  17816. [\\/]* | ?:[\\/]*)
  17817. ac_cv_path_DX_DOT="$DX_DOT" # Let the user override the test with a path.
  17818. ;;
  17819. *)
  17820. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17821. for as_dir in $PATH
  17822. do
  17823. IFS=$as_save_IFS
  17824. test -z "$as_dir" && as_dir=.
  17825. for ac_exec_ext in '' $ac_executable_extensions; do
  17826. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17827. ac_cv_path_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
  17828. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17829. break 2
  17830. fi
  17831. done
  17832. done
  17833. IFS=$as_save_IFS
  17834. ;;
  17835. esac
  17836. fi
  17837. DX_DOT=$ac_cv_path_DX_DOT
  17838. if test -n "$DX_DOT"; then
  17839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOT" >&5
  17840. $as_echo "$DX_DOT" >&6; }
  17841. else
  17842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17843. $as_echo "no" >&6; }
  17844. fi
  17845. fi
  17846. if test -z "$ac_cv_path_DX_DOT"; then
  17847. ac_pt_DX_DOT=$DX_DOT
  17848. # Extract the first word of "dot", so it can be a program name with args.
  17849. set dummy dot; ac_word=$2
  17850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17851. $as_echo_n "checking for $ac_word... " >&6; }
  17852. if ${ac_cv_path_ac_pt_DX_DOT+:} false; then :
  17853. $as_echo_n "(cached) " >&6
  17854. else
  17855. case $ac_pt_DX_DOT in
  17856. [\\/]* | ?:[\\/]*)
  17857. ac_cv_path_ac_pt_DX_DOT="$ac_pt_DX_DOT" # Let the user override the test with a path.
  17858. ;;
  17859. *)
  17860. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17861. for as_dir in $PATH
  17862. do
  17863. IFS=$as_save_IFS
  17864. test -z "$as_dir" && as_dir=.
  17865. for ac_exec_ext in '' $ac_executable_extensions; do
  17866. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17867. ac_cv_path_ac_pt_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
  17868. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17869. break 2
  17870. fi
  17871. done
  17872. done
  17873. IFS=$as_save_IFS
  17874. ;;
  17875. esac
  17876. fi
  17877. ac_pt_DX_DOT=$ac_cv_path_ac_pt_DX_DOT
  17878. if test -n "$ac_pt_DX_DOT"; then
  17879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOT" >&5
  17880. $as_echo "$ac_pt_DX_DOT" >&6; }
  17881. else
  17882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17883. $as_echo "no" >&6; }
  17884. fi
  17885. if test "x$ac_pt_DX_DOT" = x; then
  17886. DX_DOT=""
  17887. else
  17888. case $cross_compiling:$ac_tool_warned in
  17889. yes:)
  17890. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  17891. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  17892. ac_tool_warned=yes ;;
  17893. esac
  17894. DX_DOT=$ac_pt_DX_DOT
  17895. fi
  17896. else
  17897. DX_DOT="$ac_cv_path_DX_DOT"
  17898. fi
  17899. if test "$DX_FLAG_dot$DX_DOT" = 1; then
  17900. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dot not found - will not generate graphics for doxygen documentation" >&5
  17901. $as_echo "$as_me: WARNING: dot not found - will not generate graphics for doxygen documentation" >&2;}
  17902. DX_FLAG_dot=0
  17903. fi
  17904. :
  17905. fi
  17906. if test "$DX_FLAG_dot" = 1; then
  17907. DX_ENV="$DX_ENV HAVE_DOT='YES'"
  17908. HAVE_DOT=YES
  17909. DX_ENV="$DX_ENV DOT_PATH='`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'`'"
  17910. DOT_PATH=`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'`
  17911. :
  17912. else
  17913. DX_ENV="$DX_ENV HAVE_DOT='NO'"
  17914. HAVE_DOT=NO
  17915. :
  17916. fi
  17917. # Man pages generation:
  17918. # Check whether --enable-doxygen-man was given.
  17919. if test "${enable_doxygen_man+set}" = set; then :
  17920. enableval=$enable_doxygen_man;
  17921. case "$enableval" in
  17922. #(
  17923. y|Y|yes|Yes|YES)
  17924. DX_FLAG_man=1
  17925. test "$DX_FLAG_doc" = "1" \
  17926. || as_fn_error $? "doxygen-man requires doxygen-doc" "$LINENO" 5
  17927. ;; #(
  17928. n|N|no|No|NO)
  17929. DX_FLAG_man=0
  17930. ;; #(
  17931. *)
  17932. as_fn_error $? "invalid value '$enableval' given to doxygen-man" "$LINENO" 5
  17933. ;;
  17934. esac
  17935. else
  17936. DX_FLAG_man=1
  17937. test "$DX_FLAG_doc" = "1" || DX_FLAG_man=0
  17938. fi
  17939. if test "$DX_FLAG_man" = 1; then
  17940. :
  17941. fi
  17942. if test "$DX_FLAG_man" = 1; then
  17943. DX_ENV="$DX_ENV GENERATE_MAN='YES'"
  17944. GENERATE_MAN=YES
  17945. :
  17946. else
  17947. DX_ENV="$DX_ENV GENERATE_MAN='NO'"
  17948. GENERATE_MAN=NO
  17949. :
  17950. fi
  17951. # RTF file generation:
  17952. # Check whether --enable-doxygen-rtf was given.
  17953. if test "${enable_doxygen_rtf+set}" = set; then :
  17954. enableval=$enable_doxygen_rtf;
  17955. case "$enableval" in
  17956. #(
  17957. y|Y|yes|Yes|YES)
  17958. DX_FLAG_rtf=1
  17959. test "$DX_FLAG_doc" = "1" \
  17960. || as_fn_error $? "doxygen-rtf requires doxygen-doc" "$LINENO" 5
  17961. ;; #(
  17962. n|N|no|No|NO)
  17963. DX_FLAG_rtf=0
  17964. ;; #(
  17965. *)
  17966. as_fn_error $? "invalid value '$enableval' given to doxygen-rtf" "$LINENO" 5
  17967. ;;
  17968. esac
  17969. else
  17970. DX_FLAG_rtf=1
  17971. test "$DX_FLAG_doc" = "1" || DX_FLAG_rtf=0
  17972. fi
  17973. if test "$DX_FLAG_rtf" = 1; then
  17974. :
  17975. fi
  17976. if test "$DX_FLAG_rtf" = 1; then
  17977. DX_ENV="$DX_ENV GENERATE_RTF='YES'"
  17978. GENERATE_RTF=YES
  17979. :
  17980. else
  17981. DX_ENV="$DX_ENV GENERATE_RTF='NO'"
  17982. GENERATE_RTF=NO
  17983. :
  17984. fi
  17985. # XML file generation:
  17986. # Check whether --enable-doxygen-xml was given.
  17987. if test "${enable_doxygen_xml+set}" = set; then :
  17988. enableval=$enable_doxygen_xml;
  17989. case "$enableval" in
  17990. #(
  17991. y|Y|yes|Yes|YES)
  17992. DX_FLAG_xml=1
  17993. test "$DX_FLAG_doc" = "1" \
  17994. || as_fn_error $? "doxygen-xml requires doxygen-doc" "$LINENO" 5
  17995. ;; #(
  17996. n|N|no|No|NO)
  17997. DX_FLAG_xml=0
  17998. ;; #(
  17999. *)
  18000. as_fn_error $? "invalid value '$enableval' given to doxygen-xml" "$LINENO" 5
  18001. ;;
  18002. esac
  18003. else
  18004. DX_FLAG_xml=0
  18005. test "$DX_FLAG_doc" = "1" || DX_FLAG_xml=0
  18006. fi
  18007. if test "$DX_FLAG_xml" = 1; then
  18008. :
  18009. fi
  18010. if test "$DX_FLAG_xml" = 1; then
  18011. DX_ENV="$DX_ENV GENERATE_XML='YES'"
  18012. GENERATE_XML=YES
  18013. :
  18014. else
  18015. DX_ENV="$DX_ENV GENERATE_XML='NO'"
  18016. GENERATE_XML=NO
  18017. :
  18018. fi
  18019. # (Compressed) HTML help generation:
  18020. # Check whether --enable-doxygen-chm was given.
  18021. if test "${enable_doxygen_chm+set}" = set; then :
  18022. enableval=$enable_doxygen_chm;
  18023. case "$enableval" in
  18024. #(
  18025. y|Y|yes|Yes|YES)
  18026. DX_FLAG_chm=1
  18027. test "$DX_FLAG_doc" = "1" \
  18028. || as_fn_error $? "doxygen-chm requires doxygen-doc" "$LINENO" 5
  18029. ;; #(
  18030. n|N|no|No|NO)
  18031. DX_FLAG_chm=0
  18032. ;; #(
  18033. *)
  18034. as_fn_error $? "invalid value '$enableval' given to doxygen-chm" "$LINENO" 5
  18035. ;;
  18036. esac
  18037. else
  18038. DX_FLAG_chm=0
  18039. test "$DX_FLAG_doc" = "1" || DX_FLAG_chm=0
  18040. fi
  18041. if test "$DX_FLAG_chm" = 1; then
  18042. if test -n "$ac_tool_prefix"; then
  18043. # Extract the first word of "${ac_tool_prefix}hhc", so it can be a program name with args.
  18044. set dummy ${ac_tool_prefix}hhc; ac_word=$2
  18045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18046. $as_echo_n "checking for $ac_word... " >&6; }
  18047. if ${ac_cv_path_DX_HHC+:} false; then :
  18048. $as_echo_n "(cached) " >&6
  18049. else
  18050. case $DX_HHC in
  18051. [\\/]* | ?:[\\/]*)
  18052. ac_cv_path_DX_HHC="$DX_HHC" # Let the user override the test with a path.
  18053. ;;
  18054. *)
  18055. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18056. for as_dir in $PATH
  18057. do
  18058. IFS=$as_save_IFS
  18059. test -z "$as_dir" && as_dir=.
  18060. for ac_exec_ext in '' $ac_executable_extensions; do
  18061. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18062. ac_cv_path_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
  18063. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18064. break 2
  18065. fi
  18066. done
  18067. done
  18068. IFS=$as_save_IFS
  18069. ;;
  18070. esac
  18071. fi
  18072. DX_HHC=$ac_cv_path_DX_HHC
  18073. if test -n "$DX_HHC"; then
  18074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_HHC" >&5
  18075. $as_echo "$DX_HHC" >&6; }
  18076. else
  18077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18078. $as_echo "no" >&6; }
  18079. fi
  18080. fi
  18081. if test -z "$ac_cv_path_DX_HHC"; then
  18082. ac_pt_DX_HHC=$DX_HHC
  18083. # Extract the first word of "hhc", so it can be a program name with args.
  18084. set dummy hhc; ac_word=$2
  18085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18086. $as_echo_n "checking for $ac_word... " >&6; }
  18087. if ${ac_cv_path_ac_pt_DX_HHC+:} false; then :
  18088. $as_echo_n "(cached) " >&6
  18089. else
  18090. case $ac_pt_DX_HHC in
  18091. [\\/]* | ?:[\\/]*)
  18092. ac_cv_path_ac_pt_DX_HHC="$ac_pt_DX_HHC" # Let the user override the test with a path.
  18093. ;;
  18094. *)
  18095. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18096. for as_dir in $PATH
  18097. do
  18098. IFS=$as_save_IFS
  18099. test -z "$as_dir" && as_dir=.
  18100. for ac_exec_ext in '' $ac_executable_extensions; do
  18101. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18102. ac_cv_path_ac_pt_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
  18103. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18104. break 2
  18105. fi
  18106. done
  18107. done
  18108. IFS=$as_save_IFS
  18109. ;;
  18110. esac
  18111. fi
  18112. ac_pt_DX_HHC=$ac_cv_path_ac_pt_DX_HHC
  18113. if test -n "$ac_pt_DX_HHC"; then
  18114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_HHC" >&5
  18115. $as_echo "$ac_pt_DX_HHC" >&6; }
  18116. else
  18117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18118. $as_echo "no" >&6; }
  18119. fi
  18120. if test "x$ac_pt_DX_HHC" = x; then
  18121. DX_HHC=""
  18122. else
  18123. case $cross_compiling:$ac_tool_warned in
  18124. yes:)
  18125. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18126. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18127. ac_tool_warned=yes ;;
  18128. esac
  18129. DX_HHC=$ac_pt_DX_HHC
  18130. fi
  18131. else
  18132. DX_HHC="$ac_cv_path_DX_HHC"
  18133. fi
  18134. if test "$DX_FLAG_chm$DX_HHC" = 1; then
  18135. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&5
  18136. $as_echo "$as_me: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&2;}
  18137. DX_FLAG_chm=0
  18138. fi
  18139. :
  18140. fi
  18141. if test "$DX_FLAG_chm" = 1; then
  18142. DX_ENV="$DX_ENV HHC_PATH='$DX_HHC'"
  18143. HHC_PATH=$DX_HHC
  18144. DX_ENV="$DX_ENV GENERATE_HTML='YES'"
  18145. GENERATE_HTML=YES
  18146. DX_ENV="$DX_ENV GENERATE_HTMLHELP='YES'"
  18147. GENERATE_HTMLHELP=YES
  18148. :
  18149. else
  18150. DX_ENV="$DX_ENV GENERATE_HTMLHELP='NO'"
  18151. GENERATE_HTMLHELP=NO
  18152. :
  18153. fi
  18154. # Separate CHI file generation.
  18155. # Check whether --enable-doxygen-chi was given.
  18156. if test "${enable_doxygen_chi+set}" = set; then :
  18157. enableval=$enable_doxygen_chi;
  18158. case "$enableval" in
  18159. #(
  18160. y|Y|yes|Yes|YES)
  18161. DX_FLAG_chi=1
  18162. test "$DX_FLAG_chm" = "1" \
  18163. || as_fn_error $? "doxygen-chi requires doxygen-chm" "$LINENO" 5
  18164. ;; #(
  18165. n|N|no|No|NO)
  18166. DX_FLAG_chi=0
  18167. ;; #(
  18168. *)
  18169. as_fn_error $? "invalid value '$enableval' given to doxygen-chi" "$LINENO" 5
  18170. ;;
  18171. esac
  18172. else
  18173. DX_FLAG_chi=0
  18174. test "$DX_FLAG_chm" = "1" || DX_FLAG_chi=0
  18175. fi
  18176. if test "$DX_FLAG_chi" = 1; then
  18177. :
  18178. fi
  18179. if test "$DX_FLAG_chi" = 1; then
  18180. DX_ENV="$DX_ENV GENERATE_CHI='YES'"
  18181. GENERATE_CHI=YES
  18182. :
  18183. else
  18184. DX_ENV="$DX_ENV GENERATE_CHI='NO'"
  18185. GENERATE_CHI=NO
  18186. :
  18187. fi
  18188. # Plain HTML pages generation:
  18189. # Check whether --enable-doxygen-html was given.
  18190. if test "${enable_doxygen_html+set}" = set; then :
  18191. enableval=$enable_doxygen_html;
  18192. case "$enableval" in
  18193. #(
  18194. y|Y|yes|Yes|YES)
  18195. DX_FLAG_html=1
  18196. test "$DX_FLAG_doc" = "1" \
  18197. || as_fn_error $? "doxygen-html requires doxygen-doc" "$LINENO" 5
  18198. test "$DX_FLAG_chm" = "0" \
  18199. || as_fn_error $? "doxygen-html contradicts doxygen-chm" "$LINENO" 5
  18200. ;; #(
  18201. n|N|no|No|NO)
  18202. DX_FLAG_html=0
  18203. ;; #(
  18204. *)
  18205. as_fn_error $? "invalid value '$enableval' given to doxygen-html" "$LINENO" 5
  18206. ;;
  18207. esac
  18208. else
  18209. DX_FLAG_html=1
  18210. test "$DX_FLAG_doc" = "1" || DX_FLAG_html=0
  18211. test "$DX_FLAG_chm" = "0" || DX_FLAG_html=0
  18212. fi
  18213. if test "$DX_FLAG_html" = 1; then
  18214. :
  18215. fi
  18216. if test "$DX_FLAG_html" = 1; then
  18217. DX_ENV="$DX_ENV GENERATE_HTML='YES'"
  18218. GENERATE_HTML=YES
  18219. :
  18220. else
  18221. test "$DX_FLAG_chm" = 1 || DX_ENV="$DX_ENV GENERATE_HTML='NO'"
  18222. GENERATE_HTML=NO
  18223. :
  18224. fi
  18225. # PostScript file generation:
  18226. # Check whether --enable-doxygen-ps was given.
  18227. if test "${enable_doxygen_ps+set}" = set; then :
  18228. enableval=$enable_doxygen_ps;
  18229. case "$enableval" in
  18230. #(
  18231. y|Y|yes|Yes|YES)
  18232. DX_FLAG_ps=1
  18233. test "$DX_FLAG_doc" = "1" \
  18234. || as_fn_error $? "doxygen-ps requires doxygen-doc" "$LINENO" 5
  18235. ;; #(
  18236. n|N|no|No|NO)
  18237. DX_FLAG_ps=0
  18238. ;; #(
  18239. *)
  18240. as_fn_error $? "invalid value '$enableval' given to doxygen-ps" "$LINENO" 5
  18241. ;;
  18242. esac
  18243. else
  18244. DX_FLAG_ps=0
  18245. test "$DX_FLAG_doc" = "1" || DX_FLAG_ps=0
  18246. fi
  18247. if test "$DX_FLAG_ps" = 1; then
  18248. if test -n "$ac_tool_prefix"; then
  18249. # Extract the first word of "${ac_tool_prefix}latex", so it can be a program name with args.
  18250. set dummy ${ac_tool_prefix}latex; ac_word=$2
  18251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18252. $as_echo_n "checking for $ac_word... " >&6; }
  18253. if ${ac_cv_path_DX_LATEX+:} false; then :
  18254. $as_echo_n "(cached) " >&6
  18255. else
  18256. case $DX_LATEX in
  18257. [\\/]* | ?:[\\/]*)
  18258. ac_cv_path_DX_LATEX="$DX_LATEX" # Let the user override the test with a path.
  18259. ;;
  18260. *)
  18261. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18262. for as_dir in $PATH
  18263. do
  18264. IFS=$as_save_IFS
  18265. test -z "$as_dir" && as_dir=.
  18266. for ac_exec_ext in '' $ac_executable_extensions; do
  18267. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18268. ac_cv_path_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
  18269. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18270. break 2
  18271. fi
  18272. done
  18273. done
  18274. IFS=$as_save_IFS
  18275. ;;
  18276. esac
  18277. fi
  18278. DX_LATEX=$ac_cv_path_DX_LATEX
  18279. if test -n "$DX_LATEX"; then
  18280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_LATEX" >&5
  18281. $as_echo "$DX_LATEX" >&6; }
  18282. else
  18283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18284. $as_echo "no" >&6; }
  18285. fi
  18286. fi
  18287. if test -z "$ac_cv_path_DX_LATEX"; then
  18288. ac_pt_DX_LATEX=$DX_LATEX
  18289. # Extract the first word of "latex", so it can be a program name with args.
  18290. set dummy latex; ac_word=$2
  18291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18292. $as_echo_n "checking for $ac_word... " >&6; }
  18293. if ${ac_cv_path_ac_pt_DX_LATEX+:} false; then :
  18294. $as_echo_n "(cached) " >&6
  18295. else
  18296. case $ac_pt_DX_LATEX in
  18297. [\\/]* | ?:[\\/]*)
  18298. ac_cv_path_ac_pt_DX_LATEX="$ac_pt_DX_LATEX" # Let the user override the test with a path.
  18299. ;;
  18300. *)
  18301. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18302. for as_dir in $PATH
  18303. do
  18304. IFS=$as_save_IFS
  18305. test -z "$as_dir" && as_dir=.
  18306. for ac_exec_ext in '' $ac_executable_extensions; do
  18307. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18308. ac_cv_path_ac_pt_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
  18309. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18310. break 2
  18311. fi
  18312. done
  18313. done
  18314. IFS=$as_save_IFS
  18315. ;;
  18316. esac
  18317. fi
  18318. ac_pt_DX_LATEX=$ac_cv_path_ac_pt_DX_LATEX
  18319. if test -n "$ac_pt_DX_LATEX"; then
  18320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_LATEX" >&5
  18321. $as_echo "$ac_pt_DX_LATEX" >&6; }
  18322. else
  18323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18324. $as_echo "no" >&6; }
  18325. fi
  18326. if test "x$ac_pt_DX_LATEX" = x; then
  18327. DX_LATEX=""
  18328. else
  18329. case $cross_compiling:$ac_tool_warned in
  18330. yes:)
  18331. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18332. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18333. ac_tool_warned=yes ;;
  18334. esac
  18335. DX_LATEX=$ac_pt_DX_LATEX
  18336. fi
  18337. else
  18338. DX_LATEX="$ac_cv_path_DX_LATEX"
  18339. fi
  18340. if test "$DX_FLAG_ps$DX_LATEX" = 1; then
  18341. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: latex not found - will not generate doxygen PostScript documentation" >&5
  18342. $as_echo "$as_me: WARNING: latex not found - will not generate doxygen PostScript documentation" >&2;}
  18343. DX_FLAG_ps=0
  18344. fi
  18345. if test -n "$ac_tool_prefix"; then
  18346. # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
  18347. set dummy ${ac_tool_prefix}makeindex; ac_word=$2
  18348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18349. $as_echo_n "checking for $ac_word... " >&6; }
  18350. if ${ac_cv_path_DX_MAKEINDEX+:} false; then :
  18351. $as_echo_n "(cached) " >&6
  18352. else
  18353. case $DX_MAKEINDEX in
  18354. [\\/]* | ?:[\\/]*)
  18355. ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
  18356. ;;
  18357. *)
  18358. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18359. for as_dir in $PATH
  18360. do
  18361. IFS=$as_save_IFS
  18362. test -z "$as_dir" && as_dir=.
  18363. for ac_exec_ext in '' $ac_executable_extensions; do
  18364. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18365. ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
  18366. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18367. break 2
  18368. fi
  18369. done
  18370. done
  18371. IFS=$as_save_IFS
  18372. ;;
  18373. esac
  18374. fi
  18375. DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
  18376. if test -n "$DX_MAKEINDEX"; then
  18377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
  18378. $as_echo "$DX_MAKEINDEX" >&6; }
  18379. else
  18380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18381. $as_echo "no" >&6; }
  18382. fi
  18383. fi
  18384. if test -z "$ac_cv_path_DX_MAKEINDEX"; then
  18385. ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
  18386. # Extract the first word of "makeindex", so it can be a program name with args.
  18387. set dummy makeindex; ac_word=$2
  18388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18389. $as_echo_n "checking for $ac_word... " >&6; }
  18390. if ${ac_cv_path_ac_pt_DX_MAKEINDEX+:} false; then :
  18391. $as_echo_n "(cached) " >&6
  18392. else
  18393. case $ac_pt_DX_MAKEINDEX in
  18394. [\\/]* | ?:[\\/]*)
  18395. ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
  18396. ;;
  18397. *)
  18398. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18399. for as_dir in $PATH
  18400. do
  18401. IFS=$as_save_IFS
  18402. test -z "$as_dir" && as_dir=.
  18403. for ac_exec_ext in '' $ac_executable_extensions; do
  18404. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18405. ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
  18406. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18407. break 2
  18408. fi
  18409. done
  18410. done
  18411. IFS=$as_save_IFS
  18412. ;;
  18413. esac
  18414. fi
  18415. ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
  18416. if test -n "$ac_pt_DX_MAKEINDEX"; then
  18417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
  18418. $as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
  18419. else
  18420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18421. $as_echo "no" >&6; }
  18422. fi
  18423. if test "x$ac_pt_DX_MAKEINDEX" = x; then
  18424. DX_MAKEINDEX=""
  18425. else
  18426. case $cross_compiling:$ac_tool_warned in
  18427. yes:)
  18428. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18429. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18430. ac_tool_warned=yes ;;
  18431. esac
  18432. DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
  18433. fi
  18434. else
  18435. DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
  18436. fi
  18437. if test "$DX_FLAG_ps$DX_MAKEINDEX" = 1; then
  18438. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&5
  18439. $as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&2;}
  18440. DX_FLAG_ps=0
  18441. fi
  18442. if test -n "$ac_tool_prefix"; then
  18443. # Extract the first word of "${ac_tool_prefix}dvips", so it can be a program name with args.
  18444. set dummy ${ac_tool_prefix}dvips; ac_word=$2
  18445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18446. $as_echo_n "checking for $ac_word... " >&6; }
  18447. if ${ac_cv_path_DX_DVIPS+:} false; then :
  18448. $as_echo_n "(cached) " >&6
  18449. else
  18450. case $DX_DVIPS in
  18451. [\\/]* | ?:[\\/]*)
  18452. ac_cv_path_DX_DVIPS="$DX_DVIPS" # Let the user override the test with a path.
  18453. ;;
  18454. *)
  18455. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18456. for as_dir in $PATH
  18457. do
  18458. IFS=$as_save_IFS
  18459. test -z "$as_dir" && as_dir=.
  18460. for ac_exec_ext in '' $ac_executable_extensions; do
  18461. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18462. ac_cv_path_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
  18463. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18464. break 2
  18465. fi
  18466. done
  18467. done
  18468. IFS=$as_save_IFS
  18469. ;;
  18470. esac
  18471. fi
  18472. DX_DVIPS=$ac_cv_path_DX_DVIPS
  18473. if test -n "$DX_DVIPS"; then
  18474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DVIPS" >&5
  18475. $as_echo "$DX_DVIPS" >&6; }
  18476. else
  18477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18478. $as_echo "no" >&6; }
  18479. fi
  18480. fi
  18481. if test -z "$ac_cv_path_DX_DVIPS"; then
  18482. ac_pt_DX_DVIPS=$DX_DVIPS
  18483. # Extract the first word of "dvips", so it can be a program name with args.
  18484. set dummy dvips; ac_word=$2
  18485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18486. $as_echo_n "checking for $ac_word... " >&6; }
  18487. if ${ac_cv_path_ac_pt_DX_DVIPS+:} false; then :
  18488. $as_echo_n "(cached) " >&6
  18489. else
  18490. case $ac_pt_DX_DVIPS in
  18491. [\\/]* | ?:[\\/]*)
  18492. ac_cv_path_ac_pt_DX_DVIPS="$ac_pt_DX_DVIPS" # Let the user override the test with a path.
  18493. ;;
  18494. *)
  18495. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18496. for as_dir in $PATH
  18497. do
  18498. IFS=$as_save_IFS
  18499. test -z "$as_dir" && as_dir=.
  18500. for ac_exec_ext in '' $ac_executable_extensions; do
  18501. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18502. ac_cv_path_ac_pt_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
  18503. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18504. break 2
  18505. fi
  18506. done
  18507. done
  18508. IFS=$as_save_IFS
  18509. ;;
  18510. esac
  18511. fi
  18512. ac_pt_DX_DVIPS=$ac_cv_path_ac_pt_DX_DVIPS
  18513. if test -n "$ac_pt_DX_DVIPS"; then
  18514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DVIPS" >&5
  18515. $as_echo "$ac_pt_DX_DVIPS" >&6; }
  18516. else
  18517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18518. $as_echo "no" >&6; }
  18519. fi
  18520. if test "x$ac_pt_DX_DVIPS" = x; then
  18521. DX_DVIPS=""
  18522. else
  18523. case $cross_compiling:$ac_tool_warned in
  18524. yes:)
  18525. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18526. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18527. ac_tool_warned=yes ;;
  18528. esac
  18529. DX_DVIPS=$ac_pt_DX_DVIPS
  18530. fi
  18531. else
  18532. DX_DVIPS="$ac_cv_path_DX_DVIPS"
  18533. fi
  18534. if test "$DX_FLAG_ps$DX_DVIPS" = 1; then
  18535. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&5
  18536. $as_echo "$as_me: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&2;}
  18537. DX_FLAG_ps=0
  18538. fi
  18539. if test -n "$ac_tool_prefix"; then
  18540. # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
  18541. set dummy ${ac_tool_prefix}egrep; ac_word=$2
  18542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18543. $as_echo_n "checking for $ac_word... " >&6; }
  18544. if ${ac_cv_path_DX_EGREP+:} false; then :
  18545. $as_echo_n "(cached) " >&6
  18546. else
  18547. case $DX_EGREP in
  18548. [\\/]* | ?:[\\/]*)
  18549. ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
  18550. ;;
  18551. *)
  18552. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18553. for as_dir in $PATH
  18554. do
  18555. IFS=$as_save_IFS
  18556. test -z "$as_dir" && as_dir=.
  18557. for ac_exec_ext in '' $ac_executable_extensions; do
  18558. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18559. ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
  18560. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18561. break 2
  18562. fi
  18563. done
  18564. done
  18565. IFS=$as_save_IFS
  18566. ;;
  18567. esac
  18568. fi
  18569. DX_EGREP=$ac_cv_path_DX_EGREP
  18570. if test -n "$DX_EGREP"; then
  18571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
  18572. $as_echo "$DX_EGREP" >&6; }
  18573. else
  18574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18575. $as_echo "no" >&6; }
  18576. fi
  18577. fi
  18578. if test -z "$ac_cv_path_DX_EGREP"; then
  18579. ac_pt_DX_EGREP=$DX_EGREP
  18580. # Extract the first word of "egrep", so it can be a program name with args.
  18581. set dummy egrep; ac_word=$2
  18582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18583. $as_echo_n "checking for $ac_word... " >&6; }
  18584. if ${ac_cv_path_ac_pt_DX_EGREP+:} false; then :
  18585. $as_echo_n "(cached) " >&6
  18586. else
  18587. case $ac_pt_DX_EGREP in
  18588. [\\/]* | ?:[\\/]*)
  18589. ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
  18590. ;;
  18591. *)
  18592. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18593. for as_dir in $PATH
  18594. do
  18595. IFS=$as_save_IFS
  18596. test -z "$as_dir" && as_dir=.
  18597. for ac_exec_ext in '' $ac_executable_extensions; do
  18598. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18599. ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
  18600. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18601. break 2
  18602. fi
  18603. done
  18604. done
  18605. IFS=$as_save_IFS
  18606. ;;
  18607. esac
  18608. fi
  18609. ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
  18610. if test -n "$ac_pt_DX_EGREP"; then
  18611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
  18612. $as_echo "$ac_pt_DX_EGREP" >&6; }
  18613. else
  18614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18615. $as_echo "no" >&6; }
  18616. fi
  18617. if test "x$ac_pt_DX_EGREP" = x; then
  18618. DX_EGREP=""
  18619. else
  18620. case $cross_compiling:$ac_tool_warned in
  18621. yes:)
  18622. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18623. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18624. ac_tool_warned=yes ;;
  18625. esac
  18626. DX_EGREP=$ac_pt_DX_EGREP
  18627. fi
  18628. else
  18629. DX_EGREP="$ac_cv_path_DX_EGREP"
  18630. fi
  18631. if test "$DX_FLAG_ps$DX_EGREP" = 1; then
  18632. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&5
  18633. $as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&2;}
  18634. DX_FLAG_ps=0
  18635. fi
  18636. :
  18637. fi
  18638. if test "$DX_FLAG_ps" = 1; then
  18639. :
  18640. else
  18641. :
  18642. fi
  18643. # PDF file generation:
  18644. # Check whether --enable-doxygen-pdf was given.
  18645. if test "${enable_doxygen_pdf+set}" = set; then :
  18646. enableval=$enable_doxygen_pdf;
  18647. case "$enableval" in
  18648. #(
  18649. y|Y|yes|Yes|YES)
  18650. DX_FLAG_pdf=1
  18651. test "$DX_FLAG_doc" = "1" \
  18652. || as_fn_error $? "doxygen-pdf requires doxygen-doc" "$LINENO" 5
  18653. ;; #(
  18654. n|N|no|No|NO)
  18655. DX_FLAG_pdf=0
  18656. ;; #(
  18657. *)
  18658. as_fn_error $? "invalid value '$enableval' given to doxygen-pdf" "$LINENO" 5
  18659. ;;
  18660. esac
  18661. else
  18662. DX_FLAG_pdf=0
  18663. test "$DX_FLAG_doc" = "1" || DX_FLAG_pdf=0
  18664. fi
  18665. if test "$DX_FLAG_pdf" = 1; then
  18666. if test -n "$ac_tool_prefix"; then
  18667. # Extract the first word of "${ac_tool_prefix}pdflatex", so it can be a program name with args.
  18668. set dummy ${ac_tool_prefix}pdflatex; ac_word=$2
  18669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18670. $as_echo_n "checking for $ac_word... " >&6; }
  18671. if ${ac_cv_path_DX_PDFLATEX+:} false; then :
  18672. $as_echo_n "(cached) " >&6
  18673. else
  18674. case $DX_PDFLATEX in
  18675. [\\/]* | ?:[\\/]*)
  18676. ac_cv_path_DX_PDFLATEX="$DX_PDFLATEX" # Let the user override the test with a path.
  18677. ;;
  18678. *)
  18679. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18680. for as_dir in $PATH
  18681. do
  18682. IFS=$as_save_IFS
  18683. test -z "$as_dir" && as_dir=.
  18684. for ac_exec_ext in '' $ac_executable_extensions; do
  18685. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18686. ac_cv_path_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
  18687. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18688. break 2
  18689. fi
  18690. done
  18691. done
  18692. IFS=$as_save_IFS
  18693. ;;
  18694. esac
  18695. fi
  18696. DX_PDFLATEX=$ac_cv_path_DX_PDFLATEX
  18697. if test -n "$DX_PDFLATEX"; then
  18698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PDFLATEX" >&5
  18699. $as_echo "$DX_PDFLATEX" >&6; }
  18700. else
  18701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18702. $as_echo "no" >&6; }
  18703. fi
  18704. fi
  18705. if test -z "$ac_cv_path_DX_PDFLATEX"; then
  18706. ac_pt_DX_PDFLATEX=$DX_PDFLATEX
  18707. # Extract the first word of "pdflatex", so it can be a program name with args.
  18708. set dummy pdflatex; ac_word=$2
  18709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18710. $as_echo_n "checking for $ac_word... " >&6; }
  18711. if ${ac_cv_path_ac_pt_DX_PDFLATEX+:} false; then :
  18712. $as_echo_n "(cached) " >&6
  18713. else
  18714. case $ac_pt_DX_PDFLATEX in
  18715. [\\/]* | ?:[\\/]*)
  18716. ac_cv_path_ac_pt_DX_PDFLATEX="$ac_pt_DX_PDFLATEX" # Let the user override the test with a path.
  18717. ;;
  18718. *)
  18719. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18720. for as_dir in $PATH
  18721. do
  18722. IFS=$as_save_IFS
  18723. test -z "$as_dir" && as_dir=.
  18724. for ac_exec_ext in '' $ac_executable_extensions; do
  18725. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18726. ac_cv_path_ac_pt_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
  18727. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18728. break 2
  18729. fi
  18730. done
  18731. done
  18732. IFS=$as_save_IFS
  18733. ;;
  18734. esac
  18735. fi
  18736. ac_pt_DX_PDFLATEX=$ac_cv_path_ac_pt_DX_PDFLATEX
  18737. if test -n "$ac_pt_DX_PDFLATEX"; then
  18738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PDFLATEX" >&5
  18739. $as_echo "$ac_pt_DX_PDFLATEX" >&6; }
  18740. else
  18741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18742. $as_echo "no" >&6; }
  18743. fi
  18744. if test "x$ac_pt_DX_PDFLATEX" = x; then
  18745. DX_PDFLATEX=""
  18746. else
  18747. case $cross_compiling:$ac_tool_warned in
  18748. yes:)
  18749. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18750. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18751. ac_tool_warned=yes ;;
  18752. esac
  18753. DX_PDFLATEX=$ac_pt_DX_PDFLATEX
  18754. fi
  18755. else
  18756. DX_PDFLATEX="$ac_cv_path_DX_PDFLATEX"
  18757. fi
  18758. if test "$DX_FLAG_pdf$DX_PDFLATEX" = 1; then
  18759. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&5
  18760. $as_echo "$as_me: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&2;}
  18761. DX_FLAG_pdf=0
  18762. fi
  18763. if test -n "$ac_tool_prefix"; then
  18764. # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
  18765. set dummy ${ac_tool_prefix}makeindex; ac_word=$2
  18766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18767. $as_echo_n "checking for $ac_word... " >&6; }
  18768. if ${ac_cv_path_DX_MAKEINDEX+:} false; then :
  18769. $as_echo_n "(cached) " >&6
  18770. else
  18771. case $DX_MAKEINDEX in
  18772. [\\/]* | ?:[\\/]*)
  18773. ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
  18774. ;;
  18775. *)
  18776. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18777. for as_dir in $PATH
  18778. do
  18779. IFS=$as_save_IFS
  18780. test -z "$as_dir" && as_dir=.
  18781. for ac_exec_ext in '' $ac_executable_extensions; do
  18782. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18783. ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
  18784. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18785. break 2
  18786. fi
  18787. done
  18788. done
  18789. IFS=$as_save_IFS
  18790. ;;
  18791. esac
  18792. fi
  18793. DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
  18794. if test -n "$DX_MAKEINDEX"; then
  18795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
  18796. $as_echo "$DX_MAKEINDEX" >&6; }
  18797. else
  18798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18799. $as_echo "no" >&6; }
  18800. fi
  18801. fi
  18802. if test -z "$ac_cv_path_DX_MAKEINDEX"; then
  18803. ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
  18804. # Extract the first word of "makeindex", so it can be a program name with args.
  18805. set dummy makeindex; ac_word=$2
  18806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18807. $as_echo_n "checking for $ac_word... " >&6; }
  18808. if ${ac_cv_path_ac_pt_DX_MAKEINDEX+:} false; then :
  18809. $as_echo_n "(cached) " >&6
  18810. else
  18811. case $ac_pt_DX_MAKEINDEX in
  18812. [\\/]* | ?:[\\/]*)
  18813. ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
  18814. ;;
  18815. *)
  18816. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18817. for as_dir in $PATH
  18818. do
  18819. IFS=$as_save_IFS
  18820. test -z "$as_dir" && as_dir=.
  18821. for ac_exec_ext in '' $ac_executable_extensions; do
  18822. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18823. ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
  18824. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18825. break 2
  18826. fi
  18827. done
  18828. done
  18829. IFS=$as_save_IFS
  18830. ;;
  18831. esac
  18832. fi
  18833. ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
  18834. if test -n "$ac_pt_DX_MAKEINDEX"; then
  18835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
  18836. $as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
  18837. else
  18838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18839. $as_echo "no" >&6; }
  18840. fi
  18841. if test "x$ac_pt_DX_MAKEINDEX" = x; then
  18842. DX_MAKEINDEX=""
  18843. else
  18844. case $cross_compiling:$ac_tool_warned in
  18845. yes:)
  18846. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18847. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18848. ac_tool_warned=yes ;;
  18849. esac
  18850. DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
  18851. fi
  18852. else
  18853. DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
  18854. fi
  18855. if test "$DX_FLAG_pdf$DX_MAKEINDEX" = 1; then
  18856. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&5
  18857. $as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&2;}
  18858. DX_FLAG_pdf=0
  18859. fi
  18860. if test -n "$ac_tool_prefix"; then
  18861. # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
  18862. set dummy ${ac_tool_prefix}egrep; ac_word=$2
  18863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18864. $as_echo_n "checking for $ac_word... " >&6; }
  18865. if ${ac_cv_path_DX_EGREP+:} false; then :
  18866. $as_echo_n "(cached) " >&6
  18867. else
  18868. case $DX_EGREP in
  18869. [\\/]* | ?:[\\/]*)
  18870. ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
  18871. ;;
  18872. *)
  18873. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18874. for as_dir in $PATH
  18875. do
  18876. IFS=$as_save_IFS
  18877. test -z "$as_dir" && as_dir=.
  18878. for ac_exec_ext in '' $ac_executable_extensions; do
  18879. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18880. ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
  18881. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18882. break 2
  18883. fi
  18884. done
  18885. done
  18886. IFS=$as_save_IFS
  18887. ;;
  18888. esac
  18889. fi
  18890. DX_EGREP=$ac_cv_path_DX_EGREP
  18891. if test -n "$DX_EGREP"; then
  18892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
  18893. $as_echo "$DX_EGREP" >&6; }
  18894. else
  18895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18896. $as_echo "no" >&6; }
  18897. fi
  18898. fi
  18899. if test -z "$ac_cv_path_DX_EGREP"; then
  18900. ac_pt_DX_EGREP=$DX_EGREP
  18901. # Extract the first word of "egrep", so it can be a program name with args.
  18902. set dummy egrep; ac_word=$2
  18903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18904. $as_echo_n "checking for $ac_word... " >&6; }
  18905. if ${ac_cv_path_ac_pt_DX_EGREP+:} false; then :
  18906. $as_echo_n "(cached) " >&6
  18907. else
  18908. case $ac_pt_DX_EGREP in
  18909. [\\/]* | ?:[\\/]*)
  18910. ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
  18911. ;;
  18912. *)
  18913. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18914. for as_dir in $PATH
  18915. do
  18916. IFS=$as_save_IFS
  18917. test -z "$as_dir" && as_dir=.
  18918. for ac_exec_ext in '' $ac_executable_extensions; do
  18919. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18920. ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
  18921. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18922. break 2
  18923. fi
  18924. done
  18925. done
  18926. IFS=$as_save_IFS
  18927. ;;
  18928. esac
  18929. fi
  18930. ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
  18931. if test -n "$ac_pt_DX_EGREP"; then
  18932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
  18933. $as_echo "$ac_pt_DX_EGREP" >&6; }
  18934. else
  18935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18936. $as_echo "no" >&6; }
  18937. fi
  18938. if test "x$ac_pt_DX_EGREP" = x; then
  18939. DX_EGREP=""
  18940. else
  18941. case $cross_compiling:$ac_tool_warned in
  18942. yes:)
  18943. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18944. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18945. ac_tool_warned=yes ;;
  18946. esac
  18947. DX_EGREP=$ac_pt_DX_EGREP
  18948. fi
  18949. else
  18950. DX_EGREP="$ac_cv_path_DX_EGREP"
  18951. fi
  18952. if test "$DX_FLAG_pdf$DX_EGREP" = 1; then
  18953. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PDF documentation" >&5
  18954. $as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PDF documentation" >&2;}
  18955. DX_FLAG_pdf=0
  18956. fi
  18957. :
  18958. fi
  18959. if test "$DX_FLAG_pdf" = 1; then
  18960. :
  18961. else
  18962. :
  18963. fi
  18964. # LaTeX generation for PS and/or PDF:
  18965. if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then
  18966. DX_ENV="$DX_ENV GENERATE_LATEX='YES'"
  18967. GENERATE_LATEX=YES
  18968. else
  18969. DX_ENV="$DX_ENV GENERATE_LATEX='NO'"
  18970. GENERATE_LATEX=NO
  18971. fi
  18972. # Paper size for PS and/or PDF:
  18973. case "$DOXYGEN_PAPER_SIZE" in
  18974. #(
  18975. "")
  18976. DOXYGEN_PAPER_SIZE=""
  18977. ;; #(
  18978. a4wide|a4|letter|legal|executive)
  18979. DX_ENV="$DX_ENV PAPER_SIZE='$DOXYGEN_PAPER_SIZE'"
  18980. PAPER_SIZE=$DOXYGEN_PAPER_SIZE
  18981. ;; #(
  18982. *)
  18983. as_fn_error $? "unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" "$LINENO" 5
  18984. ;;
  18985. esac
  18986. # Rules:
  18987. if test $DX_FLAG_html -eq 1; then :
  18988. DX_SNIPPET_html="## ------------------------------- ##
  18989. ## Rules specific for HTML output. ##
  18990. ## ------------------------------- ##
  18991. DX_CLEAN_HTML = \$(DX_DOCDIR)/html\\
  18992. \$(DX_DOCDIR)/html
  18993. "
  18994. else
  18995. DX_SNIPPET_html=""
  18996. fi
  18997. if test $DX_FLAG_chi -eq 1; then :
  18998. DX_SNIPPET_chi="
  18999. DX_CLEAN_CHI = \$(DX_DOCDIR)/\$(PACKAGE).chi\\
  19000. \$(DX_DOCDIR)/\$(PACKAGE).chi"
  19001. else
  19002. DX_SNIPPET_chi=""
  19003. fi
  19004. if test $DX_FLAG_chm -eq 1; then :
  19005. DX_SNIPPET_chm="## ------------------------------ ##
  19006. ## Rules specific for CHM output. ##
  19007. ## ------------------------------ ##
  19008. DX_CLEAN_CHM = \$(DX_DOCDIR)/chm\\
  19009. \$(DX_DOCDIR)/chm\
  19010. ${DX_SNIPPET_chi}
  19011. "
  19012. else
  19013. DX_SNIPPET_chm=""
  19014. fi
  19015. if test $DX_FLAG_man -eq 1; then :
  19016. DX_SNIPPET_man="## ------------------------------ ##
  19017. ## Rules specific for MAN output. ##
  19018. ## ------------------------------ ##
  19019. DX_CLEAN_MAN = \$(DX_DOCDIR)/man\\
  19020. \$(DX_DOCDIR)/man
  19021. "
  19022. else
  19023. DX_SNIPPET_man=""
  19024. fi
  19025. if test $DX_FLAG_rtf -eq 1; then :
  19026. DX_SNIPPET_rtf="## ------------------------------ ##
  19027. ## Rules specific for RTF output. ##
  19028. ## ------------------------------ ##
  19029. DX_CLEAN_RTF = \$(DX_DOCDIR)/rtf\\
  19030. \$(DX_DOCDIR)/rtf
  19031. "
  19032. else
  19033. DX_SNIPPET_rtf=""
  19034. fi
  19035. if test $DX_FLAG_xml -eq 1; then :
  19036. DX_SNIPPET_xml="## ------------------------------ ##
  19037. ## Rules specific for XML output. ##
  19038. ## ------------------------------ ##
  19039. DX_CLEAN_XML = \$(DX_DOCDIR)/xml\\
  19040. \$(DX_DOCDIR)/xml
  19041. "
  19042. else
  19043. DX_SNIPPET_xml=""
  19044. fi
  19045. if test $DX_FLAG_ps -eq 1; then :
  19046. DX_SNIPPET_ps="## ----------------------------- ##
  19047. ## Rules specific for PS output. ##
  19048. ## ----------------------------- ##
  19049. DX_CLEAN_PS = \$(DX_DOCDIR)/\$(PACKAGE).ps\\
  19050. \$(DX_DOCDIR)/\$(PACKAGE).ps
  19051. DX_PS_GOAL = doxygen-ps
  19052. doxygen-ps: \$(DX_CLEAN_PS)
  19053. \$(DX_DOCDIR)/\$(PACKAGE).ps: \$(DX_DOCDIR)/\$(PACKAGE).tag
  19054. \$(DX_V_LATEX)cd \$(DX_DOCDIR)/latex; \\
  19055. rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \\
  19056. \$(DX_LATEX) refman.tex; \\
  19057. \$(DX_MAKEINDEX) refman.idx; \\
  19058. \$(DX_LATEX) refman.tex; \\
  19059. countdown=5; \\
  19060. while \$(DX_EGREP) 'Rerun (LaTeX|to get cross-references right)' \\
  19061. refman.log > /dev/null 2>&1 \\
  19062. && test \$\$countdown -gt 0; do \\
  19063. \$(DX_LATEX) refman.tex; \\
  19064. countdown=\`expr \$\$countdown - 1\`; \\
  19065. done; \\
  19066. \$(DX_DVIPS) -o ../\$(PACKAGE).ps refman.dvi
  19067. "
  19068. else
  19069. DX_SNIPPET_ps=""
  19070. fi
  19071. if test $DX_FLAG_pdf -eq 1; then :
  19072. DX_SNIPPET_pdf="## ------------------------------ ##
  19073. ## Rules specific for PDF output. ##
  19074. ## ------------------------------ ##
  19075. DX_CLEAN_PDF = \$(DX_DOCDIR)/\$(PACKAGE).pdf\\
  19076. \$(DX_DOCDIR)/\$(PACKAGE).pdf
  19077. DX_PDF_GOAL = doxygen-pdf
  19078. doxygen-pdf: \$(DX_CLEAN_PDF)
  19079. \$(DX_DOCDIR)/\$(PACKAGE).pdf: \$(DX_DOCDIR)/\$(PACKAGE).tag
  19080. \$(DX_V_LATEX)cd \$(DX_DOCDIR)/latex; \\
  19081. rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \\
  19082. \$(DX_PDFLATEX) refman.tex; \\
  19083. \$(DX_MAKEINDEX) refman.idx; \\
  19084. \$(DX_PDFLATEX) refman.tex; \\
  19085. countdown=5; \\
  19086. while \$(DX_EGREP) 'Rerun (LaTeX|to get cross-references right)' \\
  19087. refman.log > /dev/null 2>&1 \\
  19088. && test \$\$countdown -gt 0; do \\
  19089. \$(DX_PDFLATEX) refman.tex; \\
  19090. countdown=\`expr \$\$countdown - 1\`; \\
  19091. done; \\
  19092. mv refman.pdf ../\$(PACKAGE).pdf
  19093. "
  19094. else
  19095. DX_SNIPPET_pdf=""
  19096. fi
  19097. if test $DX_FLAG_ps -eq 1 -o $DX_FLAG_pdf -eq 1; then :
  19098. DX_SNIPPET_latex="## ------------------------------------------------- ##
  19099. ## Rules specific for LaTeX (shared for PS and PDF). ##
  19100. ## ------------------------------------------------- ##
  19101. DX_V_LATEX = \$(_DX_v_LATEX_\$(V))
  19102. _DX_v_LATEX_ = \$(_DX_v_LATEX_\$(AM_DEFAULT_VERBOSITY))
  19103. _DX_v_LATEX_0 = @echo \" LATEX \" \$@;
  19104. DX_CLEAN_LATEX = \$(DX_DOCDIR)/latex\\
  19105. \$(DX_DOCDIR)/latex
  19106. "
  19107. else
  19108. DX_SNIPPET_latex=""
  19109. fi
  19110. if test $DX_FLAG_doc -eq 1; then :
  19111. DX_SNIPPET_doc="## --------------------------------- ##
  19112. ## Format-independent Doxygen rules. ##
  19113. ## --------------------------------- ##
  19114. ${DX_SNIPPET_html}\
  19115. ${DX_SNIPPET_chm}\
  19116. ${DX_SNIPPET_man}\
  19117. ${DX_SNIPPET_rtf}\
  19118. ${DX_SNIPPET_xml}\
  19119. ${DX_SNIPPET_ps}\
  19120. ${DX_SNIPPET_pdf}\
  19121. ${DX_SNIPPET_latex}\
  19122. DX_V_DXGEN = \$(_DX_v_DXGEN_\$(V))
  19123. _DX_v_DXGEN_ = \$(_DX_v_DXGEN_\$(AM_DEFAULT_VERBOSITY))
  19124. _DX_v_DXGEN_0 = @echo \" DXGEN \" \$<;
  19125. .PHONY: doxygen-run doxygen-doc \$(DX_PS_GOAL) \$(DX_PDF_GOAL)
  19126. .INTERMEDIATE: doxygen-run \$(DX_PS_GOAL) \$(DX_PDF_GOAL)
  19127. doxygen-run: \$(DX_DOCDIR)/\$(PACKAGE).tag
  19128. doxygen-doc: doxygen-run \$(DX_PS_GOAL) \$(DX_PDF_GOAL)
  19129. \$(DX_DOCDIR)/\$(PACKAGE).tag: \$(DX_CONFIG) \$(pkginclude_HEADERS)
  19130. \$(A""M_V_at)rm -rf \$(DX_DOCDIR)
  19131. \$(DX_V_DXGEN)\$(DX_ENV) DOCDIR=\$(DX_DOCDIR) \$(DX_DOXYGEN) \$(DX_CONFIG)
  19132. \$(A""M_V_at)echo Timestamp >\$@
  19133. DX_CLEANFILES = \\
  19134. \$(DX_DOCDIR)/doxygen_sqlite3.db \\
  19135. \$(DX_DOCDIR)/\$(PACKAGE).tag \\
  19136. -r \\
  19137. \$(DX_CLEAN_HTML) \\
  19138. \$(DX_CLEAN_CHM) \\
  19139. \$(DX_CLEAN_CHI) \\
  19140. \$(DX_CLEAN_MAN) \\
  19141. \$(DX_CLEAN_RTF) \\
  19142. \$(DX_CLEAN_XML) \\
  19143. \$(DX_CLEAN_PS) \\
  19144. \$(DX_CLEAN_PDF) \\
  19145. \$(DX_CLEAN_LATEX)"
  19146. else
  19147. DX_SNIPPET_doc=""
  19148. fi
  19149. DX_RULES="${DX_SNIPPET_doc}"
  19150. #For debugging:
  19151. #echo DX_FLAG_doc=$DX_FLAG_doc
  19152. #echo DX_FLAG_dot=$DX_FLAG_dot
  19153. #echo DX_FLAG_man=$DX_FLAG_man
  19154. #echo DX_FLAG_html=$DX_FLAG_html
  19155. #echo DX_FLAG_chm=$DX_FLAG_chm
  19156. #echo DX_FLAG_chi=$DX_FLAG_chi
  19157. #echo DX_FLAG_rtf=$DX_FLAG_rtf
  19158. #echo DX_FLAG_xml=$DX_FLAG_xml
  19159. #echo DX_FLAG_pdf=$DX_FLAG_pdf
  19160. #echo DX_FLAG_ps=$DX_FLAG_ps
  19161. #echo DX_ENV=$DX_ENV
  19162. if test $DX_FLAG_doc -eq 1; then
  19163. DOXYMAN_TRUE=
  19164. DOXYMAN_FALSE='#'
  19165. else
  19166. DOXYMAN_TRUE='#'
  19167. DOXYMAN_FALSE=
  19168. fi
  19169. if test $DX_FLAG_doc -ne 1; then :
  19170. if test "x$enable_doxygen_doc" = xyes; then :
  19171. # Extract the first word of "doxygen", so it can be a program name with args.
  19172. set dummy doxygen; ac_word=$2
  19173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19174. $as_echo_n "checking for $ac_word... " >&6; }
  19175. if ${ac_cv_prog_result_doxygen+:} false; then :
  19176. $as_echo_n "(cached) " >&6
  19177. else
  19178. if test -n "$result_doxygen"; then
  19179. ac_cv_prog_result_doxygen="$result_doxygen" # Let the user override the test.
  19180. else
  19181. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19182. for as_dir in $PATH
  19183. do
  19184. IFS=$as_save_IFS
  19185. test -z "$as_dir" && as_dir=.
  19186. for ac_exec_ext in '' $ac_executable_extensions; do
  19187. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19188. ac_cv_prog_result_doxygen="yes"
  19189. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19190. break 2
  19191. fi
  19192. done
  19193. done
  19194. IFS=$as_save_IFS
  19195. test -z "$ac_cv_prog_result_doxygen" && ac_cv_prog_result_doxygen="no"
  19196. fi
  19197. fi
  19198. result_doxygen=$ac_cv_prog_result_doxygen
  19199. if test -n "$result_doxygen"; then
  19200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result_doxygen" >&5
  19201. $as_echo "$result_doxygen" >&6; }
  19202. else
  19203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19204. $as_echo "no" >&6; }
  19205. fi
  19206. if test "x$result_doxygen" != "xyes"; then :
  19207. as_fn_error $? "Missing required program 'doxygen': ensure it is installed and on PATH." "$LINENO" 5
  19208. fi
  19209. fi
  19210. fi
  19211. # allow to override gcov location
  19212. # Check whether --with-gcov was given.
  19213. if test "${with_gcov+set}" = set; then :
  19214. withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
  19215. else
  19216. _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
  19217. fi
  19218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
  19219. $as_echo_n "checking whether to build with code coverage support... " >&6; }
  19220. # Check whether --enable-code-coverage was given.
  19221. if test "${enable_code_coverage+set}" = set; then :
  19222. enableval=$enable_code_coverage;
  19223. else
  19224. enable_code_coverage=no
  19225. fi
  19226. if test "x$enable_code_coverage" = xyes; then
  19227. CODE_COVERAGE_ENABLED_TRUE=
  19228. CODE_COVERAGE_ENABLED_FALSE='#'
  19229. else
  19230. CODE_COVERAGE_ENABLED_TRUE='#'
  19231. CODE_COVERAGE_ENABLED_FALSE=
  19232. fi
  19233. CODE_COVERAGE_ENABLED=$enable_code_coverage
  19234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
  19235. $as_echo "$enable_code_coverage" >&6; }
  19236. if test "x$enable_code_coverage" = xyes ; then :
  19237. for ac_prog in gawk mawk nawk awk
  19238. do
  19239. # Extract the first word of "$ac_prog", so it can be a program name with args.
  19240. set dummy $ac_prog; ac_word=$2
  19241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19242. $as_echo_n "checking for $ac_word... " >&6; }
  19243. if ${ac_cv_prog_AWK+:} false; then :
  19244. $as_echo_n "(cached) " >&6
  19245. else
  19246. if test -n "$AWK"; then
  19247. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  19248. else
  19249. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19250. for as_dir in $PATH
  19251. do
  19252. IFS=$as_save_IFS
  19253. test -z "$as_dir" && as_dir=.
  19254. for ac_exec_ext in '' $ac_executable_extensions; do
  19255. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19256. ac_cv_prog_AWK="$ac_prog"
  19257. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19258. break 2
  19259. fi
  19260. done
  19261. done
  19262. IFS=$as_save_IFS
  19263. fi
  19264. fi
  19265. AWK=$ac_cv_prog_AWK
  19266. if test -n "$AWK"; then
  19267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  19268. $as_echo "$AWK" >&6; }
  19269. else
  19270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19271. $as_echo "no" >&6; }
  19272. fi
  19273. test -n "$AWK" && break
  19274. done
  19275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
  19276. $as_echo_n "checking for GNU make... " >&6; }
  19277. if ${_cv_gnu_make_command+:} false; then :
  19278. $as_echo_n "(cached) " >&6
  19279. else
  19280. _cv_gnu_make_command="" ;
  19281. for a in "$MAKE" make gmake gnumake ; do
  19282. if test -z "$a" ; then continue ; fi ;
  19283. if "$a" --version 2> /dev/null | grep GNU 2>&1 > /dev/null ; then
  19284. _cv_gnu_make_command=$a ;
  19285. AX_CHECK_GNU_MAKE_HEADLINE=$("$a" --version 2> /dev/null | grep "GNU Make")
  19286. ax_check_gnu_make_version=$(echo ${AX_CHECK_GNU_MAKE_HEADLINE} | ${AWK} -F " " '{ print $(NF); }')
  19287. break ;
  19288. fi
  19289. done ;
  19290. fi
  19291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
  19292. $as_echo "$_cv_gnu_make_command" >&6; }
  19293. if test "x$_cv_gnu_make_command" = x""; then :
  19294. ifGNUmake="#"
  19295. else
  19296. ifGNUmake=""
  19297. fi
  19298. if test "x$_cv_gnu_make_command" = x""; then :
  19299. ifnGNUmake=""
  19300. else
  19301. ifGNUmake="#"
  19302. fi
  19303. if test "x$_cv_gnu_make_command" = x""; then :
  19304. { ax_cv_gnu_make_command=; unset ax_cv_gnu_make_command;}
  19305. else
  19306. ax_cv_gnu_make_command=${_cv_gnu_make_command}
  19307. fi
  19308. if test "x$_cv_gnu_make_command" = x""; then :
  19309. as_fn_error $? "not using GNU make that is needed for coverage" "$LINENO" 5
  19310. fi
  19311. # check for gcov
  19312. if test -n "$ac_tool_prefix"; then
  19313. # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
  19314. set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
  19315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19316. $as_echo_n "checking for $ac_word... " >&6; }
  19317. if ${ac_cv_prog_GCOV+:} false; then :
  19318. $as_echo_n "(cached) " >&6
  19319. else
  19320. if test -n "$GCOV"; then
  19321. ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
  19322. else
  19323. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19324. for as_dir in $PATH
  19325. do
  19326. IFS=$as_save_IFS
  19327. test -z "$as_dir" && as_dir=.
  19328. for ac_exec_ext in '' $ac_executable_extensions; do
  19329. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19330. ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
  19331. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19332. break 2
  19333. fi
  19334. done
  19335. done
  19336. IFS=$as_save_IFS
  19337. fi
  19338. fi
  19339. GCOV=$ac_cv_prog_GCOV
  19340. if test -n "$GCOV"; then
  19341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
  19342. $as_echo "$GCOV" >&6; }
  19343. else
  19344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19345. $as_echo "no" >&6; }
  19346. fi
  19347. fi
  19348. if test -z "$ac_cv_prog_GCOV"; then
  19349. ac_ct_GCOV=$GCOV
  19350. # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
  19351. set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
  19352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19353. $as_echo_n "checking for $ac_word... " >&6; }
  19354. if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
  19355. $as_echo_n "(cached) " >&6
  19356. else
  19357. if test -n "$ac_ct_GCOV"; then
  19358. ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
  19359. else
  19360. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19361. for as_dir in $PATH
  19362. do
  19363. IFS=$as_save_IFS
  19364. test -z "$as_dir" && as_dir=.
  19365. for ac_exec_ext in '' $ac_executable_extensions; do
  19366. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19367. ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
  19368. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19369. break 2
  19370. fi
  19371. done
  19372. done
  19373. IFS=$as_save_IFS
  19374. fi
  19375. fi
  19376. ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
  19377. if test -n "$ac_ct_GCOV"; then
  19378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
  19379. $as_echo "$ac_ct_GCOV" >&6; }
  19380. else
  19381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19382. $as_echo "no" >&6; }
  19383. fi
  19384. if test "x$ac_ct_GCOV" = x; then
  19385. GCOV=":"
  19386. else
  19387. case $cross_compiling:$ac_tool_warned in
  19388. yes:)
  19389. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  19390. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  19391. ac_tool_warned=yes ;;
  19392. esac
  19393. GCOV=$ac_ct_GCOV
  19394. fi
  19395. else
  19396. GCOV="$ac_cv_prog_GCOV"
  19397. fi
  19398. if test "X$GCOV" = "X:"; then :
  19399. as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
  19400. fi
  19401. if test "$GCC" = "no" ; then :
  19402. as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
  19403. fi
  19404. # Extract the first word of "lcov", so it can be a program name with args.
  19405. set dummy lcov; ac_word=$2
  19406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19407. $as_echo_n "checking for $ac_word... " >&6; }
  19408. if ${ac_cv_prog_LCOV+:} false; then :
  19409. $as_echo_n "(cached) " >&6
  19410. else
  19411. if test -n "$LCOV"; then
  19412. ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
  19413. else
  19414. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19415. for as_dir in $PATH
  19416. do
  19417. IFS=$as_save_IFS
  19418. test -z "$as_dir" && as_dir=.
  19419. for ac_exec_ext in '' $ac_executable_extensions; do
  19420. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19421. ac_cv_prog_LCOV="lcov"
  19422. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19423. break 2
  19424. fi
  19425. done
  19426. done
  19427. IFS=$as_save_IFS
  19428. fi
  19429. fi
  19430. LCOV=$ac_cv_prog_LCOV
  19431. if test -n "$LCOV"; then
  19432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
  19433. $as_echo "$LCOV" >&6; }
  19434. else
  19435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19436. $as_echo "no" >&6; }
  19437. fi
  19438. # Extract the first word of "genhtml", so it can be a program name with args.
  19439. set dummy genhtml; ac_word=$2
  19440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19441. $as_echo_n "checking for $ac_word... " >&6; }
  19442. if ${ac_cv_prog_GENHTML+:} false; then :
  19443. $as_echo_n "(cached) " >&6
  19444. else
  19445. if test -n "$GENHTML"; then
  19446. ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
  19447. else
  19448. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19449. for as_dir in $PATH
  19450. do
  19451. IFS=$as_save_IFS
  19452. test -z "$as_dir" && as_dir=.
  19453. for ac_exec_ext in '' $ac_executable_extensions; do
  19454. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19455. ac_cv_prog_GENHTML="genhtml"
  19456. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19457. break 2
  19458. fi
  19459. done
  19460. done
  19461. IFS=$as_save_IFS
  19462. fi
  19463. fi
  19464. GENHTML=$ac_cv_prog_GENHTML
  19465. if test -n "$GENHTML"; then
  19466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
  19467. $as_echo "$GENHTML" >&6; }
  19468. else
  19469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19470. $as_echo "no" >&6; }
  19471. fi
  19472. if test x"$LCOV" = x ; then :
  19473. as_fn_error $? "To enable code coverage reporting you must have lcov installed" "$LINENO" 5
  19474. fi
  19475. if test x"$GENHTML" = x ; then :
  19476. as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
  19477. fi
  19478. CODE_COVERAGE_CPPFLAGS="-DNDEBUG"
  19479. CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
  19480. CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
  19481. CODE_COVERAGE_LIBS="-lgcov"
  19482. fi
  19483. if true; then
  19484. AUTOCONF_CODE_COVERAGE_2019_01_06_TRUE=
  19485. AUTOCONF_CODE_COVERAGE_2019_01_06_FALSE='#'
  19486. else
  19487. AUTOCONF_CODE_COVERAGE_2019_01_06_TRUE='#'
  19488. AUTOCONF_CODE_COVERAGE_2019_01_06_FALSE=
  19489. fi
  19490. if test -z "$ENABLE_TCTI_DEVICE_TRUE"; then :
  19491. else
  19492. if test -z "$ENABLE_TCTI_MSSIM_TRUE"; then :
  19493. else
  19494. if test -z "$ENABLE_TCTI_SWTPM_TRUE"; then :
  19495. else
  19496. if test -z "$ENABLE_TCTI_FUZZING_TRUE"; then :
  19497. else
  19498. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"No build-in TCTI module enabled\"" >&5
  19499. $as_echo "$as_me: WARNING: \"No build-in TCTI module enabled\"" >&2;}
  19500. fi
  19501. fi
  19502. fi
  19503. fi
  19504. if test -z "$ENABLE_TCTI_FUZZING_TRUE"; then :
  19505. if test -z "$ENABLE_TCTI_DEVICE_TRUE"; then :
  19506. as_fn_error $? "Fuzzing TCTI is meant to be built as the only TCTI: use --disable-tcti-device --disable-tcti-mssim --disable-tcti-swtpm" "$LINENO" 5
  19507. fi
  19508. if test -z "$ENABLE_TCTI_MSSIM_TRUE"; then :
  19509. as_fn_error $? "Fuzzing TCTI is meant to be built as the only TCTI: use --disable-tcti-device --disable-tcti-mssim --disable-tcti-swtpm" "$LINENO" 5
  19510. fi
  19511. if test -z "$ENABLE_TCTI_SWTPM_TRUE"; then :
  19512. as_fn_error $? "Fuzzing TCTI is meant to be built as the only TCTI: use --disable-tcti-device --disable-tcti-mssim --disable-tcti-swtpm" "$LINENO" 5
  19513. fi
  19514. case $CC in #(
  19515. *clang*) :
  19516. { $as_echo "$as_me:${as_lineno-$LINENO}: \"Building fuzzing tests with $CC\"" >&5
  19517. $as_echo "$as_me: \"Building fuzzing tests with $CC\"" >&6;} ;; #(
  19518. *) :
  19519. as_fn_error $? "\"Fuzzing TCTI can only be used with clang\"" "$LINENO" 5 ;;
  19520. esac
  19521. fi
  19522. cat >confcache <<\_ACEOF
  19523. # This file is a shell script that caches the results of configure
  19524. # tests run on this system so they can be shared between configure
  19525. # scripts and configure runs, see configure's option --config-cache.
  19526. # It is not useful on other systems. If it contains results you don't
  19527. # want to keep, you may remove or edit it.
  19528. #
  19529. # config.status only pays attention to the cache file if you give it
  19530. # the --recheck option to rerun configure.
  19531. #
  19532. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  19533. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  19534. # following values.
  19535. _ACEOF
  19536. # The following way of writing the cache mishandles newlines in values,
  19537. # but we know of no workaround that is simple, portable, and efficient.
  19538. # So, we kill variables containing newlines.
  19539. # Ultrix sh set writes to stderr and can't be redirected directly,
  19540. # and sets the high bit in the cache file unless we assign to the vars.
  19541. (
  19542. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  19543. eval ac_val=\$$ac_var
  19544. case $ac_val in #(
  19545. *${as_nl}*)
  19546. case $ac_var in #(
  19547. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  19548. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  19549. esac
  19550. case $ac_var in #(
  19551. _ | IFS | as_nl) ;; #(
  19552. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  19553. *) { eval $ac_var=; unset $ac_var;} ;;
  19554. esac ;;
  19555. esac
  19556. done
  19557. (set) 2>&1 |
  19558. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  19559. *${as_nl}ac_space=\ *)
  19560. # `set' does not quote correctly, so add quotes: double-quote
  19561. # substitution turns \\\\ into \\, and sed turns \\ into \.
  19562. sed -n \
  19563. "s/'/'\\\\''/g;
  19564. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  19565. ;; #(
  19566. *)
  19567. # `set' quotes correctly as required by POSIX, so do not add quotes.
  19568. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  19569. ;;
  19570. esac |
  19571. sort
  19572. ) |
  19573. sed '
  19574. /^ac_cv_env_/b end
  19575. t clear
  19576. :clear
  19577. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  19578. t end
  19579. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  19580. :end' >>confcache
  19581. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  19582. if test -w "$cache_file"; then
  19583. if test "x$cache_file" != "x/dev/null"; then
  19584. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  19585. $as_echo "$as_me: updating cache $cache_file" >&6;}
  19586. if test ! -f "$cache_file" || test -h "$cache_file"; then
  19587. cat confcache >"$cache_file"
  19588. else
  19589. case $cache_file in #(
  19590. */* | ?:*)
  19591. mv -f confcache "$cache_file"$$ &&
  19592. mv -f "$cache_file"$$ "$cache_file" ;; #(
  19593. *)
  19594. mv -f confcache "$cache_file" ;;
  19595. esac
  19596. fi
  19597. fi
  19598. else
  19599. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  19600. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  19601. fi
  19602. fi
  19603. rm -f confcache
  19604. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  19605. # Let make expand exec_prefix.
  19606. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  19607. DEFS=-DHAVE_CONFIG_H
  19608. ac_libobjs=
  19609. ac_ltlibobjs=
  19610. U=
  19611. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  19612. # 1. Remove the extension, and $U if already installed.
  19613. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  19614. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  19615. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  19616. # will be set to the directory where LIBOBJS objects are built.
  19617. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  19618. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  19619. done
  19620. LIBOBJS=$ac_libobjs
  19621. LTLIBOBJS=$ac_ltlibobjs
  19622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  19623. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  19624. if test -n "$am_sleep_pid"; then
  19625. # Hide warnings about reused PIDs.
  19626. wait $am_sleep_pid 2>/dev/null
  19627. fi
  19628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  19629. $as_echo "done" >&6; }
  19630. if test -n "$EXEEXT"; then
  19631. am__EXEEXT_TRUE=
  19632. am__EXEEXT_FALSE='#'
  19633. else
  19634. am__EXEEXT_TRUE='#'
  19635. am__EXEEXT_FALSE=
  19636. fi
  19637. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  19638. as_fn_error $? "conditional \"AMDEP\" was never defined.
  19639. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19640. fi
  19641. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  19642. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  19643. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19644. fi
  19645. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  19646. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  19647. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19648. fi
  19649. if test -z "${HOSTOS_LINUX_TRUE}" && test -z "${HOSTOS_LINUX_FALSE}"; then
  19650. as_fn_error $? "conditional \"HOSTOS_LINUX\" was never defined.
  19651. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19652. fi
  19653. if test -z "${UNIT_TRUE}" && test -z "${UNIT_FALSE}"; then
  19654. as_fn_error $? "conditional \"UNIT\" was never defined.
  19655. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19656. fi
  19657. if test -z "${ESYS_TRUE}" && test -z "${ESYS_FALSE}"; then
  19658. as_fn_error $? "conditional \"ESYS\" was never defined.
  19659. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19660. fi
  19661. if test -z "${FAPI_TRUE}" && test -z "${FAPI_FALSE}"; then
  19662. as_fn_error $? "conditional \"FAPI\" was never defined.
  19663. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19664. fi
  19665. if test -z "${ESYS_OSSL_TRUE}" && test -z "${ESYS_OSSL_FALSE}"; then
  19666. as_fn_error $? "conditional \"ESYS_OSSL\" was never defined.
  19667. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19668. fi
  19669. if test -z "${ESYS_MBED_TRUE}" && test -z "${ESYS_MBED_FALSE}"; then
  19670. as_fn_error $? "conditional \"ESYS_MBED\" was never defined.
  19671. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19672. fi
  19673. if test -z "${ENABLE_TCTI_DEVICE_TRUE}" && test -z "${ENABLE_TCTI_DEVICE_FALSE}"; then
  19674. as_fn_error $? "conditional \"ENABLE_TCTI_DEVICE\" was never defined.
  19675. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19676. fi
  19677. if test -z "${ENABLE_TCTI_MSSIM_TRUE}" && test -z "${ENABLE_TCTI_MSSIM_FALSE}"; then
  19678. as_fn_error $? "conditional \"ENABLE_TCTI_MSSIM\" was never defined.
  19679. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19680. fi
  19681. if test -z "${ENABLE_TCTI_SWTPM_TRUE}" && test -z "${ENABLE_TCTI_SWTPM_FALSE}"; then
  19682. as_fn_error $? "conditional \"ENABLE_TCTI_SWTPM\" was never defined.
  19683. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19684. fi
  19685. if test -z "${ENABLE_TCTI_PCAP_TRUE}" && test -z "${ENABLE_TCTI_PCAP_FALSE}"; then
  19686. as_fn_error $? "conditional \"ENABLE_TCTI_PCAP\" was never defined.
  19687. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19688. fi
  19689. if test -z "${ENABLE_TCTI_LIBTPMS_TRUE}" && test -z "${ENABLE_TCTI_LIBTPMS_FALSE}"; then
  19690. as_fn_error $? "conditional \"ENABLE_TCTI_LIBTPMS\" was never defined.
  19691. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19692. fi
  19693. if test -z "${ENABLE_TCTI_CMD_TRUE}" && test -z "${ENABLE_TCTI_CMD_FALSE}"; then
  19694. as_fn_error $? "conditional \"ENABLE_TCTI_CMD\" was never defined.
  19695. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19696. fi
  19697. if test -z "${ENABLE_TCTI_FUZZING_TRUE}" && test -z "${ENABLE_TCTI_FUZZING_FALSE}"; then
  19698. as_fn_error $? "conditional \"ENABLE_TCTI_FUZZING\" was never defined.
  19699. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19700. fi
  19701. if test -z "${NO_DL_TRUE}" && test -z "${NO_DL_FALSE}"; then
  19702. as_fn_error $? "conditional \"NO_DL\" was never defined.
  19703. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19704. fi
  19705. if test -z "${WITH_UDEVRULESPREFIX_TRUE}" && test -z "${WITH_UDEVRULESPREFIX_FALSE}"; then
  19706. as_fn_error $? "conditional \"WITH_UDEVRULESPREFIX\" was never defined.
  19707. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19708. fi
  19709. if test -z "${TESTDEVICE_TRUE}" && test -z "${TESTDEVICE_FALSE}"; then
  19710. as_fn_error $? "conditional \"TESTDEVICE\" was never defined.
  19711. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19712. fi
  19713. if test -z "${DEVICEDESTRUCTIVE_TRUE}" && test -z "${DEVICEDESTRUCTIVE_FALSE}"; then
  19714. as_fn_error $? "conditional \"DEVICEDESTRUCTIVE\" was never defined.
  19715. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19716. fi
  19717. if test -z "${DEVICEOPTIONAL_TRUE}" && test -z "${DEVICEOPTIONAL_FALSE}"; then
  19718. as_fn_error $? "conditional \"DEVICEOPTIONAL\" was never defined.
  19719. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19720. fi
  19721. if test -z "${DEVICEMANDATORY_TRUE}" && test -z "${DEVICEMANDATORY_FALSE}"; then
  19722. as_fn_error $? "conditional \"DEVICEMANDATORY\" was never defined.
  19723. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19724. fi
  19725. if test -z "${ENABLE_INTEGRATION_TRUE}" && test -z "${ENABLE_INTEGRATION_FALSE}"; then
  19726. as_fn_error $? "conditional \"ENABLE_INTEGRATION\" was never defined.
  19727. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19728. fi
  19729. if test -z "${ENABLE_FUZZING_TRUE}" && test -z "${ENABLE_FUZZING_FALSE}"; then
  19730. as_fn_error $? "conditional \"ENABLE_FUZZING\" was never defined.
  19731. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19732. fi
  19733. if test -z "${VALGRIND_ENABLED_TRUE}" && test -z "${VALGRIND_ENABLED_FALSE}"; then
  19734. as_fn_error $? "conditional \"VALGRIND_ENABLED\" was never defined.
  19735. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19736. fi
  19737. if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
  19738. as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
  19739. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19740. fi
  19741. if test -z "${SYSD_SYSUSERS_TRUE}" && test -z "${SYSD_SYSUSERS_FALSE}"; then
  19742. as_fn_error $? "conditional \"SYSD_SYSUSERS\" was never defined.
  19743. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19744. fi
  19745. if test -z "${SYSD_TMPFILES_TRUE}" && test -z "${SYSD_TMPFILES_FALSE}"; then
  19746. as_fn_error $? "conditional \"SYSD_TMPFILES\" was never defined.
  19747. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19748. fi
  19749. if test -z "${DOXYMAN_TRUE}" && test -z "${DOXYMAN_FALSE}"; then
  19750. as_fn_error $? "conditional \"DOXYMAN\" was never defined.
  19751. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19752. fi
  19753. if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
  19754. as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
  19755. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19756. fi
  19757. if test -z "${AUTOCONF_CODE_COVERAGE_2019_01_06_TRUE}" && test -z "${AUTOCONF_CODE_COVERAGE_2019_01_06_FALSE}"; then
  19758. as_fn_error $? "conditional \"AUTOCONF_CODE_COVERAGE_2019_01_06\" was never defined.
  19759. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19760. fi
  19761. : "${CONFIG_STATUS=./config.status}"
  19762. ac_write_fail=0
  19763. ac_clean_files_save=$ac_clean_files
  19764. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  19765. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  19766. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  19767. as_write_fail=0
  19768. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  19769. #! $SHELL
  19770. # Generated by $as_me.
  19771. # Run this file to recreate the current configuration.
  19772. # Compiler output produced by configure, useful for debugging
  19773. # configure, is in config.log if it exists.
  19774. debug=false
  19775. ac_cs_recheck=false
  19776. ac_cs_silent=false
  19777. SHELL=\${CONFIG_SHELL-$SHELL}
  19778. export SHELL
  19779. _ASEOF
  19780. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  19781. ## -------------------- ##
  19782. ## M4sh Initialization. ##
  19783. ## -------------------- ##
  19784. # Be more Bourne compatible
  19785. DUALCASE=1; export DUALCASE # for MKS sh
  19786. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19787. emulate sh
  19788. NULLCMD=:
  19789. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  19790. # is contrary to our usage. Disable this feature.
  19791. alias -g '${1+"$@"}'='"$@"'
  19792. setopt NO_GLOB_SUBST
  19793. else
  19794. case `(set -o) 2>/dev/null` in #(
  19795. *posix*) :
  19796. set -o posix ;; #(
  19797. *) :
  19798. ;;
  19799. esac
  19800. fi
  19801. as_nl='
  19802. '
  19803. export as_nl
  19804. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  19805. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  19806. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  19807. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  19808. # Prefer a ksh shell builtin over an external printf program on Solaris,
  19809. # but without wasting forks for bash or zsh.
  19810. if test -z "$BASH_VERSION$ZSH_VERSION" \
  19811. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  19812. as_echo='print -r --'
  19813. as_echo_n='print -rn --'
  19814. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  19815. as_echo='printf %s\n'
  19816. as_echo_n='printf %s'
  19817. else
  19818. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  19819. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  19820. as_echo_n='/usr/ucb/echo -n'
  19821. else
  19822. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  19823. as_echo_n_body='eval
  19824. arg=$1;
  19825. case $arg in #(
  19826. *"$as_nl"*)
  19827. expr "X$arg" : "X\\(.*\\)$as_nl";
  19828. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  19829. esac;
  19830. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  19831. '
  19832. export as_echo_n_body
  19833. as_echo_n='sh -c $as_echo_n_body as_echo'
  19834. fi
  19835. export as_echo_body
  19836. as_echo='sh -c $as_echo_body as_echo'
  19837. fi
  19838. # The user is always right.
  19839. if test "${PATH_SEPARATOR+set}" != set; then
  19840. PATH_SEPARATOR=:
  19841. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  19842. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  19843. PATH_SEPARATOR=';'
  19844. }
  19845. fi
  19846. # IFS
  19847. # We need space, tab and new line, in precisely that order. Quoting is
  19848. # there to prevent editors from complaining about space-tab.
  19849. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  19850. # splitting by setting IFS to empty value.)
  19851. IFS=" "" $as_nl"
  19852. # Find who we are. Look in the path if we contain no directory separator.
  19853. as_myself=
  19854. case $0 in #((
  19855. *[\\/]* ) as_myself=$0 ;;
  19856. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19857. for as_dir in $PATH
  19858. do
  19859. IFS=$as_save_IFS
  19860. test -z "$as_dir" && as_dir=.
  19861. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  19862. done
  19863. IFS=$as_save_IFS
  19864. ;;
  19865. esac
  19866. # We did not find ourselves, most probably we were run as `sh COMMAND'
  19867. # in which case we are not to be found in the path.
  19868. if test "x$as_myself" = x; then
  19869. as_myself=$0
  19870. fi
  19871. if test ! -f "$as_myself"; then
  19872. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  19873. exit 1
  19874. fi
  19875. # Unset variables that we do not need and which cause bugs (e.g. in
  19876. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  19877. # suppresses any "Segmentation fault" message there. '((' could
  19878. # trigger a bug in pdksh 5.2.14.
  19879. for as_var in BASH_ENV ENV MAIL MAILPATH
  19880. do eval test x\${$as_var+set} = xset \
  19881. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  19882. done
  19883. PS1='$ '
  19884. PS2='> '
  19885. PS4='+ '
  19886. # NLS nuisances.
  19887. LC_ALL=C
  19888. export LC_ALL
  19889. LANGUAGE=C
  19890. export LANGUAGE
  19891. # CDPATH.
  19892. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  19893. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  19894. # ----------------------------------------
  19895. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  19896. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  19897. # script with STATUS, using 1 if that was 0.
  19898. as_fn_error ()
  19899. {
  19900. as_status=$1; test $as_status -eq 0 && as_status=1
  19901. if test "$4"; then
  19902. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  19903. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  19904. fi
  19905. $as_echo "$as_me: error: $2" >&2
  19906. as_fn_exit $as_status
  19907. } # as_fn_error
  19908. # as_fn_set_status STATUS
  19909. # -----------------------
  19910. # Set $? to STATUS, without forking.
  19911. as_fn_set_status ()
  19912. {
  19913. return $1
  19914. } # as_fn_set_status
  19915. # as_fn_exit STATUS
  19916. # -----------------
  19917. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  19918. as_fn_exit ()
  19919. {
  19920. set +e
  19921. as_fn_set_status $1
  19922. exit $1
  19923. } # as_fn_exit
  19924. # as_fn_unset VAR
  19925. # ---------------
  19926. # Portably unset VAR.
  19927. as_fn_unset ()
  19928. {
  19929. { eval $1=; unset $1;}
  19930. }
  19931. as_unset=as_fn_unset
  19932. # as_fn_append VAR VALUE
  19933. # ----------------------
  19934. # Append the text in VALUE to the end of the definition contained in VAR. Take
  19935. # advantage of any shell optimizations that allow amortized linear growth over
  19936. # repeated appends, instead of the typical quadratic growth present in naive
  19937. # implementations.
  19938. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  19939. eval 'as_fn_append ()
  19940. {
  19941. eval $1+=\$2
  19942. }'
  19943. else
  19944. as_fn_append ()
  19945. {
  19946. eval $1=\$$1\$2
  19947. }
  19948. fi # as_fn_append
  19949. # as_fn_arith ARG...
  19950. # ------------------
  19951. # Perform arithmetic evaluation on the ARGs, and store the result in the
  19952. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  19953. # must be portable across $(()) and expr.
  19954. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  19955. eval 'as_fn_arith ()
  19956. {
  19957. as_val=$(( $* ))
  19958. }'
  19959. else
  19960. as_fn_arith ()
  19961. {
  19962. as_val=`expr "$@" || test $? -eq 1`
  19963. }
  19964. fi # as_fn_arith
  19965. if expr a : '\(a\)' >/dev/null 2>&1 &&
  19966. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  19967. as_expr=expr
  19968. else
  19969. as_expr=false
  19970. fi
  19971. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  19972. as_basename=basename
  19973. else
  19974. as_basename=false
  19975. fi
  19976. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  19977. as_dirname=dirname
  19978. else
  19979. as_dirname=false
  19980. fi
  19981. as_me=`$as_basename -- "$0" ||
  19982. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  19983. X"$0" : 'X\(//\)$' \| \
  19984. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  19985. $as_echo X/"$0" |
  19986. sed '/^.*\/\([^/][^/]*\)\/*$/{
  19987. s//\1/
  19988. q
  19989. }
  19990. /^X\/\(\/\/\)$/{
  19991. s//\1/
  19992. q
  19993. }
  19994. /^X\/\(\/\).*/{
  19995. s//\1/
  19996. q
  19997. }
  19998. s/.*/./; q'`
  19999. # Avoid depending upon Character Ranges.
  20000. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  20001. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  20002. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  20003. as_cr_digits='0123456789'
  20004. as_cr_alnum=$as_cr_Letters$as_cr_digits
  20005. ECHO_C= ECHO_N= ECHO_T=
  20006. case `echo -n x` in #(((((
  20007. -n*)
  20008. case `echo 'xy\c'` in
  20009. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  20010. xy) ECHO_C='\c';;
  20011. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  20012. ECHO_T=' ';;
  20013. esac;;
  20014. *)
  20015. ECHO_N='-n';;
  20016. esac
  20017. rm -f conf$$ conf$$.exe conf$$.file
  20018. if test -d conf$$.dir; then
  20019. rm -f conf$$.dir/conf$$.file
  20020. else
  20021. rm -f conf$$.dir
  20022. mkdir conf$$.dir 2>/dev/null
  20023. fi
  20024. if (echo >conf$$.file) 2>/dev/null; then
  20025. if ln -s conf$$.file conf$$ 2>/dev/null; then
  20026. as_ln_s='ln -s'
  20027. # ... but there are two gotchas:
  20028. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  20029. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  20030. # In both cases, we have to default to `cp -pR'.
  20031. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  20032. as_ln_s='cp -pR'
  20033. elif ln conf$$.file conf$$ 2>/dev/null; then
  20034. as_ln_s=ln
  20035. else
  20036. as_ln_s='cp -pR'
  20037. fi
  20038. else
  20039. as_ln_s='cp -pR'
  20040. fi
  20041. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  20042. rmdir conf$$.dir 2>/dev/null
  20043. # as_fn_mkdir_p
  20044. # -------------
  20045. # Create "$as_dir" as a directory, including parents if necessary.
  20046. as_fn_mkdir_p ()
  20047. {
  20048. case $as_dir in #(
  20049. -*) as_dir=./$as_dir;;
  20050. esac
  20051. test -d "$as_dir" || eval $as_mkdir_p || {
  20052. as_dirs=
  20053. while :; do
  20054. case $as_dir in #(
  20055. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  20056. *) as_qdir=$as_dir;;
  20057. esac
  20058. as_dirs="'$as_qdir' $as_dirs"
  20059. as_dir=`$as_dirname -- "$as_dir" ||
  20060. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20061. X"$as_dir" : 'X\(//\)[^/]' \| \
  20062. X"$as_dir" : 'X\(//\)$' \| \
  20063. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  20064. $as_echo X"$as_dir" |
  20065. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20066. s//\1/
  20067. q
  20068. }
  20069. /^X\(\/\/\)[^/].*/{
  20070. s//\1/
  20071. q
  20072. }
  20073. /^X\(\/\/\)$/{
  20074. s//\1/
  20075. q
  20076. }
  20077. /^X\(\/\).*/{
  20078. s//\1/
  20079. q
  20080. }
  20081. s/.*/./; q'`
  20082. test -d "$as_dir" && break
  20083. done
  20084. test -z "$as_dirs" || eval "mkdir $as_dirs"
  20085. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  20086. } # as_fn_mkdir_p
  20087. if mkdir -p . 2>/dev/null; then
  20088. as_mkdir_p='mkdir -p "$as_dir"'
  20089. else
  20090. test -d ./-p && rmdir ./-p
  20091. as_mkdir_p=false
  20092. fi
  20093. # as_fn_executable_p FILE
  20094. # -----------------------
  20095. # Test if FILE is an executable regular file.
  20096. as_fn_executable_p ()
  20097. {
  20098. test -f "$1" && test -x "$1"
  20099. } # as_fn_executable_p
  20100. as_test_x='test -x'
  20101. as_executable_p=as_fn_executable_p
  20102. # Sed expression to map a string onto a valid CPP name.
  20103. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  20104. # Sed expression to map a string onto a valid variable name.
  20105. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  20106. exec 6>&1
  20107. ## ----------------------------------- ##
  20108. ## Main body of $CONFIG_STATUS script. ##
  20109. ## ----------------------------------- ##
  20110. _ASEOF
  20111. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  20112. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20113. # Save the log message, to keep $0 and so on meaningful, and to
  20114. # report actual input values of CONFIG_FILES etc. instead of their
  20115. # values after options handling.
  20116. ac_log="
  20117. This file was extended by tpm2-tss $as_me 3.2.0, which was
  20118. generated by GNU Autoconf 2.69. Invocation command line was
  20119. CONFIG_FILES = $CONFIG_FILES
  20120. CONFIG_HEADERS = $CONFIG_HEADERS
  20121. CONFIG_LINKS = $CONFIG_LINKS
  20122. CONFIG_COMMANDS = $CONFIG_COMMANDS
  20123. $ $0 $@
  20124. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  20125. "
  20126. _ACEOF
  20127. case $ac_config_files in *"
  20128. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  20129. esac
  20130. case $ac_config_headers in *"
  20131. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  20132. esac
  20133. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20134. # Files that config.status was made for.
  20135. config_files="$ac_config_files"
  20136. config_headers="$ac_config_headers"
  20137. config_commands="$ac_config_commands"
  20138. _ACEOF
  20139. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20140. ac_cs_usage="\
  20141. \`$as_me' instantiates files and other configuration actions
  20142. from templates according to the current configuration. Unless the files
  20143. and actions are specified as TAGs, all are instantiated by default.
  20144. Usage: $0 [OPTION]... [TAG]...
  20145. -h, --help print this help, then exit
  20146. -V, --version print version number and configuration settings, then exit
  20147. --config print configuration, then exit
  20148. -q, --quiet, --silent
  20149. do not print progress messages
  20150. -d, --debug don't remove temporary files
  20151. --recheck update $as_me by reconfiguring in the same conditions
  20152. --file=FILE[:TEMPLATE]
  20153. instantiate the configuration file FILE
  20154. --header=FILE[:TEMPLATE]
  20155. instantiate the configuration header FILE
  20156. Configuration files:
  20157. $config_files
  20158. Configuration headers:
  20159. $config_headers
  20160. Configuration commands:
  20161. $config_commands
  20162. Report bugs to <https://github.com/tpm2-software/tpm2-tss/issues>.
  20163. tpm2-tss home page: <https://github.com/tpm2-software/tpm2-tss>."
  20164. _ACEOF
  20165. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20166. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  20167. ac_cs_version="\\
  20168. tpm2-tss config.status 3.2.0
  20169. configured by $0, generated by GNU Autoconf 2.69,
  20170. with options \\"\$ac_cs_config\\"
  20171. Copyright (C) 2012 Free Software Foundation, Inc.
  20172. This config.status script is free software; the Free Software Foundation
  20173. gives unlimited permission to copy, distribute and modify it."
  20174. ac_pwd='$ac_pwd'
  20175. srcdir='$srcdir'
  20176. INSTALL='$INSTALL'
  20177. MKDIR_P='$MKDIR_P'
  20178. AWK='$AWK'
  20179. test -n "\$AWK" || AWK=awk
  20180. _ACEOF
  20181. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20182. # The default lists apply if the user does not specify any file.
  20183. ac_need_defaults=:
  20184. while test $# != 0
  20185. do
  20186. case $1 in
  20187. --*=?*)
  20188. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  20189. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  20190. ac_shift=:
  20191. ;;
  20192. --*=)
  20193. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  20194. ac_optarg=
  20195. ac_shift=:
  20196. ;;
  20197. *)
  20198. ac_option=$1
  20199. ac_optarg=$2
  20200. ac_shift=shift
  20201. ;;
  20202. esac
  20203. case $ac_option in
  20204. # Handling of the options.
  20205. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  20206. ac_cs_recheck=: ;;
  20207. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  20208. $as_echo "$ac_cs_version"; exit ;;
  20209. --config | --confi | --conf | --con | --co | --c )
  20210. $as_echo "$ac_cs_config"; exit ;;
  20211. --debug | --debu | --deb | --de | --d | -d )
  20212. debug=: ;;
  20213. --file | --fil | --fi | --f )
  20214. $ac_shift
  20215. case $ac_optarg in
  20216. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  20217. '') as_fn_error $? "missing file argument" ;;
  20218. esac
  20219. as_fn_append CONFIG_FILES " '$ac_optarg'"
  20220. ac_need_defaults=false;;
  20221. --header | --heade | --head | --hea )
  20222. $ac_shift
  20223. case $ac_optarg in
  20224. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  20225. esac
  20226. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  20227. ac_need_defaults=false;;
  20228. --he | --h)
  20229. # Conflict between --help and --header
  20230. as_fn_error $? "ambiguous option: \`$1'
  20231. Try \`$0 --help' for more information.";;
  20232. --help | --hel | -h )
  20233. $as_echo "$ac_cs_usage"; exit ;;
  20234. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  20235. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  20236. ac_cs_silent=: ;;
  20237. # This is an error.
  20238. -*) as_fn_error $? "unrecognized option: \`$1'
  20239. Try \`$0 --help' for more information." ;;
  20240. *) as_fn_append ac_config_targets " $1"
  20241. ac_need_defaults=false ;;
  20242. esac
  20243. shift
  20244. done
  20245. ac_configure_extra_args=
  20246. if $ac_cs_silent; then
  20247. exec 6>/dev/null
  20248. ac_configure_extra_args="$ac_configure_extra_args --silent"
  20249. fi
  20250. _ACEOF
  20251. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20252. if \$ac_cs_recheck; then
  20253. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  20254. shift
  20255. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  20256. CONFIG_SHELL='$SHELL'
  20257. export CONFIG_SHELL
  20258. exec "\$@"
  20259. fi
  20260. _ACEOF
  20261. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20262. exec 5>>config.log
  20263. {
  20264. echo
  20265. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  20266. ## Running $as_me. ##
  20267. _ASBOX
  20268. $as_echo "$ac_log"
  20269. } >&5
  20270. _ACEOF
  20271. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20272. #
  20273. # INIT-COMMANDS
  20274. #
  20275. AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
  20276. # The HP-UX ksh and POSIX shell print the target directory to stdout
  20277. # if CDPATH is set.
  20278. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  20279. sed_quote_subst='$sed_quote_subst'
  20280. double_quote_subst='$double_quote_subst'
  20281. delay_variable_subst='$delay_variable_subst'
  20282. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  20283. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  20284. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  20285. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  20286. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  20287. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  20288. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  20289. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  20290. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  20291. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  20292. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  20293. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  20294. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  20295. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  20296. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  20297. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  20298. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  20299. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  20300. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  20301. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  20302. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  20303. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  20304. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  20305. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  20306. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  20307. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  20308. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  20309. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  20310. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  20311. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  20312. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  20313. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  20314. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  20315. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  20316. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  20317. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  20318. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  20319. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  20320. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  20321. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  20322. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  20323. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  20324. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  20325. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  20326. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  20327. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  20328. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  20329. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  20330. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  20331. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  20332. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  20333. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  20334. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  20335. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  20336. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  20337. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  20338. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  20339. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  20340. 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"`'
  20341. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  20342. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  20343. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  20344. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  20345. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  20346. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  20347. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  20348. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  20349. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  20350. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  20351. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  20352. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  20353. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  20354. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  20355. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  20356. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  20357. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  20358. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  20359. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  20360. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  20361. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  20362. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  20363. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  20364. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  20365. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  20366. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  20367. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  20368. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  20369. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  20370. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  20371. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  20372. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  20373. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  20374. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  20375. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  20376. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  20377. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  20378. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  20379. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  20380. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  20381. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  20382. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  20383. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  20384. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  20385. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  20386. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  20387. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  20388. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  20389. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  20390. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  20391. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  20392. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  20393. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  20394. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  20395. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  20396. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  20397. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  20398. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  20399. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  20400. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  20401. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  20402. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  20403. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  20404. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  20405. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  20406. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  20407. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  20408. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  20409. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  20410. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  20411. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  20412. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  20413. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  20414. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  20415. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  20416. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  20417. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  20418. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  20419. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  20420. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  20421. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  20422. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  20423. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  20424. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  20425. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20426. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20427. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  20428. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  20429. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  20430. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  20431. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  20432. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  20433. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  20434. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  20435. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  20436. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  20437. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  20438. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  20439. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20440. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20441. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20442. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20443. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20444. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20445. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  20446. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  20447. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  20448. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  20449. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  20450. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  20451. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  20452. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  20453. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  20454. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  20455. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  20456. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  20457. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  20458. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20459. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  20460. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  20461. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20462. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  20463. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  20464. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  20465. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  20466. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  20467. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  20468. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  20469. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  20470. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  20471. LTCC='$LTCC'
  20472. LTCFLAGS='$LTCFLAGS'
  20473. compiler='$compiler_DEFAULT'
  20474. # A function that is used when there is no print builtin or printf.
  20475. func_fallback_echo ()
  20476. {
  20477. eval 'cat <<_LTECHO_EOF
  20478. \$1
  20479. _LTECHO_EOF'
  20480. }
  20481. # Quote evaled strings.
  20482. for var in SHELL \
  20483. ECHO \
  20484. PATH_SEPARATOR \
  20485. SED \
  20486. GREP \
  20487. EGREP \
  20488. FGREP \
  20489. LD \
  20490. NM \
  20491. LN_S \
  20492. lt_SP2NL \
  20493. lt_NL2SP \
  20494. reload_flag \
  20495. OBJDUMP \
  20496. deplibs_check_method \
  20497. file_magic_cmd \
  20498. file_magic_glob \
  20499. want_nocaseglob \
  20500. DLLTOOL \
  20501. sharedlib_from_linklib_cmd \
  20502. AR \
  20503. AR_FLAGS \
  20504. archiver_list_spec \
  20505. STRIP \
  20506. RANLIB \
  20507. CC \
  20508. CFLAGS \
  20509. compiler \
  20510. lt_cv_sys_global_symbol_pipe \
  20511. lt_cv_sys_global_symbol_to_cdecl \
  20512. lt_cv_sys_global_symbol_to_import \
  20513. lt_cv_sys_global_symbol_to_c_name_address \
  20514. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  20515. lt_cv_nm_interface \
  20516. nm_file_list_spec \
  20517. lt_cv_truncate_bin \
  20518. lt_prog_compiler_no_builtin_flag \
  20519. lt_prog_compiler_pic \
  20520. lt_prog_compiler_wl \
  20521. lt_prog_compiler_static \
  20522. lt_cv_prog_compiler_c_o \
  20523. need_locks \
  20524. MANIFEST_TOOL \
  20525. DSYMUTIL \
  20526. NMEDIT \
  20527. LIPO \
  20528. OTOOL \
  20529. OTOOL64 \
  20530. shrext_cmds \
  20531. export_dynamic_flag_spec \
  20532. whole_archive_flag_spec \
  20533. compiler_needs_object \
  20534. with_gnu_ld \
  20535. allow_undefined_flag \
  20536. no_undefined_flag \
  20537. hardcode_libdir_flag_spec \
  20538. hardcode_libdir_separator \
  20539. exclude_expsyms \
  20540. include_expsyms \
  20541. file_list_spec \
  20542. variables_saved_for_relink \
  20543. libname_spec \
  20544. library_names_spec \
  20545. soname_spec \
  20546. install_override_mode \
  20547. finish_eval \
  20548. old_striplib \
  20549. striplib \
  20550. compiler_lib_search_dirs \
  20551. predep_objects \
  20552. postdep_objects \
  20553. predeps \
  20554. postdeps \
  20555. compiler_lib_search_path \
  20556. LD_CXX \
  20557. reload_flag_CXX \
  20558. compiler_CXX \
  20559. lt_prog_compiler_no_builtin_flag_CXX \
  20560. lt_prog_compiler_pic_CXX \
  20561. lt_prog_compiler_wl_CXX \
  20562. lt_prog_compiler_static_CXX \
  20563. lt_cv_prog_compiler_c_o_CXX \
  20564. export_dynamic_flag_spec_CXX \
  20565. whole_archive_flag_spec_CXX \
  20566. compiler_needs_object_CXX \
  20567. with_gnu_ld_CXX \
  20568. allow_undefined_flag_CXX \
  20569. no_undefined_flag_CXX \
  20570. hardcode_libdir_flag_spec_CXX \
  20571. hardcode_libdir_separator_CXX \
  20572. exclude_expsyms_CXX \
  20573. include_expsyms_CXX \
  20574. file_list_spec_CXX \
  20575. compiler_lib_search_dirs_CXX \
  20576. predep_objects_CXX \
  20577. postdep_objects_CXX \
  20578. predeps_CXX \
  20579. postdeps_CXX \
  20580. compiler_lib_search_path_CXX; do
  20581. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  20582. *[\\\\\\\`\\"\\\$]*)
  20583. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  20584. ;;
  20585. *)
  20586. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  20587. ;;
  20588. esac
  20589. done
  20590. # Double-quote double-evaled strings.
  20591. for var in reload_cmds \
  20592. old_postinstall_cmds \
  20593. old_postuninstall_cmds \
  20594. old_archive_cmds \
  20595. extract_expsyms_cmds \
  20596. old_archive_from_new_cmds \
  20597. old_archive_from_expsyms_cmds \
  20598. archive_cmds \
  20599. archive_expsym_cmds \
  20600. module_cmds \
  20601. module_expsym_cmds \
  20602. export_symbols_cmds \
  20603. prelink_cmds \
  20604. postlink_cmds \
  20605. postinstall_cmds \
  20606. postuninstall_cmds \
  20607. finish_cmds \
  20608. sys_lib_search_path_spec \
  20609. configure_time_dlsearch_path \
  20610. configure_time_lt_sys_library_path \
  20611. reload_cmds_CXX \
  20612. old_archive_cmds_CXX \
  20613. old_archive_from_new_cmds_CXX \
  20614. old_archive_from_expsyms_cmds_CXX \
  20615. archive_cmds_CXX \
  20616. archive_expsym_cmds_CXX \
  20617. module_cmds_CXX \
  20618. module_expsym_cmds_CXX \
  20619. export_symbols_cmds_CXX \
  20620. prelink_cmds_CXX \
  20621. postlink_cmds_CXX; do
  20622. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  20623. *[\\\\\\\`\\"\\\$]*)
  20624. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  20625. ;;
  20626. *)
  20627. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  20628. ;;
  20629. esac
  20630. done
  20631. ac_aux_dir='$ac_aux_dir'
  20632. # See if we are running on zsh, and set the options that allow our
  20633. # commands through without removal of \ escapes INIT.
  20634. if test -n "\${ZSH_VERSION+set}"; then
  20635. setopt NO_GLOB_SUBST
  20636. fi
  20637. PACKAGE='$PACKAGE'
  20638. VERSION='$VERSION'
  20639. RM='$RM'
  20640. ofile='$ofile'
  20641. _ACEOF
  20642. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20643. # Handling of arguments.
  20644. for ac_config_target in $ac_config_targets
  20645. do
  20646. case $ac_config_target in
  20647. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  20648. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  20649. "Doxyfile") CONFIG_FILES="$CONFIG_FILES Doxyfile" ;;
  20650. "lib/tss2-sys.pc") CONFIG_FILES="$CONFIG_FILES lib/tss2-sys.pc" ;;
  20651. "lib/tss2-esys.pc") CONFIG_FILES="$CONFIG_FILES lib/tss2-esys.pc" ;;
  20652. "lib/tss2-mu.pc") CONFIG_FILES="$CONFIG_FILES lib/tss2-mu.pc" ;;
  20653. "lib/tss2-tcti-device.pc") CONFIG_FILES="$CONFIG_FILES lib/tss2-tcti-device.pc" ;;
  20654. "lib/tss2-tcti-mssim.pc") CONFIG_FILES="$CONFIG_FILES lib/tss2-tcti-mssim.pc" ;;
  20655. "lib/tss2-tcti-swtpm.pc") CONFIG_FILES="$CONFIG_FILES lib/tss2-tcti-swtpm.pc" ;;
  20656. "lib/tss2-tcti-libtpms.pc") CONFIG_FILES="$CONFIG_FILES lib/tss2-tcti-libtpms.pc" ;;
  20657. "lib/tss2-tcti-pcap.pc") CONFIG_FILES="$CONFIG_FILES lib/tss2-tcti-pcap.pc" ;;
  20658. "lib/tss2-rc.pc") CONFIG_FILES="$CONFIG_FILES lib/tss2-rc.pc" ;;
  20659. "lib/tss2-tctildr.pc") CONFIG_FILES="$CONFIG_FILES lib/tss2-tctildr.pc" ;;
  20660. "lib/tss2-fapi.pc") CONFIG_FILES="$CONFIG_FILES lib/tss2-fapi.pc" ;;
  20661. "lib/tss2-tcti-cmd.pc") CONFIG_FILES="$CONFIG_FILES lib/tss2-tcti-cmd.pc" ;;
  20662. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  20663. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  20664. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  20665. esac
  20666. done
  20667. # If the user did not use the arguments to specify the items to instantiate,
  20668. # then the envvar interface is used. Set only those that are not.
  20669. # We use the long form for the default assignment because of an extremely
  20670. # bizarre bug on SunOS 4.1.3.
  20671. if $ac_need_defaults; then
  20672. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  20673. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  20674. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  20675. fi
  20676. # Have a temporary directory for convenience. Make it in the build tree
  20677. # simply because there is no reason against having it here, and in addition,
  20678. # creating and moving files from /tmp can sometimes cause problems.
  20679. # Hook for its removal unless debugging.
  20680. # Note that there is a small window in which the directory will not be cleaned:
  20681. # after its creation but before its name has been assigned to `$tmp'.
  20682. $debug ||
  20683. {
  20684. tmp= ac_tmp=
  20685. trap 'exit_status=$?
  20686. : "${ac_tmp:=$tmp}"
  20687. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  20688. ' 0
  20689. trap 'as_fn_exit 1' 1 2 13 15
  20690. }
  20691. # Create a (secure) tmp directory for tmp files.
  20692. {
  20693. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  20694. test -d "$tmp"
  20695. } ||
  20696. {
  20697. tmp=./conf$$-$RANDOM
  20698. (umask 077 && mkdir "$tmp")
  20699. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  20700. ac_tmp=$tmp
  20701. # Set up the scripts for CONFIG_FILES section.
  20702. # No need to generate them if there are no CONFIG_FILES.
  20703. # This happens for instance with `./config.status config.h'.
  20704. if test -n "$CONFIG_FILES"; then
  20705. ac_cr=`echo X | tr X '\015'`
  20706. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  20707. # But we know of no other shell where ac_cr would be empty at this
  20708. # point, so we can use a bashism as a fallback.
  20709. if test "x$ac_cr" = x; then
  20710. eval ac_cr=\$\'\\r\'
  20711. fi
  20712. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  20713. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  20714. ac_cs_awk_cr='\\r'
  20715. else
  20716. ac_cs_awk_cr=$ac_cr
  20717. fi
  20718. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  20719. _ACEOF
  20720. {
  20721. echo "cat >conf$$subs.awk <<_ACEOF" &&
  20722. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  20723. echo "_ACEOF"
  20724. } >conf$$subs.sh ||
  20725. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  20726. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  20727. ac_delim='%!_!# '
  20728. for ac_last_try in false false false false false :; do
  20729. . ./conf$$subs.sh ||
  20730. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  20731. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  20732. if test $ac_delim_n = $ac_delim_num; then
  20733. break
  20734. elif $ac_last_try; then
  20735. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  20736. else
  20737. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  20738. fi
  20739. done
  20740. rm -f conf$$subs.sh
  20741. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20742. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  20743. _ACEOF
  20744. sed -n '
  20745. h
  20746. s/^/S["/; s/!.*/"]=/
  20747. p
  20748. g
  20749. s/^[^!]*!//
  20750. :repl
  20751. t repl
  20752. s/'"$ac_delim"'$//
  20753. t delim
  20754. :nl
  20755. h
  20756. s/\(.\{148\}\)..*/\1/
  20757. t more1
  20758. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  20759. p
  20760. n
  20761. b repl
  20762. :more1
  20763. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  20764. p
  20765. g
  20766. s/.\{148\}//
  20767. t nl
  20768. :delim
  20769. h
  20770. s/\(.\{148\}\)..*/\1/
  20771. t more2
  20772. s/["\\]/\\&/g; s/^/"/; s/$/"/
  20773. p
  20774. b
  20775. :more2
  20776. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  20777. p
  20778. g
  20779. s/.\{148\}//
  20780. t delim
  20781. ' <conf$$subs.awk | sed '
  20782. /^[^""]/{
  20783. N
  20784. s/\n//
  20785. }
  20786. ' >>$CONFIG_STATUS || ac_write_fail=1
  20787. rm -f conf$$subs.awk
  20788. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20789. _ACAWK
  20790. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  20791. for (key in S) S_is_set[key] = 1
  20792. FS = ""
  20793. }
  20794. {
  20795. line = $ 0
  20796. nfields = split(line, field, "@")
  20797. substed = 0
  20798. len = length(field[1])
  20799. for (i = 2; i < nfields; i++) {
  20800. key = field[i]
  20801. keylen = length(key)
  20802. if (S_is_set[key]) {
  20803. value = S[key]
  20804. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  20805. len += length(value) + length(field[++i])
  20806. substed = 1
  20807. } else
  20808. len += 1 + keylen
  20809. }
  20810. print line
  20811. }
  20812. _ACAWK
  20813. _ACEOF
  20814. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20815. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  20816. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  20817. else
  20818. cat
  20819. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  20820. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  20821. _ACEOF
  20822. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  20823. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  20824. # trailing colons and then remove the whole line if VPATH becomes empty
  20825. # (actually we leave an empty line to preserve line numbers).
  20826. if test "x$srcdir" = x.; then
  20827. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  20828. h
  20829. s///
  20830. s/^/:/
  20831. s/[ ]*$/:/
  20832. s/:\$(srcdir):/:/g
  20833. s/:\${srcdir}:/:/g
  20834. s/:@srcdir@:/:/g
  20835. s/^:*//
  20836. s/:*$//
  20837. x
  20838. s/\(=[ ]*\).*/\1/
  20839. G
  20840. s/\n//
  20841. s/^[^=]*=[ ]*$//
  20842. }'
  20843. fi
  20844. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20845. fi # test -n "$CONFIG_FILES"
  20846. # Set up the scripts for CONFIG_HEADERS section.
  20847. # No need to generate them if there are no CONFIG_HEADERS.
  20848. # This happens for instance with `./config.status Makefile'.
  20849. if test -n "$CONFIG_HEADERS"; then
  20850. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  20851. BEGIN {
  20852. _ACEOF
  20853. # Transform confdefs.h into an awk script `defines.awk', embedded as
  20854. # here-document in config.status, that substitutes the proper values into
  20855. # config.h.in to produce config.h.
  20856. # Create a delimiter string that does not exist in confdefs.h, to ease
  20857. # handling of long lines.
  20858. ac_delim='%!_!# '
  20859. for ac_last_try in false false :; do
  20860. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  20861. if test -z "$ac_tt"; then
  20862. break
  20863. elif $ac_last_try; then
  20864. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  20865. else
  20866. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  20867. fi
  20868. done
  20869. # For the awk script, D is an array of macro values keyed by name,
  20870. # likewise P contains macro parameters if any. Preserve backslash
  20871. # newline sequences.
  20872. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  20873. sed -n '
  20874. s/.\{148\}/&'"$ac_delim"'/g
  20875. t rset
  20876. :rset
  20877. s/^[ ]*#[ ]*define[ ][ ]*/ /
  20878. t def
  20879. d
  20880. :def
  20881. s/\\$//
  20882. t bsnl
  20883. s/["\\]/\\&/g
  20884. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  20885. D["\1"]=" \3"/p
  20886. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  20887. d
  20888. :bsnl
  20889. s/["\\]/\\&/g
  20890. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  20891. D["\1"]=" \3\\\\\\n"\\/p
  20892. t cont
  20893. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  20894. t cont
  20895. d
  20896. :cont
  20897. n
  20898. s/.\{148\}/&'"$ac_delim"'/g
  20899. t clear
  20900. :clear
  20901. s/\\$//
  20902. t bsnlc
  20903. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  20904. d
  20905. :bsnlc
  20906. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  20907. b cont
  20908. ' <confdefs.h | sed '
  20909. s/'"$ac_delim"'/"\\\
  20910. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  20911. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20912. for (key in D) D_is_set[key] = 1
  20913. FS = ""
  20914. }
  20915. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  20916. line = \$ 0
  20917. split(line, arg, " ")
  20918. if (arg[1] == "#") {
  20919. defundef = arg[2]
  20920. mac1 = arg[3]
  20921. } else {
  20922. defundef = substr(arg[1], 2)
  20923. mac1 = arg[2]
  20924. }
  20925. split(mac1, mac2, "(") #)
  20926. macro = mac2[1]
  20927. prefix = substr(line, 1, index(line, defundef) - 1)
  20928. if (D_is_set[macro]) {
  20929. # Preserve the white space surrounding the "#".
  20930. print prefix "define", macro P[macro] D[macro]
  20931. next
  20932. } else {
  20933. # Replace #undef with comments. This is necessary, for example,
  20934. # in the case of _POSIX_SOURCE, which is predefined and required
  20935. # on some systems where configure will not decide to define it.
  20936. if (defundef == "undef") {
  20937. print "/*", prefix defundef, macro, "*/"
  20938. next
  20939. }
  20940. }
  20941. }
  20942. { print }
  20943. _ACAWK
  20944. _ACEOF
  20945. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20946. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  20947. fi # test -n "$CONFIG_HEADERS"
  20948. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  20949. shift
  20950. for ac_tag
  20951. do
  20952. case $ac_tag in
  20953. :[FHLC]) ac_mode=$ac_tag; continue;;
  20954. esac
  20955. case $ac_mode$ac_tag in
  20956. :[FHL]*:*);;
  20957. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  20958. :[FH]-) ac_tag=-:-;;
  20959. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  20960. esac
  20961. ac_save_IFS=$IFS
  20962. IFS=:
  20963. set x $ac_tag
  20964. IFS=$ac_save_IFS
  20965. shift
  20966. ac_file=$1
  20967. shift
  20968. case $ac_mode in
  20969. :L) ac_source=$1;;
  20970. :[FH])
  20971. ac_file_inputs=
  20972. for ac_f
  20973. do
  20974. case $ac_f in
  20975. -) ac_f="$ac_tmp/stdin";;
  20976. *) # Look for the file first in the build tree, then in the source tree
  20977. # (if the path is not absolute). The absolute path cannot be DOS-style,
  20978. # because $ac_f cannot contain `:'.
  20979. test -f "$ac_f" ||
  20980. case $ac_f in
  20981. [\\/$]*) false;;
  20982. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  20983. esac ||
  20984. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  20985. esac
  20986. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  20987. as_fn_append ac_file_inputs " '$ac_f'"
  20988. done
  20989. # Let's still pretend it is `configure' which instantiates (i.e., don't
  20990. # use $as_me), people would be surprised to read:
  20991. # /* config.h. Generated by config.status. */
  20992. configure_input='Generated from '`
  20993. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  20994. `' by configure.'
  20995. if test x"$ac_file" != x-; then
  20996. configure_input="$ac_file. $configure_input"
  20997. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  20998. $as_echo "$as_me: creating $ac_file" >&6;}
  20999. fi
  21000. # Neutralize special characters interpreted by sed in replacement strings.
  21001. case $configure_input in #(
  21002. *\&* | *\|* | *\\* )
  21003. ac_sed_conf_input=`$as_echo "$configure_input" |
  21004. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  21005. *) ac_sed_conf_input=$configure_input;;
  21006. esac
  21007. case $ac_tag in
  21008. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  21009. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  21010. esac
  21011. ;;
  21012. esac
  21013. ac_dir=`$as_dirname -- "$ac_file" ||
  21014. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21015. X"$ac_file" : 'X\(//\)[^/]' \| \
  21016. X"$ac_file" : 'X\(//\)$' \| \
  21017. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  21018. $as_echo X"$ac_file" |
  21019. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21020. s//\1/
  21021. q
  21022. }
  21023. /^X\(\/\/\)[^/].*/{
  21024. s//\1/
  21025. q
  21026. }
  21027. /^X\(\/\/\)$/{
  21028. s//\1/
  21029. q
  21030. }
  21031. /^X\(\/\).*/{
  21032. s//\1/
  21033. q
  21034. }
  21035. s/.*/./; q'`
  21036. as_dir="$ac_dir"; as_fn_mkdir_p
  21037. ac_builddir=.
  21038. case "$ac_dir" in
  21039. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  21040. *)
  21041. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  21042. # A ".." for each directory in $ac_dir_suffix.
  21043. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  21044. case $ac_top_builddir_sub in
  21045. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  21046. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  21047. esac ;;
  21048. esac
  21049. ac_abs_top_builddir=$ac_pwd
  21050. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  21051. # for backward compatibility:
  21052. ac_top_builddir=$ac_top_build_prefix
  21053. case $srcdir in
  21054. .) # We are building in place.
  21055. ac_srcdir=.
  21056. ac_top_srcdir=$ac_top_builddir_sub
  21057. ac_abs_top_srcdir=$ac_pwd ;;
  21058. [\\/]* | ?:[\\/]* ) # Absolute name.
  21059. ac_srcdir=$srcdir$ac_dir_suffix;
  21060. ac_top_srcdir=$srcdir
  21061. ac_abs_top_srcdir=$srcdir ;;
  21062. *) # Relative name.
  21063. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  21064. ac_top_srcdir=$ac_top_build_prefix$srcdir
  21065. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  21066. esac
  21067. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  21068. case $ac_mode in
  21069. :F)
  21070. #
  21071. # CONFIG_FILE
  21072. #
  21073. case $INSTALL in
  21074. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  21075. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  21076. esac
  21077. ac_MKDIR_P=$MKDIR_P
  21078. case $MKDIR_P in
  21079. [\\/$]* | ?:[\\/]* ) ;;
  21080. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  21081. esac
  21082. _ACEOF
  21083. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21084. # If the template does not know about datarootdir, expand it.
  21085. # FIXME: This hack should be removed a few years after 2.60.
  21086. ac_datarootdir_hack=; ac_datarootdir_seen=
  21087. ac_sed_dataroot='
  21088. /datarootdir/ {
  21089. p
  21090. q
  21091. }
  21092. /@datadir@/p
  21093. /@docdir@/p
  21094. /@infodir@/p
  21095. /@localedir@/p
  21096. /@mandir@/p'
  21097. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  21098. *datarootdir*) ac_datarootdir_seen=yes;;
  21099. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  21100. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  21101. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  21102. _ACEOF
  21103. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21104. ac_datarootdir_hack='
  21105. s&@datadir@&$datadir&g
  21106. s&@docdir@&$docdir&g
  21107. s&@infodir@&$infodir&g
  21108. s&@localedir@&$localedir&g
  21109. s&@mandir@&$mandir&g
  21110. s&\\\${datarootdir}&$datarootdir&g' ;;
  21111. esac
  21112. _ACEOF
  21113. # Neutralize VPATH when `$srcdir' = `.'.
  21114. # Shell code in configure.ac might set extrasub.
  21115. # FIXME: do we really want to maintain this feature?
  21116. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21117. ac_sed_extra="$ac_vpsub
  21118. $extrasub
  21119. _ACEOF
  21120. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21121. :t
  21122. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  21123. s|@configure_input@|$ac_sed_conf_input|;t t
  21124. s&@top_builddir@&$ac_top_builddir_sub&;t t
  21125. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  21126. s&@srcdir@&$ac_srcdir&;t t
  21127. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  21128. s&@top_srcdir@&$ac_top_srcdir&;t t
  21129. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  21130. s&@builddir@&$ac_builddir&;t t
  21131. s&@abs_builddir@&$ac_abs_builddir&;t t
  21132. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  21133. s&@INSTALL@&$ac_INSTALL&;t t
  21134. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  21135. $ac_datarootdir_hack
  21136. "
  21137. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  21138. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  21139. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  21140. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  21141. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  21142. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  21143. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  21144. which seems to be undefined. Please make sure it is defined" >&5
  21145. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  21146. which seems to be undefined. Please make sure it is defined" >&2;}
  21147. rm -f "$ac_tmp/stdin"
  21148. case $ac_file in
  21149. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  21150. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  21151. esac \
  21152. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  21153. ;;
  21154. :H)
  21155. #
  21156. # CONFIG_HEADER
  21157. #
  21158. if test x"$ac_file" != x-; then
  21159. {
  21160. $as_echo "/* $configure_input */" \
  21161. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  21162. } >"$ac_tmp/config.h" \
  21163. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  21164. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  21165. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  21166. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  21167. else
  21168. rm -f "$ac_file"
  21169. mv "$ac_tmp/config.h" "$ac_file" \
  21170. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  21171. fi
  21172. else
  21173. $as_echo "/* $configure_input */" \
  21174. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  21175. || as_fn_error $? "could not create -" "$LINENO" 5
  21176. fi
  21177. # Compute "$ac_file"'s index in $config_headers.
  21178. _am_arg="$ac_file"
  21179. _am_stamp_count=1
  21180. for _am_header in $config_headers :; do
  21181. case $_am_header in
  21182. $_am_arg | $_am_arg:* )
  21183. break ;;
  21184. * )
  21185. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  21186. esac
  21187. done
  21188. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  21189. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21190. X"$_am_arg" : 'X\(//\)[^/]' \| \
  21191. X"$_am_arg" : 'X\(//\)$' \| \
  21192. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  21193. $as_echo X"$_am_arg" |
  21194. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21195. s//\1/
  21196. q
  21197. }
  21198. /^X\(\/\/\)[^/].*/{
  21199. s//\1/
  21200. q
  21201. }
  21202. /^X\(\/\/\)$/{
  21203. s//\1/
  21204. q
  21205. }
  21206. /^X\(\/\).*/{
  21207. s//\1/
  21208. q
  21209. }
  21210. s/.*/./; q'`/stamp-h$_am_stamp_count
  21211. ;;
  21212. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  21213. $as_echo "$as_me: executing $ac_file commands" >&6;}
  21214. ;;
  21215. esac
  21216. case $ac_file$ac_mode in
  21217. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  21218. # Older Autoconf quotes --file arguments for eval, but not when files
  21219. # are listed without --file. Let's play safe and only enable the eval
  21220. # if we detect the quoting.
  21221. # TODO: see whether this extra hack can be removed once we start
  21222. # requiring Autoconf 2.70 or later.
  21223. case $CONFIG_FILES in #(
  21224. *\'*) :
  21225. eval set x "$CONFIG_FILES" ;; #(
  21226. *) :
  21227. set x $CONFIG_FILES ;; #(
  21228. *) :
  21229. ;;
  21230. esac
  21231. shift
  21232. # Used to flag and report bootstrapping failures.
  21233. am_rc=0
  21234. for am_mf
  21235. do
  21236. # Strip MF so we end up with the name of the file.
  21237. am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
  21238. # Check whether this is an Automake generated Makefile which includes
  21239. # dependency-tracking related rules and includes.
  21240. # Grep'ing the whole file directly is not great: AIX grep has a line
  21241. # limit of 2048, but all sed's we know have understand at least 4000.
  21242. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
  21243. || continue
  21244. am_dirpart=`$as_dirname -- "$am_mf" ||
  21245. $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21246. X"$am_mf" : 'X\(//\)[^/]' \| \
  21247. X"$am_mf" : 'X\(//\)$' \| \
  21248. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  21249. $as_echo X"$am_mf" |
  21250. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21251. s//\1/
  21252. q
  21253. }
  21254. /^X\(\/\/\)[^/].*/{
  21255. s//\1/
  21256. q
  21257. }
  21258. /^X\(\/\/\)$/{
  21259. s//\1/
  21260. q
  21261. }
  21262. /^X\(\/\).*/{
  21263. s//\1/
  21264. q
  21265. }
  21266. s/.*/./; q'`
  21267. am_filepart=`$as_basename -- "$am_mf" ||
  21268. $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
  21269. X"$am_mf" : 'X\(//\)$' \| \
  21270. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  21271. $as_echo X/"$am_mf" |
  21272. sed '/^.*\/\([^/][^/]*\)\/*$/{
  21273. s//\1/
  21274. q
  21275. }
  21276. /^X\/\(\/\/\)$/{
  21277. s//\1/
  21278. q
  21279. }
  21280. /^X\/\(\/\).*/{
  21281. s//\1/
  21282. q
  21283. }
  21284. s/.*/./; q'`
  21285. { echo "$as_me:$LINENO: cd "$am_dirpart" \
  21286. && sed -e '/# am--include-marker/d' "$am_filepart" \
  21287. | $MAKE -f - am--depfiles" >&5
  21288. (cd "$am_dirpart" \
  21289. && sed -e '/# am--include-marker/d' "$am_filepart" \
  21290. | $MAKE -f - am--depfiles) >&5 2>&5
  21291. ac_status=$?
  21292. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21293. (exit $ac_status); } || am_rc=$?
  21294. done
  21295. if test $am_rc -ne 0; then
  21296. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  21297. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  21298. as_fn_error $? "Something went wrong bootstrapping makefile fragments
  21299. for automatic dependency tracking. Try re-running configure with the
  21300. '--disable-dependency-tracking' option to at least be able to build
  21301. the package (albeit without support for automatic dependency tracking).
  21302. See \`config.log' for more details" "$LINENO" 5; }
  21303. fi
  21304. { am_dirpart=; unset am_dirpart;}
  21305. { am_filepart=; unset am_filepart;}
  21306. { am_mf=; unset am_mf;}
  21307. { am_rc=; unset am_rc;}
  21308. rm -f conftest-deps.mk
  21309. }
  21310. ;;
  21311. "libtool":C)
  21312. # See if we are running on zsh, and set the options that allow our
  21313. # commands through without removal of \ escapes.
  21314. if test -n "${ZSH_VERSION+set}"; then
  21315. setopt NO_GLOB_SUBST
  21316. fi
  21317. cfgfile=${ofile}T
  21318. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  21319. $RM "$cfgfile"
  21320. cat <<_LT_EOF >> "$cfgfile"
  21321. #! $SHELL
  21322. # Generated automatically by $as_me ($PACKAGE) $VERSION
  21323. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  21324. # Provide generalized library-building support services.
  21325. # Written by Gordon Matzigkeit, 1996
  21326. # Copyright (C) 2014 Free Software Foundation, Inc.
  21327. # This is free software; see the source for copying conditions. There is NO
  21328. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  21329. # GNU Libtool is free software; you can redistribute it and/or modify
  21330. # it under the terms of the GNU General Public License as published by
  21331. # the Free Software Foundation; either version 2 of of the License, or
  21332. # (at your option) any later version.
  21333. #
  21334. # As a special exception to the GNU General Public License, if you
  21335. # distribute this file as part of a program or library that is built
  21336. # using GNU Libtool, you may include this file under the same
  21337. # distribution terms that you use for the rest of that program.
  21338. #
  21339. # GNU Libtool is distributed in the hope that it will be useful, but
  21340. # WITHOUT ANY WARRANTY; without even the implied warranty of
  21341. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21342. # GNU General Public License for more details.
  21343. #
  21344. # You should have received a copy of the GNU General Public License
  21345. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  21346. # The names of the tagged configurations supported by this script.
  21347. available_tags='CXX '
  21348. # Configured defaults for sys_lib_dlsearch_path munging.
  21349. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  21350. # ### BEGIN LIBTOOL CONFIG
  21351. # Which release of libtool.m4 was used?
  21352. macro_version=$macro_version
  21353. macro_revision=$macro_revision
  21354. # Whether or not to build shared libraries.
  21355. build_libtool_libs=$enable_shared
  21356. # Whether or not to build static libraries.
  21357. build_old_libs=$enable_static
  21358. # What type of objects to build.
  21359. pic_mode=$pic_mode
  21360. # Whether or not to optimize for fast installation.
  21361. fast_install=$enable_fast_install
  21362. # Shared archive member basename,for filename based shared library versioning on AIX.
  21363. shared_archive_member_spec=$shared_archive_member_spec
  21364. # Shell to use when invoking shell scripts.
  21365. SHELL=$lt_SHELL
  21366. # An echo program that protects backslashes.
  21367. ECHO=$lt_ECHO
  21368. # The PATH separator for the build system.
  21369. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  21370. # The host system.
  21371. host_alias=$host_alias
  21372. host=$host
  21373. host_os=$host_os
  21374. # The build system.
  21375. build_alias=$build_alias
  21376. build=$build
  21377. build_os=$build_os
  21378. # A sed program that does not truncate output.
  21379. SED=$lt_SED
  21380. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  21381. Xsed="\$SED -e 1s/^X//"
  21382. # A grep program that handles long lines.
  21383. GREP=$lt_GREP
  21384. # An ERE matcher.
  21385. EGREP=$lt_EGREP
  21386. # A literal string matcher.
  21387. FGREP=$lt_FGREP
  21388. # A BSD- or MS-compatible name lister.
  21389. NM=$lt_NM
  21390. # Whether we need soft or hard links.
  21391. LN_S=$lt_LN_S
  21392. # What is the maximum length of a command?
  21393. max_cmd_len=$max_cmd_len
  21394. # Object file suffix (normally "o").
  21395. objext=$ac_objext
  21396. # Executable file suffix (normally "").
  21397. exeext=$exeext
  21398. # whether the shell understands "unset".
  21399. lt_unset=$lt_unset
  21400. # turn spaces into newlines.
  21401. SP2NL=$lt_lt_SP2NL
  21402. # turn newlines into spaces.
  21403. NL2SP=$lt_lt_NL2SP
  21404. # convert \$build file names to \$host format.
  21405. to_host_file_cmd=$lt_cv_to_host_file_cmd
  21406. # convert \$build files to toolchain format.
  21407. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  21408. # An object symbol dumper.
  21409. OBJDUMP=$lt_OBJDUMP
  21410. # Method to check whether dependent libraries are shared objects.
  21411. deplibs_check_method=$lt_deplibs_check_method
  21412. # Command to use when deplibs_check_method = "file_magic".
  21413. file_magic_cmd=$lt_file_magic_cmd
  21414. # How to find potential files when deplibs_check_method = "file_magic".
  21415. file_magic_glob=$lt_file_magic_glob
  21416. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  21417. want_nocaseglob=$lt_want_nocaseglob
  21418. # DLL creation program.
  21419. DLLTOOL=$lt_DLLTOOL
  21420. # Command to associate shared and link libraries.
  21421. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  21422. # The archiver.
  21423. AR=$lt_AR
  21424. # Flags to create an archive.
  21425. AR_FLAGS=$lt_AR_FLAGS
  21426. # How to feed a file listing to the archiver.
  21427. archiver_list_spec=$lt_archiver_list_spec
  21428. # A symbol stripping program.
  21429. STRIP=$lt_STRIP
  21430. # Commands used to install an old-style archive.
  21431. RANLIB=$lt_RANLIB
  21432. old_postinstall_cmds=$lt_old_postinstall_cmds
  21433. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  21434. # Whether to use a lock for old archive extraction.
  21435. lock_old_archive_extraction=$lock_old_archive_extraction
  21436. # A C compiler.
  21437. LTCC=$lt_CC
  21438. # LTCC compiler flags.
  21439. LTCFLAGS=$lt_CFLAGS
  21440. # Take the output of nm and produce a listing of raw symbols and C names.
  21441. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  21442. # Transform the output of nm in a proper C declaration.
  21443. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  21444. # Transform the output of nm into a list of symbols to manually relocate.
  21445. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  21446. # Transform the output of nm in a C name address pair.
  21447. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  21448. # Transform the output of nm in a C name address pair when lib prefix is needed.
  21449. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  21450. # The name lister interface.
  21451. nm_interface=$lt_lt_cv_nm_interface
  21452. # Specify filename containing input files for \$NM.
  21453. nm_file_list_spec=$lt_nm_file_list_spec
  21454. # The root where to search for dependent libraries,and where our libraries should be installed.
  21455. lt_sysroot=$lt_sysroot
  21456. # Command to truncate a binary pipe.
  21457. lt_truncate_bin=$lt_lt_cv_truncate_bin
  21458. # The name of the directory that contains temporary libtool files.
  21459. objdir=$objdir
  21460. # Used to examine libraries when file_magic_cmd begins with "file".
  21461. MAGIC_CMD=$MAGIC_CMD
  21462. # Must we lock files when doing compilation?
  21463. need_locks=$lt_need_locks
  21464. # Manifest tool.
  21465. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  21466. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  21467. DSYMUTIL=$lt_DSYMUTIL
  21468. # Tool to change global to local symbols on Mac OS X.
  21469. NMEDIT=$lt_NMEDIT
  21470. # Tool to manipulate fat objects and archives on Mac OS X.
  21471. LIPO=$lt_LIPO
  21472. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  21473. OTOOL=$lt_OTOOL
  21474. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  21475. OTOOL64=$lt_OTOOL64
  21476. # Old archive suffix (normally "a").
  21477. libext=$libext
  21478. # Shared library suffix (normally ".so").
  21479. shrext_cmds=$lt_shrext_cmds
  21480. # The commands to extract the exported symbol list from a shared archive.
  21481. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  21482. # Variables whose values should be saved in libtool wrapper scripts and
  21483. # restored at link time.
  21484. variables_saved_for_relink=$lt_variables_saved_for_relink
  21485. # Do we need the "lib" prefix for modules?
  21486. need_lib_prefix=$need_lib_prefix
  21487. # Do we need a version for libraries?
  21488. need_version=$need_version
  21489. # Library versioning type.
  21490. version_type=$version_type
  21491. # Shared library runtime path variable.
  21492. runpath_var=$runpath_var
  21493. # Shared library path variable.
  21494. shlibpath_var=$shlibpath_var
  21495. # Is shlibpath searched before the hard-coded library search path?
  21496. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  21497. # Format of library name prefix.
  21498. libname_spec=$lt_libname_spec
  21499. # List of archive names. First name is the real one, the rest are links.
  21500. # The last name is the one that the linker finds with -lNAME
  21501. library_names_spec=$lt_library_names_spec
  21502. # The coded name of the library, if different from the real name.
  21503. soname_spec=$lt_soname_spec
  21504. # Permission mode override for installation of shared libraries.
  21505. install_override_mode=$lt_install_override_mode
  21506. # Command to use after installation of a shared archive.
  21507. postinstall_cmds=$lt_postinstall_cmds
  21508. # Command to use after uninstallation of a shared archive.
  21509. postuninstall_cmds=$lt_postuninstall_cmds
  21510. # Commands used to finish a libtool library installation in a directory.
  21511. finish_cmds=$lt_finish_cmds
  21512. # As "finish_cmds", except a single script fragment to be evaled but
  21513. # not shown.
  21514. finish_eval=$lt_finish_eval
  21515. # Whether we should hardcode library paths into libraries.
  21516. hardcode_into_libs=$hardcode_into_libs
  21517. # Compile-time system search path for libraries.
  21518. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  21519. # Detected run-time system search path for libraries.
  21520. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  21521. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  21522. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  21523. # Whether dlopen is supported.
  21524. dlopen_support=$enable_dlopen
  21525. # Whether dlopen of programs is supported.
  21526. dlopen_self=$enable_dlopen_self
  21527. # Whether dlopen of statically linked programs is supported.
  21528. dlopen_self_static=$enable_dlopen_self_static
  21529. # Commands to strip libraries.
  21530. old_striplib=$lt_old_striplib
  21531. striplib=$lt_striplib
  21532. # The linker used to build libraries.
  21533. LD=$lt_LD
  21534. # How to create reloadable object files.
  21535. reload_flag=$lt_reload_flag
  21536. reload_cmds=$lt_reload_cmds
  21537. # Commands used to build an old-style archive.
  21538. old_archive_cmds=$lt_old_archive_cmds
  21539. # A language specific compiler.
  21540. CC=$lt_compiler
  21541. # Is the compiler the GNU compiler?
  21542. with_gcc=$GCC
  21543. # Compiler flag to turn off builtin functions.
  21544. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  21545. # Additional compiler flags for building library objects.
  21546. pic_flag=$lt_lt_prog_compiler_pic
  21547. # How to pass a linker flag through the compiler.
  21548. wl=$lt_lt_prog_compiler_wl
  21549. # Compiler flag to prevent dynamic linking.
  21550. link_static_flag=$lt_lt_prog_compiler_static
  21551. # Does compiler simultaneously support -c and -o options?
  21552. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  21553. # Whether or not to add -lc for building shared libraries.
  21554. build_libtool_need_lc=$archive_cmds_need_lc
  21555. # Whether or not to disallow shared libs when runtime libs are static.
  21556. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  21557. # Compiler flag to allow reflexive dlopens.
  21558. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  21559. # Compiler flag to generate shared objects directly from archives.
  21560. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  21561. # Whether the compiler copes with passing no objects directly.
  21562. compiler_needs_object=$lt_compiler_needs_object
  21563. # Create an old-style archive from a shared archive.
  21564. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  21565. # Create a temporary old-style archive to link instead of a shared archive.
  21566. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  21567. # Commands used to build a shared archive.
  21568. archive_cmds=$lt_archive_cmds
  21569. archive_expsym_cmds=$lt_archive_expsym_cmds
  21570. # Commands used to build a loadable module if different from building
  21571. # a shared archive.
  21572. module_cmds=$lt_module_cmds
  21573. module_expsym_cmds=$lt_module_expsym_cmds
  21574. # Whether we are building with GNU ld or not.
  21575. with_gnu_ld=$lt_with_gnu_ld
  21576. # Flag that allows shared libraries with undefined symbols to be built.
  21577. allow_undefined_flag=$lt_allow_undefined_flag
  21578. # Flag that enforces no undefined symbols.
  21579. no_undefined_flag=$lt_no_undefined_flag
  21580. # Flag to hardcode \$libdir into a binary during linking.
  21581. # This must work even if \$libdir does not exist
  21582. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  21583. # Whether we need a single "-rpath" flag with a separated argument.
  21584. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  21585. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  21586. # DIR into the resulting binary.
  21587. hardcode_direct=$hardcode_direct
  21588. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  21589. # DIR into the resulting binary and the resulting library dependency is
  21590. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  21591. # library is relocated.
  21592. hardcode_direct_absolute=$hardcode_direct_absolute
  21593. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  21594. # into the resulting binary.
  21595. hardcode_minus_L=$hardcode_minus_L
  21596. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  21597. # into the resulting binary.
  21598. hardcode_shlibpath_var=$hardcode_shlibpath_var
  21599. # Set to "yes" if building a shared library automatically hardcodes DIR
  21600. # into the library and all subsequent libraries and executables linked
  21601. # against it.
  21602. hardcode_automatic=$hardcode_automatic
  21603. # Set to yes if linker adds runtime paths of dependent libraries
  21604. # to runtime path list.
  21605. inherit_rpath=$inherit_rpath
  21606. # Whether libtool must link a program against all its dependency libraries.
  21607. link_all_deplibs=$link_all_deplibs
  21608. # Set to "yes" if exported symbols are required.
  21609. always_export_symbols=$always_export_symbols
  21610. # The commands to list exported symbols.
  21611. export_symbols_cmds=$lt_export_symbols_cmds
  21612. # Symbols that should not be listed in the preloaded symbols.
  21613. exclude_expsyms=$lt_exclude_expsyms
  21614. # Symbols that must always be exported.
  21615. include_expsyms=$lt_include_expsyms
  21616. # Commands necessary for linking programs (against libraries) with templates.
  21617. prelink_cmds=$lt_prelink_cmds
  21618. # Commands necessary for finishing linking programs.
  21619. postlink_cmds=$lt_postlink_cmds
  21620. # Specify filename containing input files.
  21621. file_list_spec=$lt_file_list_spec
  21622. # How to hardcode a shared library path into an executable.
  21623. hardcode_action=$hardcode_action
  21624. # The directories searched by this compiler when creating a shared library.
  21625. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  21626. # Dependencies to place before and after the objects being linked to
  21627. # create a shared library.
  21628. predep_objects=$lt_predep_objects
  21629. postdep_objects=$lt_postdep_objects
  21630. predeps=$lt_predeps
  21631. postdeps=$lt_postdeps
  21632. # The library search path used internally by the compiler when linking
  21633. # a shared library.
  21634. compiler_lib_search_path=$lt_compiler_lib_search_path
  21635. # ### END LIBTOOL CONFIG
  21636. _LT_EOF
  21637. cat <<'_LT_EOF' >> "$cfgfile"
  21638. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  21639. # func_munge_path_list VARIABLE PATH
  21640. # -----------------------------------
  21641. # VARIABLE is name of variable containing _space_ separated list of
  21642. # directories to be munged by the contents of PATH, which is string
  21643. # having a format:
  21644. # "DIR[:DIR]:"
  21645. # string "DIR[ DIR]" will be prepended to VARIABLE
  21646. # ":DIR[:DIR]"
  21647. # string "DIR[ DIR]" will be appended to VARIABLE
  21648. # "DIRP[:DIRP]::[DIRA:]DIRA"
  21649. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  21650. # "DIRA[ DIRA]" will be appended to VARIABLE
  21651. # "DIR[:DIR]"
  21652. # VARIABLE will be replaced by "DIR[ DIR]"
  21653. func_munge_path_list ()
  21654. {
  21655. case x$2 in
  21656. x)
  21657. ;;
  21658. *:)
  21659. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  21660. ;;
  21661. x:*)
  21662. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  21663. ;;
  21664. *::*)
  21665. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  21666. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  21667. ;;
  21668. *)
  21669. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  21670. ;;
  21671. esac
  21672. }
  21673. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  21674. func_cc_basename ()
  21675. {
  21676. for cc_temp in $*""; do
  21677. case $cc_temp in
  21678. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  21679. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  21680. \-*) ;;
  21681. *) break;;
  21682. esac
  21683. done
  21684. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  21685. }
  21686. # ### END FUNCTIONS SHARED WITH CONFIGURE
  21687. _LT_EOF
  21688. case $host_os in
  21689. aix3*)
  21690. cat <<\_LT_EOF >> "$cfgfile"
  21691. # AIX sometimes has problems with the GCC collect2 program. For some
  21692. # reason, if we set the COLLECT_NAMES environment variable, the problems
  21693. # vanish in a puff of smoke.
  21694. if test set != "${COLLECT_NAMES+set}"; then
  21695. COLLECT_NAMES=
  21696. export COLLECT_NAMES
  21697. fi
  21698. _LT_EOF
  21699. ;;
  21700. esac
  21701. ltmain=$ac_aux_dir/ltmain.sh
  21702. # We use sed instead of cat because bash on DJGPP gets confused if
  21703. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  21704. # text mode, it properly converts lines to CR/LF. This bash problem
  21705. # is reportedly fixed, but why not run on old versions too?
  21706. sed '$q' "$ltmain" >> "$cfgfile" \
  21707. || (rm -f "$cfgfile"; exit 1)
  21708. mv -f "$cfgfile" "$ofile" ||
  21709. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  21710. chmod +x "$ofile"
  21711. cat <<_LT_EOF >> "$ofile"
  21712. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  21713. # The linker used to build libraries.
  21714. LD=$lt_LD_CXX
  21715. # How to create reloadable object files.
  21716. reload_flag=$lt_reload_flag_CXX
  21717. reload_cmds=$lt_reload_cmds_CXX
  21718. # Commands used to build an old-style archive.
  21719. old_archive_cmds=$lt_old_archive_cmds_CXX
  21720. # A language specific compiler.
  21721. CC=$lt_compiler_CXX
  21722. # Is the compiler the GNU compiler?
  21723. with_gcc=$GCC_CXX
  21724. # Compiler flag to turn off builtin functions.
  21725. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  21726. # Additional compiler flags for building library objects.
  21727. pic_flag=$lt_lt_prog_compiler_pic_CXX
  21728. # How to pass a linker flag through the compiler.
  21729. wl=$lt_lt_prog_compiler_wl_CXX
  21730. # Compiler flag to prevent dynamic linking.
  21731. link_static_flag=$lt_lt_prog_compiler_static_CXX
  21732. # Does compiler simultaneously support -c and -o options?
  21733. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  21734. # Whether or not to add -lc for building shared libraries.
  21735. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  21736. # Whether or not to disallow shared libs when runtime libs are static.
  21737. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  21738. # Compiler flag to allow reflexive dlopens.
  21739. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  21740. # Compiler flag to generate shared objects directly from archives.
  21741. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  21742. # Whether the compiler copes with passing no objects directly.
  21743. compiler_needs_object=$lt_compiler_needs_object_CXX
  21744. # Create an old-style archive from a shared archive.
  21745. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  21746. # Create a temporary old-style archive to link instead of a shared archive.
  21747. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  21748. # Commands used to build a shared archive.
  21749. archive_cmds=$lt_archive_cmds_CXX
  21750. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  21751. # Commands used to build a loadable module if different from building
  21752. # a shared archive.
  21753. module_cmds=$lt_module_cmds_CXX
  21754. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  21755. # Whether we are building with GNU ld or not.
  21756. with_gnu_ld=$lt_with_gnu_ld_CXX
  21757. # Flag that allows shared libraries with undefined symbols to be built.
  21758. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  21759. # Flag that enforces no undefined symbols.
  21760. no_undefined_flag=$lt_no_undefined_flag_CXX
  21761. # Flag to hardcode \$libdir into a binary during linking.
  21762. # This must work even if \$libdir does not exist
  21763. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  21764. # Whether we need a single "-rpath" flag with a separated argument.
  21765. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  21766. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  21767. # DIR into the resulting binary.
  21768. hardcode_direct=$hardcode_direct_CXX
  21769. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  21770. # DIR into the resulting binary and the resulting library dependency is
  21771. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  21772. # library is relocated.
  21773. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  21774. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  21775. # into the resulting binary.
  21776. hardcode_minus_L=$hardcode_minus_L_CXX
  21777. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  21778. # into the resulting binary.
  21779. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  21780. # Set to "yes" if building a shared library automatically hardcodes DIR
  21781. # into the library and all subsequent libraries and executables linked
  21782. # against it.
  21783. hardcode_automatic=$hardcode_automatic_CXX
  21784. # Set to yes if linker adds runtime paths of dependent libraries
  21785. # to runtime path list.
  21786. inherit_rpath=$inherit_rpath_CXX
  21787. # Whether libtool must link a program against all its dependency libraries.
  21788. link_all_deplibs=$link_all_deplibs_CXX
  21789. # Set to "yes" if exported symbols are required.
  21790. always_export_symbols=$always_export_symbols_CXX
  21791. # The commands to list exported symbols.
  21792. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  21793. # Symbols that should not be listed in the preloaded symbols.
  21794. exclude_expsyms=$lt_exclude_expsyms_CXX
  21795. # Symbols that must always be exported.
  21796. include_expsyms=$lt_include_expsyms_CXX
  21797. # Commands necessary for linking programs (against libraries) with templates.
  21798. prelink_cmds=$lt_prelink_cmds_CXX
  21799. # Commands necessary for finishing linking programs.
  21800. postlink_cmds=$lt_postlink_cmds_CXX
  21801. # Specify filename containing input files.
  21802. file_list_spec=$lt_file_list_spec_CXX
  21803. # How to hardcode a shared library path into an executable.
  21804. hardcode_action=$hardcode_action_CXX
  21805. # The directories searched by this compiler when creating a shared library.
  21806. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  21807. # Dependencies to place before and after the objects being linked to
  21808. # create a shared library.
  21809. predep_objects=$lt_predep_objects_CXX
  21810. postdep_objects=$lt_postdep_objects_CXX
  21811. predeps=$lt_predeps_CXX
  21812. postdeps=$lt_postdeps_CXX
  21813. # The library search path used internally by the compiler when linking
  21814. # a shared library.
  21815. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  21816. # ### END LIBTOOL TAG CONFIG: CXX
  21817. _LT_EOF
  21818. ;;
  21819. esac
  21820. done # for ac_tag
  21821. as_fn_exit 0
  21822. _ACEOF
  21823. ac_clean_files=$ac_clean_files_save
  21824. test $ac_write_fail = 0 ||
  21825. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  21826. # configure is writing to config.log, and then calls config.status.
  21827. # config.status does its own redirection, appending to config.log.
  21828. # Unfortunately, on DOS this fails, as config.log is still kept open
  21829. # by configure, so config.status won't be able to write to it; its
  21830. # output is simply discarded. So we exec the FD to /dev/null,
  21831. # effectively closing config.log, so it can be properly (re)opened and
  21832. # appended to by config.status. When coming back to configure, we
  21833. # need to make the FD available again.
  21834. if test "$no_create" != yes; then
  21835. ac_cs_success=:
  21836. ac_config_status_args=
  21837. test "$silent" = yes &&
  21838. ac_config_status_args="$ac_config_status_args --quiet"
  21839. exec 5>/dev/null
  21840. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  21841. exec 5>>config.log
  21842. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  21843. # would make configure fail if this is the last instruction.
  21844. $ac_cs_success || as_fn_exit 1
  21845. fi
  21846. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  21847. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  21848. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  21849. fi
  21850. { $as_echo "$as_me:${as_lineno-$LINENO}: result:
  21851. $PACKAGE_NAME $VERSION
  21852. esys: $enable_esys
  21853. fapi: $enable_fapi
  21854. tctidefaultmodule: $with_tctidefaultmodule
  21855. tctidefaultconfig: $with_tctidefaultconfig
  21856. unit: $enable_unit
  21857. integration: $enable_integration
  21858. testing backend: $integration_tcti
  21859. fuzzing: $with_fuzzing
  21860. debug: $enable_debug
  21861. maxloglevel: $with_maxloglevel
  21862. doxygen: $DX_FLAG_doc $enable_doxygen_doc
  21863. crypto backend: $with_crypto
  21864. sysconfdir: $sysconfdir
  21865. localstatedir: $localstatedir
  21866. runstatedir: $runstatedir
  21867. sysusersdir: $sysusersdir
  21868. tmpfilesdir: $tmpfilesdir
  21869. userstatedir: \$HOME/$with_userstatedir
  21870. " >&5
  21871. $as_echo "
  21872. $PACKAGE_NAME $VERSION
  21873. esys: $enable_esys
  21874. fapi: $enable_fapi
  21875. tctidefaultmodule: $with_tctidefaultmodule
  21876. tctidefaultconfig: $with_tctidefaultconfig
  21877. unit: $enable_unit
  21878. integration: $enable_integration
  21879. testing backend: $integration_tcti
  21880. fuzzing: $with_fuzzing
  21881. debug: $enable_debug
  21882. maxloglevel: $with_maxloglevel
  21883. doxygen: $DX_FLAG_doc $enable_doxygen_doc
  21884. crypto backend: $with_crypto
  21885. sysconfdir: $sysconfdir
  21886. localstatedir: $localstatedir
  21887. runstatedir: $runstatedir
  21888. sysusersdir: $sysusersdir
  21889. tmpfilesdir: $tmpfilesdir
  21890. userstatedir: \$HOME/$with_userstatedir
  21891. " >&6; }