configure 450 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for libnl 3.2.25.
  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='libnl'
  539. PACKAGE_TARNAME='libnl'
  540. PACKAGE_VERSION='3.2.25'
  541. PACKAGE_STRING='libnl 3.2.25'
  542. PACKAGE_BUGREPORT=''
  543. PACKAGE_URL='http://www.infradead.org/~tgr/libnl/'
  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. enable_option_checking=no
  580. ac_subst_vars='am__EXEEXT_FALSE
  581. am__EXEEXT_TRUE
  582. LTLIBOBJS
  583. LIBOBJS
  584. subdirs
  585. ENABLE_DEBUG_FALSE
  586. ENABLE_DEBUG_TRUE
  587. DISABLE_PTHREADS_FALSE
  588. DISABLE_PTHREADS_TRUE
  589. ENABLE_CLI_FALSE
  590. ENABLE_CLI_TRUE
  591. pkgconfigdir
  592. ENABLE_UNIT_TESTS_FALSE
  593. ENABLE_UNIT_TESTS_TRUE
  594. CHECK_LIBS
  595. CHECK_CFLAGS
  596. PKG_CONFIG_LIBDIR
  597. PKG_CONFIG_PATH
  598. PKG_CONFIG
  599. YACC
  600. FLEX
  601. CPP
  602. OTOOL64
  603. OTOOL
  604. LIPO
  605. NMEDIT
  606. DSYMUTIL
  607. MANIFEST_TOOL
  608. RANLIB
  609. DLLTOOL
  610. OBJDUMP
  611. LN_S
  612. NM
  613. ac_ct_DUMPBIN
  614. DUMPBIN
  615. LD
  616. FGREP
  617. EGREP
  618. GREP
  619. SED
  620. host_os
  621. host_vendor
  622. host_cpu
  623. host
  624. build_os
  625. build_vendor
  626. build_cpu
  627. build
  628. LIBTOOL
  629. LT_AGE
  630. LT_REVISION
  631. LT_CURRENT
  632. LIBNL_VERSION
  633. MIC_VERSION
  634. MIN_VERSION
  635. MAJ_VERSION
  636. am__fastdepCC_FALSE
  637. am__fastdepCC_TRUE
  638. CCDEPMODE
  639. am__nodep
  640. AMDEPBACKSLASH
  641. AMDEP_FALSE
  642. AMDEP_TRUE
  643. am__quote
  644. am__include
  645. DEPDIR
  646. OBJEXT
  647. EXEEXT
  648. ac_ct_CC
  649. CPPFLAGS
  650. LDFLAGS
  651. CFLAGS
  652. CC
  653. ac_ct_AR
  654. AR
  655. AM_BACKSLASH
  656. AM_DEFAULT_VERBOSITY
  657. AM_DEFAULT_V
  658. AM_V
  659. am__untar
  660. am__tar
  661. AMTAR
  662. am__leading_dot
  663. SET_MAKE
  664. AWK
  665. mkdir_p
  666. MKDIR_P
  667. INSTALL_STRIP_PROGRAM
  668. STRIP
  669. install_sh
  670. MAKEINFO
  671. AUTOHEADER
  672. AUTOMAKE
  673. AUTOCONF
  674. ACLOCAL
  675. VERSION
  676. PACKAGE
  677. CYGPATH_W
  678. am__isrc
  679. INSTALL_DATA
  680. INSTALL_SCRIPT
  681. INSTALL_PROGRAM
  682. target_alias
  683. host_alias
  684. build_alias
  685. LIBS
  686. ECHO_T
  687. ECHO_N
  688. ECHO_C
  689. DEFS
  690. mandir
  691. localedir
  692. libdir
  693. psdir
  694. pdfdir
  695. dvidir
  696. htmldir
  697. infodir
  698. docdir
  699. oldincludedir
  700. includedir
  701. localstatedir
  702. sharedstatedir
  703. sysconfdir
  704. datadir
  705. datarootdir
  706. libexecdir
  707. sbindir
  708. bindir
  709. program_transform_name
  710. prefix
  711. exec_prefix
  712. PACKAGE_URL
  713. PACKAGE_BUGREPORT
  714. PACKAGE_STRING
  715. PACKAGE_VERSION
  716. PACKAGE_TARNAME
  717. PACKAGE_NAME
  718. PATH_SEPARATOR
  719. SHELL'
  720. ac_subst_files=''
  721. ac_user_opts='
  722. enable_option_checking
  723. enable_silent_rules
  724. enable_dependency_tracking
  725. enable_shared
  726. enable_static
  727. with_pic
  728. enable_fast_install
  729. with_gnu_ld
  730. with_sysroot
  731. enable_libtool_lock
  732. with_pkgconfigdir
  733. enable_cli
  734. enable_pthreads
  735. enable_debug
  736. '
  737. ac_precious_vars='build_alias
  738. host_alias
  739. target_alias
  740. CC
  741. CFLAGS
  742. LDFLAGS
  743. LIBS
  744. CPPFLAGS
  745. CPP
  746. PKG_CONFIG
  747. PKG_CONFIG_PATH
  748. PKG_CONFIG_LIBDIR
  749. CHECK_CFLAGS
  750. CHECK_LIBS'
  751. ac_subdirs_all='doc'
  752. # Initialize some variables set by options.
  753. ac_init_help=
  754. ac_init_version=false
  755. ac_unrecognized_opts=
  756. ac_unrecognized_sep=
  757. # The variables have the same names as the options, with
  758. # dashes changed to underlines.
  759. cache_file=/dev/null
  760. exec_prefix=NONE
  761. no_create=
  762. no_recursion=
  763. prefix=NONE
  764. program_prefix=NONE
  765. program_suffix=NONE
  766. program_transform_name=s,x,x,
  767. silent=
  768. site=
  769. srcdir=
  770. verbose=
  771. x_includes=NONE
  772. x_libraries=NONE
  773. # Installation directory options.
  774. # These are left unexpanded so users can "make install exec_prefix=/foo"
  775. # and all the variables that are supposed to be based on exec_prefix
  776. # by default will actually change.
  777. # Use braces instead of parens because sh, perl, etc. also accept them.
  778. # (The list follows the same order as the GNU Coding Standards.)
  779. bindir='${exec_prefix}/bin'
  780. sbindir='${exec_prefix}/sbin'
  781. libexecdir='${exec_prefix}/libexec'
  782. datarootdir='${prefix}/share'
  783. datadir='${datarootdir}'
  784. sysconfdir='${prefix}/etc'
  785. sharedstatedir='${prefix}/com'
  786. localstatedir='${prefix}/var'
  787. includedir='${prefix}/include'
  788. oldincludedir='/usr/include'
  789. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  790. infodir='${datarootdir}/info'
  791. htmldir='${docdir}'
  792. dvidir='${docdir}'
  793. pdfdir='${docdir}'
  794. psdir='${docdir}'
  795. libdir='${exec_prefix}/lib'
  796. localedir='${datarootdir}/locale'
  797. mandir='${datarootdir}/man'
  798. ac_prev=
  799. ac_dashdash=
  800. for ac_option
  801. do
  802. # If the previous option needs an argument, assign it.
  803. if test -n "$ac_prev"; then
  804. eval $ac_prev=\$ac_option
  805. ac_prev=
  806. continue
  807. fi
  808. case $ac_option in
  809. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  810. *=) ac_optarg= ;;
  811. *) ac_optarg=yes ;;
  812. esac
  813. # Accept the important Cygnus configure options, so we can diagnose typos.
  814. case $ac_dashdash$ac_option in
  815. --)
  816. ac_dashdash=yes ;;
  817. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  818. ac_prev=bindir ;;
  819. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  820. bindir=$ac_optarg ;;
  821. -build | --build | --buil | --bui | --bu)
  822. ac_prev=build_alias ;;
  823. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  824. build_alias=$ac_optarg ;;
  825. -cache-file | --cache-file | --cache-fil | --cache-fi \
  826. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  827. ac_prev=cache_file ;;
  828. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  829. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  830. cache_file=$ac_optarg ;;
  831. --config-cache | -C)
  832. cache_file=config.cache ;;
  833. -datadir | --datadir | --datadi | --datad)
  834. ac_prev=datadir ;;
  835. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  836. datadir=$ac_optarg ;;
  837. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  838. | --dataroo | --dataro | --datar)
  839. ac_prev=datarootdir ;;
  840. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  841. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  842. datarootdir=$ac_optarg ;;
  843. -disable-* | --disable-*)
  844. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  845. # Reject names that are not valid shell variable names.
  846. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  847. as_fn_error $? "invalid feature name: $ac_useropt"
  848. ac_useropt_orig=$ac_useropt
  849. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  850. case $ac_user_opts in
  851. *"
  852. "enable_$ac_useropt"
  853. "*) ;;
  854. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  855. ac_unrecognized_sep=', ';;
  856. esac
  857. eval enable_$ac_useropt=no ;;
  858. -docdir | --docdir | --docdi | --doc | --do)
  859. ac_prev=docdir ;;
  860. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  861. docdir=$ac_optarg ;;
  862. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  863. ac_prev=dvidir ;;
  864. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  865. dvidir=$ac_optarg ;;
  866. -enable-* | --enable-*)
  867. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  868. # Reject names that are not valid shell variable names.
  869. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  870. as_fn_error $? "invalid feature name: $ac_useropt"
  871. ac_useropt_orig=$ac_useropt
  872. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  873. case $ac_user_opts in
  874. *"
  875. "enable_$ac_useropt"
  876. "*) ;;
  877. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  878. ac_unrecognized_sep=', ';;
  879. esac
  880. eval enable_$ac_useropt=\$ac_optarg ;;
  881. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  882. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  883. | --exec | --exe | --ex)
  884. ac_prev=exec_prefix ;;
  885. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  886. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  887. | --exec=* | --exe=* | --ex=*)
  888. exec_prefix=$ac_optarg ;;
  889. -gas | --gas | --ga | --g)
  890. # Obsolete; use --with-gas.
  891. with_gas=yes ;;
  892. -help | --help | --hel | --he | -h)
  893. ac_init_help=long ;;
  894. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  895. ac_init_help=recursive ;;
  896. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  897. ac_init_help=short ;;
  898. -host | --host | --hos | --ho)
  899. ac_prev=host_alias ;;
  900. -host=* | --host=* | --hos=* | --ho=*)
  901. host_alias=$ac_optarg ;;
  902. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  903. ac_prev=htmldir ;;
  904. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  905. | --ht=*)
  906. htmldir=$ac_optarg ;;
  907. -includedir | --includedir | --includedi | --included | --include \
  908. | --includ | --inclu | --incl | --inc)
  909. ac_prev=includedir ;;
  910. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  911. | --includ=* | --inclu=* | --incl=* | --inc=*)
  912. includedir=$ac_optarg ;;
  913. -infodir | --infodir | --infodi | --infod | --info | --inf)
  914. ac_prev=infodir ;;
  915. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  916. infodir=$ac_optarg ;;
  917. -libdir | --libdir | --libdi | --libd)
  918. ac_prev=libdir ;;
  919. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  920. libdir=$ac_optarg ;;
  921. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  922. | --libexe | --libex | --libe)
  923. ac_prev=libexecdir ;;
  924. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  925. | --libexe=* | --libex=* | --libe=*)
  926. libexecdir=$ac_optarg ;;
  927. -localedir | --localedir | --localedi | --localed | --locale)
  928. ac_prev=localedir ;;
  929. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  930. localedir=$ac_optarg ;;
  931. -localstatedir | --localstatedir | --localstatedi | --localstated \
  932. | --localstate | --localstat | --localsta | --localst | --locals)
  933. ac_prev=localstatedir ;;
  934. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  935. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  936. localstatedir=$ac_optarg ;;
  937. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  938. ac_prev=mandir ;;
  939. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  940. mandir=$ac_optarg ;;
  941. -nfp | --nfp | --nf)
  942. # Obsolete; use --without-fp.
  943. with_fp=no ;;
  944. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  945. | --no-cr | --no-c | -n)
  946. no_create=yes ;;
  947. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  948. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  949. no_recursion=yes ;;
  950. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  951. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  952. | --oldin | --oldi | --old | --ol | --o)
  953. ac_prev=oldincludedir ;;
  954. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  955. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  956. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  957. oldincludedir=$ac_optarg ;;
  958. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  959. ac_prev=prefix ;;
  960. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  961. prefix=$ac_optarg ;;
  962. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  963. | --program-pre | --program-pr | --program-p)
  964. ac_prev=program_prefix ;;
  965. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  966. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  967. program_prefix=$ac_optarg ;;
  968. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  969. | --program-suf | --program-su | --program-s)
  970. ac_prev=program_suffix ;;
  971. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  972. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  973. program_suffix=$ac_optarg ;;
  974. -program-transform-name | --program-transform-name \
  975. | --program-transform-nam | --program-transform-na \
  976. | --program-transform-n | --program-transform- \
  977. | --program-transform | --program-transfor \
  978. | --program-transfo | --program-transf \
  979. | --program-trans | --program-tran \
  980. | --progr-tra | --program-tr | --program-t)
  981. ac_prev=program_transform_name ;;
  982. -program-transform-name=* | --program-transform-name=* \
  983. | --program-transform-nam=* | --program-transform-na=* \
  984. | --program-transform-n=* | --program-transform-=* \
  985. | --program-transform=* | --program-transfor=* \
  986. | --program-transfo=* | --program-transf=* \
  987. | --program-trans=* | --program-tran=* \
  988. | --progr-tra=* | --program-tr=* | --program-t=*)
  989. program_transform_name=$ac_optarg ;;
  990. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  991. ac_prev=pdfdir ;;
  992. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  993. pdfdir=$ac_optarg ;;
  994. -psdir | --psdir | --psdi | --psd | --ps)
  995. ac_prev=psdir ;;
  996. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  997. psdir=$ac_optarg ;;
  998. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  999. | -silent | --silent | --silen | --sile | --sil)
  1000. silent=yes ;;
  1001. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1002. ac_prev=sbindir ;;
  1003. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1004. | --sbi=* | --sb=*)
  1005. sbindir=$ac_optarg ;;
  1006. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1007. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1008. | --sharedst | --shareds | --shared | --share | --shar \
  1009. | --sha | --sh)
  1010. ac_prev=sharedstatedir ;;
  1011. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1012. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1013. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1014. | --sha=* | --sh=*)
  1015. sharedstatedir=$ac_optarg ;;
  1016. -site | --site | --sit)
  1017. ac_prev=site ;;
  1018. -site=* | --site=* | --sit=*)
  1019. site=$ac_optarg ;;
  1020. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1021. ac_prev=srcdir ;;
  1022. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1023. srcdir=$ac_optarg ;;
  1024. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1025. | --syscon | --sysco | --sysc | --sys | --sy)
  1026. ac_prev=sysconfdir ;;
  1027. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1028. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1029. sysconfdir=$ac_optarg ;;
  1030. -target | --target | --targe | --targ | --tar | --ta | --t)
  1031. ac_prev=target_alias ;;
  1032. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1033. target_alias=$ac_optarg ;;
  1034. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1035. verbose=yes ;;
  1036. -version | --version | --versio | --versi | --vers | -V)
  1037. ac_init_version=: ;;
  1038. -with-* | --with-*)
  1039. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1040. # Reject names that are not valid shell variable names.
  1041. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1042. as_fn_error $? "invalid package name: $ac_useropt"
  1043. ac_useropt_orig=$ac_useropt
  1044. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1045. case $ac_user_opts in
  1046. *"
  1047. "with_$ac_useropt"
  1048. "*) ;;
  1049. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1050. ac_unrecognized_sep=', ';;
  1051. esac
  1052. eval with_$ac_useropt=\$ac_optarg ;;
  1053. -without-* | --without-*)
  1054. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1055. # Reject names that are not valid shell variable names.
  1056. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1057. as_fn_error $? "invalid package name: $ac_useropt"
  1058. ac_useropt_orig=$ac_useropt
  1059. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1060. case $ac_user_opts in
  1061. *"
  1062. "with_$ac_useropt"
  1063. "*) ;;
  1064. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1065. ac_unrecognized_sep=', ';;
  1066. esac
  1067. eval with_$ac_useropt=no ;;
  1068. --x)
  1069. # Obsolete; use --with-x.
  1070. with_x=yes ;;
  1071. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1072. | --x-incl | --x-inc | --x-in | --x-i)
  1073. ac_prev=x_includes ;;
  1074. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1075. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1076. x_includes=$ac_optarg ;;
  1077. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1078. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1079. ac_prev=x_libraries ;;
  1080. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1081. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1082. x_libraries=$ac_optarg ;;
  1083. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1084. Try \`$0 --help' for more information"
  1085. ;;
  1086. *=*)
  1087. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1088. # Reject names that are not valid shell variable names.
  1089. case $ac_envvar in #(
  1090. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1091. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1092. esac
  1093. eval $ac_envvar=\$ac_optarg
  1094. export $ac_envvar ;;
  1095. *)
  1096. # FIXME: should be removed in autoconf 3.0.
  1097. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1098. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1099. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1100. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1101. ;;
  1102. esac
  1103. done
  1104. if test -n "$ac_prev"; then
  1105. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1106. as_fn_error $? "missing argument to $ac_option"
  1107. fi
  1108. if test -n "$ac_unrecognized_opts"; then
  1109. case $enable_option_checking in
  1110. no) ;;
  1111. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1112. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1113. esac
  1114. fi
  1115. # Check all directory arguments for consistency.
  1116. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1117. datadir sysconfdir sharedstatedir localstatedir includedir \
  1118. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1119. libdir localedir mandir
  1120. do
  1121. eval ac_val=\$$ac_var
  1122. # Remove trailing slashes.
  1123. case $ac_val in
  1124. */ )
  1125. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1126. eval $ac_var=\$ac_val;;
  1127. esac
  1128. # Be sure to have absolute directory names.
  1129. case $ac_val in
  1130. [\\/$]* | ?:[\\/]* ) continue;;
  1131. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1132. esac
  1133. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1134. done
  1135. # There might be people who depend on the old broken behavior: `$host'
  1136. # used to hold the argument of --host etc.
  1137. # FIXME: To remove some day.
  1138. build=$build_alias
  1139. host=$host_alias
  1140. target=$target_alias
  1141. # FIXME: To remove some day.
  1142. if test "x$host_alias" != x; then
  1143. if test "x$build_alias" = x; then
  1144. cross_compiling=maybe
  1145. elif test "x$build_alias" != "x$host_alias"; then
  1146. cross_compiling=yes
  1147. fi
  1148. fi
  1149. ac_tool_prefix=
  1150. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1151. test "$silent" = yes && exec 6>/dev/null
  1152. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1153. ac_ls_di=`ls -di .` &&
  1154. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1155. as_fn_error $? "working directory cannot be determined"
  1156. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1157. as_fn_error $? "pwd does not report name of working directory"
  1158. # Find the source files, if location was not specified.
  1159. if test -z "$srcdir"; then
  1160. ac_srcdir_defaulted=yes
  1161. # Try the directory containing this script, then the parent directory.
  1162. ac_confdir=`$as_dirname -- "$as_myself" ||
  1163. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1164. X"$as_myself" : 'X\(//\)[^/]' \| \
  1165. X"$as_myself" : 'X\(//\)$' \| \
  1166. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1167. $as_echo X"$as_myself" |
  1168. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1169. s//\1/
  1170. q
  1171. }
  1172. /^X\(\/\/\)[^/].*/{
  1173. s//\1/
  1174. q
  1175. }
  1176. /^X\(\/\/\)$/{
  1177. s//\1/
  1178. q
  1179. }
  1180. /^X\(\/\).*/{
  1181. s//\1/
  1182. q
  1183. }
  1184. s/.*/./; q'`
  1185. srcdir=$ac_confdir
  1186. if test ! -r "$srcdir/$ac_unique_file"; then
  1187. srcdir=..
  1188. fi
  1189. else
  1190. ac_srcdir_defaulted=no
  1191. fi
  1192. if test ! -r "$srcdir/$ac_unique_file"; then
  1193. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1194. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1195. fi
  1196. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1197. ac_abs_confdir=`(
  1198. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1199. pwd)`
  1200. # When building in place, set srcdir=.
  1201. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1202. srcdir=.
  1203. fi
  1204. # Remove unnecessary trailing slashes from srcdir.
  1205. # Double slashes in file names in object file debugging info
  1206. # mess up M-x gdb in Emacs.
  1207. case $srcdir in
  1208. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1209. esac
  1210. for ac_var in $ac_precious_vars; do
  1211. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1212. eval ac_env_${ac_var}_value=\$${ac_var}
  1213. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1214. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1215. done
  1216. #
  1217. # Report the --help message.
  1218. #
  1219. if test "$ac_init_help" = "long"; then
  1220. # Omit some internal or obsolete options to make the list less imposing.
  1221. # This message is too long to be a string in the A/UX 3.1 sh.
  1222. cat <<_ACEOF
  1223. \`configure' configures libnl 3.2.25 to adapt to many kinds of systems.
  1224. Usage: $0 [OPTION]... [VAR=VALUE]...
  1225. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1226. VAR=VALUE. See below for descriptions of some of the useful variables.
  1227. Defaults for the options are specified in brackets.
  1228. Configuration:
  1229. -h, --help display this help and exit
  1230. --help=short display options specific to this package
  1231. --help=recursive display the short help of all the included packages
  1232. -V, --version display version information and exit
  1233. -q, --quiet, --silent do not print \`checking ...' messages
  1234. --cache-file=FILE cache test results in FILE [disabled]
  1235. -C, --config-cache alias for \`--cache-file=config.cache'
  1236. -n, --no-create do not create output files
  1237. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1238. Installation directories:
  1239. --prefix=PREFIX install architecture-independent files in PREFIX
  1240. [$ac_default_prefix]
  1241. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1242. [PREFIX]
  1243. By default, \`make install' will install all the files in
  1244. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1245. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1246. for instance \`--prefix=\$HOME'.
  1247. For better control, use the options below.
  1248. Fine tuning of the installation directories:
  1249. --bindir=DIR user executables [EPREFIX/bin]
  1250. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1251. --libexecdir=DIR program executables [EPREFIX/libexec]
  1252. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1253. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1254. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1255. --libdir=DIR object code libraries [EPREFIX/lib]
  1256. --includedir=DIR C header files [PREFIX/include]
  1257. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1258. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1259. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1260. --infodir=DIR info documentation [DATAROOTDIR/info]
  1261. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1262. --mandir=DIR man documentation [DATAROOTDIR/man]
  1263. --docdir=DIR documentation root [DATAROOTDIR/doc/libnl]
  1264. --htmldir=DIR html documentation [DOCDIR]
  1265. --dvidir=DIR dvi documentation [DOCDIR]
  1266. --pdfdir=DIR pdf documentation [DOCDIR]
  1267. --psdir=DIR ps documentation [DOCDIR]
  1268. _ACEOF
  1269. cat <<\_ACEOF
  1270. Program names:
  1271. --program-prefix=PREFIX prepend PREFIX to installed program names
  1272. --program-suffix=SUFFIX append SUFFIX to installed program names
  1273. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1274. System types:
  1275. --build=BUILD configure for building on BUILD [guessed]
  1276. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1277. _ACEOF
  1278. fi
  1279. if test -n "$ac_init_help"; then
  1280. case $ac_init_help in
  1281. short | recursive ) echo "Configuration of libnl 3.2.25:";;
  1282. esac
  1283. cat <<\_ACEOF
  1284. Optional Features:
  1285. --disable-option-checking ignore unrecognized --enable/--with options
  1286. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1287. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1288. --enable-silent-rules less verbose build output (undo: "make V=1")
  1289. --disable-silent-rules verbose build output (undo: "make V=0")
  1290. --enable-dependency-tracking
  1291. do not reject slow dependency extractors
  1292. --disable-dependency-tracking
  1293. speeds up one-time build
  1294. --enable-shared[=PKGS] build shared libraries [default=yes]
  1295. --enable-static[=PKGS] build static libraries [default=yes]
  1296. --enable-fast-install[=PKGS]
  1297. optimize for fast installation [default=yes]
  1298. --disable-libtool-lock avoid locking (might break parallel builds)
  1299. --disable-cli Do not build command line interface utils
  1300. --disable-pthreads Disable pthreads support
  1301. --disable-debug Do not include debugging statements
  1302. Optional Packages:
  1303. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1304. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1305. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1306. both]
  1307. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1308. --with-sysroot=DIR Search for dependent libraries within DIR
  1309. (or the compiler's sysroot if not specified).
  1310. --with-pkgconfigdir=PATH
  1311. Path to the pkgconfig directory [[LIBDIR/pkgconfig]]
  1312. Some influential environment variables:
  1313. CC C compiler command
  1314. CFLAGS C compiler flags
  1315. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1316. nonstandard directory <lib dir>
  1317. LIBS libraries to pass to the linker, e.g. -l<library>
  1318. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1319. you have headers in a nonstandard directory <include dir>
  1320. CPP C preprocessor
  1321. PKG_CONFIG path to pkg-config utility
  1322. PKG_CONFIG_PATH
  1323. directories to add to pkg-config's search path
  1324. PKG_CONFIG_LIBDIR
  1325. path overriding pkg-config's built-in search path
  1326. CHECK_CFLAGS
  1327. C compiler flags for CHECK, overriding pkg-config
  1328. CHECK_LIBS linker flags for CHECK, overriding pkg-config
  1329. Use these variables to override the choices made by `configure' or to help
  1330. it to find libraries and programs with nonstandard names/locations.
  1331. Report bugs to the package provider.
  1332. libnl home page: <http://www.infradead.org/~tgr/libnl/>.
  1333. _ACEOF
  1334. ac_status=$?
  1335. fi
  1336. if test "$ac_init_help" = "recursive"; then
  1337. # If there are subdirs, report their specific --help.
  1338. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1339. test -d "$ac_dir" ||
  1340. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1341. continue
  1342. ac_builddir=.
  1343. case "$ac_dir" in
  1344. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1345. *)
  1346. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1347. # A ".." for each directory in $ac_dir_suffix.
  1348. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1349. case $ac_top_builddir_sub in
  1350. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1351. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1352. esac ;;
  1353. esac
  1354. ac_abs_top_builddir=$ac_pwd
  1355. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1356. # for backward compatibility:
  1357. ac_top_builddir=$ac_top_build_prefix
  1358. case $srcdir in
  1359. .) # We are building in place.
  1360. ac_srcdir=.
  1361. ac_top_srcdir=$ac_top_builddir_sub
  1362. ac_abs_top_srcdir=$ac_pwd ;;
  1363. [\\/]* | ?:[\\/]* ) # Absolute name.
  1364. ac_srcdir=$srcdir$ac_dir_suffix;
  1365. ac_top_srcdir=$srcdir
  1366. ac_abs_top_srcdir=$srcdir ;;
  1367. *) # Relative name.
  1368. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1369. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1370. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1371. esac
  1372. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1373. cd "$ac_dir" || { ac_status=$?; continue; }
  1374. # Check for guested configure.
  1375. if test -f "$ac_srcdir/configure.gnu"; then
  1376. echo &&
  1377. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1378. elif test -f "$ac_srcdir/configure"; then
  1379. echo &&
  1380. $SHELL "$ac_srcdir/configure" --help=recursive
  1381. else
  1382. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1383. fi || ac_status=$?
  1384. cd "$ac_pwd" || { ac_status=$?; break; }
  1385. done
  1386. fi
  1387. test -n "$ac_init_help" && exit $ac_status
  1388. if $ac_init_version; then
  1389. cat <<\_ACEOF
  1390. libnl configure 3.2.25
  1391. generated by GNU Autoconf 2.69
  1392. Copyright (C) 2012 Free Software Foundation, Inc.
  1393. This configure script is free software; the Free Software Foundation
  1394. gives unlimited permission to copy, distribute and modify it.
  1395. _ACEOF
  1396. exit
  1397. fi
  1398. ## ------------------------ ##
  1399. ## Autoconf initialization. ##
  1400. ## ------------------------ ##
  1401. # ac_fn_c_try_compile LINENO
  1402. # --------------------------
  1403. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1404. ac_fn_c_try_compile ()
  1405. {
  1406. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1407. rm -f conftest.$ac_objext
  1408. if { { ac_try="$ac_compile"
  1409. case "(($ac_try" in
  1410. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1411. *) ac_try_echo=$ac_try;;
  1412. esac
  1413. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1414. $as_echo "$ac_try_echo"; } >&5
  1415. (eval "$ac_compile") 2>conftest.err
  1416. ac_status=$?
  1417. if test -s conftest.err; then
  1418. grep -v '^ *+' conftest.err >conftest.er1
  1419. cat conftest.er1 >&5
  1420. mv -f conftest.er1 conftest.err
  1421. fi
  1422. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1423. test $ac_status = 0; } && {
  1424. test -z "$ac_c_werror_flag" ||
  1425. test ! -s conftest.err
  1426. } && test -s conftest.$ac_objext; then :
  1427. ac_retval=0
  1428. else
  1429. $as_echo "$as_me: failed program was:" >&5
  1430. sed 's/^/| /' conftest.$ac_ext >&5
  1431. ac_retval=1
  1432. fi
  1433. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1434. as_fn_set_status $ac_retval
  1435. } # ac_fn_c_try_compile
  1436. # ac_fn_c_try_link LINENO
  1437. # -----------------------
  1438. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1439. ac_fn_c_try_link ()
  1440. {
  1441. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1442. rm -f conftest.$ac_objext conftest$ac_exeext
  1443. if { { ac_try="$ac_link"
  1444. case "(($ac_try" in
  1445. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1446. *) ac_try_echo=$ac_try;;
  1447. esac
  1448. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1449. $as_echo "$ac_try_echo"; } >&5
  1450. (eval "$ac_link") 2>conftest.err
  1451. ac_status=$?
  1452. if test -s conftest.err; then
  1453. grep -v '^ *+' conftest.err >conftest.er1
  1454. cat conftest.er1 >&5
  1455. mv -f conftest.er1 conftest.err
  1456. fi
  1457. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1458. test $ac_status = 0; } && {
  1459. test -z "$ac_c_werror_flag" ||
  1460. test ! -s conftest.err
  1461. } && test -s conftest$ac_exeext && {
  1462. test "$cross_compiling" = yes ||
  1463. test -x conftest$ac_exeext
  1464. }; then :
  1465. ac_retval=0
  1466. else
  1467. $as_echo "$as_me: failed program was:" >&5
  1468. sed 's/^/| /' conftest.$ac_ext >&5
  1469. ac_retval=1
  1470. fi
  1471. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1472. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1473. # interfere with the next link command; also delete a directory that is
  1474. # left behind by Apple's compiler. We do this before executing the actions.
  1475. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1476. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1477. as_fn_set_status $ac_retval
  1478. } # ac_fn_c_try_link
  1479. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1480. # -------------------------------------------------------
  1481. # Tests whether HEADER exists and can be compiled using the include files in
  1482. # INCLUDES, setting the cache variable VAR accordingly.
  1483. ac_fn_c_check_header_compile ()
  1484. {
  1485. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1487. $as_echo_n "checking for $2... " >&6; }
  1488. if eval \${$3+:} false; then :
  1489. $as_echo_n "(cached) " >&6
  1490. else
  1491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1492. /* end confdefs.h. */
  1493. $4
  1494. #include <$2>
  1495. _ACEOF
  1496. if ac_fn_c_try_compile "$LINENO"; then :
  1497. eval "$3=yes"
  1498. else
  1499. eval "$3=no"
  1500. fi
  1501. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1502. fi
  1503. eval ac_res=\$$3
  1504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1505. $as_echo "$ac_res" >&6; }
  1506. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1507. } # ac_fn_c_check_header_compile
  1508. # ac_fn_c_try_cpp LINENO
  1509. # ----------------------
  1510. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1511. ac_fn_c_try_cpp ()
  1512. {
  1513. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1514. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1515. case "(($ac_try" in
  1516. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1517. *) ac_try_echo=$ac_try;;
  1518. esac
  1519. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1520. $as_echo "$ac_try_echo"; } >&5
  1521. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1522. ac_status=$?
  1523. if test -s conftest.err; then
  1524. grep -v '^ *+' conftest.err >conftest.er1
  1525. cat conftest.er1 >&5
  1526. mv -f conftest.er1 conftest.err
  1527. fi
  1528. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1529. test $ac_status = 0; } > conftest.i && {
  1530. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1531. test ! -s conftest.err
  1532. }; then :
  1533. ac_retval=0
  1534. else
  1535. $as_echo "$as_me: failed program was:" >&5
  1536. sed 's/^/| /' conftest.$ac_ext >&5
  1537. ac_retval=1
  1538. fi
  1539. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1540. as_fn_set_status $ac_retval
  1541. } # ac_fn_c_try_cpp
  1542. # ac_fn_c_try_run LINENO
  1543. # ----------------------
  1544. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1545. # that executables *can* be run.
  1546. ac_fn_c_try_run ()
  1547. {
  1548. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1549. if { { ac_try="$ac_link"
  1550. case "(($ac_try" in
  1551. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1552. *) ac_try_echo=$ac_try;;
  1553. esac
  1554. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1555. $as_echo "$ac_try_echo"; } >&5
  1556. (eval "$ac_link") 2>&5
  1557. ac_status=$?
  1558. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1559. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1560. { { case "(($ac_try" in
  1561. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1562. *) ac_try_echo=$ac_try;;
  1563. esac
  1564. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1565. $as_echo "$ac_try_echo"; } >&5
  1566. (eval "$ac_try") 2>&5
  1567. ac_status=$?
  1568. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1569. test $ac_status = 0; }; }; then :
  1570. ac_retval=0
  1571. else
  1572. $as_echo "$as_me: program exited with status $ac_status" >&5
  1573. $as_echo "$as_me: failed program was:" >&5
  1574. sed 's/^/| /' conftest.$ac_ext >&5
  1575. ac_retval=$ac_status
  1576. fi
  1577. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1578. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1579. as_fn_set_status $ac_retval
  1580. } # ac_fn_c_try_run
  1581. # ac_fn_c_check_func LINENO FUNC VAR
  1582. # ----------------------------------
  1583. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1584. ac_fn_c_check_func ()
  1585. {
  1586. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1588. $as_echo_n "checking for $2... " >&6; }
  1589. if eval \${$3+:} false; then :
  1590. $as_echo_n "(cached) " >&6
  1591. else
  1592. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1593. /* end confdefs.h. */
  1594. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1595. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1596. #define $2 innocuous_$2
  1597. /* System header to define __stub macros and hopefully few prototypes,
  1598. which can conflict with char $2 (); below.
  1599. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1600. <limits.h> exists even on freestanding compilers. */
  1601. #ifdef __STDC__
  1602. # include <limits.h>
  1603. #else
  1604. # include <assert.h>
  1605. #endif
  1606. #undef $2
  1607. /* Override any GCC internal prototype to avoid an error.
  1608. Use char because int might match the return type of a GCC
  1609. builtin and then its argument prototype would still apply. */
  1610. #ifdef __cplusplus
  1611. extern "C"
  1612. #endif
  1613. char $2 ();
  1614. /* The GNU C library defines this for functions which it implements
  1615. to always fail with ENOSYS. Some functions are actually named
  1616. something starting with __ and the normal name is an alias. */
  1617. #if defined __stub_$2 || defined __stub___$2
  1618. choke me
  1619. #endif
  1620. int
  1621. main ()
  1622. {
  1623. return $2 ();
  1624. ;
  1625. return 0;
  1626. }
  1627. _ACEOF
  1628. if ac_fn_c_try_link "$LINENO"; then :
  1629. eval "$3=yes"
  1630. else
  1631. eval "$3=no"
  1632. fi
  1633. rm -f core conftest.err conftest.$ac_objext \
  1634. conftest$ac_exeext conftest.$ac_ext
  1635. fi
  1636. eval ac_res=\$$3
  1637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1638. $as_echo "$ac_res" >&6; }
  1639. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1640. } # ac_fn_c_check_func
  1641. cat >config.log <<_ACEOF
  1642. This file contains any messages produced by compilers while
  1643. running configure, to aid debugging if configure makes a mistake.
  1644. It was created by libnl $as_me 3.2.25, which was
  1645. generated by GNU Autoconf 2.69. Invocation command line was
  1646. $ $0 $@
  1647. _ACEOF
  1648. exec 5>>config.log
  1649. {
  1650. cat <<_ASUNAME
  1651. ## --------- ##
  1652. ## Platform. ##
  1653. ## --------- ##
  1654. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1655. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1656. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1657. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1658. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1659. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1660. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1661. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1662. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1663. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1664. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1665. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1666. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1667. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1668. _ASUNAME
  1669. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1670. for as_dir in $PATH
  1671. do
  1672. IFS=$as_save_IFS
  1673. test -z "$as_dir" && as_dir=.
  1674. $as_echo "PATH: $as_dir"
  1675. done
  1676. IFS=$as_save_IFS
  1677. } >&5
  1678. cat >&5 <<_ACEOF
  1679. ## ----------- ##
  1680. ## Core tests. ##
  1681. ## ----------- ##
  1682. _ACEOF
  1683. # Keep a trace of the command line.
  1684. # Strip out --no-create and --no-recursion so they do not pile up.
  1685. # Strip out --silent because we don't want to record it for future runs.
  1686. # Also quote any args containing shell meta-characters.
  1687. # Make two passes to allow for proper duplicate-argument suppression.
  1688. ac_configure_args=
  1689. ac_configure_args0=
  1690. ac_configure_args1=
  1691. ac_must_keep_next=false
  1692. for ac_pass in 1 2
  1693. do
  1694. for ac_arg
  1695. do
  1696. case $ac_arg in
  1697. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1698. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1699. | -silent | --silent | --silen | --sile | --sil)
  1700. continue ;;
  1701. *\'*)
  1702. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1703. esac
  1704. case $ac_pass in
  1705. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1706. 2)
  1707. as_fn_append ac_configure_args1 " '$ac_arg'"
  1708. if test $ac_must_keep_next = true; then
  1709. ac_must_keep_next=false # Got value, back to normal.
  1710. else
  1711. case $ac_arg in
  1712. *=* | --config-cache | -C | -disable-* | --disable-* \
  1713. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1714. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1715. | -with-* | --with-* | -without-* | --without-* | --x)
  1716. case "$ac_configure_args0 " in
  1717. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1718. esac
  1719. ;;
  1720. -* ) ac_must_keep_next=true ;;
  1721. esac
  1722. fi
  1723. as_fn_append ac_configure_args " '$ac_arg'"
  1724. ;;
  1725. esac
  1726. done
  1727. done
  1728. { ac_configure_args0=; unset ac_configure_args0;}
  1729. { ac_configure_args1=; unset ac_configure_args1;}
  1730. # When interrupted or exit'd, cleanup temporary files, and complete
  1731. # config.log. We remove comments because anyway the quotes in there
  1732. # would cause problems or look ugly.
  1733. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1734. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1735. trap 'exit_status=$?
  1736. # Save into config.log some information that might help in debugging.
  1737. {
  1738. echo
  1739. $as_echo "## ---------------- ##
  1740. ## Cache variables. ##
  1741. ## ---------------- ##"
  1742. echo
  1743. # The following way of writing the cache mishandles newlines in values,
  1744. (
  1745. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1746. eval ac_val=\$$ac_var
  1747. case $ac_val in #(
  1748. *${as_nl}*)
  1749. case $ac_var in #(
  1750. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1751. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1752. esac
  1753. case $ac_var in #(
  1754. _ | IFS | as_nl) ;; #(
  1755. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1756. *) { eval $ac_var=; unset $ac_var;} ;;
  1757. esac ;;
  1758. esac
  1759. done
  1760. (set) 2>&1 |
  1761. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1762. *${as_nl}ac_space=\ *)
  1763. sed -n \
  1764. "s/'\''/'\''\\\\'\'''\''/g;
  1765. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1766. ;; #(
  1767. *)
  1768. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1769. ;;
  1770. esac |
  1771. sort
  1772. )
  1773. echo
  1774. $as_echo "## ----------------- ##
  1775. ## Output variables. ##
  1776. ## ----------------- ##"
  1777. echo
  1778. for ac_var in $ac_subst_vars
  1779. do
  1780. eval ac_val=\$$ac_var
  1781. case $ac_val in
  1782. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1783. esac
  1784. $as_echo "$ac_var='\''$ac_val'\''"
  1785. done | sort
  1786. echo
  1787. if test -n "$ac_subst_files"; then
  1788. $as_echo "## ------------------- ##
  1789. ## File substitutions. ##
  1790. ## ------------------- ##"
  1791. echo
  1792. for ac_var in $ac_subst_files
  1793. do
  1794. eval ac_val=\$$ac_var
  1795. case $ac_val in
  1796. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1797. esac
  1798. $as_echo "$ac_var='\''$ac_val'\''"
  1799. done | sort
  1800. echo
  1801. fi
  1802. if test -s confdefs.h; then
  1803. $as_echo "## ----------- ##
  1804. ## confdefs.h. ##
  1805. ## ----------- ##"
  1806. echo
  1807. cat confdefs.h
  1808. echo
  1809. fi
  1810. test "$ac_signal" != 0 &&
  1811. $as_echo "$as_me: caught signal $ac_signal"
  1812. $as_echo "$as_me: exit $exit_status"
  1813. } >&5
  1814. rm -f core *.core core.conftest.* &&
  1815. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1816. exit $exit_status
  1817. ' 0
  1818. for ac_signal in 1 2 13 15; do
  1819. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1820. done
  1821. ac_signal=0
  1822. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1823. rm -f -r conftest* confdefs.h
  1824. $as_echo "/* confdefs.h */" > confdefs.h
  1825. # Predefined preprocessor variables.
  1826. cat >>confdefs.h <<_ACEOF
  1827. #define PACKAGE_NAME "$PACKAGE_NAME"
  1828. _ACEOF
  1829. cat >>confdefs.h <<_ACEOF
  1830. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1831. _ACEOF
  1832. cat >>confdefs.h <<_ACEOF
  1833. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1834. _ACEOF
  1835. cat >>confdefs.h <<_ACEOF
  1836. #define PACKAGE_STRING "$PACKAGE_STRING"
  1837. _ACEOF
  1838. cat >>confdefs.h <<_ACEOF
  1839. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1840. _ACEOF
  1841. cat >>confdefs.h <<_ACEOF
  1842. #define PACKAGE_URL "$PACKAGE_URL"
  1843. _ACEOF
  1844. # Let the site file select an alternate cache file if it wants to.
  1845. # Prefer an explicitly selected file to automatically selected ones.
  1846. ac_site_file1=NONE
  1847. ac_site_file2=NONE
  1848. if test -n "$CONFIG_SITE"; then
  1849. # We do not want a PATH search for config.site.
  1850. case $CONFIG_SITE in #((
  1851. -*) ac_site_file1=./$CONFIG_SITE;;
  1852. */*) ac_site_file1=$CONFIG_SITE;;
  1853. *) ac_site_file1=./$CONFIG_SITE;;
  1854. esac
  1855. elif test "x$prefix" != xNONE; then
  1856. ac_site_file1=$prefix/share/config.site
  1857. ac_site_file2=$prefix/etc/config.site
  1858. else
  1859. ac_site_file1=$ac_default_prefix/share/config.site
  1860. ac_site_file2=$ac_default_prefix/etc/config.site
  1861. fi
  1862. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1863. do
  1864. test "x$ac_site_file" = xNONE && continue
  1865. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1866. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1867. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1868. sed 's/^/| /' "$ac_site_file" >&5
  1869. . "$ac_site_file" \
  1870. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1871. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1872. as_fn_error $? "failed to load site script $ac_site_file
  1873. See \`config.log' for more details" "$LINENO" 5; }
  1874. fi
  1875. done
  1876. if test -r "$cache_file"; then
  1877. # Some versions of bash will fail to source /dev/null (special files
  1878. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1879. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1880. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1881. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1882. case $cache_file in
  1883. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1884. *) . "./$cache_file";;
  1885. esac
  1886. fi
  1887. else
  1888. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1889. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1890. >$cache_file
  1891. fi
  1892. # Check that the precious variables saved in the cache have kept the same
  1893. # value.
  1894. ac_cache_corrupted=false
  1895. for ac_var in $ac_precious_vars; do
  1896. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1897. eval ac_new_set=\$ac_env_${ac_var}_set
  1898. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1899. eval ac_new_val=\$ac_env_${ac_var}_value
  1900. case $ac_old_set,$ac_new_set in
  1901. set,)
  1902. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1903. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1904. ac_cache_corrupted=: ;;
  1905. ,set)
  1906. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1907. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1908. ac_cache_corrupted=: ;;
  1909. ,);;
  1910. *)
  1911. if test "x$ac_old_val" != "x$ac_new_val"; then
  1912. # differences in whitespace do not lead to failure.
  1913. ac_old_val_w=`echo x $ac_old_val`
  1914. ac_new_val_w=`echo x $ac_new_val`
  1915. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1916. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1917. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1918. ac_cache_corrupted=:
  1919. else
  1920. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1921. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1922. eval $ac_var=\$ac_old_val
  1923. fi
  1924. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1925. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1926. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1927. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1928. fi;;
  1929. esac
  1930. # Pass precious variables to config.status.
  1931. if test "$ac_new_set" = set; then
  1932. case $ac_new_val in
  1933. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1934. *) ac_arg=$ac_var=$ac_new_val ;;
  1935. esac
  1936. case " $ac_configure_args " in
  1937. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1938. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1939. esac
  1940. fi
  1941. done
  1942. if $ac_cache_corrupted; then
  1943. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1944. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1945. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  1946. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1947. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  1948. fi
  1949. ## -------------------- ##
  1950. ## Main body of script. ##
  1951. ## -------------------- ##
  1952. ac_ext=c
  1953. ac_cpp='$CPP $CPPFLAGS'
  1954. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1955. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1956. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1957. ac_config_headers="$ac_config_headers lib/defs.h"
  1958. ac_aux_dir=
  1959. for ac_dir in build-aux "$srcdir"/build-aux; do
  1960. if test -f "$ac_dir/install-sh"; then
  1961. ac_aux_dir=$ac_dir
  1962. ac_install_sh="$ac_aux_dir/install-sh -c"
  1963. break
  1964. elif test -f "$ac_dir/install.sh"; then
  1965. ac_aux_dir=$ac_dir
  1966. ac_install_sh="$ac_aux_dir/install.sh -c"
  1967. break
  1968. elif test -f "$ac_dir/shtool"; then
  1969. ac_aux_dir=$ac_dir
  1970. ac_install_sh="$ac_aux_dir/shtool install -c"
  1971. break
  1972. fi
  1973. done
  1974. if test -z "$ac_aux_dir"; then
  1975. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
  1976. fi
  1977. # These three variables are undocumented and unsupported,
  1978. # and are intended to be withdrawn in a future Autoconf release.
  1979. # They can cause serious problems if a builder's source tree is in a directory
  1980. # whose full name contains unusual characters.
  1981. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1982. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1983. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1984. am__api_version='1.13'
  1985. # Find a good install program. We prefer a C program (faster),
  1986. # so one script is as good as another. But avoid the broken or
  1987. # incompatible versions:
  1988. # SysV /etc/install, /usr/sbin/install
  1989. # SunOS /usr/etc/install
  1990. # IRIX /sbin/install
  1991. # AIX /bin/install
  1992. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1993. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1994. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1995. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1996. # OS/2's system install, which has a completely different semantic
  1997. # ./install, which can be erroneously created by make from ./install.sh.
  1998. # Reject install programs that cannot install multiple files.
  1999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2000. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2001. if test -z "$INSTALL"; then
  2002. if ${ac_cv_path_install+:} false; then :
  2003. $as_echo_n "(cached) " >&6
  2004. else
  2005. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2006. for as_dir in $PATH
  2007. do
  2008. IFS=$as_save_IFS
  2009. test -z "$as_dir" && as_dir=.
  2010. # Account for people who put trailing slashes in PATH elements.
  2011. case $as_dir/ in #((
  2012. ./ | .// | /[cC]/* | \
  2013. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2014. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2015. /usr/ucb/* ) ;;
  2016. *)
  2017. # OSF1 and SCO ODT 3.0 have their own names for install.
  2018. # Don't use installbsd from OSF since it installs stuff as root
  2019. # by default.
  2020. for ac_prog in ginstall scoinst install; do
  2021. for ac_exec_ext in '' $ac_executable_extensions; do
  2022. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2023. if test $ac_prog = install &&
  2024. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2025. # AIX install. It has an incompatible calling convention.
  2026. :
  2027. elif test $ac_prog = install &&
  2028. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2029. # program-specific install script used by HP pwplus--don't use.
  2030. :
  2031. else
  2032. rm -rf conftest.one conftest.two conftest.dir
  2033. echo one > conftest.one
  2034. echo two > conftest.two
  2035. mkdir conftest.dir
  2036. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2037. test -s conftest.one && test -s conftest.two &&
  2038. test -s conftest.dir/conftest.one &&
  2039. test -s conftest.dir/conftest.two
  2040. then
  2041. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2042. break 3
  2043. fi
  2044. fi
  2045. fi
  2046. done
  2047. done
  2048. ;;
  2049. esac
  2050. done
  2051. IFS=$as_save_IFS
  2052. rm -rf conftest.one conftest.two conftest.dir
  2053. fi
  2054. if test "${ac_cv_path_install+set}" = set; then
  2055. INSTALL=$ac_cv_path_install
  2056. else
  2057. # As a last resort, use the slow shell script. Don't cache a
  2058. # value for INSTALL within a source directory, because that will
  2059. # break other packages using the cache if that directory is
  2060. # removed, or if the value is a relative name.
  2061. INSTALL=$ac_install_sh
  2062. fi
  2063. fi
  2064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2065. $as_echo "$INSTALL" >&6; }
  2066. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2067. # It thinks the first close brace ends the variable substitution.
  2068. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2069. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2070. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2072. $as_echo_n "checking whether build environment is sane... " >&6; }
  2073. # Reject unsafe characters in $srcdir or the absolute working directory
  2074. # name. Accept space and tab only in the latter.
  2075. am_lf='
  2076. '
  2077. case `pwd` in
  2078. *[\\\"\#\$\&\'\`$am_lf]*)
  2079. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2080. esac
  2081. case $srcdir in
  2082. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2083. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2084. esac
  2085. # Do 'set' in a subshell so we don't clobber the current shell's
  2086. # arguments. Must try -L first in case configure is actually a
  2087. # symlink; some systems play weird games with the mod time of symlinks
  2088. # (eg FreeBSD returns the mod time of the symlink's containing
  2089. # directory).
  2090. if (
  2091. am_has_slept=no
  2092. for am_try in 1 2; do
  2093. echo "timestamp, slept: $am_has_slept" > conftest.file
  2094. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2095. if test "$*" = "X"; then
  2096. # -L didn't work.
  2097. set X `ls -t "$srcdir/configure" conftest.file`
  2098. fi
  2099. if test "$*" != "X $srcdir/configure conftest.file" \
  2100. && test "$*" != "X conftest.file $srcdir/configure"; then
  2101. # If neither matched, then we have a broken ls. This can happen
  2102. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2103. # broken ls alias from the environment. This has actually
  2104. # happened. Such a system could not be considered "sane".
  2105. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2106. alias in your environment" "$LINENO" 5
  2107. fi
  2108. if test "$2" = conftest.file || test $am_try -eq 2; then
  2109. break
  2110. fi
  2111. # Just in case.
  2112. sleep 1
  2113. am_has_slept=yes
  2114. done
  2115. test "$2" = conftest.file
  2116. )
  2117. then
  2118. # Ok.
  2119. :
  2120. else
  2121. as_fn_error $? "newly created file is older than distributed files!
  2122. Check your system clock" "$LINENO" 5
  2123. fi
  2124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2125. $as_echo "yes" >&6; }
  2126. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2127. # generated files are strictly newer.
  2128. am_sleep_pid=
  2129. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2130. ( sleep 1 ) &
  2131. am_sleep_pid=$!
  2132. fi
  2133. rm -f conftest.file
  2134. test "$program_prefix" != NONE &&
  2135. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2136. # Use a double $ so make ignores it.
  2137. test "$program_suffix" != NONE &&
  2138. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2139. # Double any \ or $.
  2140. # By default was `s,x,x', remove it if useless.
  2141. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2142. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2143. # expand $ac_aux_dir to an absolute path
  2144. am_aux_dir=`cd $ac_aux_dir && pwd`
  2145. if test x"${MISSING+set}" != xset; then
  2146. case $am_aux_dir in
  2147. *\ * | *\ *)
  2148. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2149. *)
  2150. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2151. esac
  2152. fi
  2153. # Use eval to expand $SHELL
  2154. if eval "$MISSING --is-lightweight"; then
  2155. am_missing_run="$MISSING "
  2156. else
  2157. am_missing_run=
  2158. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2159. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2160. fi
  2161. if test x"${install_sh}" != xset; then
  2162. case $am_aux_dir in
  2163. *\ * | *\ *)
  2164. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2165. *)
  2166. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2167. esac
  2168. fi
  2169. # Installed binaries are usually stripped using 'strip' when the user
  2170. # run "make install-strip". However 'strip' might not be the right
  2171. # tool to use in cross-compilation environments, therefore Automake
  2172. # will honor the 'STRIP' environment variable to overrule this program.
  2173. if test "$cross_compiling" != no; then
  2174. if test -n "$ac_tool_prefix"; then
  2175. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2176. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2178. $as_echo_n "checking for $ac_word... " >&6; }
  2179. if ${ac_cv_prog_STRIP+:} false; then :
  2180. $as_echo_n "(cached) " >&6
  2181. else
  2182. if test -n "$STRIP"; then
  2183. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2184. else
  2185. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2186. for as_dir in $PATH
  2187. do
  2188. IFS=$as_save_IFS
  2189. test -z "$as_dir" && as_dir=.
  2190. for ac_exec_ext in '' $ac_executable_extensions; do
  2191. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2192. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2193. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2194. break 2
  2195. fi
  2196. done
  2197. done
  2198. IFS=$as_save_IFS
  2199. fi
  2200. fi
  2201. STRIP=$ac_cv_prog_STRIP
  2202. if test -n "$STRIP"; then
  2203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2204. $as_echo "$STRIP" >&6; }
  2205. else
  2206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2207. $as_echo "no" >&6; }
  2208. fi
  2209. fi
  2210. if test -z "$ac_cv_prog_STRIP"; then
  2211. ac_ct_STRIP=$STRIP
  2212. # Extract the first word of "strip", so it can be a program name with args.
  2213. set dummy strip; ac_word=$2
  2214. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2215. $as_echo_n "checking for $ac_word... " >&6; }
  2216. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2217. $as_echo_n "(cached) " >&6
  2218. else
  2219. if test -n "$ac_ct_STRIP"; then
  2220. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2221. else
  2222. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2223. for as_dir in $PATH
  2224. do
  2225. IFS=$as_save_IFS
  2226. test -z "$as_dir" && as_dir=.
  2227. for ac_exec_ext in '' $ac_executable_extensions; do
  2228. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2229. ac_cv_prog_ac_ct_STRIP="strip"
  2230. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2231. break 2
  2232. fi
  2233. done
  2234. done
  2235. IFS=$as_save_IFS
  2236. fi
  2237. fi
  2238. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2239. if test -n "$ac_ct_STRIP"; then
  2240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2241. $as_echo "$ac_ct_STRIP" >&6; }
  2242. else
  2243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2244. $as_echo "no" >&6; }
  2245. fi
  2246. if test "x$ac_ct_STRIP" = x; then
  2247. STRIP=":"
  2248. else
  2249. case $cross_compiling:$ac_tool_warned in
  2250. yes:)
  2251. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2252. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2253. ac_tool_warned=yes ;;
  2254. esac
  2255. STRIP=$ac_ct_STRIP
  2256. fi
  2257. else
  2258. STRIP="$ac_cv_prog_STRIP"
  2259. fi
  2260. fi
  2261. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2263. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2264. if test -z "$MKDIR_P"; then
  2265. if ${ac_cv_path_mkdir+:} false; then :
  2266. $as_echo_n "(cached) " >&6
  2267. else
  2268. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2269. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2270. do
  2271. IFS=$as_save_IFS
  2272. test -z "$as_dir" && as_dir=.
  2273. for ac_prog in mkdir gmkdir; do
  2274. for ac_exec_ext in '' $ac_executable_extensions; do
  2275. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2276. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2277. 'mkdir (GNU coreutils) '* | \
  2278. 'mkdir (coreutils) '* | \
  2279. 'mkdir (fileutils) '4.1*)
  2280. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2281. break 3;;
  2282. esac
  2283. done
  2284. done
  2285. done
  2286. IFS=$as_save_IFS
  2287. fi
  2288. test -d ./--version && rmdir ./--version
  2289. if test "${ac_cv_path_mkdir+set}" = set; then
  2290. MKDIR_P="$ac_cv_path_mkdir -p"
  2291. else
  2292. # As a last resort, use the slow shell script. Don't cache a
  2293. # value for MKDIR_P within a source directory, because that will
  2294. # break other packages using the cache if that directory is
  2295. # removed, or if the value is a relative name.
  2296. MKDIR_P="$ac_install_sh -d"
  2297. fi
  2298. fi
  2299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2300. $as_echo "$MKDIR_P" >&6; }
  2301. for ac_prog in gawk mawk nawk awk
  2302. do
  2303. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2304. set dummy $ac_prog; ac_word=$2
  2305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2306. $as_echo_n "checking for $ac_word... " >&6; }
  2307. if ${ac_cv_prog_AWK+:} false; then :
  2308. $as_echo_n "(cached) " >&6
  2309. else
  2310. if test -n "$AWK"; then
  2311. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2312. else
  2313. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2314. for as_dir in $PATH
  2315. do
  2316. IFS=$as_save_IFS
  2317. test -z "$as_dir" && as_dir=.
  2318. for ac_exec_ext in '' $ac_executable_extensions; do
  2319. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2320. ac_cv_prog_AWK="$ac_prog"
  2321. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2322. break 2
  2323. fi
  2324. done
  2325. done
  2326. IFS=$as_save_IFS
  2327. fi
  2328. fi
  2329. AWK=$ac_cv_prog_AWK
  2330. if test -n "$AWK"; then
  2331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2332. $as_echo "$AWK" >&6; }
  2333. else
  2334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2335. $as_echo "no" >&6; }
  2336. fi
  2337. test -n "$AWK" && break
  2338. done
  2339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2340. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2341. set x ${MAKE-make}
  2342. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2343. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2344. $as_echo_n "(cached) " >&6
  2345. else
  2346. cat >conftest.make <<\_ACEOF
  2347. SHELL = /bin/sh
  2348. all:
  2349. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2350. _ACEOF
  2351. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2352. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2353. *@@@%%%=?*=@@@%%%*)
  2354. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2355. *)
  2356. eval ac_cv_prog_make_${ac_make}_set=no;;
  2357. esac
  2358. rm -f conftest.make
  2359. fi
  2360. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2362. $as_echo "yes" >&6; }
  2363. SET_MAKE=
  2364. else
  2365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2366. $as_echo "no" >&6; }
  2367. SET_MAKE="MAKE=${MAKE-make}"
  2368. fi
  2369. rm -rf .tst 2>/dev/null
  2370. mkdir .tst 2>/dev/null
  2371. if test -d .tst; then
  2372. am__leading_dot=.
  2373. else
  2374. am__leading_dot=_
  2375. fi
  2376. rmdir .tst 2>/dev/null
  2377. # Check whether --enable-silent-rules was given.
  2378. if test "${enable_silent_rules+set}" = set; then :
  2379. enableval=$enable_silent_rules;
  2380. fi
  2381. case $enable_silent_rules in # (((
  2382. yes) AM_DEFAULT_VERBOSITY=0;;
  2383. no) AM_DEFAULT_VERBOSITY=1;;
  2384. *) AM_DEFAULT_VERBOSITY=1;;
  2385. esac
  2386. am_make=${MAKE-make}
  2387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2388. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2389. if ${am_cv_make_support_nested_variables+:} false; then :
  2390. $as_echo_n "(cached) " >&6
  2391. else
  2392. if $as_echo 'TRUE=$(BAR$(V))
  2393. BAR0=false
  2394. BAR1=true
  2395. V=1
  2396. am__doit:
  2397. @$(TRUE)
  2398. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2399. am_cv_make_support_nested_variables=yes
  2400. else
  2401. am_cv_make_support_nested_variables=no
  2402. fi
  2403. fi
  2404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2405. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2406. if test $am_cv_make_support_nested_variables = yes; then
  2407. AM_V='$(V)'
  2408. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2409. else
  2410. AM_V=$AM_DEFAULT_VERBOSITY
  2411. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2412. fi
  2413. AM_BACKSLASH='\'
  2414. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2415. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2416. # is not polluted with repeated "-I."
  2417. am__isrc=' -I$(srcdir)'
  2418. # test to see if srcdir already configured
  2419. if test -f $srcdir/config.status; then
  2420. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2421. fi
  2422. fi
  2423. # test whether we have cygpath
  2424. if test -z "$CYGPATH_W"; then
  2425. if (cygpath --version) >/dev/null 2>/dev/null; then
  2426. CYGPATH_W='cygpath -w'
  2427. else
  2428. CYGPATH_W=echo
  2429. fi
  2430. fi
  2431. # Define the identity of the package.
  2432. PACKAGE='libnl'
  2433. VERSION='3.2.25'
  2434. cat >>confdefs.h <<_ACEOF
  2435. #define PACKAGE "$PACKAGE"
  2436. _ACEOF
  2437. cat >>confdefs.h <<_ACEOF
  2438. #define VERSION "$VERSION"
  2439. _ACEOF
  2440. # Some tools Automake needs.
  2441. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2442. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2443. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2444. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2445. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2446. # For better backward compatibility. To be removed once Automake 1.9.x
  2447. # dies out for good. For more background, see:
  2448. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2449. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2450. mkdir_p='$(MKDIR_P)'
  2451. # We need awk for the "check" target. The system "awk" is bad on
  2452. # some platforms.
  2453. # Always define AMTAR for backward compatibility. Yes, it's still used
  2454. # in the wild :-( We should find a proper way to deprecate it ...
  2455. AMTAR='$${TAR-tar}'
  2456. # We'll loop over all known methods to create a tar archive until one works.
  2457. _am_tools='gnutar pax cpio none'
  2458. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2459. # Check whether --enable-silent-rules was given.
  2460. if test "${enable_silent_rules+set}" = set; then :
  2461. enableval=$enable_silent_rules;
  2462. fi
  2463. case $enable_silent_rules in # (((
  2464. yes) AM_DEFAULT_VERBOSITY=0;;
  2465. no) AM_DEFAULT_VERBOSITY=1;;
  2466. *) AM_DEFAULT_VERBOSITY=0;;
  2467. esac
  2468. am_make=${MAKE-make}
  2469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2470. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2471. if ${am_cv_make_support_nested_variables+:} false; then :
  2472. $as_echo_n "(cached) " >&6
  2473. else
  2474. if $as_echo 'TRUE=$(BAR$(V))
  2475. BAR0=false
  2476. BAR1=true
  2477. V=1
  2478. am__doit:
  2479. @$(TRUE)
  2480. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2481. am_cv_make_support_nested_variables=yes
  2482. else
  2483. am_cv_make_support_nested_variables=no
  2484. fi
  2485. fi
  2486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2487. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2488. if test $am_cv_make_support_nested_variables = yes; then
  2489. AM_V='$(V)'
  2490. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2491. else
  2492. AM_V=$AM_DEFAULT_VERBOSITY
  2493. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2494. fi
  2495. AM_BACKSLASH='\'
  2496. DEPDIR="${am__leading_dot}deps"
  2497. ac_config_commands="$ac_config_commands depfiles"
  2498. am_make=${MAKE-make}
  2499. cat > confinc << 'END'
  2500. am__doit:
  2501. @echo this is the am__doit target
  2502. .PHONY: am__doit
  2503. END
  2504. # If we don't find an include directive, just comment out the code.
  2505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  2506. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2507. am__include="#"
  2508. am__quote=
  2509. _am_result=none
  2510. # First try GNU make style include.
  2511. echo "include confinc" > confmf
  2512. # Ignore all kinds of additional output from 'make'.
  2513. case `$am_make -s -f confmf 2> /dev/null` in #(
  2514. *the\ am__doit\ target*)
  2515. am__include=include
  2516. am__quote=
  2517. _am_result=GNU
  2518. ;;
  2519. esac
  2520. # Now try BSD make style include.
  2521. if test "$am__include" = "#"; then
  2522. echo '.include "confinc"' > confmf
  2523. case `$am_make -s -f confmf 2> /dev/null` in #(
  2524. *the\ am__doit\ target*)
  2525. am__include=.include
  2526. am__quote="\""
  2527. _am_result=BSD
  2528. ;;
  2529. esac
  2530. fi
  2531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  2532. $as_echo "$_am_result" >&6; }
  2533. rm -f confinc confmf
  2534. # Check whether --enable-dependency-tracking was given.
  2535. if test "${enable_dependency_tracking+set}" = set; then :
  2536. enableval=$enable_dependency_tracking;
  2537. fi
  2538. if test "x$enable_dependency_tracking" != xno; then
  2539. am_depcomp="$ac_aux_dir/depcomp"
  2540. AMDEPBACKSLASH='\'
  2541. am__nodep='_no'
  2542. fi
  2543. if test "x$enable_dependency_tracking" != xno; then
  2544. AMDEP_TRUE=
  2545. AMDEP_FALSE='#'
  2546. else
  2547. AMDEP_TRUE='#'
  2548. AMDEP_FALSE=
  2549. fi
  2550. ac_ext=c
  2551. ac_cpp='$CPP $CPPFLAGS'
  2552. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2553. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2554. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2555. if test -n "$ac_tool_prefix"; then
  2556. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2557. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2559. $as_echo_n "checking for $ac_word... " >&6; }
  2560. if ${ac_cv_prog_CC+:} false; then :
  2561. $as_echo_n "(cached) " >&6
  2562. else
  2563. if test -n "$CC"; then
  2564. ac_cv_prog_CC="$CC" # Let the user override the test.
  2565. else
  2566. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2567. for as_dir in $PATH
  2568. do
  2569. IFS=$as_save_IFS
  2570. test -z "$as_dir" && as_dir=.
  2571. for ac_exec_ext in '' $ac_executable_extensions; do
  2572. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2573. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2574. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2575. break 2
  2576. fi
  2577. done
  2578. done
  2579. IFS=$as_save_IFS
  2580. fi
  2581. fi
  2582. CC=$ac_cv_prog_CC
  2583. if test -n "$CC"; then
  2584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2585. $as_echo "$CC" >&6; }
  2586. else
  2587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2588. $as_echo "no" >&6; }
  2589. fi
  2590. fi
  2591. if test -z "$ac_cv_prog_CC"; then
  2592. ac_ct_CC=$CC
  2593. # Extract the first word of "gcc", so it can be a program name with args.
  2594. set dummy gcc; ac_word=$2
  2595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2596. $as_echo_n "checking for $ac_word... " >&6; }
  2597. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2598. $as_echo_n "(cached) " >&6
  2599. else
  2600. if test -n "$ac_ct_CC"; then
  2601. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2602. else
  2603. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2604. for as_dir in $PATH
  2605. do
  2606. IFS=$as_save_IFS
  2607. test -z "$as_dir" && as_dir=.
  2608. for ac_exec_ext in '' $ac_executable_extensions; do
  2609. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2610. ac_cv_prog_ac_ct_CC="gcc"
  2611. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2612. break 2
  2613. fi
  2614. done
  2615. done
  2616. IFS=$as_save_IFS
  2617. fi
  2618. fi
  2619. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2620. if test -n "$ac_ct_CC"; then
  2621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2622. $as_echo "$ac_ct_CC" >&6; }
  2623. else
  2624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2625. $as_echo "no" >&6; }
  2626. fi
  2627. if test "x$ac_ct_CC" = x; then
  2628. CC=""
  2629. else
  2630. case $cross_compiling:$ac_tool_warned in
  2631. yes:)
  2632. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2633. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2634. ac_tool_warned=yes ;;
  2635. esac
  2636. CC=$ac_ct_CC
  2637. fi
  2638. else
  2639. CC="$ac_cv_prog_CC"
  2640. fi
  2641. if test -z "$CC"; then
  2642. if test -n "$ac_tool_prefix"; then
  2643. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2644. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2646. $as_echo_n "checking for $ac_word... " >&6; }
  2647. if ${ac_cv_prog_CC+:} false; then :
  2648. $as_echo_n "(cached) " >&6
  2649. else
  2650. if test -n "$CC"; then
  2651. ac_cv_prog_CC="$CC" # Let the user override the test.
  2652. else
  2653. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2654. for as_dir in $PATH
  2655. do
  2656. IFS=$as_save_IFS
  2657. test -z "$as_dir" && as_dir=.
  2658. for ac_exec_ext in '' $ac_executable_extensions; do
  2659. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2660. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2661. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2662. break 2
  2663. fi
  2664. done
  2665. done
  2666. IFS=$as_save_IFS
  2667. fi
  2668. fi
  2669. CC=$ac_cv_prog_CC
  2670. if test -n "$CC"; then
  2671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2672. $as_echo "$CC" >&6; }
  2673. else
  2674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2675. $as_echo "no" >&6; }
  2676. fi
  2677. fi
  2678. fi
  2679. if test -z "$CC"; then
  2680. # Extract the first word of "cc", so it can be a program name with args.
  2681. set dummy cc; ac_word=$2
  2682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2683. $as_echo_n "checking for $ac_word... " >&6; }
  2684. if ${ac_cv_prog_CC+:} false; then :
  2685. $as_echo_n "(cached) " >&6
  2686. else
  2687. if test -n "$CC"; then
  2688. ac_cv_prog_CC="$CC" # Let the user override the test.
  2689. else
  2690. ac_prog_rejected=no
  2691. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2692. for as_dir in $PATH
  2693. do
  2694. IFS=$as_save_IFS
  2695. test -z "$as_dir" && as_dir=.
  2696. for ac_exec_ext in '' $ac_executable_extensions; do
  2697. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2698. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2699. ac_prog_rejected=yes
  2700. continue
  2701. fi
  2702. ac_cv_prog_CC="cc"
  2703. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2704. break 2
  2705. fi
  2706. done
  2707. done
  2708. IFS=$as_save_IFS
  2709. if test $ac_prog_rejected = yes; then
  2710. # We found a bogon in the path, so make sure we never use it.
  2711. set dummy $ac_cv_prog_CC
  2712. shift
  2713. if test $# != 0; then
  2714. # We chose a different compiler from the bogus one.
  2715. # However, it has the same basename, so the bogon will be chosen
  2716. # first if we set CC to just the basename; use the full file name.
  2717. shift
  2718. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2719. fi
  2720. fi
  2721. fi
  2722. fi
  2723. CC=$ac_cv_prog_CC
  2724. if test -n "$CC"; then
  2725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2726. $as_echo "$CC" >&6; }
  2727. else
  2728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2729. $as_echo "no" >&6; }
  2730. fi
  2731. fi
  2732. if test -z "$CC"; then
  2733. if test -n "$ac_tool_prefix"; then
  2734. for ac_prog in cl.exe
  2735. do
  2736. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2737. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2739. $as_echo_n "checking for $ac_word... " >&6; }
  2740. if ${ac_cv_prog_CC+:} false; then :
  2741. $as_echo_n "(cached) " >&6
  2742. else
  2743. if test -n "$CC"; then
  2744. ac_cv_prog_CC="$CC" # Let the user override the test.
  2745. else
  2746. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2747. for as_dir in $PATH
  2748. do
  2749. IFS=$as_save_IFS
  2750. test -z "$as_dir" && as_dir=.
  2751. for ac_exec_ext in '' $ac_executable_extensions; do
  2752. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2753. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2754. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2755. break 2
  2756. fi
  2757. done
  2758. done
  2759. IFS=$as_save_IFS
  2760. fi
  2761. fi
  2762. CC=$ac_cv_prog_CC
  2763. if test -n "$CC"; then
  2764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2765. $as_echo "$CC" >&6; }
  2766. else
  2767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2768. $as_echo "no" >&6; }
  2769. fi
  2770. test -n "$CC" && break
  2771. done
  2772. fi
  2773. if test -z "$CC"; then
  2774. ac_ct_CC=$CC
  2775. for ac_prog in cl.exe
  2776. do
  2777. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2778. set dummy $ac_prog; ac_word=$2
  2779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2780. $as_echo_n "checking for $ac_word... " >&6; }
  2781. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2782. $as_echo_n "(cached) " >&6
  2783. else
  2784. if test -n "$ac_ct_CC"; then
  2785. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2786. else
  2787. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2788. for as_dir in $PATH
  2789. do
  2790. IFS=$as_save_IFS
  2791. test -z "$as_dir" && as_dir=.
  2792. for ac_exec_ext in '' $ac_executable_extensions; do
  2793. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2794. ac_cv_prog_ac_ct_CC="$ac_prog"
  2795. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2796. break 2
  2797. fi
  2798. done
  2799. done
  2800. IFS=$as_save_IFS
  2801. fi
  2802. fi
  2803. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2804. if test -n "$ac_ct_CC"; then
  2805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2806. $as_echo "$ac_ct_CC" >&6; }
  2807. else
  2808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2809. $as_echo "no" >&6; }
  2810. fi
  2811. test -n "$ac_ct_CC" && break
  2812. done
  2813. if test "x$ac_ct_CC" = x; then
  2814. CC=""
  2815. else
  2816. case $cross_compiling:$ac_tool_warned in
  2817. yes:)
  2818. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2819. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2820. ac_tool_warned=yes ;;
  2821. esac
  2822. CC=$ac_ct_CC
  2823. fi
  2824. fi
  2825. fi
  2826. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2827. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2828. as_fn_error $? "no acceptable C compiler found in \$PATH
  2829. See \`config.log' for more details" "$LINENO" 5; }
  2830. # Provide some information about the compiler.
  2831. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2832. set X $ac_compile
  2833. ac_compiler=$2
  2834. for ac_option in --version -v -V -qversion; do
  2835. { { ac_try="$ac_compiler $ac_option >&5"
  2836. case "(($ac_try" in
  2837. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2838. *) ac_try_echo=$ac_try;;
  2839. esac
  2840. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2841. $as_echo "$ac_try_echo"; } >&5
  2842. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2843. ac_status=$?
  2844. if test -s conftest.err; then
  2845. sed '10a\
  2846. ... rest of stderr output deleted ...
  2847. 10q' conftest.err >conftest.er1
  2848. cat conftest.er1 >&5
  2849. fi
  2850. rm -f conftest.er1 conftest.err
  2851. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2852. test $ac_status = 0; }
  2853. done
  2854. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2855. /* end confdefs.h. */
  2856. int
  2857. main ()
  2858. {
  2859. ;
  2860. return 0;
  2861. }
  2862. _ACEOF
  2863. ac_clean_files_save=$ac_clean_files
  2864. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2865. # Try to create an executable without -o first, disregard a.out.
  2866. # It will help us diagnose broken compilers, and finding out an intuition
  2867. # of exeext.
  2868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2869. $as_echo_n "checking whether the C compiler works... " >&6; }
  2870. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2871. # The possible output files:
  2872. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2873. ac_rmfiles=
  2874. for ac_file in $ac_files
  2875. do
  2876. case $ac_file in
  2877. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2878. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2879. esac
  2880. done
  2881. rm -f $ac_rmfiles
  2882. if { { ac_try="$ac_link_default"
  2883. case "(($ac_try" in
  2884. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2885. *) ac_try_echo=$ac_try;;
  2886. esac
  2887. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2888. $as_echo "$ac_try_echo"; } >&5
  2889. (eval "$ac_link_default") 2>&5
  2890. ac_status=$?
  2891. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2892. test $ac_status = 0; }; then :
  2893. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2894. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2895. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2896. # so that the user can short-circuit this test for compilers unknown to
  2897. # Autoconf.
  2898. for ac_file in $ac_files ''
  2899. do
  2900. test -f "$ac_file" || continue
  2901. case $ac_file in
  2902. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2903. ;;
  2904. [ab].out )
  2905. # We found the default executable, but exeext='' is most
  2906. # certainly right.
  2907. break;;
  2908. *.* )
  2909. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2910. then :; else
  2911. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2912. fi
  2913. # We set ac_cv_exeext here because the later test for it is not
  2914. # safe: cross compilers may not add the suffix if given an `-o'
  2915. # argument, so we may need to know it at that point already.
  2916. # Even if this section looks crufty: it has the advantage of
  2917. # actually working.
  2918. break;;
  2919. * )
  2920. break;;
  2921. esac
  2922. done
  2923. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2924. else
  2925. ac_file=''
  2926. fi
  2927. if test -z "$ac_file"; then :
  2928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2929. $as_echo "no" >&6; }
  2930. $as_echo "$as_me: failed program was:" >&5
  2931. sed 's/^/| /' conftest.$ac_ext >&5
  2932. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2933. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2934. as_fn_error 77 "C compiler cannot create executables
  2935. See \`config.log' for more details" "$LINENO" 5; }
  2936. else
  2937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2938. $as_echo "yes" >&6; }
  2939. fi
  2940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2941. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2943. $as_echo "$ac_file" >&6; }
  2944. ac_exeext=$ac_cv_exeext
  2945. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2946. ac_clean_files=$ac_clean_files_save
  2947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2948. $as_echo_n "checking for suffix of executables... " >&6; }
  2949. if { { ac_try="$ac_link"
  2950. case "(($ac_try" in
  2951. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2952. *) ac_try_echo=$ac_try;;
  2953. esac
  2954. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2955. $as_echo "$ac_try_echo"; } >&5
  2956. (eval "$ac_link") 2>&5
  2957. ac_status=$?
  2958. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2959. test $ac_status = 0; }; then :
  2960. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2961. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2962. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2963. # `rm'.
  2964. for ac_file in conftest.exe conftest conftest.*; do
  2965. test -f "$ac_file" || continue
  2966. case $ac_file in
  2967. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2968. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2969. break;;
  2970. * ) break;;
  2971. esac
  2972. done
  2973. else
  2974. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2975. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2976. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2977. See \`config.log' for more details" "$LINENO" 5; }
  2978. fi
  2979. rm -f conftest conftest$ac_cv_exeext
  2980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2981. $as_echo "$ac_cv_exeext" >&6; }
  2982. rm -f conftest.$ac_ext
  2983. EXEEXT=$ac_cv_exeext
  2984. ac_exeext=$EXEEXT
  2985. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2986. /* end confdefs.h. */
  2987. #include <stdio.h>
  2988. int
  2989. main ()
  2990. {
  2991. FILE *f = fopen ("conftest.out", "w");
  2992. return ferror (f) || fclose (f) != 0;
  2993. ;
  2994. return 0;
  2995. }
  2996. _ACEOF
  2997. ac_clean_files="$ac_clean_files conftest.out"
  2998. # Check that the compiler produces executables we can run. If not, either
  2999. # the compiler is broken, or we cross compile.
  3000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3001. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3002. if test "$cross_compiling" != yes; then
  3003. { { ac_try="$ac_link"
  3004. case "(($ac_try" in
  3005. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3006. *) ac_try_echo=$ac_try;;
  3007. esac
  3008. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3009. $as_echo "$ac_try_echo"; } >&5
  3010. (eval "$ac_link") 2>&5
  3011. ac_status=$?
  3012. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3013. test $ac_status = 0; }
  3014. if { ac_try='./conftest$ac_cv_exeext'
  3015. { { case "(($ac_try" in
  3016. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3017. *) ac_try_echo=$ac_try;;
  3018. esac
  3019. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3020. $as_echo "$ac_try_echo"; } >&5
  3021. (eval "$ac_try") 2>&5
  3022. ac_status=$?
  3023. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3024. test $ac_status = 0; }; }; then
  3025. cross_compiling=no
  3026. else
  3027. if test "$cross_compiling" = maybe; then
  3028. cross_compiling=yes
  3029. else
  3030. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3031. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3032. as_fn_error $? "cannot run C compiled programs.
  3033. If you meant to cross compile, use \`--host'.
  3034. See \`config.log' for more details" "$LINENO" 5; }
  3035. fi
  3036. fi
  3037. fi
  3038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3039. $as_echo "$cross_compiling" >&6; }
  3040. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3041. ac_clean_files=$ac_clean_files_save
  3042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3043. $as_echo_n "checking for suffix of object files... " >&6; }
  3044. if ${ac_cv_objext+:} false; then :
  3045. $as_echo_n "(cached) " >&6
  3046. else
  3047. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3048. /* end confdefs.h. */
  3049. int
  3050. main ()
  3051. {
  3052. ;
  3053. return 0;
  3054. }
  3055. _ACEOF
  3056. rm -f conftest.o conftest.obj
  3057. if { { ac_try="$ac_compile"
  3058. case "(($ac_try" in
  3059. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3060. *) ac_try_echo=$ac_try;;
  3061. esac
  3062. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3063. $as_echo "$ac_try_echo"; } >&5
  3064. (eval "$ac_compile") 2>&5
  3065. ac_status=$?
  3066. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3067. test $ac_status = 0; }; then :
  3068. for ac_file in conftest.o conftest.obj conftest.*; do
  3069. test -f "$ac_file" || continue;
  3070. case $ac_file in
  3071. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3072. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3073. break;;
  3074. esac
  3075. done
  3076. else
  3077. $as_echo "$as_me: failed program was:" >&5
  3078. sed 's/^/| /' conftest.$ac_ext >&5
  3079. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3080. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3081. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3082. See \`config.log' for more details" "$LINENO" 5; }
  3083. fi
  3084. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3085. fi
  3086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3087. $as_echo "$ac_cv_objext" >&6; }
  3088. OBJEXT=$ac_cv_objext
  3089. ac_objext=$OBJEXT
  3090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3091. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3092. if ${ac_cv_c_compiler_gnu+:} false; then :
  3093. $as_echo_n "(cached) " >&6
  3094. else
  3095. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3096. /* end confdefs.h. */
  3097. int
  3098. main ()
  3099. {
  3100. #ifndef __GNUC__
  3101. choke me
  3102. #endif
  3103. ;
  3104. return 0;
  3105. }
  3106. _ACEOF
  3107. if ac_fn_c_try_compile "$LINENO"; then :
  3108. ac_compiler_gnu=yes
  3109. else
  3110. ac_compiler_gnu=no
  3111. fi
  3112. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3113. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3114. fi
  3115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3116. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3117. if test $ac_compiler_gnu = yes; then
  3118. GCC=yes
  3119. else
  3120. GCC=
  3121. fi
  3122. ac_test_CFLAGS=${CFLAGS+set}
  3123. ac_save_CFLAGS=$CFLAGS
  3124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3125. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3126. if ${ac_cv_prog_cc_g+:} false; then :
  3127. $as_echo_n "(cached) " >&6
  3128. else
  3129. ac_save_c_werror_flag=$ac_c_werror_flag
  3130. ac_c_werror_flag=yes
  3131. ac_cv_prog_cc_g=no
  3132. CFLAGS="-g"
  3133. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3134. /* end confdefs.h. */
  3135. int
  3136. main ()
  3137. {
  3138. ;
  3139. return 0;
  3140. }
  3141. _ACEOF
  3142. if ac_fn_c_try_compile "$LINENO"; then :
  3143. ac_cv_prog_cc_g=yes
  3144. else
  3145. CFLAGS=""
  3146. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3147. /* end confdefs.h. */
  3148. int
  3149. main ()
  3150. {
  3151. ;
  3152. return 0;
  3153. }
  3154. _ACEOF
  3155. if ac_fn_c_try_compile "$LINENO"; then :
  3156. else
  3157. ac_c_werror_flag=$ac_save_c_werror_flag
  3158. CFLAGS="-g"
  3159. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3160. /* end confdefs.h. */
  3161. int
  3162. main ()
  3163. {
  3164. ;
  3165. return 0;
  3166. }
  3167. _ACEOF
  3168. if ac_fn_c_try_compile "$LINENO"; then :
  3169. ac_cv_prog_cc_g=yes
  3170. fi
  3171. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3172. fi
  3173. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3174. fi
  3175. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3176. ac_c_werror_flag=$ac_save_c_werror_flag
  3177. fi
  3178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3179. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3180. if test "$ac_test_CFLAGS" = set; then
  3181. CFLAGS=$ac_save_CFLAGS
  3182. elif test $ac_cv_prog_cc_g = yes; then
  3183. if test "$GCC" = yes; then
  3184. CFLAGS="-g -O2"
  3185. else
  3186. CFLAGS="-g"
  3187. fi
  3188. else
  3189. if test "$GCC" = yes; then
  3190. CFLAGS="-O2"
  3191. else
  3192. CFLAGS=
  3193. fi
  3194. fi
  3195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3196. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3197. if ${ac_cv_prog_cc_c89+:} false; then :
  3198. $as_echo_n "(cached) " >&6
  3199. else
  3200. ac_cv_prog_cc_c89=no
  3201. ac_save_CC=$CC
  3202. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3203. /* end confdefs.h. */
  3204. #include <stdarg.h>
  3205. #include <stdio.h>
  3206. struct stat;
  3207. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3208. struct buf { int x; };
  3209. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3210. static char *e (p, i)
  3211. char **p;
  3212. int i;
  3213. {
  3214. return p[i];
  3215. }
  3216. static char *f (char * (*g) (char **, int), char **p, ...)
  3217. {
  3218. char *s;
  3219. va_list v;
  3220. va_start (v,p);
  3221. s = g (p, va_arg (v,int));
  3222. va_end (v);
  3223. return s;
  3224. }
  3225. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3226. function prototypes and stuff, but not '\xHH' hex character constants.
  3227. These don't provoke an error unfortunately, instead are silently treated
  3228. as 'x'. The following induces an error, until -std is added to get
  3229. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3230. array size at least. It's necessary to write '\x00'==0 to get something
  3231. that's true only with -std. */
  3232. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3233. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3234. inside strings and character constants. */
  3235. #define FOO(x) 'x'
  3236. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3237. int test (int i, double x);
  3238. struct s1 {int (*f) (int a);};
  3239. struct s2 {int (*f) (double a);};
  3240. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3241. int argc;
  3242. char **argv;
  3243. int
  3244. main ()
  3245. {
  3246. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3247. ;
  3248. return 0;
  3249. }
  3250. _ACEOF
  3251. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3252. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3253. do
  3254. CC="$ac_save_CC $ac_arg"
  3255. if ac_fn_c_try_compile "$LINENO"; then :
  3256. ac_cv_prog_cc_c89=$ac_arg
  3257. fi
  3258. rm -f core conftest.err conftest.$ac_objext
  3259. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3260. done
  3261. rm -f conftest.$ac_ext
  3262. CC=$ac_save_CC
  3263. fi
  3264. # AC_CACHE_VAL
  3265. case "x$ac_cv_prog_cc_c89" in
  3266. x)
  3267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3268. $as_echo "none needed" >&6; } ;;
  3269. xno)
  3270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3271. $as_echo "unsupported" >&6; } ;;
  3272. *)
  3273. CC="$CC $ac_cv_prog_cc_c89"
  3274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3275. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3276. esac
  3277. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3278. fi
  3279. ac_ext=c
  3280. ac_cpp='$CPP $CPPFLAGS'
  3281. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3282. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3283. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3284. depcc="$CC" am_compiler_list=
  3285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3286. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3287. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3288. $as_echo_n "(cached) " >&6
  3289. else
  3290. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3291. # We make a subdir and do the tests there. Otherwise we can end up
  3292. # making bogus files that we don't know about and never remove. For
  3293. # instance it was reported that on HP-UX the gcc test will end up
  3294. # making a dummy file named 'D' -- because '-MD' means "put the output
  3295. # in D".
  3296. rm -rf conftest.dir
  3297. mkdir conftest.dir
  3298. # Copy depcomp to subdir because otherwise we won't find it if we're
  3299. # using a relative directory.
  3300. cp "$am_depcomp" conftest.dir
  3301. cd conftest.dir
  3302. # We will build objects and dependencies in a subdirectory because
  3303. # it helps to detect inapplicable dependency modes. For instance
  3304. # both Tru64's cc and ICC support -MD to output dependencies as a
  3305. # side effect of compilation, but ICC will put the dependencies in
  3306. # the current directory while Tru64 will put them in the object
  3307. # directory.
  3308. mkdir sub
  3309. am_cv_CC_dependencies_compiler_type=none
  3310. if test "$am_compiler_list" = ""; then
  3311. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3312. fi
  3313. am__universal=false
  3314. case " $depcc " in #(
  3315. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3316. esac
  3317. for depmode in $am_compiler_list; do
  3318. # Setup a source with many dependencies, because some compilers
  3319. # like to wrap large dependency lists on column 80 (with \), and
  3320. # we should not choose a depcomp mode which is confused by this.
  3321. #
  3322. # We need to recreate these files for each test, as the compiler may
  3323. # overwrite some of them when testing with obscure command lines.
  3324. # This happens at least with the AIX C compiler.
  3325. : > sub/conftest.c
  3326. for i in 1 2 3 4 5 6; do
  3327. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3328. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3329. # Solaris 10 /bin/sh.
  3330. echo '/* dummy */' > sub/conftst$i.h
  3331. done
  3332. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3333. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3334. # mode. It turns out that the SunPro C++ compiler does not properly
  3335. # handle '-M -o', and we need to detect this. Also, some Intel
  3336. # versions had trouble with output in subdirs.
  3337. am__obj=sub/conftest.${OBJEXT-o}
  3338. am__minus_obj="-o $am__obj"
  3339. case $depmode in
  3340. gcc)
  3341. # This depmode causes a compiler race in universal mode.
  3342. test "$am__universal" = false || continue
  3343. ;;
  3344. nosideeffect)
  3345. # After this tag, mechanisms are not by side-effect, so they'll
  3346. # only be used when explicitly requested.
  3347. if test "x$enable_dependency_tracking" = xyes; then
  3348. continue
  3349. else
  3350. break
  3351. fi
  3352. ;;
  3353. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3354. # This compiler won't grok '-c -o', but also, the minuso test has
  3355. # not run yet. These depmodes are late enough in the game, and
  3356. # so weak that their functioning should not be impacted.
  3357. am__obj=conftest.${OBJEXT-o}
  3358. am__minus_obj=
  3359. ;;
  3360. none) break ;;
  3361. esac
  3362. if depmode=$depmode \
  3363. source=sub/conftest.c object=$am__obj \
  3364. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3365. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3366. >/dev/null 2>conftest.err &&
  3367. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3368. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3369. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3370. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3371. # icc doesn't choke on unknown options, it will just issue warnings
  3372. # or remarks (even with -Werror). So we grep stderr for any message
  3373. # that says an option was ignored or not supported.
  3374. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3375. # icc: Command line warning: ignoring option '-M'; no argument required
  3376. # The diagnosis changed in icc 8.0:
  3377. # icc: Command line remark: option '-MP' not supported
  3378. if (grep 'ignoring option' conftest.err ||
  3379. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3380. am_cv_CC_dependencies_compiler_type=$depmode
  3381. break
  3382. fi
  3383. fi
  3384. done
  3385. cd ..
  3386. rm -rf conftest.dir
  3387. else
  3388. am_cv_CC_dependencies_compiler_type=none
  3389. fi
  3390. fi
  3391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3392. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3393. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3394. if
  3395. test "x$enable_dependency_tracking" != xno \
  3396. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3397. am__fastdepCC_TRUE=
  3398. am__fastdepCC_FALSE='#'
  3399. else
  3400. am__fastdepCC_TRUE='#'
  3401. am__fastdepCC_FALSE=
  3402. fi
  3403. if test -n "$ac_tool_prefix"; then
  3404. for ac_prog in ar lib "link -lib"
  3405. do
  3406. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3407. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3409. $as_echo_n "checking for $ac_word... " >&6; }
  3410. if ${ac_cv_prog_AR+:} false; then :
  3411. $as_echo_n "(cached) " >&6
  3412. else
  3413. if test -n "$AR"; then
  3414. ac_cv_prog_AR="$AR" # Let the user override the test.
  3415. else
  3416. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3417. for as_dir in $PATH
  3418. do
  3419. IFS=$as_save_IFS
  3420. test -z "$as_dir" && as_dir=.
  3421. for ac_exec_ext in '' $ac_executable_extensions; do
  3422. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3423. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  3424. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3425. break 2
  3426. fi
  3427. done
  3428. done
  3429. IFS=$as_save_IFS
  3430. fi
  3431. fi
  3432. AR=$ac_cv_prog_AR
  3433. if test -n "$AR"; then
  3434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  3435. $as_echo "$AR" >&6; }
  3436. else
  3437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3438. $as_echo "no" >&6; }
  3439. fi
  3440. test -n "$AR" && break
  3441. done
  3442. fi
  3443. if test -z "$AR"; then
  3444. ac_ct_AR=$AR
  3445. for ac_prog in ar lib "link -lib"
  3446. do
  3447. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3448. set dummy $ac_prog; ac_word=$2
  3449. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3450. $as_echo_n "checking for $ac_word... " >&6; }
  3451. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  3452. $as_echo_n "(cached) " >&6
  3453. else
  3454. if test -n "$ac_ct_AR"; then
  3455. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  3456. else
  3457. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3458. for as_dir in $PATH
  3459. do
  3460. IFS=$as_save_IFS
  3461. test -z "$as_dir" && as_dir=.
  3462. for ac_exec_ext in '' $ac_executable_extensions; do
  3463. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3464. ac_cv_prog_ac_ct_AR="$ac_prog"
  3465. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3466. break 2
  3467. fi
  3468. done
  3469. done
  3470. IFS=$as_save_IFS
  3471. fi
  3472. fi
  3473. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  3474. if test -n "$ac_ct_AR"; then
  3475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  3476. $as_echo "$ac_ct_AR" >&6; }
  3477. else
  3478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3479. $as_echo "no" >&6; }
  3480. fi
  3481. test -n "$ac_ct_AR" && break
  3482. done
  3483. if test "x$ac_ct_AR" = x; then
  3484. AR="false"
  3485. else
  3486. case $cross_compiling:$ac_tool_warned in
  3487. yes:)
  3488. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3489. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3490. ac_tool_warned=yes ;;
  3491. esac
  3492. AR=$ac_ct_AR
  3493. fi
  3494. fi
  3495. : ${AR=ar}
  3496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
  3497. $as_echo_n "checking the archiver ($AR) interface... " >&6; }
  3498. if ${am_cv_ar_interface+:} false; then :
  3499. $as_echo_n "(cached) " >&6
  3500. else
  3501. am_cv_ar_interface=ar
  3502. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3503. /* end confdefs.h. */
  3504. int some_variable = 0;
  3505. _ACEOF
  3506. if ac_fn_c_try_compile "$LINENO"; then :
  3507. am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
  3508. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  3509. (eval $am_ar_try) 2>&5
  3510. ac_status=$?
  3511. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3512. test $ac_status = 0; }
  3513. if test "$ac_status" -eq 0; then
  3514. am_cv_ar_interface=ar
  3515. else
  3516. am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
  3517. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  3518. (eval $am_ar_try) 2>&5
  3519. ac_status=$?
  3520. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3521. test $ac_status = 0; }
  3522. if test "$ac_status" -eq 0; then
  3523. am_cv_ar_interface=lib
  3524. else
  3525. am_cv_ar_interface=unknown
  3526. fi
  3527. fi
  3528. rm -f conftest.lib libconftest.a
  3529. fi
  3530. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3531. fi
  3532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
  3533. $as_echo "$am_cv_ar_interface" >&6; }
  3534. case $am_cv_ar_interface in
  3535. ar)
  3536. ;;
  3537. lib)
  3538. # Microsoft lib, so override with the ar-lib wrapper script.
  3539. # FIXME: It is wrong to rewrite AR.
  3540. # But if we don't then we get into trouble of one sort or another.
  3541. # A longer-term fix would be to have automake use am__AR in this case,
  3542. # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
  3543. # similar.
  3544. AR="$am_aux_dir/ar-lib $AR"
  3545. ;;
  3546. unknown)
  3547. as_fn_error $? "could not determine $AR interface" "$LINENO" 5
  3548. ;;
  3549. esac
  3550. MAJ_VERSION=3
  3551. MIN_VERSION=2
  3552. MIC_VERSION=25
  3553. LIBNL_GIT_SHA=dcc537597728c84d47fe9aff32b982c72055a1ad
  3554. LIBNL_VERSION=3.2.25
  3555. LT_CURRENT=220
  3556. LT_REVISION=0
  3557. LT_AGE=20
  3558. ac_ext=c
  3559. ac_cpp='$CPP $CPPFLAGS'
  3560. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3561. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3562. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3563. if test -n "$ac_tool_prefix"; then
  3564. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3565. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3567. $as_echo_n "checking for $ac_word... " >&6; }
  3568. if ${ac_cv_prog_CC+:} false; then :
  3569. $as_echo_n "(cached) " >&6
  3570. else
  3571. if test -n "$CC"; then
  3572. ac_cv_prog_CC="$CC" # Let the user override the test.
  3573. else
  3574. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3575. for as_dir in $PATH
  3576. do
  3577. IFS=$as_save_IFS
  3578. test -z "$as_dir" && as_dir=.
  3579. for ac_exec_ext in '' $ac_executable_extensions; do
  3580. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3581. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3582. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3583. break 2
  3584. fi
  3585. done
  3586. done
  3587. IFS=$as_save_IFS
  3588. fi
  3589. fi
  3590. CC=$ac_cv_prog_CC
  3591. if test -n "$CC"; then
  3592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3593. $as_echo "$CC" >&6; }
  3594. else
  3595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3596. $as_echo "no" >&6; }
  3597. fi
  3598. fi
  3599. if test -z "$ac_cv_prog_CC"; then
  3600. ac_ct_CC=$CC
  3601. # Extract the first word of "gcc", so it can be a program name with args.
  3602. set dummy gcc; ac_word=$2
  3603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3604. $as_echo_n "checking for $ac_word... " >&6; }
  3605. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3606. $as_echo_n "(cached) " >&6
  3607. else
  3608. if test -n "$ac_ct_CC"; then
  3609. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3610. else
  3611. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3612. for as_dir in $PATH
  3613. do
  3614. IFS=$as_save_IFS
  3615. test -z "$as_dir" && as_dir=.
  3616. for ac_exec_ext in '' $ac_executable_extensions; do
  3617. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3618. ac_cv_prog_ac_ct_CC="gcc"
  3619. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3620. break 2
  3621. fi
  3622. done
  3623. done
  3624. IFS=$as_save_IFS
  3625. fi
  3626. fi
  3627. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3628. if test -n "$ac_ct_CC"; then
  3629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3630. $as_echo "$ac_ct_CC" >&6; }
  3631. else
  3632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3633. $as_echo "no" >&6; }
  3634. fi
  3635. if test "x$ac_ct_CC" = x; then
  3636. CC=""
  3637. else
  3638. case $cross_compiling:$ac_tool_warned in
  3639. yes:)
  3640. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3641. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3642. ac_tool_warned=yes ;;
  3643. esac
  3644. CC=$ac_ct_CC
  3645. fi
  3646. else
  3647. CC="$ac_cv_prog_CC"
  3648. fi
  3649. if test -z "$CC"; then
  3650. if test -n "$ac_tool_prefix"; then
  3651. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3652. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3654. $as_echo_n "checking for $ac_word... " >&6; }
  3655. if ${ac_cv_prog_CC+:} false; then :
  3656. $as_echo_n "(cached) " >&6
  3657. else
  3658. if test -n "$CC"; then
  3659. ac_cv_prog_CC="$CC" # Let the user override the test.
  3660. else
  3661. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3662. for as_dir in $PATH
  3663. do
  3664. IFS=$as_save_IFS
  3665. test -z "$as_dir" && as_dir=.
  3666. for ac_exec_ext in '' $ac_executable_extensions; do
  3667. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3668. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3669. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3670. break 2
  3671. fi
  3672. done
  3673. done
  3674. IFS=$as_save_IFS
  3675. fi
  3676. fi
  3677. CC=$ac_cv_prog_CC
  3678. if test -n "$CC"; then
  3679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3680. $as_echo "$CC" >&6; }
  3681. else
  3682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3683. $as_echo "no" >&6; }
  3684. fi
  3685. fi
  3686. fi
  3687. if test -z "$CC"; then
  3688. # Extract the first word of "cc", so it can be a program name with args.
  3689. set dummy cc; ac_word=$2
  3690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3691. $as_echo_n "checking for $ac_word... " >&6; }
  3692. if ${ac_cv_prog_CC+:} false; then :
  3693. $as_echo_n "(cached) " >&6
  3694. else
  3695. if test -n "$CC"; then
  3696. ac_cv_prog_CC="$CC" # Let the user override the test.
  3697. else
  3698. ac_prog_rejected=no
  3699. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3700. for as_dir in $PATH
  3701. do
  3702. IFS=$as_save_IFS
  3703. test -z "$as_dir" && as_dir=.
  3704. for ac_exec_ext in '' $ac_executable_extensions; do
  3705. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3706. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3707. ac_prog_rejected=yes
  3708. continue
  3709. fi
  3710. ac_cv_prog_CC="cc"
  3711. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3712. break 2
  3713. fi
  3714. done
  3715. done
  3716. IFS=$as_save_IFS
  3717. if test $ac_prog_rejected = yes; then
  3718. # We found a bogon in the path, so make sure we never use it.
  3719. set dummy $ac_cv_prog_CC
  3720. shift
  3721. if test $# != 0; then
  3722. # We chose a different compiler from the bogus one.
  3723. # However, it has the same basename, so the bogon will be chosen
  3724. # first if we set CC to just the basename; use the full file name.
  3725. shift
  3726. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3727. fi
  3728. fi
  3729. fi
  3730. fi
  3731. CC=$ac_cv_prog_CC
  3732. if test -n "$CC"; then
  3733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3734. $as_echo "$CC" >&6; }
  3735. else
  3736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3737. $as_echo "no" >&6; }
  3738. fi
  3739. fi
  3740. if test -z "$CC"; then
  3741. if test -n "$ac_tool_prefix"; then
  3742. for ac_prog in cl.exe
  3743. do
  3744. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3745. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3747. $as_echo_n "checking for $ac_word... " >&6; }
  3748. if ${ac_cv_prog_CC+:} false; then :
  3749. $as_echo_n "(cached) " >&6
  3750. else
  3751. if test -n "$CC"; then
  3752. ac_cv_prog_CC="$CC" # Let the user override the test.
  3753. else
  3754. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3755. for as_dir in $PATH
  3756. do
  3757. IFS=$as_save_IFS
  3758. test -z "$as_dir" && as_dir=.
  3759. for ac_exec_ext in '' $ac_executable_extensions; do
  3760. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3761. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3762. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3763. break 2
  3764. fi
  3765. done
  3766. done
  3767. IFS=$as_save_IFS
  3768. fi
  3769. fi
  3770. CC=$ac_cv_prog_CC
  3771. if test -n "$CC"; then
  3772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3773. $as_echo "$CC" >&6; }
  3774. else
  3775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3776. $as_echo "no" >&6; }
  3777. fi
  3778. test -n "$CC" && break
  3779. done
  3780. fi
  3781. if test -z "$CC"; then
  3782. ac_ct_CC=$CC
  3783. for ac_prog in cl.exe
  3784. do
  3785. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3786. set dummy $ac_prog; ac_word=$2
  3787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3788. $as_echo_n "checking for $ac_word... " >&6; }
  3789. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3790. $as_echo_n "(cached) " >&6
  3791. else
  3792. if test -n "$ac_ct_CC"; then
  3793. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3794. else
  3795. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3796. for as_dir in $PATH
  3797. do
  3798. IFS=$as_save_IFS
  3799. test -z "$as_dir" && as_dir=.
  3800. for ac_exec_ext in '' $ac_executable_extensions; do
  3801. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3802. ac_cv_prog_ac_ct_CC="$ac_prog"
  3803. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3804. break 2
  3805. fi
  3806. done
  3807. done
  3808. IFS=$as_save_IFS
  3809. fi
  3810. fi
  3811. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3812. if test -n "$ac_ct_CC"; then
  3813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3814. $as_echo "$ac_ct_CC" >&6; }
  3815. else
  3816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3817. $as_echo "no" >&6; }
  3818. fi
  3819. test -n "$ac_ct_CC" && break
  3820. done
  3821. if test "x$ac_ct_CC" = x; then
  3822. CC=""
  3823. else
  3824. case $cross_compiling:$ac_tool_warned in
  3825. yes:)
  3826. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3827. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3828. ac_tool_warned=yes ;;
  3829. esac
  3830. CC=$ac_ct_CC
  3831. fi
  3832. fi
  3833. fi
  3834. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3835. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3836. as_fn_error $? "no acceptable C compiler found in \$PATH
  3837. See \`config.log' for more details" "$LINENO" 5; }
  3838. # Provide some information about the compiler.
  3839. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3840. set X $ac_compile
  3841. ac_compiler=$2
  3842. for ac_option in --version -v -V -qversion; do
  3843. { { ac_try="$ac_compiler $ac_option >&5"
  3844. case "(($ac_try" in
  3845. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3846. *) ac_try_echo=$ac_try;;
  3847. esac
  3848. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3849. $as_echo "$ac_try_echo"; } >&5
  3850. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3851. ac_status=$?
  3852. if test -s conftest.err; then
  3853. sed '10a\
  3854. ... rest of stderr output deleted ...
  3855. 10q' conftest.err >conftest.er1
  3856. cat conftest.er1 >&5
  3857. fi
  3858. rm -f conftest.er1 conftest.err
  3859. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3860. test $ac_status = 0; }
  3861. done
  3862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3863. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3864. if ${ac_cv_c_compiler_gnu+:} false; then :
  3865. $as_echo_n "(cached) " >&6
  3866. else
  3867. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3868. /* end confdefs.h. */
  3869. int
  3870. main ()
  3871. {
  3872. #ifndef __GNUC__
  3873. choke me
  3874. #endif
  3875. ;
  3876. return 0;
  3877. }
  3878. _ACEOF
  3879. if ac_fn_c_try_compile "$LINENO"; then :
  3880. ac_compiler_gnu=yes
  3881. else
  3882. ac_compiler_gnu=no
  3883. fi
  3884. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3885. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3886. fi
  3887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3888. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3889. if test $ac_compiler_gnu = yes; then
  3890. GCC=yes
  3891. else
  3892. GCC=
  3893. fi
  3894. ac_test_CFLAGS=${CFLAGS+set}
  3895. ac_save_CFLAGS=$CFLAGS
  3896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3897. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3898. if ${ac_cv_prog_cc_g+:} false; then :
  3899. $as_echo_n "(cached) " >&6
  3900. else
  3901. ac_save_c_werror_flag=$ac_c_werror_flag
  3902. ac_c_werror_flag=yes
  3903. ac_cv_prog_cc_g=no
  3904. CFLAGS="-g"
  3905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3906. /* end confdefs.h. */
  3907. int
  3908. main ()
  3909. {
  3910. ;
  3911. return 0;
  3912. }
  3913. _ACEOF
  3914. if ac_fn_c_try_compile "$LINENO"; then :
  3915. ac_cv_prog_cc_g=yes
  3916. else
  3917. CFLAGS=""
  3918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3919. /* end confdefs.h. */
  3920. int
  3921. main ()
  3922. {
  3923. ;
  3924. return 0;
  3925. }
  3926. _ACEOF
  3927. if ac_fn_c_try_compile "$LINENO"; then :
  3928. else
  3929. ac_c_werror_flag=$ac_save_c_werror_flag
  3930. CFLAGS="-g"
  3931. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3932. /* end confdefs.h. */
  3933. int
  3934. main ()
  3935. {
  3936. ;
  3937. return 0;
  3938. }
  3939. _ACEOF
  3940. if ac_fn_c_try_compile "$LINENO"; then :
  3941. ac_cv_prog_cc_g=yes
  3942. fi
  3943. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3944. fi
  3945. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3946. fi
  3947. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3948. ac_c_werror_flag=$ac_save_c_werror_flag
  3949. fi
  3950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3951. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3952. if test "$ac_test_CFLAGS" = set; then
  3953. CFLAGS=$ac_save_CFLAGS
  3954. elif test $ac_cv_prog_cc_g = yes; then
  3955. if test "$GCC" = yes; then
  3956. CFLAGS="-g -O2"
  3957. else
  3958. CFLAGS="-g"
  3959. fi
  3960. else
  3961. if test "$GCC" = yes; then
  3962. CFLAGS="-O2"
  3963. else
  3964. CFLAGS=
  3965. fi
  3966. fi
  3967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3968. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3969. if ${ac_cv_prog_cc_c89+:} false; then :
  3970. $as_echo_n "(cached) " >&6
  3971. else
  3972. ac_cv_prog_cc_c89=no
  3973. ac_save_CC=$CC
  3974. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3975. /* end confdefs.h. */
  3976. #include <stdarg.h>
  3977. #include <stdio.h>
  3978. struct stat;
  3979. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3980. struct buf { int x; };
  3981. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3982. static char *e (p, i)
  3983. char **p;
  3984. int i;
  3985. {
  3986. return p[i];
  3987. }
  3988. static char *f (char * (*g) (char **, int), char **p, ...)
  3989. {
  3990. char *s;
  3991. va_list v;
  3992. va_start (v,p);
  3993. s = g (p, va_arg (v,int));
  3994. va_end (v);
  3995. return s;
  3996. }
  3997. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3998. function prototypes and stuff, but not '\xHH' hex character constants.
  3999. These don't provoke an error unfortunately, instead are silently treated
  4000. as 'x'. The following induces an error, until -std is added to get
  4001. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4002. array size at least. It's necessary to write '\x00'==0 to get something
  4003. that's true only with -std. */
  4004. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4005. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4006. inside strings and character constants. */
  4007. #define FOO(x) 'x'
  4008. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4009. int test (int i, double x);
  4010. struct s1 {int (*f) (int a);};
  4011. struct s2 {int (*f) (double a);};
  4012. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4013. int argc;
  4014. char **argv;
  4015. int
  4016. main ()
  4017. {
  4018. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4019. ;
  4020. return 0;
  4021. }
  4022. _ACEOF
  4023. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4024. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4025. do
  4026. CC="$ac_save_CC $ac_arg"
  4027. if ac_fn_c_try_compile "$LINENO"; then :
  4028. ac_cv_prog_cc_c89=$ac_arg
  4029. fi
  4030. rm -f core conftest.err conftest.$ac_objext
  4031. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4032. done
  4033. rm -f conftest.$ac_ext
  4034. CC=$ac_save_CC
  4035. fi
  4036. # AC_CACHE_VAL
  4037. case "x$ac_cv_prog_cc_c89" in
  4038. x)
  4039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4040. $as_echo "none needed" >&6; } ;;
  4041. xno)
  4042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4043. $as_echo "unsupported" >&6; } ;;
  4044. *)
  4045. CC="$CC $ac_cv_prog_cc_c89"
  4046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4047. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4048. esac
  4049. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4050. fi
  4051. ac_ext=c
  4052. ac_cpp='$CPP $CPPFLAGS'
  4053. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4054. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4055. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4056. depcc="$CC" am_compiler_list=
  4057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4058. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4059. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4060. $as_echo_n "(cached) " >&6
  4061. else
  4062. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4063. # We make a subdir and do the tests there. Otherwise we can end up
  4064. # making bogus files that we don't know about and never remove. For
  4065. # instance it was reported that on HP-UX the gcc test will end up
  4066. # making a dummy file named 'D' -- because '-MD' means "put the output
  4067. # in D".
  4068. rm -rf conftest.dir
  4069. mkdir conftest.dir
  4070. # Copy depcomp to subdir because otherwise we won't find it if we're
  4071. # using a relative directory.
  4072. cp "$am_depcomp" conftest.dir
  4073. cd conftest.dir
  4074. # We will build objects and dependencies in a subdirectory because
  4075. # it helps to detect inapplicable dependency modes. For instance
  4076. # both Tru64's cc and ICC support -MD to output dependencies as a
  4077. # side effect of compilation, but ICC will put the dependencies in
  4078. # the current directory while Tru64 will put them in the object
  4079. # directory.
  4080. mkdir sub
  4081. am_cv_CC_dependencies_compiler_type=none
  4082. if test "$am_compiler_list" = ""; then
  4083. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4084. fi
  4085. am__universal=false
  4086. case " $depcc " in #(
  4087. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4088. esac
  4089. for depmode in $am_compiler_list; do
  4090. # Setup a source with many dependencies, because some compilers
  4091. # like to wrap large dependency lists on column 80 (with \), and
  4092. # we should not choose a depcomp mode which is confused by this.
  4093. #
  4094. # We need to recreate these files for each test, as the compiler may
  4095. # overwrite some of them when testing with obscure command lines.
  4096. # This happens at least with the AIX C compiler.
  4097. : > sub/conftest.c
  4098. for i in 1 2 3 4 5 6; do
  4099. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4100. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4101. # Solaris 10 /bin/sh.
  4102. echo '/* dummy */' > sub/conftst$i.h
  4103. done
  4104. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4105. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4106. # mode. It turns out that the SunPro C++ compiler does not properly
  4107. # handle '-M -o', and we need to detect this. Also, some Intel
  4108. # versions had trouble with output in subdirs.
  4109. am__obj=sub/conftest.${OBJEXT-o}
  4110. am__minus_obj="-o $am__obj"
  4111. case $depmode in
  4112. gcc)
  4113. # This depmode causes a compiler race in universal mode.
  4114. test "$am__universal" = false || continue
  4115. ;;
  4116. nosideeffect)
  4117. # After this tag, mechanisms are not by side-effect, so they'll
  4118. # only be used when explicitly requested.
  4119. if test "x$enable_dependency_tracking" = xyes; then
  4120. continue
  4121. else
  4122. break
  4123. fi
  4124. ;;
  4125. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4126. # This compiler won't grok '-c -o', but also, the minuso test has
  4127. # not run yet. These depmodes are late enough in the game, and
  4128. # so weak that their functioning should not be impacted.
  4129. am__obj=conftest.${OBJEXT-o}
  4130. am__minus_obj=
  4131. ;;
  4132. none) break ;;
  4133. esac
  4134. if depmode=$depmode \
  4135. source=sub/conftest.c object=$am__obj \
  4136. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4137. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4138. >/dev/null 2>conftest.err &&
  4139. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4140. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4141. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4142. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4143. # icc doesn't choke on unknown options, it will just issue warnings
  4144. # or remarks (even with -Werror). So we grep stderr for any message
  4145. # that says an option was ignored or not supported.
  4146. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4147. # icc: Command line warning: ignoring option '-M'; no argument required
  4148. # The diagnosis changed in icc 8.0:
  4149. # icc: Command line remark: option '-MP' not supported
  4150. if (grep 'ignoring option' conftest.err ||
  4151. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4152. am_cv_CC_dependencies_compiler_type=$depmode
  4153. break
  4154. fi
  4155. fi
  4156. done
  4157. cd ..
  4158. rm -rf conftest.dir
  4159. else
  4160. am_cv_CC_dependencies_compiler_type=none
  4161. fi
  4162. fi
  4163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4164. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4165. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4166. if
  4167. test "x$enable_dependency_tracking" != xno \
  4168. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4169. am__fastdepCC_TRUE=
  4170. am__fastdepCC_FALSE='#'
  4171. else
  4172. am__fastdepCC_TRUE='#'
  4173. am__fastdepCC_FALSE=
  4174. fi
  4175. if test "x$CC" != xcc; then
  4176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  4177. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  4178. else
  4179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  4180. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  4181. fi
  4182. set dummy $CC; ac_cc=`$as_echo "$2" |
  4183. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4184. if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  4185. $as_echo_n "(cached) " >&6
  4186. else
  4187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4188. /* end confdefs.h. */
  4189. int
  4190. main ()
  4191. {
  4192. ;
  4193. return 0;
  4194. }
  4195. _ACEOF
  4196. # Make sure it works both with $CC and with simple cc.
  4197. # We do the test twice because some compilers refuse to overwrite an
  4198. # existing .o file with -o, though they will create one.
  4199. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4200. rm -f conftest2.*
  4201. if { { case "(($ac_try" in
  4202. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4203. *) ac_try_echo=$ac_try;;
  4204. esac
  4205. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4206. $as_echo "$ac_try_echo"; } >&5
  4207. (eval "$ac_try") 2>&5
  4208. ac_status=$?
  4209. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4210. test $ac_status = 0; } &&
  4211. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  4212. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4213. *) ac_try_echo=$ac_try;;
  4214. esac
  4215. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4216. $as_echo "$ac_try_echo"; } >&5
  4217. (eval "$ac_try") 2>&5
  4218. ac_status=$?
  4219. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4220. test $ac_status = 0; };
  4221. then
  4222. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  4223. if test "x$CC" != xcc; then
  4224. # Test first that cc exists at all.
  4225. if { ac_try='cc -c conftest.$ac_ext >&5'
  4226. { { case "(($ac_try" in
  4227. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4228. *) ac_try_echo=$ac_try;;
  4229. esac
  4230. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4231. $as_echo "$ac_try_echo"; } >&5
  4232. (eval "$ac_try") 2>&5
  4233. ac_status=$?
  4234. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4235. test $ac_status = 0; }; }; then
  4236. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4237. rm -f conftest2.*
  4238. if { { case "(($ac_try" in
  4239. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4240. *) ac_try_echo=$ac_try;;
  4241. esac
  4242. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4243. $as_echo "$ac_try_echo"; } >&5
  4244. (eval "$ac_try") 2>&5
  4245. ac_status=$?
  4246. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4247. test $ac_status = 0; } &&
  4248. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  4249. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4250. *) ac_try_echo=$ac_try;;
  4251. esac
  4252. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4253. $as_echo "$ac_try_echo"; } >&5
  4254. (eval "$ac_try") 2>&5
  4255. ac_status=$?
  4256. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4257. test $ac_status = 0; };
  4258. then
  4259. # cc works too.
  4260. :
  4261. else
  4262. # cc exists but doesn't like -o.
  4263. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4264. fi
  4265. fi
  4266. fi
  4267. else
  4268. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4269. fi
  4270. rm -f core conftest*
  4271. fi
  4272. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  4273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4274. $as_echo "yes" >&6; }
  4275. else
  4276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4277. $as_echo "no" >&6; }
  4278. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  4279. fi
  4280. # FIXME: we rely on the cache variable name because
  4281. # there is no other way.
  4282. set dummy $CC
  4283. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4284. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  4285. if test "$am_t" != yes; then
  4286. # Losing compiler, so override with the script.
  4287. # FIXME: It is wrong to rewrite CC.
  4288. # But if we don't then we get into trouble of one sort or another.
  4289. # A longer-term fix would be to have automake use am__CC in this case,
  4290. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4291. CC="$am_aux_dir/compile $CC"
  4292. fi
  4293. case `pwd` in
  4294. *\ * | *\ *)
  4295. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4296. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4297. esac
  4298. macro_version='2.4.2'
  4299. macro_revision='1.3337'
  4300. ltmain="$ac_aux_dir/ltmain.sh"
  4301. # Make sure we can run config.sub.
  4302. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4303. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  4304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  4305. $as_echo_n "checking build system type... " >&6; }
  4306. if ${ac_cv_build+:} false; then :
  4307. $as_echo_n "(cached) " >&6
  4308. else
  4309. ac_build_alias=$build_alias
  4310. test "x$ac_build_alias" = x &&
  4311. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4312. test "x$ac_build_alias" = x &&
  4313. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  4314. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4315. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  4316. fi
  4317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  4318. $as_echo "$ac_cv_build" >&6; }
  4319. case $ac_cv_build in
  4320. *-*-*) ;;
  4321. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  4322. esac
  4323. build=$ac_cv_build
  4324. ac_save_IFS=$IFS; IFS='-'
  4325. set x $ac_cv_build
  4326. shift
  4327. build_cpu=$1
  4328. build_vendor=$2
  4329. shift; shift
  4330. # Remember, the first character of IFS is used to create $*,
  4331. # except with old shells:
  4332. build_os=$*
  4333. IFS=$ac_save_IFS
  4334. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  4336. $as_echo_n "checking host system type... " >&6; }
  4337. if ${ac_cv_host+:} false; then :
  4338. $as_echo_n "(cached) " >&6
  4339. else
  4340. if test "x$host_alias" = x; then
  4341. ac_cv_host=$ac_cv_build
  4342. else
  4343. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4344. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  4345. fi
  4346. fi
  4347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  4348. $as_echo "$ac_cv_host" >&6; }
  4349. case $ac_cv_host in
  4350. *-*-*) ;;
  4351. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  4352. esac
  4353. host=$ac_cv_host
  4354. ac_save_IFS=$IFS; IFS='-'
  4355. set x $ac_cv_host
  4356. shift
  4357. host_cpu=$1
  4358. host_vendor=$2
  4359. shift; shift
  4360. # Remember, the first character of IFS is used to create $*,
  4361. # except with old shells:
  4362. host_os=$*
  4363. IFS=$ac_save_IFS
  4364. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4365. # Backslashify metacharacters that are still active within
  4366. # double-quoted strings.
  4367. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4368. # Same as above, but do not quote variable references.
  4369. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4370. # Sed substitution to delay expansion of an escaped shell variable in a
  4371. # double_quote_subst'ed string.
  4372. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4373. # Sed substitution to delay expansion of an escaped single quote.
  4374. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4375. # Sed substitution to avoid accidental globbing in evaled expressions
  4376. no_glob_subst='s/\*/\\\*/g'
  4377. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4378. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4379. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4381. $as_echo_n "checking how to print strings... " >&6; }
  4382. # Test print first, because it will be a builtin if present.
  4383. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4384. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4385. ECHO='print -r --'
  4386. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4387. ECHO='printf %s\n'
  4388. else
  4389. # Use this function as a fallback that always works.
  4390. func_fallback_echo ()
  4391. {
  4392. eval 'cat <<_LTECHO_EOF
  4393. $1
  4394. _LTECHO_EOF'
  4395. }
  4396. ECHO='func_fallback_echo'
  4397. fi
  4398. # func_echo_all arg...
  4399. # Invoke $ECHO with all args, space-separated.
  4400. func_echo_all ()
  4401. {
  4402. $ECHO ""
  4403. }
  4404. case "$ECHO" in
  4405. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4406. $as_echo "printf" >&6; } ;;
  4407. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4408. $as_echo "print -r" >&6; } ;;
  4409. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4410. $as_echo "cat" >&6; } ;;
  4411. esac
  4412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4413. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4414. if ${ac_cv_path_SED+:} false; then :
  4415. $as_echo_n "(cached) " >&6
  4416. else
  4417. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4418. for ac_i in 1 2 3 4 5 6 7; do
  4419. ac_script="$ac_script$as_nl$ac_script"
  4420. done
  4421. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4422. { ac_script=; unset ac_script;}
  4423. if test -z "$SED"; then
  4424. ac_path_SED_found=false
  4425. # Loop through the user's path and test for each of PROGNAME-LIST
  4426. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4427. for as_dir in $PATH
  4428. do
  4429. IFS=$as_save_IFS
  4430. test -z "$as_dir" && as_dir=.
  4431. for ac_prog in sed gsed; do
  4432. for ac_exec_ext in '' $ac_executable_extensions; do
  4433. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4434. as_fn_executable_p "$ac_path_SED" || continue
  4435. # Check for GNU ac_path_SED and select it if it is found.
  4436. # Check for GNU $ac_path_SED
  4437. case `"$ac_path_SED" --version 2>&1` in
  4438. *GNU*)
  4439. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4440. *)
  4441. ac_count=0
  4442. $as_echo_n 0123456789 >"conftest.in"
  4443. while :
  4444. do
  4445. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4446. mv "conftest.tmp" "conftest.in"
  4447. cp "conftest.in" "conftest.nl"
  4448. $as_echo '' >> "conftest.nl"
  4449. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4450. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4451. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4452. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4453. # Best one so far, save it but keep looking for a better one
  4454. ac_cv_path_SED="$ac_path_SED"
  4455. ac_path_SED_max=$ac_count
  4456. fi
  4457. # 10*(2^10) chars as input seems more than enough
  4458. test $ac_count -gt 10 && break
  4459. done
  4460. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4461. esac
  4462. $ac_path_SED_found && break 3
  4463. done
  4464. done
  4465. done
  4466. IFS=$as_save_IFS
  4467. if test -z "$ac_cv_path_SED"; then
  4468. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4469. fi
  4470. else
  4471. ac_cv_path_SED=$SED
  4472. fi
  4473. fi
  4474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4475. $as_echo "$ac_cv_path_SED" >&6; }
  4476. SED="$ac_cv_path_SED"
  4477. rm -f conftest.sed
  4478. test -z "$SED" && SED=sed
  4479. Xsed="$SED -e 1s/^X//"
  4480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4481. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4482. if ${ac_cv_path_GREP+:} false; then :
  4483. $as_echo_n "(cached) " >&6
  4484. else
  4485. if test -z "$GREP"; then
  4486. ac_path_GREP_found=false
  4487. # Loop through the user's path and test for each of PROGNAME-LIST
  4488. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4489. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4490. do
  4491. IFS=$as_save_IFS
  4492. test -z "$as_dir" && as_dir=.
  4493. for ac_prog in grep ggrep; do
  4494. for ac_exec_ext in '' $ac_executable_extensions; do
  4495. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4496. as_fn_executable_p "$ac_path_GREP" || continue
  4497. # Check for GNU ac_path_GREP and select it if it is found.
  4498. # Check for GNU $ac_path_GREP
  4499. case `"$ac_path_GREP" --version 2>&1` in
  4500. *GNU*)
  4501. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4502. *)
  4503. ac_count=0
  4504. $as_echo_n 0123456789 >"conftest.in"
  4505. while :
  4506. do
  4507. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4508. mv "conftest.tmp" "conftest.in"
  4509. cp "conftest.in" "conftest.nl"
  4510. $as_echo 'GREP' >> "conftest.nl"
  4511. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4512. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4513. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4514. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4515. # Best one so far, save it but keep looking for a better one
  4516. ac_cv_path_GREP="$ac_path_GREP"
  4517. ac_path_GREP_max=$ac_count
  4518. fi
  4519. # 10*(2^10) chars as input seems more than enough
  4520. test $ac_count -gt 10 && break
  4521. done
  4522. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4523. esac
  4524. $ac_path_GREP_found && break 3
  4525. done
  4526. done
  4527. done
  4528. IFS=$as_save_IFS
  4529. if test -z "$ac_cv_path_GREP"; then
  4530. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4531. fi
  4532. else
  4533. ac_cv_path_GREP=$GREP
  4534. fi
  4535. fi
  4536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4537. $as_echo "$ac_cv_path_GREP" >&6; }
  4538. GREP="$ac_cv_path_GREP"
  4539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4540. $as_echo_n "checking for egrep... " >&6; }
  4541. if ${ac_cv_path_EGREP+:} false; then :
  4542. $as_echo_n "(cached) " >&6
  4543. else
  4544. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4545. then ac_cv_path_EGREP="$GREP -E"
  4546. else
  4547. if test -z "$EGREP"; then
  4548. ac_path_EGREP_found=false
  4549. # Loop through the user's path and test for each of PROGNAME-LIST
  4550. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4551. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4552. do
  4553. IFS=$as_save_IFS
  4554. test -z "$as_dir" && as_dir=.
  4555. for ac_prog in egrep; do
  4556. for ac_exec_ext in '' $ac_executable_extensions; do
  4557. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4558. as_fn_executable_p "$ac_path_EGREP" || continue
  4559. # Check for GNU ac_path_EGREP and select it if it is found.
  4560. # Check for GNU $ac_path_EGREP
  4561. case `"$ac_path_EGREP" --version 2>&1` in
  4562. *GNU*)
  4563. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4564. *)
  4565. ac_count=0
  4566. $as_echo_n 0123456789 >"conftest.in"
  4567. while :
  4568. do
  4569. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4570. mv "conftest.tmp" "conftest.in"
  4571. cp "conftest.in" "conftest.nl"
  4572. $as_echo 'EGREP' >> "conftest.nl"
  4573. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4574. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4575. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4576. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4577. # Best one so far, save it but keep looking for a better one
  4578. ac_cv_path_EGREP="$ac_path_EGREP"
  4579. ac_path_EGREP_max=$ac_count
  4580. fi
  4581. # 10*(2^10) chars as input seems more than enough
  4582. test $ac_count -gt 10 && break
  4583. done
  4584. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4585. esac
  4586. $ac_path_EGREP_found && break 3
  4587. done
  4588. done
  4589. done
  4590. IFS=$as_save_IFS
  4591. if test -z "$ac_cv_path_EGREP"; then
  4592. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4593. fi
  4594. else
  4595. ac_cv_path_EGREP=$EGREP
  4596. fi
  4597. fi
  4598. fi
  4599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4600. $as_echo "$ac_cv_path_EGREP" >&6; }
  4601. EGREP="$ac_cv_path_EGREP"
  4602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4603. $as_echo_n "checking for fgrep... " >&6; }
  4604. if ${ac_cv_path_FGREP+:} false; then :
  4605. $as_echo_n "(cached) " >&6
  4606. else
  4607. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4608. then ac_cv_path_FGREP="$GREP -F"
  4609. else
  4610. if test -z "$FGREP"; then
  4611. ac_path_FGREP_found=false
  4612. # Loop through the user's path and test for each of PROGNAME-LIST
  4613. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4614. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4615. do
  4616. IFS=$as_save_IFS
  4617. test -z "$as_dir" && as_dir=.
  4618. for ac_prog in fgrep; do
  4619. for ac_exec_ext in '' $ac_executable_extensions; do
  4620. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4621. as_fn_executable_p "$ac_path_FGREP" || continue
  4622. # Check for GNU ac_path_FGREP and select it if it is found.
  4623. # Check for GNU $ac_path_FGREP
  4624. case `"$ac_path_FGREP" --version 2>&1` in
  4625. *GNU*)
  4626. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4627. *)
  4628. ac_count=0
  4629. $as_echo_n 0123456789 >"conftest.in"
  4630. while :
  4631. do
  4632. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4633. mv "conftest.tmp" "conftest.in"
  4634. cp "conftest.in" "conftest.nl"
  4635. $as_echo 'FGREP' >> "conftest.nl"
  4636. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4637. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4638. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4639. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4640. # Best one so far, save it but keep looking for a better one
  4641. ac_cv_path_FGREP="$ac_path_FGREP"
  4642. ac_path_FGREP_max=$ac_count
  4643. fi
  4644. # 10*(2^10) chars as input seems more than enough
  4645. test $ac_count -gt 10 && break
  4646. done
  4647. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4648. esac
  4649. $ac_path_FGREP_found && break 3
  4650. done
  4651. done
  4652. done
  4653. IFS=$as_save_IFS
  4654. if test -z "$ac_cv_path_FGREP"; then
  4655. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4656. fi
  4657. else
  4658. ac_cv_path_FGREP=$FGREP
  4659. fi
  4660. fi
  4661. fi
  4662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4663. $as_echo "$ac_cv_path_FGREP" >&6; }
  4664. FGREP="$ac_cv_path_FGREP"
  4665. test -z "$GREP" && GREP=grep
  4666. # Check whether --with-gnu-ld was given.
  4667. if test "${with_gnu_ld+set}" = set; then :
  4668. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4669. else
  4670. with_gnu_ld=no
  4671. fi
  4672. ac_prog=ld
  4673. if test "$GCC" = yes; then
  4674. # Check if gcc -print-prog-name=ld gives a path.
  4675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4676. $as_echo_n "checking for ld used by $CC... " >&6; }
  4677. case $host in
  4678. *-*-mingw*)
  4679. # gcc leaves a trailing carriage return which upsets mingw
  4680. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4681. *)
  4682. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4683. esac
  4684. case $ac_prog in
  4685. # Accept absolute paths.
  4686. [\\/]* | ?:[\\/]*)
  4687. re_direlt='/[^/][^/]*/\.\./'
  4688. # Canonicalize the pathname of ld
  4689. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4690. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4691. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4692. done
  4693. test -z "$LD" && LD="$ac_prog"
  4694. ;;
  4695. "")
  4696. # If it fails, then pretend we aren't using GCC.
  4697. ac_prog=ld
  4698. ;;
  4699. *)
  4700. # If it is relative, then search for the first ld in PATH.
  4701. with_gnu_ld=unknown
  4702. ;;
  4703. esac
  4704. elif test "$with_gnu_ld" = yes; then
  4705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4706. $as_echo_n "checking for GNU ld... " >&6; }
  4707. else
  4708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4709. $as_echo_n "checking for non-GNU ld... " >&6; }
  4710. fi
  4711. if ${lt_cv_path_LD+:} false; then :
  4712. $as_echo_n "(cached) " >&6
  4713. else
  4714. if test -z "$LD"; then
  4715. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4716. for ac_dir in $PATH; do
  4717. IFS="$lt_save_ifs"
  4718. test -z "$ac_dir" && ac_dir=.
  4719. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4720. lt_cv_path_LD="$ac_dir/$ac_prog"
  4721. # Check to see if the program is GNU ld. I'd rather use --version,
  4722. # but apparently some variants of GNU ld only accept -v.
  4723. # Break only if it was the GNU/non-GNU ld that we prefer.
  4724. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4725. *GNU* | *'with BFD'*)
  4726. test "$with_gnu_ld" != no && break
  4727. ;;
  4728. *)
  4729. test "$with_gnu_ld" != yes && break
  4730. ;;
  4731. esac
  4732. fi
  4733. done
  4734. IFS="$lt_save_ifs"
  4735. else
  4736. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4737. fi
  4738. fi
  4739. LD="$lt_cv_path_LD"
  4740. if test -n "$LD"; then
  4741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4742. $as_echo "$LD" >&6; }
  4743. else
  4744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4745. $as_echo "no" >&6; }
  4746. fi
  4747. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4749. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4750. if ${lt_cv_prog_gnu_ld+:} false; then :
  4751. $as_echo_n "(cached) " >&6
  4752. else
  4753. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4754. case `$LD -v 2>&1 </dev/null` in
  4755. *GNU* | *'with BFD'*)
  4756. lt_cv_prog_gnu_ld=yes
  4757. ;;
  4758. *)
  4759. lt_cv_prog_gnu_ld=no
  4760. ;;
  4761. esac
  4762. fi
  4763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4764. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4765. with_gnu_ld=$lt_cv_prog_gnu_ld
  4766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4767. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4768. if ${lt_cv_path_NM+:} false; then :
  4769. $as_echo_n "(cached) " >&6
  4770. else
  4771. if test -n "$NM"; then
  4772. # Let the user override the test.
  4773. lt_cv_path_NM="$NM"
  4774. else
  4775. lt_nm_to_check="${ac_tool_prefix}nm"
  4776. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4777. lt_nm_to_check="$lt_nm_to_check nm"
  4778. fi
  4779. for lt_tmp_nm in $lt_nm_to_check; do
  4780. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4781. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4782. IFS="$lt_save_ifs"
  4783. test -z "$ac_dir" && ac_dir=.
  4784. tmp_nm="$ac_dir/$lt_tmp_nm"
  4785. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4786. # Check to see if the nm accepts a BSD-compat flag.
  4787. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4788. # nm: unknown option "B" ignored
  4789. # Tru64's nm complains that /dev/null is an invalid object file
  4790. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4791. */dev/null* | *'Invalid file or object type'*)
  4792. lt_cv_path_NM="$tmp_nm -B"
  4793. break
  4794. ;;
  4795. *)
  4796. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4797. */dev/null*)
  4798. lt_cv_path_NM="$tmp_nm -p"
  4799. break
  4800. ;;
  4801. *)
  4802. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4803. continue # so that we can try to find one that supports BSD flags
  4804. ;;
  4805. esac
  4806. ;;
  4807. esac
  4808. fi
  4809. done
  4810. IFS="$lt_save_ifs"
  4811. done
  4812. : ${lt_cv_path_NM=no}
  4813. fi
  4814. fi
  4815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4816. $as_echo "$lt_cv_path_NM" >&6; }
  4817. if test "$lt_cv_path_NM" != "no"; then
  4818. NM="$lt_cv_path_NM"
  4819. else
  4820. # Didn't find any BSD compatible name lister, look for dumpbin.
  4821. if test -n "$DUMPBIN"; then :
  4822. # Let the user override the test.
  4823. else
  4824. if test -n "$ac_tool_prefix"; then
  4825. for ac_prog in dumpbin "link -dump"
  4826. do
  4827. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4828. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4830. $as_echo_n "checking for $ac_word... " >&6; }
  4831. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4832. $as_echo_n "(cached) " >&6
  4833. else
  4834. if test -n "$DUMPBIN"; then
  4835. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4836. else
  4837. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4838. for as_dir in $PATH
  4839. do
  4840. IFS=$as_save_IFS
  4841. test -z "$as_dir" && as_dir=.
  4842. for ac_exec_ext in '' $ac_executable_extensions; do
  4843. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4844. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4845. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4846. break 2
  4847. fi
  4848. done
  4849. done
  4850. IFS=$as_save_IFS
  4851. fi
  4852. fi
  4853. DUMPBIN=$ac_cv_prog_DUMPBIN
  4854. if test -n "$DUMPBIN"; then
  4855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4856. $as_echo "$DUMPBIN" >&6; }
  4857. else
  4858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4859. $as_echo "no" >&6; }
  4860. fi
  4861. test -n "$DUMPBIN" && break
  4862. done
  4863. fi
  4864. if test -z "$DUMPBIN"; then
  4865. ac_ct_DUMPBIN=$DUMPBIN
  4866. for ac_prog in dumpbin "link -dump"
  4867. do
  4868. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4869. set dummy $ac_prog; ac_word=$2
  4870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4871. $as_echo_n "checking for $ac_word... " >&6; }
  4872. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4873. $as_echo_n "(cached) " >&6
  4874. else
  4875. if test -n "$ac_ct_DUMPBIN"; then
  4876. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4877. else
  4878. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4879. for as_dir in $PATH
  4880. do
  4881. IFS=$as_save_IFS
  4882. test -z "$as_dir" && as_dir=.
  4883. for ac_exec_ext in '' $ac_executable_extensions; do
  4884. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4885. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4886. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4887. break 2
  4888. fi
  4889. done
  4890. done
  4891. IFS=$as_save_IFS
  4892. fi
  4893. fi
  4894. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4895. if test -n "$ac_ct_DUMPBIN"; then
  4896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4897. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4898. else
  4899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4900. $as_echo "no" >&6; }
  4901. fi
  4902. test -n "$ac_ct_DUMPBIN" && break
  4903. done
  4904. if test "x$ac_ct_DUMPBIN" = x; then
  4905. DUMPBIN=":"
  4906. else
  4907. case $cross_compiling:$ac_tool_warned in
  4908. yes:)
  4909. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4910. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4911. ac_tool_warned=yes ;;
  4912. esac
  4913. DUMPBIN=$ac_ct_DUMPBIN
  4914. fi
  4915. fi
  4916. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4917. *COFF*)
  4918. DUMPBIN="$DUMPBIN -symbols"
  4919. ;;
  4920. *)
  4921. DUMPBIN=:
  4922. ;;
  4923. esac
  4924. fi
  4925. if test "$DUMPBIN" != ":"; then
  4926. NM="$DUMPBIN"
  4927. fi
  4928. fi
  4929. test -z "$NM" && NM=nm
  4930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4931. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4932. if ${lt_cv_nm_interface+:} false; then :
  4933. $as_echo_n "(cached) " >&6
  4934. else
  4935. lt_cv_nm_interface="BSD nm"
  4936. echo "int some_variable = 0;" > conftest.$ac_ext
  4937. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4938. (eval "$ac_compile" 2>conftest.err)
  4939. cat conftest.err >&5
  4940. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4941. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4942. cat conftest.err >&5
  4943. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4944. cat conftest.out >&5
  4945. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4946. lt_cv_nm_interface="MS dumpbin"
  4947. fi
  4948. rm -f conftest*
  4949. fi
  4950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4951. $as_echo "$lt_cv_nm_interface" >&6; }
  4952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4953. $as_echo_n "checking whether ln -s works... " >&6; }
  4954. LN_S=$as_ln_s
  4955. if test "$LN_S" = "ln -s"; then
  4956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4957. $as_echo "yes" >&6; }
  4958. else
  4959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4960. $as_echo "no, using $LN_S" >&6; }
  4961. fi
  4962. # find the maximum length of command line arguments
  4963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4964. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4965. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4966. $as_echo_n "(cached) " >&6
  4967. else
  4968. i=0
  4969. teststring="ABCD"
  4970. case $build_os in
  4971. msdosdjgpp*)
  4972. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4973. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4974. # during glob expansion). Even if it were fixed, the result of this
  4975. # check would be larger than it should be.
  4976. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4977. ;;
  4978. gnu*)
  4979. # Under GNU Hurd, this test is not required because there is
  4980. # no limit to the length of command line arguments.
  4981. # Libtool will interpret -1 as no limit whatsoever
  4982. lt_cv_sys_max_cmd_len=-1;
  4983. ;;
  4984. cygwin* | mingw* | cegcc*)
  4985. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4986. # about 5 minutes as the teststring grows exponentially.
  4987. # Worse, since 9x/ME are not pre-emptively multitasking,
  4988. # you end up with a "frozen" computer, even though with patience
  4989. # the test eventually succeeds (with a max line length of 256k).
  4990. # Instead, let's just punt: use the minimum linelength reported by
  4991. # all of the supported platforms: 8192 (on NT/2K/XP).
  4992. lt_cv_sys_max_cmd_len=8192;
  4993. ;;
  4994. mint*)
  4995. # On MiNT this can take a long time and run out of memory.
  4996. lt_cv_sys_max_cmd_len=8192;
  4997. ;;
  4998. amigaos*)
  4999. # On AmigaOS with pdksh, this test takes hours, literally.
  5000. # So we just punt and use a minimum line length of 8192.
  5001. lt_cv_sys_max_cmd_len=8192;
  5002. ;;
  5003. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5004. # This has been around since 386BSD, at least. Likely further.
  5005. if test -x /sbin/sysctl; then
  5006. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5007. elif test -x /usr/sbin/sysctl; then
  5008. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5009. else
  5010. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5011. fi
  5012. # And add a safety zone
  5013. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5014. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5015. ;;
  5016. interix*)
  5017. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5018. lt_cv_sys_max_cmd_len=196608
  5019. ;;
  5020. os2*)
  5021. # The test takes a long time on OS/2.
  5022. lt_cv_sys_max_cmd_len=8192
  5023. ;;
  5024. osf*)
  5025. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5026. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5027. # nice to cause kernel panics so lets avoid the loop below.
  5028. # First set a reasonable default.
  5029. lt_cv_sys_max_cmd_len=16384
  5030. #
  5031. if test -x /sbin/sysconfig; then
  5032. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5033. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5034. esac
  5035. fi
  5036. ;;
  5037. sco3.2v5*)
  5038. lt_cv_sys_max_cmd_len=102400
  5039. ;;
  5040. sysv5* | sco5v6* | sysv4.2uw2*)
  5041. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5042. if test -n "$kargmax"; then
  5043. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5044. else
  5045. lt_cv_sys_max_cmd_len=32768
  5046. fi
  5047. ;;
  5048. *)
  5049. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5050. if test -n "$lt_cv_sys_max_cmd_len"; then
  5051. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5052. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5053. else
  5054. # Make teststring a little bigger before we do anything with it.
  5055. # a 1K string should be a reasonable start.
  5056. for i in 1 2 3 4 5 6 7 8 ; do
  5057. teststring=$teststring$teststring
  5058. done
  5059. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5060. # If test is not a shell built-in, we'll probably end up computing a
  5061. # maximum length that is only half of the actual maximum length, but
  5062. # we can't tell.
  5063. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  5064. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5065. test $i != 17 # 1/2 MB should be enough
  5066. do
  5067. i=`expr $i + 1`
  5068. teststring=$teststring$teststring
  5069. done
  5070. # Only check the string length outside the loop.
  5071. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5072. teststring=
  5073. # Add a significant safety factor because C++ compilers can tack on
  5074. # massive amounts of additional arguments before passing them to the
  5075. # linker. It appears as though 1/2 is a usable value.
  5076. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5077. fi
  5078. ;;
  5079. esac
  5080. fi
  5081. if test -n $lt_cv_sys_max_cmd_len ; then
  5082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5083. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5084. else
  5085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5086. $as_echo "none" >&6; }
  5087. fi
  5088. max_cmd_len=$lt_cv_sys_max_cmd_len
  5089. : ${CP="cp -f"}
  5090. : ${MV="mv -f"}
  5091. : ${RM="rm -f"}
  5092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5093. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5094. # Try some XSI features
  5095. xsi_shell=no
  5096. ( _lt_dummy="a/b/c"
  5097. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  5098. = c,a/b,b/c, \
  5099. && eval 'test $(( 1 + 1 )) -eq 2 \
  5100. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5101. && xsi_shell=yes
  5102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5103. $as_echo "$xsi_shell" >&6; }
  5104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5105. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5106. lt_shell_append=no
  5107. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5108. >/dev/null 2>&1 \
  5109. && lt_shell_append=yes
  5110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5111. $as_echo "$lt_shell_append" >&6; }
  5112. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5113. lt_unset=unset
  5114. else
  5115. lt_unset=false
  5116. fi
  5117. # test EBCDIC or ASCII
  5118. case `echo X|tr X '\101'` in
  5119. A) # ASCII based system
  5120. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5121. lt_SP2NL='tr \040 \012'
  5122. lt_NL2SP='tr \015\012 \040\040'
  5123. ;;
  5124. *) # EBCDIC based system
  5125. lt_SP2NL='tr \100 \n'
  5126. lt_NL2SP='tr \r\n \100\100'
  5127. ;;
  5128. esac
  5129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5130. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5131. if ${lt_cv_to_host_file_cmd+:} false; then :
  5132. $as_echo_n "(cached) " >&6
  5133. else
  5134. case $host in
  5135. *-*-mingw* )
  5136. case $build in
  5137. *-*-mingw* ) # actually msys
  5138. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5139. ;;
  5140. *-*-cygwin* )
  5141. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5142. ;;
  5143. * ) # otherwise, assume *nix
  5144. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5145. ;;
  5146. esac
  5147. ;;
  5148. *-*-cygwin* )
  5149. case $build in
  5150. *-*-mingw* ) # actually msys
  5151. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5152. ;;
  5153. *-*-cygwin* )
  5154. lt_cv_to_host_file_cmd=func_convert_file_noop
  5155. ;;
  5156. * ) # otherwise, assume *nix
  5157. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5158. ;;
  5159. esac
  5160. ;;
  5161. * ) # unhandled hosts (and "normal" native builds)
  5162. lt_cv_to_host_file_cmd=func_convert_file_noop
  5163. ;;
  5164. esac
  5165. fi
  5166. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5168. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5170. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5171. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5172. $as_echo_n "(cached) " >&6
  5173. else
  5174. #assume ordinary cross tools, or native build.
  5175. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5176. case $host in
  5177. *-*-mingw* )
  5178. case $build in
  5179. *-*-mingw* ) # actually msys
  5180. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5181. ;;
  5182. esac
  5183. ;;
  5184. esac
  5185. fi
  5186. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5188. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5190. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5191. if ${lt_cv_ld_reload_flag+:} false; then :
  5192. $as_echo_n "(cached) " >&6
  5193. else
  5194. lt_cv_ld_reload_flag='-r'
  5195. fi
  5196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5197. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5198. reload_flag=$lt_cv_ld_reload_flag
  5199. case $reload_flag in
  5200. "" | " "*) ;;
  5201. *) reload_flag=" $reload_flag" ;;
  5202. esac
  5203. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5204. case $host_os in
  5205. cygwin* | mingw* | pw32* | cegcc*)
  5206. if test "$GCC" != yes; then
  5207. reload_cmds=false
  5208. fi
  5209. ;;
  5210. darwin*)
  5211. if test "$GCC" = yes; then
  5212. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5213. else
  5214. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5215. fi
  5216. ;;
  5217. esac
  5218. if test -n "$ac_tool_prefix"; then
  5219. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5220. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5222. $as_echo_n "checking for $ac_word... " >&6; }
  5223. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5224. $as_echo_n "(cached) " >&6
  5225. else
  5226. if test -n "$OBJDUMP"; then
  5227. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5228. else
  5229. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5230. for as_dir in $PATH
  5231. do
  5232. IFS=$as_save_IFS
  5233. test -z "$as_dir" && as_dir=.
  5234. for ac_exec_ext in '' $ac_executable_extensions; do
  5235. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5236. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5237. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5238. break 2
  5239. fi
  5240. done
  5241. done
  5242. IFS=$as_save_IFS
  5243. fi
  5244. fi
  5245. OBJDUMP=$ac_cv_prog_OBJDUMP
  5246. if test -n "$OBJDUMP"; then
  5247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5248. $as_echo "$OBJDUMP" >&6; }
  5249. else
  5250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5251. $as_echo "no" >&6; }
  5252. fi
  5253. fi
  5254. if test -z "$ac_cv_prog_OBJDUMP"; then
  5255. ac_ct_OBJDUMP=$OBJDUMP
  5256. # Extract the first word of "objdump", so it can be a program name with args.
  5257. set dummy objdump; ac_word=$2
  5258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5259. $as_echo_n "checking for $ac_word... " >&6; }
  5260. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5261. $as_echo_n "(cached) " >&6
  5262. else
  5263. if test -n "$ac_ct_OBJDUMP"; then
  5264. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5265. else
  5266. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5267. for as_dir in $PATH
  5268. do
  5269. IFS=$as_save_IFS
  5270. test -z "$as_dir" && as_dir=.
  5271. for ac_exec_ext in '' $ac_executable_extensions; do
  5272. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5273. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5274. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5275. break 2
  5276. fi
  5277. done
  5278. done
  5279. IFS=$as_save_IFS
  5280. fi
  5281. fi
  5282. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5283. if test -n "$ac_ct_OBJDUMP"; then
  5284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5285. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5286. else
  5287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5288. $as_echo "no" >&6; }
  5289. fi
  5290. if test "x$ac_ct_OBJDUMP" = x; then
  5291. OBJDUMP="false"
  5292. else
  5293. case $cross_compiling:$ac_tool_warned in
  5294. yes:)
  5295. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5296. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5297. ac_tool_warned=yes ;;
  5298. esac
  5299. OBJDUMP=$ac_ct_OBJDUMP
  5300. fi
  5301. else
  5302. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5303. fi
  5304. test -z "$OBJDUMP" && OBJDUMP=objdump
  5305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5306. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5307. if ${lt_cv_deplibs_check_method+:} false; then :
  5308. $as_echo_n "(cached) " >&6
  5309. else
  5310. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5311. lt_cv_file_magic_test_file=
  5312. lt_cv_deplibs_check_method='unknown'
  5313. # Need to set the preceding variable on all platforms that support
  5314. # interlibrary dependencies.
  5315. # 'none' -- dependencies not supported.
  5316. # `unknown' -- same as none, but documents that we really don't know.
  5317. # 'pass_all' -- all dependencies passed with no checks.
  5318. # 'test_compile' -- check by making test program.
  5319. # 'file_magic [[regex]]' -- check by looking for files in library path
  5320. # which responds to the $file_magic_cmd with a given extended regex.
  5321. # If you have `file' or equivalent on your system and you're not sure
  5322. # whether `pass_all' will *always* work, you probably want this one.
  5323. case $host_os in
  5324. aix[4-9]*)
  5325. lt_cv_deplibs_check_method=pass_all
  5326. ;;
  5327. beos*)
  5328. lt_cv_deplibs_check_method=pass_all
  5329. ;;
  5330. bsdi[45]*)
  5331. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5332. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5333. lt_cv_file_magic_test_file=/shlib/libc.so
  5334. ;;
  5335. cygwin*)
  5336. # func_win32_libid is a shell function defined in ltmain.sh
  5337. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5338. lt_cv_file_magic_cmd='func_win32_libid'
  5339. ;;
  5340. mingw* | pw32*)
  5341. # Base MSYS/MinGW do not provide the 'file' command needed by
  5342. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5343. # unless we find 'file', for example because we are cross-compiling.
  5344. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5345. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5346. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5347. lt_cv_file_magic_cmd='func_win32_libid'
  5348. else
  5349. # Keep this pattern in sync with the one in func_win32_libid.
  5350. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5351. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5352. fi
  5353. ;;
  5354. cegcc*)
  5355. # use the weaker test based on 'objdump'. See mingw*.
  5356. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5357. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5358. ;;
  5359. darwin* | rhapsody*)
  5360. lt_cv_deplibs_check_method=pass_all
  5361. ;;
  5362. freebsd* | dragonfly*)
  5363. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5364. case $host_cpu in
  5365. i*86 )
  5366. # Not sure whether the presence of OpenBSD here was a mistake.
  5367. # Let's accept both of them until this is cleared up.
  5368. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5369. lt_cv_file_magic_cmd=/usr/bin/file
  5370. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5371. ;;
  5372. esac
  5373. else
  5374. lt_cv_deplibs_check_method=pass_all
  5375. fi
  5376. ;;
  5377. gnu*)
  5378. lt_cv_deplibs_check_method=pass_all
  5379. ;;
  5380. haiku*)
  5381. lt_cv_deplibs_check_method=pass_all
  5382. ;;
  5383. hpux10.20* | hpux11*)
  5384. lt_cv_file_magic_cmd=/usr/bin/file
  5385. case $host_cpu in
  5386. ia64*)
  5387. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5388. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5389. ;;
  5390. hppa*64*)
  5391. 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]'
  5392. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5393. ;;
  5394. *)
  5395. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5396. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5397. ;;
  5398. esac
  5399. ;;
  5400. interix[3-9]*)
  5401. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5402. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5403. ;;
  5404. irix5* | irix6* | nonstopux*)
  5405. case $LD in
  5406. *-32|*"-32 ") libmagic=32-bit;;
  5407. *-n32|*"-n32 ") libmagic=N32;;
  5408. *-64|*"-64 ") libmagic=64-bit;;
  5409. *) libmagic=never-match;;
  5410. esac
  5411. lt_cv_deplibs_check_method=pass_all
  5412. ;;
  5413. # This must be glibc/ELF.
  5414. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5415. lt_cv_deplibs_check_method=pass_all
  5416. ;;
  5417. netbsd*)
  5418. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5419. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5420. else
  5421. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5422. fi
  5423. ;;
  5424. newos6*)
  5425. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5426. lt_cv_file_magic_cmd=/usr/bin/file
  5427. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5428. ;;
  5429. *nto* | *qnx*)
  5430. lt_cv_deplibs_check_method=pass_all
  5431. ;;
  5432. openbsd*)
  5433. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5434. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5435. else
  5436. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5437. fi
  5438. ;;
  5439. osf3* | osf4* | osf5*)
  5440. lt_cv_deplibs_check_method=pass_all
  5441. ;;
  5442. rdos*)
  5443. lt_cv_deplibs_check_method=pass_all
  5444. ;;
  5445. solaris*)
  5446. lt_cv_deplibs_check_method=pass_all
  5447. ;;
  5448. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5449. lt_cv_deplibs_check_method=pass_all
  5450. ;;
  5451. sysv4 | sysv4.3*)
  5452. case $host_vendor in
  5453. motorola)
  5454. 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]'
  5455. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5456. ;;
  5457. ncr)
  5458. lt_cv_deplibs_check_method=pass_all
  5459. ;;
  5460. sequent)
  5461. lt_cv_file_magic_cmd='/bin/file'
  5462. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5463. ;;
  5464. sni)
  5465. lt_cv_file_magic_cmd='/bin/file'
  5466. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5467. lt_cv_file_magic_test_file=/lib/libc.so
  5468. ;;
  5469. siemens)
  5470. lt_cv_deplibs_check_method=pass_all
  5471. ;;
  5472. pc)
  5473. lt_cv_deplibs_check_method=pass_all
  5474. ;;
  5475. esac
  5476. ;;
  5477. tpf*)
  5478. lt_cv_deplibs_check_method=pass_all
  5479. ;;
  5480. esac
  5481. fi
  5482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5483. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5484. file_magic_glob=
  5485. want_nocaseglob=no
  5486. if test "$build" = "$host"; then
  5487. case $host_os in
  5488. mingw* | pw32*)
  5489. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5490. want_nocaseglob=yes
  5491. else
  5492. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5493. fi
  5494. ;;
  5495. esac
  5496. fi
  5497. file_magic_cmd=$lt_cv_file_magic_cmd
  5498. deplibs_check_method=$lt_cv_deplibs_check_method
  5499. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5500. if test -n "$ac_tool_prefix"; then
  5501. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5502. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5504. $as_echo_n "checking for $ac_word... " >&6; }
  5505. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5506. $as_echo_n "(cached) " >&6
  5507. else
  5508. if test -n "$DLLTOOL"; then
  5509. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5510. else
  5511. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5512. for as_dir in $PATH
  5513. do
  5514. IFS=$as_save_IFS
  5515. test -z "$as_dir" && as_dir=.
  5516. for ac_exec_ext in '' $ac_executable_extensions; do
  5517. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5518. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5519. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5520. break 2
  5521. fi
  5522. done
  5523. done
  5524. IFS=$as_save_IFS
  5525. fi
  5526. fi
  5527. DLLTOOL=$ac_cv_prog_DLLTOOL
  5528. if test -n "$DLLTOOL"; then
  5529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5530. $as_echo "$DLLTOOL" >&6; }
  5531. else
  5532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5533. $as_echo "no" >&6; }
  5534. fi
  5535. fi
  5536. if test -z "$ac_cv_prog_DLLTOOL"; then
  5537. ac_ct_DLLTOOL=$DLLTOOL
  5538. # Extract the first word of "dlltool", so it can be a program name with args.
  5539. set dummy dlltool; ac_word=$2
  5540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5541. $as_echo_n "checking for $ac_word... " >&6; }
  5542. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5543. $as_echo_n "(cached) " >&6
  5544. else
  5545. if test -n "$ac_ct_DLLTOOL"; then
  5546. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5547. else
  5548. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5549. for as_dir in $PATH
  5550. do
  5551. IFS=$as_save_IFS
  5552. test -z "$as_dir" && as_dir=.
  5553. for ac_exec_ext in '' $ac_executable_extensions; do
  5554. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5555. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5556. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5557. break 2
  5558. fi
  5559. done
  5560. done
  5561. IFS=$as_save_IFS
  5562. fi
  5563. fi
  5564. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5565. if test -n "$ac_ct_DLLTOOL"; then
  5566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5567. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5568. else
  5569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5570. $as_echo "no" >&6; }
  5571. fi
  5572. if test "x$ac_ct_DLLTOOL" = x; then
  5573. DLLTOOL="false"
  5574. else
  5575. case $cross_compiling:$ac_tool_warned in
  5576. yes:)
  5577. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5578. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5579. ac_tool_warned=yes ;;
  5580. esac
  5581. DLLTOOL=$ac_ct_DLLTOOL
  5582. fi
  5583. else
  5584. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5585. fi
  5586. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5588. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5589. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5590. $as_echo_n "(cached) " >&6
  5591. else
  5592. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5593. case $host_os in
  5594. cygwin* | mingw* | pw32* | cegcc*)
  5595. # two different shell functions defined in ltmain.sh
  5596. # decide which to use based on capabilities of $DLLTOOL
  5597. case `$DLLTOOL --help 2>&1` in
  5598. *--identify-strict*)
  5599. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5600. ;;
  5601. *)
  5602. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5603. ;;
  5604. esac
  5605. ;;
  5606. *)
  5607. # fallback: assume linklib IS sharedlib
  5608. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  5609. ;;
  5610. esac
  5611. fi
  5612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5613. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5614. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5615. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5616. if test -n "$ac_tool_prefix"; then
  5617. for ac_prog in ar
  5618. do
  5619. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5620. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5622. $as_echo_n "checking for $ac_word... " >&6; }
  5623. if ${ac_cv_prog_AR+:} false; then :
  5624. $as_echo_n "(cached) " >&6
  5625. else
  5626. if test -n "$AR"; then
  5627. ac_cv_prog_AR="$AR" # Let the user override the test.
  5628. else
  5629. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5630. for as_dir in $PATH
  5631. do
  5632. IFS=$as_save_IFS
  5633. test -z "$as_dir" && as_dir=.
  5634. for ac_exec_ext in '' $ac_executable_extensions; do
  5635. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5636. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5637. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5638. break 2
  5639. fi
  5640. done
  5641. done
  5642. IFS=$as_save_IFS
  5643. fi
  5644. fi
  5645. AR=$ac_cv_prog_AR
  5646. if test -n "$AR"; then
  5647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5648. $as_echo "$AR" >&6; }
  5649. else
  5650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5651. $as_echo "no" >&6; }
  5652. fi
  5653. test -n "$AR" && break
  5654. done
  5655. fi
  5656. if test -z "$AR"; then
  5657. ac_ct_AR=$AR
  5658. for ac_prog in ar
  5659. do
  5660. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5661. set dummy $ac_prog; ac_word=$2
  5662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5663. $as_echo_n "checking for $ac_word... " >&6; }
  5664. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5665. $as_echo_n "(cached) " >&6
  5666. else
  5667. if test -n "$ac_ct_AR"; then
  5668. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5669. else
  5670. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5671. for as_dir in $PATH
  5672. do
  5673. IFS=$as_save_IFS
  5674. test -z "$as_dir" && as_dir=.
  5675. for ac_exec_ext in '' $ac_executable_extensions; do
  5676. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5677. ac_cv_prog_ac_ct_AR="$ac_prog"
  5678. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5679. break 2
  5680. fi
  5681. done
  5682. done
  5683. IFS=$as_save_IFS
  5684. fi
  5685. fi
  5686. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5687. if test -n "$ac_ct_AR"; then
  5688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5689. $as_echo "$ac_ct_AR" >&6; }
  5690. else
  5691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5692. $as_echo "no" >&6; }
  5693. fi
  5694. test -n "$ac_ct_AR" && break
  5695. done
  5696. if test "x$ac_ct_AR" = x; then
  5697. AR="false"
  5698. else
  5699. case $cross_compiling:$ac_tool_warned in
  5700. yes:)
  5701. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5702. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5703. ac_tool_warned=yes ;;
  5704. esac
  5705. AR=$ac_ct_AR
  5706. fi
  5707. fi
  5708. : ${AR=ar}
  5709. : ${AR_FLAGS=cru}
  5710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5711. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5712. if ${lt_cv_ar_at_file+:} false; then :
  5713. $as_echo_n "(cached) " >&6
  5714. else
  5715. lt_cv_ar_at_file=no
  5716. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5717. /* end confdefs.h. */
  5718. int
  5719. main ()
  5720. {
  5721. ;
  5722. return 0;
  5723. }
  5724. _ACEOF
  5725. if ac_fn_c_try_compile "$LINENO"; then :
  5726. echo conftest.$ac_objext > conftest.lst
  5727. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5728. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5729. (eval $lt_ar_try) 2>&5
  5730. ac_status=$?
  5731. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5732. test $ac_status = 0; }
  5733. if test "$ac_status" -eq 0; then
  5734. # Ensure the archiver fails upon bogus file names.
  5735. rm -f conftest.$ac_objext libconftest.a
  5736. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5737. (eval $lt_ar_try) 2>&5
  5738. ac_status=$?
  5739. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5740. test $ac_status = 0; }
  5741. if test "$ac_status" -ne 0; then
  5742. lt_cv_ar_at_file=@
  5743. fi
  5744. fi
  5745. rm -f conftest.* libconftest.a
  5746. fi
  5747. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5748. fi
  5749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5750. $as_echo "$lt_cv_ar_at_file" >&6; }
  5751. if test "x$lt_cv_ar_at_file" = xno; then
  5752. archiver_list_spec=
  5753. else
  5754. archiver_list_spec=$lt_cv_ar_at_file
  5755. fi
  5756. if test -n "$ac_tool_prefix"; then
  5757. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5758. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5760. $as_echo_n "checking for $ac_word... " >&6; }
  5761. if ${ac_cv_prog_STRIP+:} false; then :
  5762. $as_echo_n "(cached) " >&6
  5763. else
  5764. if test -n "$STRIP"; then
  5765. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5766. else
  5767. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5768. for as_dir in $PATH
  5769. do
  5770. IFS=$as_save_IFS
  5771. test -z "$as_dir" && as_dir=.
  5772. for ac_exec_ext in '' $ac_executable_extensions; do
  5773. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5774. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5775. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5776. break 2
  5777. fi
  5778. done
  5779. done
  5780. IFS=$as_save_IFS
  5781. fi
  5782. fi
  5783. STRIP=$ac_cv_prog_STRIP
  5784. if test -n "$STRIP"; then
  5785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5786. $as_echo "$STRIP" >&6; }
  5787. else
  5788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5789. $as_echo "no" >&6; }
  5790. fi
  5791. fi
  5792. if test -z "$ac_cv_prog_STRIP"; then
  5793. ac_ct_STRIP=$STRIP
  5794. # Extract the first word of "strip", so it can be a program name with args.
  5795. set dummy strip; ac_word=$2
  5796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5797. $as_echo_n "checking for $ac_word... " >&6; }
  5798. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5799. $as_echo_n "(cached) " >&6
  5800. else
  5801. if test -n "$ac_ct_STRIP"; then
  5802. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5803. else
  5804. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5805. for as_dir in $PATH
  5806. do
  5807. IFS=$as_save_IFS
  5808. test -z "$as_dir" && as_dir=.
  5809. for ac_exec_ext in '' $ac_executable_extensions; do
  5810. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5811. ac_cv_prog_ac_ct_STRIP="strip"
  5812. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5813. break 2
  5814. fi
  5815. done
  5816. done
  5817. IFS=$as_save_IFS
  5818. fi
  5819. fi
  5820. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5821. if test -n "$ac_ct_STRIP"; then
  5822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5823. $as_echo "$ac_ct_STRIP" >&6; }
  5824. else
  5825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5826. $as_echo "no" >&6; }
  5827. fi
  5828. if test "x$ac_ct_STRIP" = x; then
  5829. STRIP=":"
  5830. else
  5831. case $cross_compiling:$ac_tool_warned in
  5832. yes:)
  5833. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5834. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5835. ac_tool_warned=yes ;;
  5836. esac
  5837. STRIP=$ac_ct_STRIP
  5838. fi
  5839. else
  5840. STRIP="$ac_cv_prog_STRIP"
  5841. fi
  5842. test -z "$STRIP" && STRIP=:
  5843. if test -n "$ac_tool_prefix"; then
  5844. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5845. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5847. $as_echo_n "checking for $ac_word... " >&6; }
  5848. if ${ac_cv_prog_RANLIB+:} false; then :
  5849. $as_echo_n "(cached) " >&6
  5850. else
  5851. if test -n "$RANLIB"; then
  5852. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5853. else
  5854. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5855. for as_dir in $PATH
  5856. do
  5857. IFS=$as_save_IFS
  5858. test -z "$as_dir" && as_dir=.
  5859. for ac_exec_ext in '' $ac_executable_extensions; do
  5860. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5861. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5862. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5863. break 2
  5864. fi
  5865. done
  5866. done
  5867. IFS=$as_save_IFS
  5868. fi
  5869. fi
  5870. RANLIB=$ac_cv_prog_RANLIB
  5871. if test -n "$RANLIB"; then
  5872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5873. $as_echo "$RANLIB" >&6; }
  5874. else
  5875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5876. $as_echo "no" >&6; }
  5877. fi
  5878. fi
  5879. if test -z "$ac_cv_prog_RANLIB"; then
  5880. ac_ct_RANLIB=$RANLIB
  5881. # Extract the first word of "ranlib", so it can be a program name with args.
  5882. set dummy ranlib; ac_word=$2
  5883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5884. $as_echo_n "checking for $ac_word... " >&6; }
  5885. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5886. $as_echo_n "(cached) " >&6
  5887. else
  5888. if test -n "$ac_ct_RANLIB"; then
  5889. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5890. else
  5891. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5892. for as_dir in $PATH
  5893. do
  5894. IFS=$as_save_IFS
  5895. test -z "$as_dir" && as_dir=.
  5896. for ac_exec_ext in '' $ac_executable_extensions; do
  5897. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5898. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5899. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5900. break 2
  5901. fi
  5902. done
  5903. done
  5904. IFS=$as_save_IFS
  5905. fi
  5906. fi
  5907. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5908. if test -n "$ac_ct_RANLIB"; then
  5909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5910. $as_echo "$ac_ct_RANLIB" >&6; }
  5911. else
  5912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5913. $as_echo "no" >&6; }
  5914. fi
  5915. if test "x$ac_ct_RANLIB" = x; then
  5916. RANLIB=":"
  5917. else
  5918. case $cross_compiling:$ac_tool_warned in
  5919. yes:)
  5920. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5921. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5922. ac_tool_warned=yes ;;
  5923. esac
  5924. RANLIB=$ac_ct_RANLIB
  5925. fi
  5926. else
  5927. RANLIB="$ac_cv_prog_RANLIB"
  5928. fi
  5929. test -z "$RANLIB" && RANLIB=:
  5930. # Determine commands to create old-style static archives.
  5931. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5932. old_postinstall_cmds='chmod 644 $oldlib'
  5933. old_postuninstall_cmds=
  5934. if test -n "$RANLIB"; then
  5935. case $host_os in
  5936. openbsd*)
  5937. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5938. ;;
  5939. *)
  5940. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5941. ;;
  5942. esac
  5943. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5944. fi
  5945. case $host_os in
  5946. darwin*)
  5947. lock_old_archive_extraction=yes ;;
  5948. *)
  5949. lock_old_archive_extraction=no ;;
  5950. esac
  5951. # If no C compiler was specified, use CC.
  5952. LTCC=${LTCC-"$CC"}
  5953. # If no C compiler flags were specified, use CFLAGS.
  5954. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5955. # Allow CC to be a program name with arguments.
  5956. compiler=$CC
  5957. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5959. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5960. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5961. $as_echo_n "(cached) " >&6
  5962. else
  5963. # These are sane defaults that work on at least a few old systems.
  5964. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5965. # Character class describing NM global symbol codes.
  5966. symcode='[BCDEGRST]'
  5967. # Regexp to match symbols that can be accessed directly from C.
  5968. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5969. # Define system-specific variables.
  5970. case $host_os in
  5971. aix*)
  5972. symcode='[BCDT]'
  5973. ;;
  5974. cygwin* | mingw* | pw32* | cegcc*)
  5975. symcode='[ABCDGISTW]'
  5976. ;;
  5977. hpux*)
  5978. if test "$host_cpu" = ia64; then
  5979. symcode='[ABCDEGRST]'
  5980. fi
  5981. ;;
  5982. irix* | nonstopux*)
  5983. symcode='[BCDEGRST]'
  5984. ;;
  5985. osf*)
  5986. symcode='[BCDEGQRST]'
  5987. ;;
  5988. solaris*)
  5989. symcode='[BDRT]'
  5990. ;;
  5991. sco3.2v5*)
  5992. symcode='[DT]'
  5993. ;;
  5994. sysv4.2uw2*)
  5995. symcode='[DT]'
  5996. ;;
  5997. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5998. symcode='[ABDT]'
  5999. ;;
  6000. sysv4)
  6001. symcode='[DFNSTU]'
  6002. ;;
  6003. esac
  6004. # If we're using GNU nm, then use its standard symbol codes.
  6005. case `$NM -V 2>&1` in
  6006. *GNU* | *'with BFD'*)
  6007. symcode='[ABCDGIRSTW]' ;;
  6008. esac
  6009. # Transform an extracted symbol line into a proper C declaration.
  6010. # Some systems (esp. on ia64) link data and code symbols differently,
  6011. # so use this general approach.
  6012. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6013. # Transform an extracted symbol line into symbol name and symbol address
  6014. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6015. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  6016. # Handle CRLF in mingw tool chain
  6017. opt_cr=
  6018. case $build_os in
  6019. mingw*)
  6020. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6021. ;;
  6022. esac
  6023. # Try without a prefix underscore, then with it.
  6024. for ac_symprfx in "" "_"; do
  6025. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6026. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6027. # Write the raw and C identifiers.
  6028. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6029. # Fake it for dumpbin and say T for any non-static function
  6030. # and D for any global variable.
  6031. # Also find C++ and __fastcall symbols from MSVC++,
  6032. # which start with @ or ?.
  6033. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6034. " {last_section=section; section=\$ 3};"\
  6035. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6036. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6037. " \$ 0!~/External *\|/{next};"\
  6038. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6039. " {if(hide[section]) next};"\
  6040. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6041. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6042. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6043. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6044. " ' prfx=^$ac_symprfx"
  6045. else
  6046. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6047. fi
  6048. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6049. # Check to see that the pipe works correctly.
  6050. pipe_works=no
  6051. rm -f conftest*
  6052. cat > conftest.$ac_ext <<_LT_EOF
  6053. #ifdef __cplusplus
  6054. extern "C" {
  6055. #endif
  6056. char nm_test_var;
  6057. void nm_test_func(void);
  6058. void nm_test_func(void){}
  6059. #ifdef __cplusplus
  6060. }
  6061. #endif
  6062. int main(){nm_test_var='a';nm_test_func();return(0);}
  6063. _LT_EOF
  6064. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6065. (eval $ac_compile) 2>&5
  6066. ac_status=$?
  6067. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6068. test $ac_status = 0; }; then
  6069. # Now try to grab the symbols.
  6070. nlist=conftest.nm
  6071. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6072. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6073. ac_status=$?
  6074. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6075. test $ac_status = 0; } && test -s "$nlist"; then
  6076. # Try sorting and uniquifying the output.
  6077. if sort "$nlist" | uniq > "$nlist"T; then
  6078. mv -f "$nlist"T "$nlist"
  6079. else
  6080. rm -f "$nlist"T
  6081. fi
  6082. # Make sure that we snagged all the symbols we need.
  6083. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6084. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6085. cat <<_LT_EOF > conftest.$ac_ext
  6086. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6087. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  6088. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  6089. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6090. # define LT_DLSYM_CONST
  6091. #elif defined(__osf__)
  6092. /* This system does not cope well with relocations in const data. */
  6093. # define LT_DLSYM_CONST
  6094. #else
  6095. # define LT_DLSYM_CONST const
  6096. #endif
  6097. #ifdef __cplusplus
  6098. extern "C" {
  6099. #endif
  6100. _LT_EOF
  6101. # Now generate the symbol file.
  6102. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6103. cat <<_LT_EOF >> conftest.$ac_ext
  6104. /* The mapping between symbol names and symbols. */
  6105. LT_DLSYM_CONST struct {
  6106. const char *name;
  6107. void *address;
  6108. }
  6109. lt__PROGRAM__LTX_preloaded_symbols[] =
  6110. {
  6111. { "@PROGRAM@", (void *) 0 },
  6112. _LT_EOF
  6113. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6114. cat <<\_LT_EOF >> conftest.$ac_ext
  6115. {0, (void *) 0}
  6116. };
  6117. /* This works around a problem in FreeBSD linker */
  6118. #ifdef FREEBSD_WORKAROUND
  6119. static const void *lt_preloaded_setup() {
  6120. return lt__PROGRAM__LTX_preloaded_symbols;
  6121. }
  6122. #endif
  6123. #ifdef __cplusplus
  6124. }
  6125. #endif
  6126. _LT_EOF
  6127. # Now try linking the two files.
  6128. mv conftest.$ac_objext conftstm.$ac_objext
  6129. lt_globsym_save_LIBS=$LIBS
  6130. lt_globsym_save_CFLAGS=$CFLAGS
  6131. LIBS="conftstm.$ac_objext"
  6132. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6133. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6134. (eval $ac_link) 2>&5
  6135. ac_status=$?
  6136. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6137. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6138. pipe_works=yes
  6139. fi
  6140. LIBS=$lt_globsym_save_LIBS
  6141. CFLAGS=$lt_globsym_save_CFLAGS
  6142. else
  6143. echo "cannot find nm_test_func in $nlist" >&5
  6144. fi
  6145. else
  6146. echo "cannot find nm_test_var in $nlist" >&5
  6147. fi
  6148. else
  6149. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6150. fi
  6151. else
  6152. echo "$progname: failed program was:" >&5
  6153. cat conftest.$ac_ext >&5
  6154. fi
  6155. rm -rf conftest* conftst*
  6156. # Do not use the global_symbol_pipe unless it works.
  6157. if test "$pipe_works" = yes; then
  6158. break
  6159. else
  6160. lt_cv_sys_global_symbol_pipe=
  6161. fi
  6162. done
  6163. fi
  6164. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6165. lt_cv_sys_global_symbol_to_cdecl=
  6166. fi
  6167. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6169. $as_echo "failed" >&6; }
  6170. else
  6171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6172. $as_echo "ok" >&6; }
  6173. fi
  6174. # Response file support.
  6175. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6176. nm_file_list_spec='@'
  6177. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6178. nm_file_list_spec='@'
  6179. fi
  6180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6181. $as_echo_n "checking for sysroot... " >&6; }
  6182. # Check whether --with-sysroot was given.
  6183. if test "${with_sysroot+set}" = set; then :
  6184. withval=$with_sysroot;
  6185. else
  6186. with_sysroot=no
  6187. fi
  6188. lt_sysroot=
  6189. case ${with_sysroot} in #(
  6190. yes)
  6191. if test "$GCC" = yes; then
  6192. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6193. fi
  6194. ;; #(
  6195. /*)
  6196. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6197. ;; #(
  6198. no|'')
  6199. ;; #(
  6200. *)
  6201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  6202. $as_echo "${with_sysroot}" >&6; }
  6203. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6204. ;;
  6205. esac
  6206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6207. $as_echo "${lt_sysroot:-no}" >&6; }
  6208. # Check whether --enable-libtool-lock was given.
  6209. if test "${enable_libtool_lock+set}" = set; then :
  6210. enableval=$enable_libtool_lock;
  6211. fi
  6212. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6213. # Some flags need to be propagated to the compiler or linker for good
  6214. # libtool support.
  6215. case $host in
  6216. ia64-*-hpux*)
  6217. # Find out which ABI we are using.
  6218. echo 'int i;' > conftest.$ac_ext
  6219. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6220. (eval $ac_compile) 2>&5
  6221. ac_status=$?
  6222. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6223. test $ac_status = 0; }; then
  6224. case `/usr/bin/file conftest.$ac_objext` in
  6225. *ELF-32*)
  6226. HPUX_IA64_MODE="32"
  6227. ;;
  6228. *ELF-64*)
  6229. HPUX_IA64_MODE="64"
  6230. ;;
  6231. esac
  6232. fi
  6233. rm -rf conftest*
  6234. ;;
  6235. *-*-irix6*)
  6236. # Find out which ABI we are using.
  6237. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6238. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6239. (eval $ac_compile) 2>&5
  6240. ac_status=$?
  6241. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6242. test $ac_status = 0; }; then
  6243. if test "$lt_cv_prog_gnu_ld" = yes; then
  6244. case `/usr/bin/file conftest.$ac_objext` in
  6245. *32-bit*)
  6246. LD="${LD-ld} -melf32bsmip"
  6247. ;;
  6248. *N32*)
  6249. LD="${LD-ld} -melf32bmipn32"
  6250. ;;
  6251. *64-bit*)
  6252. LD="${LD-ld} -melf64bmip"
  6253. ;;
  6254. esac
  6255. else
  6256. case `/usr/bin/file conftest.$ac_objext` in
  6257. *32-bit*)
  6258. LD="${LD-ld} -32"
  6259. ;;
  6260. *N32*)
  6261. LD="${LD-ld} -n32"
  6262. ;;
  6263. *64-bit*)
  6264. LD="${LD-ld} -64"
  6265. ;;
  6266. esac
  6267. fi
  6268. fi
  6269. rm -rf conftest*
  6270. ;;
  6271. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6272. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6273. # Find out which ABI we are using.
  6274. echo 'int i;' > conftest.$ac_ext
  6275. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6276. (eval $ac_compile) 2>&5
  6277. ac_status=$?
  6278. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6279. test $ac_status = 0; }; then
  6280. case `/usr/bin/file conftest.o` in
  6281. *32-bit*)
  6282. case $host in
  6283. x86_64-*kfreebsd*-gnu)
  6284. LD="${LD-ld} -m elf_i386_fbsd"
  6285. ;;
  6286. x86_64-*linux*)
  6287. LD="${LD-ld} -m elf_i386"
  6288. ;;
  6289. powerpc64le-*linux*)
  6290. LD="${LD-ld} -m elf32lppclinux"
  6291. ;;
  6292. powerpc64-*linux*)
  6293. LD="${LD-ld} -m elf32ppclinux"
  6294. ;;
  6295. s390x-*linux*)
  6296. LD="${LD-ld} -m elf_s390"
  6297. ;;
  6298. sparc64-*linux*)
  6299. LD="${LD-ld} -m elf32_sparc"
  6300. ;;
  6301. esac
  6302. ;;
  6303. *64-bit*)
  6304. case $host in
  6305. x86_64-*kfreebsd*-gnu)
  6306. LD="${LD-ld} -m elf_x86_64_fbsd"
  6307. ;;
  6308. x86_64-*linux*)
  6309. LD="${LD-ld} -m elf_x86_64"
  6310. ;;
  6311. powerpcle-*linux*)
  6312. LD="${LD-ld} -m elf64lppc"
  6313. ;;
  6314. powerpc-*linux*)
  6315. LD="${LD-ld} -m elf64ppc"
  6316. ;;
  6317. s390*-*linux*|s390*-*tpf*)
  6318. LD="${LD-ld} -m elf64_s390"
  6319. ;;
  6320. sparc*-*linux*)
  6321. LD="${LD-ld} -m elf64_sparc"
  6322. ;;
  6323. esac
  6324. ;;
  6325. esac
  6326. fi
  6327. rm -rf conftest*
  6328. ;;
  6329. *-*-sco3.2v5*)
  6330. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6331. SAVE_CFLAGS="$CFLAGS"
  6332. CFLAGS="$CFLAGS -belf"
  6333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6334. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6335. if ${lt_cv_cc_needs_belf+:} false; then :
  6336. $as_echo_n "(cached) " >&6
  6337. else
  6338. ac_ext=c
  6339. ac_cpp='$CPP $CPPFLAGS'
  6340. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6341. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6342. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6344. /* end confdefs.h. */
  6345. int
  6346. main ()
  6347. {
  6348. ;
  6349. return 0;
  6350. }
  6351. _ACEOF
  6352. if ac_fn_c_try_link "$LINENO"; then :
  6353. lt_cv_cc_needs_belf=yes
  6354. else
  6355. lt_cv_cc_needs_belf=no
  6356. fi
  6357. rm -f core conftest.err conftest.$ac_objext \
  6358. conftest$ac_exeext conftest.$ac_ext
  6359. ac_ext=c
  6360. ac_cpp='$CPP $CPPFLAGS'
  6361. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6362. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6363. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6364. fi
  6365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6366. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6367. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6368. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6369. CFLAGS="$SAVE_CFLAGS"
  6370. fi
  6371. ;;
  6372. *-*solaris*)
  6373. # Find out which ABI we are using.
  6374. echo 'int i;' > conftest.$ac_ext
  6375. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6376. (eval $ac_compile) 2>&5
  6377. ac_status=$?
  6378. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6379. test $ac_status = 0; }; then
  6380. case `/usr/bin/file conftest.o` in
  6381. *64-bit*)
  6382. case $lt_cv_prog_gnu_ld in
  6383. yes*)
  6384. case $host in
  6385. i?86-*-solaris*)
  6386. LD="${LD-ld} -m elf_x86_64"
  6387. ;;
  6388. sparc*-*-solaris*)
  6389. LD="${LD-ld} -m elf64_sparc"
  6390. ;;
  6391. esac
  6392. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6393. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6394. LD="${LD-ld}_sol2"
  6395. fi
  6396. ;;
  6397. *)
  6398. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6399. LD="${LD-ld} -64"
  6400. fi
  6401. ;;
  6402. esac
  6403. ;;
  6404. esac
  6405. fi
  6406. rm -rf conftest*
  6407. ;;
  6408. esac
  6409. need_locks="$enable_libtool_lock"
  6410. if test -n "$ac_tool_prefix"; then
  6411. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6412. set dummy ${ac_tool_prefix}mt; 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_MANIFEST_TOOL+:} false; then :
  6416. $as_echo_n "(cached) " >&6
  6417. else
  6418. if test -n "$MANIFEST_TOOL"; then
  6419. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # 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_MANIFEST_TOOL="${ac_tool_prefix}mt"
  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. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6438. if test -n "$MANIFEST_TOOL"; then
  6439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6440. $as_echo "$MANIFEST_TOOL" >&6; }
  6441. else
  6442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6443. $as_echo "no" >&6; }
  6444. fi
  6445. fi
  6446. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6447. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6448. # Extract the first word of "mt", so it can be a program name with args.
  6449. set dummy mt; ac_word=$2
  6450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6451. $as_echo_n "checking for $ac_word... " >&6; }
  6452. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6453. $as_echo_n "(cached) " >&6
  6454. else
  6455. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6456. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6457. else
  6458. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6459. for as_dir in $PATH
  6460. do
  6461. IFS=$as_save_IFS
  6462. test -z "$as_dir" && as_dir=.
  6463. for ac_exec_ext in '' $ac_executable_extensions; do
  6464. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6465. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6466. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6467. break 2
  6468. fi
  6469. done
  6470. done
  6471. IFS=$as_save_IFS
  6472. fi
  6473. fi
  6474. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6475. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6477. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6478. else
  6479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6480. $as_echo "no" >&6; }
  6481. fi
  6482. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6483. MANIFEST_TOOL=":"
  6484. else
  6485. case $cross_compiling:$ac_tool_warned in
  6486. yes:)
  6487. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6488. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6489. ac_tool_warned=yes ;;
  6490. esac
  6491. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6492. fi
  6493. else
  6494. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6495. fi
  6496. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6498. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6499. if ${lt_cv_path_mainfest_tool+:} false; then :
  6500. $as_echo_n "(cached) " >&6
  6501. else
  6502. lt_cv_path_mainfest_tool=no
  6503. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6504. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6505. cat conftest.err >&5
  6506. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6507. lt_cv_path_mainfest_tool=yes
  6508. fi
  6509. rm -f conftest*
  6510. fi
  6511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6512. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6513. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  6514. MANIFEST_TOOL=:
  6515. fi
  6516. case $host_os in
  6517. rhapsody* | darwin*)
  6518. if test -n "$ac_tool_prefix"; then
  6519. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6520. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6522. $as_echo_n "checking for $ac_word... " >&6; }
  6523. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6524. $as_echo_n "(cached) " >&6
  6525. else
  6526. if test -n "$DSYMUTIL"; then
  6527. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6528. else
  6529. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6530. for as_dir in $PATH
  6531. do
  6532. IFS=$as_save_IFS
  6533. test -z "$as_dir" && as_dir=.
  6534. for ac_exec_ext in '' $ac_executable_extensions; do
  6535. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6536. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6537. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6538. break 2
  6539. fi
  6540. done
  6541. done
  6542. IFS=$as_save_IFS
  6543. fi
  6544. fi
  6545. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6546. if test -n "$DSYMUTIL"; then
  6547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6548. $as_echo "$DSYMUTIL" >&6; }
  6549. else
  6550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6551. $as_echo "no" >&6; }
  6552. fi
  6553. fi
  6554. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6555. ac_ct_DSYMUTIL=$DSYMUTIL
  6556. # Extract the first word of "dsymutil", so it can be a program name with args.
  6557. set dummy dsymutil; ac_word=$2
  6558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6559. $as_echo_n "checking for $ac_word... " >&6; }
  6560. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6561. $as_echo_n "(cached) " >&6
  6562. else
  6563. if test -n "$ac_ct_DSYMUTIL"; then
  6564. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6565. else
  6566. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6567. for as_dir in $PATH
  6568. do
  6569. IFS=$as_save_IFS
  6570. test -z "$as_dir" && as_dir=.
  6571. for ac_exec_ext in '' $ac_executable_extensions; do
  6572. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6573. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6574. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6575. break 2
  6576. fi
  6577. done
  6578. done
  6579. IFS=$as_save_IFS
  6580. fi
  6581. fi
  6582. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6583. if test -n "$ac_ct_DSYMUTIL"; then
  6584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6585. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6586. else
  6587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6588. $as_echo "no" >&6; }
  6589. fi
  6590. if test "x$ac_ct_DSYMUTIL" = x; then
  6591. DSYMUTIL=":"
  6592. else
  6593. case $cross_compiling:$ac_tool_warned in
  6594. yes:)
  6595. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6596. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6597. ac_tool_warned=yes ;;
  6598. esac
  6599. DSYMUTIL=$ac_ct_DSYMUTIL
  6600. fi
  6601. else
  6602. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6603. fi
  6604. if test -n "$ac_tool_prefix"; then
  6605. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6606. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6608. $as_echo_n "checking for $ac_word... " >&6; }
  6609. if ${ac_cv_prog_NMEDIT+:} false; then :
  6610. $as_echo_n "(cached) " >&6
  6611. else
  6612. if test -n "$NMEDIT"; then
  6613. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6614. else
  6615. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6616. for as_dir in $PATH
  6617. do
  6618. IFS=$as_save_IFS
  6619. test -z "$as_dir" && as_dir=.
  6620. for ac_exec_ext in '' $ac_executable_extensions; do
  6621. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6622. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6623. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6624. break 2
  6625. fi
  6626. done
  6627. done
  6628. IFS=$as_save_IFS
  6629. fi
  6630. fi
  6631. NMEDIT=$ac_cv_prog_NMEDIT
  6632. if test -n "$NMEDIT"; then
  6633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6634. $as_echo "$NMEDIT" >&6; }
  6635. else
  6636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6637. $as_echo "no" >&6; }
  6638. fi
  6639. fi
  6640. if test -z "$ac_cv_prog_NMEDIT"; then
  6641. ac_ct_NMEDIT=$NMEDIT
  6642. # Extract the first word of "nmedit", so it can be a program name with args.
  6643. set dummy nmedit; ac_word=$2
  6644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6645. $as_echo_n "checking for $ac_word... " >&6; }
  6646. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6647. $as_echo_n "(cached) " >&6
  6648. else
  6649. if test -n "$ac_ct_NMEDIT"; then
  6650. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6651. else
  6652. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6653. for as_dir in $PATH
  6654. do
  6655. IFS=$as_save_IFS
  6656. test -z "$as_dir" && as_dir=.
  6657. for ac_exec_ext in '' $ac_executable_extensions; do
  6658. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6659. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6660. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6661. break 2
  6662. fi
  6663. done
  6664. done
  6665. IFS=$as_save_IFS
  6666. fi
  6667. fi
  6668. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6669. if test -n "$ac_ct_NMEDIT"; then
  6670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6671. $as_echo "$ac_ct_NMEDIT" >&6; }
  6672. else
  6673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6674. $as_echo "no" >&6; }
  6675. fi
  6676. if test "x$ac_ct_NMEDIT" = x; then
  6677. NMEDIT=":"
  6678. else
  6679. case $cross_compiling:$ac_tool_warned in
  6680. yes:)
  6681. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6682. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6683. ac_tool_warned=yes ;;
  6684. esac
  6685. NMEDIT=$ac_ct_NMEDIT
  6686. fi
  6687. else
  6688. NMEDIT="$ac_cv_prog_NMEDIT"
  6689. fi
  6690. if test -n "$ac_tool_prefix"; then
  6691. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6692. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6694. $as_echo_n "checking for $ac_word... " >&6; }
  6695. if ${ac_cv_prog_LIPO+:} false; then :
  6696. $as_echo_n "(cached) " >&6
  6697. else
  6698. if test -n "$LIPO"; then
  6699. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6700. else
  6701. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6702. for as_dir in $PATH
  6703. do
  6704. IFS=$as_save_IFS
  6705. test -z "$as_dir" && as_dir=.
  6706. for ac_exec_ext in '' $ac_executable_extensions; do
  6707. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6708. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6709. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6710. break 2
  6711. fi
  6712. done
  6713. done
  6714. IFS=$as_save_IFS
  6715. fi
  6716. fi
  6717. LIPO=$ac_cv_prog_LIPO
  6718. if test -n "$LIPO"; then
  6719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6720. $as_echo "$LIPO" >&6; }
  6721. else
  6722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6723. $as_echo "no" >&6; }
  6724. fi
  6725. fi
  6726. if test -z "$ac_cv_prog_LIPO"; then
  6727. ac_ct_LIPO=$LIPO
  6728. # Extract the first word of "lipo", so it can be a program name with args.
  6729. set dummy lipo; ac_word=$2
  6730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6731. $as_echo_n "checking for $ac_word... " >&6; }
  6732. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6733. $as_echo_n "(cached) " >&6
  6734. else
  6735. if test -n "$ac_ct_LIPO"; then
  6736. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6737. else
  6738. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6739. for as_dir in $PATH
  6740. do
  6741. IFS=$as_save_IFS
  6742. test -z "$as_dir" && as_dir=.
  6743. for ac_exec_ext in '' $ac_executable_extensions; do
  6744. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6745. ac_cv_prog_ac_ct_LIPO="lipo"
  6746. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6747. break 2
  6748. fi
  6749. done
  6750. done
  6751. IFS=$as_save_IFS
  6752. fi
  6753. fi
  6754. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6755. if test -n "$ac_ct_LIPO"; then
  6756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6757. $as_echo "$ac_ct_LIPO" >&6; }
  6758. else
  6759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6760. $as_echo "no" >&6; }
  6761. fi
  6762. if test "x$ac_ct_LIPO" = x; then
  6763. LIPO=":"
  6764. else
  6765. case $cross_compiling:$ac_tool_warned in
  6766. yes:)
  6767. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6768. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6769. ac_tool_warned=yes ;;
  6770. esac
  6771. LIPO=$ac_ct_LIPO
  6772. fi
  6773. else
  6774. LIPO="$ac_cv_prog_LIPO"
  6775. fi
  6776. if test -n "$ac_tool_prefix"; then
  6777. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6778. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6780. $as_echo_n "checking for $ac_word... " >&6; }
  6781. if ${ac_cv_prog_OTOOL+:} false; then :
  6782. $as_echo_n "(cached) " >&6
  6783. else
  6784. if test -n "$OTOOL"; then
  6785. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6786. else
  6787. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6788. for as_dir in $PATH
  6789. do
  6790. IFS=$as_save_IFS
  6791. test -z "$as_dir" && as_dir=.
  6792. for ac_exec_ext in '' $ac_executable_extensions; do
  6793. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6794. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6795. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6796. break 2
  6797. fi
  6798. done
  6799. done
  6800. IFS=$as_save_IFS
  6801. fi
  6802. fi
  6803. OTOOL=$ac_cv_prog_OTOOL
  6804. if test -n "$OTOOL"; then
  6805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6806. $as_echo "$OTOOL" >&6; }
  6807. else
  6808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6809. $as_echo "no" >&6; }
  6810. fi
  6811. fi
  6812. if test -z "$ac_cv_prog_OTOOL"; then
  6813. ac_ct_OTOOL=$OTOOL
  6814. # Extract the first word of "otool", so it can be a program name with args.
  6815. set dummy otool; ac_word=$2
  6816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6817. $as_echo_n "checking for $ac_word... " >&6; }
  6818. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6819. $as_echo_n "(cached) " >&6
  6820. else
  6821. if test -n "$ac_ct_OTOOL"; then
  6822. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6823. else
  6824. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6825. for as_dir in $PATH
  6826. do
  6827. IFS=$as_save_IFS
  6828. test -z "$as_dir" && as_dir=.
  6829. for ac_exec_ext in '' $ac_executable_extensions; do
  6830. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6831. ac_cv_prog_ac_ct_OTOOL="otool"
  6832. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6833. break 2
  6834. fi
  6835. done
  6836. done
  6837. IFS=$as_save_IFS
  6838. fi
  6839. fi
  6840. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6841. if test -n "$ac_ct_OTOOL"; then
  6842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6843. $as_echo "$ac_ct_OTOOL" >&6; }
  6844. else
  6845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6846. $as_echo "no" >&6; }
  6847. fi
  6848. if test "x$ac_ct_OTOOL" = x; then
  6849. OTOOL=":"
  6850. else
  6851. case $cross_compiling:$ac_tool_warned in
  6852. yes:)
  6853. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6854. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6855. ac_tool_warned=yes ;;
  6856. esac
  6857. OTOOL=$ac_ct_OTOOL
  6858. fi
  6859. else
  6860. OTOOL="$ac_cv_prog_OTOOL"
  6861. fi
  6862. if test -n "$ac_tool_prefix"; then
  6863. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6864. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6866. $as_echo_n "checking for $ac_word... " >&6; }
  6867. if ${ac_cv_prog_OTOOL64+:} false; then :
  6868. $as_echo_n "(cached) " >&6
  6869. else
  6870. if test -n "$OTOOL64"; then
  6871. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6872. else
  6873. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6874. for as_dir in $PATH
  6875. do
  6876. IFS=$as_save_IFS
  6877. test -z "$as_dir" && as_dir=.
  6878. for ac_exec_ext in '' $ac_executable_extensions; do
  6879. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6880. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6881. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6882. break 2
  6883. fi
  6884. done
  6885. done
  6886. IFS=$as_save_IFS
  6887. fi
  6888. fi
  6889. OTOOL64=$ac_cv_prog_OTOOL64
  6890. if test -n "$OTOOL64"; then
  6891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6892. $as_echo "$OTOOL64" >&6; }
  6893. else
  6894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6895. $as_echo "no" >&6; }
  6896. fi
  6897. fi
  6898. if test -z "$ac_cv_prog_OTOOL64"; then
  6899. ac_ct_OTOOL64=$OTOOL64
  6900. # Extract the first word of "otool64", so it can be a program name with args.
  6901. set dummy otool64; ac_word=$2
  6902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6903. $as_echo_n "checking for $ac_word... " >&6; }
  6904. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6905. $as_echo_n "(cached) " >&6
  6906. else
  6907. if test -n "$ac_ct_OTOOL64"; then
  6908. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6909. else
  6910. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6911. for as_dir in $PATH
  6912. do
  6913. IFS=$as_save_IFS
  6914. test -z "$as_dir" && as_dir=.
  6915. for ac_exec_ext in '' $ac_executable_extensions; do
  6916. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6917. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6918. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6919. break 2
  6920. fi
  6921. done
  6922. done
  6923. IFS=$as_save_IFS
  6924. fi
  6925. fi
  6926. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6927. if test -n "$ac_ct_OTOOL64"; then
  6928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6929. $as_echo "$ac_ct_OTOOL64" >&6; }
  6930. else
  6931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6932. $as_echo "no" >&6; }
  6933. fi
  6934. if test "x$ac_ct_OTOOL64" = x; then
  6935. OTOOL64=":"
  6936. else
  6937. case $cross_compiling:$ac_tool_warned in
  6938. yes:)
  6939. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6940. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6941. ac_tool_warned=yes ;;
  6942. esac
  6943. OTOOL64=$ac_ct_OTOOL64
  6944. fi
  6945. else
  6946. OTOOL64="$ac_cv_prog_OTOOL64"
  6947. fi
  6948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6949. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6950. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6951. $as_echo_n "(cached) " >&6
  6952. else
  6953. lt_cv_apple_cc_single_mod=no
  6954. if test -z "${LT_MULTI_MODULE}"; then
  6955. # By default we will add the -single_module flag. You can override
  6956. # by either setting the environment variable LT_MULTI_MODULE
  6957. # non-empty at configure time, or by adding -multi_module to the
  6958. # link flags.
  6959. rm -rf libconftest.dylib*
  6960. echo "int foo(void){return 1;}" > conftest.c
  6961. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6962. -dynamiclib -Wl,-single_module conftest.c" >&5
  6963. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6964. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6965. _lt_result=$?
  6966. # If there is a non-empty error log, and "single_module"
  6967. # appears in it, assume the flag caused a linker warning
  6968. if test -s conftest.err && $GREP single_module conftest.err; then
  6969. cat conftest.err >&5
  6970. # Otherwise, if the output was created with a 0 exit code from
  6971. # the compiler, it worked.
  6972. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  6973. lt_cv_apple_cc_single_mod=yes
  6974. else
  6975. cat conftest.err >&5
  6976. fi
  6977. rm -rf libconftest.dylib*
  6978. rm -f conftest.*
  6979. fi
  6980. fi
  6981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6982. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6984. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6985. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6986. $as_echo_n "(cached) " >&6
  6987. else
  6988. lt_cv_ld_exported_symbols_list=no
  6989. save_LDFLAGS=$LDFLAGS
  6990. echo "_main" > conftest.sym
  6991. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6993. /* end confdefs.h. */
  6994. int
  6995. main ()
  6996. {
  6997. ;
  6998. return 0;
  6999. }
  7000. _ACEOF
  7001. if ac_fn_c_try_link "$LINENO"; then :
  7002. lt_cv_ld_exported_symbols_list=yes
  7003. else
  7004. lt_cv_ld_exported_symbols_list=no
  7005. fi
  7006. rm -f core conftest.err conftest.$ac_objext \
  7007. conftest$ac_exeext conftest.$ac_ext
  7008. LDFLAGS="$save_LDFLAGS"
  7009. fi
  7010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7011. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7013. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7014. if ${lt_cv_ld_force_load+:} false; then :
  7015. $as_echo_n "(cached) " >&6
  7016. else
  7017. lt_cv_ld_force_load=no
  7018. cat > conftest.c << _LT_EOF
  7019. int forced_loaded() { return 2;}
  7020. _LT_EOF
  7021. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7022. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7023. echo "$AR cru libconftest.a conftest.o" >&5
  7024. $AR cru libconftest.a conftest.o 2>&5
  7025. echo "$RANLIB libconftest.a" >&5
  7026. $RANLIB libconftest.a 2>&5
  7027. cat > conftest.c << _LT_EOF
  7028. int main() { return 0;}
  7029. _LT_EOF
  7030. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7031. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7032. _lt_result=$?
  7033. if test -s conftest.err && $GREP force_load conftest.err; then
  7034. cat conftest.err >&5
  7035. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  7036. lt_cv_ld_force_load=yes
  7037. else
  7038. cat conftest.err >&5
  7039. fi
  7040. rm -f conftest.err libconftest.a conftest conftest.c
  7041. rm -rf conftest.dSYM
  7042. fi
  7043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7044. $as_echo "$lt_cv_ld_force_load" >&6; }
  7045. case $host_os in
  7046. rhapsody* | darwin1.[012])
  7047. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7048. darwin1.*)
  7049. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7050. darwin*) # darwin 5.x on
  7051. # if running on 10.5 or later, the deployment target defaults
  7052. # to the OS version, if on x86, and 10.4, the deployment
  7053. # target defaults to 10.4. Don't you love it?
  7054. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7055. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7056. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7057. 10.[012]*)
  7058. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7059. 10.*)
  7060. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7061. esac
  7062. ;;
  7063. esac
  7064. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7065. _lt_dar_single_mod='$single_module'
  7066. fi
  7067. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7068. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7069. else
  7070. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7071. fi
  7072. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7073. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7074. else
  7075. _lt_dsymutil=
  7076. fi
  7077. ;;
  7078. esac
  7079. ac_ext=c
  7080. ac_cpp='$CPP $CPPFLAGS'
  7081. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7082. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7083. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  7085. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  7086. # On Suns, sometimes $CPP names a directory.
  7087. if test -n "$CPP" && test -d "$CPP"; then
  7088. CPP=
  7089. fi
  7090. if test -z "$CPP"; then
  7091. if ${ac_cv_prog_CPP+:} false; then :
  7092. $as_echo_n "(cached) " >&6
  7093. else
  7094. # Double quotes because CPP needs to be expanded
  7095. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  7096. do
  7097. ac_preproc_ok=false
  7098. for ac_c_preproc_warn_flag in '' yes
  7099. do
  7100. # Use a header file that comes with gcc, so configuring glibc
  7101. # with a fresh cross-compiler works.
  7102. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7103. # <limits.h> exists even on freestanding compilers.
  7104. # On the NeXT, cc -E runs the code through the compiler's parser,
  7105. # not just through cpp. "Syntax error" is here to catch this case.
  7106. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7107. /* end confdefs.h. */
  7108. #ifdef __STDC__
  7109. # include <limits.h>
  7110. #else
  7111. # include <assert.h>
  7112. #endif
  7113. Syntax error
  7114. _ACEOF
  7115. if ac_fn_c_try_cpp "$LINENO"; then :
  7116. else
  7117. # Broken: fails on valid input.
  7118. continue
  7119. fi
  7120. rm -f conftest.err conftest.i conftest.$ac_ext
  7121. # OK, works on sane cases. Now check whether nonexistent headers
  7122. # can be detected and how.
  7123. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7124. /* end confdefs.h. */
  7125. #include <ac_nonexistent.h>
  7126. _ACEOF
  7127. if ac_fn_c_try_cpp "$LINENO"; then :
  7128. # Broken: success on invalid input.
  7129. continue
  7130. else
  7131. # Passes both tests.
  7132. ac_preproc_ok=:
  7133. break
  7134. fi
  7135. rm -f conftest.err conftest.i conftest.$ac_ext
  7136. done
  7137. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7138. rm -f conftest.i conftest.err conftest.$ac_ext
  7139. if $ac_preproc_ok; then :
  7140. break
  7141. fi
  7142. done
  7143. ac_cv_prog_CPP=$CPP
  7144. fi
  7145. CPP=$ac_cv_prog_CPP
  7146. else
  7147. ac_cv_prog_CPP=$CPP
  7148. fi
  7149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  7150. $as_echo "$CPP" >&6; }
  7151. ac_preproc_ok=false
  7152. for ac_c_preproc_warn_flag in '' yes
  7153. do
  7154. # Use a header file that comes with gcc, so configuring glibc
  7155. # with a fresh cross-compiler works.
  7156. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7157. # <limits.h> exists even on freestanding compilers.
  7158. # On the NeXT, cc -E runs the code through the compiler's parser,
  7159. # not just through cpp. "Syntax error" is here to catch this case.
  7160. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7161. /* end confdefs.h. */
  7162. #ifdef __STDC__
  7163. # include <limits.h>
  7164. #else
  7165. # include <assert.h>
  7166. #endif
  7167. Syntax error
  7168. _ACEOF
  7169. if ac_fn_c_try_cpp "$LINENO"; then :
  7170. else
  7171. # Broken: fails on valid input.
  7172. continue
  7173. fi
  7174. rm -f conftest.err conftest.i conftest.$ac_ext
  7175. # OK, works on sane cases. Now check whether nonexistent headers
  7176. # can be detected and how.
  7177. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7178. /* end confdefs.h. */
  7179. #include <ac_nonexistent.h>
  7180. _ACEOF
  7181. if ac_fn_c_try_cpp "$LINENO"; then :
  7182. # Broken: success on invalid input.
  7183. continue
  7184. else
  7185. # Passes both tests.
  7186. ac_preproc_ok=:
  7187. break
  7188. fi
  7189. rm -f conftest.err conftest.i conftest.$ac_ext
  7190. done
  7191. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7192. rm -f conftest.i conftest.err conftest.$ac_ext
  7193. if $ac_preproc_ok; then :
  7194. else
  7195. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7196. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7197. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  7198. See \`config.log' for more details" "$LINENO" 5; }
  7199. fi
  7200. ac_ext=c
  7201. ac_cpp='$CPP $CPPFLAGS'
  7202. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7203. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7204. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  7206. $as_echo_n "checking for ANSI C header files... " >&6; }
  7207. if ${ac_cv_header_stdc+:} false; then :
  7208. $as_echo_n "(cached) " >&6
  7209. else
  7210. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7211. /* end confdefs.h. */
  7212. #include <stdlib.h>
  7213. #include <stdarg.h>
  7214. #include <string.h>
  7215. #include <float.h>
  7216. int
  7217. main ()
  7218. {
  7219. ;
  7220. return 0;
  7221. }
  7222. _ACEOF
  7223. if ac_fn_c_try_compile "$LINENO"; then :
  7224. ac_cv_header_stdc=yes
  7225. else
  7226. ac_cv_header_stdc=no
  7227. fi
  7228. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7229. if test $ac_cv_header_stdc = yes; then
  7230. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7231. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7232. /* end confdefs.h. */
  7233. #include <string.h>
  7234. _ACEOF
  7235. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7236. $EGREP "memchr" >/dev/null 2>&1; then :
  7237. else
  7238. ac_cv_header_stdc=no
  7239. fi
  7240. rm -f conftest*
  7241. fi
  7242. if test $ac_cv_header_stdc = yes; then
  7243. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7244. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7245. /* end confdefs.h. */
  7246. #include <stdlib.h>
  7247. _ACEOF
  7248. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7249. $EGREP "free" >/dev/null 2>&1; then :
  7250. else
  7251. ac_cv_header_stdc=no
  7252. fi
  7253. rm -f conftest*
  7254. fi
  7255. if test $ac_cv_header_stdc = yes; then
  7256. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7257. if test "$cross_compiling" = yes; then :
  7258. :
  7259. else
  7260. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7261. /* end confdefs.h. */
  7262. #include <ctype.h>
  7263. #include <stdlib.h>
  7264. #if ((' ' & 0x0FF) == 0x020)
  7265. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7266. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7267. #else
  7268. # define ISLOWER(c) \
  7269. (('a' <= (c) && (c) <= 'i') \
  7270. || ('j' <= (c) && (c) <= 'r') \
  7271. || ('s' <= (c) && (c) <= 'z'))
  7272. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7273. #endif
  7274. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7275. int
  7276. main ()
  7277. {
  7278. int i;
  7279. for (i = 0; i < 256; i++)
  7280. if (XOR (islower (i), ISLOWER (i))
  7281. || toupper (i) != TOUPPER (i))
  7282. return 2;
  7283. return 0;
  7284. }
  7285. _ACEOF
  7286. if ac_fn_c_try_run "$LINENO"; then :
  7287. else
  7288. ac_cv_header_stdc=no
  7289. fi
  7290. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7291. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7292. fi
  7293. fi
  7294. fi
  7295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  7296. $as_echo "$ac_cv_header_stdc" >&6; }
  7297. if test $ac_cv_header_stdc = yes; then
  7298. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  7299. fi
  7300. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7301. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7302. inttypes.h stdint.h unistd.h
  7303. do :
  7304. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7305. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  7306. "
  7307. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7308. cat >>confdefs.h <<_ACEOF
  7309. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7310. _ACEOF
  7311. fi
  7312. done
  7313. for ac_header in dlfcn.h
  7314. do :
  7315. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7316. "
  7317. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7318. cat >>confdefs.h <<_ACEOF
  7319. #define HAVE_DLFCN_H 1
  7320. _ACEOF
  7321. fi
  7322. done
  7323. # Set options
  7324. enable_dlopen=no
  7325. enable_win32_dll=no
  7326. # Check whether --enable-shared was given.
  7327. if test "${enable_shared+set}" = set; then :
  7328. enableval=$enable_shared; p=${PACKAGE-default}
  7329. case $enableval in
  7330. yes) enable_shared=yes ;;
  7331. no) enable_shared=no ;;
  7332. *)
  7333. enable_shared=no
  7334. # Look at the argument we got. We use all the common list separators.
  7335. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7336. for pkg in $enableval; do
  7337. IFS="$lt_save_ifs"
  7338. if test "X$pkg" = "X$p"; then
  7339. enable_shared=yes
  7340. fi
  7341. done
  7342. IFS="$lt_save_ifs"
  7343. ;;
  7344. esac
  7345. else
  7346. enable_shared=yes
  7347. fi
  7348. # Check whether --enable-static was given.
  7349. if test "${enable_static+set}" = set; then :
  7350. enableval=$enable_static; p=${PACKAGE-default}
  7351. case $enableval in
  7352. yes) enable_static=yes ;;
  7353. no) enable_static=no ;;
  7354. *)
  7355. enable_static=no
  7356. # Look at the argument we got. We use all the common list separators.
  7357. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7358. for pkg in $enableval; do
  7359. IFS="$lt_save_ifs"
  7360. if test "X$pkg" = "X$p"; then
  7361. enable_static=yes
  7362. fi
  7363. done
  7364. IFS="$lt_save_ifs"
  7365. ;;
  7366. esac
  7367. else
  7368. enable_static=yes
  7369. fi
  7370. # Check whether --with-pic was given.
  7371. if test "${with_pic+set}" = set; then :
  7372. withval=$with_pic; lt_p=${PACKAGE-default}
  7373. case $withval in
  7374. yes|no) pic_mode=$withval ;;
  7375. *)
  7376. pic_mode=default
  7377. # Look at the argument we got. We use all the common list separators.
  7378. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7379. for lt_pkg in $withval; do
  7380. IFS="$lt_save_ifs"
  7381. if test "X$lt_pkg" = "X$lt_p"; then
  7382. pic_mode=yes
  7383. fi
  7384. done
  7385. IFS="$lt_save_ifs"
  7386. ;;
  7387. esac
  7388. else
  7389. pic_mode=default
  7390. fi
  7391. test -z "$pic_mode" && pic_mode=default
  7392. # Check whether --enable-fast-install was given.
  7393. if test "${enable_fast_install+set}" = set; then :
  7394. enableval=$enable_fast_install; p=${PACKAGE-default}
  7395. case $enableval in
  7396. yes) enable_fast_install=yes ;;
  7397. no) enable_fast_install=no ;;
  7398. *)
  7399. enable_fast_install=no
  7400. # Look at the argument we got. We use all the common list separators.
  7401. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7402. for pkg in $enableval; do
  7403. IFS="$lt_save_ifs"
  7404. if test "X$pkg" = "X$p"; then
  7405. enable_fast_install=yes
  7406. fi
  7407. done
  7408. IFS="$lt_save_ifs"
  7409. ;;
  7410. esac
  7411. else
  7412. enable_fast_install=yes
  7413. fi
  7414. # This can be used to rebuild libtool when needed
  7415. LIBTOOL_DEPS="$ltmain"
  7416. # Always use our own libtool.
  7417. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7418. test -z "$LN_S" && LN_S="ln -s"
  7419. if test -n "${ZSH_VERSION+set}" ; then
  7420. setopt NO_GLOB_SUBST
  7421. fi
  7422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7423. $as_echo_n "checking for objdir... " >&6; }
  7424. if ${lt_cv_objdir+:} false; then :
  7425. $as_echo_n "(cached) " >&6
  7426. else
  7427. rm -f .libs 2>/dev/null
  7428. mkdir .libs 2>/dev/null
  7429. if test -d .libs; then
  7430. lt_cv_objdir=.libs
  7431. else
  7432. # MS-DOS does not allow filenames that begin with a dot.
  7433. lt_cv_objdir=_libs
  7434. fi
  7435. rmdir .libs 2>/dev/null
  7436. fi
  7437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7438. $as_echo "$lt_cv_objdir" >&6; }
  7439. objdir=$lt_cv_objdir
  7440. cat >>confdefs.h <<_ACEOF
  7441. #define LT_OBJDIR "$lt_cv_objdir/"
  7442. _ACEOF
  7443. case $host_os in
  7444. aix3*)
  7445. # AIX sometimes has problems with the GCC collect2 program. For some
  7446. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7447. # vanish in a puff of smoke.
  7448. if test "X${COLLECT_NAMES+set}" != Xset; then
  7449. COLLECT_NAMES=
  7450. export COLLECT_NAMES
  7451. fi
  7452. ;;
  7453. esac
  7454. # Global variables:
  7455. ofile=libtool
  7456. can_build_shared=yes
  7457. # All known linkers require a `.a' archive for static linking (except MSVC,
  7458. # which needs '.lib').
  7459. libext=a
  7460. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7461. old_CC="$CC"
  7462. old_CFLAGS="$CFLAGS"
  7463. # Set sane defaults for various variables
  7464. test -z "$CC" && CC=cc
  7465. test -z "$LTCC" && LTCC=$CC
  7466. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7467. test -z "$LD" && LD=ld
  7468. test -z "$ac_objext" && ac_objext=o
  7469. for cc_temp in $compiler""; do
  7470. case $cc_temp in
  7471. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7472. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7473. \-*) ;;
  7474. *) break;;
  7475. esac
  7476. done
  7477. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7478. # Only perform the check for file, if the check method requires it
  7479. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7480. case $deplibs_check_method in
  7481. file_magic*)
  7482. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7484. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7485. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7486. $as_echo_n "(cached) " >&6
  7487. else
  7488. case $MAGIC_CMD in
  7489. [\\/*] | ?:[\\/]*)
  7490. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7491. ;;
  7492. *)
  7493. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7494. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7495. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7496. for ac_dir in $ac_dummy; do
  7497. IFS="$lt_save_ifs"
  7498. test -z "$ac_dir" && ac_dir=.
  7499. if test -f $ac_dir/${ac_tool_prefix}file; then
  7500. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7501. if test -n "$file_magic_test_file"; then
  7502. case $deplibs_check_method in
  7503. "file_magic "*)
  7504. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7505. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7506. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7507. $EGREP "$file_magic_regex" > /dev/null; then
  7508. :
  7509. else
  7510. cat <<_LT_EOF 1>&2
  7511. *** Warning: the command libtool uses to detect shared libraries,
  7512. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7513. *** The result is that libtool may fail to recognize shared libraries
  7514. *** as such. This will affect the creation of libtool libraries that
  7515. *** depend on shared libraries, but programs linked with such libtool
  7516. *** libraries will work regardless of this problem. Nevertheless, you
  7517. *** may want to report the problem to your system manager and/or to
  7518. *** bug-libtool@gnu.org
  7519. _LT_EOF
  7520. fi ;;
  7521. esac
  7522. fi
  7523. break
  7524. fi
  7525. done
  7526. IFS="$lt_save_ifs"
  7527. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7528. ;;
  7529. esac
  7530. fi
  7531. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7532. if test -n "$MAGIC_CMD"; then
  7533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7534. $as_echo "$MAGIC_CMD" >&6; }
  7535. else
  7536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7537. $as_echo "no" >&6; }
  7538. fi
  7539. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7540. if test -n "$ac_tool_prefix"; then
  7541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7542. $as_echo_n "checking for file... " >&6; }
  7543. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7544. $as_echo_n "(cached) " >&6
  7545. else
  7546. case $MAGIC_CMD in
  7547. [\\/*] | ?:[\\/]*)
  7548. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7549. ;;
  7550. *)
  7551. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7552. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7553. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7554. for ac_dir in $ac_dummy; do
  7555. IFS="$lt_save_ifs"
  7556. test -z "$ac_dir" && ac_dir=.
  7557. if test -f $ac_dir/file; then
  7558. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7559. if test -n "$file_magic_test_file"; then
  7560. case $deplibs_check_method in
  7561. "file_magic "*)
  7562. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7563. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7564. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7565. $EGREP "$file_magic_regex" > /dev/null; then
  7566. :
  7567. else
  7568. cat <<_LT_EOF 1>&2
  7569. *** Warning: the command libtool uses to detect shared libraries,
  7570. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7571. *** The result is that libtool may fail to recognize shared libraries
  7572. *** as such. This will affect the creation of libtool libraries that
  7573. *** depend on shared libraries, but programs linked with such libtool
  7574. *** libraries will work regardless of this problem. Nevertheless, you
  7575. *** may want to report the problem to your system manager and/or to
  7576. *** bug-libtool@gnu.org
  7577. _LT_EOF
  7578. fi ;;
  7579. esac
  7580. fi
  7581. break
  7582. fi
  7583. done
  7584. IFS="$lt_save_ifs"
  7585. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7586. ;;
  7587. esac
  7588. fi
  7589. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7590. if test -n "$MAGIC_CMD"; then
  7591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7592. $as_echo "$MAGIC_CMD" >&6; }
  7593. else
  7594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7595. $as_echo "no" >&6; }
  7596. fi
  7597. else
  7598. MAGIC_CMD=:
  7599. fi
  7600. fi
  7601. fi
  7602. ;;
  7603. esac
  7604. # Use C for the default configuration in the libtool script
  7605. lt_save_CC="$CC"
  7606. ac_ext=c
  7607. ac_cpp='$CPP $CPPFLAGS'
  7608. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7609. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7610. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7611. # Source file extension for C test sources.
  7612. ac_ext=c
  7613. # Object file extension for compiled C test sources.
  7614. objext=o
  7615. objext=$objext
  7616. # Code to be used in simple compile tests
  7617. lt_simple_compile_test_code="int some_variable = 0;"
  7618. # Code to be used in simple link tests
  7619. lt_simple_link_test_code='int main(){return(0);}'
  7620. # If no C compiler was specified, use CC.
  7621. LTCC=${LTCC-"$CC"}
  7622. # If no C compiler flags were specified, use CFLAGS.
  7623. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7624. # Allow CC to be a program name with arguments.
  7625. compiler=$CC
  7626. # Save the default compiler, since it gets overwritten when the other
  7627. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7628. compiler_DEFAULT=$CC
  7629. # save warnings/boilerplate of simple test code
  7630. ac_outfile=conftest.$ac_objext
  7631. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7632. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7633. _lt_compiler_boilerplate=`cat conftest.err`
  7634. $RM conftest*
  7635. ac_outfile=conftest.$ac_objext
  7636. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7637. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7638. _lt_linker_boilerplate=`cat conftest.err`
  7639. $RM -r conftest*
  7640. ## CAVEAT EMPTOR:
  7641. ## There is no encapsulation within the following macros, do not change
  7642. ## the running order or otherwise move them around unless you know exactly
  7643. ## what you are doing...
  7644. if test -n "$compiler"; then
  7645. lt_prog_compiler_no_builtin_flag=
  7646. if test "$GCC" = yes; then
  7647. case $cc_basename in
  7648. nvcc*)
  7649. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7650. *)
  7651. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7652. esac
  7653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7654. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7655. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7656. $as_echo_n "(cached) " >&6
  7657. else
  7658. lt_cv_prog_compiler_rtti_exceptions=no
  7659. ac_outfile=conftest.$ac_objext
  7660. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7661. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7662. # Insert the option either (1) after the last *FLAGS variable, or
  7663. # (2) before a word containing "conftest.", or (3) at the end.
  7664. # Note that $ac_compile itself does not contain backslashes and begins
  7665. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7666. # The option is referenced via a variable to avoid confusing sed.
  7667. lt_compile=`echo "$ac_compile" | $SED \
  7668. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7669. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7670. -e 's:$: $lt_compiler_flag:'`
  7671. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7672. (eval "$lt_compile" 2>conftest.err)
  7673. ac_status=$?
  7674. cat conftest.err >&5
  7675. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7676. if (exit $ac_status) && test -s "$ac_outfile"; then
  7677. # The compiler can only warn and ignore the option if not recognized
  7678. # So say no if there are warnings other than the usual output.
  7679. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7680. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7681. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7682. lt_cv_prog_compiler_rtti_exceptions=yes
  7683. fi
  7684. fi
  7685. $RM conftest*
  7686. fi
  7687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7688. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7689. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7690. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7691. else
  7692. :
  7693. fi
  7694. fi
  7695. lt_prog_compiler_wl=
  7696. lt_prog_compiler_pic=
  7697. lt_prog_compiler_static=
  7698. if test "$GCC" = yes; then
  7699. lt_prog_compiler_wl='-Wl,'
  7700. lt_prog_compiler_static='-static'
  7701. case $host_os in
  7702. aix*)
  7703. # All AIX code is PIC.
  7704. if test "$host_cpu" = ia64; then
  7705. # AIX 5 now supports IA64 processor
  7706. lt_prog_compiler_static='-Bstatic'
  7707. fi
  7708. ;;
  7709. amigaos*)
  7710. case $host_cpu in
  7711. powerpc)
  7712. # see comment about AmigaOS4 .so support
  7713. lt_prog_compiler_pic='-fPIC'
  7714. ;;
  7715. m68k)
  7716. # FIXME: we need at least 68020 code to build shared libraries, but
  7717. # adding the `-m68020' flag to GCC prevents building anything better,
  7718. # like `-m68040'.
  7719. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7720. ;;
  7721. esac
  7722. ;;
  7723. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7724. # PIC is the default for these OSes.
  7725. ;;
  7726. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7727. # This hack is so that the source file can tell whether it is being
  7728. # built for inclusion in a dll (and should export symbols for example).
  7729. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7730. # (--disable-auto-import) libraries
  7731. lt_prog_compiler_pic='-DDLL_EXPORT'
  7732. ;;
  7733. darwin* | rhapsody*)
  7734. # PIC is the default on this platform
  7735. # Common symbols not allowed in MH_DYLIB files
  7736. lt_prog_compiler_pic='-fno-common'
  7737. ;;
  7738. haiku*)
  7739. # PIC is the default for Haiku.
  7740. # The "-static" flag exists, but is broken.
  7741. lt_prog_compiler_static=
  7742. ;;
  7743. hpux*)
  7744. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7745. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7746. # sets the default TLS model and affects inlining.
  7747. case $host_cpu in
  7748. hppa*64*)
  7749. # +Z the default
  7750. ;;
  7751. *)
  7752. lt_prog_compiler_pic='-fPIC'
  7753. ;;
  7754. esac
  7755. ;;
  7756. interix[3-9]*)
  7757. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7758. # Instead, we relocate shared libraries at runtime.
  7759. ;;
  7760. msdosdjgpp*)
  7761. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7762. # on systems that don't support them.
  7763. lt_prog_compiler_can_build_shared=no
  7764. enable_shared=no
  7765. ;;
  7766. *nto* | *qnx*)
  7767. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7768. # it will coredump.
  7769. lt_prog_compiler_pic='-fPIC -shared'
  7770. ;;
  7771. sysv4*MP*)
  7772. if test -d /usr/nec; then
  7773. lt_prog_compiler_pic=-Kconform_pic
  7774. fi
  7775. ;;
  7776. *)
  7777. lt_prog_compiler_pic='-fPIC'
  7778. ;;
  7779. esac
  7780. case $cc_basename in
  7781. nvcc*) # Cuda Compiler Driver 2.2
  7782. lt_prog_compiler_wl='-Xlinker '
  7783. if test -n "$lt_prog_compiler_pic"; then
  7784. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7785. fi
  7786. ;;
  7787. esac
  7788. else
  7789. # PORTME Check for flag to pass linker flags through the system compiler.
  7790. case $host_os in
  7791. aix*)
  7792. lt_prog_compiler_wl='-Wl,'
  7793. if test "$host_cpu" = ia64; then
  7794. # AIX 5 now supports IA64 processor
  7795. lt_prog_compiler_static='-Bstatic'
  7796. else
  7797. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7798. fi
  7799. ;;
  7800. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7801. # This hack is so that the source file can tell whether it is being
  7802. # built for inclusion in a dll (and should export symbols for example).
  7803. lt_prog_compiler_pic='-DDLL_EXPORT'
  7804. ;;
  7805. hpux9* | hpux10* | hpux11*)
  7806. lt_prog_compiler_wl='-Wl,'
  7807. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7808. # not for PA HP-UX.
  7809. case $host_cpu in
  7810. hppa*64*|ia64*)
  7811. # +Z the default
  7812. ;;
  7813. *)
  7814. lt_prog_compiler_pic='+Z'
  7815. ;;
  7816. esac
  7817. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7818. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7819. ;;
  7820. irix5* | irix6* | nonstopux*)
  7821. lt_prog_compiler_wl='-Wl,'
  7822. # PIC (with -KPIC) is the default.
  7823. lt_prog_compiler_static='-non_shared'
  7824. ;;
  7825. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7826. case $cc_basename in
  7827. # old Intel for x86_64 which still supported -KPIC.
  7828. ecc*)
  7829. lt_prog_compiler_wl='-Wl,'
  7830. lt_prog_compiler_pic='-KPIC'
  7831. lt_prog_compiler_static='-static'
  7832. ;;
  7833. # icc used to be incompatible with GCC.
  7834. # ICC 10 doesn't accept -KPIC any more.
  7835. icc* | ifort*)
  7836. lt_prog_compiler_wl='-Wl,'
  7837. lt_prog_compiler_pic='-fPIC'
  7838. lt_prog_compiler_static='-static'
  7839. ;;
  7840. # Lahey Fortran 8.1.
  7841. lf95*)
  7842. lt_prog_compiler_wl='-Wl,'
  7843. lt_prog_compiler_pic='--shared'
  7844. lt_prog_compiler_static='--static'
  7845. ;;
  7846. nagfor*)
  7847. # NAG Fortran compiler
  7848. lt_prog_compiler_wl='-Wl,-Wl,,'
  7849. lt_prog_compiler_pic='-PIC'
  7850. lt_prog_compiler_static='-Bstatic'
  7851. ;;
  7852. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7853. # Portland Group compilers (*not* the Pentium gcc compiler,
  7854. # which looks to be a dead project)
  7855. lt_prog_compiler_wl='-Wl,'
  7856. lt_prog_compiler_pic='-fpic'
  7857. lt_prog_compiler_static='-Bstatic'
  7858. ;;
  7859. ccc*)
  7860. lt_prog_compiler_wl='-Wl,'
  7861. # All Alpha code is PIC.
  7862. lt_prog_compiler_static='-non_shared'
  7863. ;;
  7864. xl* | bgxl* | bgf* | mpixl*)
  7865. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7866. lt_prog_compiler_wl='-Wl,'
  7867. lt_prog_compiler_pic='-qpic'
  7868. lt_prog_compiler_static='-qstaticlink'
  7869. ;;
  7870. *)
  7871. case `$CC -V 2>&1 | sed 5q` in
  7872. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7873. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7874. lt_prog_compiler_pic='-KPIC'
  7875. lt_prog_compiler_static='-Bstatic'
  7876. lt_prog_compiler_wl=''
  7877. ;;
  7878. *Sun\ F* | *Sun*Fortran*)
  7879. lt_prog_compiler_pic='-KPIC'
  7880. lt_prog_compiler_static='-Bstatic'
  7881. lt_prog_compiler_wl='-Qoption ld '
  7882. ;;
  7883. *Sun\ C*)
  7884. # Sun C 5.9
  7885. lt_prog_compiler_pic='-KPIC'
  7886. lt_prog_compiler_static='-Bstatic'
  7887. lt_prog_compiler_wl='-Wl,'
  7888. ;;
  7889. *Intel*\ [CF]*Compiler*)
  7890. lt_prog_compiler_wl='-Wl,'
  7891. lt_prog_compiler_pic='-fPIC'
  7892. lt_prog_compiler_static='-static'
  7893. ;;
  7894. *Portland\ Group*)
  7895. lt_prog_compiler_wl='-Wl,'
  7896. lt_prog_compiler_pic='-fpic'
  7897. lt_prog_compiler_static='-Bstatic'
  7898. ;;
  7899. esac
  7900. ;;
  7901. esac
  7902. ;;
  7903. newsos6)
  7904. lt_prog_compiler_pic='-KPIC'
  7905. lt_prog_compiler_static='-Bstatic'
  7906. ;;
  7907. *nto* | *qnx*)
  7908. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7909. # it will coredump.
  7910. lt_prog_compiler_pic='-fPIC -shared'
  7911. ;;
  7912. osf3* | osf4* | osf5*)
  7913. lt_prog_compiler_wl='-Wl,'
  7914. # All OSF/1 code is PIC.
  7915. lt_prog_compiler_static='-non_shared'
  7916. ;;
  7917. rdos*)
  7918. lt_prog_compiler_static='-non_shared'
  7919. ;;
  7920. solaris*)
  7921. lt_prog_compiler_pic='-KPIC'
  7922. lt_prog_compiler_static='-Bstatic'
  7923. case $cc_basename in
  7924. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7925. lt_prog_compiler_wl='-Qoption ld ';;
  7926. *)
  7927. lt_prog_compiler_wl='-Wl,';;
  7928. esac
  7929. ;;
  7930. sunos4*)
  7931. lt_prog_compiler_wl='-Qoption ld '
  7932. lt_prog_compiler_pic='-PIC'
  7933. lt_prog_compiler_static='-Bstatic'
  7934. ;;
  7935. sysv4 | sysv4.2uw2* | sysv4.3*)
  7936. lt_prog_compiler_wl='-Wl,'
  7937. lt_prog_compiler_pic='-KPIC'
  7938. lt_prog_compiler_static='-Bstatic'
  7939. ;;
  7940. sysv4*MP*)
  7941. if test -d /usr/nec ;then
  7942. lt_prog_compiler_pic='-Kconform_pic'
  7943. lt_prog_compiler_static='-Bstatic'
  7944. fi
  7945. ;;
  7946. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7947. lt_prog_compiler_wl='-Wl,'
  7948. lt_prog_compiler_pic='-KPIC'
  7949. lt_prog_compiler_static='-Bstatic'
  7950. ;;
  7951. unicos*)
  7952. lt_prog_compiler_wl='-Wl,'
  7953. lt_prog_compiler_can_build_shared=no
  7954. ;;
  7955. uts4*)
  7956. lt_prog_compiler_pic='-pic'
  7957. lt_prog_compiler_static='-Bstatic'
  7958. ;;
  7959. *)
  7960. lt_prog_compiler_can_build_shared=no
  7961. ;;
  7962. esac
  7963. fi
  7964. case $host_os in
  7965. # For platforms which do not support PIC, -DPIC is meaningless:
  7966. *djgpp*)
  7967. lt_prog_compiler_pic=
  7968. ;;
  7969. *)
  7970. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7971. ;;
  7972. esac
  7973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7974. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7975. if ${lt_cv_prog_compiler_pic+:} false; then :
  7976. $as_echo_n "(cached) " >&6
  7977. else
  7978. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7979. fi
  7980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7981. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7982. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7983. #
  7984. # Check to make sure the PIC flag actually works.
  7985. #
  7986. if test -n "$lt_prog_compiler_pic"; then
  7987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7988. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7989. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7990. $as_echo_n "(cached) " >&6
  7991. else
  7992. lt_cv_prog_compiler_pic_works=no
  7993. ac_outfile=conftest.$ac_objext
  7994. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7995. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7996. # Insert the option either (1) after the last *FLAGS variable, or
  7997. # (2) before a word containing "conftest.", or (3) at the end.
  7998. # Note that $ac_compile itself does not contain backslashes and begins
  7999. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8000. # The option is referenced via a variable to avoid confusing sed.
  8001. lt_compile=`echo "$ac_compile" | $SED \
  8002. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8003. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8004. -e 's:$: $lt_compiler_flag:'`
  8005. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8006. (eval "$lt_compile" 2>conftest.err)
  8007. ac_status=$?
  8008. cat conftest.err >&5
  8009. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8010. if (exit $ac_status) && test -s "$ac_outfile"; then
  8011. # The compiler can only warn and ignore the option if not recognized
  8012. # So say no if there are warnings other than the usual output.
  8013. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8014. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8015. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8016. lt_cv_prog_compiler_pic_works=yes
  8017. fi
  8018. fi
  8019. $RM conftest*
  8020. fi
  8021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8022. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8023. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  8024. case $lt_prog_compiler_pic in
  8025. "" | " "*) ;;
  8026. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8027. esac
  8028. else
  8029. lt_prog_compiler_pic=
  8030. lt_prog_compiler_can_build_shared=no
  8031. fi
  8032. fi
  8033. #
  8034. # Check to make sure the static flag actually works.
  8035. #
  8036. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8038. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8039. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8040. $as_echo_n "(cached) " >&6
  8041. else
  8042. lt_cv_prog_compiler_static_works=no
  8043. save_LDFLAGS="$LDFLAGS"
  8044. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8045. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8046. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8047. # The linker can only warn and ignore the option if not recognized
  8048. # So say no if there are warnings
  8049. if test -s conftest.err; then
  8050. # Append any errors to the config.log.
  8051. cat conftest.err 1>&5
  8052. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8053. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8054. if diff conftest.exp conftest.er2 >/dev/null; then
  8055. lt_cv_prog_compiler_static_works=yes
  8056. fi
  8057. else
  8058. lt_cv_prog_compiler_static_works=yes
  8059. fi
  8060. fi
  8061. $RM -r conftest*
  8062. LDFLAGS="$save_LDFLAGS"
  8063. fi
  8064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8065. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8066. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  8067. :
  8068. else
  8069. lt_prog_compiler_static=
  8070. fi
  8071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8072. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8073. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8074. $as_echo_n "(cached) " >&6
  8075. else
  8076. lt_cv_prog_compiler_c_o=no
  8077. $RM -r conftest 2>/dev/null
  8078. mkdir conftest
  8079. cd conftest
  8080. mkdir out
  8081. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8082. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8083. # Insert the option either (1) after the last *FLAGS variable, or
  8084. # (2) before a word containing "conftest.", or (3) at the end.
  8085. # Note that $ac_compile itself does not contain backslashes and begins
  8086. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8087. lt_compile=`echo "$ac_compile" | $SED \
  8088. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8089. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8090. -e 's:$: $lt_compiler_flag:'`
  8091. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8092. (eval "$lt_compile" 2>out/conftest.err)
  8093. ac_status=$?
  8094. cat out/conftest.err >&5
  8095. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8096. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8097. then
  8098. # The compiler can only warn and ignore the option if not recognized
  8099. # So say no if there are warnings
  8100. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8101. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8102. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8103. lt_cv_prog_compiler_c_o=yes
  8104. fi
  8105. fi
  8106. chmod u+w . 2>&5
  8107. $RM conftest*
  8108. # SGI C++ compiler will create directory out/ii_files/ for
  8109. # template instantiation
  8110. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8111. $RM out/* && rmdir out
  8112. cd ..
  8113. $RM -r conftest
  8114. $RM conftest*
  8115. fi
  8116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8117. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8118. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8119. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8120. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8121. $as_echo_n "(cached) " >&6
  8122. else
  8123. lt_cv_prog_compiler_c_o=no
  8124. $RM -r conftest 2>/dev/null
  8125. mkdir conftest
  8126. cd conftest
  8127. mkdir out
  8128. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8129. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8130. # Insert the option either (1) after the last *FLAGS variable, or
  8131. # (2) before a word containing "conftest.", or (3) at the end.
  8132. # Note that $ac_compile itself does not contain backslashes and begins
  8133. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8134. lt_compile=`echo "$ac_compile" | $SED \
  8135. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8136. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8137. -e 's:$: $lt_compiler_flag:'`
  8138. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8139. (eval "$lt_compile" 2>out/conftest.err)
  8140. ac_status=$?
  8141. cat out/conftest.err >&5
  8142. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8143. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8144. then
  8145. # The compiler can only warn and ignore the option if not recognized
  8146. # So say no if there are warnings
  8147. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8148. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8149. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8150. lt_cv_prog_compiler_c_o=yes
  8151. fi
  8152. fi
  8153. chmod u+w . 2>&5
  8154. $RM conftest*
  8155. # SGI C++ compiler will create directory out/ii_files/ for
  8156. # template instantiation
  8157. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8158. $RM out/* && rmdir out
  8159. cd ..
  8160. $RM -r conftest
  8161. $RM conftest*
  8162. fi
  8163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8164. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8165. hard_links="nottested"
  8166. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8167. # do not overwrite the value of need_locks provided by the user
  8168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8169. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8170. hard_links=yes
  8171. $RM conftest*
  8172. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8173. touch conftest.a
  8174. ln conftest.a conftest.b 2>&5 || hard_links=no
  8175. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8177. $as_echo "$hard_links" >&6; }
  8178. if test "$hard_links" = no; then
  8179. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8180. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8181. need_locks=warn
  8182. fi
  8183. else
  8184. need_locks=no
  8185. fi
  8186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8187. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8188. runpath_var=
  8189. allow_undefined_flag=
  8190. always_export_symbols=no
  8191. archive_cmds=
  8192. archive_expsym_cmds=
  8193. compiler_needs_object=no
  8194. enable_shared_with_static_runtimes=no
  8195. export_dynamic_flag_spec=
  8196. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8197. hardcode_automatic=no
  8198. hardcode_direct=no
  8199. hardcode_direct_absolute=no
  8200. hardcode_libdir_flag_spec=
  8201. hardcode_libdir_separator=
  8202. hardcode_minus_L=no
  8203. hardcode_shlibpath_var=unsupported
  8204. inherit_rpath=no
  8205. link_all_deplibs=unknown
  8206. module_cmds=
  8207. module_expsym_cmds=
  8208. old_archive_from_new_cmds=
  8209. old_archive_from_expsyms_cmds=
  8210. thread_safe_flag_spec=
  8211. whole_archive_flag_spec=
  8212. # include_expsyms should be a list of space-separated symbols to be *always*
  8213. # included in the symbol list
  8214. include_expsyms=
  8215. # exclude_expsyms can be an extended regexp of symbols to exclude
  8216. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8217. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8218. # as well as any symbol that contains `d'.
  8219. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8220. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8221. # platforms (ab)use it in PIC code, but their linkers get confused if
  8222. # the symbol is explicitly referenced. Since portable code cannot
  8223. # rely on this symbol name, it's probably fine to never include it in
  8224. # preloaded symbol tables.
  8225. # Exclude shared library initialization/finalization symbols.
  8226. extract_expsyms_cmds=
  8227. case $host_os in
  8228. cygwin* | mingw* | pw32* | cegcc*)
  8229. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8230. # When not using gcc, we currently assume that we are using
  8231. # Microsoft Visual C++.
  8232. if test "$GCC" != yes; then
  8233. with_gnu_ld=no
  8234. fi
  8235. ;;
  8236. interix*)
  8237. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8238. with_gnu_ld=yes
  8239. ;;
  8240. openbsd*)
  8241. with_gnu_ld=no
  8242. ;;
  8243. esac
  8244. ld_shlibs=yes
  8245. # On some targets, GNU ld is compatible enough with the native linker
  8246. # that we're better off using the native interface for both.
  8247. lt_use_gnu_ld_interface=no
  8248. if test "$with_gnu_ld" = yes; then
  8249. case $host_os in
  8250. aix*)
  8251. # The AIX port of GNU ld has always aspired to compatibility
  8252. # with the native linker. However, as the warning in the GNU ld
  8253. # block says, versions before 2.19.5* couldn't really create working
  8254. # shared libraries, regardless of the interface used.
  8255. case `$LD -v 2>&1` in
  8256. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8257. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8258. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8259. *)
  8260. lt_use_gnu_ld_interface=yes
  8261. ;;
  8262. esac
  8263. ;;
  8264. *)
  8265. lt_use_gnu_ld_interface=yes
  8266. ;;
  8267. esac
  8268. fi
  8269. if test "$lt_use_gnu_ld_interface" = yes; then
  8270. # If archive_cmds runs LD, not CC, wlarc should be empty
  8271. wlarc='${wl}'
  8272. # Set some defaults for GNU ld with shared library support. These
  8273. # are reset later if shared libraries are not supported. Putting them
  8274. # here allows them to be overridden if necessary.
  8275. runpath_var=LD_RUN_PATH
  8276. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8277. export_dynamic_flag_spec='${wl}--export-dynamic'
  8278. # ancient GNU ld didn't support --whole-archive et. al.
  8279. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8280. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8281. else
  8282. whole_archive_flag_spec=
  8283. fi
  8284. supports_anon_versioning=no
  8285. case `$LD -v 2>&1` in
  8286. *GNU\ gold*) supports_anon_versioning=yes ;;
  8287. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8288. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8289. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8290. *\ 2.11.*) ;; # other 2.11 versions
  8291. *) supports_anon_versioning=yes ;;
  8292. esac
  8293. # See if GNU ld supports shared libraries.
  8294. case $host_os in
  8295. aix[3-9]*)
  8296. # On AIX/PPC, the GNU linker is very broken
  8297. if test "$host_cpu" != ia64; then
  8298. ld_shlibs=no
  8299. cat <<_LT_EOF 1>&2
  8300. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8301. *** to be unable to reliably create shared libraries on AIX.
  8302. *** Therefore, libtool is disabling shared libraries support. If you
  8303. *** really care for shared libraries, you may want to install binutils
  8304. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8305. *** You will then need to restart the configuration process.
  8306. _LT_EOF
  8307. fi
  8308. ;;
  8309. amigaos*)
  8310. case $host_cpu in
  8311. powerpc)
  8312. # see comment about AmigaOS4 .so support
  8313. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8314. archive_expsym_cmds=''
  8315. ;;
  8316. m68k)
  8317. 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)'
  8318. hardcode_libdir_flag_spec='-L$libdir'
  8319. hardcode_minus_L=yes
  8320. ;;
  8321. esac
  8322. ;;
  8323. beos*)
  8324. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8325. allow_undefined_flag=unsupported
  8326. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8327. # support --undefined. This deserves some investigation. FIXME
  8328. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8329. else
  8330. ld_shlibs=no
  8331. fi
  8332. ;;
  8333. cygwin* | mingw* | pw32* | cegcc*)
  8334. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8335. # as there is no search path for DLLs.
  8336. hardcode_libdir_flag_spec='-L$libdir'
  8337. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8338. allow_undefined_flag=unsupported
  8339. always_export_symbols=no
  8340. enable_shared_with_static_runtimes=yes
  8341. 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'
  8342. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8343. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8344. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8345. # If the export-symbols file already is a .def file (1st line
  8346. # is EXPORTS), use it as is; otherwise, prepend...
  8347. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8348. cp $export_symbols $output_objdir/$soname.def;
  8349. else
  8350. echo EXPORTS > $output_objdir/$soname.def;
  8351. cat $export_symbols >> $output_objdir/$soname.def;
  8352. fi~
  8353. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8354. else
  8355. ld_shlibs=no
  8356. fi
  8357. ;;
  8358. haiku*)
  8359. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8360. link_all_deplibs=yes
  8361. ;;
  8362. interix[3-9]*)
  8363. hardcode_direct=no
  8364. hardcode_shlibpath_var=no
  8365. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8366. export_dynamic_flag_spec='${wl}-E'
  8367. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8368. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8369. # default) and relocated if they conflict, which is a slow very memory
  8370. # consuming and fragmenting process. To avoid this, we pick a random,
  8371. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8372. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8373. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8374. 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'
  8375. ;;
  8376. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8377. tmp_diet=no
  8378. if test "$host_os" = linux-dietlibc; then
  8379. case $cc_basename in
  8380. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8381. esac
  8382. fi
  8383. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8384. && test "$tmp_diet" = no
  8385. then
  8386. tmp_addflag=' $pic_flag'
  8387. tmp_sharedflag='-shared'
  8388. case $cc_basename,$host_cpu in
  8389. pgcc*) # Portland Group C compiler
  8390. 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'
  8391. tmp_addflag=' $pic_flag'
  8392. ;;
  8393. pgf77* | pgf90* | pgf95* | pgfortran*)
  8394. # Portland Group f77 and f90 compilers
  8395. 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'
  8396. tmp_addflag=' $pic_flag -Mnomain' ;;
  8397. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8398. tmp_addflag=' -i_dynamic' ;;
  8399. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8400. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8401. ifc* | ifort*) # Intel Fortran compiler
  8402. tmp_addflag=' -nofor_main' ;;
  8403. lf95*) # Lahey Fortran 8.1
  8404. whole_archive_flag_spec=
  8405. tmp_sharedflag='--shared' ;;
  8406. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8407. tmp_sharedflag='-qmkshrobj'
  8408. tmp_addflag= ;;
  8409. nvcc*) # Cuda Compiler Driver 2.2
  8410. 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'
  8411. compiler_needs_object=yes
  8412. ;;
  8413. esac
  8414. case `$CC -V 2>&1 | sed 5q` in
  8415. *Sun\ C*) # Sun C 5.9
  8416. 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'
  8417. compiler_needs_object=yes
  8418. tmp_sharedflag='-G' ;;
  8419. *Sun\ F*) # Sun Fortran 8.3
  8420. tmp_sharedflag='-G' ;;
  8421. esac
  8422. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8423. if test "x$supports_anon_versioning" = xyes; then
  8424. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8425. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8426. echo "local: *; };" >> $output_objdir/$libname.ver~
  8427. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8428. fi
  8429. case $cc_basename in
  8430. xlf* | bgf* | bgxlf* | mpixlf*)
  8431. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8432. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8433. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8434. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8435. if test "x$supports_anon_versioning" = xyes; then
  8436. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8437. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8438. echo "local: *; };" >> $output_objdir/$libname.ver~
  8439. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8440. fi
  8441. ;;
  8442. esac
  8443. else
  8444. ld_shlibs=no
  8445. fi
  8446. ;;
  8447. netbsd*)
  8448. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8449. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8450. wlarc=
  8451. else
  8452. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8453. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8454. fi
  8455. ;;
  8456. solaris*)
  8457. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8458. ld_shlibs=no
  8459. cat <<_LT_EOF 1>&2
  8460. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8461. *** create shared libraries on Solaris systems. Therefore, libtool
  8462. *** is disabling shared libraries support. We urge you to upgrade GNU
  8463. *** binutils to release 2.9.1 or newer. Another option is to modify
  8464. *** your PATH or compiler configuration so that the native linker is
  8465. *** used, and then restart.
  8466. _LT_EOF
  8467. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8468. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8469. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8470. else
  8471. ld_shlibs=no
  8472. fi
  8473. ;;
  8474. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8475. case `$LD -v 2>&1` in
  8476. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8477. ld_shlibs=no
  8478. cat <<_LT_EOF 1>&2
  8479. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8480. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8481. *** is disabling shared libraries support. We urge you to upgrade GNU
  8482. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8483. *** your PATH or compiler configuration so that the native linker is
  8484. *** used, and then restart.
  8485. _LT_EOF
  8486. ;;
  8487. *)
  8488. # For security reasons, it is highly recommended that you always
  8489. # use absolute paths for naming shared libraries, and exclude the
  8490. # DT_RUNPATH tag from executables and libraries. But doing so
  8491. # requires that you compile everything twice, which is a pain.
  8492. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8493. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8494. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8495. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8496. else
  8497. ld_shlibs=no
  8498. fi
  8499. ;;
  8500. esac
  8501. ;;
  8502. sunos4*)
  8503. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8504. wlarc=
  8505. hardcode_direct=yes
  8506. hardcode_shlibpath_var=no
  8507. ;;
  8508. *)
  8509. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8510. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8511. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8512. else
  8513. ld_shlibs=no
  8514. fi
  8515. ;;
  8516. esac
  8517. if test "$ld_shlibs" = no; then
  8518. runpath_var=
  8519. hardcode_libdir_flag_spec=
  8520. export_dynamic_flag_spec=
  8521. whole_archive_flag_spec=
  8522. fi
  8523. else
  8524. # PORTME fill in a description of your system's linker (not GNU ld)
  8525. case $host_os in
  8526. aix3*)
  8527. allow_undefined_flag=unsupported
  8528. always_export_symbols=yes
  8529. 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'
  8530. # Note: this linker hardcodes the directories in LIBPATH if there
  8531. # are no directories specified by -L.
  8532. hardcode_minus_L=yes
  8533. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8534. # Neither direct hardcoding nor static linking is supported with a
  8535. # broken collect2.
  8536. hardcode_direct=unsupported
  8537. fi
  8538. ;;
  8539. aix[4-9]*)
  8540. if test "$host_cpu" = ia64; then
  8541. # On IA64, the linker does run time linking by default, so we don't
  8542. # have to do anything special.
  8543. aix_use_runtimelinking=no
  8544. exp_sym_flag='-Bexport'
  8545. no_entry_flag=""
  8546. else
  8547. # If we're using GNU nm, then we don't want the "-C" option.
  8548. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8549. # Also, AIX nm treats weak defined symbols like other global
  8550. # defined symbols, whereas GNU nm marks them as "W".
  8551. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8552. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8553. else
  8554. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8555. fi
  8556. aix_use_runtimelinking=no
  8557. # Test if we are trying to use run time linking or normal
  8558. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8559. # need to do runtime linking.
  8560. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8561. for ld_flag in $LDFLAGS; do
  8562. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8563. aix_use_runtimelinking=yes
  8564. break
  8565. fi
  8566. done
  8567. ;;
  8568. esac
  8569. exp_sym_flag='-bexport'
  8570. no_entry_flag='-bnoentry'
  8571. fi
  8572. # When large executables or shared objects are built, AIX ld can
  8573. # have problems creating the table of contents. If linking a library
  8574. # or program results in "error TOC overflow" add -mminimal-toc to
  8575. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8576. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8577. archive_cmds=''
  8578. hardcode_direct=yes
  8579. hardcode_direct_absolute=yes
  8580. hardcode_libdir_separator=':'
  8581. link_all_deplibs=yes
  8582. file_list_spec='${wl}-f,'
  8583. if test "$GCC" = yes; then
  8584. case $host_os in aix4.[012]|aix4.[012].*)
  8585. # We only want to do this on AIX 4.2 and lower, the check
  8586. # below for broken collect2 doesn't work under 4.3+
  8587. collect2name=`${CC} -print-prog-name=collect2`
  8588. if test -f "$collect2name" &&
  8589. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8590. then
  8591. # We have reworked collect2
  8592. :
  8593. else
  8594. # We have old collect2
  8595. hardcode_direct=unsupported
  8596. # It fails to find uninstalled libraries when the uninstalled
  8597. # path is not listed in the libpath. Setting hardcode_minus_L
  8598. # to unsupported forces relinking
  8599. hardcode_minus_L=yes
  8600. hardcode_libdir_flag_spec='-L$libdir'
  8601. hardcode_libdir_separator=
  8602. fi
  8603. ;;
  8604. esac
  8605. shared_flag='-shared'
  8606. if test "$aix_use_runtimelinking" = yes; then
  8607. shared_flag="$shared_flag "'${wl}-G'
  8608. fi
  8609. else
  8610. # not using gcc
  8611. if test "$host_cpu" = ia64; then
  8612. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8613. # chokes on -Wl,-G. The following line is correct:
  8614. shared_flag='-G'
  8615. else
  8616. if test "$aix_use_runtimelinking" = yes; then
  8617. shared_flag='${wl}-G'
  8618. else
  8619. shared_flag='${wl}-bM:SRE'
  8620. fi
  8621. fi
  8622. fi
  8623. export_dynamic_flag_spec='${wl}-bexpall'
  8624. # It seems that -bexpall does not export symbols beginning with
  8625. # underscore (_), so it is better to generate a list of symbols to export.
  8626. always_export_symbols=yes
  8627. if test "$aix_use_runtimelinking" = yes; then
  8628. # Warning - without using the other runtime loading flags (-brtl),
  8629. # -berok will link without error, but may produce a broken library.
  8630. allow_undefined_flag='-berok'
  8631. # Determine the default libpath from the value encoded in an
  8632. # empty executable.
  8633. if test "${lt_cv_aix_libpath+set}" = set; then
  8634. aix_libpath=$lt_cv_aix_libpath
  8635. else
  8636. if ${lt_cv_aix_libpath_+:} false; then :
  8637. $as_echo_n "(cached) " >&6
  8638. else
  8639. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8640. /* end confdefs.h. */
  8641. int
  8642. main ()
  8643. {
  8644. ;
  8645. return 0;
  8646. }
  8647. _ACEOF
  8648. if ac_fn_c_try_link "$LINENO"; then :
  8649. lt_aix_libpath_sed='
  8650. /Import File Strings/,/^$/ {
  8651. /^0/ {
  8652. s/^0 *\([^ ]*\) *$/\1/
  8653. p
  8654. }
  8655. }'
  8656. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8657. # Check for a 64-bit object if we didn't find anything.
  8658. if test -z "$lt_cv_aix_libpath_"; then
  8659. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8660. fi
  8661. fi
  8662. rm -f core conftest.err conftest.$ac_objext \
  8663. conftest$ac_exeext conftest.$ac_ext
  8664. if test -z "$lt_cv_aix_libpath_"; then
  8665. lt_cv_aix_libpath_="/usr/lib:/lib"
  8666. fi
  8667. fi
  8668. aix_libpath=$lt_cv_aix_libpath_
  8669. fi
  8670. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8671. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8672. else
  8673. if test "$host_cpu" = ia64; then
  8674. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8675. allow_undefined_flag="-z nodefs"
  8676. 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"
  8677. else
  8678. # Determine the default libpath from the value encoded in an
  8679. # empty executable.
  8680. if test "${lt_cv_aix_libpath+set}" = set; then
  8681. aix_libpath=$lt_cv_aix_libpath
  8682. else
  8683. if ${lt_cv_aix_libpath_+:} false; then :
  8684. $as_echo_n "(cached) " >&6
  8685. else
  8686. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8687. /* end confdefs.h. */
  8688. int
  8689. main ()
  8690. {
  8691. ;
  8692. return 0;
  8693. }
  8694. _ACEOF
  8695. if ac_fn_c_try_link "$LINENO"; then :
  8696. lt_aix_libpath_sed='
  8697. /Import File Strings/,/^$/ {
  8698. /^0/ {
  8699. s/^0 *\([^ ]*\) *$/\1/
  8700. p
  8701. }
  8702. }'
  8703. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8704. # Check for a 64-bit object if we didn't find anything.
  8705. if test -z "$lt_cv_aix_libpath_"; then
  8706. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8707. fi
  8708. fi
  8709. rm -f core conftest.err conftest.$ac_objext \
  8710. conftest$ac_exeext conftest.$ac_ext
  8711. if test -z "$lt_cv_aix_libpath_"; then
  8712. lt_cv_aix_libpath_="/usr/lib:/lib"
  8713. fi
  8714. fi
  8715. aix_libpath=$lt_cv_aix_libpath_
  8716. fi
  8717. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8718. # Warning - without using the other run time loading flags,
  8719. # -berok will link without error, but may produce a broken library.
  8720. no_undefined_flag=' ${wl}-bernotok'
  8721. allow_undefined_flag=' ${wl}-berok'
  8722. if test "$with_gnu_ld" = yes; then
  8723. # We only use this code for GNU lds that support --whole-archive.
  8724. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8725. else
  8726. # Exported symbols can be pulled into shared objects from archives
  8727. whole_archive_flag_spec='$convenience'
  8728. fi
  8729. archive_cmds_need_lc=yes
  8730. # This is similar to how AIX traditionally builds its shared libraries.
  8731. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  8732. fi
  8733. fi
  8734. ;;
  8735. amigaos*)
  8736. case $host_cpu in
  8737. powerpc)
  8738. # see comment about AmigaOS4 .so support
  8739. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8740. archive_expsym_cmds=''
  8741. ;;
  8742. m68k)
  8743. 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)'
  8744. hardcode_libdir_flag_spec='-L$libdir'
  8745. hardcode_minus_L=yes
  8746. ;;
  8747. esac
  8748. ;;
  8749. bsdi[45]*)
  8750. export_dynamic_flag_spec=-rdynamic
  8751. ;;
  8752. cygwin* | mingw* | pw32* | cegcc*)
  8753. # When not using gcc, we currently assume that we are using
  8754. # Microsoft Visual C++.
  8755. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8756. # no search path for DLLs.
  8757. case $cc_basename in
  8758. cl*)
  8759. # Native MSVC
  8760. hardcode_libdir_flag_spec=' '
  8761. allow_undefined_flag=unsupported
  8762. always_export_symbols=yes
  8763. file_list_spec='@'
  8764. # Tell ltmain to make .lib files, not .a files.
  8765. libext=lib
  8766. # Tell ltmain to make .dll files, not .so files.
  8767. shrext_cmds=".dll"
  8768. # FIXME: Setting linknames here is a bad hack.
  8769. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8770. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8771. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8772. else
  8773. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8774. fi~
  8775. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8776. linknames='
  8777. # The linker will not automatically build a static lib if we build a DLL.
  8778. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8779. enable_shared_with_static_runtimes=yes
  8780. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8781. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8782. # Don't use ranlib
  8783. old_postinstall_cmds='chmod 644 $oldlib'
  8784. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8785. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8786. case $lt_outputfile in
  8787. *.exe|*.EXE) ;;
  8788. *)
  8789. lt_outputfile="$lt_outputfile.exe"
  8790. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8791. ;;
  8792. esac~
  8793. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8794. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8795. $RM "$lt_outputfile.manifest";
  8796. fi'
  8797. ;;
  8798. *)
  8799. # Assume MSVC wrapper
  8800. hardcode_libdir_flag_spec=' '
  8801. allow_undefined_flag=unsupported
  8802. # Tell ltmain to make .lib files, not .a files.
  8803. libext=lib
  8804. # Tell ltmain to make .dll files, not .so files.
  8805. shrext_cmds=".dll"
  8806. # FIXME: Setting linknames here is a bad hack.
  8807. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8808. # The linker will automatically build a .lib file if we build a DLL.
  8809. old_archive_from_new_cmds='true'
  8810. # FIXME: Should let the user specify the lib program.
  8811. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8812. enable_shared_with_static_runtimes=yes
  8813. ;;
  8814. esac
  8815. ;;
  8816. darwin* | rhapsody*)
  8817. archive_cmds_need_lc=no
  8818. hardcode_direct=no
  8819. hardcode_automatic=yes
  8820. hardcode_shlibpath_var=unsupported
  8821. if test "$lt_cv_ld_force_load" = "yes"; then
  8822. 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\"`'
  8823. else
  8824. whole_archive_flag_spec=''
  8825. fi
  8826. link_all_deplibs=yes
  8827. allow_undefined_flag="$_lt_dar_allow_undefined"
  8828. case $cc_basename in
  8829. ifort*) _lt_dar_can_shared=yes ;;
  8830. *) _lt_dar_can_shared=$GCC ;;
  8831. esac
  8832. if test "$_lt_dar_can_shared" = "yes"; then
  8833. output_verbose_link_cmd=func_echo_all
  8834. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8835. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8836. 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}"
  8837. 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}"
  8838. else
  8839. ld_shlibs=no
  8840. fi
  8841. ;;
  8842. dgux*)
  8843. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8844. hardcode_libdir_flag_spec='-L$libdir'
  8845. hardcode_shlibpath_var=no
  8846. ;;
  8847. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8848. # support. Future versions do this automatically, but an explicit c++rt0.o
  8849. # does not break anything, and helps significantly (at the cost of a little
  8850. # extra space).
  8851. freebsd2.2*)
  8852. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8853. hardcode_libdir_flag_spec='-R$libdir'
  8854. hardcode_direct=yes
  8855. hardcode_shlibpath_var=no
  8856. ;;
  8857. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8858. freebsd2.*)
  8859. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8860. hardcode_direct=yes
  8861. hardcode_minus_L=yes
  8862. hardcode_shlibpath_var=no
  8863. ;;
  8864. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8865. freebsd* | dragonfly*)
  8866. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8867. hardcode_libdir_flag_spec='-R$libdir'
  8868. hardcode_direct=yes
  8869. hardcode_shlibpath_var=no
  8870. ;;
  8871. hpux9*)
  8872. if test "$GCC" = yes; then
  8873. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8874. else
  8875. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8876. fi
  8877. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8878. hardcode_libdir_separator=:
  8879. hardcode_direct=yes
  8880. # hardcode_minus_L: Not really in the search PATH,
  8881. # but as the default location of the library.
  8882. hardcode_minus_L=yes
  8883. export_dynamic_flag_spec='${wl}-E'
  8884. ;;
  8885. hpux10*)
  8886. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8887. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8888. else
  8889. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8890. fi
  8891. if test "$with_gnu_ld" = no; then
  8892. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8893. hardcode_libdir_separator=:
  8894. hardcode_direct=yes
  8895. hardcode_direct_absolute=yes
  8896. export_dynamic_flag_spec='${wl}-E'
  8897. # hardcode_minus_L: Not really in the search PATH,
  8898. # but as the default location of the library.
  8899. hardcode_minus_L=yes
  8900. fi
  8901. ;;
  8902. hpux11*)
  8903. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8904. case $host_cpu in
  8905. hppa*64*)
  8906. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8907. ;;
  8908. ia64*)
  8909. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8910. ;;
  8911. *)
  8912. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8913. ;;
  8914. esac
  8915. else
  8916. case $host_cpu in
  8917. hppa*64*)
  8918. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8919. ;;
  8920. ia64*)
  8921. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8922. ;;
  8923. *)
  8924. # Older versions of the 11.00 compiler do not understand -b yet
  8925. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8927. $as_echo_n "checking if $CC understands -b... " >&6; }
  8928. if ${lt_cv_prog_compiler__b+:} false; then :
  8929. $as_echo_n "(cached) " >&6
  8930. else
  8931. lt_cv_prog_compiler__b=no
  8932. save_LDFLAGS="$LDFLAGS"
  8933. LDFLAGS="$LDFLAGS -b"
  8934. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8935. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8936. # The linker can only warn and ignore the option if not recognized
  8937. # So say no if there are warnings
  8938. if test -s conftest.err; then
  8939. # Append any errors to the config.log.
  8940. cat conftest.err 1>&5
  8941. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8942. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8943. if diff conftest.exp conftest.er2 >/dev/null; then
  8944. lt_cv_prog_compiler__b=yes
  8945. fi
  8946. else
  8947. lt_cv_prog_compiler__b=yes
  8948. fi
  8949. fi
  8950. $RM -r conftest*
  8951. LDFLAGS="$save_LDFLAGS"
  8952. fi
  8953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8954. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8955. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8956. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8957. else
  8958. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8959. fi
  8960. ;;
  8961. esac
  8962. fi
  8963. if test "$with_gnu_ld" = no; then
  8964. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8965. hardcode_libdir_separator=:
  8966. case $host_cpu in
  8967. hppa*64*|ia64*)
  8968. hardcode_direct=no
  8969. hardcode_shlibpath_var=no
  8970. ;;
  8971. *)
  8972. hardcode_direct=yes
  8973. hardcode_direct_absolute=yes
  8974. export_dynamic_flag_spec='${wl}-E'
  8975. # hardcode_minus_L: Not really in the search PATH,
  8976. # but as the default location of the library.
  8977. hardcode_minus_L=yes
  8978. ;;
  8979. esac
  8980. fi
  8981. ;;
  8982. irix5* | irix6* | nonstopux*)
  8983. if test "$GCC" = yes; then
  8984. 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'
  8985. # Try to use the -exported_symbol ld option, if it does not
  8986. # work, assume that -exports_file does not work either and
  8987. # implicitly export all symbols.
  8988. # This should be the same for all languages, so no per-tag cache variable.
  8989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8990. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8991. if ${lt_cv_irix_exported_symbol+:} false; then :
  8992. $as_echo_n "(cached) " >&6
  8993. else
  8994. save_LDFLAGS="$LDFLAGS"
  8995. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8996. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8997. /* end confdefs.h. */
  8998. int foo (void) { return 0; }
  8999. _ACEOF
  9000. if ac_fn_c_try_link "$LINENO"; then :
  9001. lt_cv_irix_exported_symbol=yes
  9002. else
  9003. lt_cv_irix_exported_symbol=no
  9004. fi
  9005. rm -f core conftest.err conftest.$ac_objext \
  9006. conftest$ac_exeext conftest.$ac_ext
  9007. LDFLAGS="$save_LDFLAGS"
  9008. fi
  9009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9010. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9011. if test "$lt_cv_irix_exported_symbol" = yes; then
  9012. 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'
  9013. fi
  9014. else
  9015. 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'
  9016. 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'
  9017. fi
  9018. archive_cmds_need_lc='no'
  9019. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9020. hardcode_libdir_separator=:
  9021. inherit_rpath=yes
  9022. link_all_deplibs=yes
  9023. ;;
  9024. netbsd*)
  9025. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9026. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9027. else
  9028. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9029. fi
  9030. hardcode_libdir_flag_spec='-R$libdir'
  9031. hardcode_direct=yes
  9032. hardcode_shlibpath_var=no
  9033. ;;
  9034. newsos6)
  9035. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9036. hardcode_direct=yes
  9037. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9038. hardcode_libdir_separator=:
  9039. hardcode_shlibpath_var=no
  9040. ;;
  9041. *nto* | *qnx*)
  9042. ;;
  9043. openbsd*)
  9044. if test -f /usr/libexec/ld.so; then
  9045. hardcode_direct=yes
  9046. hardcode_shlibpath_var=no
  9047. hardcode_direct_absolute=yes
  9048. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9049. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9050. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  9051. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9052. export_dynamic_flag_spec='${wl}-E'
  9053. else
  9054. case $host_os in
  9055. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  9056. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9057. hardcode_libdir_flag_spec='-R$libdir'
  9058. ;;
  9059. *)
  9060. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9061. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9062. ;;
  9063. esac
  9064. fi
  9065. else
  9066. ld_shlibs=no
  9067. fi
  9068. ;;
  9069. os2*)
  9070. hardcode_libdir_flag_spec='-L$libdir'
  9071. hardcode_minus_L=yes
  9072. allow_undefined_flag=unsupported
  9073. archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  9074. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  9075. ;;
  9076. osf3*)
  9077. if test "$GCC" = yes; then
  9078. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9079. 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'
  9080. else
  9081. allow_undefined_flag=' -expect_unresolved \*'
  9082. 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'
  9083. fi
  9084. archive_cmds_need_lc='no'
  9085. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9086. hardcode_libdir_separator=:
  9087. ;;
  9088. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9089. if test "$GCC" = yes; then
  9090. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9091. 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'
  9092. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9093. else
  9094. allow_undefined_flag=' -expect_unresolved \*'
  9095. 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'
  9096. 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~
  9097. $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'
  9098. # Both c and cxx compiler support -rpath directly
  9099. hardcode_libdir_flag_spec='-rpath $libdir'
  9100. fi
  9101. archive_cmds_need_lc='no'
  9102. hardcode_libdir_separator=:
  9103. ;;
  9104. solaris*)
  9105. no_undefined_flag=' -z defs'
  9106. if test "$GCC" = yes; then
  9107. wlarc='${wl}'
  9108. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9109. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9110. $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'
  9111. else
  9112. case `$CC -V 2>&1` in
  9113. *"Compilers 5.0"*)
  9114. wlarc=''
  9115. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9116. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9117. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9118. ;;
  9119. *)
  9120. wlarc='${wl}'
  9121. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9122. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9123. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9124. ;;
  9125. esac
  9126. fi
  9127. hardcode_libdir_flag_spec='-R$libdir'
  9128. hardcode_shlibpath_var=no
  9129. case $host_os in
  9130. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9131. *)
  9132. # The compiler driver will combine and reorder linker options,
  9133. # but understands `-z linker_flag'. GCC discards it without `$wl',
  9134. # but is careful enough not to reorder.
  9135. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9136. if test "$GCC" = yes; then
  9137. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9138. else
  9139. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9140. fi
  9141. ;;
  9142. esac
  9143. link_all_deplibs=yes
  9144. ;;
  9145. sunos4*)
  9146. if test "x$host_vendor" = xsequent; then
  9147. # Use $CC to link under sequent, because it throws in some extra .o
  9148. # files that make .init and .fini sections work.
  9149. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9150. else
  9151. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9152. fi
  9153. hardcode_libdir_flag_spec='-L$libdir'
  9154. hardcode_direct=yes
  9155. hardcode_minus_L=yes
  9156. hardcode_shlibpath_var=no
  9157. ;;
  9158. sysv4)
  9159. case $host_vendor in
  9160. sni)
  9161. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9162. hardcode_direct=yes # is this really true???
  9163. ;;
  9164. siemens)
  9165. ## LD is ld it makes a PLAMLIB
  9166. ## CC just makes a GrossModule.
  9167. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9168. reload_cmds='$CC -r -o $output$reload_objs'
  9169. hardcode_direct=no
  9170. ;;
  9171. motorola)
  9172. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9173. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9174. ;;
  9175. esac
  9176. runpath_var='LD_RUN_PATH'
  9177. hardcode_shlibpath_var=no
  9178. ;;
  9179. sysv4.3*)
  9180. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9181. hardcode_shlibpath_var=no
  9182. export_dynamic_flag_spec='-Bexport'
  9183. ;;
  9184. sysv4*MP*)
  9185. if test -d /usr/nec; then
  9186. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9187. hardcode_shlibpath_var=no
  9188. runpath_var=LD_RUN_PATH
  9189. hardcode_runpath_var=yes
  9190. ld_shlibs=yes
  9191. fi
  9192. ;;
  9193. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9194. no_undefined_flag='${wl}-z,text'
  9195. archive_cmds_need_lc=no
  9196. hardcode_shlibpath_var=no
  9197. runpath_var='LD_RUN_PATH'
  9198. if test "$GCC" = yes; then
  9199. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9200. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9201. else
  9202. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9203. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9204. fi
  9205. ;;
  9206. sysv5* | sco3.2v5* | sco5v6*)
  9207. # Note: We can NOT use -z defs as we might desire, because we do not
  9208. # link with -lc, and that would cause any symbols used from libc to
  9209. # always be unresolved, which means just about no library would
  9210. # ever link correctly. If we're not using GNU ld we use -z text
  9211. # though, which does catch some bad symbols but isn't as heavy-handed
  9212. # as -z defs.
  9213. no_undefined_flag='${wl}-z,text'
  9214. allow_undefined_flag='${wl}-z,nodefs'
  9215. archive_cmds_need_lc=no
  9216. hardcode_shlibpath_var=no
  9217. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9218. hardcode_libdir_separator=':'
  9219. link_all_deplibs=yes
  9220. export_dynamic_flag_spec='${wl}-Bexport'
  9221. runpath_var='LD_RUN_PATH'
  9222. if test "$GCC" = yes; then
  9223. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9224. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9225. else
  9226. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9227. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9228. fi
  9229. ;;
  9230. uts4*)
  9231. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9232. hardcode_libdir_flag_spec='-L$libdir'
  9233. hardcode_shlibpath_var=no
  9234. ;;
  9235. *)
  9236. ld_shlibs=no
  9237. ;;
  9238. esac
  9239. if test x$host_vendor = xsni; then
  9240. case $host in
  9241. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9242. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9243. ;;
  9244. esac
  9245. fi
  9246. fi
  9247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9248. $as_echo "$ld_shlibs" >&6; }
  9249. test "$ld_shlibs" = no && can_build_shared=no
  9250. with_gnu_ld=$with_gnu_ld
  9251. #
  9252. # Do we need to explicitly link libc?
  9253. #
  9254. case "x$archive_cmds_need_lc" in
  9255. x|xyes)
  9256. # Assume -lc should be added
  9257. archive_cmds_need_lc=yes
  9258. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9259. case $archive_cmds in
  9260. *'~'*)
  9261. # FIXME: we may have to deal with multi-command sequences.
  9262. ;;
  9263. '$CC '*)
  9264. # Test whether the compiler implicitly links with -lc since on some
  9265. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9266. # to ld, don't add -lc before -lgcc.
  9267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9268. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9269. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9270. $as_echo_n "(cached) " >&6
  9271. else
  9272. $RM conftest*
  9273. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9274. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9275. (eval $ac_compile) 2>&5
  9276. ac_status=$?
  9277. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9278. test $ac_status = 0; } 2>conftest.err; then
  9279. soname=conftest
  9280. lib=conftest
  9281. libobjs=conftest.$ac_objext
  9282. deplibs=
  9283. wl=$lt_prog_compiler_wl
  9284. pic_flag=$lt_prog_compiler_pic
  9285. compiler_flags=-v
  9286. linker_flags=-v
  9287. verstring=
  9288. output_objdir=.
  9289. libname=conftest
  9290. lt_save_allow_undefined_flag=$allow_undefined_flag
  9291. allow_undefined_flag=
  9292. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9293. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9294. ac_status=$?
  9295. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9296. test $ac_status = 0; }
  9297. then
  9298. lt_cv_archive_cmds_need_lc=no
  9299. else
  9300. lt_cv_archive_cmds_need_lc=yes
  9301. fi
  9302. allow_undefined_flag=$lt_save_allow_undefined_flag
  9303. else
  9304. cat conftest.err 1>&5
  9305. fi
  9306. $RM conftest*
  9307. fi
  9308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9309. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9310. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9311. ;;
  9312. esac
  9313. fi
  9314. ;;
  9315. esac
  9316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9317. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9318. if test "$GCC" = yes; then
  9319. case $host_os in
  9320. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9321. *) lt_awk_arg="/^libraries:/" ;;
  9322. esac
  9323. case $host_os in
  9324. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9325. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9326. esac
  9327. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9328. case $lt_search_path_spec in
  9329. *\;*)
  9330. # if the path contains ";" then we assume it to be the separator
  9331. # otherwise default to the standard path separator (i.e. ":") - it is
  9332. # assumed that no part of a normal pathname contains ";" but that should
  9333. # okay in the real world where ";" in dirpaths is itself problematic.
  9334. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9335. ;;
  9336. *)
  9337. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9338. ;;
  9339. esac
  9340. # Ok, now we have the path, separated by spaces, we can step through it
  9341. # and add multilib dir if necessary.
  9342. lt_tmp_lt_search_path_spec=
  9343. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9344. for lt_sys_path in $lt_search_path_spec; do
  9345. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9346. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9347. else
  9348. test -d "$lt_sys_path" && \
  9349. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9350. fi
  9351. done
  9352. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9353. BEGIN {RS=" "; FS="/|\n";} {
  9354. lt_foo="";
  9355. lt_count=0;
  9356. for (lt_i = NF; lt_i > 0; lt_i--) {
  9357. if ($lt_i != "" && $lt_i != ".") {
  9358. if ($lt_i == "..") {
  9359. lt_count++;
  9360. } else {
  9361. if (lt_count == 0) {
  9362. lt_foo="/" $lt_i lt_foo;
  9363. } else {
  9364. lt_count--;
  9365. }
  9366. }
  9367. }
  9368. }
  9369. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9370. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9371. }'`
  9372. # AWK program above erroneously prepends '/' to C:/dos/paths
  9373. # for these hosts.
  9374. case $host_os in
  9375. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9376. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9377. esac
  9378. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9379. else
  9380. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9381. fi
  9382. library_names_spec=
  9383. libname_spec='lib$name'
  9384. soname_spec=
  9385. shrext_cmds=".so"
  9386. postinstall_cmds=
  9387. postuninstall_cmds=
  9388. finish_cmds=
  9389. finish_eval=
  9390. shlibpath_var=
  9391. shlibpath_overrides_runpath=unknown
  9392. version_type=none
  9393. dynamic_linker="$host_os ld.so"
  9394. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9395. need_lib_prefix=unknown
  9396. hardcode_into_libs=no
  9397. # when you set need_version to no, make sure it does not cause -set_version
  9398. # flags to be left without arguments
  9399. need_version=unknown
  9400. case $host_os in
  9401. aix3*)
  9402. version_type=linux # correct to gnu/linux during the next big refactor
  9403. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9404. shlibpath_var=LIBPATH
  9405. # AIX 3 has no versioning support, so we append a major version to the name.
  9406. soname_spec='${libname}${release}${shared_ext}$major'
  9407. ;;
  9408. aix[4-9]*)
  9409. version_type=linux # correct to gnu/linux during the next big refactor
  9410. need_lib_prefix=no
  9411. need_version=no
  9412. hardcode_into_libs=yes
  9413. if test "$host_cpu" = ia64; then
  9414. # AIX 5 supports IA64
  9415. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9416. shlibpath_var=LD_LIBRARY_PATH
  9417. else
  9418. # With GCC up to 2.95.x, collect2 would create an import file
  9419. # for dependence libraries. The import file would start with
  9420. # the line `#! .'. This would cause the generated library to
  9421. # depend on `.', always an invalid library. This was fixed in
  9422. # development snapshots of GCC prior to 3.0.
  9423. case $host_os in
  9424. aix4 | aix4.[01] | aix4.[01].*)
  9425. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9426. echo ' yes '
  9427. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9428. :
  9429. else
  9430. can_build_shared=no
  9431. fi
  9432. ;;
  9433. esac
  9434. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9435. # soname into executable. Probably we can add versioning support to
  9436. # collect2, so additional links can be useful in future.
  9437. if test "$aix_use_runtimelinking" = yes; then
  9438. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9439. # instead of lib<name>.a to let people know that these are not
  9440. # typical AIX shared libraries.
  9441. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9442. else
  9443. # We preserve .a as extension for shared libraries through AIX4.2
  9444. # and later when we are not doing run time linking.
  9445. library_names_spec='${libname}${release}.a $libname.a'
  9446. soname_spec='${libname}${release}${shared_ext}$major'
  9447. fi
  9448. shlibpath_var=LIBPATH
  9449. fi
  9450. ;;
  9451. amigaos*)
  9452. case $host_cpu in
  9453. powerpc)
  9454. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9455. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9456. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9457. ;;
  9458. m68k)
  9459. library_names_spec='$libname.ixlibrary $libname.a'
  9460. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9461. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
  9462. ;;
  9463. esac
  9464. ;;
  9465. beos*)
  9466. library_names_spec='${libname}${shared_ext}'
  9467. dynamic_linker="$host_os ld.so"
  9468. shlibpath_var=LIBRARY_PATH
  9469. ;;
  9470. bsdi[45]*)
  9471. version_type=linux # correct to gnu/linux during the next big refactor
  9472. need_version=no
  9473. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9474. soname_spec='${libname}${release}${shared_ext}$major'
  9475. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9476. shlibpath_var=LD_LIBRARY_PATH
  9477. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9478. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9479. # the default ld.so.conf also contains /usr/contrib/lib and
  9480. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9481. # libtool to hard-code these into programs
  9482. ;;
  9483. cygwin* | mingw* | pw32* | cegcc*)
  9484. version_type=windows
  9485. shrext_cmds=".dll"
  9486. need_version=no
  9487. need_lib_prefix=no
  9488. case $GCC,$cc_basename in
  9489. yes,*)
  9490. # gcc
  9491. library_names_spec='$libname.dll.a'
  9492. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9493. postinstall_cmds='base_file=`basename \${file}`~
  9494. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9495. dldir=$destdir/`dirname \$dlpath`~
  9496. test -d \$dldir || mkdir -p \$dldir~
  9497. $install_prog $dir/$dlname \$dldir/$dlname~
  9498. chmod a+x \$dldir/$dlname~
  9499. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9500. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9501. fi'
  9502. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9503. dlpath=$dir/\$dldll~
  9504. $RM \$dlpath'
  9505. shlibpath_overrides_runpath=yes
  9506. case $host_os in
  9507. cygwin*)
  9508. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9509. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9510. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9511. ;;
  9512. mingw* | cegcc*)
  9513. # MinGW DLLs use traditional 'lib' prefix
  9514. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9515. ;;
  9516. pw32*)
  9517. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9518. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9519. ;;
  9520. esac
  9521. dynamic_linker='Win32 ld.exe'
  9522. ;;
  9523. *,cl*)
  9524. # Native MSVC
  9525. libname_spec='$name'
  9526. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9527. library_names_spec='${libname}.dll.lib'
  9528. case $build_os in
  9529. mingw*)
  9530. sys_lib_search_path_spec=
  9531. lt_save_ifs=$IFS
  9532. IFS=';'
  9533. for lt_path in $LIB
  9534. do
  9535. IFS=$lt_save_ifs
  9536. # Let DOS variable expansion print the short 8.3 style file name.
  9537. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9538. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9539. done
  9540. IFS=$lt_save_ifs
  9541. # Convert to MSYS style.
  9542. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9543. ;;
  9544. cygwin*)
  9545. # Convert to unix form, then to dos form, then back to unix form
  9546. # but this time dos style (no spaces!) so that the unix form looks
  9547. # like /cygdrive/c/PROGRA~1:/cygdr...
  9548. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9549. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9550. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9551. ;;
  9552. *)
  9553. sys_lib_search_path_spec="$LIB"
  9554. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9555. # It is most probably a Windows format PATH.
  9556. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9557. else
  9558. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9559. fi
  9560. # FIXME: find the short name or the path components, as spaces are
  9561. # common. (e.g. "Program Files" -> "PROGRA~1")
  9562. ;;
  9563. esac
  9564. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9565. postinstall_cmds='base_file=`basename \${file}`~
  9566. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9567. dldir=$destdir/`dirname \$dlpath`~
  9568. test -d \$dldir || mkdir -p \$dldir~
  9569. $install_prog $dir/$dlname \$dldir/$dlname'
  9570. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9571. dlpath=$dir/\$dldll~
  9572. $RM \$dlpath'
  9573. shlibpath_overrides_runpath=yes
  9574. dynamic_linker='Win32 link.exe'
  9575. ;;
  9576. *)
  9577. # Assume MSVC wrapper
  9578. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9579. dynamic_linker='Win32 ld.exe'
  9580. ;;
  9581. esac
  9582. # FIXME: first we should search . and the directory the executable is in
  9583. shlibpath_var=PATH
  9584. ;;
  9585. darwin* | rhapsody*)
  9586. dynamic_linker="$host_os dyld"
  9587. version_type=darwin
  9588. need_lib_prefix=no
  9589. need_version=no
  9590. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9591. soname_spec='${libname}${release}${major}$shared_ext'
  9592. shlibpath_overrides_runpath=yes
  9593. shlibpath_var=DYLD_LIBRARY_PATH
  9594. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9595. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9596. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9597. ;;
  9598. dgux*)
  9599. version_type=linux # correct to gnu/linux during the next big refactor
  9600. need_lib_prefix=no
  9601. need_version=no
  9602. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9603. soname_spec='${libname}${release}${shared_ext}$major'
  9604. shlibpath_var=LD_LIBRARY_PATH
  9605. ;;
  9606. freebsd* | dragonfly*)
  9607. # DragonFly does not have aout. When/if they implement a new
  9608. # versioning mechanism, adjust this.
  9609. if test -x /usr/bin/objformat; then
  9610. objformat=`/usr/bin/objformat`
  9611. else
  9612. case $host_os in
  9613. freebsd[23].*) objformat=aout ;;
  9614. *) objformat=elf ;;
  9615. esac
  9616. fi
  9617. version_type=freebsd-$objformat
  9618. case $version_type in
  9619. freebsd-elf*)
  9620. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9621. need_version=no
  9622. need_lib_prefix=no
  9623. ;;
  9624. freebsd-*)
  9625. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9626. need_version=yes
  9627. ;;
  9628. esac
  9629. shlibpath_var=LD_LIBRARY_PATH
  9630. case $host_os in
  9631. freebsd2.*)
  9632. shlibpath_overrides_runpath=yes
  9633. ;;
  9634. freebsd3.[01]* | freebsdelf3.[01]*)
  9635. shlibpath_overrides_runpath=yes
  9636. hardcode_into_libs=yes
  9637. ;;
  9638. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9639. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9640. shlibpath_overrides_runpath=no
  9641. hardcode_into_libs=yes
  9642. ;;
  9643. *) # from 4.6 on, and DragonFly
  9644. shlibpath_overrides_runpath=yes
  9645. hardcode_into_libs=yes
  9646. ;;
  9647. esac
  9648. ;;
  9649. gnu*)
  9650. version_type=linux # correct to gnu/linux during the next big refactor
  9651. need_lib_prefix=no
  9652. need_version=no
  9653. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9654. soname_spec='${libname}${release}${shared_ext}$major'
  9655. shlibpath_var=LD_LIBRARY_PATH
  9656. shlibpath_overrides_runpath=no
  9657. hardcode_into_libs=yes
  9658. ;;
  9659. haiku*)
  9660. version_type=linux # correct to gnu/linux during the next big refactor
  9661. need_lib_prefix=no
  9662. need_version=no
  9663. dynamic_linker="$host_os runtime_loader"
  9664. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9665. soname_spec='${libname}${release}${shared_ext}$major'
  9666. shlibpath_var=LIBRARY_PATH
  9667. shlibpath_overrides_runpath=yes
  9668. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9669. hardcode_into_libs=yes
  9670. ;;
  9671. hpux9* | hpux10* | hpux11*)
  9672. # Give a soname corresponding to the major version so that dld.sl refuses to
  9673. # link against other versions.
  9674. version_type=sunos
  9675. need_lib_prefix=no
  9676. need_version=no
  9677. case $host_cpu in
  9678. ia64*)
  9679. shrext_cmds='.so'
  9680. hardcode_into_libs=yes
  9681. dynamic_linker="$host_os dld.so"
  9682. shlibpath_var=LD_LIBRARY_PATH
  9683. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9684. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9685. soname_spec='${libname}${release}${shared_ext}$major'
  9686. if test "X$HPUX_IA64_MODE" = X32; then
  9687. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9688. else
  9689. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9690. fi
  9691. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9692. ;;
  9693. hppa*64*)
  9694. shrext_cmds='.sl'
  9695. hardcode_into_libs=yes
  9696. dynamic_linker="$host_os dld.sl"
  9697. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9698. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9699. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9700. soname_spec='${libname}${release}${shared_ext}$major'
  9701. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9702. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9703. ;;
  9704. *)
  9705. shrext_cmds='.sl'
  9706. dynamic_linker="$host_os dld.sl"
  9707. shlibpath_var=SHLIB_PATH
  9708. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9709. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9710. soname_spec='${libname}${release}${shared_ext}$major'
  9711. ;;
  9712. esac
  9713. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9714. postinstall_cmds='chmod 555 $lib'
  9715. # or fails outright, so override atomically:
  9716. install_override_mode=555
  9717. ;;
  9718. interix[3-9]*)
  9719. version_type=linux # correct to gnu/linux during the next big refactor
  9720. need_lib_prefix=no
  9721. need_version=no
  9722. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9723. soname_spec='${libname}${release}${shared_ext}$major'
  9724. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9725. shlibpath_var=LD_LIBRARY_PATH
  9726. shlibpath_overrides_runpath=no
  9727. hardcode_into_libs=yes
  9728. ;;
  9729. irix5* | irix6* | nonstopux*)
  9730. case $host_os in
  9731. nonstopux*) version_type=nonstopux ;;
  9732. *)
  9733. if test "$lt_cv_prog_gnu_ld" = yes; then
  9734. version_type=linux # correct to gnu/linux during the next big refactor
  9735. else
  9736. version_type=irix
  9737. fi ;;
  9738. esac
  9739. need_lib_prefix=no
  9740. need_version=no
  9741. soname_spec='${libname}${release}${shared_ext}$major'
  9742. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9743. case $host_os in
  9744. irix5* | nonstopux*)
  9745. libsuff= shlibsuff=
  9746. ;;
  9747. *)
  9748. case $LD in # libtool.m4 will add one of these switches to LD
  9749. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9750. libsuff= shlibsuff= libmagic=32-bit;;
  9751. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9752. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9753. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9754. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9755. *) libsuff= shlibsuff= libmagic=never-match;;
  9756. esac
  9757. ;;
  9758. esac
  9759. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9760. shlibpath_overrides_runpath=no
  9761. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9762. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9763. hardcode_into_libs=yes
  9764. ;;
  9765. # No shared lib support for Linux oldld, aout, or coff.
  9766. linux*oldld* | linux*aout* | linux*coff*)
  9767. dynamic_linker=no
  9768. ;;
  9769. # This must be glibc/ELF.
  9770. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9771. version_type=linux # correct to gnu/linux during the next big refactor
  9772. need_lib_prefix=no
  9773. need_version=no
  9774. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9775. soname_spec='${libname}${release}${shared_ext}$major'
  9776. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9777. shlibpath_var=LD_LIBRARY_PATH
  9778. shlibpath_overrides_runpath=no
  9779. # Some binutils ld are patched to set DT_RUNPATH
  9780. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9781. $as_echo_n "(cached) " >&6
  9782. else
  9783. lt_cv_shlibpath_overrides_runpath=no
  9784. save_LDFLAGS=$LDFLAGS
  9785. save_libdir=$libdir
  9786. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9787. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9788. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9789. /* end confdefs.h. */
  9790. int
  9791. main ()
  9792. {
  9793. ;
  9794. return 0;
  9795. }
  9796. _ACEOF
  9797. if ac_fn_c_try_link "$LINENO"; then :
  9798. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9799. lt_cv_shlibpath_overrides_runpath=yes
  9800. fi
  9801. fi
  9802. rm -f core conftest.err conftest.$ac_objext \
  9803. conftest$ac_exeext conftest.$ac_ext
  9804. LDFLAGS=$save_LDFLAGS
  9805. libdir=$save_libdir
  9806. fi
  9807. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9808. # This implies no fast_install, which is unacceptable.
  9809. # Some rework will be needed to allow for fast_install
  9810. # before this can be enabled.
  9811. hardcode_into_libs=yes
  9812. # Add ABI-specific directories to the system library path.
  9813. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  9814. # Append ld.so.conf contents to the search path
  9815. if test -f /etc/ld.so.conf; then
  9816. 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' ' '`
  9817. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  9818. fi
  9819. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9820. # powerpc, because MkLinux only supported shared libraries with the
  9821. # GNU dynamic linker. Since this was broken with cross compilers,
  9822. # most powerpc-linux boxes support dynamic linking these days and
  9823. # people can always --disable-shared, the test was removed, and we
  9824. # assume the GNU/Linux dynamic linker is in use.
  9825. dynamic_linker='GNU/Linux ld.so'
  9826. ;;
  9827. netbsd*)
  9828. version_type=sunos
  9829. need_lib_prefix=no
  9830. need_version=no
  9831. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9832. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9833. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9834. dynamic_linker='NetBSD (a.out) ld.so'
  9835. else
  9836. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9837. soname_spec='${libname}${release}${shared_ext}$major'
  9838. dynamic_linker='NetBSD ld.elf_so'
  9839. fi
  9840. shlibpath_var=LD_LIBRARY_PATH
  9841. shlibpath_overrides_runpath=yes
  9842. hardcode_into_libs=yes
  9843. ;;
  9844. newsos6)
  9845. version_type=linux # correct to gnu/linux during the next big refactor
  9846. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9847. shlibpath_var=LD_LIBRARY_PATH
  9848. shlibpath_overrides_runpath=yes
  9849. ;;
  9850. *nto* | *qnx*)
  9851. version_type=qnx
  9852. need_lib_prefix=no
  9853. need_version=no
  9854. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9855. soname_spec='${libname}${release}${shared_ext}$major'
  9856. shlibpath_var=LD_LIBRARY_PATH
  9857. shlibpath_overrides_runpath=no
  9858. hardcode_into_libs=yes
  9859. dynamic_linker='ldqnx.so'
  9860. ;;
  9861. openbsd*)
  9862. version_type=sunos
  9863. sys_lib_dlsearch_path_spec="/usr/lib"
  9864. need_lib_prefix=no
  9865. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9866. case $host_os in
  9867. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9868. *) need_version=no ;;
  9869. esac
  9870. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9871. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9872. shlibpath_var=LD_LIBRARY_PATH
  9873. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9874. case $host_os in
  9875. openbsd2.[89] | openbsd2.[89].*)
  9876. shlibpath_overrides_runpath=no
  9877. ;;
  9878. *)
  9879. shlibpath_overrides_runpath=yes
  9880. ;;
  9881. esac
  9882. else
  9883. shlibpath_overrides_runpath=yes
  9884. fi
  9885. ;;
  9886. os2*)
  9887. libname_spec='$name'
  9888. shrext_cmds=".dll"
  9889. need_lib_prefix=no
  9890. library_names_spec='$libname${shared_ext} $libname.a'
  9891. dynamic_linker='OS/2 ld.exe'
  9892. shlibpath_var=LIBPATH
  9893. ;;
  9894. osf3* | osf4* | osf5*)
  9895. version_type=osf
  9896. need_lib_prefix=no
  9897. need_version=no
  9898. soname_spec='${libname}${release}${shared_ext}$major'
  9899. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9900. shlibpath_var=LD_LIBRARY_PATH
  9901. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9902. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9903. ;;
  9904. rdos*)
  9905. dynamic_linker=no
  9906. ;;
  9907. solaris*)
  9908. version_type=linux # correct to gnu/linux during the next big refactor
  9909. need_lib_prefix=no
  9910. need_version=no
  9911. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9912. soname_spec='${libname}${release}${shared_ext}$major'
  9913. shlibpath_var=LD_LIBRARY_PATH
  9914. shlibpath_overrides_runpath=yes
  9915. hardcode_into_libs=yes
  9916. # ldd complains unless libraries are executable
  9917. postinstall_cmds='chmod +x $lib'
  9918. ;;
  9919. sunos4*)
  9920. version_type=sunos
  9921. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9922. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9923. shlibpath_var=LD_LIBRARY_PATH
  9924. shlibpath_overrides_runpath=yes
  9925. if test "$with_gnu_ld" = yes; then
  9926. need_lib_prefix=no
  9927. fi
  9928. need_version=yes
  9929. ;;
  9930. sysv4 | sysv4.3*)
  9931. version_type=linux # correct to gnu/linux during the next big refactor
  9932. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9933. soname_spec='${libname}${release}${shared_ext}$major'
  9934. shlibpath_var=LD_LIBRARY_PATH
  9935. case $host_vendor in
  9936. sni)
  9937. shlibpath_overrides_runpath=no
  9938. need_lib_prefix=no
  9939. runpath_var=LD_RUN_PATH
  9940. ;;
  9941. siemens)
  9942. need_lib_prefix=no
  9943. ;;
  9944. motorola)
  9945. need_lib_prefix=no
  9946. need_version=no
  9947. shlibpath_overrides_runpath=no
  9948. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9949. ;;
  9950. esac
  9951. ;;
  9952. sysv4*MP*)
  9953. if test -d /usr/nec ;then
  9954. version_type=linux # correct to gnu/linux during the next big refactor
  9955. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9956. soname_spec='$libname${shared_ext}.$major'
  9957. shlibpath_var=LD_LIBRARY_PATH
  9958. fi
  9959. ;;
  9960. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9961. version_type=freebsd-elf
  9962. need_lib_prefix=no
  9963. need_version=no
  9964. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9965. soname_spec='${libname}${release}${shared_ext}$major'
  9966. shlibpath_var=LD_LIBRARY_PATH
  9967. shlibpath_overrides_runpath=yes
  9968. hardcode_into_libs=yes
  9969. if test "$with_gnu_ld" = yes; then
  9970. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9971. else
  9972. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9973. case $host_os in
  9974. sco3.2v5*)
  9975. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9976. ;;
  9977. esac
  9978. fi
  9979. sys_lib_dlsearch_path_spec='/usr/lib'
  9980. ;;
  9981. tpf*)
  9982. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9983. version_type=linux # correct to gnu/linux during the next big refactor
  9984. need_lib_prefix=no
  9985. need_version=no
  9986. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9987. shlibpath_var=LD_LIBRARY_PATH
  9988. shlibpath_overrides_runpath=no
  9989. hardcode_into_libs=yes
  9990. ;;
  9991. uts4*)
  9992. version_type=linux # correct to gnu/linux during the next big refactor
  9993. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9994. soname_spec='${libname}${release}${shared_ext}$major'
  9995. shlibpath_var=LD_LIBRARY_PATH
  9996. ;;
  9997. *)
  9998. dynamic_linker=no
  9999. ;;
  10000. esac
  10001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10002. $as_echo "$dynamic_linker" >&6; }
  10003. test "$dynamic_linker" = no && can_build_shared=no
  10004. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10005. if test "$GCC" = yes; then
  10006. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10007. fi
  10008. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  10009. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  10010. fi
  10011. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  10012. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  10013. fi
  10014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10015. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10016. hardcode_action=
  10017. if test -n "$hardcode_libdir_flag_spec" ||
  10018. test -n "$runpath_var" ||
  10019. test "X$hardcode_automatic" = "Xyes" ; then
  10020. # We can hardcode non-existent directories.
  10021. if test "$hardcode_direct" != no &&
  10022. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10023. # have to relink, otherwise we might link with an installed library
  10024. # when we should be linking with a yet-to-be-installed one
  10025. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  10026. test "$hardcode_minus_L" != no; then
  10027. # Linking always hardcodes the temporary library directory.
  10028. hardcode_action=relink
  10029. else
  10030. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10031. hardcode_action=immediate
  10032. fi
  10033. else
  10034. # We cannot hardcode anything, or else we can only hardcode existing
  10035. # directories.
  10036. hardcode_action=unsupported
  10037. fi
  10038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10039. $as_echo "$hardcode_action" >&6; }
  10040. if test "$hardcode_action" = relink ||
  10041. test "$inherit_rpath" = yes; then
  10042. # Fast installation is not supported
  10043. enable_fast_install=no
  10044. elif test "$shlibpath_overrides_runpath" = yes ||
  10045. test "$enable_shared" = no; then
  10046. # Fast installation is not necessary
  10047. enable_fast_install=needless
  10048. fi
  10049. if test "x$enable_dlopen" != xyes; then
  10050. enable_dlopen=unknown
  10051. enable_dlopen_self=unknown
  10052. enable_dlopen_self_static=unknown
  10053. else
  10054. lt_cv_dlopen=no
  10055. lt_cv_dlopen_libs=
  10056. case $host_os in
  10057. beos*)
  10058. lt_cv_dlopen="load_add_on"
  10059. lt_cv_dlopen_libs=
  10060. lt_cv_dlopen_self=yes
  10061. ;;
  10062. mingw* | pw32* | cegcc*)
  10063. lt_cv_dlopen="LoadLibrary"
  10064. lt_cv_dlopen_libs=
  10065. ;;
  10066. cygwin*)
  10067. lt_cv_dlopen="dlopen"
  10068. lt_cv_dlopen_libs=
  10069. ;;
  10070. darwin*)
  10071. # if libdl is installed we need to link against it
  10072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10073. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10074. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10075. $as_echo_n "(cached) " >&6
  10076. else
  10077. ac_check_lib_save_LIBS=$LIBS
  10078. LIBS="-ldl $LIBS"
  10079. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10080. /* end confdefs.h. */
  10081. /* Override any GCC internal prototype to avoid an error.
  10082. Use char because int might match the return type of a GCC
  10083. builtin and then its argument prototype would still apply. */
  10084. #ifdef __cplusplus
  10085. extern "C"
  10086. #endif
  10087. char dlopen ();
  10088. int
  10089. main ()
  10090. {
  10091. return dlopen ();
  10092. ;
  10093. return 0;
  10094. }
  10095. _ACEOF
  10096. if ac_fn_c_try_link "$LINENO"; then :
  10097. ac_cv_lib_dl_dlopen=yes
  10098. else
  10099. ac_cv_lib_dl_dlopen=no
  10100. fi
  10101. rm -f core conftest.err conftest.$ac_objext \
  10102. conftest$ac_exeext conftest.$ac_ext
  10103. LIBS=$ac_check_lib_save_LIBS
  10104. fi
  10105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10106. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10107. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10108. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10109. else
  10110. lt_cv_dlopen="dyld"
  10111. lt_cv_dlopen_libs=
  10112. lt_cv_dlopen_self=yes
  10113. fi
  10114. ;;
  10115. *)
  10116. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10117. if test "x$ac_cv_func_shl_load" = xyes; then :
  10118. lt_cv_dlopen="shl_load"
  10119. else
  10120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10121. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10122. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10123. $as_echo_n "(cached) " >&6
  10124. else
  10125. ac_check_lib_save_LIBS=$LIBS
  10126. LIBS="-ldld $LIBS"
  10127. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10128. /* end confdefs.h. */
  10129. /* Override any GCC internal prototype to avoid an error.
  10130. Use char because int might match the return type of a GCC
  10131. builtin and then its argument prototype would still apply. */
  10132. #ifdef __cplusplus
  10133. extern "C"
  10134. #endif
  10135. char shl_load ();
  10136. int
  10137. main ()
  10138. {
  10139. return shl_load ();
  10140. ;
  10141. return 0;
  10142. }
  10143. _ACEOF
  10144. if ac_fn_c_try_link "$LINENO"; then :
  10145. ac_cv_lib_dld_shl_load=yes
  10146. else
  10147. ac_cv_lib_dld_shl_load=no
  10148. fi
  10149. rm -f core conftest.err conftest.$ac_objext \
  10150. conftest$ac_exeext conftest.$ac_ext
  10151. LIBS=$ac_check_lib_save_LIBS
  10152. fi
  10153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10154. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10155. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10156. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  10157. else
  10158. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10159. if test "x$ac_cv_func_dlopen" = xyes; then :
  10160. lt_cv_dlopen="dlopen"
  10161. else
  10162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10163. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10164. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10165. $as_echo_n "(cached) " >&6
  10166. else
  10167. ac_check_lib_save_LIBS=$LIBS
  10168. LIBS="-ldl $LIBS"
  10169. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10170. /* end confdefs.h. */
  10171. /* Override any GCC internal prototype to avoid an error.
  10172. Use char because int might match the return type of a GCC
  10173. builtin and then its argument prototype would still apply. */
  10174. #ifdef __cplusplus
  10175. extern "C"
  10176. #endif
  10177. char dlopen ();
  10178. int
  10179. main ()
  10180. {
  10181. return dlopen ();
  10182. ;
  10183. return 0;
  10184. }
  10185. _ACEOF
  10186. if ac_fn_c_try_link "$LINENO"; then :
  10187. ac_cv_lib_dl_dlopen=yes
  10188. else
  10189. ac_cv_lib_dl_dlopen=no
  10190. fi
  10191. rm -f core conftest.err conftest.$ac_objext \
  10192. conftest$ac_exeext conftest.$ac_ext
  10193. LIBS=$ac_check_lib_save_LIBS
  10194. fi
  10195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10196. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10197. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10198. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10199. else
  10200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10201. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10202. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10203. $as_echo_n "(cached) " >&6
  10204. else
  10205. ac_check_lib_save_LIBS=$LIBS
  10206. LIBS="-lsvld $LIBS"
  10207. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10208. /* end confdefs.h. */
  10209. /* Override any GCC internal prototype to avoid an error.
  10210. Use char because int might match the return type of a GCC
  10211. builtin and then its argument prototype would still apply. */
  10212. #ifdef __cplusplus
  10213. extern "C"
  10214. #endif
  10215. char dlopen ();
  10216. int
  10217. main ()
  10218. {
  10219. return dlopen ();
  10220. ;
  10221. return 0;
  10222. }
  10223. _ACEOF
  10224. if ac_fn_c_try_link "$LINENO"; then :
  10225. ac_cv_lib_svld_dlopen=yes
  10226. else
  10227. ac_cv_lib_svld_dlopen=no
  10228. fi
  10229. rm -f core conftest.err conftest.$ac_objext \
  10230. conftest$ac_exeext conftest.$ac_ext
  10231. LIBS=$ac_check_lib_save_LIBS
  10232. fi
  10233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10234. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10235. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10236. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10237. else
  10238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10239. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10240. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10241. $as_echo_n "(cached) " >&6
  10242. else
  10243. ac_check_lib_save_LIBS=$LIBS
  10244. LIBS="-ldld $LIBS"
  10245. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10246. /* end confdefs.h. */
  10247. /* Override any GCC internal prototype to avoid an error.
  10248. Use char because int might match the return type of a GCC
  10249. builtin and then its argument prototype would still apply. */
  10250. #ifdef __cplusplus
  10251. extern "C"
  10252. #endif
  10253. char dld_link ();
  10254. int
  10255. main ()
  10256. {
  10257. return dld_link ();
  10258. ;
  10259. return 0;
  10260. }
  10261. _ACEOF
  10262. if ac_fn_c_try_link "$LINENO"; then :
  10263. ac_cv_lib_dld_dld_link=yes
  10264. else
  10265. ac_cv_lib_dld_dld_link=no
  10266. fi
  10267. rm -f core conftest.err conftest.$ac_objext \
  10268. conftest$ac_exeext conftest.$ac_ext
  10269. LIBS=$ac_check_lib_save_LIBS
  10270. fi
  10271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10272. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10273. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10274. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10275. fi
  10276. fi
  10277. fi
  10278. fi
  10279. fi
  10280. fi
  10281. ;;
  10282. esac
  10283. if test "x$lt_cv_dlopen" != xno; then
  10284. enable_dlopen=yes
  10285. else
  10286. enable_dlopen=no
  10287. fi
  10288. case $lt_cv_dlopen in
  10289. dlopen)
  10290. save_CPPFLAGS="$CPPFLAGS"
  10291. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10292. save_LDFLAGS="$LDFLAGS"
  10293. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10294. save_LIBS="$LIBS"
  10295. LIBS="$lt_cv_dlopen_libs $LIBS"
  10296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10297. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10298. if ${lt_cv_dlopen_self+:} false; then :
  10299. $as_echo_n "(cached) " >&6
  10300. else
  10301. if test "$cross_compiling" = yes; then :
  10302. lt_cv_dlopen_self=cross
  10303. else
  10304. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10305. lt_status=$lt_dlunknown
  10306. cat > conftest.$ac_ext <<_LT_EOF
  10307. #line $LINENO "configure"
  10308. #include "confdefs.h"
  10309. #if HAVE_DLFCN_H
  10310. #include <dlfcn.h>
  10311. #endif
  10312. #include <stdio.h>
  10313. #ifdef RTLD_GLOBAL
  10314. # define LT_DLGLOBAL RTLD_GLOBAL
  10315. #else
  10316. # ifdef DL_GLOBAL
  10317. # define LT_DLGLOBAL DL_GLOBAL
  10318. # else
  10319. # define LT_DLGLOBAL 0
  10320. # endif
  10321. #endif
  10322. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10323. find out it does not work in some platform. */
  10324. #ifndef LT_DLLAZY_OR_NOW
  10325. # ifdef RTLD_LAZY
  10326. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10327. # else
  10328. # ifdef DL_LAZY
  10329. # define LT_DLLAZY_OR_NOW DL_LAZY
  10330. # else
  10331. # ifdef RTLD_NOW
  10332. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10333. # else
  10334. # ifdef DL_NOW
  10335. # define LT_DLLAZY_OR_NOW DL_NOW
  10336. # else
  10337. # define LT_DLLAZY_OR_NOW 0
  10338. # endif
  10339. # endif
  10340. # endif
  10341. # endif
  10342. #endif
  10343. /* When -fvisbility=hidden is used, assume the code has been annotated
  10344. correspondingly for the symbols needed. */
  10345. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10346. int fnord () __attribute__((visibility("default")));
  10347. #endif
  10348. int fnord () { return 42; }
  10349. int main ()
  10350. {
  10351. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10352. int status = $lt_dlunknown;
  10353. if (self)
  10354. {
  10355. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10356. else
  10357. {
  10358. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10359. else puts (dlerror ());
  10360. }
  10361. /* dlclose (self); */
  10362. }
  10363. else
  10364. puts (dlerror ());
  10365. return status;
  10366. }
  10367. _LT_EOF
  10368. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10369. (eval $ac_link) 2>&5
  10370. ac_status=$?
  10371. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10372. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10373. (./conftest; exit; ) >&5 2>/dev/null
  10374. lt_status=$?
  10375. case x$lt_status in
  10376. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10377. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10378. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10379. esac
  10380. else :
  10381. # compilation failed
  10382. lt_cv_dlopen_self=no
  10383. fi
  10384. fi
  10385. rm -fr conftest*
  10386. fi
  10387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10388. $as_echo "$lt_cv_dlopen_self" >&6; }
  10389. if test "x$lt_cv_dlopen_self" = xyes; then
  10390. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10392. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10393. if ${lt_cv_dlopen_self_static+:} false; then :
  10394. $as_echo_n "(cached) " >&6
  10395. else
  10396. if test "$cross_compiling" = yes; then :
  10397. lt_cv_dlopen_self_static=cross
  10398. else
  10399. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10400. lt_status=$lt_dlunknown
  10401. cat > conftest.$ac_ext <<_LT_EOF
  10402. #line $LINENO "configure"
  10403. #include "confdefs.h"
  10404. #if HAVE_DLFCN_H
  10405. #include <dlfcn.h>
  10406. #endif
  10407. #include <stdio.h>
  10408. #ifdef RTLD_GLOBAL
  10409. # define LT_DLGLOBAL RTLD_GLOBAL
  10410. #else
  10411. # ifdef DL_GLOBAL
  10412. # define LT_DLGLOBAL DL_GLOBAL
  10413. # else
  10414. # define LT_DLGLOBAL 0
  10415. # endif
  10416. #endif
  10417. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10418. find out it does not work in some platform. */
  10419. #ifndef LT_DLLAZY_OR_NOW
  10420. # ifdef RTLD_LAZY
  10421. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10422. # else
  10423. # ifdef DL_LAZY
  10424. # define LT_DLLAZY_OR_NOW DL_LAZY
  10425. # else
  10426. # ifdef RTLD_NOW
  10427. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10428. # else
  10429. # ifdef DL_NOW
  10430. # define LT_DLLAZY_OR_NOW DL_NOW
  10431. # else
  10432. # define LT_DLLAZY_OR_NOW 0
  10433. # endif
  10434. # endif
  10435. # endif
  10436. # endif
  10437. #endif
  10438. /* When -fvisbility=hidden is used, assume the code has been annotated
  10439. correspondingly for the symbols needed. */
  10440. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10441. int fnord () __attribute__((visibility("default")));
  10442. #endif
  10443. int fnord () { return 42; }
  10444. int main ()
  10445. {
  10446. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10447. int status = $lt_dlunknown;
  10448. if (self)
  10449. {
  10450. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10451. else
  10452. {
  10453. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10454. else puts (dlerror ());
  10455. }
  10456. /* dlclose (self); */
  10457. }
  10458. else
  10459. puts (dlerror ());
  10460. return status;
  10461. }
  10462. _LT_EOF
  10463. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10464. (eval $ac_link) 2>&5
  10465. ac_status=$?
  10466. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10467. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10468. (./conftest; exit; ) >&5 2>/dev/null
  10469. lt_status=$?
  10470. case x$lt_status in
  10471. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10472. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10473. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10474. esac
  10475. else :
  10476. # compilation failed
  10477. lt_cv_dlopen_self_static=no
  10478. fi
  10479. fi
  10480. rm -fr conftest*
  10481. fi
  10482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10483. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10484. fi
  10485. CPPFLAGS="$save_CPPFLAGS"
  10486. LDFLAGS="$save_LDFLAGS"
  10487. LIBS="$save_LIBS"
  10488. ;;
  10489. esac
  10490. case $lt_cv_dlopen_self in
  10491. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10492. *) enable_dlopen_self=unknown ;;
  10493. esac
  10494. case $lt_cv_dlopen_self_static in
  10495. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10496. *) enable_dlopen_self_static=unknown ;;
  10497. esac
  10498. fi
  10499. striplib=
  10500. old_striplib=
  10501. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10502. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10503. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10504. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10505. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10507. $as_echo "yes" >&6; }
  10508. else
  10509. # FIXME - insert some real tests, host_os isn't really good enough
  10510. case $host_os in
  10511. darwin*)
  10512. if test -n "$STRIP" ; then
  10513. striplib="$STRIP -x"
  10514. old_striplib="$STRIP -S"
  10515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10516. $as_echo "yes" >&6; }
  10517. else
  10518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10519. $as_echo "no" >&6; }
  10520. fi
  10521. ;;
  10522. *)
  10523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10524. $as_echo "no" >&6; }
  10525. ;;
  10526. esac
  10527. fi
  10528. # Report which library types will actually be built
  10529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10530. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10532. $as_echo "$can_build_shared" >&6; }
  10533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10534. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10535. test "$can_build_shared" = "no" && enable_shared=no
  10536. # On AIX, shared libraries and static libraries use the same namespace, and
  10537. # are all built from PIC.
  10538. case $host_os in
  10539. aix3*)
  10540. test "$enable_shared" = yes && enable_static=no
  10541. if test -n "$RANLIB"; then
  10542. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10543. postinstall_cmds='$RANLIB $lib'
  10544. fi
  10545. ;;
  10546. aix[4-9]*)
  10547. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10548. test "$enable_shared" = yes && enable_static=no
  10549. fi
  10550. ;;
  10551. esac
  10552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10553. $as_echo "$enable_shared" >&6; }
  10554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10555. $as_echo_n "checking whether to build static libraries... " >&6; }
  10556. # Make sure either enable_shared or enable_static is yes.
  10557. test "$enable_shared" = yes || enable_static=yes
  10558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10559. $as_echo "$enable_static" >&6; }
  10560. fi
  10561. ac_ext=c
  10562. ac_cpp='$CPP $CPPFLAGS'
  10563. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10564. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10565. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10566. CC="$lt_save_CC"
  10567. ac_config_commands="$ac_config_commands libtool"
  10568. # Only expand once:
  10569. for ac_prog in 'flex'
  10570. do
  10571. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10572. set dummy $ac_prog; ac_word=$2
  10573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10574. $as_echo_n "checking for $ac_word... " >&6; }
  10575. if ${ac_cv_prog_FLEX+:} false; then :
  10576. $as_echo_n "(cached) " >&6
  10577. else
  10578. if test -n "$FLEX"; then
  10579. ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
  10580. else
  10581. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10582. for as_dir in $PATH
  10583. do
  10584. IFS=$as_save_IFS
  10585. test -z "$as_dir" && as_dir=.
  10586. for ac_exec_ext in '' $ac_executable_extensions; do
  10587. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10588. ac_cv_prog_FLEX="$ac_prog"
  10589. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10590. break 2
  10591. fi
  10592. done
  10593. done
  10594. IFS=$as_save_IFS
  10595. fi
  10596. fi
  10597. FLEX=$ac_cv_prog_FLEX
  10598. if test -n "$FLEX"; then
  10599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
  10600. $as_echo "$FLEX" >&6; }
  10601. else
  10602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10603. $as_echo "no" >&6; }
  10604. fi
  10605. test -n "$FLEX" && break
  10606. done
  10607. for ac_prog in 'bison -y'
  10608. do
  10609. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10610. set dummy $ac_prog; ac_word=$2
  10611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10612. $as_echo_n "checking for $ac_word... " >&6; }
  10613. if ${ac_cv_prog_YACC+:} false; then :
  10614. $as_echo_n "(cached) " >&6
  10615. else
  10616. if test -n "$YACC"; then
  10617. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  10618. else
  10619. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10620. for as_dir in $PATH
  10621. do
  10622. IFS=$as_save_IFS
  10623. test -z "$as_dir" && as_dir=.
  10624. for ac_exec_ext in '' $ac_executable_extensions; do
  10625. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10626. ac_cv_prog_YACC="$ac_prog"
  10627. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10628. break 2
  10629. fi
  10630. done
  10631. done
  10632. IFS=$as_save_IFS
  10633. fi
  10634. fi
  10635. YACC=$ac_cv_prog_YACC
  10636. if test -n "$YACC"; then
  10637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
  10638. $as_echo "$YACC" >&6; }
  10639. else
  10640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10641. $as_echo "no" >&6; }
  10642. fi
  10643. test -n "$YACC" && break
  10644. done
  10645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  10646. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  10647. if ${ac_cv_c_const+:} false; then :
  10648. $as_echo_n "(cached) " >&6
  10649. else
  10650. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10651. /* end confdefs.h. */
  10652. int
  10653. main ()
  10654. {
  10655. #ifndef __cplusplus
  10656. /* Ultrix mips cc rejects this sort of thing. */
  10657. typedef int charset[2];
  10658. const charset cs = { 0, 0 };
  10659. /* SunOS 4.1.1 cc rejects this. */
  10660. char const *const *pcpcc;
  10661. char **ppc;
  10662. /* NEC SVR4.0.2 mips cc rejects this. */
  10663. struct point {int x, y;};
  10664. static struct point const zero = {0,0};
  10665. /* AIX XL C 1.02.0.0 rejects this.
  10666. It does not let you subtract one const X* pointer from another in
  10667. an arm of an if-expression whose if-part is not a constant
  10668. expression */
  10669. const char *g = "string";
  10670. pcpcc = &g + (g ? g-g : 0);
  10671. /* HPUX 7.0 cc rejects these. */
  10672. ++pcpcc;
  10673. ppc = (char**) pcpcc;
  10674. pcpcc = (char const *const *) ppc;
  10675. { /* SCO 3.2v4 cc rejects this sort of thing. */
  10676. char tx;
  10677. char *t = &tx;
  10678. char const *s = 0 ? (char *) 0 : (char const *) 0;
  10679. *t++ = 0;
  10680. if (s) return 0;
  10681. }
  10682. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  10683. int x[] = {25, 17};
  10684. const int *foo = &x[0];
  10685. ++foo;
  10686. }
  10687. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  10688. typedef const int *iptr;
  10689. iptr p = 0;
  10690. ++p;
  10691. }
  10692. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  10693. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  10694. struct s { int j; const int *ap[3]; } bx;
  10695. struct s *b = &bx; b->j = 5;
  10696. }
  10697. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  10698. const int foo = 10;
  10699. if (!foo) return 0;
  10700. }
  10701. return !cs[0] && !zero.x;
  10702. #endif
  10703. ;
  10704. return 0;
  10705. }
  10706. _ACEOF
  10707. if ac_fn_c_try_compile "$LINENO"; then :
  10708. ac_cv_c_const=yes
  10709. else
  10710. ac_cv_c_const=no
  10711. fi
  10712. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10713. fi
  10714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  10715. $as_echo "$ac_cv_c_const" >&6; }
  10716. if test $ac_cv_c_const = no; then
  10717. $as_echo "#define const /**/" >>confdefs.h
  10718. fi
  10719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  10720. $as_echo_n "checking for inline... " >&6; }
  10721. if ${ac_cv_c_inline+:} false; then :
  10722. $as_echo_n "(cached) " >&6
  10723. else
  10724. ac_cv_c_inline=no
  10725. for ac_kw in inline __inline__ __inline; do
  10726. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10727. /* end confdefs.h. */
  10728. #ifndef __cplusplus
  10729. typedef int foo_t;
  10730. static $ac_kw foo_t static_foo () {return 0; }
  10731. $ac_kw foo_t foo () {return 0; }
  10732. #endif
  10733. _ACEOF
  10734. if ac_fn_c_try_compile "$LINENO"; then :
  10735. ac_cv_c_inline=$ac_kw
  10736. fi
  10737. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10738. test "$ac_cv_c_inline" != no && break
  10739. done
  10740. fi
  10741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  10742. $as_echo "$ac_cv_c_inline" >&6; }
  10743. case $ac_cv_c_inline in
  10744. inline | yes) ;;
  10745. *)
  10746. case $ac_cv_c_inline in
  10747. no) ac_val=;;
  10748. *) ac_val=$ac_cv_c_inline;;
  10749. esac
  10750. cat >>confdefs.h <<_ACEOF
  10751. #ifndef __cplusplus
  10752. #define inline $ac_val
  10753. #endif
  10754. _ACEOF
  10755. ;;
  10756. esac
  10757. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  10758. if test -n "$ac_tool_prefix"; then
  10759. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  10760. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  10761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10762. $as_echo_n "checking for $ac_word... " >&6; }
  10763. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  10764. $as_echo_n "(cached) " >&6
  10765. else
  10766. case $PKG_CONFIG in
  10767. [\\/]* | ?:[\\/]*)
  10768. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  10769. ;;
  10770. *)
  10771. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10772. for as_dir in $PATH
  10773. do
  10774. IFS=$as_save_IFS
  10775. test -z "$as_dir" && as_dir=.
  10776. for ac_exec_ext in '' $ac_executable_extensions; do
  10777. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10778. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  10779. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10780. break 2
  10781. fi
  10782. done
  10783. done
  10784. IFS=$as_save_IFS
  10785. ;;
  10786. esac
  10787. fi
  10788. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  10789. if test -n "$PKG_CONFIG"; then
  10790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  10791. $as_echo "$PKG_CONFIG" >&6; }
  10792. else
  10793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10794. $as_echo "no" >&6; }
  10795. fi
  10796. fi
  10797. if test -z "$ac_cv_path_PKG_CONFIG"; then
  10798. ac_pt_PKG_CONFIG=$PKG_CONFIG
  10799. # Extract the first word of "pkg-config", so it can be a program name with args.
  10800. set dummy pkg-config; ac_word=$2
  10801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10802. $as_echo_n "checking for $ac_word... " >&6; }
  10803. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  10804. $as_echo_n "(cached) " >&6
  10805. else
  10806. case $ac_pt_PKG_CONFIG in
  10807. [\\/]* | ?:[\\/]*)
  10808. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  10809. ;;
  10810. *)
  10811. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10812. for as_dir in $PATH
  10813. do
  10814. IFS=$as_save_IFS
  10815. test -z "$as_dir" && as_dir=.
  10816. for ac_exec_ext in '' $ac_executable_extensions; do
  10817. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10818. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  10819. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10820. break 2
  10821. fi
  10822. done
  10823. done
  10824. IFS=$as_save_IFS
  10825. ;;
  10826. esac
  10827. fi
  10828. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  10829. if test -n "$ac_pt_PKG_CONFIG"; then
  10830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  10831. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  10832. else
  10833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10834. $as_echo "no" >&6; }
  10835. fi
  10836. if test "x$ac_pt_PKG_CONFIG" = x; then
  10837. PKG_CONFIG=""
  10838. else
  10839. case $cross_compiling:$ac_tool_warned in
  10840. yes:)
  10841. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10842. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10843. ac_tool_warned=yes ;;
  10844. esac
  10845. PKG_CONFIG=$ac_pt_PKG_CONFIG
  10846. fi
  10847. else
  10848. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  10849. fi
  10850. fi
  10851. if test -n "$PKG_CONFIG"; then
  10852. _pkg_min_version=0.9.0
  10853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  10854. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  10855. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  10856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10857. $as_echo "yes" >&6; }
  10858. else
  10859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10860. $as_echo "no" >&6; }
  10861. PKG_CONFIG=""
  10862. fi
  10863. fi
  10864. pkg_failed=no
  10865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5
  10866. $as_echo_n "checking for CHECK... " >&6; }
  10867. if test -n "$CHECK_CFLAGS"; then
  10868. pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
  10869. elif test -n "$PKG_CONFIG"; then
  10870. if test -n "$PKG_CONFIG" && \
  10871. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.0\""; } >&5
  10872. ($PKG_CONFIG --exists --print-errors "check >= 0.9.0") 2>&5
  10873. ac_status=$?
  10874. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10875. test $ac_status = 0; }; then
  10876. pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.0" 2>/dev/null`
  10877. test "x$?" != "x0" && pkg_failed=yes
  10878. else
  10879. pkg_failed=yes
  10880. fi
  10881. else
  10882. pkg_failed=untried
  10883. fi
  10884. if test -n "$CHECK_LIBS"; then
  10885. pkg_cv_CHECK_LIBS="$CHECK_LIBS"
  10886. elif test -n "$PKG_CONFIG"; then
  10887. if test -n "$PKG_CONFIG" && \
  10888. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.0\""; } >&5
  10889. ($PKG_CONFIG --exists --print-errors "check >= 0.9.0") 2>&5
  10890. ac_status=$?
  10891. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10892. test $ac_status = 0; }; then
  10893. pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.0" 2>/dev/null`
  10894. test "x$?" != "x0" && pkg_failed=yes
  10895. else
  10896. pkg_failed=yes
  10897. fi
  10898. else
  10899. pkg_failed=untried
  10900. fi
  10901. if test $pkg_failed = yes; then
  10902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10903. $as_echo "no" >&6; }
  10904. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  10905. _pkg_short_errors_supported=yes
  10906. else
  10907. _pkg_short_errors_supported=no
  10908. fi
  10909. if test $_pkg_short_errors_supported = yes; then
  10910. CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.0" 2>&1`
  10911. else
  10912. CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.0" 2>&1`
  10913. fi
  10914. # Put the nasty error message in config.log where it belongs
  10915. echo "$CHECK_PKG_ERRORS" >&5
  10916. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling building of unit tests" >&5
  10917. $as_echo "$as_me: WARNING: *** Disabling building of unit tests" >&2;}
  10918. enable_unit_tests="no"
  10919. elif test $pkg_failed = untried; then
  10920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10921. $as_echo "no" >&6; }
  10922. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling building of unit tests" >&5
  10923. $as_echo "$as_me: WARNING: *** Disabling building of unit tests" >&2;}
  10924. enable_unit_tests="no"
  10925. else
  10926. CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
  10927. CHECK_LIBS=$pkg_cv_CHECK_LIBS
  10928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10929. $as_echo "yes" >&6; }
  10930. enable_unit_tests="yes"
  10931. fi
  10932. if test "$enable_unit_tests" = "yes"; then
  10933. ENABLE_UNIT_TESTS_TRUE=
  10934. ENABLE_UNIT_TESTS_FALSE='#'
  10935. else
  10936. ENABLE_UNIT_TESTS_TRUE='#'
  10937. ENABLE_UNIT_TESTS_FALSE=
  10938. fi
  10939. # Check whether --with-pkgconfigdir was given.
  10940. if test "${with_pkgconfigdir+set}" = set; then :
  10941. withval=$with_pkgconfigdir; pkgconfigdir="$withval"
  10942. else
  10943. pkgconfigdir='${libdir}/pkgconfig'
  10944. fi
  10945. # Check whether --enable-cli was given.
  10946. if test "${enable_cli+set}" = set; then :
  10947. enableval=$enable_cli; enable_cli="$enableval"
  10948. else
  10949. enable_cli="yes"
  10950. fi
  10951. if test "$enable_cli" = "yes"; then
  10952. ENABLE_CLI_TRUE=
  10953. ENABLE_CLI_FALSE='#'
  10954. else
  10955. ENABLE_CLI_TRUE='#'
  10956. ENABLE_CLI_FALSE=
  10957. fi
  10958. # Check whether --enable-pthreads was given.
  10959. if test "${enable_pthreads+set}" = set; then :
  10960. enableval=$enable_pthreads; enable_pthreads="$enableval"
  10961. else
  10962. enable_pthreads="yes"
  10963. fi
  10964. if test "$enable_pthreads" = "no"; then
  10965. DISABLE_PTHREADS_TRUE=
  10966. DISABLE_PTHREADS_FALSE='#'
  10967. else
  10968. DISABLE_PTHREADS_TRUE='#'
  10969. DISABLE_PTHREADS_FALSE=
  10970. fi
  10971. # Check whether --enable-debug was given.
  10972. if test "${enable_debug+set}" = set; then :
  10973. enableval=$enable_debug; enable_debug="$enableval"
  10974. else
  10975. enable_debug="yes"
  10976. fi
  10977. if test "$enable_debug" = "no" ; then
  10978. ENABLE_DEBUG_TRUE=
  10979. ENABLE_DEBUG_FALSE='#'
  10980. else
  10981. ENABLE_DEBUG_TRUE='#'
  10982. ENABLE_DEBUG_FALSE=
  10983. fi
  10984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  10985. $as_echo_n "checking for pow in -lm... " >&6; }
  10986. if ${ac_cv_lib_m_pow+:} false; then :
  10987. $as_echo_n "(cached) " >&6
  10988. else
  10989. ac_check_lib_save_LIBS=$LIBS
  10990. LIBS="-lm $LIBS"
  10991. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10992. /* end confdefs.h. */
  10993. /* Override any GCC internal prototype to avoid an error.
  10994. Use char because int might match the return type of a GCC
  10995. builtin and then its argument prototype would still apply. */
  10996. #ifdef __cplusplus
  10997. extern "C"
  10998. #endif
  10999. char pow ();
  11000. int
  11001. main ()
  11002. {
  11003. return pow ();
  11004. ;
  11005. return 0;
  11006. }
  11007. _ACEOF
  11008. if ac_fn_c_try_link "$LINENO"; then :
  11009. ac_cv_lib_m_pow=yes
  11010. else
  11011. ac_cv_lib_m_pow=no
  11012. fi
  11013. rm -f core conftest.err conftest.$ac_objext \
  11014. conftest$ac_exeext conftest.$ac_ext
  11015. LIBS=$ac_check_lib_save_LIBS
  11016. fi
  11017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  11018. $as_echo "$ac_cv_lib_m_pow" >&6; }
  11019. if test "x$ac_cv_lib_m_pow" = xyes; then :
  11020. cat >>confdefs.h <<_ACEOF
  11021. #define HAVE_LIBM 1
  11022. _ACEOF
  11023. LIBS="-lm $LIBS"
  11024. else
  11025. as_fn_error $? "libm is required" "$LINENO" 5
  11026. fi
  11027. if test "x$enable_pthreads" = "xno"; then
  11028. $as_echo "#define DISABLE_PTHREADS 1" >>confdefs.h
  11029. else
  11030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5
  11031. $as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
  11032. if ${ac_cv_lib_pthread_pthread_mutex_lock+:} false; then :
  11033. $as_echo_n "(cached) " >&6
  11034. else
  11035. ac_check_lib_save_LIBS=$LIBS
  11036. LIBS="-lpthread $LIBS"
  11037. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11038. /* end confdefs.h. */
  11039. /* Override any GCC internal prototype to avoid an error.
  11040. Use char because int might match the return type of a GCC
  11041. builtin and then its argument prototype would still apply. */
  11042. #ifdef __cplusplus
  11043. extern "C"
  11044. #endif
  11045. char pthread_mutex_lock ();
  11046. int
  11047. main ()
  11048. {
  11049. return pthread_mutex_lock ();
  11050. ;
  11051. return 0;
  11052. }
  11053. _ACEOF
  11054. if ac_fn_c_try_link "$LINENO"; then :
  11055. ac_cv_lib_pthread_pthread_mutex_lock=yes
  11056. else
  11057. ac_cv_lib_pthread_pthread_mutex_lock=no
  11058. fi
  11059. rm -f core conftest.err conftest.$ac_objext \
  11060. conftest$ac_exeext conftest.$ac_ext
  11061. LIBS=$ac_check_lib_save_LIBS
  11062. fi
  11063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
  11064. $as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
  11065. if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = xyes; then :
  11066. cat >>confdefs.h <<_ACEOF
  11067. #define HAVE_LIBPTHREAD 1
  11068. _ACEOF
  11069. LIBS="-lpthread $LIBS"
  11070. else
  11071. as_fn_error $? "libpthread is required" "$LINENO" 5
  11072. fi
  11073. fi
  11074. if test "x$enable_debug" = "xyes"; then
  11075. $as_echo "#define NL_DEBUG 1" >>confdefs.h
  11076. fi
  11077. subdirs="$subdirs doc"
  11078. ac_config_files="$ac_config_files Makefile libnl.sym libnl-3.0.pc libnl-route-3.0.pc libnl-genl-3.0.pc libnl-nf-3.0.pc libnl-cli-3.0.pc lib/Makefile include/Makefile src/Makefile src/lib/Makefile tests/Makefile man/Makefile python/Makefile python/setup.py python/doc/Makefile python/examples/Makefile python/netlink/Makefile python/netlink/genl/Makefile python/netlink/route/Makefile python/tests/Makefile include/netlink/version.h"
  11079. ac_errcount=0
  11080. if test -z "$YACC"; then
  11081. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: bison not found. Please install before continuing." >&5
  11082. $as_echo "$as_me: WARNING: bison not found. Please install before continuing." >&2;}
  11083. ac_errcount=$((ac_errcount + 1))
  11084. fi
  11085. if test -z "$FLEX"; then
  11086. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: flex not found. Please install before continuing." >&5
  11087. $as_echo "$as_me: WARNING: flex not found. Please install before continuing." >&2;}
  11088. ac_errcount=$((ac_errcount + 1))
  11089. fi
  11090. if test $ac_errcount -gt 0; then
  11091. as_fn_error $? "Required packages are missing. Please install them and rerun ./configure" "$LINENO" 5
  11092. fi
  11093. cat >confcache <<\_ACEOF
  11094. # This file is a shell script that caches the results of configure
  11095. # tests run on this system so they can be shared between configure
  11096. # scripts and configure runs, see configure's option --config-cache.
  11097. # It is not useful on other systems. If it contains results you don't
  11098. # want to keep, you may remove or edit it.
  11099. #
  11100. # config.status only pays attention to the cache file if you give it
  11101. # the --recheck option to rerun configure.
  11102. #
  11103. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11104. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11105. # following values.
  11106. _ACEOF
  11107. # The following way of writing the cache mishandles newlines in values,
  11108. # but we know of no workaround that is simple, portable, and efficient.
  11109. # So, we kill variables containing newlines.
  11110. # Ultrix sh set writes to stderr and can't be redirected directly,
  11111. # and sets the high bit in the cache file unless we assign to the vars.
  11112. (
  11113. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11114. eval ac_val=\$$ac_var
  11115. case $ac_val in #(
  11116. *${as_nl}*)
  11117. case $ac_var in #(
  11118. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  11119. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  11120. esac
  11121. case $ac_var in #(
  11122. _ | IFS | as_nl) ;; #(
  11123. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  11124. *) { eval $ac_var=; unset $ac_var;} ;;
  11125. esac ;;
  11126. esac
  11127. done
  11128. (set) 2>&1 |
  11129. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11130. *${as_nl}ac_space=\ *)
  11131. # `set' does not quote correctly, so add quotes: double-quote
  11132. # substitution turns \\\\ into \\, and sed turns \\ into \.
  11133. sed -n \
  11134. "s/'/'\\\\''/g;
  11135. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11136. ;; #(
  11137. *)
  11138. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11139. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11140. ;;
  11141. esac |
  11142. sort
  11143. ) |
  11144. sed '
  11145. /^ac_cv_env_/b end
  11146. t clear
  11147. :clear
  11148. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11149. t end
  11150. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11151. :end' >>confcache
  11152. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11153. if test -w "$cache_file"; then
  11154. if test "x$cache_file" != "x/dev/null"; then
  11155. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  11156. $as_echo "$as_me: updating cache $cache_file" >&6;}
  11157. if test ! -f "$cache_file" || test -h "$cache_file"; then
  11158. cat confcache >"$cache_file"
  11159. else
  11160. case $cache_file in #(
  11161. */* | ?:*)
  11162. mv -f confcache "$cache_file"$$ &&
  11163. mv -f "$cache_file"$$ "$cache_file" ;; #(
  11164. *)
  11165. mv -f confcache "$cache_file" ;;
  11166. esac
  11167. fi
  11168. fi
  11169. else
  11170. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  11171. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11172. fi
  11173. fi
  11174. rm -f confcache
  11175. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11176. # Let make expand exec_prefix.
  11177. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11178. DEFS=-DHAVE_CONFIG_H
  11179. ac_libobjs=
  11180. ac_ltlibobjs=
  11181. U=
  11182. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  11183. # 1. Remove the extension, and $U if already installed.
  11184. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  11185. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  11186. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  11187. # will be set to the directory where LIBOBJS objects are built.
  11188. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  11189. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  11190. done
  11191. LIBOBJS=$ac_libobjs
  11192. LTLIBOBJS=$ac_ltlibobjs
  11193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  11194. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  11195. if test -n "$am_sleep_pid"; then
  11196. # Hide warnings about reused PIDs.
  11197. wait $am_sleep_pid 2>/dev/null
  11198. fi
  11199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  11200. $as_echo "done" >&6; }
  11201. if test -n "$EXEEXT"; then
  11202. am__EXEEXT_TRUE=
  11203. am__EXEEXT_FALSE='#'
  11204. else
  11205. am__EXEEXT_TRUE='#'
  11206. am__EXEEXT_FALSE=
  11207. fi
  11208. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  11209. as_fn_error $? "conditional \"AMDEP\" was never defined.
  11210. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11211. fi
  11212. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  11213. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  11214. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11215. fi
  11216. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  11217. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  11218. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11219. fi
  11220. if test -z "${ENABLE_UNIT_TESTS_TRUE}" && test -z "${ENABLE_UNIT_TESTS_FALSE}"; then
  11221. as_fn_error $? "conditional \"ENABLE_UNIT_TESTS\" was never defined.
  11222. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11223. fi
  11224. if test -z "${ENABLE_CLI_TRUE}" && test -z "${ENABLE_CLI_FALSE}"; then
  11225. as_fn_error $? "conditional \"ENABLE_CLI\" was never defined.
  11226. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11227. fi
  11228. if test -z "${DISABLE_PTHREADS_TRUE}" && test -z "${DISABLE_PTHREADS_FALSE}"; then
  11229. as_fn_error $? "conditional \"DISABLE_PTHREADS\" was never defined.
  11230. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11231. fi
  11232. if test -z "${ENABLE_DEBUG_TRUE}" && test -z "${ENABLE_DEBUG_FALSE}"; then
  11233. as_fn_error $? "conditional \"ENABLE_DEBUG\" was never defined.
  11234. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11235. fi
  11236. : "${CONFIG_STATUS=./config.status}"
  11237. ac_write_fail=0
  11238. ac_clean_files_save=$ac_clean_files
  11239. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  11240. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  11241. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11242. as_write_fail=0
  11243. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  11244. #! $SHELL
  11245. # Generated by $as_me.
  11246. # Run this file to recreate the current configuration.
  11247. # Compiler output produced by configure, useful for debugging
  11248. # configure, is in config.log if it exists.
  11249. debug=false
  11250. ac_cs_recheck=false
  11251. ac_cs_silent=false
  11252. SHELL=\${CONFIG_SHELL-$SHELL}
  11253. export SHELL
  11254. _ASEOF
  11255. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  11256. ## -------------------- ##
  11257. ## M4sh Initialization. ##
  11258. ## -------------------- ##
  11259. # Be more Bourne compatible
  11260. DUALCASE=1; export DUALCASE # for MKS sh
  11261. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  11262. emulate sh
  11263. NULLCMD=:
  11264. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  11265. # is contrary to our usage. Disable this feature.
  11266. alias -g '${1+"$@"}'='"$@"'
  11267. setopt NO_GLOB_SUBST
  11268. else
  11269. case `(set -o) 2>/dev/null` in #(
  11270. *posix*) :
  11271. set -o posix ;; #(
  11272. *) :
  11273. ;;
  11274. esac
  11275. fi
  11276. as_nl='
  11277. '
  11278. export as_nl
  11279. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  11280. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  11281. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  11282. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  11283. # Prefer a ksh shell builtin over an external printf program on Solaris,
  11284. # but without wasting forks for bash or zsh.
  11285. if test -z "$BASH_VERSION$ZSH_VERSION" \
  11286. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  11287. as_echo='print -r --'
  11288. as_echo_n='print -rn --'
  11289. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  11290. as_echo='printf %s\n'
  11291. as_echo_n='printf %s'
  11292. else
  11293. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  11294. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  11295. as_echo_n='/usr/ucb/echo -n'
  11296. else
  11297. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  11298. as_echo_n_body='eval
  11299. arg=$1;
  11300. case $arg in #(
  11301. *"$as_nl"*)
  11302. expr "X$arg" : "X\\(.*\\)$as_nl";
  11303. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  11304. esac;
  11305. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  11306. '
  11307. export as_echo_n_body
  11308. as_echo_n='sh -c $as_echo_n_body as_echo'
  11309. fi
  11310. export as_echo_body
  11311. as_echo='sh -c $as_echo_body as_echo'
  11312. fi
  11313. # The user is always right.
  11314. if test "${PATH_SEPARATOR+set}" != set; then
  11315. PATH_SEPARATOR=:
  11316. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  11317. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  11318. PATH_SEPARATOR=';'
  11319. }
  11320. fi
  11321. # IFS
  11322. # We need space, tab and new line, in precisely that order. Quoting is
  11323. # there to prevent editors from complaining about space-tab.
  11324. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  11325. # splitting by setting IFS to empty value.)
  11326. IFS=" "" $as_nl"
  11327. # Find who we are. Look in the path if we contain no directory separator.
  11328. as_myself=
  11329. case $0 in #((
  11330. *[\\/]* ) as_myself=$0 ;;
  11331. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11332. for as_dir in $PATH
  11333. do
  11334. IFS=$as_save_IFS
  11335. test -z "$as_dir" && as_dir=.
  11336. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11337. done
  11338. IFS=$as_save_IFS
  11339. ;;
  11340. esac
  11341. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11342. # in which case we are not to be found in the path.
  11343. if test "x$as_myself" = x; then
  11344. as_myself=$0
  11345. fi
  11346. if test ! -f "$as_myself"; then
  11347. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  11348. exit 1
  11349. fi
  11350. # Unset variables that we do not need and which cause bugs (e.g. in
  11351. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  11352. # suppresses any "Segmentation fault" message there. '((' could
  11353. # trigger a bug in pdksh 5.2.14.
  11354. for as_var in BASH_ENV ENV MAIL MAILPATH
  11355. do eval test x\${$as_var+set} = xset \
  11356. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  11357. done
  11358. PS1='$ '
  11359. PS2='> '
  11360. PS4='+ '
  11361. # NLS nuisances.
  11362. LC_ALL=C
  11363. export LC_ALL
  11364. LANGUAGE=C
  11365. export LANGUAGE
  11366. # CDPATH.
  11367. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11368. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  11369. # ----------------------------------------
  11370. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  11371. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  11372. # script with STATUS, using 1 if that was 0.
  11373. as_fn_error ()
  11374. {
  11375. as_status=$1; test $as_status -eq 0 && as_status=1
  11376. if test "$4"; then
  11377. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  11378. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  11379. fi
  11380. $as_echo "$as_me: error: $2" >&2
  11381. as_fn_exit $as_status
  11382. } # as_fn_error
  11383. # as_fn_set_status STATUS
  11384. # -----------------------
  11385. # Set $? to STATUS, without forking.
  11386. as_fn_set_status ()
  11387. {
  11388. return $1
  11389. } # as_fn_set_status
  11390. # as_fn_exit STATUS
  11391. # -----------------
  11392. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  11393. as_fn_exit ()
  11394. {
  11395. set +e
  11396. as_fn_set_status $1
  11397. exit $1
  11398. } # as_fn_exit
  11399. # as_fn_unset VAR
  11400. # ---------------
  11401. # Portably unset VAR.
  11402. as_fn_unset ()
  11403. {
  11404. { eval $1=; unset $1;}
  11405. }
  11406. as_unset=as_fn_unset
  11407. # as_fn_append VAR VALUE
  11408. # ----------------------
  11409. # Append the text in VALUE to the end of the definition contained in VAR. Take
  11410. # advantage of any shell optimizations that allow amortized linear growth over
  11411. # repeated appends, instead of the typical quadratic growth present in naive
  11412. # implementations.
  11413. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  11414. eval 'as_fn_append ()
  11415. {
  11416. eval $1+=\$2
  11417. }'
  11418. else
  11419. as_fn_append ()
  11420. {
  11421. eval $1=\$$1\$2
  11422. }
  11423. fi # as_fn_append
  11424. # as_fn_arith ARG...
  11425. # ------------------
  11426. # Perform arithmetic evaluation on the ARGs, and store the result in the
  11427. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  11428. # must be portable across $(()) and expr.
  11429. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  11430. eval 'as_fn_arith ()
  11431. {
  11432. as_val=$(( $* ))
  11433. }'
  11434. else
  11435. as_fn_arith ()
  11436. {
  11437. as_val=`expr "$@" || test $? -eq 1`
  11438. }
  11439. fi # as_fn_arith
  11440. if expr a : '\(a\)' >/dev/null 2>&1 &&
  11441. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  11442. as_expr=expr
  11443. else
  11444. as_expr=false
  11445. fi
  11446. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  11447. as_basename=basename
  11448. else
  11449. as_basename=false
  11450. fi
  11451. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  11452. as_dirname=dirname
  11453. else
  11454. as_dirname=false
  11455. fi
  11456. as_me=`$as_basename -- "$0" ||
  11457. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11458. X"$0" : 'X\(//\)$' \| \
  11459. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  11460. $as_echo X/"$0" |
  11461. sed '/^.*\/\([^/][^/]*\)\/*$/{
  11462. s//\1/
  11463. q
  11464. }
  11465. /^X\/\(\/\/\)$/{
  11466. s//\1/
  11467. q
  11468. }
  11469. /^X\/\(\/\).*/{
  11470. s//\1/
  11471. q
  11472. }
  11473. s/.*/./; q'`
  11474. # Avoid depending upon Character Ranges.
  11475. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11476. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11477. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11478. as_cr_digits='0123456789'
  11479. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11480. ECHO_C= ECHO_N= ECHO_T=
  11481. case `echo -n x` in #(((((
  11482. -n*)
  11483. case `echo 'xy\c'` in
  11484. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  11485. xy) ECHO_C='\c';;
  11486. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  11487. ECHO_T=' ';;
  11488. esac;;
  11489. *)
  11490. ECHO_N='-n';;
  11491. esac
  11492. rm -f conf$$ conf$$.exe conf$$.file
  11493. if test -d conf$$.dir; then
  11494. rm -f conf$$.dir/conf$$.file
  11495. else
  11496. rm -f conf$$.dir
  11497. mkdir conf$$.dir 2>/dev/null
  11498. fi
  11499. if (echo >conf$$.file) 2>/dev/null; then
  11500. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11501. as_ln_s='ln -s'
  11502. # ... but there are two gotchas:
  11503. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  11504. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  11505. # In both cases, we have to default to `cp -pR'.
  11506. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  11507. as_ln_s='cp -pR'
  11508. elif ln conf$$.file conf$$ 2>/dev/null; then
  11509. as_ln_s=ln
  11510. else
  11511. as_ln_s='cp -pR'
  11512. fi
  11513. else
  11514. as_ln_s='cp -pR'
  11515. fi
  11516. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  11517. rmdir conf$$.dir 2>/dev/null
  11518. # as_fn_mkdir_p
  11519. # -------------
  11520. # Create "$as_dir" as a directory, including parents if necessary.
  11521. as_fn_mkdir_p ()
  11522. {
  11523. case $as_dir in #(
  11524. -*) as_dir=./$as_dir;;
  11525. esac
  11526. test -d "$as_dir" || eval $as_mkdir_p || {
  11527. as_dirs=
  11528. while :; do
  11529. case $as_dir in #(
  11530. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  11531. *) as_qdir=$as_dir;;
  11532. esac
  11533. as_dirs="'$as_qdir' $as_dirs"
  11534. as_dir=`$as_dirname -- "$as_dir" ||
  11535. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11536. X"$as_dir" : 'X\(//\)[^/]' \| \
  11537. X"$as_dir" : 'X\(//\)$' \| \
  11538. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  11539. $as_echo X"$as_dir" |
  11540. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11541. s//\1/
  11542. q
  11543. }
  11544. /^X\(\/\/\)[^/].*/{
  11545. s//\1/
  11546. q
  11547. }
  11548. /^X\(\/\/\)$/{
  11549. s//\1/
  11550. q
  11551. }
  11552. /^X\(\/\).*/{
  11553. s//\1/
  11554. q
  11555. }
  11556. s/.*/./; q'`
  11557. test -d "$as_dir" && break
  11558. done
  11559. test -z "$as_dirs" || eval "mkdir $as_dirs"
  11560. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  11561. } # as_fn_mkdir_p
  11562. if mkdir -p . 2>/dev/null; then
  11563. as_mkdir_p='mkdir -p "$as_dir"'
  11564. else
  11565. test -d ./-p && rmdir ./-p
  11566. as_mkdir_p=false
  11567. fi
  11568. # as_fn_executable_p FILE
  11569. # -----------------------
  11570. # Test if FILE is an executable regular file.
  11571. as_fn_executable_p ()
  11572. {
  11573. test -f "$1" && test -x "$1"
  11574. } # as_fn_executable_p
  11575. as_test_x='test -x'
  11576. as_executable_p=as_fn_executable_p
  11577. # Sed expression to map a string onto a valid CPP name.
  11578. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11579. # Sed expression to map a string onto a valid variable name.
  11580. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11581. exec 6>&1
  11582. ## ----------------------------------- ##
  11583. ## Main body of $CONFIG_STATUS script. ##
  11584. ## ----------------------------------- ##
  11585. _ASEOF
  11586. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  11587. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11588. # Save the log message, to keep $0 and so on meaningful, and to
  11589. # report actual input values of CONFIG_FILES etc. instead of their
  11590. # values after options handling.
  11591. ac_log="
  11592. This file was extended by libnl $as_me 3.2.25, which was
  11593. generated by GNU Autoconf 2.69. Invocation command line was
  11594. CONFIG_FILES = $CONFIG_FILES
  11595. CONFIG_HEADERS = $CONFIG_HEADERS
  11596. CONFIG_LINKS = $CONFIG_LINKS
  11597. CONFIG_COMMANDS = $CONFIG_COMMANDS
  11598. $ $0 $@
  11599. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  11600. "
  11601. _ACEOF
  11602. case $ac_config_files in *"
  11603. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  11604. esac
  11605. case $ac_config_headers in *"
  11606. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  11607. esac
  11608. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11609. # Files that config.status was made for.
  11610. config_files="$ac_config_files"
  11611. config_headers="$ac_config_headers"
  11612. config_commands="$ac_config_commands"
  11613. _ACEOF
  11614. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11615. ac_cs_usage="\
  11616. \`$as_me' instantiates files and other configuration actions
  11617. from templates according to the current configuration. Unless the files
  11618. and actions are specified as TAGs, all are instantiated by default.
  11619. Usage: $0 [OPTION]... [TAG]...
  11620. -h, --help print this help, then exit
  11621. -V, --version print version number and configuration settings, then exit
  11622. --config print configuration, then exit
  11623. -q, --quiet, --silent
  11624. do not print progress messages
  11625. -d, --debug don't remove temporary files
  11626. --recheck update $as_me by reconfiguring in the same conditions
  11627. --file=FILE[:TEMPLATE]
  11628. instantiate the configuration file FILE
  11629. --header=FILE[:TEMPLATE]
  11630. instantiate the configuration header FILE
  11631. Configuration files:
  11632. $config_files
  11633. Configuration headers:
  11634. $config_headers
  11635. Configuration commands:
  11636. $config_commands
  11637. Report bugs to the package provider.
  11638. libnl home page: <http://www.infradead.org/~tgr/libnl/>."
  11639. _ACEOF
  11640. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11641. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  11642. ac_cs_version="\\
  11643. libnl config.status 3.2.25
  11644. configured by $0, generated by GNU Autoconf 2.69,
  11645. with options \\"\$ac_cs_config\\"
  11646. Copyright (C) 2012 Free Software Foundation, Inc.
  11647. This config.status script is free software; the Free Software Foundation
  11648. gives unlimited permission to copy, distribute and modify it."
  11649. ac_pwd='$ac_pwd'
  11650. srcdir='$srcdir'
  11651. INSTALL='$INSTALL'
  11652. MKDIR_P='$MKDIR_P'
  11653. AWK='$AWK'
  11654. test -n "\$AWK" || AWK=awk
  11655. _ACEOF
  11656. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11657. # The default lists apply if the user does not specify any file.
  11658. ac_need_defaults=:
  11659. while test $# != 0
  11660. do
  11661. case $1 in
  11662. --*=?*)
  11663. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11664. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  11665. ac_shift=:
  11666. ;;
  11667. --*=)
  11668. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11669. ac_optarg=
  11670. ac_shift=:
  11671. ;;
  11672. *)
  11673. ac_option=$1
  11674. ac_optarg=$2
  11675. ac_shift=shift
  11676. ;;
  11677. esac
  11678. case $ac_option in
  11679. # Handling of the options.
  11680. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11681. ac_cs_recheck=: ;;
  11682. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  11683. $as_echo "$ac_cs_version"; exit ;;
  11684. --config | --confi | --conf | --con | --co | --c )
  11685. $as_echo "$ac_cs_config"; exit ;;
  11686. --debug | --debu | --deb | --de | --d | -d )
  11687. debug=: ;;
  11688. --file | --fil | --fi | --f )
  11689. $ac_shift
  11690. case $ac_optarg in
  11691. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11692. '') as_fn_error $? "missing file argument" ;;
  11693. esac
  11694. as_fn_append CONFIG_FILES " '$ac_optarg'"
  11695. ac_need_defaults=false;;
  11696. --header | --heade | --head | --hea )
  11697. $ac_shift
  11698. case $ac_optarg in
  11699. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11700. esac
  11701. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  11702. ac_need_defaults=false;;
  11703. --he | --h)
  11704. # Conflict between --help and --header
  11705. as_fn_error $? "ambiguous option: \`$1'
  11706. Try \`$0 --help' for more information.";;
  11707. --help | --hel | -h )
  11708. $as_echo "$ac_cs_usage"; exit ;;
  11709. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11710. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11711. ac_cs_silent=: ;;
  11712. # This is an error.
  11713. -*) as_fn_error $? "unrecognized option: \`$1'
  11714. Try \`$0 --help' for more information." ;;
  11715. *) as_fn_append ac_config_targets " $1"
  11716. ac_need_defaults=false ;;
  11717. esac
  11718. shift
  11719. done
  11720. ac_configure_extra_args=
  11721. if $ac_cs_silent; then
  11722. exec 6>/dev/null
  11723. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11724. fi
  11725. _ACEOF
  11726. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11727. if \$ac_cs_recheck; then
  11728. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11729. shift
  11730. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  11731. CONFIG_SHELL='$SHELL'
  11732. export CONFIG_SHELL
  11733. exec "\$@"
  11734. fi
  11735. _ACEOF
  11736. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11737. exec 5>>config.log
  11738. {
  11739. echo
  11740. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11741. ## Running $as_me. ##
  11742. _ASBOX
  11743. $as_echo "$ac_log"
  11744. } >&5
  11745. _ACEOF
  11746. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11747. #
  11748. # INIT-COMMANDS
  11749. #
  11750. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  11751. # The HP-UX ksh and POSIX shell print the target directory to stdout
  11752. # if CDPATH is set.
  11753. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11754. sed_quote_subst='$sed_quote_subst'
  11755. double_quote_subst='$double_quote_subst'
  11756. delay_variable_subst='$delay_variable_subst'
  11757. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  11758. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  11759. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  11760. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  11761. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  11762. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  11763. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  11764. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  11765. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  11766. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  11767. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  11768. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  11769. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  11770. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  11771. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  11772. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  11773. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  11774. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  11775. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  11776. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  11777. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  11778. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  11779. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  11780. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  11781. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  11782. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  11783. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  11784. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  11785. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  11786. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  11787. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  11788. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  11789. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  11790. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  11791. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  11792. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  11793. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  11794. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  11795. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  11796. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  11797. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  11798. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  11799. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  11800. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  11801. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  11802. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  11803. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  11804. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  11805. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  11806. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  11807. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  11808. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  11809. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  11810. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  11811. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  11812. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  11813. 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"`'
  11814. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  11815. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  11816. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  11817. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  11818. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  11819. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  11820. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  11821. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  11822. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  11823. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  11824. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  11825. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  11826. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  11827. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  11828. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  11829. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  11830. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  11831. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  11832. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  11833. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  11834. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  11835. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  11836. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  11837. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  11838. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  11839. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  11840. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  11841. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  11842. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  11843. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  11844. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  11845. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  11846. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  11847. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  11848. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  11849. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  11850. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  11851. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  11852. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  11853. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  11854. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  11855. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  11856. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  11857. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  11858. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  11859. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  11860. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  11861. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  11862. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  11863. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  11864. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  11865. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  11866. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  11867. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  11868. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  11869. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  11870. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  11871. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  11872. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  11873. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  11874. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  11875. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  11876. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  11877. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  11878. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  11879. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  11880. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  11881. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  11882. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  11883. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  11884. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  11885. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  11886. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  11887. LTCC='$LTCC'
  11888. LTCFLAGS='$LTCFLAGS'
  11889. compiler='$compiler_DEFAULT'
  11890. # A function that is used when there is no print builtin or printf.
  11891. func_fallback_echo ()
  11892. {
  11893. eval 'cat <<_LTECHO_EOF
  11894. \$1
  11895. _LTECHO_EOF'
  11896. }
  11897. # Quote evaled strings.
  11898. for var in SHELL \
  11899. ECHO \
  11900. PATH_SEPARATOR \
  11901. SED \
  11902. GREP \
  11903. EGREP \
  11904. FGREP \
  11905. LD \
  11906. NM \
  11907. LN_S \
  11908. lt_SP2NL \
  11909. lt_NL2SP \
  11910. reload_flag \
  11911. OBJDUMP \
  11912. deplibs_check_method \
  11913. file_magic_cmd \
  11914. file_magic_glob \
  11915. want_nocaseglob \
  11916. DLLTOOL \
  11917. sharedlib_from_linklib_cmd \
  11918. AR \
  11919. AR_FLAGS \
  11920. archiver_list_spec \
  11921. STRIP \
  11922. RANLIB \
  11923. CC \
  11924. CFLAGS \
  11925. compiler \
  11926. lt_cv_sys_global_symbol_pipe \
  11927. lt_cv_sys_global_symbol_to_cdecl \
  11928. lt_cv_sys_global_symbol_to_c_name_address \
  11929. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  11930. nm_file_list_spec \
  11931. lt_prog_compiler_no_builtin_flag \
  11932. lt_prog_compiler_pic \
  11933. lt_prog_compiler_wl \
  11934. lt_prog_compiler_static \
  11935. lt_cv_prog_compiler_c_o \
  11936. need_locks \
  11937. MANIFEST_TOOL \
  11938. DSYMUTIL \
  11939. NMEDIT \
  11940. LIPO \
  11941. OTOOL \
  11942. OTOOL64 \
  11943. shrext_cmds \
  11944. export_dynamic_flag_spec \
  11945. whole_archive_flag_spec \
  11946. compiler_needs_object \
  11947. with_gnu_ld \
  11948. allow_undefined_flag \
  11949. no_undefined_flag \
  11950. hardcode_libdir_flag_spec \
  11951. hardcode_libdir_separator \
  11952. exclude_expsyms \
  11953. include_expsyms \
  11954. file_list_spec \
  11955. variables_saved_for_relink \
  11956. libname_spec \
  11957. library_names_spec \
  11958. soname_spec \
  11959. install_override_mode \
  11960. finish_eval \
  11961. old_striplib \
  11962. striplib; do
  11963. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  11964. *[\\\\\\\`\\"\\\$]*)
  11965. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  11966. ;;
  11967. *)
  11968. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11969. ;;
  11970. esac
  11971. done
  11972. # Double-quote double-evaled strings.
  11973. for var in reload_cmds \
  11974. old_postinstall_cmds \
  11975. old_postuninstall_cmds \
  11976. old_archive_cmds \
  11977. extract_expsyms_cmds \
  11978. old_archive_from_new_cmds \
  11979. old_archive_from_expsyms_cmds \
  11980. archive_cmds \
  11981. archive_expsym_cmds \
  11982. module_cmds \
  11983. module_expsym_cmds \
  11984. export_symbols_cmds \
  11985. prelink_cmds \
  11986. postlink_cmds \
  11987. postinstall_cmds \
  11988. postuninstall_cmds \
  11989. finish_cmds \
  11990. sys_lib_search_path_spec \
  11991. sys_lib_dlsearch_path_spec; do
  11992. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  11993. *[\\\\\\\`\\"\\\$]*)
  11994. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  11995. ;;
  11996. *)
  11997. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11998. ;;
  11999. esac
  12000. done
  12001. ac_aux_dir='$ac_aux_dir'
  12002. xsi_shell='$xsi_shell'
  12003. lt_shell_append='$lt_shell_append'
  12004. # See if we are running on zsh, and set the options which allow our
  12005. # commands through without removal of \ escapes INIT.
  12006. if test -n "\${ZSH_VERSION+set}" ; then
  12007. setopt NO_GLOB_SUBST
  12008. fi
  12009. PACKAGE='$PACKAGE'
  12010. VERSION='$VERSION'
  12011. TIMESTAMP='$TIMESTAMP'
  12012. RM='$RM'
  12013. ofile='$ofile'
  12014. _ACEOF
  12015. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12016. # Handling of arguments.
  12017. for ac_config_target in $ac_config_targets
  12018. do
  12019. case $ac_config_target in
  12020. "lib/defs.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/defs.h" ;;
  12021. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  12022. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  12023. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  12024. "libnl.sym") CONFIG_FILES="$CONFIG_FILES libnl.sym" ;;
  12025. "libnl-3.0.pc") CONFIG_FILES="$CONFIG_FILES libnl-3.0.pc" ;;
  12026. "libnl-route-3.0.pc") CONFIG_FILES="$CONFIG_FILES libnl-route-3.0.pc" ;;
  12027. "libnl-genl-3.0.pc") CONFIG_FILES="$CONFIG_FILES libnl-genl-3.0.pc" ;;
  12028. "libnl-nf-3.0.pc") CONFIG_FILES="$CONFIG_FILES libnl-nf-3.0.pc" ;;
  12029. "libnl-cli-3.0.pc") CONFIG_FILES="$CONFIG_FILES libnl-cli-3.0.pc" ;;
  12030. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  12031. "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
  12032. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  12033. "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
  12034. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  12035. "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
  12036. "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
  12037. "python/setup.py") CONFIG_FILES="$CONFIG_FILES python/setup.py" ;;
  12038. "python/doc/Makefile") CONFIG_FILES="$CONFIG_FILES python/doc/Makefile" ;;
  12039. "python/examples/Makefile") CONFIG_FILES="$CONFIG_FILES python/examples/Makefile" ;;
  12040. "python/netlink/Makefile") CONFIG_FILES="$CONFIG_FILES python/netlink/Makefile" ;;
  12041. "python/netlink/genl/Makefile") CONFIG_FILES="$CONFIG_FILES python/netlink/genl/Makefile" ;;
  12042. "python/netlink/route/Makefile") CONFIG_FILES="$CONFIG_FILES python/netlink/route/Makefile" ;;
  12043. "python/tests/Makefile") CONFIG_FILES="$CONFIG_FILES python/tests/Makefile" ;;
  12044. "include/netlink/version.h") CONFIG_FILES="$CONFIG_FILES include/netlink/version.h" ;;
  12045. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  12046. esac
  12047. done
  12048. # If the user did not use the arguments to specify the items to instantiate,
  12049. # then the envvar interface is used. Set only those that are not.
  12050. # We use the long form for the default assignment because of an extremely
  12051. # bizarre bug on SunOS 4.1.3.
  12052. if $ac_need_defaults; then
  12053. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  12054. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  12055. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  12056. fi
  12057. # Have a temporary directory for convenience. Make it in the build tree
  12058. # simply because there is no reason against having it here, and in addition,
  12059. # creating and moving files from /tmp can sometimes cause problems.
  12060. # Hook for its removal unless debugging.
  12061. # Note that there is a small window in which the directory will not be cleaned:
  12062. # after its creation but before its name has been assigned to `$tmp'.
  12063. $debug ||
  12064. {
  12065. tmp= ac_tmp=
  12066. trap 'exit_status=$?
  12067. : "${ac_tmp:=$tmp}"
  12068. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  12069. ' 0
  12070. trap 'as_fn_exit 1' 1 2 13 15
  12071. }
  12072. # Create a (secure) tmp directory for tmp files.
  12073. {
  12074. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  12075. test -d "$tmp"
  12076. } ||
  12077. {
  12078. tmp=./conf$$-$RANDOM
  12079. (umask 077 && mkdir "$tmp")
  12080. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  12081. ac_tmp=$tmp
  12082. # Set up the scripts for CONFIG_FILES section.
  12083. # No need to generate them if there are no CONFIG_FILES.
  12084. # This happens for instance with `./config.status config.h'.
  12085. if test -n "$CONFIG_FILES"; then
  12086. ac_cr=`echo X | tr X '\015'`
  12087. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  12088. # But we know of no other shell where ac_cr would be empty at this
  12089. # point, so we can use a bashism as a fallback.
  12090. if test "x$ac_cr" = x; then
  12091. eval ac_cr=\$\'\\r\'
  12092. fi
  12093. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  12094. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  12095. ac_cs_awk_cr='\\r'
  12096. else
  12097. ac_cs_awk_cr=$ac_cr
  12098. fi
  12099. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  12100. _ACEOF
  12101. {
  12102. echo "cat >conf$$subs.awk <<_ACEOF" &&
  12103. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  12104. echo "_ACEOF"
  12105. } >conf$$subs.sh ||
  12106. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12107. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  12108. ac_delim='%!_!# '
  12109. for ac_last_try in false false false false false :; do
  12110. . ./conf$$subs.sh ||
  12111. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12112. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  12113. if test $ac_delim_n = $ac_delim_num; then
  12114. break
  12115. elif $ac_last_try; then
  12116. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12117. else
  12118. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12119. fi
  12120. done
  12121. rm -f conf$$subs.sh
  12122. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12123. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  12124. _ACEOF
  12125. sed -n '
  12126. h
  12127. s/^/S["/; s/!.*/"]=/
  12128. p
  12129. g
  12130. s/^[^!]*!//
  12131. :repl
  12132. t repl
  12133. s/'"$ac_delim"'$//
  12134. t delim
  12135. :nl
  12136. h
  12137. s/\(.\{148\}\)..*/\1/
  12138. t more1
  12139. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  12140. p
  12141. n
  12142. b repl
  12143. :more1
  12144. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12145. p
  12146. g
  12147. s/.\{148\}//
  12148. t nl
  12149. :delim
  12150. h
  12151. s/\(.\{148\}\)..*/\1/
  12152. t more2
  12153. s/["\\]/\\&/g; s/^/"/; s/$/"/
  12154. p
  12155. b
  12156. :more2
  12157. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12158. p
  12159. g
  12160. s/.\{148\}//
  12161. t delim
  12162. ' <conf$$subs.awk | sed '
  12163. /^[^""]/{
  12164. N
  12165. s/\n//
  12166. }
  12167. ' >>$CONFIG_STATUS || ac_write_fail=1
  12168. rm -f conf$$subs.awk
  12169. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12170. _ACAWK
  12171. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  12172. for (key in S) S_is_set[key] = 1
  12173. FS = ""
  12174. }
  12175. {
  12176. line = $ 0
  12177. nfields = split(line, field, "@")
  12178. substed = 0
  12179. len = length(field[1])
  12180. for (i = 2; i < nfields; i++) {
  12181. key = field[i]
  12182. keylen = length(key)
  12183. if (S_is_set[key]) {
  12184. value = S[key]
  12185. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  12186. len += length(value) + length(field[++i])
  12187. substed = 1
  12188. } else
  12189. len += 1 + keylen
  12190. }
  12191. print line
  12192. }
  12193. _ACAWK
  12194. _ACEOF
  12195. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12196. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  12197. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  12198. else
  12199. cat
  12200. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  12201. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  12202. _ACEOF
  12203. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  12204. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  12205. # trailing colons and then remove the whole line if VPATH becomes empty
  12206. # (actually we leave an empty line to preserve line numbers).
  12207. if test "x$srcdir" = x.; then
  12208. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  12209. h
  12210. s///
  12211. s/^/:/
  12212. s/[ ]*$/:/
  12213. s/:\$(srcdir):/:/g
  12214. s/:\${srcdir}:/:/g
  12215. s/:@srcdir@:/:/g
  12216. s/^:*//
  12217. s/:*$//
  12218. x
  12219. s/\(=[ ]*\).*/\1/
  12220. G
  12221. s/\n//
  12222. s/^[^=]*=[ ]*$//
  12223. }'
  12224. fi
  12225. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12226. fi # test -n "$CONFIG_FILES"
  12227. # Set up the scripts for CONFIG_HEADERS section.
  12228. # No need to generate them if there are no CONFIG_HEADERS.
  12229. # This happens for instance with `./config.status Makefile'.
  12230. if test -n "$CONFIG_HEADERS"; then
  12231. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  12232. BEGIN {
  12233. _ACEOF
  12234. # Transform confdefs.h into an awk script `defines.awk', embedded as
  12235. # here-document in config.status, that substitutes the proper values into
  12236. # config.h.in to produce config.h.
  12237. # Create a delimiter string that does not exist in confdefs.h, to ease
  12238. # handling of long lines.
  12239. ac_delim='%!_!# '
  12240. for ac_last_try in false false :; do
  12241. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  12242. if test -z "$ac_tt"; then
  12243. break
  12244. elif $ac_last_try; then
  12245. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  12246. else
  12247. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12248. fi
  12249. done
  12250. # For the awk script, D is an array of macro values keyed by name,
  12251. # likewise P contains macro parameters if any. Preserve backslash
  12252. # newline sequences.
  12253. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  12254. sed -n '
  12255. s/.\{148\}/&'"$ac_delim"'/g
  12256. t rset
  12257. :rset
  12258. s/^[ ]*#[ ]*define[ ][ ]*/ /
  12259. t def
  12260. d
  12261. :def
  12262. s/\\$//
  12263. t bsnl
  12264. s/["\\]/\\&/g
  12265. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12266. D["\1"]=" \3"/p
  12267. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  12268. d
  12269. :bsnl
  12270. s/["\\]/\\&/g
  12271. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12272. D["\1"]=" \3\\\\\\n"\\/p
  12273. t cont
  12274. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  12275. t cont
  12276. d
  12277. :cont
  12278. n
  12279. s/.\{148\}/&'"$ac_delim"'/g
  12280. t clear
  12281. :clear
  12282. s/\\$//
  12283. t bsnlc
  12284. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  12285. d
  12286. :bsnlc
  12287. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  12288. b cont
  12289. ' <confdefs.h | sed '
  12290. s/'"$ac_delim"'/"\\\
  12291. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  12292. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12293. for (key in D) D_is_set[key] = 1
  12294. FS = ""
  12295. }
  12296. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  12297. line = \$ 0
  12298. split(line, arg, " ")
  12299. if (arg[1] == "#") {
  12300. defundef = arg[2]
  12301. mac1 = arg[3]
  12302. } else {
  12303. defundef = substr(arg[1], 2)
  12304. mac1 = arg[2]
  12305. }
  12306. split(mac1, mac2, "(") #)
  12307. macro = mac2[1]
  12308. prefix = substr(line, 1, index(line, defundef) - 1)
  12309. if (D_is_set[macro]) {
  12310. # Preserve the white space surrounding the "#".
  12311. print prefix "define", macro P[macro] D[macro]
  12312. next
  12313. } else {
  12314. # Replace #undef with comments. This is necessary, for example,
  12315. # in the case of _POSIX_SOURCE, which is predefined and required
  12316. # on some systems where configure will not decide to define it.
  12317. if (defundef == "undef") {
  12318. print "/*", prefix defundef, macro, "*/"
  12319. next
  12320. }
  12321. }
  12322. }
  12323. { print }
  12324. _ACAWK
  12325. _ACEOF
  12326. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12327. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  12328. fi # test -n "$CONFIG_HEADERS"
  12329. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  12330. shift
  12331. for ac_tag
  12332. do
  12333. case $ac_tag in
  12334. :[FHLC]) ac_mode=$ac_tag; continue;;
  12335. esac
  12336. case $ac_mode$ac_tag in
  12337. :[FHL]*:*);;
  12338. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  12339. :[FH]-) ac_tag=-:-;;
  12340. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  12341. esac
  12342. ac_save_IFS=$IFS
  12343. IFS=:
  12344. set x $ac_tag
  12345. IFS=$ac_save_IFS
  12346. shift
  12347. ac_file=$1
  12348. shift
  12349. case $ac_mode in
  12350. :L) ac_source=$1;;
  12351. :[FH])
  12352. ac_file_inputs=
  12353. for ac_f
  12354. do
  12355. case $ac_f in
  12356. -) ac_f="$ac_tmp/stdin";;
  12357. *) # Look for the file first in the build tree, then in the source tree
  12358. # (if the path is not absolute). The absolute path cannot be DOS-style,
  12359. # because $ac_f cannot contain `:'.
  12360. test -f "$ac_f" ||
  12361. case $ac_f in
  12362. [\\/$]*) false;;
  12363. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  12364. esac ||
  12365. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  12366. esac
  12367. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  12368. as_fn_append ac_file_inputs " '$ac_f'"
  12369. done
  12370. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12371. # use $as_me), people would be surprised to read:
  12372. # /* config.h. Generated by config.status. */
  12373. configure_input='Generated from '`
  12374. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  12375. `' by configure.'
  12376. if test x"$ac_file" != x-; then
  12377. configure_input="$ac_file. $configure_input"
  12378. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  12379. $as_echo "$as_me: creating $ac_file" >&6;}
  12380. fi
  12381. # Neutralize special characters interpreted by sed in replacement strings.
  12382. case $configure_input in #(
  12383. *\&* | *\|* | *\\* )
  12384. ac_sed_conf_input=`$as_echo "$configure_input" |
  12385. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  12386. *) ac_sed_conf_input=$configure_input;;
  12387. esac
  12388. case $ac_tag in
  12389. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  12390. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  12391. esac
  12392. ;;
  12393. esac
  12394. ac_dir=`$as_dirname -- "$ac_file" ||
  12395. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12396. X"$ac_file" : 'X\(//\)[^/]' \| \
  12397. X"$ac_file" : 'X\(//\)$' \| \
  12398. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  12399. $as_echo X"$ac_file" |
  12400. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12401. s//\1/
  12402. q
  12403. }
  12404. /^X\(\/\/\)[^/].*/{
  12405. s//\1/
  12406. q
  12407. }
  12408. /^X\(\/\/\)$/{
  12409. s//\1/
  12410. q
  12411. }
  12412. /^X\(\/\).*/{
  12413. s//\1/
  12414. q
  12415. }
  12416. s/.*/./; q'`
  12417. as_dir="$ac_dir"; as_fn_mkdir_p
  12418. ac_builddir=.
  12419. case "$ac_dir" in
  12420. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12421. *)
  12422. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  12423. # A ".." for each directory in $ac_dir_suffix.
  12424. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  12425. case $ac_top_builddir_sub in
  12426. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12427. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  12428. esac ;;
  12429. esac
  12430. ac_abs_top_builddir=$ac_pwd
  12431. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  12432. # for backward compatibility:
  12433. ac_top_builddir=$ac_top_build_prefix
  12434. case $srcdir in
  12435. .) # We are building in place.
  12436. ac_srcdir=.
  12437. ac_top_srcdir=$ac_top_builddir_sub
  12438. ac_abs_top_srcdir=$ac_pwd ;;
  12439. [\\/]* | ?:[\\/]* ) # Absolute name.
  12440. ac_srcdir=$srcdir$ac_dir_suffix;
  12441. ac_top_srcdir=$srcdir
  12442. ac_abs_top_srcdir=$srcdir ;;
  12443. *) # Relative name.
  12444. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  12445. ac_top_srcdir=$ac_top_build_prefix$srcdir
  12446. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  12447. esac
  12448. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  12449. case $ac_mode in
  12450. :F)
  12451. #
  12452. # CONFIG_FILE
  12453. #
  12454. case $INSTALL in
  12455. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  12456. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  12457. esac
  12458. ac_MKDIR_P=$MKDIR_P
  12459. case $MKDIR_P in
  12460. [\\/$]* | ?:[\\/]* ) ;;
  12461. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  12462. esac
  12463. _ACEOF
  12464. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12465. # If the template does not know about datarootdir, expand it.
  12466. # FIXME: This hack should be removed a few years after 2.60.
  12467. ac_datarootdir_hack=; ac_datarootdir_seen=
  12468. ac_sed_dataroot='
  12469. /datarootdir/ {
  12470. p
  12471. q
  12472. }
  12473. /@datadir@/p
  12474. /@docdir@/p
  12475. /@infodir@/p
  12476. /@localedir@/p
  12477. /@mandir@/p'
  12478. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  12479. *datarootdir*) ac_datarootdir_seen=yes;;
  12480. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  12481. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  12482. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  12483. _ACEOF
  12484. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12485. ac_datarootdir_hack='
  12486. s&@datadir@&$datadir&g
  12487. s&@docdir@&$docdir&g
  12488. s&@infodir@&$infodir&g
  12489. s&@localedir@&$localedir&g
  12490. s&@mandir@&$mandir&g
  12491. s&\\\${datarootdir}&$datarootdir&g' ;;
  12492. esac
  12493. _ACEOF
  12494. # Neutralize VPATH when `$srcdir' = `.'.
  12495. # Shell code in configure.ac might set extrasub.
  12496. # FIXME: do we really want to maintain this feature?
  12497. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12498. ac_sed_extra="$ac_vpsub
  12499. $extrasub
  12500. _ACEOF
  12501. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12502. :t
  12503. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12504. s|@configure_input@|$ac_sed_conf_input|;t t
  12505. s&@top_builddir@&$ac_top_builddir_sub&;t t
  12506. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  12507. s&@srcdir@&$ac_srcdir&;t t
  12508. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  12509. s&@top_srcdir@&$ac_top_srcdir&;t t
  12510. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  12511. s&@builddir@&$ac_builddir&;t t
  12512. s&@abs_builddir@&$ac_abs_builddir&;t t
  12513. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  12514. s&@INSTALL@&$ac_INSTALL&;t t
  12515. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  12516. $ac_datarootdir_hack
  12517. "
  12518. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  12519. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12520. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  12521. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  12522. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  12523. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  12524. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12525. which seems to be undefined. Please make sure it is defined" >&5
  12526. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12527. which seems to be undefined. Please make sure it is defined" >&2;}
  12528. rm -f "$ac_tmp/stdin"
  12529. case $ac_file in
  12530. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  12531. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  12532. esac \
  12533. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12534. ;;
  12535. :H)
  12536. #
  12537. # CONFIG_HEADER
  12538. #
  12539. if test x"$ac_file" != x-; then
  12540. {
  12541. $as_echo "/* $configure_input */" \
  12542. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  12543. } >"$ac_tmp/config.h" \
  12544. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12545. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  12546. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  12547. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  12548. else
  12549. rm -f "$ac_file"
  12550. mv "$ac_tmp/config.h" "$ac_file" \
  12551. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12552. fi
  12553. else
  12554. $as_echo "/* $configure_input */" \
  12555. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  12556. || as_fn_error $? "could not create -" "$LINENO" 5
  12557. fi
  12558. # Compute "$ac_file"'s index in $config_headers.
  12559. _am_arg="$ac_file"
  12560. _am_stamp_count=1
  12561. for _am_header in $config_headers :; do
  12562. case $_am_header in
  12563. $_am_arg | $_am_arg:* )
  12564. break ;;
  12565. * )
  12566. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  12567. esac
  12568. done
  12569. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  12570. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12571. X"$_am_arg" : 'X\(//\)[^/]' \| \
  12572. X"$_am_arg" : 'X\(//\)$' \| \
  12573. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  12574. $as_echo X"$_am_arg" |
  12575. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12576. s//\1/
  12577. q
  12578. }
  12579. /^X\(\/\/\)[^/].*/{
  12580. s//\1/
  12581. q
  12582. }
  12583. /^X\(\/\/\)$/{
  12584. s//\1/
  12585. q
  12586. }
  12587. /^X\(\/\).*/{
  12588. s//\1/
  12589. q
  12590. }
  12591. s/.*/./; q'`/stamp-h$_am_stamp_count
  12592. ;;
  12593. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  12594. $as_echo "$as_me: executing $ac_file commands" >&6;}
  12595. ;;
  12596. esac
  12597. case $ac_file$ac_mode in
  12598. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  12599. # Older Autoconf quotes --file arguments for eval, but not when files
  12600. # are listed without --file. Let's play safe and only enable the eval
  12601. # if we detect the quoting.
  12602. case $CONFIG_FILES in
  12603. *\'*) eval set x "$CONFIG_FILES" ;;
  12604. *) set x $CONFIG_FILES ;;
  12605. esac
  12606. shift
  12607. for mf
  12608. do
  12609. # Strip MF so we end up with the name of the file.
  12610. mf=`echo "$mf" | sed -e 's/:.*$//'`
  12611. # Check whether this is an Automake generated Makefile or not.
  12612. # We used to match only the files named 'Makefile.in', but
  12613. # some people rename them; so instead we look at the file content.
  12614. # Grep'ing the first line is not enough: some people post-process
  12615. # each Makefile.in and add a new line on top of each file to say so.
  12616. # Grep'ing the whole file is not good either: AIX grep has a line
  12617. # limit of 2048, but all sed's we know have understand at least 4000.
  12618. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  12619. dirpart=`$as_dirname -- "$mf" ||
  12620. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12621. X"$mf" : 'X\(//\)[^/]' \| \
  12622. X"$mf" : 'X\(//\)$' \| \
  12623. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  12624. $as_echo X"$mf" |
  12625. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12626. s//\1/
  12627. q
  12628. }
  12629. /^X\(\/\/\)[^/].*/{
  12630. s//\1/
  12631. q
  12632. }
  12633. /^X\(\/\/\)$/{
  12634. s//\1/
  12635. q
  12636. }
  12637. /^X\(\/\).*/{
  12638. s//\1/
  12639. q
  12640. }
  12641. s/.*/./; q'`
  12642. else
  12643. continue
  12644. fi
  12645. # Extract the definition of DEPDIR, am__include, and am__quote
  12646. # from the Makefile without running 'make'.
  12647. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  12648. test -z "$DEPDIR" && continue
  12649. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  12650. test -z "$am__include" && continue
  12651. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  12652. # Find all dependency output files, they are included files with
  12653. # $(DEPDIR) in their names. We invoke sed twice because it is the
  12654. # simplest approach to changing $(DEPDIR) to its actual value in the
  12655. # expansion.
  12656. for file in `sed -n "
  12657. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  12658. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  12659. # Make sure the directory exists.
  12660. test -f "$dirpart/$file" && continue
  12661. fdir=`$as_dirname -- "$file" ||
  12662. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12663. X"$file" : 'X\(//\)[^/]' \| \
  12664. X"$file" : 'X\(//\)$' \| \
  12665. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  12666. $as_echo X"$file" |
  12667. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12668. s//\1/
  12669. q
  12670. }
  12671. /^X\(\/\/\)[^/].*/{
  12672. s//\1/
  12673. q
  12674. }
  12675. /^X\(\/\/\)$/{
  12676. s//\1/
  12677. q
  12678. }
  12679. /^X\(\/\).*/{
  12680. s//\1/
  12681. q
  12682. }
  12683. s/.*/./; q'`
  12684. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  12685. # echo "creating $dirpart/$file"
  12686. echo '# dummy' > "$dirpart/$file"
  12687. done
  12688. done
  12689. }
  12690. ;;
  12691. "libtool":C)
  12692. # See if we are running on zsh, and set the options which allow our
  12693. # commands through without removal of \ escapes.
  12694. if test -n "${ZSH_VERSION+set}" ; then
  12695. setopt NO_GLOB_SUBST
  12696. fi
  12697. cfgfile="${ofile}T"
  12698. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  12699. $RM "$cfgfile"
  12700. cat <<_LT_EOF >> "$cfgfile"
  12701. #! $SHELL
  12702. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  12703. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  12704. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  12705. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  12706. #
  12707. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  12708. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  12709. # Foundation, Inc.
  12710. # Written by Gordon Matzigkeit, 1996
  12711. #
  12712. # This file is part of GNU Libtool.
  12713. #
  12714. # GNU Libtool is free software; you can redistribute it and/or
  12715. # modify it under the terms of the GNU General Public License as
  12716. # published by the Free Software Foundation; either version 2 of
  12717. # the License, or (at your option) any later version.
  12718. #
  12719. # As a special exception to the GNU General Public License,
  12720. # if you distribute this file as part of a program or library that
  12721. # is built using GNU Libtool, you may include this file under the
  12722. # same distribution terms that you use for the rest of that program.
  12723. #
  12724. # GNU Libtool is distributed in the hope that it will be useful,
  12725. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12726. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12727. # GNU General Public License for more details.
  12728. #
  12729. # You should have received a copy of the GNU General Public License
  12730. # along with GNU Libtool; see the file COPYING. If not, a copy
  12731. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  12732. # obtained by writing to the Free Software Foundation, Inc.,
  12733. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  12734. # The names of the tagged configurations supported by this script.
  12735. available_tags=""
  12736. # ### BEGIN LIBTOOL CONFIG
  12737. # Which release of libtool.m4 was used?
  12738. macro_version=$macro_version
  12739. macro_revision=$macro_revision
  12740. # Whether or not to build shared libraries.
  12741. build_libtool_libs=$enable_shared
  12742. # Whether or not to build static libraries.
  12743. build_old_libs=$enable_static
  12744. # What type of objects to build.
  12745. pic_mode=$pic_mode
  12746. # Whether or not to optimize for fast installation.
  12747. fast_install=$enable_fast_install
  12748. # Shell to use when invoking shell scripts.
  12749. SHELL=$lt_SHELL
  12750. # An echo program that protects backslashes.
  12751. ECHO=$lt_ECHO
  12752. # The PATH separator for the build system.
  12753. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  12754. # The host system.
  12755. host_alias=$host_alias
  12756. host=$host
  12757. host_os=$host_os
  12758. # The build system.
  12759. build_alias=$build_alias
  12760. build=$build
  12761. build_os=$build_os
  12762. # A sed program that does not truncate output.
  12763. SED=$lt_SED
  12764. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  12765. Xsed="\$SED -e 1s/^X//"
  12766. # A grep program that handles long lines.
  12767. GREP=$lt_GREP
  12768. # An ERE matcher.
  12769. EGREP=$lt_EGREP
  12770. # A literal string matcher.
  12771. FGREP=$lt_FGREP
  12772. # A BSD- or MS-compatible name lister.
  12773. NM=$lt_NM
  12774. # Whether we need soft or hard links.
  12775. LN_S=$lt_LN_S
  12776. # What is the maximum length of a command?
  12777. max_cmd_len=$max_cmd_len
  12778. # Object file suffix (normally "o").
  12779. objext=$ac_objext
  12780. # Executable file suffix (normally "").
  12781. exeext=$exeext
  12782. # whether the shell understands "unset".
  12783. lt_unset=$lt_unset
  12784. # turn spaces into newlines.
  12785. SP2NL=$lt_lt_SP2NL
  12786. # turn newlines into spaces.
  12787. NL2SP=$lt_lt_NL2SP
  12788. # convert \$build file names to \$host format.
  12789. to_host_file_cmd=$lt_cv_to_host_file_cmd
  12790. # convert \$build files to toolchain format.
  12791. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  12792. # An object symbol dumper.
  12793. OBJDUMP=$lt_OBJDUMP
  12794. # Method to check whether dependent libraries are shared objects.
  12795. deplibs_check_method=$lt_deplibs_check_method
  12796. # Command to use when deplibs_check_method = "file_magic".
  12797. file_magic_cmd=$lt_file_magic_cmd
  12798. # How to find potential files when deplibs_check_method = "file_magic".
  12799. file_magic_glob=$lt_file_magic_glob
  12800. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  12801. want_nocaseglob=$lt_want_nocaseglob
  12802. # DLL creation program.
  12803. DLLTOOL=$lt_DLLTOOL
  12804. # Command to associate shared and link libraries.
  12805. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  12806. # The archiver.
  12807. AR=$lt_AR
  12808. # Flags to create an archive.
  12809. AR_FLAGS=$lt_AR_FLAGS
  12810. # How to feed a file listing to the archiver.
  12811. archiver_list_spec=$lt_archiver_list_spec
  12812. # A symbol stripping program.
  12813. STRIP=$lt_STRIP
  12814. # Commands used to install an old-style archive.
  12815. RANLIB=$lt_RANLIB
  12816. old_postinstall_cmds=$lt_old_postinstall_cmds
  12817. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  12818. # Whether to use a lock for old archive extraction.
  12819. lock_old_archive_extraction=$lock_old_archive_extraction
  12820. # A C compiler.
  12821. LTCC=$lt_CC
  12822. # LTCC compiler flags.
  12823. LTCFLAGS=$lt_CFLAGS
  12824. # Take the output of nm and produce a listing of raw symbols and C names.
  12825. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  12826. # Transform the output of nm in a proper C declaration.
  12827. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  12828. # Transform the output of nm in a C name address pair.
  12829. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  12830. # Transform the output of nm in a C name address pair when lib prefix is needed.
  12831. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  12832. # Specify filename containing input files for \$NM.
  12833. nm_file_list_spec=$lt_nm_file_list_spec
  12834. # The root where to search for dependent libraries,and in which our libraries should be installed.
  12835. lt_sysroot=$lt_sysroot
  12836. # The name of the directory that contains temporary libtool files.
  12837. objdir=$objdir
  12838. # Used to examine libraries when file_magic_cmd begins with "file".
  12839. MAGIC_CMD=$MAGIC_CMD
  12840. # Must we lock files when doing compilation?
  12841. need_locks=$lt_need_locks
  12842. # Manifest tool.
  12843. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  12844. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  12845. DSYMUTIL=$lt_DSYMUTIL
  12846. # Tool to change global to local symbols on Mac OS X.
  12847. NMEDIT=$lt_NMEDIT
  12848. # Tool to manipulate fat objects and archives on Mac OS X.
  12849. LIPO=$lt_LIPO
  12850. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  12851. OTOOL=$lt_OTOOL
  12852. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  12853. OTOOL64=$lt_OTOOL64
  12854. # Old archive suffix (normally "a").
  12855. libext=$libext
  12856. # Shared library suffix (normally ".so").
  12857. shrext_cmds=$lt_shrext_cmds
  12858. # The commands to extract the exported symbol list from a shared archive.
  12859. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  12860. # Variables whose values should be saved in libtool wrapper scripts and
  12861. # restored at link time.
  12862. variables_saved_for_relink=$lt_variables_saved_for_relink
  12863. # Do we need the "lib" prefix for modules?
  12864. need_lib_prefix=$need_lib_prefix
  12865. # Do we need a version for libraries?
  12866. need_version=$need_version
  12867. # Library versioning type.
  12868. version_type=$version_type
  12869. # Shared library runtime path variable.
  12870. runpath_var=$runpath_var
  12871. # Shared library path variable.
  12872. shlibpath_var=$shlibpath_var
  12873. # Is shlibpath searched before the hard-coded library search path?
  12874. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  12875. # Format of library name prefix.
  12876. libname_spec=$lt_libname_spec
  12877. # List of archive names. First name is the real one, the rest are links.
  12878. # The last name is the one that the linker finds with -lNAME
  12879. library_names_spec=$lt_library_names_spec
  12880. # The coded name of the library, if different from the real name.
  12881. soname_spec=$lt_soname_spec
  12882. # Permission mode override for installation of shared libraries.
  12883. install_override_mode=$lt_install_override_mode
  12884. # Command to use after installation of a shared archive.
  12885. postinstall_cmds=$lt_postinstall_cmds
  12886. # Command to use after uninstallation of a shared archive.
  12887. postuninstall_cmds=$lt_postuninstall_cmds
  12888. # Commands used to finish a libtool library installation in a directory.
  12889. finish_cmds=$lt_finish_cmds
  12890. # As "finish_cmds", except a single script fragment to be evaled but
  12891. # not shown.
  12892. finish_eval=$lt_finish_eval
  12893. # Whether we should hardcode library paths into libraries.
  12894. hardcode_into_libs=$hardcode_into_libs
  12895. # Compile-time system search path for libraries.
  12896. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  12897. # Run-time system search path for libraries.
  12898. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  12899. # Whether dlopen is supported.
  12900. dlopen_support=$enable_dlopen
  12901. # Whether dlopen of programs is supported.
  12902. dlopen_self=$enable_dlopen_self
  12903. # Whether dlopen of statically linked programs is supported.
  12904. dlopen_self_static=$enable_dlopen_self_static
  12905. # Commands to strip libraries.
  12906. old_striplib=$lt_old_striplib
  12907. striplib=$lt_striplib
  12908. # The linker used to build libraries.
  12909. LD=$lt_LD
  12910. # How to create reloadable object files.
  12911. reload_flag=$lt_reload_flag
  12912. reload_cmds=$lt_reload_cmds
  12913. # Commands used to build an old-style archive.
  12914. old_archive_cmds=$lt_old_archive_cmds
  12915. # A language specific compiler.
  12916. CC=$lt_compiler
  12917. # Is the compiler the GNU compiler?
  12918. with_gcc=$GCC
  12919. # Compiler flag to turn off builtin functions.
  12920. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  12921. # Additional compiler flags for building library objects.
  12922. pic_flag=$lt_lt_prog_compiler_pic
  12923. # How to pass a linker flag through the compiler.
  12924. wl=$lt_lt_prog_compiler_wl
  12925. # Compiler flag to prevent dynamic linking.
  12926. link_static_flag=$lt_lt_prog_compiler_static
  12927. # Does compiler simultaneously support -c and -o options?
  12928. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  12929. # Whether or not to add -lc for building shared libraries.
  12930. build_libtool_need_lc=$archive_cmds_need_lc
  12931. # Whether or not to disallow shared libs when runtime libs are static.
  12932. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  12933. # Compiler flag to allow reflexive dlopens.
  12934. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  12935. # Compiler flag to generate shared objects directly from archives.
  12936. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  12937. # Whether the compiler copes with passing no objects directly.
  12938. compiler_needs_object=$lt_compiler_needs_object
  12939. # Create an old-style archive from a shared archive.
  12940. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  12941. # Create a temporary old-style archive to link instead of a shared archive.
  12942. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  12943. # Commands used to build a shared archive.
  12944. archive_cmds=$lt_archive_cmds
  12945. archive_expsym_cmds=$lt_archive_expsym_cmds
  12946. # Commands used to build a loadable module if different from building
  12947. # a shared archive.
  12948. module_cmds=$lt_module_cmds
  12949. module_expsym_cmds=$lt_module_expsym_cmds
  12950. # Whether we are building with GNU ld or not.
  12951. with_gnu_ld=$lt_with_gnu_ld
  12952. # Flag that allows shared libraries with undefined symbols to be built.
  12953. allow_undefined_flag=$lt_allow_undefined_flag
  12954. # Flag that enforces no undefined symbols.
  12955. no_undefined_flag=$lt_no_undefined_flag
  12956. # Flag to hardcode \$libdir into a binary during linking.
  12957. # This must work even if \$libdir does not exist
  12958. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  12959. # Whether we need a single "-rpath" flag with a separated argument.
  12960. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  12961. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  12962. # DIR into the resulting binary.
  12963. hardcode_direct=$hardcode_direct
  12964. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  12965. # DIR into the resulting binary and the resulting library dependency is
  12966. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  12967. # library is relocated.
  12968. hardcode_direct_absolute=$hardcode_direct_absolute
  12969. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  12970. # into the resulting binary.
  12971. hardcode_minus_L=$hardcode_minus_L
  12972. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  12973. # into the resulting binary.
  12974. hardcode_shlibpath_var=$hardcode_shlibpath_var
  12975. # Set to "yes" if building a shared library automatically hardcodes DIR
  12976. # into the library and all subsequent libraries and executables linked
  12977. # against it.
  12978. hardcode_automatic=$hardcode_automatic
  12979. # Set to yes if linker adds runtime paths of dependent libraries
  12980. # to runtime path list.
  12981. inherit_rpath=$inherit_rpath
  12982. # Whether libtool must link a program against all its dependency libraries.
  12983. link_all_deplibs=$link_all_deplibs
  12984. # Set to "yes" if exported symbols are required.
  12985. always_export_symbols=$always_export_symbols
  12986. # The commands to list exported symbols.
  12987. export_symbols_cmds=$lt_export_symbols_cmds
  12988. # Symbols that should not be listed in the preloaded symbols.
  12989. exclude_expsyms=$lt_exclude_expsyms
  12990. # Symbols that must always be exported.
  12991. include_expsyms=$lt_include_expsyms
  12992. # Commands necessary for linking programs (against libraries) with templates.
  12993. prelink_cmds=$lt_prelink_cmds
  12994. # Commands necessary for finishing linking programs.
  12995. postlink_cmds=$lt_postlink_cmds
  12996. # Specify filename containing input files.
  12997. file_list_spec=$lt_file_list_spec
  12998. # How to hardcode a shared library path into an executable.
  12999. hardcode_action=$hardcode_action
  13000. # ### END LIBTOOL CONFIG
  13001. _LT_EOF
  13002. case $host_os in
  13003. aix3*)
  13004. cat <<\_LT_EOF >> "$cfgfile"
  13005. # AIX sometimes has problems with the GCC collect2 program. For some
  13006. # reason, if we set the COLLECT_NAMES environment variable, the problems
  13007. # vanish in a puff of smoke.
  13008. if test "X${COLLECT_NAMES+set}" != Xset; then
  13009. COLLECT_NAMES=
  13010. export COLLECT_NAMES
  13011. fi
  13012. _LT_EOF
  13013. ;;
  13014. esac
  13015. ltmain="$ac_aux_dir/ltmain.sh"
  13016. # We use sed instead of cat because bash on DJGPP gets confused if
  13017. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  13018. # text mode, it properly converts lines to CR/LF. This bash problem
  13019. # is reportedly fixed, but why not run on old versions too?
  13020. sed '$q' "$ltmain" >> "$cfgfile" \
  13021. || (rm -f "$cfgfile"; exit 1)
  13022. if test x"$xsi_shell" = xyes; then
  13023. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  13024. func_dirname ()\
  13025. {\
  13026. \ case ${1} in\
  13027. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  13028. \ * ) func_dirname_result="${3}" ;;\
  13029. \ esac\
  13030. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  13031. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13032. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13033. test 0 -eq $? || _lt_function_replace_fail=:
  13034. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  13035. func_basename ()\
  13036. {\
  13037. \ func_basename_result="${1##*/}"\
  13038. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  13039. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13040. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13041. test 0 -eq $? || _lt_function_replace_fail=:
  13042. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  13043. func_dirname_and_basename ()\
  13044. {\
  13045. \ case ${1} in\
  13046. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  13047. \ * ) func_dirname_result="${3}" ;;\
  13048. \ esac\
  13049. \ func_basename_result="${1##*/}"\
  13050. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  13051. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13052. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13053. test 0 -eq $? || _lt_function_replace_fail=:
  13054. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  13055. func_stripname ()\
  13056. {\
  13057. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  13058. \ # positional parameters, so assign one to ordinary parameter first.\
  13059. \ func_stripname_result=${3}\
  13060. \ func_stripname_result=${func_stripname_result#"${1}"}\
  13061. \ func_stripname_result=${func_stripname_result%"${2}"}\
  13062. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  13063. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13064. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13065. test 0 -eq $? || _lt_function_replace_fail=:
  13066. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  13067. func_split_long_opt ()\
  13068. {\
  13069. \ func_split_long_opt_name=${1%%=*}\
  13070. \ func_split_long_opt_arg=${1#*=}\
  13071. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  13072. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13073. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13074. test 0 -eq $? || _lt_function_replace_fail=:
  13075. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  13076. func_split_short_opt ()\
  13077. {\
  13078. \ func_split_short_opt_arg=${1#??}\
  13079. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  13080. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  13081. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13082. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13083. test 0 -eq $? || _lt_function_replace_fail=:
  13084. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  13085. func_lo2o ()\
  13086. {\
  13087. \ case ${1} in\
  13088. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  13089. \ *) func_lo2o_result=${1} ;;\
  13090. \ esac\
  13091. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  13092. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13093. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13094. test 0 -eq $? || _lt_function_replace_fail=:
  13095. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  13096. func_xform ()\
  13097. {\
  13098. func_xform_result=${1%.*}.lo\
  13099. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  13100. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13101. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13102. test 0 -eq $? || _lt_function_replace_fail=:
  13103. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  13104. func_arith ()\
  13105. {\
  13106. func_arith_result=$(( $* ))\
  13107. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  13108. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13109. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13110. test 0 -eq $? || _lt_function_replace_fail=:
  13111. sed -e '/^func_len ()$/,/^} # func_len /c\
  13112. func_len ()\
  13113. {\
  13114. func_len_result=${#1}\
  13115. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  13116. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13117. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13118. test 0 -eq $? || _lt_function_replace_fail=:
  13119. fi
  13120. if test x"$lt_shell_append" = xyes; then
  13121. sed -e '/^func_append ()$/,/^} # func_append /c\
  13122. func_append ()\
  13123. {\
  13124. eval "${1}+=\\${2}"\
  13125. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  13126. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13127. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13128. test 0 -eq $? || _lt_function_replace_fail=:
  13129. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  13130. func_append_quoted ()\
  13131. {\
  13132. \ func_quote_for_eval "${2}"\
  13133. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  13134. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  13135. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13136. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13137. test 0 -eq $? || _lt_function_replace_fail=:
  13138. # Save a `func_append' function call where possible by direct use of '+='
  13139. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  13140. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13141. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13142. test 0 -eq $? || _lt_function_replace_fail=:
  13143. else
  13144. # Save a `func_append' function call even when '+=' is not available
  13145. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  13146. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13147. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13148. test 0 -eq $? || _lt_function_replace_fail=:
  13149. fi
  13150. if test x"$_lt_function_replace_fail" = x":"; then
  13151. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  13152. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  13153. fi
  13154. mv -f "$cfgfile" "$ofile" ||
  13155. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  13156. chmod +x "$ofile"
  13157. ;;
  13158. esac
  13159. done # for ac_tag
  13160. as_fn_exit 0
  13161. _ACEOF
  13162. ac_clean_files=$ac_clean_files_save
  13163. test $ac_write_fail = 0 ||
  13164. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  13165. # configure is writing to config.log, and then calls config.status.
  13166. # config.status does its own redirection, appending to config.log.
  13167. # Unfortunately, on DOS this fails, as config.log is still kept open
  13168. # by configure, so config.status won't be able to write to it; its
  13169. # output is simply discarded. So we exec the FD to /dev/null,
  13170. # effectively closing config.log, so it can be properly (re)opened and
  13171. # appended to by config.status. When coming back to configure, we
  13172. # need to make the FD available again.
  13173. if test "$no_create" != yes; then
  13174. ac_cs_success=:
  13175. ac_config_status_args=
  13176. test "$silent" = yes &&
  13177. ac_config_status_args="$ac_config_status_args --quiet"
  13178. exec 5>/dev/null
  13179. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  13180. exec 5>>config.log
  13181. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  13182. # would make configure fail if this is the last instruction.
  13183. $ac_cs_success || as_fn_exit 1
  13184. fi
  13185. #
  13186. # CONFIG_SUBDIRS section.
  13187. #
  13188. if test "$no_recursion" != yes; then
  13189. # Remove --cache-file, --srcdir, and --disable-option-checking arguments
  13190. # so they do not pile up.
  13191. ac_sub_configure_args=
  13192. ac_prev=
  13193. eval "set x $ac_configure_args"
  13194. shift
  13195. for ac_arg
  13196. do
  13197. if test -n "$ac_prev"; then
  13198. ac_prev=
  13199. continue
  13200. fi
  13201. case $ac_arg in
  13202. -cache-file | --cache-file | --cache-fil | --cache-fi \
  13203. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  13204. ac_prev=cache_file ;;
  13205. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  13206. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  13207. | --c=*)
  13208. ;;
  13209. --config-cache | -C)
  13210. ;;
  13211. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  13212. ac_prev=srcdir ;;
  13213. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  13214. ;;
  13215. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  13216. ac_prev=prefix ;;
  13217. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  13218. ;;
  13219. --disable-option-checking)
  13220. ;;
  13221. *)
  13222. case $ac_arg in
  13223. *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13224. esac
  13225. as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
  13226. esac
  13227. done
  13228. # Always prepend --prefix to ensure using the same prefix
  13229. # in subdir configurations.
  13230. ac_arg="--prefix=$prefix"
  13231. case $ac_arg in
  13232. *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13233. esac
  13234. ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
  13235. # Pass --silent
  13236. if test "$silent" = yes; then
  13237. ac_sub_configure_args="--silent $ac_sub_configure_args"
  13238. fi
  13239. # Always prepend --disable-option-checking to silence warnings, since
  13240. # different subdirs can have different --enable and --with options.
  13241. ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
  13242. ac_popdir=`pwd`
  13243. for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
  13244. # Do not complain, so a configure script can configure whichever
  13245. # parts of a large source tree are present.
  13246. test -d "$srcdir/$ac_dir" || continue
  13247. ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
  13248. $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
  13249. $as_echo "$ac_msg" >&6
  13250. as_dir="$ac_dir"; as_fn_mkdir_p
  13251. ac_builddir=.
  13252. case "$ac_dir" in
  13253. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13254. *)
  13255. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  13256. # A ".." for each directory in $ac_dir_suffix.
  13257. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  13258. case $ac_top_builddir_sub in
  13259. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13260. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  13261. esac ;;
  13262. esac
  13263. ac_abs_top_builddir=$ac_pwd
  13264. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  13265. # for backward compatibility:
  13266. ac_top_builddir=$ac_top_build_prefix
  13267. case $srcdir in
  13268. .) # We are building in place.
  13269. ac_srcdir=.
  13270. ac_top_srcdir=$ac_top_builddir_sub
  13271. ac_abs_top_srcdir=$ac_pwd ;;
  13272. [\\/]* | ?:[\\/]* ) # Absolute name.
  13273. ac_srcdir=$srcdir$ac_dir_suffix;
  13274. ac_top_srcdir=$srcdir
  13275. ac_abs_top_srcdir=$srcdir ;;
  13276. *) # Relative name.
  13277. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  13278. ac_top_srcdir=$ac_top_build_prefix$srcdir
  13279. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  13280. esac
  13281. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  13282. cd "$ac_dir"
  13283. # Check for guested configure; otherwise get Cygnus style configure.
  13284. if test -f "$ac_srcdir/configure.gnu"; then
  13285. ac_sub_configure=$ac_srcdir/configure.gnu
  13286. elif test -f "$ac_srcdir/configure"; then
  13287. ac_sub_configure=$ac_srcdir/configure
  13288. elif test -f "$ac_srcdir/configure.in"; then
  13289. # This should be Cygnus configure.
  13290. ac_sub_configure=$ac_aux_dir/configure
  13291. else
  13292. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
  13293. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
  13294. ac_sub_configure=
  13295. fi
  13296. # The recursion is here.
  13297. if test -n "$ac_sub_configure"; then
  13298. # Make the cache file name correct relative to the subdirectory.
  13299. case $cache_file in
  13300. [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
  13301. *) # Relative name.
  13302. ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
  13303. esac
  13304. { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
  13305. $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
  13306. # The eval makes quoting arguments work.
  13307. eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
  13308. --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
  13309. as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
  13310. fi
  13311. cd "$ac_popdir"
  13312. done
  13313. fi
  13314. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  13315. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  13316. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  13317. fi
  13318. echo "-------------------------------------------------------------------------------"
  13319. echo " NOTE"
  13320. echo ""
  13321. echo " There have been some changes starting with 3.2 regarding where and how libnl"
  13322. echo " is being installed on the system in order to allow multiple libnl versions"
  13323. echo " to be installed in parallel:"
  13324. echo ""
  13325. echo " - Headers will be installed in ${includedir}/libnl${MAJ_VERSION}, therefore"
  13326. echo " you will need to add \"-I/usr/include/libnl${MAJ_VERSION}\" to CFLAGS"
  13327. echo ""
  13328. echo " - The library basename was renamed to libnl-${MAJ_VERSION}, i.e. the SO names become"
  13329. echo " libnl-${MAJ_VERSION}.so., libnl-route-${MAJ_VERSION}.so, etc."
  13330. echo ""
  13331. echo " - libtool versioning was assumed, to ease detection of compatible library"
  13332. echo " versions."
  13333. echo ""
  13334. echo " If you are using pkg-config for detecting and linking against the library "
  13335. echo " things will continue magically as if nothing every happened. If you are "
  13336. echo " linking manually you need to adapt your Makefiles or switch to using "
  13337. echo " pkg-config files."
  13338. echo ""
  13339. echo "-------------------------------------------------------------------------------"