configure 425 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for luksmeta 9.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  186. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  187. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. PATH=/empty FPATH=/empty; export PATH FPATH
  190. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  191. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  192. test \$(( 1 + 1 )) = 2 || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME='luksmeta'
  539. PACKAGE_TARNAME='luksmeta'
  540. PACKAGE_VERSION='9'
  541. PACKAGE_STRING='luksmeta 9'
  542. PACKAGE_BUGREPORT=''
  543. PACKAGE_URL=''
  544. # Factoring default headers for most tests.
  545. ac_includes_default="\
  546. #include <stdio.h>
  547. #ifdef HAVE_SYS_TYPES_H
  548. # include <sys/types.h>
  549. #endif
  550. #ifdef HAVE_SYS_STAT_H
  551. # include <sys/stat.h>
  552. #endif
  553. #ifdef STDC_HEADERS
  554. # include <stdlib.h>
  555. # include <stddef.h>
  556. #else
  557. # ifdef HAVE_STDLIB_H
  558. # include <stdlib.h>
  559. # endif
  560. #endif
  561. #ifdef HAVE_STRING_H
  562. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  563. # include <memory.h>
  564. # endif
  565. # include <string.h>
  566. #endif
  567. #ifdef HAVE_STRINGS_H
  568. # include <strings.h>
  569. #endif
  570. #ifdef HAVE_INTTYPES_H
  571. # include <inttypes.h>
  572. #endif
  573. #ifdef HAVE_STDINT_H
  574. # include <stdint.h>
  575. #endif
  576. #ifdef HAVE_UNISTD_H
  577. # include <unistd.h>
  578. #endif"
  579. ac_subst_vars='am__EXEEXT_FALSE
  580. am__EXEEXT_TRUE
  581. LTLIBOBJS
  582. LIBOBJS
  583. HAVE_A2X_FALSE
  584. HAVE_A2X_TRUE
  585. A2X
  586. LUKSMETA_CFLAGS
  587. cryptsetup_LIBS
  588. cryptsetup_CFLAGS
  589. PKG_CONFIG_LIBDIR
  590. PKG_CONFIG_PATH
  591. PKG_CONFIG
  592. CPP
  593. LT_SYS_LIBRARY_PATH
  594. OTOOL64
  595. OTOOL
  596. LIPO
  597. NMEDIT
  598. DSYMUTIL
  599. MANIFEST_TOOL
  600. RANLIB
  601. ac_ct_AR
  602. AR
  603. DLLTOOL
  604. OBJDUMP
  605. LN_S
  606. NM
  607. ac_ct_DUMPBIN
  608. DUMPBIN
  609. LD
  610. FGREP
  611. EGREP
  612. GREP
  613. SED
  614. LIBTOOL
  615. AM_BACKSLASH
  616. AM_DEFAULT_VERBOSITY
  617. AM_DEFAULT_V
  618. AM_V
  619. am__fastdepCC_FALSE
  620. am__fastdepCC_TRUE
  621. CCDEPMODE
  622. am__nodep
  623. AMDEPBACKSLASH
  624. AMDEP_FALSE
  625. AMDEP_TRUE
  626. am__quote
  627. am__include
  628. DEPDIR
  629. am__untar
  630. am__tar
  631. AMTAR
  632. am__leading_dot
  633. SET_MAKE
  634. AWK
  635. mkdir_p
  636. MKDIR_P
  637. INSTALL_STRIP_PROGRAM
  638. STRIP
  639. install_sh
  640. MAKEINFO
  641. AUTOHEADER
  642. AUTOMAKE
  643. AUTOCONF
  644. ACLOCAL
  645. VERSION
  646. PACKAGE
  647. CYGPATH_W
  648. am__isrc
  649. INSTALL_DATA
  650. INSTALL_SCRIPT
  651. INSTALL_PROGRAM
  652. OBJEXT
  653. EXEEXT
  654. ac_ct_CC
  655. CPPFLAGS
  656. LDFLAGS
  657. CFLAGS
  658. CC
  659. target_os
  660. target_vendor
  661. target_cpu
  662. target
  663. host_os
  664. host_vendor
  665. host_cpu
  666. host
  667. build_os
  668. build_vendor
  669. build_cpu
  670. build
  671. target_alias
  672. host_alias
  673. build_alias
  674. LIBS
  675. ECHO_T
  676. ECHO_N
  677. ECHO_C
  678. DEFS
  679. mandir
  680. localedir
  681. libdir
  682. psdir
  683. pdfdir
  684. dvidir
  685. htmldir
  686. infodir
  687. docdir
  688. oldincludedir
  689. includedir
  690. localstatedir
  691. sharedstatedir
  692. sysconfdir
  693. datadir
  694. datarootdir
  695. libexecdir
  696. sbindir
  697. bindir
  698. program_transform_name
  699. prefix
  700. exec_prefix
  701. PACKAGE_URL
  702. PACKAGE_BUGREPORT
  703. PACKAGE_STRING
  704. PACKAGE_VERSION
  705. PACKAGE_TARNAME
  706. PACKAGE_NAME
  707. PATH_SEPARATOR
  708. SHELL'
  709. ac_subst_files=''
  710. ac_user_opts='
  711. enable_option_checking
  712. enable_dependency_tracking
  713. enable_silent_rules
  714. enable_static
  715. enable_shared
  716. with_pic
  717. enable_fast_install
  718. with_aix_soname
  719. with_gnu_ld
  720. with_sysroot
  721. enable_libtool_lock
  722. '
  723. ac_precious_vars='build_alias
  724. host_alias
  725. target_alias
  726. CC
  727. CFLAGS
  728. LDFLAGS
  729. LIBS
  730. CPPFLAGS
  731. LT_SYS_LIBRARY_PATH
  732. CPP
  733. PKG_CONFIG
  734. PKG_CONFIG_PATH
  735. PKG_CONFIG_LIBDIR
  736. cryptsetup_CFLAGS
  737. cryptsetup_LIBS'
  738. # Initialize some variables set by options.
  739. ac_init_help=
  740. ac_init_version=false
  741. ac_unrecognized_opts=
  742. ac_unrecognized_sep=
  743. # The variables have the same names as the options, with
  744. # dashes changed to underlines.
  745. cache_file=/dev/null
  746. exec_prefix=NONE
  747. no_create=
  748. no_recursion=
  749. prefix=NONE
  750. program_prefix=NONE
  751. program_suffix=NONE
  752. program_transform_name=s,x,x,
  753. silent=
  754. site=
  755. srcdir=
  756. verbose=
  757. x_includes=NONE
  758. x_libraries=NONE
  759. # Installation directory options.
  760. # These are left unexpanded so users can "make install exec_prefix=/foo"
  761. # and all the variables that are supposed to be based on exec_prefix
  762. # by default will actually change.
  763. # Use braces instead of parens because sh, perl, etc. also accept them.
  764. # (The list follows the same order as the GNU Coding Standards.)
  765. bindir='${exec_prefix}/bin'
  766. sbindir='${exec_prefix}/sbin'
  767. libexecdir='${exec_prefix}/libexec'
  768. datarootdir='${prefix}/share'
  769. datadir='${datarootdir}'
  770. sysconfdir='${prefix}/etc'
  771. sharedstatedir='${prefix}/com'
  772. localstatedir='${prefix}/var'
  773. includedir='${prefix}/include'
  774. oldincludedir='/usr/include'
  775. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  776. infodir='${datarootdir}/info'
  777. htmldir='${docdir}'
  778. dvidir='${docdir}'
  779. pdfdir='${docdir}'
  780. psdir='${docdir}'
  781. libdir='${exec_prefix}/lib'
  782. localedir='${datarootdir}/locale'
  783. mandir='${datarootdir}/man'
  784. ac_prev=
  785. ac_dashdash=
  786. for ac_option
  787. do
  788. # If the previous option needs an argument, assign it.
  789. if test -n "$ac_prev"; then
  790. eval $ac_prev=\$ac_option
  791. ac_prev=
  792. continue
  793. fi
  794. case $ac_option in
  795. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  796. *=) ac_optarg= ;;
  797. *) ac_optarg=yes ;;
  798. esac
  799. # Accept the important Cygnus configure options, so we can diagnose typos.
  800. case $ac_dashdash$ac_option in
  801. --)
  802. ac_dashdash=yes ;;
  803. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  804. ac_prev=bindir ;;
  805. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  806. bindir=$ac_optarg ;;
  807. -build | --build | --buil | --bui | --bu)
  808. ac_prev=build_alias ;;
  809. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  810. build_alias=$ac_optarg ;;
  811. -cache-file | --cache-file | --cache-fil | --cache-fi \
  812. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  813. ac_prev=cache_file ;;
  814. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  815. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  816. cache_file=$ac_optarg ;;
  817. --config-cache | -C)
  818. cache_file=config.cache ;;
  819. -datadir | --datadir | --datadi | --datad)
  820. ac_prev=datadir ;;
  821. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  822. datadir=$ac_optarg ;;
  823. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  824. | --dataroo | --dataro | --datar)
  825. ac_prev=datarootdir ;;
  826. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  827. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  828. datarootdir=$ac_optarg ;;
  829. -disable-* | --disable-*)
  830. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  831. # Reject names that are not valid shell variable names.
  832. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  833. as_fn_error $? "invalid feature name: $ac_useropt"
  834. ac_useropt_orig=$ac_useropt
  835. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  836. case $ac_user_opts in
  837. *"
  838. "enable_$ac_useropt"
  839. "*) ;;
  840. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  841. ac_unrecognized_sep=', ';;
  842. esac
  843. eval enable_$ac_useropt=no ;;
  844. -docdir | --docdir | --docdi | --doc | --do)
  845. ac_prev=docdir ;;
  846. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  847. docdir=$ac_optarg ;;
  848. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  849. ac_prev=dvidir ;;
  850. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  851. dvidir=$ac_optarg ;;
  852. -enable-* | --enable-*)
  853. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  854. # Reject names that are not valid shell variable names.
  855. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  856. as_fn_error $? "invalid feature name: $ac_useropt"
  857. ac_useropt_orig=$ac_useropt
  858. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  859. case $ac_user_opts in
  860. *"
  861. "enable_$ac_useropt"
  862. "*) ;;
  863. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  864. ac_unrecognized_sep=', ';;
  865. esac
  866. eval enable_$ac_useropt=\$ac_optarg ;;
  867. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  868. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  869. | --exec | --exe | --ex)
  870. ac_prev=exec_prefix ;;
  871. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  872. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  873. | --exec=* | --exe=* | --ex=*)
  874. exec_prefix=$ac_optarg ;;
  875. -gas | --gas | --ga | --g)
  876. # Obsolete; use --with-gas.
  877. with_gas=yes ;;
  878. -help | --help | --hel | --he | -h)
  879. ac_init_help=long ;;
  880. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  881. ac_init_help=recursive ;;
  882. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  883. ac_init_help=short ;;
  884. -host | --host | --hos | --ho)
  885. ac_prev=host_alias ;;
  886. -host=* | --host=* | --hos=* | --ho=*)
  887. host_alias=$ac_optarg ;;
  888. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  889. ac_prev=htmldir ;;
  890. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  891. | --ht=*)
  892. htmldir=$ac_optarg ;;
  893. -includedir | --includedir | --includedi | --included | --include \
  894. | --includ | --inclu | --incl | --inc)
  895. ac_prev=includedir ;;
  896. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  897. | --includ=* | --inclu=* | --incl=* | --inc=*)
  898. includedir=$ac_optarg ;;
  899. -infodir | --infodir | --infodi | --infod | --info | --inf)
  900. ac_prev=infodir ;;
  901. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  902. infodir=$ac_optarg ;;
  903. -libdir | --libdir | --libdi | --libd)
  904. ac_prev=libdir ;;
  905. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  906. libdir=$ac_optarg ;;
  907. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  908. | --libexe | --libex | --libe)
  909. ac_prev=libexecdir ;;
  910. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  911. | --libexe=* | --libex=* | --libe=*)
  912. libexecdir=$ac_optarg ;;
  913. -localedir | --localedir | --localedi | --localed | --locale)
  914. ac_prev=localedir ;;
  915. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  916. localedir=$ac_optarg ;;
  917. -localstatedir | --localstatedir | --localstatedi | --localstated \
  918. | --localstate | --localstat | --localsta | --localst | --locals)
  919. ac_prev=localstatedir ;;
  920. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  921. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  922. localstatedir=$ac_optarg ;;
  923. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  924. ac_prev=mandir ;;
  925. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  926. mandir=$ac_optarg ;;
  927. -nfp | --nfp | --nf)
  928. # Obsolete; use --without-fp.
  929. with_fp=no ;;
  930. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  931. | --no-cr | --no-c | -n)
  932. no_create=yes ;;
  933. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  934. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  935. no_recursion=yes ;;
  936. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  937. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  938. | --oldin | --oldi | --old | --ol | --o)
  939. ac_prev=oldincludedir ;;
  940. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  941. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  942. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  943. oldincludedir=$ac_optarg ;;
  944. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  945. ac_prev=prefix ;;
  946. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  947. prefix=$ac_optarg ;;
  948. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  949. | --program-pre | --program-pr | --program-p)
  950. ac_prev=program_prefix ;;
  951. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  952. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  953. program_prefix=$ac_optarg ;;
  954. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  955. | --program-suf | --program-su | --program-s)
  956. ac_prev=program_suffix ;;
  957. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  958. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  959. program_suffix=$ac_optarg ;;
  960. -program-transform-name | --program-transform-name \
  961. | --program-transform-nam | --program-transform-na \
  962. | --program-transform-n | --program-transform- \
  963. | --program-transform | --program-transfor \
  964. | --program-transfo | --program-transf \
  965. | --program-trans | --program-tran \
  966. | --progr-tra | --program-tr | --program-t)
  967. ac_prev=program_transform_name ;;
  968. -program-transform-name=* | --program-transform-name=* \
  969. | --program-transform-nam=* | --program-transform-na=* \
  970. | --program-transform-n=* | --program-transform-=* \
  971. | --program-transform=* | --program-transfor=* \
  972. | --program-transfo=* | --program-transf=* \
  973. | --program-trans=* | --program-tran=* \
  974. | --progr-tra=* | --program-tr=* | --program-t=*)
  975. program_transform_name=$ac_optarg ;;
  976. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  977. ac_prev=pdfdir ;;
  978. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  979. pdfdir=$ac_optarg ;;
  980. -psdir | --psdir | --psdi | --psd | --ps)
  981. ac_prev=psdir ;;
  982. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  983. psdir=$ac_optarg ;;
  984. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  985. | -silent | --silent | --silen | --sile | --sil)
  986. silent=yes ;;
  987. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  988. ac_prev=sbindir ;;
  989. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  990. | --sbi=* | --sb=*)
  991. sbindir=$ac_optarg ;;
  992. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  993. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  994. | --sharedst | --shareds | --shared | --share | --shar \
  995. | --sha | --sh)
  996. ac_prev=sharedstatedir ;;
  997. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  998. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  999. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1000. | --sha=* | --sh=*)
  1001. sharedstatedir=$ac_optarg ;;
  1002. -site | --site | --sit)
  1003. ac_prev=site ;;
  1004. -site=* | --site=* | --sit=*)
  1005. site=$ac_optarg ;;
  1006. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1007. ac_prev=srcdir ;;
  1008. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1009. srcdir=$ac_optarg ;;
  1010. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1011. | --syscon | --sysco | --sysc | --sys | --sy)
  1012. ac_prev=sysconfdir ;;
  1013. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1014. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1015. sysconfdir=$ac_optarg ;;
  1016. -target | --target | --targe | --targ | --tar | --ta | --t)
  1017. ac_prev=target_alias ;;
  1018. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1019. target_alias=$ac_optarg ;;
  1020. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1021. verbose=yes ;;
  1022. -version | --version | --versio | --versi | --vers | -V)
  1023. ac_init_version=: ;;
  1024. -with-* | --with-*)
  1025. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1026. # Reject names that are not valid shell variable names.
  1027. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1028. as_fn_error $? "invalid package name: $ac_useropt"
  1029. ac_useropt_orig=$ac_useropt
  1030. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1031. case $ac_user_opts in
  1032. *"
  1033. "with_$ac_useropt"
  1034. "*) ;;
  1035. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1036. ac_unrecognized_sep=', ';;
  1037. esac
  1038. eval with_$ac_useropt=\$ac_optarg ;;
  1039. -without-* | --without-*)
  1040. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1041. # Reject names that are not valid shell variable names.
  1042. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1043. as_fn_error $? "invalid package name: $ac_useropt"
  1044. ac_useropt_orig=$ac_useropt
  1045. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1046. case $ac_user_opts in
  1047. *"
  1048. "with_$ac_useropt"
  1049. "*) ;;
  1050. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1051. ac_unrecognized_sep=', ';;
  1052. esac
  1053. eval with_$ac_useropt=no ;;
  1054. --x)
  1055. # Obsolete; use --with-x.
  1056. with_x=yes ;;
  1057. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1058. | --x-incl | --x-inc | --x-in | --x-i)
  1059. ac_prev=x_includes ;;
  1060. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1061. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1062. x_includes=$ac_optarg ;;
  1063. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1064. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1065. ac_prev=x_libraries ;;
  1066. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1067. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1068. x_libraries=$ac_optarg ;;
  1069. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1070. Try \`$0 --help' for more information"
  1071. ;;
  1072. *=*)
  1073. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1074. # Reject names that are not valid shell variable names.
  1075. case $ac_envvar in #(
  1076. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1077. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1078. esac
  1079. eval $ac_envvar=\$ac_optarg
  1080. export $ac_envvar ;;
  1081. *)
  1082. # FIXME: should be removed in autoconf 3.0.
  1083. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1084. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1085. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1086. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1087. ;;
  1088. esac
  1089. done
  1090. if test -n "$ac_prev"; then
  1091. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1092. as_fn_error $? "missing argument to $ac_option"
  1093. fi
  1094. if test -n "$ac_unrecognized_opts"; then
  1095. case $enable_option_checking in
  1096. no) ;;
  1097. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1098. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1099. esac
  1100. fi
  1101. # Check all directory arguments for consistency.
  1102. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1103. datadir sysconfdir sharedstatedir localstatedir includedir \
  1104. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1105. libdir localedir mandir
  1106. do
  1107. eval ac_val=\$$ac_var
  1108. # Remove trailing slashes.
  1109. case $ac_val in
  1110. */ )
  1111. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1112. eval $ac_var=\$ac_val;;
  1113. esac
  1114. # Be sure to have absolute directory names.
  1115. case $ac_val in
  1116. [\\/$]* | ?:[\\/]* ) continue;;
  1117. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1118. esac
  1119. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1120. done
  1121. # There might be people who depend on the old broken behavior: `$host'
  1122. # used to hold the argument of --host etc.
  1123. # FIXME: To remove some day.
  1124. build=$build_alias
  1125. host=$host_alias
  1126. target=$target_alias
  1127. # FIXME: To remove some day.
  1128. if test "x$host_alias" != x; then
  1129. if test "x$build_alias" = x; then
  1130. cross_compiling=maybe
  1131. elif test "x$build_alias" != "x$host_alias"; then
  1132. cross_compiling=yes
  1133. fi
  1134. fi
  1135. ac_tool_prefix=
  1136. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1137. test "$silent" = yes && exec 6>/dev/null
  1138. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1139. ac_ls_di=`ls -di .` &&
  1140. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1141. as_fn_error $? "working directory cannot be determined"
  1142. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1143. as_fn_error $? "pwd does not report name of working directory"
  1144. # Find the source files, if location was not specified.
  1145. if test -z "$srcdir"; then
  1146. ac_srcdir_defaulted=yes
  1147. # Try the directory containing this script, then the parent directory.
  1148. ac_confdir=`$as_dirname -- "$as_myself" ||
  1149. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1150. X"$as_myself" : 'X\(//\)[^/]' \| \
  1151. X"$as_myself" : 'X\(//\)$' \| \
  1152. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1153. $as_echo X"$as_myself" |
  1154. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1155. s//\1/
  1156. q
  1157. }
  1158. /^X\(\/\/\)[^/].*/{
  1159. s//\1/
  1160. q
  1161. }
  1162. /^X\(\/\/\)$/{
  1163. s//\1/
  1164. q
  1165. }
  1166. /^X\(\/\).*/{
  1167. s//\1/
  1168. q
  1169. }
  1170. s/.*/./; q'`
  1171. srcdir=$ac_confdir
  1172. if test ! -r "$srcdir/$ac_unique_file"; then
  1173. srcdir=..
  1174. fi
  1175. else
  1176. ac_srcdir_defaulted=no
  1177. fi
  1178. if test ! -r "$srcdir/$ac_unique_file"; then
  1179. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1180. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1181. fi
  1182. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1183. ac_abs_confdir=`(
  1184. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1185. pwd)`
  1186. # When building in place, set srcdir=.
  1187. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1188. srcdir=.
  1189. fi
  1190. # Remove unnecessary trailing slashes from srcdir.
  1191. # Double slashes in file names in object file debugging info
  1192. # mess up M-x gdb in Emacs.
  1193. case $srcdir in
  1194. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1195. esac
  1196. for ac_var in $ac_precious_vars; do
  1197. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1198. eval ac_env_${ac_var}_value=\$${ac_var}
  1199. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1200. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1201. done
  1202. #
  1203. # Report the --help message.
  1204. #
  1205. if test "$ac_init_help" = "long"; then
  1206. # Omit some internal or obsolete options to make the list less imposing.
  1207. # This message is too long to be a string in the A/UX 3.1 sh.
  1208. cat <<_ACEOF
  1209. \`configure' configures luksmeta 9 to adapt to many kinds of systems.
  1210. Usage: $0 [OPTION]... [VAR=VALUE]...
  1211. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1212. VAR=VALUE. See below for descriptions of some of the useful variables.
  1213. Defaults for the options are specified in brackets.
  1214. Configuration:
  1215. -h, --help display this help and exit
  1216. --help=short display options specific to this package
  1217. --help=recursive display the short help of all the included packages
  1218. -V, --version display version information and exit
  1219. -q, --quiet, --silent do not print \`checking ...' messages
  1220. --cache-file=FILE cache test results in FILE [disabled]
  1221. -C, --config-cache alias for \`--cache-file=config.cache'
  1222. -n, --no-create do not create output files
  1223. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1224. Installation directories:
  1225. --prefix=PREFIX install architecture-independent files in PREFIX
  1226. [$ac_default_prefix]
  1227. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1228. [PREFIX]
  1229. By default, \`make install' will install all the files in
  1230. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1231. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1232. for instance \`--prefix=\$HOME'.
  1233. For better control, use the options below.
  1234. Fine tuning of the installation directories:
  1235. --bindir=DIR user executables [EPREFIX/bin]
  1236. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1237. --libexecdir=DIR program executables [EPREFIX/libexec]
  1238. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1239. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1240. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1241. --libdir=DIR object code libraries [EPREFIX/lib]
  1242. --includedir=DIR C header files [PREFIX/include]
  1243. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1244. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1245. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1246. --infodir=DIR info documentation [DATAROOTDIR/info]
  1247. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1248. --mandir=DIR man documentation [DATAROOTDIR/man]
  1249. --docdir=DIR documentation root [DATAROOTDIR/doc/luksmeta]
  1250. --htmldir=DIR html documentation [DOCDIR]
  1251. --dvidir=DIR dvi documentation [DOCDIR]
  1252. --pdfdir=DIR pdf documentation [DOCDIR]
  1253. --psdir=DIR ps documentation [DOCDIR]
  1254. _ACEOF
  1255. cat <<\_ACEOF
  1256. Program names:
  1257. --program-prefix=PREFIX prepend PREFIX to installed program names
  1258. --program-suffix=SUFFIX append SUFFIX to installed program names
  1259. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1260. System types:
  1261. --build=BUILD configure for building on BUILD [guessed]
  1262. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1263. --target=TARGET configure for building compilers for TARGET [HOST]
  1264. _ACEOF
  1265. fi
  1266. if test -n "$ac_init_help"; then
  1267. case $ac_init_help in
  1268. short | recursive ) echo "Configuration of luksmeta 9:";;
  1269. esac
  1270. cat <<\_ACEOF
  1271. Optional Features:
  1272. --disable-option-checking ignore unrecognized --enable/--with options
  1273. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1274. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1275. --enable-dependency-tracking
  1276. do not reject slow dependency extractors
  1277. --disable-dependency-tracking
  1278. speeds up one-time build
  1279. --enable-silent-rules less verbose build output (undo: "make V=1")
  1280. --disable-silent-rules verbose build output (undo: "make V=0")
  1281. --enable-static[=PKGS] build static libraries [default=no]
  1282. --enable-shared[=PKGS] build shared libraries [default=yes]
  1283. --enable-fast-install[=PKGS]
  1284. optimize for fast installation [default=yes]
  1285. --disable-libtool-lock avoid locking (might break parallel builds)
  1286. Optional Packages:
  1287. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1288. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1289. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1290. both]
  1291. --with-aix-soname=aix|svr4|both
  1292. shared library versioning (aka "SONAME") variant to
  1293. provide on AIX, [default=aix].
  1294. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1295. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1296. compiler's sysroot if not specified).
  1297. Some influential environment variables:
  1298. CC C compiler command
  1299. CFLAGS C compiler flags
  1300. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1301. nonstandard directory <lib dir>
  1302. LIBS libraries to pass to the linker, e.g. -l<library>
  1303. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1304. you have headers in a nonstandard directory <include dir>
  1305. LT_SYS_LIBRARY_PATH
  1306. User-defined run-time library search path.
  1307. CPP C preprocessor
  1308. PKG_CONFIG path to pkg-config utility
  1309. PKG_CONFIG_PATH
  1310. directories to add to pkg-config's search path
  1311. PKG_CONFIG_LIBDIR
  1312. path overriding pkg-config's built-in search path
  1313. cryptsetup_CFLAGS
  1314. C compiler flags for cryptsetup, overriding pkg-config
  1315. cryptsetup_LIBS
  1316. linker flags for cryptsetup, overriding pkg-config
  1317. Use these variables to override the choices made by `configure' or to help
  1318. it to find libraries and programs with nonstandard names/locations.
  1319. Report bugs to the package provider.
  1320. _ACEOF
  1321. ac_status=$?
  1322. fi
  1323. if test "$ac_init_help" = "recursive"; then
  1324. # If there are subdirs, report their specific --help.
  1325. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1326. test -d "$ac_dir" ||
  1327. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1328. continue
  1329. ac_builddir=.
  1330. case "$ac_dir" in
  1331. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1332. *)
  1333. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1334. # A ".." for each directory in $ac_dir_suffix.
  1335. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1336. case $ac_top_builddir_sub in
  1337. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1338. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1339. esac ;;
  1340. esac
  1341. ac_abs_top_builddir=$ac_pwd
  1342. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1343. # for backward compatibility:
  1344. ac_top_builddir=$ac_top_build_prefix
  1345. case $srcdir in
  1346. .) # We are building in place.
  1347. ac_srcdir=.
  1348. ac_top_srcdir=$ac_top_builddir_sub
  1349. ac_abs_top_srcdir=$ac_pwd ;;
  1350. [\\/]* | ?:[\\/]* ) # Absolute name.
  1351. ac_srcdir=$srcdir$ac_dir_suffix;
  1352. ac_top_srcdir=$srcdir
  1353. ac_abs_top_srcdir=$srcdir ;;
  1354. *) # Relative name.
  1355. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1356. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1357. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1358. esac
  1359. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1360. cd "$ac_dir" || { ac_status=$?; continue; }
  1361. # Check for guested configure.
  1362. if test -f "$ac_srcdir/configure.gnu"; then
  1363. echo &&
  1364. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1365. elif test -f "$ac_srcdir/configure"; then
  1366. echo &&
  1367. $SHELL "$ac_srcdir/configure" --help=recursive
  1368. else
  1369. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1370. fi || ac_status=$?
  1371. cd "$ac_pwd" || { ac_status=$?; break; }
  1372. done
  1373. fi
  1374. test -n "$ac_init_help" && exit $ac_status
  1375. if $ac_init_version; then
  1376. cat <<\_ACEOF
  1377. luksmeta configure 9
  1378. generated by GNU Autoconf 2.69
  1379. Copyright (C) 2012 Free Software Foundation, Inc.
  1380. This configure script is free software; the Free Software Foundation
  1381. gives unlimited permission to copy, distribute and modify it.
  1382. _ACEOF
  1383. exit
  1384. fi
  1385. ## ------------------------ ##
  1386. ## Autoconf initialization. ##
  1387. ## ------------------------ ##
  1388. # ac_fn_c_try_compile LINENO
  1389. # --------------------------
  1390. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1391. ac_fn_c_try_compile ()
  1392. {
  1393. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1394. rm -f conftest.$ac_objext
  1395. if { { ac_try="$ac_compile"
  1396. case "(($ac_try" in
  1397. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1398. *) ac_try_echo=$ac_try;;
  1399. esac
  1400. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1401. $as_echo "$ac_try_echo"; } >&5
  1402. (eval "$ac_compile") 2>conftest.err
  1403. ac_status=$?
  1404. if test -s conftest.err; then
  1405. grep -v '^ *+' conftest.err >conftest.er1
  1406. cat conftest.er1 >&5
  1407. mv -f conftest.er1 conftest.err
  1408. fi
  1409. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1410. test $ac_status = 0; } && {
  1411. test -z "$ac_c_werror_flag" ||
  1412. test ! -s conftest.err
  1413. } && test -s conftest.$ac_objext; then :
  1414. ac_retval=0
  1415. else
  1416. $as_echo "$as_me: failed program was:" >&5
  1417. sed 's/^/| /' conftest.$ac_ext >&5
  1418. ac_retval=1
  1419. fi
  1420. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1421. as_fn_set_status $ac_retval
  1422. } # ac_fn_c_try_compile
  1423. # ac_fn_c_try_link LINENO
  1424. # -----------------------
  1425. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1426. ac_fn_c_try_link ()
  1427. {
  1428. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1429. rm -f conftest.$ac_objext conftest$ac_exeext
  1430. if { { ac_try="$ac_link"
  1431. case "(($ac_try" in
  1432. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1433. *) ac_try_echo=$ac_try;;
  1434. esac
  1435. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1436. $as_echo "$ac_try_echo"; } >&5
  1437. (eval "$ac_link") 2>conftest.err
  1438. ac_status=$?
  1439. if test -s conftest.err; then
  1440. grep -v '^ *+' conftest.err >conftest.er1
  1441. cat conftest.er1 >&5
  1442. mv -f conftest.er1 conftest.err
  1443. fi
  1444. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1445. test $ac_status = 0; } && {
  1446. test -z "$ac_c_werror_flag" ||
  1447. test ! -s conftest.err
  1448. } && test -s conftest$ac_exeext && {
  1449. test "$cross_compiling" = yes ||
  1450. test -x conftest$ac_exeext
  1451. }; then :
  1452. ac_retval=0
  1453. else
  1454. $as_echo "$as_me: failed program was:" >&5
  1455. sed 's/^/| /' conftest.$ac_ext >&5
  1456. ac_retval=1
  1457. fi
  1458. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1459. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1460. # interfere with the next link command; also delete a directory that is
  1461. # left behind by Apple's compiler. We do this before executing the actions.
  1462. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1463. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1464. as_fn_set_status $ac_retval
  1465. } # ac_fn_c_try_link
  1466. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1467. # -------------------------------------------------------
  1468. # Tests whether HEADER exists and can be compiled using the include files in
  1469. # INCLUDES, setting the cache variable VAR accordingly.
  1470. ac_fn_c_check_header_compile ()
  1471. {
  1472. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1474. $as_echo_n "checking for $2... " >&6; }
  1475. if eval \${$3+:} false; then :
  1476. $as_echo_n "(cached) " >&6
  1477. else
  1478. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1479. /* end confdefs.h. */
  1480. $4
  1481. #include <$2>
  1482. _ACEOF
  1483. if ac_fn_c_try_compile "$LINENO"; then :
  1484. eval "$3=yes"
  1485. else
  1486. eval "$3=no"
  1487. fi
  1488. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1489. fi
  1490. eval ac_res=\$$3
  1491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1492. $as_echo "$ac_res" >&6; }
  1493. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1494. } # ac_fn_c_check_header_compile
  1495. # ac_fn_c_try_cpp LINENO
  1496. # ----------------------
  1497. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1498. ac_fn_c_try_cpp ()
  1499. {
  1500. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1501. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1502. case "(($ac_try" in
  1503. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1504. *) ac_try_echo=$ac_try;;
  1505. esac
  1506. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1507. $as_echo "$ac_try_echo"; } >&5
  1508. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1509. ac_status=$?
  1510. if test -s conftest.err; then
  1511. grep -v '^ *+' conftest.err >conftest.er1
  1512. cat conftest.er1 >&5
  1513. mv -f conftest.er1 conftest.err
  1514. fi
  1515. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1516. test $ac_status = 0; } > conftest.i && {
  1517. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1518. test ! -s conftest.err
  1519. }; then :
  1520. ac_retval=0
  1521. else
  1522. $as_echo "$as_me: failed program was:" >&5
  1523. sed 's/^/| /' conftest.$ac_ext >&5
  1524. ac_retval=1
  1525. fi
  1526. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1527. as_fn_set_status $ac_retval
  1528. } # ac_fn_c_try_cpp
  1529. # ac_fn_c_try_run LINENO
  1530. # ----------------------
  1531. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1532. # that executables *can* be run.
  1533. ac_fn_c_try_run ()
  1534. {
  1535. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1536. if { { ac_try="$ac_link"
  1537. case "(($ac_try" in
  1538. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1539. *) ac_try_echo=$ac_try;;
  1540. esac
  1541. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1542. $as_echo "$ac_try_echo"; } >&5
  1543. (eval "$ac_link") 2>&5
  1544. ac_status=$?
  1545. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1546. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1547. { { case "(($ac_try" in
  1548. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1549. *) ac_try_echo=$ac_try;;
  1550. esac
  1551. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1552. $as_echo "$ac_try_echo"; } >&5
  1553. (eval "$ac_try") 2>&5
  1554. ac_status=$?
  1555. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1556. test $ac_status = 0; }; }; then :
  1557. ac_retval=0
  1558. else
  1559. $as_echo "$as_me: program exited with status $ac_status" >&5
  1560. $as_echo "$as_me: failed program was:" >&5
  1561. sed 's/^/| /' conftest.$ac_ext >&5
  1562. ac_retval=$ac_status
  1563. fi
  1564. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1565. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1566. as_fn_set_status $ac_retval
  1567. } # ac_fn_c_try_run
  1568. # ac_fn_c_check_func LINENO FUNC VAR
  1569. # ----------------------------------
  1570. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1571. ac_fn_c_check_func ()
  1572. {
  1573. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1575. $as_echo_n "checking for $2... " >&6; }
  1576. if eval \${$3+:} false; then :
  1577. $as_echo_n "(cached) " >&6
  1578. else
  1579. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1580. /* end confdefs.h. */
  1581. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1582. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1583. #define $2 innocuous_$2
  1584. /* System header to define __stub macros and hopefully few prototypes,
  1585. which can conflict with char $2 (); below.
  1586. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1587. <limits.h> exists even on freestanding compilers. */
  1588. #ifdef __STDC__
  1589. # include <limits.h>
  1590. #else
  1591. # include <assert.h>
  1592. #endif
  1593. #undef $2
  1594. /* Override any GCC internal prototype to avoid an error.
  1595. Use char because int might match the return type of a GCC
  1596. builtin and then its argument prototype would still apply. */
  1597. #ifdef __cplusplus
  1598. extern "C"
  1599. #endif
  1600. char $2 ();
  1601. /* The GNU C library defines this for functions which it implements
  1602. to always fail with ENOSYS. Some functions are actually named
  1603. something starting with __ and the normal name is an alias. */
  1604. #if defined __stub_$2 || defined __stub___$2
  1605. choke me
  1606. #endif
  1607. int
  1608. main ()
  1609. {
  1610. return $2 ();
  1611. ;
  1612. return 0;
  1613. }
  1614. _ACEOF
  1615. if ac_fn_c_try_link "$LINENO"; then :
  1616. eval "$3=yes"
  1617. else
  1618. eval "$3=no"
  1619. fi
  1620. rm -f core conftest.err conftest.$ac_objext \
  1621. conftest$ac_exeext conftest.$ac_ext
  1622. fi
  1623. eval ac_res=\$$3
  1624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1625. $as_echo "$ac_res" >&6; }
  1626. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1627. } # ac_fn_c_check_func
  1628. cat >config.log <<_ACEOF
  1629. This file contains any messages produced by compilers while
  1630. running configure, to aid debugging if configure makes a mistake.
  1631. It was created by luksmeta $as_me 9, which was
  1632. generated by GNU Autoconf 2.69. Invocation command line was
  1633. $ $0 $@
  1634. _ACEOF
  1635. exec 5>>config.log
  1636. {
  1637. cat <<_ASUNAME
  1638. ## --------- ##
  1639. ## Platform. ##
  1640. ## --------- ##
  1641. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1642. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1643. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1644. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1645. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1646. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1647. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1648. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1649. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1650. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1651. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1652. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1653. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1654. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1655. _ASUNAME
  1656. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1657. for as_dir in $PATH
  1658. do
  1659. IFS=$as_save_IFS
  1660. test -z "$as_dir" && as_dir=.
  1661. $as_echo "PATH: $as_dir"
  1662. done
  1663. IFS=$as_save_IFS
  1664. } >&5
  1665. cat >&5 <<_ACEOF
  1666. ## ----------- ##
  1667. ## Core tests. ##
  1668. ## ----------- ##
  1669. _ACEOF
  1670. # Keep a trace of the command line.
  1671. # Strip out --no-create and --no-recursion so they do not pile up.
  1672. # Strip out --silent because we don't want to record it for future runs.
  1673. # Also quote any args containing shell meta-characters.
  1674. # Make two passes to allow for proper duplicate-argument suppression.
  1675. ac_configure_args=
  1676. ac_configure_args0=
  1677. ac_configure_args1=
  1678. ac_must_keep_next=false
  1679. for ac_pass in 1 2
  1680. do
  1681. for ac_arg
  1682. do
  1683. case $ac_arg in
  1684. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1685. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1686. | -silent | --silent | --silen | --sile | --sil)
  1687. continue ;;
  1688. *\'*)
  1689. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1690. esac
  1691. case $ac_pass in
  1692. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1693. 2)
  1694. as_fn_append ac_configure_args1 " '$ac_arg'"
  1695. if test $ac_must_keep_next = true; then
  1696. ac_must_keep_next=false # Got value, back to normal.
  1697. else
  1698. case $ac_arg in
  1699. *=* | --config-cache | -C | -disable-* | --disable-* \
  1700. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1701. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1702. | -with-* | --with-* | -without-* | --without-* | --x)
  1703. case "$ac_configure_args0 " in
  1704. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1705. esac
  1706. ;;
  1707. -* ) ac_must_keep_next=true ;;
  1708. esac
  1709. fi
  1710. as_fn_append ac_configure_args " '$ac_arg'"
  1711. ;;
  1712. esac
  1713. done
  1714. done
  1715. { ac_configure_args0=; unset ac_configure_args0;}
  1716. { ac_configure_args1=; unset ac_configure_args1;}
  1717. # When interrupted or exit'd, cleanup temporary files, and complete
  1718. # config.log. We remove comments because anyway the quotes in there
  1719. # would cause problems or look ugly.
  1720. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1721. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1722. trap 'exit_status=$?
  1723. # Save into config.log some information that might help in debugging.
  1724. {
  1725. echo
  1726. $as_echo "## ---------------- ##
  1727. ## Cache variables. ##
  1728. ## ---------------- ##"
  1729. echo
  1730. # The following way of writing the cache mishandles newlines in values,
  1731. (
  1732. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1733. eval ac_val=\$$ac_var
  1734. case $ac_val in #(
  1735. *${as_nl}*)
  1736. case $ac_var in #(
  1737. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1738. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1739. esac
  1740. case $ac_var in #(
  1741. _ | IFS | as_nl) ;; #(
  1742. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1743. *) { eval $ac_var=; unset $ac_var;} ;;
  1744. esac ;;
  1745. esac
  1746. done
  1747. (set) 2>&1 |
  1748. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1749. *${as_nl}ac_space=\ *)
  1750. sed -n \
  1751. "s/'\''/'\''\\\\'\'''\''/g;
  1752. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1753. ;; #(
  1754. *)
  1755. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1756. ;;
  1757. esac |
  1758. sort
  1759. )
  1760. echo
  1761. $as_echo "## ----------------- ##
  1762. ## Output variables. ##
  1763. ## ----------------- ##"
  1764. echo
  1765. for ac_var in $ac_subst_vars
  1766. do
  1767. eval ac_val=\$$ac_var
  1768. case $ac_val in
  1769. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1770. esac
  1771. $as_echo "$ac_var='\''$ac_val'\''"
  1772. done | sort
  1773. echo
  1774. if test -n "$ac_subst_files"; then
  1775. $as_echo "## ------------------- ##
  1776. ## File substitutions. ##
  1777. ## ------------------- ##"
  1778. echo
  1779. for ac_var in $ac_subst_files
  1780. do
  1781. eval ac_val=\$$ac_var
  1782. case $ac_val in
  1783. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1784. esac
  1785. $as_echo "$ac_var='\''$ac_val'\''"
  1786. done | sort
  1787. echo
  1788. fi
  1789. if test -s confdefs.h; then
  1790. $as_echo "## ----------- ##
  1791. ## confdefs.h. ##
  1792. ## ----------- ##"
  1793. echo
  1794. cat confdefs.h
  1795. echo
  1796. fi
  1797. test "$ac_signal" != 0 &&
  1798. $as_echo "$as_me: caught signal $ac_signal"
  1799. $as_echo "$as_me: exit $exit_status"
  1800. } >&5
  1801. rm -f core *.core core.conftest.* &&
  1802. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1803. exit $exit_status
  1804. ' 0
  1805. for ac_signal in 1 2 13 15; do
  1806. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1807. done
  1808. ac_signal=0
  1809. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1810. rm -f -r conftest* confdefs.h
  1811. $as_echo "/* confdefs.h */" > confdefs.h
  1812. # Predefined preprocessor variables.
  1813. cat >>confdefs.h <<_ACEOF
  1814. #define PACKAGE_NAME "$PACKAGE_NAME"
  1815. _ACEOF
  1816. cat >>confdefs.h <<_ACEOF
  1817. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1818. _ACEOF
  1819. cat >>confdefs.h <<_ACEOF
  1820. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1821. _ACEOF
  1822. cat >>confdefs.h <<_ACEOF
  1823. #define PACKAGE_STRING "$PACKAGE_STRING"
  1824. _ACEOF
  1825. cat >>confdefs.h <<_ACEOF
  1826. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1827. _ACEOF
  1828. cat >>confdefs.h <<_ACEOF
  1829. #define PACKAGE_URL "$PACKAGE_URL"
  1830. _ACEOF
  1831. # Let the site file select an alternate cache file if it wants to.
  1832. # Prefer an explicitly selected file to automatically selected ones.
  1833. ac_site_file1=NONE
  1834. ac_site_file2=NONE
  1835. if test -n "$CONFIG_SITE"; then
  1836. # We do not want a PATH search for config.site.
  1837. case $CONFIG_SITE in #((
  1838. -*) ac_site_file1=./$CONFIG_SITE;;
  1839. */*) ac_site_file1=$CONFIG_SITE;;
  1840. *) ac_site_file1=./$CONFIG_SITE;;
  1841. esac
  1842. elif test "x$prefix" != xNONE; then
  1843. ac_site_file1=$prefix/share/config.site
  1844. ac_site_file2=$prefix/etc/config.site
  1845. else
  1846. ac_site_file1=$ac_default_prefix/share/config.site
  1847. ac_site_file2=$ac_default_prefix/etc/config.site
  1848. fi
  1849. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1850. do
  1851. test "x$ac_site_file" = xNONE && continue
  1852. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1853. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1854. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1855. sed 's/^/| /' "$ac_site_file" >&5
  1856. . "$ac_site_file" \
  1857. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1858. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1859. as_fn_error $? "failed to load site script $ac_site_file
  1860. See \`config.log' for more details" "$LINENO" 5; }
  1861. fi
  1862. done
  1863. if test -r "$cache_file"; then
  1864. # Some versions of bash will fail to source /dev/null (special files
  1865. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1866. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1867. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1868. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1869. case $cache_file in
  1870. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1871. *) . "./$cache_file";;
  1872. esac
  1873. fi
  1874. else
  1875. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1876. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1877. >$cache_file
  1878. fi
  1879. # Check that the precious variables saved in the cache have kept the same
  1880. # value.
  1881. ac_cache_corrupted=false
  1882. for ac_var in $ac_precious_vars; do
  1883. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1884. eval ac_new_set=\$ac_env_${ac_var}_set
  1885. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1886. eval ac_new_val=\$ac_env_${ac_var}_value
  1887. case $ac_old_set,$ac_new_set in
  1888. set,)
  1889. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1890. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1891. ac_cache_corrupted=: ;;
  1892. ,set)
  1893. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1894. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1895. ac_cache_corrupted=: ;;
  1896. ,);;
  1897. *)
  1898. if test "x$ac_old_val" != "x$ac_new_val"; then
  1899. # differences in whitespace do not lead to failure.
  1900. ac_old_val_w=`echo x $ac_old_val`
  1901. ac_new_val_w=`echo x $ac_new_val`
  1902. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1903. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1904. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1905. ac_cache_corrupted=:
  1906. else
  1907. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1908. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1909. eval $ac_var=\$ac_old_val
  1910. fi
  1911. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1912. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1913. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1914. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1915. fi;;
  1916. esac
  1917. # Pass precious variables to config.status.
  1918. if test "$ac_new_set" = set; then
  1919. case $ac_new_val in
  1920. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1921. *) ac_arg=$ac_var=$ac_new_val ;;
  1922. esac
  1923. case " $ac_configure_args " in
  1924. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1925. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1926. esac
  1927. fi
  1928. done
  1929. if $ac_cache_corrupted; then
  1930. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1931. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1932. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  1933. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1934. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  1935. fi
  1936. ## -------------------- ##
  1937. ## Main body of script. ##
  1938. ## -------------------- ##
  1939. ac_ext=c
  1940. ac_cpp='$CPP $CPPFLAGS'
  1941. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1942. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1943. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1944. ac_aux_dir=
  1945. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1946. if test -f "$ac_dir/install-sh"; then
  1947. ac_aux_dir=$ac_dir
  1948. ac_install_sh="$ac_aux_dir/install-sh -c"
  1949. break
  1950. elif test -f "$ac_dir/install.sh"; then
  1951. ac_aux_dir=$ac_dir
  1952. ac_install_sh="$ac_aux_dir/install.sh -c"
  1953. break
  1954. elif test -f "$ac_dir/shtool"; then
  1955. ac_aux_dir=$ac_dir
  1956. ac_install_sh="$ac_aux_dir/shtool install -c"
  1957. break
  1958. fi
  1959. done
  1960. if test -z "$ac_aux_dir"; then
  1961. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  1962. fi
  1963. # These three variables are undocumented and unsupported,
  1964. # and are intended to be withdrawn in a future Autoconf release.
  1965. # They can cause serious problems if a builder's source tree is in a directory
  1966. # whose full name contains unusual characters.
  1967. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1968. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1969. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1970. # Make sure we can run config.sub.
  1971. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1972. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  1973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  1974. $as_echo_n "checking build system type... " >&6; }
  1975. if ${ac_cv_build+:} false; then :
  1976. $as_echo_n "(cached) " >&6
  1977. else
  1978. ac_build_alias=$build_alias
  1979. test "x$ac_build_alias" = x &&
  1980. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1981. test "x$ac_build_alias" = x &&
  1982. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  1983. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1984. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  1985. fi
  1986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  1987. $as_echo "$ac_cv_build" >&6; }
  1988. case $ac_cv_build in
  1989. *-*-*) ;;
  1990. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  1991. esac
  1992. build=$ac_cv_build
  1993. ac_save_IFS=$IFS; IFS='-'
  1994. set x $ac_cv_build
  1995. shift
  1996. build_cpu=$1
  1997. build_vendor=$2
  1998. shift; shift
  1999. # Remember, the first character of IFS is used to create $*,
  2000. # except with old shells:
  2001. build_os=$*
  2002. IFS=$ac_save_IFS
  2003. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2005. $as_echo_n "checking host system type... " >&6; }
  2006. if ${ac_cv_host+:} false; then :
  2007. $as_echo_n "(cached) " >&6
  2008. else
  2009. if test "x$host_alias" = x; then
  2010. ac_cv_host=$ac_cv_build
  2011. else
  2012. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2013. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2014. fi
  2015. fi
  2016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2017. $as_echo "$ac_cv_host" >&6; }
  2018. case $ac_cv_host in
  2019. *-*-*) ;;
  2020. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2021. esac
  2022. host=$ac_cv_host
  2023. ac_save_IFS=$IFS; IFS='-'
  2024. set x $ac_cv_host
  2025. shift
  2026. host_cpu=$1
  2027. host_vendor=$2
  2028. shift; shift
  2029. # Remember, the first character of IFS is used to create $*,
  2030. # except with old shells:
  2031. host_os=$*
  2032. IFS=$ac_save_IFS
  2033. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2035. $as_echo_n "checking target system type... " >&6; }
  2036. if ${ac_cv_target+:} false; then :
  2037. $as_echo_n "(cached) " >&6
  2038. else
  2039. if test "x$target_alias" = x; then
  2040. ac_cv_target=$ac_cv_host
  2041. else
  2042. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2043. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2044. fi
  2045. fi
  2046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2047. $as_echo "$ac_cv_target" >&6; }
  2048. case $ac_cv_target in
  2049. *-*-*) ;;
  2050. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2051. esac
  2052. target=$ac_cv_target
  2053. ac_save_IFS=$IFS; IFS='-'
  2054. set x $ac_cv_target
  2055. shift
  2056. target_cpu=$1
  2057. target_vendor=$2
  2058. shift; shift
  2059. # Remember, the first character of IFS is used to create $*,
  2060. # except with old shells:
  2061. target_os=$*
  2062. IFS=$ac_save_IFS
  2063. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2064. # The aliases save the names the user supplied, while $host etc.
  2065. # will get canonicalized.
  2066. test -n "$target_alias" &&
  2067. test "$program_prefix$program_suffix$program_transform_name" = \
  2068. NONENONEs,x,x, &&
  2069. program_prefix=${target_alias}-
  2070. # Expand $ac_aux_dir to an absolute path.
  2071. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2072. ac_ext=c
  2073. ac_cpp='$CPP $CPPFLAGS'
  2074. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2075. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2076. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2077. if test -n "$ac_tool_prefix"; then
  2078. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2079. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2081. $as_echo_n "checking for $ac_word... " >&6; }
  2082. if ${ac_cv_prog_CC+:} false; then :
  2083. $as_echo_n "(cached) " >&6
  2084. else
  2085. if test -n "$CC"; then
  2086. ac_cv_prog_CC="$CC" # Let the user override the test.
  2087. else
  2088. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2089. for as_dir in $PATH
  2090. do
  2091. IFS=$as_save_IFS
  2092. test -z "$as_dir" && as_dir=.
  2093. for ac_exec_ext in '' $ac_executable_extensions; do
  2094. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2095. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2096. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2097. break 2
  2098. fi
  2099. done
  2100. done
  2101. IFS=$as_save_IFS
  2102. fi
  2103. fi
  2104. CC=$ac_cv_prog_CC
  2105. if test -n "$CC"; then
  2106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2107. $as_echo "$CC" >&6; }
  2108. else
  2109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2110. $as_echo "no" >&6; }
  2111. fi
  2112. fi
  2113. if test -z "$ac_cv_prog_CC"; then
  2114. ac_ct_CC=$CC
  2115. # Extract the first word of "gcc", so it can be a program name with args.
  2116. set dummy gcc; ac_word=$2
  2117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2118. $as_echo_n "checking for $ac_word... " >&6; }
  2119. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2120. $as_echo_n "(cached) " >&6
  2121. else
  2122. if test -n "$ac_ct_CC"; then
  2123. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2124. else
  2125. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2126. for as_dir in $PATH
  2127. do
  2128. IFS=$as_save_IFS
  2129. test -z "$as_dir" && as_dir=.
  2130. for ac_exec_ext in '' $ac_executable_extensions; do
  2131. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2132. ac_cv_prog_ac_ct_CC="gcc"
  2133. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2134. break 2
  2135. fi
  2136. done
  2137. done
  2138. IFS=$as_save_IFS
  2139. fi
  2140. fi
  2141. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2142. if test -n "$ac_ct_CC"; then
  2143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2144. $as_echo "$ac_ct_CC" >&6; }
  2145. else
  2146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2147. $as_echo "no" >&6; }
  2148. fi
  2149. if test "x$ac_ct_CC" = x; then
  2150. CC=""
  2151. else
  2152. case $cross_compiling:$ac_tool_warned in
  2153. yes:)
  2154. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2155. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2156. ac_tool_warned=yes ;;
  2157. esac
  2158. CC=$ac_ct_CC
  2159. fi
  2160. else
  2161. CC="$ac_cv_prog_CC"
  2162. fi
  2163. if test -z "$CC"; then
  2164. if test -n "$ac_tool_prefix"; then
  2165. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2166. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2168. $as_echo_n "checking for $ac_word... " >&6; }
  2169. if ${ac_cv_prog_CC+:} false; then :
  2170. $as_echo_n "(cached) " >&6
  2171. else
  2172. if test -n "$CC"; then
  2173. ac_cv_prog_CC="$CC" # Let the user override the test.
  2174. else
  2175. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2176. for as_dir in $PATH
  2177. do
  2178. IFS=$as_save_IFS
  2179. test -z "$as_dir" && as_dir=.
  2180. for ac_exec_ext in '' $ac_executable_extensions; do
  2181. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2182. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2183. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2184. break 2
  2185. fi
  2186. done
  2187. done
  2188. IFS=$as_save_IFS
  2189. fi
  2190. fi
  2191. CC=$ac_cv_prog_CC
  2192. if test -n "$CC"; then
  2193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2194. $as_echo "$CC" >&6; }
  2195. else
  2196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2197. $as_echo "no" >&6; }
  2198. fi
  2199. fi
  2200. fi
  2201. if test -z "$CC"; then
  2202. # Extract the first word of "cc", so it can be a program name with args.
  2203. set dummy cc; ac_word=$2
  2204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2205. $as_echo_n "checking for $ac_word... " >&6; }
  2206. if ${ac_cv_prog_CC+:} false; then :
  2207. $as_echo_n "(cached) " >&6
  2208. else
  2209. if test -n "$CC"; then
  2210. ac_cv_prog_CC="$CC" # Let the user override the test.
  2211. else
  2212. ac_prog_rejected=no
  2213. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2214. for as_dir in $PATH
  2215. do
  2216. IFS=$as_save_IFS
  2217. test -z "$as_dir" && as_dir=.
  2218. for ac_exec_ext in '' $ac_executable_extensions; do
  2219. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2220. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2221. ac_prog_rejected=yes
  2222. continue
  2223. fi
  2224. ac_cv_prog_CC="cc"
  2225. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2226. break 2
  2227. fi
  2228. done
  2229. done
  2230. IFS=$as_save_IFS
  2231. if test $ac_prog_rejected = yes; then
  2232. # We found a bogon in the path, so make sure we never use it.
  2233. set dummy $ac_cv_prog_CC
  2234. shift
  2235. if test $# != 0; then
  2236. # We chose a different compiler from the bogus one.
  2237. # However, it has the same basename, so the bogon will be chosen
  2238. # first if we set CC to just the basename; use the full file name.
  2239. shift
  2240. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2241. fi
  2242. fi
  2243. fi
  2244. fi
  2245. CC=$ac_cv_prog_CC
  2246. if test -n "$CC"; then
  2247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2248. $as_echo "$CC" >&6; }
  2249. else
  2250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2251. $as_echo "no" >&6; }
  2252. fi
  2253. fi
  2254. if test -z "$CC"; then
  2255. if test -n "$ac_tool_prefix"; then
  2256. for ac_prog in cl.exe
  2257. do
  2258. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2259. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2261. $as_echo_n "checking for $ac_word... " >&6; }
  2262. if ${ac_cv_prog_CC+:} false; then :
  2263. $as_echo_n "(cached) " >&6
  2264. else
  2265. if test -n "$CC"; then
  2266. ac_cv_prog_CC="$CC" # Let the user override the test.
  2267. else
  2268. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2269. for as_dir in $PATH
  2270. do
  2271. IFS=$as_save_IFS
  2272. test -z "$as_dir" && as_dir=.
  2273. for ac_exec_ext in '' $ac_executable_extensions; do
  2274. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2275. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2276. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2277. break 2
  2278. fi
  2279. done
  2280. done
  2281. IFS=$as_save_IFS
  2282. fi
  2283. fi
  2284. CC=$ac_cv_prog_CC
  2285. if test -n "$CC"; then
  2286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2287. $as_echo "$CC" >&6; }
  2288. else
  2289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2290. $as_echo "no" >&6; }
  2291. fi
  2292. test -n "$CC" && break
  2293. done
  2294. fi
  2295. if test -z "$CC"; then
  2296. ac_ct_CC=$CC
  2297. for ac_prog in cl.exe
  2298. do
  2299. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2300. set dummy $ac_prog; ac_word=$2
  2301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2302. $as_echo_n "checking for $ac_word... " >&6; }
  2303. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2304. $as_echo_n "(cached) " >&6
  2305. else
  2306. if test -n "$ac_ct_CC"; then
  2307. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2308. else
  2309. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2310. for as_dir in $PATH
  2311. do
  2312. IFS=$as_save_IFS
  2313. test -z "$as_dir" && as_dir=.
  2314. for ac_exec_ext in '' $ac_executable_extensions; do
  2315. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2316. ac_cv_prog_ac_ct_CC="$ac_prog"
  2317. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2318. break 2
  2319. fi
  2320. done
  2321. done
  2322. IFS=$as_save_IFS
  2323. fi
  2324. fi
  2325. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2326. if test -n "$ac_ct_CC"; then
  2327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2328. $as_echo "$ac_ct_CC" >&6; }
  2329. else
  2330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2331. $as_echo "no" >&6; }
  2332. fi
  2333. test -n "$ac_ct_CC" && break
  2334. done
  2335. if test "x$ac_ct_CC" = x; then
  2336. CC=""
  2337. else
  2338. case $cross_compiling:$ac_tool_warned in
  2339. yes:)
  2340. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2341. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2342. ac_tool_warned=yes ;;
  2343. esac
  2344. CC=$ac_ct_CC
  2345. fi
  2346. fi
  2347. fi
  2348. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2349. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2350. as_fn_error $? "no acceptable C compiler found in \$PATH
  2351. See \`config.log' for more details" "$LINENO" 5; }
  2352. # Provide some information about the compiler.
  2353. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2354. set X $ac_compile
  2355. ac_compiler=$2
  2356. for ac_option in --version -v -V -qversion; do
  2357. { { ac_try="$ac_compiler $ac_option >&5"
  2358. case "(($ac_try" in
  2359. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2360. *) ac_try_echo=$ac_try;;
  2361. esac
  2362. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2363. $as_echo "$ac_try_echo"; } >&5
  2364. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2365. ac_status=$?
  2366. if test -s conftest.err; then
  2367. sed '10a\
  2368. ... rest of stderr output deleted ...
  2369. 10q' conftest.err >conftest.er1
  2370. cat conftest.er1 >&5
  2371. fi
  2372. rm -f conftest.er1 conftest.err
  2373. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2374. test $ac_status = 0; }
  2375. done
  2376. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2377. /* end confdefs.h. */
  2378. int
  2379. main ()
  2380. {
  2381. ;
  2382. return 0;
  2383. }
  2384. _ACEOF
  2385. ac_clean_files_save=$ac_clean_files
  2386. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2387. # Try to create an executable without -o first, disregard a.out.
  2388. # It will help us diagnose broken compilers, and finding out an intuition
  2389. # of exeext.
  2390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2391. $as_echo_n "checking whether the C compiler works... " >&6; }
  2392. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2393. # The possible output files:
  2394. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2395. ac_rmfiles=
  2396. for ac_file in $ac_files
  2397. do
  2398. case $ac_file in
  2399. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2400. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2401. esac
  2402. done
  2403. rm -f $ac_rmfiles
  2404. if { { ac_try="$ac_link_default"
  2405. case "(($ac_try" in
  2406. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2407. *) ac_try_echo=$ac_try;;
  2408. esac
  2409. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2410. $as_echo "$ac_try_echo"; } >&5
  2411. (eval "$ac_link_default") 2>&5
  2412. ac_status=$?
  2413. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2414. test $ac_status = 0; }; then :
  2415. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2416. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2417. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2418. # so that the user can short-circuit this test for compilers unknown to
  2419. # Autoconf.
  2420. for ac_file in $ac_files ''
  2421. do
  2422. test -f "$ac_file" || continue
  2423. case $ac_file in
  2424. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2425. ;;
  2426. [ab].out )
  2427. # We found the default executable, but exeext='' is most
  2428. # certainly right.
  2429. break;;
  2430. *.* )
  2431. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2432. then :; else
  2433. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2434. fi
  2435. # We set ac_cv_exeext here because the later test for it is not
  2436. # safe: cross compilers may not add the suffix if given an `-o'
  2437. # argument, so we may need to know it at that point already.
  2438. # Even if this section looks crufty: it has the advantage of
  2439. # actually working.
  2440. break;;
  2441. * )
  2442. break;;
  2443. esac
  2444. done
  2445. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2446. else
  2447. ac_file=''
  2448. fi
  2449. if test -z "$ac_file"; then :
  2450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2451. $as_echo "no" >&6; }
  2452. $as_echo "$as_me: failed program was:" >&5
  2453. sed 's/^/| /' conftest.$ac_ext >&5
  2454. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2455. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2456. as_fn_error 77 "C compiler cannot create executables
  2457. See \`config.log' for more details" "$LINENO" 5; }
  2458. else
  2459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2460. $as_echo "yes" >&6; }
  2461. fi
  2462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2463. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2465. $as_echo "$ac_file" >&6; }
  2466. ac_exeext=$ac_cv_exeext
  2467. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2468. ac_clean_files=$ac_clean_files_save
  2469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2470. $as_echo_n "checking for suffix of executables... " >&6; }
  2471. if { { ac_try="$ac_link"
  2472. case "(($ac_try" in
  2473. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2474. *) ac_try_echo=$ac_try;;
  2475. esac
  2476. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2477. $as_echo "$ac_try_echo"; } >&5
  2478. (eval "$ac_link") 2>&5
  2479. ac_status=$?
  2480. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2481. test $ac_status = 0; }; then :
  2482. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2483. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2484. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2485. # `rm'.
  2486. for ac_file in conftest.exe conftest conftest.*; do
  2487. test -f "$ac_file" || continue
  2488. case $ac_file in
  2489. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2490. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2491. break;;
  2492. * ) break;;
  2493. esac
  2494. done
  2495. else
  2496. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2497. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2498. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2499. See \`config.log' for more details" "$LINENO" 5; }
  2500. fi
  2501. rm -f conftest conftest$ac_cv_exeext
  2502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2503. $as_echo "$ac_cv_exeext" >&6; }
  2504. rm -f conftest.$ac_ext
  2505. EXEEXT=$ac_cv_exeext
  2506. ac_exeext=$EXEEXT
  2507. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2508. /* end confdefs.h. */
  2509. #include <stdio.h>
  2510. int
  2511. main ()
  2512. {
  2513. FILE *f = fopen ("conftest.out", "w");
  2514. return ferror (f) || fclose (f) != 0;
  2515. ;
  2516. return 0;
  2517. }
  2518. _ACEOF
  2519. ac_clean_files="$ac_clean_files conftest.out"
  2520. # Check that the compiler produces executables we can run. If not, either
  2521. # the compiler is broken, or we cross compile.
  2522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2523. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2524. if test "$cross_compiling" != yes; then
  2525. { { ac_try="$ac_link"
  2526. case "(($ac_try" in
  2527. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2528. *) ac_try_echo=$ac_try;;
  2529. esac
  2530. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2531. $as_echo "$ac_try_echo"; } >&5
  2532. (eval "$ac_link") 2>&5
  2533. ac_status=$?
  2534. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2535. test $ac_status = 0; }
  2536. if { ac_try='./conftest$ac_cv_exeext'
  2537. { { case "(($ac_try" in
  2538. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2539. *) ac_try_echo=$ac_try;;
  2540. esac
  2541. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2542. $as_echo "$ac_try_echo"; } >&5
  2543. (eval "$ac_try") 2>&5
  2544. ac_status=$?
  2545. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2546. test $ac_status = 0; }; }; then
  2547. cross_compiling=no
  2548. else
  2549. if test "$cross_compiling" = maybe; then
  2550. cross_compiling=yes
  2551. else
  2552. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2553. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2554. as_fn_error $? "cannot run C compiled programs.
  2555. If you meant to cross compile, use \`--host'.
  2556. See \`config.log' for more details" "$LINENO" 5; }
  2557. fi
  2558. fi
  2559. fi
  2560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2561. $as_echo "$cross_compiling" >&6; }
  2562. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2563. ac_clean_files=$ac_clean_files_save
  2564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2565. $as_echo_n "checking for suffix of object files... " >&6; }
  2566. if ${ac_cv_objext+:} false; then :
  2567. $as_echo_n "(cached) " >&6
  2568. else
  2569. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2570. /* end confdefs.h. */
  2571. int
  2572. main ()
  2573. {
  2574. ;
  2575. return 0;
  2576. }
  2577. _ACEOF
  2578. rm -f conftest.o conftest.obj
  2579. if { { ac_try="$ac_compile"
  2580. case "(($ac_try" in
  2581. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2582. *) ac_try_echo=$ac_try;;
  2583. esac
  2584. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2585. $as_echo "$ac_try_echo"; } >&5
  2586. (eval "$ac_compile") 2>&5
  2587. ac_status=$?
  2588. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2589. test $ac_status = 0; }; then :
  2590. for ac_file in conftest.o conftest.obj conftest.*; do
  2591. test -f "$ac_file" || continue;
  2592. case $ac_file in
  2593. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2594. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2595. break;;
  2596. esac
  2597. done
  2598. else
  2599. $as_echo "$as_me: failed program was:" >&5
  2600. sed 's/^/| /' conftest.$ac_ext >&5
  2601. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2602. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2603. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2604. See \`config.log' for more details" "$LINENO" 5; }
  2605. fi
  2606. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2607. fi
  2608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2609. $as_echo "$ac_cv_objext" >&6; }
  2610. OBJEXT=$ac_cv_objext
  2611. ac_objext=$OBJEXT
  2612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2613. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2614. if ${ac_cv_c_compiler_gnu+:} false; then :
  2615. $as_echo_n "(cached) " >&6
  2616. else
  2617. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2618. /* end confdefs.h. */
  2619. int
  2620. main ()
  2621. {
  2622. #ifndef __GNUC__
  2623. choke me
  2624. #endif
  2625. ;
  2626. return 0;
  2627. }
  2628. _ACEOF
  2629. if ac_fn_c_try_compile "$LINENO"; then :
  2630. ac_compiler_gnu=yes
  2631. else
  2632. ac_compiler_gnu=no
  2633. fi
  2634. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2635. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2636. fi
  2637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2638. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2639. if test $ac_compiler_gnu = yes; then
  2640. GCC=yes
  2641. else
  2642. GCC=
  2643. fi
  2644. ac_test_CFLAGS=${CFLAGS+set}
  2645. ac_save_CFLAGS=$CFLAGS
  2646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2647. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2648. if ${ac_cv_prog_cc_g+:} false; then :
  2649. $as_echo_n "(cached) " >&6
  2650. else
  2651. ac_save_c_werror_flag=$ac_c_werror_flag
  2652. ac_c_werror_flag=yes
  2653. ac_cv_prog_cc_g=no
  2654. CFLAGS="-g"
  2655. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2656. /* end confdefs.h. */
  2657. int
  2658. main ()
  2659. {
  2660. ;
  2661. return 0;
  2662. }
  2663. _ACEOF
  2664. if ac_fn_c_try_compile "$LINENO"; then :
  2665. ac_cv_prog_cc_g=yes
  2666. else
  2667. CFLAGS=""
  2668. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2669. /* end confdefs.h. */
  2670. int
  2671. main ()
  2672. {
  2673. ;
  2674. return 0;
  2675. }
  2676. _ACEOF
  2677. if ac_fn_c_try_compile "$LINENO"; then :
  2678. else
  2679. ac_c_werror_flag=$ac_save_c_werror_flag
  2680. CFLAGS="-g"
  2681. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2682. /* end confdefs.h. */
  2683. int
  2684. main ()
  2685. {
  2686. ;
  2687. return 0;
  2688. }
  2689. _ACEOF
  2690. if ac_fn_c_try_compile "$LINENO"; then :
  2691. ac_cv_prog_cc_g=yes
  2692. fi
  2693. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2694. fi
  2695. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2696. fi
  2697. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2698. ac_c_werror_flag=$ac_save_c_werror_flag
  2699. fi
  2700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2701. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2702. if test "$ac_test_CFLAGS" = set; then
  2703. CFLAGS=$ac_save_CFLAGS
  2704. elif test $ac_cv_prog_cc_g = yes; then
  2705. if test "$GCC" = yes; then
  2706. CFLAGS="-g -O2"
  2707. else
  2708. CFLAGS="-g"
  2709. fi
  2710. else
  2711. if test "$GCC" = yes; then
  2712. CFLAGS="-O2"
  2713. else
  2714. CFLAGS=
  2715. fi
  2716. fi
  2717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2718. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2719. if ${ac_cv_prog_cc_c89+:} false; then :
  2720. $as_echo_n "(cached) " >&6
  2721. else
  2722. ac_cv_prog_cc_c89=no
  2723. ac_save_CC=$CC
  2724. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2725. /* end confdefs.h. */
  2726. #include <stdarg.h>
  2727. #include <stdio.h>
  2728. struct stat;
  2729. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2730. struct buf { int x; };
  2731. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2732. static char *e (p, i)
  2733. char **p;
  2734. int i;
  2735. {
  2736. return p[i];
  2737. }
  2738. static char *f (char * (*g) (char **, int), char **p, ...)
  2739. {
  2740. char *s;
  2741. va_list v;
  2742. va_start (v,p);
  2743. s = g (p, va_arg (v,int));
  2744. va_end (v);
  2745. return s;
  2746. }
  2747. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2748. function prototypes and stuff, but not '\xHH' hex character constants.
  2749. These don't provoke an error unfortunately, instead are silently treated
  2750. as 'x'. The following induces an error, until -std is added to get
  2751. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2752. array size at least. It's necessary to write '\x00'==0 to get something
  2753. that's true only with -std. */
  2754. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2755. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2756. inside strings and character constants. */
  2757. #define FOO(x) 'x'
  2758. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2759. int test (int i, double x);
  2760. struct s1 {int (*f) (int a);};
  2761. struct s2 {int (*f) (double a);};
  2762. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2763. int argc;
  2764. char **argv;
  2765. int
  2766. main ()
  2767. {
  2768. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2769. ;
  2770. return 0;
  2771. }
  2772. _ACEOF
  2773. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2774. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2775. do
  2776. CC="$ac_save_CC $ac_arg"
  2777. if ac_fn_c_try_compile "$LINENO"; then :
  2778. ac_cv_prog_cc_c89=$ac_arg
  2779. fi
  2780. rm -f core conftest.err conftest.$ac_objext
  2781. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2782. done
  2783. rm -f conftest.$ac_ext
  2784. CC=$ac_save_CC
  2785. fi
  2786. # AC_CACHE_VAL
  2787. case "x$ac_cv_prog_cc_c89" in
  2788. x)
  2789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  2790. $as_echo "none needed" >&6; } ;;
  2791. xno)
  2792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  2793. $as_echo "unsupported" >&6; } ;;
  2794. *)
  2795. CC="$CC $ac_cv_prog_cc_c89"
  2796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  2797. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  2798. esac
  2799. if test "x$ac_cv_prog_cc_c89" != xno; then :
  2800. fi
  2801. ac_ext=c
  2802. ac_cpp='$CPP $CPPFLAGS'
  2803. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2804. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2805. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2806. ac_ext=c
  2807. ac_cpp='$CPP $CPPFLAGS'
  2808. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2809. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2810. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  2812. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  2813. if ${am_cv_prog_cc_c_o+:} false; then :
  2814. $as_echo_n "(cached) " >&6
  2815. else
  2816. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2817. /* end confdefs.h. */
  2818. int
  2819. main ()
  2820. {
  2821. ;
  2822. return 0;
  2823. }
  2824. _ACEOF
  2825. # Make sure it works both with $CC and with simple cc.
  2826. # Following AC_PROG_CC_C_O, we do the test twice because some
  2827. # compilers refuse to overwrite an existing .o file with -o,
  2828. # though they will create one.
  2829. am_cv_prog_cc_c_o=yes
  2830. for am_i in 1 2; do
  2831. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  2832. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  2833. ac_status=$?
  2834. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2835. (exit $ac_status); } \
  2836. && test -f conftest2.$ac_objext; then
  2837. : OK
  2838. else
  2839. am_cv_prog_cc_c_o=no
  2840. break
  2841. fi
  2842. done
  2843. rm -f core conftest*
  2844. unset am_i
  2845. fi
  2846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  2847. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  2848. if test "$am_cv_prog_cc_c_o" != yes; then
  2849. # Losing compiler, so override with the script.
  2850. # FIXME: It is wrong to rewrite CC.
  2851. # But if we don't then we get into trouble of one sort or another.
  2852. # A longer-term fix would be to have automake use am__CC in this case,
  2853. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  2854. CC="$am_aux_dir/compile $CC"
  2855. fi
  2856. ac_ext=c
  2857. ac_cpp='$CPP $CPPFLAGS'
  2858. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2859. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2860. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  2862. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  2863. if ${ac_cv_prog_cc_c99+:} false; then :
  2864. $as_echo_n "(cached) " >&6
  2865. else
  2866. ac_cv_prog_cc_c99=no
  2867. ac_save_CC=$CC
  2868. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2869. /* end confdefs.h. */
  2870. #include <stdarg.h>
  2871. #include <stdbool.h>
  2872. #include <stdlib.h>
  2873. #include <wchar.h>
  2874. #include <stdio.h>
  2875. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  2876. #define debug(...) fprintf (stderr, __VA_ARGS__)
  2877. #define showlist(...) puts (#__VA_ARGS__)
  2878. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  2879. static void
  2880. test_varargs_macros (void)
  2881. {
  2882. int x = 1234;
  2883. int y = 5678;
  2884. debug ("Flag");
  2885. debug ("X = %d\n", x);
  2886. showlist (The first, second, and third items.);
  2887. report (x>y, "x is %d but y is %d", x, y);
  2888. }
  2889. // Check long long types.
  2890. #define BIG64 18446744073709551615ull
  2891. #define BIG32 4294967295ul
  2892. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  2893. #if !BIG_OK
  2894. your preprocessor is broken;
  2895. #endif
  2896. #if BIG_OK
  2897. #else
  2898. your preprocessor is broken;
  2899. #endif
  2900. static long long int bignum = -9223372036854775807LL;
  2901. static unsigned long long int ubignum = BIG64;
  2902. struct incomplete_array
  2903. {
  2904. int datasize;
  2905. double data[];
  2906. };
  2907. struct named_init {
  2908. int number;
  2909. const wchar_t *name;
  2910. double average;
  2911. };
  2912. typedef const char *ccp;
  2913. static inline int
  2914. test_restrict (ccp restrict text)
  2915. {
  2916. // See if C++-style comments work.
  2917. // Iterate through items via the restricted pointer.
  2918. // Also check for declarations in for loops.
  2919. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  2920. continue;
  2921. return 0;
  2922. }
  2923. // Check varargs and va_copy.
  2924. static void
  2925. test_varargs (const char *format, ...)
  2926. {
  2927. va_list args;
  2928. va_start (args, format);
  2929. va_list args_copy;
  2930. va_copy (args_copy, args);
  2931. const char *str;
  2932. int number;
  2933. float fnumber;
  2934. while (*format)
  2935. {
  2936. switch (*format++)
  2937. {
  2938. case 's': // string
  2939. str = va_arg (args_copy, const char *);
  2940. break;
  2941. case 'd': // int
  2942. number = va_arg (args_copy, int);
  2943. break;
  2944. case 'f': // float
  2945. fnumber = va_arg (args_copy, double);
  2946. break;
  2947. default:
  2948. break;
  2949. }
  2950. }
  2951. va_end (args_copy);
  2952. va_end (args);
  2953. }
  2954. int
  2955. main ()
  2956. {
  2957. // Check bool.
  2958. _Bool success = false;
  2959. // Check restrict.
  2960. if (test_restrict ("String literal") == 0)
  2961. success = true;
  2962. char *restrict newvar = "Another string";
  2963. // Check varargs.
  2964. test_varargs ("s, d' f .", "string", 65, 34.234);
  2965. test_varargs_macros ();
  2966. // Check flexible array members.
  2967. struct incomplete_array *ia =
  2968. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  2969. ia->datasize = 10;
  2970. for (int i = 0; i < ia->datasize; ++i)
  2971. ia->data[i] = i * 1.234;
  2972. // Check named initializers.
  2973. struct named_init ni = {
  2974. .number = 34,
  2975. .name = L"Test wide string",
  2976. .average = 543.34343,
  2977. };
  2978. ni.number = 58;
  2979. int dynamic_array[ni.number];
  2980. dynamic_array[ni.number - 1] = 543;
  2981. // work around unused variable warnings
  2982. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  2983. || dynamic_array[ni.number - 1] != 543);
  2984. ;
  2985. return 0;
  2986. }
  2987. _ACEOF
  2988. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
  2989. do
  2990. CC="$ac_save_CC $ac_arg"
  2991. if ac_fn_c_try_compile "$LINENO"; then :
  2992. ac_cv_prog_cc_c99=$ac_arg
  2993. fi
  2994. rm -f core conftest.err conftest.$ac_objext
  2995. test "x$ac_cv_prog_cc_c99" != "xno" && break
  2996. done
  2997. rm -f conftest.$ac_ext
  2998. CC=$ac_save_CC
  2999. fi
  3000. # AC_CACHE_VAL
  3001. case "x$ac_cv_prog_cc_c99" in
  3002. x)
  3003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3004. $as_echo "none needed" >&6; } ;;
  3005. xno)
  3006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3007. $as_echo "unsupported" >&6; } ;;
  3008. *)
  3009. CC="$CC $ac_cv_prog_cc_c99"
  3010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  3011. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  3012. esac
  3013. if test "x$ac_cv_prog_cc_c99" != xno; then :
  3014. fi
  3015. am__api_version='1.15'
  3016. # Find a good install program. We prefer a C program (faster),
  3017. # so one script is as good as another. But avoid the broken or
  3018. # incompatible versions:
  3019. # SysV /etc/install, /usr/sbin/install
  3020. # SunOS /usr/etc/install
  3021. # IRIX /sbin/install
  3022. # AIX /bin/install
  3023. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3024. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3025. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3026. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3027. # OS/2's system install, which has a completely different semantic
  3028. # ./install, which can be erroneously created by make from ./install.sh.
  3029. # Reject install programs that cannot install multiple files.
  3030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3031. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  3032. if test -z "$INSTALL"; then
  3033. if ${ac_cv_path_install+:} false; then :
  3034. $as_echo_n "(cached) " >&6
  3035. else
  3036. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3037. for as_dir in $PATH
  3038. do
  3039. IFS=$as_save_IFS
  3040. test -z "$as_dir" && as_dir=.
  3041. # Account for people who put trailing slashes in PATH elements.
  3042. case $as_dir/ in #((
  3043. ./ | .// | /[cC]/* | \
  3044. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3045. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3046. /usr/ucb/* ) ;;
  3047. *)
  3048. # OSF1 and SCO ODT 3.0 have their own names for install.
  3049. # Don't use installbsd from OSF since it installs stuff as root
  3050. # by default.
  3051. for ac_prog in ginstall scoinst install; do
  3052. for ac_exec_ext in '' $ac_executable_extensions; do
  3053. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3054. if test $ac_prog = install &&
  3055. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3056. # AIX install. It has an incompatible calling convention.
  3057. :
  3058. elif test $ac_prog = install &&
  3059. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3060. # program-specific install script used by HP pwplus--don't use.
  3061. :
  3062. else
  3063. rm -rf conftest.one conftest.two conftest.dir
  3064. echo one > conftest.one
  3065. echo two > conftest.two
  3066. mkdir conftest.dir
  3067. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  3068. test -s conftest.one && test -s conftest.two &&
  3069. test -s conftest.dir/conftest.one &&
  3070. test -s conftest.dir/conftest.two
  3071. then
  3072. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3073. break 3
  3074. fi
  3075. fi
  3076. fi
  3077. done
  3078. done
  3079. ;;
  3080. esac
  3081. done
  3082. IFS=$as_save_IFS
  3083. rm -rf conftest.one conftest.two conftest.dir
  3084. fi
  3085. if test "${ac_cv_path_install+set}" = set; then
  3086. INSTALL=$ac_cv_path_install
  3087. else
  3088. # As a last resort, use the slow shell script. Don't cache a
  3089. # value for INSTALL within a source directory, because that will
  3090. # break other packages using the cache if that directory is
  3091. # removed, or if the value is a relative name.
  3092. INSTALL=$ac_install_sh
  3093. fi
  3094. fi
  3095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3096. $as_echo "$INSTALL" >&6; }
  3097. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3098. # It thinks the first close brace ends the variable substitution.
  3099. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3100. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3101. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  3103. $as_echo_n "checking whether build environment is sane... " >&6; }
  3104. # Reject unsafe characters in $srcdir or the absolute working directory
  3105. # name. Accept space and tab only in the latter.
  3106. am_lf='
  3107. '
  3108. case `pwd` in
  3109. *[\\\"\#\$\&\'\`$am_lf]*)
  3110. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  3111. esac
  3112. case $srcdir in
  3113. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  3114. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  3115. esac
  3116. # Do 'set' in a subshell so we don't clobber the current shell's
  3117. # arguments. Must try -L first in case configure is actually a
  3118. # symlink; some systems play weird games with the mod time of symlinks
  3119. # (eg FreeBSD returns the mod time of the symlink's containing
  3120. # directory).
  3121. if (
  3122. am_has_slept=no
  3123. for am_try in 1 2; do
  3124. echo "timestamp, slept: $am_has_slept" > conftest.file
  3125. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  3126. if test "$*" = "X"; then
  3127. # -L didn't work.
  3128. set X `ls -t "$srcdir/configure" conftest.file`
  3129. fi
  3130. if test "$*" != "X $srcdir/configure conftest.file" \
  3131. && test "$*" != "X conftest.file $srcdir/configure"; then
  3132. # If neither matched, then we have a broken ls. This can happen
  3133. # if, for instance, CONFIG_SHELL is bash and it inherits a
  3134. # broken ls alias from the environment. This has actually
  3135. # happened. Such a system could not be considered "sane".
  3136. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  3137. alias in your environment" "$LINENO" 5
  3138. fi
  3139. if test "$2" = conftest.file || test $am_try -eq 2; then
  3140. break
  3141. fi
  3142. # Just in case.
  3143. sleep 1
  3144. am_has_slept=yes
  3145. done
  3146. test "$2" = conftest.file
  3147. )
  3148. then
  3149. # Ok.
  3150. :
  3151. else
  3152. as_fn_error $? "newly created file is older than distributed files!
  3153. Check your system clock" "$LINENO" 5
  3154. fi
  3155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3156. $as_echo "yes" >&6; }
  3157. # If we didn't sleep, we still need to ensure time stamps of config.status and
  3158. # generated files are strictly newer.
  3159. am_sleep_pid=
  3160. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  3161. ( sleep 1 ) &
  3162. am_sleep_pid=$!
  3163. fi
  3164. rm -f conftest.file
  3165. test "$program_prefix" != NONE &&
  3166. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  3167. # Use a double $ so make ignores it.
  3168. test "$program_suffix" != NONE &&
  3169. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  3170. # Double any \ or $.
  3171. # By default was `s,x,x', remove it if useless.
  3172. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  3173. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  3174. if test x"${MISSING+set}" != xset; then
  3175. case $am_aux_dir in
  3176. *\ * | *\ *)
  3177. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  3178. *)
  3179. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  3180. esac
  3181. fi
  3182. # Use eval to expand $SHELL
  3183. if eval "$MISSING --is-lightweight"; then
  3184. am_missing_run="$MISSING "
  3185. else
  3186. am_missing_run=
  3187. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  3188. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  3189. fi
  3190. if test x"${install_sh+set}" != xset; then
  3191. case $am_aux_dir in
  3192. *\ * | *\ *)
  3193. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  3194. *)
  3195. install_sh="\${SHELL} $am_aux_dir/install-sh"
  3196. esac
  3197. fi
  3198. # Installed binaries are usually stripped using 'strip' when the user
  3199. # run "make install-strip". However 'strip' might not be the right
  3200. # tool to use in cross-compilation environments, therefore Automake
  3201. # will honor the 'STRIP' environment variable to overrule this program.
  3202. if test "$cross_compiling" != no; then
  3203. if test -n "$ac_tool_prefix"; then
  3204. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  3205. set dummy ${ac_tool_prefix}strip; ac_word=$2
  3206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3207. $as_echo_n "checking for $ac_word... " >&6; }
  3208. if ${ac_cv_prog_STRIP+:} false; then :
  3209. $as_echo_n "(cached) " >&6
  3210. else
  3211. if test -n "$STRIP"; then
  3212. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3213. else
  3214. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3215. for as_dir in $PATH
  3216. do
  3217. IFS=$as_save_IFS
  3218. test -z "$as_dir" && as_dir=.
  3219. for ac_exec_ext in '' $ac_executable_extensions; do
  3220. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3221. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  3222. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3223. break 2
  3224. fi
  3225. done
  3226. done
  3227. IFS=$as_save_IFS
  3228. fi
  3229. fi
  3230. STRIP=$ac_cv_prog_STRIP
  3231. if test -n "$STRIP"; then
  3232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3233. $as_echo "$STRIP" >&6; }
  3234. else
  3235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3236. $as_echo "no" >&6; }
  3237. fi
  3238. fi
  3239. if test -z "$ac_cv_prog_STRIP"; then
  3240. ac_ct_STRIP=$STRIP
  3241. # Extract the first word of "strip", so it can be a program name with args.
  3242. set dummy strip; ac_word=$2
  3243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3244. $as_echo_n "checking for $ac_word... " >&6; }
  3245. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  3246. $as_echo_n "(cached) " >&6
  3247. else
  3248. if test -n "$ac_ct_STRIP"; then
  3249. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  3250. else
  3251. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3252. for as_dir in $PATH
  3253. do
  3254. IFS=$as_save_IFS
  3255. test -z "$as_dir" && as_dir=.
  3256. for ac_exec_ext in '' $ac_executable_extensions; do
  3257. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3258. ac_cv_prog_ac_ct_STRIP="strip"
  3259. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3260. break 2
  3261. fi
  3262. done
  3263. done
  3264. IFS=$as_save_IFS
  3265. fi
  3266. fi
  3267. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  3268. if test -n "$ac_ct_STRIP"; then
  3269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  3270. $as_echo "$ac_ct_STRIP" >&6; }
  3271. else
  3272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3273. $as_echo "no" >&6; }
  3274. fi
  3275. if test "x$ac_ct_STRIP" = x; then
  3276. STRIP=":"
  3277. else
  3278. case $cross_compiling:$ac_tool_warned in
  3279. yes:)
  3280. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3281. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3282. ac_tool_warned=yes ;;
  3283. esac
  3284. STRIP=$ac_ct_STRIP
  3285. fi
  3286. else
  3287. STRIP="$ac_cv_prog_STRIP"
  3288. fi
  3289. fi
  3290. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  3291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  3292. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  3293. if test -z "$MKDIR_P"; then
  3294. if ${ac_cv_path_mkdir+:} false; then :
  3295. $as_echo_n "(cached) " >&6
  3296. else
  3297. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3298. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3299. do
  3300. IFS=$as_save_IFS
  3301. test -z "$as_dir" && as_dir=.
  3302. for ac_prog in mkdir gmkdir; do
  3303. for ac_exec_ext in '' $ac_executable_extensions; do
  3304. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  3305. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3306. 'mkdir (GNU coreutils) '* | \
  3307. 'mkdir (coreutils) '* | \
  3308. 'mkdir (fileutils) '4.1*)
  3309. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3310. break 3;;
  3311. esac
  3312. done
  3313. done
  3314. done
  3315. IFS=$as_save_IFS
  3316. fi
  3317. test -d ./--version && rmdir ./--version
  3318. if test "${ac_cv_path_mkdir+set}" = set; then
  3319. MKDIR_P="$ac_cv_path_mkdir -p"
  3320. else
  3321. # As a last resort, use the slow shell script. Don't cache a
  3322. # value for MKDIR_P within a source directory, because that will
  3323. # break other packages using the cache if that directory is
  3324. # removed, or if the value is a relative name.
  3325. MKDIR_P="$ac_install_sh -d"
  3326. fi
  3327. fi
  3328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3329. $as_echo "$MKDIR_P" >&6; }
  3330. for ac_prog in gawk mawk nawk awk
  3331. do
  3332. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3333. set dummy $ac_prog; ac_word=$2
  3334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3335. $as_echo_n "checking for $ac_word... " >&6; }
  3336. if ${ac_cv_prog_AWK+:} false; then :
  3337. $as_echo_n "(cached) " >&6
  3338. else
  3339. if test -n "$AWK"; then
  3340. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3341. else
  3342. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3343. for as_dir in $PATH
  3344. do
  3345. IFS=$as_save_IFS
  3346. test -z "$as_dir" && as_dir=.
  3347. for ac_exec_ext in '' $ac_executable_extensions; do
  3348. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3349. ac_cv_prog_AWK="$ac_prog"
  3350. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3351. break 2
  3352. fi
  3353. done
  3354. done
  3355. IFS=$as_save_IFS
  3356. fi
  3357. fi
  3358. AWK=$ac_cv_prog_AWK
  3359. if test -n "$AWK"; then
  3360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3361. $as_echo "$AWK" >&6; }
  3362. else
  3363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3364. $as_echo "no" >&6; }
  3365. fi
  3366. test -n "$AWK" && break
  3367. done
  3368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3369. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3370. set x ${MAKE-make}
  3371. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3372. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  3373. $as_echo_n "(cached) " >&6
  3374. else
  3375. cat >conftest.make <<\_ACEOF
  3376. SHELL = /bin/sh
  3377. all:
  3378. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3379. _ACEOF
  3380. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3381. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3382. *@@@%%%=?*=@@@%%%*)
  3383. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3384. *)
  3385. eval ac_cv_prog_make_${ac_make}_set=no;;
  3386. esac
  3387. rm -f conftest.make
  3388. fi
  3389. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3391. $as_echo "yes" >&6; }
  3392. SET_MAKE=
  3393. else
  3394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3395. $as_echo "no" >&6; }
  3396. SET_MAKE="MAKE=${MAKE-make}"
  3397. fi
  3398. rm -rf .tst 2>/dev/null
  3399. mkdir .tst 2>/dev/null
  3400. if test -d .tst; then
  3401. am__leading_dot=.
  3402. else
  3403. am__leading_dot=_
  3404. fi
  3405. rmdir .tst 2>/dev/null
  3406. DEPDIR="${am__leading_dot}deps"
  3407. ac_config_commands="$ac_config_commands depfiles"
  3408. am_make=${MAKE-make}
  3409. cat > confinc << 'END'
  3410. am__doit:
  3411. @echo this is the am__doit target
  3412. .PHONY: am__doit
  3413. END
  3414. # If we don't find an include directive, just comment out the code.
  3415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3416. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3417. am__include="#"
  3418. am__quote=
  3419. _am_result=none
  3420. # First try GNU make style include.
  3421. echo "include confinc" > confmf
  3422. # Ignore all kinds of additional output from 'make'.
  3423. case `$am_make -s -f confmf 2> /dev/null` in #(
  3424. *the\ am__doit\ target*)
  3425. am__include=include
  3426. am__quote=
  3427. _am_result=GNU
  3428. ;;
  3429. esac
  3430. # Now try BSD make style include.
  3431. if test "$am__include" = "#"; then
  3432. echo '.include "confinc"' > confmf
  3433. case `$am_make -s -f confmf 2> /dev/null` in #(
  3434. *the\ am__doit\ target*)
  3435. am__include=.include
  3436. am__quote="\""
  3437. _am_result=BSD
  3438. ;;
  3439. esac
  3440. fi
  3441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3442. $as_echo "$_am_result" >&6; }
  3443. rm -f confinc confmf
  3444. # Check whether --enable-dependency-tracking was given.
  3445. if test "${enable_dependency_tracking+set}" = set; then :
  3446. enableval=$enable_dependency_tracking;
  3447. fi
  3448. if test "x$enable_dependency_tracking" != xno; then
  3449. am_depcomp="$ac_aux_dir/depcomp"
  3450. AMDEPBACKSLASH='\'
  3451. am__nodep='_no'
  3452. fi
  3453. if test "x$enable_dependency_tracking" != xno; then
  3454. AMDEP_TRUE=
  3455. AMDEP_FALSE='#'
  3456. else
  3457. AMDEP_TRUE='#'
  3458. AMDEP_FALSE=
  3459. fi
  3460. # Check whether --enable-silent-rules was given.
  3461. if test "${enable_silent_rules+set}" = set; then :
  3462. enableval=$enable_silent_rules;
  3463. fi
  3464. case $enable_silent_rules in # (((
  3465. yes) AM_DEFAULT_VERBOSITY=0;;
  3466. no) AM_DEFAULT_VERBOSITY=1;;
  3467. *) AM_DEFAULT_VERBOSITY=1;;
  3468. esac
  3469. am_make=${MAKE-make}
  3470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3471. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  3472. if ${am_cv_make_support_nested_variables+:} false; then :
  3473. $as_echo_n "(cached) " >&6
  3474. else
  3475. if $as_echo 'TRUE=$(BAR$(V))
  3476. BAR0=false
  3477. BAR1=true
  3478. V=1
  3479. am__doit:
  3480. @$(TRUE)
  3481. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3482. am_cv_make_support_nested_variables=yes
  3483. else
  3484. am_cv_make_support_nested_variables=no
  3485. fi
  3486. fi
  3487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3488. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3489. if test $am_cv_make_support_nested_variables = yes; then
  3490. AM_V='$(V)'
  3491. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3492. else
  3493. AM_V=$AM_DEFAULT_VERBOSITY
  3494. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3495. fi
  3496. AM_BACKSLASH='\'
  3497. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3498. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3499. # is not polluted with repeated "-I."
  3500. am__isrc=' -I$(srcdir)'
  3501. # test to see if srcdir already configured
  3502. if test -f $srcdir/config.status; then
  3503. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3504. fi
  3505. fi
  3506. # test whether we have cygpath
  3507. if test -z "$CYGPATH_W"; then
  3508. if (cygpath --version) >/dev/null 2>/dev/null; then
  3509. CYGPATH_W='cygpath -w'
  3510. else
  3511. CYGPATH_W=echo
  3512. fi
  3513. fi
  3514. # Define the identity of the package.
  3515. PACKAGE='luksmeta'
  3516. VERSION='9'
  3517. cat >>confdefs.h <<_ACEOF
  3518. #define PACKAGE "$PACKAGE"
  3519. _ACEOF
  3520. cat >>confdefs.h <<_ACEOF
  3521. #define VERSION "$VERSION"
  3522. _ACEOF
  3523. # Some tools Automake needs.
  3524. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3525. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3526. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3527. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3528. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3529. # For better backward compatibility. To be removed once Automake 1.9.x
  3530. # dies out for good. For more background, see:
  3531. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3532. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3533. mkdir_p='$(MKDIR_P)'
  3534. # We need awk for the "check" target (and possibly the TAP driver). The
  3535. # system "awk" is bad on some platforms.
  3536. # Always define AMTAR for backward compatibility. Yes, it's still used
  3537. # in the wild :-( We should find a proper way to deprecate it ...
  3538. AMTAR='$${TAR-tar}'
  3539. # We'll loop over all known methods to create a tar archive until one works.
  3540. _am_tools='gnutar pax cpio none'
  3541. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  3542. depcc="$CC" am_compiler_list=
  3543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3544. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3545. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3546. $as_echo_n "(cached) " >&6
  3547. else
  3548. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3549. # We make a subdir and do the tests there. Otherwise we can end up
  3550. # making bogus files that we don't know about and never remove. For
  3551. # instance it was reported that on HP-UX the gcc test will end up
  3552. # making a dummy file named 'D' -- because '-MD' means "put the output
  3553. # in D".
  3554. rm -rf conftest.dir
  3555. mkdir conftest.dir
  3556. # Copy depcomp to subdir because otherwise we won't find it if we're
  3557. # using a relative directory.
  3558. cp "$am_depcomp" conftest.dir
  3559. cd conftest.dir
  3560. # We will build objects and dependencies in a subdirectory because
  3561. # it helps to detect inapplicable dependency modes. For instance
  3562. # both Tru64's cc and ICC support -MD to output dependencies as a
  3563. # side effect of compilation, but ICC will put the dependencies in
  3564. # the current directory while Tru64 will put them in the object
  3565. # directory.
  3566. mkdir sub
  3567. am_cv_CC_dependencies_compiler_type=none
  3568. if test "$am_compiler_list" = ""; then
  3569. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3570. fi
  3571. am__universal=false
  3572. case " $depcc " in #(
  3573. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3574. esac
  3575. for depmode in $am_compiler_list; do
  3576. # Setup a source with many dependencies, because some compilers
  3577. # like to wrap large dependency lists on column 80 (with \), and
  3578. # we should not choose a depcomp mode which is confused by this.
  3579. #
  3580. # We need to recreate these files for each test, as the compiler may
  3581. # overwrite some of them when testing with obscure command lines.
  3582. # This happens at least with the AIX C compiler.
  3583. : > sub/conftest.c
  3584. for i in 1 2 3 4 5 6; do
  3585. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3586. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3587. # Solaris 10 /bin/sh.
  3588. echo '/* dummy */' > sub/conftst$i.h
  3589. done
  3590. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3591. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3592. # mode. It turns out that the SunPro C++ compiler does not properly
  3593. # handle '-M -o', and we need to detect this. Also, some Intel
  3594. # versions had trouble with output in subdirs.
  3595. am__obj=sub/conftest.${OBJEXT-o}
  3596. am__minus_obj="-o $am__obj"
  3597. case $depmode in
  3598. gcc)
  3599. # This depmode causes a compiler race in universal mode.
  3600. test "$am__universal" = false || continue
  3601. ;;
  3602. nosideeffect)
  3603. # After this tag, mechanisms are not by side-effect, so they'll
  3604. # only be used when explicitly requested.
  3605. if test "x$enable_dependency_tracking" = xyes; then
  3606. continue
  3607. else
  3608. break
  3609. fi
  3610. ;;
  3611. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3612. # This compiler won't grok '-c -o', but also, the minuso test has
  3613. # not run yet. These depmodes are late enough in the game, and
  3614. # so weak that their functioning should not be impacted.
  3615. am__obj=conftest.${OBJEXT-o}
  3616. am__minus_obj=
  3617. ;;
  3618. none) break ;;
  3619. esac
  3620. if depmode=$depmode \
  3621. source=sub/conftest.c object=$am__obj \
  3622. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3623. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3624. >/dev/null 2>conftest.err &&
  3625. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3626. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3627. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3628. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3629. # icc doesn't choke on unknown options, it will just issue warnings
  3630. # or remarks (even with -Werror). So we grep stderr for any message
  3631. # that says an option was ignored or not supported.
  3632. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3633. # icc: Command line warning: ignoring option '-M'; no argument required
  3634. # The diagnosis changed in icc 8.0:
  3635. # icc: Command line remark: option '-MP' not supported
  3636. if (grep 'ignoring option' conftest.err ||
  3637. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3638. am_cv_CC_dependencies_compiler_type=$depmode
  3639. break
  3640. fi
  3641. fi
  3642. done
  3643. cd ..
  3644. rm -rf conftest.dir
  3645. else
  3646. am_cv_CC_dependencies_compiler_type=none
  3647. fi
  3648. fi
  3649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3650. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3651. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3652. if
  3653. test "x$enable_dependency_tracking" != xno \
  3654. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3655. am__fastdepCC_TRUE=
  3656. am__fastdepCC_FALSE='#'
  3657. else
  3658. am__fastdepCC_TRUE='#'
  3659. am__fastdepCC_FALSE=
  3660. fi
  3661. # POSIX will say in a future version that running "rm -f" with no argument
  3662. # is OK; and we want to be able to make that assumption in our Makefile
  3663. # recipes. So use an aggressive probe to check that the usage we want is
  3664. # actually supported "in the wild" to an acceptable degree.
  3665. # See automake bug#10828.
  3666. # To make any issue more visible, cause the running configure to be aborted
  3667. # by default if the 'rm' program in use doesn't match our expectations; the
  3668. # user can still override this though.
  3669. if rm -f && rm -fr && rm -rf; then : OK; else
  3670. cat >&2 <<'END'
  3671. Oops!
  3672. Your 'rm' program seems unable to run without file operands specified
  3673. on the command line, even when the '-f' option is present. This is contrary
  3674. to the behaviour of most rm programs out there, and not conforming with
  3675. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  3676. Please tell bug-automake@gnu.org about your system, including the value
  3677. of your $PATH and any error possibly output before this message. This
  3678. can help us improve future automake versions.
  3679. END
  3680. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  3681. echo 'Configuration will proceed anyway, since you have set the' >&2
  3682. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  3683. echo >&2
  3684. else
  3685. cat >&2 <<'END'
  3686. Aborting the configuration process, to ensure you take notice of the issue.
  3687. You can download and install GNU coreutils to get an 'rm' implementation
  3688. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  3689. If you want to complete the configuration process using your problematic
  3690. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  3691. to "yes", and re-run configure.
  3692. END
  3693. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  3694. fi
  3695. fi
  3696. # Check whether --enable-silent-rules was given.
  3697. if test "${enable_silent_rules+set}" = set; then :
  3698. enableval=$enable_silent_rules;
  3699. fi
  3700. case $enable_silent_rules in # (((
  3701. yes) AM_DEFAULT_VERBOSITY=0;;
  3702. no) AM_DEFAULT_VERBOSITY=1;;
  3703. *) AM_DEFAULT_VERBOSITY=0;;
  3704. esac
  3705. am_make=${MAKE-make}
  3706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3707. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  3708. if ${am_cv_make_support_nested_variables+:} false; then :
  3709. $as_echo_n "(cached) " >&6
  3710. else
  3711. if $as_echo 'TRUE=$(BAR$(V))
  3712. BAR0=false
  3713. BAR1=true
  3714. V=1
  3715. am__doit:
  3716. @$(TRUE)
  3717. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3718. am_cv_make_support_nested_variables=yes
  3719. else
  3720. am_cv_make_support_nested_variables=no
  3721. fi
  3722. fi
  3723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3724. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3725. if test $am_cv_make_support_nested_variables = yes; then
  3726. AM_V='$(V)'
  3727. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3728. else
  3729. AM_V=$AM_DEFAULT_VERBOSITY
  3730. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3731. fi
  3732. AM_BACKSLASH='\'
  3733. case `pwd` in
  3734. *\ * | *\ *)
  3735. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3736. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3737. esac
  3738. macro_version='2.4.6'
  3739. macro_revision='2.4.6'
  3740. ltmain=$ac_aux_dir/ltmain.sh
  3741. # Backslashify metacharacters that are still active within
  3742. # double-quoted strings.
  3743. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3744. # Same as above, but do not quote variable references.
  3745. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3746. # Sed substitution to delay expansion of an escaped shell variable in a
  3747. # double_quote_subst'ed string.
  3748. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3749. # Sed substitution to delay expansion of an escaped single quote.
  3750. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3751. # Sed substitution to avoid accidental globbing in evaled expressions
  3752. no_glob_subst='s/\*/\\\*/g'
  3753. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3754. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3755. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3757. $as_echo_n "checking how to print strings... " >&6; }
  3758. # Test print first, because it will be a builtin if present.
  3759. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3760. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3761. ECHO='print -r --'
  3762. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3763. ECHO='printf %s\n'
  3764. else
  3765. # Use this function as a fallback that always works.
  3766. func_fallback_echo ()
  3767. {
  3768. eval 'cat <<_LTECHO_EOF
  3769. $1
  3770. _LTECHO_EOF'
  3771. }
  3772. ECHO='func_fallback_echo'
  3773. fi
  3774. # func_echo_all arg...
  3775. # Invoke $ECHO with all args, space-separated.
  3776. func_echo_all ()
  3777. {
  3778. $ECHO ""
  3779. }
  3780. case $ECHO in
  3781. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3782. $as_echo "printf" >&6; } ;;
  3783. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3784. $as_echo "print -r" >&6; } ;;
  3785. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3786. $as_echo "cat" >&6; } ;;
  3787. esac
  3788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3789. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3790. if ${ac_cv_path_SED+:} false; then :
  3791. $as_echo_n "(cached) " >&6
  3792. else
  3793. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3794. for ac_i in 1 2 3 4 5 6 7; do
  3795. ac_script="$ac_script$as_nl$ac_script"
  3796. done
  3797. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3798. { ac_script=; unset ac_script;}
  3799. if test -z "$SED"; then
  3800. ac_path_SED_found=false
  3801. # Loop through the user's path and test for each of PROGNAME-LIST
  3802. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3803. for as_dir in $PATH
  3804. do
  3805. IFS=$as_save_IFS
  3806. test -z "$as_dir" && as_dir=.
  3807. for ac_prog in sed gsed; do
  3808. for ac_exec_ext in '' $ac_executable_extensions; do
  3809. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3810. as_fn_executable_p "$ac_path_SED" || continue
  3811. # Check for GNU ac_path_SED and select it if it is found.
  3812. # Check for GNU $ac_path_SED
  3813. case `"$ac_path_SED" --version 2>&1` in
  3814. *GNU*)
  3815. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3816. *)
  3817. ac_count=0
  3818. $as_echo_n 0123456789 >"conftest.in"
  3819. while :
  3820. do
  3821. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3822. mv "conftest.tmp" "conftest.in"
  3823. cp "conftest.in" "conftest.nl"
  3824. $as_echo '' >> "conftest.nl"
  3825. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3826. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3827. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3828. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3829. # Best one so far, save it but keep looking for a better one
  3830. ac_cv_path_SED="$ac_path_SED"
  3831. ac_path_SED_max=$ac_count
  3832. fi
  3833. # 10*(2^10) chars as input seems more than enough
  3834. test $ac_count -gt 10 && break
  3835. done
  3836. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3837. esac
  3838. $ac_path_SED_found && break 3
  3839. done
  3840. done
  3841. done
  3842. IFS=$as_save_IFS
  3843. if test -z "$ac_cv_path_SED"; then
  3844. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3845. fi
  3846. else
  3847. ac_cv_path_SED=$SED
  3848. fi
  3849. fi
  3850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3851. $as_echo "$ac_cv_path_SED" >&6; }
  3852. SED="$ac_cv_path_SED"
  3853. rm -f conftest.sed
  3854. test -z "$SED" && SED=sed
  3855. Xsed="$SED -e 1s/^X//"
  3856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3857. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3858. if ${ac_cv_path_GREP+:} false; then :
  3859. $as_echo_n "(cached) " >&6
  3860. else
  3861. if test -z "$GREP"; then
  3862. ac_path_GREP_found=false
  3863. # Loop through the user's path and test for each of PROGNAME-LIST
  3864. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3865. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3866. do
  3867. IFS=$as_save_IFS
  3868. test -z "$as_dir" && as_dir=.
  3869. for ac_prog in grep ggrep; do
  3870. for ac_exec_ext in '' $ac_executable_extensions; do
  3871. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3872. as_fn_executable_p "$ac_path_GREP" || continue
  3873. # Check for GNU ac_path_GREP and select it if it is found.
  3874. # Check for GNU $ac_path_GREP
  3875. case `"$ac_path_GREP" --version 2>&1` in
  3876. *GNU*)
  3877. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3878. *)
  3879. ac_count=0
  3880. $as_echo_n 0123456789 >"conftest.in"
  3881. while :
  3882. do
  3883. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3884. mv "conftest.tmp" "conftest.in"
  3885. cp "conftest.in" "conftest.nl"
  3886. $as_echo 'GREP' >> "conftest.nl"
  3887. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3888. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3889. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3890. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3891. # Best one so far, save it but keep looking for a better one
  3892. ac_cv_path_GREP="$ac_path_GREP"
  3893. ac_path_GREP_max=$ac_count
  3894. fi
  3895. # 10*(2^10) chars as input seems more than enough
  3896. test $ac_count -gt 10 && break
  3897. done
  3898. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3899. esac
  3900. $ac_path_GREP_found && break 3
  3901. done
  3902. done
  3903. done
  3904. IFS=$as_save_IFS
  3905. if test -z "$ac_cv_path_GREP"; then
  3906. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3907. fi
  3908. else
  3909. ac_cv_path_GREP=$GREP
  3910. fi
  3911. fi
  3912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3913. $as_echo "$ac_cv_path_GREP" >&6; }
  3914. GREP="$ac_cv_path_GREP"
  3915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3916. $as_echo_n "checking for egrep... " >&6; }
  3917. if ${ac_cv_path_EGREP+:} false; then :
  3918. $as_echo_n "(cached) " >&6
  3919. else
  3920. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3921. then ac_cv_path_EGREP="$GREP -E"
  3922. else
  3923. if test -z "$EGREP"; then
  3924. ac_path_EGREP_found=false
  3925. # Loop through the user's path and test for each of PROGNAME-LIST
  3926. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3927. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3928. do
  3929. IFS=$as_save_IFS
  3930. test -z "$as_dir" && as_dir=.
  3931. for ac_prog in egrep; do
  3932. for ac_exec_ext in '' $ac_executable_extensions; do
  3933. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3934. as_fn_executable_p "$ac_path_EGREP" || continue
  3935. # Check for GNU ac_path_EGREP and select it if it is found.
  3936. # Check for GNU $ac_path_EGREP
  3937. case `"$ac_path_EGREP" --version 2>&1` in
  3938. *GNU*)
  3939. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3940. *)
  3941. ac_count=0
  3942. $as_echo_n 0123456789 >"conftest.in"
  3943. while :
  3944. do
  3945. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3946. mv "conftest.tmp" "conftest.in"
  3947. cp "conftest.in" "conftest.nl"
  3948. $as_echo 'EGREP' >> "conftest.nl"
  3949. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3950. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3951. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3952. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3953. # Best one so far, save it but keep looking for a better one
  3954. ac_cv_path_EGREP="$ac_path_EGREP"
  3955. ac_path_EGREP_max=$ac_count
  3956. fi
  3957. # 10*(2^10) chars as input seems more than enough
  3958. test $ac_count -gt 10 && break
  3959. done
  3960. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3961. esac
  3962. $ac_path_EGREP_found && break 3
  3963. done
  3964. done
  3965. done
  3966. IFS=$as_save_IFS
  3967. if test -z "$ac_cv_path_EGREP"; then
  3968. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3969. fi
  3970. else
  3971. ac_cv_path_EGREP=$EGREP
  3972. fi
  3973. fi
  3974. fi
  3975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3976. $as_echo "$ac_cv_path_EGREP" >&6; }
  3977. EGREP="$ac_cv_path_EGREP"
  3978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3979. $as_echo_n "checking for fgrep... " >&6; }
  3980. if ${ac_cv_path_FGREP+:} false; then :
  3981. $as_echo_n "(cached) " >&6
  3982. else
  3983. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3984. then ac_cv_path_FGREP="$GREP -F"
  3985. else
  3986. if test -z "$FGREP"; then
  3987. ac_path_FGREP_found=false
  3988. # Loop through the user's path and test for each of PROGNAME-LIST
  3989. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3990. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3991. do
  3992. IFS=$as_save_IFS
  3993. test -z "$as_dir" && as_dir=.
  3994. for ac_prog in fgrep; do
  3995. for ac_exec_ext in '' $ac_executable_extensions; do
  3996. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3997. as_fn_executable_p "$ac_path_FGREP" || continue
  3998. # Check for GNU ac_path_FGREP and select it if it is found.
  3999. # Check for GNU $ac_path_FGREP
  4000. case `"$ac_path_FGREP" --version 2>&1` in
  4001. *GNU*)
  4002. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4003. *)
  4004. ac_count=0
  4005. $as_echo_n 0123456789 >"conftest.in"
  4006. while :
  4007. do
  4008. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4009. mv "conftest.tmp" "conftest.in"
  4010. cp "conftest.in" "conftest.nl"
  4011. $as_echo 'FGREP' >> "conftest.nl"
  4012. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4013. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4014. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4015. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4016. # Best one so far, save it but keep looking for a better one
  4017. ac_cv_path_FGREP="$ac_path_FGREP"
  4018. ac_path_FGREP_max=$ac_count
  4019. fi
  4020. # 10*(2^10) chars as input seems more than enough
  4021. test $ac_count -gt 10 && break
  4022. done
  4023. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4024. esac
  4025. $ac_path_FGREP_found && break 3
  4026. done
  4027. done
  4028. done
  4029. IFS=$as_save_IFS
  4030. if test -z "$ac_cv_path_FGREP"; then
  4031. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4032. fi
  4033. else
  4034. ac_cv_path_FGREP=$FGREP
  4035. fi
  4036. fi
  4037. fi
  4038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4039. $as_echo "$ac_cv_path_FGREP" >&6; }
  4040. FGREP="$ac_cv_path_FGREP"
  4041. test -z "$GREP" && GREP=grep
  4042. # Check whether --with-gnu-ld was given.
  4043. if test "${with_gnu_ld+set}" = set; then :
  4044. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4045. else
  4046. with_gnu_ld=no
  4047. fi
  4048. ac_prog=ld
  4049. if test yes = "$GCC"; then
  4050. # Check if gcc -print-prog-name=ld gives a path.
  4051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4052. $as_echo_n "checking for ld used by $CC... " >&6; }
  4053. case $host in
  4054. *-*-mingw*)
  4055. # gcc leaves a trailing carriage return, which upsets mingw
  4056. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4057. *)
  4058. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4059. esac
  4060. case $ac_prog in
  4061. # Accept absolute paths.
  4062. [\\/]* | ?:[\\/]*)
  4063. re_direlt='/[^/][^/]*/\.\./'
  4064. # Canonicalize the pathname of ld
  4065. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4066. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4067. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4068. done
  4069. test -z "$LD" && LD=$ac_prog
  4070. ;;
  4071. "")
  4072. # If it fails, then pretend we aren't using GCC.
  4073. ac_prog=ld
  4074. ;;
  4075. *)
  4076. # If it is relative, then search for the first ld in PATH.
  4077. with_gnu_ld=unknown
  4078. ;;
  4079. esac
  4080. elif test yes = "$with_gnu_ld"; then
  4081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4082. $as_echo_n "checking for GNU ld... " >&6; }
  4083. else
  4084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4085. $as_echo_n "checking for non-GNU ld... " >&6; }
  4086. fi
  4087. if ${lt_cv_path_LD+:} false; then :
  4088. $as_echo_n "(cached) " >&6
  4089. else
  4090. if test -z "$LD"; then
  4091. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4092. for ac_dir in $PATH; do
  4093. IFS=$lt_save_ifs
  4094. test -z "$ac_dir" && ac_dir=.
  4095. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4096. lt_cv_path_LD=$ac_dir/$ac_prog
  4097. # Check to see if the program is GNU ld. I'd rather use --version,
  4098. # but apparently some variants of GNU ld only accept -v.
  4099. # Break only if it was the GNU/non-GNU ld that we prefer.
  4100. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4101. *GNU* | *'with BFD'*)
  4102. test no != "$with_gnu_ld" && break
  4103. ;;
  4104. *)
  4105. test yes != "$with_gnu_ld" && break
  4106. ;;
  4107. esac
  4108. fi
  4109. done
  4110. IFS=$lt_save_ifs
  4111. else
  4112. lt_cv_path_LD=$LD # Let the user override the test with a path.
  4113. fi
  4114. fi
  4115. LD=$lt_cv_path_LD
  4116. if test -n "$LD"; then
  4117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4118. $as_echo "$LD" >&6; }
  4119. else
  4120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4121. $as_echo "no" >&6; }
  4122. fi
  4123. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4125. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4126. if ${lt_cv_prog_gnu_ld+:} false; then :
  4127. $as_echo_n "(cached) " >&6
  4128. else
  4129. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4130. case `$LD -v 2>&1 </dev/null` in
  4131. *GNU* | *'with BFD'*)
  4132. lt_cv_prog_gnu_ld=yes
  4133. ;;
  4134. *)
  4135. lt_cv_prog_gnu_ld=no
  4136. ;;
  4137. esac
  4138. fi
  4139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4140. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4141. with_gnu_ld=$lt_cv_prog_gnu_ld
  4142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4143. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4144. if ${lt_cv_path_NM+:} false; then :
  4145. $as_echo_n "(cached) " >&6
  4146. else
  4147. if test -n "$NM"; then
  4148. # Let the user override the test.
  4149. lt_cv_path_NM=$NM
  4150. else
  4151. lt_nm_to_check=${ac_tool_prefix}nm
  4152. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4153. lt_nm_to_check="$lt_nm_to_check nm"
  4154. fi
  4155. for lt_tmp_nm in $lt_nm_to_check; do
  4156. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4157. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4158. IFS=$lt_save_ifs
  4159. test -z "$ac_dir" && ac_dir=.
  4160. tmp_nm=$ac_dir/$lt_tmp_nm
  4161. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  4162. # Check to see if the nm accepts a BSD-compat flag.
  4163. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  4164. # nm: unknown option "B" ignored
  4165. # Tru64's nm complains that /dev/null is an invalid object file
  4166. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  4167. case $build_os in
  4168. mingw*) lt_bad_file=conftest.nm/nofile ;;
  4169. *) lt_bad_file=/dev/null ;;
  4170. esac
  4171. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  4172. *$lt_bad_file* | *'Invalid file or object type'*)
  4173. lt_cv_path_NM="$tmp_nm -B"
  4174. break 2
  4175. ;;
  4176. *)
  4177. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4178. */dev/null*)
  4179. lt_cv_path_NM="$tmp_nm -p"
  4180. break 2
  4181. ;;
  4182. *)
  4183. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4184. continue # so that we can try to find one that supports BSD flags
  4185. ;;
  4186. esac
  4187. ;;
  4188. esac
  4189. fi
  4190. done
  4191. IFS=$lt_save_ifs
  4192. done
  4193. : ${lt_cv_path_NM=no}
  4194. fi
  4195. fi
  4196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4197. $as_echo "$lt_cv_path_NM" >&6; }
  4198. if test no != "$lt_cv_path_NM"; then
  4199. NM=$lt_cv_path_NM
  4200. else
  4201. # Didn't find any BSD compatible name lister, look for dumpbin.
  4202. if test -n "$DUMPBIN"; then :
  4203. # Let the user override the test.
  4204. else
  4205. if test -n "$ac_tool_prefix"; then
  4206. for ac_prog in dumpbin "link -dump"
  4207. do
  4208. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4209. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4211. $as_echo_n "checking for $ac_word... " >&6; }
  4212. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4213. $as_echo_n "(cached) " >&6
  4214. else
  4215. if test -n "$DUMPBIN"; then
  4216. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4217. else
  4218. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4219. for as_dir in $PATH
  4220. do
  4221. IFS=$as_save_IFS
  4222. test -z "$as_dir" && as_dir=.
  4223. for ac_exec_ext in '' $ac_executable_extensions; do
  4224. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4225. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4226. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4227. break 2
  4228. fi
  4229. done
  4230. done
  4231. IFS=$as_save_IFS
  4232. fi
  4233. fi
  4234. DUMPBIN=$ac_cv_prog_DUMPBIN
  4235. if test -n "$DUMPBIN"; then
  4236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4237. $as_echo "$DUMPBIN" >&6; }
  4238. else
  4239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4240. $as_echo "no" >&6; }
  4241. fi
  4242. test -n "$DUMPBIN" && break
  4243. done
  4244. fi
  4245. if test -z "$DUMPBIN"; then
  4246. ac_ct_DUMPBIN=$DUMPBIN
  4247. for ac_prog in dumpbin "link -dump"
  4248. do
  4249. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4250. set dummy $ac_prog; ac_word=$2
  4251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4252. $as_echo_n "checking for $ac_word... " >&6; }
  4253. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4254. $as_echo_n "(cached) " >&6
  4255. else
  4256. if test -n "$ac_ct_DUMPBIN"; then
  4257. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4258. else
  4259. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4260. for as_dir in $PATH
  4261. do
  4262. IFS=$as_save_IFS
  4263. test -z "$as_dir" && as_dir=.
  4264. for ac_exec_ext in '' $ac_executable_extensions; do
  4265. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4266. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4267. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4268. break 2
  4269. fi
  4270. done
  4271. done
  4272. IFS=$as_save_IFS
  4273. fi
  4274. fi
  4275. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4276. if test -n "$ac_ct_DUMPBIN"; then
  4277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4278. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4279. else
  4280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4281. $as_echo "no" >&6; }
  4282. fi
  4283. test -n "$ac_ct_DUMPBIN" && break
  4284. done
  4285. if test "x$ac_ct_DUMPBIN" = x; then
  4286. DUMPBIN=":"
  4287. else
  4288. case $cross_compiling:$ac_tool_warned in
  4289. yes:)
  4290. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4291. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4292. ac_tool_warned=yes ;;
  4293. esac
  4294. DUMPBIN=$ac_ct_DUMPBIN
  4295. fi
  4296. fi
  4297. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4298. *COFF*)
  4299. DUMPBIN="$DUMPBIN -symbols -headers"
  4300. ;;
  4301. *)
  4302. DUMPBIN=:
  4303. ;;
  4304. esac
  4305. fi
  4306. if test : != "$DUMPBIN"; then
  4307. NM=$DUMPBIN
  4308. fi
  4309. fi
  4310. test -z "$NM" && NM=nm
  4311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4312. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4313. if ${lt_cv_nm_interface+:} false; then :
  4314. $as_echo_n "(cached) " >&6
  4315. else
  4316. lt_cv_nm_interface="BSD nm"
  4317. echo "int some_variable = 0;" > conftest.$ac_ext
  4318. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4319. (eval "$ac_compile" 2>conftest.err)
  4320. cat conftest.err >&5
  4321. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4322. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4323. cat conftest.err >&5
  4324. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4325. cat conftest.out >&5
  4326. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4327. lt_cv_nm_interface="MS dumpbin"
  4328. fi
  4329. rm -f conftest*
  4330. fi
  4331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4332. $as_echo "$lt_cv_nm_interface" >&6; }
  4333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4334. $as_echo_n "checking whether ln -s works... " >&6; }
  4335. LN_S=$as_ln_s
  4336. if test "$LN_S" = "ln -s"; then
  4337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4338. $as_echo "yes" >&6; }
  4339. else
  4340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4341. $as_echo "no, using $LN_S" >&6; }
  4342. fi
  4343. # find the maximum length of command line arguments
  4344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4345. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4346. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4347. $as_echo_n "(cached) " >&6
  4348. else
  4349. i=0
  4350. teststring=ABCD
  4351. case $build_os in
  4352. msdosdjgpp*)
  4353. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4354. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4355. # during glob expansion). Even if it were fixed, the result of this
  4356. # check would be larger than it should be.
  4357. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4358. ;;
  4359. gnu*)
  4360. # Under GNU Hurd, this test is not required because there is
  4361. # no limit to the length of command line arguments.
  4362. # Libtool will interpret -1 as no limit whatsoever
  4363. lt_cv_sys_max_cmd_len=-1;
  4364. ;;
  4365. cygwin* | mingw* | cegcc*)
  4366. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4367. # about 5 minutes as the teststring grows exponentially.
  4368. # Worse, since 9x/ME are not pre-emptively multitasking,
  4369. # you end up with a "frozen" computer, even though with patience
  4370. # the test eventually succeeds (with a max line length of 256k).
  4371. # Instead, let's just punt: use the minimum linelength reported by
  4372. # all of the supported platforms: 8192 (on NT/2K/XP).
  4373. lt_cv_sys_max_cmd_len=8192;
  4374. ;;
  4375. mint*)
  4376. # On MiNT this can take a long time and run out of memory.
  4377. lt_cv_sys_max_cmd_len=8192;
  4378. ;;
  4379. amigaos*)
  4380. # On AmigaOS with pdksh, this test takes hours, literally.
  4381. # So we just punt and use a minimum line length of 8192.
  4382. lt_cv_sys_max_cmd_len=8192;
  4383. ;;
  4384. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  4385. # This has been around since 386BSD, at least. Likely further.
  4386. if test -x /sbin/sysctl; then
  4387. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4388. elif test -x /usr/sbin/sysctl; then
  4389. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4390. else
  4391. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4392. fi
  4393. # And add a safety zone
  4394. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4395. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4396. ;;
  4397. interix*)
  4398. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4399. lt_cv_sys_max_cmd_len=196608
  4400. ;;
  4401. os2*)
  4402. # The test takes a long time on OS/2.
  4403. lt_cv_sys_max_cmd_len=8192
  4404. ;;
  4405. osf*)
  4406. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4407. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4408. # nice to cause kernel panics so lets avoid the loop below.
  4409. # First set a reasonable default.
  4410. lt_cv_sys_max_cmd_len=16384
  4411. #
  4412. if test -x /sbin/sysconfig; then
  4413. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4414. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4415. esac
  4416. fi
  4417. ;;
  4418. sco3.2v5*)
  4419. lt_cv_sys_max_cmd_len=102400
  4420. ;;
  4421. sysv5* | sco5v6* | sysv4.2uw2*)
  4422. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4423. if test -n "$kargmax"; then
  4424. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4425. else
  4426. lt_cv_sys_max_cmd_len=32768
  4427. fi
  4428. ;;
  4429. *)
  4430. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4431. if test -n "$lt_cv_sys_max_cmd_len" && \
  4432. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4433. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4434. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4435. else
  4436. # Make teststring a little bigger before we do anything with it.
  4437. # a 1K string should be a reasonable start.
  4438. for i in 1 2 3 4 5 6 7 8; do
  4439. teststring=$teststring$teststring
  4440. done
  4441. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4442. # If test is not a shell built-in, we'll probably end up computing a
  4443. # maximum length that is only half of the actual maximum length, but
  4444. # we can't tell.
  4445. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4446. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4447. test 17 != "$i" # 1/2 MB should be enough
  4448. do
  4449. i=`expr $i + 1`
  4450. teststring=$teststring$teststring
  4451. done
  4452. # Only check the string length outside the loop.
  4453. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4454. teststring=
  4455. # Add a significant safety factor because C++ compilers can tack on
  4456. # massive amounts of additional arguments before passing them to the
  4457. # linker. It appears as though 1/2 is a usable value.
  4458. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4459. fi
  4460. ;;
  4461. esac
  4462. fi
  4463. if test -n "$lt_cv_sys_max_cmd_len"; then
  4464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4465. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4466. else
  4467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4468. $as_echo "none" >&6; }
  4469. fi
  4470. max_cmd_len=$lt_cv_sys_max_cmd_len
  4471. : ${CP="cp -f"}
  4472. : ${MV="mv -f"}
  4473. : ${RM="rm -f"}
  4474. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4475. lt_unset=unset
  4476. else
  4477. lt_unset=false
  4478. fi
  4479. # test EBCDIC or ASCII
  4480. case `echo X|tr X '\101'` in
  4481. A) # ASCII based system
  4482. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4483. lt_SP2NL='tr \040 \012'
  4484. lt_NL2SP='tr \015\012 \040\040'
  4485. ;;
  4486. *) # EBCDIC based system
  4487. lt_SP2NL='tr \100 \n'
  4488. lt_NL2SP='tr \r\n \100\100'
  4489. ;;
  4490. esac
  4491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4492. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4493. if ${lt_cv_to_host_file_cmd+:} false; then :
  4494. $as_echo_n "(cached) " >&6
  4495. else
  4496. case $host in
  4497. *-*-mingw* )
  4498. case $build in
  4499. *-*-mingw* ) # actually msys
  4500. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4501. ;;
  4502. *-*-cygwin* )
  4503. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4504. ;;
  4505. * ) # otherwise, assume *nix
  4506. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4507. ;;
  4508. esac
  4509. ;;
  4510. *-*-cygwin* )
  4511. case $build in
  4512. *-*-mingw* ) # actually msys
  4513. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4514. ;;
  4515. *-*-cygwin* )
  4516. lt_cv_to_host_file_cmd=func_convert_file_noop
  4517. ;;
  4518. * ) # otherwise, assume *nix
  4519. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4520. ;;
  4521. esac
  4522. ;;
  4523. * ) # unhandled hosts (and "normal" native builds)
  4524. lt_cv_to_host_file_cmd=func_convert_file_noop
  4525. ;;
  4526. esac
  4527. fi
  4528. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4530. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4532. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4533. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4534. $as_echo_n "(cached) " >&6
  4535. else
  4536. #assume ordinary cross tools, or native build.
  4537. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4538. case $host in
  4539. *-*-mingw* )
  4540. case $build in
  4541. *-*-mingw* ) # actually msys
  4542. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4543. ;;
  4544. esac
  4545. ;;
  4546. esac
  4547. fi
  4548. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4550. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4552. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4553. if ${lt_cv_ld_reload_flag+:} false; then :
  4554. $as_echo_n "(cached) " >&6
  4555. else
  4556. lt_cv_ld_reload_flag='-r'
  4557. fi
  4558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4559. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4560. reload_flag=$lt_cv_ld_reload_flag
  4561. case $reload_flag in
  4562. "" | " "*) ;;
  4563. *) reload_flag=" $reload_flag" ;;
  4564. esac
  4565. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4566. case $host_os in
  4567. cygwin* | mingw* | pw32* | cegcc*)
  4568. if test yes != "$GCC"; then
  4569. reload_cmds=false
  4570. fi
  4571. ;;
  4572. darwin*)
  4573. if test yes = "$GCC"; then
  4574. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  4575. else
  4576. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4577. fi
  4578. ;;
  4579. esac
  4580. if test -n "$ac_tool_prefix"; then
  4581. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4582. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4584. $as_echo_n "checking for $ac_word... " >&6; }
  4585. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4586. $as_echo_n "(cached) " >&6
  4587. else
  4588. if test -n "$OBJDUMP"; then
  4589. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4590. else
  4591. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4592. for as_dir in $PATH
  4593. do
  4594. IFS=$as_save_IFS
  4595. test -z "$as_dir" && as_dir=.
  4596. for ac_exec_ext in '' $ac_executable_extensions; do
  4597. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4598. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4599. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4600. break 2
  4601. fi
  4602. done
  4603. done
  4604. IFS=$as_save_IFS
  4605. fi
  4606. fi
  4607. OBJDUMP=$ac_cv_prog_OBJDUMP
  4608. if test -n "$OBJDUMP"; then
  4609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4610. $as_echo "$OBJDUMP" >&6; }
  4611. else
  4612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4613. $as_echo "no" >&6; }
  4614. fi
  4615. fi
  4616. if test -z "$ac_cv_prog_OBJDUMP"; then
  4617. ac_ct_OBJDUMP=$OBJDUMP
  4618. # Extract the first word of "objdump", so it can be a program name with args.
  4619. set dummy objdump; ac_word=$2
  4620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4621. $as_echo_n "checking for $ac_word... " >&6; }
  4622. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4623. $as_echo_n "(cached) " >&6
  4624. else
  4625. if test -n "$ac_ct_OBJDUMP"; then
  4626. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4627. else
  4628. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4629. for as_dir in $PATH
  4630. do
  4631. IFS=$as_save_IFS
  4632. test -z "$as_dir" && as_dir=.
  4633. for ac_exec_ext in '' $ac_executable_extensions; do
  4634. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4635. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4636. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4637. break 2
  4638. fi
  4639. done
  4640. done
  4641. IFS=$as_save_IFS
  4642. fi
  4643. fi
  4644. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4645. if test -n "$ac_ct_OBJDUMP"; then
  4646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4647. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4648. else
  4649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4650. $as_echo "no" >&6; }
  4651. fi
  4652. if test "x$ac_ct_OBJDUMP" = x; then
  4653. OBJDUMP="false"
  4654. else
  4655. case $cross_compiling:$ac_tool_warned in
  4656. yes:)
  4657. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4658. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4659. ac_tool_warned=yes ;;
  4660. esac
  4661. OBJDUMP=$ac_ct_OBJDUMP
  4662. fi
  4663. else
  4664. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4665. fi
  4666. test -z "$OBJDUMP" && OBJDUMP=objdump
  4667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4668. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4669. if ${lt_cv_deplibs_check_method+:} false; then :
  4670. $as_echo_n "(cached) " >&6
  4671. else
  4672. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4673. lt_cv_file_magic_test_file=
  4674. lt_cv_deplibs_check_method='unknown'
  4675. # Need to set the preceding variable on all platforms that support
  4676. # interlibrary dependencies.
  4677. # 'none' -- dependencies not supported.
  4678. # 'unknown' -- same as none, but documents that we really don't know.
  4679. # 'pass_all' -- all dependencies passed with no checks.
  4680. # 'test_compile' -- check by making test program.
  4681. # 'file_magic [[regex]]' -- check by looking for files in library path
  4682. # that responds to the $file_magic_cmd with a given extended regex.
  4683. # If you have 'file' or equivalent on your system and you're not sure
  4684. # whether 'pass_all' will *always* work, you probably want this one.
  4685. case $host_os in
  4686. aix[4-9]*)
  4687. lt_cv_deplibs_check_method=pass_all
  4688. ;;
  4689. beos*)
  4690. lt_cv_deplibs_check_method=pass_all
  4691. ;;
  4692. bsdi[45]*)
  4693. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4694. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4695. lt_cv_file_magic_test_file=/shlib/libc.so
  4696. ;;
  4697. cygwin*)
  4698. # func_win32_libid is a shell function defined in ltmain.sh
  4699. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4700. lt_cv_file_magic_cmd='func_win32_libid'
  4701. ;;
  4702. mingw* | pw32*)
  4703. # Base MSYS/MinGW do not provide the 'file' command needed by
  4704. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4705. # unless we find 'file', for example because we are cross-compiling.
  4706. if ( file / ) >/dev/null 2>&1; then
  4707. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4708. lt_cv_file_magic_cmd='func_win32_libid'
  4709. else
  4710. # Keep this pattern in sync with the one in func_win32_libid.
  4711. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4712. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4713. fi
  4714. ;;
  4715. cegcc*)
  4716. # use the weaker test based on 'objdump'. See mingw*.
  4717. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4718. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4719. ;;
  4720. darwin* | rhapsody*)
  4721. lt_cv_deplibs_check_method=pass_all
  4722. ;;
  4723. freebsd* | dragonfly*)
  4724. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4725. case $host_cpu in
  4726. i*86 )
  4727. # Not sure whether the presence of OpenBSD here was a mistake.
  4728. # Let's accept both of them until this is cleared up.
  4729. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4730. lt_cv_file_magic_cmd=/usr/bin/file
  4731. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4732. ;;
  4733. esac
  4734. else
  4735. lt_cv_deplibs_check_method=pass_all
  4736. fi
  4737. ;;
  4738. haiku*)
  4739. lt_cv_deplibs_check_method=pass_all
  4740. ;;
  4741. hpux10.20* | hpux11*)
  4742. lt_cv_file_magic_cmd=/usr/bin/file
  4743. case $host_cpu in
  4744. ia64*)
  4745. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4746. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4747. ;;
  4748. hppa*64*)
  4749. 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]'
  4750. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4751. ;;
  4752. *)
  4753. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4754. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4755. ;;
  4756. esac
  4757. ;;
  4758. interix[3-9]*)
  4759. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4760. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4761. ;;
  4762. irix5* | irix6* | nonstopux*)
  4763. case $LD in
  4764. *-32|*"-32 ") libmagic=32-bit;;
  4765. *-n32|*"-n32 ") libmagic=N32;;
  4766. *-64|*"-64 ") libmagic=64-bit;;
  4767. *) libmagic=never-match;;
  4768. esac
  4769. lt_cv_deplibs_check_method=pass_all
  4770. ;;
  4771. # This must be glibc/ELF.
  4772. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  4773. lt_cv_deplibs_check_method=pass_all
  4774. ;;
  4775. netbsd*)
  4776. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4777. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4778. else
  4779. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4780. fi
  4781. ;;
  4782. newos6*)
  4783. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4784. lt_cv_file_magic_cmd=/usr/bin/file
  4785. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4786. ;;
  4787. *nto* | *qnx*)
  4788. lt_cv_deplibs_check_method=pass_all
  4789. ;;
  4790. openbsd* | bitrig*)
  4791. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  4792. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4793. else
  4794. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4795. fi
  4796. ;;
  4797. osf3* | osf4* | osf5*)
  4798. lt_cv_deplibs_check_method=pass_all
  4799. ;;
  4800. rdos*)
  4801. lt_cv_deplibs_check_method=pass_all
  4802. ;;
  4803. solaris*)
  4804. lt_cv_deplibs_check_method=pass_all
  4805. ;;
  4806. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4807. lt_cv_deplibs_check_method=pass_all
  4808. ;;
  4809. sysv4 | sysv4.3*)
  4810. case $host_vendor in
  4811. motorola)
  4812. 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]'
  4813. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4814. ;;
  4815. ncr)
  4816. lt_cv_deplibs_check_method=pass_all
  4817. ;;
  4818. sequent)
  4819. lt_cv_file_magic_cmd='/bin/file'
  4820. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4821. ;;
  4822. sni)
  4823. lt_cv_file_magic_cmd='/bin/file'
  4824. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4825. lt_cv_file_magic_test_file=/lib/libc.so
  4826. ;;
  4827. siemens)
  4828. lt_cv_deplibs_check_method=pass_all
  4829. ;;
  4830. pc)
  4831. lt_cv_deplibs_check_method=pass_all
  4832. ;;
  4833. esac
  4834. ;;
  4835. tpf*)
  4836. lt_cv_deplibs_check_method=pass_all
  4837. ;;
  4838. os2*)
  4839. lt_cv_deplibs_check_method=pass_all
  4840. ;;
  4841. esac
  4842. fi
  4843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4844. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4845. file_magic_glob=
  4846. want_nocaseglob=no
  4847. if test "$build" = "$host"; then
  4848. case $host_os in
  4849. mingw* | pw32*)
  4850. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4851. want_nocaseglob=yes
  4852. else
  4853. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4854. fi
  4855. ;;
  4856. esac
  4857. fi
  4858. file_magic_cmd=$lt_cv_file_magic_cmd
  4859. deplibs_check_method=$lt_cv_deplibs_check_method
  4860. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4861. if test -n "$ac_tool_prefix"; then
  4862. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4863. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4865. $as_echo_n "checking for $ac_word... " >&6; }
  4866. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4867. $as_echo_n "(cached) " >&6
  4868. else
  4869. if test -n "$DLLTOOL"; then
  4870. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4871. else
  4872. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4873. for as_dir in $PATH
  4874. do
  4875. IFS=$as_save_IFS
  4876. test -z "$as_dir" && as_dir=.
  4877. for ac_exec_ext in '' $ac_executable_extensions; do
  4878. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4879. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4880. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4881. break 2
  4882. fi
  4883. done
  4884. done
  4885. IFS=$as_save_IFS
  4886. fi
  4887. fi
  4888. DLLTOOL=$ac_cv_prog_DLLTOOL
  4889. if test -n "$DLLTOOL"; then
  4890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4891. $as_echo "$DLLTOOL" >&6; }
  4892. else
  4893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4894. $as_echo "no" >&6; }
  4895. fi
  4896. fi
  4897. if test -z "$ac_cv_prog_DLLTOOL"; then
  4898. ac_ct_DLLTOOL=$DLLTOOL
  4899. # Extract the first word of "dlltool", so it can be a program name with args.
  4900. set dummy dlltool; ac_word=$2
  4901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4902. $as_echo_n "checking for $ac_word... " >&6; }
  4903. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4904. $as_echo_n "(cached) " >&6
  4905. else
  4906. if test -n "$ac_ct_DLLTOOL"; then
  4907. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4908. else
  4909. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4910. for as_dir in $PATH
  4911. do
  4912. IFS=$as_save_IFS
  4913. test -z "$as_dir" && as_dir=.
  4914. for ac_exec_ext in '' $ac_executable_extensions; do
  4915. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4916. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4917. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4918. break 2
  4919. fi
  4920. done
  4921. done
  4922. IFS=$as_save_IFS
  4923. fi
  4924. fi
  4925. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4926. if test -n "$ac_ct_DLLTOOL"; then
  4927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4928. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4929. else
  4930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4931. $as_echo "no" >&6; }
  4932. fi
  4933. if test "x$ac_ct_DLLTOOL" = x; then
  4934. DLLTOOL="false"
  4935. else
  4936. case $cross_compiling:$ac_tool_warned in
  4937. yes:)
  4938. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4939. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4940. ac_tool_warned=yes ;;
  4941. esac
  4942. DLLTOOL=$ac_ct_DLLTOOL
  4943. fi
  4944. else
  4945. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4946. fi
  4947. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4949. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4950. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4951. $as_echo_n "(cached) " >&6
  4952. else
  4953. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4954. case $host_os in
  4955. cygwin* | mingw* | pw32* | cegcc*)
  4956. # two different shell functions defined in ltmain.sh;
  4957. # decide which one to use based on capabilities of $DLLTOOL
  4958. case `$DLLTOOL --help 2>&1` in
  4959. *--identify-strict*)
  4960. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4961. ;;
  4962. *)
  4963. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4964. ;;
  4965. esac
  4966. ;;
  4967. *)
  4968. # fallback: assume linklib IS sharedlib
  4969. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  4970. ;;
  4971. esac
  4972. fi
  4973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4974. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4975. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4976. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4977. if test -n "$ac_tool_prefix"; then
  4978. for ac_prog in ar
  4979. do
  4980. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4981. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4983. $as_echo_n "checking for $ac_word... " >&6; }
  4984. if ${ac_cv_prog_AR+:} false; then :
  4985. $as_echo_n "(cached) " >&6
  4986. else
  4987. if test -n "$AR"; then
  4988. ac_cv_prog_AR="$AR" # Let the user override the test.
  4989. else
  4990. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4991. for as_dir in $PATH
  4992. do
  4993. IFS=$as_save_IFS
  4994. test -z "$as_dir" && as_dir=.
  4995. for ac_exec_ext in '' $ac_executable_extensions; do
  4996. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4997. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4998. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4999. break 2
  5000. fi
  5001. done
  5002. done
  5003. IFS=$as_save_IFS
  5004. fi
  5005. fi
  5006. AR=$ac_cv_prog_AR
  5007. if test -n "$AR"; then
  5008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5009. $as_echo "$AR" >&6; }
  5010. else
  5011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5012. $as_echo "no" >&6; }
  5013. fi
  5014. test -n "$AR" && break
  5015. done
  5016. fi
  5017. if test -z "$AR"; then
  5018. ac_ct_AR=$AR
  5019. for ac_prog in ar
  5020. do
  5021. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5022. set dummy $ac_prog; ac_word=$2
  5023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5024. $as_echo_n "checking for $ac_word... " >&6; }
  5025. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5026. $as_echo_n "(cached) " >&6
  5027. else
  5028. if test -n "$ac_ct_AR"; then
  5029. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5030. else
  5031. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5032. for as_dir in $PATH
  5033. do
  5034. IFS=$as_save_IFS
  5035. test -z "$as_dir" && as_dir=.
  5036. for ac_exec_ext in '' $ac_executable_extensions; do
  5037. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5038. ac_cv_prog_ac_ct_AR="$ac_prog"
  5039. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5040. break 2
  5041. fi
  5042. done
  5043. done
  5044. IFS=$as_save_IFS
  5045. fi
  5046. fi
  5047. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5048. if test -n "$ac_ct_AR"; then
  5049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5050. $as_echo "$ac_ct_AR" >&6; }
  5051. else
  5052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5053. $as_echo "no" >&6; }
  5054. fi
  5055. test -n "$ac_ct_AR" && break
  5056. done
  5057. if test "x$ac_ct_AR" = x; then
  5058. AR="false"
  5059. else
  5060. case $cross_compiling:$ac_tool_warned in
  5061. yes:)
  5062. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5063. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5064. ac_tool_warned=yes ;;
  5065. esac
  5066. AR=$ac_ct_AR
  5067. fi
  5068. fi
  5069. : ${AR=ar}
  5070. : ${AR_FLAGS=cru}
  5071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5072. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5073. if ${lt_cv_ar_at_file+:} false; then :
  5074. $as_echo_n "(cached) " >&6
  5075. else
  5076. lt_cv_ar_at_file=no
  5077. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5078. /* end confdefs.h. */
  5079. int
  5080. main ()
  5081. {
  5082. ;
  5083. return 0;
  5084. }
  5085. _ACEOF
  5086. if ac_fn_c_try_compile "$LINENO"; then :
  5087. echo conftest.$ac_objext > conftest.lst
  5088. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5089. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5090. (eval $lt_ar_try) 2>&5
  5091. ac_status=$?
  5092. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5093. test $ac_status = 0; }
  5094. if test 0 -eq "$ac_status"; then
  5095. # Ensure the archiver fails upon bogus file names.
  5096. rm -f conftest.$ac_objext libconftest.a
  5097. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5098. (eval $lt_ar_try) 2>&5
  5099. ac_status=$?
  5100. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5101. test $ac_status = 0; }
  5102. if test 0 -ne "$ac_status"; then
  5103. lt_cv_ar_at_file=@
  5104. fi
  5105. fi
  5106. rm -f conftest.* libconftest.a
  5107. fi
  5108. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5109. fi
  5110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5111. $as_echo "$lt_cv_ar_at_file" >&6; }
  5112. if test no = "$lt_cv_ar_at_file"; then
  5113. archiver_list_spec=
  5114. else
  5115. archiver_list_spec=$lt_cv_ar_at_file
  5116. fi
  5117. if test -n "$ac_tool_prefix"; then
  5118. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5119. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5121. $as_echo_n "checking for $ac_word... " >&6; }
  5122. if ${ac_cv_prog_STRIP+:} false; then :
  5123. $as_echo_n "(cached) " >&6
  5124. else
  5125. if test -n "$STRIP"; then
  5126. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5127. else
  5128. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5129. for as_dir in $PATH
  5130. do
  5131. IFS=$as_save_IFS
  5132. test -z "$as_dir" && as_dir=.
  5133. for ac_exec_ext in '' $ac_executable_extensions; do
  5134. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5135. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5136. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5137. break 2
  5138. fi
  5139. done
  5140. done
  5141. IFS=$as_save_IFS
  5142. fi
  5143. fi
  5144. STRIP=$ac_cv_prog_STRIP
  5145. if test -n "$STRIP"; then
  5146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5147. $as_echo "$STRIP" >&6; }
  5148. else
  5149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5150. $as_echo "no" >&6; }
  5151. fi
  5152. fi
  5153. if test -z "$ac_cv_prog_STRIP"; then
  5154. ac_ct_STRIP=$STRIP
  5155. # Extract the first word of "strip", so it can be a program name with args.
  5156. set dummy strip; ac_word=$2
  5157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5158. $as_echo_n "checking for $ac_word... " >&6; }
  5159. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5160. $as_echo_n "(cached) " >&6
  5161. else
  5162. if test -n "$ac_ct_STRIP"; then
  5163. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5164. else
  5165. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5166. for as_dir in $PATH
  5167. do
  5168. IFS=$as_save_IFS
  5169. test -z "$as_dir" && as_dir=.
  5170. for ac_exec_ext in '' $ac_executable_extensions; do
  5171. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5172. ac_cv_prog_ac_ct_STRIP="strip"
  5173. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5174. break 2
  5175. fi
  5176. done
  5177. done
  5178. IFS=$as_save_IFS
  5179. fi
  5180. fi
  5181. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5182. if test -n "$ac_ct_STRIP"; then
  5183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5184. $as_echo "$ac_ct_STRIP" >&6; }
  5185. else
  5186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5187. $as_echo "no" >&6; }
  5188. fi
  5189. if test "x$ac_ct_STRIP" = x; then
  5190. STRIP=":"
  5191. else
  5192. case $cross_compiling:$ac_tool_warned in
  5193. yes:)
  5194. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5195. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5196. ac_tool_warned=yes ;;
  5197. esac
  5198. STRIP=$ac_ct_STRIP
  5199. fi
  5200. else
  5201. STRIP="$ac_cv_prog_STRIP"
  5202. fi
  5203. test -z "$STRIP" && STRIP=:
  5204. if test -n "$ac_tool_prefix"; then
  5205. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5206. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5208. $as_echo_n "checking for $ac_word... " >&6; }
  5209. if ${ac_cv_prog_RANLIB+:} false; then :
  5210. $as_echo_n "(cached) " >&6
  5211. else
  5212. if test -n "$RANLIB"; then
  5213. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5214. else
  5215. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5216. for as_dir in $PATH
  5217. do
  5218. IFS=$as_save_IFS
  5219. test -z "$as_dir" && as_dir=.
  5220. for ac_exec_ext in '' $ac_executable_extensions; do
  5221. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5222. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5223. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5224. break 2
  5225. fi
  5226. done
  5227. done
  5228. IFS=$as_save_IFS
  5229. fi
  5230. fi
  5231. RANLIB=$ac_cv_prog_RANLIB
  5232. if test -n "$RANLIB"; then
  5233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5234. $as_echo "$RANLIB" >&6; }
  5235. else
  5236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5237. $as_echo "no" >&6; }
  5238. fi
  5239. fi
  5240. if test -z "$ac_cv_prog_RANLIB"; then
  5241. ac_ct_RANLIB=$RANLIB
  5242. # Extract the first word of "ranlib", so it can be a program name with args.
  5243. set dummy ranlib; ac_word=$2
  5244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5245. $as_echo_n "checking for $ac_word... " >&6; }
  5246. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5247. $as_echo_n "(cached) " >&6
  5248. else
  5249. if test -n "$ac_ct_RANLIB"; then
  5250. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5251. else
  5252. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5253. for as_dir in $PATH
  5254. do
  5255. IFS=$as_save_IFS
  5256. test -z "$as_dir" && as_dir=.
  5257. for ac_exec_ext in '' $ac_executable_extensions; do
  5258. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5259. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5260. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5261. break 2
  5262. fi
  5263. done
  5264. done
  5265. IFS=$as_save_IFS
  5266. fi
  5267. fi
  5268. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5269. if test -n "$ac_ct_RANLIB"; then
  5270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5271. $as_echo "$ac_ct_RANLIB" >&6; }
  5272. else
  5273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5274. $as_echo "no" >&6; }
  5275. fi
  5276. if test "x$ac_ct_RANLIB" = x; then
  5277. RANLIB=":"
  5278. else
  5279. case $cross_compiling:$ac_tool_warned in
  5280. yes:)
  5281. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5282. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5283. ac_tool_warned=yes ;;
  5284. esac
  5285. RANLIB=$ac_ct_RANLIB
  5286. fi
  5287. else
  5288. RANLIB="$ac_cv_prog_RANLIB"
  5289. fi
  5290. test -z "$RANLIB" && RANLIB=:
  5291. # Determine commands to create old-style static archives.
  5292. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5293. old_postinstall_cmds='chmod 644 $oldlib'
  5294. old_postuninstall_cmds=
  5295. if test -n "$RANLIB"; then
  5296. case $host_os in
  5297. bitrig* | openbsd*)
  5298. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5299. ;;
  5300. *)
  5301. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5302. ;;
  5303. esac
  5304. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5305. fi
  5306. case $host_os in
  5307. darwin*)
  5308. lock_old_archive_extraction=yes ;;
  5309. *)
  5310. lock_old_archive_extraction=no ;;
  5311. esac
  5312. # If no C compiler was specified, use CC.
  5313. LTCC=${LTCC-"$CC"}
  5314. # If no C compiler flags were specified, use CFLAGS.
  5315. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5316. # Allow CC to be a program name with arguments.
  5317. compiler=$CC
  5318. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5320. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5321. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5322. $as_echo_n "(cached) " >&6
  5323. else
  5324. # These are sane defaults that work on at least a few old systems.
  5325. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5326. # Character class describing NM global symbol codes.
  5327. symcode='[BCDEGRST]'
  5328. # Regexp to match symbols that can be accessed directly from C.
  5329. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5330. # Define system-specific variables.
  5331. case $host_os in
  5332. aix*)
  5333. symcode='[BCDT]'
  5334. ;;
  5335. cygwin* | mingw* | pw32* | cegcc*)
  5336. symcode='[ABCDGISTW]'
  5337. ;;
  5338. hpux*)
  5339. if test ia64 = "$host_cpu"; then
  5340. symcode='[ABCDEGRST]'
  5341. fi
  5342. ;;
  5343. irix* | nonstopux*)
  5344. symcode='[BCDEGRST]'
  5345. ;;
  5346. osf*)
  5347. symcode='[BCDEGQRST]'
  5348. ;;
  5349. solaris*)
  5350. symcode='[BDRT]'
  5351. ;;
  5352. sco3.2v5*)
  5353. symcode='[DT]'
  5354. ;;
  5355. sysv4.2uw2*)
  5356. symcode='[DT]'
  5357. ;;
  5358. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5359. symcode='[ABDT]'
  5360. ;;
  5361. sysv4)
  5362. symcode='[DFNSTU]'
  5363. ;;
  5364. esac
  5365. # If we're using GNU nm, then use its standard symbol codes.
  5366. case `$NM -V 2>&1` in
  5367. *GNU* | *'with BFD'*)
  5368. symcode='[ABCDGIRSTW]' ;;
  5369. esac
  5370. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5371. # Gets list of data symbols to import.
  5372. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5373. # Adjust the below global symbol transforms to fixup imported variables.
  5374. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5375. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5376. lt_c_name_lib_hook="\
  5377. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5378. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5379. else
  5380. # Disable hooks by default.
  5381. lt_cv_sys_global_symbol_to_import=
  5382. lt_cdecl_hook=
  5383. lt_c_name_hook=
  5384. lt_c_name_lib_hook=
  5385. fi
  5386. # Transform an extracted symbol line into a proper C declaration.
  5387. # Some systems (esp. on ia64) link data and code symbols differently,
  5388. # so use this general approach.
  5389. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  5390. $lt_cdecl_hook\
  5391. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  5392. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  5393. # Transform an extracted symbol line into symbol name and symbol address
  5394. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  5395. $lt_c_name_hook\
  5396. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5397. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  5398. # Transform an extracted symbol line into symbol name with lib prefix and
  5399. # symbol address.
  5400. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  5401. $lt_c_name_lib_hook\
  5402. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5403. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  5404. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  5405. # Handle CRLF in mingw tool chain
  5406. opt_cr=
  5407. case $build_os in
  5408. mingw*)
  5409. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5410. ;;
  5411. esac
  5412. # Try without a prefix underscore, then with it.
  5413. for ac_symprfx in "" "_"; do
  5414. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5415. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5416. # Write the raw and C identifiers.
  5417. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5418. # Fake it for dumpbin and say T for any non-static function,
  5419. # D for any global variable and I for any imported variable.
  5420. # Also find C++ and __fastcall symbols from MSVC++,
  5421. # which start with @ or ?.
  5422. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5423. " {last_section=section; section=\$ 3};"\
  5424. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5425. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5426. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  5427. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  5428. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  5429. " \$ 0!~/External *\|/{next};"\
  5430. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5431. " {if(hide[section]) next};"\
  5432. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  5433. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  5434. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  5435. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  5436. " ' prfx=^$ac_symprfx"
  5437. else
  5438. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5439. fi
  5440. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5441. # Check to see that the pipe works correctly.
  5442. pipe_works=no
  5443. rm -f conftest*
  5444. cat > conftest.$ac_ext <<_LT_EOF
  5445. #ifdef __cplusplus
  5446. extern "C" {
  5447. #endif
  5448. char nm_test_var;
  5449. void nm_test_func(void);
  5450. void nm_test_func(void){}
  5451. #ifdef __cplusplus
  5452. }
  5453. #endif
  5454. int main(){nm_test_var='a';nm_test_func();return(0);}
  5455. _LT_EOF
  5456. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5457. (eval $ac_compile) 2>&5
  5458. ac_status=$?
  5459. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5460. test $ac_status = 0; }; then
  5461. # Now try to grab the symbols.
  5462. nlist=conftest.nm
  5463. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5464. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5465. ac_status=$?
  5466. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5467. test $ac_status = 0; } && test -s "$nlist"; then
  5468. # Try sorting and uniquifying the output.
  5469. if sort "$nlist" | uniq > "$nlist"T; then
  5470. mv -f "$nlist"T "$nlist"
  5471. else
  5472. rm -f "$nlist"T
  5473. fi
  5474. # Make sure that we snagged all the symbols we need.
  5475. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5476. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5477. cat <<_LT_EOF > conftest.$ac_ext
  5478. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5479. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  5480. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  5481. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5482. # define LT_DLSYM_CONST
  5483. #elif defined __osf__
  5484. /* This system does not cope well with relocations in const data. */
  5485. # define LT_DLSYM_CONST
  5486. #else
  5487. # define LT_DLSYM_CONST const
  5488. #endif
  5489. #ifdef __cplusplus
  5490. extern "C" {
  5491. #endif
  5492. _LT_EOF
  5493. # Now generate the symbol file.
  5494. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5495. cat <<_LT_EOF >> conftest.$ac_ext
  5496. /* The mapping between symbol names and symbols. */
  5497. LT_DLSYM_CONST struct {
  5498. const char *name;
  5499. void *address;
  5500. }
  5501. lt__PROGRAM__LTX_preloaded_symbols[] =
  5502. {
  5503. { "@PROGRAM@", (void *) 0 },
  5504. _LT_EOF
  5505. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5506. cat <<\_LT_EOF >> conftest.$ac_ext
  5507. {0, (void *) 0}
  5508. };
  5509. /* This works around a problem in FreeBSD linker */
  5510. #ifdef FREEBSD_WORKAROUND
  5511. static const void *lt_preloaded_setup() {
  5512. return lt__PROGRAM__LTX_preloaded_symbols;
  5513. }
  5514. #endif
  5515. #ifdef __cplusplus
  5516. }
  5517. #endif
  5518. _LT_EOF
  5519. # Now try linking the two files.
  5520. mv conftest.$ac_objext conftstm.$ac_objext
  5521. lt_globsym_save_LIBS=$LIBS
  5522. lt_globsym_save_CFLAGS=$CFLAGS
  5523. LIBS=conftstm.$ac_objext
  5524. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5525. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5526. (eval $ac_link) 2>&5
  5527. ac_status=$?
  5528. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5529. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  5530. pipe_works=yes
  5531. fi
  5532. LIBS=$lt_globsym_save_LIBS
  5533. CFLAGS=$lt_globsym_save_CFLAGS
  5534. else
  5535. echo "cannot find nm_test_func in $nlist" >&5
  5536. fi
  5537. else
  5538. echo "cannot find nm_test_var in $nlist" >&5
  5539. fi
  5540. else
  5541. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5542. fi
  5543. else
  5544. echo "$progname: failed program was:" >&5
  5545. cat conftest.$ac_ext >&5
  5546. fi
  5547. rm -rf conftest* conftst*
  5548. # Do not use the global_symbol_pipe unless it works.
  5549. if test yes = "$pipe_works"; then
  5550. break
  5551. else
  5552. lt_cv_sys_global_symbol_pipe=
  5553. fi
  5554. done
  5555. fi
  5556. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5557. lt_cv_sys_global_symbol_to_cdecl=
  5558. fi
  5559. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5561. $as_echo "failed" >&6; }
  5562. else
  5563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5564. $as_echo "ok" >&6; }
  5565. fi
  5566. # Response file support.
  5567. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5568. nm_file_list_spec='@'
  5569. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5570. nm_file_list_spec='@'
  5571. fi
  5572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5573. $as_echo_n "checking for sysroot... " >&6; }
  5574. # Check whether --with-sysroot was given.
  5575. if test "${with_sysroot+set}" = set; then :
  5576. withval=$with_sysroot;
  5577. else
  5578. with_sysroot=no
  5579. fi
  5580. lt_sysroot=
  5581. case $with_sysroot in #(
  5582. yes)
  5583. if test yes = "$GCC"; then
  5584. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5585. fi
  5586. ;; #(
  5587. /*)
  5588. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5589. ;; #(
  5590. no|'')
  5591. ;; #(
  5592. *)
  5593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  5594. $as_echo "$with_sysroot" >&6; }
  5595. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5596. ;;
  5597. esac
  5598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5599. $as_echo "${lt_sysroot:-no}" >&6; }
  5600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  5601. $as_echo_n "checking for a working dd... " >&6; }
  5602. if ${ac_cv_path_lt_DD+:} false; then :
  5603. $as_echo_n "(cached) " >&6
  5604. else
  5605. printf 0123456789abcdef0123456789abcdef >conftest.i
  5606. cat conftest.i conftest.i >conftest2.i
  5607. : ${lt_DD:=$DD}
  5608. if test -z "$lt_DD"; then
  5609. ac_path_lt_DD_found=false
  5610. # Loop through the user's path and test for each of PROGNAME-LIST
  5611. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5612. for as_dir in $PATH
  5613. do
  5614. IFS=$as_save_IFS
  5615. test -z "$as_dir" && as_dir=.
  5616. for ac_prog in dd; do
  5617. for ac_exec_ext in '' $ac_executable_extensions; do
  5618. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  5619. as_fn_executable_p "$ac_path_lt_DD" || continue
  5620. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  5621. cmp -s conftest.i conftest.out \
  5622. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  5623. fi
  5624. $ac_path_lt_DD_found && break 3
  5625. done
  5626. done
  5627. done
  5628. IFS=$as_save_IFS
  5629. if test -z "$ac_cv_path_lt_DD"; then
  5630. :
  5631. fi
  5632. else
  5633. ac_cv_path_lt_DD=$lt_DD
  5634. fi
  5635. rm -f conftest.i conftest2.i conftest.out
  5636. fi
  5637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  5638. $as_echo "$ac_cv_path_lt_DD" >&6; }
  5639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  5640. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  5641. if ${lt_cv_truncate_bin+:} false; then :
  5642. $as_echo_n "(cached) " >&6
  5643. else
  5644. printf 0123456789abcdef0123456789abcdef >conftest.i
  5645. cat conftest.i conftest.i >conftest2.i
  5646. lt_cv_truncate_bin=
  5647. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  5648. cmp -s conftest.i conftest.out \
  5649. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  5650. fi
  5651. rm -f conftest.i conftest2.i conftest.out
  5652. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  5653. fi
  5654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  5655. $as_echo "$lt_cv_truncate_bin" >&6; }
  5656. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  5657. func_cc_basename ()
  5658. {
  5659. for cc_temp in $*""; do
  5660. case $cc_temp in
  5661. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  5662. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  5663. \-*) ;;
  5664. *) break;;
  5665. esac
  5666. done
  5667. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  5668. }
  5669. # Check whether --enable-libtool-lock was given.
  5670. if test "${enable_libtool_lock+set}" = set; then :
  5671. enableval=$enable_libtool_lock;
  5672. fi
  5673. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  5674. # Some flags need to be propagated to the compiler or linker for good
  5675. # libtool support.
  5676. case $host in
  5677. ia64-*-hpux*)
  5678. # Find out what ABI is being produced by ac_compile, and set mode
  5679. # options accordingly.
  5680. echo 'int i;' > conftest.$ac_ext
  5681. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5682. (eval $ac_compile) 2>&5
  5683. ac_status=$?
  5684. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5685. test $ac_status = 0; }; then
  5686. case `/usr/bin/file conftest.$ac_objext` in
  5687. *ELF-32*)
  5688. HPUX_IA64_MODE=32
  5689. ;;
  5690. *ELF-64*)
  5691. HPUX_IA64_MODE=64
  5692. ;;
  5693. esac
  5694. fi
  5695. rm -rf conftest*
  5696. ;;
  5697. *-*-irix6*)
  5698. # Find out what ABI is being produced by ac_compile, and set linker
  5699. # options accordingly.
  5700. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5701. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5702. (eval $ac_compile) 2>&5
  5703. ac_status=$?
  5704. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5705. test $ac_status = 0; }; then
  5706. if test yes = "$lt_cv_prog_gnu_ld"; then
  5707. case `/usr/bin/file conftest.$ac_objext` in
  5708. *32-bit*)
  5709. LD="${LD-ld} -melf32bsmip"
  5710. ;;
  5711. *N32*)
  5712. LD="${LD-ld} -melf32bmipn32"
  5713. ;;
  5714. *64-bit*)
  5715. LD="${LD-ld} -melf64bmip"
  5716. ;;
  5717. esac
  5718. else
  5719. case `/usr/bin/file conftest.$ac_objext` in
  5720. *32-bit*)
  5721. LD="${LD-ld} -32"
  5722. ;;
  5723. *N32*)
  5724. LD="${LD-ld} -n32"
  5725. ;;
  5726. *64-bit*)
  5727. LD="${LD-ld} -64"
  5728. ;;
  5729. esac
  5730. fi
  5731. fi
  5732. rm -rf conftest*
  5733. ;;
  5734. mips64*-*linux*)
  5735. # Find out what ABI is being produced by ac_compile, and set linker
  5736. # options accordingly.
  5737. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5738. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5739. (eval $ac_compile) 2>&5
  5740. ac_status=$?
  5741. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5742. test $ac_status = 0; }; then
  5743. emul=elf
  5744. case `/usr/bin/file conftest.$ac_objext` in
  5745. *32-bit*)
  5746. emul="${emul}32"
  5747. ;;
  5748. *64-bit*)
  5749. emul="${emul}64"
  5750. ;;
  5751. esac
  5752. case `/usr/bin/file conftest.$ac_objext` in
  5753. *MSB*)
  5754. emul="${emul}btsmip"
  5755. ;;
  5756. *LSB*)
  5757. emul="${emul}ltsmip"
  5758. ;;
  5759. esac
  5760. case `/usr/bin/file conftest.$ac_objext` in
  5761. *N32*)
  5762. emul="${emul}n32"
  5763. ;;
  5764. esac
  5765. LD="${LD-ld} -m $emul"
  5766. fi
  5767. rm -rf conftest*
  5768. ;;
  5769. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5770. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5771. # Find out what ABI is being produced by ac_compile, and set linker
  5772. # options accordingly. Note that the listed cases only cover the
  5773. # situations where additional linker options are needed (such as when
  5774. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  5775. # vice versa); the common cases where no linker options are needed do
  5776. # not appear in the list.
  5777. echo 'int i;' > conftest.$ac_ext
  5778. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5779. (eval $ac_compile) 2>&5
  5780. ac_status=$?
  5781. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5782. test $ac_status = 0; }; then
  5783. case `/usr/bin/file conftest.o` in
  5784. *32-bit*)
  5785. case $host in
  5786. x86_64-*kfreebsd*-gnu)
  5787. LD="${LD-ld} -m elf_i386_fbsd"
  5788. ;;
  5789. x86_64-*linux*)
  5790. case `/usr/bin/file conftest.o` in
  5791. *x86-64*)
  5792. LD="${LD-ld} -m elf32_x86_64"
  5793. ;;
  5794. *)
  5795. LD="${LD-ld} -m elf_i386"
  5796. ;;
  5797. esac
  5798. ;;
  5799. powerpc64le-*linux*)
  5800. LD="${LD-ld} -m elf32lppclinux"
  5801. ;;
  5802. powerpc64-*linux*)
  5803. LD="${LD-ld} -m elf32ppclinux"
  5804. ;;
  5805. s390x-*linux*)
  5806. LD="${LD-ld} -m elf_s390"
  5807. ;;
  5808. sparc64-*linux*)
  5809. LD="${LD-ld} -m elf32_sparc"
  5810. ;;
  5811. esac
  5812. ;;
  5813. *64-bit*)
  5814. case $host in
  5815. x86_64-*kfreebsd*-gnu)
  5816. LD="${LD-ld} -m elf_x86_64_fbsd"
  5817. ;;
  5818. x86_64-*linux*)
  5819. LD="${LD-ld} -m elf_x86_64"
  5820. ;;
  5821. powerpcle-*linux*)
  5822. LD="${LD-ld} -m elf64lppc"
  5823. ;;
  5824. powerpc-*linux*)
  5825. LD="${LD-ld} -m elf64ppc"
  5826. ;;
  5827. s390*-*linux*|s390*-*tpf*)
  5828. LD="${LD-ld} -m elf64_s390"
  5829. ;;
  5830. sparc*-*linux*)
  5831. LD="${LD-ld} -m elf64_sparc"
  5832. ;;
  5833. esac
  5834. ;;
  5835. esac
  5836. fi
  5837. rm -rf conftest*
  5838. ;;
  5839. *-*-sco3.2v5*)
  5840. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5841. SAVE_CFLAGS=$CFLAGS
  5842. CFLAGS="$CFLAGS -belf"
  5843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5844. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5845. if ${lt_cv_cc_needs_belf+:} false; then :
  5846. $as_echo_n "(cached) " >&6
  5847. else
  5848. ac_ext=c
  5849. ac_cpp='$CPP $CPPFLAGS'
  5850. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5851. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5852. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5854. /* end confdefs.h. */
  5855. int
  5856. main ()
  5857. {
  5858. ;
  5859. return 0;
  5860. }
  5861. _ACEOF
  5862. if ac_fn_c_try_link "$LINENO"; then :
  5863. lt_cv_cc_needs_belf=yes
  5864. else
  5865. lt_cv_cc_needs_belf=no
  5866. fi
  5867. rm -f core conftest.err conftest.$ac_objext \
  5868. conftest$ac_exeext conftest.$ac_ext
  5869. ac_ext=c
  5870. ac_cpp='$CPP $CPPFLAGS'
  5871. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5872. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5873. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5874. fi
  5875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5876. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5877. if test yes != "$lt_cv_cc_needs_belf"; then
  5878. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5879. CFLAGS=$SAVE_CFLAGS
  5880. fi
  5881. ;;
  5882. *-*solaris*)
  5883. # Find out what ABI is being produced by ac_compile, and set linker
  5884. # options accordingly.
  5885. echo 'int i;' > conftest.$ac_ext
  5886. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5887. (eval $ac_compile) 2>&5
  5888. ac_status=$?
  5889. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5890. test $ac_status = 0; }; then
  5891. case `/usr/bin/file conftest.o` in
  5892. *64-bit*)
  5893. case $lt_cv_prog_gnu_ld in
  5894. yes*)
  5895. case $host in
  5896. i?86-*-solaris*|x86_64-*-solaris*)
  5897. LD="${LD-ld} -m elf_x86_64"
  5898. ;;
  5899. sparc*-*-solaris*)
  5900. LD="${LD-ld} -m elf64_sparc"
  5901. ;;
  5902. esac
  5903. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5904. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5905. LD=${LD-ld}_sol2
  5906. fi
  5907. ;;
  5908. *)
  5909. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5910. LD="${LD-ld} -64"
  5911. fi
  5912. ;;
  5913. esac
  5914. ;;
  5915. esac
  5916. fi
  5917. rm -rf conftest*
  5918. ;;
  5919. esac
  5920. need_locks=$enable_libtool_lock
  5921. if test -n "$ac_tool_prefix"; then
  5922. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5923. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5925. $as_echo_n "checking for $ac_word... " >&6; }
  5926. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5927. $as_echo_n "(cached) " >&6
  5928. else
  5929. if test -n "$MANIFEST_TOOL"; then
  5930. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5931. else
  5932. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5933. for as_dir in $PATH
  5934. do
  5935. IFS=$as_save_IFS
  5936. test -z "$as_dir" && as_dir=.
  5937. for ac_exec_ext in '' $ac_executable_extensions; do
  5938. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5939. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5940. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5941. break 2
  5942. fi
  5943. done
  5944. done
  5945. IFS=$as_save_IFS
  5946. fi
  5947. fi
  5948. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5949. if test -n "$MANIFEST_TOOL"; then
  5950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5951. $as_echo "$MANIFEST_TOOL" >&6; }
  5952. else
  5953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5954. $as_echo "no" >&6; }
  5955. fi
  5956. fi
  5957. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5958. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5959. # Extract the first word of "mt", so it can be a program name with args.
  5960. set dummy mt; ac_word=$2
  5961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5962. $as_echo_n "checking for $ac_word... " >&6; }
  5963. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5964. $as_echo_n "(cached) " >&6
  5965. else
  5966. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5967. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5968. else
  5969. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5970. for as_dir in $PATH
  5971. do
  5972. IFS=$as_save_IFS
  5973. test -z "$as_dir" && as_dir=.
  5974. for ac_exec_ext in '' $ac_executable_extensions; do
  5975. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5976. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5977. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5978. break 2
  5979. fi
  5980. done
  5981. done
  5982. IFS=$as_save_IFS
  5983. fi
  5984. fi
  5985. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5986. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5988. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5989. else
  5990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5991. $as_echo "no" >&6; }
  5992. fi
  5993. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5994. MANIFEST_TOOL=":"
  5995. else
  5996. case $cross_compiling:$ac_tool_warned in
  5997. yes:)
  5998. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5999. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6000. ac_tool_warned=yes ;;
  6001. esac
  6002. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6003. fi
  6004. else
  6005. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6006. fi
  6007. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6009. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6010. if ${lt_cv_path_mainfest_tool+:} false; then :
  6011. $as_echo_n "(cached) " >&6
  6012. else
  6013. lt_cv_path_mainfest_tool=no
  6014. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6015. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6016. cat conftest.err >&5
  6017. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6018. lt_cv_path_mainfest_tool=yes
  6019. fi
  6020. rm -f conftest*
  6021. fi
  6022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6023. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6024. if test yes != "$lt_cv_path_mainfest_tool"; then
  6025. MANIFEST_TOOL=:
  6026. fi
  6027. case $host_os in
  6028. rhapsody* | darwin*)
  6029. if test -n "$ac_tool_prefix"; then
  6030. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6031. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6033. $as_echo_n "checking for $ac_word... " >&6; }
  6034. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6035. $as_echo_n "(cached) " >&6
  6036. else
  6037. if test -n "$DSYMUTIL"; then
  6038. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6039. else
  6040. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6041. for as_dir in $PATH
  6042. do
  6043. IFS=$as_save_IFS
  6044. test -z "$as_dir" && as_dir=.
  6045. for ac_exec_ext in '' $ac_executable_extensions; do
  6046. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6047. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6048. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6049. break 2
  6050. fi
  6051. done
  6052. done
  6053. IFS=$as_save_IFS
  6054. fi
  6055. fi
  6056. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6057. if test -n "$DSYMUTIL"; then
  6058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6059. $as_echo "$DSYMUTIL" >&6; }
  6060. else
  6061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6062. $as_echo "no" >&6; }
  6063. fi
  6064. fi
  6065. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6066. ac_ct_DSYMUTIL=$DSYMUTIL
  6067. # Extract the first word of "dsymutil", so it can be a program name with args.
  6068. set dummy dsymutil; ac_word=$2
  6069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6070. $as_echo_n "checking for $ac_word... " >&6; }
  6071. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6072. $as_echo_n "(cached) " >&6
  6073. else
  6074. if test -n "$ac_ct_DSYMUTIL"; then
  6075. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6076. else
  6077. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6078. for as_dir in $PATH
  6079. do
  6080. IFS=$as_save_IFS
  6081. test -z "$as_dir" && as_dir=.
  6082. for ac_exec_ext in '' $ac_executable_extensions; do
  6083. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6084. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6085. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6086. break 2
  6087. fi
  6088. done
  6089. done
  6090. IFS=$as_save_IFS
  6091. fi
  6092. fi
  6093. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6094. if test -n "$ac_ct_DSYMUTIL"; then
  6095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6096. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6097. else
  6098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6099. $as_echo "no" >&6; }
  6100. fi
  6101. if test "x$ac_ct_DSYMUTIL" = x; then
  6102. DSYMUTIL=":"
  6103. else
  6104. case $cross_compiling:$ac_tool_warned in
  6105. yes:)
  6106. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6107. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6108. ac_tool_warned=yes ;;
  6109. esac
  6110. DSYMUTIL=$ac_ct_DSYMUTIL
  6111. fi
  6112. else
  6113. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6114. fi
  6115. if test -n "$ac_tool_prefix"; then
  6116. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6117. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6118. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6119. $as_echo_n "checking for $ac_word... " >&6; }
  6120. if ${ac_cv_prog_NMEDIT+:} false; then :
  6121. $as_echo_n "(cached) " >&6
  6122. else
  6123. if test -n "$NMEDIT"; then
  6124. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6125. else
  6126. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6127. for as_dir in $PATH
  6128. do
  6129. IFS=$as_save_IFS
  6130. test -z "$as_dir" && as_dir=.
  6131. for ac_exec_ext in '' $ac_executable_extensions; do
  6132. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6133. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6134. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6135. break 2
  6136. fi
  6137. done
  6138. done
  6139. IFS=$as_save_IFS
  6140. fi
  6141. fi
  6142. NMEDIT=$ac_cv_prog_NMEDIT
  6143. if test -n "$NMEDIT"; then
  6144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6145. $as_echo "$NMEDIT" >&6; }
  6146. else
  6147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6148. $as_echo "no" >&6; }
  6149. fi
  6150. fi
  6151. if test -z "$ac_cv_prog_NMEDIT"; then
  6152. ac_ct_NMEDIT=$NMEDIT
  6153. # Extract the first word of "nmedit", so it can be a program name with args.
  6154. set dummy nmedit; ac_word=$2
  6155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6156. $as_echo_n "checking for $ac_word... " >&6; }
  6157. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6158. $as_echo_n "(cached) " >&6
  6159. else
  6160. if test -n "$ac_ct_NMEDIT"; then
  6161. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6162. else
  6163. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6164. for as_dir in $PATH
  6165. do
  6166. IFS=$as_save_IFS
  6167. test -z "$as_dir" && as_dir=.
  6168. for ac_exec_ext in '' $ac_executable_extensions; do
  6169. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6170. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6171. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6172. break 2
  6173. fi
  6174. done
  6175. done
  6176. IFS=$as_save_IFS
  6177. fi
  6178. fi
  6179. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6180. if test -n "$ac_ct_NMEDIT"; then
  6181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6182. $as_echo "$ac_ct_NMEDIT" >&6; }
  6183. else
  6184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6185. $as_echo "no" >&6; }
  6186. fi
  6187. if test "x$ac_ct_NMEDIT" = x; then
  6188. NMEDIT=":"
  6189. else
  6190. case $cross_compiling:$ac_tool_warned in
  6191. yes:)
  6192. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6193. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6194. ac_tool_warned=yes ;;
  6195. esac
  6196. NMEDIT=$ac_ct_NMEDIT
  6197. fi
  6198. else
  6199. NMEDIT="$ac_cv_prog_NMEDIT"
  6200. fi
  6201. if test -n "$ac_tool_prefix"; then
  6202. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6203. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6205. $as_echo_n "checking for $ac_word... " >&6; }
  6206. if ${ac_cv_prog_LIPO+:} false; then :
  6207. $as_echo_n "(cached) " >&6
  6208. else
  6209. if test -n "$LIPO"; then
  6210. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6211. else
  6212. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6213. for as_dir in $PATH
  6214. do
  6215. IFS=$as_save_IFS
  6216. test -z "$as_dir" && as_dir=.
  6217. for ac_exec_ext in '' $ac_executable_extensions; do
  6218. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6219. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6220. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6221. break 2
  6222. fi
  6223. done
  6224. done
  6225. IFS=$as_save_IFS
  6226. fi
  6227. fi
  6228. LIPO=$ac_cv_prog_LIPO
  6229. if test -n "$LIPO"; then
  6230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6231. $as_echo "$LIPO" >&6; }
  6232. else
  6233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6234. $as_echo "no" >&6; }
  6235. fi
  6236. fi
  6237. if test -z "$ac_cv_prog_LIPO"; then
  6238. ac_ct_LIPO=$LIPO
  6239. # Extract the first word of "lipo", so it can be a program name with args.
  6240. set dummy lipo; ac_word=$2
  6241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6242. $as_echo_n "checking for $ac_word... " >&6; }
  6243. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6244. $as_echo_n "(cached) " >&6
  6245. else
  6246. if test -n "$ac_ct_LIPO"; then
  6247. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6248. else
  6249. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6250. for as_dir in $PATH
  6251. do
  6252. IFS=$as_save_IFS
  6253. test -z "$as_dir" && as_dir=.
  6254. for ac_exec_ext in '' $ac_executable_extensions; do
  6255. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6256. ac_cv_prog_ac_ct_LIPO="lipo"
  6257. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6258. break 2
  6259. fi
  6260. done
  6261. done
  6262. IFS=$as_save_IFS
  6263. fi
  6264. fi
  6265. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6266. if test -n "$ac_ct_LIPO"; then
  6267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6268. $as_echo "$ac_ct_LIPO" >&6; }
  6269. else
  6270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6271. $as_echo "no" >&6; }
  6272. fi
  6273. if test "x$ac_ct_LIPO" = x; then
  6274. LIPO=":"
  6275. else
  6276. case $cross_compiling:$ac_tool_warned in
  6277. yes:)
  6278. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6279. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6280. ac_tool_warned=yes ;;
  6281. esac
  6282. LIPO=$ac_ct_LIPO
  6283. fi
  6284. else
  6285. LIPO="$ac_cv_prog_LIPO"
  6286. fi
  6287. if test -n "$ac_tool_prefix"; then
  6288. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6289. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6291. $as_echo_n "checking for $ac_word... " >&6; }
  6292. if ${ac_cv_prog_OTOOL+:} false; then :
  6293. $as_echo_n "(cached) " >&6
  6294. else
  6295. if test -n "$OTOOL"; then
  6296. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6297. else
  6298. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6299. for as_dir in $PATH
  6300. do
  6301. IFS=$as_save_IFS
  6302. test -z "$as_dir" && as_dir=.
  6303. for ac_exec_ext in '' $ac_executable_extensions; do
  6304. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6305. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6306. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6307. break 2
  6308. fi
  6309. done
  6310. done
  6311. IFS=$as_save_IFS
  6312. fi
  6313. fi
  6314. OTOOL=$ac_cv_prog_OTOOL
  6315. if test -n "$OTOOL"; then
  6316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6317. $as_echo "$OTOOL" >&6; }
  6318. else
  6319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6320. $as_echo "no" >&6; }
  6321. fi
  6322. fi
  6323. if test -z "$ac_cv_prog_OTOOL"; then
  6324. ac_ct_OTOOL=$OTOOL
  6325. # Extract the first word of "otool", so it can be a program name with args.
  6326. set dummy otool; ac_word=$2
  6327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6328. $as_echo_n "checking for $ac_word... " >&6; }
  6329. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6330. $as_echo_n "(cached) " >&6
  6331. else
  6332. if test -n "$ac_ct_OTOOL"; then
  6333. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6334. else
  6335. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6336. for as_dir in $PATH
  6337. do
  6338. IFS=$as_save_IFS
  6339. test -z "$as_dir" && as_dir=.
  6340. for ac_exec_ext in '' $ac_executable_extensions; do
  6341. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6342. ac_cv_prog_ac_ct_OTOOL="otool"
  6343. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6344. break 2
  6345. fi
  6346. done
  6347. done
  6348. IFS=$as_save_IFS
  6349. fi
  6350. fi
  6351. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6352. if test -n "$ac_ct_OTOOL"; then
  6353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6354. $as_echo "$ac_ct_OTOOL" >&6; }
  6355. else
  6356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6357. $as_echo "no" >&6; }
  6358. fi
  6359. if test "x$ac_ct_OTOOL" = x; then
  6360. OTOOL=":"
  6361. else
  6362. case $cross_compiling:$ac_tool_warned in
  6363. yes:)
  6364. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6365. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6366. ac_tool_warned=yes ;;
  6367. esac
  6368. OTOOL=$ac_ct_OTOOL
  6369. fi
  6370. else
  6371. OTOOL="$ac_cv_prog_OTOOL"
  6372. fi
  6373. if test -n "$ac_tool_prefix"; then
  6374. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6375. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6377. $as_echo_n "checking for $ac_word... " >&6; }
  6378. if ${ac_cv_prog_OTOOL64+:} false; then :
  6379. $as_echo_n "(cached) " >&6
  6380. else
  6381. if test -n "$OTOOL64"; then
  6382. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6383. else
  6384. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6385. for as_dir in $PATH
  6386. do
  6387. IFS=$as_save_IFS
  6388. test -z "$as_dir" && as_dir=.
  6389. for ac_exec_ext in '' $ac_executable_extensions; do
  6390. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6391. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6392. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6393. break 2
  6394. fi
  6395. done
  6396. done
  6397. IFS=$as_save_IFS
  6398. fi
  6399. fi
  6400. OTOOL64=$ac_cv_prog_OTOOL64
  6401. if test -n "$OTOOL64"; then
  6402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6403. $as_echo "$OTOOL64" >&6; }
  6404. else
  6405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6406. $as_echo "no" >&6; }
  6407. fi
  6408. fi
  6409. if test -z "$ac_cv_prog_OTOOL64"; then
  6410. ac_ct_OTOOL64=$OTOOL64
  6411. # Extract the first word of "otool64", so it can be a program name with args.
  6412. set dummy otool64; ac_word=$2
  6413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6414. $as_echo_n "checking for $ac_word... " >&6; }
  6415. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6416. $as_echo_n "(cached) " >&6
  6417. else
  6418. if test -n "$ac_ct_OTOOL64"; then
  6419. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6420. else
  6421. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6422. for as_dir in $PATH
  6423. do
  6424. IFS=$as_save_IFS
  6425. test -z "$as_dir" && as_dir=.
  6426. for ac_exec_ext in '' $ac_executable_extensions; do
  6427. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6428. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6429. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6430. break 2
  6431. fi
  6432. done
  6433. done
  6434. IFS=$as_save_IFS
  6435. fi
  6436. fi
  6437. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6438. if test -n "$ac_ct_OTOOL64"; then
  6439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6440. $as_echo "$ac_ct_OTOOL64" >&6; }
  6441. else
  6442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6443. $as_echo "no" >&6; }
  6444. fi
  6445. if test "x$ac_ct_OTOOL64" = x; then
  6446. OTOOL64=":"
  6447. else
  6448. case $cross_compiling:$ac_tool_warned in
  6449. yes:)
  6450. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6451. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6452. ac_tool_warned=yes ;;
  6453. esac
  6454. OTOOL64=$ac_ct_OTOOL64
  6455. fi
  6456. else
  6457. OTOOL64="$ac_cv_prog_OTOOL64"
  6458. fi
  6459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6460. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6461. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6462. $as_echo_n "(cached) " >&6
  6463. else
  6464. lt_cv_apple_cc_single_mod=no
  6465. if test -z "$LT_MULTI_MODULE"; then
  6466. # By default we will add the -single_module flag. You can override
  6467. # by either setting the environment variable LT_MULTI_MODULE
  6468. # non-empty at configure time, or by adding -multi_module to the
  6469. # link flags.
  6470. rm -rf libconftest.dylib*
  6471. echo "int foo(void){return 1;}" > conftest.c
  6472. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6473. -dynamiclib -Wl,-single_module conftest.c" >&5
  6474. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6475. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6476. _lt_result=$?
  6477. # If there is a non-empty error log, and "single_module"
  6478. # appears in it, assume the flag caused a linker warning
  6479. if test -s conftest.err && $GREP single_module conftest.err; then
  6480. cat conftest.err >&5
  6481. # Otherwise, if the output was created with a 0 exit code from
  6482. # the compiler, it worked.
  6483. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  6484. lt_cv_apple_cc_single_mod=yes
  6485. else
  6486. cat conftest.err >&5
  6487. fi
  6488. rm -rf libconftest.dylib*
  6489. rm -f conftest.*
  6490. fi
  6491. fi
  6492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6493. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6495. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6496. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6497. $as_echo_n "(cached) " >&6
  6498. else
  6499. lt_cv_ld_exported_symbols_list=no
  6500. save_LDFLAGS=$LDFLAGS
  6501. echo "_main" > conftest.sym
  6502. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6503. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6504. /* end confdefs.h. */
  6505. int
  6506. main ()
  6507. {
  6508. ;
  6509. return 0;
  6510. }
  6511. _ACEOF
  6512. if ac_fn_c_try_link "$LINENO"; then :
  6513. lt_cv_ld_exported_symbols_list=yes
  6514. else
  6515. lt_cv_ld_exported_symbols_list=no
  6516. fi
  6517. rm -f core conftest.err conftest.$ac_objext \
  6518. conftest$ac_exeext conftest.$ac_ext
  6519. LDFLAGS=$save_LDFLAGS
  6520. fi
  6521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6522. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6524. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6525. if ${lt_cv_ld_force_load+:} false; then :
  6526. $as_echo_n "(cached) " >&6
  6527. else
  6528. lt_cv_ld_force_load=no
  6529. cat > conftest.c << _LT_EOF
  6530. int forced_loaded() { return 2;}
  6531. _LT_EOF
  6532. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6533. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6534. echo "$AR cru libconftest.a conftest.o" >&5
  6535. $AR cru libconftest.a conftest.o 2>&5
  6536. echo "$RANLIB libconftest.a" >&5
  6537. $RANLIB libconftest.a 2>&5
  6538. cat > conftest.c << _LT_EOF
  6539. int main() { return 0;}
  6540. _LT_EOF
  6541. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6542. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6543. _lt_result=$?
  6544. if test -s conftest.err && $GREP force_load conftest.err; then
  6545. cat conftest.err >&5
  6546. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  6547. lt_cv_ld_force_load=yes
  6548. else
  6549. cat conftest.err >&5
  6550. fi
  6551. rm -f conftest.err libconftest.a conftest conftest.c
  6552. rm -rf conftest.dSYM
  6553. fi
  6554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6555. $as_echo "$lt_cv_ld_force_load" >&6; }
  6556. case $host_os in
  6557. rhapsody* | darwin1.[012])
  6558. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  6559. darwin1.*)
  6560. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6561. darwin*) # darwin 5.x on
  6562. # if running on 10.5 or later, the deployment target defaults
  6563. # to the OS version, if on x86, and 10.4, the deployment
  6564. # target defaults to 10.4. Don't you love it?
  6565. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6566. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6567. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  6568. 10.[012][,.]*)
  6569. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6570. 10.*)
  6571. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  6572. esac
  6573. ;;
  6574. esac
  6575. if test yes = "$lt_cv_apple_cc_single_mod"; then
  6576. _lt_dar_single_mod='$single_module'
  6577. fi
  6578. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  6579. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  6580. else
  6581. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  6582. fi
  6583. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  6584. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6585. else
  6586. _lt_dsymutil=
  6587. fi
  6588. ;;
  6589. esac
  6590. # func_munge_path_list VARIABLE PATH
  6591. # -----------------------------------
  6592. # VARIABLE is name of variable containing _space_ separated list of
  6593. # directories to be munged by the contents of PATH, which is string
  6594. # having a format:
  6595. # "DIR[:DIR]:"
  6596. # string "DIR[ DIR]" will be prepended to VARIABLE
  6597. # ":DIR[:DIR]"
  6598. # string "DIR[ DIR]" will be appended to VARIABLE
  6599. # "DIRP[:DIRP]::[DIRA:]DIRA"
  6600. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  6601. # "DIRA[ DIRA]" will be appended to VARIABLE
  6602. # "DIR[:DIR]"
  6603. # VARIABLE will be replaced by "DIR[ DIR]"
  6604. func_munge_path_list ()
  6605. {
  6606. case x$2 in
  6607. x)
  6608. ;;
  6609. *:)
  6610. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  6611. ;;
  6612. x:*)
  6613. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  6614. ;;
  6615. *::*)
  6616. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  6617. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  6618. ;;
  6619. *)
  6620. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  6621. ;;
  6622. esac
  6623. }
  6624. ac_ext=c
  6625. ac_cpp='$CPP $CPPFLAGS'
  6626. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6627. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6628. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6630. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6631. # On Suns, sometimes $CPP names a directory.
  6632. if test -n "$CPP" && test -d "$CPP"; then
  6633. CPP=
  6634. fi
  6635. if test -z "$CPP"; then
  6636. if ${ac_cv_prog_CPP+:} false; then :
  6637. $as_echo_n "(cached) " >&6
  6638. else
  6639. # Double quotes because CPP needs to be expanded
  6640. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6641. do
  6642. ac_preproc_ok=false
  6643. for ac_c_preproc_warn_flag in '' yes
  6644. do
  6645. # Use a header file that comes with gcc, so configuring glibc
  6646. # with a fresh cross-compiler works.
  6647. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6648. # <limits.h> exists even on freestanding compilers.
  6649. # On the NeXT, cc -E runs the code through the compiler's parser,
  6650. # not just through cpp. "Syntax error" is here to catch this case.
  6651. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6652. /* end confdefs.h. */
  6653. #ifdef __STDC__
  6654. # include <limits.h>
  6655. #else
  6656. # include <assert.h>
  6657. #endif
  6658. Syntax error
  6659. _ACEOF
  6660. if ac_fn_c_try_cpp "$LINENO"; then :
  6661. else
  6662. # Broken: fails on valid input.
  6663. continue
  6664. fi
  6665. rm -f conftest.err conftest.i conftest.$ac_ext
  6666. # OK, works on sane cases. Now check whether nonexistent headers
  6667. # can be detected and how.
  6668. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6669. /* end confdefs.h. */
  6670. #include <ac_nonexistent.h>
  6671. _ACEOF
  6672. if ac_fn_c_try_cpp "$LINENO"; then :
  6673. # Broken: success on invalid input.
  6674. continue
  6675. else
  6676. # Passes both tests.
  6677. ac_preproc_ok=:
  6678. break
  6679. fi
  6680. rm -f conftest.err conftest.i conftest.$ac_ext
  6681. done
  6682. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6683. rm -f conftest.i conftest.err conftest.$ac_ext
  6684. if $ac_preproc_ok; then :
  6685. break
  6686. fi
  6687. done
  6688. ac_cv_prog_CPP=$CPP
  6689. fi
  6690. CPP=$ac_cv_prog_CPP
  6691. else
  6692. ac_cv_prog_CPP=$CPP
  6693. fi
  6694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6695. $as_echo "$CPP" >&6; }
  6696. ac_preproc_ok=false
  6697. for ac_c_preproc_warn_flag in '' yes
  6698. do
  6699. # Use a header file that comes with gcc, so configuring glibc
  6700. # with a fresh cross-compiler works.
  6701. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6702. # <limits.h> exists even on freestanding compilers.
  6703. # On the NeXT, cc -E runs the code through the compiler's parser,
  6704. # not just through cpp. "Syntax error" is here to catch this case.
  6705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6706. /* end confdefs.h. */
  6707. #ifdef __STDC__
  6708. # include <limits.h>
  6709. #else
  6710. # include <assert.h>
  6711. #endif
  6712. Syntax error
  6713. _ACEOF
  6714. if ac_fn_c_try_cpp "$LINENO"; then :
  6715. else
  6716. # Broken: fails on valid input.
  6717. continue
  6718. fi
  6719. rm -f conftest.err conftest.i conftest.$ac_ext
  6720. # OK, works on sane cases. Now check whether nonexistent headers
  6721. # can be detected and how.
  6722. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6723. /* end confdefs.h. */
  6724. #include <ac_nonexistent.h>
  6725. _ACEOF
  6726. if ac_fn_c_try_cpp "$LINENO"; then :
  6727. # Broken: success on invalid input.
  6728. continue
  6729. else
  6730. # Passes both tests.
  6731. ac_preproc_ok=:
  6732. break
  6733. fi
  6734. rm -f conftest.err conftest.i conftest.$ac_ext
  6735. done
  6736. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6737. rm -f conftest.i conftest.err conftest.$ac_ext
  6738. if $ac_preproc_ok; then :
  6739. else
  6740. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6741. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6742. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6743. See \`config.log' for more details" "$LINENO" 5; }
  6744. fi
  6745. ac_ext=c
  6746. ac_cpp='$CPP $CPPFLAGS'
  6747. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6748. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6749. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6751. $as_echo_n "checking for ANSI C header files... " >&6; }
  6752. if ${ac_cv_header_stdc+:} false; then :
  6753. $as_echo_n "(cached) " >&6
  6754. else
  6755. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6756. /* end confdefs.h. */
  6757. #include <stdlib.h>
  6758. #include <stdarg.h>
  6759. #include <string.h>
  6760. #include <float.h>
  6761. int
  6762. main ()
  6763. {
  6764. ;
  6765. return 0;
  6766. }
  6767. _ACEOF
  6768. if ac_fn_c_try_compile "$LINENO"; then :
  6769. ac_cv_header_stdc=yes
  6770. else
  6771. ac_cv_header_stdc=no
  6772. fi
  6773. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6774. if test $ac_cv_header_stdc = yes; then
  6775. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6776. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6777. /* end confdefs.h. */
  6778. #include <string.h>
  6779. _ACEOF
  6780. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6781. $EGREP "memchr" >/dev/null 2>&1; then :
  6782. else
  6783. ac_cv_header_stdc=no
  6784. fi
  6785. rm -f conftest*
  6786. fi
  6787. if test $ac_cv_header_stdc = yes; then
  6788. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6789. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6790. /* end confdefs.h. */
  6791. #include <stdlib.h>
  6792. _ACEOF
  6793. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6794. $EGREP "free" >/dev/null 2>&1; then :
  6795. else
  6796. ac_cv_header_stdc=no
  6797. fi
  6798. rm -f conftest*
  6799. fi
  6800. if test $ac_cv_header_stdc = yes; then
  6801. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6802. if test "$cross_compiling" = yes; then :
  6803. :
  6804. else
  6805. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6806. /* end confdefs.h. */
  6807. #include <ctype.h>
  6808. #include <stdlib.h>
  6809. #if ((' ' & 0x0FF) == 0x020)
  6810. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6811. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6812. #else
  6813. # define ISLOWER(c) \
  6814. (('a' <= (c) && (c) <= 'i') \
  6815. || ('j' <= (c) && (c) <= 'r') \
  6816. || ('s' <= (c) && (c) <= 'z'))
  6817. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6818. #endif
  6819. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6820. int
  6821. main ()
  6822. {
  6823. int i;
  6824. for (i = 0; i < 256; i++)
  6825. if (XOR (islower (i), ISLOWER (i))
  6826. || toupper (i) != TOUPPER (i))
  6827. return 2;
  6828. return 0;
  6829. }
  6830. _ACEOF
  6831. if ac_fn_c_try_run "$LINENO"; then :
  6832. else
  6833. ac_cv_header_stdc=no
  6834. fi
  6835. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6836. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6837. fi
  6838. fi
  6839. fi
  6840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6841. $as_echo "$ac_cv_header_stdc" >&6; }
  6842. if test $ac_cv_header_stdc = yes; then
  6843. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6844. fi
  6845. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6846. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6847. inttypes.h stdint.h unistd.h
  6848. do :
  6849. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6850. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6851. "
  6852. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6853. cat >>confdefs.h <<_ACEOF
  6854. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6855. _ACEOF
  6856. fi
  6857. done
  6858. for ac_header in dlfcn.h
  6859. do :
  6860. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6861. "
  6862. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6863. cat >>confdefs.h <<_ACEOF
  6864. #define HAVE_DLFCN_H 1
  6865. _ACEOF
  6866. fi
  6867. done
  6868. # Set options
  6869. # Check whether --enable-static was given.
  6870. if test "${enable_static+set}" = set; then :
  6871. enableval=$enable_static; p=${PACKAGE-default}
  6872. case $enableval in
  6873. yes) enable_static=yes ;;
  6874. no) enable_static=no ;;
  6875. *)
  6876. enable_static=no
  6877. # Look at the argument we got. We use all the common list separators.
  6878. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6879. for pkg in $enableval; do
  6880. IFS=$lt_save_ifs
  6881. if test "X$pkg" = "X$p"; then
  6882. enable_static=yes
  6883. fi
  6884. done
  6885. IFS=$lt_save_ifs
  6886. ;;
  6887. esac
  6888. else
  6889. enable_static=no
  6890. fi
  6891. enable_dlopen=no
  6892. enable_win32_dll=no
  6893. # Check whether --enable-shared was given.
  6894. if test "${enable_shared+set}" = set; then :
  6895. enableval=$enable_shared; p=${PACKAGE-default}
  6896. case $enableval in
  6897. yes) enable_shared=yes ;;
  6898. no) enable_shared=no ;;
  6899. *)
  6900. enable_shared=no
  6901. # Look at the argument we got. We use all the common list separators.
  6902. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6903. for pkg in $enableval; do
  6904. IFS=$lt_save_ifs
  6905. if test "X$pkg" = "X$p"; then
  6906. enable_shared=yes
  6907. fi
  6908. done
  6909. IFS=$lt_save_ifs
  6910. ;;
  6911. esac
  6912. else
  6913. enable_shared=yes
  6914. fi
  6915. # Check whether --with-pic was given.
  6916. if test "${with_pic+set}" = set; then :
  6917. withval=$with_pic; lt_p=${PACKAGE-default}
  6918. case $withval in
  6919. yes|no) pic_mode=$withval ;;
  6920. *)
  6921. pic_mode=default
  6922. # Look at the argument we got. We use all the common list separators.
  6923. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6924. for lt_pkg in $withval; do
  6925. IFS=$lt_save_ifs
  6926. if test "X$lt_pkg" = "X$lt_p"; then
  6927. pic_mode=yes
  6928. fi
  6929. done
  6930. IFS=$lt_save_ifs
  6931. ;;
  6932. esac
  6933. else
  6934. pic_mode=default
  6935. fi
  6936. # Check whether --enable-fast-install was given.
  6937. if test "${enable_fast_install+set}" = set; then :
  6938. enableval=$enable_fast_install; p=${PACKAGE-default}
  6939. case $enableval in
  6940. yes) enable_fast_install=yes ;;
  6941. no) enable_fast_install=no ;;
  6942. *)
  6943. enable_fast_install=no
  6944. # Look at the argument we got. We use all the common list separators.
  6945. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6946. for pkg in $enableval; do
  6947. IFS=$lt_save_ifs
  6948. if test "X$pkg" = "X$p"; then
  6949. enable_fast_install=yes
  6950. fi
  6951. done
  6952. IFS=$lt_save_ifs
  6953. ;;
  6954. esac
  6955. else
  6956. enable_fast_install=yes
  6957. fi
  6958. shared_archive_member_spec=
  6959. case $host,$enable_shared in
  6960. power*-*-aix[5-9]*,yes)
  6961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  6962. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  6963. # Check whether --with-aix-soname was given.
  6964. if test "${with_aix_soname+set}" = set; then :
  6965. withval=$with_aix_soname; case $withval in
  6966. aix|svr4|both)
  6967. ;;
  6968. *)
  6969. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  6970. ;;
  6971. esac
  6972. lt_cv_with_aix_soname=$with_aix_soname
  6973. else
  6974. if ${lt_cv_with_aix_soname+:} false; then :
  6975. $as_echo_n "(cached) " >&6
  6976. else
  6977. lt_cv_with_aix_soname=aix
  6978. fi
  6979. with_aix_soname=$lt_cv_with_aix_soname
  6980. fi
  6981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  6982. $as_echo "$with_aix_soname" >&6; }
  6983. if test aix != "$with_aix_soname"; then
  6984. # For the AIX way of multilib, we name the shared archive member
  6985. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  6986. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  6987. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  6988. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  6989. if test 64 = "${OBJECT_MODE-32}"; then
  6990. shared_archive_member_spec=shr_64
  6991. else
  6992. shared_archive_member_spec=shr
  6993. fi
  6994. fi
  6995. ;;
  6996. *)
  6997. with_aix_soname=aix
  6998. ;;
  6999. esac
  7000. # This can be used to rebuild libtool when needed
  7001. LIBTOOL_DEPS=$ltmain
  7002. # Always use our own libtool.
  7003. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7004. test -z "$LN_S" && LN_S="ln -s"
  7005. if test -n "${ZSH_VERSION+set}"; then
  7006. setopt NO_GLOB_SUBST
  7007. fi
  7008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7009. $as_echo_n "checking for objdir... " >&6; }
  7010. if ${lt_cv_objdir+:} false; then :
  7011. $as_echo_n "(cached) " >&6
  7012. else
  7013. rm -f .libs 2>/dev/null
  7014. mkdir .libs 2>/dev/null
  7015. if test -d .libs; then
  7016. lt_cv_objdir=.libs
  7017. else
  7018. # MS-DOS does not allow filenames that begin with a dot.
  7019. lt_cv_objdir=_libs
  7020. fi
  7021. rmdir .libs 2>/dev/null
  7022. fi
  7023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7024. $as_echo "$lt_cv_objdir" >&6; }
  7025. objdir=$lt_cv_objdir
  7026. cat >>confdefs.h <<_ACEOF
  7027. #define LT_OBJDIR "$lt_cv_objdir/"
  7028. _ACEOF
  7029. case $host_os in
  7030. aix3*)
  7031. # AIX sometimes has problems with the GCC collect2 program. For some
  7032. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7033. # vanish in a puff of smoke.
  7034. if test set != "${COLLECT_NAMES+set}"; then
  7035. COLLECT_NAMES=
  7036. export COLLECT_NAMES
  7037. fi
  7038. ;;
  7039. esac
  7040. # Global variables:
  7041. ofile=libtool
  7042. can_build_shared=yes
  7043. # All known linkers require a '.a' archive for static linking (except MSVC,
  7044. # which needs '.lib').
  7045. libext=a
  7046. with_gnu_ld=$lt_cv_prog_gnu_ld
  7047. old_CC=$CC
  7048. old_CFLAGS=$CFLAGS
  7049. # Set sane defaults for various variables
  7050. test -z "$CC" && CC=cc
  7051. test -z "$LTCC" && LTCC=$CC
  7052. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7053. test -z "$LD" && LD=ld
  7054. test -z "$ac_objext" && ac_objext=o
  7055. func_cc_basename $compiler
  7056. cc_basename=$func_cc_basename_result
  7057. # Only perform the check for file, if the check method requires it
  7058. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7059. case $deplibs_check_method in
  7060. file_magic*)
  7061. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7063. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7064. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7065. $as_echo_n "(cached) " >&6
  7066. else
  7067. case $MAGIC_CMD in
  7068. [\\/*] | ?:[\\/]*)
  7069. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7070. ;;
  7071. *)
  7072. lt_save_MAGIC_CMD=$MAGIC_CMD
  7073. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7074. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7075. for ac_dir in $ac_dummy; do
  7076. IFS=$lt_save_ifs
  7077. test -z "$ac_dir" && ac_dir=.
  7078. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7079. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7080. if test -n "$file_magic_test_file"; then
  7081. case $deplibs_check_method in
  7082. "file_magic "*)
  7083. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7084. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7085. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7086. $EGREP "$file_magic_regex" > /dev/null; then
  7087. :
  7088. else
  7089. cat <<_LT_EOF 1>&2
  7090. *** Warning: the command libtool uses to detect shared libraries,
  7091. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7092. *** The result is that libtool may fail to recognize shared libraries
  7093. *** as such. This will affect the creation of libtool libraries that
  7094. *** depend on shared libraries, but programs linked with such libtool
  7095. *** libraries will work regardless of this problem. Nevertheless, you
  7096. *** may want to report the problem to your system manager and/or to
  7097. *** bug-libtool@gnu.org
  7098. _LT_EOF
  7099. fi ;;
  7100. esac
  7101. fi
  7102. break
  7103. fi
  7104. done
  7105. IFS=$lt_save_ifs
  7106. MAGIC_CMD=$lt_save_MAGIC_CMD
  7107. ;;
  7108. esac
  7109. fi
  7110. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7111. if test -n "$MAGIC_CMD"; then
  7112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7113. $as_echo "$MAGIC_CMD" >&6; }
  7114. else
  7115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7116. $as_echo "no" >&6; }
  7117. fi
  7118. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7119. if test -n "$ac_tool_prefix"; then
  7120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7121. $as_echo_n "checking for file... " >&6; }
  7122. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7123. $as_echo_n "(cached) " >&6
  7124. else
  7125. case $MAGIC_CMD in
  7126. [\\/*] | ?:[\\/]*)
  7127. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7128. ;;
  7129. *)
  7130. lt_save_MAGIC_CMD=$MAGIC_CMD
  7131. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7132. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7133. for ac_dir in $ac_dummy; do
  7134. IFS=$lt_save_ifs
  7135. test -z "$ac_dir" && ac_dir=.
  7136. if test -f "$ac_dir/file"; then
  7137. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7138. if test -n "$file_magic_test_file"; then
  7139. case $deplibs_check_method in
  7140. "file_magic "*)
  7141. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7142. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7143. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7144. $EGREP "$file_magic_regex" > /dev/null; then
  7145. :
  7146. else
  7147. cat <<_LT_EOF 1>&2
  7148. *** Warning: the command libtool uses to detect shared libraries,
  7149. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7150. *** The result is that libtool may fail to recognize shared libraries
  7151. *** as such. This will affect the creation of libtool libraries that
  7152. *** depend on shared libraries, but programs linked with such libtool
  7153. *** libraries will work regardless of this problem. Nevertheless, you
  7154. *** may want to report the problem to your system manager and/or to
  7155. *** bug-libtool@gnu.org
  7156. _LT_EOF
  7157. fi ;;
  7158. esac
  7159. fi
  7160. break
  7161. fi
  7162. done
  7163. IFS=$lt_save_ifs
  7164. MAGIC_CMD=$lt_save_MAGIC_CMD
  7165. ;;
  7166. esac
  7167. fi
  7168. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7169. if test -n "$MAGIC_CMD"; then
  7170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7171. $as_echo "$MAGIC_CMD" >&6; }
  7172. else
  7173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7174. $as_echo "no" >&6; }
  7175. fi
  7176. else
  7177. MAGIC_CMD=:
  7178. fi
  7179. fi
  7180. fi
  7181. ;;
  7182. esac
  7183. # Use C for the default configuration in the libtool script
  7184. lt_save_CC=$CC
  7185. ac_ext=c
  7186. ac_cpp='$CPP $CPPFLAGS'
  7187. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7188. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7189. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7190. # Source file extension for C test sources.
  7191. ac_ext=c
  7192. # Object file extension for compiled C test sources.
  7193. objext=o
  7194. objext=$objext
  7195. # Code to be used in simple compile tests
  7196. lt_simple_compile_test_code="int some_variable = 0;"
  7197. # Code to be used in simple link tests
  7198. lt_simple_link_test_code='int main(){return(0);}'
  7199. # If no C compiler was specified, use CC.
  7200. LTCC=${LTCC-"$CC"}
  7201. # If no C compiler flags were specified, use CFLAGS.
  7202. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7203. # Allow CC to be a program name with arguments.
  7204. compiler=$CC
  7205. # Save the default compiler, since it gets overwritten when the other
  7206. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7207. compiler_DEFAULT=$CC
  7208. # save warnings/boilerplate of simple test code
  7209. ac_outfile=conftest.$ac_objext
  7210. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7211. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7212. _lt_compiler_boilerplate=`cat conftest.err`
  7213. $RM conftest*
  7214. ac_outfile=conftest.$ac_objext
  7215. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7216. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7217. _lt_linker_boilerplate=`cat conftest.err`
  7218. $RM -r conftest*
  7219. if test -n "$compiler"; then
  7220. lt_prog_compiler_no_builtin_flag=
  7221. if test yes = "$GCC"; then
  7222. case $cc_basename in
  7223. nvcc*)
  7224. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7225. *)
  7226. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7227. esac
  7228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7229. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7230. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7231. $as_echo_n "(cached) " >&6
  7232. else
  7233. lt_cv_prog_compiler_rtti_exceptions=no
  7234. ac_outfile=conftest.$ac_objext
  7235. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7236. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7237. # Insert the option either (1) after the last *FLAGS variable, or
  7238. # (2) before a word containing "conftest.", or (3) at the end.
  7239. # Note that $ac_compile itself does not contain backslashes and begins
  7240. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7241. # The option is referenced via a variable to avoid confusing sed.
  7242. lt_compile=`echo "$ac_compile" | $SED \
  7243. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7244. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7245. -e 's:$: $lt_compiler_flag:'`
  7246. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7247. (eval "$lt_compile" 2>conftest.err)
  7248. ac_status=$?
  7249. cat conftest.err >&5
  7250. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7251. if (exit $ac_status) && test -s "$ac_outfile"; then
  7252. # The compiler can only warn and ignore the option if not recognized
  7253. # So say no if there are warnings other than the usual output.
  7254. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7255. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7256. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7257. lt_cv_prog_compiler_rtti_exceptions=yes
  7258. fi
  7259. fi
  7260. $RM conftest*
  7261. fi
  7262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7263. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7264. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  7265. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7266. else
  7267. :
  7268. fi
  7269. fi
  7270. lt_prog_compiler_wl=
  7271. lt_prog_compiler_pic=
  7272. lt_prog_compiler_static=
  7273. if test yes = "$GCC"; then
  7274. lt_prog_compiler_wl='-Wl,'
  7275. lt_prog_compiler_static='-static'
  7276. case $host_os in
  7277. aix*)
  7278. # All AIX code is PIC.
  7279. if test ia64 = "$host_cpu"; then
  7280. # AIX 5 now supports IA64 processor
  7281. lt_prog_compiler_static='-Bstatic'
  7282. fi
  7283. lt_prog_compiler_pic='-fPIC'
  7284. ;;
  7285. amigaos*)
  7286. case $host_cpu in
  7287. powerpc)
  7288. # see comment about AmigaOS4 .so support
  7289. lt_prog_compiler_pic='-fPIC'
  7290. ;;
  7291. m68k)
  7292. # FIXME: we need at least 68020 code to build shared libraries, but
  7293. # adding the '-m68020' flag to GCC prevents building anything better,
  7294. # like '-m68040'.
  7295. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7296. ;;
  7297. esac
  7298. ;;
  7299. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7300. # PIC is the default for these OSes.
  7301. ;;
  7302. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7303. # This hack is so that the source file can tell whether it is being
  7304. # built for inclusion in a dll (and should export symbols for example).
  7305. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7306. # (--disable-auto-import) libraries
  7307. lt_prog_compiler_pic='-DDLL_EXPORT'
  7308. case $host_os in
  7309. os2*)
  7310. lt_prog_compiler_static='$wl-static'
  7311. ;;
  7312. esac
  7313. ;;
  7314. darwin* | rhapsody*)
  7315. # PIC is the default on this platform
  7316. # Common symbols not allowed in MH_DYLIB files
  7317. lt_prog_compiler_pic='-fno-common'
  7318. ;;
  7319. haiku*)
  7320. # PIC is the default for Haiku.
  7321. # The "-static" flag exists, but is broken.
  7322. lt_prog_compiler_static=
  7323. ;;
  7324. hpux*)
  7325. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7326. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7327. # sets the default TLS model and affects inlining.
  7328. case $host_cpu in
  7329. hppa*64*)
  7330. # +Z the default
  7331. ;;
  7332. *)
  7333. lt_prog_compiler_pic='-fPIC'
  7334. ;;
  7335. esac
  7336. ;;
  7337. interix[3-9]*)
  7338. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7339. # Instead, we relocate shared libraries at runtime.
  7340. ;;
  7341. msdosdjgpp*)
  7342. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7343. # on systems that don't support them.
  7344. lt_prog_compiler_can_build_shared=no
  7345. enable_shared=no
  7346. ;;
  7347. *nto* | *qnx*)
  7348. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7349. # it will coredump.
  7350. lt_prog_compiler_pic='-fPIC -shared'
  7351. ;;
  7352. sysv4*MP*)
  7353. if test -d /usr/nec; then
  7354. lt_prog_compiler_pic=-Kconform_pic
  7355. fi
  7356. ;;
  7357. *)
  7358. lt_prog_compiler_pic='-fPIC'
  7359. ;;
  7360. esac
  7361. case $cc_basename in
  7362. nvcc*) # Cuda Compiler Driver 2.2
  7363. lt_prog_compiler_wl='-Xlinker '
  7364. if test -n "$lt_prog_compiler_pic"; then
  7365. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7366. fi
  7367. ;;
  7368. esac
  7369. else
  7370. # PORTME Check for flag to pass linker flags through the system compiler.
  7371. case $host_os in
  7372. aix*)
  7373. lt_prog_compiler_wl='-Wl,'
  7374. if test ia64 = "$host_cpu"; then
  7375. # AIX 5 now supports IA64 processor
  7376. lt_prog_compiler_static='-Bstatic'
  7377. else
  7378. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7379. fi
  7380. ;;
  7381. darwin* | rhapsody*)
  7382. # PIC is the default on this platform
  7383. # Common symbols not allowed in MH_DYLIB files
  7384. lt_prog_compiler_pic='-fno-common'
  7385. case $cc_basename in
  7386. nagfor*)
  7387. # NAG Fortran compiler
  7388. lt_prog_compiler_wl='-Wl,-Wl,,'
  7389. lt_prog_compiler_pic='-PIC'
  7390. lt_prog_compiler_static='-Bstatic'
  7391. ;;
  7392. esac
  7393. ;;
  7394. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7395. # This hack is so that the source file can tell whether it is being
  7396. # built for inclusion in a dll (and should export symbols for example).
  7397. lt_prog_compiler_pic='-DDLL_EXPORT'
  7398. case $host_os in
  7399. os2*)
  7400. lt_prog_compiler_static='$wl-static'
  7401. ;;
  7402. esac
  7403. ;;
  7404. hpux9* | hpux10* | hpux11*)
  7405. lt_prog_compiler_wl='-Wl,'
  7406. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7407. # not for PA HP-UX.
  7408. case $host_cpu in
  7409. hppa*64*|ia64*)
  7410. # +Z the default
  7411. ;;
  7412. *)
  7413. lt_prog_compiler_pic='+Z'
  7414. ;;
  7415. esac
  7416. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7417. lt_prog_compiler_static='$wl-a ${wl}archive'
  7418. ;;
  7419. irix5* | irix6* | nonstopux*)
  7420. lt_prog_compiler_wl='-Wl,'
  7421. # PIC (with -KPIC) is the default.
  7422. lt_prog_compiler_static='-non_shared'
  7423. ;;
  7424. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  7425. case $cc_basename in
  7426. # old Intel for x86_64, which still supported -KPIC.
  7427. ecc*)
  7428. lt_prog_compiler_wl='-Wl,'
  7429. lt_prog_compiler_pic='-KPIC'
  7430. lt_prog_compiler_static='-static'
  7431. ;;
  7432. # icc used to be incompatible with GCC.
  7433. # ICC 10 doesn't accept -KPIC any more.
  7434. icc* | ifort*)
  7435. lt_prog_compiler_wl='-Wl,'
  7436. lt_prog_compiler_pic='-fPIC'
  7437. lt_prog_compiler_static='-static'
  7438. ;;
  7439. # Lahey Fortran 8.1.
  7440. lf95*)
  7441. lt_prog_compiler_wl='-Wl,'
  7442. lt_prog_compiler_pic='--shared'
  7443. lt_prog_compiler_static='--static'
  7444. ;;
  7445. nagfor*)
  7446. # NAG Fortran compiler
  7447. lt_prog_compiler_wl='-Wl,-Wl,,'
  7448. lt_prog_compiler_pic='-PIC'
  7449. lt_prog_compiler_static='-Bstatic'
  7450. ;;
  7451. tcc*)
  7452. # Fabrice Bellard et al's Tiny C Compiler
  7453. lt_prog_compiler_wl='-Wl,'
  7454. lt_prog_compiler_pic='-fPIC'
  7455. lt_prog_compiler_static='-static'
  7456. ;;
  7457. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7458. # Portland Group compilers (*not* the Pentium gcc compiler,
  7459. # which looks to be a dead project)
  7460. lt_prog_compiler_wl='-Wl,'
  7461. lt_prog_compiler_pic='-fpic'
  7462. lt_prog_compiler_static='-Bstatic'
  7463. ;;
  7464. ccc*)
  7465. lt_prog_compiler_wl='-Wl,'
  7466. # All Alpha code is PIC.
  7467. lt_prog_compiler_static='-non_shared'
  7468. ;;
  7469. xl* | bgxl* | bgf* | mpixl*)
  7470. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7471. lt_prog_compiler_wl='-Wl,'
  7472. lt_prog_compiler_pic='-qpic'
  7473. lt_prog_compiler_static='-qstaticlink'
  7474. ;;
  7475. *)
  7476. case `$CC -V 2>&1 | sed 5q` in
  7477. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7478. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7479. lt_prog_compiler_pic='-KPIC'
  7480. lt_prog_compiler_static='-Bstatic'
  7481. lt_prog_compiler_wl=''
  7482. ;;
  7483. *Sun\ F* | *Sun*Fortran*)
  7484. lt_prog_compiler_pic='-KPIC'
  7485. lt_prog_compiler_static='-Bstatic'
  7486. lt_prog_compiler_wl='-Qoption ld '
  7487. ;;
  7488. *Sun\ C*)
  7489. # Sun C 5.9
  7490. lt_prog_compiler_pic='-KPIC'
  7491. lt_prog_compiler_static='-Bstatic'
  7492. lt_prog_compiler_wl='-Wl,'
  7493. ;;
  7494. *Intel*\ [CF]*Compiler*)
  7495. lt_prog_compiler_wl='-Wl,'
  7496. lt_prog_compiler_pic='-fPIC'
  7497. lt_prog_compiler_static='-static'
  7498. ;;
  7499. *Portland\ Group*)
  7500. lt_prog_compiler_wl='-Wl,'
  7501. lt_prog_compiler_pic='-fpic'
  7502. lt_prog_compiler_static='-Bstatic'
  7503. ;;
  7504. esac
  7505. ;;
  7506. esac
  7507. ;;
  7508. newsos6)
  7509. lt_prog_compiler_pic='-KPIC'
  7510. lt_prog_compiler_static='-Bstatic'
  7511. ;;
  7512. *nto* | *qnx*)
  7513. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7514. # it will coredump.
  7515. lt_prog_compiler_pic='-fPIC -shared'
  7516. ;;
  7517. osf3* | osf4* | osf5*)
  7518. lt_prog_compiler_wl='-Wl,'
  7519. # All OSF/1 code is PIC.
  7520. lt_prog_compiler_static='-non_shared'
  7521. ;;
  7522. rdos*)
  7523. lt_prog_compiler_static='-non_shared'
  7524. ;;
  7525. solaris*)
  7526. lt_prog_compiler_pic='-KPIC'
  7527. lt_prog_compiler_static='-Bstatic'
  7528. case $cc_basename in
  7529. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7530. lt_prog_compiler_wl='-Qoption ld ';;
  7531. *)
  7532. lt_prog_compiler_wl='-Wl,';;
  7533. esac
  7534. ;;
  7535. sunos4*)
  7536. lt_prog_compiler_wl='-Qoption ld '
  7537. lt_prog_compiler_pic='-PIC'
  7538. lt_prog_compiler_static='-Bstatic'
  7539. ;;
  7540. sysv4 | sysv4.2uw2* | sysv4.3*)
  7541. lt_prog_compiler_wl='-Wl,'
  7542. lt_prog_compiler_pic='-KPIC'
  7543. lt_prog_compiler_static='-Bstatic'
  7544. ;;
  7545. sysv4*MP*)
  7546. if test -d /usr/nec; then
  7547. lt_prog_compiler_pic='-Kconform_pic'
  7548. lt_prog_compiler_static='-Bstatic'
  7549. fi
  7550. ;;
  7551. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7552. lt_prog_compiler_wl='-Wl,'
  7553. lt_prog_compiler_pic='-KPIC'
  7554. lt_prog_compiler_static='-Bstatic'
  7555. ;;
  7556. unicos*)
  7557. lt_prog_compiler_wl='-Wl,'
  7558. lt_prog_compiler_can_build_shared=no
  7559. ;;
  7560. uts4*)
  7561. lt_prog_compiler_pic='-pic'
  7562. lt_prog_compiler_static='-Bstatic'
  7563. ;;
  7564. *)
  7565. lt_prog_compiler_can_build_shared=no
  7566. ;;
  7567. esac
  7568. fi
  7569. case $host_os in
  7570. # For platforms that do not support PIC, -DPIC is meaningless:
  7571. *djgpp*)
  7572. lt_prog_compiler_pic=
  7573. ;;
  7574. *)
  7575. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7576. ;;
  7577. esac
  7578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7579. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7580. if ${lt_cv_prog_compiler_pic+:} false; then :
  7581. $as_echo_n "(cached) " >&6
  7582. else
  7583. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7584. fi
  7585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7586. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7587. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7588. #
  7589. # Check to make sure the PIC flag actually works.
  7590. #
  7591. if test -n "$lt_prog_compiler_pic"; then
  7592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7593. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7594. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7595. $as_echo_n "(cached) " >&6
  7596. else
  7597. lt_cv_prog_compiler_pic_works=no
  7598. ac_outfile=conftest.$ac_objext
  7599. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7600. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  7601. # Insert the option either (1) after the last *FLAGS variable, or
  7602. # (2) before a word containing "conftest.", or (3) at the end.
  7603. # Note that $ac_compile itself does not contain backslashes and begins
  7604. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7605. # The option is referenced via a variable to avoid confusing sed.
  7606. lt_compile=`echo "$ac_compile" | $SED \
  7607. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7608. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7609. -e 's:$: $lt_compiler_flag:'`
  7610. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7611. (eval "$lt_compile" 2>conftest.err)
  7612. ac_status=$?
  7613. cat conftest.err >&5
  7614. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7615. if (exit $ac_status) && test -s "$ac_outfile"; then
  7616. # The compiler can only warn and ignore the option if not recognized
  7617. # So say no if there are warnings other than the usual output.
  7618. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7619. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7620. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7621. lt_cv_prog_compiler_pic_works=yes
  7622. fi
  7623. fi
  7624. $RM conftest*
  7625. fi
  7626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7627. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7628. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  7629. case $lt_prog_compiler_pic in
  7630. "" | " "*) ;;
  7631. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7632. esac
  7633. else
  7634. lt_prog_compiler_pic=
  7635. lt_prog_compiler_can_build_shared=no
  7636. fi
  7637. fi
  7638. #
  7639. # Check to make sure the static flag actually works.
  7640. #
  7641. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7643. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7644. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7645. $as_echo_n "(cached) " >&6
  7646. else
  7647. lt_cv_prog_compiler_static_works=no
  7648. save_LDFLAGS=$LDFLAGS
  7649. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7650. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7651. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7652. # The linker can only warn and ignore the option if not recognized
  7653. # So say no if there are warnings
  7654. if test -s conftest.err; then
  7655. # Append any errors to the config.log.
  7656. cat conftest.err 1>&5
  7657. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7658. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7659. if diff conftest.exp conftest.er2 >/dev/null; then
  7660. lt_cv_prog_compiler_static_works=yes
  7661. fi
  7662. else
  7663. lt_cv_prog_compiler_static_works=yes
  7664. fi
  7665. fi
  7666. $RM -r conftest*
  7667. LDFLAGS=$save_LDFLAGS
  7668. fi
  7669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7670. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7671. if test yes = "$lt_cv_prog_compiler_static_works"; then
  7672. :
  7673. else
  7674. lt_prog_compiler_static=
  7675. fi
  7676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7677. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7678. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7679. $as_echo_n "(cached) " >&6
  7680. else
  7681. lt_cv_prog_compiler_c_o=no
  7682. $RM -r conftest 2>/dev/null
  7683. mkdir conftest
  7684. cd conftest
  7685. mkdir out
  7686. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7687. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7688. # Insert the option either (1) after the last *FLAGS variable, or
  7689. # (2) before a word containing "conftest.", or (3) at the end.
  7690. # Note that $ac_compile itself does not contain backslashes and begins
  7691. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7692. lt_compile=`echo "$ac_compile" | $SED \
  7693. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7694. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7695. -e 's:$: $lt_compiler_flag:'`
  7696. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7697. (eval "$lt_compile" 2>out/conftest.err)
  7698. ac_status=$?
  7699. cat out/conftest.err >&5
  7700. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7701. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7702. then
  7703. # The compiler can only warn and ignore the option if not recognized
  7704. # So say no if there are warnings
  7705. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7706. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7707. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7708. lt_cv_prog_compiler_c_o=yes
  7709. fi
  7710. fi
  7711. chmod u+w . 2>&5
  7712. $RM conftest*
  7713. # SGI C++ compiler will create directory out/ii_files/ for
  7714. # template instantiation
  7715. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7716. $RM out/* && rmdir out
  7717. cd ..
  7718. $RM -r conftest
  7719. $RM conftest*
  7720. fi
  7721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7722. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7724. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7725. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7726. $as_echo_n "(cached) " >&6
  7727. else
  7728. lt_cv_prog_compiler_c_o=no
  7729. $RM -r conftest 2>/dev/null
  7730. mkdir conftest
  7731. cd conftest
  7732. mkdir out
  7733. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7734. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7735. # Insert the option either (1) after the last *FLAGS variable, or
  7736. # (2) before a word containing "conftest.", or (3) at the end.
  7737. # Note that $ac_compile itself does not contain backslashes and begins
  7738. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7739. lt_compile=`echo "$ac_compile" | $SED \
  7740. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7741. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7742. -e 's:$: $lt_compiler_flag:'`
  7743. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7744. (eval "$lt_compile" 2>out/conftest.err)
  7745. ac_status=$?
  7746. cat out/conftest.err >&5
  7747. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7748. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7749. then
  7750. # The compiler can only warn and ignore the option if not recognized
  7751. # So say no if there are warnings
  7752. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7753. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7754. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7755. lt_cv_prog_compiler_c_o=yes
  7756. fi
  7757. fi
  7758. chmod u+w . 2>&5
  7759. $RM conftest*
  7760. # SGI C++ compiler will create directory out/ii_files/ for
  7761. # template instantiation
  7762. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7763. $RM out/* && rmdir out
  7764. cd ..
  7765. $RM -r conftest
  7766. $RM conftest*
  7767. fi
  7768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7769. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7770. hard_links=nottested
  7771. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  7772. # do not overwrite the value of need_locks provided by the user
  7773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7774. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7775. hard_links=yes
  7776. $RM conftest*
  7777. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7778. touch conftest.a
  7779. ln conftest.a conftest.b 2>&5 || hard_links=no
  7780. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7782. $as_echo "$hard_links" >&6; }
  7783. if test no = "$hard_links"; then
  7784. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  7785. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  7786. need_locks=warn
  7787. fi
  7788. else
  7789. need_locks=no
  7790. fi
  7791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7792. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7793. runpath_var=
  7794. allow_undefined_flag=
  7795. always_export_symbols=no
  7796. archive_cmds=
  7797. archive_expsym_cmds=
  7798. compiler_needs_object=no
  7799. enable_shared_with_static_runtimes=no
  7800. export_dynamic_flag_spec=
  7801. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7802. hardcode_automatic=no
  7803. hardcode_direct=no
  7804. hardcode_direct_absolute=no
  7805. hardcode_libdir_flag_spec=
  7806. hardcode_libdir_separator=
  7807. hardcode_minus_L=no
  7808. hardcode_shlibpath_var=unsupported
  7809. inherit_rpath=no
  7810. link_all_deplibs=unknown
  7811. module_cmds=
  7812. module_expsym_cmds=
  7813. old_archive_from_new_cmds=
  7814. old_archive_from_expsyms_cmds=
  7815. thread_safe_flag_spec=
  7816. whole_archive_flag_spec=
  7817. # include_expsyms should be a list of space-separated symbols to be *always*
  7818. # included in the symbol list
  7819. include_expsyms=
  7820. # exclude_expsyms can be an extended regexp of symbols to exclude
  7821. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  7822. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  7823. # as well as any symbol that contains 'd'.
  7824. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7825. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7826. # platforms (ab)use it in PIC code, but their linkers get confused if
  7827. # the symbol is explicitly referenced. Since portable code cannot
  7828. # rely on this symbol name, it's probably fine to never include it in
  7829. # preloaded symbol tables.
  7830. # Exclude shared library initialization/finalization symbols.
  7831. extract_expsyms_cmds=
  7832. case $host_os in
  7833. cygwin* | mingw* | pw32* | cegcc*)
  7834. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7835. # When not using gcc, we currently assume that we are using
  7836. # Microsoft Visual C++.
  7837. if test yes != "$GCC"; then
  7838. with_gnu_ld=no
  7839. fi
  7840. ;;
  7841. interix*)
  7842. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7843. with_gnu_ld=yes
  7844. ;;
  7845. openbsd* | bitrig*)
  7846. with_gnu_ld=no
  7847. ;;
  7848. esac
  7849. ld_shlibs=yes
  7850. # On some targets, GNU ld is compatible enough with the native linker
  7851. # that we're better off using the native interface for both.
  7852. lt_use_gnu_ld_interface=no
  7853. if test yes = "$with_gnu_ld"; then
  7854. case $host_os in
  7855. aix*)
  7856. # The AIX port of GNU ld has always aspired to compatibility
  7857. # with the native linker. However, as the warning in the GNU ld
  7858. # block says, versions before 2.19.5* couldn't really create working
  7859. # shared libraries, regardless of the interface used.
  7860. case `$LD -v 2>&1` in
  7861. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7862. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7863. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7864. *)
  7865. lt_use_gnu_ld_interface=yes
  7866. ;;
  7867. esac
  7868. ;;
  7869. *)
  7870. lt_use_gnu_ld_interface=yes
  7871. ;;
  7872. esac
  7873. fi
  7874. if test yes = "$lt_use_gnu_ld_interface"; then
  7875. # If archive_cmds runs LD, not CC, wlarc should be empty
  7876. wlarc='$wl'
  7877. # Set some defaults for GNU ld with shared library support. These
  7878. # are reset later if shared libraries are not supported. Putting them
  7879. # here allows them to be overridden if necessary.
  7880. runpath_var=LD_RUN_PATH
  7881. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  7882. export_dynamic_flag_spec='$wl--export-dynamic'
  7883. # ancient GNU ld didn't support --whole-archive et. al.
  7884. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7885. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  7886. else
  7887. whole_archive_flag_spec=
  7888. fi
  7889. supports_anon_versioning=no
  7890. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  7891. *GNU\ gold*) supports_anon_versioning=yes ;;
  7892. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7893. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7894. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7895. *\ 2.11.*) ;; # other 2.11 versions
  7896. *) supports_anon_versioning=yes ;;
  7897. esac
  7898. # See if GNU ld supports shared libraries.
  7899. case $host_os in
  7900. aix[3-9]*)
  7901. # On AIX/PPC, the GNU linker is very broken
  7902. if test ia64 != "$host_cpu"; then
  7903. ld_shlibs=no
  7904. cat <<_LT_EOF 1>&2
  7905. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7906. *** to be unable to reliably create shared libraries on AIX.
  7907. *** Therefore, libtool is disabling shared libraries support. If you
  7908. *** really care for shared libraries, you may want to install binutils
  7909. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7910. *** You will then need to restart the configuration process.
  7911. _LT_EOF
  7912. fi
  7913. ;;
  7914. amigaos*)
  7915. case $host_cpu in
  7916. powerpc)
  7917. # see comment about AmigaOS4 .so support
  7918. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7919. archive_expsym_cmds=''
  7920. ;;
  7921. m68k)
  7922. 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)'
  7923. hardcode_libdir_flag_spec='-L$libdir'
  7924. hardcode_minus_L=yes
  7925. ;;
  7926. esac
  7927. ;;
  7928. beos*)
  7929. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7930. allow_undefined_flag=unsupported
  7931. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7932. # support --undefined. This deserves some investigation. FIXME
  7933. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7934. else
  7935. ld_shlibs=no
  7936. fi
  7937. ;;
  7938. cygwin* | mingw* | pw32* | cegcc*)
  7939. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7940. # as there is no search path for DLLs.
  7941. hardcode_libdir_flag_spec='-L$libdir'
  7942. export_dynamic_flag_spec='$wl--export-all-symbols'
  7943. allow_undefined_flag=unsupported
  7944. always_export_symbols=no
  7945. enable_shared_with_static_runtimes=yes
  7946. 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'
  7947. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7948. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7949. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7950. # If the export-symbols file already is a .def file, use it as
  7951. # is; otherwise, prepend EXPORTS...
  7952. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  7953. cp $export_symbols $output_objdir/$soname.def;
  7954. else
  7955. echo EXPORTS > $output_objdir/$soname.def;
  7956. cat $export_symbols >> $output_objdir/$soname.def;
  7957. fi~
  7958. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7959. else
  7960. ld_shlibs=no
  7961. fi
  7962. ;;
  7963. haiku*)
  7964. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7965. link_all_deplibs=yes
  7966. ;;
  7967. os2*)
  7968. hardcode_libdir_flag_spec='-L$libdir'
  7969. hardcode_minus_L=yes
  7970. allow_undefined_flag=unsupported
  7971. shrext_cmds=.dll
  7972. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  7973. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  7974. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  7975. $ECHO EXPORTS >> $output_objdir/$libname.def~
  7976. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  7977. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  7978. emximp -o $lib $output_objdir/$libname.def'
  7979. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  7980. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  7981. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  7982. $ECHO EXPORTS >> $output_objdir/$libname.def~
  7983. prefix_cmds="$SED"~
  7984. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  7985. prefix_cmds="$prefix_cmds -e 1d";
  7986. fi~
  7987. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  7988. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  7989. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  7990. emximp -o $lib $output_objdir/$libname.def'
  7991. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  7992. enable_shared_with_static_runtimes=yes
  7993. ;;
  7994. interix[3-9]*)
  7995. hardcode_direct=no
  7996. hardcode_shlibpath_var=no
  7997. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  7998. export_dynamic_flag_spec='$wl-E'
  7999. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8000. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8001. # default) and relocated if they conflict, which is a slow very memory
  8002. # consuming and fragmenting process. To avoid this, we pick a random,
  8003. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8004. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8005. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8006. 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'
  8007. ;;
  8008. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8009. tmp_diet=no
  8010. if test linux-dietlibc = "$host_os"; then
  8011. case $cc_basename in
  8012. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8013. esac
  8014. fi
  8015. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8016. && test no = "$tmp_diet"
  8017. then
  8018. tmp_addflag=' $pic_flag'
  8019. tmp_sharedflag='-shared'
  8020. case $cc_basename,$host_cpu in
  8021. pgcc*) # Portland Group C compiler
  8022. 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'
  8023. tmp_addflag=' $pic_flag'
  8024. ;;
  8025. pgf77* | pgf90* | pgf95* | pgfortran*)
  8026. # Portland Group f77 and f90 compilers
  8027. 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'
  8028. tmp_addflag=' $pic_flag -Mnomain' ;;
  8029. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8030. tmp_addflag=' -i_dynamic' ;;
  8031. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8032. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8033. ifc* | ifort*) # Intel Fortran compiler
  8034. tmp_addflag=' -nofor_main' ;;
  8035. lf95*) # Lahey Fortran 8.1
  8036. whole_archive_flag_spec=
  8037. tmp_sharedflag='--shared' ;;
  8038. nagfor*) # NAGFOR 5.3
  8039. tmp_sharedflag='-Wl,-shared' ;;
  8040. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8041. tmp_sharedflag='-qmkshrobj'
  8042. tmp_addflag= ;;
  8043. nvcc*) # Cuda Compiler Driver 2.2
  8044. 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'
  8045. compiler_needs_object=yes
  8046. ;;
  8047. esac
  8048. case `$CC -V 2>&1 | sed 5q` in
  8049. *Sun\ C*) # Sun C 5.9
  8050. 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'
  8051. compiler_needs_object=yes
  8052. tmp_sharedflag='-G' ;;
  8053. *Sun\ F*) # Sun Fortran 8.3
  8054. tmp_sharedflag='-G' ;;
  8055. esac
  8056. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8057. if test yes = "$supports_anon_versioning"; then
  8058. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8059. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8060. echo "local: *; };" >> $output_objdir/$libname.ver~
  8061. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8062. fi
  8063. case $cc_basename in
  8064. tcc*)
  8065. export_dynamic_flag_spec='-rdynamic'
  8066. ;;
  8067. xlf* | bgf* | bgxlf* | mpixlf*)
  8068. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8069. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8070. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8071. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8072. if test yes = "$supports_anon_versioning"; then
  8073. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8074. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8075. echo "local: *; };" >> $output_objdir/$libname.ver~
  8076. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8077. fi
  8078. ;;
  8079. esac
  8080. else
  8081. ld_shlibs=no
  8082. fi
  8083. ;;
  8084. netbsd*)
  8085. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8086. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8087. wlarc=
  8088. else
  8089. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8090. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8091. fi
  8092. ;;
  8093. solaris*)
  8094. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8095. ld_shlibs=no
  8096. cat <<_LT_EOF 1>&2
  8097. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8098. *** create shared libraries on Solaris systems. Therefore, libtool
  8099. *** is disabling shared libraries support. We urge you to upgrade GNU
  8100. *** binutils to release 2.9.1 or newer. Another option is to modify
  8101. *** your PATH or compiler configuration so that the native linker is
  8102. *** used, and then restart.
  8103. _LT_EOF
  8104. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8105. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8106. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8107. else
  8108. ld_shlibs=no
  8109. fi
  8110. ;;
  8111. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8112. case `$LD -v 2>&1` in
  8113. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8114. ld_shlibs=no
  8115. cat <<_LT_EOF 1>&2
  8116. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8117. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8118. *** is disabling shared libraries support. We urge you to upgrade GNU
  8119. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8120. *** your PATH or compiler configuration so that the native linker is
  8121. *** used, and then restart.
  8122. _LT_EOF
  8123. ;;
  8124. *)
  8125. # For security reasons, it is highly recommended that you always
  8126. # use absolute paths for naming shared libraries, and exclude the
  8127. # DT_RUNPATH tag from executables and libraries. But doing so
  8128. # requires that you compile everything twice, which is a pain.
  8129. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8130. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8131. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8132. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8133. else
  8134. ld_shlibs=no
  8135. fi
  8136. ;;
  8137. esac
  8138. ;;
  8139. sunos4*)
  8140. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8141. wlarc=
  8142. hardcode_direct=yes
  8143. hardcode_shlibpath_var=no
  8144. ;;
  8145. *)
  8146. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8147. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8148. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8149. else
  8150. ld_shlibs=no
  8151. fi
  8152. ;;
  8153. esac
  8154. if test no = "$ld_shlibs"; then
  8155. runpath_var=
  8156. hardcode_libdir_flag_spec=
  8157. export_dynamic_flag_spec=
  8158. whole_archive_flag_spec=
  8159. fi
  8160. else
  8161. # PORTME fill in a description of your system's linker (not GNU ld)
  8162. case $host_os in
  8163. aix3*)
  8164. allow_undefined_flag=unsupported
  8165. always_export_symbols=yes
  8166. 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'
  8167. # Note: this linker hardcodes the directories in LIBPATH if there
  8168. # are no directories specified by -L.
  8169. hardcode_minus_L=yes
  8170. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8171. # Neither direct hardcoding nor static linking is supported with a
  8172. # broken collect2.
  8173. hardcode_direct=unsupported
  8174. fi
  8175. ;;
  8176. aix[4-9]*)
  8177. if test ia64 = "$host_cpu"; then
  8178. # On IA64, the linker does run time linking by default, so we don't
  8179. # have to do anything special.
  8180. aix_use_runtimelinking=no
  8181. exp_sym_flag='-Bexport'
  8182. no_entry_flag=
  8183. else
  8184. # If we're using GNU nm, then we don't want the "-C" option.
  8185. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8186. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8187. # weak defined symbols like other global defined symbols, whereas
  8188. # GNU nm marks them as "W".
  8189. # While the 'weak' keyword is ignored in the Export File, we need
  8190. # it in the Import File for the 'aix-soname' feature, so we have
  8191. # to replace the "-B" option with "-P" for AIX nm.
  8192. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8193. 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'
  8194. else
  8195. 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'
  8196. fi
  8197. aix_use_runtimelinking=no
  8198. # Test if we are trying to use run time linking or normal
  8199. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8200. # have runtime linking enabled, and use it for executables.
  8201. # For shared libraries, we enable/disable runtime linking
  8202. # depending on the kind of the shared library created -
  8203. # when "with_aix_soname,aix_use_runtimelinking" is:
  8204. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8205. # "aix,yes" lib.so shared, rtl:yes, for executables
  8206. # lib.a static archive
  8207. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8208. # lib.a(lib.so.V) shared, rtl:no, for executables
  8209. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8210. # lib.a(lib.so.V) shared, rtl:no
  8211. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8212. # lib.a static archive
  8213. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8214. for ld_flag in $LDFLAGS; do
  8215. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8216. aix_use_runtimelinking=yes
  8217. break
  8218. fi
  8219. done
  8220. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8221. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8222. # so we don't have lib.a shared libs to link our executables.
  8223. # We have to force runtime linking in this case.
  8224. aix_use_runtimelinking=yes
  8225. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8226. fi
  8227. ;;
  8228. esac
  8229. exp_sym_flag='-bexport'
  8230. no_entry_flag='-bnoentry'
  8231. fi
  8232. # When large executables or shared objects are built, AIX ld can
  8233. # have problems creating the table of contents. If linking a library
  8234. # or program results in "error TOC overflow" add -mminimal-toc to
  8235. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8236. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8237. archive_cmds=''
  8238. hardcode_direct=yes
  8239. hardcode_direct_absolute=yes
  8240. hardcode_libdir_separator=':'
  8241. link_all_deplibs=yes
  8242. file_list_spec='$wl-f,'
  8243. case $with_aix_soname,$aix_use_runtimelinking in
  8244. aix,*) ;; # traditional, no import file
  8245. svr4,* | *,yes) # use import file
  8246. # The Import File defines what to hardcode.
  8247. hardcode_direct=no
  8248. hardcode_direct_absolute=no
  8249. ;;
  8250. esac
  8251. if test yes = "$GCC"; then
  8252. case $host_os in aix4.[012]|aix4.[012].*)
  8253. # We only want to do this on AIX 4.2 and lower, the check
  8254. # below for broken collect2 doesn't work under 4.3+
  8255. collect2name=`$CC -print-prog-name=collect2`
  8256. if test -f "$collect2name" &&
  8257. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8258. then
  8259. # We have reworked collect2
  8260. :
  8261. else
  8262. # We have old collect2
  8263. hardcode_direct=unsupported
  8264. # It fails to find uninstalled libraries when the uninstalled
  8265. # path is not listed in the libpath. Setting hardcode_minus_L
  8266. # to unsupported forces relinking
  8267. hardcode_minus_L=yes
  8268. hardcode_libdir_flag_spec='-L$libdir'
  8269. hardcode_libdir_separator=
  8270. fi
  8271. ;;
  8272. esac
  8273. shared_flag='-shared'
  8274. if test yes = "$aix_use_runtimelinking"; then
  8275. shared_flag="$shared_flag "'$wl-G'
  8276. fi
  8277. # Need to ensure runtime linking is disabled for the traditional
  8278. # shared library, or the linker may eventually find shared libraries
  8279. # /with/ Import File - we do not want to mix them.
  8280. shared_flag_aix='-shared'
  8281. shared_flag_svr4='-shared $wl-G'
  8282. else
  8283. # not using gcc
  8284. if test ia64 = "$host_cpu"; then
  8285. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8286. # chokes on -Wl,-G. The following line is correct:
  8287. shared_flag='-G'
  8288. else
  8289. if test yes = "$aix_use_runtimelinking"; then
  8290. shared_flag='$wl-G'
  8291. else
  8292. shared_flag='$wl-bM:SRE'
  8293. fi
  8294. shared_flag_aix='$wl-bM:SRE'
  8295. shared_flag_svr4='$wl-G'
  8296. fi
  8297. fi
  8298. export_dynamic_flag_spec='$wl-bexpall'
  8299. # It seems that -bexpall does not export symbols beginning with
  8300. # underscore (_), so it is better to generate a list of symbols to export.
  8301. always_export_symbols=yes
  8302. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  8303. # Warning - without using the other runtime loading flags (-brtl),
  8304. # -berok will link without error, but may produce a broken library.
  8305. allow_undefined_flag='-berok'
  8306. # Determine the default libpath from the value encoded in an
  8307. # empty executable.
  8308. if test set = "${lt_cv_aix_libpath+set}"; then
  8309. aix_libpath=$lt_cv_aix_libpath
  8310. else
  8311. if ${lt_cv_aix_libpath_+:} false; then :
  8312. $as_echo_n "(cached) " >&6
  8313. else
  8314. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8315. /* end confdefs.h. */
  8316. int
  8317. main ()
  8318. {
  8319. ;
  8320. return 0;
  8321. }
  8322. _ACEOF
  8323. if ac_fn_c_try_link "$LINENO"; then :
  8324. lt_aix_libpath_sed='
  8325. /Import File Strings/,/^$/ {
  8326. /^0/ {
  8327. s/^0 *\([^ ]*\) *$/\1/
  8328. p
  8329. }
  8330. }'
  8331. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8332. # Check for a 64-bit object if we didn't find anything.
  8333. if test -z "$lt_cv_aix_libpath_"; then
  8334. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8335. fi
  8336. fi
  8337. rm -f core conftest.err conftest.$ac_objext \
  8338. conftest$ac_exeext conftest.$ac_ext
  8339. if test -z "$lt_cv_aix_libpath_"; then
  8340. lt_cv_aix_libpath_=/usr/lib:/lib
  8341. fi
  8342. fi
  8343. aix_libpath=$lt_cv_aix_libpath_
  8344. fi
  8345. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8346. 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
  8347. else
  8348. if test ia64 = "$host_cpu"; then
  8349. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  8350. allow_undefined_flag="-z nodefs"
  8351. 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"
  8352. else
  8353. # Determine the default libpath from the value encoded in an
  8354. # empty executable.
  8355. if test set = "${lt_cv_aix_libpath+set}"; then
  8356. aix_libpath=$lt_cv_aix_libpath
  8357. else
  8358. if ${lt_cv_aix_libpath_+:} false; then :
  8359. $as_echo_n "(cached) " >&6
  8360. else
  8361. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8362. /* end confdefs.h. */
  8363. int
  8364. main ()
  8365. {
  8366. ;
  8367. return 0;
  8368. }
  8369. _ACEOF
  8370. if ac_fn_c_try_link "$LINENO"; then :
  8371. lt_aix_libpath_sed='
  8372. /Import File Strings/,/^$/ {
  8373. /^0/ {
  8374. s/^0 *\([^ ]*\) *$/\1/
  8375. p
  8376. }
  8377. }'
  8378. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8379. # Check for a 64-bit object if we didn't find anything.
  8380. if test -z "$lt_cv_aix_libpath_"; then
  8381. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8382. fi
  8383. fi
  8384. rm -f core conftest.err conftest.$ac_objext \
  8385. conftest$ac_exeext conftest.$ac_ext
  8386. if test -z "$lt_cv_aix_libpath_"; then
  8387. lt_cv_aix_libpath_=/usr/lib:/lib
  8388. fi
  8389. fi
  8390. aix_libpath=$lt_cv_aix_libpath_
  8391. fi
  8392. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8393. # Warning - without using the other run time loading flags,
  8394. # -berok will link without error, but may produce a broken library.
  8395. no_undefined_flag=' $wl-bernotok'
  8396. allow_undefined_flag=' $wl-berok'
  8397. if test yes = "$with_gnu_ld"; then
  8398. # We only use this code for GNU lds that support --whole-archive.
  8399. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  8400. else
  8401. # Exported symbols can be pulled into shared objects from archives
  8402. whole_archive_flag_spec='$convenience'
  8403. fi
  8404. archive_cmds_need_lc=yes
  8405. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  8406. # -brtl affects multiple linker settings, -berok does not and is overridden later
  8407. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  8408. if test svr4 != "$with_aix_soname"; then
  8409. # This is similar to how AIX traditionally builds its shared libraries.
  8410. 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'
  8411. fi
  8412. if test aix != "$with_aix_soname"; then
  8413. 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'
  8414. else
  8415. # used by -dlpreopen to get the symbols
  8416. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  8417. fi
  8418. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  8419. fi
  8420. fi
  8421. ;;
  8422. amigaos*)
  8423. case $host_cpu in
  8424. powerpc)
  8425. # see comment about AmigaOS4 .so support
  8426. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8427. archive_expsym_cmds=''
  8428. ;;
  8429. m68k)
  8430. 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)'
  8431. hardcode_libdir_flag_spec='-L$libdir'
  8432. hardcode_minus_L=yes
  8433. ;;
  8434. esac
  8435. ;;
  8436. bsdi[45]*)
  8437. export_dynamic_flag_spec=-rdynamic
  8438. ;;
  8439. cygwin* | mingw* | pw32* | cegcc*)
  8440. # When not using gcc, we currently assume that we are using
  8441. # Microsoft Visual C++.
  8442. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8443. # no search path for DLLs.
  8444. case $cc_basename in
  8445. cl*)
  8446. # Native MSVC
  8447. hardcode_libdir_flag_spec=' '
  8448. allow_undefined_flag=unsupported
  8449. always_export_symbols=yes
  8450. file_list_spec='@'
  8451. # Tell ltmain to make .lib files, not .a files.
  8452. libext=lib
  8453. # Tell ltmain to make .dll files, not .so files.
  8454. shrext_cmds=.dll
  8455. # FIXME: Setting linknames here is a bad hack.
  8456. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  8457. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8458. cp "$export_symbols" "$output_objdir/$soname.def";
  8459. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  8460. else
  8461. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  8462. fi~
  8463. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8464. linknames='
  8465. # The linker will not automatically build a static lib if we build a DLL.
  8466. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8467. enable_shared_with_static_runtimes=yes
  8468. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8469. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8470. # Don't use ranlib
  8471. old_postinstall_cmds='chmod 644 $oldlib'
  8472. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8473. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8474. case $lt_outputfile in
  8475. *.exe|*.EXE) ;;
  8476. *)
  8477. lt_outputfile=$lt_outputfile.exe
  8478. lt_tool_outputfile=$lt_tool_outputfile.exe
  8479. ;;
  8480. esac~
  8481. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  8482. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8483. $RM "$lt_outputfile.manifest";
  8484. fi'
  8485. ;;
  8486. *)
  8487. # Assume MSVC wrapper
  8488. hardcode_libdir_flag_spec=' '
  8489. allow_undefined_flag=unsupported
  8490. # Tell ltmain to make .lib files, not .a files.
  8491. libext=lib
  8492. # Tell ltmain to make .dll files, not .so files.
  8493. shrext_cmds=.dll
  8494. # FIXME: Setting linknames here is a bad hack.
  8495. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8496. # The linker will automatically build a .lib file if we build a DLL.
  8497. old_archive_from_new_cmds='true'
  8498. # FIXME: Should let the user specify the lib program.
  8499. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8500. enable_shared_with_static_runtimes=yes
  8501. ;;
  8502. esac
  8503. ;;
  8504. darwin* | rhapsody*)
  8505. archive_cmds_need_lc=no
  8506. hardcode_direct=no
  8507. hardcode_automatic=yes
  8508. hardcode_shlibpath_var=unsupported
  8509. if test yes = "$lt_cv_ld_force_load"; then
  8510. 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\"`'
  8511. else
  8512. whole_archive_flag_spec=''
  8513. fi
  8514. link_all_deplibs=yes
  8515. allow_undefined_flag=$_lt_dar_allow_undefined
  8516. case $cc_basename in
  8517. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  8518. *) _lt_dar_can_shared=$GCC ;;
  8519. esac
  8520. if test yes = "$_lt_dar_can_shared"; then
  8521. output_verbose_link_cmd=func_echo_all
  8522. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  8523. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  8524. 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"
  8525. 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"
  8526. else
  8527. ld_shlibs=no
  8528. fi
  8529. ;;
  8530. dgux*)
  8531. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8532. hardcode_libdir_flag_spec='-L$libdir'
  8533. hardcode_shlibpath_var=no
  8534. ;;
  8535. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8536. # support. Future versions do this automatically, but an explicit c++rt0.o
  8537. # does not break anything, and helps significantly (at the cost of a little
  8538. # extra space).
  8539. freebsd2.2*)
  8540. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8541. hardcode_libdir_flag_spec='-R$libdir'
  8542. hardcode_direct=yes
  8543. hardcode_shlibpath_var=no
  8544. ;;
  8545. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8546. freebsd2.*)
  8547. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8548. hardcode_direct=yes
  8549. hardcode_minus_L=yes
  8550. hardcode_shlibpath_var=no
  8551. ;;
  8552. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8553. freebsd* | dragonfly*)
  8554. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8555. hardcode_libdir_flag_spec='-R$libdir'
  8556. hardcode_direct=yes
  8557. hardcode_shlibpath_var=no
  8558. ;;
  8559. hpux9*)
  8560. if test yes = "$GCC"; then
  8561. 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'
  8562. else
  8563. 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'
  8564. fi
  8565. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8566. hardcode_libdir_separator=:
  8567. hardcode_direct=yes
  8568. # hardcode_minus_L: Not really in the search PATH,
  8569. # but as the default location of the library.
  8570. hardcode_minus_L=yes
  8571. export_dynamic_flag_spec='$wl-E'
  8572. ;;
  8573. hpux10*)
  8574. if test yes,no = "$GCC,$with_gnu_ld"; then
  8575. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8576. else
  8577. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8578. fi
  8579. if test no = "$with_gnu_ld"; then
  8580. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8581. hardcode_libdir_separator=:
  8582. hardcode_direct=yes
  8583. hardcode_direct_absolute=yes
  8584. export_dynamic_flag_spec='$wl-E'
  8585. # hardcode_minus_L: Not really in the search PATH,
  8586. # but as the default location of the library.
  8587. hardcode_minus_L=yes
  8588. fi
  8589. ;;
  8590. hpux11*)
  8591. if test yes,no = "$GCC,$with_gnu_ld"; then
  8592. case $host_cpu in
  8593. hppa*64*)
  8594. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8595. ;;
  8596. ia64*)
  8597. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8598. ;;
  8599. *)
  8600. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8601. ;;
  8602. esac
  8603. else
  8604. case $host_cpu in
  8605. hppa*64*)
  8606. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8607. ;;
  8608. ia64*)
  8609. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8610. ;;
  8611. *)
  8612. # Older versions of the 11.00 compiler do not understand -b yet
  8613. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8615. $as_echo_n "checking if $CC understands -b... " >&6; }
  8616. if ${lt_cv_prog_compiler__b+:} false; then :
  8617. $as_echo_n "(cached) " >&6
  8618. else
  8619. lt_cv_prog_compiler__b=no
  8620. save_LDFLAGS=$LDFLAGS
  8621. LDFLAGS="$LDFLAGS -b"
  8622. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8623. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8624. # The linker can only warn and ignore the option if not recognized
  8625. # So say no if there are warnings
  8626. if test -s conftest.err; then
  8627. # Append any errors to the config.log.
  8628. cat conftest.err 1>&5
  8629. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8630. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8631. if diff conftest.exp conftest.er2 >/dev/null; then
  8632. lt_cv_prog_compiler__b=yes
  8633. fi
  8634. else
  8635. lt_cv_prog_compiler__b=yes
  8636. fi
  8637. fi
  8638. $RM -r conftest*
  8639. LDFLAGS=$save_LDFLAGS
  8640. fi
  8641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8642. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8643. if test yes = "$lt_cv_prog_compiler__b"; then
  8644. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8645. else
  8646. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8647. fi
  8648. ;;
  8649. esac
  8650. fi
  8651. if test no = "$with_gnu_ld"; then
  8652. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8653. hardcode_libdir_separator=:
  8654. case $host_cpu in
  8655. hppa*64*|ia64*)
  8656. hardcode_direct=no
  8657. hardcode_shlibpath_var=no
  8658. ;;
  8659. *)
  8660. hardcode_direct=yes
  8661. hardcode_direct_absolute=yes
  8662. export_dynamic_flag_spec='$wl-E'
  8663. # hardcode_minus_L: Not really in the search PATH,
  8664. # but as the default location of the library.
  8665. hardcode_minus_L=yes
  8666. ;;
  8667. esac
  8668. fi
  8669. ;;
  8670. irix5* | irix6* | nonstopux*)
  8671. if test yes = "$GCC"; then
  8672. 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'
  8673. # Try to use the -exported_symbol ld option, if it does not
  8674. # work, assume that -exports_file does not work either and
  8675. # implicitly export all symbols.
  8676. # This should be the same for all languages, so no per-tag cache variable.
  8677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8678. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8679. if ${lt_cv_irix_exported_symbol+:} false; then :
  8680. $as_echo_n "(cached) " >&6
  8681. else
  8682. save_LDFLAGS=$LDFLAGS
  8683. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  8684. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8685. /* end confdefs.h. */
  8686. int foo (void) { return 0; }
  8687. _ACEOF
  8688. if ac_fn_c_try_link "$LINENO"; then :
  8689. lt_cv_irix_exported_symbol=yes
  8690. else
  8691. lt_cv_irix_exported_symbol=no
  8692. fi
  8693. rm -f core conftest.err conftest.$ac_objext \
  8694. conftest$ac_exeext conftest.$ac_ext
  8695. LDFLAGS=$save_LDFLAGS
  8696. fi
  8697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8698. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8699. if test yes = "$lt_cv_irix_exported_symbol"; then
  8700. 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'
  8701. fi
  8702. else
  8703. 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'
  8704. 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'
  8705. fi
  8706. archive_cmds_need_lc='no'
  8707. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8708. hardcode_libdir_separator=:
  8709. inherit_rpath=yes
  8710. link_all_deplibs=yes
  8711. ;;
  8712. linux*)
  8713. case $cc_basename in
  8714. tcc*)
  8715. # Fabrice Bellard et al's Tiny C Compiler
  8716. ld_shlibs=yes
  8717. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8718. ;;
  8719. esac
  8720. ;;
  8721. netbsd*)
  8722. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8723. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8724. else
  8725. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8726. fi
  8727. hardcode_libdir_flag_spec='-R$libdir'
  8728. hardcode_direct=yes
  8729. hardcode_shlibpath_var=no
  8730. ;;
  8731. newsos6)
  8732. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8733. hardcode_direct=yes
  8734. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8735. hardcode_libdir_separator=:
  8736. hardcode_shlibpath_var=no
  8737. ;;
  8738. *nto* | *qnx*)
  8739. ;;
  8740. openbsd* | bitrig*)
  8741. if test -f /usr/libexec/ld.so; then
  8742. hardcode_direct=yes
  8743. hardcode_shlibpath_var=no
  8744. hardcode_direct_absolute=yes
  8745. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  8746. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8747. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  8748. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8749. export_dynamic_flag_spec='$wl-E'
  8750. else
  8751. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8752. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8753. fi
  8754. else
  8755. ld_shlibs=no
  8756. fi
  8757. ;;
  8758. os2*)
  8759. hardcode_libdir_flag_spec='-L$libdir'
  8760. hardcode_minus_L=yes
  8761. allow_undefined_flag=unsupported
  8762. shrext_cmds=.dll
  8763. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8764. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8765. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8766. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8767. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8768. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8769. emximp -o $lib $output_objdir/$libname.def'
  8770. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8771. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8772. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8773. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8774. prefix_cmds="$SED"~
  8775. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8776. prefix_cmds="$prefix_cmds -e 1d";
  8777. fi~
  8778. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8779. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8780. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8781. emximp -o $lib $output_objdir/$libname.def'
  8782. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8783. enable_shared_with_static_runtimes=yes
  8784. ;;
  8785. osf3*)
  8786. if test yes = "$GCC"; then
  8787. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  8788. 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'
  8789. else
  8790. allow_undefined_flag=' -expect_unresolved \*'
  8791. 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'
  8792. fi
  8793. archive_cmds_need_lc='no'
  8794. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8795. hardcode_libdir_separator=:
  8796. ;;
  8797. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8798. if test yes = "$GCC"; then
  8799. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  8800. 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'
  8801. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8802. else
  8803. allow_undefined_flag=' -expect_unresolved \*'
  8804. 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'
  8805. 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~
  8806. $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'
  8807. # Both c and cxx compiler support -rpath directly
  8808. hardcode_libdir_flag_spec='-rpath $libdir'
  8809. fi
  8810. archive_cmds_need_lc='no'
  8811. hardcode_libdir_separator=:
  8812. ;;
  8813. solaris*)
  8814. no_undefined_flag=' -z defs'
  8815. if test yes = "$GCC"; then
  8816. wlarc='$wl'
  8817. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8818. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8819. $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'
  8820. else
  8821. case `$CC -V 2>&1` in
  8822. *"Compilers 5.0"*)
  8823. wlarc=''
  8824. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8825. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8826. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8827. ;;
  8828. *)
  8829. wlarc='$wl'
  8830. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8831. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8832. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8833. ;;
  8834. esac
  8835. fi
  8836. hardcode_libdir_flag_spec='-R$libdir'
  8837. hardcode_shlibpath_var=no
  8838. case $host_os in
  8839. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8840. *)
  8841. # The compiler driver will combine and reorder linker options,
  8842. # but understands '-z linker_flag'. GCC discards it without '$wl',
  8843. # but is careful enough not to reorder.
  8844. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8845. if test yes = "$GCC"; then
  8846. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  8847. else
  8848. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8849. fi
  8850. ;;
  8851. esac
  8852. link_all_deplibs=yes
  8853. ;;
  8854. sunos4*)
  8855. if test sequent = "$host_vendor"; then
  8856. # Use $CC to link under sequent, because it throws in some extra .o
  8857. # files that make .init and .fini sections work.
  8858. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8859. else
  8860. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8861. fi
  8862. hardcode_libdir_flag_spec='-L$libdir'
  8863. hardcode_direct=yes
  8864. hardcode_minus_L=yes
  8865. hardcode_shlibpath_var=no
  8866. ;;
  8867. sysv4)
  8868. case $host_vendor in
  8869. sni)
  8870. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8871. hardcode_direct=yes # is this really true???
  8872. ;;
  8873. siemens)
  8874. ## LD is ld it makes a PLAMLIB
  8875. ## CC just makes a GrossModule.
  8876. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8877. reload_cmds='$CC -r -o $output$reload_objs'
  8878. hardcode_direct=no
  8879. ;;
  8880. motorola)
  8881. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8882. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8883. ;;
  8884. esac
  8885. runpath_var='LD_RUN_PATH'
  8886. hardcode_shlibpath_var=no
  8887. ;;
  8888. sysv4.3*)
  8889. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8890. hardcode_shlibpath_var=no
  8891. export_dynamic_flag_spec='-Bexport'
  8892. ;;
  8893. sysv4*MP*)
  8894. if test -d /usr/nec; then
  8895. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8896. hardcode_shlibpath_var=no
  8897. runpath_var=LD_RUN_PATH
  8898. hardcode_runpath_var=yes
  8899. ld_shlibs=yes
  8900. fi
  8901. ;;
  8902. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8903. no_undefined_flag='$wl-z,text'
  8904. archive_cmds_need_lc=no
  8905. hardcode_shlibpath_var=no
  8906. runpath_var='LD_RUN_PATH'
  8907. if test yes = "$GCC"; then
  8908. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8909. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8910. else
  8911. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8912. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8913. fi
  8914. ;;
  8915. sysv5* | sco3.2v5* | sco5v6*)
  8916. # Note: We CANNOT use -z defs as we might desire, because we do not
  8917. # link with -lc, and that would cause any symbols used from libc to
  8918. # always be unresolved, which means just about no library would
  8919. # ever link correctly. If we're not using GNU ld we use -z text
  8920. # though, which does catch some bad symbols but isn't as heavy-handed
  8921. # as -z defs.
  8922. no_undefined_flag='$wl-z,text'
  8923. allow_undefined_flag='$wl-z,nodefs'
  8924. archive_cmds_need_lc=no
  8925. hardcode_shlibpath_var=no
  8926. hardcode_libdir_flag_spec='$wl-R,$libdir'
  8927. hardcode_libdir_separator=':'
  8928. link_all_deplibs=yes
  8929. export_dynamic_flag_spec='$wl-Bexport'
  8930. runpath_var='LD_RUN_PATH'
  8931. if test yes = "$GCC"; then
  8932. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8933. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8934. else
  8935. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8936. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8937. fi
  8938. ;;
  8939. uts4*)
  8940. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8941. hardcode_libdir_flag_spec='-L$libdir'
  8942. hardcode_shlibpath_var=no
  8943. ;;
  8944. *)
  8945. ld_shlibs=no
  8946. ;;
  8947. esac
  8948. if test sni = "$host_vendor"; then
  8949. case $host in
  8950. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8951. export_dynamic_flag_spec='$wl-Blargedynsym'
  8952. ;;
  8953. esac
  8954. fi
  8955. fi
  8956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8957. $as_echo "$ld_shlibs" >&6; }
  8958. test no = "$ld_shlibs" && can_build_shared=no
  8959. with_gnu_ld=$with_gnu_ld
  8960. #
  8961. # Do we need to explicitly link libc?
  8962. #
  8963. case "x$archive_cmds_need_lc" in
  8964. x|xyes)
  8965. # Assume -lc should be added
  8966. archive_cmds_need_lc=yes
  8967. if test yes,yes = "$GCC,$enable_shared"; then
  8968. case $archive_cmds in
  8969. *'~'*)
  8970. # FIXME: we may have to deal with multi-command sequences.
  8971. ;;
  8972. '$CC '*)
  8973. # Test whether the compiler implicitly links with -lc since on some
  8974. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8975. # to ld, don't add -lc before -lgcc.
  8976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8977. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8978. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8979. $as_echo_n "(cached) " >&6
  8980. else
  8981. $RM conftest*
  8982. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8983. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8984. (eval $ac_compile) 2>&5
  8985. ac_status=$?
  8986. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8987. test $ac_status = 0; } 2>conftest.err; then
  8988. soname=conftest
  8989. lib=conftest
  8990. libobjs=conftest.$ac_objext
  8991. deplibs=
  8992. wl=$lt_prog_compiler_wl
  8993. pic_flag=$lt_prog_compiler_pic
  8994. compiler_flags=-v
  8995. linker_flags=-v
  8996. verstring=
  8997. output_objdir=.
  8998. libname=conftest
  8999. lt_save_allow_undefined_flag=$allow_undefined_flag
  9000. allow_undefined_flag=
  9001. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9002. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9003. ac_status=$?
  9004. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9005. test $ac_status = 0; }
  9006. then
  9007. lt_cv_archive_cmds_need_lc=no
  9008. else
  9009. lt_cv_archive_cmds_need_lc=yes
  9010. fi
  9011. allow_undefined_flag=$lt_save_allow_undefined_flag
  9012. else
  9013. cat conftest.err 1>&5
  9014. fi
  9015. $RM conftest*
  9016. fi
  9017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9018. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9019. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9020. ;;
  9021. esac
  9022. fi
  9023. ;;
  9024. esac
  9025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9026. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9027. if test yes = "$GCC"; then
  9028. case $host_os in
  9029. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9030. *) lt_awk_arg='/^libraries:/' ;;
  9031. esac
  9032. case $host_os in
  9033. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9034. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9035. esac
  9036. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9037. case $lt_search_path_spec in
  9038. *\;*)
  9039. # if the path contains ";" then we assume it to be the separator
  9040. # otherwise default to the standard path separator (i.e. ":") - it is
  9041. # assumed that no part of a normal pathname contains ";" but that should
  9042. # okay in the real world where ";" in dirpaths is itself problematic.
  9043. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9044. ;;
  9045. *)
  9046. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9047. ;;
  9048. esac
  9049. # Ok, now we have the path, separated by spaces, we can step through it
  9050. # and add multilib dir if necessary...
  9051. lt_tmp_lt_search_path_spec=
  9052. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9053. # ...but if some path component already ends with the multilib dir we assume
  9054. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9055. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9056. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9057. lt_multi_os_dir=
  9058. ;;
  9059. esac
  9060. for lt_sys_path in $lt_search_path_spec; do
  9061. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9062. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9063. elif test -n "$lt_multi_os_dir"; then
  9064. test -d "$lt_sys_path" && \
  9065. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9066. fi
  9067. done
  9068. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9069. BEGIN {RS = " "; FS = "/|\n";} {
  9070. lt_foo = "";
  9071. lt_count = 0;
  9072. for (lt_i = NF; lt_i > 0; lt_i--) {
  9073. if ($lt_i != "" && $lt_i != ".") {
  9074. if ($lt_i == "..") {
  9075. lt_count++;
  9076. } else {
  9077. if (lt_count == 0) {
  9078. lt_foo = "/" $lt_i lt_foo;
  9079. } else {
  9080. lt_count--;
  9081. }
  9082. }
  9083. }
  9084. }
  9085. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9086. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9087. }'`
  9088. # AWK program above erroneously prepends '/' to C:/dos/paths
  9089. # for these hosts.
  9090. case $host_os in
  9091. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9092. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9093. esac
  9094. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9095. else
  9096. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9097. fi
  9098. library_names_spec=
  9099. libname_spec='lib$name'
  9100. soname_spec=
  9101. shrext_cmds=.so
  9102. postinstall_cmds=
  9103. postuninstall_cmds=
  9104. finish_cmds=
  9105. finish_eval=
  9106. shlibpath_var=
  9107. shlibpath_overrides_runpath=unknown
  9108. version_type=none
  9109. dynamic_linker="$host_os ld.so"
  9110. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9111. need_lib_prefix=unknown
  9112. hardcode_into_libs=no
  9113. # when you set need_version to no, make sure it does not cause -set_version
  9114. # flags to be left without arguments
  9115. need_version=unknown
  9116. case $host_os in
  9117. aix3*)
  9118. version_type=linux # correct to gnu/linux during the next big refactor
  9119. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9120. shlibpath_var=LIBPATH
  9121. # AIX 3 has no versioning support, so we append a major version to the name.
  9122. soname_spec='$libname$release$shared_ext$major'
  9123. ;;
  9124. aix[4-9]*)
  9125. version_type=linux # correct to gnu/linux during the next big refactor
  9126. need_lib_prefix=no
  9127. need_version=no
  9128. hardcode_into_libs=yes
  9129. if test ia64 = "$host_cpu"; then
  9130. # AIX 5 supports IA64
  9131. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9132. shlibpath_var=LD_LIBRARY_PATH
  9133. else
  9134. # With GCC up to 2.95.x, collect2 would create an import file
  9135. # for dependence libraries. The import file would start with
  9136. # the line '#! .'. This would cause the generated library to
  9137. # depend on '.', always an invalid library. This was fixed in
  9138. # development snapshots of GCC prior to 3.0.
  9139. case $host_os in
  9140. aix4 | aix4.[01] | aix4.[01].*)
  9141. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9142. echo ' yes '
  9143. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9144. :
  9145. else
  9146. can_build_shared=no
  9147. fi
  9148. ;;
  9149. esac
  9150. # Using Import Files as archive members, it is possible to support
  9151. # filename-based versioning of shared library archives on AIX. While
  9152. # this would work for both with and without runtime linking, it will
  9153. # prevent static linking of such archives. So we do filename-based
  9154. # shared library versioning with .so extension only, which is used
  9155. # when both runtime linking and shared linking is enabled.
  9156. # Unfortunately, runtime linking may impact performance, so we do
  9157. # not want this to be the default eventually. Also, we use the
  9158. # versioned .so libs for executables only if there is the -brtl
  9159. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9160. # To allow for filename-based versioning support, we need to create
  9161. # libNAME.so.V as an archive file, containing:
  9162. # *) an Import File, referring to the versioned filename of the
  9163. # archive as well as the shared archive member, telling the
  9164. # bitwidth (32 or 64) of that shared object, and providing the
  9165. # list of exported symbols of that shared object, eventually
  9166. # decorated with the 'weak' keyword
  9167. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9168. # it being seen by the linker.
  9169. # At run time we better use the real file rather than another symlink,
  9170. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9171. case $with_aix_soname,$aix_use_runtimelinking in
  9172. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9173. # soname into executable. Probably we can add versioning support to
  9174. # collect2, so additional links can be useful in future.
  9175. aix,yes) # traditional libtool
  9176. dynamic_linker='AIX unversionable lib.so'
  9177. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9178. # instead of lib<name>.a to let people know that these are not
  9179. # typical AIX shared libraries.
  9180. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9181. ;;
  9182. aix,no) # traditional AIX only
  9183. dynamic_linker='AIX lib.a(lib.so.V)'
  9184. # We preserve .a as extension for shared libraries through AIX4.2
  9185. # and later when we are not doing run time linking.
  9186. library_names_spec='$libname$release.a $libname.a'
  9187. soname_spec='$libname$release$shared_ext$major'
  9188. ;;
  9189. svr4,*) # full svr4 only
  9190. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9191. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9192. # We do not specify a path in Import Files, so LIBPATH fires.
  9193. shlibpath_overrides_runpath=yes
  9194. ;;
  9195. *,yes) # both, prefer svr4
  9196. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9197. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9198. # unpreferred sharedlib libNAME.a needs extra handling
  9199. 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"'
  9200. 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"'
  9201. # We do not specify a path in Import Files, so LIBPATH fires.
  9202. shlibpath_overrides_runpath=yes
  9203. ;;
  9204. *,no) # both, prefer aix
  9205. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9206. library_names_spec='$libname$release.a $libname.a'
  9207. soname_spec='$libname$release$shared_ext$major'
  9208. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9209. 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)'
  9210. 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"'
  9211. ;;
  9212. esac
  9213. shlibpath_var=LIBPATH
  9214. fi
  9215. ;;
  9216. amigaos*)
  9217. case $host_cpu in
  9218. powerpc)
  9219. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9220. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9221. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9222. ;;
  9223. m68k)
  9224. library_names_spec='$libname.ixlibrary $libname.a'
  9225. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9226. 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'
  9227. ;;
  9228. esac
  9229. ;;
  9230. beos*)
  9231. library_names_spec='$libname$shared_ext'
  9232. dynamic_linker="$host_os ld.so"
  9233. shlibpath_var=LIBRARY_PATH
  9234. ;;
  9235. bsdi[45]*)
  9236. version_type=linux # correct to gnu/linux during the next big refactor
  9237. need_version=no
  9238. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9239. soname_spec='$libname$release$shared_ext$major'
  9240. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9241. shlibpath_var=LD_LIBRARY_PATH
  9242. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9243. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9244. # the default ld.so.conf also contains /usr/contrib/lib and
  9245. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9246. # libtool to hard-code these into programs
  9247. ;;
  9248. cygwin* | mingw* | pw32* | cegcc*)
  9249. version_type=windows
  9250. shrext_cmds=.dll
  9251. need_version=no
  9252. need_lib_prefix=no
  9253. case $GCC,$cc_basename in
  9254. yes,*)
  9255. # gcc
  9256. library_names_spec='$libname.dll.a'
  9257. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9258. postinstall_cmds='base_file=`basename \$file`~
  9259. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9260. dldir=$destdir/`dirname \$dlpath`~
  9261. test -d \$dldir || mkdir -p \$dldir~
  9262. $install_prog $dir/$dlname \$dldir/$dlname~
  9263. chmod a+x \$dldir/$dlname~
  9264. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9265. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9266. fi'
  9267. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9268. dlpath=$dir/\$dldll~
  9269. $RM \$dlpath'
  9270. shlibpath_overrides_runpath=yes
  9271. case $host_os in
  9272. cygwin*)
  9273. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9274. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9275. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9276. ;;
  9277. mingw* | cegcc*)
  9278. # MinGW DLLs use traditional 'lib' prefix
  9279. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9280. ;;
  9281. pw32*)
  9282. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9283. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9284. ;;
  9285. esac
  9286. dynamic_linker='Win32 ld.exe'
  9287. ;;
  9288. *,cl*)
  9289. # Native MSVC
  9290. libname_spec='$name'
  9291. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9292. library_names_spec='$libname.dll.lib'
  9293. case $build_os in
  9294. mingw*)
  9295. sys_lib_search_path_spec=
  9296. lt_save_ifs=$IFS
  9297. IFS=';'
  9298. for lt_path in $LIB
  9299. do
  9300. IFS=$lt_save_ifs
  9301. # Let DOS variable expansion print the short 8.3 style file name.
  9302. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9303. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9304. done
  9305. IFS=$lt_save_ifs
  9306. # Convert to MSYS style.
  9307. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9308. ;;
  9309. cygwin*)
  9310. # Convert to unix form, then to dos form, then back to unix form
  9311. # but this time dos style (no spaces!) so that the unix form looks
  9312. # like /cygdrive/c/PROGRA~1:/cygdr...
  9313. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9314. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9315. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9316. ;;
  9317. *)
  9318. sys_lib_search_path_spec=$LIB
  9319. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9320. # It is most probably a Windows format PATH.
  9321. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9322. else
  9323. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9324. fi
  9325. # FIXME: find the short name or the path components, as spaces are
  9326. # common. (e.g. "Program Files" -> "PROGRA~1")
  9327. ;;
  9328. esac
  9329. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9330. postinstall_cmds='base_file=`basename \$file`~
  9331. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9332. dldir=$destdir/`dirname \$dlpath`~
  9333. test -d \$dldir || mkdir -p \$dldir~
  9334. $install_prog $dir/$dlname \$dldir/$dlname'
  9335. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9336. dlpath=$dir/\$dldll~
  9337. $RM \$dlpath'
  9338. shlibpath_overrides_runpath=yes
  9339. dynamic_linker='Win32 link.exe'
  9340. ;;
  9341. *)
  9342. # Assume MSVC wrapper
  9343. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  9344. dynamic_linker='Win32 ld.exe'
  9345. ;;
  9346. esac
  9347. # FIXME: first we should search . and the directory the executable is in
  9348. shlibpath_var=PATH
  9349. ;;
  9350. darwin* | rhapsody*)
  9351. dynamic_linker="$host_os dyld"
  9352. version_type=darwin
  9353. need_lib_prefix=no
  9354. need_version=no
  9355. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  9356. soname_spec='$libname$release$major$shared_ext'
  9357. shlibpath_overrides_runpath=yes
  9358. shlibpath_var=DYLD_LIBRARY_PATH
  9359. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9360. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9361. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9362. ;;
  9363. dgux*)
  9364. version_type=linux # correct to gnu/linux during the next big refactor
  9365. need_lib_prefix=no
  9366. need_version=no
  9367. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9368. soname_spec='$libname$release$shared_ext$major'
  9369. shlibpath_var=LD_LIBRARY_PATH
  9370. ;;
  9371. freebsd* | dragonfly*)
  9372. # DragonFly does not have aout. When/if they implement a new
  9373. # versioning mechanism, adjust this.
  9374. if test -x /usr/bin/objformat; then
  9375. objformat=`/usr/bin/objformat`
  9376. else
  9377. case $host_os in
  9378. freebsd[23].*) objformat=aout ;;
  9379. *) objformat=elf ;;
  9380. esac
  9381. fi
  9382. version_type=freebsd-$objformat
  9383. case $version_type in
  9384. freebsd-elf*)
  9385. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9386. soname_spec='$libname$release$shared_ext$major'
  9387. need_version=no
  9388. need_lib_prefix=no
  9389. ;;
  9390. freebsd-*)
  9391. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9392. need_version=yes
  9393. ;;
  9394. esac
  9395. shlibpath_var=LD_LIBRARY_PATH
  9396. case $host_os in
  9397. freebsd2.*)
  9398. shlibpath_overrides_runpath=yes
  9399. ;;
  9400. freebsd3.[01]* | freebsdelf3.[01]*)
  9401. shlibpath_overrides_runpath=yes
  9402. hardcode_into_libs=yes
  9403. ;;
  9404. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9405. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9406. shlibpath_overrides_runpath=no
  9407. hardcode_into_libs=yes
  9408. ;;
  9409. *) # from 4.6 on, and DragonFly
  9410. shlibpath_overrides_runpath=yes
  9411. hardcode_into_libs=yes
  9412. ;;
  9413. esac
  9414. ;;
  9415. haiku*)
  9416. version_type=linux # correct to gnu/linux during the next big refactor
  9417. need_lib_prefix=no
  9418. need_version=no
  9419. dynamic_linker="$host_os runtime_loader"
  9420. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9421. soname_spec='$libname$release$shared_ext$major'
  9422. shlibpath_var=LIBRARY_PATH
  9423. shlibpath_overrides_runpath=no
  9424. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9425. hardcode_into_libs=yes
  9426. ;;
  9427. hpux9* | hpux10* | hpux11*)
  9428. # Give a soname corresponding to the major version so that dld.sl refuses to
  9429. # link against other versions.
  9430. version_type=sunos
  9431. need_lib_prefix=no
  9432. need_version=no
  9433. case $host_cpu in
  9434. ia64*)
  9435. shrext_cmds='.so'
  9436. hardcode_into_libs=yes
  9437. dynamic_linker="$host_os dld.so"
  9438. shlibpath_var=LD_LIBRARY_PATH
  9439. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9440. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9441. soname_spec='$libname$release$shared_ext$major'
  9442. if test 32 = "$HPUX_IA64_MODE"; then
  9443. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9444. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  9445. else
  9446. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9447. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  9448. fi
  9449. ;;
  9450. hppa*64*)
  9451. shrext_cmds='.sl'
  9452. hardcode_into_libs=yes
  9453. dynamic_linker="$host_os dld.sl"
  9454. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9455. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9456. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9457. soname_spec='$libname$release$shared_ext$major'
  9458. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9459. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9460. ;;
  9461. *)
  9462. shrext_cmds='.sl'
  9463. dynamic_linker="$host_os dld.sl"
  9464. shlibpath_var=SHLIB_PATH
  9465. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9466. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9467. soname_spec='$libname$release$shared_ext$major'
  9468. ;;
  9469. esac
  9470. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9471. postinstall_cmds='chmod 555 $lib'
  9472. # or fails outright, so override atomically:
  9473. install_override_mode=555
  9474. ;;
  9475. interix[3-9]*)
  9476. version_type=linux # correct to gnu/linux during the next big refactor
  9477. need_lib_prefix=no
  9478. need_version=no
  9479. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9480. soname_spec='$libname$release$shared_ext$major'
  9481. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9482. shlibpath_var=LD_LIBRARY_PATH
  9483. shlibpath_overrides_runpath=no
  9484. hardcode_into_libs=yes
  9485. ;;
  9486. irix5* | irix6* | nonstopux*)
  9487. case $host_os in
  9488. nonstopux*) version_type=nonstopux ;;
  9489. *)
  9490. if test yes = "$lt_cv_prog_gnu_ld"; then
  9491. version_type=linux # correct to gnu/linux during the next big refactor
  9492. else
  9493. version_type=irix
  9494. fi ;;
  9495. esac
  9496. need_lib_prefix=no
  9497. need_version=no
  9498. soname_spec='$libname$release$shared_ext$major'
  9499. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  9500. case $host_os in
  9501. irix5* | nonstopux*)
  9502. libsuff= shlibsuff=
  9503. ;;
  9504. *)
  9505. case $LD in # libtool.m4 will add one of these switches to LD
  9506. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9507. libsuff= shlibsuff= libmagic=32-bit;;
  9508. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9509. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9510. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9511. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9512. *) libsuff= shlibsuff= libmagic=never-match;;
  9513. esac
  9514. ;;
  9515. esac
  9516. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9517. shlibpath_overrides_runpath=no
  9518. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  9519. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  9520. hardcode_into_libs=yes
  9521. ;;
  9522. # No shared lib support for Linux oldld, aout, or coff.
  9523. linux*oldld* | linux*aout* | linux*coff*)
  9524. dynamic_linker=no
  9525. ;;
  9526. linux*android*)
  9527. version_type=none # Android doesn't support versioned libraries.
  9528. need_lib_prefix=no
  9529. need_version=no
  9530. library_names_spec='$libname$release$shared_ext'
  9531. soname_spec='$libname$release$shared_ext'
  9532. finish_cmds=
  9533. shlibpath_var=LD_LIBRARY_PATH
  9534. shlibpath_overrides_runpath=yes
  9535. # This implies no fast_install, which is unacceptable.
  9536. # Some rework will be needed to allow for fast_install
  9537. # before this can be enabled.
  9538. hardcode_into_libs=yes
  9539. dynamic_linker='Android linker'
  9540. # Don't embed -rpath directories since the linker doesn't support them.
  9541. hardcode_libdir_flag_spec='-L$libdir'
  9542. ;;
  9543. # This must be glibc/ELF.
  9544. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9545. version_type=linux # correct to gnu/linux during the next big refactor
  9546. need_lib_prefix=no
  9547. need_version=no
  9548. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9549. soname_spec='$libname$release$shared_ext$major'
  9550. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9551. shlibpath_var=LD_LIBRARY_PATH
  9552. shlibpath_overrides_runpath=no
  9553. # Some binutils ld are patched to set DT_RUNPATH
  9554. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9555. $as_echo_n "(cached) " >&6
  9556. else
  9557. lt_cv_shlibpath_overrides_runpath=no
  9558. save_LDFLAGS=$LDFLAGS
  9559. save_libdir=$libdir
  9560. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9561. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9562. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9563. /* end confdefs.h. */
  9564. int
  9565. main ()
  9566. {
  9567. ;
  9568. return 0;
  9569. }
  9570. _ACEOF
  9571. if ac_fn_c_try_link "$LINENO"; then :
  9572. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9573. lt_cv_shlibpath_overrides_runpath=yes
  9574. fi
  9575. fi
  9576. rm -f core conftest.err conftest.$ac_objext \
  9577. conftest$ac_exeext conftest.$ac_ext
  9578. LDFLAGS=$save_LDFLAGS
  9579. libdir=$save_libdir
  9580. fi
  9581. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9582. # This implies no fast_install, which is unacceptable.
  9583. # Some rework will be needed to allow for fast_install
  9584. # before this can be enabled.
  9585. hardcode_into_libs=yes
  9586. # Add ABI-specific directories to the system library path.
  9587. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  9588. # Ideally, we could use ldconfig to report *all* directores which are
  9589. # searched for libraries, however this is still not possible. Aside from not
  9590. # being certain /sbin/ldconfig is available, command
  9591. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  9592. # even though it is searched at run-time. Try to do the best guess by
  9593. # appending ld.so.conf contents (and includes) to the search path.
  9594. if test -f /etc/ld.so.conf; then
  9595. 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' ' '`
  9596. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  9597. fi
  9598. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9599. # powerpc, because MkLinux only supported shared libraries with the
  9600. # GNU dynamic linker. Since this was broken with cross compilers,
  9601. # most powerpc-linux boxes support dynamic linking these days and
  9602. # people can always --disable-shared, the test was removed, and we
  9603. # assume the GNU/Linux dynamic linker is in use.
  9604. dynamic_linker='GNU/Linux ld.so'
  9605. ;;
  9606. netbsd*)
  9607. version_type=sunos
  9608. need_lib_prefix=no
  9609. need_version=no
  9610. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9611. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9612. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9613. dynamic_linker='NetBSD (a.out) ld.so'
  9614. else
  9615. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9616. soname_spec='$libname$release$shared_ext$major'
  9617. dynamic_linker='NetBSD ld.elf_so'
  9618. fi
  9619. shlibpath_var=LD_LIBRARY_PATH
  9620. shlibpath_overrides_runpath=yes
  9621. hardcode_into_libs=yes
  9622. ;;
  9623. newsos6)
  9624. version_type=linux # correct to gnu/linux during the next big refactor
  9625. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9626. shlibpath_var=LD_LIBRARY_PATH
  9627. shlibpath_overrides_runpath=yes
  9628. ;;
  9629. *nto* | *qnx*)
  9630. version_type=qnx
  9631. need_lib_prefix=no
  9632. need_version=no
  9633. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9634. soname_spec='$libname$release$shared_ext$major'
  9635. shlibpath_var=LD_LIBRARY_PATH
  9636. shlibpath_overrides_runpath=no
  9637. hardcode_into_libs=yes
  9638. dynamic_linker='ldqnx.so'
  9639. ;;
  9640. openbsd* | bitrig*)
  9641. version_type=sunos
  9642. sys_lib_dlsearch_path_spec=/usr/lib
  9643. need_lib_prefix=no
  9644. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9645. need_version=no
  9646. else
  9647. need_version=yes
  9648. fi
  9649. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9650. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9651. shlibpath_var=LD_LIBRARY_PATH
  9652. shlibpath_overrides_runpath=yes
  9653. ;;
  9654. os2*)
  9655. libname_spec='$name'
  9656. version_type=windows
  9657. shrext_cmds=.dll
  9658. need_version=no
  9659. need_lib_prefix=no
  9660. # OS/2 can only load a DLL with a base name of 8 characters or less.
  9661. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  9662. v=$($ECHO $release$versuffix | tr -d .-);
  9663. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  9664. $ECHO $n$v`$shared_ext'
  9665. library_names_spec='${libname}_dll.$libext'
  9666. dynamic_linker='OS/2 ld.exe'
  9667. shlibpath_var=BEGINLIBPATH
  9668. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9669. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9670. postinstall_cmds='base_file=`basename \$file`~
  9671. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  9672. dldir=$destdir/`dirname \$dlpath`~
  9673. test -d \$dldir || mkdir -p \$dldir~
  9674. $install_prog $dir/$dlname \$dldir/$dlname~
  9675. chmod a+x \$dldir/$dlname~
  9676. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9677. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9678. fi'
  9679. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  9680. dlpath=$dir/\$dldll~
  9681. $RM \$dlpath'
  9682. ;;
  9683. osf3* | osf4* | osf5*)
  9684. version_type=osf
  9685. need_lib_prefix=no
  9686. need_version=no
  9687. soname_spec='$libname$release$shared_ext$major'
  9688. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9689. shlibpath_var=LD_LIBRARY_PATH
  9690. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9691. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9692. ;;
  9693. rdos*)
  9694. dynamic_linker=no
  9695. ;;
  9696. solaris*)
  9697. version_type=linux # correct to gnu/linux during the next big refactor
  9698. need_lib_prefix=no
  9699. need_version=no
  9700. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9701. soname_spec='$libname$release$shared_ext$major'
  9702. shlibpath_var=LD_LIBRARY_PATH
  9703. shlibpath_overrides_runpath=yes
  9704. hardcode_into_libs=yes
  9705. # ldd complains unless libraries are executable
  9706. postinstall_cmds='chmod +x $lib'
  9707. ;;
  9708. sunos4*)
  9709. version_type=sunos
  9710. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9711. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9712. shlibpath_var=LD_LIBRARY_PATH
  9713. shlibpath_overrides_runpath=yes
  9714. if test yes = "$with_gnu_ld"; then
  9715. need_lib_prefix=no
  9716. fi
  9717. need_version=yes
  9718. ;;
  9719. sysv4 | sysv4.3*)
  9720. version_type=linux # correct to gnu/linux during the next big refactor
  9721. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9722. soname_spec='$libname$release$shared_ext$major'
  9723. shlibpath_var=LD_LIBRARY_PATH
  9724. case $host_vendor in
  9725. sni)
  9726. shlibpath_overrides_runpath=no
  9727. need_lib_prefix=no
  9728. runpath_var=LD_RUN_PATH
  9729. ;;
  9730. siemens)
  9731. need_lib_prefix=no
  9732. ;;
  9733. motorola)
  9734. need_lib_prefix=no
  9735. need_version=no
  9736. shlibpath_overrides_runpath=no
  9737. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9738. ;;
  9739. esac
  9740. ;;
  9741. sysv4*MP*)
  9742. if test -d /usr/nec; then
  9743. version_type=linux # correct to gnu/linux during the next big refactor
  9744. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  9745. soname_spec='$libname$shared_ext.$major'
  9746. shlibpath_var=LD_LIBRARY_PATH
  9747. fi
  9748. ;;
  9749. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9750. version_type=sco
  9751. need_lib_prefix=no
  9752. need_version=no
  9753. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  9754. soname_spec='$libname$release$shared_ext$major'
  9755. shlibpath_var=LD_LIBRARY_PATH
  9756. shlibpath_overrides_runpath=yes
  9757. hardcode_into_libs=yes
  9758. if test yes = "$with_gnu_ld"; then
  9759. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9760. else
  9761. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9762. case $host_os in
  9763. sco3.2v5*)
  9764. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9765. ;;
  9766. esac
  9767. fi
  9768. sys_lib_dlsearch_path_spec='/usr/lib'
  9769. ;;
  9770. tpf*)
  9771. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9772. version_type=linux # correct to gnu/linux during the next big refactor
  9773. need_lib_prefix=no
  9774. need_version=no
  9775. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9776. shlibpath_var=LD_LIBRARY_PATH
  9777. shlibpath_overrides_runpath=no
  9778. hardcode_into_libs=yes
  9779. ;;
  9780. uts4*)
  9781. version_type=linux # correct to gnu/linux during the next big refactor
  9782. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9783. soname_spec='$libname$release$shared_ext$major'
  9784. shlibpath_var=LD_LIBRARY_PATH
  9785. ;;
  9786. *)
  9787. dynamic_linker=no
  9788. ;;
  9789. esac
  9790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9791. $as_echo "$dynamic_linker" >&6; }
  9792. test no = "$dynamic_linker" && can_build_shared=no
  9793. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9794. if test yes = "$GCC"; then
  9795. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9796. fi
  9797. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  9798. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  9799. fi
  9800. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  9801. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  9802. fi
  9803. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  9804. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  9805. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  9806. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  9807. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  9808. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  9809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9810. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9811. hardcode_action=
  9812. if test -n "$hardcode_libdir_flag_spec" ||
  9813. test -n "$runpath_var" ||
  9814. test yes = "$hardcode_automatic"; then
  9815. # We can hardcode non-existent directories.
  9816. if test no != "$hardcode_direct" &&
  9817. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9818. # have to relink, otherwise we might link with an installed library
  9819. # when we should be linking with a yet-to-be-installed one
  9820. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  9821. test no != "$hardcode_minus_L"; then
  9822. # Linking always hardcodes the temporary library directory.
  9823. hardcode_action=relink
  9824. else
  9825. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9826. hardcode_action=immediate
  9827. fi
  9828. else
  9829. # We cannot hardcode anything, or else we can only hardcode existing
  9830. # directories.
  9831. hardcode_action=unsupported
  9832. fi
  9833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9834. $as_echo "$hardcode_action" >&6; }
  9835. if test relink = "$hardcode_action" ||
  9836. test yes = "$inherit_rpath"; then
  9837. # Fast installation is not supported
  9838. enable_fast_install=no
  9839. elif test yes = "$shlibpath_overrides_runpath" ||
  9840. test no = "$enable_shared"; then
  9841. # Fast installation is not necessary
  9842. enable_fast_install=needless
  9843. fi
  9844. if test yes != "$enable_dlopen"; then
  9845. enable_dlopen=unknown
  9846. enable_dlopen_self=unknown
  9847. enable_dlopen_self_static=unknown
  9848. else
  9849. lt_cv_dlopen=no
  9850. lt_cv_dlopen_libs=
  9851. case $host_os in
  9852. beos*)
  9853. lt_cv_dlopen=load_add_on
  9854. lt_cv_dlopen_libs=
  9855. lt_cv_dlopen_self=yes
  9856. ;;
  9857. mingw* | pw32* | cegcc*)
  9858. lt_cv_dlopen=LoadLibrary
  9859. lt_cv_dlopen_libs=
  9860. ;;
  9861. cygwin*)
  9862. lt_cv_dlopen=dlopen
  9863. lt_cv_dlopen_libs=
  9864. ;;
  9865. darwin*)
  9866. # if libdl is installed we need to link against it
  9867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9868. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9869. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9870. $as_echo_n "(cached) " >&6
  9871. else
  9872. ac_check_lib_save_LIBS=$LIBS
  9873. LIBS="-ldl $LIBS"
  9874. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9875. /* end confdefs.h. */
  9876. /* Override any GCC internal prototype to avoid an error.
  9877. Use char because int might match the return type of a GCC
  9878. builtin and then its argument prototype would still apply. */
  9879. #ifdef __cplusplus
  9880. extern "C"
  9881. #endif
  9882. char dlopen ();
  9883. int
  9884. main ()
  9885. {
  9886. return dlopen ();
  9887. ;
  9888. return 0;
  9889. }
  9890. _ACEOF
  9891. if ac_fn_c_try_link "$LINENO"; then :
  9892. ac_cv_lib_dl_dlopen=yes
  9893. else
  9894. ac_cv_lib_dl_dlopen=no
  9895. fi
  9896. rm -f core conftest.err conftest.$ac_objext \
  9897. conftest$ac_exeext conftest.$ac_ext
  9898. LIBS=$ac_check_lib_save_LIBS
  9899. fi
  9900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9901. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9902. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9903. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  9904. else
  9905. lt_cv_dlopen=dyld
  9906. lt_cv_dlopen_libs=
  9907. lt_cv_dlopen_self=yes
  9908. fi
  9909. ;;
  9910. tpf*)
  9911. # Don't try to run any link tests for TPF. We know it's impossible
  9912. # because TPF is a cross-compiler, and we know how we open DSOs.
  9913. lt_cv_dlopen=dlopen
  9914. lt_cv_dlopen_libs=
  9915. lt_cv_dlopen_self=no
  9916. ;;
  9917. *)
  9918. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9919. if test "x$ac_cv_func_shl_load" = xyes; then :
  9920. lt_cv_dlopen=shl_load
  9921. else
  9922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9923. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9924. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9925. $as_echo_n "(cached) " >&6
  9926. else
  9927. ac_check_lib_save_LIBS=$LIBS
  9928. LIBS="-ldld $LIBS"
  9929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9930. /* end confdefs.h. */
  9931. /* Override any GCC internal prototype to avoid an error.
  9932. Use char because int might match the return type of a GCC
  9933. builtin and then its argument prototype would still apply. */
  9934. #ifdef __cplusplus
  9935. extern "C"
  9936. #endif
  9937. char shl_load ();
  9938. int
  9939. main ()
  9940. {
  9941. return shl_load ();
  9942. ;
  9943. return 0;
  9944. }
  9945. _ACEOF
  9946. if ac_fn_c_try_link "$LINENO"; then :
  9947. ac_cv_lib_dld_shl_load=yes
  9948. else
  9949. ac_cv_lib_dld_shl_load=no
  9950. fi
  9951. rm -f core conftest.err conftest.$ac_objext \
  9952. conftest$ac_exeext conftest.$ac_ext
  9953. LIBS=$ac_check_lib_save_LIBS
  9954. fi
  9955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9956. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9957. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9958. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  9959. else
  9960. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9961. if test "x$ac_cv_func_dlopen" = xyes; then :
  9962. lt_cv_dlopen=dlopen
  9963. else
  9964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9965. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9966. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9967. $as_echo_n "(cached) " >&6
  9968. else
  9969. ac_check_lib_save_LIBS=$LIBS
  9970. LIBS="-ldl $LIBS"
  9971. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9972. /* end confdefs.h. */
  9973. /* Override any GCC internal prototype to avoid an error.
  9974. Use char because int might match the return type of a GCC
  9975. builtin and then its argument prototype would still apply. */
  9976. #ifdef __cplusplus
  9977. extern "C"
  9978. #endif
  9979. char dlopen ();
  9980. int
  9981. main ()
  9982. {
  9983. return dlopen ();
  9984. ;
  9985. return 0;
  9986. }
  9987. _ACEOF
  9988. if ac_fn_c_try_link "$LINENO"; then :
  9989. ac_cv_lib_dl_dlopen=yes
  9990. else
  9991. ac_cv_lib_dl_dlopen=no
  9992. fi
  9993. rm -f core conftest.err conftest.$ac_objext \
  9994. conftest$ac_exeext conftest.$ac_ext
  9995. LIBS=$ac_check_lib_save_LIBS
  9996. fi
  9997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9998. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9999. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10000. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10001. else
  10002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10003. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10004. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10005. $as_echo_n "(cached) " >&6
  10006. else
  10007. ac_check_lib_save_LIBS=$LIBS
  10008. LIBS="-lsvld $LIBS"
  10009. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10010. /* end confdefs.h. */
  10011. /* Override any GCC internal prototype to avoid an error.
  10012. Use char because int might match the return type of a GCC
  10013. builtin and then its argument prototype would still apply. */
  10014. #ifdef __cplusplus
  10015. extern "C"
  10016. #endif
  10017. char dlopen ();
  10018. int
  10019. main ()
  10020. {
  10021. return dlopen ();
  10022. ;
  10023. return 0;
  10024. }
  10025. _ACEOF
  10026. if ac_fn_c_try_link "$LINENO"; then :
  10027. ac_cv_lib_svld_dlopen=yes
  10028. else
  10029. ac_cv_lib_svld_dlopen=no
  10030. fi
  10031. rm -f core conftest.err conftest.$ac_objext \
  10032. conftest$ac_exeext conftest.$ac_ext
  10033. LIBS=$ac_check_lib_save_LIBS
  10034. fi
  10035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10036. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10037. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10038. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10039. else
  10040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10041. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10042. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10043. $as_echo_n "(cached) " >&6
  10044. else
  10045. ac_check_lib_save_LIBS=$LIBS
  10046. LIBS="-ldld $LIBS"
  10047. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10048. /* end confdefs.h. */
  10049. /* Override any GCC internal prototype to avoid an error.
  10050. Use char because int might match the return type of a GCC
  10051. builtin and then its argument prototype would still apply. */
  10052. #ifdef __cplusplus
  10053. extern "C"
  10054. #endif
  10055. char dld_link ();
  10056. int
  10057. main ()
  10058. {
  10059. return dld_link ();
  10060. ;
  10061. return 0;
  10062. }
  10063. _ACEOF
  10064. if ac_fn_c_try_link "$LINENO"; then :
  10065. ac_cv_lib_dld_dld_link=yes
  10066. else
  10067. ac_cv_lib_dld_dld_link=no
  10068. fi
  10069. rm -f core conftest.err conftest.$ac_objext \
  10070. conftest$ac_exeext conftest.$ac_ext
  10071. LIBS=$ac_check_lib_save_LIBS
  10072. fi
  10073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10074. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10075. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10076. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10077. fi
  10078. fi
  10079. fi
  10080. fi
  10081. fi
  10082. fi
  10083. ;;
  10084. esac
  10085. if test no = "$lt_cv_dlopen"; then
  10086. enable_dlopen=no
  10087. else
  10088. enable_dlopen=yes
  10089. fi
  10090. case $lt_cv_dlopen in
  10091. dlopen)
  10092. save_CPPFLAGS=$CPPFLAGS
  10093. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10094. save_LDFLAGS=$LDFLAGS
  10095. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10096. save_LIBS=$LIBS
  10097. LIBS="$lt_cv_dlopen_libs $LIBS"
  10098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10099. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10100. if ${lt_cv_dlopen_self+:} false; then :
  10101. $as_echo_n "(cached) " >&6
  10102. else
  10103. if test yes = "$cross_compiling"; then :
  10104. lt_cv_dlopen_self=cross
  10105. else
  10106. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10107. lt_status=$lt_dlunknown
  10108. cat > conftest.$ac_ext <<_LT_EOF
  10109. #line $LINENO "configure"
  10110. #include "confdefs.h"
  10111. #if HAVE_DLFCN_H
  10112. #include <dlfcn.h>
  10113. #endif
  10114. #include <stdio.h>
  10115. #ifdef RTLD_GLOBAL
  10116. # define LT_DLGLOBAL RTLD_GLOBAL
  10117. #else
  10118. # ifdef DL_GLOBAL
  10119. # define LT_DLGLOBAL DL_GLOBAL
  10120. # else
  10121. # define LT_DLGLOBAL 0
  10122. # endif
  10123. #endif
  10124. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10125. find out it does not work in some platform. */
  10126. #ifndef LT_DLLAZY_OR_NOW
  10127. # ifdef RTLD_LAZY
  10128. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10129. # else
  10130. # ifdef DL_LAZY
  10131. # define LT_DLLAZY_OR_NOW DL_LAZY
  10132. # else
  10133. # ifdef RTLD_NOW
  10134. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10135. # else
  10136. # ifdef DL_NOW
  10137. # define LT_DLLAZY_OR_NOW DL_NOW
  10138. # else
  10139. # define LT_DLLAZY_OR_NOW 0
  10140. # endif
  10141. # endif
  10142. # endif
  10143. # endif
  10144. #endif
  10145. /* When -fvisibility=hidden is used, assume the code has been annotated
  10146. correspondingly for the symbols needed. */
  10147. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10148. int fnord () __attribute__((visibility("default")));
  10149. #endif
  10150. int fnord () { return 42; }
  10151. int main ()
  10152. {
  10153. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10154. int status = $lt_dlunknown;
  10155. if (self)
  10156. {
  10157. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10158. else
  10159. {
  10160. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10161. else puts (dlerror ());
  10162. }
  10163. /* dlclose (self); */
  10164. }
  10165. else
  10166. puts (dlerror ());
  10167. return status;
  10168. }
  10169. _LT_EOF
  10170. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10171. (eval $ac_link) 2>&5
  10172. ac_status=$?
  10173. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10174. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10175. (./conftest; exit; ) >&5 2>/dev/null
  10176. lt_status=$?
  10177. case x$lt_status in
  10178. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10179. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10180. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10181. esac
  10182. else :
  10183. # compilation failed
  10184. lt_cv_dlopen_self=no
  10185. fi
  10186. fi
  10187. rm -fr conftest*
  10188. fi
  10189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10190. $as_echo "$lt_cv_dlopen_self" >&6; }
  10191. if test yes = "$lt_cv_dlopen_self"; then
  10192. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10194. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10195. if ${lt_cv_dlopen_self_static+:} false; then :
  10196. $as_echo_n "(cached) " >&6
  10197. else
  10198. if test yes = "$cross_compiling"; then :
  10199. lt_cv_dlopen_self_static=cross
  10200. else
  10201. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10202. lt_status=$lt_dlunknown
  10203. cat > conftest.$ac_ext <<_LT_EOF
  10204. #line $LINENO "configure"
  10205. #include "confdefs.h"
  10206. #if HAVE_DLFCN_H
  10207. #include <dlfcn.h>
  10208. #endif
  10209. #include <stdio.h>
  10210. #ifdef RTLD_GLOBAL
  10211. # define LT_DLGLOBAL RTLD_GLOBAL
  10212. #else
  10213. # ifdef DL_GLOBAL
  10214. # define LT_DLGLOBAL DL_GLOBAL
  10215. # else
  10216. # define LT_DLGLOBAL 0
  10217. # endif
  10218. #endif
  10219. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10220. find out it does not work in some platform. */
  10221. #ifndef LT_DLLAZY_OR_NOW
  10222. # ifdef RTLD_LAZY
  10223. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10224. # else
  10225. # ifdef DL_LAZY
  10226. # define LT_DLLAZY_OR_NOW DL_LAZY
  10227. # else
  10228. # ifdef RTLD_NOW
  10229. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10230. # else
  10231. # ifdef DL_NOW
  10232. # define LT_DLLAZY_OR_NOW DL_NOW
  10233. # else
  10234. # define LT_DLLAZY_OR_NOW 0
  10235. # endif
  10236. # endif
  10237. # endif
  10238. # endif
  10239. #endif
  10240. /* When -fvisibility=hidden is used, assume the code has been annotated
  10241. correspondingly for the symbols needed. */
  10242. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10243. int fnord () __attribute__((visibility("default")));
  10244. #endif
  10245. int fnord () { return 42; }
  10246. int main ()
  10247. {
  10248. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10249. int status = $lt_dlunknown;
  10250. if (self)
  10251. {
  10252. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10253. else
  10254. {
  10255. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10256. else puts (dlerror ());
  10257. }
  10258. /* dlclose (self); */
  10259. }
  10260. else
  10261. puts (dlerror ());
  10262. return status;
  10263. }
  10264. _LT_EOF
  10265. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10266. (eval $ac_link) 2>&5
  10267. ac_status=$?
  10268. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10269. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10270. (./conftest; exit; ) >&5 2>/dev/null
  10271. lt_status=$?
  10272. case x$lt_status in
  10273. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10274. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10275. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10276. esac
  10277. else :
  10278. # compilation failed
  10279. lt_cv_dlopen_self_static=no
  10280. fi
  10281. fi
  10282. rm -fr conftest*
  10283. fi
  10284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10285. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10286. fi
  10287. CPPFLAGS=$save_CPPFLAGS
  10288. LDFLAGS=$save_LDFLAGS
  10289. LIBS=$save_LIBS
  10290. ;;
  10291. esac
  10292. case $lt_cv_dlopen_self in
  10293. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10294. *) enable_dlopen_self=unknown ;;
  10295. esac
  10296. case $lt_cv_dlopen_self_static in
  10297. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10298. *) enable_dlopen_self_static=unknown ;;
  10299. esac
  10300. fi
  10301. striplib=
  10302. old_striplib=
  10303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10304. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10305. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10306. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10307. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10309. $as_echo "yes" >&6; }
  10310. else
  10311. # FIXME - insert some real tests, host_os isn't really good enough
  10312. case $host_os in
  10313. darwin*)
  10314. if test -n "$STRIP"; then
  10315. striplib="$STRIP -x"
  10316. old_striplib="$STRIP -S"
  10317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10318. $as_echo "yes" >&6; }
  10319. else
  10320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10321. $as_echo "no" >&6; }
  10322. fi
  10323. ;;
  10324. *)
  10325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10326. $as_echo "no" >&6; }
  10327. ;;
  10328. esac
  10329. fi
  10330. # Report what library types will actually be built
  10331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10332. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10334. $as_echo "$can_build_shared" >&6; }
  10335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10336. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10337. test no = "$can_build_shared" && enable_shared=no
  10338. # On AIX, shared libraries and static libraries use the same namespace, and
  10339. # are all built from PIC.
  10340. case $host_os in
  10341. aix3*)
  10342. test yes = "$enable_shared" && enable_static=no
  10343. if test -n "$RANLIB"; then
  10344. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10345. postinstall_cmds='$RANLIB $lib'
  10346. fi
  10347. ;;
  10348. aix[4-9]*)
  10349. if test ia64 != "$host_cpu"; then
  10350. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  10351. yes,aix,yes) ;; # shared object as lib.so file only
  10352. yes,svr4,*) ;; # shared object as lib.so archive member only
  10353. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  10354. esac
  10355. fi
  10356. ;;
  10357. esac
  10358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10359. $as_echo "$enable_shared" >&6; }
  10360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10361. $as_echo_n "checking whether to build static libraries... " >&6; }
  10362. # Make sure either enable_shared or enable_static is yes.
  10363. test yes = "$enable_shared" || enable_static=yes
  10364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10365. $as_echo "$enable_static" >&6; }
  10366. fi
  10367. ac_ext=c
  10368. ac_cpp='$CPP $CPPFLAGS'
  10369. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10370. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10371. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10372. CC=$lt_save_CC
  10373. ac_config_commands="$ac_config_commands libtool"
  10374. # Only expand once:
  10375. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  10376. if test -n "$ac_tool_prefix"; then
  10377. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  10378. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  10379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10380. $as_echo_n "checking for $ac_word... " >&6; }
  10381. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  10382. $as_echo_n "(cached) " >&6
  10383. else
  10384. case $PKG_CONFIG in
  10385. [\\/]* | ?:[\\/]*)
  10386. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  10387. ;;
  10388. *)
  10389. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10390. for as_dir in $PATH
  10391. do
  10392. IFS=$as_save_IFS
  10393. test -z "$as_dir" && as_dir=.
  10394. for ac_exec_ext in '' $ac_executable_extensions; do
  10395. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10396. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  10397. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10398. break 2
  10399. fi
  10400. done
  10401. done
  10402. IFS=$as_save_IFS
  10403. ;;
  10404. esac
  10405. fi
  10406. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  10407. if test -n "$PKG_CONFIG"; then
  10408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  10409. $as_echo "$PKG_CONFIG" >&6; }
  10410. else
  10411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10412. $as_echo "no" >&6; }
  10413. fi
  10414. fi
  10415. if test -z "$ac_cv_path_PKG_CONFIG"; then
  10416. ac_pt_PKG_CONFIG=$PKG_CONFIG
  10417. # Extract the first word of "pkg-config", so it can be a program name with args.
  10418. set dummy pkg-config; ac_word=$2
  10419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10420. $as_echo_n "checking for $ac_word... " >&6; }
  10421. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  10422. $as_echo_n "(cached) " >&6
  10423. else
  10424. case $ac_pt_PKG_CONFIG in
  10425. [\\/]* | ?:[\\/]*)
  10426. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  10427. ;;
  10428. *)
  10429. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10430. for as_dir in $PATH
  10431. do
  10432. IFS=$as_save_IFS
  10433. test -z "$as_dir" && as_dir=.
  10434. for ac_exec_ext in '' $ac_executable_extensions; do
  10435. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10436. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  10437. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10438. break 2
  10439. fi
  10440. done
  10441. done
  10442. IFS=$as_save_IFS
  10443. ;;
  10444. esac
  10445. fi
  10446. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  10447. if test -n "$ac_pt_PKG_CONFIG"; then
  10448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  10449. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  10450. else
  10451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10452. $as_echo "no" >&6; }
  10453. fi
  10454. if test "x$ac_pt_PKG_CONFIG" = x; then
  10455. PKG_CONFIG=""
  10456. else
  10457. case $cross_compiling:$ac_tool_warned in
  10458. yes:)
  10459. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10460. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10461. ac_tool_warned=yes ;;
  10462. esac
  10463. PKG_CONFIG=$ac_pt_PKG_CONFIG
  10464. fi
  10465. else
  10466. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  10467. fi
  10468. fi
  10469. if test -n "$PKG_CONFIG"; then
  10470. _pkg_min_version=0.25
  10471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  10472. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  10473. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  10474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10475. $as_echo "yes" >&6; }
  10476. else
  10477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10478. $as_echo "no" >&6; }
  10479. PKG_CONFIG=""
  10480. fi
  10481. fi
  10482. pkg_failed=no
  10483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cryptsetup" >&5
  10484. $as_echo_n "checking for cryptsetup... " >&6; }
  10485. if test -n "$cryptsetup_CFLAGS"; then
  10486. pkg_cv_cryptsetup_CFLAGS="$cryptsetup_CFLAGS"
  10487. elif test -n "$PKG_CONFIG"; then
  10488. if test -n "$PKG_CONFIG" && \
  10489. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcryptsetup >= 1.5.1\""; } >&5
  10490. ($PKG_CONFIG --exists --print-errors "libcryptsetup >= 1.5.1") 2>&5
  10491. ac_status=$?
  10492. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10493. test $ac_status = 0; }; then
  10494. pkg_cv_cryptsetup_CFLAGS=`$PKG_CONFIG --cflags "libcryptsetup >= 1.5.1" 2>/dev/null`
  10495. test "x$?" != "x0" && pkg_failed=yes
  10496. else
  10497. pkg_failed=yes
  10498. fi
  10499. else
  10500. pkg_failed=untried
  10501. fi
  10502. if test -n "$cryptsetup_LIBS"; then
  10503. pkg_cv_cryptsetup_LIBS="$cryptsetup_LIBS"
  10504. elif test -n "$PKG_CONFIG"; then
  10505. if test -n "$PKG_CONFIG" && \
  10506. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcryptsetup >= 1.5.1\""; } >&5
  10507. ($PKG_CONFIG --exists --print-errors "libcryptsetup >= 1.5.1") 2>&5
  10508. ac_status=$?
  10509. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10510. test $ac_status = 0; }; then
  10511. pkg_cv_cryptsetup_LIBS=`$PKG_CONFIG --libs "libcryptsetup >= 1.5.1" 2>/dev/null`
  10512. test "x$?" != "x0" && pkg_failed=yes
  10513. else
  10514. pkg_failed=yes
  10515. fi
  10516. else
  10517. pkg_failed=untried
  10518. fi
  10519. if test $pkg_failed = yes; then
  10520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10521. $as_echo "no" >&6; }
  10522. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  10523. _pkg_short_errors_supported=yes
  10524. else
  10525. _pkg_short_errors_supported=no
  10526. fi
  10527. if test $_pkg_short_errors_supported = yes; then
  10528. cryptsetup_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcryptsetup >= 1.5.1" 2>&1`
  10529. else
  10530. cryptsetup_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcryptsetup >= 1.5.1" 2>&1`
  10531. fi
  10532. # Put the nasty error message in config.log where it belongs
  10533. echo "$cryptsetup_PKG_ERRORS" >&5
  10534. as_fn_error $? "Package requirements (libcryptsetup >= 1.5.1) were not met:
  10535. $cryptsetup_PKG_ERRORS
  10536. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  10537. installed software in a non-standard prefix.
  10538. Alternatively, you may set the environment variables cryptsetup_CFLAGS
  10539. and cryptsetup_LIBS to avoid the need to call pkg-config.
  10540. See the pkg-config man page for more details." "$LINENO" 5
  10541. elif test $pkg_failed = untried; then
  10542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10543. $as_echo "no" >&6; }
  10544. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10545. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10546. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  10547. is in your PATH or set the PKG_CONFIG environment variable to the full
  10548. path to pkg-config.
  10549. Alternatively, you may set the environment variables cryptsetup_CFLAGS
  10550. and cryptsetup_LIBS to avoid the need to call pkg-config.
  10551. See the pkg-config man page for more details.
  10552. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  10553. See \`config.log' for more details" "$LINENO" 5; }
  10554. else
  10555. cryptsetup_CFLAGS=$pkg_cv_cryptsetup_CFLAGS
  10556. cryptsetup_LIBS=$pkg_cv_cryptsetup_LIBS
  10557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10558. $as_echo "yes" >&6; }
  10559. fi
  10560. LUKSMETA_CFLAGS="\
  10561. -Wall \
  10562. -Wextra \
  10563. -Werror \
  10564. -Wstrict-aliasing \
  10565. -Wchar-subscripts \
  10566. -Wformat-security \
  10567. -Wmissing-declarations \
  10568. -Wmissing-prototypes \
  10569. -Wnested-externs \
  10570. -Wpointer-arith \
  10571. -Wshadow \
  10572. -Wsign-compare \
  10573. -Wstrict-prototypes \
  10574. -Wtype-limits \
  10575. -Wunused-function \
  10576. -Wno-missing-field-initializers \
  10577. -Wno-unused-parameter \
  10578. "
  10579. for ac_prog in a2x
  10580. do
  10581. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10582. set dummy $ac_prog; ac_word=$2
  10583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10584. $as_echo_n "checking for $ac_word... " >&6; }
  10585. if ${ac_cv_prog_A2X+:} false; then :
  10586. $as_echo_n "(cached) " >&6
  10587. else
  10588. if test -n "$A2X"; then
  10589. ac_cv_prog_A2X="$A2X" # Let the user override the test.
  10590. else
  10591. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10592. for as_dir in $PATH
  10593. do
  10594. IFS=$as_save_IFS
  10595. test -z "$as_dir" && as_dir=.
  10596. for ac_exec_ext in '' $ac_executable_extensions; do
  10597. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10598. ac_cv_prog_A2X="$ac_prog"
  10599. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10600. break 2
  10601. fi
  10602. done
  10603. done
  10604. IFS=$as_save_IFS
  10605. fi
  10606. fi
  10607. A2X=$ac_cv_prog_A2X
  10608. if test -n "$A2X"; then
  10609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $A2X" >&5
  10610. $as_echo "$A2X" >&6; }
  10611. else
  10612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10613. $as_echo "no" >&6; }
  10614. fi
  10615. test -n "$A2X" && break
  10616. done
  10617. if test "x$A2X" = "x"; then
  10618. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: asciidoc / a2x not found -- man pages will not be generated and installed!" >&5
  10619. $as_echo "$as_me: WARNING: asciidoc / a2x not found -- man pages will not be generated and installed!" >&2;}
  10620. fi
  10621. if test -n "$A2X"; then
  10622. HAVE_A2X_TRUE=
  10623. HAVE_A2X_FALSE='#'
  10624. else
  10625. HAVE_A2X_TRUE='#'
  10626. HAVE_A2X_FALSE=
  10627. fi
  10628. ac_config_files="$ac_config_files luksmeta.pc Makefile"
  10629. cat >confcache <<\_ACEOF
  10630. # This file is a shell script that caches the results of configure
  10631. # tests run on this system so they can be shared between configure
  10632. # scripts and configure runs, see configure's option --config-cache.
  10633. # It is not useful on other systems. If it contains results you don't
  10634. # want to keep, you may remove or edit it.
  10635. #
  10636. # config.status only pays attention to the cache file if you give it
  10637. # the --recheck option to rerun configure.
  10638. #
  10639. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10640. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10641. # following values.
  10642. _ACEOF
  10643. # The following way of writing the cache mishandles newlines in values,
  10644. # but we know of no workaround that is simple, portable, and efficient.
  10645. # So, we kill variables containing newlines.
  10646. # Ultrix sh set writes to stderr and can't be redirected directly,
  10647. # and sets the high bit in the cache file unless we assign to the vars.
  10648. (
  10649. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  10650. eval ac_val=\$$ac_var
  10651. case $ac_val in #(
  10652. *${as_nl}*)
  10653. case $ac_var in #(
  10654. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  10655. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  10656. esac
  10657. case $ac_var in #(
  10658. _ | IFS | as_nl) ;; #(
  10659. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  10660. *) { eval $ac_var=; unset $ac_var;} ;;
  10661. esac ;;
  10662. esac
  10663. done
  10664. (set) 2>&1 |
  10665. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  10666. *${as_nl}ac_space=\ *)
  10667. # `set' does not quote correctly, so add quotes: double-quote
  10668. # substitution turns \\\\ into \\, and sed turns \\ into \.
  10669. sed -n \
  10670. "s/'/'\\\\''/g;
  10671. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10672. ;; #(
  10673. *)
  10674. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10675. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  10676. ;;
  10677. esac |
  10678. sort
  10679. ) |
  10680. sed '
  10681. /^ac_cv_env_/b end
  10682. t clear
  10683. :clear
  10684. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10685. t end
  10686. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10687. :end' >>confcache
  10688. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  10689. if test -w "$cache_file"; then
  10690. if test "x$cache_file" != "x/dev/null"; then
  10691. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  10692. $as_echo "$as_me: updating cache $cache_file" >&6;}
  10693. if test ! -f "$cache_file" || test -h "$cache_file"; then
  10694. cat confcache >"$cache_file"
  10695. else
  10696. case $cache_file in #(
  10697. */* | ?:*)
  10698. mv -f confcache "$cache_file"$$ &&
  10699. mv -f "$cache_file"$$ "$cache_file" ;; #(
  10700. *)
  10701. mv -f confcache "$cache_file" ;;
  10702. esac
  10703. fi
  10704. fi
  10705. else
  10706. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  10707. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  10708. fi
  10709. fi
  10710. rm -f confcache
  10711. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10712. # Let make expand exec_prefix.
  10713. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10714. # Transform confdefs.h into DEFS.
  10715. # Protect against shell expansion while executing Makefile rules.
  10716. # Protect against Makefile macro expansion.
  10717. #
  10718. # If the first sed substitution is executed (which looks for macros that
  10719. # take arguments), then branch to the quote section. Otherwise,
  10720. # look for a macro that doesn't take arguments.
  10721. ac_script='
  10722. :mline
  10723. /\\$/{
  10724. N
  10725. s,\\\n,,
  10726. b mline
  10727. }
  10728. t clear
  10729. :clear
  10730. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  10731. t quote
  10732. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  10733. t quote
  10734. b any
  10735. :quote
  10736. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  10737. s/\[/\\&/g
  10738. s/\]/\\&/g
  10739. s/\$/$$/g
  10740. H
  10741. :any
  10742. ${
  10743. g
  10744. s/^\n//
  10745. s/\n/ /g
  10746. p
  10747. }
  10748. '
  10749. DEFS=`sed -n "$ac_script" confdefs.h`
  10750. ac_libobjs=
  10751. ac_ltlibobjs=
  10752. U=
  10753. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  10754. # 1. Remove the extension, and $U if already installed.
  10755. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  10756. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  10757. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  10758. # will be set to the directory where LIBOBJS objects are built.
  10759. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  10760. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  10761. done
  10762. LIBOBJS=$ac_libobjs
  10763. LTLIBOBJS=$ac_ltlibobjs
  10764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  10765. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  10766. if test -n "$am_sleep_pid"; then
  10767. # Hide warnings about reused PIDs.
  10768. wait $am_sleep_pid 2>/dev/null
  10769. fi
  10770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  10771. $as_echo "done" >&6; }
  10772. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  10773. as_fn_error $? "conditional \"AMDEP\" was never defined.
  10774. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10775. fi
  10776. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  10777. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  10778. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10779. fi
  10780. if test -n "$EXEEXT"; then
  10781. am__EXEEXT_TRUE=
  10782. am__EXEEXT_FALSE='#'
  10783. else
  10784. am__EXEEXT_TRUE='#'
  10785. am__EXEEXT_FALSE=
  10786. fi
  10787. if test -z "${HAVE_A2X_TRUE}" && test -z "${HAVE_A2X_FALSE}"; then
  10788. as_fn_error $? "conditional \"HAVE_A2X\" was never defined.
  10789. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10790. fi
  10791. : "${CONFIG_STATUS=./config.status}"
  10792. ac_write_fail=0
  10793. ac_clean_files_save=$ac_clean_files
  10794. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  10795. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  10796. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  10797. as_write_fail=0
  10798. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  10799. #! $SHELL
  10800. # Generated by $as_me.
  10801. # Run this file to recreate the current configuration.
  10802. # Compiler output produced by configure, useful for debugging
  10803. # configure, is in config.log if it exists.
  10804. debug=false
  10805. ac_cs_recheck=false
  10806. ac_cs_silent=false
  10807. SHELL=\${CONFIG_SHELL-$SHELL}
  10808. export SHELL
  10809. _ASEOF
  10810. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  10811. ## -------------------- ##
  10812. ## M4sh Initialization. ##
  10813. ## -------------------- ##
  10814. # Be more Bourne compatible
  10815. DUALCASE=1; export DUALCASE # for MKS sh
  10816. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  10817. emulate sh
  10818. NULLCMD=:
  10819. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  10820. # is contrary to our usage. Disable this feature.
  10821. alias -g '${1+"$@"}'='"$@"'
  10822. setopt NO_GLOB_SUBST
  10823. else
  10824. case `(set -o) 2>/dev/null` in #(
  10825. *posix*) :
  10826. set -o posix ;; #(
  10827. *) :
  10828. ;;
  10829. esac
  10830. fi
  10831. as_nl='
  10832. '
  10833. export as_nl
  10834. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  10835. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  10836. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  10837. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  10838. # Prefer a ksh shell builtin over an external printf program on Solaris,
  10839. # but without wasting forks for bash or zsh.
  10840. if test -z "$BASH_VERSION$ZSH_VERSION" \
  10841. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  10842. as_echo='print -r --'
  10843. as_echo_n='print -rn --'
  10844. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  10845. as_echo='printf %s\n'
  10846. as_echo_n='printf %s'
  10847. else
  10848. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  10849. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  10850. as_echo_n='/usr/ucb/echo -n'
  10851. else
  10852. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  10853. as_echo_n_body='eval
  10854. arg=$1;
  10855. case $arg in #(
  10856. *"$as_nl"*)
  10857. expr "X$arg" : "X\\(.*\\)$as_nl";
  10858. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  10859. esac;
  10860. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  10861. '
  10862. export as_echo_n_body
  10863. as_echo_n='sh -c $as_echo_n_body as_echo'
  10864. fi
  10865. export as_echo_body
  10866. as_echo='sh -c $as_echo_body as_echo'
  10867. fi
  10868. # The user is always right.
  10869. if test "${PATH_SEPARATOR+set}" != set; then
  10870. PATH_SEPARATOR=:
  10871. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  10872. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  10873. PATH_SEPARATOR=';'
  10874. }
  10875. fi
  10876. # IFS
  10877. # We need space, tab and new line, in precisely that order. Quoting is
  10878. # there to prevent editors from complaining about space-tab.
  10879. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  10880. # splitting by setting IFS to empty value.)
  10881. IFS=" "" $as_nl"
  10882. # Find who we are. Look in the path if we contain no directory separator.
  10883. as_myself=
  10884. case $0 in #((
  10885. *[\\/]* ) as_myself=$0 ;;
  10886. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10887. for as_dir in $PATH
  10888. do
  10889. IFS=$as_save_IFS
  10890. test -z "$as_dir" && as_dir=.
  10891. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  10892. done
  10893. IFS=$as_save_IFS
  10894. ;;
  10895. esac
  10896. # We did not find ourselves, most probably we were run as `sh COMMAND'
  10897. # in which case we are not to be found in the path.
  10898. if test "x$as_myself" = x; then
  10899. as_myself=$0
  10900. fi
  10901. if test ! -f "$as_myself"; then
  10902. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  10903. exit 1
  10904. fi
  10905. # Unset variables that we do not need and which cause bugs (e.g. in
  10906. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  10907. # suppresses any "Segmentation fault" message there. '((' could
  10908. # trigger a bug in pdksh 5.2.14.
  10909. for as_var in BASH_ENV ENV MAIL MAILPATH
  10910. do eval test x\${$as_var+set} = xset \
  10911. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  10912. done
  10913. PS1='$ '
  10914. PS2='> '
  10915. PS4='+ '
  10916. # NLS nuisances.
  10917. LC_ALL=C
  10918. export LC_ALL
  10919. LANGUAGE=C
  10920. export LANGUAGE
  10921. # CDPATH.
  10922. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10923. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  10924. # ----------------------------------------
  10925. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  10926. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  10927. # script with STATUS, using 1 if that was 0.
  10928. as_fn_error ()
  10929. {
  10930. as_status=$1; test $as_status -eq 0 && as_status=1
  10931. if test "$4"; then
  10932. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  10933. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  10934. fi
  10935. $as_echo "$as_me: error: $2" >&2
  10936. as_fn_exit $as_status
  10937. } # as_fn_error
  10938. # as_fn_set_status STATUS
  10939. # -----------------------
  10940. # Set $? to STATUS, without forking.
  10941. as_fn_set_status ()
  10942. {
  10943. return $1
  10944. } # as_fn_set_status
  10945. # as_fn_exit STATUS
  10946. # -----------------
  10947. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  10948. as_fn_exit ()
  10949. {
  10950. set +e
  10951. as_fn_set_status $1
  10952. exit $1
  10953. } # as_fn_exit
  10954. # as_fn_unset VAR
  10955. # ---------------
  10956. # Portably unset VAR.
  10957. as_fn_unset ()
  10958. {
  10959. { eval $1=; unset $1;}
  10960. }
  10961. as_unset=as_fn_unset
  10962. # as_fn_append VAR VALUE
  10963. # ----------------------
  10964. # Append the text in VALUE to the end of the definition contained in VAR. Take
  10965. # advantage of any shell optimizations that allow amortized linear growth over
  10966. # repeated appends, instead of the typical quadratic growth present in naive
  10967. # implementations.
  10968. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  10969. eval 'as_fn_append ()
  10970. {
  10971. eval $1+=\$2
  10972. }'
  10973. else
  10974. as_fn_append ()
  10975. {
  10976. eval $1=\$$1\$2
  10977. }
  10978. fi # as_fn_append
  10979. # as_fn_arith ARG...
  10980. # ------------------
  10981. # Perform arithmetic evaluation on the ARGs, and store the result in the
  10982. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  10983. # must be portable across $(()) and expr.
  10984. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  10985. eval 'as_fn_arith ()
  10986. {
  10987. as_val=$(( $* ))
  10988. }'
  10989. else
  10990. as_fn_arith ()
  10991. {
  10992. as_val=`expr "$@" || test $? -eq 1`
  10993. }
  10994. fi # as_fn_arith
  10995. if expr a : '\(a\)' >/dev/null 2>&1 &&
  10996. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  10997. as_expr=expr
  10998. else
  10999. as_expr=false
  11000. fi
  11001. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  11002. as_basename=basename
  11003. else
  11004. as_basename=false
  11005. fi
  11006. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  11007. as_dirname=dirname
  11008. else
  11009. as_dirname=false
  11010. fi
  11011. as_me=`$as_basename -- "$0" ||
  11012. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11013. X"$0" : 'X\(//\)$' \| \
  11014. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  11015. $as_echo X/"$0" |
  11016. sed '/^.*\/\([^/][^/]*\)\/*$/{
  11017. s//\1/
  11018. q
  11019. }
  11020. /^X\/\(\/\/\)$/{
  11021. s//\1/
  11022. q
  11023. }
  11024. /^X\/\(\/\).*/{
  11025. s//\1/
  11026. q
  11027. }
  11028. s/.*/./; q'`
  11029. # Avoid depending upon Character Ranges.
  11030. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11031. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11032. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11033. as_cr_digits='0123456789'
  11034. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11035. ECHO_C= ECHO_N= ECHO_T=
  11036. case `echo -n x` in #(((((
  11037. -n*)
  11038. case `echo 'xy\c'` in
  11039. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  11040. xy) ECHO_C='\c';;
  11041. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  11042. ECHO_T=' ';;
  11043. esac;;
  11044. *)
  11045. ECHO_N='-n';;
  11046. esac
  11047. rm -f conf$$ conf$$.exe conf$$.file
  11048. if test -d conf$$.dir; then
  11049. rm -f conf$$.dir/conf$$.file
  11050. else
  11051. rm -f conf$$.dir
  11052. mkdir conf$$.dir 2>/dev/null
  11053. fi
  11054. if (echo >conf$$.file) 2>/dev/null; then
  11055. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11056. as_ln_s='ln -s'
  11057. # ... but there are two gotchas:
  11058. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  11059. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  11060. # In both cases, we have to default to `cp -pR'.
  11061. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  11062. as_ln_s='cp -pR'
  11063. elif ln conf$$.file conf$$ 2>/dev/null; then
  11064. as_ln_s=ln
  11065. else
  11066. as_ln_s='cp -pR'
  11067. fi
  11068. else
  11069. as_ln_s='cp -pR'
  11070. fi
  11071. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  11072. rmdir conf$$.dir 2>/dev/null
  11073. # as_fn_mkdir_p
  11074. # -------------
  11075. # Create "$as_dir" as a directory, including parents if necessary.
  11076. as_fn_mkdir_p ()
  11077. {
  11078. case $as_dir in #(
  11079. -*) as_dir=./$as_dir;;
  11080. esac
  11081. test -d "$as_dir" || eval $as_mkdir_p || {
  11082. as_dirs=
  11083. while :; do
  11084. case $as_dir in #(
  11085. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  11086. *) as_qdir=$as_dir;;
  11087. esac
  11088. as_dirs="'$as_qdir' $as_dirs"
  11089. as_dir=`$as_dirname -- "$as_dir" ||
  11090. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11091. X"$as_dir" : 'X\(//\)[^/]' \| \
  11092. X"$as_dir" : 'X\(//\)$' \| \
  11093. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  11094. $as_echo X"$as_dir" |
  11095. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11096. s//\1/
  11097. q
  11098. }
  11099. /^X\(\/\/\)[^/].*/{
  11100. s//\1/
  11101. q
  11102. }
  11103. /^X\(\/\/\)$/{
  11104. s//\1/
  11105. q
  11106. }
  11107. /^X\(\/\).*/{
  11108. s//\1/
  11109. q
  11110. }
  11111. s/.*/./; q'`
  11112. test -d "$as_dir" && break
  11113. done
  11114. test -z "$as_dirs" || eval "mkdir $as_dirs"
  11115. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  11116. } # as_fn_mkdir_p
  11117. if mkdir -p . 2>/dev/null; then
  11118. as_mkdir_p='mkdir -p "$as_dir"'
  11119. else
  11120. test -d ./-p && rmdir ./-p
  11121. as_mkdir_p=false
  11122. fi
  11123. # as_fn_executable_p FILE
  11124. # -----------------------
  11125. # Test if FILE is an executable regular file.
  11126. as_fn_executable_p ()
  11127. {
  11128. test -f "$1" && test -x "$1"
  11129. } # as_fn_executable_p
  11130. as_test_x='test -x'
  11131. as_executable_p=as_fn_executable_p
  11132. # Sed expression to map a string onto a valid CPP name.
  11133. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11134. # Sed expression to map a string onto a valid variable name.
  11135. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11136. exec 6>&1
  11137. ## ----------------------------------- ##
  11138. ## Main body of $CONFIG_STATUS script. ##
  11139. ## ----------------------------------- ##
  11140. _ASEOF
  11141. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  11142. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11143. # Save the log message, to keep $0 and so on meaningful, and to
  11144. # report actual input values of CONFIG_FILES etc. instead of their
  11145. # values after options handling.
  11146. ac_log="
  11147. This file was extended by luksmeta $as_me 9, which was
  11148. generated by GNU Autoconf 2.69. Invocation command line was
  11149. CONFIG_FILES = $CONFIG_FILES
  11150. CONFIG_HEADERS = $CONFIG_HEADERS
  11151. CONFIG_LINKS = $CONFIG_LINKS
  11152. CONFIG_COMMANDS = $CONFIG_COMMANDS
  11153. $ $0 $@
  11154. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  11155. "
  11156. _ACEOF
  11157. case $ac_config_files in *"
  11158. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  11159. esac
  11160. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11161. # Files that config.status was made for.
  11162. config_files="$ac_config_files"
  11163. config_commands="$ac_config_commands"
  11164. _ACEOF
  11165. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11166. ac_cs_usage="\
  11167. \`$as_me' instantiates files and other configuration actions
  11168. from templates according to the current configuration. Unless the files
  11169. and actions are specified as TAGs, all are instantiated by default.
  11170. Usage: $0 [OPTION]... [TAG]...
  11171. -h, --help print this help, then exit
  11172. -V, --version print version number and configuration settings, then exit
  11173. --config print configuration, then exit
  11174. -q, --quiet, --silent
  11175. do not print progress messages
  11176. -d, --debug don't remove temporary files
  11177. --recheck update $as_me by reconfiguring in the same conditions
  11178. --file=FILE[:TEMPLATE]
  11179. instantiate the configuration file FILE
  11180. Configuration files:
  11181. $config_files
  11182. Configuration commands:
  11183. $config_commands
  11184. Report bugs to the package provider."
  11185. _ACEOF
  11186. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11187. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  11188. ac_cs_version="\\
  11189. luksmeta config.status 9
  11190. configured by $0, generated by GNU Autoconf 2.69,
  11191. with options \\"\$ac_cs_config\\"
  11192. Copyright (C) 2012 Free Software Foundation, Inc.
  11193. This config.status script is free software; the Free Software Foundation
  11194. gives unlimited permission to copy, distribute and modify it."
  11195. ac_pwd='$ac_pwd'
  11196. srcdir='$srcdir'
  11197. INSTALL='$INSTALL'
  11198. MKDIR_P='$MKDIR_P'
  11199. AWK='$AWK'
  11200. test -n "\$AWK" || AWK=awk
  11201. _ACEOF
  11202. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11203. # The default lists apply if the user does not specify any file.
  11204. ac_need_defaults=:
  11205. while test $# != 0
  11206. do
  11207. case $1 in
  11208. --*=?*)
  11209. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11210. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  11211. ac_shift=:
  11212. ;;
  11213. --*=)
  11214. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11215. ac_optarg=
  11216. ac_shift=:
  11217. ;;
  11218. *)
  11219. ac_option=$1
  11220. ac_optarg=$2
  11221. ac_shift=shift
  11222. ;;
  11223. esac
  11224. case $ac_option in
  11225. # Handling of the options.
  11226. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11227. ac_cs_recheck=: ;;
  11228. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  11229. $as_echo "$ac_cs_version"; exit ;;
  11230. --config | --confi | --conf | --con | --co | --c )
  11231. $as_echo "$ac_cs_config"; exit ;;
  11232. --debug | --debu | --deb | --de | --d | -d )
  11233. debug=: ;;
  11234. --file | --fil | --fi | --f )
  11235. $ac_shift
  11236. case $ac_optarg in
  11237. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11238. '') as_fn_error $? "missing file argument" ;;
  11239. esac
  11240. as_fn_append CONFIG_FILES " '$ac_optarg'"
  11241. ac_need_defaults=false;;
  11242. --he | --h | --help | --hel | -h )
  11243. $as_echo "$ac_cs_usage"; exit ;;
  11244. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11245. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11246. ac_cs_silent=: ;;
  11247. # This is an error.
  11248. -*) as_fn_error $? "unrecognized option: \`$1'
  11249. Try \`$0 --help' for more information." ;;
  11250. *) as_fn_append ac_config_targets " $1"
  11251. ac_need_defaults=false ;;
  11252. esac
  11253. shift
  11254. done
  11255. ac_configure_extra_args=
  11256. if $ac_cs_silent; then
  11257. exec 6>/dev/null
  11258. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11259. fi
  11260. _ACEOF
  11261. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11262. if \$ac_cs_recheck; then
  11263. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11264. shift
  11265. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  11266. CONFIG_SHELL='$SHELL'
  11267. export CONFIG_SHELL
  11268. exec "\$@"
  11269. fi
  11270. _ACEOF
  11271. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11272. exec 5>>config.log
  11273. {
  11274. echo
  11275. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11276. ## Running $as_me. ##
  11277. _ASBOX
  11278. $as_echo "$ac_log"
  11279. } >&5
  11280. _ACEOF
  11281. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11282. #
  11283. # INIT-COMMANDS
  11284. #
  11285. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  11286. # The HP-UX ksh and POSIX shell print the target directory to stdout
  11287. # if CDPATH is set.
  11288. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11289. sed_quote_subst='$sed_quote_subst'
  11290. double_quote_subst='$double_quote_subst'
  11291. delay_variable_subst='$delay_variable_subst'
  11292. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  11293. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  11294. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  11295. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  11296. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  11297. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  11298. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  11299. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  11300. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  11301. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  11302. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  11303. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  11304. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  11305. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  11306. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  11307. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  11308. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  11309. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  11310. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  11311. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  11312. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  11313. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  11314. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  11315. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  11316. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  11317. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  11318. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  11319. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  11320. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  11321. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  11322. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  11323. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  11324. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  11325. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  11326. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  11327. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  11328. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  11329. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  11330. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  11331. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  11332. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  11333. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  11334. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  11335. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  11336. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  11337. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  11338. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  11339. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  11340. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  11341. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  11342. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  11343. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  11344. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  11345. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  11346. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  11347. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  11348. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  11349. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  11350. 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"`'
  11351. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  11352. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  11353. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  11354. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  11355. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  11356. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  11357. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  11358. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  11359. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  11360. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  11361. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  11362. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  11363. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  11364. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  11365. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  11366. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  11367. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  11368. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  11369. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  11370. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  11371. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  11372. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  11373. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  11374. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  11375. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  11376. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  11377. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  11378. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  11379. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  11380. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  11381. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  11382. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  11383. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  11384. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  11385. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  11386. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  11387. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  11388. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  11389. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  11390. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  11391. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  11392. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  11393. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  11394. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  11395. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  11396. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  11397. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  11398. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  11399. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  11400. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  11401. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  11402. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  11403. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  11404. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  11405. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  11406. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  11407. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  11408. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  11409. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  11410. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  11411. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  11412. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  11413. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  11414. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  11415. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  11416. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  11417. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  11418. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  11419. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  11420. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  11421. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  11422. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  11423. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  11424. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  11425. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  11426. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  11427. LTCC='$LTCC'
  11428. LTCFLAGS='$LTCFLAGS'
  11429. compiler='$compiler_DEFAULT'
  11430. # A function that is used when there is no print builtin or printf.
  11431. func_fallback_echo ()
  11432. {
  11433. eval 'cat <<_LTECHO_EOF
  11434. \$1
  11435. _LTECHO_EOF'
  11436. }
  11437. # Quote evaled strings.
  11438. for var in SHELL \
  11439. ECHO \
  11440. PATH_SEPARATOR \
  11441. SED \
  11442. GREP \
  11443. EGREP \
  11444. FGREP \
  11445. LD \
  11446. NM \
  11447. LN_S \
  11448. lt_SP2NL \
  11449. lt_NL2SP \
  11450. reload_flag \
  11451. OBJDUMP \
  11452. deplibs_check_method \
  11453. file_magic_cmd \
  11454. file_magic_glob \
  11455. want_nocaseglob \
  11456. DLLTOOL \
  11457. sharedlib_from_linklib_cmd \
  11458. AR \
  11459. AR_FLAGS \
  11460. archiver_list_spec \
  11461. STRIP \
  11462. RANLIB \
  11463. CC \
  11464. CFLAGS \
  11465. compiler \
  11466. lt_cv_sys_global_symbol_pipe \
  11467. lt_cv_sys_global_symbol_to_cdecl \
  11468. lt_cv_sys_global_symbol_to_import \
  11469. lt_cv_sys_global_symbol_to_c_name_address \
  11470. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  11471. lt_cv_nm_interface \
  11472. nm_file_list_spec \
  11473. lt_cv_truncate_bin \
  11474. lt_prog_compiler_no_builtin_flag \
  11475. lt_prog_compiler_pic \
  11476. lt_prog_compiler_wl \
  11477. lt_prog_compiler_static \
  11478. lt_cv_prog_compiler_c_o \
  11479. need_locks \
  11480. MANIFEST_TOOL \
  11481. DSYMUTIL \
  11482. NMEDIT \
  11483. LIPO \
  11484. OTOOL \
  11485. OTOOL64 \
  11486. shrext_cmds \
  11487. export_dynamic_flag_spec \
  11488. whole_archive_flag_spec \
  11489. compiler_needs_object \
  11490. with_gnu_ld \
  11491. allow_undefined_flag \
  11492. no_undefined_flag \
  11493. hardcode_libdir_flag_spec \
  11494. hardcode_libdir_separator \
  11495. exclude_expsyms \
  11496. include_expsyms \
  11497. file_list_spec \
  11498. variables_saved_for_relink \
  11499. libname_spec \
  11500. library_names_spec \
  11501. soname_spec \
  11502. install_override_mode \
  11503. finish_eval \
  11504. old_striplib \
  11505. striplib; do
  11506. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  11507. *[\\\\\\\`\\"\\\$]*)
  11508. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  11509. ;;
  11510. *)
  11511. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11512. ;;
  11513. esac
  11514. done
  11515. # Double-quote double-evaled strings.
  11516. for var in reload_cmds \
  11517. old_postinstall_cmds \
  11518. old_postuninstall_cmds \
  11519. old_archive_cmds \
  11520. extract_expsyms_cmds \
  11521. old_archive_from_new_cmds \
  11522. old_archive_from_expsyms_cmds \
  11523. archive_cmds \
  11524. archive_expsym_cmds \
  11525. module_cmds \
  11526. module_expsym_cmds \
  11527. export_symbols_cmds \
  11528. prelink_cmds \
  11529. postlink_cmds \
  11530. postinstall_cmds \
  11531. postuninstall_cmds \
  11532. finish_cmds \
  11533. sys_lib_search_path_spec \
  11534. configure_time_dlsearch_path \
  11535. configure_time_lt_sys_library_path; do
  11536. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  11537. *[\\\\\\\`\\"\\\$]*)
  11538. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  11539. ;;
  11540. *)
  11541. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11542. ;;
  11543. esac
  11544. done
  11545. ac_aux_dir='$ac_aux_dir'
  11546. # See if we are running on zsh, and set the options that allow our
  11547. # commands through without removal of \ escapes INIT.
  11548. if test -n "\${ZSH_VERSION+set}"; then
  11549. setopt NO_GLOB_SUBST
  11550. fi
  11551. PACKAGE='$PACKAGE'
  11552. VERSION='$VERSION'
  11553. RM='$RM'
  11554. ofile='$ofile'
  11555. _ACEOF
  11556. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11557. # Handling of arguments.
  11558. for ac_config_target in $ac_config_targets
  11559. do
  11560. case $ac_config_target in
  11561. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  11562. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  11563. "luksmeta.pc") CONFIG_FILES="$CONFIG_FILES luksmeta.pc" ;;
  11564. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11565. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  11566. esac
  11567. done
  11568. # If the user did not use the arguments to specify the items to instantiate,
  11569. # then the envvar interface is used. Set only those that are not.
  11570. # We use the long form for the default assignment because of an extremely
  11571. # bizarre bug on SunOS 4.1.3.
  11572. if $ac_need_defaults; then
  11573. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11574. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  11575. fi
  11576. # Have a temporary directory for convenience. Make it in the build tree
  11577. # simply because there is no reason against having it here, and in addition,
  11578. # creating and moving files from /tmp can sometimes cause problems.
  11579. # Hook for its removal unless debugging.
  11580. # Note that there is a small window in which the directory will not be cleaned:
  11581. # after its creation but before its name has been assigned to `$tmp'.
  11582. $debug ||
  11583. {
  11584. tmp= ac_tmp=
  11585. trap 'exit_status=$?
  11586. : "${ac_tmp:=$tmp}"
  11587. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  11588. ' 0
  11589. trap 'as_fn_exit 1' 1 2 13 15
  11590. }
  11591. # Create a (secure) tmp directory for tmp files.
  11592. {
  11593. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  11594. test -d "$tmp"
  11595. } ||
  11596. {
  11597. tmp=./conf$$-$RANDOM
  11598. (umask 077 && mkdir "$tmp")
  11599. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  11600. ac_tmp=$tmp
  11601. # Set up the scripts for CONFIG_FILES section.
  11602. # No need to generate them if there are no CONFIG_FILES.
  11603. # This happens for instance with `./config.status config.h'.
  11604. if test -n "$CONFIG_FILES"; then
  11605. ac_cr=`echo X | tr X '\015'`
  11606. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  11607. # But we know of no other shell where ac_cr would be empty at this
  11608. # point, so we can use a bashism as a fallback.
  11609. if test "x$ac_cr" = x; then
  11610. eval ac_cr=\$\'\\r\'
  11611. fi
  11612. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  11613. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  11614. ac_cs_awk_cr='\\r'
  11615. else
  11616. ac_cs_awk_cr=$ac_cr
  11617. fi
  11618. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  11619. _ACEOF
  11620. {
  11621. echo "cat >conf$$subs.awk <<_ACEOF" &&
  11622. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  11623. echo "_ACEOF"
  11624. } >conf$$subs.sh ||
  11625. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  11626. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  11627. ac_delim='%!_!# '
  11628. for ac_last_try in false false false false false :; do
  11629. . ./conf$$subs.sh ||
  11630. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  11631. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  11632. if test $ac_delim_n = $ac_delim_num; then
  11633. break
  11634. elif $ac_last_try; then
  11635. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  11636. else
  11637. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11638. fi
  11639. done
  11640. rm -f conf$$subs.sh
  11641. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11642. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  11643. _ACEOF
  11644. sed -n '
  11645. h
  11646. s/^/S["/; s/!.*/"]=/
  11647. p
  11648. g
  11649. s/^[^!]*!//
  11650. :repl
  11651. t repl
  11652. s/'"$ac_delim"'$//
  11653. t delim
  11654. :nl
  11655. h
  11656. s/\(.\{148\}\)..*/\1/
  11657. t more1
  11658. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  11659. p
  11660. n
  11661. b repl
  11662. :more1
  11663. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11664. p
  11665. g
  11666. s/.\{148\}//
  11667. t nl
  11668. :delim
  11669. h
  11670. s/\(.\{148\}\)..*/\1/
  11671. t more2
  11672. s/["\\]/\\&/g; s/^/"/; s/$/"/
  11673. p
  11674. b
  11675. :more2
  11676. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11677. p
  11678. g
  11679. s/.\{148\}//
  11680. t delim
  11681. ' <conf$$subs.awk | sed '
  11682. /^[^""]/{
  11683. N
  11684. s/\n//
  11685. }
  11686. ' >>$CONFIG_STATUS || ac_write_fail=1
  11687. rm -f conf$$subs.awk
  11688. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11689. _ACAWK
  11690. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  11691. for (key in S) S_is_set[key] = 1
  11692. FS = ""
  11693. }
  11694. {
  11695. line = $ 0
  11696. nfields = split(line, field, "@")
  11697. substed = 0
  11698. len = length(field[1])
  11699. for (i = 2; i < nfields; i++) {
  11700. key = field[i]
  11701. keylen = length(key)
  11702. if (S_is_set[key]) {
  11703. value = S[key]
  11704. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  11705. len += length(value) + length(field[++i])
  11706. substed = 1
  11707. } else
  11708. len += 1 + keylen
  11709. }
  11710. print line
  11711. }
  11712. _ACAWK
  11713. _ACEOF
  11714. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11715. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  11716. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  11717. else
  11718. cat
  11719. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  11720. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  11721. _ACEOF
  11722. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  11723. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  11724. # trailing colons and then remove the whole line if VPATH becomes empty
  11725. # (actually we leave an empty line to preserve line numbers).
  11726. if test "x$srcdir" = x.; then
  11727. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  11728. h
  11729. s///
  11730. s/^/:/
  11731. s/[ ]*$/:/
  11732. s/:\$(srcdir):/:/g
  11733. s/:\${srcdir}:/:/g
  11734. s/:@srcdir@:/:/g
  11735. s/^:*//
  11736. s/:*$//
  11737. x
  11738. s/\(=[ ]*\).*/\1/
  11739. G
  11740. s/\n//
  11741. s/^[^=]*=[ ]*$//
  11742. }'
  11743. fi
  11744. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11745. fi # test -n "$CONFIG_FILES"
  11746. eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
  11747. shift
  11748. for ac_tag
  11749. do
  11750. case $ac_tag in
  11751. :[FHLC]) ac_mode=$ac_tag; continue;;
  11752. esac
  11753. case $ac_mode$ac_tag in
  11754. :[FHL]*:*);;
  11755. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  11756. :[FH]-) ac_tag=-:-;;
  11757. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  11758. esac
  11759. ac_save_IFS=$IFS
  11760. IFS=:
  11761. set x $ac_tag
  11762. IFS=$ac_save_IFS
  11763. shift
  11764. ac_file=$1
  11765. shift
  11766. case $ac_mode in
  11767. :L) ac_source=$1;;
  11768. :[FH])
  11769. ac_file_inputs=
  11770. for ac_f
  11771. do
  11772. case $ac_f in
  11773. -) ac_f="$ac_tmp/stdin";;
  11774. *) # Look for the file first in the build tree, then in the source tree
  11775. # (if the path is not absolute). The absolute path cannot be DOS-style,
  11776. # because $ac_f cannot contain `:'.
  11777. test -f "$ac_f" ||
  11778. case $ac_f in
  11779. [\\/$]*) false;;
  11780. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  11781. esac ||
  11782. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  11783. esac
  11784. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  11785. as_fn_append ac_file_inputs " '$ac_f'"
  11786. done
  11787. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11788. # use $as_me), people would be surprised to read:
  11789. # /* config.h. Generated by config.status. */
  11790. configure_input='Generated from '`
  11791. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  11792. `' by configure.'
  11793. if test x"$ac_file" != x-; then
  11794. configure_input="$ac_file. $configure_input"
  11795. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  11796. $as_echo "$as_me: creating $ac_file" >&6;}
  11797. fi
  11798. # Neutralize special characters interpreted by sed in replacement strings.
  11799. case $configure_input in #(
  11800. *\&* | *\|* | *\\* )
  11801. ac_sed_conf_input=`$as_echo "$configure_input" |
  11802. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  11803. *) ac_sed_conf_input=$configure_input;;
  11804. esac
  11805. case $ac_tag in
  11806. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  11807. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  11808. esac
  11809. ;;
  11810. esac
  11811. ac_dir=`$as_dirname -- "$ac_file" ||
  11812. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11813. X"$ac_file" : 'X\(//\)[^/]' \| \
  11814. X"$ac_file" : 'X\(//\)$' \| \
  11815. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  11816. $as_echo X"$ac_file" |
  11817. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11818. s//\1/
  11819. q
  11820. }
  11821. /^X\(\/\/\)[^/].*/{
  11822. s//\1/
  11823. q
  11824. }
  11825. /^X\(\/\/\)$/{
  11826. s//\1/
  11827. q
  11828. }
  11829. /^X\(\/\).*/{
  11830. s//\1/
  11831. q
  11832. }
  11833. s/.*/./; q'`
  11834. as_dir="$ac_dir"; as_fn_mkdir_p
  11835. ac_builddir=.
  11836. case "$ac_dir" in
  11837. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11838. *)
  11839. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  11840. # A ".." for each directory in $ac_dir_suffix.
  11841. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  11842. case $ac_top_builddir_sub in
  11843. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11844. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  11845. esac ;;
  11846. esac
  11847. ac_abs_top_builddir=$ac_pwd
  11848. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  11849. # for backward compatibility:
  11850. ac_top_builddir=$ac_top_build_prefix
  11851. case $srcdir in
  11852. .) # We are building in place.
  11853. ac_srcdir=.
  11854. ac_top_srcdir=$ac_top_builddir_sub
  11855. ac_abs_top_srcdir=$ac_pwd ;;
  11856. [\\/]* | ?:[\\/]* ) # Absolute name.
  11857. ac_srcdir=$srcdir$ac_dir_suffix;
  11858. ac_top_srcdir=$srcdir
  11859. ac_abs_top_srcdir=$srcdir ;;
  11860. *) # Relative name.
  11861. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  11862. ac_top_srcdir=$ac_top_build_prefix$srcdir
  11863. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  11864. esac
  11865. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  11866. case $ac_mode in
  11867. :F)
  11868. #
  11869. # CONFIG_FILE
  11870. #
  11871. case $INSTALL in
  11872. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  11873. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  11874. esac
  11875. ac_MKDIR_P=$MKDIR_P
  11876. case $MKDIR_P in
  11877. [\\/$]* | ?:[\\/]* ) ;;
  11878. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  11879. esac
  11880. _ACEOF
  11881. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11882. # If the template does not know about datarootdir, expand it.
  11883. # FIXME: This hack should be removed a few years after 2.60.
  11884. ac_datarootdir_hack=; ac_datarootdir_seen=
  11885. ac_sed_dataroot='
  11886. /datarootdir/ {
  11887. p
  11888. q
  11889. }
  11890. /@datadir@/p
  11891. /@docdir@/p
  11892. /@infodir@/p
  11893. /@localedir@/p
  11894. /@mandir@/p'
  11895. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  11896. *datarootdir*) ac_datarootdir_seen=yes;;
  11897. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  11898. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  11899. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  11900. _ACEOF
  11901. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11902. ac_datarootdir_hack='
  11903. s&@datadir@&$datadir&g
  11904. s&@docdir@&$docdir&g
  11905. s&@infodir@&$infodir&g
  11906. s&@localedir@&$localedir&g
  11907. s&@mandir@&$mandir&g
  11908. s&\\\${datarootdir}&$datarootdir&g' ;;
  11909. esac
  11910. _ACEOF
  11911. # Neutralize VPATH when `$srcdir' = `.'.
  11912. # Shell code in configure.ac might set extrasub.
  11913. # FIXME: do we really want to maintain this feature?
  11914. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11915. ac_sed_extra="$ac_vpsub
  11916. $extrasub
  11917. _ACEOF
  11918. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11919. :t
  11920. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11921. s|@configure_input@|$ac_sed_conf_input|;t t
  11922. s&@top_builddir@&$ac_top_builddir_sub&;t t
  11923. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  11924. s&@srcdir@&$ac_srcdir&;t t
  11925. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  11926. s&@top_srcdir@&$ac_top_srcdir&;t t
  11927. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  11928. s&@builddir@&$ac_builddir&;t t
  11929. s&@abs_builddir@&$ac_abs_builddir&;t t
  11930. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  11931. s&@INSTALL@&$ac_INSTALL&;t t
  11932. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  11933. $ac_datarootdir_hack
  11934. "
  11935. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  11936. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11937. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  11938. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  11939. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  11940. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  11941. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11942. which seems to be undefined. Please make sure it is defined" >&5
  11943. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11944. which seems to be undefined. Please make sure it is defined" >&2;}
  11945. rm -f "$ac_tmp/stdin"
  11946. case $ac_file in
  11947. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  11948. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  11949. esac \
  11950. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11951. ;;
  11952. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  11953. $as_echo "$as_me: executing $ac_file commands" >&6;}
  11954. ;;
  11955. esac
  11956. case $ac_file$ac_mode in
  11957. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  11958. # Older Autoconf quotes --file arguments for eval, but not when files
  11959. # are listed without --file. Let's play safe and only enable the eval
  11960. # if we detect the quoting.
  11961. case $CONFIG_FILES in
  11962. *\'*) eval set x "$CONFIG_FILES" ;;
  11963. *) set x $CONFIG_FILES ;;
  11964. esac
  11965. shift
  11966. for mf
  11967. do
  11968. # Strip MF so we end up with the name of the file.
  11969. mf=`echo "$mf" | sed -e 's/:.*$//'`
  11970. # Check whether this is an Automake generated Makefile or not.
  11971. # We used to match only the files named 'Makefile.in', but
  11972. # some people rename them; so instead we look at the file content.
  11973. # Grep'ing the first line is not enough: some people post-process
  11974. # each Makefile.in and add a new line on top of each file to say so.
  11975. # Grep'ing the whole file is not good either: AIX grep has a line
  11976. # limit of 2048, but all sed's we know have understand at least 4000.
  11977. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  11978. dirpart=`$as_dirname -- "$mf" ||
  11979. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11980. X"$mf" : 'X\(//\)[^/]' \| \
  11981. X"$mf" : 'X\(//\)$' \| \
  11982. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  11983. $as_echo X"$mf" |
  11984. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11985. s//\1/
  11986. q
  11987. }
  11988. /^X\(\/\/\)[^/].*/{
  11989. s//\1/
  11990. q
  11991. }
  11992. /^X\(\/\/\)$/{
  11993. s//\1/
  11994. q
  11995. }
  11996. /^X\(\/\).*/{
  11997. s//\1/
  11998. q
  11999. }
  12000. s/.*/./; q'`
  12001. else
  12002. continue
  12003. fi
  12004. # Extract the definition of DEPDIR, am__include, and am__quote
  12005. # from the Makefile without running 'make'.
  12006. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  12007. test -z "$DEPDIR" && continue
  12008. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  12009. test -z "$am__include" && continue
  12010. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  12011. # Find all dependency output files, they are included files with
  12012. # $(DEPDIR) in their names. We invoke sed twice because it is the
  12013. # simplest approach to changing $(DEPDIR) to its actual value in the
  12014. # expansion.
  12015. for file in `sed -n "
  12016. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  12017. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  12018. # Make sure the directory exists.
  12019. test -f "$dirpart/$file" && continue
  12020. fdir=`$as_dirname -- "$file" ||
  12021. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12022. X"$file" : 'X\(//\)[^/]' \| \
  12023. X"$file" : 'X\(//\)$' \| \
  12024. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  12025. $as_echo X"$file" |
  12026. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12027. s//\1/
  12028. q
  12029. }
  12030. /^X\(\/\/\)[^/].*/{
  12031. s//\1/
  12032. q
  12033. }
  12034. /^X\(\/\/\)$/{
  12035. s//\1/
  12036. q
  12037. }
  12038. /^X\(\/\).*/{
  12039. s//\1/
  12040. q
  12041. }
  12042. s/.*/./; q'`
  12043. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  12044. # echo "creating $dirpart/$file"
  12045. echo '# dummy' > "$dirpart/$file"
  12046. done
  12047. done
  12048. }
  12049. ;;
  12050. "libtool":C)
  12051. # See if we are running on zsh, and set the options that allow our
  12052. # commands through without removal of \ escapes.
  12053. if test -n "${ZSH_VERSION+set}"; then
  12054. setopt NO_GLOB_SUBST
  12055. fi
  12056. cfgfile=${ofile}T
  12057. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  12058. $RM "$cfgfile"
  12059. cat <<_LT_EOF >> "$cfgfile"
  12060. #! $SHELL
  12061. # Generated automatically by $as_me ($PACKAGE) $VERSION
  12062. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  12063. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  12064. # Provide generalized library-building support services.
  12065. # Written by Gordon Matzigkeit, 1996
  12066. # Copyright (C) 2014 Free Software Foundation, Inc.
  12067. # This is free software; see the source for copying conditions. There is NO
  12068. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  12069. # GNU Libtool is free software; you can redistribute it and/or modify
  12070. # it under the terms of the GNU General Public License as published by
  12071. # the Free Software Foundation; either version 2 of of the License, or
  12072. # (at your option) any later version.
  12073. #
  12074. # As a special exception to the GNU General Public License, if you
  12075. # distribute this file as part of a program or library that is built
  12076. # using GNU Libtool, you may include this file under the same
  12077. # distribution terms that you use for the rest of that program.
  12078. #
  12079. # GNU Libtool is distributed in the hope that it will be useful, but
  12080. # WITHOUT ANY WARRANTY; without even the implied warranty of
  12081. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12082. # GNU General Public License for more details.
  12083. #
  12084. # You should have received a copy of the GNU General Public License
  12085. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  12086. # The names of the tagged configurations supported by this script.
  12087. available_tags=''
  12088. # Configured defaults for sys_lib_dlsearch_path munging.
  12089. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  12090. # ### BEGIN LIBTOOL CONFIG
  12091. # Which release of libtool.m4 was used?
  12092. macro_version=$macro_version
  12093. macro_revision=$macro_revision
  12094. # Whether or not to build static libraries.
  12095. build_old_libs=$enable_static
  12096. # Whether or not to build shared libraries.
  12097. build_libtool_libs=$enable_shared
  12098. # What type of objects to build.
  12099. pic_mode=$pic_mode
  12100. # Whether or not to optimize for fast installation.
  12101. fast_install=$enable_fast_install
  12102. # Shared archive member basename,for filename based shared library versioning on AIX.
  12103. shared_archive_member_spec=$shared_archive_member_spec
  12104. # Shell to use when invoking shell scripts.
  12105. SHELL=$lt_SHELL
  12106. # An echo program that protects backslashes.
  12107. ECHO=$lt_ECHO
  12108. # The PATH separator for the build system.
  12109. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  12110. # The host system.
  12111. host_alias=$host_alias
  12112. host=$host
  12113. host_os=$host_os
  12114. # The build system.
  12115. build_alias=$build_alias
  12116. build=$build
  12117. build_os=$build_os
  12118. # A sed program that does not truncate output.
  12119. SED=$lt_SED
  12120. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  12121. Xsed="\$SED -e 1s/^X//"
  12122. # A grep program that handles long lines.
  12123. GREP=$lt_GREP
  12124. # An ERE matcher.
  12125. EGREP=$lt_EGREP
  12126. # A literal string matcher.
  12127. FGREP=$lt_FGREP
  12128. # A BSD- or MS-compatible name lister.
  12129. NM=$lt_NM
  12130. # Whether we need soft or hard links.
  12131. LN_S=$lt_LN_S
  12132. # What is the maximum length of a command?
  12133. max_cmd_len=$max_cmd_len
  12134. # Object file suffix (normally "o").
  12135. objext=$ac_objext
  12136. # Executable file suffix (normally "").
  12137. exeext=$exeext
  12138. # whether the shell understands "unset".
  12139. lt_unset=$lt_unset
  12140. # turn spaces into newlines.
  12141. SP2NL=$lt_lt_SP2NL
  12142. # turn newlines into spaces.
  12143. NL2SP=$lt_lt_NL2SP
  12144. # convert \$build file names to \$host format.
  12145. to_host_file_cmd=$lt_cv_to_host_file_cmd
  12146. # convert \$build files to toolchain format.
  12147. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  12148. # An object symbol dumper.
  12149. OBJDUMP=$lt_OBJDUMP
  12150. # Method to check whether dependent libraries are shared objects.
  12151. deplibs_check_method=$lt_deplibs_check_method
  12152. # Command to use when deplibs_check_method = "file_magic".
  12153. file_magic_cmd=$lt_file_magic_cmd
  12154. # How to find potential files when deplibs_check_method = "file_magic".
  12155. file_magic_glob=$lt_file_magic_glob
  12156. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  12157. want_nocaseglob=$lt_want_nocaseglob
  12158. # DLL creation program.
  12159. DLLTOOL=$lt_DLLTOOL
  12160. # Command to associate shared and link libraries.
  12161. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  12162. # The archiver.
  12163. AR=$lt_AR
  12164. # Flags to create an archive.
  12165. AR_FLAGS=$lt_AR_FLAGS
  12166. # How to feed a file listing to the archiver.
  12167. archiver_list_spec=$lt_archiver_list_spec
  12168. # A symbol stripping program.
  12169. STRIP=$lt_STRIP
  12170. # Commands used to install an old-style archive.
  12171. RANLIB=$lt_RANLIB
  12172. old_postinstall_cmds=$lt_old_postinstall_cmds
  12173. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  12174. # Whether to use a lock for old archive extraction.
  12175. lock_old_archive_extraction=$lock_old_archive_extraction
  12176. # A C compiler.
  12177. LTCC=$lt_CC
  12178. # LTCC compiler flags.
  12179. LTCFLAGS=$lt_CFLAGS
  12180. # Take the output of nm and produce a listing of raw symbols and C names.
  12181. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  12182. # Transform the output of nm in a proper C declaration.
  12183. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  12184. # Transform the output of nm into a list of symbols to manually relocate.
  12185. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  12186. # Transform the output of nm in a C name address pair.
  12187. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  12188. # Transform the output of nm in a C name address pair when lib prefix is needed.
  12189. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  12190. # The name lister interface.
  12191. nm_interface=$lt_lt_cv_nm_interface
  12192. # Specify filename containing input files for \$NM.
  12193. nm_file_list_spec=$lt_nm_file_list_spec
  12194. # The root where to search for dependent libraries,and where our libraries should be installed.
  12195. lt_sysroot=$lt_sysroot
  12196. # Command to truncate a binary pipe.
  12197. lt_truncate_bin=$lt_lt_cv_truncate_bin
  12198. # The name of the directory that contains temporary libtool files.
  12199. objdir=$objdir
  12200. # Used to examine libraries when file_magic_cmd begins with "file".
  12201. MAGIC_CMD=$MAGIC_CMD
  12202. # Must we lock files when doing compilation?
  12203. need_locks=$lt_need_locks
  12204. # Manifest tool.
  12205. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  12206. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  12207. DSYMUTIL=$lt_DSYMUTIL
  12208. # Tool to change global to local symbols on Mac OS X.
  12209. NMEDIT=$lt_NMEDIT
  12210. # Tool to manipulate fat objects and archives on Mac OS X.
  12211. LIPO=$lt_LIPO
  12212. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  12213. OTOOL=$lt_OTOOL
  12214. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  12215. OTOOL64=$lt_OTOOL64
  12216. # Old archive suffix (normally "a").
  12217. libext=$libext
  12218. # Shared library suffix (normally ".so").
  12219. shrext_cmds=$lt_shrext_cmds
  12220. # The commands to extract the exported symbol list from a shared archive.
  12221. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  12222. # Variables whose values should be saved in libtool wrapper scripts and
  12223. # restored at link time.
  12224. variables_saved_for_relink=$lt_variables_saved_for_relink
  12225. # Do we need the "lib" prefix for modules?
  12226. need_lib_prefix=$need_lib_prefix
  12227. # Do we need a version for libraries?
  12228. need_version=$need_version
  12229. # Library versioning type.
  12230. version_type=$version_type
  12231. # Shared library runtime path variable.
  12232. runpath_var=$runpath_var
  12233. # Shared library path variable.
  12234. shlibpath_var=$shlibpath_var
  12235. # Is shlibpath searched before the hard-coded library search path?
  12236. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  12237. # Format of library name prefix.
  12238. libname_spec=$lt_libname_spec
  12239. # List of archive names. First name is the real one, the rest are links.
  12240. # The last name is the one that the linker finds with -lNAME
  12241. library_names_spec=$lt_library_names_spec
  12242. # The coded name of the library, if different from the real name.
  12243. soname_spec=$lt_soname_spec
  12244. # Permission mode override for installation of shared libraries.
  12245. install_override_mode=$lt_install_override_mode
  12246. # Command to use after installation of a shared archive.
  12247. postinstall_cmds=$lt_postinstall_cmds
  12248. # Command to use after uninstallation of a shared archive.
  12249. postuninstall_cmds=$lt_postuninstall_cmds
  12250. # Commands used to finish a libtool library installation in a directory.
  12251. finish_cmds=$lt_finish_cmds
  12252. # As "finish_cmds", except a single script fragment to be evaled but
  12253. # not shown.
  12254. finish_eval=$lt_finish_eval
  12255. # Whether we should hardcode library paths into libraries.
  12256. hardcode_into_libs=$hardcode_into_libs
  12257. # Compile-time system search path for libraries.
  12258. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  12259. # Detected run-time system search path for libraries.
  12260. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  12261. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  12262. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  12263. # Whether dlopen is supported.
  12264. dlopen_support=$enable_dlopen
  12265. # Whether dlopen of programs is supported.
  12266. dlopen_self=$enable_dlopen_self
  12267. # Whether dlopen of statically linked programs is supported.
  12268. dlopen_self_static=$enable_dlopen_self_static
  12269. # Commands to strip libraries.
  12270. old_striplib=$lt_old_striplib
  12271. striplib=$lt_striplib
  12272. # The linker used to build libraries.
  12273. LD=$lt_LD
  12274. # How to create reloadable object files.
  12275. reload_flag=$lt_reload_flag
  12276. reload_cmds=$lt_reload_cmds
  12277. # Commands used to build an old-style archive.
  12278. old_archive_cmds=$lt_old_archive_cmds
  12279. # A language specific compiler.
  12280. CC=$lt_compiler
  12281. # Is the compiler the GNU compiler?
  12282. with_gcc=$GCC
  12283. # Compiler flag to turn off builtin functions.
  12284. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  12285. # Additional compiler flags for building library objects.
  12286. pic_flag=$lt_lt_prog_compiler_pic
  12287. # How to pass a linker flag through the compiler.
  12288. wl=$lt_lt_prog_compiler_wl
  12289. # Compiler flag to prevent dynamic linking.
  12290. link_static_flag=$lt_lt_prog_compiler_static
  12291. # Does compiler simultaneously support -c and -o options?
  12292. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  12293. # Whether or not to add -lc for building shared libraries.
  12294. build_libtool_need_lc=$archive_cmds_need_lc
  12295. # Whether or not to disallow shared libs when runtime libs are static.
  12296. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  12297. # Compiler flag to allow reflexive dlopens.
  12298. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  12299. # Compiler flag to generate shared objects directly from archives.
  12300. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  12301. # Whether the compiler copes with passing no objects directly.
  12302. compiler_needs_object=$lt_compiler_needs_object
  12303. # Create an old-style archive from a shared archive.
  12304. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  12305. # Create a temporary old-style archive to link instead of a shared archive.
  12306. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  12307. # Commands used to build a shared archive.
  12308. archive_cmds=$lt_archive_cmds
  12309. archive_expsym_cmds=$lt_archive_expsym_cmds
  12310. # Commands used to build a loadable module if different from building
  12311. # a shared archive.
  12312. module_cmds=$lt_module_cmds
  12313. module_expsym_cmds=$lt_module_expsym_cmds
  12314. # Whether we are building with GNU ld or not.
  12315. with_gnu_ld=$lt_with_gnu_ld
  12316. # Flag that allows shared libraries with undefined symbols to be built.
  12317. allow_undefined_flag=$lt_allow_undefined_flag
  12318. # Flag that enforces no undefined symbols.
  12319. no_undefined_flag=$lt_no_undefined_flag
  12320. # Flag to hardcode \$libdir into a binary during linking.
  12321. # This must work even if \$libdir does not exist
  12322. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  12323. # Whether we need a single "-rpath" flag with a separated argument.
  12324. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  12325. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  12326. # DIR into the resulting binary.
  12327. hardcode_direct=$hardcode_direct
  12328. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  12329. # DIR into the resulting binary and the resulting library dependency is
  12330. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  12331. # library is relocated.
  12332. hardcode_direct_absolute=$hardcode_direct_absolute
  12333. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  12334. # into the resulting binary.
  12335. hardcode_minus_L=$hardcode_minus_L
  12336. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  12337. # into the resulting binary.
  12338. hardcode_shlibpath_var=$hardcode_shlibpath_var
  12339. # Set to "yes" if building a shared library automatically hardcodes DIR
  12340. # into the library and all subsequent libraries and executables linked
  12341. # against it.
  12342. hardcode_automatic=$hardcode_automatic
  12343. # Set to yes if linker adds runtime paths of dependent libraries
  12344. # to runtime path list.
  12345. inherit_rpath=$inherit_rpath
  12346. # Whether libtool must link a program against all its dependency libraries.
  12347. link_all_deplibs=$link_all_deplibs
  12348. # Set to "yes" if exported symbols are required.
  12349. always_export_symbols=$always_export_symbols
  12350. # The commands to list exported symbols.
  12351. export_symbols_cmds=$lt_export_symbols_cmds
  12352. # Symbols that should not be listed in the preloaded symbols.
  12353. exclude_expsyms=$lt_exclude_expsyms
  12354. # Symbols that must always be exported.
  12355. include_expsyms=$lt_include_expsyms
  12356. # Commands necessary for linking programs (against libraries) with templates.
  12357. prelink_cmds=$lt_prelink_cmds
  12358. # Commands necessary for finishing linking programs.
  12359. postlink_cmds=$lt_postlink_cmds
  12360. # Specify filename containing input files.
  12361. file_list_spec=$lt_file_list_spec
  12362. # How to hardcode a shared library path into an executable.
  12363. hardcode_action=$hardcode_action
  12364. # ### END LIBTOOL CONFIG
  12365. _LT_EOF
  12366. cat <<'_LT_EOF' >> "$cfgfile"
  12367. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  12368. # func_munge_path_list VARIABLE PATH
  12369. # -----------------------------------
  12370. # VARIABLE is name of variable containing _space_ separated list of
  12371. # directories to be munged by the contents of PATH, which is string
  12372. # having a format:
  12373. # "DIR[:DIR]:"
  12374. # string "DIR[ DIR]" will be prepended to VARIABLE
  12375. # ":DIR[:DIR]"
  12376. # string "DIR[ DIR]" will be appended to VARIABLE
  12377. # "DIRP[:DIRP]::[DIRA:]DIRA"
  12378. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  12379. # "DIRA[ DIRA]" will be appended to VARIABLE
  12380. # "DIR[:DIR]"
  12381. # VARIABLE will be replaced by "DIR[ DIR]"
  12382. func_munge_path_list ()
  12383. {
  12384. case x$2 in
  12385. x)
  12386. ;;
  12387. *:)
  12388. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  12389. ;;
  12390. x:*)
  12391. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  12392. ;;
  12393. *::*)
  12394. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  12395. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  12396. ;;
  12397. *)
  12398. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  12399. ;;
  12400. esac
  12401. }
  12402. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  12403. func_cc_basename ()
  12404. {
  12405. for cc_temp in $*""; do
  12406. case $cc_temp in
  12407. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  12408. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  12409. \-*) ;;
  12410. *) break;;
  12411. esac
  12412. done
  12413. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  12414. }
  12415. # ### END FUNCTIONS SHARED WITH CONFIGURE
  12416. _LT_EOF
  12417. case $host_os in
  12418. aix3*)
  12419. cat <<\_LT_EOF >> "$cfgfile"
  12420. # AIX sometimes has problems with the GCC collect2 program. For some
  12421. # reason, if we set the COLLECT_NAMES environment variable, the problems
  12422. # vanish in a puff of smoke.
  12423. if test set != "${COLLECT_NAMES+set}"; then
  12424. COLLECT_NAMES=
  12425. export COLLECT_NAMES
  12426. fi
  12427. _LT_EOF
  12428. ;;
  12429. esac
  12430. ltmain=$ac_aux_dir/ltmain.sh
  12431. # We use sed instead of cat because bash on DJGPP gets confused if
  12432. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  12433. # text mode, it properly converts lines to CR/LF. This bash problem
  12434. # is reportedly fixed, but why not run on old versions too?
  12435. sed '$q' "$ltmain" >> "$cfgfile" \
  12436. || (rm -f "$cfgfile"; exit 1)
  12437. mv -f "$cfgfile" "$ofile" ||
  12438. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  12439. chmod +x "$ofile"
  12440. ;;
  12441. esac
  12442. done # for ac_tag
  12443. as_fn_exit 0
  12444. _ACEOF
  12445. ac_clean_files=$ac_clean_files_save
  12446. test $ac_write_fail = 0 ||
  12447. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  12448. # configure is writing to config.log, and then calls config.status.
  12449. # config.status does its own redirection, appending to config.log.
  12450. # Unfortunately, on DOS this fails, as config.log is still kept open
  12451. # by configure, so config.status won't be able to write to it; its
  12452. # output is simply discarded. So we exec the FD to /dev/null,
  12453. # effectively closing config.log, so it can be properly (re)opened and
  12454. # appended to by config.status. When coming back to configure, we
  12455. # need to make the FD available again.
  12456. if test "$no_create" != yes; then
  12457. ac_cs_success=:
  12458. ac_config_status_args=
  12459. test "$silent" = yes &&
  12460. ac_config_status_args="$ac_config_status_args --quiet"
  12461. exec 5>/dev/null
  12462. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  12463. exec 5>>config.log
  12464. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  12465. # would make configure fail if this is the last instruction.
  12466. $ac_cs_success || as_fn_exit 1
  12467. fi
  12468. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  12469. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  12470. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  12471. fi