configure 567 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for libusbmuxd 1.0.10.
  4. #
  5. # Report bugs to <nospam@nowhere.com>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  188. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  189. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  190. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  191. PATH=/empty FPATH=/empty; export PATH FPATH
  192. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  193. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  194. test \$(( 1 + 1 )) = 2 || exit 1"
  195. if (eval "$as_required") 2>/dev/null; then :
  196. as_have_required=yes
  197. else
  198. as_have_required=no
  199. fi
  200. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  201. else
  202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  203. as_found=false
  204. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  205. do
  206. IFS=$as_save_IFS
  207. test -z "$as_dir" && as_dir=.
  208. as_found=:
  209. case $as_dir in #(
  210. /*)
  211. for as_base in sh bash ksh sh5; do
  212. # Try only shells that exist, to save several forks.
  213. as_shell=$as_dir/$as_base
  214. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  215. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. CONFIG_SHELL=$as_shell as_have_required=yes
  217. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  218. break 2
  219. fi
  220. fi
  221. done;;
  222. esac
  223. as_found=false
  224. done
  225. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  226. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  227. CONFIG_SHELL=$SHELL as_have_required=yes
  228. fi; }
  229. IFS=$as_save_IFS
  230. if test "x$CONFIG_SHELL" != x; then :
  231. export CONFIG_SHELL
  232. # We cannot yet assume a decent shell, so we have to provide a
  233. # neutralization value for shells without unset; and this also
  234. # works around shells that cannot unset nonexistent variables.
  235. # Preserve -v and -x to the replacement shell.
  236. BASH_ENV=/dev/null
  237. ENV=/dev/null
  238. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  239. case $- in # ((((
  240. *v*x* | *x*v* ) as_opts=-vx ;;
  241. *v* ) as_opts=-v ;;
  242. *x* ) as_opts=-x ;;
  243. * ) as_opts= ;;
  244. esac
  245. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  246. # Admittedly, this is quite paranoid, since all the known shells bail
  247. # out after a failed `exec'.
  248. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  249. exit 255
  250. fi
  251. if test x$as_have_required = xno; then :
  252. $as_echo "$0: This script requires a shell more modern than all"
  253. $as_echo "$0: the shells that I found on your system."
  254. if test x${ZSH_VERSION+set} = xset ; then
  255. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  256. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  257. else
  258. $as_echo "$0: Please tell bug-autoconf@gnu.org and nospam@nowhere.com
  259. $0: about your system, including any error possibly output
  260. $0: before this message. Then install a modern shell, or
  261. $0: manually run the script under such a shell if you do
  262. $0: have one."
  263. fi
  264. exit 1
  265. fi
  266. fi
  267. fi
  268. SHELL=${CONFIG_SHELL-/bin/sh}
  269. export SHELL
  270. # Unset more variables known to interfere with behavior of common tools.
  271. CLICOLOR_FORCE= GREP_OPTIONS=
  272. unset CLICOLOR_FORCE GREP_OPTIONS
  273. ## --------------------- ##
  274. ## M4sh Shell Functions. ##
  275. ## --------------------- ##
  276. # as_fn_unset VAR
  277. # ---------------
  278. # Portably unset VAR.
  279. as_fn_unset ()
  280. {
  281. { eval $1=; unset $1;}
  282. }
  283. as_unset=as_fn_unset
  284. # as_fn_set_status STATUS
  285. # -----------------------
  286. # Set $? to STATUS, without forking.
  287. as_fn_set_status ()
  288. {
  289. return $1
  290. } # as_fn_set_status
  291. # as_fn_exit STATUS
  292. # -----------------
  293. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  294. as_fn_exit ()
  295. {
  296. set +e
  297. as_fn_set_status $1
  298. exit $1
  299. } # as_fn_exit
  300. # as_fn_mkdir_p
  301. # -------------
  302. # Create "$as_dir" as a directory, including parents if necessary.
  303. as_fn_mkdir_p ()
  304. {
  305. case $as_dir in #(
  306. -*) as_dir=./$as_dir;;
  307. esac
  308. test -d "$as_dir" || eval $as_mkdir_p || {
  309. as_dirs=
  310. while :; do
  311. case $as_dir in #(
  312. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  313. *) as_qdir=$as_dir;;
  314. esac
  315. as_dirs="'$as_qdir' $as_dirs"
  316. as_dir=`$as_dirname -- "$as_dir" ||
  317. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  318. X"$as_dir" : 'X\(//\)[^/]' \| \
  319. X"$as_dir" : 'X\(//\)$' \| \
  320. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  321. $as_echo X"$as_dir" |
  322. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  323. s//\1/
  324. q
  325. }
  326. /^X\(\/\/\)[^/].*/{
  327. s//\1/
  328. q
  329. }
  330. /^X\(\/\/\)$/{
  331. s//\1/
  332. q
  333. }
  334. /^X\(\/\).*/{
  335. s//\1/
  336. q
  337. }
  338. s/.*/./; q'`
  339. test -d "$as_dir" && break
  340. done
  341. test -z "$as_dirs" || eval "mkdir $as_dirs"
  342. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  343. } # as_fn_mkdir_p
  344. # as_fn_executable_p FILE
  345. # -----------------------
  346. # Test if FILE is an executable regular file.
  347. as_fn_executable_p ()
  348. {
  349. test -f "$1" && test -x "$1"
  350. } # as_fn_executable_p
  351. # as_fn_append VAR VALUE
  352. # ----------------------
  353. # Append the text in VALUE to the end of the definition contained in VAR. Take
  354. # advantage of any shell optimizations that allow amortized linear growth over
  355. # repeated appends, instead of the typical quadratic growth present in naive
  356. # implementations.
  357. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  358. eval 'as_fn_append ()
  359. {
  360. eval $1+=\$2
  361. }'
  362. else
  363. as_fn_append ()
  364. {
  365. eval $1=\$$1\$2
  366. }
  367. fi # as_fn_append
  368. # as_fn_arith ARG...
  369. # ------------------
  370. # Perform arithmetic evaluation on the ARGs, and store the result in the
  371. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  372. # must be portable across $(()) and expr.
  373. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  374. eval 'as_fn_arith ()
  375. {
  376. as_val=$(( $* ))
  377. }'
  378. else
  379. as_fn_arith ()
  380. {
  381. as_val=`expr "$@" || test $? -eq 1`
  382. }
  383. fi # as_fn_arith
  384. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  385. # ----------------------------------------
  386. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  387. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  388. # script with STATUS, using 1 if that was 0.
  389. as_fn_error ()
  390. {
  391. as_status=$1; test $as_status -eq 0 && as_status=1
  392. if test "$4"; then
  393. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  394. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  395. fi
  396. $as_echo "$as_me: error: $2" >&2
  397. as_fn_exit $as_status
  398. } # as_fn_error
  399. if expr a : '\(a\)' >/dev/null 2>&1 &&
  400. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  401. as_expr=expr
  402. else
  403. as_expr=false
  404. fi
  405. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  406. as_basename=basename
  407. else
  408. as_basename=false
  409. fi
  410. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  411. as_dirname=dirname
  412. else
  413. as_dirname=false
  414. fi
  415. as_me=`$as_basename -- "$0" ||
  416. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  417. X"$0" : 'X\(//\)$' \| \
  418. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  419. $as_echo X/"$0" |
  420. sed '/^.*\/\([^/][^/]*\)\/*$/{
  421. s//\1/
  422. q
  423. }
  424. /^X\/\(\/\/\)$/{
  425. s//\1/
  426. q
  427. }
  428. /^X\/\(\/\).*/{
  429. s//\1/
  430. q
  431. }
  432. s/.*/./; q'`
  433. # Avoid depending upon Character Ranges.
  434. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  435. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  436. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  437. as_cr_digits='0123456789'
  438. as_cr_alnum=$as_cr_Letters$as_cr_digits
  439. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  440. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  441. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  442. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  443. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  444. sed -n '
  445. p
  446. /[$]LINENO/=
  447. ' <$as_myself |
  448. sed '
  449. s/[$]LINENO.*/&-/
  450. t lineno
  451. b
  452. :lineno
  453. N
  454. :loop
  455. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  456. t loop
  457. s/-\n.*//
  458. ' >$as_me.lineno &&
  459. chmod +x "$as_me.lineno" ||
  460. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  461. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  462. # already done that, so ensure we don't try to do so again and fall
  463. # in an infinite loop. This has already happened in practice.
  464. _as_can_reexec=no; export _as_can_reexec
  465. # Don't try to exec as it changes $[0], causing all sort of problems
  466. # (the dirname of $[0] is not the place where we might find the
  467. # original and so on. Autoconf is especially sensitive to this).
  468. . "./$as_me.lineno"
  469. # Exit status is that of the last command.
  470. exit
  471. }
  472. ECHO_C= ECHO_N= ECHO_T=
  473. case `echo -n x` in #(((((
  474. -n*)
  475. case `echo 'xy\c'` in
  476. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  477. xy) ECHO_C='\c';;
  478. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  479. ECHO_T=' ';;
  480. esac;;
  481. *)
  482. ECHO_N='-n';;
  483. esac
  484. rm -f conf$$ conf$$.exe conf$$.file
  485. if test -d conf$$.dir; then
  486. rm -f conf$$.dir/conf$$.file
  487. else
  488. rm -f conf$$.dir
  489. mkdir conf$$.dir 2>/dev/null
  490. fi
  491. if (echo >conf$$.file) 2>/dev/null; then
  492. if ln -s conf$$.file conf$$ 2>/dev/null; then
  493. as_ln_s='ln -s'
  494. # ... but there are two gotchas:
  495. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  496. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  497. # In both cases, we have to default to `cp -pR'.
  498. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  499. as_ln_s='cp -pR'
  500. elif ln conf$$.file conf$$ 2>/dev/null; then
  501. as_ln_s=ln
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. else
  506. as_ln_s='cp -pR'
  507. fi
  508. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  509. rmdir conf$$.dir 2>/dev/null
  510. if mkdir -p . 2>/dev/null; then
  511. as_mkdir_p='mkdir -p "$as_dir"'
  512. else
  513. test -d ./-p && rmdir ./-p
  514. as_mkdir_p=false
  515. fi
  516. as_test_x='test -x'
  517. as_executable_p=as_fn_executable_p
  518. # Sed expression to map a string onto a valid CPP name.
  519. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  520. # Sed expression to map a string onto a valid variable name.
  521. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  522. SHELL=${CONFIG_SHELL-/bin/sh}
  523. test -n "$DJDIR" || exec 7<&0 </dev/null
  524. exec 6>&1
  525. # Name of the host.
  526. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  527. # so uname gets run too.
  528. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  529. #
  530. # Initializations.
  531. #
  532. ac_default_prefix=/usr/local
  533. ac_clean_files=
  534. ac_config_libobj_dir=.
  535. LIBOBJS=
  536. cross_compiling=no
  537. subdirs=
  538. MFLAGS=
  539. MAKEFLAGS=
  540. # Identity of this package.
  541. PACKAGE_NAME='libusbmuxd'
  542. PACKAGE_TARNAME='libusbmuxd'
  543. PACKAGE_VERSION='1.0.10'
  544. PACKAGE_STRING='libusbmuxd 1.0.10'
  545. PACKAGE_BUGREPORT='nospam@nowhere.com'
  546. PACKAGE_URL=''
  547. ac_unique_file="src/"
  548. # Factoring default headers for most tests.
  549. ac_includes_default="\
  550. #include <stdio.h>
  551. #ifdef HAVE_SYS_TYPES_H
  552. # include <sys/types.h>
  553. #endif
  554. #ifdef HAVE_SYS_STAT_H
  555. # include <sys/stat.h>
  556. #endif
  557. #ifdef STDC_HEADERS
  558. # include <stdlib.h>
  559. # include <stddef.h>
  560. #else
  561. # ifdef HAVE_STDLIB_H
  562. # include <stdlib.h>
  563. # endif
  564. #endif
  565. #ifdef HAVE_STRING_H
  566. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  567. # include <memory.h>
  568. # endif
  569. # include <string.h>
  570. #endif
  571. #ifdef HAVE_STRINGS_H
  572. # include <strings.h>
  573. #endif
  574. #ifdef HAVE_INTTYPES_H
  575. # include <inttypes.h>
  576. #endif
  577. #ifdef HAVE_STDINT_H
  578. # include <stdint.h>
  579. #endif
  580. #ifdef HAVE_UNISTD_H
  581. # include <unistd.h>
  582. #endif"
  583. ac_subst_vars='am__EXEEXT_FALSE
  584. am__EXEEXT_TRUE
  585. LTLIBOBJS
  586. GLOBAL_CFLAGS
  587. libpthread_LIBS
  588. WIN32_FALSE
  589. WIN32_TRUE
  590. WINDRES
  591. LIBOBJS
  592. libplist_LIBS
  593. libplist_CFLAGS
  594. PKG_CONFIG_LIBDIR
  595. PKG_CONFIG_PATH
  596. PKG_CONFIG
  597. CXXCPP
  598. CPP
  599. OTOOL64
  600. OTOOL
  601. LIPO
  602. NMEDIT
  603. DSYMUTIL
  604. MANIFEST_TOOL
  605. RANLIB
  606. ac_ct_AR
  607. AR
  608. DLLTOOL
  609. OBJDUMP
  610. LN_S
  611. NM
  612. ac_ct_DUMPBIN
  613. DUMPBIN
  614. LD
  615. FGREP
  616. EGREP
  617. GREP
  618. SED
  619. host_os
  620. host_vendor
  621. host_cpu
  622. host
  623. build_os
  624. build_vendor
  625. build_cpu
  626. build
  627. LIBTOOL
  628. am__fastdepCXX_FALSE
  629. am__fastdepCXX_TRUE
  630. CXXDEPMODE
  631. ac_ct_CXX
  632. CXXFLAGS
  633. CXX
  634. am__fastdepCC_FALSE
  635. am__fastdepCC_TRUE
  636. CCDEPMODE
  637. am__nodep
  638. AMDEPBACKSLASH
  639. AMDEP_FALSE
  640. AMDEP_TRUE
  641. am__quote
  642. am__include
  643. DEPDIR
  644. OBJEXT
  645. EXEEXT
  646. ac_ct_CC
  647. CPPFLAGS
  648. LDFLAGS
  649. CFLAGS
  650. CC
  651. LIBUSBMUXD_SO_VERSION
  652. AM_BACKSLASH
  653. AM_DEFAULT_VERBOSITY
  654. AM_DEFAULT_V
  655. AM_V
  656. am__untar
  657. am__tar
  658. AMTAR
  659. am__leading_dot
  660. SET_MAKE
  661. AWK
  662. mkdir_p
  663. MKDIR_P
  664. INSTALL_STRIP_PROGRAM
  665. STRIP
  666. install_sh
  667. MAKEINFO
  668. AUTOHEADER
  669. AUTOMAKE
  670. AUTOCONF
  671. ACLOCAL
  672. VERSION
  673. PACKAGE
  674. CYGPATH_W
  675. am__isrc
  676. INSTALL_DATA
  677. INSTALL_SCRIPT
  678. INSTALL_PROGRAM
  679. target_alias
  680. host_alias
  681. build_alias
  682. LIBS
  683. ECHO_T
  684. ECHO_N
  685. ECHO_C
  686. DEFS
  687. mandir
  688. localedir
  689. libdir
  690. psdir
  691. pdfdir
  692. dvidir
  693. htmldir
  694. infodir
  695. docdir
  696. oldincludedir
  697. includedir
  698. localstatedir
  699. sharedstatedir
  700. sysconfdir
  701. datadir
  702. datarootdir
  703. libexecdir
  704. sbindir
  705. bindir
  706. program_transform_name
  707. prefix
  708. exec_prefix
  709. PACKAGE_URL
  710. PACKAGE_BUGREPORT
  711. PACKAGE_STRING
  712. PACKAGE_VERSION
  713. PACKAGE_TARNAME
  714. PACKAGE_NAME
  715. PATH_SEPARATOR
  716. SHELL'
  717. ac_subst_files=''
  718. ac_user_opts='
  719. enable_option_checking
  720. enable_silent_rules
  721. enable_dependency_tracking
  722. enable_shared
  723. enable_static
  724. with_pic
  725. enable_fast_install
  726. with_gnu_ld
  727. with_sysroot
  728. enable_libtool_lock
  729. with_inotify
  730. '
  731. ac_precious_vars='build_alias
  732. host_alias
  733. target_alias
  734. CC
  735. CFLAGS
  736. LDFLAGS
  737. LIBS
  738. CPPFLAGS
  739. CXX
  740. CXXFLAGS
  741. CCC
  742. CPP
  743. CXXCPP
  744. PKG_CONFIG
  745. PKG_CONFIG_PATH
  746. PKG_CONFIG_LIBDIR
  747. libplist_CFLAGS
  748. libplist_LIBS'
  749. # Initialize some variables set by options.
  750. ac_init_help=
  751. ac_init_version=false
  752. ac_unrecognized_opts=
  753. ac_unrecognized_sep=
  754. # The variables have the same names as the options, with
  755. # dashes changed to underlines.
  756. cache_file=/dev/null
  757. exec_prefix=NONE
  758. no_create=
  759. no_recursion=
  760. prefix=NONE
  761. program_prefix=NONE
  762. program_suffix=NONE
  763. program_transform_name=s,x,x,
  764. silent=
  765. site=
  766. srcdir=
  767. verbose=
  768. x_includes=NONE
  769. x_libraries=NONE
  770. # Installation directory options.
  771. # These are left unexpanded so users can "make install exec_prefix=/foo"
  772. # and all the variables that are supposed to be based on exec_prefix
  773. # by default will actually change.
  774. # Use braces instead of parens because sh, perl, etc. also accept them.
  775. # (The list follows the same order as the GNU Coding Standards.)
  776. bindir='${exec_prefix}/bin'
  777. sbindir='${exec_prefix}/sbin'
  778. libexecdir='${exec_prefix}/libexec'
  779. datarootdir='${prefix}/share'
  780. datadir='${datarootdir}'
  781. sysconfdir='${prefix}/etc'
  782. sharedstatedir='${prefix}/com'
  783. localstatedir='${prefix}/var'
  784. includedir='${prefix}/include'
  785. oldincludedir='/usr/include'
  786. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  787. infodir='${datarootdir}/info'
  788. htmldir='${docdir}'
  789. dvidir='${docdir}'
  790. pdfdir='${docdir}'
  791. psdir='${docdir}'
  792. libdir='${exec_prefix}/lib'
  793. localedir='${datarootdir}/locale'
  794. mandir='${datarootdir}/man'
  795. ac_prev=
  796. ac_dashdash=
  797. for ac_option
  798. do
  799. # If the previous option needs an argument, assign it.
  800. if test -n "$ac_prev"; then
  801. eval $ac_prev=\$ac_option
  802. ac_prev=
  803. continue
  804. fi
  805. case $ac_option in
  806. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  807. *=) ac_optarg= ;;
  808. *) ac_optarg=yes ;;
  809. esac
  810. # Accept the important Cygnus configure options, so we can diagnose typos.
  811. case $ac_dashdash$ac_option in
  812. --)
  813. ac_dashdash=yes ;;
  814. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  815. ac_prev=bindir ;;
  816. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  817. bindir=$ac_optarg ;;
  818. -build | --build | --buil | --bui | --bu)
  819. ac_prev=build_alias ;;
  820. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  821. build_alias=$ac_optarg ;;
  822. -cache-file | --cache-file | --cache-fil | --cache-fi \
  823. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  824. ac_prev=cache_file ;;
  825. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  826. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  827. cache_file=$ac_optarg ;;
  828. --config-cache | -C)
  829. cache_file=config.cache ;;
  830. -datadir | --datadir | --datadi | --datad)
  831. ac_prev=datadir ;;
  832. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  833. datadir=$ac_optarg ;;
  834. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  835. | --dataroo | --dataro | --datar)
  836. ac_prev=datarootdir ;;
  837. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  838. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  839. datarootdir=$ac_optarg ;;
  840. -disable-* | --disable-*)
  841. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  842. # Reject names that are not valid shell variable names.
  843. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  844. as_fn_error $? "invalid feature name: $ac_useropt"
  845. ac_useropt_orig=$ac_useropt
  846. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  847. case $ac_user_opts in
  848. *"
  849. "enable_$ac_useropt"
  850. "*) ;;
  851. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  852. ac_unrecognized_sep=', ';;
  853. esac
  854. eval enable_$ac_useropt=no ;;
  855. -docdir | --docdir | --docdi | --doc | --do)
  856. ac_prev=docdir ;;
  857. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  858. docdir=$ac_optarg ;;
  859. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  860. ac_prev=dvidir ;;
  861. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  862. dvidir=$ac_optarg ;;
  863. -enable-* | --enable-*)
  864. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  865. # Reject names that are not valid shell variable names.
  866. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  867. as_fn_error $? "invalid feature name: $ac_useropt"
  868. ac_useropt_orig=$ac_useropt
  869. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  870. case $ac_user_opts in
  871. *"
  872. "enable_$ac_useropt"
  873. "*) ;;
  874. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  875. ac_unrecognized_sep=', ';;
  876. esac
  877. eval enable_$ac_useropt=\$ac_optarg ;;
  878. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  879. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  880. | --exec | --exe | --ex)
  881. ac_prev=exec_prefix ;;
  882. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  883. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  884. | --exec=* | --exe=* | --ex=*)
  885. exec_prefix=$ac_optarg ;;
  886. -gas | --gas | --ga | --g)
  887. # Obsolete; use --with-gas.
  888. with_gas=yes ;;
  889. -help | --help | --hel | --he | -h)
  890. ac_init_help=long ;;
  891. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  892. ac_init_help=recursive ;;
  893. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  894. ac_init_help=short ;;
  895. -host | --host | --hos | --ho)
  896. ac_prev=host_alias ;;
  897. -host=* | --host=* | --hos=* | --ho=*)
  898. host_alias=$ac_optarg ;;
  899. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  900. ac_prev=htmldir ;;
  901. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  902. | --ht=*)
  903. htmldir=$ac_optarg ;;
  904. -includedir | --includedir | --includedi | --included | --include \
  905. | --includ | --inclu | --incl | --inc)
  906. ac_prev=includedir ;;
  907. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  908. | --includ=* | --inclu=* | --incl=* | --inc=*)
  909. includedir=$ac_optarg ;;
  910. -infodir | --infodir | --infodi | --infod | --info | --inf)
  911. ac_prev=infodir ;;
  912. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  913. infodir=$ac_optarg ;;
  914. -libdir | --libdir | --libdi | --libd)
  915. ac_prev=libdir ;;
  916. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  917. libdir=$ac_optarg ;;
  918. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  919. | --libexe | --libex | --libe)
  920. ac_prev=libexecdir ;;
  921. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  922. | --libexe=* | --libex=* | --libe=*)
  923. libexecdir=$ac_optarg ;;
  924. -localedir | --localedir | --localedi | --localed | --locale)
  925. ac_prev=localedir ;;
  926. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  927. localedir=$ac_optarg ;;
  928. -localstatedir | --localstatedir | --localstatedi | --localstated \
  929. | --localstate | --localstat | --localsta | --localst | --locals)
  930. ac_prev=localstatedir ;;
  931. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  932. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  933. localstatedir=$ac_optarg ;;
  934. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  935. ac_prev=mandir ;;
  936. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  937. mandir=$ac_optarg ;;
  938. -nfp | --nfp | --nf)
  939. # Obsolete; use --without-fp.
  940. with_fp=no ;;
  941. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  942. | --no-cr | --no-c | -n)
  943. no_create=yes ;;
  944. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  945. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  946. no_recursion=yes ;;
  947. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  948. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  949. | --oldin | --oldi | --old | --ol | --o)
  950. ac_prev=oldincludedir ;;
  951. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  952. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  953. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  954. oldincludedir=$ac_optarg ;;
  955. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  956. ac_prev=prefix ;;
  957. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  958. prefix=$ac_optarg ;;
  959. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  960. | --program-pre | --program-pr | --program-p)
  961. ac_prev=program_prefix ;;
  962. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  963. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  964. program_prefix=$ac_optarg ;;
  965. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  966. | --program-suf | --program-su | --program-s)
  967. ac_prev=program_suffix ;;
  968. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  969. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  970. program_suffix=$ac_optarg ;;
  971. -program-transform-name | --program-transform-name \
  972. | --program-transform-nam | --program-transform-na \
  973. | --program-transform-n | --program-transform- \
  974. | --program-transform | --program-transfor \
  975. | --program-transfo | --program-transf \
  976. | --program-trans | --program-tran \
  977. | --progr-tra | --program-tr | --program-t)
  978. ac_prev=program_transform_name ;;
  979. -program-transform-name=* | --program-transform-name=* \
  980. | --program-transform-nam=* | --program-transform-na=* \
  981. | --program-transform-n=* | --program-transform-=* \
  982. | --program-transform=* | --program-transfor=* \
  983. | --program-transfo=* | --program-transf=* \
  984. | --program-trans=* | --program-tran=* \
  985. | --progr-tra=* | --program-tr=* | --program-t=*)
  986. program_transform_name=$ac_optarg ;;
  987. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  988. ac_prev=pdfdir ;;
  989. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  990. pdfdir=$ac_optarg ;;
  991. -psdir | --psdir | --psdi | --psd | --ps)
  992. ac_prev=psdir ;;
  993. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  994. psdir=$ac_optarg ;;
  995. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  996. | -silent | --silent | --silen | --sile | --sil)
  997. silent=yes ;;
  998. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  999. ac_prev=sbindir ;;
  1000. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1001. | --sbi=* | --sb=*)
  1002. sbindir=$ac_optarg ;;
  1003. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1004. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1005. | --sharedst | --shareds | --shared | --share | --shar \
  1006. | --sha | --sh)
  1007. ac_prev=sharedstatedir ;;
  1008. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1009. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1010. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1011. | --sha=* | --sh=*)
  1012. sharedstatedir=$ac_optarg ;;
  1013. -site | --site | --sit)
  1014. ac_prev=site ;;
  1015. -site=* | --site=* | --sit=*)
  1016. site=$ac_optarg ;;
  1017. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1018. ac_prev=srcdir ;;
  1019. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1020. srcdir=$ac_optarg ;;
  1021. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1022. | --syscon | --sysco | --sysc | --sys | --sy)
  1023. ac_prev=sysconfdir ;;
  1024. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1025. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1026. sysconfdir=$ac_optarg ;;
  1027. -target | --target | --targe | --targ | --tar | --ta | --t)
  1028. ac_prev=target_alias ;;
  1029. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1030. target_alias=$ac_optarg ;;
  1031. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1032. verbose=yes ;;
  1033. -version | --version | --versio | --versi | --vers | -V)
  1034. ac_init_version=: ;;
  1035. -with-* | --with-*)
  1036. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1037. # Reject names that are not valid shell variable names.
  1038. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1039. as_fn_error $? "invalid package name: $ac_useropt"
  1040. ac_useropt_orig=$ac_useropt
  1041. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1042. case $ac_user_opts in
  1043. *"
  1044. "with_$ac_useropt"
  1045. "*) ;;
  1046. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1047. ac_unrecognized_sep=', ';;
  1048. esac
  1049. eval with_$ac_useropt=\$ac_optarg ;;
  1050. -without-* | --without-*)
  1051. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1052. # Reject names that are not valid shell variable names.
  1053. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1054. as_fn_error $? "invalid package name: $ac_useropt"
  1055. ac_useropt_orig=$ac_useropt
  1056. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1057. case $ac_user_opts in
  1058. *"
  1059. "with_$ac_useropt"
  1060. "*) ;;
  1061. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1062. ac_unrecognized_sep=', ';;
  1063. esac
  1064. eval with_$ac_useropt=no ;;
  1065. --x)
  1066. # Obsolete; use --with-x.
  1067. with_x=yes ;;
  1068. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1069. | --x-incl | --x-inc | --x-in | --x-i)
  1070. ac_prev=x_includes ;;
  1071. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1072. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1073. x_includes=$ac_optarg ;;
  1074. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1075. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1076. ac_prev=x_libraries ;;
  1077. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1078. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1079. x_libraries=$ac_optarg ;;
  1080. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1081. Try \`$0 --help' for more information"
  1082. ;;
  1083. *=*)
  1084. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1085. # Reject names that are not valid shell variable names.
  1086. case $ac_envvar in #(
  1087. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1088. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1089. esac
  1090. eval $ac_envvar=\$ac_optarg
  1091. export $ac_envvar ;;
  1092. *)
  1093. # FIXME: should be removed in autoconf 3.0.
  1094. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1095. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1096. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1097. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1098. ;;
  1099. esac
  1100. done
  1101. if test -n "$ac_prev"; then
  1102. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1103. as_fn_error $? "missing argument to $ac_option"
  1104. fi
  1105. if test -n "$ac_unrecognized_opts"; then
  1106. case $enable_option_checking in
  1107. no) ;;
  1108. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1109. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1110. esac
  1111. fi
  1112. # Check all directory arguments for consistency.
  1113. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1114. datadir sysconfdir sharedstatedir localstatedir includedir \
  1115. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1116. libdir localedir mandir
  1117. do
  1118. eval ac_val=\$$ac_var
  1119. # Remove trailing slashes.
  1120. case $ac_val in
  1121. */ )
  1122. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1123. eval $ac_var=\$ac_val;;
  1124. esac
  1125. # Be sure to have absolute directory names.
  1126. case $ac_val in
  1127. [\\/$]* | ?:[\\/]* ) continue;;
  1128. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1129. esac
  1130. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1131. done
  1132. # There might be people who depend on the old broken behavior: `$host'
  1133. # used to hold the argument of --host etc.
  1134. # FIXME: To remove some day.
  1135. build=$build_alias
  1136. host=$host_alias
  1137. target=$target_alias
  1138. # FIXME: To remove some day.
  1139. if test "x$host_alias" != x; then
  1140. if test "x$build_alias" = x; then
  1141. cross_compiling=maybe
  1142. elif test "x$build_alias" != "x$host_alias"; then
  1143. cross_compiling=yes
  1144. fi
  1145. fi
  1146. ac_tool_prefix=
  1147. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1148. test "$silent" = yes && exec 6>/dev/null
  1149. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1150. ac_ls_di=`ls -di .` &&
  1151. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1152. as_fn_error $? "working directory cannot be determined"
  1153. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1154. as_fn_error $? "pwd does not report name of working directory"
  1155. # Find the source files, if location was not specified.
  1156. if test -z "$srcdir"; then
  1157. ac_srcdir_defaulted=yes
  1158. # Try the directory containing this script, then the parent directory.
  1159. ac_confdir=`$as_dirname -- "$as_myself" ||
  1160. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1161. X"$as_myself" : 'X\(//\)[^/]' \| \
  1162. X"$as_myself" : 'X\(//\)$' \| \
  1163. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1164. $as_echo X"$as_myself" |
  1165. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1166. s//\1/
  1167. q
  1168. }
  1169. /^X\(\/\/\)[^/].*/{
  1170. s//\1/
  1171. q
  1172. }
  1173. /^X\(\/\/\)$/{
  1174. s//\1/
  1175. q
  1176. }
  1177. /^X\(\/\).*/{
  1178. s//\1/
  1179. q
  1180. }
  1181. s/.*/./; q'`
  1182. srcdir=$ac_confdir
  1183. if test ! -r "$srcdir/$ac_unique_file"; then
  1184. srcdir=..
  1185. fi
  1186. else
  1187. ac_srcdir_defaulted=no
  1188. fi
  1189. if test ! -r "$srcdir/$ac_unique_file"; then
  1190. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1191. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1192. fi
  1193. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1194. ac_abs_confdir=`(
  1195. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1196. pwd)`
  1197. # When building in place, set srcdir=.
  1198. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1199. srcdir=.
  1200. fi
  1201. # Remove unnecessary trailing slashes from srcdir.
  1202. # Double slashes in file names in object file debugging info
  1203. # mess up M-x gdb in Emacs.
  1204. case $srcdir in
  1205. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1206. esac
  1207. for ac_var in $ac_precious_vars; do
  1208. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1209. eval ac_env_${ac_var}_value=\$${ac_var}
  1210. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1211. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1212. done
  1213. #
  1214. # Report the --help message.
  1215. #
  1216. if test "$ac_init_help" = "long"; then
  1217. # Omit some internal or obsolete options to make the list less imposing.
  1218. # This message is too long to be a string in the A/UX 3.1 sh.
  1219. cat <<_ACEOF
  1220. \`configure' configures libusbmuxd 1.0.10 to adapt to many kinds of systems.
  1221. Usage: $0 [OPTION]... [VAR=VALUE]...
  1222. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1223. VAR=VALUE. See below for descriptions of some of the useful variables.
  1224. Defaults for the options are specified in brackets.
  1225. Configuration:
  1226. -h, --help display this help and exit
  1227. --help=short display options specific to this package
  1228. --help=recursive display the short help of all the included packages
  1229. -V, --version display version information and exit
  1230. -q, --quiet, --silent do not print \`checking ...' messages
  1231. --cache-file=FILE cache test results in FILE [disabled]
  1232. -C, --config-cache alias for \`--cache-file=config.cache'
  1233. -n, --no-create do not create output files
  1234. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1235. Installation directories:
  1236. --prefix=PREFIX install architecture-independent files in PREFIX
  1237. [$ac_default_prefix]
  1238. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1239. [PREFIX]
  1240. By default, \`make install' will install all the files in
  1241. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1242. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1243. for instance \`--prefix=\$HOME'.
  1244. For better control, use the options below.
  1245. Fine tuning of the installation directories:
  1246. --bindir=DIR user executables [EPREFIX/bin]
  1247. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1248. --libexecdir=DIR program executables [EPREFIX/libexec]
  1249. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1250. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1251. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1252. --libdir=DIR object code libraries [EPREFIX/lib]
  1253. --includedir=DIR C header files [PREFIX/include]
  1254. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1255. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1256. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1257. --infodir=DIR info documentation [DATAROOTDIR/info]
  1258. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1259. --mandir=DIR man documentation [DATAROOTDIR/man]
  1260. --docdir=DIR documentation root [DATAROOTDIR/doc/libusbmuxd]
  1261. --htmldir=DIR html documentation [DOCDIR]
  1262. --dvidir=DIR dvi documentation [DOCDIR]
  1263. --pdfdir=DIR pdf documentation [DOCDIR]
  1264. --psdir=DIR ps documentation [DOCDIR]
  1265. _ACEOF
  1266. cat <<\_ACEOF
  1267. Program names:
  1268. --program-prefix=PREFIX prepend PREFIX to installed program names
  1269. --program-suffix=SUFFIX append SUFFIX to installed program names
  1270. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1271. System types:
  1272. --build=BUILD configure for building on BUILD [guessed]
  1273. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1274. _ACEOF
  1275. fi
  1276. if test -n "$ac_init_help"; then
  1277. case $ac_init_help in
  1278. short | recursive ) echo "Configuration of libusbmuxd 1.0.10:";;
  1279. esac
  1280. cat <<\_ACEOF
  1281. Optional Features:
  1282. --disable-option-checking ignore unrecognized --enable/--with options
  1283. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1284. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1285. --enable-silent-rules less verbose build output (undo: "make V=1")
  1286. --disable-silent-rules verbose build output (undo: "make V=0")
  1287. --enable-dependency-tracking
  1288. do not reject slow dependency extractors
  1289. --disable-dependency-tracking
  1290. speeds up one-time build
  1291. --enable-shared[=PKGS] build shared libraries [default=yes]
  1292. --enable-static[=PKGS] build static libraries [default=yes]
  1293. --enable-fast-install[=PKGS]
  1294. optimize for fast installation [default=yes]
  1295. --disable-libtool-lock avoid locking (might break parallel builds)
  1296. Optional Packages:
  1297. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1298. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1299. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1300. both]
  1301. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1302. --with-sysroot=DIR Search for dependent libraries within DIR
  1303. (or the compiler's sysroot if not specified).
  1304. --without-inotify (Linux only) do not build with inotify support
  1305. (default is yes)
  1306. Some influential environment variables:
  1307. CC C compiler command
  1308. CFLAGS C compiler flags
  1309. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1310. nonstandard directory <lib dir>
  1311. LIBS libraries to pass to the linker, e.g. -l<library>
  1312. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1313. you have headers in a nonstandard directory <include dir>
  1314. CXX C++ compiler command
  1315. CXXFLAGS C++ compiler flags
  1316. CPP C preprocessor
  1317. CXXCPP C++ preprocessor
  1318. PKG_CONFIG path to pkg-config utility
  1319. PKG_CONFIG_PATH
  1320. directories to add to pkg-config's search path
  1321. PKG_CONFIG_LIBDIR
  1322. path overriding pkg-config's built-in search path
  1323. libplist_CFLAGS
  1324. C compiler flags for libplist, overriding pkg-config
  1325. libplist_LIBS
  1326. linker flags for libplist, overriding pkg-config
  1327. Use these variables to override the choices made by `configure' or to help
  1328. it to find libraries and programs with nonstandard names/locations.
  1329. Report bugs to <nospam@nowhere.com>.
  1330. _ACEOF
  1331. ac_status=$?
  1332. fi
  1333. if test "$ac_init_help" = "recursive"; then
  1334. # If there are subdirs, report their specific --help.
  1335. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1336. test -d "$ac_dir" ||
  1337. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1338. continue
  1339. ac_builddir=.
  1340. case "$ac_dir" in
  1341. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1342. *)
  1343. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1344. # A ".." for each directory in $ac_dir_suffix.
  1345. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1346. case $ac_top_builddir_sub in
  1347. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1348. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1349. esac ;;
  1350. esac
  1351. ac_abs_top_builddir=$ac_pwd
  1352. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1353. # for backward compatibility:
  1354. ac_top_builddir=$ac_top_build_prefix
  1355. case $srcdir in
  1356. .) # We are building in place.
  1357. ac_srcdir=.
  1358. ac_top_srcdir=$ac_top_builddir_sub
  1359. ac_abs_top_srcdir=$ac_pwd ;;
  1360. [\\/]* | ?:[\\/]* ) # Absolute name.
  1361. ac_srcdir=$srcdir$ac_dir_suffix;
  1362. ac_top_srcdir=$srcdir
  1363. ac_abs_top_srcdir=$srcdir ;;
  1364. *) # Relative name.
  1365. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1366. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1367. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1368. esac
  1369. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1370. cd "$ac_dir" || { ac_status=$?; continue; }
  1371. # Check for guested configure.
  1372. if test -f "$ac_srcdir/configure.gnu"; then
  1373. echo &&
  1374. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1375. elif test -f "$ac_srcdir/configure"; then
  1376. echo &&
  1377. $SHELL "$ac_srcdir/configure" --help=recursive
  1378. else
  1379. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1380. fi || ac_status=$?
  1381. cd "$ac_pwd" || { ac_status=$?; break; }
  1382. done
  1383. fi
  1384. test -n "$ac_init_help" && exit $ac_status
  1385. if $ac_init_version; then
  1386. cat <<\_ACEOF
  1387. libusbmuxd configure 1.0.10
  1388. generated by GNU Autoconf 2.69
  1389. Copyright (C) 2012 Free Software Foundation, Inc.
  1390. This configure script is free software; the Free Software Foundation
  1391. gives unlimited permission to copy, distribute and modify it.
  1392. _ACEOF
  1393. exit
  1394. fi
  1395. ## ------------------------ ##
  1396. ## Autoconf initialization. ##
  1397. ## ------------------------ ##
  1398. # ac_fn_c_try_compile LINENO
  1399. # --------------------------
  1400. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1401. ac_fn_c_try_compile ()
  1402. {
  1403. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1404. rm -f conftest.$ac_objext
  1405. if { { ac_try="$ac_compile"
  1406. case "(($ac_try" in
  1407. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1408. *) ac_try_echo=$ac_try;;
  1409. esac
  1410. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1411. $as_echo "$ac_try_echo"; } >&5
  1412. (eval "$ac_compile") 2>conftest.err
  1413. ac_status=$?
  1414. if test -s conftest.err; then
  1415. grep -v '^ *+' conftest.err >conftest.er1
  1416. cat conftest.er1 >&5
  1417. mv -f conftest.er1 conftest.err
  1418. fi
  1419. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1420. test $ac_status = 0; } && {
  1421. test -z "$ac_c_werror_flag" ||
  1422. test ! -s conftest.err
  1423. } && test -s conftest.$ac_objext; then :
  1424. ac_retval=0
  1425. else
  1426. $as_echo "$as_me: failed program was:" >&5
  1427. sed 's/^/| /' conftest.$ac_ext >&5
  1428. ac_retval=1
  1429. fi
  1430. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1431. as_fn_set_status $ac_retval
  1432. } # ac_fn_c_try_compile
  1433. # ac_fn_cxx_try_compile LINENO
  1434. # ----------------------------
  1435. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1436. ac_fn_cxx_try_compile ()
  1437. {
  1438. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1439. rm -f conftest.$ac_objext
  1440. if { { ac_try="$ac_compile"
  1441. case "(($ac_try" in
  1442. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1443. *) ac_try_echo=$ac_try;;
  1444. esac
  1445. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1446. $as_echo "$ac_try_echo"; } >&5
  1447. (eval "$ac_compile") 2>conftest.err
  1448. ac_status=$?
  1449. if test -s conftest.err; then
  1450. grep -v '^ *+' conftest.err >conftest.er1
  1451. cat conftest.er1 >&5
  1452. mv -f conftest.er1 conftest.err
  1453. fi
  1454. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1455. test $ac_status = 0; } && {
  1456. test -z "$ac_cxx_werror_flag" ||
  1457. test ! -s conftest.err
  1458. } && test -s conftest.$ac_objext; then :
  1459. ac_retval=0
  1460. else
  1461. $as_echo "$as_me: failed program was:" >&5
  1462. sed 's/^/| /' conftest.$ac_ext >&5
  1463. ac_retval=1
  1464. fi
  1465. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1466. as_fn_set_status $ac_retval
  1467. } # ac_fn_cxx_try_compile
  1468. # ac_fn_c_try_link LINENO
  1469. # -----------------------
  1470. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1471. ac_fn_c_try_link ()
  1472. {
  1473. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1474. rm -f conftest.$ac_objext conftest$ac_exeext
  1475. if { { ac_try="$ac_link"
  1476. case "(($ac_try" in
  1477. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1478. *) ac_try_echo=$ac_try;;
  1479. esac
  1480. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1481. $as_echo "$ac_try_echo"; } >&5
  1482. (eval "$ac_link") 2>conftest.err
  1483. ac_status=$?
  1484. if test -s conftest.err; then
  1485. grep -v '^ *+' conftest.err >conftest.er1
  1486. cat conftest.er1 >&5
  1487. mv -f conftest.er1 conftest.err
  1488. fi
  1489. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1490. test $ac_status = 0; } && {
  1491. test -z "$ac_c_werror_flag" ||
  1492. test ! -s conftest.err
  1493. } && test -s conftest$ac_exeext && {
  1494. test "$cross_compiling" = yes ||
  1495. test -x conftest$ac_exeext
  1496. }; then :
  1497. ac_retval=0
  1498. else
  1499. $as_echo "$as_me: failed program was:" >&5
  1500. sed 's/^/| /' conftest.$ac_ext >&5
  1501. ac_retval=1
  1502. fi
  1503. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1504. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1505. # interfere with the next link command; also delete a directory that is
  1506. # left behind by Apple's compiler. We do this before executing the actions.
  1507. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1508. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1509. as_fn_set_status $ac_retval
  1510. } # ac_fn_c_try_link
  1511. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1512. # -------------------------------------------------------
  1513. # Tests whether HEADER exists and can be compiled using the include files in
  1514. # INCLUDES, setting the cache variable VAR accordingly.
  1515. ac_fn_c_check_header_compile ()
  1516. {
  1517. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1519. $as_echo_n "checking for $2... " >&6; }
  1520. if eval \${$3+:} false; then :
  1521. $as_echo_n "(cached) " >&6
  1522. else
  1523. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1524. /* end confdefs.h. */
  1525. $4
  1526. #include <$2>
  1527. _ACEOF
  1528. if ac_fn_c_try_compile "$LINENO"; then :
  1529. eval "$3=yes"
  1530. else
  1531. eval "$3=no"
  1532. fi
  1533. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1534. fi
  1535. eval ac_res=\$$3
  1536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1537. $as_echo "$ac_res" >&6; }
  1538. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1539. } # ac_fn_c_check_header_compile
  1540. # ac_fn_c_try_cpp LINENO
  1541. # ----------------------
  1542. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1543. ac_fn_c_try_cpp ()
  1544. {
  1545. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1546. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1547. case "(($ac_try" in
  1548. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1549. *) ac_try_echo=$ac_try;;
  1550. esac
  1551. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1552. $as_echo "$ac_try_echo"; } >&5
  1553. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1554. ac_status=$?
  1555. if test -s conftest.err; then
  1556. grep -v '^ *+' conftest.err >conftest.er1
  1557. cat conftest.er1 >&5
  1558. mv -f conftest.er1 conftest.err
  1559. fi
  1560. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1561. test $ac_status = 0; } > conftest.i && {
  1562. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1563. test ! -s conftest.err
  1564. }; then :
  1565. ac_retval=0
  1566. else
  1567. $as_echo "$as_me: failed program was:" >&5
  1568. sed 's/^/| /' conftest.$ac_ext >&5
  1569. ac_retval=1
  1570. fi
  1571. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1572. as_fn_set_status $ac_retval
  1573. } # ac_fn_c_try_cpp
  1574. # ac_fn_c_try_run LINENO
  1575. # ----------------------
  1576. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1577. # that executables *can* be run.
  1578. ac_fn_c_try_run ()
  1579. {
  1580. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1581. if { { ac_try="$ac_link"
  1582. case "(($ac_try" in
  1583. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1584. *) ac_try_echo=$ac_try;;
  1585. esac
  1586. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1587. $as_echo "$ac_try_echo"; } >&5
  1588. (eval "$ac_link") 2>&5
  1589. ac_status=$?
  1590. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1591. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1592. { { case "(($ac_try" in
  1593. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1594. *) ac_try_echo=$ac_try;;
  1595. esac
  1596. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1597. $as_echo "$ac_try_echo"; } >&5
  1598. (eval "$ac_try") 2>&5
  1599. ac_status=$?
  1600. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1601. test $ac_status = 0; }; }; then :
  1602. ac_retval=0
  1603. else
  1604. $as_echo "$as_me: program exited with status $ac_status" >&5
  1605. $as_echo "$as_me: failed program was:" >&5
  1606. sed 's/^/| /' conftest.$ac_ext >&5
  1607. ac_retval=$ac_status
  1608. fi
  1609. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1610. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1611. as_fn_set_status $ac_retval
  1612. } # ac_fn_c_try_run
  1613. # ac_fn_c_check_func LINENO FUNC VAR
  1614. # ----------------------------------
  1615. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1616. ac_fn_c_check_func ()
  1617. {
  1618. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1620. $as_echo_n "checking for $2... " >&6; }
  1621. if eval \${$3+:} false; then :
  1622. $as_echo_n "(cached) " >&6
  1623. else
  1624. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1625. /* end confdefs.h. */
  1626. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1627. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1628. #define $2 innocuous_$2
  1629. /* System header to define __stub macros and hopefully few prototypes,
  1630. which can conflict with char $2 (); below.
  1631. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1632. <limits.h> exists even on freestanding compilers. */
  1633. #ifdef __STDC__
  1634. # include <limits.h>
  1635. #else
  1636. # include <assert.h>
  1637. #endif
  1638. #undef $2
  1639. /* Override any GCC internal prototype to avoid an error.
  1640. Use char because int might match the return type of a GCC
  1641. builtin and then its argument prototype would still apply. */
  1642. #ifdef __cplusplus
  1643. extern "C"
  1644. #endif
  1645. char $2 ();
  1646. /* The GNU C library defines this for functions which it implements
  1647. to always fail with ENOSYS. Some functions are actually named
  1648. something starting with __ and the normal name is an alias. */
  1649. #if defined __stub_$2 || defined __stub___$2
  1650. choke me
  1651. #endif
  1652. int
  1653. main ()
  1654. {
  1655. return $2 ();
  1656. ;
  1657. return 0;
  1658. }
  1659. _ACEOF
  1660. if ac_fn_c_try_link "$LINENO"; then :
  1661. eval "$3=yes"
  1662. else
  1663. eval "$3=no"
  1664. fi
  1665. rm -f core conftest.err conftest.$ac_objext \
  1666. conftest$ac_exeext conftest.$ac_ext
  1667. fi
  1668. eval ac_res=\$$3
  1669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1670. $as_echo "$ac_res" >&6; }
  1671. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1672. } # ac_fn_c_check_func
  1673. # ac_fn_cxx_try_cpp LINENO
  1674. # ------------------------
  1675. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1676. ac_fn_cxx_try_cpp ()
  1677. {
  1678. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1679. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1680. case "(($ac_try" in
  1681. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1682. *) ac_try_echo=$ac_try;;
  1683. esac
  1684. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1685. $as_echo "$ac_try_echo"; } >&5
  1686. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1687. ac_status=$?
  1688. if test -s conftest.err; then
  1689. grep -v '^ *+' conftest.err >conftest.er1
  1690. cat conftest.er1 >&5
  1691. mv -f conftest.er1 conftest.err
  1692. fi
  1693. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1694. test $ac_status = 0; } > conftest.i && {
  1695. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1696. test ! -s conftest.err
  1697. }; then :
  1698. ac_retval=0
  1699. else
  1700. $as_echo "$as_me: failed program was:" >&5
  1701. sed 's/^/| /' conftest.$ac_ext >&5
  1702. ac_retval=1
  1703. fi
  1704. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1705. as_fn_set_status $ac_retval
  1706. } # ac_fn_cxx_try_cpp
  1707. # ac_fn_cxx_try_link LINENO
  1708. # -------------------------
  1709. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1710. ac_fn_cxx_try_link ()
  1711. {
  1712. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1713. rm -f conftest.$ac_objext conftest$ac_exeext
  1714. if { { ac_try="$ac_link"
  1715. case "(($ac_try" in
  1716. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1717. *) ac_try_echo=$ac_try;;
  1718. esac
  1719. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1720. $as_echo "$ac_try_echo"; } >&5
  1721. (eval "$ac_link") 2>conftest.err
  1722. ac_status=$?
  1723. if test -s conftest.err; then
  1724. grep -v '^ *+' conftest.err >conftest.er1
  1725. cat conftest.er1 >&5
  1726. mv -f conftest.er1 conftest.err
  1727. fi
  1728. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1729. test $ac_status = 0; } && {
  1730. test -z "$ac_cxx_werror_flag" ||
  1731. test ! -s conftest.err
  1732. } && test -s conftest$ac_exeext && {
  1733. test "$cross_compiling" = yes ||
  1734. test -x conftest$ac_exeext
  1735. }; then :
  1736. ac_retval=0
  1737. else
  1738. $as_echo "$as_me: failed program was:" >&5
  1739. sed 's/^/| /' conftest.$ac_ext >&5
  1740. ac_retval=1
  1741. fi
  1742. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1743. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1744. # interfere with the next link command; also delete a directory that is
  1745. # left behind by Apple's compiler. We do this before executing the actions.
  1746. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1747. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1748. as_fn_set_status $ac_retval
  1749. } # ac_fn_cxx_try_link
  1750. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1751. # -------------------------------------------------------
  1752. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1753. # the include files in INCLUDES and setting the cache variable VAR
  1754. # accordingly.
  1755. ac_fn_c_check_header_mongrel ()
  1756. {
  1757. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1758. if eval \${$3+:} false; then :
  1759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1760. $as_echo_n "checking for $2... " >&6; }
  1761. if eval \${$3+:} false; then :
  1762. $as_echo_n "(cached) " >&6
  1763. fi
  1764. eval ac_res=\$$3
  1765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1766. $as_echo "$ac_res" >&6; }
  1767. else
  1768. # Is the header compilable?
  1769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1770. $as_echo_n "checking $2 usability... " >&6; }
  1771. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1772. /* end confdefs.h. */
  1773. $4
  1774. #include <$2>
  1775. _ACEOF
  1776. if ac_fn_c_try_compile "$LINENO"; then :
  1777. ac_header_compiler=yes
  1778. else
  1779. ac_header_compiler=no
  1780. fi
  1781. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1783. $as_echo "$ac_header_compiler" >&6; }
  1784. # Is the header present?
  1785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1786. $as_echo_n "checking $2 presence... " >&6; }
  1787. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1788. /* end confdefs.h. */
  1789. #include <$2>
  1790. _ACEOF
  1791. if ac_fn_c_try_cpp "$LINENO"; then :
  1792. ac_header_preproc=yes
  1793. else
  1794. ac_header_preproc=no
  1795. fi
  1796. rm -f conftest.err conftest.i conftest.$ac_ext
  1797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1798. $as_echo "$ac_header_preproc" >&6; }
  1799. # So? What about this header?
  1800. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1801. yes:no: )
  1802. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1803. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1804. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1805. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1806. ;;
  1807. no:yes:* )
  1808. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1809. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1810. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1811. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1812. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1813. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1814. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1815. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1816. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1817. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1818. ( $as_echo "## --------------------------------- ##
  1819. ## Report this to nospam@nowhere.com ##
  1820. ## --------------------------------- ##"
  1821. ) | sed "s/^/$as_me: WARNING: /" >&2
  1822. ;;
  1823. esac
  1824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1825. $as_echo_n "checking for $2... " >&6; }
  1826. if eval \${$3+:} false; then :
  1827. $as_echo_n "(cached) " >&6
  1828. else
  1829. eval "$3=\$ac_header_compiler"
  1830. fi
  1831. eval ac_res=\$$3
  1832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1833. $as_echo "$ac_res" >&6; }
  1834. fi
  1835. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1836. } # ac_fn_c_check_header_mongrel
  1837. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1838. # -------------------------------------------
  1839. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1840. # variable VAR accordingly.
  1841. ac_fn_c_check_type ()
  1842. {
  1843. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1845. $as_echo_n "checking for $2... " >&6; }
  1846. if eval \${$3+:} false; then :
  1847. $as_echo_n "(cached) " >&6
  1848. else
  1849. eval "$3=no"
  1850. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1851. /* end confdefs.h. */
  1852. $4
  1853. int
  1854. main ()
  1855. {
  1856. if (sizeof ($2))
  1857. return 0;
  1858. ;
  1859. return 0;
  1860. }
  1861. _ACEOF
  1862. if ac_fn_c_try_compile "$LINENO"; then :
  1863. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1864. /* end confdefs.h. */
  1865. $4
  1866. int
  1867. main ()
  1868. {
  1869. if (sizeof (($2)))
  1870. return 0;
  1871. ;
  1872. return 0;
  1873. }
  1874. _ACEOF
  1875. if ac_fn_c_try_compile "$LINENO"; then :
  1876. else
  1877. eval "$3=yes"
  1878. fi
  1879. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1880. fi
  1881. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1882. fi
  1883. eval ac_res=\$$3
  1884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1885. $as_echo "$ac_res" >&6; }
  1886. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1887. } # ac_fn_c_check_type
  1888. # ac_fn_c_find_uintX_t LINENO BITS VAR
  1889. # ------------------------------------
  1890. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  1891. # accordingly.
  1892. ac_fn_c_find_uintX_t ()
  1893. {
  1894. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  1896. $as_echo_n "checking for uint$2_t... " >&6; }
  1897. if eval \${$3+:} false; then :
  1898. $as_echo_n "(cached) " >&6
  1899. else
  1900. eval "$3=no"
  1901. # Order is important - never check a type that is potentially smaller
  1902. # than half of the expected target width.
  1903. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  1904. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  1905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1906. /* end confdefs.h. */
  1907. $ac_includes_default
  1908. int
  1909. main ()
  1910. {
  1911. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  1912. test_array [0] = 0;
  1913. return test_array [0];
  1914. ;
  1915. return 0;
  1916. }
  1917. _ACEOF
  1918. if ac_fn_c_try_compile "$LINENO"; then :
  1919. case $ac_type in #(
  1920. uint$2_t) :
  1921. eval "$3=yes" ;; #(
  1922. *) :
  1923. eval "$3=\$ac_type" ;;
  1924. esac
  1925. fi
  1926. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1927. if eval test \"x\$"$3"\" = x"no"; then :
  1928. else
  1929. break
  1930. fi
  1931. done
  1932. fi
  1933. eval ac_res=\$$3
  1934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1935. $as_echo "$ac_res" >&6; }
  1936. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1937. } # ac_fn_c_find_uintX_t
  1938. cat >config.log <<_ACEOF
  1939. This file contains any messages produced by compilers while
  1940. running configure, to aid debugging if configure makes a mistake.
  1941. It was created by libusbmuxd $as_me 1.0.10, which was
  1942. generated by GNU Autoconf 2.69. Invocation command line was
  1943. $ $0 $@
  1944. _ACEOF
  1945. exec 5>>config.log
  1946. {
  1947. cat <<_ASUNAME
  1948. ## --------- ##
  1949. ## Platform. ##
  1950. ## --------- ##
  1951. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1952. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1953. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1954. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1955. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1956. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1957. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1958. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1959. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1960. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1961. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1962. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1963. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1964. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1965. _ASUNAME
  1966. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1967. for as_dir in $PATH
  1968. do
  1969. IFS=$as_save_IFS
  1970. test -z "$as_dir" && as_dir=.
  1971. $as_echo "PATH: $as_dir"
  1972. done
  1973. IFS=$as_save_IFS
  1974. } >&5
  1975. cat >&5 <<_ACEOF
  1976. ## ----------- ##
  1977. ## Core tests. ##
  1978. ## ----------- ##
  1979. _ACEOF
  1980. # Keep a trace of the command line.
  1981. # Strip out --no-create and --no-recursion so they do not pile up.
  1982. # Strip out --silent because we don't want to record it for future runs.
  1983. # Also quote any args containing shell meta-characters.
  1984. # Make two passes to allow for proper duplicate-argument suppression.
  1985. ac_configure_args=
  1986. ac_configure_args0=
  1987. ac_configure_args1=
  1988. ac_must_keep_next=false
  1989. for ac_pass in 1 2
  1990. do
  1991. for ac_arg
  1992. do
  1993. case $ac_arg in
  1994. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1995. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1996. | -silent | --silent | --silen | --sile | --sil)
  1997. continue ;;
  1998. *\'*)
  1999. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2000. esac
  2001. case $ac_pass in
  2002. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2003. 2)
  2004. as_fn_append ac_configure_args1 " '$ac_arg'"
  2005. if test $ac_must_keep_next = true; then
  2006. ac_must_keep_next=false # Got value, back to normal.
  2007. else
  2008. case $ac_arg in
  2009. *=* | --config-cache | -C | -disable-* | --disable-* \
  2010. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2011. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2012. | -with-* | --with-* | -without-* | --without-* | --x)
  2013. case "$ac_configure_args0 " in
  2014. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2015. esac
  2016. ;;
  2017. -* ) ac_must_keep_next=true ;;
  2018. esac
  2019. fi
  2020. as_fn_append ac_configure_args " '$ac_arg'"
  2021. ;;
  2022. esac
  2023. done
  2024. done
  2025. { ac_configure_args0=; unset ac_configure_args0;}
  2026. { ac_configure_args1=; unset ac_configure_args1;}
  2027. # When interrupted or exit'd, cleanup temporary files, and complete
  2028. # config.log. We remove comments because anyway the quotes in there
  2029. # would cause problems or look ugly.
  2030. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2031. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2032. trap 'exit_status=$?
  2033. # Save into config.log some information that might help in debugging.
  2034. {
  2035. echo
  2036. $as_echo "## ---------------- ##
  2037. ## Cache variables. ##
  2038. ## ---------------- ##"
  2039. echo
  2040. # The following way of writing the cache mishandles newlines in values,
  2041. (
  2042. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2043. eval ac_val=\$$ac_var
  2044. case $ac_val in #(
  2045. *${as_nl}*)
  2046. case $ac_var in #(
  2047. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2048. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2049. esac
  2050. case $ac_var in #(
  2051. _ | IFS | as_nl) ;; #(
  2052. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2053. *) { eval $ac_var=; unset $ac_var;} ;;
  2054. esac ;;
  2055. esac
  2056. done
  2057. (set) 2>&1 |
  2058. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2059. *${as_nl}ac_space=\ *)
  2060. sed -n \
  2061. "s/'\''/'\''\\\\'\'''\''/g;
  2062. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2063. ;; #(
  2064. *)
  2065. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2066. ;;
  2067. esac |
  2068. sort
  2069. )
  2070. echo
  2071. $as_echo "## ----------------- ##
  2072. ## Output variables. ##
  2073. ## ----------------- ##"
  2074. echo
  2075. for ac_var in $ac_subst_vars
  2076. do
  2077. eval ac_val=\$$ac_var
  2078. case $ac_val in
  2079. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2080. esac
  2081. $as_echo "$ac_var='\''$ac_val'\''"
  2082. done | sort
  2083. echo
  2084. if test -n "$ac_subst_files"; then
  2085. $as_echo "## ------------------- ##
  2086. ## File substitutions. ##
  2087. ## ------------------- ##"
  2088. echo
  2089. for ac_var in $ac_subst_files
  2090. do
  2091. eval ac_val=\$$ac_var
  2092. case $ac_val in
  2093. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2094. esac
  2095. $as_echo "$ac_var='\''$ac_val'\''"
  2096. done | sort
  2097. echo
  2098. fi
  2099. if test -s confdefs.h; then
  2100. $as_echo "## ----------- ##
  2101. ## confdefs.h. ##
  2102. ## ----------- ##"
  2103. echo
  2104. cat confdefs.h
  2105. echo
  2106. fi
  2107. test "$ac_signal" != 0 &&
  2108. $as_echo "$as_me: caught signal $ac_signal"
  2109. $as_echo "$as_me: exit $exit_status"
  2110. } >&5
  2111. rm -f core *.core core.conftest.* &&
  2112. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2113. exit $exit_status
  2114. ' 0
  2115. for ac_signal in 1 2 13 15; do
  2116. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2117. done
  2118. ac_signal=0
  2119. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2120. rm -f -r conftest* confdefs.h
  2121. $as_echo "/* confdefs.h */" > confdefs.h
  2122. # Predefined preprocessor variables.
  2123. cat >>confdefs.h <<_ACEOF
  2124. #define PACKAGE_NAME "$PACKAGE_NAME"
  2125. _ACEOF
  2126. cat >>confdefs.h <<_ACEOF
  2127. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2128. _ACEOF
  2129. cat >>confdefs.h <<_ACEOF
  2130. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2131. _ACEOF
  2132. cat >>confdefs.h <<_ACEOF
  2133. #define PACKAGE_STRING "$PACKAGE_STRING"
  2134. _ACEOF
  2135. cat >>confdefs.h <<_ACEOF
  2136. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2137. _ACEOF
  2138. cat >>confdefs.h <<_ACEOF
  2139. #define PACKAGE_URL "$PACKAGE_URL"
  2140. _ACEOF
  2141. # Let the site file select an alternate cache file if it wants to.
  2142. # Prefer an explicitly selected file to automatically selected ones.
  2143. ac_site_file1=NONE
  2144. ac_site_file2=NONE
  2145. if test -n "$CONFIG_SITE"; then
  2146. # We do not want a PATH search for config.site.
  2147. case $CONFIG_SITE in #((
  2148. -*) ac_site_file1=./$CONFIG_SITE;;
  2149. */*) ac_site_file1=$CONFIG_SITE;;
  2150. *) ac_site_file1=./$CONFIG_SITE;;
  2151. esac
  2152. elif test "x$prefix" != xNONE; then
  2153. ac_site_file1=$prefix/share/config.site
  2154. ac_site_file2=$prefix/etc/config.site
  2155. else
  2156. ac_site_file1=$ac_default_prefix/share/config.site
  2157. ac_site_file2=$ac_default_prefix/etc/config.site
  2158. fi
  2159. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2160. do
  2161. test "x$ac_site_file" = xNONE && continue
  2162. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2163. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2164. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2165. sed 's/^/| /' "$ac_site_file" >&5
  2166. . "$ac_site_file" \
  2167. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2168. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2169. as_fn_error $? "failed to load site script $ac_site_file
  2170. See \`config.log' for more details" "$LINENO" 5; }
  2171. fi
  2172. done
  2173. if test -r "$cache_file"; then
  2174. # Some versions of bash will fail to source /dev/null (special files
  2175. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2176. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2177. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2178. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2179. case $cache_file in
  2180. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2181. *) . "./$cache_file";;
  2182. esac
  2183. fi
  2184. else
  2185. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2186. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2187. >$cache_file
  2188. fi
  2189. # Check that the precious variables saved in the cache have kept the same
  2190. # value.
  2191. ac_cache_corrupted=false
  2192. for ac_var in $ac_precious_vars; do
  2193. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2194. eval ac_new_set=\$ac_env_${ac_var}_set
  2195. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2196. eval ac_new_val=\$ac_env_${ac_var}_value
  2197. case $ac_old_set,$ac_new_set in
  2198. set,)
  2199. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2200. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2201. ac_cache_corrupted=: ;;
  2202. ,set)
  2203. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2204. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2205. ac_cache_corrupted=: ;;
  2206. ,);;
  2207. *)
  2208. if test "x$ac_old_val" != "x$ac_new_val"; then
  2209. # differences in whitespace do not lead to failure.
  2210. ac_old_val_w=`echo x $ac_old_val`
  2211. ac_new_val_w=`echo x $ac_new_val`
  2212. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2213. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2214. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2215. ac_cache_corrupted=:
  2216. else
  2217. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2218. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2219. eval $ac_var=\$ac_old_val
  2220. fi
  2221. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2222. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2223. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2224. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2225. fi;;
  2226. esac
  2227. # Pass precious variables to config.status.
  2228. if test "$ac_new_set" = set; then
  2229. case $ac_new_val in
  2230. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2231. *) ac_arg=$ac_var=$ac_new_val ;;
  2232. esac
  2233. case " $ac_configure_args " in
  2234. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2235. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2236. esac
  2237. fi
  2238. done
  2239. if $ac_cache_corrupted; then
  2240. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2241. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2242. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2243. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2244. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2245. fi
  2246. ## -------------------- ##
  2247. ## Main body of script. ##
  2248. ## -------------------- ##
  2249. ac_ext=c
  2250. ac_cpp='$CPP $CPPFLAGS'
  2251. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2252. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2253. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2254. am__api_version='1.13'
  2255. ac_aux_dir=
  2256. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2257. if test -f "$ac_dir/install-sh"; then
  2258. ac_aux_dir=$ac_dir
  2259. ac_install_sh="$ac_aux_dir/install-sh -c"
  2260. break
  2261. elif test -f "$ac_dir/install.sh"; then
  2262. ac_aux_dir=$ac_dir
  2263. ac_install_sh="$ac_aux_dir/install.sh -c"
  2264. break
  2265. elif test -f "$ac_dir/shtool"; then
  2266. ac_aux_dir=$ac_dir
  2267. ac_install_sh="$ac_aux_dir/shtool install -c"
  2268. break
  2269. fi
  2270. done
  2271. if test -z "$ac_aux_dir"; then
  2272. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2273. fi
  2274. # These three variables are undocumented and unsupported,
  2275. # and are intended to be withdrawn in a future Autoconf release.
  2276. # They can cause serious problems if a builder's source tree is in a directory
  2277. # whose full name contains unusual characters.
  2278. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2279. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2280. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2281. # Find a good install program. We prefer a C program (faster),
  2282. # so one script is as good as another. But avoid the broken or
  2283. # incompatible versions:
  2284. # SysV /etc/install, /usr/sbin/install
  2285. # SunOS /usr/etc/install
  2286. # IRIX /sbin/install
  2287. # AIX /bin/install
  2288. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2289. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2290. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2291. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2292. # OS/2's system install, which has a completely different semantic
  2293. # ./install, which can be erroneously created by make from ./install.sh.
  2294. # Reject install programs that cannot install multiple files.
  2295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2296. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2297. if test -z "$INSTALL"; then
  2298. if ${ac_cv_path_install+:} false; then :
  2299. $as_echo_n "(cached) " >&6
  2300. else
  2301. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2302. for as_dir in $PATH
  2303. do
  2304. IFS=$as_save_IFS
  2305. test -z "$as_dir" && as_dir=.
  2306. # Account for people who put trailing slashes in PATH elements.
  2307. case $as_dir/ in #((
  2308. ./ | .// | /[cC]/* | \
  2309. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2310. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2311. /usr/ucb/* ) ;;
  2312. *)
  2313. # OSF1 and SCO ODT 3.0 have their own names for install.
  2314. # Don't use installbsd from OSF since it installs stuff as root
  2315. # by default.
  2316. for ac_prog in ginstall scoinst install; do
  2317. for ac_exec_ext in '' $ac_executable_extensions; do
  2318. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2319. if test $ac_prog = install &&
  2320. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2321. # AIX install. It has an incompatible calling convention.
  2322. :
  2323. elif test $ac_prog = install &&
  2324. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2325. # program-specific install script used by HP pwplus--don't use.
  2326. :
  2327. else
  2328. rm -rf conftest.one conftest.two conftest.dir
  2329. echo one > conftest.one
  2330. echo two > conftest.two
  2331. mkdir conftest.dir
  2332. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2333. test -s conftest.one && test -s conftest.two &&
  2334. test -s conftest.dir/conftest.one &&
  2335. test -s conftest.dir/conftest.two
  2336. then
  2337. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2338. break 3
  2339. fi
  2340. fi
  2341. fi
  2342. done
  2343. done
  2344. ;;
  2345. esac
  2346. done
  2347. IFS=$as_save_IFS
  2348. rm -rf conftest.one conftest.two conftest.dir
  2349. fi
  2350. if test "${ac_cv_path_install+set}" = set; then
  2351. INSTALL=$ac_cv_path_install
  2352. else
  2353. # As a last resort, use the slow shell script. Don't cache a
  2354. # value for INSTALL within a source directory, because that will
  2355. # break other packages using the cache if that directory is
  2356. # removed, or if the value is a relative name.
  2357. INSTALL=$ac_install_sh
  2358. fi
  2359. fi
  2360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2361. $as_echo "$INSTALL" >&6; }
  2362. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2363. # It thinks the first close brace ends the variable substitution.
  2364. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2365. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2366. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2368. $as_echo_n "checking whether build environment is sane... " >&6; }
  2369. # Reject unsafe characters in $srcdir or the absolute working directory
  2370. # name. Accept space and tab only in the latter.
  2371. am_lf='
  2372. '
  2373. case `pwd` in
  2374. *[\\\"\#\$\&\'\`$am_lf]*)
  2375. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2376. esac
  2377. case $srcdir in
  2378. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2379. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2380. esac
  2381. # Do 'set' in a subshell so we don't clobber the current shell's
  2382. # arguments. Must try -L first in case configure is actually a
  2383. # symlink; some systems play weird games with the mod time of symlinks
  2384. # (eg FreeBSD returns the mod time of the symlink's containing
  2385. # directory).
  2386. if (
  2387. am_has_slept=no
  2388. for am_try in 1 2; do
  2389. echo "timestamp, slept: $am_has_slept" > conftest.file
  2390. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2391. if test "$*" = "X"; then
  2392. # -L didn't work.
  2393. set X `ls -t "$srcdir/configure" conftest.file`
  2394. fi
  2395. if test "$*" != "X $srcdir/configure conftest.file" \
  2396. && test "$*" != "X conftest.file $srcdir/configure"; then
  2397. # If neither matched, then we have a broken ls. This can happen
  2398. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2399. # broken ls alias from the environment. This has actually
  2400. # happened. Such a system could not be considered "sane".
  2401. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2402. alias in your environment" "$LINENO" 5
  2403. fi
  2404. if test "$2" = conftest.file || test $am_try -eq 2; then
  2405. break
  2406. fi
  2407. # Just in case.
  2408. sleep 1
  2409. am_has_slept=yes
  2410. done
  2411. test "$2" = conftest.file
  2412. )
  2413. then
  2414. # Ok.
  2415. :
  2416. else
  2417. as_fn_error $? "newly created file is older than distributed files!
  2418. Check your system clock" "$LINENO" 5
  2419. fi
  2420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2421. $as_echo "yes" >&6; }
  2422. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2423. # generated files are strictly newer.
  2424. am_sleep_pid=
  2425. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2426. ( sleep 1 ) &
  2427. am_sleep_pid=$!
  2428. fi
  2429. rm -f conftest.file
  2430. test "$program_prefix" != NONE &&
  2431. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2432. # Use a double $ so make ignores it.
  2433. test "$program_suffix" != NONE &&
  2434. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2435. # Double any \ or $.
  2436. # By default was `s,x,x', remove it if useless.
  2437. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2438. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2439. # expand $ac_aux_dir to an absolute path
  2440. am_aux_dir=`cd $ac_aux_dir && pwd`
  2441. if test x"${MISSING+set}" != xset; then
  2442. case $am_aux_dir in
  2443. *\ * | *\ *)
  2444. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2445. *)
  2446. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2447. esac
  2448. fi
  2449. # Use eval to expand $SHELL
  2450. if eval "$MISSING --is-lightweight"; then
  2451. am_missing_run="$MISSING "
  2452. else
  2453. am_missing_run=
  2454. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2455. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2456. fi
  2457. if test x"${install_sh}" != xset; then
  2458. case $am_aux_dir in
  2459. *\ * | *\ *)
  2460. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2461. *)
  2462. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2463. esac
  2464. fi
  2465. # Installed binaries are usually stripped using 'strip' when the user
  2466. # run "make install-strip". However 'strip' might not be the right
  2467. # tool to use in cross-compilation environments, therefore Automake
  2468. # will honor the 'STRIP' environment variable to overrule this program.
  2469. if test "$cross_compiling" != no; then
  2470. if test -n "$ac_tool_prefix"; then
  2471. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2472. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2474. $as_echo_n "checking for $ac_word... " >&6; }
  2475. if ${ac_cv_prog_STRIP+:} false; then :
  2476. $as_echo_n "(cached) " >&6
  2477. else
  2478. if test -n "$STRIP"; then
  2479. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2480. else
  2481. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2482. for as_dir in $PATH
  2483. do
  2484. IFS=$as_save_IFS
  2485. test -z "$as_dir" && as_dir=.
  2486. for ac_exec_ext in '' $ac_executable_extensions; do
  2487. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2488. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2489. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2490. break 2
  2491. fi
  2492. done
  2493. done
  2494. IFS=$as_save_IFS
  2495. fi
  2496. fi
  2497. STRIP=$ac_cv_prog_STRIP
  2498. if test -n "$STRIP"; then
  2499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2500. $as_echo "$STRIP" >&6; }
  2501. else
  2502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2503. $as_echo "no" >&6; }
  2504. fi
  2505. fi
  2506. if test -z "$ac_cv_prog_STRIP"; then
  2507. ac_ct_STRIP=$STRIP
  2508. # Extract the first word of "strip", so it can be a program name with args.
  2509. set dummy strip; ac_word=$2
  2510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2511. $as_echo_n "checking for $ac_word... " >&6; }
  2512. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2513. $as_echo_n "(cached) " >&6
  2514. else
  2515. if test -n "$ac_ct_STRIP"; then
  2516. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2517. else
  2518. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2519. for as_dir in $PATH
  2520. do
  2521. IFS=$as_save_IFS
  2522. test -z "$as_dir" && as_dir=.
  2523. for ac_exec_ext in '' $ac_executable_extensions; do
  2524. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2525. ac_cv_prog_ac_ct_STRIP="strip"
  2526. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2527. break 2
  2528. fi
  2529. done
  2530. done
  2531. IFS=$as_save_IFS
  2532. fi
  2533. fi
  2534. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2535. if test -n "$ac_ct_STRIP"; then
  2536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2537. $as_echo "$ac_ct_STRIP" >&6; }
  2538. else
  2539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2540. $as_echo "no" >&6; }
  2541. fi
  2542. if test "x$ac_ct_STRIP" = x; then
  2543. STRIP=":"
  2544. else
  2545. case $cross_compiling:$ac_tool_warned in
  2546. yes:)
  2547. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2548. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2549. ac_tool_warned=yes ;;
  2550. esac
  2551. STRIP=$ac_ct_STRIP
  2552. fi
  2553. else
  2554. STRIP="$ac_cv_prog_STRIP"
  2555. fi
  2556. fi
  2557. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2559. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2560. if test -z "$MKDIR_P"; then
  2561. if ${ac_cv_path_mkdir+:} false; then :
  2562. $as_echo_n "(cached) " >&6
  2563. else
  2564. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2565. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2566. do
  2567. IFS=$as_save_IFS
  2568. test -z "$as_dir" && as_dir=.
  2569. for ac_prog in mkdir gmkdir; do
  2570. for ac_exec_ext in '' $ac_executable_extensions; do
  2571. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2572. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2573. 'mkdir (GNU coreutils) '* | \
  2574. 'mkdir (coreutils) '* | \
  2575. 'mkdir (fileutils) '4.1*)
  2576. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2577. break 3;;
  2578. esac
  2579. done
  2580. done
  2581. done
  2582. IFS=$as_save_IFS
  2583. fi
  2584. test -d ./--version && rmdir ./--version
  2585. if test "${ac_cv_path_mkdir+set}" = set; then
  2586. MKDIR_P="$ac_cv_path_mkdir -p"
  2587. else
  2588. # As a last resort, use the slow shell script. Don't cache a
  2589. # value for MKDIR_P within a source directory, because that will
  2590. # break other packages using the cache if that directory is
  2591. # removed, or if the value is a relative name.
  2592. MKDIR_P="$ac_install_sh -d"
  2593. fi
  2594. fi
  2595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2596. $as_echo "$MKDIR_P" >&6; }
  2597. for ac_prog in gawk mawk nawk awk
  2598. do
  2599. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2600. set dummy $ac_prog; ac_word=$2
  2601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2602. $as_echo_n "checking for $ac_word... " >&6; }
  2603. if ${ac_cv_prog_AWK+:} false; then :
  2604. $as_echo_n "(cached) " >&6
  2605. else
  2606. if test -n "$AWK"; then
  2607. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2608. else
  2609. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2610. for as_dir in $PATH
  2611. do
  2612. IFS=$as_save_IFS
  2613. test -z "$as_dir" && as_dir=.
  2614. for ac_exec_ext in '' $ac_executable_extensions; do
  2615. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2616. ac_cv_prog_AWK="$ac_prog"
  2617. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2618. break 2
  2619. fi
  2620. done
  2621. done
  2622. IFS=$as_save_IFS
  2623. fi
  2624. fi
  2625. AWK=$ac_cv_prog_AWK
  2626. if test -n "$AWK"; then
  2627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2628. $as_echo "$AWK" >&6; }
  2629. else
  2630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2631. $as_echo "no" >&6; }
  2632. fi
  2633. test -n "$AWK" && break
  2634. done
  2635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2636. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2637. set x ${MAKE-make}
  2638. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2639. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2640. $as_echo_n "(cached) " >&6
  2641. else
  2642. cat >conftest.make <<\_ACEOF
  2643. SHELL = /bin/sh
  2644. all:
  2645. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2646. _ACEOF
  2647. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2648. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2649. *@@@%%%=?*=@@@%%%*)
  2650. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2651. *)
  2652. eval ac_cv_prog_make_${ac_make}_set=no;;
  2653. esac
  2654. rm -f conftest.make
  2655. fi
  2656. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2658. $as_echo "yes" >&6; }
  2659. SET_MAKE=
  2660. else
  2661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2662. $as_echo "no" >&6; }
  2663. SET_MAKE="MAKE=${MAKE-make}"
  2664. fi
  2665. rm -rf .tst 2>/dev/null
  2666. mkdir .tst 2>/dev/null
  2667. if test -d .tst; then
  2668. am__leading_dot=.
  2669. else
  2670. am__leading_dot=_
  2671. fi
  2672. rmdir .tst 2>/dev/null
  2673. # Check whether --enable-silent-rules was given.
  2674. if test "${enable_silent_rules+set}" = set; then :
  2675. enableval=$enable_silent_rules;
  2676. fi
  2677. case $enable_silent_rules in # (((
  2678. yes) AM_DEFAULT_VERBOSITY=0;;
  2679. no) AM_DEFAULT_VERBOSITY=1;;
  2680. *) AM_DEFAULT_VERBOSITY=1;;
  2681. esac
  2682. am_make=${MAKE-make}
  2683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2684. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2685. if ${am_cv_make_support_nested_variables+:} false; then :
  2686. $as_echo_n "(cached) " >&6
  2687. else
  2688. if $as_echo 'TRUE=$(BAR$(V))
  2689. BAR0=false
  2690. BAR1=true
  2691. V=1
  2692. am__doit:
  2693. @$(TRUE)
  2694. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2695. am_cv_make_support_nested_variables=yes
  2696. else
  2697. am_cv_make_support_nested_variables=no
  2698. fi
  2699. fi
  2700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2701. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2702. if test $am_cv_make_support_nested_variables = yes; then
  2703. AM_V='$(V)'
  2704. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2705. else
  2706. AM_V=$AM_DEFAULT_VERBOSITY
  2707. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2708. fi
  2709. AM_BACKSLASH='\'
  2710. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2711. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2712. # is not polluted with repeated "-I."
  2713. am__isrc=' -I$(srcdir)'
  2714. # test to see if srcdir already configured
  2715. if test -f $srcdir/config.status; then
  2716. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2717. fi
  2718. fi
  2719. # test whether we have cygpath
  2720. if test -z "$CYGPATH_W"; then
  2721. if (cygpath --version) >/dev/null 2>/dev/null; then
  2722. CYGPATH_W='cygpath -w'
  2723. else
  2724. CYGPATH_W=echo
  2725. fi
  2726. fi
  2727. # Define the identity of the package.
  2728. PACKAGE='libusbmuxd'
  2729. VERSION='1.0.10'
  2730. cat >>confdefs.h <<_ACEOF
  2731. #define PACKAGE "$PACKAGE"
  2732. _ACEOF
  2733. cat >>confdefs.h <<_ACEOF
  2734. #define VERSION "$VERSION"
  2735. _ACEOF
  2736. # Some tools Automake needs.
  2737. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2738. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2739. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2740. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2741. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2742. # For better backward compatibility. To be removed once Automake 1.9.x
  2743. # dies out for good. For more background, see:
  2744. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2745. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2746. mkdir_p='$(MKDIR_P)'
  2747. # We need awk for the "check" target. The system "awk" is bad on
  2748. # some platforms.
  2749. # Always define AMTAR for backward compatibility. Yes, it's still used
  2750. # in the wild :-( We should find a proper way to deprecate it ...
  2751. AMTAR='$${TAR-tar}'
  2752. # We'll loop over all known methods to create a tar archive until one works.
  2753. _am_tools='gnutar pax cpio none'
  2754. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2755. # Check whether --enable-silent-rules was given.
  2756. if test "${enable_silent_rules+set}" = set; then :
  2757. enableval=$enable_silent_rules;
  2758. fi
  2759. case $enable_silent_rules in # (((
  2760. yes) AM_DEFAULT_VERBOSITY=0;;
  2761. no) AM_DEFAULT_VERBOSITY=1;;
  2762. *) AM_DEFAULT_VERBOSITY=1;;
  2763. esac
  2764. am_make=${MAKE-make}
  2765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2766. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2767. if ${am_cv_make_support_nested_variables+:} false; then :
  2768. $as_echo_n "(cached) " >&6
  2769. else
  2770. if $as_echo 'TRUE=$(BAR$(V))
  2771. BAR0=false
  2772. BAR1=true
  2773. V=1
  2774. am__doit:
  2775. @$(TRUE)
  2776. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2777. am_cv_make_support_nested_variables=yes
  2778. else
  2779. am_cv_make_support_nested_variables=no
  2780. fi
  2781. fi
  2782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2783. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2784. if test $am_cv_make_support_nested_variables = yes; then
  2785. AM_V='$(V)'
  2786. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2787. else
  2788. AM_V=$AM_DEFAULT_VERBOSITY
  2789. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2790. fi
  2791. AM_BACKSLASH='\'
  2792. ac_config_headers="$ac_config_headers config.h"
  2793. # +1 : 0 : +1 == adds new functions to the interface
  2794. # +1 : 0 : 0 == changes or removes functions (changes include both
  2795. # changes to the signature and the semantic)
  2796. # ? :+1 : ? == just internal changes
  2797. # CURRENT : REVISION : AGE
  2798. LIBUSBMUXD_SO_VERSION=4:0:0
  2799. # Checks for programs.
  2800. ac_ext=c
  2801. ac_cpp='$CPP $CPPFLAGS'
  2802. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2803. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2804. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2805. if test -n "$ac_tool_prefix"; then
  2806. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2807. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2809. $as_echo_n "checking for $ac_word... " >&6; }
  2810. if ${ac_cv_prog_CC+:} false; then :
  2811. $as_echo_n "(cached) " >&6
  2812. else
  2813. if test -n "$CC"; then
  2814. ac_cv_prog_CC="$CC" # Let the user override the test.
  2815. else
  2816. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2817. for as_dir in $PATH
  2818. do
  2819. IFS=$as_save_IFS
  2820. test -z "$as_dir" && as_dir=.
  2821. for ac_exec_ext in '' $ac_executable_extensions; do
  2822. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2823. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2824. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2825. break 2
  2826. fi
  2827. done
  2828. done
  2829. IFS=$as_save_IFS
  2830. fi
  2831. fi
  2832. CC=$ac_cv_prog_CC
  2833. if test -n "$CC"; then
  2834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2835. $as_echo "$CC" >&6; }
  2836. else
  2837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2838. $as_echo "no" >&6; }
  2839. fi
  2840. fi
  2841. if test -z "$ac_cv_prog_CC"; then
  2842. ac_ct_CC=$CC
  2843. # Extract the first word of "gcc", so it can be a program name with args.
  2844. set dummy gcc; ac_word=$2
  2845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2846. $as_echo_n "checking for $ac_word... " >&6; }
  2847. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2848. $as_echo_n "(cached) " >&6
  2849. else
  2850. if test -n "$ac_ct_CC"; then
  2851. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2852. else
  2853. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2854. for as_dir in $PATH
  2855. do
  2856. IFS=$as_save_IFS
  2857. test -z "$as_dir" && as_dir=.
  2858. for ac_exec_ext in '' $ac_executable_extensions; do
  2859. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2860. ac_cv_prog_ac_ct_CC="gcc"
  2861. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2862. break 2
  2863. fi
  2864. done
  2865. done
  2866. IFS=$as_save_IFS
  2867. fi
  2868. fi
  2869. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2870. if test -n "$ac_ct_CC"; then
  2871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2872. $as_echo "$ac_ct_CC" >&6; }
  2873. else
  2874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2875. $as_echo "no" >&6; }
  2876. fi
  2877. if test "x$ac_ct_CC" = x; then
  2878. CC=""
  2879. else
  2880. case $cross_compiling:$ac_tool_warned in
  2881. yes:)
  2882. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2883. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2884. ac_tool_warned=yes ;;
  2885. esac
  2886. CC=$ac_ct_CC
  2887. fi
  2888. else
  2889. CC="$ac_cv_prog_CC"
  2890. fi
  2891. if test -z "$CC"; then
  2892. if test -n "$ac_tool_prefix"; then
  2893. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2894. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2896. $as_echo_n "checking for $ac_word... " >&6; }
  2897. if ${ac_cv_prog_CC+:} false; then :
  2898. $as_echo_n "(cached) " >&6
  2899. else
  2900. if test -n "$CC"; then
  2901. ac_cv_prog_CC="$CC" # Let the user override the test.
  2902. else
  2903. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2904. for as_dir in $PATH
  2905. do
  2906. IFS=$as_save_IFS
  2907. test -z "$as_dir" && as_dir=.
  2908. for ac_exec_ext in '' $ac_executable_extensions; do
  2909. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2910. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2911. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2912. break 2
  2913. fi
  2914. done
  2915. done
  2916. IFS=$as_save_IFS
  2917. fi
  2918. fi
  2919. CC=$ac_cv_prog_CC
  2920. if test -n "$CC"; then
  2921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2922. $as_echo "$CC" >&6; }
  2923. else
  2924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2925. $as_echo "no" >&6; }
  2926. fi
  2927. fi
  2928. fi
  2929. if test -z "$CC"; then
  2930. # Extract the first word of "cc", so it can be a program name with args.
  2931. set dummy cc; ac_word=$2
  2932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2933. $as_echo_n "checking for $ac_word... " >&6; }
  2934. if ${ac_cv_prog_CC+:} false; then :
  2935. $as_echo_n "(cached) " >&6
  2936. else
  2937. if test -n "$CC"; then
  2938. ac_cv_prog_CC="$CC" # Let the user override the test.
  2939. else
  2940. ac_prog_rejected=no
  2941. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2942. for as_dir in $PATH
  2943. do
  2944. IFS=$as_save_IFS
  2945. test -z "$as_dir" && as_dir=.
  2946. for ac_exec_ext in '' $ac_executable_extensions; do
  2947. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2948. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2949. ac_prog_rejected=yes
  2950. continue
  2951. fi
  2952. ac_cv_prog_CC="cc"
  2953. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2954. break 2
  2955. fi
  2956. done
  2957. done
  2958. IFS=$as_save_IFS
  2959. if test $ac_prog_rejected = yes; then
  2960. # We found a bogon in the path, so make sure we never use it.
  2961. set dummy $ac_cv_prog_CC
  2962. shift
  2963. if test $# != 0; then
  2964. # We chose a different compiler from the bogus one.
  2965. # However, it has the same basename, so the bogon will be chosen
  2966. # first if we set CC to just the basename; use the full file name.
  2967. shift
  2968. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2969. fi
  2970. fi
  2971. fi
  2972. fi
  2973. CC=$ac_cv_prog_CC
  2974. if test -n "$CC"; then
  2975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2976. $as_echo "$CC" >&6; }
  2977. else
  2978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2979. $as_echo "no" >&6; }
  2980. fi
  2981. fi
  2982. if test -z "$CC"; then
  2983. if test -n "$ac_tool_prefix"; then
  2984. for ac_prog in cl.exe
  2985. do
  2986. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2987. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2989. $as_echo_n "checking for $ac_word... " >&6; }
  2990. if ${ac_cv_prog_CC+:} false; then :
  2991. $as_echo_n "(cached) " >&6
  2992. else
  2993. if test -n "$CC"; then
  2994. ac_cv_prog_CC="$CC" # Let the user override the test.
  2995. else
  2996. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2997. for as_dir in $PATH
  2998. do
  2999. IFS=$as_save_IFS
  3000. test -z "$as_dir" && as_dir=.
  3001. for ac_exec_ext in '' $ac_executable_extensions; do
  3002. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3003. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3004. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3005. break 2
  3006. fi
  3007. done
  3008. done
  3009. IFS=$as_save_IFS
  3010. fi
  3011. fi
  3012. CC=$ac_cv_prog_CC
  3013. if test -n "$CC"; then
  3014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3015. $as_echo "$CC" >&6; }
  3016. else
  3017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3018. $as_echo "no" >&6; }
  3019. fi
  3020. test -n "$CC" && break
  3021. done
  3022. fi
  3023. if test -z "$CC"; then
  3024. ac_ct_CC=$CC
  3025. for ac_prog in cl.exe
  3026. do
  3027. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3028. set dummy $ac_prog; ac_word=$2
  3029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3030. $as_echo_n "checking for $ac_word... " >&6; }
  3031. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3032. $as_echo_n "(cached) " >&6
  3033. else
  3034. if test -n "$ac_ct_CC"; then
  3035. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3036. else
  3037. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3038. for as_dir in $PATH
  3039. do
  3040. IFS=$as_save_IFS
  3041. test -z "$as_dir" && as_dir=.
  3042. for ac_exec_ext in '' $ac_executable_extensions; do
  3043. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3044. ac_cv_prog_ac_ct_CC="$ac_prog"
  3045. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3046. break 2
  3047. fi
  3048. done
  3049. done
  3050. IFS=$as_save_IFS
  3051. fi
  3052. fi
  3053. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3054. if test -n "$ac_ct_CC"; then
  3055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3056. $as_echo "$ac_ct_CC" >&6; }
  3057. else
  3058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3059. $as_echo "no" >&6; }
  3060. fi
  3061. test -n "$ac_ct_CC" && break
  3062. done
  3063. if test "x$ac_ct_CC" = x; then
  3064. CC=""
  3065. else
  3066. case $cross_compiling:$ac_tool_warned in
  3067. yes:)
  3068. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3069. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3070. ac_tool_warned=yes ;;
  3071. esac
  3072. CC=$ac_ct_CC
  3073. fi
  3074. fi
  3075. fi
  3076. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3077. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3078. as_fn_error $? "no acceptable C compiler found in \$PATH
  3079. See \`config.log' for more details" "$LINENO" 5; }
  3080. # Provide some information about the compiler.
  3081. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3082. set X $ac_compile
  3083. ac_compiler=$2
  3084. for ac_option in --version -v -V -qversion; do
  3085. { { ac_try="$ac_compiler $ac_option >&5"
  3086. case "(($ac_try" in
  3087. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3088. *) ac_try_echo=$ac_try;;
  3089. esac
  3090. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3091. $as_echo "$ac_try_echo"; } >&5
  3092. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3093. ac_status=$?
  3094. if test -s conftest.err; then
  3095. sed '10a\
  3096. ... rest of stderr output deleted ...
  3097. 10q' conftest.err >conftest.er1
  3098. cat conftest.er1 >&5
  3099. fi
  3100. rm -f conftest.er1 conftest.err
  3101. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3102. test $ac_status = 0; }
  3103. done
  3104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3105. /* end confdefs.h. */
  3106. int
  3107. main ()
  3108. {
  3109. ;
  3110. return 0;
  3111. }
  3112. _ACEOF
  3113. ac_clean_files_save=$ac_clean_files
  3114. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3115. # Try to create an executable without -o first, disregard a.out.
  3116. # It will help us diagnose broken compilers, and finding out an intuition
  3117. # of exeext.
  3118. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3119. $as_echo_n "checking whether the C compiler works... " >&6; }
  3120. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3121. # The possible output files:
  3122. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3123. ac_rmfiles=
  3124. for ac_file in $ac_files
  3125. do
  3126. case $ac_file in
  3127. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3128. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3129. esac
  3130. done
  3131. rm -f $ac_rmfiles
  3132. if { { ac_try="$ac_link_default"
  3133. case "(($ac_try" in
  3134. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3135. *) ac_try_echo=$ac_try;;
  3136. esac
  3137. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3138. $as_echo "$ac_try_echo"; } >&5
  3139. (eval "$ac_link_default") 2>&5
  3140. ac_status=$?
  3141. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3142. test $ac_status = 0; }; then :
  3143. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3144. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3145. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3146. # so that the user can short-circuit this test for compilers unknown to
  3147. # Autoconf.
  3148. for ac_file in $ac_files ''
  3149. do
  3150. test -f "$ac_file" || continue
  3151. case $ac_file in
  3152. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3153. ;;
  3154. [ab].out )
  3155. # We found the default executable, but exeext='' is most
  3156. # certainly right.
  3157. break;;
  3158. *.* )
  3159. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3160. then :; else
  3161. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3162. fi
  3163. # We set ac_cv_exeext here because the later test for it is not
  3164. # safe: cross compilers may not add the suffix if given an `-o'
  3165. # argument, so we may need to know it at that point already.
  3166. # Even if this section looks crufty: it has the advantage of
  3167. # actually working.
  3168. break;;
  3169. * )
  3170. break;;
  3171. esac
  3172. done
  3173. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3174. else
  3175. ac_file=''
  3176. fi
  3177. if test -z "$ac_file"; then :
  3178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3179. $as_echo "no" >&6; }
  3180. $as_echo "$as_me: failed program was:" >&5
  3181. sed 's/^/| /' conftest.$ac_ext >&5
  3182. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3183. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3184. as_fn_error 77 "C compiler cannot create executables
  3185. See \`config.log' for more details" "$LINENO" 5; }
  3186. else
  3187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3188. $as_echo "yes" >&6; }
  3189. fi
  3190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3191. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3193. $as_echo "$ac_file" >&6; }
  3194. ac_exeext=$ac_cv_exeext
  3195. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3196. ac_clean_files=$ac_clean_files_save
  3197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3198. $as_echo_n "checking for suffix of executables... " >&6; }
  3199. if { { ac_try="$ac_link"
  3200. case "(($ac_try" in
  3201. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3202. *) ac_try_echo=$ac_try;;
  3203. esac
  3204. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3205. $as_echo "$ac_try_echo"; } >&5
  3206. (eval "$ac_link") 2>&5
  3207. ac_status=$?
  3208. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3209. test $ac_status = 0; }; then :
  3210. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3211. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3212. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3213. # `rm'.
  3214. for ac_file in conftest.exe conftest conftest.*; do
  3215. test -f "$ac_file" || continue
  3216. case $ac_file in
  3217. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3218. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3219. break;;
  3220. * ) break;;
  3221. esac
  3222. done
  3223. else
  3224. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3225. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3226. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3227. See \`config.log' for more details" "$LINENO" 5; }
  3228. fi
  3229. rm -f conftest conftest$ac_cv_exeext
  3230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3231. $as_echo "$ac_cv_exeext" >&6; }
  3232. rm -f conftest.$ac_ext
  3233. EXEEXT=$ac_cv_exeext
  3234. ac_exeext=$EXEEXT
  3235. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3236. /* end confdefs.h. */
  3237. #include <stdio.h>
  3238. int
  3239. main ()
  3240. {
  3241. FILE *f = fopen ("conftest.out", "w");
  3242. return ferror (f) || fclose (f) != 0;
  3243. ;
  3244. return 0;
  3245. }
  3246. _ACEOF
  3247. ac_clean_files="$ac_clean_files conftest.out"
  3248. # Check that the compiler produces executables we can run. If not, either
  3249. # the compiler is broken, or we cross compile.
  3250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3251. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3252. if test "$cross_compiling" != yes; then
  3253. { { ac_try="$ac_link"
  3254. case "(($ac_try" in
  3255. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3256. *) ac_try_echo=$ac_try;;
  3257. esac
  3258. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3259. $as_echo "$ac_try_echo"; } >&5
  3260. (eval "$ac_link") 2>&5
  3261. ac_status=$?
  3262. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3263. test $ac_status = 0; }
  3264. if { ac_try='./conftest$ac_cv_exeext'
  3265. { { case "(($ac_try" in
  3266. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3267. *) ac_try_echo=$ac_try;;
  3268. esac
  3269. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3270. $as_echo "$ac_try_echo"; } >&5
  3271. (eval "$ac_try") 2>&5
  3272. ac_status=$?
  3273. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3274. test $ac_status = 0; }; }; then
  3275. cross_compiling=no
  3276. else
  3277. if test "$cross_compiling" = maybe; then
  3278. cross_compiling=yes
  3279. else
  3280. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3281. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3282. as_fn_error $? "cannot run C compiled programs.
  3283. If you meant to cross compile, use \`--host'.
  3284. See \`config.log' for more details" "$LINENO" 5; }
  3285. fi
  3286. fi
  3287. fi
  3288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3289. $as_echo "$cross_compiling" >&6; }
  3290. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3291. ac_clean_files=$ac_clean_files_save
  3292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3293. $as_echo_n "checking for suffix of object files... " >&6; }
  3294. if ${ac_cv_objext+:} false; then :
  3295. $as_echo_n "(cached) " >&6
  3296. else
  3297. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3298. /* end confdefs.h. */
  3299. int
  3300. main ()
  3301. {
  3302. ;
  3303. return 0;
  3304. }
  3305. _ACEOF
  3306. rm -f conftest.o conftest.obj
  3307. if { { ac_try="$ac_compile"
  3308. case "(($ac_try" in
  3309. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3310. *) ac_try_echo=$ac_try;;
  3311. esac
  3312. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3313. $as_echo "$ac_try_echo"; } >&5
  3314. (eval "$ac_compile") 2>&5
  3315. ac_status=$?
  3316. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3317. test $ac_status = 0; }; then :
  3318. for ac_file in conftest.o conftest.obj conftest.*; do
  3319. test -f "$ac_file" || continue;
  3320. case $ac_file in
  3321. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3322. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3323. break;;
  3324. esac
  3325. done
  3326. else
  3327. $as_echo "$as_me: failed program was:" >&5
  3328. sed 's/^/| /' conftest.$ac_ext >&5
  3329. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3330. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3331. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3332. See \`config.log' for more details" "$LINENO" 5; }
  3333. fi
  3334. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3335. fi
  3336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3337. $as_echo "$ac_cv_objext" >&6; }
  3338. OBJEXT=$ac_cv_objext
  3339. ac_objext=$OBJEXT
  3340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3341. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3342. if ${ac_cv_c_compiler_gnu+:} false; then :
  3343. $as_echo_n "(cached) " >&6
  3344. else
  3345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3346. /* end confdefs.h. */
  3347. int
  3348. main ()
  3349. {
  3350. #ifndef __GNUC__
  3351. choke me
  3352. #endif
  3353. ;
  3354. return 0;
  3355. }
  3356. _ACEOF
  3357. if ac_fn_c_try_compile "$LINENO"; then :
  3358. ac_compiler_gnu=yes
  3359. else
  3360. ac_compiler_gnu=no
  3361. fi
  3362. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3363. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3364. fi
  3365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3366. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3367. if test $ac_compiler_gnu = yes; then
  3368. GCC=yes
  3369. else
  3370. GCC=
  3371. fi
  3372. ac_test_CFLAGS=${CFLAGS+set}
  3373. ac_save_CFLAGS=$CFLAGS
  3374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3375. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3376. if ${ac_cv_prog_cc_g+:} false; then :
  3377. $as_echo_n "(cached) " >&6
  3378. else
  3379. ac_save_c_werror_flag=$ac_c_werror_flag
  3380. ac_c_werror_flag=yes
  3381. ac_cv_prog_cc_g=no
  3382. CFLAGS="-g"
  3383. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3384. /* end confdefs.h. */
  3385. int
  3386. main ()
  3387. {
  3388. ;
  3389. return 0;
  3390. }
  3391. _ACEOF
  3392. if ac_fn_c_try_compile "$LINENO"; then :
  3393. ac_cv_prog_cc_g=yes
  3394. else
  3395. CFLAGS=""
  3396. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3397. /* end confdefs.h. */
  3398. int
  3399. main ()
  3400. {
  3401. ;
  3402. return 0;
  3403. }
  3404. _ACEOF
  3405. if ac_fn_c_try_compile "$LINENO"; then :
  3406. else
  3407. ac_c_werror_flag=$ac_save_c_werror_flag
  3408. CFLAGS="-g"
  3409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3410. /* end confdefs.h. */
  3411. int
  3412. main ()
  3413. {
  3414. ;
  3415. return 0;
  3416. }
  3417. _ACEOF
  3418. if ac_fn_c_try_compile "$LINENO"; then :
  3419. ac_cv_prog_cc_g=yes
  3420. fi
  3421. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3422. fi
  3423. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3424. fi
  3425. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3426. ac_c_werror_flag=$ac_save_c_werror_flag
  3427. fi
  3428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3429. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3430. if test "$ac_test_CFLAGS" = set; then
  3431. CFLAGS=$ac_save_CFLAGS
  3432. elif test $ac_cv_prog_cc_g = yes; then
  3433. if test "$GCC" = yes; then
  3434. CFLAGS="-g -O2"
  3435. else
  3436. CFLAGS="-g"
  3437. fi
  3438. else
  3439. if test "$GCC" = yes; then
  3440. CFLAGS="-O2"
  3441. else
  3442. CFLAGS=
  3443. fi
  3444. fi
  3445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3446. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3447. if ${ac_cv_prog_cc_c89+:} false; then :
  3448. $as_echo_n "(cached) " >&6
  3449. else
  3450. ac_cv_prog_cc_c89=no
  3451. ac_save_CC=$CC
  3452. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3453. /* end confdefs.h. */
  3454. #include <stdarg.h>
  3455. #include <stdio.h>
  3456. struct stat;
  3457. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3458. struct buf { int x; };
  3459. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3460. static char *e (p, i)
  3461. char **p;
  3462. int i;
  3463. {
  3464. return p[i];
  3465. }
  3466. static char *f (char * (*g) (char **, int), char **p, ...)
  3467. {
  3468. char *s;
  3469. va_list v;
  3470. va_start (v,p);
  3471. s = g (p, va_arg (v,int));
  3472. va_end (v);
  3473. return s;
  3474. }
  3475. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3476. function prototypes and stuff, but not '\xHH' hex character constants.
  3477. These don't provoke an error unfortunately, instead are silently treated
  3478. as 'x'. The following induces an error, until -std is added to get
  3479. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3480. array size at least. It's necessary to write '\x00'==0 to get something
  3481. that's true only with -std. */
  3482. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3483. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3484. inside strings and character constants. */
  3485. #define FOO(x) 'x'
  3486. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3487. int test (int i, double x);
  3488. struct s1 {int (*f) (int a);};
  3489. struct s2 {int (*f) (double a);};
  3490. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3491. int argc;
  3492. char **argv;
  3493. int
  3494. main ()
  3495. {
  3496. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3497. ;
  3498. return 0;
  3499. }
  3500. _ACEOF
  3501. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3502. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3503. do
  3504. CC="$ac_save_CC $ac_arg"
  3505. if ac_fn_c_try_compile "$LINENO"; then :
  3506. ac_cv_prog_cc_c89=$ac_arg
  3507. fi
  3508. rm -f core conftest.err conftest.$ac_objext
  3509. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3510. done
  3511. rm -f conftest.$ac_ext
  3512. CC=$ac_save_CC
  3513. fi
  3514. # AC_CACHE_VAL
  3515. case "x$ac_cv_prog_cc_c89" in
  3516. x)
  3517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3518. $as_echo "none needed" >&6; } ;;
  3519. xno)
  3520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3521. $as_echo "unsupported" >&6; } ;;
  3522. *)
  3523. CC="$CC $ac_cv_prog_cc_c89"
  3524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3525. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3526. esac
  3527. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3528. fi
  3529. ac_ext=c
  3530. ac_cpp='$CPP $CPPFLAGS'
  3531. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3532. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3533. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3534. DEPDIR="${am__leading_dot}deps"
  3535. ac_config_commands="$ac_config_commands depfiles"
  3536. am_make=${MAKE-make}
  3537. cat > confinc << 'END'
  3538. am__doit:
  3539. @echo this is the am__doit target
  3540. .PHONY: am__doit
  3541. END
  3542. # If we don't find an include directive, just comment out the code.
  3543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3544. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3545. am__include="#"
  3546. am__quote=
  3547. _am_result=none
  3548. # First try GNU make style include.
  3549. echo "include confinc" > confmf
  3550. # Ignore all kinds of additional output from 'make'.
  3551. case `$am_make -s -f confmf 2> /dev/null` in #(
  3552. *the\ am__doit\ target*)
  3553. am__include=include
  3554. am__quote=
  3555. _am_result=GNU
  3556. ;;
  3557. esac
  3558. # Now try BSD make style include.
  3559. if test "$am__include" = "#"; then
  3560. echo '.include "confinc"' > confmf
  3561. case `$am_make -s -f confmf 2> /dev/null` in #(
  3562. *the\ am__doit\ target*)
  3563. am__include=.include
  3564. am__quote="\""
  3565. _am_result=BSD
  3566. ;;
  3567. esac
  3568. fi
  3569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3570. $as_echo "$_am_result" >&6; }
  3571. rm -f confinc confmf
  3572. # Check whether --enable-dependency-tracking was given.
  3573. if test "${enable_dependency_tracking+set}" = set; then :
  3574. enableval=$enable_dependency_tracking;
  3575. fi
  3576. if test "x$enable_dependency_tracking" != xno; then
  3577. am_depcomp="$ac_aux_dir/depcomp"
  3578. AMDEPBACKSLASH='\'
  3579. am__nodep='_no'
  3580. fi
  3581. if test "x$enable_dependency_tracking" != xno; then
  3582. AMDEP_TRUE=
  3583. AMDEP_FALSE='#'
  3584. else
  3585. AMDEP_TRUE='#'
  3586. AMDEP_FALSE=
  3587. fi
  3588. depcc="$CC" am_compiler_list=
  3589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3590. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3591. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3592. $as_echo_n "(cached) " >&6
  3593. else
  3594. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3595. # We make a subdir and do the tests there. Otherwise we can end up
  3596. # making bogus files that we don't know about and never remove. For
  3597. # instance it was reported that on HP-UX the gcc test will end up
  3598. # making a dummy file named 'D' -- because '-MD' means "put the output
  3599. # in D".
  3600. rm -rf conftest.dir
  3601. mkdir conftest.dir
  3602. # Copy depcomp to subdir because otherwise we won't find it if we're
  3603. # using a relative directory.
  3604. cp "$am_depcomp" conftest.dir
  3605. cd conftest.dir
  3606. # We will build objects and dependencies in a subdirectory because
  3607. # it helps to detect inapplicable dependency modes. For instance
  3608. # both Tru64's cc and ICC support -MD to output dependencies as a
  3609. # side effect of compilation, but ICC will put the dependencies in
  3610. # the current directory while Tru64 will put them in the object
  3611. # directory.
  3612. mkdir sub
  3613. am_cv_CC_dependencies_compiler_type=none
  3614. if test "$am_compiler_list" = ""; then
  3615. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3616. fi
  3617. am__universal=false
  3618. case " $depcc " in #(
  3619. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3620. esac
  3621. for depmode in $am_compiler_list; do
  3622. # Setup a source with many dependencies, because some compilers
  3623. # like to wrap large dependency lists on column 80 (with \), and
  3624. # we should not choose a depcomp mode which is confused by this.
  3625. #
  3626. # We need to recreate these files for each test, as the compiler may
  3627. # overwrite some of them when testing with obscure command lines.
  3628. # This happens at least with the AIX C compiler.
  3629. : > sub/conftest.c
  3630. for i in 1 2 3 4 5 6; do
  3631. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3632. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3633. # Solaris 10 /bin/sh.
  3634. echo '/* dummy */' > sub/conftst$i.h
  3635. done
  3636. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3637. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3638. # mode. It turns out that the SunPro C++ compiler does not properly
  3639. # handle '-M -o', and we need to detect this. Also, some Intel
  3640. # versions had trouble with output in subdirs.
  3641. am__obj=sub/conftest.${OBJEXT-o}
  3642. am__minus_obj="-o $am__obj"
  3643. case $depmode in
  3644. gcc)
  3645. # This depmode causes a compiler race in universal mode.
  3646. test "$am__universal" = false || continue
  3647. ;;
  3648. nosideeffect)
  3649. # After this tag, mechanisms are not by side-effect, so they'll
  3650. # only be used when explicitly requested.
  3651. if test "x$enable_dependency_tracking" = xyes; then
  3652. continue
  3653. else
  3654. break
  3655. fi
  3656. ;;
  3657. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3658. # This compiler won't grok '-c -o', but also, the minuso test has
  3659. # not run yet. These depmodes are late enough in the game, and
  3660. # so weak that their functioning should not be impacted.
  3661. am__obj=conftest.${OBJEXT-o}
  3662. am__minus_obj=
  3663. ;;
  3664. none) break ;;
  3665. esac
  3666. if depmode=$depmode \
  3667. source=sub/conftest.c object=$am__obj \
  3668. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3669. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3670. >/dev/null 2>conftest.err &&
  3671. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3672. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3673. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3674. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3675. # icc doesn't choke on unknown options, it will just issue warnings
  3676. # or remarks (even with -Werror). So we grep stderr for any message
  3677. # that says an option was ignored or not supported.
  3678. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3679. # icc: Command line warning: ignoring option '-M'; no argument required
  3680. # The diagnosis changed in icc 8.0:
  3681. # icc: Command line remark: option '-MP' not supported
  3682. if (grep 'ignoring option' conftest.err ||
  3683. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3684. am_cv_CC_dependencies_compiler_type=$depmode
  3685. break
  3686. fi
  3687. fi
  3688. done
  3689. cd ..
  3690. rm -rf conftest.dir
  3691. else
  3692. am_cv_CC_dependencies_compiler_type=none
  3693. fi
  3694. fi
  3695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3696. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3697. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3698. if
  3699. test "x$enable_dependency_tracking" != xno \
  3700. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3701. am__fastdepCC_TRUE=
  3702. am__fastdepCC_FALSE='#'
  3703. else
  3704. am__fastdepCC_TRUE='#'
  3705. am__fastdepCC_FALSE=
  3706. fi
  3707. ac_ext=cpp
  3708. ac_cpp='$CXXCPP $CPPFLAGS'
  3709. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3710. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3711. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3712. if test -z "$CXX"; then
  3713. if test -n "$CCC"; then
  3714. CXX=$CCC
  3715. else
  3716. if test -n "$ac_tool_prefix"; then
  3717. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3718. do
  3719. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3720. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3722. $as_echo_n "checking for $ac_word... " >&6; }
  3723. if ${ac_cv_prog_CXX+:} false; then :
  3724. $as_echo_n "(cached) " >&6
  3725. else
  3726. if test -n "$CXX"; then
  3727. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3728. else
  3729. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3730. for as_dir in $PATH
  3731. do
  3732. IFS=$as_save_IFS
  3733. test -z "$as_dir" && as_dir=.
  3734. for ac_exec_ext in '' $ac_executable_extensions; do
  3735. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3736. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3737. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3738. break 2
  3739. fi
  3740. done
  3741. done
  3742. IFS=$as_save_IFS
  3743. fi
  3744. fi
  3745. CXX=$ac_cv_prog_CXX
  3746. if test -n "$CXX"; then
  3747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3748. $as_echo "$CXX" >&6; }
  3749. else
  3750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3751. $as_echo "no" >&6; }
  3752. fi
  3753. test -n "$CXX" && break
  3754. done
  3755. fi
  3756. if test -z "$CXX"; then
  3757. ac_ct_CXX=$CXX
  3758. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3759. do
  3760. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3761. set dummy $ac_prog; ac_word=$2
  3762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3763. $as_echo_n "checking for $ac_word... " >&6; }
  3764. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  3765. $as_echo_n "(cached) " >&6
  3766. else
  3767. if test -n "$ac_ct_CXX"; then
  3768. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3769. else
  3770. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3771. for as_dir in $PATH
  3772. do
  3773. IFS=$as_save_IFS
  3774. test -z "$as_dir" && as_dir=.
  3775. for ac_exec_ext in '' $ac_executable_extensions; do
  3776. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3777. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3778. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3779. break 2
  3780. fi
  3781. done
  3782. done
  3783. IFS=$as_save_IFS
  3784. fi
  3785. fi
  3786. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3787. if test -n "$ac_ct_CXX"; then
  3788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3789. $as_echo "$ac_ct_CXX" >&6; }
  3790. else
  3791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3792. $as_echo "no" >&6; }
  3793. fi
  3794. test -n "$ac_ct_CXX" && break
  3795. done
  3796. if test "x$ac_ct_CXX" = x; then
  3797. CXX="g++"
  3798. else
  3799. case $cross_compiling:$ac_tool_warned in
  3800. yes:)
  3801. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3802. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3803. ac_tool_warned=yes ;;
  3804. esac
  3805. CXX=$ac_ct_CXX
  3806. fi
  3807. fi
  3808. fi
  3809. fi
  3810. # Provide some information about the compiler.
  3811. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3812. set X $ac_compile
  3813. ac_compiler=$2
  3814. for ac_option in --version -v -V -qversion; do
  3815. { { ac_try="$ac_compiler $ac_option >&5"
  3816. case "(($ac_try" in
  3817. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3818. *) ac_try_echo=$ac_try;;
  3819. esac
  3820. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3821. $as_echo "$ac_try_echo"; } >&5
  3822. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3823. ac_status=$?
  3824. if test -s conftest.err; then
  3825. sed '10a\
  3826. ... rest of stderr output deleted ...
  3827. 10q' conftest.err >conftest.er1
  3828. cat conftest.er1 >&5
  3829. fi
  3830. rm -f conftest.er1 conftest.err
  3831. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3832. test $ac_status = 0; }
  3833. done
  3834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3835. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3836. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  3837. $as_echo_n "(cached) " >&6
  3838. else
  3839. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3840. /* end confdefs.h. */
  3841. int
  3842. main ()
  3843. {
  3844. #ifndef __GNUC__
  3845. choke me
  3846. #endif
  3847. ;
  3848. return 0;
  3849. }
  3850. _ACEOF
  3851. if ac_fn_cxx_try_compile "$LINENO"; then :
  3852. ac_compiler_gnu=yes
  3853. else
  3854. ac_compiler_gnu=no
  3855. fi
  3856. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3857. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3858. fi
  3859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3860. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3861. if test $ac_compiler_gnu = yes; then
  3862. GXX=yes
  3863. else
  3864. GXX=
  3865. fi
  3866. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3867. ac_save_CXXFLAGS=$CXXFLAGS
  3868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3869. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3870. if ${ac_cv_prog_cxx_g+:} false; then :
  3871. $as_echo_n "(cached) " >&6
  3872. else
  3873. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3874. ac_cxx_werror_flag=yes
  3875. ac_cv_prog_cxx_g=no
  3876. CXXFLAGS="-g"
  3877. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3878. /* end confdefs.h. */
  3879. int
  3880. main ()
  3881. {
  3882. ;
  3883. return 0;
  3884. }
  3885. _ACEOF
  3886. if ac_fn_cxx_try_compile "$LINENO"; then :
  3887. ac_cv_prog_cxx_g=yes
  3888. else
  3889. CXXFLAGS=""
  3890. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3891. /* end confdefs.h. */
  3892. int
  3893. main ()
  3894. {
  3895. ;
  3896. return 0;
  3897. }
  3898. _ACEOF
  3899. if ac_fn_cxx_try_compile "$LINENO"; then :
  3900. else
  3901. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3902. CXXFLAGS="-g"
  3903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3904. /* end confdefs.h. */
  3905. int
  3906. main ()
  3907. {
  3908. ;
  3909. return 0;
  3910. }
  3911. _ACEOF
  3912. if ac_fn_cxx_try_compile "$LINENO"; then :
  3913. ac_cv_prog_cxx_g=yes
  3914. fi
  3915. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3916. fi
  3917. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3918. fi
  3919. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3920. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3921. fi
  3922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3923. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3924. if test "$ac_test_CXXFLAGS" = set; then
  3925. CXXFLAGS=$ac_save_CXXFLAGS
  3926. elif test $ac_cv_prog_cxx_g = yes; then
  3927. if test "$GXX" = yes; then
  3928. CXXFLAGS="-g -O2"
  3929. else
  3930. CXXFLAGS="-g"
  3931. fi
  3932. else
  3933. if test "$GXX" = yes; then
  3934. CXXFLAGS="-O2"
  3935. else
  3936. CXXFLAGS=
  3937. fi
  3938. fi
  3939. ac_ext=c
  3940. ac_cpp='$CPP $CPPFLAGS'
  3941. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3942. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3943. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3944. depcc="$CXX" am_compiler_list=
  3945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3946. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3947. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  3948. $as_echo_n "(cached) " >&6
  3949. else
  3950. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3951. # We make a subdir and do the tests there. Otherwise we can end up
  3952. # making bogus files that we don't know about and never remove. For
  3953. # instance it was reported that on HP-UX the gcc test will end up
  3954. # making a dummy file named 'D' -- because '-MD' means "put the output
  3955. # in D".
  3956. rm -rf conftest.dir
  3957. mkdir conftest.dir
  3958. # Copy depcomp to subdir because otherwise we won't find it if we're
  3959. # using a relative directory.
  3960. cp "$am_depcomp" conftest.dir
  3961. cd conftest.dir
  3962. # We will build objects and dependencies in a subdirectory because
  3963. # it helps to detect inapplicable dependency modes. For instance
  3964. # both Tru64's cc and ICC support -MD to output dependencies as a
  3965. # side effect of compilation, but ICC will put the dependencies in
  3966. # the current directory while Tru64 will put them in the object
  3967. # directory.
  3968. mkdir sub
  3969. am_cv_CXX_dependencies_compiler_type=none
  3970. if test "$am_compiler_list" = ""; then
  3971. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3972. fi
  3973. am__universal=false
  3974. case " $depcc " in #(
  3975. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3976. esac
  3977. for depmode in $am_compiler_list; do
  3978. # Setup a source with many dependencies, because some compilers
  3979. # like to wrap large dependency lists on column 80 (with \), and
  3980. # we should not choose a depcomp mode which is confused by this.
  3981. #
  3982. # We need to recreate these files for each test, as the compiler may
  3983. # overwrite some of them when testing with obscure command lines.
  3984. # This happens at least with the AIX C compiler.
  3985. : > sub/conftest.c
  3986. for i in 1 2 3 4 5 6; do
  3987. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3988. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3989. # Solaris 10 /bin/sh.
  3990. echo '/* dummy */' > sub/conftst$i.h
  3991. done
  3992. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3993. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3994. # mode. It turns out that the SunPro C++ compiler does not properly
  3995. # handle '-M -o', and we need to detect this. Also, some Intel
  3996. # versions had trouble with output in subdirs.
  3997. am__obj=sub/conftest.${OBJEXT-o}
  3998. am__minus_obj="-o $am__obj"
  3999. case $depmode in
  4000. gcc)
  4001. # This depmode causes a compiler race in universal mode.
  4002. test "$am__universal" = false || continue
  4003. ;;
  4004. nosideeffect)
  4005. # After this tag, mechanisms are not by side-effect, so they'll
  4006. # only be used when explicitly requested.
  4007. if test "x$enable_dependency_tracking" = xyes; then
  4008. continue
  4009. else
  4010. break
  4011. fi
  4012. ;;
  4013. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4014. # This compiler won't grok '-c -o', but also, the minuso test has
  4015. # not run yet. These depmodes are late enough in the game, and
  4016. # so weak that their functioning should not be impacted.
  4017. am__obj=conftest.${OBJEXT-o}
  4018. am__minus_obj=
  4019. ;;
  4020. none) break ;;
  4021. esac
  4022. if depmode=$depmode \
  4023. source=sub/conftest.c object=$am__obj \
  4024. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4025. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4026. >/dev/null 2>conftest.err &&
  4027. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4028. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4029. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4030. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4031. # icc doesn't choke on unknown options, it will just issue warnings
  4032. # or remarks (even with -Werror). So we grep stderr for any message
  4033. # that says an option was ignored or not supported.
  4034. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4035. # icc: Command line warning: ignoring option '-M'; no argument required
  4036. # The diagnosis changed in icc 8.0:
  4037. # icc: Command line remark: option '-MP' not supported
  4038. if (grep 'ignoring option' conftest.err ||
  4039. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4040. am_cv_CXX_dependencies_compiler_type=$depmode
  4041. break
  4042. fi
  4043. fi
  4044. done
  4045. cd ..
  4046. rm -rf conftest.dir
  4047. else
  4048. am_cv_CXX_dependencies_compiler_type=none
  4049. fi
  4050. fi
  4051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  4052. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  4053. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  4054. if
  4055. test "x$enable_dependency_tracking" != xno \
  4056. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  4057. am__fastdepCXX_TRUE=
  4058. am__fastdepCXX_FALSE='#'
  4059. else
  4060. am__fastdepCXX_TRUE='#'
  4061. am__fastdepCXX_FALSE=
  4062. fi
  4063. if test "x$CC" != xcc; then
  4064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  4065. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  4066. else
  4067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  4068. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  4069. fi
  4070. set dummy $CC; ac_cc=`$as_echo "$2" |
  4071. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4072. if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  4073. $as_echo_n "(cached) " >&6
  4074. else
  4075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4076. /* end confdefs.h. */
  4077. int
  4078. main ()
  4079. {
  4080. ;
  4081. return 0;
  4082. }
  4083. _ACEOF
  4084. # Make sure it works both with $CC and with simple cc.
  4085. # We do the test twice because some compilers refuse to overwrite an
  4086. # existing .o file with -o, though they will create one.
  4087. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4088. rm -f conftest2.*
  4089. if { { case "(($ac_try" in
  4090. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4091. *) ac_try_echo=$ac_try;;
  4092. esac
  4093. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4094. $as_echo "$ac_try_echo"; } >&5
  4095. (eval "$ac_try") 2>&5
  4096. ac_status=$?
  4097. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4098. test $ac_status = 0; } &&
  4099. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  4100. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4101. *) ac_try_echo=$ac_try;;
  4102. esac
  4103. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4104. $as_echo "$ac_try_echo"; } >&5
  4105. (eval "$ac_try") 2>&5
  4106. ac_status=$?
  4107. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4108. test $ac_status = 0; };
  4109. then
  4110. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  4111. if test "x$CC" != xcc; then
  4112. # Test first that cc exists at all.
  4113. if { ac_try='cc -c conftest.$ac_ext >&5'
  4114. { { case "(($ac_try" in
  4115. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4116. *) ac_try_echo=$ac_try;;
  4117. esac
  4118. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4119. $as_echo "$ac_try_echo"; } >&5
  4120. (eval "$ac_try") 2>&5
  4121. ac_status=$?
  4122. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4123. test $ac_status = 0; }; }; then
  4124. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4125. rm -f conftest2.*
  4126. if { { case "(($ac_try" in
  4127. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4128. *) ac_try_echo=$ac_try;;
  4129. esac
  4130. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4131. $as_echo "$ac_try_echo"; } >&5
  4132. (eval "$ac_try") 2>&5
  4133. ac_status=$?
  4134. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4135. test $ac_status = 0; } &&
  4136. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  4137. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4138. *) ac_try_echo=$ac_try;;
  4139. esac
  4140. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4141. $as_echo "$ac_try_echo"; } >&5
  4142. (eval "$ac_try") 2>&5
  4143. ac_status=$?
  4144. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4145. test $ac_status = 0; };
  4146. then
  4147. # cc works too.
  4148. :
  4149. else
  4150. # cc exists but doesn't like -o.
  4151. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4152. fi
  4153. fi
  4154. fi
  4155. else
  4156. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4157. fi
  4158. rm -f core conftest*
  4159. fi
  4160. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  4161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4162. $as_echo "yes" >&6; }
  4163. else
  4164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4165. $as_echo "no" >&6; }
  4166. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  4167. fi
  4168. # FIXME: we rely on the cache variable name because
  4169. # there is no other way.
  4170. set dummy $CC
  4171. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4172. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  4173. if test "$am_t" != yes; then
  4174. # Losing compiler, so override with the script.
  4175. # FIXME: It is wrong to rewrite CC.
  4176. # But if we don't then we get into trouble of one sort or another.
  4177. # A longer-term fix would be to have automake use am__CC in this case,
  4178. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4179. CC="$am_aux_dir/compile $CC"
  4180. fi
  4181. case `pwd` in
  4182. *\ * | *\ *)
  4183. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4184. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4185. esac
  4186. macro_version='2.4.2'
  4187. macro_revision='1.3337'
  4188. ltmain="$ac_aux_dir/ltmain.sh"
  4189. # Make sure we can run config.sub.
  4190. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4191. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  4192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  4193. $as_echo_n "checking build system type... " >&6; }
  4194. if ${ac_cv_build+:} false; then :
  4195. $as_echo_n "(cached) " >&6
  4196. else
  4197. ac_build_alias=$build_alias
  4198. test "x$ac_build_alias" = x &&
  4199. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4200. test "x$ac_build_alias" = x &&
  4201. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  4202. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4203. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  4204. fi
  4205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  4206. $as_echo "$ac_cv_build" >&6; }
  4207. case $ac_cv_build in
  4208. *-*-*) ;;
  4209. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  4210. esac
  4211. build=$ac_cv_build
  4212. ac_save_IFS=$IFS; IFS='-'
  4213. set x $ac_cv_build
  4214. shift
  4215. build_cpu=$1
  4216. build_vendor=$2
  4217. shift; shift
  4218. # Remember, the first character of IFS is used to create $*,
  4219. # except with old shells:
  4220. build_os=$*
  4221. IFS=$ac_save_IFS
  4222. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  4224. $as_echo_n "checking host system type... " >&6; }
  4225. if ${ac_cv_host+:} false; then :
  4226. $as_echo_n "(cached) " >&6
  4227. else
  4228. if test "x$host_alias" = x; then
  4229. ac_cv_host=$ac_cv_build
  4230. else
  4231. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4232. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  4233. fi
  4234. fi
  4235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  4236. $as_echo "$ac_cv_host" >&6; }
  4237. case $ac_cv_host in
  4238. *-*-*) ;;
  4239. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  4240. esac
  4241. host=$ac_cv_host
  4242. ac_save_IFS=$IFS; IFS='-'
  4243. set x $ac_cv_host
  4244. shift
  4245. host_cpu=$1
  4246. host_vendor=$2
  4247. shift; shift
  4248. # Remember, the first character of IFS is used to create $*,
  4249. # except with old shells:
  4250. host_os=$*
  4251. IFS=$ac_save_IFS
  4252. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4253. # Backslashify metacharacters that are still active within
  4254. # double-quoted strings.
  4255. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4256. # Same as above, but do not quote variable references.
  4257. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4258. # Sed substitution to delay expansion of an escaped shell variable in a
  4259. # double_quote_subst'ed string.
  4260. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4261. # Sed substitution to delay expansion of an escaped single quote.
  4262. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4263. # Sed substitution to avoid accidental globbing in evaled expressions
  4264. no_glob_subst='s/\*/\\\*/g'
  4265. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4266. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4267. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4269. $as_echo_n "checking how to print strings... " >&6; }
  4270. # Test print first, because it will be a builtin if present.
  4271. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4272. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4273. ECHO='print -r --'
  4274. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4275. ECHO='printf %s\n'
  4276. else
  4277. # Use this function as a fallback that always works.
  4278. func_fallback_echo ()
  4279. {
  4280. eval 'cat <<_LTECHO_EOF
  4281. $1
  4282. _LTECHO_EOF'
  4283. }
  4284. ECHO='func_fallback_echo'
  4285. fi
  4286. # func_echo_all arg...
  4287. # Invoke $ECHO with all args, space-separated.
  4288. func_echo_all ()
  4289. {
  4290. $ECHO ""
  4291. }
  4292. case "$ECHO" in
  4293. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4294. $as_echo "printf" >&6; } ;;
  4295. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4296. $as_echo "print -r" >&6; } ;;
  4297. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4298. $as_echo "cat" >&6; } ;;
  4299. esac
  4300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4301. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4302. if ${ac_cv_path_SED+:} false; then :
  4303. $as_echo_n "(cached) " >&6
  4304. else
  4305. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4306. for ac_i in 1 2 3 4 5 6 7; do
  4307. ac_script="$ac_script$as_nl$ac_script"
  4308. done
  4309. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4310. { ac_script=; unset ac_script;}
  4311. if test -z "$SED"; then
  4312. ac_path_SED_found=false
  4313. # Loop through the user's path and test for each of PROGNAME-LIST
  4314. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4315. for as_dir in $PATH
  4316. do
  4317. IFS=$as_save_IFS
  4318. test -z "$as_dir" && as_dir=.
  4319. for ac_prog in sed gsed; do
  4320. for ac_exec_ext in '' $ac_executable_extensions; do
  4321. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4322. as_fn_executable_p "$ac_path_SED" || continue
  4323. # Check for GNU ac_path_SED and select it if it is found.
  4324. # Check for GNU $ac_path_SED
  4325. case `"$ac_path_SED" --version 2>&1` in
  4326. *GNU*)
  4327. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4328. *)
  4329. ac_count=0
  4330. $as_echo_n 0123456789 >"conftest.in"
  4331. while :
  4332. do
  4333. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4334. mv "conftest.tmp" "conftest.in"
  4335. cp "conftest.in" "conftest.nl"
  4336. $as_echo '' >> "conftest.nl"
  4337. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4338. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4339. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4340. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4341. # Best one so far, save it but keep looking for a better one
  4342. ac_cv_path_SED="$ac_path_SED"
  4343. ac_path_SED_max=$ac_count
  4344. fi
  4345. # 10*(2^10) chars as input seems more than enough
  4346. test $ac_count -gt 10 && break
  4347. done
  4348. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4349. esac
  4350. $ac_path_SED_found && break 3
  4351. done
  4352. done
  4353. done
  4354. IFS=$as_save_IFS
  4355. if test -z "$ac_cv_path_SED"; then
  4356. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4357. fi
  4358. else
  4359. ac_cv_path_SED=$SED
  4360. fi
  4361. fi
  4362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4363. $as_echo "$ac_cv_path_SED" >&6; }
  4364. SED="$ac_cv_path_SED"
  4365. rm -f conftest.sed
  4366. test -z "$SED" && SED=sed
  4367. Xsed="$SED -e 1s/^X//"
  4368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4369. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4370. if ${ac_cv_path_GREP+:} false; then :
  4371. $as_echo_n "(cached) " >&6
  4372. else
  4373. if test -z "$GREP"; then
  4374. ac_path_GREP_found=false
  4375. # Loop through the user's path and test for each of PROGNAME-LIST
  4376. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4377. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4378. do
  4379. IFS=$as_save_IFS
  4380. test -z "$as_dir" && as_dir=.
  4381. for ac_prog in grep ggrep; do
  4382. for ac_exec_ext in '' $ac_executable_extensions; do
  4383. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4384. as_fn_executable_p "$ac_path_GREP" || continue
  4385. # Check for GNU ac_path_GREP and select it if it is found.
  4386. # Check for GNU $ac_path_GREP
  4387. case `"$ac_path_GREP" --version 2>&1` in
  4388. *GNU*)
  4389. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4390. *)
  4391. ac_count=0
  4392. $as_echo_n 0123456789 >"conftest.in"
  4393. while :
  4394. do
  4395. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4396. mv "conftest.tmp" "conftest.in"
  4397. cp "conftest.in" "conftest.nl"
  4398. $as_echo 'GREP' >> "conftest.nl"
  4399. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4400. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4401. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4402. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4403. # Best one so far, save it but keep looking for a better one
  4404. ac_cv_path_GREP="$ac_path_GREP"
  4405. ac_path_GREP_max=$ac_count
  4406. fi
  4407. # 10*(2^10) chars as input seems more than enough
  4408. test $ac_count -gt 10 && break
  4409. done
  4410. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4411. esac
  4412. $ac_path_GREP_found && break 3
  4413. done
  4414. done
  4415. done
  4416. IFS=$as_save_IFS
  4417. if test -z "$ac_cv_path_GREP"; then
  4418. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4419. fi
  4420. else
  4421. ac_cv_path_GREP=$GREP
  4422. fi
  4423. fi
  4424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4425. $as_echo "$ac_cv_path_GREP" >&6; }
  4426. GREP="$ac_cv_path_GREP"
  4427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4428. $as_echo_n "checking for egrep... " >&6; }
  4429. if ${ac_cv_path_EGREP+:} false; then :
  4430. $as_echo_n "(cached) " >&6
  4431. else
  4432. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4433. then ac_cv_path_EGREP="$GREP -E"
  4434. else
  4435. if test -z "$EGREP"; then
  4436. ac_path_EGREP_found=false
  4437. # Loop through the user's path and test for each of PROGNAME-LIST
  4438. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4439. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4440. do
  4441. IFS=$as_save_IFS
  4442. test -z "$as_dir" && as_dir=.
  4443. for ac_prog in egrep; do
  4444. for ac_exec_ext in '' $ac_executable_extensions; do
  4445. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4446. as_fn_executable_p "$ac_path_EGREP" || continue
  4447. # Check for GNU ac_path_EGREP and select it if it is found.
  4448. # Check for GNU $ac_path_EGREP
  4449. case `"$ac_path_EGREP" --version 2>&1` in
  4450. *GNU*)
  4451. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4452. *)
  4453. ac_count=0
  4454. $as_echo_n 0123456789 >"conftest.in"
  4455. while :
  4456. do
  4457. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4458. mv "conftest.tmp" "conftest.in"
  4459. cp "conftest.in" "conftest.nl"
  4460. $as_echo 'EGREP' >> "conftest.nl"
  4461. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4462. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4463. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4464. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4465. # Best one so far, save it but keep looking for a better one
  4466. ac_cv_path_EGREP="$ac_path_EGREP"
  4467. ac_path_EGREP_max=$ac_count
  4468. fi
  4469. # 10*(2^10) chars as input seems more than enough
  4470. test $ac_count -gt 10 && break
  4471. done
  4472. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4473. esac
  4474. $ac_path_EGREP_found && break 3
  4475. done
  4476. done
  4477. done
  4478. IFS=$as_save_IFS
  4479. if test -z "$ac_cv_path_EGREP"; then
  4480. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4481. fi
  4482. else
  4483. ac_cv_path_EGREP=$EGREP
  4484. fi
  4485. fi
  4486. fi
  4487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4488. $as_echo "$ac_cv_path_EGREP" >&6; }
  4489. EGREP="$ac_cv_path_EGREP"
  4490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4491. $as_echo_n "checking for fgrep... " >&6; }
  4492. if ${ac_cv_path_FGREP+:} false; then :
  4493. $as_echo_n "(cached) " >&6
  4494. else
  4495. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4496. then ac_cv_path_FGREP="$GREP -F"
  4497. else
  4498. if test -z "$FGREP"; then
  4499. ac_path_FGREP_found=false
  4500. # Loop through the user's path and test for each of PROGNAME-LIST
  4501. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4502. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4503. do
  4504. IFS=$as_save_IFS
  4505. test -z "$as_dir" && as_dir=.
  4506. for ac_prog in fgrep; do
  4507. for ac_exec_ext in '' $ac_executable_extensions; do
  4508. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4509. as_fn_executable_p "$ac_path_FGREP" || continue
  4510. # Check for GNU ac_path_FGREP and select it if it is found.
  4511. # Check for GNU $ac_path_FGREP
  4512. case `"$ac_path_FGREP" --version 2>&1` in
  4513. *GNU*)
  4514. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4515. *)
  4516. ac_count=0
  4517. $as_echo_n 0123456789 >"conftest.in"
  4518. while :
  4519. do
  4520. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4521. mv "conftest.tmp" "conftest.in"
  4522. cp "conftest.in" "conftest.nl"
  4523. $as_echo 'FGREP' >> "conftest.nl"
  4524. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4525. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4526. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4527. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4528. # Best one so far, save it but keep looking for a better one
  4529. ac_cv_path_FGREP="$ac_path_FGREP"
  4530. ac_path_FGREP_max=$ac_count
  4531. fi
  4532. # 10*(2^10) chars as input seems more than enough
  4533. test $ac_count -gt 10 && break
  4534. done
  4535. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4536. esac
  4537. $ac_path_FGREP_found && break 3
  4538. done
  4539. done
  4540. done
  4541. IFS=$as_save_IFS
  4542. if test -z "$ac_cv_path_FGREP"; then
  4543. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4544. fi
  4545. else
  4546. ac_cv_path_FGREP=$FGREP
  4547. fi
  4548. fi
  4549. fi
  4550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4551. $as_echo "$ac_cv_path_FGREP" >&6; }
  4552. FGREP="$ac_cv_path_FGREP"
  4553. test -z "$GREP" && GREP=grep
  4554. # Check whether --with-gnu-ld was given.
  4555. if test "${with_gnu_ld+set}" = set; then :
  4556. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4557. else
  4558. with_gnu_ld=no
  4559. fi
  4560. ac_prog=ld
  4561. if test "$GCC" = yes; then
  4562. # Check if gcc -print-prog-name=ld gives a path.
  4563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4564. $as_echo_n "checking for ld used by $CC... " >&6; }
  4565. case $host in
  4566. *-*-mingw*)
  4567. # gcc leaves a trailing carriage return which upsets mingw
  4568. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4569. *)
  4570. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4571. esac
  4572. case $ac_prog in
  4573. # Accept absolute paths.
  4574. [\\/]* | ?:[\\/]*)
  4575. re_direlt='/[^/][^/]*/\.\./'
  4576. # Canonicalize the pathname of ld
  4577. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4578. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4579. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4580. done
  4581. test -z "$LD" && LD="$ac_prog"
  4582. ;;
  4583. "")
  4584. # If it fails, then pretend we aren't using GCC.
  4585. ac_prog=ld
  4586. ;;
  4587. *)
  4588. # If it is relative, then search for the first ld in PATH.
  4589. with_gnu_ld=unknown
  4590. ;;
  4591. esac
  4592. elif test "$with_gnu_ld" = yes; then
  4593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4594. $as_echo_n "checking for GNU ld... " >&6; }
  4595. else
  4596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4597. $as_echo_n "checking for non-GNU ld... " >&6; }
  4598. fi
  4599. if ${lt_cv_path_LD+:} false; then :
  4600. $as_echo_n "(cached) " >&6
  4601. else
  4602. if test -z "$LD"; then
  4603. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4604. for ac_dir in $PATH; do
  4605. IFS="$lt_save_ifs"
  4606. test -z "$ac_dir" && ac_dir=.
  4607. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4608. lt_cv_path_LD="$ac_dir/$ac_prog"
  4609. # Check to see if the program is GNU ld. I'd rather use --version,
  4610. # but apparently some variants of GNU ld only accept -v.
  4611. # Break only if it was the GNU/non-GNU ld that we prefer.
  4612. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4613. *GNU* | *'with BFD'*)
  4614. test "$with_gnu_ld" != no && break
  4615. ;;
  4616. *)
  4617. test "$with_gnu_ld" != yes && break
  4618. ;;
  4619. esac
  4620. fi
  4621. done
  4622. IFS="$lt_save_ifs"
  4623. else
  4624. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4625. fi
  4626. fi
  4627. LD="$lt_cv_path_LD"
  4628. if test -n "$LD"; then
  4629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4630. $as_echo "$LD" >&6; }
  4631. else
  4632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4633. $as_echo "no" >&6; }
  4634. fi
  4635. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4637. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4638. if ${lt_cv_prog_gnu_ld+:} false; then :
  4639. $as_echo_n "(cached) " >&6
  4640. else
  4641. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4642. case `$LD -v 2>&1 </dev/null` in
  4643. *GNU* | *'with BFD'*)
  4644. lt_cv_prog_gnu_ld=yes
  4645. ;;
  4646. *)
  4647. lt_cv_prog_gnu_ld=no
  4648. ;;
  4649. esac
  4650. fi
  4651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4652. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4653. with_gnu_ld=$lt_cv_prog_gnu_ld
  4654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4655. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4656. if ${lt_cv_path_NM+:} false; then :
  4657. $as_echo_n "(cached) " >&6
  4658. else
  4659. if test -n "$NM"; then
  4660. # Let the user override the test.
  4661. lt_cv_path_NM="$NM"
  4662. else
  4663. lt_nm_to_check="${ac_tool_prefix}nm"
  4664. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4665. lt_nm_to_check="$lt_nm_to_check nm"
  4666. fi
  4667. for lt_tmp_nm in $lt_nm_to_check; do
  4668. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4669. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4670. IFS="$lt_save_ifs"
  4671. test -z "$ac_dir" && ac_dir=.
  4672. tmp_nm="$ac_dir/$lt_tmp_nm"
  4673. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4674. # Check to see if the nm accepts a BSD-compat flag.
  4675. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4676. # nm: unknown option "B" ignored
  4677. # Tru64's nm complains that /dev/null is an invalid object file
  4678. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4679. */dev/null* | *'Invalid file or object type'*)
  4680. lt_cv_path_NM="$tmp_nm -B"
  4681. break
  4682. ;;
  4683. *)
  4684. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4685. */dev/null*)
  4686. lt_cv_path_NM="$tmp_nm -p"
  4687. break
  4688. ;;
  4689. *)
  4690. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4691. continue # so that we can try to find one that supports BSD flags
  4692. ;;
  4693. esac
  4694. ;;
  4695. esac
  4696. fi
  4697. done
  4698. IFS="$lt_save_ifs"
  4699. done
  4700. : ${lt_cv_path_NM=no}
  4701. fi
  4702. fi
  4703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4704. $as_echo "$lt_cv_path_NM" >&6; }
  4705. if test "$lt_cv_path_NM" != "no"; then
  4706. NM="$lt_cv_path_NM"
  4707. else
  4708. # Didn't find any BSD compatible name lister, look for dumpbin.
  4709. if test -n "$DUMPBIN"; then :
  4710. # Let the user override the test.
  4711. else
  4712. if test -n "$ac_tool_prefix"; then
  4713. for ac_prog in dumpbin "link -dump"
  4714. do
  4715. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4716. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4718. $as_echo_n "checking for $ac_word... " >&6; }
  4719. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4720. $as_echo_n "(cached) " >&6
  4721. else
  4722. if test -n "$DUMPBIN"; then
  4723. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4724. else
  4725. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4726. for as_dir in $PATH
  4727. do
  4728. IFS=$as_save_IFS
  4729. test -z "$as_dir" && as_dir=.
  4730. for ac_exec_ext in '' $ac_executable_extensions; do
  4731. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4732. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4733. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4734. break 2
  4735. fi
  4736. done
  4737. done
  4738. IFS=$as_save_IFS
  4739. fi
  4740. fi
  4741. DUMPBIN=$ac_cv_prog_DUMPBIN
  4742. if test -n "$DUMPBIN"; then
  4743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4744. $as_echo "$DUMPBIN" >&6; }
  4745. else
  4746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4747. $as_echo "no" >&6; }
  4748. fi
  4749. test -n "$DUMPBIN" && break
  4750. done
  4751. fi
  4752. if test -z "$DUMPBIN"; then
  4753. ac_ct_DUMPBIN=$DUMPBIN
  4754. for ac_prog in dumpbin "link -dump"
  4755. do
  4756. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4757. set dummy $ac_prog; ac_word=$2
  4758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4759. $as_echo_n "checking for $ac_word... " >&6; }
  4760. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4761. $as_echo_n "(cached) " >&6
  4762. else
  4763. if test -n "$ac_ct_DUMPBIN"; then
  4764. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4765. else
  4766. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4767. for as_dir in $PATH
  4768. do
  4769. IFS=$as_save_IFS
  4770. test -z "$as_dir" && as_dir=.
  4771. for ac_exec_ext in '' $ac_executable_extensions; do
  4772. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4773. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4774. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4775. break 2
  4776. fi
  4777. done
  4778. done
  4779. IFS=$as_save_IFS
  4780. fi
  4781. fi
  4782. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4783. if test -n "$ac_ct_DUMPBIN"; then
  4784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4785. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4786. else
  4787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4788. $as_echo "no" >&6; }
  4789. fi
  4790. test -n "$ac_ct_DUMPBIN" && break
  4791. done
  4792. if test "x$ac_ct_DUMPBIN" = x; then
  4793. DUMPBIN=":"
  4794. else
  4795. case $cross_compiling:$ac_tool_warned in
  4796. yes:)
  4797. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4798. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4799. ac_tool_warned=yes ;;
  4800. esac
  4801. DUMPBIN=$ac_ct_DUMPBIN
  4802. fi
  4803. fi
  4804. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4805. *COFF*)
  4806. DUMPBIN="$DUMPBIN -symbols"
  4807. ;;
  4808. *)
  4809. DUMPBIN=:
  4810. ;;
  4811. esac
  4812. fi
  4813. if test "$DUMPBIN" != ":"; then
  4814. NM="$DUMPBIN"
  4815. fi
  4816. fi
  4817. test -z "$NM" && NM=nm
  4818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4819. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4820. if ${lt_cv_nm_interface+:} false; then :
  4821. $as_echo_n "(cached) " >&6
  4822. else
  4823. lt_cv_nm_interface="BSD nm"
  4824. echo "int some_variable = 0;" > conftest.$ac_ext
  4825. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4826. (eval "$ac_compile" 2>conftest.err)
  4827. cat conftest.err >&5
  4828. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4829. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4830. cat conftest.err >&5
  4831. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4832. cat conftest.out >&5
  4833. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4834. lt_cv_nm_interface="MS dumpbin"
  4835. fi
  4836. rm -f conftest*
  4837. fi
  4838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4839. $as_echo "$lt_cv_nm_interface" >&6; }
  4840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4841. $as_echo_n "checking whether ln -s works... " >&6; }
  4842. LN_S=$as_ln_s
  4843. if test "$LN_S" = "ln -s"; then
  4844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4845. $as_echo "yes" >&6; }
  4846. else
  4847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4848. $as_echo "no, using $LN_S" >&6; }
  4849. fi
  4850. # find the maximum length of command line arguments
  4851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4852. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4853. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4854. $as_echo_n "(cached) " >&6
  4855. else
  4856. i=0
  4857. teststring="ABCD"
  4858. case $build_os in
  4859. msdosdjgpp*)
  4860. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4861. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4862. # during glob expansion). Even if it were fixed, the result of this
  4863. # check would be larger than it should be.
  4864. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4865. ;;
  4866. gnu*)
  4867. # Under GNU Hurd, this test is not required because there is
  4868. # no limit to the length of command line arguments.
  4869. # Libtool will interpret -1 as no limit whatsoever
  4870. lt_cv_sys_max_cmd_len=-1;
  4871. ;;
  4872. cygwin* | mingw* | cegcc*)
  4873. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4874. # about 5 minutes as the teststring grows exponentially.
  4875. # Worse, since 9x/ME are not pre-emptively multitasking,
  4876. # you end up with a "frozen" computer, even though with patience
  4877. # the test eventually succeeds (with a max line length of 256k).
  4878. # Instead, let's just punt: use the minimum linelength reported by
  4879. # all of the supported platforms: 8192 (on NT/2K/XP).
  4880. lt_cv_sys_max_cmd_len=8192;
  4881. ;;
  4882. mint*)
  4883. # On MiNT this can take a long time and run out of memory.
  4884. lt_cv_sys_max_cmd_len=8192;
  4885. ;;
  4886. amigaos*)
  4887. # On AmigaOS with pdksh, this test takes hours, literally.
  4888. # So we just punt and use a minimum line length of 8192.
  4889. lt_cv_sys_max_cmd_len=8192;
  4890. ;;
  4891. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4892. # This has been around since 386BSD, at least. Likely further.
  4893. if test -x /sbin/sysctl; then
  4894. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4895. elif test -x /usr/sbin/sysctl; then
  4896. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4897. else
  4898. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4899. fi
  4900. # And add a safety zone
  4901. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4902. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4903. ;;
  4904. interix*)
  4905. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4906. lt_cv_sys_max_cmd_len=196608
  4907. ;;
  4908. os2*)
  4909. # The test takes a long time on OS/2.
  4910. lt_cv_sys_max_cmd_len=8192
  4911. ;;
  4912. osf*)
  4913. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4914. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4915. # nice to cause kernel panics so lets avoid the loop below.
  4916. # First set a reasonable default.
  4917. lt_cv_sys_max_cmd_len=16384
  4918. #
  4919. if test -x /sbin/sysconfig; then
  4920. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4921. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4922. esac
  4923. fi
  4924. ;;
  4925. sco3.2v5*)
  4926. lt_cv_sys_max_cmd_len=102400
  4927. ;;
  4928. sysv5* | sco5v6* | sysv4.2uw2*)
  4929. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4930. if test -n "$kargmax"; then
  4931. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4932. else
  4933. lt_cv_sys_max_cmd_len=32768
  4934. fi
  4935. ;;
  4936. *)
  4937. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4938. if test -n "$lt_cv_sys_max_cmd_len"; then
  4939. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4940. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4941. else
  4942. # Make teststring a little bigger before we do anything with it.
  4943. # a 1K string should be a reasonable start.
  4944. for i in 1 2 3 4 5 6 7 8 ; do
  4945. teststring=$teststring$teststring
  4946. done
  4947. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4948. # If test is not a shell built-in, we'll probably end up computing a
  4949. # maximum length that is only half of the actual maximum length, but
  4950. # we can't tell.
  4951. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  4952. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4953. test $i != 17 # 1/2 MB should be enough
  4954. do
  4955. i=`expr $i + 1`
  4956. teststring=$teststring$teststring
  4957. done
  4958. # Only check the string length outside the loop.
  4959. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4960. teststring=
  4961. # Add a significant safety factor because C++ compilers can tack on
  4962. # massive amounts of additional arguments before passing them to the
  4963. # linker. It appears as though 1/2 is a usable value.
  4964. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4965. fi
  4966. ;;
  4967. esac
  4968. fi
  4969. if test -n $lt_cv_sys_max_cmd_len ; then
  4970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4971. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4972. else
  4973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4974. $as_echo "none" >&6; }
  4975. fi
  4976. max_cmd_len=$lt_cv_sys_max_cmd_len
  4977. : ${CP="cp -f"}
  4978. : ${MV="mv -f"}
  4979. : ${RM="rm -f"}
  4980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4981. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4982. # Try some XSI features
  4983. xsi_shell=no
  4984. ( _lt_dummy="a/b/c"
  4985. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4986. = c,a/b,b/c, \
  4987. && eval 'test $(( 1 + 1 )) -eq 2 \
  4988. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4989. && xsi_shell=yes
  4990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4991. $as_echo "$xsi_shell" >&6; }
  4992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4993. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4994. lt_shell_append=no
  4995. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4996. >/dev/null 2>&1 \
  4997. && lt_shell_append=yes
  4998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4999. $as_echo "$lt_shell_append" >&6; }
  5000. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5001. lt_unset=unset
  5002. else
  5003. lt_unset=false
  5004. fi
  5005. # test EBCDIC or ASCII
  5006. case `echo X|tr X '\101'` in
  5007. A) # ASCII based system
  5008. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5009. lt_SP2NL='tr \040 \012'
  5010. lt_NL2SP='tr \015\012 \040\040'
  5011. ;;
  5012. *) # EBCDIC based system
  5013. lt_SP2NL='tr \100 \n'
  5014. lt_NL2SP='tr \r\n \100\100'
  5015. ;;
  5016. esac
  5017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5018. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5019. if ${lt_cv_to_host_file_cmd+:} false; then :
  5020. $as_echo_n "(cached) " >&6
  5021. else
  5022. case $host in
  5023. *-*-mingw* )
  5024. case $build in
  5025. *-*-mingw* ) # actually msys
  5026. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5027. ;;
  5028. *-*-cygwin* )
  5029. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5030. ;;
  5031. * ) # otherwise, assume *nix
  5032. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5033. ;;
  5034. esac
  5035. ;;
  5036. *-*-cygwin* )
  5037. case $build in
  5038. *-*-mingw* ) # actually msys
  5039. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5040. ;;
  5041. *-*-cygwin* )
  5042. lt_cv_to_host_file_cmd=func_convert_file_noop
  5043. ;;
  5044. * ) # otherwise, assume *nix
  5045. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5046. ;;
  5047. esac
  5048. ;;
  5049. * ) # unhandled hosts (and "normal" native builds)
  5050. lt_cv_to_host_file_cmd=func_convert_file_noop
  5051. ;;
  5052. esac
  5053. fi
  5054. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5056. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5058. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5059. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5060. $as_echo_n "(cached) " >&6
  5061. else
  5062. #assume ordinary cross tools, or native build.
  5063. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5064. case $host in
  5065. *-*-mingw* )
  5066. case $build in
  5067. *-*-mingw* ) # actually msys
  5068. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5069. ;;
  5070. esac
  5071. ;;
  5072. esac
  5073. fi
  5074. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5076. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5078. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5079. if ${lt_cv_ld_reload_flag+:} false; then :
  5080. $as_echo_n "(cached) " >&6
  5081. else
  5082. lt_cv_ld_reload_flag='-r'
  5083. fi
  5084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5085. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5086. reload_flag=$lt_cv_ld_reload_flag
  5087. case $reload_flag in
  5088. "" | " "*) ;;
  5089. *) reload_flag=" $reload_flag" ;;
  5090. esac
  5091. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5092. case $host_os in
  5093. cygwin* | mingw* | pw32* | cegcc*)
  5094. if test "$GCC" != yes; then
  5095. reload_cmds=false
  5096. fi
  5097. ;;
  5098. darwin*)
  5099. if test "$GCC" = yes; then
  5100. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5101. else
  5102. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5103. fi
  5104. ;;
  5105. esac
  5106. if test -n "$ac_tool_prefix"; then
  5107. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5108. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5110. $as_echo_n "checking for $ac_word... " >&6; }
  5111. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5112. $as_echo_n "(cached) " >&6
  5113. else
  5114. if test -n "$OBJDUMP"; then
  5115. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5116. else
  5117. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5118. for as_dir in $PATH
  5119. do
  5120. IFS=$as_save_IFS
  5121. test -z "$as_dir" && as_dir=.
  5122. for ac_exec_ext in '' $ac_executable_extensions; do
  5123. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5124. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5125. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5126. break 2
  5127. fi
  5128. done
  5129. done
  5130. IFS=$as_save_IFS
  5131. fi
  5132. fi
  5133. OBJDUMP=$ac_cv_prog_OBJDUMP
  5134. if test -n "$OBJDUMP"; then
  5135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5136. $as_echo "$OBJDUMP" >&6; }
  5137. else
  5138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5139. $as_echo "no" >&6; }
  5140. fi
  5141. fi
  5142. if test -z "$ac_cv_prog_OBJDUMP"; then
  5143. ac_ct_OBJDUMP=$OBJDUMP
  5144. # Extract the first word of "objdump", so it can be a program name with args.
  5145. set dummy objdump; ac_word=$2
  5146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5147. $as_echo_n "checking for $ac_word... " >&6; }
  5148. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5149. $as_echo_n "(cached) " >&6
  5150. else
  5151. if test -n "$ac_ct_OBJDUMP"; then
  5152. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5153. else
  5154. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5155. for as_dir in $PATH
  5156. do
  5157. IFS=$as_save_IFS
  5158. test -z "$as_dir" && as_dir=.
  5159. for ac_exec_ext in '' $ac_executable_extensions; do
  5160. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5161. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5162. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5163. break 2
  5164. fi
  5165. done
  5166. done
  5167. IFS=$as_save_IFS
  5168. fi
  5169. fi
  5170. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5171. if test -n "$ac_ct_OBJDUMP"; then
  5172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5173. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5174. else
  5175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5176. $as_echo "no" >&6; }
  5177. fi
  5178. if test "x$ac_ct_OBJDUMP" = x; then
  5179. OBJDUMP="false"
  5180. else
  5181. case $cross_compiling:$ac_tool_warned in
  5182. yes:)
  5183. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5184. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5185. ac_tool_warned=yes ;;
  5186. esac
  5187. OBJDUMP=$ac_ct_OBJDUMP
  5188. fi
  5189. else
  5190. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5191. fi
  5192. test -z "$OBJDUMP" && OBJDUMP=objdump
  5193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5194. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5195. if ${lt_cv_deplibs_check_method+:} false; then :
  5196. $as_echo_n "(cached) " >&6
  5197. else
  5198. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5199. lt_cv_file_magic_test_file=
  5200. lt_cv_deplibs_check_method='unknown'
  5201. # Need to set the preceding variable on all platforms that support
  5202. # interlibrary dependencies.
  5203. # 'none' -- dependencies not supported.
  5204. # `unknown' -- same as none, but documents that we really don't know.
  5205. # 'pass_all' -- all dependencies passed with no checks.
  5206. # 'test_compile' -- check by making test program.
  5207. # 'file_magic [[regex]]' -- check by looking for files in library path
  5208. # which responds to the $file_magic_cmd with a given extended regex.
  5209. # If you have `file' or equivalent on your system and you're not sure
  5210. # whether `pass_all' will *always* work, you probably want this one.
  5211. case $host_os in
  5212. aix[4-9]*)
  5213. lt_cv_deplibs_check_method=pass_all
  5214. ;;
  5215. beos*)
  5216. lt_cv_deplibs_check_method=pass_all
  5217. ;;
  5218. bsdi[45]*)
  5219. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5220. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5221. lt_cv_file_magic_test_file=/shlib/libc.so
  5222. ;;
  5223. cygwin*)
  5224. # func_win32_libid is a shell function defined in ltmain.sh
  5225. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5226. lt_cv_file_magic_cmd='func_win32_libid'
  5227. ;;
  5228. mingw* | pw32*)
  5229. # Base MSYS/MinGW do not provide the 'file' command needed by
  5230. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5231. # unless we find 'file', for example because we are cross-compiling.
  5232. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5233. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5234. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5235. lt_cv_file_magic_cmd='func_win32_libid'
  5236. else
  5237. # Keep this pattern in sync with the one in func_win32_libid.
  5238. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5239. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5240. fi
  5241. ;;
  5242. cegcc*)
  5243. # use the weaker test based on 'objdump'. See mingw*.
  5244. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5245. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5246. ;;
  5247. darwin* | rhapsody*)
  5248. lt_cv_deplibs_check_method=pass_all
  5249. ;;
  5250. freebsd* | dragonfly*)
  5251. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5252. case $host_cpu in
  5253. i*86 )
  5254. # Not sure whether the presence of OpenBSD here was a mistake.
  5255. # Let's accept both of them until this is cleared up.
  5256. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5257. lt_cv_file_magic_cmd=/usr/bin/file
  5258. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5259. ;;
  5260. esac
  5261. else
  5262. lt_cv_deplibs_check_method=pass_all
  5263. fi
  5264. ;;
  5265. gnu*)
  5266. lt_cv_deplibs_check_method=pass_all
  5267. ;;
  5268. haiku*)
  5269. lt_cv_deplibs_check_method=pass_all
  5270. ;;
  5271. hpux10.20* | hpux11*)
  5272. lt_cv_file_magic_cmd=/usr/bin/file
  5273. case $host_cpu in
  5274. ia64*)
  5275. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5276. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5277. ;;
  5278. hppa*64*)
  5279. 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]'
  5280. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5281. ;;
  5282. *)
  5283. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5284. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5285. ;;
  5286. esac
  5287. ;;
  5288. interix[3-9]*)
  5289. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5290. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5291. ;;
  5292. irix5* | irix6* | nonstopux*)
  5293. case $LD in
  5294. *-32|*"-32 ") libmagic=32-bit;;
  5295. *-n32|*"-n32 ") libmagic=N32;;
  5296. *-64|*"-64 ") libmagic=64-bit;;
  5297. *) libmagic=never-match;;
  5298. esac
  5299. lt_cv_deplibs_check_method=pass_all
  5300. ;;
  5301. # This must be glibc/ELF.
  5302. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5303. lt_cv_deplibs_check_method=pass_all
  5304. ;;
  5305. netbsd*)
  5306. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5307. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5308. else
  5309. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5310. fi
  5311. ;;
  5312. newos6*)
  5313. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5314. lt_cv_file_magic_cmd=/usr/bin/file
  5315. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5316. ;;
  5317. *nto* | *qnx*)
  5318. lt_cv_deplibs_check_method=pass_all
  5319. ;;
  5320. openbsd*)
  5321. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5322. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5323. else
  5324. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5325. fi
  5326. ;;
  5327. osf3* | osf4* | osf5*)
  5328. lt_cv_deplibs_check_method=pass_all
  5329. ;;
  5330. rdos*)
  5331. lt_cv_deplibs_check_method=pass_all
  5332. ;;
  5333. solaris*)
  5334. lt_cv_deplibs_check_method=pass_all
  5335. ;;
  5336. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5337. lt_cv_deplibs_check_method=pass_all
  5338. ;;
  5339. sysv4 | sysv4.3*)
  5340. case $host_vendor in
  5341. motorola)
  5342. 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]'
  5343. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5344. ;;
  5345. ncr)
  5346. lt_cv_deplibs_check_method=pass_all
  5347. ;;
  5348. sequent)
  5349. lt_cv_file_magic_cmd='/bin/file'
  5350. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5351. ;;
  5352. sni)
  5353. lt_cv_file_magic_cmd='/bin/file'
  5354. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5355. lt_cv_file_magic_test_file=/lib/libc.so
  5356. ;;
  5357. siemens)
  5358. lt_cv_deplibs_check_method=pass_all
  5359. ;;
  5360. pc)
  5361. lt_cv_deplibs_check_method=pass_all
  5362. ;;
  5363. esac
  5364. ;;
  5365. tpf*)
  5366. lt_cv_deplibs_check_method=pass_all
  5367. ;;
  5368. esac
  5369. fi
  5370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5371. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5372. file_magic_glob=
  5373. want_nocaseglob=no
  5374. if test "$build" = "$host"; then
  5375. case $host_os in
  5376. mingw* | pw32*)
  5377. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5378. want_nocaseglob=yes
  5379. else
  5380. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5381. fi
  5382. ;;
  5383. esac
  5384. fi
  5385. file_magic_cmd=$lt_cv_file_magic_cmd
  5386. deplibs_check_method=$lt_cv_deplibs_check_method
  5387. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5388. if test -n "$ac_tool_prefix"; then
  5389. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5390. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5392. $as_echo_n "checking for $ac_word... " >&6; }
  5393. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5394. $as_echo_n "(cached) " >&6
  5395. else
  5396. if test -n "$DLLTOOL"; then
  5397. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5398. else
  5399. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5400. for as_dir in $PATH
  5401. do
  5402. IFS=$as_save_IFS
  5403. test -z "$as_dir" && as_dir=.
  5404. for ac_exec_ext in '' $ac_executable_extensions; do
  5405. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5406. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5407. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5408. break 2
  5409. fi
  5410. done
  5411. done
  5412. IFS=$as_save_IFS
  5413. fi
  5414. fi
  5415. DLLTOOL=$ac_cv_prog_DLLTOOL
  5416. if test -n "$DLLTOOL"; then
  5417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5418. $as_echo "$DLLTOOL" >&6; }
  5419. else
  5420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5421. $as_echo "no" >&6; }
  5422. fi
  5423. fi
  5424. if test -z "$ac_cv_prog_DLLTOOL"; then
  5425. ac_ct_DLLTOOL=$DLLTOOL
  5426. # Extract the first word of "dlltool", so it can be a program name with args.
  5427. set dummy dlltool; ac_word=$2
  5428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5429. $as_echo_n "checking for $ac_word... " >&6; }
  5430. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5431. $as_echo_n "(cached) " >&6
  5432. else
  5433. if test -n "$ac_ct_DLLTOOL"; then
  5434. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5435. else
  5436. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5437. for as_dir in $PATH
  5438. do
  5439. IFS=$as_save_IFS
  5440. test -z "$as_dir" && as_dir=.
  5441. for ac_exec_ext in '' $ac_executable_extensions; do
  5442. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5443. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5444. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5445. break 2
  5446. fi
  5447. done
  5448. done
  5449. IFS=$as_save_IFS
  5450. fi
  5451. fi
  5452. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5453. if test -n "$ac_ct_DLLTOOL"; then
  5454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5455. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5456. else
  5457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5458. $as_echo "no" >&6; }
  5459. fi
  5460. if test "x$ac_ct_DLLTOOL" = x; then
  5461. DLLTOOL="false"
  5462. else
  5463. case $cross_compiling:$ac_tool_warned in
  5464. yes:)
  5465. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5466. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5467. ac_tool_warned=yes ;;
  5468. esac
  5469. DLLTOOL=$ac_ct_DLLTOOL
  5470. fi
  5471. else
  5472. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5473. fi
  5474. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5476. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5477. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5478. $as_echo_n "(cached) " >&6
  5479. else
  5480. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5481. case $host_os in
  5482. cygwin* | mingw* | pw32* | cegcc*)
  5483. # two different shell functions defined in ltmain.sh
  5484. # decide which to use based on capabilities of $DLLTOOL
  5485. case `$DLLTOOL --help 2>&1` in
  5486. *--identify-strict*)
  5487. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5488. ;;
  5489. *)
  5490. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5491. ;;
  5492. esac
  5493. ;;
  5494. *)
  5495. # fallback: assume linklib IS sharedlib
  5496. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  5497. ;;
  5498. esac
  5499. fi
  5500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5501. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5502. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5503. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5504. if test -n "$ac_tool_prefix"; then
  5505. for ac_prog in ar
  5506. do
  5507. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5508. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5510. $as_echo_n "checking for $ac_word... " >&6; }
  5511. if ${ac_cv_prog_AR+:} false; then :
  5512. $as_echo_n "(cached) " >&6
  5513. else
  5514. if test -n "$AR"; then
  5515. ac_cv_prog_AR="$AR" # Let the user override the test.
  5516. else
  5517. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5518. for as_dir in $PATH
  5519. do
  5520. IFS=$as_save_IFS
  5521. test -z "$as_dir" && as_dir=.
  5522. for ac_exec_ext in '' $ac_executable_extensions; do
  5523. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5524. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5525. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5526. break 2
  5527. fi
  5528. done
  5529. done
  5530. IFS=$as_save_IFS
  5531. fi
  5532. fi
  5533. AR=$ac_cv_prog_AR
  5534. if test -n "$AR"; then
  5535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5536. $as_echo "$AR" >&6; }
  5537. else
  5538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5539. $as_echo "no" >&6; }
  5540. fi
  5541. test -n "$AR" && break
  5542. done
  5543. fi
  5544. if test -z "$AR"; then
  5545. ac_ct_AR=$AR
  5546. for ac_prog in ar
  5547. do
  5548. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5549. set dummy $ac_prog; ac_word=$2
  5550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5551. $as_echo_n "checking for $ac_word... " >&6; }
  5552. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5553. $as_echo_n "(cached) " >&6
  5554. else
  5555. if test -n "$ac_ct_AR"; then
  5556. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5557. else
  5558. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5559. for as_dir in $PATH
  5560. do
  5561. IFS=$as_save_IFS
  5562. test -z "$as_dir" && as_dir=.
  5563. for ac_exec_ext in '' $ac_executable_extensions; do
  5564. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5565. ac_cv_prog_ac_ct_AR="$ac_prog"
  5566. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5567. break 2
  5568. fi
  5569. done
  5570. done
  5571. IFS=$as_save_IFS
  5572. fi
  5573. fi
  5574. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5575. if test -n "$ac_ct_AR"; then
  5576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5577. $as_echo "$ac_ct_AR" >&6; }
  5578. else
  5579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5580. $as_echo "no" >&6; }
  5581. fi
  5582. test -n "$ac_ct_AR" && break
  5583. done
  5584. if test "x$ac_ct_AR" = x; then
  5585. AR="false"
  5586. else
  5587. case $cross_compiling:$ac_tool_warned in
  5588. yes:)
  5589. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5590. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5591. ac_tool_warned=yes ;;
  5592. esac
  5593. AR=$ac_ct_AR
  5594. fi
  5595. fi
  5596. : ${AR=ar}
  5597. : ${AR_FLAGS=cru}
  5598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5599. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5600. if ${lt_cv_ar_at_file+:} false; then :
  5601. $as_echo_n "(cached) " >&6
  5602. else
  5603. lt_cv_ar_at_file=no
  5604. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5605. /* end confdefs.h. */
  5606. int
  5607. main ()
  5608. {
  5609. ;
  5610. return 0;
  5611. }
  5612. _ACEOF
  5613. if ac_fn_c_try_compile "$LINENO"; then :
  5614. echo conftest.$ac_objext > conftest.lst
  5615. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5616. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5617. (eval $lt_ar_try) 2>&5
  5618. ac_status=$?
  5619. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5620. test $ac_status = 0; }
  5621. if test "$ac_status" -eq 0; then
  5622. # Ensure the archiver fails upon bogus file names.
  5623. rm -f conftest.$ac_objext libconftest.a
  5624. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5625. (eval $lt_ar_try) 2>&5
  5626. ac_status=$?
  5627. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5628. test $ac_status = 0; }
  5629. if test "$ac_status" -ne 0; then
  5630. lt_cv_ar_at_file=@
  5631. fi
  5632. fi
  5633. rm -f conftest.* libconftest.a
  5634. fi
  5635. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5636. fi
  5637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5638. $as_echo "$lt_cv_ar_at_file" >&6; }
  5639. if test "x$lt_cv_ar_at_file" = xno; then
  5640. archiver_list_spec=
  5641. else
  5642. archiver_list_spec=$lt_cv_ar_at_file
  5643. fi
  5644. if test -n "$ac_tool_prefix"; then
  5645. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5646. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5648. $as_echo_n "checking for $ac_word... " >&6; }
  5649. if ${ac_cv_prog_STRIP+:} false; then :
  5650. $as_echo_n "(cached) " >&6
  5651. else
  5652. if test -n "$STRIP"; then
  5653. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5654. else
  5655. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5656. for as_dir in $PATH
  5657. do
  5658. IFS=$as_save_IFS
  5659. test -z "$as_dir" && as_dir=.
  5660. for ac_exec_ext in '' $ac_executable_extensions; do
  5661. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5662. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5663. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5664. break 2
  5665. fi
  5666. done
  5667. done
  5668. IFS=$as_save_IFS
  5669. fi
  5670. fi
  5671. STRIP=$ac_cv_prog_STRIP
  5672. if test -n "$STRIP"; then
  5673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5674. $as_echo "$STRIP" >&6; }
  5675. else
  5676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5677. $as_echo "no" >&6; }
  5678. fi
  5679. fi
  5680. if test -z "$ac_cv_prog_STRIP"; then
  5681. ac_ct_STRIP=$STRIP
  5682. # Extract the first word of "strip", so it can be a program name with args.
  5683. set dummy strip; ac_word=$2
  5684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5685. $as_echo_n "checking for $ac_word... " >&6; }
  5686. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5687. $as_echo_n "(cached) " >&6
  5688. else
  5689. if test -n "$ac_ct_STRIP"; then
  5690. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5691. else
  5692. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5693. for as_dir in $PATH
  5694. do
  5695. IFS=$as_save_IFS
  5696. test -z "$as_dir" && as_dir=.
  5697. for ac_exec_ext in '' $ac_executable_extensions; do
  5698. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5699. ac_cv_prog_ac_ct_STRIP="strip"
  5700. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5701. break 2
  5702. fi
  5703. done
  5704. done
  5705. IFS=$as_save_IFS
  5706. fi
  5707. fi
  5708. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5709. if test -n "$ac_ct_STRIP"; then
  5710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5711. $as_echo "$ac_ct_STRIP" >&6; }
  5712. else
  5713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5714. $as_echo "no" >&6; }
  5715. fi
  5716. if test "x$ac_ct_STRIP" = x; then
  5717. STRIP=":"
  5718. else
  5719. case $cross_compiling:$ac_tool_warned in
  5720. yes:)
  5721. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5722. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5723. ac_tool_warned=yes ;;
  5724. esac
  5725. STRIP=$ac_ct_STRIP
  5726. fi
  5727. else
  5728. STRIP="$ac_cv_prog_STRIP"
  5729. fi
  5730. test -z "$STRIP" && STRIP=:
  5731. if test -n "$ac_tool_prefix"; then
  5732. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5733. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5735. $as_echo_n "checking for $ac_word... " >&6; }
  5736. if ${ac_cv_prog_RANLIB+:} false; then :
  5737. $as_echo_n "(cached) " >&6
  5738. else
  5739. if test -n "$RANLIB"; then
  5740. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5741. else
  5742. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5743. for as_dir in $PATH
  5744. do
  5745. IFS=$as_save_IFS
  5746. test -z "$as_dir" && as_dir=.
  5747. for ac_exec_ext in '' $ac_executable_extensions; do
  5748. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5749. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5750. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5751. break 2
  5752. fi
  5753. done
  5754. done
  5755. IFS=$as_save_IFS
  5756. fi
  5757. fi
  5758. RANLIB=$ac_cv_prog_RANLIB
  5759. if test -n "$RANLIB"; then
  5760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5761. $as_echo "$RANLIB" >&6; }
  5762. else
  5763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5764. $as_echo "no" >&6; }
  5765. fi
  5766. fi
  5767. if test -z "$ac_cv_prog_RANLIB"; then
  5768. ac_ct_RANLIB=$RANLIB
  5769. # Extract the first word of "ranlib", so it can be a program name with args.
  5770. set dummy ranlib; ac_word=$2
  5771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5772. $as_echo_n "checking for $ac_word... " >&6; }
  5773. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5774. $as_echo_n "(cached) " >&6
  5775. else
  5776. if test -n "$ac_ct_RANLIB"; then
  5777. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5778. else
  5779. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5780. for as_dir in $PATH
  5781. do
  5782. IFS=$as_save_IFS
  5783. test -z "$as_dir" && as_dir=.
  5784. for ac_exec_ext in '' $ac_executable_extensions; do
  5785. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5786. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5787. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5788. break 2
  5789. fi
  5790. done
  5791. done
  5792. IFS=$as_save_IFS
  5793. fi
  5794. fi
  5795. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5796. if test -n "$ac_ct_RANLIB"; then
  5797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5798. $as_echo "$ac_ct_RANLIB" >&6; }
  5799. else
  5800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5801. $as_echo "no" >&6; }
  5802. fi
  5803. if test "x$ac_ct_RANLIB" = x; then
  5804. RANLIB=":"
  5805. else
  5806. case $cross_compiling:$ac_tool_warned in
  5807. yes:)
  5808. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5809. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5810. ac_tool_warned=yes ;;
  5811. esac
  5812. RANLIB=$ac_ct_RANLIB
  5813. fi
  5814. else
  5815. RANLIB="$ac_cv_prog_RANLIB"
  5816. fi
  5817. test -z "$RANLIB" && RANLIB=:
  5818. # Determine commands to create old-style static archives.
  5819. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5820. old_postinstall_cmds='chmod 644 $oldlib'
  5821. old_postuninstall_cmds=
  5822. if test -n "$RANLIB"; then
  5823. case $host_os in
  5824. openbsd*)
  5825. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5826. ;;
  5827. *)
  5828. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5829. ;;
  5830. esac
  5831. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5832. fi
  5833. case $host_os in
  5834. darwin*)
  5835. lock_old_archive_extraction=yes ;;
  5836. *)
  5837. lock_old_archive_extraction=no ;;
  5838. esac
  5839. # If no C compiler was specified, use CC.
  5840. LTCC=${LTCC-"$CC"}
  5841. # If no C compiler flags were specified, use CFLAGS.
  5842. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5843. # Allow CC to be a program name with arguments.
  5844. compiler=$CC
  5845. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5847. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5848. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5849. $as_echo_n "(cached) " >&6
  5850. else
  5851. # These are sane defaults that work on at least a few old systems.
  5852. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5853. # Character class describing NM global symbol codes.
  5854. symcode='[BCDEGRST]'
  5855. # Regexp to match symbols that can be accessed directly from C.
  5856. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5857. # Define system-specific variables.
  5858. case $host_os in
  5859. aix*)
  5860. symcode='[BCDT]'
  5861. ;;
  5862. cygwin* | mingw* | pw32* | cegcc*)
  5863. symcode='[ABCDGISTW]'
  5864. ;;
  5865. hpux*)
  5866. if test "$host_cpu" = ia64; then
  5867. symcode='[ABCDEGRST]'
  5868. fi
  5869. ;;
  5870. irix* | nonstopux*)
  5871. symcode='[BCDEGRST]'
  5872. ;;
  5873. osf*)
  5874. symcode='[BCDEGQRST]'
  5875. ;;
  5876. solaris*)
  5877. symcode='[BDRT]'
  5878. ;;
  5879. sco3.2v5*)
  5880. symcode='[DT]'
  5881. ;;
  5882. sysv4.2uw2*)
  5883. symcode='[DT]'
  5884. ;;
  5885. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5886. symcode='[ABDT]'
  5887. ;;
  5888. sysv4)
  5889. symcode='[DFNSTU]'
  5890. ;;
  5891. esac
  5892. # If we're using GNU nm, then use its standard symbol codes.
  5893. case `$NM -V 2>&1` in
  5894. *GNU* | *'with BFD'*)
  5895. symcode='[ABCDGIRSTW]' ;;
  5896. esac
  5897. # Transform an extracted symbol line into a proper C declaration.
  5898. # Some systems (esp. on ia64) link data and code symbols differently,
  5899. # so use this general approach.
  5900. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5901. # Transform an extracted symbol line into symbol name and symbol address
  5902. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5903. 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'"
  5904. # Handle CRLF in mingw tool chain
  5905. opt_cr=
  5906. case $build_os in
  5907. mingw*)
  5908. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5909. ;;
  5910. esac
  5911. # Try without a prefix underscore, then with it.
  5912. for ac_symprfx in "" "_"; do
  5913. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5914. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5915. # Write the raw and C identifiers.
  5916. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5917. # Fake it for dumpbin and say T for any non-static function
  5918. # and D for any global variable.
  5919. # Also find C++ and __fastcall symbols from MSVC++,
  5920. # which start with @ or ?.
  5921. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5922. " {last_section=section; section=\$ 3};"\
  5923. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5924. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5925. " \$ 0!~/External *\|/{next};"\
  5926. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5927. " {if(hide[section]) next};"\
  5928. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5929. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5930. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5931. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5932. " ' prfx=^$ac_symprfx"
  5933. else
  5934. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5935. fi
  5936. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5937. # Check to see that the pipe works correctly.
  5938. pipe_works=no
  5939. rm -f conftest*
  5940. cat > conftest.$ac_ext <<_LT_EOF
  5941. #ifdef __cplusplus
  5942. extern "C" {
  5943. #endif
  5944. char nm_test_var;
  5945. void nm_test_func(void);
  5946. void nm_test_func(void){}
  5947. #ifdef __cplusplus
  5948. }
  5949. #endif
  5950. int main(){nm_test_var='a';nm_test_func();return(0);}
  5951. _LT_EOF
  5952. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5953. (eval $ac_compile) 2>&5
  5954. ac_status=$?
  5955. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5956. test $ac_status = 0; }; then
  5957. # Now try to grab the symbols.
  5958. nlist=conftest.nm
  5959. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5960. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5961. ac_status=$?
  5962. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5963. test $ac_status = 0; } && test -s "$nlist"; then
  5964. # Try sorting and uniquifying the output.
  5965. if sort "$nlist" | uniq > "$nlist"T; then
  5966. mv -f "$nlist"T "$nlist"
  5967. else
  5968. rm -f "$nlist"T
  5969. fi
  5970. # Make sure that we snagged all the symbols we need.
  5971. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5972. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5973. cat <<_LT_EOF > conftest.$ac_ext
  5974. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5975. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5976. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5977. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5978. # define LT_DLSYM_CONST
  5979. #elif defined(__osf__)
  5980. /* This system does not cope well with relocations in const data. */
  5981. # define LT_DLSYM_CONST
  5982. #else
  5983. # define LT_DLSYM_CONST const
  5984. #endif
  5985. #ifdef __cplusplus
  5986. extern "C" {
  5987. #endif
  5988. _LT_EOF
  5989. # Now generate the symbol file.
  5990. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5991. cat <<_LT_EOF >> conftest.$ac_ext
  5992. /* The mapping between symbol names and symbols. */
  5993. LT_DLSYM_CONST struct {
  5994. const char *name;
  5995. void *address;
  5996. }
  5997. lt__PROGRAM__LTX_preloaded_symbols[] =
  5998. {
  5999. { "@PROGRAM@", (void *) 0 },
  6000. _LT_EOF
  6001. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6002. cat <<\_LT_EOF >> conftest.$ac_ext
  6003. {0, (void *) 0}
  6004. };
  6005. /* This works around a problem in FreeBSD linker */
  6006. #ifdef FREEBSD_WORKAROUND
  6007. static const void *lt_preloaded_setup() {
  6008. return lt__PROGRAM__LTX_preloaded_symbols;
  6009. }
  6010. #endif
  6011. #ifdef __cplusplus
  6012. }
  6013. #endif
  6014. _LT_EOF
  6015. # Now try linking the two files.
  6016. mv conftest.$ac_objext conftstm.$ac_objext
  6017. lt_globsym_save_LIBS=$LIBS
  6018. lt_globsym_save_CFLAGS=$CFLAGS
  6019. LIBS="conftstm.$ac_objext"
  6020. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6021. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6022. (eval $ac_link) 2>&5
  6023. ac_status=$?
  6024. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6025. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6026. pipe_works=yes
  6027. fi
  6028. LIBS=$lt_globsym_save_LIBS
  6029. CFLAGS=$lt_globsym_save_CFLAGS
  6030. else
  6031. echo "cannot find nm_test_func in $nlist" >&5
  6032. fi
  6033. else
  6034. echo "cannot find nm_test_var in $nlist" >&5
  6035. fi
  6036. else
  6037. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6038. fi
  6039. else
  6040. echo "$progname: failed program was:" >&5
  6041. cat conftest.$ac_ext >&5
  6042. fi
  6043. rm -rf conftest* conftst*
  6044. # Do not use the global_symbol_pipe unless it works.
  6045. if test "$pipe_works" = yes; then
  6046. break
  6047. else
  6048. lt_cv_sys_global_symbol_pipe=
  6049. fi
  6050. done
  6051. fi
  6052. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6053. lt_cv_sys_global_symbol_to_cdecl=
  6054. fi
  6055. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6057. $as_echo "failed" >&6; }
  6058. else
  6059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6060. $as_echo "ok" >&6; }
  6061. fi
  6062. # Response file support.
  6063. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6064. nm_file_list_spec='@'
  6065. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6066. nm_file_list_spec='@'
  6067. fi
  6068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6069. $as_echo_n "checking for sysroot... " >&6; }
  6070. # Check whether --with-sysroot was given.
  6071. if test "${with_sysroot+set}" = set; then :
  6072. withval=$with_sysroot;
  6073. else
  6074. with_sysroot=no
  6075. fi
  6076. lt_sysroot=
  6077. case ${with_sysroot} in #(
  6078. yes)
  6079. if test "$GCC" = yes; then
  6080. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6081. fi
  6082. ;; #(
  6083. /*)
  6084. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6085. ;; #(
  6086. no|'')
  6087. ;; #(
  6088. *)
  6089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  6090. $as_echo "${with_sysroot}" >&6; }
  6091. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6092. ;;
  6093. esac
  6094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6095. $as_echo "${lt_sysroot:-no}" >&6; }
  6096. # Check whether --enable-libtool-lock was given.
  6097. if test "${enable_libtool_lock+set}" = set; then :
  6098. enableval=$enable_libtool_lock;
  6099. fi
  6100. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6101. # Some flags need to be propagated to the compiler or linker for good
  6102. # libtool support.
  6103. case $host in
  6104. ia64-*-hpux*)
  6105. # Find out which ABI we are using.
  6106. echo 'int i;' > conftest.$ac_ext
  6107. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6108. (eval $ac_compile) 2>&5
  6109. ac_status=$?
  6110. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6111. test $ac_status = 0; }; then
  6112. case `/usr/bin/file conftest.$ac_objext` in
  6113. *ELF-32*)
  6114. HPUX_IA64_MODE="32"
  6115. ;;
  6116. *ELF-64*)
  6117. HPUX_IA64_MODE="64"
  6118. ;;
  6119. esac
  6120. fi
  6121. rm -rf conftest*
  6122. ;;
  6123. *-*-irix6*)
  6124. # Find out which ABI we are using.
  6125. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6126. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6127. (eval $ac_compile) 2>&5
  6128. ac_status=$?
  6129. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6130. test $ac_status = 0; }; then
  6131. if test "$lt_cv_prog_gnu_ld" = yes; then
  6132. case `/usr/bin/file conftest.$ac_objext` in
  6133. *32-bit*)
  6134. LD="${LD-ld} -melf32bsmip"
  6135. ;;
  6136. *N32*)
  6137. LD="${LD-ld} -melf32bmipn32"
  6138. ;;
  6139. *64-bit*)
  6140. LD="${LD-ld} -melf64bmip"
  6141. ;;
  6142. esac
  6143. else
  6144. case `/usr/bin/file conftest.$ac_objext` in
  6145. *32-bit*)
  6146. LD="${LD-ld} -32"
  6147. ;;
  6148. *N32*)
  6149. LD="${LD-ld} -n32"
  6150. ;;
  6151. *64-bit*)
  6152. LD="${LD-ld} -64"
  6153. ;;
  6154. esac
  6155. fi
  6156. fi
  6157. rm -rf conftest*
  6158. ;;
  6159. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  6160. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6161. # Find out which ABI we are using.
  6162. echo 'int i;' > conftest.$ac_ext
  6163. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6164. (eval $ac_compile) 2>&5
  6165. ac_status=$?
  6166. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6167. test $ac_status = 0; }; then
  6168. case `/usr/bin/file conftest.o` in
  6169. *32-bit*)
  6170. case $host in
  6171. x86_64-*kfreebsd*-gnu)
  6172. LD="${LD-ld} -m elf_i386_fbsd"
  6173. ;;
  6174. x86_64-*linux*)
  6175. LD="${LD-ld} -m elf_i386"
  6176. ;;
  6177. ppc64-*linux*|powerpc64-*linux*)
  6178. LD="${LD-ld} -m elf32ppclinux"
  6179. ;;
  6180. s390x-*linux*)
  6181. LD="${LD-ld} -m elf_s390"
  6182. ;;
  6183. sparc64-*linux*)
  6184. LD="${LD-ld} -m elf32_sparc"
  6185. ;;
  6186. esac
  6187. ;;
  6188. *64-bit*)
  6189. case $host in
  6190. x86_64-*kfreebsd*-gnu)
  6191. LD="${LD-ld} -m elf_x86_64_fbsd"
  6192. ;;
  6193. x86_64-*linux*)
  6194. LD="${LD-ld} -m elf_x86_64"
  6195. ;;
  6196. ppc*-*linux*|powerpc*-*linux*)
  6197. LD="${LD-ld} -m elf64ppc"
  6198. ;;
  6199. s390*-*linux*|s390*-*tpf*)
  6200. LD="${LD-ld} -m elf64_s390"
  6201. ;;
  6202. sparc*-*linux*)
  6203. LD="${LD-ld} -m elf64_sparc"
  6204. ;;
  6205. esac
  6206. ;;
  6207. esac
  6208. fi
  6209. rm -rf conftest*
  6210. ;;
  6211. *-*-sco3.2v5*)
  6212. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6213. SAVE_CFLAGS="$CFLAGS"
  6214. CFLAGS="$CFLAGS -belf"
  6215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6216. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6217. if ${lt_cv_cc_needs_belf+:} false; then :
  6218. $as_echo_n "(cached) " >&6
  6219. else
  6220. ac_ext=c
  6221. ac_cpp='$CPP $CPPFLAGS'
  6222. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6223. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6224. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6225. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6226. /* end confdefs.h. */
  6227. int
  6228. main ()
  6229. {
  6230. ;
  6231. return 0;
  6232. }
  6233. _ACEOF
  6234. if ac_fn_c_try_link "$LINENO"; then :
  6235. lt_cv_cc_needs_belf=yes
  6236. else
  6237. lt_cv_cc_needs_belf=no
  6238. fi
  6239. rm -f core conftest.err conftest.$ac_objext \
  6240. conftest$ac_exeext conftest.$ac_ext
  6241. ac_ext=c
  6242. ac_cpp='$CPP $CPPFLAGS'
  6243. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6244. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6245. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6246. fi
  6247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6248. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6249. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6250. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6251. CFLAGS="$SAVE_CFLAGS"
  6252. fi
  6253. ;;
  6254. *-*solaris*)
  6255. # Find out which ABI we are using.
  6256. echo 'int i;' > conftest.$ac_ext
  6257. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6258. (eval $ac_compile) 2>&5
  6259. ac_status=$?
  6260. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6261. test $ac_status = 0; }; then
  6262. case `/usr/bin/file conftest.o` in
  6263. *64-bit*)
  6264. case $lt_cv_prog_gnu_ld in
  6265. yes*)
  6266. case $host in
  6267. i?86-*-solaris*)
  6268. LD="${LD-ld} -m elf_x86_64"
  6269. ;;
  6270. sparc*-*-solaris*)
  6271. LD="${LD-ld} -m elf64_sparc"
  6272. ;;
  6273. esac
  6274. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6275. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6276. LD="${LD-ld}_sol2"
  6277. fi
  6278. ;;
  6279. *)
  6280. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6281. LD="${LD-ld} -64"
  6282. fi
  6283. ;;
  6284. esac
  6285. ;;
  6286. esac
  6287. fi
  6288. rm -rf conftest*
  6289. ;;
  6290. esac
  6291. need_locks="$enable_libtool_lock"
  6292. if test -n "$ac_tool_prefix"; then
  6293. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6294. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6296. $as_echo_n "checking for $ac_word... " >&6; }
  6297. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6298. $as_echo_n "(cached) " >&6
  6299. else
  6300. if test -n "$MANIFEST_TOOL"; then
  6301. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6302. else
  6303. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6304. for as_dir in $PATH
  6305. do
  6306. IFS=$as_save_IFS
  6307. test -z "$as_dir" && as_dir=.
  6308. for ac_exec_ext in '' $ac_executable_extensions; do
  6309. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6310. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6311. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6312. break 2
  6313. fi
  6314. done
  6315. done
  6316. IFS=$as_save_IFS
  6317. fi
  6318. fi
  6319. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6320. if test -n "$MANIFEST_TOOL"; then
  6321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6322. $as_echo "$MANIFEST_TOOL" >&6; }
  6323. else
  6324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6325. $as_echo "no" >&6; }
  6326. fi
  6327. fi
  6328. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6329. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6330. # Extract the first word of "mt", so it can be a program name with args.
  6331. set dummy mt; ac_word=$2
  6332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6333. $as_echo_n "checking for $ac_word... " >&6; }
  6334. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6335. $as_echo_n "(cached) " >&6
  6336. else
  6337. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6338. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6339. else
  6340. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6341. for as_dir in $PATH
  6342. do
  6343. IFS=$as_save_IFS
  6344. test -z "$as_dir" && as_dir=.
  6345. for ac_exec_ext in '' $ac_executable_extensions; do
  6346. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6347. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6348. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6349. break 2
  6350. fi
  6351. done
  6352. done
  6353. IFS=$as_save_IFS
  6354. fi
  6355. fi
  6356. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6357. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6359. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6360. else
  6361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6362. $as_echo "no" >&6; }
  6363. fi
  6364. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6365. MANIFEST_TOOL=":"
  6366. else
  6367. case $cross_compiling:$ac_tool_warned in
  6368. yes:)
  6369. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6370. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6371. ac_tool_warned=yes ;;
  6372. esac
  6373. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6374. fi
  6375. else
  6376. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6377. fi
  6378. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6380. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6381. if ${lt_cv_path_mainfest_tool+:} false; then :
  6382. $as_echo_n "(cached) " >&6
  6383. else
  6384. lt_cv_path_mainfest_tool=no
  6385. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6386. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6387. cat conftest.err >&5
  6388. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6389. lt_cv_path_mainfest_tool=yes
  6390. fi
  6391. rm -f conftest*
  6392. fi
  6393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6394. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6395. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  6396. MANIFEST_TOOL=:
  6397. fi
  6398. case $host_os in
  6399. rhapsody* | darwin*)
  6400. if test -n "$ac_tool_prefix"; then
  6401. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6402. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6404. $as_echo_n "checking for $ac_word... " >&6; }
  6405. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6406. $as_echo_n "(cached) " >&6
  6407. else
  6408. if test -n "$DSYMUTIL"; then
  6409. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6410. else
  6411. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6412. for as_dir in $PATH
  6413. do
  6414. IFS=$as_save_IFS
  6415. test -z "$as_dir" && as_dir=.
  6416. for ac_exec_ext in '' $ac_executable_extensions; do
  6417. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6418. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6419. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6420. break 2
  6421. fi
  6422. done
  6423. done
  6424. IFS=$as_save_IFS
  6425. fi
  6426. fi
  6427. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6428. if test -n "$DSYMUTIL"; then
  6429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6430. $as_echo "$DSYMUTIL" >&6; }
  6431. else
  6432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6433. $as_echo "no" >&6; }
  6434. fi
  6435. fi
  6436. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6437. ac_ct_DSYMUTIL=$DSYMUTIL
  6438. # Extract the first word of "dsymutil", so it can be a program name with args.
  6439. set dummy dsymutil; ac_word=$2
  6440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6441. $as_echo_n "checking for $ac_word... " >&6; }
  6442. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6443. $as_echo_n "(cached) " >&6
  6444. else
  6445. if test -n "$ac_ct_DSYMUTIL"; then
  6446. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6447. else
  6448. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6449. for as_dir in $PATH
  6450. do
  6451. IFS=$as_save_IFS
  6452. test -z "$as_dir" && as_dir=.
  6453. for ac_exec_ext in '' $ac_executable_extensions; do
  6454. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6455. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6456. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6457. break 2
  6458. fi
  6459. done
  6460. done
  6461. IFS=$as_save_IFS
  6462. fi
  6463. fi
  6464. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6465. if test -n "$ac_ct_DSYMUTIL"; then
  6466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6467. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6468. else
  6469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6470. $as_echo "no" >&6; }
  6471. fi
  6472. if test "x$ac_ct_DSYMUTIL" = x; then
  6473. DSYMUTIL=":"
  6474. else
  6475. case $cross_compiling:$ac_tool_warned in
  6476. yes:)
  6477. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6478. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6479. ac_tool_warned=yes ;;
  6480. esac
  6481. DSYMUTIL=$ac_ct_DSYMUTIL
  6482. fi
  6483. else
  6484. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6485. fi
  6486. if test -n "$ac_tool_prefix"; then
  6487. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6488. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6490. $as_echo_n "checking for $ac_word... " >&6; }
  6491. if ${ac_cv_prog_NMEDIT+:} false; then :
  6492. $as_echo_n "(cached) " >&6
  6493. else
  6494. if test -n "$NMEDIT"; then
  6495. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6496. else
  6497. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6498. for as_dir in $PATH
  6499. do
  6500. IFS=$as_save_IFS
  6501. test -z "$as_dir" && as_dir=.
  6502. for ac_exec_ext in '' $ac_executable_extensions; do
  6503. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6504. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6505. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6506. break 2
  6507. fi
  6508. done
  6509. done
  6510. IFS=$as_save_IFS
  6511. fi
  6512. fi
  6513. NMEDIT=$ac_cv_prog_NMEDIT
  6514. if test -n "$NMEDIT"; then
  6515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6516. $as_echo "$NMEDIT" >&6; }
  6517. else
  6518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6519. $as_echo "no" >&6; }
  6520. fi
  6521. fi
  6522. if test -z "$ac_cv_prog_NMEDIT"; then
  6523. ac_ct_NMEDIT=$NMEDIT
  6524. # Extract the first word of "nmedit", so it can be a program name with args.
  6525. set dummy nmedit; ac_word=$2
  6526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6527. $as_echo_n "checking for $ac_word... " >&6; }
  6528. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6529. $as_echo_n "(cached) " >&6
  6530. else
  6531. if test -n "$ac_ct_NMEDIT"; then
  6532. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6533. else
  6534. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6535. for as_dir in $PATH
  6536. do
  6537. IFS=$as_save_IFS
  6538. test -z "$as_dir" && as_dir=.
  6539. for ac_exec_ext in '' $ac_executable_extensions; do
  6540. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6541. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6542. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6543. break 2
  6544. fi
  6545. done
  6546. done
  6547. IFS=$as_save_IFS
  6548. fi
  6549. fi
  6550. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6551. if test -n "$ac_ct_NMEDIT"; then
  6552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6553. $as_echo "$ac_ct_NMEDIT" >&6; }
  6554. else
  6555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6556. $as_echo "no" >&6; }
  6557. fi
  6558. if test "x$ac_ct_NMEDIT" = x; then
  6559. NMEDIT=":"
  6560. else
  6561. case $cross_compiling:$ac_tool_warned in
  6562. yes:)
  6563. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6564. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6565. ac_tool_warned=yes ;;
  6566. esac
  6567. NMEDIT=$ac_ct_NMEDIT
  6568. fi
  6569. else
  6570. NMEDIT="$ac_cv_prog_NMEDIT"
  6571. fi
  6572. if test -n "$ac_tool_prefix"; then
  6573. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6574. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6576. $as_echo_n "checking for $ac_word... " >&6; }
  6577. if ${ac_cv_prog_LIPO+:} false; then :
  6578. $as_echo_n "(cached) " >&6
  6579. else
  6580. if test -n "$LIPO"; then
  6581. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6582. else
  6583. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6584. for as_dir in $PATH
  6585. do
  6586. IFS=$as_save_IFS
  6587. test -z "$as_dir" && as_dir=.
  6588. for ac_exec_ext in '' $ac_executable_extensions; do
  6589. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6590. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6591. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6592. break 2
  6593. fi
  6594. done
  6595. done
  6596. IFS=$as_save_IFS
  6597. fi
  6598. fi
  6599. LIPO=$ac_cv_prog_LIPO
  6600. if test -n "$LIPO"; then
  6601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6602. $as_echo "$LIPO" >&6; }
  6603. else
  6604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6605. $as_echo "no" >&6; }
  6606. fi
  6607. fi
  6608. if test -z "$ac_cv_prog_LIPO"; then
  6609. ac_ct_LIPO=$LIPO
  6610. # Extract the first word of "lipo", so it can be a program name with args.
  6611. set dummy lipo; ac_word=$2
  6612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6613. $as_echo_n "checking for $ac_word... " >&6; }
  6614. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6615. $as_echo_n "(cached) " >&6
  6616. else
  6617. if test -n "$ac_ct_LIPO"; then
  6618. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6619. else
  6620. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6621. for as_dir in $PATH
  6622. do
  6623. IFS=$as_save_IFS
  6624. test -z "$as_dir" && as_dir=.
  6625. for ac_exec_ext in '' $ac_executable_extensions; do
  6626. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6627. ac_cv_prog_ac_ct_LIPO="lipo"
  6628. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6629. break 2
  6630. fi
  6631. done
  6632. done
  6633. IFS=$as_save_IFS
  6634. fi
  6635. fi
  6636. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6637. if test -n "$ac_ct_LIPO"; then
  6638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6639. $as_echo "$ac_ct_LIPO" >&6; }
  6640. else
  6641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6642. $as_echo "no" >&6; }
  6643. fi
  6644. if test "x$ac_ct_LIPO" = x; then
  6645. LIPO=":"
  6646. else
  6647. case $cross_compiling:$ac_tool_warned in
  6648. yes:)
  6649. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6650. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6651. ac_tool_warned=yes ;;
  6652. esac
  6653. LIPO=$ac_ct_LIPO
  6654. fi
  6655. else
  6656. LIPO="$ac_cv_prog_LIPO"
  6657. fi
  6658. if test -n "$ac_tool_prefix"; then
  6659. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6660. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6662. $as_echo_n "checking for $ac_word... " >&6; }
  6663. if ${ac_cv_prog_OTOOL+:} false; then :
  6664. $as_echo_n "(cached) " >&6
  6665. else
  6666. if test -n "$OTOOL"; then
  6667. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6668. else
  6669. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6670. for as_dir in $PATH
  6671. do
  6672. IFS=$as_save_IFS
  6673. test -z "$as_dir" && as_dir=.
  6674. for ac_exec_ext in '' $ac_executable_extensions; do
  6675. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6676. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6677. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6678. break 2
  6679. fi
  6680. done
  6681. done
  6682. IFS=$as_save_IFS
  6683. fi
  6684. fi
  6685. OTOOL=$ac_cv_prog_OTOOL
  6686. if test -n "$OTOOL"; then
  6687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6688. $as_echo "$OTOOL" >&6; }
  6689. else
  6690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6691. $as_echo "no" >&6; }
  6692. fi
  6693. fi
  6694. if test -z "$ac_cv_prog_OTOOL"; then
  6695. ac_ct_OTOOL=$OTOOL
  6696. # Extract the first word of "otool", so it can be a program name with args.
  6697. set dummy otool; ac_word=$2
  6698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6699. $as_echo_n "checking for $ac_word... " >&6; }
  6700. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6701. $as_echo_n "(cached) " >&6
  6702. else
  6703. if test -n "$ac_ct_OTOOL"; then
  6704. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6705. else
  6706. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6707. for as_dir in $PATH
  6708. do
  6709. IFS=$as_save_IFS
  6710. test -z "$as_dir" && as_dir=.
  6711. for ac_exec_ext in '' $ac_executable_extensions; do
  6712. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6713. ac_cv_prog_ac_ct_OTOOL="otool"
  6714. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6715. break 2
  6716. fi
  6717. done
  6718. done
  6719. IFS=$as_save_IFS
  6720. fi
  6721. fi
  6722. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6723. if test -n "$ac_ct_OTOOL"; then
  6724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6725. $as_echo "$ac_ct_OTOOL" >&6; }
  6726. else
  6727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6728. $as_echo "no" >&6; }
  6729. fi
  6730. if test "x$ac_ct_OTOOL" = x; then
  6731. OTOOL=":"
  6732. else
  6733. case $cross_compiling:$ac_tool_warned in
  6734. yes:)
  6735. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6736. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6737. ac_tool_warned=yes ;;
  6738. esac
  6739. OTOOL=$ac_ct_OTOOL
  6740. fi
  6741. else
  6742. OTOOL="$ac_cv_prog_OTOOL"
  6743. fi
  6744. if test -n "$ac_tool_prefix"; then
  6745. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6746. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6748. $as_echo_n "checking for $ac_word... " >&6; }
  6749. if ${ac_cv_prog_OTOOL64+:} false; then :
  6750. $as_echo_n "(cached) " >&6
  6751. else
  6752. if test -n "$OTOOL64"; then
  6753. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6754. else
  6755. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6756. for as_dir in $PATH
  6757. do
  6758. IFS=$as_save_IFS
  6759. test -z "$as_dir" && as_dir=.
  6760. for ac_exec_ext in '' $ac_executable_extensions; do
  6761. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6762. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6763. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6764. break 2
  6765. fi
  6766. done
  6767. done
  6768. IFS=$as_save_IFS
  6769. fi
  6770. fi
  6771. OTOOL64=$ac_cv_prog_OTOOL64
  6772. if test -n "$OTOOL64"; then
  6773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6774. $as_echo "$OTOOL64" >&6; }
  6775. else
  6776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6777. $as_echo "no" >&6; }
  6778. fi
  6779. fi
  6780. if test -z "$ac_cv_prog_OTOOL64"; then
  6781. ac_ct_OTOOL64=$OTOOL64
  6782. # Extract the first word of "otool64", so it can be a program name with args.
  6783. set dummy otool64; ac_word=$2
  6784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6785. $as_echo_n "checking for $ac_word... " >&6; }
  6786. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6787. $as_echo_n "(cached) " >&6
  6788. else
  6789. if test -n "$ac_ct_OTOOL64"; then
  6790. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6791. else
  6792. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6793. for as_dir in $PATH
  6794. do
  6795. IFS=$as_save_IFS
  6796. test -z "$as_dir" && as_dir=.
  6797. for ac_exec_ext in '' $ac_executable_extensions; do
  6798. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6799. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6800. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6801. break 2
  6802. fi
  6803. done
  6804. done
  6805. IFS=$as_save_IFS
  6806. fi
  6807. fi
  6808. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6809. if test -n "$ac_ct_OTOOL64"; then
  6810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6811. $as_echo "$ac_ct_OTOOL64" >&6; }
  6812. else
  6813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6814. $as_echo "no" >&6; }
  6815. fi
  6816. if test "x$ac_ct_OTOOL64" = x; then
  6817. OTOOL64=":"
  6818. else
  6819. case $cross_compiling:$ac_tool_warned in
  6820. yes:)
  6821. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6822. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6823. ac_tool_warned=yes ;;
  6824. esac
  6825. OTOOL64=$ac_ct_OTOOL64
  6826. fi
  6827. else
  6828. OTOOL64="$ac_cv_prog_OTOOL64"
  6829. fi
  6830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6831. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6832. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6833. $as_echo_n "(cached) " >&6
  6834. else
  6835. lt_cv_apple_cc_single_mod=no
  6836. if test -z "${LT_MULTI_MODULE}"; then
  6837. # By default we will add the -single_module flag. You can override
  6838. # by either setting the environment variable LT_MULTI_MODULE
  6839. # non-empty at configure time, or by adding -multi_module to the
  6840. # link flags.
  6841. rm -rf libconftest.dylib*
  6842. echo "int foo(void){return 1;}" > conftest.c
  6843. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6844. -dynamiclib -Wl,-single_module conftest.c" >&5
  6845. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6846. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6847. _lt_result=$?
  6848. # If there is a non-empty error log, and "single_module"
  6849. # appears in it, assume the flag caused a linker warning
  6850. if test -s conftest.err && $GREP single_module conftest.err; then
  6851. cat conftest.err >&5
  6852. # Otherwise, if the output was created with a 0 exit code from
  6853. # the compiler, it worked.
  6854. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  6855. lt_cv_apple_cc_single_mod=yes
  6856. else
  6857. cat conftest.err >&5
  6858. fi
  6859. rm -rf libconftest.dylib*
  6860. rm -f conftest.*
  6861. fi
  6862. fi
  6863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6864. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6866. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6867. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6868. $as_echo_n "(cached) " >&6
  6869. else
  6870. lt_cv_ld_exported_symbols_list=no
  6871. save_LDFLAGS=$LDFLAGS
  6872. echo "_main" > conftest.sym
  6873. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6874. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6875. /* end confdefs.h. */
  6876. int
  6877. main ()
  6878. {
  6879. ;
  6880. return 0;
  6881. }
  6882. _ACEOF
  6883. if ac_fn_c_try_link "$LINENO"; then :
  6884. lt_cv_ld_exported_symbols_list=yes
  6885. else
  6886. lt_cv_ld_exported_symbols_list=no
  6887. fi
  6888. rm -f core conftest.err conftest.$ac_objext \
  6889. conftest$ac_exeext conftest.$ac_ext
  6890. LDFLAGS="$save_LDFLAGS"
  6891. fi
  6892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6893. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6895. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6896. if ${lt_cv_ld_force_load+:} false; then :
  6897. $as_echo_n "(cached) " >&6
  6898. else
  6899. lt_cv_ld_force_load=no
  6900. cat > conftest.c << _LT_EOF
  6901. int forced_loaded() { return 2;}
  6902. _LT_EOF
  6903. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6904. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6905. echo "$AR cru libconftest.a conftest.o" >&5
  6906. $AR cru libconftest.a conftest.o 2>&5
  6907. echo "$RANLIB libconftest.a" >&5
  6908. $RANLIB libconftest.a 2>&5
  6909. cat > conftest.c << _LT_EOF
  6910. int main() { return 0;}
  6911. _LT_EOF
  6912. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6913. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6914. _lt_result=$?
  6915. if test -s conftest.err && $GREP force_load conftest.err; then
  6916. cat conftest.err >&5
  6917. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6918. lt_cv_ld_force_load=yes
  6919. else
  6920. cat conftest.err >&5
  6921. fi
  6922. rm -f conftest.err libconftest.a conftest conftest.c
  6923. rm -rf conftest.dSYM
  6924. fi
  6925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6926. $as_echo "$lt_cv_ld_force_load" >&6; }
  6927. case $host_os in
  6928. rhapsody* | darwin1.[012])
  6929. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6930. darwin1.*)
  6931. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6932. darwin*) # darwin 5.x on
  6933. # if running on 10.5 or later, the deployment target defaults
  6934. # to the OS version, if on x86, and 10.4, the deployment
  6935. # target defaults to 10.4. Don't you love it?
  6936. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6937. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6938. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6939. 10.[012]*)
  6940. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6941. 10.*)
  6942. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6943. esac
  6944. ;;
  6945. esac
  6946. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6947. _lt_dar_single_mod='$single_module'
  6948. fi
  6949. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6950. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6951. else
  6952. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6953. fi
  6954. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6955. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6956. else
  6957. _lt_dsymutil=
  6958. fi
  6959. ;;
  6960. esac
  6961. ac_ext=c
  6962. ac_cpp='$CPP $CPPFLAGS'
  6963. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6964. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6965. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6967. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6968. # On Suns, sometimes $CPP names a directory.
  6969. if test -n "$CPP" && test -d "$CPP"; then
  6970. CPP=
  6971. fi
  6972. if test -z "$CPP"; then
  6973. if ${ac_cv_prog_CPP+:} false; then :
  6974. $as_echo_n "(cached) " >&6
  6975. else
  6976. # Double quotes because CPP needs to be expanded
  6977. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6978. do
  6979. ac_preproc_ok=false
  6980. for ac_c_preproc_warn_flag in '' yes
  6981. do
  6982. # Use a header file that comes with gcc, so configuring glibc
  6983. # with a fresh cross-compiler works.
  6984. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6985. # <limits.h> exists even on freestanding compilers.
  6986. # On the NeXT, cc -E runs the code through the compiler's parser,
  6987. # not just through cpp. "Syntax error" is here to catch this case.
  6988. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6989. /* end confdefs.h. */
  6990. #ifdef __STDC__
  6991. # include <limits.h>
  6992. #else
  6993. # include <assert.h>
  6994. #endif
  6995. Syntax error
  6996. _ACEOF
  6997. if ac_fn_c_try_cpp "$LINENO"; then :
  6998. else
  6999. # Broken: fails on valid input.
  7000. continue
  7001. fi
  7002. rm -f conftest.err conftest.i conftest.$ac_ext
  7003. # OK, works on sane cases. Now check whether nonexistent headers
  7004. # can be detected and how.
  7005. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7006. /* end confdefs.h. */
  7007. #include <ac_nonexistent.h>
  7008. _ACEOF
  7009. if ac_fn_c_try_cpp "$LINENO"; then :
  7010. # Broken: success on invalid input.
  7011. continue
  7012. else
  7013. # Passes both tests.
  7014. ac_preproc_ok=:
  7015. break
  7016. fi
  7017. rm -f conftest.err conftest.i conftest.$ac_ext
  7018. done
  7019. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7020. rm -f conftest.i conftest.err conftest.$ac_ext
  7021. if $ac_preproc_ok; then :
  7022. break
  7023. fi
  7024. done
  7025. ac_cv_prog_CPP=$CPP
  7026. fi
  7027. CPP=$ac_cv_prog_CPP
  7028. else
  7029. ac_cv_prog_CPP=$CPP
  7030. fi
  7031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  7032. $as_echo "$CPP" >&6; }
  7033. ac_preproc_ok=false
  7034. for ac_c_preproc_warn_flag in '' yes
  7035. do
  7036. # Use a header file that comes with gcc, so configuring glibc
  7037. # with a fresh cross-compiler works.
  7038. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7039. # <limits.h> exists even on freestanding compilers.
  7040. # On the NeXT, cc -E runs the code through the compiler's parser,
  7041. # not just through cpp. "Syntax error" is here to catch this case.
  7042. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7043. /* end confdefs.h. */
  7044. #ifdef __STDC__
  7045. # include <limits.h>
  7046. #else
  7047. # include <assert.h>
  7048. #endif
  7049. Syntax error
  7050. _ACEOF
  7051. if ac_fn_c_try_cpp "$LINENO"; then :
  7052. else
  7053. # Broken: fails on valid input.
  7054. continue
  7055. fi
  7056. rm -f conftest.err conftest.i conftest.$ac_ext
  7057. # OK, works on sane cases. Now check whether nonexistent headers
  7058. # can be detected and how.
  7059. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7060. /* end confdefs.h. */
  7061. #include <ac_nonexistent.h>
  7062. _ACEOF
  7063. if ac_fn_c_try_cpp "$LINENO"; then :
  7064. # Broken: success on invalid input.
  7065. continue
  7066. else
  7067. # Passes both tests.
  7068. ac_preproc_ok=:
  7069. break
  7070. fi
  7071. rm -f conftest.err conftest.i conftest.$ac_ext
  7072. done
  7073. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7074. rm -f conftest.i conftest.err conftest.$ac_ext
  7075. if $ac_preproc_ok; then :
  7076. else
  7077. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7078. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7079. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  7080. See \`config.log' for more details" "$LINENO" 5; }
  7081. fi
  7082. ac_ext=c
  7083. ac_cpp='$CPP $CPPFLAGS'
  7084. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7085. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7086. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  7088. $as_echo_n "checking for ANSI C header files... " >&6; }
  7089. if ${ac_cv_header_stdc+:} false; then :
  7090. $as_echo_n "(cached) " >&6
  7091. else
  7092. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7093. /* end confdefs.h. */
  7094. #include <stdlib.h>
  7095. #include <stdarg.h>
  7096. #include <string.h>
  7097. #include <float.h>
  7098. int
  7099. main ()
  7100. {
  7101. ;
  7102. return 0;
  7103. }
  7104. _ACEOF
  7105. if ac_fn_c_try_compile "$LINENO"; then :
  7106. ac_cv_header_stdc=yes
  7107. else
  7108. ac_cv_header_stdc=no
  7109. fi
  7110. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7111. if test $ac_cv_header_stdc = yes; then
  7112. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7114. /* end confdefs.h. */
  7115. #include <string.h>
  7116. _ACEOF
  7117. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7118. $EGREP "memchr" >/dev/null 2>&1; then :
  7119. else
  7120. ac_cv_header_stdc=no
  7121. fi
  7122. rm -f conftest*
  7123. fi
  7124. if test $ac_cv_header_stdc = yes; then
  7125. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7126. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7127. /* end confdefs.h. */
  7128. #include <stdlib.h>
  7129. _ACEOF
  7130. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7131. $EGREP "free" >/dev/null 2>&1; then :
  7132. else
  7133. ac_cv_header_stdc=no
  7134. fi
  7135. rm -f conftest*
  7136. fi
  7137. if test $ac_cv_header_stdc = yes; then
  7138. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7139. if test "$cross_compiling" = yes; then :
  7140. :
  7141. else
  7142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7143. /* end confdefs.h. */
  7144. #include <ctype.h>
  7145. #include <stdlib.h>
  7146. #if ((' ' & 0x0FF) == 0x020)
  7147. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7148. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7149. #else
  7150. # define ISLOWER(c) \
  7151. (('a' <= (c) && (c) <= 'i') \
  7152. || ('j' <= (c) && (c) <= 'r') \
  7153. || ('s' <= (c) && (c) <= 'z'))
  7154. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7155. #endif
  7156. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7157. int
  7158. main ()
  7159. {
  7160. int i;
  7161. for (i = 0; i < 256; i++)
  7162. if (XOR (islower (i), ISLOWER (i))
  7163. || toupper (i) != TOUPPER (i))
  7164. return 2;
  7165. return 0;
  7166. }
  7167. _ACEOF
  7168. if ac_fn_c_try_run "$LINENO"; then :
  7169. else
  7170. ac_cv_header_stdc=no
  7171. fi
  7172. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7173. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7174. fi
  7175. fi
  7176. fi
  7177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  7178. $as_echo "$ac_cv_header_stdc" >&6; }
  7179. if test $ac_cv_header_stdc = yes; then
  7180. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  7181. fi
  7182. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7183. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7184. inttypes.h stdint.h unistd.h
  7185. do :
  7186. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7187. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  7188. "
  7189. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7190. cat >>confdefs.h <<_ACEOF
  7191. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7192. _ACEOF
  7193. fi
  7194. done
  7195. for ac_header in dlfcn.h
  7196. do :
  7197. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7198. "
  7199. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7200. cat >>confdefs.h <<_ACEOF
  7201. #define HAVE_DLFCN_H 1
  7202. _ACEOF
  7203. fi
  7204. done
  7205. func_stripname_cnf ()
  7206. {
  7207. case ${2} in
  7208. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  7209. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  7210. esac
  7211. } # func_stripname_cnf
  7212. # Set options
  7213. enable_dlopen=no
  7214. enable_win32_dll=no
  7215. # Check whether --enable-shared was given.
  7216. if test "${enable_shared+set}" = set; then :
  7217. enableval=$enable_shared; p=${PACKAGE-default}
  7218. case $enableval in
  7219. yes) enable_shared=yes ;;
  7220. no) enable_shared=no ;;
  7221. *)
  7222. enable_shared=no
  7223. # Look at the argument we got. We use all the common list separators.
  7224. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7225. for pkg in $enableval; do
  7226. IFS="$lt_save_ifs"
  7227. if test "X$pkg" = "X$p"; then
  7228. enable_shared=yes
  7229. fi
  7230. done
  7231. IFS="$lt_save_ifs"
  7232. ;;
  7233. esac
  7234. else
  7235. enable_shared=yes
  7236. fi
  7237. # Check whether --enable-static was given.
  7238. if test "${enable_static+set}" = set; then :
  7239. enableval=$enable_static; p=${PACKAGE-default}
  7240. case $enableval in
  7241. yes) enable_static=yes ;;
  7242. no) enable_static=no ;;
  7243. *)
  7244. enable_static=no
  7245. # Look at the argument we got. We use all the common list separators.
  7246. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7247. for pkg in $enableval; do
  7248. IFS="$lt_save_ifs"
  7249. if test "X$pkg" = "X$p"; then
  7250. enable_static=yes
  7251. fi
  7252. done
  7253. IFS="$lt_save_ifs"
  7254. ;;
  7255. esac
  7256. else
  7257. enable_static=yes
  7258. fi
  7259. # Check whether --with-pic was given.
  7260. if test "${with_pic+set}" = set; then :
  7261. withval=$with_pic; lt_p=${PACKAGE-default}
  7262. case $withval in
  7263. yes|no) pic_mode=$withval ;;
  7264. *)
  7265. pic_mode=default
  7266. # Look at the argument we got. We use all the common list separators.
  7267. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7268. for lt_pkg in $withval; do
  7269. IFS="$lt_save_ifs"
  7270. if test "X$lt_pkg" = "X$lt_p"; then
  7271. pic_mode=yes
  7272. fi
  7273. done
  7274. IFS="$lt_save_ifs"
  7275. ;;
  7276. esac
  7277. else
  7278. pic_mode=default
  7279. fi
  7280. test -z "$pic_mode" && pic_mode=default
  7281. # Check whether --enable-fast-install was given.
  7282. if test "${enable_fast_install+set}" = set; then :
  7283. enableval=$enable_fast_install; p=${PACKAGE-default}
  7284. case $enableval in
  7285. yes) enable_fast_install=yes ;;
  7286. no) enable_fast_install=no ;;
  7287. *)
  7288. enable_fast_install=no
  7289. # Look at the argument we got. We use all the common list separators.
  7290. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7291. for pkg in $enableval; do
  7292. IFS="$lt_save_ifs"
  7293. if test "X$pkg" = "X$p"; then
  7294. enable_fast_install=yes
  7295. fi
  7296. done
  7297. IFS="$lt_save_ifs"
  7298. ;;
  7299. esac
  7300. else
  7301. enable_fast_install=yes
  7302. fi
  7303. # This can be used to rebuild libtool when needed
  7304. LIBTOOL_DEPS="$ltmain"
  7305. # Always use our own libtool.
  7306. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7307. test -z "$LN_S" && LN_S="ln -s"
  7308. if test -n "${ZSH_VERSION+set}" ; then
  7309. setopt NO_GLOB_SUBST
  7310. fi
  7311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7312. $as_echo_n "checking for objdir... " >&6; }
  7313. if ${lt_cv_objdir+:} false; then :
  7314. $as_echo_n "(cached) " >&6
  7315. else
  7316. rm -f .libs 2>/dev/null
  7317. mkdir .libs 2>/dev/null
  7318. if test -d .libs; then
  7319. lt_cv_objdir=.libs
  7320. else
  7321. # MS-DOS does not allow filenames that begin with a dot.
  7322. lt_cv_objdir=_libs
  7323. fi
  7324. rmdir .libs 2>/dev/null
  7325. fi
  7326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7327. $as_echo "$lt_cv_objdir" >&6; }
  7328. objdir=$lt_cv_objdir
  7329. cat >>confdefs.h <<_ACEOF
  7330. #define LT_OBJDIR "$lt_cv_objdir/"
  7331. _ACEOF
  7332. case $host_os in
  7333. aix3*)
  7334. # AIX sometimes has problems with the GCC collect2 program. For some
  7335. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7336. # vanish in a puff of smoke.
  7337. if test "X${COLLECT_NAMES+set}" != Xset; then
  7338. COLLECT_NAMES=
  7339. export COLLECT_NAMES
  7340. fi
  7341. ;;
  7342. esac
  7343. # Global variables:
  7344. ofile=libtool
  7345. can_build_shared=yes
  7346. # All known linkers require a `.a' archive for static linking (except MSVC,
  7347. # which needs '.lib').
  7348. libext=a
  7349. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7350. old_CC="$CC"
  7351. old_CFLAGS="$CFLAGS"
  7352. # Set sane defaults for various variables
  7353. test -z "$CC" && CC=cc
  7354. test -z "$LTCC" && LTCC=$CC
  7355. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7356. test -z "$LD" && LD=ld
  7357. test -z "$ac_objext" && ac_objext=o
  7358. for cc_temp in $compiler""; do
  7359. case $cc_temp in
  7360. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7361. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7362. \-*) ;;
  7363. *) break;;
  7364. esac
  7365. done
  7366. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7367. # Only perform the check for file, if the check method requires it
  7368. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7369. case $deplibs_check_method in
  7370. file_magic*)
  7371. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7373. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7374. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7375. $as_echo_n "(cached) " >&6
  7376. else
  7377. case $MAGIC_CMD in
  7378. [\\/*] | ?:[\\/]*)
  7379. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7380. ;;
  7381. *)
  7382. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7383. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7384. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7385. for ac_dir in $ac_dummy; do
  7386. IFS="$lt_save_ifs"
  7387. test -z "$ac_dir" && ac_dir=.
  7388. if test -f $ac_dir/${ac_tool_prefix}file; then
  7389. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7390. if test -n "$file_magic_test_file"; then
  7391. case $deplibs_check_method in
  7392. "file_magic "*)
  7393. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7394. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7395. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7396. $EGREP "$file_magic_regex" > /dev/null; then
  7397. :
  7398. else
  7399. cat <<_LT_EOF 1>&2
  7400. *** Warning: the command libtool uses to detect shared libraries,
  7401. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7402. *** The result is that libtool may fail to recognize shared libraries
  7403. *** as such. This will affect the creation of libtool libraries that
  7404. *** depend on shared libraries, but programs linked with such libtool
  7405. *** libraries will work regardless of this problem. Nevertheless, you
  7406. *** may want to report the problem to your system manager and/or to
  7407. *** bug-libtool@gnu.org
  7408. _LT_EOF
  7409. fi ;;
  7410. esac
  7411. fi
  7412. break
  7413. fi
  7414. done
  7415. IFS="$lt_save_ifs"
  7416. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7417. ;;
  7418. esac
  7419. fi
  7420. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7421. if test -n "$MAGIC_CMD"; then
  7422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7423. $as_echo "$MAGIC_CMD" >&6; }
  7424. else
  7425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7426. $as_echo "no" >&6; }
  7427. fi
  7428. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7429. if test -n "$ac_tool_prefix"; then
  7430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7431. $as_echo_n "checking for file... " >&6; }
  7432. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7433. $as_echo_n "(cached) " >&6
  7434. else
  7435. case $MAGIC_CMD in
  7436. [\\/*] | ?:[\\/]*)
  7437. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7438. ;;
  7439. *)
  7440. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7441. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7442. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7443. for ac_dir in $ac_dummy; do
  7444. IFS="$lt_save_ifs"
  7445. test -z "$ac_dir" && ac_dir=.
  7446. if test -f $ac_dir/file; then
  7447. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7448. if test -n "$file_magic_test_file"; then
  7449. case $deplibs_check_method in
  7450. "file_magic "*)
  7451. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7452. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7453. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7454. $EGREP "$file_magic_regex" > /dev/null; then
  7455. :
  7456. else
  7457. cat <<_LT_EOF 1>&2
  7458. *** Warning: the command libtool uses to detect shared libraries,
  7459. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7460. *** The result is that libtool may fail to recognize shared libraries
  7461. *** as such. This will affect the creation of libtool libraries that
  7462. *** depend on shared libraries, but programs linked with such libtool
  7463. *** libraries will work regardless of this problem. Nevertheless, you
  7464. *** may want to report the problem to your system manager and/or to
  7465. *** bug-libtool@gnu.org
  7466. _LT_EOF
  7467. fi ;;
  7468. esac
  7469. fi
  7470. break
  7471. fi
  7472. done
  7473. IFS="$lt_save_ifs"
  7474. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7475. ;;
  7476. esac
  7477. fi
  7478. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7479. if test -n "$MAGIC_CMD"; then
  7480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7481. $as_echo "$MAGIC_CMD" >&6; }
  7482. else
  7483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7484. $as_echo "no" >&6; }
  7485. fi
  7486. else
  7487. MAGIC_CMD=:
  7488. fi
  7489. fi
  7490. fi
  7491. ;;
  7492. esac
  7493. # Use C for the default configuration in the libtool script
  7494. lt_save_CC="$CC"
  7495. ac_ext=c
  7496. ac_cpp='$CPP $CPPFLAGS'
  7497. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7498. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7499. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7500. # Source file extension for C test sources.
  7501. ac_ext=c
  7502. # Object file extension for compiled C test sources.
  7503. objext=o
  7504. objext=$objext
  7505. # Code to be used in simple compile tests
  7506. lt_simple_compile_test_code="int some_variable = 0;"
  7507. # Code to be used in simple link tests
  7508. lt_simple_link_test_code='int main(){return(0);}'
  7509. # If no C compiler was specified, use CC.
  7510. LTCC=${LTCC-"$CC"}
  7511. # If no C compiler flags were specified, use CFLAGS.
  7512. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7513. # Allow CC to be a program name with arguments.
  7514. compiler=$CC
  7515. # Save the default compiler, since it gets overwritten when the other
  7516. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7517. compiler_DEFAULT=$CC
  7518. # save warnings/boilerplate of simple test code
  7519. ac_outfile=conftest.$ac_objext
  7520. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7521. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7522. _lt_compiler_boilerplate=`cat conftest.err`
  7523. $RM conftest*
  7524. ac_outfile=conftest.$ac_objext
  7525. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7526. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7527. _lt_linker_boilerplate=`cat conftest.err`
  7528. $RM -r conftest*
  7529. ## CAVEAT EMPTOR:
  7530. ## There is no encapsulation within the following macros, do not change
  7531. ## the running order or otherwise move them around unless you know exactly
  7532. ## what you are doing...
  7533. if test -n "$compiler"; then
  7534. lt_prog_compiler_no_builtin_flag=
  7535. if test "$GCC" = yes; then
  7536. case $cc_basename in
  7537. nvcc*)
  7538. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7539. *)
  7540. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7541. esac
  7542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7543. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7544. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7545. $as_echo_n "(cached) " >&6
  7546. else
  7547. lt_cv_prog_compiler_rtti_exceptions=no
  7548. ac_outfile=conftest.$ac_objext
  7549. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7550. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7551. # Insert the option either (1) after the last *FLAGS variable, or
  7552. # (2) before a word containing "conftest.", or (3) at the end.
  7553. # Note that $ac_compile itself does not contain backslashes and begins
  7554. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7555. # The option is referenced via a variable to avoid confusing sed.
  7556. lt_compile=`echo "$ac_compile" | $SED \
  7557. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7558. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7559. -e 's:$: $lt_compiler_flag:'`
  7560. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7561. (eval "$lt_compile" 2>conftest.err)
  7562. ac_status=$?
  7563. cat conftest.err >&5
  7564. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7565. if (exit $ac_status) && test -s "$ac_outfile"; then
  7566. # The compiler can only warn and ignore the option if not recognized
  7567. # So say no if there are warnings other than the usual output.
  7568. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7569. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7570. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7571. lt_cv_prog_compiler_rtti_exceptions=yes
  7572. fi
  7573. fi
  7574. $RM conftest*
  7575. fi
  7576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7577. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7578. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7579. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7580. else
  7581. :
  7582. fi
  7583. fi
  7584. lt_prog_compiler_wl=
  7585. lt_prog_compiler_pic=
  7586. lt_prog_compiler_static=
  7587. if test "$GCC" = yes; then
  7588. lt_prog_compiler_wl='-Wl,'
  7589. lt_prog_compiler_static='-static'
  7590. case $host_os in
  7591. aix*)
  7592. # All AIX code is PIC.
  7593. if test "$host_cpu" = ia64; then
  7594. # AIX 5 now supports IA64 processor
  7595. lt_prog_compiler_static='-Bstatic'
  7596. fi
  7597. ;;
  7598. amigaos*)
  7599. case $host_cpu in
  7600. powerpc)
  7601. # see comment about AmigaOS4 .so support
  7602. lt_prog_compiler_pic='-fPIC'
  7603. ;;
  7604. m68k)
  7605. # FIXME: we need at least 68020 code to build shared libraries, but
  7606. # adding the `-m68020' flag to GCC prevents building anything better,
  7607. # like `-m68040'.
  7608. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7609. ;;
  7610. esac
  7611. ;;
  7612. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7613. # PIC is the default for these OSes.
  7614. ;;
  7615. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7616. # This hack is so that the source file can tell whether it is being
  7617. # built for inclusion in a dll (and should export symbols for example).
  7618. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7619. # (--disable-auto-import) libraries
  7620. lt_prog_compiler_pic='-DDLL_EXPORT'
  7621. ;;
  7622. darwin* | rhapsody*)
  7623. # PIC is the default on this platform
  7624. # Common symbols not allowed in MH_DYLIB files
  7625. lt_prog_compiler_pic='-fno-common'
  7626. ;;
  7627. haiku*)
  7628. # PIC is the default for Haiku.
  7629. # The "-static" flag exists, but is broken.
  7630. lt_prog_compiler_static=
  7631. ;;
  7632. hpux*)
  7633. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7634. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7635. # sets the default TLS model and affects inlining.
  7636. case $host_cpu in
  7637. hppa*64*)
  7638. # +Z the default
  7639. ;;
  7640. *)
  7641. lt_prog_compiler_pic='-fPIC'
  7642. ;;
  7643. esac
  7644. ;;
  7645. interix[3-9]*)
  7646. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7647. # Instead, we relocate shared libraries at runtime.
  7648. ;;
  7649. msdosdjgpp*)
  7650. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7651. # on systems that don't support them.
  7652. lt_prog_compiler_can_build_shared=no
  7653. enable_shared=no
  7654. ;;
  7655. *nto* | *qnx*)
  7656. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7657. # it will coredump.
  7658. lt_prog_compiler_pic='-fPIC -shared'
  7659. ;;
  7660. sysv4*MP*)
  7661. if test -d /usr/nec; then
  7662. lt_prog_compiler_pic=-Kconform_pic
  7663. fi
  7664. ;;
  7665. *)
  7666. lt_prog_compiler_pic='-fPIC'
  7667. ;;
  7668. esac
  7669. case $cc_basename in
  7670. nvcc*) # Cuda Compiler Driver 2.2
  7671. lt_prog_compiler_wl='-Xlinker '
  7672. if test -n "$lt_prog_compiler_pic"; then
  7673. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7674. fi
  7675. ;;
  7676. esac
  7677. else
  7678. # PORTME Check for flag to pass linker flags through the system compiler.
  7679. case $host_os in
  7680. aix*)
  7681. lt_prog_compiler_wl='-Wl,'
  7682. if test "$host_cpu" = ia64; then
  7683. # AIX 5 now supports IA64 processor
  7684. lt_prog_compiler_static='-Bstatic'
  7685. else
  7686. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7687. fi
  7688. ;;
  7689. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7690. # This hack is so that the source file can tell whether it is being
  7691. # built for inclusion in a dll (and should export symbols for example).
  7692. lt_prog_compiler_pic='-DDLL_EXPORT'
  7693. ;;
  7694. hpux9* | hpux10* | hpux11*)
  7695. lt_prog_compiler_wl='-Wl,'
  7696. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7697. # not for PA HP-UX.
  7698. case $host_cpu in
  7699. hppa*64*|ia64*)
  7700. # +Z the default
  7701. ;;
  7702. *)
  7703. lt_prog_compiler_pic='+Z'
  7704. ;;
  7705. esac
  7706. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7707. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7708. ;;
  7709. irix5* | irix6* | nonstopux*)
  7710. lt_prog_compiler_wl='-Wl,'
  7711. # PIC (with -KPIC) is the default.
  7712. lt_prog_compiler_static='-non_shared'
  7713. ;;
  7714. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7715. case $cc_basename in
  7716. # old Intel for x86_64 which still supported -KPIC.
  7717. ecc*)
  7718. lt_prog_compiler_wl='-Wl,'
  7719. lt_prog_compiler_pic='-KPIC'
  7720. lt_prog_compiler_static='-static'
  7721. ;;
  7722. # icc used to be incompatible with GCC.
  7723. # ICC 10 doesn't accept -KPIC any more.
  7724. icc* | ifort*)
  7725. lt_prog_compiler_wl='-Wl,'
  7726. lt_prog_compiler_pic='-fPIC'
  7727. lt_prog_compiler_static='-static'
  7728. ;;
  7729. # Lahey Fortran 8.1.
  7730. lf95*)
  7731. lt_prog_compiler_wl='-Wl,'
  7732. lt_prog_compiler_pic='--shared'
  7733. lt_prog_compiler_static='--static'
  7734. ;;
  7735. nagfor*)
  7736. # NAG Fortran compiler
  7737. lt_prog_compiler_wl='-Wl,-Wl,,'
  7738. lt_prog_compiler_pic='-PIC'
  7739. lt_prog_compiler_static='-Bstatic'
  7740. ;;
  7741. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7742. # Portland Group compilers (*not* the Pentium gcc compiler,
  7743. # which looks to be a dead project)
  7744. lt_prog_compiler_wl='-Wl,'
  7745. lt_prog_compiler_pic='-fpic'
  7746. lt_prog_compiler_static='-Bstatic'
  7747. ;;
  7748. ccc*)
  7749. lt_prog_compiler_wl='-Wl,'
  7750. # All Alpha code is PIC.
  7751. lt_prog_compiler_static='-non_shared'
  7752. ;;
  7753. xl* | bgxl* | bgf* | mpixl*)
  7754. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7755. lt_prog_compiler_wl='-Wl,'
  7756. lt_prog_compiler_pic='-qpic'
  7757. lt_prog_compiler_static='-qstaticlink'
  7758. ;;
  7759. *)
  7760. case `$CC -V 2>&1 | sed 5q` in
  7761. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7762. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7763. lt_prog_compiler_pic='-KPIC'
  7764. lt_prog_compiler_static='-Bstatic'
  7765. lt_prog_compiler_wl=''
  7766. ;;
  7767. *Sun\ F* | *Sun*Fortran*)
  7768. lt_prog_compiler_pic='-KPIC'
  7769. lt_prog_compiler_static='-Bstatic'
  7770. lt_prog_compiler_wl='-Qoption ld '
  7771. ;;
  7772. *Sun\ C*)
  7773. # Sun C 5.9
  7774. lt_prog_compiler_pic='-KPIC'
  7775. lt_prog_compiler_static='-Bstatic'
  7776. lt_prog_compiler_wl='-Wl,'
  7777. ;;
  7778. *Intel*\ [CF]*Compiler*)
  7779. lt_prog_compiler_wl='-Wl,'
  7780. lt_prog_compiler_pic='-fPIC'
  7781. lt_prog_compiler_static='-static'
  7782. ;;
  7783. *Portland\ Group*)
  7784. lt_prog_compiler_wl='-Wl,'
  7785. lt_prog_compiler_pic='-fpic'
  7786. lt_prog_compiler_static='-Bstatic'
  7787. ;;
  7788. esac
  7789. ;;
  7790. esac
  7791. ;;
  7792. newsos6)
  7793. lt_prog_compiler_pic='-KPIC'
  7794. lt_prog_compiler_static='-Bstatic'
  7795. ;;
  7796. *nto* | *qnx*)
  7797. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7798. # it will coredump.
  7799. lt_prog_compiler_pic='-fPIC -shared'
  7800. ;;
  7801. osf3* | osf4* | osf5*)
  7802. lt_prog_compiler_wl='-Wl,'
  7803. # All OSF/1 code is PIC.
  7804. lt_prog_compiler_static='-non_shared'
  7805. ;;
  7806. rdos*)
  7807. lt_prog_compiler_static='-non_shared'
  7808. ;;
  7809. solaris*)
  7810. lt_prog_compiler_pic='-KPIC'
  7811. lt_prog_compiler_static='-Bstatic'
  7812. case $cc_basename in
  7813. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7814. lt_prog_compiler_wl='-Qoption ld ';;
  7815. *)
  7816. lt_prog_compiler_wl='-Wl,';;
  7817. esac
  7818. ;;
  7819. sunos4*)
  7820. lt_prog_compiler_wl='-Qoption ld '
  7821. lt_prog_compiler_pic='-PIC'
  7822. lt_prog_compiler_static='-Bstatic'
  7823. ;;
  7824. sysv4 | sysv4.2uw2* | sysv4.3*)
  7825. lt_prog_compiler_wl='-Wl,'
  7826. lt_prog_compiler_pic='-KPIC'
  7827. lt_prog_compiler_static='-Bstatic'
  7828. ;;
  7829. sysv4*MP*)
  7830. if test -d /usr/nec ;then
  7831. lt_prog_compiler_pic='-Kconform_pic'
  7832. lt_prog_compiler_static='-Bstatic'
  7833. fi
  7834. ;;
  7835. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7836. lt_prog_compiler_wl='-Wl,'
  7837. lt_prog_compiler_pic='-KPIC'
  7838. lt_prog_compiler_static='-Bstatic'
  7839. ;;
  7840. unicos*)
  7841. lt_prog_compiler_wl='-Wl,'
  7842. lt_prog_compiler_can_build_shared=no
  7843. ;;
  7844. uts4*)
  7845. lt_prog_compiler_pic='-pic'
  7846. lt_prog_compiler_static='-Bstatic'
  7847. ;;
  7848. *)
  7849. lt_prog_compiler_can_build_shared=no
  7850. ;;
  7851. esac
  7852. fi
  7853. case $host_os in
  7854. # For platforms which do not support PIC, -DPIC is meaningless:
  7855. *djgpp*)
  7856. lt_prog_compiler_pic=
  7857. ;;
  7858. *)
  7859. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7860. ;;
  7861. esac
  7862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7863. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7864. if ${lt_cv_prog_compiler_pic+:} false; then :
  7865. $as_echo_n "(cached) " >&6
  7866. else
  7867. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7868. fi
  7869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7870. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7871. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7872. #
  7873. # Check to make sure the PIC flag actually works.
  7874. #
  7875. if test -n "$lt_prog_compiler_pic"; then
  7876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7877. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7878. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7879. $as_echo_n "(cached) " >&6
  7880. else
  7881. lt_cv_prog_compiler_pic_works=no
  7882. ac_outfile=conftest.$ac_objext
  7883. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7884. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7885. # Insert the option either (1) after the last *FLAGS variable, or
  7886. # (2) before a word containing "conftest.", or (3) at the end.
  7887. # Note that $ac_compile itself does not contain backslashes and begins
  7888. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7889. # The option is referenced via a variable to avoid confusing sed.
  7890. lt_compile=`echo "$ac_compile" | $SED \
  7891. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7892. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7893. -e 's:$: $lt_compiler_flag:'`
  7894. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7895. (eval "$lt_compile" 2>conftest.err)
  7896. ac_status=$?
  7897. cat conftest.err >&5
  7898. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7899. if (exit $ac_status) && test -s "$ac_outfile"; then
  7900. # The compiler can only warn and ignore the option if not recognized
  7901. # So say no if there are warnings other than the usual output.
  7902. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7903. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7904. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7905. lt_cv_prog_compiler_pic_works=yes
  7906. fi
  7907. fi
  7908. $RM conftest*
  7909. fi
  7910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7911. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7912. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7913. case $lt_prog_compiler_pic in
  7914. "" | " "*) ;;
  7915. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7916. esac
  7917. else
  7918. lt_prog_compiler_pic=
  7919. lt_prog_compiler_can_build_shared=no
  7920. fi
  7921. fi
  7922. #
  7923. # Check to make sure the static flag actually works.
  7924. #
  7925. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7927. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7928. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7929. $as_echo_n "(cached) " >&6
  7930. else
  7931. lt_cv_prog_compiler_static_works=no
  7932. save_LDFLAGS="$LDFLAGS"
  7933. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7934. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7935. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7936. # The linker can only warn and ignore the option if not recognized
  7937. # So say no if there are warnings
  7938. if test -s conftest.err; then
  7939. # Append any errors to the config.log.
  7940. cat conftest.err 1>&5
  7941. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7942. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7943. if diff conftest.exp conftest.er2 >/dev/null; then
  7944. lt_cv_prog_compiler_static_works=yes
  7945. fi
  7946. else
  7947. lt_cv_prog_compiler_static_works=yes
  7948. fi
  7949. fi
  7950. $RM -r conftest*
  7951. LDFLAGS="$save_LDFLAGS"
  7952. fi
  7953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7954. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7955. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7956. :
  7957. else
  7958. lt_prog_compiler_static=
  7959. fi
  7960. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7961. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7962. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7963. $as_echo_n "(cached) " >&6
  7964. else
  7965. lt_cv_prog_compiler_c_o=no
  7966. $RM -r conftest 2>/dev/null
  7967. mkdir conftest
  7968. cd conftest
  7969. mkdir out
  7970. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7971. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7972. # Insert the option either (1) after the last *FLAGS variable, or
  7973. # (2) before a word containing "conftest.", or (3) at the end.
  7974. # Note that $ac_compile itself does not contain backslashes and begins
  7975. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7976. lt_compile=`echo "$ac_compile" | $SED \
  7977. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7978. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7979. -e 's:$: $lt_compiler_flag:'`
  7980. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7981. (eval "$lt_compile" 2>out/conftest.err)
  7982. ac_status=$?
  7983. cat out/conftest.err >&5
  7984. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7985. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7986. then
  7987. # The compiler can only warn and ignore the option if not recognized
  7988. # So say no if there are warnings
  7989. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7990. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7991. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7992. lt_cv_prog_compiler_c_o=yes
  7993. fi
  7994. fi
  7995. chmod u+w . 2>&5
  7996. $RM conftest*
  7997. # SGI C++ compiler will create directory out/ii_files/ for
  7998. # template instantiation
  7999. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8000. $RM out/* && rmdir out
  8001. cd ..
  8002. $RM -r conftest
  8003. $RM conftest*
  8004. fi
  8005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8006. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8008. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8009. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8010. $as_echo_n "(cached) " >&6
  8011. else
  8012. lt_cv_prog_compiler_c_o=no
  8013. $RM -r conftest 2>/dev/null
  8014. mkdir conftest
  8015. cd conftest
  8016. mkdir out
  8017. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8018. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8019. # Insert the option either (1) after the last *FLAGS variable, or
  8020. # (2) before a word containing "conftest.", or (3) at the end.
  8021. # Note that $ac_compile itself does not contain backslashes and begins
  8022. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8023. lt_compile=`echo "$ac_compile" | $SED \
  8024. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8025. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8026. -e 's:$: $lt_compiler_flag:'`
  8027. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8028. (eval "$lt_compile" 2>out/conftest.err)
  8029. ac_status=$?
  8030. cat out/conftest.err >&5
  8031. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8032. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8033. then
  8034. # The compiler can only warn and ignore the option if not recognized
  8035. # So say no if there are warnings
  8036. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8037. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8038. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8039. lt_cv_prog_compiler_c_o=yes
  8040. fi
  8041. fi
  8042. chmod u+w . 2>&5
  8043. $RM conftest*
  8044. # SGI C++ compiler will create directory out/ii_files/ for
  8045. # template instantiation
  8046. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8047. $RM out/* && rmdir out
  8048. cd ..
  8049. $RM -r conftest
  8050. $RM conftest*
  8051. fi
  8052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8053. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8054. hard_links="nottested"
  8055. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8056. # do not overwrite the value of need_locks provided by the user
  8057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8058. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8059. hard_links=yes
  8060. $RM conftest*
  8061. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8062. touch conftest.a
  8063. ln conftest.a conftest.b 2>&5 || hard_links=no
  8064. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8066. $as_echo "$hard_links" >&6; }
  8067. if test "$hard_links" = no; then
  8068. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8069. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8070. need_locks=warn
  8071. fi
  8072. else
  8073. need_locks=no
  8074. fi
  8075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8076. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8077. runpath_var=
  8078. allow_undefined_flag=
  8079. always_export_symbols=no
  8080. archive_cmds=
  8081. archive_expsym_cmds=
  8082. compiler_needs_object=no
  8083. enable_shared_with_static_runtimes=no
  8084. export_dynamic_flag_spec=
  8085. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8086. hardcode_automatic=no
  8087. hardcode_direct=no
  8088. hardcode_direct_absolute=no
  8089. hardcode_libdir_flag_spec=
  8090. hardcode_libdir_separator=
  8091. hardcode_minus_L=no
  8092. hardcode_shlibpath_var=unsupported
  8093. inherit_rpath=no
  8094. link_all_deplibs=unknown
  8095. module_cmds=
  8096. module_expsym_cmds=
  8097. old_archive_from_new_cmds=
  8098. old_archive_from_expsyms_cmds=
  8099. thread_safe_flag_spec=
  8100. whole_archive_flag_spec=
  8101. # include_expsyms should be a list of space-separated symbols to be *always*
  8102. # included in the symbol list
  8103. include_expsyms=
  8104. # exclude_expsyms can be an extended regexp of symbols to exclude
  8105. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8106. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8107. # as well as any symbol that contains `d'.
  8108. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8109. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8110. # platforms (ab)use it in PIC code, but their linkers get confused if
  8111. # the symbol is explicitly referenced. Since portable code cannot
  8112. # rely on this symbol name, it's probably fine to never include it in
  8113. # preloaded symbol tables.
  8114. # Exclude shared library initialization/finalization symbols.
  8115. extract_expsyms_cmds=
  8116. case $host_os in
  8117. cygwin* | mingw* | pw32* | cegcc*)
  8118. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8119. # When not using gcc, we currently assume that we are using
  8120. # Microsoft Visual C++.
  8121. if test "$GCC" != yes; then
  8122. with_gnu_ld=no
  8123. fi
  8124. ;;
  8125. interix*)
  8126. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8127. with_gnu_ld=yes
  8128. ;;
  8129. openbsd*)
  8130. with_gnu_ld=no
  8131. ;;
  8132. esac
  8133. ld_shlibs=yes
  8134. # On some targets, GNU ld is compatible enough with the native linker
  8135. # that we're better off using the native interface for both.
  8136. lt_use_gnu_ld_interface=no
  8137. if test "$with_gnu_ld" = yes; then
  8138. case $host_os in
  8139. aix*)
  8140. # The AIX port of GNU ld has always aspired to compatibility
  8141. # with the native linker. However, as the warning in the GNU ld
  8142. # block says, versions before 2.19.5* couldn't really create working
  8143. # shared libraries, regardless of the interface used.
  8144. case `$LD -v 2>&1` in
  8145. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8146. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8147. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8148. *)
  8149. lt_use_gnu_ld_interface=yes
  8150. ;;
  8151. esac
  8152. ;;
  8153. *)
  8154. lt_use_gnu_ld_interface=yes
  8155. ;;
  8156. esac
  8157. fi
  8158. if test "$lt_use_gnu_ld_interface" = yes; then
  8159. # If archive_cmds runs LD, not CC, wlarc should be empty
  8160. wlarc='${wl}'
  8161. # Set some defaults for GNU ld with shared library support. These
  8162. # are reset later if shared libraries are not supported. Putting them
  8163. # here allows them to be overridden if necessary.
  8164. runpath_var=LD_RUN_PATH
  8165. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8166. export_dynamic_flag_spec='${wl}--export-dynamic'
  8167. # ancient GNU ld didn't support --whole-archive et. al.
  8168. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8169. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8170. else
  8171. whole_archive_flag_spec=
  8172. fi
  8173. supports_anon_versioning=no
  8174. case `$LD -v 2>&1` in
  8175. *GNU\ gold*) supports_anon_versioning=yes ;;
  8176. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8177. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8178. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8179. *\ 2.11.*) ;; # other 2.11 versions
  8180. *) supports_anon_versioning=yes ;;
  8181. esac
  8182. # See if GNU ld supports shared libraries.
  8183. case $host_os in
  8184. aix[3-9]*)
  8185. # On AIX/PPC, the GNU linker is very broken
  8186. if test "$host_cpu" != ia64; then
  8187. ld_shlibs=no
  8188. cat <<_LT_EOF 1>&2
  8189. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8190. *** to be unable to reliably create shared libraries on AIX.
  8191. *** Therefore, libtool is disabling shared libraries support. If you
  8192. *** really care for shared libraries, you may want to install binutils
  8193. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8194. *** You will then need to restart the configuration process.
  8195. _LT_EOF
  8196. fi
  8197. ;;
  8198. amigaos*)
  8199. case $host_cpu in
  8200. powerpc)
  8201. # see comment about AmigaOS4 .so support
  8202. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8203. archive_expsym_cmds=''
  8204. ;;
  8205. m68k)
  8206. 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)'
  8207. hardcode_libdir_flag_spec='-L$libdir'
  8208. hardcode_minus_L=yes
  8209. ;;
  8210. esac
  8211. ;;
  8212. beos*)
  8213. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8214. allow_undefined_flag=unsupported
  8215. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8216. # support --undefined. This deserves some investigation. FIXME
  8217. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8218. else
  8219. ld_shlibs=no
  8220. fi
  8221. ;;
  8222. cygwin* | mingw* | pw32* | cegcc*)
  8223. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8224. # as there is no search path for DLLs.
  8225. hardcode_libdir_flag_spec='-L$libdir'
  8226. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8227. allow_undefined_flag=unsupported
  8228. always_export_symbols=no
  8229. enable_shared_with_static_runtimes=yes
  8230. 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'
  8231. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8232. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8233. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8234. # If the export-symbols file already is a .def file (1st line
  8235. # is EXPORTS), use it as is; otherwise, prepend...
  8236. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8237. cp $export_symbols $output_objdir/$soname.def;
  8238. else
  8239. echo EXPORTS > $output_objdir/$soname.def;
  8240. cat $export_symbols >> $output_objdir/$soname.def;
  8241. fi~
  8242. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8243. else
  8244. ld_shlibs=no
  8245. fi
  8246. ;;
  8247. haiku*)
  8248. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8249. link_all_deplibs=yes
  8250. ;;
  8251. interix[3-9]*)
  8252. hardcode_direct=no
  8253. hardcode_shlibpath_var=no
  8254. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8255. export_dynamic_flag_spec='${wl}-E'
  8256. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8257. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8258. # default) and relocated if they conflict, which is a slow very memory
  8259. # consuming and fragmenting process. To avoid this, we pick a random,
  8260. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8261. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8262. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8263. 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'
  8264. ;;
  8265. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8266. tmp_diet=no
  8267. if test "$host_os" = linux-dietlibc; then
  8268. case $cc_basename in
  8269. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8270. esac
  8271. fi
  8272. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8273. && test "$tmp_diet" = no
  8274. then
  8275. tmp_addflag=' $pic_flag'
  8276. tmp_sharedflag='-shared'
  8277. case $cc_basename,$host_cpu in
  8278. pgcc*) # Portland Group C compiler
  8279. 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'
  8280. tmp_addflag=' $pic_flag'
  8281. ;;
  8282. pgf77* | pgf90* | pgf95* | pgfortran*)
  8283. # Portland Group f77 and f90 compilers
  8284. 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'
  8285. tmp_addflag=' $pic_flag -Mnomain' ;;
  8286. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8287. tmp_addflag=' -i_dynamic' ;;
  8288. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8289. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8290. ifc* | ifort*) # Intel Fortran compiler
  8291. tmp_addflag=' -nofor_main' ;;
  8292. lf95*) # Lahey Fortran 8.1
  8293. whole_archive_flag_spec=
  8294. tmp_sharedflag='--shared' ;;
  8295. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8296. tmp_sharedflag='-qmkshrobj'
  8297. tmp_addflag= ;;
  8298. nvcc*) # Cuda Compiler Driver 2.2
  8299. 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'
  8300. compiler_needs_object=yes
  8301. ;;
  8302. esac
  8303. case `$CC -V 2>&1 | sed 5q` in
  8304. *Sun\ C*) # Sun C 5.9
  8305. 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'
  8306. compiler_needs_object=yes
  8307. tmp_sharedflag='-G' ;;
  8308. *Sun\ F*) # Sun Fortran 8.3
  8309. tmp_sharedflag='-G' ;;
  8310. esac
  8311. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8312. if test "x$supports_anon_versioning" = xyes; then
  8313. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8314. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8315. echo "local: *; };" >> $output_objdir/$libname.ver~
  8316. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8317. fi
  8318. case $cc_basename in
  8319. xlf* | bgf* | bgxlf* | mpixlf*)
  8320. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8321. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8322. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8323. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8324. if test "x$supports_anon_versioning" = xyes; then
  8325. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8326. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8327. echo "local: *; };" >> $output_objdir/$libname.ver~
  8328. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8329. fi
  8330. ;;
  8331. esac
  8332. else
  8333. ld_shlibs=no
  8334. fi
  8335. ;;
  8336. netbsd*)
  8337. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8338. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8339. wlarc=
  8340. else
  8341. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8342. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8343. fi
  8344. ;;
  8345. solaris*)
  8346. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8347. ld_shlibs=no
  8348. cat <<_LT_EOF 1>&2
  8349. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8350. *** create shared libraries on Solaris systems. Therefore, libtool
  8351. *** is disabling shared libraries support. We urge you to upgrade GNU
  8352. *** binutils to release 2.9.1 or newer. Another option is to modify
  8353. *** your PATH or compiler configuration so that the native linker is
  8354. *** used, and then restart.
  8355. _LT_EOF
  8356. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8357. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8358. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8359. else
  8360. ld_shlibs=no
  8361. fi
  8362. ;;
  8363. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8364. case `$LD -v 2>&1` in
  8365. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8366. ld_shlibs=no
  8367. cat <<_LT_EOF 1>&2
  8368. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8369. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8370. *** is disabling shared libraries support. We urge you to upgrade GNU
  8371. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8372. *** your PATH or compiler configuration so that the native linker is
  8373. *** used, and then restart.
  8374. _LT_EOF
  8375. ;;
  8376. *)
  8377. # For security reasons, it is highly recommended that you always
  8378. # use absolute paths for naming shared libraries, and exclude the
  8379. # DT_RUNPATH tag from executables and libraries. But doing so
  8380. # requires that you compile everything twice, which is a pain.
  8381. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8382. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8383. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8384. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8385. else
  8386. ld_shlibs=no
  8387. fi
  8388. ;;
  8389. esac
  8390. ;;
  8391. sunos4*)
  8392. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8393. wlarc=
  8394. hardcode_direct=yes
  8395. hardcode_shlibpath_var=no
  8396. ;;
  8397. *)
  8398. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8399. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8400. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8401. else
  8402. ld_shlibs=no
  8403. fi
  8404. ;;
  8405. esac
  8406. if test "$ld_shlibs" = no; then
  8407. runpath_var=
  8408. hardcode_libdir_flag_spec=
  8409. export_dynamic_flag_spec=
  8410. whole_archive_flag_spec=
  8411. fi
  8412. else
  8413. # PORTME fill in a description of your system's linker (not GNU ld)
  8414. case $host_os in
  8415. aix3*)
  8416. allow_undefined_flag=unsupported
  8417. always_export_symbols=yes
  8418. 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'
  8419. # Note: this linker hardcodes the directories in LIBPATH if there
  8420. # are no directories specified by -L.
  8421. hardcode_minus_L=yes
  8422. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8423. # Neither direct hardcoding nor static linking is supported with a
  8424. # broken collect2.
  8425. hardcode_direct=unsupported
  8426. fi
  8427. ;;
  8428. aix[4-9]*)
  8429. if test "$host_cpu" = ia64; then
  8430. # On IA64, the linker does run time linking by default, so we don't
  8431. # have to do anything special.
  8432. aix_use_runtimelinking=no
  8433. exp_sym_flag='-Bexport'
  8434. no_entry_flag=""
  8435. else
  8436. # If we're using GNU nm, then we don't want the "-C" option.
  8437. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8438. # Also, AIX nm treats weak defined symbols like other global
  8439. # defined symbols, whereas GNU nm marks them as "W".
  8440. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8441. 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'
  8442. else
  8443. 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'
  8444. fi
  8445. aix_use_runtimelinking=no
  8446. # Test if we are trying to use run time linking or normal
  8447. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8448. # need to do runtime linking.
  8449. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8450. for ld_flag in $LDFLAGS; do
  8451. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8452. aix_use_runtimelinking=yes
  8453. break
  8454. fi
  8455. done
  8456. ;;
  8457. esac
  8458. exp_sym_flag='-bexport'
  8459. no_entry_flag='-bnoentry'
  8460. fi
  8461. # When large executables or shared objects are built, AIX ld can
  8462. # have problems creating the table of contents. If linking a library
  8463. # or program results in "error TOC overflow" add -mminimal-toc to
  8464. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8465. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8466. archive_cmds=''
  8467. hardcode_direct=yes
  8468. hardcode_direct_absolute=yes
  8469. hardcode_libdir_separator=':'
  8470. link_all_deplibs=yes
  8471. file_list_spec='${wl}-f,'
  8472. if test "$GCC" = yes; then
  8473. case $host_os in aix4.[012]|aix4.[012].*)
  8474. # We only want to do this on AIX 4.2 and lower, the check
  8475. # below for broken collect2 doesn't work under 4.3+
  8476. collect2name=`${CC} -print-prog-name=collect2`
  8477. if test -f "$collect2name" &&
  8478. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8479. then
  8480. # We have reworked collect2
  8481. :
  8482. else
  8483. # We have old collect2
  8484. hardcode_direct=unsupported
  8485. # It fails to find uninstalled libraries when the uninstalled
  8486. # path is not listed in the libpath. Setting hardcode_minus_L
  8487. # to unsupported forces relinking
  8488. hardcode_minus_L=yes
  8489. hardcode_libdir_flag_spec='-L$libdir'
  8490. hardcode_libdir_separator=
  8491. fi
  8492. ;;
  8493. esac
  8494. shared_flag='-shared'
  8495. if test "$aix_use_runtimelinking" = yes; then
  8496. shared_flag="$shared_flag "'${wl}-G'
  8497. fi
  8498. else
  8499. # not using gcc
  8500. if test "$host_cpu" = ia64; then
  8501. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8502. # chokes on -Wl,-G. The following line is correct:
  8503. shared_flag='-G'
  8504. else
  8505. if test "$aix_use_runtimelinking" = yes; then
  8506. shared_flag='${wl}-G'
  8507. else
  8508. shared_flag='${wl}-bM:SRE'
  8509. fi
  8510. fi
  8511. fi
  8512. export_dynamic_flag_spec='${wl}-bexpall'
  8513. # It seems that -bexpall does not export symbols beginning with
  8514. # underscore (_), so it is better to generate a list of symbols to export.
  8515. always_export_symbols=yes
  8516. if test "$aix_use_runtimelinking" = yes; then
  8517. # Warning - without using the other runtime loading flags (-brtl),
  8518. # -berok will link without error, but may produce a broken library.
  8519. allow_undefined_flag='-berok'
  8520. # Determine the default libpath from the value encoded in an
  8521. # empty executable.
  8522. if test "${lt_cv_aix_libpath+set}" = set; then
  8523. aix_libpath=$lt_cv_aix_libpath
  8524. else
  8525. if ${lt_cv_aix_libpath_+:} false; then :
  8526. $as_echo_n "(cached) " >&6
  8527. else
  8528. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8529. /* end confdefs.h. */
  8530. int
  8531. main ()
  8532. {
  8533. ;
  8534. return 0;
  8535. }
  8536. _ACEOF
  8537. if ac_fn_c_try_link "$LINENO"; then :
  8538. lt_aix_libpath_sed='
  8539. /Import File Strings/,/^$/ {
  8540. /^0/ {
  8541. s/^0 *\([^ ]*\) *$/\1/
  8542. p
  8543. }
  8544. }'
  8545. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8546. # Check for a 64-bit object if we didn't find anything.
  8547. if test -z "$lt_cv_aix_libpath_"; then
  8548. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8549. fi
  8550. fi
  8551. rm -f core conftest.err conftest.$ac_objext \
  8552. conftest$ac_exeext conftest.$ac_ext
  8553. if test -z "$lt_cv_aix_libpath_"; then
  8554. lt_cv_aix_libpath_="/usr/lib:/lib"
  8555. fi
  8556. fi
  8557. aix_libpath=$lt_cv_aix_libpath_
  8558. fi
  8559. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8560. 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"
  8561. else
  8562. if test "$host_cpu" = ia64; then
  8563. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8564. allow_undefined_flag="-z nodefs"
  8565. 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"
  8566. else
  8567. # Determine the default libpath from the value encoded in an
  8568. # empty executable.
  8569. if test "${lt_cv_aix_libpath+set}" = set; then
  8570. aix_libpath=$lt_cv_aix_libpath
  8571. else
  8572. if ${lt_cv_aix_libpath_+:} false; then :
  8573. $as_echo_n "(cached) " >&6
  8574. else
  8575. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8576. /* end confdefs.h. */
  8577. int
  8578. main ()
  8579. {
  8580. ;
  8581. return 0;
  8582. }
  8583. _ACEOF
  8584. if ac_fn_c_try_link "$LINENO"; then :
  8585. lt_aix_libpath_sed='
  8586. /Import File Strings/,/^$/ {
  8587. /^0/ {
  8588. s/^0 *\([^ ]*\) *$/\1/
  8589. p
  8590. }
  8591. }'
  8592. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8593. # Check for a 64-bit object if we didn't find anything.
  8594. if test -z "$lt_cv_aix_libpath_"; then
  8595. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8596. fi
  8597. fi
  8598. rm -f core conftest.err conftest.$ac_objext \
  8599. conftest$ac_exeext conftest.$ac_ext
  8600. if test -z "$lt_cv_aix_libpath_"; then
  8601. lt_cv_aix_libpath_="/usr/lib:/lib"
  8602. fi
  8603. fi
  8604. aix_libpath=$lt_cv_aix_libpath_
  8605. fi
  8606. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8607. # Warning - without using the other run time loading flags,
  8608. # -berok will link without error, but may produce a broken library.
  8609. no_undefined_flag=' ${wl}-bernotok'
  8610. allow_undefined_flag=' ${wl}-berok'
  8611. if test "$with_gnu_ld" = yes; then
  8612. # We only use this code for GNU lds that support --whole-archive.
  8613. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8614. else
  8615. # Exported symbols can be pulled into shared objects from archives
  8616. whole_archive_flag_spec='$convenience'
  8617. fi
  8618. archive_cmds_need_lc=yes
  8619. # This is similar to how AIX traditionally builds its shared libraries.
  8620. 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'
  8621. fi
  8622. fi
  8623. ;;
  8624. amigaos*)
  8625. case $host_cpu in
  8626. powerpc)
  8627. # see comment about AmigaOS4 .so support
  8628. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8629. archive_expsym_cmds=''
  8630. ;;
  8631. m68k)
  8632. 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)'
  8633. hardcode_libdir_flag_spec='-L$libdir'
  8634. hardcode_minus_L=yes
  8635. ;;
  8636. esac
  8637. ;;
  8638. bsdi[45]*)
  8639. export_dynamic_flag_spec=-rdynamic
  8640. ;;
  8641. cygwin* | mingw* | pw32* | cegcc*)
  8642. # When not using gcc, we currently assume that we are using
  8643. # Microsoft Visual C++.
  8644. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8645. # no search path for DLLs.
  8646. case $cc_basename in
  8647. cl*)
  8648. # Native MSVC
  8649. hardcode_libdir_flag_spec=' '
  8650. allow_undefined_flag=unsupported
  8651. always_export_symbols=yes
  8652. file_list_spec='@'
  8653. # Tell ltmain to make .lib files, not .a files.
  8654. libext=lib
  8655. # Tell ltmain to make .dll files, not .so files.
  8656. shrext_cmds=".dll"
  8657. # FIXME: Setting linknames here is a bad hack.
  8658. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8659. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8660. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8661. else
  8662. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8663. fi~
  8664. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8665. linknames='
  8666. # The linker will not automatically build a static lib if we build a DLL.
  8667. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8668. enable_shared_with_static_runtimes=yes
  8669. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8670. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8671. # Don't use ranlib
  8672. old_postinstall_cmds='chmod 644 $oldlib'
  8673. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8674. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8675. case $lt_outputfile in
  8676. *.exe|*.EXE) ;;
  8677. *)
  8678. lt_outputfile="$lt_outputfile.exe"
  8679. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8680. ;;
  8681. esac~
  8682. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8683. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8684. $RM "$lt_outputfile.manifest";
  8685. fi'
  8686. ;;
  8687. *)
  8688. # Assume MSVC wrapper
  8689. hardcode_libdir_flag_spec=' '
  8690. allow_undefined_flag=unsupported
  8691. # Tell ltmain to make .lib files, not .a files.
  8692. libext=lib
  8693. # Tell ltmain to make .dll files, not .so files.
  8694. shrext_cmds=".dll"
  8695. # FIXME: Setting linknames here is a bad hack.
  8696. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8697. # The linker will automatically build a .lib file if we build a DLL.
  8698. old_archive_from_new_cmds='true'
  8699. # FIXME: Should let the user specify the lib program.
  8700. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8701. enable_shared_with_static_runtimes=yes
  8702. ;;
  8703. esac
  8704. ;;
  8705. darwin* | rhapsody*)
  8706. archive_cmds_need_lc=no
  8707. hardcode_direct=no
  8708. hardcode_automatic=yes
  8709. hardcode_shlibpath_var=unsupported
  8710. if test "$lt_cv_ld_force_load" = "yes"; then
  8711. 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\"`'
  8712. else
  8713. whole_archive_flag_spec=''
  8714. fi
  8715. link_all_deplibs=yes
  8716. allow_undefined_flag="$_lt_dar_allow_undefined"
  8717. case $cc_basename in
  8718. ifort*) _lt_dar_can_shared=yes ;;
  8719. *) _lt_dar_can_shared=$GCC ;;
  8720. esac
  8721. if test "$_lt_dar_can_shared" = "yes"; then
  8722. output_verbose_link_cmd=func_echo_all
  8723. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8724. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8725. 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}"
  8726. 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}"
  8727. else
  8728. ld_shlibs=no
  8729. fi
  8730. ;;
  8731. dgux*)
  8732. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8733. hardcode_libdir_flag_spec='-L$libdir'
  8734. hardcode_shlibpath_var=no
  8735. ;;
  8736. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8737. # support. Future versions do this automatically, but an explicit c++rt0.o
  8738. # does not break anything, and helps significantly (at the cost of a little
  8739. # extra space).
  8740. freebsd2.2*)
  8741. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8742. hardcode_libdir_flag_spec='-R$libdir'
  8743. hardcode_direct=yes
  8744. hardcode_shlibpath_var=no
  8745. ;;
  8746. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8747. freebsd2.*)
  8748. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8749. hardcode_direct=yes
  8750. hardcode_minus_L=yes
  8751. hardcode_shlibpath_var=no
  8752. ;;
  8753. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8754. freebsd* | dragonfly*)
  8755. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8756. hardcode_libdir_flag_spec='-R$libdir'
  8757. hardcode_direct=yes
  8758. hardcode_shlibpath_var=no
  8759. ;;
  8760. hpux9*)
  8761. if test "$GCC" = yes; then
  8762. 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'
  8763. else
  8764. 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'
  8765. fi
  8766. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8767. hardcode_libdir_separator=:
  8768. hardcode_direct=yes
  8769. # hardcode_minus_L: Not really in the search PATH,
  8770. # but as the default location of the library.
  8771. hardcode_minus_L=yes
  8772. export_dynamic_flag_spec='${wl}-E'
  8773. ;;
  8774. hpux10*)
  8775. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8776. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8777. else
  8778. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8779. fi
  8780. if test "$with_gnu_ld" = no; then
  8781. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8782. hardcode_libdir_separator=:
  8783. hardcode_direct=yes
  8784. hardcode_direct_absolute=yes
  8785. export_dynamic_flag_spec='${wl}-E'
  8786. # hardcode_minus_L: Not really in the search PATH,
  8787. # but as the default location of the library.
  8788. hardcode_minus_L=yes
  8789. fi
  8790. ;;
  8791. hpux11*)
  8792. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8793. case $host_cpu in
  8794. hppa*64*)
  8795. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8796. ;;
  8797. ia64*)
  8798. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8799. ;;
  8800. *)
  8801. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8802. ;;
  8803. esac
  8804. else
  8805. case $host_cpu in
  8806. hppa*64*)
  8807. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8808. ;;
  8809. ia64*)
  8810. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8811. ;;
  8812. *)
  8813. # Older versions of the 11.00 compiler do not understand -b yet
  8814. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8816. $as_echo_n "checking if $CC understands -b... " >&6; }
  8817. if ${lt_cv_prog_compiler__b+:} false; then :
  8818. $as_echo_n "(cached) " >&6
  8819. else
  8820. lt_cv_prog_compiler__b=no
  8821. save_LDFLAGS="$LDFLAGS"
  8822. LDFLAGS="$LDFLAGS -b"
  8823. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8824. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8825. # The linker can only warn and ignore the option if not recognized
  8826. # So say no if there are warnings
  8827. if test -s conftest.err; then
  8828. # Append any errors to the config.log.
  8829. cat conftest.err 1>&5
  8830. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8831. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8832. if diff conftest.exp conftest.er2 >/dev/null; then
  8833. lt_cv_prog_compiler__b=yes
  8834. fi
  8835. else
  8836. lt_cv_prog_compiler__b=yes
  8837. fi
  8838. fi
  8839. $RM -r conftest*
  8840. LDFLAGS="$save_LDFLAGS"
  8841. fi
  8842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8843. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8844. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8845. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8846. else
  8847. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8848. fi
  8849. ;;
  8850. esac
  8851. fi
  8852. if test "$with_gnu_ld" = no; then
  8853. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8854. hardcode_libdir_separator=:
  8855. case $host_cpu in
  8856. hppa*64*|ia64*)
  8857. hardcode_direct=no
  8858. hardcode_shlibpath_var=no
  8859. ;;
  8860. *)
  8861. hardcode_direct=yes
  8862. hardcode_direct_absolute=yes
  8863. export_dynamic_flag_spec='${wl}-E'
  8864. # hardcode_minus_L: Not really in the search PATH,
  8865. # but as the default location of the library.
  8866. hardcode_minus_L=yes
  8867. ;;
  8868. esac
  8869. fi
  8870. ;;
  8871. irix5* | irix6* | nonstopux*)
  8872. if test "$GCC" = yes; then
  8873. 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'
  8874. # Try to use the -exported_symbol ld option, if it does not
  8875. # work, assume that -exports_file does not work either and
  8876. # implicitly export all symbols.
  8877. # This should be the same for all languages, so no per-tag cache variable.
  8878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8879. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8880. if ${lt_cv_irix_exported_symbol+:} false; then :
  8881. $as_echo_n "(cached) " >&6
  8882. else
  8883. save_LDFLAGS="$LDFLAGS"
  8884. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8885. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8886. /* end confdefs.h. */
  8887. int foo (void) { return 0; }
  8888. _ACEOF
  8889. if ac_fn_c_try_link "$LINENO"; then :
  8890. lt_cv_irix_exported_symbol=yes
  8891. else
  8892. lt_cv_irix_exported_symbol=no
  8893. fi
  8894. rm -f core conftest.err conftest.$ac_objext \
  8895. conftest$ac_exeext conftest.$ac_ext
  8896. LDFLAGS="$save_LDFLAGS"
  8897. fi
  8898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8899. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8900. if test "$lt_cv_irix_exported_symbol" = yes; then
  8901. 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'
  8902. fi
  8903. else
  8904. 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'
  8905. 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'
  8906. fi
  8907. archive_cmds_need_lc='no'
  8908. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8909. hardcode_libdir_separator=:
  8910. inherit_rpath=yes
  8911. link_all_deplibs=yes
  8912. ;;
  8913. netbsd*)
  8914. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8915. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8916. else
  8917. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8918. fi
  8919. hardcode_libdir_flag_spec='-R$libdir'
  8920. hardcode_direct=yes
  8921. hardcode_shlibpath_var=no
  8922. ;;
  8923. newsos6)
  8924. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8925. hardcode_direct=yes
  8926. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8927. hardcode_libdir_separator=:
  8928. hardcode_shlibpath_var=no
  8929. ;;
  8930. *nto* | *qnx*)
  8931. ;;
  8932. openbsd*)
  8933. if test -f /usr/libexec/ld.so; then
  8934. hardcode_direct=yes
  8935. hardcode_shlibpath_var=no
  8936. hardcode_direct_absolute=yes
  8937. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8938. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8939. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8940. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8941. export_dynamic_flag_spec='${wl}-E'
  8942. else
  8943. case $host_os in
  8944. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8945. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8946. hardcode_libdir_flag_spec='-R$libdir'
  8947. ;;
  8948. *)
  8949. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8950. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8951. ;;
  8952. esac
  8953. fi
  8954. else
  8955. ld_shlibs=no
  8956. fi
  8957. ;;
  8958. os2*)
  8959. hardcode_libdir_flag_spec='-L$libdir'
  8960. hardcode_minus_L=yes
  8961. allow_undefined_flag=unsupported
  8962. 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'
  8963. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8964. ;;
  8965. osf3*)
  8966. if test "$GCC" = yes; then
  8967. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8968. 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'
  8969. else
  8970. allow_undefined_flag=' -expect_unresolved \*'
  8971. 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'
  8972. fi
  8973. archive_cmds_need_lc='no'
  8974. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8975. hardcode_libdir_separator=:
  8976. ;;
  8977. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8978. if test "$GCC" = yes; then
  8979. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8980. 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'
  8981. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8982. else
  8983. allow_undefined_flag=' -expect_unresolved \*'
  8984. 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'
  8985. 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~
  8986. $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'
  8987. # Both c and cxx compiler support -rpath directly
  8988. hardcode_libdir_flag_spec='-rpath $libdir'
  8989. fi
  8990. archive_cmds_need_lc='no'
  8991. hardcode_libdir_separator=:
  8992. ;;
  8993. solaris*)
  8994. no_undefined_flag=' -z defs'
  8995. if test "$GCC" = yes; then
  8996. wlarc='${wl}'
  8997. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8998. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8999. $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'
  9000. else
  9001. case `$CC -V 2>&1` in
  9002. *"Compilers 5.0"*)
  9003. wlarc=''
  9004. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9005. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9006. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9007. ;;
  9008. *)
  9009. wlarc='${wl}'
  9010. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9011. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9012. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9013. ;;
  9014. esac
  9015. fi
  9016. hardcode_libdir_flag_spec='-R$libdir'
  9017. hardcode_shlibpath_var=no
  9018. case $host_os in
  9019. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9020. *)
  9021. # The compiler driver will combine and reorder linker options,
  9022. # but understands `-z linker_flag'. GCC discards it without `$wl',
  9023. # but is careful enough not to reorder.
  9024. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9025. if test "$GCC" = yes; then
  9026. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9027. else
  9028. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9029. fi
  9030. ;;
  9031. esac
  9032. link_all_deplibs=yes
  9033. ;;
  9034. sunos4*)
  9035. if test "x$host_vendor" = xsequent; then
  9036. # Use $CC to link under sequent, because it throws in some extra .o
  9037. # files that make .init and .fini sections work.
  9038. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9039. else
  9040. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9041. fi
  9042. hardcode_libdir_flag_spec='-L$libdir'
  9043. hardcode_direct=yes
  9044. hardcode_minus_L=yes
  9045. hardcode_shlibpath_var=no
  9046. ;;
  9047. sysv4)
  9048. case $host_vendor in
  9049. sni)
  9050. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9051. hardcode_direct=yes # is this really true???
  9052. ;;
  9053. siemens)
  9054. ## LD is ld it makes a PLAMLIB
  9055. ## CC just makes a GrossModule.
  9056. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9057. reload_cmds='$CC -r -o $output$reload_objs'
  9058. hardcode_direct=no
  9059. ;;
  9060. motorola)
  9061. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9062. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9063. ;;
  9064. esac
  9065. runpath_var='LD_RUN_PATH'
  9066. hardcode_shlibpath_var=no
  9067. ;;
  9068. sysv4.3*)
  9069. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9070. hardcode_shlibpath_var=no
  9071. export_dynamic_flag_spec='-Bexport'
  9072. ;;
  9073. sysv4*MP*)
  9074. if test -d /usr/nec; then
  9075. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9076. hardcode_shlibpath_var=no
  9077. runpath_var=LD_RUN_PATH
  9078. hardcode_runpath_var=yes
  9079. ld_shlibs=yes
  9080. fi
  9081. ;;
  9082. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9083. no_undefined_flag='${wl}-z,text'
  9084. archive_cmds_need_lc=no
  9085. hardcode_shlibpath_var=no
  9086. runpath_var='LD_RUN_PATH'
  9087. if test "$GCC" = yes; then
  9088. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9089. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9090. else
  9091. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9092. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9093. fi
  9094. ;;
  9095. sysv5* | sco3.2v5* | sco5v6*)
  9096. # Note: We can NOT use -z defs as we might desire, because we do not
  9097. # link with -lc, and that would cause any symbols used from libc to
  9098. # always be unresolved, which means just about no library would
  9099. # ever link correctly. If we're not using GNU ld we use -z text
  9100. # though, which does catch some bad symbols but isn't as heavy-handed
  9101. # as -z defs.
  9102. no_undefined_flag='${wl}-z,text'
  9103. allow_undefined_flag='${wl}-z,nodefs'
  9104. archive_cmds_need_lc=no
  9105. hardcode_shlibpath_var=no
  9106. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9107. hardcode_libdir_separator=':'
  9108. link_all_deplibs=yes
  9109. export_dynamic_flag_spec='${wl}-Bexport'
  9110. runpath_var='LD_RUN_PATH'
  9111. if test "$GCC" = yes; then
  9112. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9113. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9114. else
  9115. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9116. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9117. fi
  9118. ;;
  9119. uts4*)
  9120. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9121. hardcode_libdir_flag_spec='-L$libdir'
  9122. hardcode_shlibpath_var=no
  9123. ;;
  9124. *)
  9125. ld_shlibs=no
  9126. ;;
  9127. esac
  9128. if test x$host_vendor = xsni; then
  9129. case $host in
  9130. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9131. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9132. ;;
  9133. esac
  9134. fi
  9135. fi
  9136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9137. $as_echo "$ld_shlibs" >&6; }
  9138. test "$ld_shlibs" = no && can_build_shared=no
  9139. with_gnu_ld=$with_gnu_ld
  9140. #
  9141. # Do we need to explicitly link libc?
  9142. #
  9143. case "x$archive_cmds_need_lc" in
  9144. x|xyes)
  9145. # Assume -lc should be added
  9146. archive_cmds_need_lc=yes
  9147. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9148. case $archive_cmds in
  9149. *'~'*)
  9150. # FIXME: we may have to deal with multi-command sequences.
  9151. ;;
  9152. '$CC '*)
  9153. # Test whether the compiler implicitly links with -lc since on some
  9154. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9155. # to ld, don't add -lc before -lgcc.
  9156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9157. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9158. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9159. $as_echo_n "(cached) " >&6
  9160. else
  9161. $RM conftest*
  9162. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9163. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9164. (eval $ac_compile) 2>&5
  9165. ac_status=$?
  9166. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9167. test $ac_status = 0; } 2>conftest.err; then
  9168. soname=conftest
  9169. lib=conftest
  9170. libobjs=conftest.$ac_objext
  9171. deplibs=
  9172. wl=$lt_prog_compiler_wl
  9173. pic_flag=$lt_prog_compiler_pic
  9174. compiler_flags=-v
  9175. linker_flags=-v
  9176. verstring=
  9177. output_objdir=.
  9178. libname=conftest
  9179. lt_save_allow_undefined_flag=$allow_undefined_flag
  9180. allow_undefined_flag=
  9181. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9182. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9183. ac_status=$?
  9184. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9185. test $ac_status = 0; }
  9186. then
  9187. lt_cv_archive_cmds_need_lc=no
  9188. else
  9189. lt_cv_archive_cmds_need_lc=yes
  9190. fi
  9191. allow_undefined_flag=$lt_save_allow_undefined_flag
  9192. else
  9193. cat conftest.err 1>&5
  9194. fi
  9195. $RM conftest*
  9196. fi
  9197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9198. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9199. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9200. ;;
  9201. esac
  9202. fi
  9203. ;;
  9204. esac
  9205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9206. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9207. if test "$GCC" = yes; then
  9208. case $host_os in
  9209. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9210. *) lt_awk_arg="/^libraries:/" ;;
  9211. esac
  9212. case $host_os in
  9213. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9214. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9215. esac
  9216. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9217. case $lt_search_path_spec in
  9218. *\;*)
  9219. # if the path contains ";" then we assume it to be the separator
  9220. # otherwise default to the standard path separator (i.e. ":") - it is
  9221. # assumed that no part of a normal pathname contains ";" but that should
  9222. # okay in the real world where ";" in dirpaths is itself problematic.
  9223. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9224. ;;
  9225. *)
  9226. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9227. ;;
  9228. esac
  9229. # Ok, now we have the path, separated by spaces, we can step through it
  9230. # and add multilib dir if necessary.
  9231. lt_tmp_lt_search_path_spec=
  9232. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9233. for lt_sys_path in $lt_search_path_spec; do
  9234. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9235. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9236. else
  9237. test -d "$lt_sys_path" && \
  9238. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9239. fi
  9240. done
  9241. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9242. BEGIN {RS=" "; FS="/|\n";} {
  9243. lt_foo="";
  9244. lt_count=0;
  9245. for (lt_i = NF; lt_i > 0; lt_i--) {
  9246. if ($lt_i != "" && $lt_i != ".") {
  9247. if ($lt_i == "..") {
  9248. lt_count++;
  9249. } else {
  9250. if (lt_count == 0) {
  9251. lt_foo="/" $lt_i lt_foo;
  9252. } else {
  9253. lt_count--;
  9254. }
  9255. }
  9256. }
  9257. }
  9258. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9259. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9260. }'`
  9261. # AWK program above erroneously prepends '/' to C:/dos/paths
  9262. # for these hosts.
  9263. case $host_os in
  9264. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9265. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9266. esac
  9267. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9268. else
  9269. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9270. fi
  9271. library_names_spec=
  9272. libname_spec='lib$name'
  9273. soname_spec=
  9274. shrext_cmds=".so"
  9275. postinstall_cmds=
  9276. postuninstall_cmds=
  9277. finish_cmds=
  9278. finish_eval=
  9279. shlibpath_var=
  9280. shlibpath_overrides_runpath=unknown
  9281. version_type=none
  9282. dynamic_linker="$host_os ld.so"
  9283. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9284. need_lib_prefix=unknown
  9285. hardcode_into_libs=no
  9286. # when you set need_version to no, make sure it does not cause -set_version
  9287. # flags to be left without arguments
  9288. need_version=unknown
  9289. case $host_os in
  9290. aix3*)
  9291. version_type=linux # correct to gnu/linux during the next big refactor
  9292. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9293. shlibpath_var=LIBPATH
  9294. # AIX 3 has no versioning support, so we append a major version to the name.
  9295. soname_spec='${libname}${release}${shared_ext}$major'
  9296. ;;
  9297. aix[4-9]*)
  9298. version_type=linux # correct to gnu/linux during the next big refactor
  9299. need_lib_prefix=no
  9300. need_version=no
  9301. hardcode_into_libs=yes
  9302. if test "$host_cpu" = ia64; then
  9303. # AIX 5 supports IA64
  9304. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9305. shlibpath_var=LD_LIBRARY_PATH
  9306. else
  9307. # With GCC up to 2.95.x, collect2 would create an import file
  9308. # for dependence libraries. The import file would start with
  9309. # the line `#! .'. This would cause the generated library to
  9310. # depend on `.', always an invalid library. This was fixed in
  9311. # development snapshots of GCC prior to 3.0.
  9312. case $host_os in
  9313. aix4 | aix4.[01] | aix4.[01].*)
  9314. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9315. echo ' yes '
  9316. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9317. :
  9318. else
  9319. can_build_shared=no
  9320. fi
  9321. ;;
  9322. esac
  9323. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9324. # soname into executable. Probably we can add versioning support to
  9325. # collect2, so additional links can be useful in future.
  9326. if test "$aix_use_runtimelinking" = yes; then
  9327. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9328. # instead of lib<name>.a to let people know that these are not
  9329. # typical AIX shared libraries.
  9330. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9331. else
  9332. # We preserve .a as extension for shared libraries through AIX4.2
  9333. # and later when we are not doing run time linking.
  9334. library_names_spec='${libname}${release}.a $libname.a'
  9335. soname_spec='${libname}${release}${shared_ext}$major'
  9336. fi
  9337. shlibpath_var=LIBPATH
  9338. fi
  9339. ;;
  9340. amigaos*)
  9341. case $host_cpu in
  9342. powerpc)
  9343. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9344. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9345. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9346. ;;
  9347. m68k)
  9348. library_names_spec='$libname.ixlibrary $libname.a'
  9349. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9350. 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'
  9351. ;;
  9352. esac
  9353. ;;
  9354. beos*)
  9355. library_names_spec='${libname}${shared_ext}'
  9356. dynamic_linker="$host_os ld.so"
  9357. shlibpath_var=LIBRARY_PATH
  9358. ;;
  9359. bsdi[45]*)
  9360. version_type=linux # correct to gnu/linux during the next big refactor
  9361. need_version=no
  9362. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9363. soname_spec='${libname}${release}${shared_ext}$major'
  9364. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9365. shlibpath_var=LD_LIBRARY_PATH
  9366. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9367. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9368. # the default ld.so.conf also contains /usr/contrib/lib and
  9369. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9370. # libtool to hard-code these into programs
  9371. ;;
  9372. cygwin* | mingw* | pw32* | cegcc*)
  9373. version_type=windows
  9374. shrext_cmds=".dll"
  9375. need_version=no
  9376. need_lib_prefix=no
  9377. case $GCC,$cc_basename in
  9378. yes,*)
  9379. # gcc
  9380. library_names_spec='$libname.dll.a'
  9381. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9382. postinstall_cmds='base_file=`basename \${file}`~
  9383. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9384. dldir=$destdir/`dirname \$dlpath`~
  9385. test -d \$dldir || mkdir -p \$dldir~
  9386. $install_prog $dir/$dlname \$dldir/$dlname~
  9387. chmod a+x \$dldir/$dlname~
  9388. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9389. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9390. fi'
  9391. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9392. dlpath=$dir/\$dldll~
  9393. $RM \$dlpath'
  9394. shlibpath_overrides_runpath=yes
  9395. case $host_os in
  9396. cygwin*)
  9397. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9398. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9399. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9400. ;;
  9401. mingw* | cegcc*)
  9402. # MinGW DLLs use traditional 'lib' prefix
  9403. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9404. ;;
  9405. pw32*)
  9406. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9407. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9408. ;;
  9409. esac
  9410. dynamic_linker='Win32 ld.exe'
  9411. ;;
  9412. *,cl*)
  9413. # Native MSVC
  9414. libname_spec='$name'
  9415. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9416. library_names_spec='${libname}.dll.lib'
  9417. case $build_os in
  9418. mingw*)
  9419. sys_lib_search_path_spec=
  9420. lt_save_ifs=$IFS
  9421. IFS=';'
  9422. for lt_path in $LIB
  9423. do
  9424. IFS=$lt_save_ifs
  9425. # Let DOS variable expansion print the short 8.3 style file name.
  9426. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9427. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9428. done
  9429. IFS=$lt_save_ifs
  9430. # Convert to MSYS style.
  9431. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9432. ;;
  9433. cygwin*)
  9434. # Convert to unix form, then to dos form, then back to unix form
  9435. # but this time dos style (no spaces!) so that the unix form looks
  9436. # like /cygdrive/c/PROGRA~1:/cygdr...
  9437. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9438. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9439. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9440. ;;
  9441. *)
  9442. sys_lib_search_path_spec="$LIB"
  9443. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9444. # It is most probably a Windows format PATH.
  9445. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9446. else
  9447. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9448. fi
  9449. # FIXME: find the short name or the path components, as spaces are
  9450. # common. (e.g. "Program Files" -> "PROGRA~1")
  9451. ;;
  9452. esac
  9453. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9454. postinstall_cmds='base_file=`basename \${file}`~
  9455. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9456. dldir=$destdir/`dirname \$dlpath`~
  9457. test -d \$dldir || mkdir -p \$dldir~
  9458. $install_prog $dir/$dlname \$dldir/$dlname'
  9459. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9460. dlpath=$dir/\$dldll~
  9461. $RM \$dlpath'
  9462. shlibpath_overrides_runpath=yes
  9463. dynamic_linker='Win32 link.exe'
  9464. ;;
  9465. *)
  9466. # Assume MSVC wrapper
  9467. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9468. dynamic_linker='Win32 ld.exe'
  9469. ;;
  9470. esac
  9471. # FIXME: first we should search . and the directory the executable is in
  9472. shlibpath_var=PATH
  9473. ;;
  9474. darwin* | rhapsody*)
  9475. dynamic_linker="$host_os dyld"
  9476. version_type=darwin
  9477. need_lib_prefix=no
  9478. need_version=no
  9479. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9480. soname_spec='${libname}${release}${major}$shared_ext'
  9481. shlibpath_overrides_runpath=yes
  9482. shlibpath_var=DYLD_LIBRARY_PATH
  9483. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9484. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9485. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9486. ;;
  9487. dgux*)
  9488. version_type=linux # correct to gnu/linux during the next big refactor
  9489. need_lib_prefix=no
  9490. need_version=no
  9491. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9492. soname_spec='${libname}${release}${shared_ext}$major'
  9493. shlibpath_var=LD_LIBRARY_PATH
  9494. ;;
  9495. freebsd* | dragonfly*)
  9496. # DragonFly does not have aout. When/if they implement a new
  9497. # versioning mechanism, adjust this.
  9498. if test -x /usr/bin/objformat; then
  9499. objformat=`/usr/bin/objformat`
  9500. else
  9501. case $host_os in
  9502. freebsd[23].*) objformat=aout ;;
  9503. *) objformat=elf ;;
  9504. esac
  9505. fi
  9506. version_type=freebsd-$objformat
  9507. case $version_type in
  9508. freebsd-elf*)
  9509. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9510. need_version=no
  9511. need_lib_prefix=no
  9512. ;;
  9513. freebsd-*)
  9514. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9515. need_version=yes
  9516. ;;
  9517. esac
  9518. shlibpath_var=LD_LIBRARY_PATH
  9519. case $host_os in
  9520. freebsd2.*)
  9521. shlibpath_overrides_runpath=yes
  9522. ;;
  9523. freebsd3.[01]* | freebsdelf3.[01]*)
  9524. shlibpath_overrides_runpath=yes
  9525. hardcode_into_libs=yes
  9526. ;;
  9527. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9528. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9529. shlibpath_overrides_runpath=no
  9530. hardcode_into_libs=yes
  9531. ;;
  9532. *) # from 4.6 on, and DragonFly
  9533. shlibpath_overrides_runpath=yes
  9534. hardcode_into_libs=yes
  9535. ;;
  9536. esac
  9537. ;;
  9538. gnu*)
  9539. version_type=linux # correct to gnu/linux during the next big refactor
  9540. need_lib_prefix=no
  9541. need_version=no
  9542. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9543. soname_spec='${libname}${release}${shared_ext}$major'
  9544. shlibpath_var=LD_LIBRARY_PATH
  9545. shlibpath_overrides_runpath=no
  9546. hardcode_into_libs=yes
  9547. ;;
  9548. haiku*)
  9549. version_type=linux # correct to gnu/linux during the next big refactor
  9550. need_lib_prefix=no
  9551. need_version=no
  9552. dynamic_linker="$host_os runtime_loader"
  9553. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9554. soname_spec='${libname}${release}${shared_ext}$major'
  9555. shlibpath_var=LIBRARY_PATH
  9556. shlibpath_overrides_runpath=yes
  9557. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9558. hardcode_into_libs=yes
  9559. ;;
  9560. hpux9* | hpux10* | hpux11*)
  9561. # Give a soname corresponding to the major version so that dld.sl refuses to
  9562. # link against other versions.
  9563. version_type=sunos
  9564. need_lib_prefix=no
  9565. need_version=no
  9566. case $host_cpu in
  9567. ia64*)
  9568. shrext_cmds='.so'
  9569. hardcode_into_libs=yes
  9570. dynamic_linker="$host_os dld.so"
  9571. shlibpath_var=LD_LIBRARY_PATH
  9572. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9573. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9574. soname_spec='${libname}${release}${shared_ext}$major'
  9575. if test "X$HPUX_IA64_MODE" = X32; then
  9576. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9577. else
  9578. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9579. fi
  9580. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9581. ;;
  9582. hppa*64*)
  9583. shrext_cmds='.sl'
  9584. hardcode_into_libs=yes
  9585. dynamic_linker="$host_os dld.sl"
  9586. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9587. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9588. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9589. soname_spec='${libname}${release}${shared_ext}$major'
  9590. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9591. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9592. ;;
  9593. *)
  9594. shrext_cmds='.sl'
  9595. dynamic_linker="$host_os dld.sl"
  9596. shlibpath_var=SHLIB_PATH
  9597. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9598. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9599. soname_spec='${libname}${release}${shared_ext}$major'
  9600. ;;
  9601. esac
  9602. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9603. postinstall_cmds='chmod 555 $lib'
  9604. # or fails outright, so override atomically:
  9605. install_override_mode=555
  9606. ;;
  9607. interix[3-9]*)
  9608. version_type=linux # correct to gnu/linux during the next big refactor
  9609. need_lib_prefix=no
  9610. need_version=no
  9611. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9612. soname_spec='${libname}${release}${shared_ext}$major'
  9613. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9614. shlibpath_var=LD_LIBRARY_PATH
  9615. shlibpath_overrides_runpath=no
  9616. hardcode_into_libs=yes
  9617. ;;
  9618. irix5* | irix6* | nonstopux*)
  9619. case $host_os in
  9620. nonstopux*) version_type=nonstopux ;;
  9621. *)
  9622. if test "$lt_cv_prog_gnu_ld" = yes; then
  9623. version_type=linux # correct to gnu/linux during the next big refactor
  9624. else
  9625. version_type=irix
  9626. fi ;;
  9627. esac
  9628. need_lib_prefix=no
  9629. need_version=no
  9630. soname_spec='${libname}${release}${shared_ext}$major'
  9631. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9632. case $host_os in
  9633. irix5* | nonstopux*)
  9634. libsuff= shlibsuff=
  9635. ;;
  9636. *)
  9637. case $LD in # libtool.m4 will add one of these switches to LD
  9638. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9639. libsuff= shlibsuff= libmagic=32-bit;;
  9640. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9641. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9642. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9643. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9644. *) libsuff= shlibsuff= libmagic=never-match;;
  9645. esac
  9646. ;;
  9647. esac
  9648. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9649. shlibpath_overrides_runpath=no
  9650. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9651. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9652. hardcode_into_libs=yes
  9653. ;;
  9654. # No shared lib support for Linux oldld, aout, or coff.
  9655. linux*oldld* | linux*aout* | linux*coff*)
  9656. dynamic_linker=no
  9657. ;;
  9658. # This must be glibc/ELF.
  9659. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9660. version_type=linux # correct to gnu/linux during the next big refactor
  9661. need_lib_prefix=no
  9662. need_version=no
  9663. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9664. soname_spec='${libname}${release}${shared_ext}$major'
  9665. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9666. shlibpath_var=LD_LIBRARY_PATH
  9667. shlibpath_overrides_runpath=no
  9668. # Some binutils ld are patched to set DT_RUNPATH
  9669. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9670. $as_echo_n "(cached) " >&6
  9671. else
  9672. lt_cv_shlibpath_overrides_runpath=no
  9673. save_LDFLAGS=$LDFLAGS
  9674. save_libdir=$libdir
  9675. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9676. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9677. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9678. /* end confdefs.h. */
  9679. int
  9680. main ()
  9681. {
  9682. ;
  9683. return 0;
  9684. }
  9685. _ACEOF
  9686. if ac_fn_c_try_link "$LINENO"; then :
  9687. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9688. lt_cv_shlibpath_overrides_runpath=yes
  9689. fi
  9690. fi
  9691. rm -f core conftest.err conftest.$ac_objext \
  9692. conftest$ac_exeext conftest.$ac_ext
  9693. LDFLAGS=$save_LDFLAGS
  9694. libdir=$save_libdir
  9695. fi
  9696. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9697. # This implies no fast_install, which is unacceptable.
  9698. # Some rework will be needed to allow for fast_install
  9699. # before this can be enabled.
  9700. hardcode_into_libs=yes
  9701. # Append ld.so.conf contents to the search path
  9702. if test -f /etc/ld.so.conf; then
  9703. 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' ' '`
  9704. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9705. fi
  9706. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9707. # powerpc, because MkLinux only supported shared libraries with the
  9708. # GNU dynamic linker. Since this was broken with cross compilers,
  9709. # most powerpc-linux boxes support dynamic linking these days and
  9710. # people can always --disable-shared, the test was removed, and we
  9711. # assume the GNU/Linux dynamic linker is in use.
  9712. dynamic_linker='GNU/Linux ld.so'
  9713. ;;
  9714. netbsd*)
  9715. version_type=sunos
  9716. need_lib_prefix=no
  9717. need_version=no
  9718. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9719. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9720. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9721. dynamic_linker='NetBSD (a.out) ld.so'
  9722. else
  9723. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9724. soname_spec='${libname}${release}${shared_ext}$major'
  9725. dynamic_linker='NetBSD ld.elf_so'
  9726. fi
  9727. shlibpath_var=LD_LIBRARY_PATH
  9728. shlibpath_overrides_runpath=yes
  9729. hardcode_into_libs=yes
  9730. ;;
  9731. newsos6)
  9732. version_type=linux # correct to gnu/linux during the next big refactor
  9733. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9734. shlibpath_var=LD_LIBRARY_PATH
  9735. shlibpath_overrides_runpath=yes
  9736. ;;
  9737. *nto* | *qnx*)
  9738. version_type=qnx
  9739. need_lib_prefix=no
  9740. need_version=no
  9741. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9742. soname_spec='${libname}${release}${shared_ext}$major'
  9743. shlibpath_var=LD_LIBRARY_PATH
  9744. shlibpath_overrides_runpath=no
  9745. hardcode_into_libs=yes
  9746. dynamic_linker='ldqnx.so'
  9747. ;;
  9748. openbsd*)
  9749. version_type=sunos
  9750. sys_lib_dlsearch_path_spec="/usr/lib"
  9751. need_lib_prefix=no
  9752. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9753. case $host_os in
  9754. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9755. *) need_version=no ;;
  9756. esac
  9757. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9758. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9759. shlibpath_var=LD_LIBRARY_PATH
  9760. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9761. case $host_os in
  9762. openbsd2.[89] | openbsd2.[89].*)
  9763. shlibpath_overrides_runpath=no
  9764. ;;
  9765. *)
  9766. shlibpath_overrides_runpath=yes
  9767. ;;
  9768. esac
  9769. else
  9770. shlibpath_overrides_runpath=yes
  9771. fi
  9772. ;;
  9773. os2*)
  9774. libname_spec='$name'
  9775. shrext_cmds=".dll"
  9776. need_lib_prefix=no
  9777. library_names_spec='$libname${shared_ext} $libname.a'
  9778. dynamic_linker='OS/2 ld.exe'
  9779. shlibpath_var=LIBPATH
  9780. ;;
  9781. osf3* | osf4* | osf5*)
  9782. version_type=osf
  9783. need_lib_prefix=no
  9784. need_version=no
  9785. soname_spec='${libname}${release}${shared_ext}$major'
  9786. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9787. shlibpath_var=LD_LIBRARY_PATH
  9788. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9789. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9790. ;;
  9791. rdos*)
  9792. dynamic_linker=no
  9793. ;;
  9794. solaris*)
  9795. version_type=linux # correct to gnu/linux during the next big refactor
  9796. need_lib_prefix=no
  9797. need_version=no
  9798. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9799. soname_spec='${libname}${release}${shared_ext}$major'
  9800. shlibpath_var=LD_LIBRARY_PATH
  9801. shlibpath_overrides_runpath=yes
  9802. hardcode_into_libs=yes
  9803. # ldd complains unless libraries are executable
  9804. postinstall_cmds='chmod +x $lib'
  9805. ;;
  9806. sunos4*)
  9807. version_type=sunos
  9808. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9809. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9810. shlibpath_var=LD_LIBRARY_PATH
  9811. shlibpath_overrides_runpath=yes
  9812. if test "$with_gnu_ld" = yes; then
  9813. need_lib_prefix=no
  9814. fi
  9815. need_version=yes
  9816. ;;
  9817. sysv4 | sysv4.3*)
  9818. version_type=linux # correct to gnu/linux during the next big refactor
  9819. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9820. soname_spec='${libname}${release}${shared_ext}$major'
  9821. shlibpath_var=LD_LIBRARY_PATH
  9822. case $host_vendor in
  9823. sni)
  9824. shlibpath_overrides_runpath=no
  9825. need_lib_prefix=no
  9826. runpath_var=LD_RUN_PATH
  9827. ;;
  9828. siemens)
  9829. need_lib_prefix=no
  9830. ;;
  9831. motorola)
  9832. need_lib_prefix=no
  9833. need_version=no
  9834. shlibpath_overrides_runpath=no
  9835. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9836. ;;
  9837. esac
  9838. ;;
  9839. sysv4*MP*)
  9840. if test -d /usr/nec ;then
  9841. version_type=linux # correct to gnu/linux during the next big refactor
  9842. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9843. soname_spec='$libname${shared_ext}.$major'
  9844. shlibpath_var=LD_LIBRARY_PATH
  9845. fi
  9846. ;;
  9847. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9848. version_type=freebsd-elf
  9849. need_lib_prefix=no
  9850. need_version=no
  9851. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9852. soname_spec='${libname}${release}${shared_ext}$major'
  9853. shlibpath_var=LD_LIBRARY_PATH
  9854. shlibpath_overrides_runpath=yes
  9855. hardcode_into_libs=yes
  9856. if test "$with_gnu_ld" = yes; then
  9857. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9858. else
  9859. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9860. case $host_os in
  9861. sco3.2v5*)
  9862. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9863. ;;
  9864. esac
  9865. fi
  9866. sys_lib_dlsearch_path_spec='/usr/lib'
  9867. ;;
  9868. tpf*)
  9869. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9870. version_type=linux # correct to gnu/linux during the next big refactor
  9871. need_lib_prefix=no
  9872. need_version=no
  9873. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9874. shlibpath_var=LD_LIBRARY_PATH
  9875. shlibpath_overrides_runpath=no
  9876. hardcode_into_libs=yes
  9877. ;;
  9878. uts4*)
  9879. version_type=linux # correct to gnu/linux during the next big refactor
  9880. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9881. soname_spec='${libname}${release}${shared_ext}$major'
  9882. shlibpath_var=LD_LIBRARY_PATH
  9883. ;;
  9884. *)
  9885. dynamic_linker=no
  9886. ;;
  9887. esac
  9888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9889. $as_echo "$dynamic_linker" >&6; }
  9890. test "$dynamic_linker" = no && can_build_shared=no
  9891. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9892. if test "$GCC" = yes; then
  9893. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9894. fi
  9895. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9896. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9897. fi
  9898. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9899. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9900. fi
  9901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9902. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9903. hardcode_action=
  9904. if test -n "$hardcode_libdir_flag_spec" ||
  9905. test -n "$runpath_var" ||
  9906. test "X$hardcode_automatic" = "Xyes" ; then
  9907. # We can hardcode non-existent directories.
  9908. if test "$hardcode_direct" != no &&
  9909. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9910. # have to relink, otherwise we might link with an installed library
  9911. # when we should be linking with a yet-to-be-installed one
  9912. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9913. test "$hardcode_minus_L" != no; then
  9914. # Linking always hardcodes the temporary library directory.
  9915. hardcode_action=relink
  9916. else
  9917. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9918. hardcode_action=immediate
  9919. fi
  9920. else
  9921. # We cannot hardcode anything, or else we can only hardcode existing
  9922. # directories.
  9923. hardcode_action=unsupported
  9924. fi
  9925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9926. $as_echo "$hardcode_action" >&6; }
  9927. if test "$hardcode_action" = relink ||
  9928. test "$inherit_rpath" = yes; then
  9929. # Fast installation is not supported
  9930. enable_fast_install=no
  9931. elif test "$shlibpath_overrides_runpath" = yes ||
  9932. test "$enable_shared" = no; then
  9933. # Fast installation is not necessary
  9934. enable_fast_install=needless
  9935. fi
  9936. if test "x$enable_dlopen" != xyes; then
  9937. enable_dlopen=unknown
  9938. enable_dlopen_self=unknown
  9939. enable_dlopen_self_static=unknown
  9940. else
  9941. lt_cv_dlopen=no
  9942. lt_cv_dlopen_libs=
  9943. case $host_os in
  9944. beos*)
  9945. lt_cv_dlopen="load_add_on"
  9946. lt_cv_dlopen_libs=
  9947. lt_cv_dlopen_self=yes
  9948. ;;
  9949. mingw* | pw32* | cegcc*)
  9950. lt_cv_dlopen="LoadLibrary"
  9951. lt_cv_dlopen_libs=
  9952. ;;
  9953. cygwin*)
  9954. lt_cv_dlopen="dlopen"
  9955. lt_cv_dlopen_libs=
  9956. ;;
  9957. darwin*)
  9958. # if libdl is installed we need to link against it
  9959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9960. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9961. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9962. $as_echo_n "(cached) " >&6
  9963. else
  9964. ac_check_lib_save_LIBS=$LIBS
  9965. LIBS="-ldl $LIBS"
  9966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9967. /* end confdefs.h. */
  9968. /* Override any GCC internal prototype to avoid an error.
  9969. Use char because int might match the return type of a GCC
  9970. builtin and then its argument prototype would still apply. */
  9971. #ifdef __cplusplus
  9972. extern "C"
  9973. #endif
  9974. char dlopen ();
  9975. int
  9976. main ()
  9977. {
  9978. return dlopen ();
  9979. ;
  9980. return 0;
  9981. }
  9982. _ACEOF
  9983. if ac_fn_c_try_link "$LINENO"; then :
  9984. ac_cv_lib_dl_dlopen=yes
  9985. else
  9986. ac_cv_lib_dl_dlopen=no
  9987. fi
  9988. rm -f core conftest.err conftest.$ac_objext \
  9989. conftest$ac_exeext conftest.$ac_ext
  9990. LIBS=$ac_check_lib_save_LIBS
  9991. fi
  9992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9993. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9994. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9995. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9996. else
  9997. lt_cv_dlopen="dyld"
  9998. lt_cv_dlopen_libs=
  9999. lt_cv_dlopen_self=yes
  10000. fi
  10001. ;;
  10002. *)
  10003. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10004. if test "x$ac_cv_func_shl_load" = xyes; then :
  10005. lt_cv_dlopen="shl_load"
  10006. else
  10007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10008. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10009. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10010. $as_echo_n "(cached) " >&6
  10011. else
  10012. ac_check_lib_save_LIBS=$LIBS
  10013. LIBS="-ldld $LIBS"
  10014. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10015. /* end confdefs.h. */
  10016. /* Override any GCC internal prototype to avoid an error.
  10017. Use char because int might match the return type of a GCC
  10018. builtin and then its argument prototype would still apply. */
  10019. #ifdef __cplusplus
  10020. extern "C"
  10021. #endif
  10022. char shl_load ();
  10023. int
  10024. main ()
  10025. {
  10026. return shl_load ();
  10027. ;
  10028. return 0;
  10029. }
  10030. _ACEOF
  10031. if ac_fn_c_try_link "$LINENO"; then :
  10032. ac_cv_lib_dld_shl_load=yes
  10033. else
  10034. ac_cv_lib_dld_shl_load=no
  10035. fi
  10036. rm -f core conftest.err conftest.$ac_objext \
  10037. conftest$ac_exeext conftest.$ac_ext
  10038. LIBS=$ac_check_lib_save_LIBS
  10039. fi
  10040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10041. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10042. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10043. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  10044. else
  10045. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10046. if test "x$ac_cv_func_dlopen" = xyes; then :
  10047. lt_cv_dlopen="dlopen"
  10048. else
  10049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10050. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10051. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10052. $as_echo_n "(cached) " >&6
  10053. else
  10054. ac_check_lib_save_LIBS=$LIBS
  10055. LIBS="-ldl $LIBS"
  10056. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10057. /* end confdefs.h. */
  10058. /* Override any GCC internal prototype to avoid an error.
  10059. Use char because int might match the return type of a GCC
  10060. builtin and then its argument prototype would still apply. */
  10061. #ifdef __cplusplus
  10062. extern "C"
  10063. #endif
  10064. char dlopen ();
  10065. int
  10066. main ()
  10067. {
  10068. return dlopen ();
  10069. ;
  10070. return 0;
  10071. }
  10072. _ACEOF
  10073. if ac_fn_c_try_link "$LINENO"; then :
  10074. ac_cv_lib_dl_dlopen=yes
  10075. else
  10076. ac_cv_lib_dl_dlopen=no
  10077. fi
  10078. rm -f core conftest.err conftest.$ac_objext \
  10079. conftest$ac_exeext conftest.$ac_ext
  10080. LIBS=$ac_check_lib_save_LIBS
  10081. fi
  10082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10083. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10084. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10085. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10086. else
  10087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10088. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10089. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10090. $as_echo_n "(cached) " >&6
  10091. else
  10092. ac_check_lib_save_LIBS=$LIBS
  10093. LIBS="-lsvld $LIBS"
  10094. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10095. /* end confdefs.h. */
  10096. /* Override any GCC internal prototype to avoid an error.
  10097. Use char because int might match the return type of a GCC
  10098. builtin and then its argument prototype would still apply. */
  10099. #ifdef __cplusplus
  10100. extern "C"
  10101. #endif
  10102. char dlopen ();
  10103. int
  10104. main ()
  10105. {
  10106. return dlopen ();
  10107. ;
  10108. return 0;
  10109. }
  10110. _ACEOF
  10111. if ac_fn_c_try_link "$LINENO"; then :
  10112. ac_cv_lib_svld_dlopen=yes
  10113. else
  10114. ac_cv_lib_svld_dlopen=no
  10115. fi
  10116. rm -f core conftest.err conftest.$ac_objext \
  10117. conftest$ac_exeext conftest.$ac_ext
  10118. LIBS=$ac_check_lib_save_LIBS
  10119. fi
  10120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10121. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10122. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10123. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10124. else
  10125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10126. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10127. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10128. $as_echo_n "(cached) " >&6
  10129. else
  10130. ac_check_lib_save_LIBS=$LIBS
  10131. LIBS="-ldld $LIBS"
  10132. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10133. /* end confdefs.h. */
  10134. /* Override any GCC internal prototype to avoid an error.
  10135. Use char because int might match the return type of a GCC
  10136. builtin and then its argument prototype would still apply. */
  10137. #ifdef __cplusplus
  10138. extern "C"
  10139. #endif
  10140. char dld_link ();
  10141. int
  10142. main ()
  10143. {
  10144. return dld_link ();
  10145. ;
  10146. return 0;
  10147. }
  10148. _ACEOF
  10149. if ac_fn_c_try_link "$LINENO"; then :
  10150. ac_cv_lib_dld_dld_link=yes
  10151. else
  10152. ac_cv_lib_dld_dld_link=no
  10153. fi
  10154. rm -f core conftest.err conftest.$ac_objext \
  10155. conftest$ac_exeext conftest.$ac_ext
  10156. LIBS=$ac_check_lib_save_LIBS
  10157. fi
  10158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10159. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10160. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10161. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10162. fi
  10163. fi
  10164. fi
  10165. fi
  10166. fi
  10167. fi
  10168. ;;
  10169. esac
  10170. if test "x$lt_cv_dlopen" != xno; then
  10171. enable_dlopen=yes
  10172. else
  10173. enable_dlopen=no
  10174. fi
  10175. case $lt_cv_dlopen in
  10176. dlopen)
  10177. save_CPPFLAGS="$CPPFLAGS"
  10178. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10179. save_LDFLAGS="$LDFLAGS"
  10180. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10181. save_LIBS="$LIBS"
  10182. LIBS="$lt_cv_dlopen_libs $LIBS"
  10183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10184. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10185. if ${lt_cv_dlopen_self+:} false; then :
  10186. $as_echo_n "(cached) " >&6
  10187. else
  10188. if test "$cross_compiling" = yes; then :
  10189. lt_cv_dlopen_self=cross
  10190. else
  10191. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10192. lt_status=$lt_dlunknown
  10193. cat > conftest.$ac_ext <<_LT_EOF
  10194. #line $LINENO "configure"
  10195. #include "confdefs.h"
  10196. #if HAVE_DLFCN_H
  10197. #include <dlfcn.h>
  10198. #endif
  10199. #include <stdio.h>
  10200. #ifdef RTLD_GLOBAL
  10201. # define LT_DLGLOBAL RTLD_GLOBAL
  10202. #else
  10203. # ifdef DL_GLOBAL
  10204. # define LT_DLGLOBAL DL_GLOBAL
  10205. # else
  10206. # define LT_DLGLOBAL 0
  10207. # endif
  10208. #endif
  10209. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10210. find out it does not work in some platform. */
  10211. #ifndef LT_DLLAZY_OR_NOW
  10212. # ifdef RTLD_LAZY
  10213. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10214. # else
  10215. # ifdef DL_LAZY
  10216. # define LT_DLLAZY_OR_NOW DL_LAZY
  10217. # else
  10218. # ifdef RTLD_NOW
  10219. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10220. # else
  10221. # ifdef DL_NOW
  10222. # define LT_DLLAZY_OR_NOW DL_NOW
  10223. # else
  10224. # define LT_DLLAZY_OR_NOW 0
  10225. # endif
  10226. # endif
  10227. # endif
  10228. # endif
  10229. #endif
  10230. /* When -fvisbility=hidden is used, assume the code has been annotated
  10231. correspondingly for the symbols needed. */
  10232. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10233. int fnord () __attribute__((visibility("default")));
  10234. #endif
  10235. int fnord () { return 42; }
  10236. int main ()
  10237. {
  10238. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10239. int status = $lt_dlunknown;
  10240. if (self)
  10241. {
  10242. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10243. else
  10244. {
  10245. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10246. else puts (dlerror ());
  10247. }
  10248. /* dlclose (self); */
  10249. }
  10250. else
  10251. puts (dlerror ());
  10252. return status;
  10253. }
  10254. _LT_EOF
  10255. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10256. (eval $ac_link) 2>&5
  10257. ac_status=$?
  10258. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10259. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10260. (./conftest; exit; ) >&5 2>/dev/null
  10261. lt_status=$?
  10262. case x$lt_status in
  10263. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10264. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10265. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10266. esac
  10267. else :
  10268. # compilation failed
  10269. lt_cv_dlopen_self=no
  10270. fi
  10271. fi
  10272. rm -fr conftest*
  10273. fi
  10274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10275. $as_echo "$lt_cv_dlopen_self" >&6; }
  10276. if test "x$lt_cv_dlopen_self" = xyes; then
  10277. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10279. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10280. if ${lt_cv_dlopen_self_static+:} false; then :
  10281. $as_echo_n "(cached) " >&6
  10282. else
  10283. if test "$cross_compiling" = yes; then :
  10284. lt_cv_dlopen_self_static=cross
  10285. else
  10286. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10287. lt_status=$lt_dlunknown
  10288. cat > conftest.$ac_ext <<_LT_EOF
  10289. #line $LINENO "configure"
  10290. #include "confdefs.h"
  10291. #if HAVE_DLFCN_H
  10292. #include <dlfcn.h>
  10293. #endif
  10294. #include <stdio.h>
  10295. #ifdef RTLD_GLOBAL
  10296. # define LT_DLGLOBAL RTLD_GLOBAL
  10297. #else
  10298. # ifdef DL_GLOBAL
  10299. # define LT_DLGLOBAL DL_GLOBAL
  10300. # else
  10301. # define LT_DLGLOBAL 0
  10302. # endif
  10303. #endif
  10304. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10305. find out it does not work in some platform. */
  10306. #ifndef LT_DLLAZY_OR_NOW
  10307. # ifdef RTLD_LAZY
  10308. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10309. # else
  10310. # ifdef DL_LAZY
  10311. # define LT_DLLAZY_OR_NOW DL_LAZY
  10312. # else
  10313. # ifdef RTLD_NOW
  10314. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10315. # else
  10316. # ifdef DL_NOW
  10317. # define LT_DLLAZY_OR_NOW DL_NOW
  10318. # else
  10319. # define LT_DLLAZY_OR_NOW 0
  10320. # endif
  10321. # endif
  10322. # endif
  10323. # endif
  10324. #endif
  10325. /* When -fvisbility=hidden is used, assume the code has been annotated
  10326. correspondingly for the symbols needed. */
  10327. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10328. int fnord () __attribute__((visibility("default")));
  10329. #endif
  10330. int fnord () { return 42; }
  10331. int main ()
  10332. {
  10333. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10334. int status = $lt_dlunknown;
  10335. if (self)
  10336. {
  10337. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10338. else
  10339. {
  10340. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10341. else puts (dlerror ());
  10342. }
  10343. /* dlclose (self); */
  10344. }
  10345. else
  10346. puts (dlerror ());
  10347. return status;
  10348. }
  10349. _LT_EOF
  10350. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10351. (eval $ac_link) 2>&5
  10352. ac_status=$?
  10353. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10354. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10355. (./conftest; exit; ) >&5 2>/dev/null
  10356. lt_status=$?
  10357. case x$lt_status in
  10358. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10359. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10360. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10361. esac
  10362. else :
  10363. # compilation failed
  10364. lt_cv_dlopen_self_static=no
  10365. fi
  10366. fi
  10367. rm -fr conftest*
  10368. fi
  10369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10370. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10371. fi
  10372. CPPFLAGS="$save_CPPFLAGS"
  10373. LDFLAGS="$save_LDFLAGS"
  10374. LIBS="$save_LIBS"
  10375. ;;
  10376. esac
  10377. case $lt_cv_dlopen_self in
  10378. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10379. *) enable_dlopen_self=unknown ;;
  10380. esac
  10381. case $lt_cv_dlopen_self_static in
  10382. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10383. *) enable_dlopen_self_static=unknown ;;
  10384. esac
  10385. fi
  10386. striplib=
  10387. old_striplib=
  10388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10389. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10390. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10391. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10392. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10394. $as_echo "yes" >&6; }
  10395. else
  10396. # FIXME - insert some real tests, host_os isn't really good enough
  10397. case $host_os in
  10398. darwin*)
  10399. if test -n "$STRIP" ; then
  10400. striplib="$STRIP -x"
  10401. old_striplib="$STRIP -S"
  10402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10403. $as_echo "yes" >&6; }
  10404. else
  10405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10406. $as_echo "no" >&6; }
  10407. fi
  10408. ;;
  10409. *)
  10410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10411. $as_echo "no" >&6; }
  10412. ;;
  10413. esac
  10414. fi
  10415. # Report which library types will actually be built
  10416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10417. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10419. $as_echo "$can_build_shared" >&6; }
  10420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10421. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10422. test "$can_build_shared" = "no" && enable_shared=no
  10423. # On AIX, shared libraries and static libraries use the same namespace, and
  10424. # are all built from PIC.
  10425. case $host_os in
  10426. aix3*)
  10427. test "$enable_shared" = yes && enable_static=no
  10428. if test -n "$RANLIB"; then
  10429. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10430. postinstall_cmds='$RANLIB $lib'
  10431. fi
  10432. ;;
  10433. aix[4-9]*)
  10434. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10435. test "$enable_shared" = yes && enable_static=no
  10436. fi
  10437. ;;
  10438. esac
  10439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10440. $as_echo "$enable_shared" >&6; }
  10441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10442. $as_echo_n "checking whether to build static libraries... " >&6; }
  10443. # Make sure either enable_shared or enable_static is yes.
  10444. test "$enable_shared" = yes || enable_static=yes
  10445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10446. $as_echo "$enable_static" >&6; }
  10447. fi
  10448. ac_ext=c
  10449. ac_cpp='$CPP $CPPFLAGS'
  10450. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10451. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10452. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10453. CC="$lt_save_CC"
  10454. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10455. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10456. (test "X$CXX" != "Xg++"))) ; then
  10457. ac_ext=cpp
  10458. ac_cpp='$CXXCPP $CPPFLAGS'
  10459. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10460. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10461. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10463. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10464. if test -z "$CXXCPP"; then
  10465. if ${ac_cv_prog_CXXCPP+:} false; then :
  10466. $as_echo_n "(cached) " >&6
  10467. else
  10468. # Double quotes because CXXCPP needs to be expanded
  10469. for CXXCPP in "$CXX -E" "/lib/cpp"
  10470. do
  10471. ac_preproc_ok=false
  10472. for ac_cxx_preproc_warn_flag in '' yes
  10473. do
  10474. # Use a header file that comes with gcc, so configuring glibc
  10475. # with a fresh cross-compiler works.
  10476. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10477. # <limits.h> exists even on freestanding compilers.
  10478. # On the NeXT, cc -E runs the code through the compiler's parser,
  10479. # not just through cpp. "Syntax error" is here to catch this case.
  10480. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10481. /* end confdefs.h. */
  10482. #ifdef __STDC__
  10483. # include <limits.h>
  10484. #else
  10485. # include <assert.h>
  10486. #endif
  10487. Syntax error
  10488. _ACEOF
  10489. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10490. else
  10491. # Broken: fails on valid input.
  10492. continue
  10493. fi
  10494. rm -f conftest.err conftest.i conftest.$ac_ext
  10495. # OK, works on sane cases. Now check whether nonexistent headers
  10496. # can be detected and how.
  10497. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10498. /* end confdefs.h. */
  10499. #include <ac_nonexistent.h>
  10500. _ACEOF
  10501. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10502. # Broken: success on invalid input.
  10503. continue
  10504. else
  10505. # Passes both tests.
  10506. ac_preproc_ok=:
  10507. break
  10508. fi
  10509. rm -f conftest.err conftest.i conftest.$ac_ext
  10510. done
  10511. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10512. rm -f conftest.i conftest.err conftest.$ac_ext
  10513. if $ac_preproc_ok; then :
  10514. break
  10515. fi
  10516. done
  10517. ac_cv_prog_CXXCPP=$CXXCPP
  10518. fi
  10519. CXXCPP=$ac_cv_prog_CXXCPP
  10520. else
  10521. ac_cv_prog_CXXCPP=$CXXCPP
  10522. fi
  10523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10524. $as_echo "$CXXCPP" >&6; }
  10525. ac_preproc_ok=false
  10526. for ac_cxx_preproc_warn_flag in '' yes
  10527. do
  10528. # Use a header file that comes with gcc, so configuring glibc
  10529. # with a fresh cross-compiler works.
  10530. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10531. # <limits.h> exists even on freestanding compilers.
  10532. # On the NeXT, cc -E runs the code through the compiler's parser,
  10533. # not just through cpp. "Syntax error" is here to catch this case.
  10534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10535. /* end confdefs.h. */
  10536. #ifdef __STDC__
  10537. # include <limits.h>
  10538. #else
  10539. # include <assert.h>
  10540. #endif
  10541. Syntax error
  10542. _ACEOF
  10543. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10544. else
  10545. # Broken: fails on valid input.
  10546. continue
  10547. fi
  10548. rm -f conftest.err conftest.i conftest.$ac_ext
  10549. # OK, works on sane cases. Now check whether nonexistent headers
  10550. # can be detected and how.
  10551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10552. /* end confdefs.h. */
  10553. #include <ac_nonexistent.h>
  10554. _ACEOF
  10555. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10556. # Broken: success on invalid input.
  10557. continue
  10558. else
  10559. # Passes both tests.
  10560. ac_preproc_ok=:
  10561. break
  10562. fi
  10563. rm -f conftest.err conftest.i conftest.$ac_ext
  10564. done
  10565. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10566. rm -f conftest.i conftest.err conftest.$ac_ext
  10567. if $ac_preproc_ok; then :
  10568. else
  10569. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10570. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10571. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10572. See \`config.log' for more details" "$LINENO" 5; }
  10573. fi
  10574. ac_ext=c
  10575. ac_cpp='$CPP $CPPFLAGS'
  10576. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10577. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10578. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10579. else
  10580. _lt_caught_CXX_error=yes
  10581. fi
  10582. ac_ext=cpp
  10583. ac_cpp='$CXXCPP $CPPFLAGS'
  10584. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10585. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10586. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10587. archive_cmds_need_lc_CXX=no
  10588. allow_undefined_flag_CXX=
  10589. always_export_symbols_CXX=no
  10590. archive_expsym_cmds_CXX=
  10591. compiler_needs_object_CXX=no
  10592. export_dynamic_flag_spec_CXX=
  10593. hardcode_direct_CXX=no
  10594. hardcode_direct_absolute_CXX=no
  10595. hardcode_libdir_flag_spec_CXX=
  10596. hardcode_libdir_separator_CXX=
  10597. hardcode_minus_L_CXX=no
  10598. hardcode_shlibpath_var_CXX=unsupported
  10599. hardcode_automatic_CXX=no
  10600. inherit_rpath_CXX=no
  10601. module_cmds_CXX=
  10602. module_expsym_cmds_CXX=
  10603. link_all_deplibs_CXX=unknown
  10604. old_archive_cmds_CXX=$old_archive_cmds
  10605. reload_flag_CXX=$reload_flag
  10606. reload_cmds_CXX=$reload_cmds
  10607. no_undefined_flag_CXX=
  10608. whole_archive_flag_spec_CXX=
  10609. enable_shared_with_static_runtimes_CXX=no
  10610. # Source file extension for C++ test sources.
  10611. ac_ext=cpp
  10612. # Object file extension for compiled C++ test sources.
  10613. objext=o
  10614. objext_CXX=$objext
  10615. # No sense in running all these tests if we already determined that
  10616. # the CXX compiler isn't working. Some variables (like enable_shared)
  10617. # are currently assumed to apply to all compilers on this platform,
  10618. # and will be corrupted by setting them based on a non-working compiler.
  10619. if test "$_lt_caught_CXX_error" != yes; then
  10620. # Code to be used in simple compile tests
  10621. lt_simple_compile_test_code="int some_variable = 0;"
  10622. # Code to be used in simple link tests
  10623. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10624. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10625. # If no C compiler was specified, use CC.
  10626. LTCC=${LTCC-"$CC"}
  10627. # If no C compiler flags were specified, use CFLAGS.
  10628. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10629. # Allow CC to be a program name with arguments.
  10630. compiler=$CC
  10631. # save warnings/boilerplate of simple test code
  10632. ac_outfile=conftest.$ac_objext
  10633. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10634. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10635. _lt_compiler_boilerplate=`cat conftest.err`
  10636. $RM conftest*
  10637. ac_outfile=conftest.$ac_objext
  10638. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10639. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10640. _lt_linker_boilerplate=`cat conftest.err`
  10641. $RM -r conftest*
  10642. # Allow CC to be a program name with arguments.
  10643. lt_save_CC=$CC
  10644. lt_save_CFLAGS=$CFLAGS
  10645. lt_save_LD=$LD
  10646. lt_save_GCC=$GCC
  10647. GCC=$GXX
  10648. lt_save_with_gnu_ld=$with_gnu_ld
  10649. lt_save_path_LD=$lt_cv_path_LD
  10650. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10651. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10652. else
  10653. $as_unset lt_cv_prog_gnu_ld
  10654. fi
  10655. if test -n "${lt_cv_path_LDCXX+set}"; then
  10656. lt_cv_path_LD=$lt_cv_path_LDCXX
  10657. else
  10658. $as_unset lt_cv_path_LD
  10659. fi
  10660. test -z "${LDCXX+set}" || LD=$LDCXX
  10661. CC=${CXX-"c++"}
  10662. CFLAGS=$CXXFLAGS
  10663. compiler=$CC
  10664. compiler_CXX=$CC
  10665. for cc_temp in $compiler""; do
  10666. case $cc_temp in
  10667. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10668. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10669. \-*) ;;
  10670. *) break;;
  10671. esac
  10672. done
  10673. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10674. if test -n "$compiler"; then
  10675. # We don't want -fno-exception when compiling C++ code, so set the
  10676. # no_builtin_flag separately
  10677. if test "$GXX" = yes; then
  10678. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10679. else
  10680. lt_prog_compiler_no_builtin_flag_CXX=
  10681. fi
  10682. if test "$GXX" = yes; then
  10683. # Set up default GNU C++ configuration
  10684. # Check whether --with-gnu-ld was given.
  10685. if test "${with_gnu_ld+set}" = set; then :
  10686. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10687. else
  10688. with_gnu_ld=no
  10689. fi
  10690. ac_prog=ld
  10691. if test "$GCC" = yes; then
  10692. # Check if gcc -print-prog-name=ld gives a path.
  10693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10694. $as_echo_n "checking for ld used by $CC... " >&6; }
  10695. case $host in
  10696. *-*-mingw*)
  10697. # gcc leaves a trailing carriage return which upsets mingw
  10698. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10699. *)
  10700. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10701. esac
  10702. case $ac_prog in
  10703. # Accept absolute paths.
  10704. [\\/]* | ?:[\\/]*)
  10705. re_direlt='/[^/][^/]*/\.\./'
  10706. # Canonicalize the pathname of ld
  10707. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10708. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10709. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10710. done
  10711. test -z "$LD" && LD="$ac_prog"
  10712. ;;
  10713. "")
  10714. # If it fails, then pretend we aren't using GCC.
  10715. ac_prog=ld
  10716. ;;
  10717. *)
  10718. # If it is relative, then search for the first ld in PATH.
  10719. with_gnu_ld=unknown
  10720. ;;
  10721. esac
  10722. elif test "$with_gnu_ld" = yes; then
  10723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10724. $as_echo_n "checking for GNU ld... " >&6; }
  10725. else
  10726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10727. $as_echo_n "checking for non-GNU ld... " >&6; }
  10728. fi
  10729. if ${lt_cv_path_LD+:} false; then :
  10730. $as_echo_n "(cached) " >&6
  10731. else
  10732. if test -z "$LD"; then
  10733. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10734. for ac_dir in $PATH; do
  10735. IFS="$lt_save_ifs"
  10736. test -z "$ac_dir" && ac_dir=.
  10737. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10738. lt_cv_path_LD="$ac_dir/$ac_prog"
  10739. # Check to see if the program is GNU ld. I'd rather use --version,
  10740. # but apparently some variants of GNU ld only accept -v.
  10741. # Break only if it was the GNU/non-GNU ld that we prefer.
  10742. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10743. *GNU* | *'with BFD'*)
  10744. test "$with_gnu_ld" != no && break
  10745. ;;
  10746. *)
  10747. test "$with_gnu_ld" != yes && break
  10748. ;;
  10749. esac
  10750. fi
  10751. done
  10752. IFS="$lt_save_ifs"
  10753. else
  10754. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10755. fi
  10756. fi
  10757. LD="$lt_cv_path_LD"
  10758. if test -n "$LD"; then
  10759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10760. $as_echo "$LD" >&6; }
  10761. else
  10762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10763. $as_echo "no" >&6; }
  10764. fi
  10765. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10767. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10768. if ${lt_cv_prog_gnu_ld+:} false; then :
  10769. $as_echo_n "(cached) " >&6
  10770. else
  10771. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10772. case `$LD -v 2>&1 </dev/null` in
  10773. *GNU* | *'with BFD'*)
  10774. lt_cv_prog_gnu_ld=yes
  10775. ;;
  10776. *)
  10777. lt_cv_prog_gnu_ld=no
  10778. ;;
  10779. esac
  10780. fi
  10781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10782. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10783. with_gnu_ld=$lt_cv_prog_gnu_ld
  10784. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10785. # archiving commands below assume that GNU ld is being used.
  10786. if test "$with_gnu_ld" = yes; then
  10787. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10788. archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10789. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10790. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10791. # If archive_cmds runs LD, not CC, wlarc should be empty
  10792. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10793. # investigate it a little bit more. (MM)
  10794. wlarc='${wl}'
  10795. # ancient GNU ld didn't support --whole-archive et. al.
  10796. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10797. $GREP 'no-whole-archive' > /dev/null; then
  10798. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10799. else
  10800. whole_archive_flag_spec_CXX=
  10801. fi
  10802. else
  10803. with_gnu_ld=no
  10804. wlarc=
  10805. # A generic and very simple default shared library creation
  10806. # command for GNU C++ for the case where it uses the native
  10807. # linker, instead of GNU ld. If possible, this setting should
  10808. # overridden to take advantage of the native linker features on
  10809. # the platform it is being used on.
  10810. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10811. fi
  10812. # Commands to make compiler produce verbose output that lists
  10813. # what "hidden" libraries, object files and flags are used when
  10814. # linking a shared library.
  10815. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10816. else
  10817. GXX=no
  10818. with_gnu_ld=no
  10819. wlarc=
  10820. fi
  10821. # PORTME: fill in a description of your system's C++ link characteristics
  10822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10823. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10824. ld_shlibs_CXX=yes
  10825. case $host_os in
  10826. aix3*)
  10827. # FIXME: insert proper C++ library support
  10828. ld_shlibs_CXX=no
  10829. ;;
  10830. aix[4-9]*)
  10831. if test "$host_cpu" = ia64; then
  10832. # On IA64, the linker does run time linking by default, so we don't
  10833. # have to do anything special.
  10834. aix_use_runtimelinking=no
  10835. exp_sym_flag='-Bexport'
  10836. no_entry_flag=""
  10837. else
  10838. aix_use_runtimelinking=no
  10839. # Test if we are trying to use run time linking or normal
  10840. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10841. # need to do runtime linking.
  10842. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10843. for ld_flag in $LDFLAGS; do
  10844. case $ld_flag in
  10845. *-brtl*)
  10846. aix_use_runtimelinking=yes
  10847. break
  10848. ;;
  10849. esac
  10850. done
  10851. ;;
  10852. esac
  10853. exp_sym_flag='-bexport'
  10854. no_entry_flag='-bnoentry'
  10855. fi
  10856. # When large executables or shared objects are built, AIX ld can
  10857. # have problems creating the table of contents. If linking a library
  10858. # or program results in "error TOC overflow" add -mminimal-toc to
  10859. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10860. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10861. archive_cmds_CXX=''
  10862. hardcode_direct_CXX=yes
  10863. hardcode_direct_absolute_CXX=yes
  10864. hardcode_libdir_separator_CXX=':'
  10865. link_all_deplibs_CXX=yes
  10866. file_list_spec_CXX='${wl}-f,'
  10867. if test "$GXX" = yes; then
  10868. case $host_os in aix4.[012]|aix4.[012].*)
  10869. # We only want to do this on AIX 4.2 and lower, the check
  10870. # below for broken collect2 doesn't work under 4.3+
  10871. collect2name=`${CC} -print-prog-name=collect2`
  10872. if test -f "$collect2name" &&
  10873. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10874. then
  10875. # We have reworked collect2
  10876. :
  10877. else
  10878. # We have old collect2
  10879. hardcode_direct_CXX=unsupported
  10880. # It fails to find uninstalled libraries when the uninstalled
  10881. # path is not listed in the libpath. Setting hardcode_minus_L
  10882. # to unsupported forces relinking
  10883. hardcode_minus_L_CXX=yes
  10884. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10885. hardcode_libdir_separator_CXX=
  10886. fi
  10887. esac
  10888. shared_flag='-shared'
  10889. if test "$aix_use_runtimelinking" = yes; then
  10890. shared_flag="$shared_flag "'${wl}-G'
  10891. fi
  10892. else
  10893. # not using gcc
  10894. if test "$host_cpu" = ia64; then
  10895. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10896. # chokes on -Wl,-G. The following line is correct:
  10897. shared_flag='-G'
  10898. else
  10899. if test "$aix_use_runtimelinking" = yes; then
  10900. shared_flag='${wl}-G'
  10901. else
  10902. shared_flag='${wl}-bM:SRE'
  10903. fi
  10904. fi
  10905. fi
  10906. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10907. # It seems that -bexpall does not export symbols beginning with
  10908. # underscore (_), so it is better to generate a list of symbols to
  10909. # export.
  10910. always_export_symbols_CXX=yes
  10911. if test "$aix_use_runtimelinking" = yes; then
  10912. # Warning - without using the other runtime loading flags (-brtl),
  10913. # -berok will link without error, but may produce a broken library.
  10914. allow_undefined_flag_CXX='-berok'
  10915. # Determine the default libpath from the value encoded in an empty
  10916. # executable.
  10917. if test "${lt_cv_aix_libpath+set}" = set; then
  10918. aix_libpath=$lt_cv_aix_libpath
  10919. else
  10920. if ${lt_cv_aix_libpath__CXX+:} false; then :
  10921. $as_echo_n "(cached) " >&6
  10922. else
  10923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10924. /* end confdefs.h. */
  10925. int
  10926. main ()
  10927. {
  10928. ;
  10929. return 0;
  10930. }
  10931. _ACEOF
  10932. if ac_fn_cxx_try_link "$LINENO"; then :
  10933. lt_aix_libpath_sed='
  10934. /Import File Strings/,/^$/ {
  10935. /^0/ {
  10936. s/^0 *\([^ ]*\) *$/\1/
  10937. p
  10938. }
  10939. }'
  10940. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10941. # Check for a 64-bit object if we didn't find anything.
  10942. if test -z "$lt_cv_aix_libpath__CXX"; then
  10943. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10944. fi
  10945. fi
  10946. rm -f core conftest.err conftest.$ac_objext \
  10947. conftest$ac_exeext conftest.$ac_ext
  10948. if test -z "$lt_cv_aix_libpath__CXX"; then
  10949. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  10950. fi
  10951. fi
  10952. aix_libpath=$lt_cv_aix_libpath__CXX
  10953. fi
  10954. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10955. archive_expsym_cmds_CXX='$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"
  10956. else
  10957. if test "$host_cpu" = ia64; then
  10958. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10959. allow_undefined_flag_CXX="-z nodefs"
  10960. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  10961. else
  10962. # Determine the default libpath from the value encoded in an
  10963. # empty executable.
  10964. if test "${lt_cv_aix_libpath+set}" = set; then
  10965. aix_libpath=$lt_cv_aix_libpath
  10966. else
  10967. if ${lt_cv_aix_libpath__CXX+:} false; then :
  10968. $as_echo_n "(cached) " >&6
  10969. else
  10970. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10971. /* end confdefs.h. */
  10972. int
  10973. main ()
  10974. {
  10975. ;
  10976. return 0;
  10977. }
  10978. _ACEOF
  10979. if ac_fn_cxx_try_link "$LINENO"; then :
  10980. lt_aix_libpath_sed='
  10981. /Import File Strings/,/^$/ {
  10982. /^0/ {
  10983. s/^0 *\([^ ]*\) *$/\1/
  10984. p
  10985. }
  10986. }'
  10987. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10988. # Check for a 64-bit object if we didn't find anything.
  10989. if test -z "$lt_cv_aix_libpath__CXX"; then
  10990. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10991. fi
  10992. fi
  10993. rm -f core conftest.err conftest.$ac_objext \
  10994. conftest$ac_exeext conftest.$ac_ext
  10995. if test -z "$lt_cv_aix_libpath__CXX"; then
  10996. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  10997. fi
  10998. fi
  10999. aix_libpath=$lt_cv_aix_libpath__CXX
  11000. fi
  11001. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11002. # Warning - without using the other run time loading flags,
  11003. # -berok will link without error, but may produce a broken library.
  11004. no_undefined_flag_CXX=' ${wl}-bernotok'
  11005. allow_undefined_flag_CXX=' ${wl}-berok'
  11006. if test "$with_gnu_ld" = yes; then
  11007. # We only use this code for GNU lds that support --whole-archive.
  11008. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11009. else
  11010. # Exported symbols can be pulled into shared objects from archives
  11011. whole_archive_flag_spec_CXX='$convenience'
  11012. fi
  11013. archive_cmds_need_lc_CXX=yes
  11014. # This is similar to how AIX traditionally builds its shared
  11015. # libraries.
  11016. archive_expsym_cmds_CXX="\$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'
  11017. fi
  11018. fi
  11019. ;;
  11020. beos*)
  11021. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11022. allow_undefined_flag_CXX=unsupported
  11023. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11024. # support --undefined. This deserves some investigation. FIXME
  11025. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11026. else
  11027. ld_shlibs_CXX=no
  11028. fi
  11029. ;;
  11030. chorus*)
  11031. case $cc_basename in
  11032. *)
  11033. # FIXME: insert proper C++ library support
  11034. ld_shlibs_CXX=no
  11035. ;;
  11036. esac
  11037. ;;
  11038. cygwin* | mingw* | pw32* | cegcc*)
  11039. case $GXX,$cc_basename in
  11040. ,cl* | no,cl*)
  11041. # Native MSVC
  11042. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11043. # no search path for DLLs.
  11044. hardcode_libdir_flag_spec_CXX=' '
  11045. allow_undefined_flag_CXX=unsupported
  11046. always_export_symbols_CXX=yes
  11047. file_list_spec_CXX='@'
  11048. # Tell ltmain to make .lib files, not .a files.
  11049. libext=lib
  11050. # Tell ltmain to make .dll files, not .so files.
  11051. shrext_cmds=".dll"
  11052. # FIXME: Setting linknames here is a bad hack.
  11053. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11054. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11055. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11056. else
  11057. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11058. fi~
  11059. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11060. linknames='
  11061. # The linker will not automatically build a static lib if we build a DLL.
  11062. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11063. enable_shared_with_static_runtimes_CXX=yes
  11064. # Don't use ranlib
  11065. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11066. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11067. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11068. case $lt_outputfile in
  11069. *.exe|*.EXE) ;;
  11070. *)
  11071. lt_outputfile="$lt_outputfile.exe"
  11072. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11073. ;;
  11074. esac~
  11075. func_to_tool_file "$lt_outputfile"~
  11076. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11077. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11078. $RM "$lt_outputfile.manifest";
  11079. fi'
  11080. ;;
  11081. *)
  11082. # g++
  11083. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11084. # as there is no search path for DLLs.
  11085. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11086. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11087. allow_undefined_flag_CXX=unsupported
  11088. always_export_symbols_CXX=no
  11089. enable_shared_with_static_runtimes_CXX=yes
  11090. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11091. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11092. # If the export-symbols file already is a .def file (1st line
  11093. # is EXPORTS), use it as is; otherwise, prepend...
  11094. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11095. cp $export_symbols $output_objdir/$soname.def;
  11096. else
  11097. echo EXPORTS > $output_objdir/$soname.def;
  11098. cat $export_symbols >> $output_objdir/$soname.def;
  11099. fi~
  11100. $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11101. else
  11102. ld_shlibs_CXX=no
  11103. fi
  11104. ;;
  11105. esac
  11106. ;;
  11107. darwin* | rhapsody*)
  11108. archive_cmds_need_lc_CXX=no
  11109. hardcode_direct_CXX=no
  11110. hardcode_automatic_CXX=yes
  11111. hardcode_shlibpath_var_CXX=unsupported
  11112. if test "$lt_cv_ld_force_load" = "yes"; then
  11113. whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  11114. else
  11115. whole_archive_flag_spec_CXX=''
  11116. fi
  11117. link_all_deplibs_CXX=yes
  11118. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11119. case $cc_basename in
  11120. ifort*) _lt_dar_can_shared=yes ;;
  11121. *) _lt_dar_can_shared=$GCC ;;
  11122. esac
  11123. if test "$_lt_dar_can_shared" = "yes"; then
  11124. output_verbose_link_cmd=func_echo_all
  11125. archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  11126. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11127. archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  11128. module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  11129. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11130. archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
  11131. archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
  11132. fi
  11133. else
  11134. ld_shlibs_CXX=no
  11135. fi
  11136. ;;
  11137. dgux*)
  11138. case $cc_basename in
  11139. ec++*)
  11140. # FIXME: insert proper C++ library support
  11141. ld_shlibs_CXX=no
  11142. ;;
  11143. ghcx*)
  11144. # Green Hills C++ Compiler
  11145. # FIXME: insert proper C++ library support
  11146. ld_shlibs_CXX=no
  11147. ;;
  11148. *)
  11149. # FIXME: insert proper C++ library support
  11150. ld_shlibs_CXX=no
  11151. ;;
  11152. esac
  11153. ;;
  11154. freebsd2.*)
  11155. # C++ shared libraries reported to be fairly broken before
  11156. # switch to ELF
  11157. ld_shlibs_CXX=no
  11158. ;;
  11159. freebsd-elf*)
  11160. archive_cmds_need_lc_CXX=no
  11161. ;;
  11162. freebsd* | dragonfly*)
  11163. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11164. # conventions
  11165. ld_shlibs_CXX=yes
  11166. ;;
  11167. gnu*)
  11168. ;;
  11169. haiku*)
  11170. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11171. link_all_deplibs_CXX=yes
  11172. ;;
  11173. hpux9*)
  11174. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11175. hardcode_libdir_separator_CXX=:
  11176. export_dynamic_flag_spec_CXX='${wl}-E'
  11177. hardcode_direct_CXX=yes
  11178. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11179. # but as the default
  11180. # location of the library.
  11181. case $cc_basename in
  11182. CC*)
  11183. # FIXME: insert proper C++ library support
  11184. ld_shlibs_CXX=no
  11185. ;;
  11186. aCC*)
  11187. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  11188. # Commands to make compiler produce verbose output that lists
  11189. # what "hidden" libraries, object files and flags are used when
  11190. # linking a shared library.
  11191. #
  11192. # There doesn't appear to be a way to prevent this compiler from
  11193. # explicitly linking system object files so we need to strip them
  11194. # from the output so that they don't get included in the library
  11195. # dependencies.
  11196. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11197. ;;
  11198. *)
  11199. if test "$GXX" = yes; then
  11200. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  11201. else
  11202. # FIXME: insert proper C++ library support
  11203. ld_shlibs_CXX=no
  11204. fi
  11205. ;;
  11206. esac
  11207. ;;
  11208. hpux10*|hpux11*)
  11209. if test $with_gnu_ld = no; then
  11210. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11211. hardcode_libdir_separator_CXX=:
  11212. case $host_cpu in
  11213. hppa*64*|ia64*)
  11214. ;;
  11215. *)
  11216. export_dynamic_flag_spec_CXX='${wl}-E'
  11217. ;;
  11218. esac
  11219. fi
  11220. case $host_cpu in
  11221. hppa*64*|ia64*)
  11222. hardcode_direct_CXX=no
  11223. hardcode_shlibpath_var_CXX=no
  11224. ;;
  11225. *)
  11226. hardcode_direct_CXX=yes
  11227. hardcode_direct_absolute_CXX=yes
  11228. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11229. # but as the default
  11230. # location of the library.
  11231. ;;
  11232. esac
  11233. case $cc_basename in
  11234. CC*)
  11235. # FIXME: insert proper C++ library support
  11236. ld_shlibs_CXX=no
  11237. ;;
  11238. aCC*)
  11239. case $host_cpu in
  11240. hppa*64*)
  11241. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11242. ;;
  11243. ia64*)
  11244. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11245. ;;
  11246. *)
  11247. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11248. ;;
  11249. esac
  11250. # Commands to make compiler produce verbose output that lists
  11251. # what "hidden" libraries, object files and flags are used when
  11252. # linking a shared library.
  11253. #
  11254. # There doesn't appear to be a way to prevent this compiler from
  11255. # explicitly linking system object files so we need to strip them
  11256. # from the output so that they don't get included in the library
  11257. # dependencies.
  11258. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11259. ;;
  11260. *)
  11261. if test "$GXX" = yes; then
  11262. if test $with_gnu_ld = no; then
  11263. case $host_cpu in
  11264. hppa*64*)
  11265. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11266. ;;
  11267. ia64*)
  11268. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11269. ;;
  11270. *)
  11271. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11272. ;;
  11273. esac
  11274. fi
  11275. else
  11276. # FIXME: insert proper C++ library support
  11277. ld_shlibs_CXX=no
  11278. fi
  11279. ;;
  11280. esac
  11281. ;;
  11282. interix[3-9]*)
  11283. hardcode_direct_CXX=no
  11284. hardcode_shlibpath_var_CXX=no
  11285. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11286. export_dynamic_flag_spec_CXX='${wl}-E'
  11287. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11288. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11289. # default) and relocated if they conflict, which is a slow very memory
  11290. # consuming and fragmenting process. To avoid this, we pick a random,
  11291. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11292. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11293. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  11294. archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  11295. ;;
  11296. irix5* | irix6*)
  11297. case $cc_basename in
  11298. CC*)
  11299. # SGI C++
  11300. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11301. # Archives containing C++ object files must be created using
  11302. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11303. # necessary to make sure instantiated templates are included
  11304. # in the archive.
  11305. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11306. ;;
  11307. *)
  11308. if test "$GXX" = yes; then
  11309. if test "$with_gnu_ld" = no; then
  11310. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11311. else
  11312. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
  11313. fi
  11314. fi
  11315. link_all_deplibs_CXX=yes
  11316. ;;
  11317. esac
  11318. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11319. hardcode_libdir_separator_CXX=:
  11320. inherit_rpath_CXX=yes
  11321. ;;
  11322. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11323. case $cc_basename in
  11324. KCC*)
  11325. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11326. # KCC will only create a shared library if the output file
  11327. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11328. # to its proper name (with version) after linking.
  11329. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  11330. archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  11331. # Commands to make compiler produce verbose output that lists
  11332. # what "hidden" libraries, object files and flags are used when
  11333. # linking a shared library.
  11334. #
  11335. # There doesn't appear to be a way to prevent this compiler from
  11336. # explicitly linking system object files so we need to strip them
  11337. # from the output so that they don't get included in the library
  11338. # dependencies.
  11339. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11340. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11341. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11342. # Archives containing C++ object files must be created using
  11343. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11344. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11345. ;;
  11346. icpc* | ecpc* )
  11347. # Intel C++
  11348. with_gnu_ld=yes
  11349. # version 8.0 and above of icpc choke on multiply defined symbols
  11350. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11351. # earlier do not add the objects themselves.
  11352. case `$CC -V 2>&1` in
  11353. *"Version 7."*)
  11354. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11355. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11356. ;;
  11357. *) # Version 8.0 or newer
  11358. tmp_idyn=
  11359. case $host_cpu in
  11360. ia64*) tmp_idyn=' -i_dynamic';;
  11361. esac
  11362. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11363. archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11364. ;;
  11365. esac
  11366. archive_cmds_need_lc_CXX=no
  11367. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11368. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11369. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11370. ;;
  11371. pgCC* | pgcpp*)
  11372. # Portland Group C++ compiler
  11373. case `$CC -V` in
  11374. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11375. prelink_cmds_CXX='tpldir=Template.dir~
  11376. rm -rf $tpldir~
  11377. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11378. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11379. old_archive_cmds_CXX='tpldir=Template.dir~
  11380. rm -rf $tpldir~
  11381. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11382. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11383. $RANLIB $oldlib'
  11384. archive_cmds_CXX='tpldir=Template.dir~
  11385. rm -rf $tpldir~
  11386. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11387. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11388. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11389. rm -rf $tpldir~
  11390. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11391. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  11392. ;;
  11393. *) # Version 6 and above use weak symbols
  11394. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11395. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  11396. ;;
  11397. esac
  11398. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11399. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11400. whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  11401. ;;
  11402. cxx*)
  11403. # Compaq C++
  11404. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11405. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  11406. runpath_var=LD_RUN_PATH
  11407. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11408. hardcode_libdir_separator_CXX=:
  11409. # Commands to make compiler produce verbose output that lists
  11410. # what "hidden" libraries, object files and flags are used when
  11411. # linking a shared library.
  11412. #
  11413. # There doesn't appear to be a way to prevent this compiler from
  11414. # explicitly linking system object files so we need to strip them
  11415. # from the output so that they don't get included in the library
  11416. # dependencies.
  11417. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
  11418. ;;
  11419. xl* | mpixl* | bgxl*)
  11420. # IBM XL 8.0 on PPC, with GNU ld
  11421. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11422. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11423. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11424. if test "x$supports_anon_versioning" = xyes; then
  11425. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11426. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11427. echo "local: *; };" >> $output_objdir/$libname.ver~
  11428. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11429. fi
  11430. ;;
  11431. *)
  11432. case `$CC -V 2>&1 | sed 5q` in
  11433. *Sun\ C*)
  11434. # Sun C++ 5.9
  11435. no_undefined_flag_CXX=' -zdefs'
  11436. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11437. archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  11438. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11439. whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  11440. compiler_needs_object_CXX=yes
  11441. # Not sure whether something based on
  11442. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11443. # would be better.
  11444. output_verbose_link_cmd='func_echo_all'
  11445. # Archives containing C++ object files must be created using
  11446. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11447. # necessary to make sure instantiated templates are included
  11448. # in the archive.
  11449. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11450. ;;
  11451. esac
  11452. ;;
  11453. esac
  11454. ;;
  11455. lynxos*)
  11456. # FIXME: insert proper C++ library support
  11457. ld_shlibs_CXX=no
  11458. ;;
  11459. m88k*)
  11460. # FIXME: insert proper C++ library support
  11461. ld_shlibs_CXX=no
  11462. ;;
  11463. mvs*)
  11464. case $cc_basename in
  11465. cxx*)
  11466. # FIXME: insert proper C++ library support
  11467. ld_shlibs_CXX=no
  11468. ;;
  11469. *)
  11470. # FIXME: insert proper C++ library support
  11471. ld_shlibs_CXX=no
  11472. ;;
  11473. esac
  11474. ;;
  11475. netbsd*)
  11476. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11477. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11478. wlarc=
  11479. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11480. hardcode_direct_CXX=yes
  11481. hardcode_shlibpath_var_CXX=no
  11482. fi
  11483. # Workaround some broken pre-1.5 toolchains
  11484. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11485. ;;
  11486. *nto* | *qnx*)
  11487. ld_shlibs_CXX=yes
  11488. ;;
  11489. openbsd2*)
  11490. # C++ shared libraries are fairly broken
  11491. ld_shlibs_CXX=no
  11492. ;;
  11493. openbsd*)
  11494. if test -f /usr/libexec/ld.so; then
  11495. hardcode_direct_CXX=yes
  11496. hardcode_shlibpath_var_CXX=no
  11497. hardcode_direct_absolute_CXX=yes
  11498. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11499. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11500. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11501. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11502. export_dynamic_flag_spec_CXX='${wl}-E'
  11503. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11504. fi
  11505. output_verbose_link_cmd=func_echo_all
  11506. else
  11507. ld_shlibs_CXX=no
  11508. fi
  11509. ;;
  11510. osf3* | osf4* | osf5*)
  11511. case $cc_basename in
  11512. KCC*)
  11513. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11514. # KCC will only create a shared library if the output file
  11515. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11516. # to its proper name (with version) after linking.
  11517. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  11518. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11519. hardcode_libdir_separator_CXX=:
  11520. # Archives containing C++ object files must be created using
  11521. # the KAI C++ compiler.
  11522. case $host in
  11523. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11524. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11525. esac
  11526. ;;
  11527. RCC*)
  11528. # Rational C++ 2.4.1
  11529. # FIXME: insert proper C++ library support
  11530. ld_shlibs_CXX=no
  11531. ;;
  11532. cxx*)
  11533. case $host in
  11534. osf3*)
  11535. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11536. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11537. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11538. ;;
  11539. *)
  11540. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11541. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11542. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11543. echo "-hidden">> $lib.exp~
  11544. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
  11545. $RM $lib.exp'
  11546. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11547. ;;
  11548. esac
  11549. hardcode_libdir_separator_CXX=:
  11550. # Commands to make compiler produce verbose output that lists
  11551. # what "hidden" libraries, object files and flags are used when
  11552. # linking a shared library.
  11553. #
  11554. # There doesn't appear to be a way to prevent this compiler from
  11555. # explicitly linking system object files so we need to strip them
  11556. # from the output so that they don't get included in the library
  11557. # dependencies.
  11558. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11559. ;;
  11560. *)
  11561. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11562. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11563. case $host in
  11564. osf3*)
  11565. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11566. ;;
  11567. *)
  11568. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11569. ;;
  11570. esac
  11571. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11572. hardcode_libdir_separator_CXX=:
  11573. # Commands to make compiler produce verbose output that lists
  11574. # what "hidden" libraries, object files and flags are used when
  11575. # linking a shared library.
  11576. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11577. else
  11578. # FIXME: insert proper C++ library support
  11579. ld_shlibs_CXX=no
  11580. fi
  11581. ;;
  11582. esac
  11583. ;;
  11584. psos*)
  11585. # FIXME: insert proper C++ library support
  11586. ld_shlibs_CXX=no
  11587. ;;
  11588. sunos4*)
  11589. case $cc_basename in
  11590. CC*)
  11591. # Sun C++ 4.x
  11592. # FIXME: insert proper C++ library support
  11593. ld_shlibs_CXX=no
  11594. ;;
  11595. lcc*)
  11596. # Lucid
  11597. # FIXME: insert proper C++ library support
  11598. ld_shlibs_CXX=no
  11599. ;;
  11600. *)
  11601. # FIXME: insert proper C++ library support
  11602. ld_shlibs_CXX=no
  11603. ;;
  11604. esac
  11605. ;;
  11606. solaris*)
  11607. case $cc_basename in
  11608. CC* | sunCC*)
  11609. # Sun C++ 4.2, 5.x and Centerline C++
  11610. archive_cmds_need_lc_CXX=yes
  11611. no_undefined_flag_CXX=' -zdefs'
  11612. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11613. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11614. $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11615. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11616. hardcode_shlibpath_var_CXX=no
  11617. case $host_os in
  11618. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11619. *)
  11620. # The compiler driver will combine and reorder linker options,
  11621. # but understands `-z linker_flag'.
  11622. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11623. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11624. ;;
  11625. esac
  11626. link_all_deplibs_CXX=yes
  11627. output_verbose_link_cmd='func_echo_all'
  11628. # Archives containing C++ object files must be created using
  11629. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11630. # necessary to make sure instantiated templates are included
  11631. # in the archive.
  11632. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11633. ;;
  11634. gcx*)
  11635. # Green Hills C++ Compiler
  11636. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11637. # The C++ compiler must be used to create the archive.
  11638. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11639. ;;
  11640. *)
  11641. # GNU C++ compiler with Solaris linker
  11642. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11643. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11644. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11645. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11646. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11647. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11648. # Commands to make compiler produce verbose output that lists
  11649. # what "hidden" libraries, object files and flags are used when
  11650. # linking a shared library.
  11651. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11652. else
  11653. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11654. # platform.
  11655. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11656. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11657. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11658. # Commands to make compiler produce verbose output that lists
  11659. # what "hidden" libraries, object files and flags are used when
  11660. # linking a shared library.
  11661. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11662. fi
  11663. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11664. case $host_os in
  11665. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11666. *)
  11667. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11668. ;;
  11669. esac
  11670. fi
  11671. ;;
  11672. esac
  11673. ;;
  11674. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11675. no_undefined_flag_CXX='${wl}-z,text'
  11676. archive_cmds_need_lc_CXX=no
  11677. hardcode_shlibpath_var_CXX=no
  11678. runpath_var='LD_RUN_PATH'
  11679. case $cc_basename in
  11680. CC*)
  11681. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11682. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11683. ;;
  11684. *)
  11685. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11686. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11687. ;;
  11688. esac
  11689. ;;
  11690. sysv5* | sco3.2v5* | sco5v6*)
  11691. # Note: We can NOT use -z defs as we might desire, because we do not
  11692. # link with -lc, and that would cause any symbols used from libc to
  11693. # always be unresolved, which means just about no library would
  11694. # ever link correctly. If we're not using GNU ld we use -z text
  11695. # though, which does catch some bad symbols but isn't as heavy-handed
  11696. # as -z defs.
  11697. no_undefined_flag_CXX='${wl}-z,text'
  11698. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11699. archive_cmds_need_lc_CXX=no
  11700. hardcode_shlibpath_var_CXX=no
  11701. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11702. hardcode_libdir_separator_CXX=':'
  11703. link_all_deplibs_CXX=yes
  11704. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11705. runpath_var='LD_RUN_PATH'
  11706. case $cc_basename in
  11707. CC*)
  11708. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11709. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11710. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11711. '"$old_archive_cmds_CXX"
  11712. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11713. '"$reload_cmds_CXX"
  11714. ;;
  11715. *)
  11716. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11717. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11718. ;;
  11719. esac
  11720. ;;
  11721. tandem*)
  11722. case $cc_basename in
  11723. NCC*)
  11724. # NonStop-UX NCC 3.20
  11725. # FIXME: insert proper C++ library support
  11726. ld_shlibs_CXX=no
  11727. ;;
  11728. *)
  11729. # FIXME: insert proper C++ library support
  11730. ld_shlibs_CXX=no
  11731. ;;
  11732. esac
  11733. ;;
  11734. vxworks*)
  11735. # FIXME: insert proper C++ library support
  11736. ld_shlibs_CXX=no
  11737. ;;
  11738. *)
  11739. # FIXME: insert proper C++ library support
  11740. ld_shlibs_CXX=no
  11741. ;;
  11742. esac
  11743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11744. $as_echo "$ld_shlibs_CXX" >&6; }
  11745. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11746. GCC_CXX="$GXX"
  11747. LD_CXX="$LD"
  11748. ## CAVEAT EMPTOR:
  11749. ## There is no encapsulation within the following macros, do not change
  11750. ## the running order or otherwise move them around unless you know exactly
  11751. ## what you are doing...
  11752. # Dependencies to place before and after the object being linked:
  11753. predep_objects_CXX=
  11754. postdep_objects_CXX=
  11755. predeps_CXX=
  11756. postdeps_CXX=
  11757. compiler_lib_search_path_CXX=
  11758. cat > conftest.$ac_ext <<_LT_EOF
  11759. class Foo
  11760. {
  11761. public:
  11762. Foo (void) { a = 0; }
  11763. private:
  11764. int a;
  11765. };
  11766. _LT_EOF
  11767. _lt_libdeps_save_CFLAGS=$CFLAGS
  11768. case "$CC $CFLAGS " in #(
  11769. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11770. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11771. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  11772. esac
  11773. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11774. (eval $ac_compile) 2>&5
  11775. ac_status=$?
  11776. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11777. test $ac_status = 0; }; then
  11778. # Parse the compiler output and extract the necessary
  11779. # objects, libraries and library flags.
  11780. # Sentinel used to keep track of whether or not we are before
  11781. # the conftest object file.
  11782. pre_test_object_deps_done=no
  11783. for p in `eval "$output_verbose_link_cmd"`; do
  11784. case ${prev}${p} in
  11785. -L* | -R* | -l*)
  11786. # Some compilers place space between "-{L,R}" and the path.
  11787. # Remove the space.
  11788. if test $p = "-L" ||
  11789. test $p = "-R"; then
  11790. prev=$p
  11791. continue
  11792. fi
  11793. # Expand the sysroot to ease extracting the directories later.
  11794. if test -z "$prev"; then
  11795. case $p in
  11796. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11797. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11798. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11799. esac
  11800. fi
  11801. case $p in
  11802. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  11803. esac
  11804. if test "$pre_test_object_deps_done" = no; then
  11805. case ${prev} in
  11806. -L | -R)
  11807. # Internal compiler library paths should come after those
  11808. # provided the user. The postdeps already come after the
  11809. # user supplied libs so there is no need to process them.
  11810. if test -z "$compiler_lib_search_path_CXX"; then
  11811. compiler_lib_search_path_CXX="${prev}${p}"
  11812. else
  11813. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11814. fi
  11815. ;;
  11816. # The "-l" case would never come before the object being
  11817. # linked, so don't bother handling this case.
  11818. esac
  11819. else
  11820. if test -z "$postdeps_CXX"; then
  11821. postdeps_CXX="${prev}${p}"
  11822. else
  11823. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11824. fi
  11825. fi
  11826. prev=
  11827. ;;
  11828. *.lto.$objext) ;; # Ignore GCC LTO objects
  11829. *.$objext)
  11830. # This assumes that the test object file only shows up
  11831. # once in the compiler output.
  11832. if test "$p" = "conftest.$objext"; then
  11833. pre_test_object_deps_done=yes
  11834. continue
  11835. fi
  11836. if test "$pre_test_object_deps_done" = no; then
  11837. if test -z "$predep_objects_CXX"; then
  11838. predep_objects_CXX="$p"
  11839. else
  11840. predep_objects_CXX="$predep_objects_CXX $p"
  11841. fi
  11842. else
  11843. if test -z "$postdep_objects_CXX"; then
  11844. postdep_objects_CXX="$p"
  11845. else
  11846. postdep_objects_CXX="$postdep_objects_CXX $p"
  11847. fi
  11848. fi
  11849. ;;
  11850. *) ;; # Ignore the rest.
  11851. esac
  11852. done
  11853. # Clean up.
  11854. rm -f a.out a.exe
  11855. else
  11856. echo "libtool.m4: error: problem compiling CXX test program"
  11857. fi
  11858. $RM -f confest.$objext
  11859. CFLAGS=$_lt_libdeps_save_CFLAGS
  11860. # PORTME: override above test on systems where it is broken
  11861. case $host_os in
  11862. interix[3-9]*)
  11863. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11864. # hack all around it, let's just trust "g++" to DTRT.
  11865. predep_objects_CXX=
  11866. postdep_objects_CXX=
  11867. postdeps_CXX=
  11868. ;;
  11869. linux*)
  11870. case `$CC -V 2>&1 | sed 5q` in
  11871. *Sun\ C*)
  11872. # Sun C++ 5.9
  11873. # The more standards-conforming stlport4 library is
  11874. # incompatible with the Cstd library. Avoid specifying
  11875. # it if it's in CXXFLAGS. Ignore libCrun as
  11876. # -library=stlport4 depends on it.
  11877. case " $CXX $CXXFLAGS " in
  11878. *" -library=stlport4 "*)
  11879. solaris_use_stlport4=yes
  11880. ;;
  11881. esac
  11882. if test "$solaris_use_stlport4" != yes; then
  11883. postdeps_CXX='-library=Cstd -library=Crun'
  11884. fi
  11885. ;;
  11886. esac
  11887. ;;
  11888. solaris*)
  11889. case $cc_basename in
  11890. CC* | sunCC*)
  11891. # The more standards-conforming stlport4 library is
  11892. # incompatible with the Cstd library. Avoid specifying
  11893. # it if it's in CXXFLAGS. Ignore libCrun as
  11894. # -library=stlport4 depends on it.
  11895. case " $CXX $CXXFLAGS " in
  11896. *" -library=stlport4 "*)
  11897. solaris_use_stlport4=yes
  11898. ;;
  11899. esac
  11900. # Adding this requires a known-good setup of shared libraries for
  11901. # Sun compiler versions before 5.6, else PIC objects from an old
  11902. # archive will be linked into the output, leading to subtle bugs.
  11903. if test "$solaris_use_stlport4" != yes; then
  11904. postdeps_CXX='-library=Cstd -library=Crun'
  11905. fi
  11906. ;;
  11907. esac
  11908. ;;
  11909. esac
  11910. case " $postdeps_CXX " in
  11911. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11912. esac
  11913. compiler_lib_search_dirs_CXX=
  11914. if test -n "${compiler_lib_search_path_CXX}"; then
  11915. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11916. fi
  11917. lt_prog_compiler_wl_CXX=
  11918. lt_prog_compiler_pic_CXX=
  11919. lt_prog_compiler_static_CXX=
  11920. # C++ specific cases for pic, static, wl, etc.
  11921. if test "$GXX" = yes; then
  11922. lt_prog_compiler_wl_CXX='-Wl,'
  11923. lt_prog_compiler_static_CXX='-static'
  11924. case $host_os in
  11925. aix*)
  11926. # All AIX code is PIC.
  11927. if test "$host_cpu" = ia64; then
  11928. # AIX 5 now supports IA64 processor
  11929. lt_prog_compiler_static_CXX='-Bstatic'
  11930. fi
  11931. ;;
  11932. amigaos*)
  11933. case $host_cpu in
  11934. powerpc)
  11935. # see comment about AmigaOS4 .so support
  11936. lt_prog_compiler_pic_CXX='-fPIC'
  11937. ;;
  11938. m68k)
  11939. # FIXME: we need at least 68020 code to build shared libraries, but
  11940. # adding the `-m68020' flag to GCC prevents building anything better,
  11941. # like `-m68040'.
  11942. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11943. ;;
  11944. esac
  11945. ;;
  11946. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11947. # PIC is the default for these OSes.
  11948. ;;
  11949. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11950. # This hack is so that the source file can tell whether it is being
  11951. # built for inclusion in a dll (and should export symbols for example).
  11952. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11953. # (--disable-auto-import) libraries
  11954. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11955. ;;
  11956. darwin* | rhapsody*)
  11957. # PIC is the default on this platform
  11958. # Common symbols not allowed in MH_DYLIB files
  11959. lt_prog_compiler_pic_CXX='-fno-common'
  11960. ;;
  11961. *djgpp*)
  11962. # DJGPP does not support shared libraries at all
  11963. lt_prog_compiler_pic_CXX=
  11964. ;;
  11965. haiku*)
  11966. # PIC is the default for Haiku.
  11967. # The "-static" flag exists, but is broken.
  11968. lt_prog_compiler_static_CXX=
  11969. ;;
  11970. interix[3-9]*)
  11971. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11972. # Instead, we relocate shared libraries at runtime.
  11973. ;;
  11974. sysv4*MP*)
  11975. if test -d /usr/nec; then
  11976. lt_prog_compiler_pic_CXX=-Kconform_pic
  11977. fi
  11978. ;;
  11979. hpux*)
  11980. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11981. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  11982. # sets the default TLS model and affects inlining.
  11983. case $host_cpu in
  11984. hppa*64*)
  11985. ;;
  11986. *)
  11987. lt_prog_compiler_pic_CXX='-fPIC'
  11988. ;;
  11989. esac
  11990. ;;
  11991. *qnx* | *nto*)
  11992. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11993. # it will coredump.
  11994. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11995. ;;
  11996. *)
  11997. lt_prog_compiler_pic_CXX='-fPIC'
  11998. ;;
  11999. esac
  12000. else
  12001. case $host_os in
  12002. aix[4-9]*)
  12003. # All AIX code is PIC.
  12004. if test "$host_cpu" = ia64; then
  12005. # AIX 5 now supports IA64 processor
  12006. lt_prog_compiler_static_CXX='-Bstatic'
  12007. else
  12008. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12009. fi
  12010. ;;
  12011. chorus*)
  12012. case $cc_basename in
  12013. cxch68*)
  12014. # Green Hills C++ Compiler
  12015. # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  12016. ;;
  12017. esac
  12018. ;;
  12019. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12020. # This hack is so that the source file can tell whether it is being
  12021. # built for inclusion in a dll (and should export symbols for example).
  12022. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12023. ;;
  12024. dgux*)
  12025. case $cc_basename in
  12026. ec++*)
  12027. lt_prog_compiler_pic_CXX='-KPIC'
  12028. ;;
  12029. ghcx*)
  12030. # Green Hills C++ Compiler
  12031. lt_prog_compiler_pic_CXX='-pic'
  12032. ;;
  12033. *)
  12034. ;;
  12035. esac
  12036. ;;
  12037. freebsd* | dragonfly*)
  12038. # FreeBSD uses GNU C++
  12039. ;;
  12040. hpux9* | hpux10* | hpux11*)
  12041. case $cc_basename in
  12042. CC*)
  12043. lt_prog_compiler_wl_CXX='-Wl,'
  12044. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12045. if test "$host_cpu" != ia64; then
  12046. lt_prog_compiler_pic_CXX='+Z'
  12047. fi
  12048. ;;
  12049. aCC*)
  12050. lt_prog_compiler_wl_CXX='-Wl,'
  12051. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12052. case $host_cpu in
  12053. hppa*64*|ia64*)
  12054. # +Z the default
  12055. ;;
  12056. *)
  12057. lt_prog_compiler_pic_CXX='+Z'
  12058. ;;
  12059. esac
  12060. ;;
  12061. *)
  12062. ;;
  12063. esac
  12064. ;;
  12065. interix*)
  12066. # This is c89, which is MS Visual C++ (no shared libs)
  12067. # Anyone wants to do a port?
  12068. ;;
  12069. irix5* | irix6* | nonstopux*)
  12070. case $cc_basename in
  12071. CC*)
  12072. lt_prog_compiler_wl_CXX='-Wl,'
  12073. lt_prog_compiler_static_CXX='-non_shared'
  12074. # CC pic flag -KPIC is the default.
  12075. ;;
  12076. *)
  12077. ;;
  12078. esac
  12079. ;;
  12080. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12081. case $cc_basename in
  12082. KCC*)
  12083. # KAI C++ Compiler
  12084. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12085. lt_prog_compiler_pic_CXX='-fPIC'
  12086. ;;
  12087. ecpc* )
  12088. # old Intel C++ for x86_64 which still supported -KPIC.
  12089. lt_prog_compiler_wl_CXX='-Wl,'
  12090. lt_prog_compiler_pic_CXX='-KPIC'
  12091. lt_prog_compiler_static_CXX='-static'
  12092. ;;
  12093. icpc* )
  12094. # Intel C++, used to be incompatible with GCC.
  12095. # ICC 10 doesn't accept -KPIC any more.
  12096. lt_prog_compiler_wl_CXX='-Wl,'
  12097. lt_prog_compiler_pic_CXX='-fPIC'
  12098. lt_prog_compiler_static_CXX='-static'
  12099. ;;
  12100. pgCC* | pgcpp*)
  12101. # Portland Group C++ compiler
  12102. lt_prog_compiler_wl_CXX='-Wl,'
  12103. lt_prog_compiler_pic_CXX='-fpic'
  12104. lt_prog_compiler_static_CXX='-Bstatic'
  12105. ;;
  12106. cxx*)
  12107. # Compaq C++
  12108. # Make sure the PIC flag is empty. It appears that all Alpha
  12109. # Linux and Compaq Tru64 Unix objects are PIC.
  12110. lt_prog_compiler_pic_CXX=
  12111. lt_prog_compiler_static_CXX='-non_shared'
  12112. ;;
  12113. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12114. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12115. lt_prog_compiler_wl_CXX='-Wl,'
  12116. lt_prog_compiler_pic_CXX='-qpic'
  12117. lt_prog_compiler_static_CXX='-qstaticlink'
  12118. ;;
  12119. *)
  12120. case `$CC -V 2>&1 | sed 5q` in
  12121. *Sun\ C*)
  12122. # Sun C++ 5.9
  12123. lt_prog_compiler_pic_CXX='-KPIC'
  12124. lt_prog_compiler_static_CXX='-Bstatic'
  12125. lt_prog_compiler_wl_CXX='-Qoption ld '
  12126. ;;
  12127. esac
  12128. ;;
  12129. esac
  12130. ;;
  12131. lynxos*)
  12132. ;;
  12133. m88k*)
  12134. ;;
  12135. mvs*)
  12136. case $cc_basename in
  12137. cxx*)
  12138. lt_prog_compiler_pic_CXX='-W c,exportall'
  12139. ;;
  12140. *)
  12141. ;;
  12142. esac
  12143. ;;
  12144. netbsd*)
  12145. ;;
  12146. *qnx* | *nto*)
  12147. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12148. # it will coredump.
  12149. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12150. ;;
  12151. osf3* | osf4* | osf5*)
  12152. case $cc_basename in
  12153. KCC*)
  12154. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12155. ;;
  12156. RCC*)
  12157. # Rational C++ 2.4.1
  12158. lt_prog_compiler_pic_CXX='-pic'
  12159. ;;
  12160. cxx*)
  12161. # Digital/Compaq C++
  12162. lt_prog_compiler_wl_CXX='-Wl,'
  12163. # Make sure the PIC flag is empty. It appears that all Alpha
  12164. # Linux and Compaq Tru64 Unix objects are PIC.
  12165. lt_prog_compiler_pic_CXX=
  12166. lt_prog_compiler_static_CXX='-non_shared'
  12167. ;;
  12168. *)
  12169. ;;
  12170. esac
  12171. ;;
  12172. psos*)
  12173. ;;
  12174. solaris*)
  12175. case $cc_basename in
  12176. CC* | sunCC*)
  12177. # Sun C++ 4.2, 5.x and Centerline C++
  12178. lt_prog_compiler_pic_CXX='-KPIC'
  12179. lt_prog_compiler_static_CXX='-Bstatic'
  12180. lt_prog_compiler_wl_CXX='-Qoption ld '
  12181. ;;
  12182. gcx*)
  12183. # Green Hills C++ Compiler
  12184. lt_prog_compiler_pic_CXX='-PIC'
  12185. ;;
  12186. *)
  12187. ;;
  12188. esac
  12189. ;;
  12190. sunos4*)
  12191. case $cc_basename in
  12192. CC*)
  12193. # Sun C++ 4.x
  12194. lt_prog_compiler_pic_CXX='-pic'
  12195. lt_prog_compiler_static_CXX='-Bstatic'
  12196. ;;
  12197. lcc*)
  12198. # Lucid
  12199. lt_prog_compiler_pic_CXX='-pic'
  12200. ;;
  12201. *)
  12202. ;;
  12203. esac
  12204. ;;
  12205. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12206. case $cc_basename in
  12207. CC*)
  12208. lt_prog_compiler_wl_CXX='-Wl,'
  12209. lt_prog_compiler_pic_CXX='-KPIC'
  12210. lt_prog_compiler_static_CXX='-Bstatic'
  12211. ;;
  12212. esac
  12213. ;;
  12214. tandem*)
  12215. case $cc_basename in
  12216. NCC*)
  12217. # NonStop-UX NCC 3.20
  12218. lt_prog_compiler_pic_CXX='-KPIC'
  12219. ;;
  12220. *)
  12221. ;;
  12222. esac
  12223. ;;
  12224. vxworks*)
  12225. ;;
  12226. *)
  12227. lt_prog_compiler_can_build_shared_CXX=no
  12228. ;;
  12229. esac
  12230. fi
  12231. case $host_os in
  12232. # For platforms which do not support PIC, -DPIC is meaningless:
  12233. *djgpp*)
  12234. lt_prog_compiler_pic_CXX=
  12235. ;;
  12236. *)
  12237. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12238. ;;
  12239. esac
  12240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12241. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12242. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12243. $as_echo_n "(cached) " >&6
  12244. else
  12245. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12246. fi
  12247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12248. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12249. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12250. #
  12251. # Check to make sure the PIC flag actually works.
  12252. #
  12253. if test -n "$lt_prog_compiler_pic_CXX"; then
  12254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12255. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12256. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12257. $as_echo_n "(cached) " >&6
  12258. else
  12259. lt_cv_prog_compiler_pic_works_CXX=no
  12260. ac_outfile=conftest.$ac_objext
  12261. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12262. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12263. # Insert the option either (1) after the last *FLAGS variable, or
  12264. # (2) before a word containing "conftest.", or (3) at the end.
  12265. # Note that $ac_compile itself does not contain backslashes and begins
  12266. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12267. # The option is referenced via a variable to avoid confusing sed.
  12268. lt_compile=`echo "$ac_compile" | $SED \
  12269. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12270. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12271. -e 's:$: $lt_compiler_flag:'`
  12272. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12273. (eval "$lt_compile" 2>conftest.err)
  12274. ac_status=$?
  12275. cat conftest.err >&5
  12276. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12277. if (exit $ac_status) && test -s "$ac_outfile"; then
  12278. # The compiler can only warn and ignore the option if not recognized
  12279. # So say no if there are warnings other than the usual output.
  12280. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12281. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12282. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12283. lt_cv_prog_compiler_pic_works_CXX=yes
  12284. fi
  12285. fi
  12286. $RM conftest*
  12287. fi
  12288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12289. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12290. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12291. case $lt_prog_compiler_pic_CXX in
  12292. "" | " "*) ;;
  12293. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12294. esac
  12295. else
  12296. lt_prog_compiler_pic_CXX=
  12297. lt_prog_compiler_can_build_shared_CXX=no
  12298. fi
  12299. fi
  12300. #
  12301. # Check to make sure the static flag actually works.
  12302. #
  12303. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12305. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12306. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12307. $as_echo_n "(cached) " >&6
  12308. else
  12309. lt_cv_prog_compiler_static_works_CXX=no
  12310. save_LDFLAGS="$LDFLAGS"
  12311. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12312. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12313. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12314. # The linker can only warn and ignore the option if not recognized
  12315. # So say no if there are warnings
  12316. if test -s conftest.err; then
  12317. # Append any errors to the config.log.
  12318. cat conftest.err 1>&5
  12319. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12320. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12321. if diff conftest.exp conftest.er2 >/dev/null; then
  12322. lt_cv_prog_compiler_static_works_CXX=yes
  12323. fi
  12324. else
  12325. lt_cv_prog_compiler_static_works_CXX=yes
  12326. fi
  12327. fi
  12328. $RM -r conftest*
  12329. LDFLAGS="$save_LDFLAGS"
  12330. fi
  12331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12332. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12333. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12334. :
  12335. else
  12336. lt_prog_compiler_static_CXX=
  12337. fi
  12338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12339. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12340. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12341. $as_echo_n "(cached) " >&6
  12342. else
  12343. lt_cv_prog_compiler_c_o_CXX=no
  12344. $RM -r conftest 2>/dev/null
  12345. mkdir conftest
  12346. cd conftest
  12347. mkdir out
  12348. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12349. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12350. # Insert the option either (1) after the last *FLAGS variable, or
  12351. # (2) before a word containing "conftest.", or (3) at the end.
  12352. # Note that $ac_compile itself does not contain backslashes and begins
  12353. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12354. lt_compile=`echo "$ac_compile" | $SED \
  12355. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12356. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12357. -e 's:$: $lt_compiler_flag:'`
  12358. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12359. (eval "$lt_compile" 2>out/conftest.err)
  12360. ac_status=$?
  12361. cat out/conftest.err >&5
  12362. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12363. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12364. then
  12365. # The compiler can only warn and ignore the option if not recognized
  12366. # So say no if there are warnings
  12367. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12368. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12369. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12370. lt_cv_prog_compiler_c_o_CXX=yes
  12371. fi
  12372. fi
  12373. chmod u+w . 2>&5
  12374. $RM conftest*
  12375. # SGI C++ compiler will create directory out/ii_files/ for
  12376. # template instantiation
  12377. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12378. $RM out/* && rmdir out
  12379. cd ..
  12380. $RM -r conftest
  12381. $RM conftest*
  12382. fi
  12383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12384. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12386. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12387. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12388. $as_echo_n "(cached) " >&6
  12389. else
  12390. lt_cv_prog_compiler_c_o_CXX=no
  12391. $RM -r conftest 2>/dev/null
  12392. mkdir conftest
  12393. cd conftest
  12394. mkdir out
  12395. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12396. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12397. # Insert the option either (1) after the last *FLAGS variable, or
  12398. # (2) before a word containing "conftest.", or (3) at the end.
  12399. # Note that $ac_compile itself does not contain backslashes and begins
  12400. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12401. lt_compile=`echo "$ac_compile" | $SED \
  12402. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12403. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12404. -e 's:$: $lt_compiler_flag:'`
  12405. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12406. (eval "$lt_compile" 2>out/conftest.err)
  12407. ac_status=$?
  12408. cat out/conftest.err >&5
  12409. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12410. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12411. then
  12412. # The compiler can only warn and ignore the option if not recognized
  12413. # So say no if there are warnings
  12414. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12415. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12416. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12417. lt_cv_prog_compiler_c_o_CXX=yes
  12418. fi
  12419. fi
  12420. chmod u+w . 2>&5
  12421. $RM conftest*
  12422. # SGI C++ compiler will create directory out/ii_files/ for
  12423. # template instantiation
  12424. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12425. $RM out/* && rmdir out
  12426. cd ..
  12427. $RM -r conftest
  12428. $RM conftest*
  12429. fi
  12430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12431. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12432. hard_links="nottested"
  12433. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12434. # do not overwrite the value of need_locks provided by the user
  12435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12436. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12437. hard_links=yes
  12438. $RM conftest*
  12439. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12440. touch conftest.a
  12441. ln conftest.a conftest.b 2>&5 || hard_links=no
  12442. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12444. $as_echo "$hard_links" >&6; }
  12445. if test "$hard_links" = no; then
  12446. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12447. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12448. need_locks=warn
  12449. fi
  12450. else
  12451. need_locks=no
  12452. fi
  12453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12454. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12455. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12456. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12457. case $host_os in
  12458. aix[4-9]*)
  12459. # If we're using GNU nm, then we don't want the "-C" option.
  12460. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12461. # Also, AIX nm treats weak defined symbols like other global defined
  12462. # symbols, whereas GNU nm marks them as "W".
  12463. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12464. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12465. else
  12466. export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12467. fi
  12468. ;;
  12469. pw32*)
  12470. export_symbols_cmds_CXX="$ltdll_cmds"
  12471. ;;
  12472. cygwin* | mingw* | cegcc*)
  12473. case $cc_basename in
  12474. cl*)
  12475. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12476. ;;
  12477. *)
  12478. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  12479. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12480. ;;
  12481. esac
  12482. ;;
  12483. *)
  12484. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12485. ;;
  12486. esac
  12487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12488. $as_echo "$ld_shlibs_CXX" >&6; }
  12489. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12490. with_gnu_ld_CXX=$with_gnu_ld
  12491. #
  12492. # Do we need to explicitly link libc?
  12493. #
  12494. case "x$archive_cmds_need_lc_CXX" in
  12495. x|xyes)
  12496. # Assume -lc should be added
  12497. archive_cmds_need_lc_CXX=yes
  12498. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12499. case $archive_cmds_CXX in
  12500. *'~'*)
  12501. # FIXME: we may have to deal with multi-command sequences.
  12502. ;;
  12503. '$CC '*)
  12504. # Test whether the compiler implicitly links with -lc since on some
  12505. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12506. # to ld, don't add -lc before -lgcc.
  12507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12508. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12509. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12510. $as_echo_n "(cached) " >&6
  12511. else
  12512. $RM conftest*
  12513. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12514. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12515. (eval $ac_compile) 2>&5
  12516. ac_status=$?
  12517. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12518. test $ac_status = 0; } 2>conftest.err; then
  12519. soname=conftest
  12520. lib=conftest
  12521. libobjs=conftest.$ac_objext
  12522. deplibs=
  12523. wl=$lt_prog_compiler_wl_CXX
  12524. pic_flag=$lt_prog_compiler_pic_CXX
  12525. compiler_flags=-v
  12526. linker_flags=-v
  12527. verstring=
  12528. output_objdir=.
  12529. libname=conftest
  12530. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12531. allow_undefined_flag_CXX=
  12532. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12533. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12534. ac_status=$?
  12535. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12536. test $ac_status = 0; }
  12537. then
  12538. lt_cv_archive_cmds_need_lc_CXX=no
  12539. else
  12540. lt_cv_archive_cmds_need_lc_CXX=yes
  12541. fi
  12542. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12543. else
  12544. cat conftest.err 1>&5
  12545. fi
  12546. $RM conftest*
  12547. fi
  12548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12549. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12550. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12551. ;;
  12552. esac
  12553. fi
  12554. ;;
  12555. esac
  12556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12557. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12558. library_names_spec=
  12559. libname_spec='lib$name'
  12560. soname_spec=
  12561. shrext_cmds=".so"
  12562. postinstall_cmds=
  12563. postuninstall_cmds=
  12564. finish_cmds=
  12565. finish_eval=
  12566. shlibpath_var=
  12567. shlibpath_overrides_runpath=unknown
  12568. version_type=none
  12569. dynamic_linker="$host_os ld.so"
  12570. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12571. need_lib_prefix=unknown
  12572. hardcode_into_libs=no
  12573. # when you set need_version to no, make sure it does not cause -set_version
  12574. # flags to be left without arguments
  12575. need_version=unknown
  12576. case $host_os in
  12577. aix3*)
  12578. version_type=linux # correct to gnu/linux during the next big refactor
  12579. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12580. shlibpath_var=LIBPATH
  12581. # AIX 3 has no versioning support, so we append a major version to the name.
  12582. soname_spec='${libname}${release}${shared_ext}$major'
  12583. ;;
  12584. aix[4-9]*)
  12585. version_type=linux # correct to gnu/linux during the next big refactor
  12586. need_lib_prefix=no
  12587. need_version=no
  12588. hardcode_into_libs=yes
  12589. if test "$host_cpu" = ia64; then
  12590. # AIX 5 supports IA64
  12591. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12592. shlibpath_var=LD_LIBRARY_PATH
  12593. else
  12594. # With GCC up to 2.95.x, collect2 would create an import file
  12595. # for dependence libraries. The import file would start with
  12596. # the line `#! .'. This would cause the generated library to
  12597. # depend on `.', always an invalid library. This was fixed in
  12598. # development snapshots of GCC prior to 3.0.
  12599. case $host_os in
  12600. aix4 | aix4.[01] | aix4.[01].*)
  12601. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12602. echo ' yes '
  12603. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12604. :
  12605. else
  12606. can_build_shared=no
  12607. fi
  12608. ;;
  12609. esac
  12610. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12611. # soname into executable. Probably we can add versioning support to
  12612. # collect2, so additional links can be useful in future.
  12613. if test "$aix_use_runtimelinking" = yes; then
  12614. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12615. # instead of lib<name>.a to let people know that these are not
  12616. # typical AIX shared libraries.
  12617. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12618. else
  12619. # We preserve .a as extension for shared libraries through AIX4.2
  12620. # and later when we are not doing run time linking.
  12621. library_names_spec='${libname}${release}.a $libname.a'
  12622. soname_spec='${libname}${release}${shared_ext}$major'
  12623. fi
  12624. shlibpath_var=LIBPATH
  12625. fi
  12626. ;;
  12627. amigaos*)
  12628. case $host_cpu in
  12629. powerpc)
  12630. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12631. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12632. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12633. ;;
  12634. m68k)
  12635. library_names_spec='$libname.ixlibrary $libname.a'
  12636. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12637. 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'
  12638. ;;
  12639. esac
  12640. ;;
  12641. beos*)
  12642. library_names_spec='${libname}${shared_ext}'
  12643. dynamic_linker="$host_os ld.so"
  12644. shlibpath_var=LIBRARY_PATH
  12645. ;;
  12646. bsdi[45]*)
  12647. version_type=linux # correct to gnu/linux during the next big refactor
  12648. need_version=no
  12649. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12650. soname_spec='${libname}${release}${shared_ext}$major'
  12651. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12652. shlibpath_var=LD_LIBRARY_PATH
  12653. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12654. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12655. # the default ld.so.conf also contains /usr/contrib/lib and
  12656. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12657. # libtool to hard-code these into programs
  12658. ;;
  12659. cygwin* | mingw* | pw32* | cegcc*)
  12660. version_type=windows
  12661. shrext_cmds=".dll"
  12662. need_version=no
  12663. need_lib_prefix=no
  12664. case $GCC,$cc_basename in
  12665. yes,*)
  12666. # gcc
  12667. library_names_spec='$libname.dll.a'
  12668. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12669. postinstall_cmds='base_file=`basename \${file}`~
  12670. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12671. dldir=$destdir/`dirname \$dlpath`~
  12672. test -d \$dldir || mkdir -p \$dldir~
  12673. $install_prog $dir/$dlname \$dldir/$dlname~
  12674. chmod a+x \$dldir/$dlname~
  12675. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12676. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12677. fi'
  12678. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12679. dlpath=$dir/\$dldll~
  12680. $RM \$dlpath'
  12681. shlibpath_overrides_runpath=yes
  12682. case $host_os in
  12683. cygwin*)
  12684. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12685. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12686. ;;
  12687. mingw* | cegcc*)
  12688. # MinGW DLLs use traditional 'lib' prefix
  12689. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12690. ;;
  12691. pw32*)
  12692. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12693. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12694. ;;
  12695. esac
  12696. dynamic_linker='Win32 ld.exe'
  12697. ;;
  12698. *,cl*)
  12699. # Native MSVC
  12700. libname_spec='$name'
  12701. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12702. library_names_spec='${libname}.dll.lib'
  12703. case $build_os in
  12704. mingw*)
  12705. sys_lib_search_path_spec=
  12706. lt_save_ifs=$IFS
  12707. IFS=';'
  12708. for lt_path in $LIB
  12709. do
  12710. IFS=$lt_save_ifs
  12711. # Let DOS variable expansion print the short 8.3 style file name.
  12712. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12713. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12714. done
  12715. IFS=$lt_save_ifs
  12716. # Convert to MSYS style.
  12717. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12718. ;;
  12719. cygwin*)
  12720. # Convert to unix form, then to dos form, then back to unix form
  12721. # but this time dos style (no spaces!) so that the unix form looks
  12722. # like /cygdrive/c/PROGRA~1:/cygdr...
  12723. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12724. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12725. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12726. ;;
  12727. *)
  12728. sys_lib_search_path_spec="$LIB"
  12729. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12730. # It is most probably a Windows format PATH.
  12731. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12732. else
  12733. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12734. fi
  12735. # FIXME: find the short name or the path components, as spaces are
  12736. # common. (e.g. "Program Files" -> "PROGRA~1")
  12737. ;;
  12738. esac
  12739. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12740. postinstall_cmds='base_file=`basename \${file}`~
  12741. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12742. dldir=$destdir/`dirname \$dlpath`~
  12743. test -d \$dldir || mkdir -p \$dldir~
  12744. $install_prog $dir/$dlname \$dldir/$dlname'
  12745. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12746. dlpath=$dir/\$dldll~
  12747. $RM \$dlpath'
  12748. shlibpath_overrides_runpath=yes
  12749. dynamic_linker='Win32 link.exe'
  12750. ;;
  12751. *)
  12752. # Assume MSVC wrapper
  12753. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12754. dynamic_linker='Win32 ld.exe'
  12755. ;;
  12756. esac
  12757. # FIXME: first we should search . and the directory the executable is in
  12758. shlibpath_var=PATH
  12759. ;;
  12760. darwin* | rhapsody*)
  12761. dynamic_linker="$host_os dyld"
  12762. version_type=darwin
  12763. need_lib_prefix=no
  12764. need_version=no
  12765. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12766. soname_spec='${libname}${release}${major}$shared_ext'
  12767. shlibpath_overrides_runpath=yes
  12768. shlibpath_var=DYLD_LIBRARY_PATH
  12769. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12770. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12771. ;;
  12772. dgux*)
  12773. version_type=linux # correct to gnu/linux during the next big refactor
  12774. need_lib_prefix=no
  12775. need_version=no
  12776. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12777. soname_spec='${libname}${release}${shared_ext}$major'
  12778. shlibpath_var=LD_LIBRARY_PATH
  12779. ;;
  12780. freebsd* | dragonfly*)
  12781. # DragonFly does not have aout. When/if they implement a new
  12782. # versioning mechanism, adjust this.
  12783. if test -x /usr/bin/objformat; then
  12784. objformat=`/usr/bin/objformat`
  12785. else
  12786. case $host_os in
  12787. freebsd[23].*) objformat=aout ;;
  12788. *) objformat=elf ;;
  12789. esac
  12790. fi
  12791. version_type=freebsd-$objformat
  12792. case $version_type in
  12793. freebsd-elf*)
  12794. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12795. need_version=no
  12796. need_lib_prefix=no
  12797. ;;
  12798. freebsd-*)
  12799. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12800. need_version=yes
  12801. ;;
  12802. esac
  12803. shlibpath_var=LD_LIBRARY_PATH
  12804. case $host_os in
  12805. freebsd2.*)
  12806. shlibpath_overrides_runpath=yes
  12807. ;;
  12808. freebsd3.[01]* | freebsdelf3.[01]*)
  12809. shlibpath_overrides_runpath=yes
  12810. hardcode_into_libs=yes
  12811. ;;
  12812. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12813. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12814. shlibpath_overrides_runpath=no
  12815. hardcode_into_libs=yes
  12816. ;;
  12817. *) # from 4.6 on, and DragonFly
  12818. shlibpath_overrides_runpath=yes
  12819. hardcode_into_libs=yes
  12820. ;;
  12821. esac
  12822. ;;
  12823. gnu*)
  12824. version_type=linux # correct to gnu/linux during the next big refactor
  12825. need_lib_prefix=no
  12826. need_version=no
  12827. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12828. soname_spec='${libname}${release}${shared_ext}$major'
  12829. shlibpath_var=LD_LIBRARY_PATH
  12830. shlibpath_overrides_runpath=no
  12831. hardcode_into_libs=yes
  12832. ;;
  12833. haiku*)
  12834. version_type=linux # correct to gnu/linux during the next big refactor
  12835. need_lib_prefix=no
  12836. need_version=no
  12837. dynamic_linker="$host_os runtime_loader"
  12838. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12839. soname_spec='${libname}${release}${shared_ext}$major'
  12840. shlibpath_var=LIBRARY_PATH
  12841. shlibpath_overrides_runpath=yes
  12842. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12843. hardcode_into_libs=yes
  12844. ;;
  12845. hpux9* | hpux10* | hpux11*)
  12846. # Give a soname corresponding to the major version so that dld.sl refuses to
  12847. # link against other versions.
  12848. version_type=sunos
  12849. need_lib_prefix=no
  12850. need_version=no
  12851. case $host_cpu in
  12852. ia64*)
  12853. shrext_cmds='.so'
  12854. hardcode_into_libs=yes
  12855. dynamic_linker="$host_os dld.so"
  12856. shlibpath_var=LD_LIBRARY_PATH
  12857. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12858. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12859. soname_spec='${libname}${release}${shared_ext}$major'
  12860. if test "X$HPUX_IA64_MODE" = X32; then
  12861. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12862. else
  12863. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12864. fi
  12865. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12866. ;;
  12867. hppa*64*)
  12868. shrext_cmds='.sl'
  12869. hardcode_into_libs=yes
  12870. dynamic_linker="$host_os dld.sl"
  12871. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12872. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12873. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12874. soname_spec='${libname}${release}${shared_ext}$major'
  12875. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12876. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12877. ;;
  12878. *)
  12879. shrext_cmds='.sl'
  12880. dynamic_linker="$host_os dld.sl"
  12881. shlibpath_var=SHLIB_PATH
  12882. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12883. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12884. soname_spec='${libname}${release}${shared_ext}$major'
  12885. ;;
  12886. esac
  12887. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12888. postinstall_cmds='chmod 555 $lib'
  12889. # or fails outright, so override atomically:
  12890. install_override_mode=555
  12891. ;;
  12892. interix[3-9]*)
  12893. version_type=linux # correct to gnu/linux during the next big refactor
  12894. need_lib_prefix=no
  12895. need_version=no
  12896. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12897. soname_spec='${libname}${release}${shared_ext}$major'
  12898. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12899. shlibpath_var=LD_LIBRARY_PATH
  12900. shlibpath_overrides_runpath=no
  12901. hardcode_into_libs=yes
  12902. ;;
  12903. irix5* | irix6* | nonstopux*)
  12904. case $host_os in
  12905. nonstopux*) version_type=nonstopux ;;
  12906. *)
  12907. if test "$lt_cv_prog_gnu_ld" = yes; then
  12908. version_type=linux # correct to gnu/linux during the next big refactor
  12909. else
  12910. version_type=irix
  12911. fi ;;
  12912. esac
  12913. need_lib_prefix=no
  12914. need_version=no
  12915. soname_spec='${libname}${release}${shared_ext}$major'
  12916. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12917. case $host_os in
  12918. irix5* | nonstopux*)
  12919. libsuff= shlibsuff=
  12920. ;;
  12921. *)
  12922. case $LD in # libtool.m4 will add one of these switches to LD
  12923. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12924. libsuff= shlibsuff= libmagic=32-bit;;
  12925. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12926. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12927. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12928. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12929. *) libsuff= shlibsuff= libmagic=never-match;;
  12930. esac
  12931. ;;
  12932. esac
  12933. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12934. shlibpath_overrides_runpath=no
  12935. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12936. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12937. hardcode_into_libs=yes
  12938. ;;
  12939. # No shared lib support for Linux oldld, aout, or coff.
  12940. linux*oldld* | linux*aout* | linux*coff*)
  12941. dynamic_linker=no
  12942. ;;
  12943. # This must be glibc/ELF.
  12944. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12945. version_type=linux # correct to gnu/linux during the next big refactor
  12946. need_lib_prefix=no
  12947. need_version=no
  12948. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12949. soname_spec='${libname}${release}${shared_ext}$major'
  12950. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12951. shlibpath_var=LD_LIBRARY_PATH
  12952. shlibpath_overrides_runpath=no
  12953. # Some binutils ld are patched to set DT_RUNPATH
  12954. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  12955. $as_echo_n "(cached) " >&6
  12956. else
  12957. lt_cv_shlibpath_overrides_runpath=no
  12958. save_LDFLAGS=$LDFLAGS
  12959. save_libdir=$libdir
  12960. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  12961. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  12962. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12963. /* end confdefs.h. */
  12964. int
  12965. main ()
  12966. {
  12967. ;
  12968. return 0;
  12969. }
  12970. _ACEOF
  12971. if ac_fn_cxx_try_link "$LINENO"; then :
  12972. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12973. lt_cv_shlibpath_overrides_runpath=yes
  12974. fi
  12975. fi
  12976. rm -f core conftest.err conftest.$ac_objext \
  12977. conftest$ac_exeext conftest.$ac_ext
  12978. LDFLAGS=$save_LDFLAGS
  12979. libdir=$save_libdir
  12980. fi
  12981. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  12982. # This implies no fast_install, which is unacceptable.
  12983. # Some rework will be needed to allow for fast_install
  12984. # before this can be enabled.
  12985. hardcode_into_libs=yes
  12986. # Append ld.so.conf contents to the search path
  12987. if test -f /etc/ld.so.conf; then
  12988. 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' ' '`
  12989. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12990. fi
  12991. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12992. # powerpc, because MkLinux only supported shared libraries with the
  12993. # GNU dynamic linker. Since this was broken with cross compilers,
  12994. # most powerpc-linux boxes support dynamic linking these days and
  12995. # people can always --disable-shared, the test was removed, and we
  12996. # assume the GNU/Linux dynamic linker is in use.
  12997. dynamic_linker='GNU/Linux ld.so'
  12998. ;;
  12999. netbsd*)
  13000. version_type=sunos
  13001. need_lib_prefix=no
  13002. need_version=no
  13003. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13004. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13005. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13006. dynamic_linker='NetBSD (a.out) ld.so'
  13007. else
  13008. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13009. soname_spec='${libname}${release}${shared_ext}$major'
  13010. dynamic_linker='NetBSD ld.elf_so'
  13011. fi
  13012. shlibpath_var=LD_LIBRARY_PATH
  13013. shlibpath_overrides_runpath=yes
  13014. hardcode_into_libs=yes
  13015. ;;
  13016. newsos6)
  13017. version_type=linux # correct to gnu/linux during the next big refactor
  13018. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13019. shlibpath_var=LD_LIBRARY_PATH
  13020. shlibpath_overrides_runpath=yes
  13021. ;;
  13022. *nto* | *qnx*)
  13023. version_type=qnx
  13024. need_lib_prefix=no
  13025. need_version=no
  13026. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13027. soname_spec='${libname}${release}${shared_ext}$major'
  13028. shlibpath_var=LD_LIBRARY_PATH
  13029. shlibpath_overrides_runpath=no
  13030. hardcode_into_libs=yes
  13031. dynamic_linker='ldqnx.so'
  13032. ;;
  13033. openbsd*)
  13034. version_type=sunos
  13035. sys_lib_dlsearch_path_spec="/usr/lib"
  13036. need_lib_prefix=no
  13037. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13038. case $host_os in
  13039. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13040. *) need_version=no ;;
  13041. esac
  13042. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13043. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13044. shlibpath_var=LD_LIBRARY_PATH
  13045. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13046. case $host_os in
  13047. openbsd2.[89] | openbsd2.[89].*)
  13048. shlibpath_overrides_runpath=no
  13049. ;;
  13050. *)
  13051. shlibpath_overrides_runpath=yes
  13052. ;;
  13053. esac
  13054. else
  13055. shlibpath_overrides_runpath=yes
  13056. fi
  13057. ;;
  13058. os2*)
  13059. libname_spec='$name'
  13060. shrext_cmds=".dll"
  13061. need_lib_prefix=no
  13062. library_names_spec='$libname${shared_ext} $libname.a'
  13063. dynamic_linker='OS/2 ld.exe'
  13064. shlibpath_var=LIBPATH
  13065. ;;
  13066. osf3* | osf4* | osf5*)
  13067. version_type=osf
  13068. need_lib_prefix=no
  13069. need_version=no
  13070. soname_spec='${libname}${release}${shared_ext}$major'
  13071. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13072. shlibpath_var=LD_LIBRARY_PATH
  13073. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13074. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13075. ;;
  13076. rdos*)
  13077. dynamic_linker=no
  13078. ;;
  13079. solaris*)
  13080. version_type=linux # correct to gnu/linux during the next big refactor
  13081. need_lib_prefix=no
  13082. need_version=no
  13083. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13084. soname_spec='${libname}${release}${shared_ext}$major'
  13085. shlibpath_var=LD_LIBRARY_PATH
  13086. shlibpath_overrides_runpath=yes
  13087. hardcode_into_libs=yes
  13088. # ldd complains unless libraries are executable
  13089. postinstall_cmds='chmod +x $lib'
  13090. ;;
  13091. sunos4*)
  13092. version_type=sunos
  13093. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13094. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13095. shlibpath_var=LD_LIBRARY_PATH
  13096. shlibpath_overrides_runpath=yes
  13097. if test "$with_gnu_ld" = yes; then
  13098. need_lib_prefix=no
  13099. fi
  13100. need_version=yes
  13101. ;;
  13102. sysv4 | sysv4.3*)
  13103. version_type=linux # correct to gnu/linux during the next big refactor
  13104. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13105. soname_spec='${libname}${release}${shared_ext}$major'
  13106. shlibpath_var=LD_LIBRARY_PATH
  13107. case $host_vendor in
  13108. sni)
  13109. shlibpath_overrides_runpath=no
  13110. need_lib_prefix=no
  13111. runpath_var=LD_RUN_PATH
  13112. ;;
  13113. siemens)
  13114. need_lib_prefix=no
  13115. ;;
  13116. motorola)
  13117. need_lib_prefix=no
  13118. need_version=no
  13119. shlibpath_overrides_runpath=no
  13120. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13121. ;;
  13122. esac
  13123. ;;
  13124. sysv4*MP*)
  13125. if test -d /usr/nec ;then
  13126. version_type=linux # correct to gnu/linux during the next big refactor
  13127. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13128. soname_spec='$libname${shared_ext}.$major'
  13129. shlibpath_var=LD_LIBRARY_PATH
  13130. fi
  13131. ;;
  13132. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13133. version_type=freebsd-elf
  13134. need_lib_prefix=no
  13135. need_version=no
  13136. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13137. soname_spec='${libname}${release}${shared_ext}$major'
  13138. shlibpath_var=LD_LIBRARY_PATH
  13139. shlibpath_overrides_runpath=yes
  13140. hardcode_into_libs=yes
  13141. if test "$with_gnu_ld" = yes; then
  13142. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13143. else
  13144. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13145. case $host_os in
  13146. sco3.2v5*)
  13147. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13148. ;;
  13149. esac
  13150. fi
  13151. sys_lib_dlsearch_path_spec='/usr/lib'
  13152. ;;
  13153. tpf*)
  13154. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13155. version_type=linux # correct to gnu/linux during the next big refactor
  13156. need_lib_prefix=no
  13157. need_version=no
  13158. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13159. shlibpath_var=LD_LIBRARY_PATH
  13160. shlibpath_overrides_runpath=no
  13161. hardcode_into_libs=yes
  13162. ;;
  13163. uts4*)
  13164. version_type=linux # correct to gnu/linux during the next big refactor
  13165. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13166. soname_spec='${libname}${release}${shared_ext}$major'
  13167. shlibpath_var=LD_LIBRARY_PATH
  13168. ;;
  13169. *)
  13170. dynamic_linker=no
  13171. ;;
  13172. esac
  13173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13174. $as_echo "$dynamic_linker" >&6; }
  13175. test "$dynamic_linker" = no && can_build_shared=no
  13176. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13177. if test "$GCC" = yes; then
  13178. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13179. fi
  13180. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13181. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13182. fi
  13183. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13184. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13185. fi
  13186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13187. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13188. hardcode_action_CXX=
  13189. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13190. test -n "$runpath_var_CXX" ||
  13191. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13192. # We can hardcode non-existent directories.
  13193. if test "$hardcode_direct_CXX" != no &&
  13194. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13195. # have to relink, otherwise we might link with an installed library
  13196. # when we should be linking with a yet-to-be-installed one
  13197. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13198. test "$hardcode_minus_L_CXX" != no; then
  13199. # Linking always hardcodes the temporary library directory.
  13200. hardcode_action_CXX=relink
  13201. else
  13202. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13203. hardcode_action_CXX=immediate
  13204. fi
  13205. else
  13206. # We cannot hardcode anything, or else we can only hardcode existing
  13207. # directories.
  13208. hardcode_action_CXX=unsupported
  13209. fi
  13210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13211. $as_echo "$hardcode_action_CXX" >&6; }
  13212. if test "$hardcode_action_CXX" = relink ||
  13213. test "$inherit_rpath_CXX" = yes; then
  13214. # Fast installation is not supported
  13215. enable_fast_install=no
  13216. elif test "$shlibpath_overrides_runpath" = yes ||
  13217. test "$enable_shared" = no; then
  13218. # Fast installation is not necessary
  13219. enable_fast_install=needless
  13220. fi
  13221. fi # test -n "$compiler"
  13222. CC=$lt_save_CC
  13223. CFLAGS=$lt_save_CFLAGS
  13224. LDCXX=$LD
  13225. LD=$lt_save_LD
  13226. GCC=$lt_save_GCC
  13227. with_gnu_ld=$lt_save_with_gnu_ld
  13228. lt_cv_path_LDCXX=$lt_cv_path_LD
  13229. lt_cv_path_LD=$lt_save_path_LD
  13230. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13231. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13232. fi # test "$_lt_caught_CXX_error" != yes
  13233. ac_ext=c
  13234. ac_cpp='$CPP $CPPFLAGS'
  13235. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13236. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13237. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13238. ac_config_commands="$ac_config_commands libtool"
  13239. # Only expand once:
  13240. # Checks for libraries.
  13241. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  13242. if test -n "$ac_tool_prefix"; then
  13243. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  13244. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  13245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13246. $as_echo_n "checking for $ac_word... " >&6; }
  13247. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  13248. $as_echo_n "(cached) " >&6
  13249. else
  13250. case $PKG_CONFIG in
  13251. [\\/]* | ?:[\\/]*)
  13252. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  13253. ;;
  13254. *)
  13255. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13256. for as_dir in $PATH
  13257. do
  13258. IFS=$as_save_IFS
  13259. test -z "$as_dir" && as_dir=.
  13260. for ac_exec_ext in '' $ac_executable_extensions; do
  13261. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13262. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13263. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13264. break 2
  13265. fi
  13266. done
  13267. done
  13268. IFS=$as_save_IFS
  13269. ;;
  13270. esac
  13271. fi
  13272. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  13273. if test -n "$PKG_CONFIG"; then
  13274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  13275. $as_echo "$PKG_CONFIG" >&6; }
  13276. else
  13277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13278. $as_echo "no" >&6; }
  13279. fi
  13280. fi
  13281. if test -z "$ac_cv_path_PKG_CONFIG"; then
  13282. ac_pt_PKG_CONFIG=$PKG_CONFIG
  13283. # Extract the first word of "pkg-config", so it can be a program name with args.
  13284. set dummy pkg-config; ac_word=$2
  13285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13286. $as_echo_n "checking for $ac_word... " >&6; }
  13287. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  13288. $as_echo_n "(cached) " >&6
  13289. else
  13290. case $ac_pt_PKG_CONFIG in
  13291. [\\/]* | ?:[\\/]*)
  13292. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  13293. ;;
  13294. *)
  13295. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13296. for as_dir in $PATH
  13297. do
  13298. IFS=$as_save_IFS
  13299. test -z "$as_dir" && as_dir=.
  13300. for ac_exec_ext in '' $ac_executable_extensions; do
  13301. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13302. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13303. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13304. break 2
  13305. fi
  13306. done
  13307. done
  13308. IFS=$as_save_IFS
  13309. ;;
  13310. esac
  13311. fi
  13312. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  13313. if test -n "$ac_pt_PKG_CONFIG"; then
  13314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  13315. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  13316. else
  13317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13318. $as_echo "no" >&6; }
  13319. fi
  13320. if test "x$ac_pt_PKG_CONFIG" = x; then
  13321. PKG_CONFIG=""
  13322. else
  13323. case $cross_compiling:$ac_tool_warned in
  13324. yes:)
  13325. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13326. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13327. ac_tool_warned=yes ;;
  13328. esac
  13329. PKG_CONFIG=$ac_pt_PKG_CONFIG
  13330. fi
  13331. else
  13332. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  13333. fi
  13334. fi
  13335. if test -n "$PKG_CONFIG"; then
  13336. _pkg_min_version=0.9.0
  13337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  13338. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  13339. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  13340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13341. $as_echo "yes" >&6; }
  13342. else
  13343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13344. $as_echo "no" >&6; }
  13345. PKG_CONFIG=""
  13346. fi
  13347. fi
  13348. pkg_failed=no
  13349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libplist" >&5
  13350. $as_echo_n "checking for libplist... " >&6; }
  13351. if test -n "$libplist_CFLAGS"; then
  13352. pkg_cv_libplist_CFLAGS="$libplist_CFLAGS"
  13353. elif test -n "$PKG_CONFIG"; then
  13354. if test -n "$PKG_CONFIG" && \
  13355. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libplist >= 1.11\""; } >&5
  13356. ($PKG_CONFIG --exists --print-errors "libplist >= 1.11") 2>&5
  13357. ac_status=$?
  13358. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13359. test $ac_status = 0; }; then
  13360. pkg_cv_libplist_CFLAGS=`$PKG_CONFIG --cflags "libplist >= 1.11" 2>/dev/null`
  13361. test "x$?" != "x0" && pkg_failed=yes
  13362. else
  13363. pkg_failed=yes
  13364. fi
  13365. else
  13366. pkg_failed=untried
  13367. fi
  13368. if test -n "$libplist_LIBS"; then
  13369. pkg_cv_libplist_LIBS="$libplist_LIBS"
  13370. elif test -n "$PKG_CONFIG"; then
  13371. if test -n "$PKG_CONFIG" && \
  13372. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libplist >= 1.11\""; } >&5
  13373. ($PKG_CONFIG --exists --print-errors "libplist >= 1.11") 2>&5
  13374. ac_status=$?
  13375. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13376. test $ac_status = 0; }; then
  13377. pkg_cv_libplist_LIBS=`$PKG_CONFIG --libs "libplist >= 1.11" 2>/dev/null`
  13378. test "x$?" != "x0" && pkg_failed=yes
  13379. else
  13380. pkg_failed=yes
  13381. fi
  13382. else
  13383. pkg_failed=untried
  13384. fi
  13385. if test $pkg_failed = yes; then
  13386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13387. $as_echo "no" >&6; }
  13388. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  13389. _pkg_short_errors_supported=yes
  13390. else
  13391. _pkg_short_errors_supported=no
  13392. fi
  13393. if test $_pkg_short_errors_supported = yes; then
  13394. libplist_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libplist >= 1.11" 2>&1`
  13395. else
  13396. libplist_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libplist >= 1.11" 2>&1`
  13397. fi
  13398. # Put the nasty error message in config.log where it belongs
  13399. echo "$libplist_PKG_ERRORS" >&5
  13400. as_fn_error $? "Package requirements (libplist >= 1.11) were not met:
  13401. $libplist_PKG_ERRORS
  13402. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  13403. installed software in a non-standard prefix.
  13404. Alternatively, you may set the environment variables libplist_CFLAGS
  13405. and libplist_LIBS to avoid the need to call pkg-config.
  13406. See the pkg-config man page for more details." "$LINENO" 5
  13407. elif test $pkg_failed = untried; then
  13408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13409. $as_echo "no" >&6; }
  13410. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13411. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13412. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  13413. is in your PATH or set the PKG_CONFIG environment variable to the full
  13414. path to pkg-config.
  13415. Alternatively, you may set the environment variables libplist_CFLAGS
  13416. and libplist_LIBS to avoid the need to call pkg-config.
  13417. See the pkg-config man page for more details.
  13418. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  13419. See \`config.log' for more details" "$LINENO" 5; }
  13420. else
  13421. libplist_CFLAGS=$pkg_cv_libplist_CFLAGS
  13422. libplist_LIBS=$pkg_cv_libplist_LIBS
  13423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13424. $as_echo "yes" >&6; }
  13425. fi
  13426. for ac_header in sys/inotify.h
  13427. do :
  13428. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  13429. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  13430. cat >>confdefs.h <<_ACEOF
  13431. #define HAVE_SYS_INOTIFY_H 1
  13432. _ACEOF
  13433. have_inotify=yes
  13434. else
  13435. have_inotify=no
  13436. fi
  13437. done
  13438. # Check whether --with-inotify was given.
  13439. if test "${with_inotify+set}" = set; then :
  13440. withval=$with_inotify; with_inotify=no
  13441. else
  13442. with_inotify=yes
  13443. fi
  13444. if test "x$have_inotify" = "xyes"; then
  13445. if test "x$with_inotify" != "xyes"; then
  13446. have_inotify=no
  13447. echo "*** Note: inotify support has been disabled ***"
  13448. else
  13449. $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
  13450. fi
  13451. fi
  13452. # Checks for header files.
  13453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13454. $as_echo_n "checking for ANSI C header files... " >&6; }
  13455. if ${ac_cv_header_stdc+:} false; then :
  13456. $as_echo_n "(cached) " >&6
  13457. else
  13458. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13459. /* end confdefs.h. */
  13460. #include <stdlib.h>
  13461. #include <stdarg.h>
  13462. #include <string.h>
  13463. #include <float.h>
  13464. int
  13465. main ()
  13466. {
  13467. ;
  13468. return 0;
  13469. }
  13470. _ACEOF
  13471. if ac_fn_c_try_compile "$LINENO"; then :
  13472. ac_cv_header_stdc=yes
  13473. else
  13474. ac_cv_header_stdc=no
  13475. fi
  13476. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13477. if test $ac_cv_header_stdc = yes; then
  13478. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13479. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13480. /* end confdefs.h. */
  13481. #include <string.h>
  13482. _ACEOF
  13483. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13484. $EGREP "memchr" >/dev/null 2>&1; then :
  13485. else
  13486. ac_cv_header_stdc=no
  13487. fi
  13488. rm -f conftest*
  13489. fi
  13490. if test $ac_cv_header_stdc = yes; then
  13491. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13492. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13493. /* end confdefs.h. */
  13494. #include <stdlib.h>
  13495. _ACEOF
  13496. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13497. $EGREP "free" >/dev/null 2>&1; then :
  13498. else
  13499. ac_cv_header_stdc=no
  13500. fi
  13501. rm -f conftest*
  13502. fi
  13503. if test $ac_cv_header_stdc = yes; then
  13504. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13505. if test "$cross_compiling" = yes; then :
  13506. :
  13507. else
  13508. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13509. /* end confdefs.h. */
  13510. #include <ctype.h>
  13511. #include <stdlib.h>
  13512. #if ((' ' & 0x0FF) == 0x020)
  13513. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13514. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13515. #else
  13516. # define ISLOWER(c) \
  13517. (('a' <= (c) && (c) <= 'i') \
  13518. || ('j' <= (c) && (c) <= 'r') \
  13519. || ('s' <= (c) && (c) <= 'z'))
  13520. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13521. #endif
  13522. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13523. int
  13524. main ()
  13525. {
  13526. int i;
  13527. for (i = 0; i < 256; i++)
  13528. if (XOR (islower (i), ISLOWER (i))
  13529. || toupper (i) != TOUPPER (i))
  13530. return 2;
  13531. return 0;
  13532. }
  13533. _ACEOF
  13534. if ac_fn_c_try_run "$LINENO"; then :
  13535. else
  13536. ac_cv_header_stdc=no
  13537. fi
  13538. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13539. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13540. fi
  13541. fi
  13542. fi
  13543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13544. $as_echo "$ac_cv_header_stdc" >&6; }
  13545. if test $ac_cv_header_stdc = yes; then
  13546. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13547. fi
  13548. for ac_header in stdint.h stdlib.h string.h
  13549. do :
  13550. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13551. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13552. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13553. cat >>confdefs.h <<_ACEOF
  13554. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13555. _ACEOF
  13556. fi
  13557. done
  13558. # Checks for typedefs, structures, and compiler characteristics.
  13559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13560. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13561. if ${ac_cv_c_const+:} false; then :
  13562. $as_echo_n "(cached) " >&6
  13563. else
  13564. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13565. /* end confdefs.h. */
  13566. int
  13567. main ()
  13568. {
  13569. #ifndef __cplusplus
  13570. /* Ultrix mips cc rejects this sort of thing. */
  13571. typedef int charset[2];
  13572. const charset cs = { 0, 0 };
  13573. /* SunOS 4.1.1 cc rejects this. */
  13574. char const *const *pcpcc;
  13575. char **ppc;
  13576. /* NEC SVR4.0.2 mips cc rejects this. */
  13577. struct point {int x, y;};
  13578. static struct point const zero = {0,0};
  13579. /* AIX XL C 1.02.0.0 rejects this.
  13580. It does not let you subtract one const X* pointer from another in
  13581. an arm of an if-expression whose if-part is not a constant
  13582. expression */
  13583. const char *g = "string";
  13584. pcpcc = &g + (g ? g-g : 0);
  13585. /* HPUX 7.0 cc rejects these. */
  13586. ++pcpcc;
  13587. ppc = (char**) pcpcc;
  13588. pcpcc = (char const *const *) ppc;
  13589. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13590. char tx;
  13591. char *t = &tx;
  13592. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13593. *t++ = 0;
  13594. if (s) return 0;
  13595. }
  13596. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13597. int x[] = {25, 17};
  13598. const int *foo = &x[0];
  13599. ++foo;
  13600. }
  13601. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13602. typedef const int *iptr;
  13603. iptr p = 0;
  13604. ++p;
  13605. }
  13606. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13607. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13608. struct s { int j; const int *ap[3]; } bx;
  13609. struct s *b = &bx; b->j = 5;
  13610. }
  13611. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13612. const int foo = 10;
  13613. if (!foo) return 0;
  13614. }
  13615. return !cs[0] && !zero.x;
  13616. #endif
  13617. ;
  13618. return 0;
  13619. }
  13620. _ACEOF
  13621. if ac_fn_c_try_compile "$LINENO"; then :
  13622. ac_cv_c_const=yes
  13623. else
  13624. ac_cv_c_const=no
  13625. fi
  13626. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13627. fi
  13628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  13629. $as_echo "$ac_cv_c_const" >&6; }
  13630. if test $ac_cv_c_const = no; then
  13631. $as_echo "#define const /**/" >>confdefs.h
  13632. fi
  13633. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  13634. if test "x$ac_cv_type_size_t" = xyes; then :
  13635. else
  13636. cat >>confdefs.h <<_ACEOF
  13637. #define size_t unsigned int
  13638. _ACEOF
  13639. fi
  13640. ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
  13641. if test "x$ac_cv_type_ssize_t" = xyes; then :
  13642. else
  13643. cat >>confdefs.h <<_ACEOF
  13644. #define ssize_t int
  13645. _ACEOF
  13646. fi
  13647. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  13648. case $ac_cv_c_uint16_t in #(
  13649. no|yes) ;; #(
  13650. *)
  13651. cat >>confdefs.h <<_ACEOF
  13652. #define uint16_t $ac_cv_c_uint16_t
  13653. _ACEOF
  13654. ;;
  13655. esac
  13656. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  13657. case $ac_cv_c_uint32_t in #(
  13658. no|yes) ;; #(
  13659. *)
  13660. $as_echo "#define _UINT32_T 1" >>confdefs.h
  13661. cat >>confdefs.h <<_ACEOF
  13662. #define uint32_t $ac_cv_c_uint32_t
  13663. _ACEOF
  13664. ;;
  13665. esac
  13666. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  13667. case $ac_cv_c_uint8_t in #(
  13668. no|yes) ;; #(
  13669. *)
  13670. $as_echo "#define _UINT8_T 1" >>confdefs.h
  13671. cat >>confdefs.h <<_ACEOF
  13672. #define uint8_t $ac_cv_c_uint8_t
  13673. _ACEOF
  13674. ;;
  13675. esac
  13676. # Checks for library functions.
  13677. for ac_header in stdlib.h
  13678. do :
  13679. ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  13680. if test "x$ac_cv_header_stdlib_h" = xyes; then :
  13681. cat >>confdefs.h <<_ACEOF
  13682. #define HAVE_STDLIB_H 1
  13683. _ACEOF
  13684. fi
  13685. done
  13686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
  13687. $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  13688. if ${ac_cv_func_malloc_0_nonnull+:} false; then :
  13689. $as_echo_n "(cached) " >&6
  13690. else
  13691. if test "$cross_compiling" = yes; then :
  13692. ac_cv_func_malloc_0_nonnull=no
  13693. else
  13694. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13695. /* end confdefs.h. */
  13696. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  13697. # include <stdlib.h>
  13698. #else
  13699. char *malloc ();
  13700. #endif
  13701. int
  13702. main ()
  13703. {
  13704. return ! malloc (0);
  13705. ;
  13706. return 0;
  13707. }
  13708. _ACEOF
  13709. if ac_fn_c_try_run "$LINENO"; then :
  13710. ac_cv_func_malloc_0_nonnull=yes
  13711. else
  13712. ac_cv_func_malloc_0_nonnull=no
  13713. fi
  13714. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13715. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13716. fi
  13717. fi
  13718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
  13719. $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  13720. if test $ac_cv_func_malloc_0_nonnull = yes; then :
  13721. $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
  13722. else
  13723. $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
  13724. case " $LIBOBJS " in
  13725. *" malloc.$ac_objext "* ) ;;
  13726. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  13727. ;;
  13728. esac
  13729. $as_echo "#define malloc rpl_malloc" >>confdefs.h
  13730. fi
  13731. for ac_header in stdlib.h
  13732. do :
  13733. ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  13734. if test "x$ac_cv_header_stdlib_h" = xyes; then :
  13735. cat >>confdefs.h <<_ACEOF
  13736. #define HAVE_STDLIB_H 1
  13737. _ACEOF
  13738. fi
  13739. done
  13740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
  13741. $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
  13742. if ${ac_cv_func_realloc_0_nonnull+:} false; then :
  13743. $as_echo_n "(cached) " >&6
  13744. else
  13745. if test "$cross_compiling" = yes; then :
  13746. ac_cv_func_realloc_0_nonnull=no
  13747. else
  13748. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13749. /* end confdefs.h. */
  13750. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  13751. # include <stdlib.h>
  13752. #else
  13753. char *realloc ();
  13754. #endif
  13755. int
  13756. main ()
  13757. {
  13758. return ! realloc (0, 0);
  13759. ;
  13760. return 0;
  13761. }
  13762. _ACEOF
  13763. if ac_fn_c_try_run "$LINENO"; then :
  13764. ac_cv_func_realloc_0_nonnull=yes
  13765. else
  13766. ac_cv_func_realloc_0_nonnull=no
  13767. fi
  13768. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13769. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13770. fi
  13771. fi
  13772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
  13773. $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
  13774. if test $ac_cv_func_realloc_0_nonnull = yes; then :
  13775. $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
  13776. else
  13777. $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
  13778. case " $LIBOBJS " in
  13779. *" realloc.$ac_objext "* ) ;;
  13780. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  13781. ;;
  13782. esac
  13783. $as_echo "#define realloc rpl_realloc" >>confdefs.h
  13784. fi
  13785. for ac_func in strcasecmp strdup strerror strndup
  13786. do :
  13787. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13788. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13789. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  13790. cat >>confdefs.h <<_ACEOF
  13791. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13792. _ACEOF
  13793. fi
  13794. done
  13795. # Check for operating system
  13796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable WIN32 build settings" >&5
  13797. $as_echo_n "checking whether to enable WIN32 build settings... " >&6; }
  13798. case ${host_os} in
  13799. *mingw32*|*cygwin*)
  13800. win32=true
  13801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13802. $as_echo "yes" >&6; }
  13803. if test -n "$ac_tool_prefix"; then
  13804. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  13805. set dummy ${ac_tool_prefix}windres; ac_word=$2
  13806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13807. $as_echo_n "checking for $ac_word... " >&6; }
  13808. if ${ac_cv_prog_WINDRES+:} false; then :
  13809. $as_echo_n "(cached) " >&6
  13810. else
  13811. if test -n "$WINDRES"; then
  13812. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  13813. else
  13814. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13815. for as_dir in $PATH
  13816. do
  13817. IFS=$as_save_IFS
  13818. test -z "$as_dir" && as_dir=.
  13819. for ac_exec_ext in '' $ac_executable_extensions; do
  13820. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13821. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  13822. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13823. break 2
  13824. fi
  13825. done
  13826. done
  13827. IFS=$as_save_IFS
  13828. fi
  13829. fi
  13830. WINDRES=$ac_cv_prog_WINDRES
  13831. if test -n "$WINDRES"; then
  13832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  13833. $as_echo "$WINDRES" >&6; }
  13834. else
  13835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13836. $as_echo "no" >&6; }
  13837. fi
  13838. fi
  13839. if test -z "$ac_cv_prog_WINDRES"; then
  13840. ac_ct_WINDRES=$WINDRES
  13841. # Extract the first word of "windres", so it can be a program name with args.
  13842. set dummy windres; ac_word=$2
  13843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13844. $as_echo_n "checking for $ac_word... " >&6; }
  13845. if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
  13846. $as_echo_n "(cached) " >&6
  13847. else
  13848. if test -n "$ac_ct_WINDRES"; then
  13849. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  13850. else
  13851. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13852. for as_dir in $PATH
  13853. do
  13854. IFS=$as_save_IFS
  13855. test -z "$as_dir" && as_dir=.
  13856. for ac_exec_ext in '' $ac_executable_extensions; do
  13857. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13858. ac_cv_prog_ac_ct_WINDRES="windres"
  13859. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13860. break 2
  13861. fi
  13862. done
  13863. done
  13864. IFS=$as_save_IFS
  13865. fi
  13866. fi
  13867. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  13868. if test -n "$ac_ct_WINDRES"; then
  13869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  13870. $as_echo "$ac_ct_WINDRES" >&6; }
  13871. else
  13872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13873. $as_echo "no" >&6; }
  13874. fi
  13875. if test "x$ac_ct_WINDRES" = x; then
  13876. WINDRES="as_fn_error $? "windres not found" "$LINENO" 5"
  13877. else
  13878. case $cross_compiling:$ac_tool_warned in
  13879. yes:)
  13880. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13881. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13882. ac_tool_warned=yes ;;
  13883. esac
  13884. WINDRES=$ac_ct_WINDRES
  13885. fi
  13886. else
  13887. WINDRES="$ac_cv_prog_WINDRES"
  13888. fi
  13889. ;;
  13890. *)
  13891. win32=false
  13892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13893. $as_echo "no" >&6; }
  13894. ;;
  13895. esac
  13896. if test x$win32 = xtrue; then
  13897. WIN32_TRUE=
  13898. WIN32_FALSE='#'
  13899. else
  13900. WIN32_TRUE='#'
  13901. WIN32_FALSE=
  13902. fi
  13903. if test "x$win32" != "xtrue"; then
  13904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create, pthread_mutex_lock in -lpthread" >&5
  13905. $as_echo_n "checking for pthread_create, pthread_mutex_lock in -lpthread... " >&6; }
  13906. if ${ac_cv_lib_pthread_pthread_create__pthread_mutex_lock+:} false; then :
  13907. $as_echo_n "(cached) " >&6
  13908. else
  13909. ac_check_lib_save_LIBS=$LIBS
  13910. LIBS="-lpthread $LIBS"
  13911. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13912. /* end confdefs.h. */
  13913. /* Override any GCC internal prototype to avoid an error.
  13914. Use char because int might match the return type of a GCC
  13915. builtin and then its argument prototype would still apply. */
  13916. #ifdef __cplusplus
  13917. extern "C"
  13918. #endif
  13919. char pthread_create, pthread_mutex_lock ();
  13920. int
  13921. main ()
  13922. {
  13923. return pthread_create, pthread_mutex_lock ();
  13924. ;
  13925. return 0;
  13926. }
  13927. _ACEOF
  13928. if ac_fn_c_try_link "$LINENO"; then :
  13929. ac_cv_lib_pthread_pthread_create__pthread_mutex_lock=yes
  13930. else
  13931. ac_cv_lib_pthread_pthread_create__pthread_mutex_lock=no
  13932. fi
  13933. rm -f core conftest.err conftest.$ac_objext \
  13934. conftest$ac_exeext conftest.$ac_ext
  13935. LIBS=$ac_check_lib_save_LIBS
  13936. fi
  13937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create__pthread_mutex_lock" >&5
  13938. $as_echo "$ac_cv_lib_pthread_pthread_create__pthread_mutex_lock" >&6; }
  13939. if test "x$ac_cv_lib_pthread_pthread_create__pthread_mutex_lock" = xyes; then :
  13940. libpthread_LIBS=-lpthread
  13941. else
  13942. as_fn_error $? "libpthread is required to build libusbmuxd" "$LINENO" 5
  13943. fi
  13944. fi
  13945. list="-Wall -Wextra -Wmissing-declarations -Wredundant-decls -Wshadow -Wpointer-arith -Wwrite-strings -Wswitch-default -Wno-unused-parameter -fvisibility=hidden"
  13946. flags_supported=""
  13947. flags_unsupported=""
  13948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported compiler flags" >&5
  13949. $as_echo_n "checking for supported compiler flags... " >&6; }
  13950. for each in $list
  13951. do
  13952. save_CFLAGS="$CFLAGS"
  13953. CFLAGS="$CFLAGS $each"
  13954. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13955. /* end confdefs.h. */
  13956. int
  13957. main ()
  13958. {
  13959. ;
  13960. return 0;
  13961. }
  13962. _ACEOF
  13963. if ac_fn_c_try_compile "$LINENO"; then :
  13964. flag_ok=yes
  13965. else
  13966. flag_ok=no
  13967. fi
  13968. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13969. CFLAGS="$save_CFLAGS"
  13970. if test "X$flag_ok" = Xyes ; then
  13971. flags_supported="$flags_supported $each"
  13972. else
  13973. flags_unsupported="$flags_unsupported $each"
  13974. fi
  13975. done
  13976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flags_supported" >&5
  13977. $as_echo "$flags_supported" >&6; }
  13978. if test "X$flags_unsupported" != X ; then
  13979. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unsupported compiler flags: $flags_unsupported" >&5
  13980. $as_echo "$as_me: WARNING: unsupported compiler flags: $flags_unsupported" >&2;}
  13981. fi
  13982. GLOBAL_CFLAGS="$GLOBAL_CFLAGS $flags_supported"
  13983. case "$GLOBAL_CFLAGS" in
  13984. *-fvisibility=hidden*)
  13985. $as_echo "#define HAVE_FVISIBILITY 1" >>confdefs.h
  13986. esac
  13987. # Check whether --enable-silent-rules was given.
  13988. if test "${enable_silent_rules+set}" = set; then :
  13989. enableval=$enable_silent_rules;
  13990. fi
  13991. case $enable_silent_rules in # (((
  13992. yes) AM_DEFAULT_VERBOSITY=0;;
  13993. no) AM_DEFAULT_VERBOSITY=1;;
  13994. *) AM_DEFAULT_VERBOSITY=0;;
  13995. esac
  13996. am_make=${MAKE-make}
  13997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  13998. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  13999. if ${am_cv_make_support_nested_variables+:} false; then :
  14000. $as_echo_n "(cached) " >&6
  14001. else
  14002. if $as_echo 'TRUE=$(BAR$(V))
  14003. BAR0=false
  14004. BAR1=true
  14005. V=1
  14006. am__doit:
  14007. @$(TRUE)
  14008. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  14009. am_cv_make_support_nested_variables=yes
  14010. else
  14011. am_cv_make_support_nested_variables=no
  14012. fi
  14013. fi
  14014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  14015. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  14016. if test $am_cv_make_support_nested_variables = yes; then
  14017. AM_V='$(V)'
  14018. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  14019. else
  14020. AM_V=$AM_DEFAULT_VERBOSITY
  14021. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  14022. fi
  14023. AM_BACKSLASH='\'
  14024. ac_config_files="$ac_config_files Makefile common/Makefile src/Makefile include/Makefile tools/Makefile libusbmuxd.pc"
  14025. cat >confcache <<\_ACEOF
  14026. # This file is a shell script that caches the results of configure
  14027. # tests run on this system so they can be shared between configure
  14028. # scripts and configure runs, see configure's option --config-cache.
  14029. # It is not useful on other systems. If it contains results you don't
  14030. # want to keep, you may remove or edit it.
  14031. #
  14032. # config.status only pays attention to the cache file if you give it
  14033. # the --recheck option to rerun configure.
  14034. #
  14035. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  14036. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  14037. # following values.
  14038. _ACEOF
  14039. # The following way of writing the cache mishandles newlines in values,
  14040. # but we know of no workaround that is simple, portable, and efficient.
  14041. # So, we kill variables containing newlines.
  14042. # Ultrix sh set writes to stderr and can't be redirected directly,
  14043. # and sets the high bit in the cache file unless we assign to the vars.
  14044. (
  14045. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  14046. eval ac_val=\$$ac_var
  14047. case $ac_val in #(
  14048. *${as_nl}*)
  14049. case $ac_var in #(
  14050. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  14051. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  14052. esac
  14053. case $ac_var in #(
  14054. _ | IFS | as_nl) ;; #(
  14055. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  14056. *) { eval $ac_var=; unset $ac_var;} ;;
  14057. esac ;;
  14058. esac
  14059. done
  14060. (set) 2>&1 |
  14061. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  14062. *${as_nl}ac_space=\ *)
  14063. # `set' does not quote correctly, so add quotes: double-quote
  14064. # substitution turns \\\\ into \\, and sed turns \\ into \.
  14065. sed -n \
  14066. "s/'/'\\\\''/g;
  14067. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  14068. ;; #(
  14069. *)
  14070. # `set' quotes correctly as required by POSIX, so do not add quotes.
  14071. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  14072. ;;
  14073. esac |
  14074. sort
  14075. ) |
  14076. sed '
  14077. /^ac_cv_env_/b end
  14078. t clear
  14079. :clear
  14080. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  14081. t end
  14082. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  14083. :end' >>confcache
  14084. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  14085. if test -w "$cache_file"; then
  14086. if test "x$cache_file" != "x/dev/null"; then
  14087. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  14088. $as_echo "$as_me: updating cache $cache_file" >&6;}
  14089. if test ! -f "$cache_file" || test -h "$cache_file"; then
  14090. cat confcache >"$cache_file"
  14091. else
  14092. case $cache_file in #(
  14093. */* | ?:*)
  14094. mv -f confcache "$cache_file"$$ &&
  14095. mv -f "$cache_file"$$ "$cache_file" ;; #(
  14096. *)
  14097. mv -f confcache "$cache_file" ;;
  14098. esac
  14099. fi
  14100. fi
  14101. else
  14102. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  14103. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  14104. fi
  14105. fi
  14106. rm -f confcache
  14107. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  14108. # Let make expand exec_prefix.
  14109. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  14110. DEFS=-DHAVE_CONFIG_H
  14111. ac_libobjs=
  14112. ac_ltlibobjs=
  14113. U=
  14114. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  14115. # 1. Remove the extension, and $U if already installed.
  14116. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  14117. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  14118. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  14119. # will be set to the directory where LIBOBJS objects are built.
  14120. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  14121. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  14122. done
  14123. LIBOBJS=$ac_libobjs
  14124. LTLIBOBJS=$ac_ltlibobjs
  14125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  14126. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  14127. if test -n "$am_sleep_pid"; then
  14128. # Hide warnings about reused PIDs.
  14129. wait $am_sleep_pid 2>/dev/null
  14130. fi
  14131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  14132. $as_echo "done" >&6; }
  14133. if test -n "$EXEEXT"; then
  14134. am__EXEEXT_TRUE=
  14135. am__EXEEXT_FALSE='#'
  14136. else
  14137. am__EXEEXT_TRUE='#'
  14138. am__EXEEXT_FALSE=
  14139. fi
  14140. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  14141. as_fn_error $? "conditional \"AMDEP\" was never defined.
  14142. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14143. fi
  14144. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  14145. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  14146. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14147. fi
  14148. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  14149. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  14150. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14151. fi
  14152. if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then
  14153. as_fn_error $? "conditional \"WIN32\" was never defined.
  14154. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14155. fi
  14156. : "${CONFIG_STATUS=./config.status}"
  14157. ac_write_fail=0
  14158. ac_clean_files_save=$ac_clean_files
  14159. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  14160. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  14161. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  14162. as_write_fail=0
  14163. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  14164. #! $SHELL
  14165. # Generated by $as_me.
  14166. # Run this file to recreate the current configuration.
  14167. # Compiler output produced by configure, useful for debugging
  14168. # configure, is in config.log if it exists.
  14169. debug=false
  14170. ac_cs_recheck=false
  14171. ac_cs_silent=false
  14172. SHELL=\${CONFIG_SHELL-$SHELL}
  14173. export SHELL
  14174. _ASEOF
  14175. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  14176. ## -------------------- ##
  14177. ## M4sh Initialization. ##
  14178. ## -------------------- ##
  14179. # Be more Bourne compatible
  14180. DUALCASE=1; export DUALCASE # for MKS sh
  14181. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  14182. emulate sh
  14183. NULLCMD=:
  14184. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  14185. # is contrary to our usage. Disable this feature.
  14186. alias -g '${1+"$@"}'='"$@"'
  14187. setopt NO_GLOB_SUBST
  14188. else
  14189. case `(set -o) 2>/dev/null` in #(
  14190. *posix*) :
  14191. set -o posix ;; #(
  14192. *) :
  14193. ;;
  14194. esac
  14195. fi
  14196. as_nl='
  14197. '
  14198. export as_nl
  14199. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  14200. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  14201. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  14202. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  14203. # Prefer a ksh shell builtin over an external printf program on Solaris,
  14204. # but without wasting forks for bash or zsh.
  14205. if test -z "$BASH_VERSION$ZSH_VERSION" \
  14206. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  14207. as_echo='print -r --'
  14208. as_echo_n='print -rn --'
  14209. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  14210. as_echo='printf %s\n'
  14211. as_echo_n='printf %s'
  14212. else
  14213. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  14214. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  14215. as_echo_n='/usr/ucb/echo -n'
  14216. else
  14217. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  14218. as_echo_n_body='eval
  14219. arg=$1;
  14220. case $arg in #(
  14221. *"$as_nl"*)
  14222. expr "X$arg" : "X\\(.*\\)$as_nl";
  14223. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  14224. esac;
  14225. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  14226. '
  14227. export as_echo_n_body
  14228. as_echo_n='sh -c $as_echo_n_body as_echo'
  14229. fi
  14230. export as_echo_body
  14231. as_echo='sh -c $as_echo_body as_echo'
  14232. fi
  14233. # The user is always right.
  14234. if test "${PATH_SEPARATOR+set}" != set; then
  14235. PATH_SEPARATOR=:
  14236. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  14237. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  14238. PATH_SEPARATOR=';'
  14239. }
  14240. fi
  14241. # IFS
  14242. # We need space, tab and new line, in precisely that order. Quoting is
  14243. # there to prevent editors from complaining about space-tab.
  14244. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  14245. # splitting by setting IFS to empty value.)
  14246. IFS=" "" $as_nl"
  14247. # Find who we are. Look in the path if we contain no directory separator.
  14248. as_myself=
  14249. case $0 in #((
  14250. *[\\/]* ) as_myself=$0 ;;
  14251. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14252. for as_dir in $PATH
  14253. do
  14254. IFS=$as_save_IFS
  14255. test -z "$as_dir" && as_dir=.
  14256. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  14257. done
  14258. IFS=$as_save_IFS
  14259. ;;
  14260. esac
  14261. # We did not find ourselves, most probably we were run as `sh COMMAND'
  14262. # in which case we are not to be found in the path.
  14263. if test "x$as_myself" = x; then
  14264. as_myself=$0
  14265. fi
  14266. if test ! -f "$as_myself"; then
  14267. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  14268. exit 1
  14269. fi
  14270. # Unset variables that we do not need and which cause bugs (e.g. in
  14271. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  14272. # suppresses any "Segmentation fault" message there. '((' could
  14273. # trigger a bug in pdksh 5.2.14.
  14274. for as_var in BASH_ENV ENV MAIL MAILPATH
  14275. do eval test x\${$as_var+set} = xset \
  14276. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  14277. done
  14278. PS1='$ '
  14279. PS2='> '
  14280. PS4='+ '
  14281. # NLS nuisances.
  14282. LC_ALL=C
  14283. export LC_ALL
  14284. LANGUAGE=C
  14285. export LANGUAGE
  14286. # CDPATH.
  14287. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14288. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  14289. # ----------------------------------------
  14290. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  14291. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  14292. # script with STATUS, using 1 if that was 0.
  14293. as_fn_error ()
  14294. {
  14295. as_status=$1; test $as_status -eq 0 && as_status=1
  14296. if test "$4"; then
  14297. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14298. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  14299. fi
  14300. $as_echo "$as_me: error: $2" >&2
  14301. as_fn_exit $as_status
  14302. } # as_fn_error
  14303. # as_fn_set_status STATUS
  14304. # -----------------------
  14305. # Set $? to STATUS, without forking.
  14306. as_fn_set_status ()
  14307. {
  14308. return $1
  14309. } # as_fn_set_status
  14310. # as_fn_exit STATUS
  14311. # -----------------
  14312. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  14313. as_fn_exit ()
  14314. {
  14315. set +e
  14316. as_fn_set_status $1
  14317. exit $1
  14318. } # as_fn_exit
  14319. # as_fn_unset VAR
  14320. # ---------------
  14321. # Portably unset VAR.
  14322. as_fn_unset ()
  14323. {
  14324. { eval $1=; unset $1;}
  14325. }
  14326. as_unset=as_fn_unset
  14327. # as_fn_append VAR VALUE
  14328. # ----------------------
  14329. # Append the text in VALUE to the end of the definition contained in VAR. Take
  14330. # advantage of any shell optimizations that allow amortized linear growth over
  14331. # repeated appends, instead of the typical quadratic growth present in naive
  14332. # implementations.
  14333. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  14334. eval 'as_fn_append ()
  14335. {
  14336. eval $1+=\$2
  14337. }'
  14338. else
  14339. as_fn_append ()
  14340. {
  14341. eval $1=\$$1\$2
  14342. }
  14343. fi # as_fn_append
  14344. # as_fn_arith ARG...
  14345. # ------------------
  14346. # Perform arithmetic evaluation on the ARGs, and store the result in the
  14347. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  14348. # must be portable across $(()) and expr.
  14349. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  14350. eval 'as_fn_arith ()
  14351. {
  14352. as_val=$(( $* ))
  14353. }'
  14354. else
  14355. as_fn_arith ()
  14356. {
  14357. as_val=`expr "$@" || test $? -eq 1`
  14358. }
  14359. fi # as_fn_arith
  14360. if expr a : '\(a\)' >/dev/null 2>&1 &&
  14361. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  14362. as_expr=expr
  14363. else
  14364. as_expr=false
  14365. fi
  14366. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  14367. as_basename=basename
  14368. else
  14369. as_basename=false
  14370. fi
  14371. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  14372. as_dirname=dirname
  14373. else
  14374. as_dirname=false
  14375. fi
  14376. as_me=`$as_basename -- "$0" ||
  14377. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  14378. X"$0" : 'X\(//\)$' \| \
  14379. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  14380. $as_echo X/"$0" |
  14381. sed '/^.*\/\([^/][^/]*\)\/*$/{
  14382. s//\1/
  14383. q
  14384. }
  14385. /^X\/\(\/\/\)$/{
  14386. s//\1/
  14387. q
  14388. }
  14389. /^X\/\(\/\).*/{
  14390. s//\1/
  14391. q
  14392. }
  14393. s/.*/./; q'`
  14394. # Avoid depending upon Character Ranges.
  14395. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  14396. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  14397. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  14398. as_cr_digits='0123456789'
  14399. as_cr_alnum=$as_cr_Letters$as_cr_digits
  14400. ECHO_C= ECHO_N= ECHO_T=
  14401. case `echo -n x` in #(((((
  14402. -n*)
  14403. case `echo 'xy\c'` in
  14404. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  14405. xy) ECHO_C='\c';;
  14406. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  14407. ECHO_T=' ';;
  14408. esac;;
  14409. *)
  14410. ECHO_N='-n';;
  14411. esac
  14412. rm -f conf$$ conf$$.exe conf$$.file
  14413. if test -d conf$$.dir; then
  14414. rm -f conf$$.dir/conf$$.file
  14415. else
  14416. rm -f conf$$.dir
  14417. mkdir conf$$.dir 2>/dev/null
  14418. fi
  14419. if (echo >conf$$.file) 2>/dev/null; then
  14420. if ln -s conf$$.file conf$$ 2>/dev/null; then
  14421. as_ln_s='ln -s'
  14422. # ... but there are two gotchas:
  14423. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  14424. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  14425. # In both cases, we have to default to `cp -pR'.
  14426. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  14427. as_ln_s='cp -pR'
  14428. elif ln conf$$.file conf$$ 2>/dev/null; then
  14429. as_ln_s=ln
  14430. else
  14431. as_ln_s='cp -pR'
  14432. fi
  14433. else
  14434. as_ln_s='cp -pR'
  14435. fi
  14436. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  14437. rmdir conf$$.dir 2>/dev/null
  14438. # as_fn_mkdir_p
  14439. # -------------
  14440. # Create "$as_dir" as a directory, including parents if necessary.
  14441. as_fn_mkdir_p ()
  14442. {
  14443. case $as_dir in #(
  14444. -*) as_dir=./$as_dir;;
  14445. esac
  14446. test -d "$as_dir" || eval $as_mkdir_p || {
  14447. as_dirs=
  14448. while :; do
  14449. case $as_dir in #(
  14450. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  14451. *) as_qdir=$as_dir;;
  14452. esac
  14453. as_dirs="'$as_qdir' $as_dirs"
  14454. as_dir=`$as_dirname -- "$as_dir" ||
  14455. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14456. X"$as_dir" : 'X\(//\)[^/]' \| \
  14457. X"$as_dir" : 'X\(//\)$' \| \
  14458. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  14459. $as_echo X"$as_dir" |
  14460. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14461. s//\1/
  14462. q
  14463. }
  14464. /^X\(\/\/\)[^/].*/{
  14465. s//\1/
  14466. q
  14467. }
  14468. /^X\(\/\/\)$/{
  14469. s//\1/
  14470. q
  14471. }
  14472. /^X\(\/\).*/{
  14473. s//\1/
  14474. q
  14475. }
  14476. s/.*/./; q'`
  14477. test -d "$as_dir" && break
  14478. done
  14479. test -z "$as_dirs" || eval "mkdir $as_dirs"
  14480. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  14481. } # as_fn_mkdir_p
  14482. if mkdir -p . 2>/dev/null; then
  14483. as_mkdir_p='mkdir -p "$as_dir"'
  14484. else
  14485. test -d ./-p && rmdir ./-p
  14486. as_mkdir_p=false
  14487. fi
  14488. # as_fn_executable_p FILE
  14489. # -----------------------
  14490. # Test if FILE is an executable regular file.
  14491. as_fn_executable_p ()
  14492. {
  14493. test -f "$1" && test -x "$1"
  14494. } # as_fn_executable_p
  14495. as_test_x='test -x'
  14496. as_executable_p=as_fn_executable_p
  14497. # Sed expression to map a string onto a valid CPP name.
  14498. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  14499. # Sed expression to map a string onto a valid variable name.
  14500. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  14501. exec 6>&1
  14502. ## ----------------------------------- ##
  14503. ## Main body of $CONFIG_STATUS script. ##
  14504. ## ----------------------------------- ##
  14505. _ASEOF
  14506. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  14507. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14508. # Save the log message, to keep $0 and so on meaningful, and to
  14509. # report actual input values of CONFIG_FILES etc. instead of their
  14510. # values after options handling.
  14511. ac_log="
  14512. This file was extended by libusbmuxd $as_me 1.0.10, which was
  14513. generated by GNU Autoconf 2.69. Invocation command line was
  14514. CONFIG_FILES = $CONFIG_FILES
  14515. CONFIG_HEADERS = $CONFIG_HEADERS
  14516. CONFIG_LINKS = $CONFIG_LINKS
  14517. CONFIG_COMMANDS = $CONFIG_COMMANDS
  14518. $ $0 $@
  14519. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  14520. "
  14521. _ACEOF
  14522. case $ac_config_files in *"
  14523. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  14524. esac
  14525. case $ac_config_headers in *"
  14526. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  14527. esac
  14528. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14529. # Files that config.status was made for.
  14530. config_files="$ac_config_files"
  14531. config_headers="$ac_config_headers"
  14532. config_commands="$ac_config_commands"
  14533. _ACEOF
  14534. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14535. ac_cs_usage="\
  14536. \`$as_me' instantiates files and other configuration actions
  14537. from templates according to the current configuration. Unless the files
  14538. and actions are specified as TAGs, all are instantiated by default.
  14539. Usage: $0 [OPTION]... [TAG]...
  14540. -h, --help print this help, then exit
  14541. -V, --version print version number and configuration settings, then exit
  14542. --config print configuration, then exit
  14543. -q, --quiet, --silent
  14544. do not print progress messages
  14545. -d, --debug don't remove temporary files
  14546. --recheck update $as_me by reconfiguring in the same conditions
  14547. --file=FILE[:TEMPLATE]
  14548. instantiate the configuration file FILE
  14549. --header=FILE[:TEMPLATE]
  14550. instantiate the configuration header FILE
  14551. Configuration files:
  14552. $config_files
  14553. Configuration headers:
  14554. $config_headers
  14555. Configuration commands:
  14556. $config_commands
  14557. Report bugs to <nospam@nowhere.com>."
  14558. _ACEOF
  14559. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14560. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  14561. ac_cs_version="\\
  14562. libusbmuxd config.status 1.0.10
  14563. configured by $0, generated by GNU Autoconf 2.69,
  14564. with options \\"\$ac_cs_config\\"
  14565. Copyright (C) 2012 Free Software Foundation, Inc.
  14566. This config.status script is free software; the Free Software Foundation
  14567. gives unlimited permission to copy, distribute and modify it."
  14568. ac_pwd='$ac_pwd'
  14569. srcdir='$srcdir'
  14570. INSTALL='$INSTALL'
  14571. MKDIR_P='$MKDIR_P'
  14572. AWK='$AWK'
  14573. test -n "\$AWK" || AWK=awk
  14574. _ACEOF
  14575. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14576. # The default lists apply if the user does not specify any file.
  14577. ac_need_defaults=:
  14578. while test $# != 0
  14579. do
  14580. case $1 in
  14581. --*=?*)
  14582. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14583. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  14584. ac_shift=:
  14585. ;;
  14586. --*=)
  14587. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14588. ac_optarg=
  14589. ac_shift=:
  14590. ;;
  14591. *)
  14592. ac_option=$1
  14593. ac_optarg=$2
  14594. ac_shift=shift
  14595. ;;
  14596. esac
  14597. case $ac_option in
  14598. # Handling of the options.
  14599. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  14600. ac_cs_recheck=: ;;
  14601. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  14602. $as_echo "$ac_cs_version"; exit ;;
  14603. --config | --confi | --conf | --con | --co | --c )
  14604. $as_echo "$ac_cs_config"; exit ;;
  14605. --debug | --debu | --deb | --de | --d | -d )
  14606. debug=: ;;
  14607. --file | --fil | --fi | --f )
  14608. $ac_shift
  14609. case $ac_optarg in
  14610. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14611. '') as_fn_error $? "missing file argument" ;;
  14612. esac
  14613. as_fn_append CONFIG_FILES " '$ac_optarg'"
  14614. ac_need_defaults=false;;
  14615. --header | --heade | --head | --hea )
  14616. $ac_shift
  14617. case $ac_optarg in
  14618. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14619. esac
  14620. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  14621. ac_need_defaults=false;;
  14622. --he | --h)
  14623. # Conflict between --help and --header
  14624. as_fn_error $? "ambiguous option: \`$1'
  14625. Try \`$0 --help' for more information.";;
  14626. --help | --hel | -h )
  14627. $as_echo "$ac_cs_usage"; exit ;;
  14628. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14629. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  14630. ac_cs_silent=: ;;
  14631. # This is an error.
  14632. -*) as_fn_error $? "unrecognized option: \`$1'
  14633. Try \`$0 --help' for more information." ;;
  14634. *) as_fn_append ac_config_targets " $1"
  14635. ac_need_defaults=false ;;
  14636. esac
  14637. shift
  14638. done
  14639. ac_configure_extra_args=
  14640. if $ac_cs_silent; then
  14641. exec 6>/dev/null
  14642. ac_configure_extra_args="$ac_configure_extra_args --silent"
  14643. fi
  14644. _ACEOF
  14645. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14646. if \$ac_cs_recheck; then
  14647. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14648. shift
  14649. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  14650. CONFIG_SHELL='$SHELL'
  14651. export CONFIG_SHELL
  14652. exec "\$@"
  14653. fi
  14654. _ACEOF
  14655. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14656. exec 5>>config.log
  14657. {
  14658. echo
  14659. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  14660. ## Running $as_me. ##
  14661. _ASBOX
  14662. $as_echo "$ac_log"
  14663. } >&5
  14664. _ACEOF
  14665. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14666. #
  14667. # INIT-COMMANDS
  14668. #
  14669. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  14670. # The HP-UX ksh and POSIX shell print the target directory to stdout
  14671. # if CDPATH is set.
  14672. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14673. sed_quote_subst='$sed_quote_subst'
  14674. double_quote_subst='$double_quote_subst'
  14675. delay_variable_subst='$delay_variable_subst'
  14676. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  14677. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  14678. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  14679. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  14680. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  14681. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  14682. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  14683. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  14684. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  14685. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  14686. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  14687. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  14688. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  14689. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  14690. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  14691. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  14692. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  14693. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  14694. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  14695. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  14696. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  14697. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  14698. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  14699. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  14700. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  14701. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  14702. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  14703. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  14704. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  14705. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  14706. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  14707. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  14708. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  14709. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  14710. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  14711. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  14712. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  14713. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  14714. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  14715. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  14716. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  14717. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  14718. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  14719. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  14720. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  14721. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14722. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14723. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  14724. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  14725. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  14726. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  14727. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  14728. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  14729. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  14730. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  14731. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  14732. 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"`'
  14733. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  14734. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  14735. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  14736. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  14737. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  14738. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  14739. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  14740. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  14741. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  14742. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  14743. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  14744. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  14745. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  14746. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  14747. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  14748. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  14749. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  14750. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  14751. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14752. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  14753. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  14754. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  14755. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  14756. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  14757. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  14758. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14759. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  14760. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14761. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  14762. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14763. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  14764. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14765. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14766. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  14767. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  14768. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  14769. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  14770. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  14771. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14772. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  14773. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  14774. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  14775. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  14776. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  14777. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  14778. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  14779. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  14780. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  14781. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  14782. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  14783. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  14784. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  14785. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  14786. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  14787. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14788. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  14789. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  14790. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  14791. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  14792. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  14793. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14794. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14795. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  14796. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  14797. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  14798. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  14799. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  14800. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  14801. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  14802. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  14803. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  14804. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  14805. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  14806. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  14807. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  14808. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  14809. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  14810. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  14811. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  14812. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  14813. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14814. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14815. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14816. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  14817. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  14818. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14819. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  14820. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  14821. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  14822. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  14823. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  14824. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  14825. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14826. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14827. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  14828. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14829. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14830. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14831. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14832. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14833. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14834. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  14835. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14836. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14837. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14838. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  14839. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  14840. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  14841. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  14842. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  14843. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  14844. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  14845. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  14846. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  14847. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14848. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  14849. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  14850. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14851. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14852. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14853. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  14854. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  14855. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  14856. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  14857. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  14858. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  14859. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  14860. LTCC='$LTCC'
  14861. LTCFLAGS='$LTCFLAGS'
  14862. compiler='$compiler_DEFAULT'
  14863. # A function that is used when there is no print builtin or printf.
  14864. func_fallback_echo ()
  14865. {
  14866. eval 'cat <<_LTECHO_EOF
  14867. \$1
  14868. _LTECHO_EOF'
  14869. }
  14870. # Quote evaled strings.
  14871. for var in SHELL \
  14872. ECHO \
  14873. PATH_SEPARATOR \
  14874. SED \
  14875. GREP \
  14876. EGREP \
  14877. FGREP \
  14878. LD \
  14879. NM \
  14880. LN_S \
  14881. lt_SP2NL \
  14882. lt_NL2SP \
  14883. reload_flag \
  14884. OBJDUMP \
  14885. deplibs_check_method \
  14886. file_magic_cmd \
  14887. file_magic_glob \
  14888. want_nocaseglob \
  14889. DLLTOOL \
  14890. sharedlib_from_linklib_cmd \
  14891. AR \
  14892. AR_FLAGS \
  14893. archiver_list_spec \
  14894. STRIP \
  14895. RANLIB \
  14896. CC \
  14897. CFLAGS \
  14898. compiler \
  14899. lt_cv_sys_global_symbol_pipe \
  14900. lt_cv_sys_global_symbol_to_cdecl \
  14901. lt_cv_sys_global_symbol_to_c_name_address \
  14902. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  14903. nm_file_list_spec \
  14904. lt_prog_compiler_no_builtin_flag \
  14905. lt_prog_compiler_pic \
  14906. lt_prog_compiler_wl \
  14907. lt_prog_compiler_static \
  14908. lt_cv_prog_compiler_c_o \
  14909. need_locks \
  14910. MANIFEST_TOOL \
  14911. DSYMUTIL \
  14912. NMEDIT \
  14913. LIPO \
  14914. OTOOL \
  14915. OTOOL64 \
  14916. shrext_cmds \
  14917. export_dynamic_flag_spec \
  14918. whole_archive_flag_spec \
  14919. compiler_needs_object \
  14920. with_gnu_ld \
  14921. allow_undefined_flag \
  14922. no_undefined_flag \
  14923. hardcode_libdir_flag_spec \
  14924. hardcode_libdir_separator \
  14925. exclude_expsyms \
  14926. include_expsyms \
  14927. file_list_spec \
  14928. variables_saved_for_relink \
  14929. libname_spec \
  14930. library_names_spec \
  14931. soname_spec \
  14932. install_override_mode \
  14933. finish_eval \
  14934. old_striplib \
  14935. striplib \
  14936. compiler_lib_search_dirs \
  14937. predep_objects \
  14938. postdep_objects \
  14939. predeps \
  14940. postdeps \
  14941. compiler_lib_search_path \
  14942. LD_CXX \
  14943. reload_flag_CXX \
  14944. compiler_CXX \
  14945. lt_prog_compiler_no_builtin_flag_CXX \
  14946. lt_prog_compiler_pic_CXX \
  14947. lt_prog_compiler_wl_CXX \
  14948. lt_prog_compiler_static_CXX \
  14949. lt_cv_prog_compiler_c_o_CXX \
  14950. export_dynamic_flag_spec_CXX \
  14951. whole_archive_flag_spec_CXX \
  14952. compiler_needs_object_CXX \
  14953. with_gnu_ld_CXX \
  14954. allow_undefined_flag_CXX \
  14955. no_undefined_flag_CXX \
  14956. hardcode_libdir_flag_spec_CXX \
  14957. hardcode_libdir_separator_CXX \
  14958. exclude_expsyms_CXX \
  14959. include_expsyms_CXX \
  14960. file_list_spec_CXX \
  14961. compiler_lib_search_dirs_CXX \
  14962. predep_objects_CXX \
  14963. postdep_objects_CXX \
  14964. predeps_CXX \
  14965. postdeps_CXX \
  14966. compiler_lib_search_path_CXX; do
  14967. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  14968. *[\\\\\\\`\\"\\\$]*)
  14969. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  14970. ;;
  14971. *)
  14972. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14973. ;;
  14974. esac
  14975. done
  14976. # Double-quote double-evaled strings.
  14977. for var in reload_cmds \
  14978. old_postinstall_cmds \
  14979. old_postuninstall_cmds \
  14980. old_archive_cmds \
  14981. extract_expsyms_cmds \
  14982. old_archive_from_new_cmds \
  14983. old_archive_from_expsyms_cmds \
  14984. archive_cmds \
  14985. archive_expsym_cmds \
  14986. module_cmds \
  14987. module_expsym_cmds \
  14988. export_symbols_cmds \
  14989. prelink_cmds \
  14990. postlink_cmds \
  14991. postinstall_cmds \
  14992. postuninstall_cmds \
  14993. finish_cmds \
  14994. sys_lib_search_path_spec \
  14995. sys_lib_dlsearch_path_spec \
  14996. reload_cmds_CXX \
  14997. old_archive_cmds_CXX \
  14998. old_archive_from_new_cmds_CXX \
  14999. old_archive_from_expsyms_cmds_CXX \
  15000. archive_cmds_CXX \
  15001. archive_expsym_cmds_CXX \
  15002. module_cmds_CXX \
  15003. module_expsym_cmds_CXX \
  15004. export_symbols_cmds_CXX \
  15005. prelink_cmds_CXX \
  15006. postlink_cmds_CXX; do
  15007. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15008. *[\\\\\\\`\\"\\\$]*)
  15009. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  15010. ;;
  15011. *)
  15012. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15013. ;;
  15014. esac
  15015. done
  15016. ac_aux_dir='$ac_aux_dir'
  15017. xsi_shell='$xsi_shell'
  15018. lt_shell_append='$lt_shell_append'
  15019. # See if we are running on zsh, and set the options which allow our
  15020. # commands through without removal of \ escapes INIT.
  15021. if test -n "\${ZSH_VERSION+set}" ; then
  15022. setopt NO_GLOB_SUBST
  15023. fi
  15024. PACKAGE='$PACKAGE'
  15025. VERSION='$VERSION'
  15026. TIMESTAMP='$TIMESTAMP'
  15027. RM='$RM'
  15028. ofile='$ofile'
  15029. _ACEOF
  15030. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15031. # Handling of arguments.
  15032. for ac_config_target in $ac_config_targets
  15033. do
  15034. case $ac_config_target in
  15035. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  15036. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  15037. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  15038. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  15039. "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
  15040. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  15041. "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
  15042. "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
  15043. "libusbmuxd.pc") CONFIG_FILES="$CONFIG_FILES libusbmuxd.pc" ;;
  15044. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  15045. esac
  15046. done
  15047. # If the user did not use the arguments to specify the items to instantiate,
  15048. # then the envvar interface is used. Set only those that are not.
  15049. # We use the long form for the default assignment because of an extremely
  15050. # bizarre bug on SunOS 4.1.3.
  15051. if $ac_need_defaults; then
  15052. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  15053. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  15054. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  15055. fi
  15056. # Have a temporary directory for convenience. Make it in the build tree
  15057. # simply because there is no reason against having it here, and in addition,
  15058. # creating and moving files from /tmp can sometimes cause problems.
  15059. # Hook for its removal unless debugging.
  15060. # Note that there is a small window in which the directory will not be cleaned:
  15061. # after its creation but before its name has been assigned to `$tmp'.
  15062. $debug ||
  15063. {
  15064. tmp= ac_tmp=
  15065. trap 'exit_status=$?
  15066. : "${ac_tmp:=$tmp}"
  15067. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  15068. ' 0
  15069. trap 'as_fn_exit 1' 1 2 13 15
  15070. }
  15071. # Create a (secure) tmp directory for tmp files.
  15072. {
  15073. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  15074. test -d "$tmp"
  15075. } ||
  15076. {
  15077. tmp=./conf$$-$RANDOM
  15078. (umask 077 && mkdir "$tmp")
  15079. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  15080. ac_tmp=$tmp
  15081. # Set up the scripts for CONFIG_FILES section.
  15082. # No need to generate them if there are no CONFIG_FILES.
  15083. # This happens for instance with `./config.status config.h'.
  15084. if test -n "$CONFIG_FILES"; then
  15085. ac_cr=`echo X | tr X '\015'`
  15086. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  15087. # But we know of no other shell where ac_cr would be empty at this
  15088. # point, so we can use a bashism as a fallback.
  15089. if test "x$ac_cr" = x; then
  15090. eval ac_cr=\$\'\\r\'
  15091. fi
  15092. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  15093. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  15094. ac_cs_awk_cr='\\r'
  15095. else
  15096. ac_cs_awk_cr=$ac_cr
  15097. fi
  15098. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  15099. _ACEOF
  15100. {
  15101. echo "cat >conf$$subs.awk <<_ACEOF" &&
  15102. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  15103. echo "_ACEOF"
  15104. } >conf$$subs.sh ||
  15105. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15106. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  15107. ac_delim='%!_!# '
  15108. for ac_last_try in false false false false false :; do
  15109. . ./conf$$subs.sh ||
  15110. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15111. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  15112. if test $ac_delim_n = $ac_delim_num; then
  15113. break
  15114. elif $ac_last_try; then
  15115. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15116. else
  15117. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15118. fi
  15119. done
  15120. rm -f conf$$subs.sh
  15121. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15122. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  15123. _ACEOF
  15124. sed -n '
  15125. h
  15126. s/^/S["/; s/!.*/"]=/
  15127. p
  15128. g
  15129. s/^[^!]*!//
  15130. :repl
  15131. t repl
  15132. s/'"$ac_delim"'$//
  15133. t delim
  15134. :nl
  15135. h
  15136. s/\(.\{148\}\)..*/\1/
  15137. t more1
  15138. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  15139. p
  15140. n
  15141. b repl
  15142. :more1
  15143. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15144. p
  15145. g
  15146. s/.\{148\}//
  15147. t nl
  15148. :delim
  15149. h
  15150. s/\(.\{148\}\)..*/\1/
  15151. t more2
  15152. s/["\\]/\\&/g; s/^/"/; s/$/"/
  15153. p
  15154. b
  15155. :more2
  15156. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15157. p
  15158. g
  15159. s/.\{148\}//
  15160. t delim
  15161. ' <conf$$subs.awk | sed '
  15162. /^[^""]/{
  15163. N
  15164. s/\n//
  15165. }
  15166. ' >>$CONFIG_STATUS || ac_write_fail=1
  15167. rm -f conf$$subs.awk
  15168. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15169. _ACAWK
  15170. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  15171. for (key in S) S_is_set[key] = 1
  15172. FS = ""
  15173. }
  15174. {
  15175. line = $ 0
  15176. nfields = split(line, field, "@")
  15177. substed = 0
  15178. len = length(field[1])
  15179. for (i = 2; i < nfields; i++) {
  15180. key = field[i]
  15181. keylen = length(key)
  15182. if (S_is_set[key]) {
  15183. value = S[key]
  15184. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  15185. len += length(value) + length(field[++i])
  15186. substed = 1
  15187. } else
  15188. len += 1 + keylen
  15189. }
  15190. print line
  15191. }
  15192. _ACAWK
  15193. _ACEOF
  15194. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15195. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  15196. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  15197. else
  15198. cat
  15199. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  15200. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  15201. _ACEOF
  15202. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  15203. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  15204. # trailing colons and then remove the whole line if VPATH becomes empty
  15205. # (actually we leave an empty line to preserve line numbers).
  15206. if test "x$srcdir" = x.; then
  15207. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  15208. h
  15209. s///
  15210. s/^/:/
  15211. s/[ ]*$/:/
  15212. s/:\$(srcdir):/:/g
  15213. s/:\${srcdir}:/:/g
  15214. s/:@srcdir@:/:/g
  15215. s/^:*//
  15216. s/:*$//
  15217. x
  15218. s/\(=[ ]*\).*/\1/
  15219. G
  15220. s/\n//
  15221. s/^[^=]*=[ ]*$//
  15222. }'
  15223. fi
  15224. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15225. fi # test -n "$CONFIG_FILES"
  15226. # Set up the scripts for CONFIG_HEADERS section.
  15227. # No need to generate them if there are no CONFIG_HEADERS.
  15228. # This happens for instance with `./config.status Makefile'.
  15229. if test -n "$CONFIG_HEADERS"; then
  15230. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  15231. BEGIN {
  15232. _ACEOF
  15233. # Transform confdefs.h into an awk script `defines.awk', embedded as
  15234. # here-document in config.status, that substitutes the proper values into
  15235. # config.h.in to produce config.h.
  15236. # Create a delimiter string that does not exist in confdefs.h, to ease
  15237. # handling of long lines.
  15238. ac_delim='%!_!# '
  15239. for ac_last_try in false false :; do
  15240. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  15241. if test -z "$ac_tt"; then
  15242. break
  15243. elif $ac_last_try; then
  15244. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  15245. else
  15246. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15247. fi
  15248. done
  15249. # For the awk script, D is an array of macro values keyed by name,
  15250. # likewise P contains macro parameters if any. Preserve backslash
  15251. # newline sequences.
  15252. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  15253. sed -n '
  15254. s/.\{148\}/&'"$ac_delim"'/g
  15255. t rset
  15256. :rset
  15257. s/^[ ]*#[ ]*define[ ][ ]*/ /
  15258. t def
  15259. d
  15260. :def
  15261. s/\\$//
  15262. t bsnl
  15263. s/["\\]/\\&/g
  15264. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15265. D["\1"]=" \3"/p
  15266. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  15267. d
  15268. :bsnl
  15269. s/["\\]/\\&/g
  15270. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15271. D["\1"]=" \3\\\\\\n"\\/p
  15272. t cont
  15273. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  15274. t cont
  15275. d
  15276. :cont
  15277. n
  15278. s/.\{148\}/&'"$ac_delim"'/g
  15279. t clear
  15280. :clear
  15281. s/\\$//
  15282. t bsnlc
  15283. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  15284. d
  15285. :bsnlc
  15286. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  15287. b cont
  15288. ' <confdefs.h | sed '
  15289. s/'"$ac_delim"'/"\\\
  15290. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  15291. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15292. for (key in D) D_is_set[key] = 1
  15293. FS = ""
  15294. }
  15295. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  15296. line = \$ 0
  15297. split(line, arg, " ")
  15298. if (arg[1] == "#") {
  15299. defundef = arg[2]
  15300. mac1 = arg[3]
  15301. } else {
  15302. defundef = substr(arg[1], 2)
  15303. mac1 = arg[2]
  15304. }
  15305. split(mac1, mac2, "(") #)
  15306. macro = mac2[1]
  15307. prefix = substr(line, 1, index(line, defundef) - 1)
  15308. if (D_is_set[macro]) {
  15309. # Preserve the white space surrounding the "#".
  15310. print prefix "define", macro P[macro] D[macro]
  15311. next
  15312. } else {
  15313. # Replace #undef with comments. This is necessary, for example,
  15314. # in the case of _POSIX_SOURCE, which is predefined and required
  15315. # on some systems where configure will not decide to define it.
  15316. if (defundef == "undef") {
  15317. print "/*", prefix defundef, macro, "*/"
  15318. next
  15319. }
  15320. }
  15321. }
  15322. { print }
  15323. _ACAWK
  15324. _ACEOF
  15325. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15326. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  15327. fi # test -n "$CONFIG_HEADERS"
  15328. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  15329. shift
  15330. for ac_tag
  15331. do
  15332. case $ac_tag in
  15333. :[FHLC]) ac_mode=$ac_tag; continue;;
  15334. esac
  15335. case $ac_mode$ac_tag in
  15336. :[FHL]*:*);;
  15337. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  15338. :[FH]-) ac_tag=-:-;;
  15339. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  15340. esac
  15341. ac_save_IFS=$IFS
  15342. IFS=:
  15343. set x $ac_tag
  15344. IFS=$ac_save_IFS
  15345. shift
  15346. ac_file=$1
  15347. shift
  15348. case $ac_mode in
  15349. :L) ac_source=$1;;
  15350. :[FH])
  15351. ac_file_inputs=
  15352. for ac_f
  15353. do
  15354. case $ac_f in
  15355. -) ac_f="$ac_tmp/stdin";;
  15356. *) # Look for the file first in the build tree, then in the source tree
  15357. # (if the path is not absolute). The absolute path cannot be DOS-style,
  15358. # because $ac_f cannot contain `:'.
  15359. test -f "$ac_f" ||
  15360. case $ac_f in
  15361. [\\/$]*) false;;
  15362. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  15363. esac ||
  15364. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  15365. esac
  15366. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  15367. as_fn_append ac_file_inputs " '$ac_f'"
  15368. done
  15369. # Let's still pretend it is `configure' which instantiates (i.e., don't
  15370. # use $as_me), people would be surprised to read:
  15371. # /* config.h. Generated by config.status. */
  15372. configure_input='Generated from '`
  15373. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  15374. `' by configure.'
  15375. if test x"$ac_file" != x-; then
  15376. configure_input="$ac_file. $configure_input"
  15377. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  15378. $as_echo "$as_me: creating $ac_file" >&6;}
  15379. fi
  15380. # Neutralize special characters interpreted by sed in replacement strings.
  15381. case $configure_input in #(
  15382. *\&* | *\|* | *\\* )
  15383. ac_sed_conf_input=`$as_echo "$configure_input" |
  15384. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  15385. *) ac_sed_conf_input=$configure_input;;
  15386. esac
  15387. case $ac_tag in
  15388. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  15389. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  15390. esac
  15391. ;;
  15392. esac
  15393. ac_dir=`$as_dirname -- "$ac_file" ||
  15394. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15395. X"$ac_file" : 'X\(//\)[^/]' \| \
  15396. X"$ac_file" : 'X\(//\)$' \| \
  15397. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  15398. $as_echo X"$ac_file" |
  15399. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15400. s//\1/
  15401. q
  15402. }
  15403. /^X\(\/\/\)[^/].*/{
  15404. s//\1/
  15405. q
  15406. }
  15407. /^X\(\/\/\)$/{
  15408. s//\1/
  15409. q
  15410. }
  15411. /^X\(\/\).*/{
  15412. s//\1/
  15413. q
  15414. }
  15415. s/.*/./; q'`
  15416. as_dir="$ac_dir"; as_fn_mkdir_p
  15417. ac_builddir=.
  15418. case "$ac_dir" in
  15419. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15420. *)
  15421. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  15422. # A ".." for each directory in $ac_dir_suffix.
  15423. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  15424. case $ac_top_builddir_sub in
  15425. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15426. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  15427. esac ;;
  15428. esac
  15429. ac_abs_top_builddir=$ac_pwd
  15430. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  15431. # for backward compatibility:
  15432. ac_top_builddir=$ac_top_build_prefix
  15433. case $srcdir in
  15434. .) # We are building in place.
  15435. ac_srcdir=.
  15436. ac_top_srcdir=$ac_top_builddir_sub
  15437. ac_abs_top_srcdir=$ac_pwd ;;
  15438. [\\/]* | ?:[\\/]* ) # Absolute name.
  15439. ac_srcdir=$srcdir$ac_dir_suffix;
  15440. ac_top_srcdir=$srcdir
  15441. ac_abs_top_srcdir=$srcdir ;;
  15442. *) # Relative name.
  15443. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  15444. ac_top_srcdir=$ac_top_build_prefix$srcdir
  15445. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  15446. esac
  15447. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  15448. case $ac_mode in
  15449. :F)
  15450. #
  15451. # CONFIG_FILE
  15452. #
  15453. case $INSTALL in
  15454. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  15455. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  15456. esac
  15457. ac_MKDIR_P=$MKDIR_P
  15458. case $MKDIR_P in
  15459. [\\/$]* | ?:[\\/]* ) ;;
  15460. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  15461. esac
  15462. _ACEOF
  15463. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15464. # If the template does not know about datarootdir, expand it.
  15465. # FIXME: This hack should be removed a few years after 2.60.
  15466. ac_datarootdir_hack=; ac_datarootdir_seen=
  15467. ac_sed_dataroot='
  15468. /datarootdir/ {
  15469. p
  15470. q
  15471. }
  15472. /@datadir@/p
  15473. /@docdir@/p
  15474. /@infodir@/p
  15475. /@localedir@/p
  15476. /@mandir@/p'
  15477. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  15478. *datarootdir*) ac_datarootdir_seen=yes;;
  15479. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  15480. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  15481. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  15482. _ACEOF
  15483. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15484. ac_datarootdir_hack='
  15485. s&@datadir@&$datadir&g
  15486. s&@docdir@&$docdir&g
  15487. s&@infodir@&$infodir&g
  15488. s&@localedir@&$localedir&g
  15489. s&@mandir@&$mandir&g
  15490. s&\\\${datarootdir}&$datarootdir&g' ;;
  15491. esac
  15492. _ACEOF
  15493. # Neutralize VPATH when `$srcdir' = `.'.
  15494. # Shell code in configure.ac might set extrasub.
  15495. # FIXME: do we really want to maintain this feature?
  15496. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15497. ac_sed_extra="$ac_vpsub
  15498. $extrasub
  15499. _ACEOF
  15500. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15501. :t
  15502. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  15503. s|@configure_input@|$ac_sed_conf_input|;t t
  15504. s&@top_builddir@&$ac_top_builddir_sub&;t t
  15505. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  15506. s&@srcdir@&$ac_srcdir&;t t
  15507. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  15508. s&@top_srcdir@&$ac_top_srcdir&;t t
  15509. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  15510. s&@builddir@&$ac_builddir&;t t
  15511. s&@abs_builddir@&$ac_abs_builddir&;t t
  15512. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  15513. s&@INSTALL@&$ac_INSTALL&;t t
  15514. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  15515. $ac_datarootdir_hack
  15516. "
  15517. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  15518. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15519. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  15520. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  15521. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  15522. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  15523. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15524. which seems to be undefined. Please make sure it is defined" >&5
  15525. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15526. which seems to be undefined. Please make sure it is defined" >&2;}
  15527. rm -f "$ac_tmp/stdin"
  15528. case $ac_file in
  15529. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  15530. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  15531. esac \
  15532. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15533. ;;
  15534. :H)
  15535. #
  15536. # CONFIG_HEADER
  15537. #
  15538. if test x"$ac_file" != x-; then
  15539. {
  15540. $as_echo "/* $configure_input */" \
  15541. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  15542. } >"$ac_tmp/config.h" \
  15543. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15544. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  15545. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  15546. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  15547. else
  15548. rm -f "$ac_file"
  15549. mv "$ac_tmp/config.h" "$ac_file" \
  15550. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15551. fi
  15552. else
  15553. $as_echo "/* $configure_input */" \
  15554. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  15555. || as_fn_error $? "could not create -" "$LINENO" 5
  15556. fi
  15557. # Compute "$ac_file"'s index in $config_headers.
  15558. _am_arg="$ac_file"
  15559. _am_stamp_count=1
  15560. for _am_header in $config_headers :; do
  15561. case $_am_header in
  15562. $_am_arg | $_am_arg:* )
  15563. break ;;
  15564. * )
  15565. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  15566. esac
  15567. done
  15568. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  15569. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15570. X"$_am_arg" : 'X\(//\)[^/]' \| \
  15571. X"$_am_arg" : 'X\(//\)$' \| \
  15572. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  15573. $as_echo X"$_am_arg" |
  15574. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15575. s//\1/
  15576. q
  15577. }
  15578. /^X\(\/\/\)[^/].*/{
  15579. s//\1/
  15580. q
  15581. }
  15582. /^X\(\/\/\)$/{
  15583. s//\1/
  15584. q
  15585. }
  15586. /^X\(\/\).*/{
  15587. s//\1/
  15588. q
  15589. }
  15590. s/.*/./; q'`/stamp-h$_am_stamp_count
  15591. ;;
  15592. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  15593. $as_echo "$as_me: executing $ac_file commands" >&6;}
  15594. ;;
  15595. esac
  15596. case $ac_file$ac_mode in
  15597. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  15598. # Older Autoconf quotes --file arguments for eval, but not when files
  15599. # are listed without --file. Let's play safe and only enable the eval
  15600. # if we detect the quoting.
  15601. case $CONFIG_FILES in
  15602. *\'*) eval set x "$CONFIG_FILES" ;;
  15603. *) set x $CONFIG_FILES ;;
  15604. esac
  15605. shift
  15606. for mf
  15607. do
  15608. # Strip MF so we end up with the name of the file.
  15609. mf=`echo "$mf" | sed -e 's/:.*$//'`
  15610. # Check whether this is an Automake generated Makefile or not.
  15611. # We used to match only the files named 'Makefile.in', but
  15612. # some people rename them; so instead we look at the file content.
  15613. # Grep'ing the first line is not enough: some people post-process
  15614. # each Makefile.in and add a new line on top of each file to say so.
  15615. # Grep'ing the whole file is not good either: AIX grep has a line
  15616. # limit of 2048, but all sed's we know have understand at least 4000.
  15617. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  15618. dirpart=`$as_dirname -- "$mf" ||
  15619. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15620. X"$mf" : 'X\(//\)[^/]' \| \
  15621. X"$mf" : 'X\(//\)$' \| \
  15622. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  15623. $as_echo X"$mf" |
  15624. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15625. s//\1/
  15626. q
  15627. }
  15628. /^X\(\/\/\)[^/].*/{
  15629. s//\1/
  15630. q
  15631. }
  15632. /^X\(\/\/\)$/{
  15633. s//\1/
  15634. q
  15635. }
  15636. /^X\(\/\).*/{
  15637. s//\1/
  15638. q
  15639. }
  15640. s/.*/./; q'`
  15641. else
  15642. continue
  15643. fi
  15644. # Extract the definition of DEPDIR, am__include, and am__quote
  15645. # from the Makefile without running 'make'.
  15646. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  15647. test -z "$DEPDIR" && continue
  15648. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  15649. test -z "$am__include" && continue
  15650. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  15651. # Find all dependency output files, they are included files with
  15652. # $(DEPDIR) in their names. We invoke sed twice because it is the
  15653. # simplest approach to changing $(DEPDIR) to its actual value in the
  15654. # expansion.
  15655. for file in `sed -n "
  15656. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  15657. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  15658. # Make sure the directory exists.
  15659. test -f "$dirpart/$file" && continue
  15660. fdir=`$as_dirname -- "$file" ||
  15661. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15662. X"$file" : 'X\(//\)[^/]' \| \
  15663. X"$file" : 'X\(//\)$' \| \
  15664. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  15665. $as_echo X"$file" |
  15666. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15667. s//\1/
  15668. q
  15669. }
  15670. /^X\(\/\/\)[^/].*/{
  15671. s//\1/
  15672. q
  15673. }
  15674. /^X\(\/\/\)$/{
  15675. s//\1/
  15676. q
  15677. }
  15678. /^X\(\/\).*/{
  15679. s//\1/
  15680. q
  15681. }
  15682. s/.*/./; q'`
  15683. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  15684. # echo "creating $dirpart/$file"
  15685. echo '# dummy' > "$dirpart/$file"
  15686. done
  15687. done
  15688. }
  15689. ;;
  15690. "libtool":C)
  15691. # See if we are running on zsh, and set the options which allow our
  15692. # commands through without removal of \ escapes.
  15693. if test -n "${ZSH_VERSION+set}" ; then
  15694. setopt NO_GLOB_SUBST
  15695. fi
  15696. cfgfile="${ofile}T"
  15697. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  15698. $RM "$cfgfile"
  15699. cat <<_LT_EOF >> "$cfgfile"
  15700. #! $SHELL
  15701. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  15702. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  15703. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  15704. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  15705. #
  15706. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  15707. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  15708. # Foundation, Inc.
  15709. # Written by Gordon Matzigkeit, 1996
  15710. #
  15711. # This file is part of GNU Libtool.
  15712. #
  15713. # GNU Libtool is free software; you can redistribute it and/or
  15714. # modify it under the terms of the GNU General Public License as
  15715. # published by the Free Software Foundation; either version 2 of
  15716. # the License, or (at your option) any later version.
  15717. #
  15718. # As a special exception to the GNU General Public License,
  15719. # if you distribute this file as part of a program or library that
  15720. # is built using GNU Libtool, you may include this file under the
  15721. # same distribution terms that you use for the rest of that program.
  15722. #
  15723. # GNU Libtool is distributed in the hope that it will be useful,
  15724. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15725. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15726. # GNU General Public License for more details.
  15727. #
  15728. # You should have received a copy of the GNU General Public License
  15729. # along with GNU Libtool; see the file COPYING. If not, a copy
  15730. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  15731. # obtained by writing to the Free Software Foundation, Inc.,
  15732. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15733. # The names of the tagged configurations supported by this script.
  15734. available_tags="CXX "
  15735. # ### BEGIN LIBTOOL CONFIG
  15736. # Which release of libtool.m4 was used?
  15737. macro_version=$macro_version
  15738. macro_revision=$macro_revision
  15739. # Whether or not to build shared libraries.
  15740. build_libtool_libs=$enable_shared
  15741. # Whether or not to build static libraries.
  15742. build_old_libs=$enable_static
  15743. # What type of objects to build.
  15744. pic_mode=$pic_mode
  15745. # Whether or not to optimize for fast installation.
  15746. fast_install=$enable_fast_install
  15747. # Shell to use when invoking shell scripts.
  15748. SHELL=$lt_SHELL
  15749. # An echo program that protects backslashes.
  15750. ECHO=$lt_ECHO
  15751. # The PATH separator for the build system.
  15752. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  15753. # The host system.
  15754. host_alias=$host_alias
  15755. host=$host
  15756. host_os=$host_os
  15757. # The build system.
  15758. build_alias=$build_alias
  15759. build=$build
  15760. build_os=$build_os
  15761. # A sed program that does not truncate output.
  15762. SED=$lt_SED
  15763. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  15764. Xsed="\$SED -e 1s/^X//"
  15765. # A grep program that handles long lines.
  15766. GREP=$lt_GREP
  15767. # An ERE matcher.
  15768. EGREP=$lt_EGREP
  15769. # A literal string matcher.
  15770. FGREP=$lt_FGREP
  15771. # A BSD- or MS-compatible name lister.
  15772. NM=$lt_NM
  15773. # Whether we need soft or hard links.
  15774. LN_S=$lt_LN_S
  15775. # What is the maximum length of a command?
  15776. max_cmd_len=$max_cmd_len
  15777. # Object file suffix (normally "o").
  15778. objext=$ac_objext
  15779. # Executable file suffix (normally "").
  15780. exeext=$exeext
  15781. # whether the shell understands "unset".
  15782. lt_unset=$lt_unset
  15783. # turn spaces into newlines.
  15784. SP2NL=$lt_lt_SP2NL
  15785. # turn newlines into spaces.
  15786. NL2SP=$lt_lt_NL2SP
  15787. # convert \$build file names to \$host format.
  15788. to_host_file_cmd=$lt_cv_to_host_file_cmd
  15789. # convert \$build files to toolchain format.
  15790. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  15791. # An object symbol dumper.
  15792. OBJDUMP=$lt_OBJDUMP
  15793. # Method to check whether dependent libraries are shared objects.
  15794. deplibs_check_method=$lt_deplibs_check_method
  15795. # Command to use when deplibs_check_method = "file_magic".
  15796. file_magic_cmd=$lt_file_magic_cmd
  15797. # How to find potential files when deplibs_check_method = "file_magic".
  15798. file_magic_glob=$lt_file_magic_glob
  15799. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  15800. want_nocaseglob=$lt_want_nocaseglob
  15801. # DLL creation program.
  15802. DLLTOOL=$lt_DLLTOOL
  15803. # Command to associate shared and link libraries.
  15804. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  15805. # The archiver.
  15806. AR=$lt_AR
  15807. # Flags to create an archive.
  15808. AR_FLAGS=$lt_AR_FLAGS
  15809. # How to feed a file listing to the archiver.
  15810. archiver_list_spec=$lt_archiver_list_spec
  15811. # A symbol stripping program.
  15812. STRIP=$lt_STRIP
  15813. # Commands used to install an old-style archive.
  15814. RANLIB=$lt_RANLIB
  15815. old_postinstall_cmds=$lt_old_postinstall_cmds
  15816. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  15817. # Whether to use a lock for old archive extraction.
  15818. lock_old_archive_extraction=$lock_old_archive_extraction
  15819. # A C compiler.
  15820. LTCC=$lt_CC
  15821. # LTCC compiler flags.
  15822. LTCFLAGS=$lt_CFLAGS
  15823. # Take the output of nm and produce a listing of raw symbols and C names.
  15824. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  15825. # Transform the output of nm in a proper C declaration.
  15826. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  15827. # Transform the output of nm in a C name address pair.
  15828. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  15829. # Transform the output of nm in a C name address pair when lib prefix is needed.
  15830. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  15831. # Specify filename containing input files for \$NM.
  15832. nm_file_list_spec=$lt_nm_file_list_spec
  15833. # The root where to search for dependent libraries,and in which our libraries should be installed.
  15834. lt_sysroot=$lt_sysroot
  15835. # The name of the directory that contains temporary libtool files.
  15836. objdir=$objdir
  15837. # Used to examine libraries when file_magic_cmd begins with "file".
  15838. MAGIC_CMD=$MAGIC_CMD
  15839. # Must we lock files when doing compilation?
  15840. need_locks=$lt_need_locks
  15841. # Manifest tool.
  15842. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  15843. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  15844. DSYMUTIL=$lt_DSYMUTIL
  15845. # Tool to change global to local symbols on Mac OS X.
  15846. NMEDIT=$lt_NMEDIT
  15847. # Tool to manipulate fat objects and archives on Mac OS X.
  15848. LIPO=$lt_LIPO
  15849. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  15850. OTOOL=$lt_OTOOL
  15851. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  15852. OTOOL64=$lt_OTOOL64
  15853. # Old archive suffix (normally "a").
  15854. libext=$libext
  15855. # Shared library suffix (normally ".so").
  15856. shrext_cmds=$lt_shrext_cmds
  15857. # The commands to extract the exported symbol list from a shared archive.
  15858. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  15859. # Variables whose values should be saved in libtool wrapper scripts and
  15860. # restored at link time.
  15861. variables_saved_for_relink=$lt_variables_saved_for_relink
  15862. # Do we need the "lib" prefix for modules?
  15863. need_lib_prefix=$need_lib_prefix
  15864. # Do we need a version for libraries?
  15865. need_version=$need_version
  15866. # Library versioning type.
  15867. version_type=$version_type
  15868. # Shared library runtime path variable.
  15869. runpath_var=$runpath_var
  15870. # Shared library path variable.
  15871. shlibpath_var=$shlibpath_var
  15872. # Is shlibpath searched before the hard-coded library search path?
  15873. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  15874. # Format of library name prefix.
  15875. libname_spec=$lt_libname_spec
  15876. # List of archive names. First name is the real one, the rest are links.
  15877. # The last name is the one that the linker finds with -lNAME
  15878. library_names_spec=$lt_library_names_spec
  15879. # The coded name of the library, if different from the real name.
  15880. soname_spec=$lt_soname_spec
  15881. # Permission mode override for installation of shared libraries.
  15882. install_override_mode=$lt_install_override_mode
  15883. # Command to use after installation of a shared archive.
  15884. postinstall_cmds=$lt_postinstall_cmds
  15885. # Command to use after uninstallation of a shared archive.
  15886. postuninstall_cmds=$lt_postuninstall_cmds
  15887. # Commands used to finish a libtool library installation in a directory.
  15888. finish_cmds=$lt_finish_cmds
  15889. # As "finish_cmds", except a single script fragment to be evaled but
  15890. # not shown.
  15891. finish_eval=$lt_finish_eval
  15892. # Whether we should hardcode library paths into libraries.
  15893. hardcode_into_libs=$hardcode_into_libs
  15894. # Compile-time system search path for libraries.
  15895. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  15896. # Run-time system search path for libraries.
  15897. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  15898. # Whether dlopen is supported.
  15899. dlopen_support=$enable_dlopen
  15900. # Whether dlopen of programs is supported.
  15901. dlopen_self=$enable_dlopen_self
  15902. # Whether dlopen of statically linked programs is supported.
  15903. dlopen_self_static=$enable_dlopen_self_static
  15904. # Commands to strip libraries.
  15905. old_striplib=$lt_old_striplib
  15906. striplib=$lt_striplib
  15907. # The linker used to build libraries.
  15908. LD=$lt_LD
  15909. # How to create reloadable object files.
  15910. reload_flag=$lt_reload_flag
  15911. reload_cmds=$lt_reload_cmds
  15912. # Commands used to build an old-style archive.
  15913. old_archive_cmds=$lt_old_archive_cmds
  15914. # A language specific compiler.
  15915. CC=$lt_compiler
  15916. # Is the compiler the GNU compiler?
  15917. with_gcc=$GCC
  15918. # Compiler flag to turn off builtin functions.
  15919. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  15920. # Additional compiler flags for building library objects.
  15921. pic_flag=$lt_lt_prog_compiler_pic
  15922. # How to pass a linker flag through the compiler.
  15923. wl=$lt_lt_prog_compiler_wl
  15924. # Compiler flag to prevent dynamic linking.
  15925. link_static_flag=$lt_lt_prog_compiler_static
  15926. # Does compiler simultaneously support -c and -o options?
  15927. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  15928. # Whether or not to add -lc for building shared libraries.
  15929. build_libtool_need_lc=$archive_cmds_need_lc
  15930. # Whether or not to disallow shared libs when runtime libs are static.
  15931. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  15932. # Compiler flag to allow reflexive dlopens.
  15933. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  15934. # Compiler flag to generate shared objects directly from archives.
  15935. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  15936. # Whether the compiler copes with passing no objects directly.
  15937. compiler_needs_object=$lt_compiler_needs_object
  15938. # Create an old-style archive from a shared archive.
  15939. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  15940. # Create a temporary old-style archive to link instead of a shared archive.
  15941. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  15942. # Commands used to build a shared archive.
  15943. archive_cmds=$lt_archive_cmds
  15944. archive_expsym_cmds=$lt_archive_expsym_cmds
  15945. # Commands used to build a loadable module if different from building
  15946. # a shared archive.
  15947. module_cmds=$lt_module_cmds
  15948. module_expsym_cmds=$lt_module_expsym_cmds
  15949. # Whether we are building with GNU ld or not.
  15950. with_gnu_ld=$lt_with_gnu_ld
  15951. # Flag that allows shared libraries with undefined symbols to be built.
  15952. allow_undefined_flag=$lt_allow_undefined_flag
  15953. # Flag that enforces no undefined symbols.
  15954. no_undefined_flag=$lt_no_undefined_flag
  15955. # Flag to hardcode \$libdir into a binary during linking.
  15956. # This must work even if \$libdir does not exist
  15957. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  15958. # Whether we need a single "-rpath" flag with a separated argument.
  15959. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  15960. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15961. # DIR into the resulting binary.
  15962. hardcode_direct=$hardcode_direct
  15963. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15964. # DIR into the resulting binary and the resulting library dependency is
  15965. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  15966. # library is relocated.
  15967. hardcode_direct_absolute=$hardcode_direct_absolute
  15968. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15969. # into the resulting binary.
  15970. hardcode_minus_L=$hardcode_minus_L
  15971. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  15972. # into the resulting binary.
  15973. hardcode_shlibpath_var=$hardcode_shlibpath_var
  15974. # Set to "yes" if building a shared library automatically hardcodes DIR
  15975. # into the library and all subsequent libraries and executables linked
  15976. # against it.
  15977. hardcode_automatic=$hardcode_automatic
  15978. # Set to yes if linker adds runtime paths of dependent libraries
  15979. # to runtime path list.
  15980. inherit_rpath=$inherit_rpath
  15981. # Whether libtool must link a program against all its dependency libraries.
  15982. link_all_deplibs=$link_all_deplibs
  15983. # Set to "yes" if exported symbols are required.
  15984. always_export_symbols=$always_export_symbols
  15985. # The commands to list exported symbols.
  15986. export_symbols_cmds=$lt_export_symbols_cmds
  15987. # Symbols that should not be listed in the preloaded symbols.
  15988. exclude_expsyms=$lt_exclude_expsyms
  15989. # Symbols that must always be exported.
  15990. include_expsyms=$lt_include_expsyms
  15991. # Commands necessary for linking programs (against libraries) with templates.
  15992. prelink_cmds=$lt_prelink_cmds
  15993. # Commands necessary for finishing linking programs.
  15994. postlink_cmds=$lt_postlink_cmds
  15995. # Specify filename containing input files.
  15996. file_list_spec=$lt_file_list_spec
  15997. # How to hardcode a shared library path into an executable.
  15998. hardcode_action=$hardcode_action
  15999. # The directories searched by this compiler when creating a shared library.
  16000. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  16001. # Dependencies to place before and after the objects being linked to
  16002. # create a shared library.
  16003. predep_objects=$lt_predep_objects
  16004. postdep_objects=$lt_postdep_objects
  16005. predeps=$lt_predeps
  16006. postdeps=$lt_postdeps
  16007. # The library search path used internally by the compiler when linking
  16008. # a shared library.
  16009. compiler_lib_search_path=$lt_compiler_lib_search_path
  16010. # ### END LIBTOOL CONFIG
  16011. _LT_EOF
  16012. case $host_os in
  16013. aix3*)
  16014. cat <<\_LT_EOF >> "$cfgfile"
  16015. # AIX sometimes has problems with the GCC collect2 program. For some
  16016. # reason, if we set the COLLECT_NAMES environment variable, the problems
  16017. # vanish in a puff of smoke.
  16018. if test "X${COLLECT_NAMES+set}" != Xset; then
  16019. COLLECT_NAMES=
  16020. export COLLECT_NAMES
  16021. fi
  16022. _LT_EOF
  16023. ;;
  16024. esac
  16025. ltmain="$ac_aux_dir/ltmain.sh"
  16026. # We use sed instead of cat because bash on DJGPP gets confused if
  16027. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  16028. # text mode, it properly converts lines to CR/LF. This bash problem
  16029. # is reportedly fixed, but why not run on old versions too?
  16030. sed '$q' "$ltmain" >> "$cfgfile" \
  16031. || (rm -f "$cfgfile"; exit 1)
  16032. if test x"$xsi_shell" = xyes; then
  16033. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  16034. func_dirname ()\
  16035. {\
  16036. \ case ${1} in\
  16037. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  16038. \ * ) func_dirname_result="${3}" ;;\
  16039. \ esac\
  16040. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  16041. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16042. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16043. test 0 -eq $? || _lt_function_replace_fail=:
  16044. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  16045. func_basename ()\
  16046. {\
  16047. \ func_basename_result="${1##*/}"\
  16048. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  16049. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16050. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16051. test 0 -eq $? || _lt_function_replace_fail=:
  16052. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  16053. func_dirname_and_basename ()\
  16054. {\
  16055. \ case ${1} in\
  16056. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  16057. \ * ) func_dirname_result="${3}" ;;\
  16058. \ esac\
  16059. \ func_basename_result="${1##*/}"\
  16060. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  16061. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16062. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16063. test 0 -eq $? || _lt_function_replace_fail=:
  16064. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  16065. func_stripname ()\
  16066. {\
  16067. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  16068. \ # positional parameters, so assign one to ordinary parameter first.\
  16069. \ func_stripname_result=${3}\
  16070. \ func_stripname_result=${func_stripname_result#"${1}"}\
  16071. \ func_stripname_result=${func_stripname_result%"${2}"}\
  16072. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  16073. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16074. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16075. test 0 -eq $? || _lt_function_replace_fail=:
  16076. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  16077. func_split_long_opt ()\
  16078. {\
  16079. \ func_split_long_opt_name=${1%%=*}\
  16080. \ func_split_long_opt_arg=${1#*=}\
  16081. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  16082. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16083. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16084. test 0 -eq $? || _lt_function_replace_fail=:
  16085. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  16086. func_split_short_opt ()\
  16087. {\
  16088. \ func_split_short_opt_arg=${1#??}\
  16089. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  16090. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  16091. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16092. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16093. test 0 -eq $? || _lt_function_replace_fail=:
  16094. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  16095. func_lo2o ()\
  16096. {\
  16097. \ case ${1} in\
  16098. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  16099. \ *) func_lo2o_result=${1} ;;\
  16100. \ esac\
  16101. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  16102. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16103. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16104. test 0 -eq $? || _lt_function_replace_fail=:
  16105. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  16106. func_xform ()\
  16107. {\
  16108. func_xform_result=${1%.*}.lo\
  16109. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  16110. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16111. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16112. test 0 -eq $? || _lt_function_replace_fail=:
  16113. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  16114. func_arith ()\
  16115. {\
  16116. func_arith_result=$(( $* ))\
  16117. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  16118. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16119. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16120. test 0 -eq $? || _lt_function_replace_fail=:
  16121. sed -e '/^func_len ()$/,/^} # func_len /c\
  16122. func_len ()\
  16123. {\
  16124. func_len_result=${#1}\
  16125. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  16126. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16127. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16128. test 0 -eq $? || _lt_function_replace_fail=:
  16129. fi
  16130. if test x"$lt_shell_append" = xyes; then
  16131. sed -e '/^func_append ()$/,/^} # func_append /c\
  16132. func_append ()\
  16133. {\
  16134. eval "${1}+=\\${2}"\
  16135. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  16136. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16137. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16138. test 0 -eq $? || _lt_function_replace_fail=:
  16139. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  16140. func_append_quoted ()\
  16141. {\
  16142. \ func_quote_for_eval "${2}"\
  16143. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  16144. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  16145. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16146. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16147. test 0 -eq $? || _lt_function_replace_fail=:
  16148. # Save a `func_append' function call where possible by direct use of '+='
  16149. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  16150. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16151. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16152. test 0 -eq $? || _lt_function_replace_fail=:
  16153. else
  16154. # Save a `func_append' function call even when '+=' is not available
  16155. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  16156. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16157. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16158. test 0 -eq $? || _lt_function_replace_fail=:
  16159. fi
  16160. if test x"$_lt_function_replace_fail" = x":"; then
  16161. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  16162. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  16163. fi
  16164. mv -f "$cfgfile" "$ofile" ||
  16165. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  16166. chmod +x "$ofile"
  16167. cat <<_LT_EOF >> "$ofile"
  16168. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  16169. # The linker used to build libraries.
  16170. LD=$lt_LD_CXX
  16171. # How to create reloadable object files.
  16172. reload_flag=$lt_reload_flag_CXX
  16173. reload_cmds=$lt_reload_cmds_CXX
  16174. # Commands used to build an old-style archive.
  16175. old_archive_cmds=$lt_old_archive_cmds_CXX
  16176. # A language specific compiler.
  16177. CC=$lt_compiler_CXX
  16178. # Is the compiler the GNU compiler?
  16179. with_gcc=$GCC_CXX
  16180. # Compiler flag to turn off builtin functions.
  16181. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  16182. # Additional compiler flags for building library objects.
  16183. pic_flag=$lt_lt_prog_compiler_pic_CXX
  16184. # How to pass a linker flag through the compiler.
  16185. wl=$lt_lt_prog_compiler_wl_CXX
  16186. # Compiler flag to prevent dynamic linking.
  16187. link_static_flag=$lt_lt_prog_compiler_static_CXX
  16188. # Does compiler simultaneously support -c and -o options?
  16189. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  16190. # Whether or not to add -lc for building shared libraries.
  16191. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  16192. # Whether or not to disallow shared libs when runtime libs are static.
  16193. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  16194. # Compiler flag to allow reflexive dlopens.
  16195. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  16196. # Compiler flag to generate shared objects directly from archives.
  16197. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  16198. # Whether the compiler copes with passing no objects directly.
  16199. compiler_needs_object=$lt_compiler_needs_object_CXX
  16200. # Create an old-style archive from a shared archive.
  16201. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  16202. # Create a temporary old-style archive to link instead of a shared archive.
  16203. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  16204. # Commands used to build a shared archive.
  16205. archive_cmds=$lt_archive_cmds_CXX
  16206. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  16207. # Commands used to build a loadable module if different from building
  16208. # a shared archive.
  16209. module_cmds=$lt_module_cmds_CXX
  16210. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  16211. # Whether we are building with GNU ld or not.
  16212. with_gnu_ld=$lt_with_gnu_ld_CXX
  16213. # Flag that allows shared libraries with undefined symbols to be built.
  16214. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  16215. # Flag that enforces no undefined symbols.
  16216. no_undefined_flag=$lt_no_undefined_flag_CXX
  16217. # Flag to hardcode \$libdir into a binary during linking.
  16218. # This must work even if \$libdir does not exist
  16219. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  16220. # Whether we need a single "-rpath" flag with a separated argument.
  16221. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  16222. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16223. # DIR into the resulting binary.
  16224. hardcode_direct=$hardcode_direct_CXX
  16225. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16226. # DIR into the resulting binary and the resulting library dependency is
  16227. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16228. # library is relocated.
  16229. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  16230. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16231. # into the resulting binary.
  16232. hardcode_minus_L=$hardcode_minus_L_CXX
  16233. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16234. # into the resulting binary.
  16235. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  16236. # Set to "yes" if building a shared library automatically hardcodes DIR
  16237. # into the library and all subsequent libraries and executables linked
  16238. # against it.
  16239. hardcode_automatic=$hardcode_automatic_CXX
  16240. # Set to yes if linker adds runtime paths of dependent libraries
  16241. # to runtime path list.
  16242. inherit_rpath=$inherit_rpath_CXX
  16243. # Whether libtool must link a program against all its dependency libraries.
  16244. link_all_deplibs=$link_all_deplibs_CXX
  16245. # Set to "yes" if exported symbols are required.
  16246. always_export_symbols=$always_export_symbols_CXX
  16247. # The commands to list exported symbols.
  16248. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  16249. # Symbols that should not be listed in the preloaded symbols.
  16250. exclude_expsyms=$lt_exclude_expsyms_CXX
  16251. # Symbols that must always be exported.
  16252. include_expsyms=$lt_include_expsyms_CXX
  16253. # Commands necessary for linking programs (against libraries) with templates.
  16254. prelink_cmds=$lt_prelink_cmds_CXX
  16255. # Commands necessary for finishing linking programs.
  16256. postlink_cmds=$lt_postlink_cmds_CXX
  16257. # Specify filename containing input files.
  16258. file_list_spec=$lt_file_list_spec_CXX
  16259. # How to hardcode a shared library path into an executable.
  16260. hardcode_action=$hardcode_action_CXX
  16261. # The directories searched by this compiler when creating a shared library.
  16262. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  16263. # Dependencies to place before and after the objects being linked to
  16264. # create a shared library.
  16265. predep_objects=$lt_predep_objects_CXX
  16266. postdep_objects=$lt_postdep_objects_CXX
  16267. predeps=$lt_predeps_CXX
  16268. postdeps=$lt_postdeps_CXX
  16269. # The library search path used internally by the compiler when linking
  16270. # a shared library.
  16271. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  16272. # ### END LIBTOOL TAG CONFIG: CXX
  16273. _LT_EOF
  16274. ;;
  16275. esac
  16276. done # for ac_tag
  16277. as_fn_exit 0
  16278. _ACEOF
  16279. ac_clean_files=$ac_clean_files_save
  16280. test $ac_write_fail = 0 ||
  16281. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  16282. # configure is writing to config.log, and then calls config.status.
  16283. # config.status does its own redirection, appending to config.log.
  16284. # Unfortunately, on DOS this fails, as config.log is still kept open
  16285. # by configure, so config.status won't be able to write to it; its
  16286. # output is simply discarded. So we exec the FD to /dev/null,
  16287. # effectively closing config.log, so it can be properly (re)opened and
  16288. # appended to by config.status. When coming back to configure, we
  16289. # need to make the FD available again.
  16290. if test "$no_create" != yes; then
  16291. ac_cs_success=:
  16292. ac_config_status_args=
  16293. test "$silent" = yes &&
  16294. ac_config_status_args="$ac_config_status_args --quiet"
  16295. exec 5>/dev/null
  16296. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  16297. exec 5>>config.log
  16298. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  16299. # would make configure fail if this is the last instruction.
  16300. $ac_cs_success || as_fn_exit 1
  16301. fi
  16302. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  16303. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  16304. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  16305. fi
  16306. echo "
  16307. Configuration for $PACKAGE $VERSION:
  16308. -------------------------------------------
  16309. Install prefix: .........: $prefix
  16310. inotify support (Linux) .: $have_inotify
  16311. Now type 'make' to build $PACKAGE $VERSION,
  16312. and then 'make install' for installation.
  16313. "