configure 511 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.65 for nutdisc 3.0.0.
  4. #
  5. #
  6. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  7. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  8. # 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. case $0 in #((
  86. *[\\/]* ) as_myself=$0 ;;
  87. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  88. for as_dir in $PATH
  89. do
  90. IFS=$as_save_IFS
  91. test -z "$as_dir" && as_dir=.
  92. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  93. done
  94. IFS=$as_save_IFS
  95. ;;
  96. esac
  97. # We did not find ourselves, most probably we were run as `sh COMMAND'
  98. # in which case we are not to be found in the path.
  99. if test "x$as_myself" = x; then
  100. as_myself=$0
  101. fi
  102. if test ! -f "$as_myself"; then
  103. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  104. exit 1
  105. fi
  106. # Unset variables that we do not need and which cause bugs (e.g. in
  107. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  108. # suppresses any "Segmentation fault" message there. '((' could
  109. # trigger a bug in pdksh 5.2.14.
  110. for as_var in BASH_ENV ENV MAIL MAILPATH
  111. do eval test x\${$as_var+set} = xset \
  112. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  113. done
  114. PS1='$ '
  115. PS2='> '
  116. PS4='+ '
  117. # NLS nuisances.
  118. LC_ALL=C
  119. export LC_ALL
  120. LANGUAGE=C
  121. export LANGUAGE
  122. # CDPATH.
  123. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  124. if test "x$CONFIG_SHELL" = x; then
  125. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  126. emulate sh
  127. NULLCMD=:
  128. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  129. # is contrary to our usage. Disable this feature.
  130. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  131. setopt NO_GLOB_SUBST
  132. else
  133. case \`(set -o) 2>/dev/null\` in #(
  134. *posix*) :
  135. set -o posix ;; #(
  136. *) :
  137. ;;
  138. esac
  139. fi
  140. "
  141. as_required="as_fn_return () { (exit \$1); }
  142. as_fn_success () { as_fn_return 0; }
  143. as_fn_failure () { as_fn_return 1; }
  144. as_fn_ret_success () { return 0; }
  145. as_fn_ret_failure () { return 1; }
  146. exitcode=0
  147. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  148. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  149. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  150. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  151. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  152. else
  153. exitcode=1; echo positional parameters were not saved.
  154. fi
  155. test x\$exitcode = x0 || exit 1"
  156. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  157. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  158. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  159. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  160. test \$(( 1 + 1 )) = 2 || exit 1"
  161. if (eval "$as_required") 2>/dev/null; then :
  162. as_have_required=yes
  163. else
  164. as_have_required=no
  165. fi
  166. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  167. else
  168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  169. as_found=false
  170. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  171. do
  172. IFS=$as_save_IFS
  173. test -z "$as_dir" && as_dir=.
  174. as_found=:
  175. case $as_dir in #(
  176. /*)
  177. for as_base in sh bash ksh sh5; do
  178. # Try only shells that exist, to save several forks.
  179. as_shell=$as_dir/$as_base
  180. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  181. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  182. CONFIG_SHELL=$as_shell as_have_required=yes
  183. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  184. break 2
  185. fi
  186. fi
  187. done;;
  188. esac
  189. as_found=false
  190. done
  191. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  192. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  193. CONFIG_SHELL=$SHELL as_have_required=yes
  194. fi; }
  195. IFS=$as_save_IFS
  196. if test "x$CONFIG_SHELL" != x; then :
  197. # We cannot yet assume a decent shell, so we have to provide a
  198. # neutralization value for shells without unset; and this also
  199. # works around shells that cannot unset nonexistent variables.
  200. BASH_ENV=/dev/null
  201. ENV=/dev/null
  202. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  203. export CONFIG_SHELL
  204. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  205. fi
  206. if test x$as_have_required = xno; then :
  207. $as_echo "$0: This script requires a shell more modern than all"
  208. $as_echo "$0: the shells that I found on your system."
  209. if test x${ZSH_VERSION+set} = xset ; then
  210. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  211. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  212. else
  213. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  214. $0: including any error possibly output before this
  215. $0: message. Then install a modern shell, or manually run
  216. $0: the script under such a shell if you do have one."
  217. fi
  218. exit 1
  219. fi
  220. fi
  221. fi
  222. SHELL=${CONFIG_SHELL-/bin/sh}
  223. export SHELL
  224. # Unset more variables known to interfere with behavior of common tools.
  225. CLICOLOR_FORCE= GREP_OPTIONS=
  226. unset CLICOLOR_FORCE GREP_OPTIONS
  227. ## --------------------- ##
  228. ## M4sh Shell Functions. ##
  229. ## --------------------- ##
  230. # as_fn_unset VAR
  231. # ---------------
  232. # Portably unset VAR.
  233. as_fn_unset ()
  234. {
  235. { eval $1=; unset $1;}
  236. }
  237. as_unset=as_fn_unset
  238. # as_fn_set_status STATUS
  239. # -----------------------
  240. # Set $? to STATUS, without forking.
  241. as_fn_set_status ()
  242. {
  243. return $1
  244. } # as_fn_set_status
  245. # as_fn_exit STATUS
  246. # -----------------
  247. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  248. as_fn_exit ()
  249. {
  250. set +e
  251. as_fn_set_status $1
  252. exit $1
  253. } # as_fn_exit
  254. # as_fn_mkdir_p
  255. # -------------
  256. # Create "$as_dir" as a directory, including parents if necessary.
  257. as_fn_mkdir_p ()
  258. {
  259. case $as_dir in #(
  260. -*) as_dir=./$as_dir;;
  261. esac
  262. test -d "$as_dir" || eval $as_mkdir_p || {
  263. as_dirs=
  264. while :; do
  265. case $as_dir in #(
  266. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  267. *) as_qdir=$as_dir;;
  268. esac
  269. as_dirs="'$as_qdir' $as_dirs"
  270. as_dir=`$as_dirname -- "$as_dir" ||
  271. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  272. X"$as_dir" : 'X\(//\)[^/]' \| \
  273. X"$as_dir" : 'X\(//\)$' \| \
  274. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  275. $as_echo X"$as_dir" |
  276. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  277. s//\1/
  278. q
  279. }
  280. /^X\(\/\/\)[^/].*/{
  281. s//\1/
  282. q
  283. }
  284. /^X\(\/\/\)$/{
  285. s//\1/
  286. q
  287. }
  288. /^X\(\/\).*/{
  289. s//\1/
  290. q
  291. }
  292. s/.*/./; q'`
  293. test -d "$as_dir" && break
  294. done
  295. test -z "$as_dirs" || eval "mkdir $as_dirs"
  296. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  297. } # as_fn_mkdir_p
  298. # as_fn_append VAR VALUE
  299. # ----------------------
  300. # Append the text in VALUE to the end of the definition contained in VAR. Take
  301. # advantage of any shell optimizations that allow amortized linear growth over
  302. # repeated appends, instead of the typical quadratic growth present in naive
  303. # implementations.
  304. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  305. eval 'as_fn_append ()
  306. {
  307. eval $1+=\$2
  308. }'
  309. else
  310. as_fn_append ()
  311. {
  312. eval $1=\$$1\$2
  313. }
  314. fi # as_fn_append
  315. # as_fn_arith ARG...
  316. # ------------------
  317. # Perform arithmetic evaluation on the ARGs, and store the result in the
  318. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  319. # must be portable across $(()) and expr.
  320. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  321. eval 'as_fn_arith ()
  322. {
  323. as_val=$(( $* ))
  324. }'
  325. else
  326. as_fn_arith ()
  327. {
  328. as_val=`expr "$@" || test $? -eq 1`
  329. }
  330. fi # as_fn_arith
  331. # as_fn_error ERROR [LINENO LOG_FD]
  332. # ---------------------------------
  333. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  334. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  335. # script with status $?, using 1 if that was 0.
  336. as_fn_error ()
  337. {
  338. as_status=$?; test $as_status -eq 0 && as_status=1
  339. if test "$3"; then
  340. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  341. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  342. fi
  343. $as_echo "$as_me: error: $1" >&2
  344. as_fn_exit $as_status
  345. } # as_fn_error
  346. if expr a : '\(a\)' >/dev/null 2>&1 &&
  347. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  348. as_expr=expr
  349. else
  350. as_expr=false
  351. fi
  352. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  353. as_basename=basename
  354. else
  355. as_basename=false
  356. fi
  357. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  358. as_dirname=dirname
  359. else
  360. as_dirname=false
  361. fi
  362. as_me=`$as_basename -- "$0" ||
  363. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  364. X"$0" : 'X\(//\)$' \| \
  365. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  366. $as_echo X/"$0" |
  367. sed '/^.*\/\([^/][^/]*\)\/*$/{
  368. s//\1/
  369. q
  370. }
  371. /^X\/\(\/\/\)$/{
  372. s//\1/
  373. q
  374. }
  375. /^X\/\(\/\).*/{
  376. s//\1/
  377. q
  378. }
  379. s/.*/./; q'`
  380. # Avoid depending upon Character Ranges.
  381. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  382. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  383. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  384. as_cr_digits='0123456789'
  385. as_cr_alnum=$as_cr_Letters$as_cr_digits
  386. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  387. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  388. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  389. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  390. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  391. sed -n '
  392. p
  393. /[$]LINENO/=
  394. ' <$as_myself |
  395. sed '
  396. s/[$]LINENO.*/&-/
  397. t lineno
  398. b
  399. :lineno
  400. N
  401. :loop
  402. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  403. t loop
  404. s/-\n.*//
  405. ' >$as_me.lineno &&
  406. chmod +x "$as_me.lineno" ||
  407. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  408. # Don't try to exec as it changes $[0], causing all sort of problems
  409. # (the dirname of $[0] is not the place where we might find the
  410. # original and so on. Autoconf is especially sensitive to this).
  411. . "./$as_me.lineno"
  412. # Exit status is that of the last command.
  413. exit
  414. }
  415. ECHO_C= ECHO_N= ECHO_T=
  416. case `echo -n x` in #(((((
  417. -n*)
  418. case `echo 'xy\c'` in
  419. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  420. xy) ECHO_C='\c';;
  421. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  422. ECHO_T=' ';;
  423. esac;;
  424. *)
  425. ECHO_N='-n';;
  426. esac
  427. rm -f conf$$ conf$$.exe conf$$.file
  428. if test -d conf$$.dir; then
  429. rm -f conf$$.dir/conf$$.file
  430. else
  431. rm -f conf$$.dir
  432. mkdir conf$$.dir 2>/dev/null
  433. fi
  434. if (echo >conf$$.file) 2>/dev/null; then
  435. if ln -s conf$$.file conf$$ 2>/dev/null; then
  436. as_ln_s='ln -s'
  437. # ... but there are two gotchas:
  438. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  439. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  440. # In both cases, we have to default to `cp -p'.
  441. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  442. as_ln_s='cp -p'
  443. elif ln conf$$.file conf$$ 2>/dev/null; then
  444. as_ln_s=ln
  445. else
  446. as_ln_s='cp -p'
  447. fi
  448. else
  449. as_ln_s='cp -p'
  450. fi
  451. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  452. rmdir conf$$.dir 2>/dev/null
  453. if mkdir -p . 2>/dev/null; then
  454. as_mkdir_p='mkdir -p "$as_dir"'
  455. else
  456. test -d ./-p && rmdir ./-p
  457. as_mkdir_p=false
  458. fi
  459. if test -x / >/dev/null 2>&1; then
  460. as_test_x='test -x'
  461. else
  462. if ls -dL / >/dev/null 2>&1; then
  463. as_ls_L_option=L
  464. else
  465. as_ls_L_option=
  466. fi
  467. as_test_x='
  468. eval sh -c '\''
  469. if test -d "$1"; then
  470. test -d "$1/.";
  471. else
  472. case $1 in #(
  473. -*)set "./$1";;
  474. esac;
  475. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  476. ???[sx]*):;;*)false;;esac;fi
  477. '\'' sh
  478. '
  479. fi
  480. as_executable_p=$as_test_x
  481. # Sed expression to map a string onto a valid CPP name.
  482. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  483. # Sed expression to map a string onto a valid variable name.
  484. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  485. # Check that we are running under the correct shell.
  486. SHELL=${CONFIG_SHELL-/bin/sh}
  487. case X$lt_ECHO in
  488. X*--fallback-echo)
  489. # Remove one level of quotation (which was required for Make).
  490. ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  491. ;;
  492. esac
  493. ECHO=${lt_ECHO-echo}
  494. if test "X$1" = X--no-reexec; then
  495. # Discard the --no-reexec flag, and continue.
  496. shift
  497. elif test "X$1" = X--fallback-echo; then
  498. # Avoid inline document here, it may be left over
  499. :
  500. elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  501. # Yippee, $ECHO works!
  502. :
  503. else
  504. # Restart under the correct shell.
  505. exec $SHELL "$0" --no-reexec ${1+"$@"}
  506. fi
  507. if test "X$1" = X--fallback-echo; then
  508. # used as fallback echo
  509. shift
  510. cat <<_LT_EOF
  511. $*
  512. _LT_EOF
  513. exit 0
  514. fi
  515. # The HP-UX ksh and POSIX shell print the target directory to stdout
  516. # if CDPATH is set.
  517. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  518. if test -z "$lt_ECHO"; then
  519. if test "X${echo_test_string+set}" != Xset; then
  520. # find a string as large as possible, as long as the shell can cope with it
  521. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  522. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  523. if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  524. { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  525. then
  526. break
  527. fi
  528. done
  529. fi
  530. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  531. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  532. test "X$echo_testing_string" = "X$echo_test_string"; then
  533. :
  534. else
  535. # The Solaris, AIX, and Digital Unix default echo programs unquote
  536. # backslashes. This makes it impossible to quote backslashes using
  537. # echo "$something" | sed 's/\\/\\\\/g'
  538. #
  539. # So, first we look for a working echo in the user's PATH.
  540. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  541. for dir in $PATH /usr/ucb; do
  542. IFS="$lt_save_ifs"
  543. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  544. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  545. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  546. test "X$echo_testing_string" = "X$echo_test_string"; then
  547. ECHO="$dir/echo"
  548. break
  549. fi
  550. done
  551. IFS="$lt_save_ifs"
  552. if test "X$ECHO" = Xecho; then
  553. # We didn't find a better echo, so look for alternatives.
  554. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  555. echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  556. test "X$echo_testing_string" = "X$echo_test_string"; then
  557. # This shell has a builtin print -r that does the trick.
  558. ECHO='print -r'
  559. elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  560. test "X$CONFIG_SHELL" != X/bin/ksh; then
  561. # If we have ksh, try running configure again with it.
  562. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  563. export ORIGINAL_CONFIG_SHELL
  564. CONFIG_SHELL=/bin/ksh
  565. export CONFIG_SHELL
  566. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  567. else
  568. # Try using printf.
  569. ECHO='printf %s\n'
  570. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  571. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  572. test "X$echo_testing_string" = "X$echo_test_string"; then
  573. # Cool, printf works
  574. :
  575. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  576. test "X$echo_testing_string" = 'X\t' &&
  577. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  578. test "X$echo_testing_string" = "X$echo_test_string"; then
  579. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  580. export CONFIG_SHELL
  581. SHELL="$CONFIG_SHELL"
  582. export SHELL
  583. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  584. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  585. test "X$echo_testing_string" = 'X\t' &&
  586. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  587. test "X$echo_testing_string" = "X$echo_test_string"; then
  588. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  589. else
  590. # maybe with a smaller string...
  591. prev=:
  592. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  593. if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  594. then
  595. break
  596. fi
  597. prev="$cmd"
  598. done
  599. if test "$prev" != 'sed 50q "$0"'; then
  600. echo_test_string=`eval $prev`
  601. export echo_test_string
  602. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  603. else
  604. # Oops. We lost completely, so just stick with echo.
  605. ECHO=echo
  606. fi
  607. fi
  608. fi
  609. fi
  610. fi
  611. fi
  612. # Copy echo and quote the copy suitably for passing to libtool from
  613. # the Makefile, instead of quoting the original, which is used later.
  614. lt_ECHO=$ECHO
  615. if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  616. lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  617. fi
  618. test -n "$DJDIR" || exec 7<&0 </dev/null
  619. exec 6>&1
  620. # Name of the host.
  621. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  622. # so uname gets run too.
  623. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  624. #
  625. # Initializations.
  626. #
  627. ac_default_prefix=/usr/local
  628. ac_clean_files=
  629. ac_config_libobj_dir=.
  630. LIBOBJS=
  631. cross_compiling=no
  632. subdirs=
  633. MFLAGS=
  634. MAKEFLAGS=
  635. # Identity of this package.
  636. PACKAGE_NAME='nutdisc'
  637. PACKAGE_TARNAME='nutdisc'
  638. PACKAGE_VERSION='3.0.0'
  639. PACKAGE_STRING='nutdisc 3.0.0'
  640. PACKAGE_BUGREPORT=''
  641. PACKAGE_URL=''
  642. # Factoring default headers for most tests.
  643. ac_includes_default="\
  644. #include <stdio.h>
  645. #ifdef HAVE_SYS_TYPES_H
  646. # include <sys/types.h>
  647. #endif
  648. #ifdef HAVE_SYS_STAT_H
  649. # include <sys/stat.h>
  650. #endif
  651. #ifdef STDC_HEADERS
  652. # include <stdlib.h>
  653. # include <stddef.h>
  654. #else
  655. # ifdef HAVE_STDLIB_H
  656. # include <stdlib.h>
  657. # endif
  658. #endif
  659. #ifdef HAVE_STRING_H
  660. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  661. # include <memory.h>
  662. # endif
  663. # include <string.h>
  664. #endif
  665. #ifdef HAVE_STRINGS_H
  666. # include <strings.h>
  667. #endif
  668. #ifdef HAVE_INTTYPES_H
  669. # include <inttypes.h>
  670. #endif
  671. #ifdef HAVE_STDINT_H
  672. # include <stdint.h>
  673. #endif
  674. #ifdef HAVE_UNISTD_H
  675. # include <unistd.h>
  676. #endif"
  677. ac_subst_vars='am__EXEEXT_FALSE
  678. am__EXEEXT_TRUE
  679. LTLIBOBJS
  680. LIBOBJS
  681. BUILD_NUTDISC_FALSE
  682. BUILD_NUTDISC_TRUE
  683. CXXCPP
  684. OTOOL64
  685. OTOOL
  686. LIPO
  687. NMEDIT
  688. DSYMUTIL
  689. lt_ECHO
  690. RANLIB
  691. AR
  692. OBJDUMP
  693. LN_S
  694. NM
  695. ac_ct_DUMPBIN
  696. DUMPBIN
  697. LD
  698. FGREP
  699. EGREP
  700. GREP
  701. SED
  702. host_os
  703. host_vendor
  704. host_cpu
  705. host
  706. build_os
  707. build_vendor
  708. build_cpu
  709. build
  710. LIBTOOL
  711. am__fastdepCXX_FALSE
  712. am__fastdepCXX_TRUE
  713. CXXDEPMODE
  714. ac_ct_CXX
  715. CXXFLAGS
  716. CXX
  717. CPP
  718. WX_PROPGRID
  719. WX_LIBS
  720. WX_CXXFLAGS
  721. WX_CPPFLAGS
  722. am__fastdepCC_FALSE
  723. am__fastdepCC_TRUE
  724. CCDEPMODE
  725. AMDEPBACKSLASH
  726. AMDEP_FALSE
  727. AMDEP_TRUE
  728. am__quote
  729. am__include
  730. DEPDIR
  731. OBJEXT
  732. EXEEXT
  733. ac_ct_CC
  734. CPPFLAGS
  735. LDFLAGS
  736. CFLAGS
  737. CC
  738. MAINT
  739. MAINTAINER_MODE_FALSE
  740. MAINTAINER_MODE_TRUE
  741. am__untar
  742. am__tar
  743. AMTAR
  744. am__leading_dot
  745. SET_MAKE
  746. AWK
  747. mkdir_p
  748. MKDIR_P
  749. INSTALL_STRIP_PROGRAM
  750. STRIP
  751. install_sh
  752. MAKEINFO
  753. AUTOHEADER
  754. AUTOMAKE
  755. AUTOCONF
  756. ACLOCAL
  757. VERSION
  758. PACKAGE
  759. CYGPATH_W
  760. am__isrc
  761. INSTALL_DATA
  762. INSTALL_SCRIPT
  763. INSTALL_PROGRAM
  764. AM_BACKSLASH
  765. AM_DEFAULT_VERBOSITY
  766. target_alias
  767. host_alias
  768. build_alias
  769. LIBS
  770. ECHO_T
  771. ECHO_N
  772. ECHO_C
  773. DEFS
  774. mandir
  775. localedir
  776. libdir
  777. psdir
  778. pdfdir
  779. dvidir
  780. htmldir
  781. infodir
  782. docdir
  783. oldincludedir
  784. includedir
  785. localstatedir
  786. sharedstatedir
  787. sysconfdir
  788. datadir
  789. datarootdir
  790. libexecdir
  791. sbindir
  792. bindir
  793. program_transform_name
  794. prefix
  795. exec_prefix
  796. PACKAGE_URL
  797. PACKAGE_BUGREPORT
  798. PACKAGE_STRING
  799. PACKAGE_VERSION
  800. PACKAGE_TARNAME
  801. PACKAGE_NAME
  802. PATH_SEPARATOR
  803. SHELL'
  804. ac_subst_files=''
  805. ac_user_opts='
  806. enable_option_checking
  807. enable_silent_rules
  808. enable_maintainer_mode
  809. enable_dependency_tracking
  810. enable_nutdisc
  811. enable_wxpropgrid
  812. with_wx_config
  813. enable_shared
  814. enable_static
  815. with_pic
  816. enable_fast_install
  817. with_gnu_ld
  818. enable_libtool_lock
  819. '
  820. ac_precious_vars='build_alias
  821. host_alias
  822. target_alias
  823. CC
  824. CFLAGS
  825. LDFLAGS
  826. LIBS
  827. CPPFLAGS
  828. CPP
  829. CXX
  830. CXXFLAGS
  831. CCC
  832. CXXCPP'
  833. # Initialize some variables set by options.
  834. ac_init_help=
  835. ac_init_version=false
  836. ac_unrecognized_opts=
  837. ac_unrecognized_sep=
  838. # The variables have the same names as the options, with
  839. # dashes changed to underlines.
  840. cache_file=/dev/null
  841. exec_prefix=NONE
  842. no_create=
  843. no_recursion=
  844. prefix=NONE
  845. program_prefix=NONE
  846. program_suffix=NONE
  847. program_transform_name=s,x,x,
  848. silent=
  849. site=
  850. srcdir=
  851. verbose=
  852. x_includes=NONE
  853. x_libraries=NONE
  854. # Installation directory options.
  855. # These are left unexpanded so users can "make install exec_prefix=/foo"
  856. # and all the variables that are supposed to be based on exec_prefix
  857. # by default will actually change.
  858. # Use braces instead of parens because sh, perl, etc. also accept them.
  859. # (The list follows the same order as the GNU Coding Standards.)
  860. bindir='${exec_prefix}/bin'
  861. sbindir='${exec_prefix}/sbin'
  862. libexecdir='${exec_prefix}/libexec'
  863. datarootdir='${prefix}/share'
  864. datadir='${datarootdir}'
  865. sysconfdir='${prefix}/etc'
  866. sharedstatedir='${prefix}/com'
  867. localstatedir='${prefix}/var'
  868. includedir='${prefix}/include'
  869. oldincludedir='/usr/include'
  870. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  871. infodir='${datarootdir}/info'
  872. htmldir='${docdir}'
  873. dvidir='${docdir}'
  874. pdfdir='${docdir}'
  875. psdir='${docdir}'
  876. libdir='${exec_prefix}/lib'
  877. localedir='${datarootdir}/locale'
  878. mandir='${datarootdir}/man'
  879. ac_prev=
  880. ac_dashdash=
  881. for ac_option
  882. do
  883. # If the previous option needs an argument, assign it.
  884. if test -n "$ac_prev"; then
  885. eval $ac_prev=\$ac_option
  886. ac_prev=
  887. continue
  888. fi
  889. case $ac_option in
  890. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  891. *) ac_optarg=yes ;;
  892. esac
  893. # Accept the important Cygnus configure options, so we can diagnose typos.
  894. case $ac_dashdash$ac_option in
  895. --)
  896. ac_dashdash=yes ;;
  897. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  898. ac_prev=bindir ;;
  899. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  900. bindir=$ac_optarg ;;
  901. -build | --build | --buil | --bui | --bu)
  902. ac_prev=build_alias ;;
  903. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  904. build_alias=$ac_optarg ;;
  905. -cache-file | --cache-file | --cache-fil | --cache-fi \
  906. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  907. ac_prev=cache_file ;;
  908. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  909. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  910. cache_file=$ac_optarg ;;
  911. --config-cache | -C)
  912. cache_file=config.cache ;;
  913. -datadir | --datadir | --datadi | --datad)
  914. ac_prev=datadir ;;
  915. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  916. datadir=$ac_optarg ;;
  917. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  918. | --dataroo | --dataro | --datar)
  919. ac_prev=datarootdir ;;
  920. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  921. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  922. datarootdir=$ac_optarg ;;
  923. -disable-* | --disable-*)
  924. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  925. # Reject names that are not valid shell variable names.
  926. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  927. as_fn_error "invalid feature name: $ac_useropt"
  928. ac_useropt_orig=$ac_useropt
  929. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  930. case $ac_user_opts in
  931. *"
  932. "enable_$ac_useropt"
  933. "*) ;;
  934. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  935. ac_unrecognized_sep=', ';;
  936. esac
  937. eval enable_$ac_useropt=no ;;
  938. -docdir | --docdir | --docdi | --doc | --do)
  939. ac_prev=docdir ;;
  940. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  941. docdir=$ac_optarg ;;
  942. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  943. ac_prev=dvidir ;;
  944. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  945. dvidir=$ac_optarg ;;
  946. -enable-* | --enable-*)
  947. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  948. # Reject names that are not valid shell variable names.
  949. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  950. as_fn_error "invalid feature name: $ac_useropt"
  951. ac_useropt_orig=$ac_useropt
  952. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  953. case $ac_user_opts in
  954. *"
  955. "enable_$ac_useropt"
  956. "*) ;;
  957. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  958. ac_unrecognized_sep=', ';;
  959. esac
  960. eval enable_$ac_useropt=\$ac_optarg ;;
  961. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  962. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  963. | --exec | --exe | --ex)
  964. ac_prev=exec_prefix ;;
  965. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  966. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  967. | --exec=* | --exe=* | --ex=*)
  968. exec_prefix=$ac_optarg ;;
  969. -gas | --gas | --ga | --g)
  970. # Obsolete; use --with-gas.
  971. with_gas=yes ;;
  972. -help | --help | --hel | --he | -h)
  973. ac_init_help=long ;;
  974. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  975. ac_init_help=recursive ;;
  976. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  977. ac_init_help=short ;;
  978. -host | --host | --hos | --ho)
  979. ac_prev=host_alias ;;
  980. -host=* | --host=* | --hos=* | --ho=*)
  981. host_alias=$ac_optarg ;;
  982. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  983. ac_prev=htmldir ;;
  984. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  985. | --ht=*)
  986. htmldir=$ac_optarg ;;
  987. -includedir | --includedir | --includedi | --included | --include \
  988. | --includ | --inclu | --incl | --inc)
  989. ac_prev=includedir ;;
  990. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  991. | --includ=* | --inclu=* | --incl=* | --inc=*)
  992. includedir=$ac_optarg ;;
  993. -infodir | --infodir | --infodi | --infod | --info | --inf)
  994. ac_prev=infodir ;;
  995. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  996. infodir=$ac_optarg ;;
  997. -libdir | --libdir | --libdi | --libd)
  998. ac_prev=libdir ;;
  999. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1000. libdir=$ac_optarg ;;
  1001. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1002. | --libexe | --libex | --libe)
  1003. ac_prev=libexecdir ;;
  1004. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1005. | --libexe=* | --libex=* | --libe=*)
  1006. libexecdir=$ac_optarg ;;
  1007. -localedir | --localedir | --localedi | --localed | --locale)
  1008. ac_prev=localedir ;;
  1009. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1010. localedir=$ac_optarg ;;
  1011. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1012. | --localstate | --localstat | --localsta | --localst | --locals)
  1013. ac_prev=localstatedir ;;
  1014. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1015. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1016. localstatedir=$ac_optarg ;;
  1017. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1018. ac_prev=mandir ;;
  1019. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1020. mandir=$ac_optarg ;;
  1021. -nfp | --nfp | --nf)
  1022. # Obsolete; use --without-fp.
  1023. with_fp=no ;;
  1024. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1025. | --no-cr | --no-c | -n)
  1026. no_create=yes ;;
  1027. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1028. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1029. no_recursion=yes ;;
  1030. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1031. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1032. | --oldin | --oldi | --old | --ol | --o)
  1033. ac_prev=oldincludedir ;;
  1034. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1035. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1036. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1037. oldincludedir=$ac_optarg ;;
  1038. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1039. ac_prev=prefix ;;
  1040. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1041. prefix=$ac_optarg ;;
  1042. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1043. | --program-pre | --program-pr | --program-p)
  1044. ac_prev=program_prefix ;;
  1045. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1046. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1047. program_prefix=$ac_optarg ;;
  1048. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1049. | --program-suf | --program-su | --program-s)
  1050. ac_prev=program_suffix ;;
  1051. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1052. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1053. program_suffix=$ac_optarg ;;
  1054. -program-transform-name | --program-transform-name \
  1055. | --program-transform-nam | --program-transform-na \
  1056. | --program-transform-n | --program-transform- \
  1057. | --program-transform | --program-transfor \
  1058. | --program-transfo | --program-transf \
  1059. | --program-trans | --program-tran \
  1060. | --progr-tra | --program-tr | --program-t)
  1061. ac_prev=program_transform_name ;;
  1062. -program-transform-name=* | --program-transform-name=* \
  1063. | --program-transform-nam=* | --program-transform-na=* \
  1064. | --program-transform-n=* | --program-transform-=* \
  1065. | --program-transform=* | --program-transfor=* \
  1066. | --program-transfo=* | --program-transf=* \
  1067. | --program-trans=* | --program-tran=* \
  1068. | --progr-tra=* | --program-tr=* | --program-t=*)
  1069. program_transform_name=$ac_optarg ;;
  1070. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1071. ac_prev=pdfdir ;;
  1072. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1073. pdfdir=$ac_optarg ;;
  1074. -psdir | --psdir | --psdi | --psd | --ps)
  1075. ac_prev=psdir ;;
  1076. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1077. psdir=$ac_optarg ;;
  1078. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1079. | -silent | --silent | --silen | --sile | --sil)
  1080. silent=yes ;;
  1081. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1082. ac_prev=sbindir ;;
  1083. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1084. | --sbi=* | --sb=*)
  1085. sbindir=$ac_optarg ;;
  1086. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1087. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1088. | --sharedst | --shareds | --shared | --share | --shar \
  1089. | --sha | --sh)
  1090. ac_prev=sharedstatedir ;;
  1091. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1092. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1093. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1094. | --sha=* | --sh=*)
  1095. sharedstatedir=$ac_optarg ;;
  1096. -site | --site | --sit)
  1097. ac_prev=site ;;
  1098. -site=* | --site=* | --sit=*)
  1099. site=$ac_optarg ;;
  1100. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1101. ac_prev=srcdir ;;
  1102. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1103. srcdir=$ac_optarg ;;
  1104. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1105. | --syscon | --sysco | --sysc | --sys | --sy)
  1106. ac_prev=sysconfdir ;;
  1107. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1108. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1109. sysconfdir=$ac_optarg ;;
  1110. -target | --target | --targe | --targ | --tar | --ta | --t)
  1111. ac_prev=target_alias ;;
  1112. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1113. target_alias=$ac_optarg ;;
  1114. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1115. verbose=yes ;;
  1116. -version | --version | --versio | --versi | --vers | -V)
  1117. ac_init_version=: ;;
  1118. -with-* | --with-*)
  1119. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1120. # Reject names that are not valid shell variable names.
  1121. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1122. as_fn_error "invalid package name: $ac_useropt"
  1123. ac_useropt_orig=$ac_useropt
  1124. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1125. case $ac_user_opts in
  1126. *"
  1127. "with_$ac_useropt"
  1128. "*) ;;
  1129. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1130. ac_unrecognized_sep=', ';;
  1131. esac
  1132. eval with_$ac_useropt=\$ac_optarg ;;
  1133. -without-* | --without-*)
  1134. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1135. # Reject names that are not valid shell variable names.
  1136. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1137. as_fn_error "invalid package name: $ac_useropt"
  1138. ac_useropt_orig=$ac_useropt
  1139. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1140. case $ac_user_opts in
  1141. *"
  1142. "with_$ac_useropt"
  1143. "*) ;;
  1144. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1145. ac_unrecognized_sep=', ';;
  1146. esac
  1147. eval with_$ac_useropt=no ;;
  1148. --x)
  1149. # Obsolete; use --with-x.
  1150. with_x=yes ;;
  1151. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1152. | --x-incl | --x-inc | --x-in | --x-i)
  1153. ac_prev=x_includes ;;
  1154. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1155. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1156. x_includes=$ac_optarg ;;
  1157. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1158. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1159. ac_prev=x_libraries ;;
  1160. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1161. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1162. x_libraries=$ac_optarg ;;
  1163. -*) as_fn_error "unrecognized option: \`$ac_option'
  1164. Try \`$0 --help' for more information."
  1165. ;;
  1166. *=*)
  1167. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1168. # Reject names that are not valid shell variable names.
  1169. case $ac_envvar in #(
  1170. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1171. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1172. esac
  1173. eval $ac_envvar=\$ac_optarg
  1174. export $ac_envvar ;;
  1175. *)
  1176. # FIXME: should be removed in autoconf 3.0.
  1177. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1178. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1179. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1180. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1181. ;;
  1182. esac
  1183. done
  1184. if test -n "$ac_prev"; then
  1185. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1186. as_fn_error "missing argument to $ac_option"
  1187. fi
  1188. if test -n "$ac_unrecognized_opts"; then
  1189. case $enable_option_checking in
  1190. no) ;;
  1191. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1192. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1193. esac
  1194. fi
  1195. # Check all directory arguments for consistency.
  1196. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1197. datadir sysconfdir sharedstatedir localstatedir includedir \
  1198. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1199. libdir localedir mandir
  1200. do
  1201. eval ac_val=\$$ac_var
  1202. # Remove trailing slashes.
  1203. case $ac_val in
  1204. */ )
  1205. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1206. eval $ac_var=\$ac_val;;
  1207. esac
  1208. # Be sure to have absolute directory names.
  1209. case $ac_val in
  1210. [\\/$]* | ?:[\\/]* ) continue;;
  1211. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1212. esac
  1213. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1214. done
  1215. # There might be people who depend on the old broken behavior: `$host'
  1216. # used to hold the argument of --host etc.
  1217. # FIXME: To remove some day.
  1218. build=$build_alias
  1219. host=$host_alias
  1220. target=$target_alias
  1221. # FIXME: To remove some day.
  1222. if test "x$host_alias" != x; then
  1223. if test "x$build_alias" = x; then
  1224. cross_compiling=maybe
  1225. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1226. If a cross compiler is detected then cross compile mode will be used." >&2
  1227. elif test "x$build_alias" != "x$host_alias"; then
  1228. cross_compiling=yes
  1229. fi
  1230. fi
  1231. ac_tool_prefix=
  1232. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1233. test "$silent" = yes && exec 6>/dev/null
  1234. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1235. ac_ls_di=`ls -di .` &&
  1236. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1237. as_fn_error "working directory cannot be determined"
  1238. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1239. as_fn_error "pwd does not report name of working directory"
  1240. # Find the source files, if location was not specified.
  1241. if test -z "$srcdir"; then
  1242. ac_srcdir_defaulted=yes
  1243. # Try the directory containing this script, then the parent directory.
  1244. ac_confdir=`$as_dirname -- "$as_myself" ||
  1245. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1246. X"$as_myself" : 'X\(//\)[^/]' \| \
  1247. X"$as_myself" : 'X\(//\)$' \| \
  1248. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1249. $as_echo X"$as_myself" |
  1250. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1251. s//\1/
  1252. q
  1253. }
  1254. /^X\(\/\/\)[^/].*/{
  1255. s//\1/
  1256. q
  1257. }
  1258. /^X\(\/\/\)$/{
  1259. s//\1/
  1260. q
  1261. }
  1262. /^X\(\/\).*/{
  1263. s//\1/
  1264. q
  1265. }
  1266. s/.*/./; q'`
  1267. srcdir=$ac_confdir
  1268. if test ! -r "$srcdir/$ac_unique_file"; then
  1269. srcdir=..
  1270. fi
  1271. else
  1272. ac_srcdir_defaulted=no
  1273. fi
  1274. if test ! -r "$srcdir/$ac_unique_file"; then
  1275. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1276. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1277. fi
  1278. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1279. ac_abs_confdir=`(
  1280. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1281. pwd)`
  1282. # When building in place, set srcdir=.
  1283. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1284. srcdir=.
  1285. fi
  1286. # Remove unnecessary trailing slashes from srcdir.
  1287. # Double slashes in file names in object file debugging info
  1288. # mess up M-x gdb in Emacs.
  1289. case $srcdir in
  1290. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1291. esac
  1292. for ac_var in $ac_precious_vars; do
  1293. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1294. eval ac_env_${ac_var}_value=\$${ac_var}
  1295. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1296. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1297. done
  1298. #
  1299. # Report the --help message.
  1300. #
  1301. if test "$ac_init_help" = "long"; then
  1302. # Omit some internal or obsolete options to make the list less imposing.
  1303. # This message is too long to be a string in the A/UX 3.1 sh.
  1304. cat <<_ACEOF
  1305. \`configure' configures nutdisc 3.0.0 to adapt to many kinds of systems.
  1306. Usage: $0 [OPTION]... [VAR=VALUE]...
  1307. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1308. VAR=VALUE. See below for descriptions of some of the useful variables.
  1309. Defaults for the options are specified in brackets.
  1310. Configuration:
  1311. -h, --help display this help and exit
  1312. --help=short display options specific to this package
  1313. --help=recursive display the short help of all the included packages
  1314. -V, --version display version information and exit
  1315. -q, --quiet, --silent do not print \`checking...' messages
  1316. --cache-file=FILE cache test results in FILE [disabled]
  1317. -C, --config-cache alias for \`--cache-file=config.cache'
  1318. -n, --no-create do not create output files
  1319. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1320. Installation directories:
  1321. --prefix=PREFIX install architecture-independent files in PREFIX
  1322. [$ac_default_prefix]
  1323. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1324. [PREFIX]
  1325. By default, \`make install' will install all the files in
  1326. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1327. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1328. for instance \`--prefix=\$HOME'.
  1329. For better control, use the options below.
  1330. Fine tuning of the installation directories:
  1331. --bindir=DIR user executables [EPREFIX/bin]
  1332. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1333. --libexecdir=DIR program executables [EPREFIX/libexec]
  1334. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1335. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1336. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1337. --libdir=DIR object code libraries [EPREFIX/lib]
  1338. --includedir=DIR C header files [PREFIX/include]
  1339. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1340. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1341. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1342. --infodir=DIR info documentation [DATAROOTDIR/info]
  1343. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1344. --mandir=DIR man documentation [DATAROOTDIR/man]
  1345. --docdir=DIR documentation root [DATAROOTDIR/doc/nutdisc]
  1346. --htmldir=DIR html documentation [DOCDIR]
  1347. --dvidir=DIR dvi documentation [DOCDIR]
  1348. --pdfdir=DIR pdf documentation [DOCDIR]
  1349. --psdir=DIR ps documentation [DOCDIR]
  1350. _ACEOF
  1351. cat <<\_ACEOF
  1352. Program names:
  1353. --program-prefix=PREFIX prepend PREFIX to installed program names
  1354. --program-suffix=SUFFIX append SUFFIX to installed program names
  1355. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1356. System types:
  1357. --build=BUILD configure for building on BUILD [guessed]
  1358. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1359. _ACEOF
  1360. fi
  1361. if test -n "$ac_init_help"; then
  1362. case $ac_init_help in
  1363. short | recursive ) echo "Configuration of nutdisc 3.0.0:";;
  1364. esac
  1365. cat <<\_ACEOF
  1366. Optional Features:
  1367. --disable-option-checking ignore unrecognized --enable/--with options
  1368. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1369. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1370. --enable-silent-rules less verbose build output (undo: `make V=1')
  1371. --disable-silent-rules verbose build output (undo: `make V=0')
  1372. --enable-maintainer-mode enable make rules and dependencies not useful
  1373. (and sometimes confusing) to the casual installer
  1374. --disable-dependency-tracking speeds up one-time build
  1375. --enable-dependency-tracking do not reject slow dependency extractors
  1376. --disable-nutdisc disable NutOs Discoverer
  1377. --disable-wxpropgrid disable xwProperty Grid
  1378. --enable-shared[=PKGS] build shared libraries [default=yes]
  1379. --enable-static[=PKGS] build static libraries [default=yes]
  1380. --enable-fast-install[=PKGS]
  1381. optimize for fast installation [default=yes]
  1382. --disable-libtool-lock avoid locking (might break parallel builds)
  1383. Optional Packages:
  1384. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1385. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1386. --with-wx-config=FILE
  1387. Use the given path to wx-config when determining
  1388. wxWidgets configuration; defaults to "wx-config"
  1389. --with-pic try to use only PIC/non-PIC objects [default=use
  1390. both]
  1391. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1392. Some influential environment variables:
  1393. CC C compiler command
  1394. CFLAGS C compiler flags
  1395. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1396. nonstandard directory <lib dir>
  1397. LIBS libraries to pass to the linker, e.g. -l<library>
  1398. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1399. you have headers in a nonstandard directory <include dir>
  1400. CPP C preprocessor
  1401. CXX C++ compiler command
  1402. CXXFLAGS C++ compiler flags
  1403. CXXCPP C++ preprocessor
  1404. Use these variables to override the choices made by `configure' or to help
  1405. it to find libraries and programs with nonstandard names/locations.
  1406. Report bugs to the package provider.
  1407. _ACEOF
  1408. ac_status=$?
  1409. fi
  1410. if test "$ac_init_help" = "recursive"; then
  1411. # If there are subdirs, report their specific --help.
  1412. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1413. test -d "$ac_dir" ||
  1414. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1415. continue
  1416. ac_builddir=.
  1417. case "$ac_dir" in
  1418. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1419. *)
  1420. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1421. # A ".." for each directory in $ac_dir_suffix.
  1422. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1423. case $ac_top_builddir_sub in
  1424. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1425. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1426. esac ;;
  1427. esac
  1428. ac_abs_top_builddir=$ac_pwd
  1429. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1430. # for backward compatibility:
  1431. ac_top_builddir=$ac_top_build_prefix
  1432. case $srcdir in
  1433. .) # We are building in place.
  1434. ac_srcdir=.
  1435. ac_top_srcdir=$ac_top_builddir_sub
  1436. ac_abs_top_srcdir=$ac_pwd ;;
  1437. [\\/]* | ?:[\\/]* ) # Absolute name.
  1438. ac_srcdir=$srcdir$ac_dir_suffix;
  1439. ac_top_srcdir=$srcdir
  1440. ac_abs_top_srcdir=$srcdir ;;
  1441. *) # Relative name.
  1442. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1443. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1444. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1445. esac
  1446. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1447. cd "$ac_dir" || { ac_status=$?; continue; }
  1448. # Check for guested configure.
  1449. if test -f "$ac_srcdir/configure.gnu"; then
  1450. echo &&
  1451. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1452. elif test -f "$ac_srcdir/configure"; then
  1453. echo &&
  1454. $SHELL "$ac_srcdir/configure" --help=recursive
  1455. else
  1456. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1457. fi || ac_status=$?
  1458. cd "$ac_pwd" || { ac_status=$?; break; }
  1459. done
  1460. fi
  1461. test -n "$ac_init_help" && exit $ac_status
  1462. if $ac_init_version; then
  1463. cat <<\_ACEOF
  1464. nutdisc configure 3.0.0
  1465. generated by GNU Autoconf 2.65
  1466. Copyright (C) 2009 Free Software Foundation, Inc.
  1467. This configure script is free software; the Free Software Foundation
  1468. gives unlimited permission to copy, distribute and modify it.
  1469. _ACEOF
  1470. exit
  1471. fi
  1472. ## ------------------------ ##
  1473. ## Autoconf initialization. ##
  1474. ## ------------------------ ##
  1475. # ac_fn_c_try_compile LINENO
  1476. # --------------------------
  1477. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1478. ac_fn_c_try_compile ()
  1479. {
  1480. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1481. rm -f conftest.$ac_objext
  1482. if { { ac_try="$ac_compile"
  1483. case "(($ac_try" in
  1484. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1485. *) ac_try_echo=$ac_try;;
  1486. esac
  1487. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1488. $as_echo "$ac_try_echo"; } >&5
  1489. (eval "$ac_compile") 2>conftest.err
  1490. ac_status=$?
  1491. if test -s conftest.err; then
  1492. grep -v '^ *+' conftest.err >conftest.er1
  1493. cat conftest.er1 >&5
  1494. mv -f conftest.er1 conftest.err
  1495. fi
  1496. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1497. test $ac_status = 0; } && {
  1498. test -z "$ac_c_werror_flag" ||
  1499. test ! -s conftest.err
  1500. } && test -s conftest.$ac_objext; then :
  1501. ac_retval=0
  1502. else
  1503. $as_echo "$as_me: failed program was:" >&5
  1504. sed 's/^/| /' conftest.$ac_ext >&5
  1505. ac_retval=1
  1506. fi
  1507. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1508. as_fn_set_status $ac_retval
  1509. } # ac_fn_c_try_compile
  1510. # ac_fn_c_try_cpp LINENO
  1511. # ----------------------
  1512. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1513. ac_fn_c_try_cpp ()
  1514. {
  1515. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1516. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1517. case "(($ac_try" in
  1518. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1519. *) ac_try_echo=$ac_try;;
  1520. esac
  1521. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1522. $as_echo "$ac_try_echo"; } >&5
  1523. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1524. ac_status=$?
  1525. if test -s conftest.err; then
  1526. grep -v '^ *+' conftest.err >conftest.er1
  1527. cat conftest.er1 >&5
  1528. mv -f conftest.er1 conftest.err
  1529. fi
  1530. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1531. test $ac_status = 0; } >/dev/null && {
  1532. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1533. test ! -s conftest.err
  1534. }; then :
  1535. ac_retval=0
  1536. else
  1537. $as_echo "$as_me: failed program was:" >&5
  1538. sed 's/^/| /' conftest.$ac_ext >&5
  1539. ac_retval=1
  1540. fi
  1541. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1542. as_fn_set_status $ac_retval
  1543. } # ac_fn_c_try_cpp
  1544. # ac_fn_cxx_try_compile LINENO
  1545. # ----------------------------
  1546. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1547. ac_fn_cxx_try_compile ()
  1548. {
  1549. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1550. rm -f conftest.$ac_objext
  1551. if { { ac_try="$ac_compile"
  1552. case "(($ac_try" in
  1553. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1554. *) ac_try_echo=$ac_try;;
  1555. esac
  1556. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1557. $as_echo "$ac_try_echo"; } >&5
  1558. (eval "$ac_compile") 2>conftest.err
  1559. ac_status=$?
  1560. if test -s conftest.err; then
  1561. grep -v '^ *+' conftest.err >conftest.er1
  1562. cat conftest.er1 >&5
  1563. mv -f conftest.er1 conftest.err
  1564. fi
  1565. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1566. test $ac_status = 0; } && {
  1567. test -z "$ac_cxx_werror_flag" ||
  1568. test ! -s conftest.err
  1569. } && test -s conftest.$ac_objext; then :
  1570. ac_retval=0
  1571. else
  1572. $as_echo "$as_me: failed program was:" >&5
  1573. sed 's/^/| /' conftest.$ac_ext >&5
  1574. ac_retval=1
  1575. fi
  1576. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1577. as_fn_set_status $ac_retval
  1578. } # ac_fn_cxx_try_compile
  1579. # ac_fn_c_try_link LINENO
  1580. # -----------------------
  1581. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1582. ac_fn_c_try_link ()
  1583. {
  1584. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1585. rm -f conftest.$ac_objext conftest$ac_exeext
  1586. if { { ac_try="$ac_link"
  1587. case "(($ac_try" in
  1588. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1589. *) ac_try_echo=$ac_try;;
  1590. esac
  1591. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1592. $as_echo "$ac_try_echo"; } >&5
  1593. (eval "$ac_link") 2>conftest.err
  1594. ac_status=$?
  1595. if test -s conftest.err; then
  1596. grep -v '^ *+' conftest.err >conftest.er1
  1597. cat conftest.er1 >&5
  1598. mv -f conftest.er1 conftest.err
  1599. fi
  1600. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1601. test $ac_status = 0; } && {
  1602. test -z "$ac_c_werror_flag" ||
  1603. test ! -s conftest.err
  1604. } && test -s conftest$ac_exeext && {
  1605. test "$cross_compiling" = yes ||
  1606. $as_test_x conftest$ac_exeext
  1607. }; then :
  1608. ac_retval=0
  1609. else
  1610. $as_echo "$as_me: failed program was:" >&5
  1611. sed 's/^/| /' conftest.$ac_ext >&5
  1612. ac_retval=1
  1613. fi
  1614. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1615. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1616. # interfere with the next link command; also delete a directory that is
  1617. # left behind by Apple's compiler. We do this before executing the actions.
  1618. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1619. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1620. as_fn_set_status $ac_retval
  1621. } # ac_fn_c_try_link
  1622. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1623. # -------------------------------------------------------
  1624. # Tests whether HEADER exists and can be compiled using the include files in
  1625. # INCLUDES, setting the cache variable VAR accordingly.
  1626. ac_fn_c_check_header_compile ()
  1627. {
  1628. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1630. $as_echo_n "checking for $2... " >&6; }
  1631. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1632. $as_echo_n "(cached) " >&6
  1633. else
  1634. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1635. /* end confdefs.h. */
  1636. $4
  1637. #include <$2>
  1638. _ACEOF
  1639. if ac_fn_c_try_compile "$LINENO"; then :
  1640. eval "$3=yes"
  1641. else
  1642. eval "$3=no"
  1643. fi
  1644. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1645. fi
  1646. eval ac_res=\$$3
  1647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1648. $as_echo "$ac_res" >&6; }
  1649. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1650. } # ac_fn_c_check_header_compile
  1651. # ac_fn_c_try_run LINENO
  1652. # ----------------------
  1653. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1654. # that executables *can* be run.
  1655. ac_fn_c_try_run ()
  1656. {
  1657. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1658. if { { ac_try="$ac_link"
  1659. case "(($ac_try" in
  1660. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1661. *) ac_try_echo=$ac_try;;
  1662. esac
  1663. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1664. $as_echo "$ac_try_echo"; } >&5
  1665. (eval "$ac_link") 2>&5
  1666. ac_status=$?
  1667. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1668. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1669. { { case "(($ac_try" in
  1670. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1671. *) ac_try_echo=$ac_try;;
  1672. esac
  1673. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1674. $as_echo "$ac_try_echo"; } >&5
  1675. (eval "$ac_try") 2>&5
  1676. ac_status=$?
  1677. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1678. test $ac_status = 0; }; }; then :
  1679. ac_retval=0
  1680. else
  1681. $as_echo "$as_me: program exited with status $ac_status" >&5
  1682. $as_echo "$as_me: failed program was:" >&5
  1683. sed 's/^/| /' conftest.$ac_ext >&5
  1684. ac_retval=$ac_status
  1685. fi
  1686. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1687. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1688. as_fn_set_status $ac_retval
  1689. } # ac_fn_c_try_run
  1690. # ac_fn_c_check_func LINENO FUNC VAR
  1691. # ----------------------------------
  1692. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1693. ac_fn_c_check_func ()
  1694. {
  1695. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1697. $as_echo_n "checking for $2... " >&6; }
  1698. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1699. $as_echo_n "(cached) " >&6
  1700. else
  1701. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1702. /* end confdefs.h. */
  1703. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1704. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1705. #define $2 innocuous_$2
  1706. /* System header to define __stub macros and hopefully few prototypes,
  1707. which can conflict with char $2 (); below.
  1708. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1709. <limits.h> exists even on freestanding compilers. */
  1710. #ifdef __STDC__
  1711. # include <limits.h>
  1712. #else
  1713. # include <assert.h>
  1714. #endif
  1715. #undef $2
  1716. /* Override any GCC internal prototype to avoid an error.
  1717. Use char because int might match the return type of a GCC
  1718. builtin and then its argument prototype would still apply. */
  1719. #ifdef __cplusplus
  1720. extern "C"
  1721. #endif
  1722. char $2 ();
  1723. /* The GNU C library defines this for functions which it implements
  1724. to always fail with ENOSYS. Some functions are actually named
  1725. something starting with __ and the normal name is an alias. */
  1726. #if defined __stub_$2 || defined __stub___$2
  1727. choke me
  1728. #endif
  1729. int
  1730. main ()
  1731. {
  1732. return $2 ();
  1733. ;
  1734. return 0;
  1735. }
  1736. _ACEOF
  1737. if ac_fn_c_try_link "$LINENO"; then :
  1738. eval "$3=yes"
  1739. else
  1740. eval "$3=no"
  1741. fi
  1742. rm -f core conftest.err conftest.$ac_objext \
  1743. conftest$ac_exeext conftest.$ac_ext
  1744. fi
  1745. eval ac_res=\$$3
  1746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1747. $as_echo "$ac_res" >&6; }
  1748. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1749. } # ac_fn_c_check_func
  1750. # ac_fn_cxx_try_cpp LINENO
  1751. # ------------------------
  1752. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1753. ac_fn_cxx_try_cpp ()
  1754. {
  1755. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1756. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1757. case "(($ac_try" in
  1758. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1759. *) ac_try_echo=$ac_try;;
  1760. esac
  1761. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1762. $as_echo "$ac_try_echo"; } >&5
  1763. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1764. ac_status=$?
  1765. if test -s conftest.err; then
  1766. grep -v '^ *+' conftest.err >conftest.er1
  1767. cat conftest.er1 >&5
  1768. mv -f conftest.er1 conftest.err
  1769. fi
  1770. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1771. test $ac_status = 0; } >/dev/null && {
  1772. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1773. test ! -s conftest.err
  1774. }; then :
  1775. ac_retval=0
  1776. else
  1777. $as_echo "$as_me: failed program was:" >&5
  1778. sed 's/^/| /' conftest.$ac_ext >&5
  1779. ac_retval=1
  1780. fi
  1781. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1782. as_fn_set_status $ac_retval
  1783. } # ac_fn_cxx_try_cpp
  1784. # ac_fn_cxx_try_link LINENO
  1785. # -------------------------
  1786. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1787. ac_fn_cxx_try_link ()
  1788. {
  1789. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1790. rm -f conftest.$ac_objext conftest$ac_exeext
  1791. if { { ac_try="$ac_link"
  1792. case "(($ac_try" in
  1793. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1794. *) ac_try_echo=$ac_try;;
  1795. esac
  1796. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1797. $as_echo "$ac_try_echo"; } >&5
  1798. (eval "$ac_link") 2>conftest.err
  1799. ac_status=$?
  1800. if test -s conftest.err; then
  1801. grep -v '^ *+' conftest.err >conftest.er1
  1802. cat conftest.er1 >&5
  1803. mv -f conftest.er1 conftest.err
  1804. fi
  1805. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1806. test $ac_status = 0; } && {
  1807. test -z "$ac_cxx_werror_flag" ||
  1808. test ! -s conftest.err
  1809. } && test -s conftest$ac_exeext && {
  1810. test "$cross_compiling" = yes ||
  1811. $as_test_x conftest$ac_exeext
  1812. }; then :
  1813. ac_retval=0
  1814. else
  1815. $as_echo "$as_me: failed program was:" >&5
  1816. sed 's/^/| /' conftest.$ac_ext >&5
  1817. ac_retval=1
  1818. fi
  1819. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1820. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1821. # interfere with the next link command; also delete a directory that is
  1822. # left behind by Apple's compiler. We do this before executing the actions.
  1823. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1824. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1825. as_fn_set_status $ac_retval
  1826. } # ac_fn_cxx_try_link
  1827. cat >config.log <<_ACEOF
  1828. This file contains any messages produced by compilers while
  1829. running configure, to aid debugging if configure makes a mistake.
  1830. It was created by nutdisc $as_me 3.0.0, which was
  1831. generated by GNU Autoconf 2.65. Invocation command line was
  1832. $ $0 $@
  1833. _ACEOF
  1834. exec 5>>config.log
  1835. {
  1836. cat <<_ASUNAME
  1837. ## --------- ##
  1838. ## Platform. ##
  1839. ## --------- ##
  1840. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1841. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1842. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1843. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1844. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1845. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1846. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1847. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1848. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1849. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1850. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1851. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1852. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1853. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1854. _ASUNAME
  1855. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1856. for as_dir in $PATH
  1857. do
  1858. IFS=$as_save_IFS
  1859. test -z "$as_dir" && as_dir=.
  1860. $as_echo "PATH: $as_dir"
  1861. done
  1862. IFS=$as_save_IFS
  1863. } >&5
  1864. cat >&5 <<_ACEOF
  1865. ## ----------- ##
  1866. ## Core tests. ##
  1867. ## ----------- ##
  1868. _ACEOF
  1869. # Keep a trace of the command line.
  1870. # Strip out --no-create and --no-recursion so they do not pile up.
  1871. # Strip out --silent because we don't want to record it for future runs.
  1872. # Also quote any args containing shell meta-characters.
  1873. # Make two passes to allow for proper duplicate-argument suppression.
  1874. ac_configure_args=
  1875. ac_configure_args0=
  1876. ac_configure_args1=
  1877. ac_must_keep_next=false
  1878. for ac_pass in 1 2
  1879. do
  1880. for ac_arg
  1881. do
  1882. case $ac_arg in
  1883. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1884. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1885. | -silent | --silent | --silen | --sile | --sil)
  1886. continue ;;
  1887. *\'*)
  1888. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1889. esac
  1890. case $ac_pass in
  1891. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1892. 2)
  1893. as_fn_append ac_configure_args1 " '$ac_arg'"
  1894. if test $ac_must_keep_next = true; then
  1895. ac_must_keep_next=false # Got value, back to normal.
  1896. else
  1897. case $ac_arg in
  1898. *=* | --config-cache | -C | -disable-* | --disable-* \
  1899. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1900. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1901. | -with-* | --with-* | -without-* | --without-* | --x)
  1902. case "$ac_configure_args0 " in
  1903. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1904. esac
  1905. ;;
  1906. -* ) ac_must_keep_next=true ;;
  1907. esac
  1908. fi
  1909. as_fn_append ac_configure_args " '$ac_arg'"
  1910. ;;
  1911. esac
  1912. done
  1913. done
  1914. { ac_configure_args0=; unset ac_configure_args0;}
  1915. { ac_configure_args1=; unset ac_configure_args1;}
  1916. # When interrupted or exit'd, cleanup temporary files, and complete
  1917. # config.log. We remove comments because anyway the quotes in there
  1918. # would cause problems or look ugly.
  1919. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1920. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1921. trap 'exit_status=$?
  1922. # Save into config.log some information that might help in debugging.
  1923. {
  1924. echo
  1925. cat <<\_ASBOX
  1926. ## ---------------- ##
  1927. ## Cache variables. ##
  1928. ## ---------------- ##
  1929. _ASBOX
  1930. echo
  1931. # The following way of writing the cache mishandles newlines in values,
  1932. (
  1933. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1934. eval ac_val=\$$ac_var
  1935. case $ac_val in #(
  1936. *${as_nl}*)
  1937. case $ac_var in #(
  1938. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1939. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1940. esac
  1941. case $ac_var in #(
  1942. _ | IFS | as_nl) ;; #(
  1943. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1944. *) { eval $ac_var=; unset $ac_var;} ;;
  1945. esac ;;
  1946. esac
  1947. done
  1948. (set) 2>&1 |
  1949. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1950. *${as_nl}ac_space=\ *)
  1951. sed -n \
  1952. "s/'\''/'\''\\\\'\'''\''/g;
  1953. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1954. ;; #(
  1955. *)
  1956. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1957. ;;
  1958. esac |
  1959. sort
  1960. )
  1961. echo
  1962. cat <<\_ASBOX
  1963. ## ----------------- ##
  1964. ## Output variables. ##
  1965. ## ----------------- ##
  1966. _ASBOX
  1967. echo
  1968. for ac_var in $ac_subst_vars
  1969. do
  1970. eval ac_val=\$$ac_var
  1971. case $ac_val in
  1972. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1973. esac
  1974. $as_echo "$ac_var='\''$ac_val'\''"
  1975. done | sort
  1976. echo
  1977. if test -n "$ac_subst_files"; then
  1978. cat <<\_ASBOX
  1979. ## ------------------- ##
  1980. ## File substitutions. ##
  1981. ## ------------------- ##
  1982. _ASBOX
  1983. echo
  1984. for ac_var in $ac_subst_files
  1985. do
  1986. eval ac_val=\$$ac_var
  1987. case $ac_val in
  1988. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1989. esac
  1990. $as_echo "$ac_var='\''$ac_val'\''"
  1991. done | sort
  1992. echo
  1993. fi
  1994. if test -s confdefs.h; then
  1995. cat <<\_ASBOX
  1996. ## ----------- ##
  1997. ## confdefs.h. ##
  1998. ## ----------- ##
  1999. _ASBOX
  2000. echo
  2001. cat confdefs.h
  2002. echo
  2003. fi
  2004. test "$ac_signal" != 0 &&
  2005. $as_echo "$as_me: caught signal $ac_signal"
  2006. $as_echo "$as_me: exit $exit_status"
  2007. } >&5
  2008. rm -f core *.core core.conftest.* &&
  2009. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2010. exit $exit_status
  2011. ' 0
  2012. for ac_signal in 1 2 13 15; do
  2013. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2014. done
  2015. ac_signal=0
  2016. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2017. rm -f -r conftest* confdefs.h
  2018. $as_echo "/* confdefs.h */" > confdefs.h
  2019. # Predefined preprocessor variables.
  2020. cat >>confdefs.h <<_ACEOF
  2021. #define PACKAGE_NAME "$PACKAGE_NAME"
  2022. _ACEOF
  2023. cat >>confdefs.h <<_ACEOF
  2024. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2025. _ACEOF
  2026. cat >>confdefs.h <<_ACEOF
  2027. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2028. _ACEOF
  2029. cat >>confdefs.h <<_ACEOF
  2030. #define PACKAGE_STRING "$PACKAGE_STRING"
  2031. _ACEOF
  2032. cat >>confdefs.h <<_ACEOF
  2033. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2034. _ACEOF
  2035. cat >>confdefs.h <<_ACEOF
  2036. #define PACKAGE_URL "$PACKAGE_URL"
  2037. _ACEOF
  2038. # Let the site file select an alternate cache file if it wants to.
  2039. # Prefer an explicitly selected file to automatically selected ones.
  2040. ac_site_file1=NONE
  2041. ac_site_file2=NONE
  2042. if test -n "$CONFIG_SITE"; then
  2043. ac_site_file1=$CONFIG_SITE
  2044. elif test "x$prefix" != xNONE; then
  2045. ac_site_file1=$prefix/share/config.site
  2046. ac_site_file2=$prefix/etc/config.site
  2047. else
  2048. ac_site_file1=$ac_default_prefix/share/config.site
  2049. ac_site_file2=$ac_default_prefix/etc/config.site
  2050. fi
  2051. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2052. do
  2053. test "x$ac_site_file" = xNONE && continue
  2054. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2055. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2056. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2057. sed 's/^/| /' "$ac_site_file" >&5
  2058. . "$ac_site_file"
  2059. fi
  2060. done
  2061. if test -r "$cache_file"; then
  2062. # Some versions of bash will fail to source /dev/null (special files
  2063. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2064. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2065. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2066. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2067. case $cache_file in
  2068. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2069. *) . "./$cache_file";;
  2070. esac
  2071. fi
  2072. else
  2073. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2074. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2075. >$cache_file
  2076. fi
  2077. # Check that the precious variables saved in the cache have kept the same
  2078. # value.
  2079. ac_cache_corrupted=false
  2080. for ac_var in $ac_precious_vars; do
  2081. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2082. eval ac_new_set=\$ac_env_${ac_var}_set
  2083. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2084. eval ac_new_val=\$ac_env_${ac_var}_value
  2085. case $ac_old_set,$ac_new_set in
  2086. set,)
  2087. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2088. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2089. ac_cache_corrupted=: ;;
  2090. ,set)
  2091. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2092. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2093. ac_cache_corrupted=: ;;
  2094. ,);;
  2095. *)
  2096. if test "x$ac_old_val" != "x$ac_new_val"; then
  2097. # differences in whitespace do not lead to failure.
  2098. ac_old_val_w=`echo x $ac_old_val`
  2099. ac_new_val_w=`echo x $ac_new_val`
  2100. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2101. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2102. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2103. ac_cache_corrupted=:
  2104. else
  2105. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2106. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2107. eval $ac_var=\$ac_old_val
  2108. fi
  2109. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2110. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2111. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2112. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2113. fi;;
  2114. esac
  2115. # Pass precious variables to config.status.
  2116. if test "$ac_new_set" = set; then
  2117. case $ac_new_val in
  2118. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2119. *) ac_arg=$ac_var=$ac_new_val ;;
  2120. esac
  2121. case " $ac_configure_args " in
  2122. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2123. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2124. esac
  2125. fi
  2126. done
  2127. if $ac_cache_corrupted; then
  2128. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2129. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2130. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2131. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2132. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2133. fi
  2134. ## -------------------- ##
  2135. ## Main body of script. ##
  2136. ## -------------------- ##
  2137. ac_ext=c
  2138. ac_cpp='$CPP $CPPFLAGS'
  2139. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2140. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2141. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2142. # Check whether --enable-silent-rules was given.
  2143. if test "${enable_silent_rules+set}" = set; then :
  2144. enableval=$enable_silent_rules;
  2145. fi
  2146. case $enable_silent_rules in
  2147. yes) AM_DEFAULT_VERBOSITY=0;;
  2148. no) AM_DEFAULT_VERBOSITY=1;;
  2149. *) AM_DEFAULT_VERBOSITY=0;;
  2150. esac
  2151. AM_BACKSLASH='\'
  2152. am__api_version='1.11'
  2153. ac_aux_dir=
  2154. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2155. for ac_t in install-sh install.sh shtool; do
  2156. if test -f "$ac_dir/$ac_t"; then
  2157. ac_aux_dir=$ac_dir
  2158. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2159. break 2
  2160. fi
  2161. done
  2162. done
  2163. if test -z "$ac_aux_dir"; then
  2164. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2165. fi
  2166. # These three variables are undocumented and unsupported,
  2167. # and are intended to be withdrawn in a future Autoconf release.
  2168. # They can cause serious problems if a builder's source tree is in a directory
  2169. # whose full name contains unusual characters.
  2170. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2171. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2172. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2173. # Find a good install program. We prefer a C program (faster),
  2174. # so one script is as good as another. But avoid the broken or
  2175. # incompatible versions:
  2176. # SysV /etc/install, /usr/sbin/install
  2177. # SunOS /usr/etc/install
  2178. # IRIX /sbin/install
  2179. # AIX /bin/install
  2180. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2181. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2182. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2183. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2184. # OS/2's system install, which has a completely different semantic
  2185. # ./install, which can be erroneously created by make from ./install.sh.
  2186. # Reject install programs that cannot install multiple files.
  2187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2188. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2189. if test -z "$INSTALL"; then
  2190. if test "${ac_cv_path_install+set}" = set; then :
  2191. $as_echo_n "(cached) " >&6
  2192. else
  2193. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2194. for as_dir in $PATH
  2195. do
  2196. IFS=$as_save_IFS
  2197. test -z "$as_dir" && as_dir=.
  2198. # Account for people who put trailing slashes in PATH elements.
  2199. case $as_dir/ in #((
  2200. ./ | .// | /[cC]/* | \
  2201. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2202. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2203. /usr/ucb/* ) ;;
  2204. *)
  2205. # OSF1 and SCO ODT 3.0 have their own names for install.
  2206. # Don't use installbsd from OSF since it installs stuff as root
  2207. # by default.
  2208. for ac_prog in ginstall scoinst install; do
  2209. for ac_exec_ext in '' $ac_executable_extensions; do
  2210. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2211. if test $ac_prog = install &&
  2212. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2213. # AIX install. It has an incompatible calling convention.
  2214. :
  2215. elif test $ac_prog = install &&
  2216. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2217. # program-specific install script used by HP pwplus--don't use.
  2218. :
  2219. else
  2220. rm -rf conftest.one conftest.two conftest.dir
  2221. echo one > conftest.one
  2222. echo two > conftest.two
  2223. mkdir conftest.dir
  2224. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2225. test -s conftest.one && test -s conftest.two &&
  2226. test -s conftest.dir/conftest.one &&
  2227. test -s conftest.dir/conftest.two
  2228. then
  2229. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2230. break 3
  2231. fi
  2232. fi
  2233. fi
  2234. done
  2235. done
  2236. ;;
  2237. esac
  2238. done
  2239. IFS=$as_save_IFS
  2240. rm -rf conftest.one conftest.two conftest.dir
  2241. fi
  2242. if test "${ac_cv_path_install+set}" = set; then
  2243. INSTALL=$ac_cv_path_install
  2244. else
  2245. # As a last resort, use the slow shell script. Don't cache a
  2246. # value for INSTALL within a source directory, because that will
  2247. # break other packages using the cache if that directory is
  2248. # removed, or if the value is a relative name.
  2249. INSTALL=$ac_install_sh
  2250. fi
  2251. fi
  2252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2253. $as_echo "$INSTALL" >&6; }
  2254. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2255. # It thinks the first close brace ends the variable substitution.
  2256. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2257. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2258. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2260. $as_echo_n "checking whether build environment is sane... " >&6; }
  2261. # Just in case
  2262. sleep 1
  2263. echo timestamp > conftest.file
  2264. # Reject unsafe characters in $srcdir or the absolute working directory
  2265. # name. Accept space and tab only in the latter.
  2266. am_lf='
  2267. '
  2268. case `pwd` in
  2269. *[\\\"\#\$\&\'\`$am_lf]*)
  2270. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  2271. esac
  2272. case $srcdir in
  2273. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2274. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2275. esac
  2276. # Do `set' in a subshell so we don't clobber the current shell's
  2277. # arguments. Must try -L first in case configure is actually a
  2278. # symlink; some systems play weird games with the mod time of symlinks
  2279. # (eg FreeBSD returns the mod time of the symlink's containing
  2280. # directory).
  2281. if (
  2282. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2283. if test "$*" = "X"; then
  2284. # -L didn't work.
  2285. set X `ls -t "$srcdir/configure" conftest.file`
  2286. fi
  2287. rm -f conftest.file
  2288. if test "$*" != "X $srcdir/configure conftest.file" \
  2289. && test "$*" != "X conftest.file $srcdir/configure"; then
  2290. # If neither matched, then we have a broken ls. This can happen
  2291. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2292. # broken ls alias from the environment. This has actually
  2293. # happened. Such a system could not be considered "sane".
  2294. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  2295. alias in your environment" "$LINENO" 5
  2296. fi
  2297. test "$2" = conftest.file
  2298. )
  2299. then
  2300. # Ok.
  2301. :
  2302. else
  2303. as_fn_error "newly created file is older than distributed files!
  2304. Check your system clock" "$LINENO" 5
  2305. fi
  2306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2307. $as_echo "yes" >&6; }
  2308. test "$program_prefix" != NONE &&
  2309. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2310. # Use a double $ so make ignores it.
  2311. test "$program_suffix" != NONE &&
  2312. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2313. # Double any \ or $.
  2314. # By default was `s,x,x', remove it if useless.
  2315. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2316. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2317. # expand $ac_aux_dir to an absolute path
  2318. am_aux_dir=`cd $ac_aux_dir && pwd`
  2319. if test x"${MISSING+set}" != xset; then
  2320. case $am_aux_dir in
  2321. *\ * | *\ *)
  2322. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2323. *)
  2324. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2325. esac
  2326. fi
  2327. # Use eval to expand $SHELL
  2328. if eval "$MISSING --run true"; then
  2329. am_missing_run="$MISSING --run "
  2330. else
  2331. am_missing_run=
  2332. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2333. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2334. fi
  2335. if test x"${install_sh}" != xset; then
  2336. case $am_aux_dir in
  2337. *\ * | *\ *)
  2338. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2339. *)
  2340. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2341. esac
  2342. fi
  2343. # Installed binaries are usually stripped using `strip' when the user
  2344. # run `make install-strip'. However `strip' might not be the right
  2345. # tool to use in cross-compilation environments, therefore Automake
  2346. # will honor the `STRIP' environment variable to overrule this program.
  2347. if test "$cross_compiling" != no; then
  2348. if test -n "$ac_tool_prefix"; then
  2349. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2350. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2352. $as_echo_n "checking for $ac_word... " >&6; }
  2353. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2354. $as_echo_n "(cached) " >&6
  2355. else
  2356. if test -n "$STRIP"; then
  2357. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2358. else
  2359. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2360. for as_dir in $PATH
  2361. do
  2362. IFS=$as_save_IFS
  2363. test -z "$as_dir" && as_dir=.
  2364. for ac_exec_ext in '' $ac_executable_extensions; do
  2365. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2366. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2367. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2368. break 2
  2369. fi
  2370. done
  2371. done
  2372. IFS=$as_save_IFS
  2373. fi
  2374. fi
  2375. STRIP=$ac_cv_prog_STRIP
  2376. if test -n "$STRIP"; then
  2377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2378. $as_echo "$STRIP" >&6; }
  2379. else
  2380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2381. $as_echo "no" >&6; }
  2382. fi
  2383. fi
  2384. if test -z "$ac_cv_prog_STRIP"; then
  2385. ac_ct_STRIP=$STRIP
  2386. # Extract the first word of "strip", so it can be a program name with args.
  2387. set dummy strip; ac_word=$2
  2388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2389. $as_echo_n "checking for $ac_word... " >&6; }
  2390. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2391. $as_echo_n "(cached) " >&6
  2392. else
  2393. if test -n "$ac_ct_STRIP"; then
  2394. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2395. else
  2396. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2397. for as_dir in $PATH
  2398. do
  2399. IFS=$as_save_IFS
  2400. test -z "$as_dir" && as_dir=.
  2401. for ac_exec_ext in '' $ac_executable_extensions; do
  2402. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2403. ac_cv_prog_ac_ct_STRIP="strip"
  2404. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2405. break 2
  2406. fi
  2407. done
  2408. done
  2409. IFS=$as_save_IFS
  2410. fi
  2411. fi
  2412. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2413. if test -n "$ac_ct_STRIP"; then
  2414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2415. $as_echo "$ac_ct_STRIP" >&6; }
  2416. else
  2417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2418. $as_echo "no" >&6; }
  2419. fi
  2420. if test "x$ac_ct_STRIP" = x; then
  2421. STRIP=":"
  2422. else
  2423. case $cross_compiling:$ac_tool_warned in
  2424. yes:)
  2425. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2426. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2427. ac_tool_warned=yes ;;
  2428. esac
  2429. STRIP=$ac_ct_STRIP
  2430. fi
  2431. else
  2432. STRIP="$ac_cv_prog_STRIP"
  2433. fi
  2434. fi
  2435. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2437. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2438. if test -z "$MKDIR_P"; then
  2439. if test "${ac_cv_path_mkdir+set}" = set; then :
  2440. $as_echo_n "(cached) " >&6
  2441. else
  2442. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2443. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2444. do
  2445. IFS=$as_save_IFS
  2446. test -z "$as_dir" && as_dir=.
  2447. for ac_prog in mkdir gmkdir; do
  2448. for ac_exec_ext in '' $ac_executable_extensions; do
  2449. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2450. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2451. 'mkdir (GNU coreutils) '* | \
  2452. 'mkdir (coreutils) '* | \
  2453. 'mkdir (fileutils) '4.1*)
  2454. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2455. break 3;;
  2456. esac
  2457. done
  2458. done
  2459. done
  2460. IFS=$as_save_IFS
  2461. fi
  2462. test -d ./--version && rmdir ./--version
  2463. if test "${ac_cv_path_mkdir+set}" = set; then
  2464. MKDIR_P="$ac_cv_path_mkdir -p"
  2465. else
  2466. # As a last resort, use the slow shell script. Don't cache a
  2467. # value for MKDIR_P within a source directory, because that will
  2468. # break other packages using the cache if that directory is
  2469. # removed, or if the value is a relative name.
  2470. MKDIR_P="$ac_install_sh -d"
  2471. fi
  2472. fi
  2473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2474. $as_echo "$MKDIR_P" >&6; }
  2475. mkdir_p="$MKDIR_P"
  2476. case $mkdir_p in
  2477. [\\/$]* | ?:[\\/]*) ;;
  2478. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2479. esac
  2480. for ac_prog in gawk mawk nawk awk
  2481. do
  2482. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2483. set dummy $ac_prog; ac_word=$2
  2484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2485. $as_echo_n "checking for $ac_word... " >&6; }
  2486. if test "${ac_cv_prog_AWK+set}" = set; then :
  2487. $as_echo_n "(cached) " >&6
  2488. else
  2489. if test -n "$AWK"; then
  2490. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2491. else
  2492. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2493. for as_dir in $PATH
  2494. do
  2495. IFS=$as_save_IFS
  2496. test -z "$as_dir" && as_dir=.
  2497. for ac_exec_ext in '' $ac_executable_extensions; do
  2498. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2499. ac_cv_prog_AWK="$ac_prog"
  2500. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2501. break 2
  2502. fi
  2503. done
  2504. done
  2505. IFS=$as_save_IFS
  2506. fi
  2507. fi
  2508. AWK=$ac_cv_prog_AWK
  2509. if test -n "$AWK"; then
  2510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2511. $as_echo "$AWK" >&6; }
  2512. else
  2513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2514. $as_echo "no" >&6; }
  2515. fi
  2516. test -n "$AWK" && break
  2517. done
  2518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2519. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2520. set x ${MAKE-make}
  2521. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2522. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  2523. $as_echo_n "(cached) " >&6
  2524. else
  2525. cat >conftest.make <<\_ACEOF
  2526. SHELL = /bin/sh
  2527. all:
  2528. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2529. _ACEOF
  2530. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2531. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2532. *@@@%%%=?*=@@@%%%*)
  2533. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2534. *)
  2535. eval ac_cv_prog_make_${ac_make}_set=no;;
  2536. esac
  2537. rm -f conftest.make
  2538. fi
  2539. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2541. $as_echo "yes" >&6; }
  2542. SET_MAKE=
  2543. else
  2544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2545. $as_echo "no" >&6; }
  2546. SET_MAKE="MAKE=${MAKE-make}"
  2547. fi
  2548. rm -rf .tst 2>/dev/null
  2549. mkdir .tst 2>/dev/null
  2550. if test -d .tst; then
  2551. am__leading_dot=.
  2552. else
  2553. am__leading_dot=_
  2554. fi
  2555. rmdir .tst 2>/dev/null
  2556. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2557. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2558. # is not polluted with repeated "-I."
  2559. am__isrc=' -I$(srcdir)'
  2560. # test to see if srcdir already configured
  2561. if test -f $srcdir/config.status; then
  2562. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2563. fi
  2564. fi
  2565. # test whether we have cygpath
  2566. if test -z "$CYGPATH_W"; then
  2567. if (cygpath --version) >/dev/null 2>/dev/null; then
  2568. CYGPATH_W='cygpath -w'
  2569. else
  2570. CYGPATH_W=echo
  2571. fi
  2572. fi
  2573. # Define the identity of the package.
  2574. PACKAGE=nutdisc
  2575. VERSION=3.0.0
  2576. cat >>confdefs.h <<_ACEOF
  2577. #define PACKAGE "$PACKAGE"
  2578. _ACEOF
  2579. cat >>confdefs.h <<_ACEOF
  2580. #define VERSION "$VERSION"
  2581. _ACEOF
  2582. # Some tools Automake needs.
  2583. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2584. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2585. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2586. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2587. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2588. # We need awk for the "check" target. The system "awk" is bad on
  2589. # some platforms.
  2590. # Always define AMTAR for backward compatibility.
  2591. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2592. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2593. ac_config_headers="$ac_config_headers config.h"
  2594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2595. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2596. # Check whether --enable-maintainer-mode was given.
  2597. if test "${enable_maintainer_mode+set}" = set; then :
  2598. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2599. else
  2600. USE_MAINTAINER_MODE=no
  2601. fi
  2602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2603. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2604. if test $USE_MAINTAINER_MODE = yes; then
  2605. MAINTAINER_MODE_TRUE=
  2606. MAINTAINER_MODE_FALSE='#'
  2607. else
  2608. MAINTAINER_MODE_TRUE='#'
  2609. MAINTAINER_MODE_FALSE=
  2610. fi
  2611. MAINT=$MAINTAINER_MODE_TRUE
  2612. ac_ext=c
  2613. ac_cpp='$CPP $CPPFLAGS'
  2614. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2615. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2616. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2617. if test -n "$ac_tool_prefix"; then
  2618. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2619. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2621. $as_echo_n "checking for $ac_word... " >&6; }
  2622. if test "${ac_cv_prog_CC+set}" = set; then :
  2623. $as_echo_n "(cached) " >&6
  2624. else
  2625. if test -n "$CC"; then
  2626. ac_cv_prog_CC="$CC" # Let the user override the test.
  2627. else
  2628. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2629. for as_dir in $PATH
  2630. do
  2631. IFS=$as_save_IFS
  2632. test -z "$as_dir" && as_dir=.
  2633. for ac_exec_ext in '' $ac_executable_extensions; do
  2634. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2635. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2636. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2637. break 2
  2638. fi
  2639. done
  2640. done
  2641. IFS=$as_save_IFS
  2642. fi
  2643. fi
  2644. CC=$ac_cv_prog_CC
  2645. if test -n "$CC"; then
  2646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2647. $as_echo "$CC" >&6; }
  2648. else
  2649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2650. $as_echo "no" >&6; }
  2651. fi
  2652. fi
  2653. if test -z "$ac_cv_prog_CC"; then
  2654. ac_ct_CC=$CC
  2655. # Extract the first word of "gcc", so it can be a program name with args.
  2656. set dummy gcc; ac_word=$2
  2657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2658. $as_echo_n "checking for $ac_word... " >&6; }
  2659. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2660. $as_echo_n "(cached) " >&6
  2661. else
  2662. if test -n "$ac_ct_CC"; then
  2663. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2664. else
  2665. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2666. for as_dir in $PATH
  2667. do
  2668. IFS=$as_save_IFS
  2669. test -z "$as_dir" && as_dir=.
  2670. for ac_exec_ext in '' $ac_executable_extensions; do
  2671. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2672. ac_cv_prog_ac_ct_CC="gcc"
  2673. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2674. break 2
  2675. fi
  2676. done
  2677. done
  2678. IFS=$as_save_IFS
  2679. fi
  2680. fi
  2681. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2682. if test -n "$ac_ct_CC"; then
  2683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2684. $as_echo "$ac_ct_CC" >&6; }
  2685. else
  2686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2687. $as_echo "no" >&6; }
  2688. fi
  2689. if test "x$ac_ct_CC" = x; then
  2690. CC=""
  2691. else
  2692. case $cross_compiling:$ac_tool_warned in
  2693. yes:)
  2694. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2695. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2696. ac_tool_warned=yes ;;
  2697. esac
  2698. CC=$ac_ct_CC
  2699. fi
  2700. else
  2701. CC="$ac_cv_prog_CC"
  2702. fi
  2703. if test -z "$CC"; then
  2704. if test -n "$ac_tool_prefix"; then
  2705. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2706. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2708. $as_echo_n "checking for $ac_word... " >&6; }
  2709. if test "${ac_cv_prog_CC+set}" = set; then :
  2710. $as_echo_n "(cached) " >&6
  2711. else
  2712. if test -n "$CC"; then
  2713. ac_cv_prog_CC="$CC" # Let the user override the test.
  2714. else
  2715. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2716. for as_dir in $PATH
  2717. do
  2718. IFS=$as_save_IFS
  2719. test -z "$as_dir" && as_dir=.
  2720. for ac_exec_ext in '' $ac_executable_extensions; do
  2721. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2722. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2723. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2724. break 2
  2725. fi
  2726. done
  2727. done
  2728. IFS=$as_save_IFS
  2729. fi
  2730. fi
  2731. CC=$ac_cv_prog_CC
  2732. if test -n "$CC"; then
  2733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2734. $as_echo "$CC" >&6; }
  2735. else
  2736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2737. $as_echo "no" >&6; }
  2738. fi
  2739. fi
  2740. fi
  2741. if test -z "$CC"; then
  2742. # Extract the first word of "cc", so it can be a program name with args.
  2743. set dummy cc; ac_word=$2
  2744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2745. $as_echo_n "checking for $ac_word... " >&6; }
  2746. if test "${ac_cv_prog_CC+set}" = set; then :
  2747. $as_echo_n "(cached) " >&6
  2748. else
  2749. if test -n "$CC"; then
  2750. ac_cv_prog_CC="$CC" # Let the user override the test.
  2751. else
  2752. ac_prog_rejected=no
  2753. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2754. for as_dir in $PATH
  2755. do
  2756. IFS=$as_save_IFS
  2757. test -z "$as_dir" && as_dir=.
  2758. for ac_exec_ext in '' $ac_executable_extensions; do
  2759. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2760. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2761. ac_prog_rejected=yes
  2762. continue
  2763. fi
  2764. ac_cv_prog_CC="cc"
  2765. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2766. break 2
  2767. fi
  2768. done
  2769. done
  2770. IFS=$as_save_IFS
  2771. if test $ac_prog_rejected = yes; then
  2772. # We found a bogon in the path, so make sure we never use it.
  2773. set dummy $ac_cv_prog_CC
  2774. shift
  2775. if test $# != 0; then
  2776. # We chose a different compiler from the bogus one.
  2777. # However, it has the same basename, so the bogon will be chosen
  2778. # first if we set CC to just the basename; use the full file name.
  2779. shift
  2780. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2781. fi
  2782. fi
  2783. fi
  2784. fi
  2785. CC=$ac_cv_prog_CC
  2786. if test -n "$CC"; then
  2787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2788. $as_echo "$CC" >&6; }
  2789. else
  2790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2791. $as_echo "no" >&6; }
  2792. fi
  2793. fi
  2794. if test -z "$CC"; then
  2795. if test -n "$ac_tool_prefix"; then
  2796. for ac_prog in cl.exe
  2797. do
  2798. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2799. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2801. $as_echo_n "checking for $ac_word... " >&6; }
  2802. if test "${ac_cv_prog_CC+set}" = set; then :
  2803. $as_echo_n "(cached) " >&6
  2804. else
  2805. if test -n "$CC"; then
  2806. ac_cv_prog_CC="$CC" # Let the user override the test.
  2807. else
  2808. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2809. for as_dir in $PATH
  2810. do
  2811. IFS=$as_save_IFS
  2812. test -z "$as_dir" && as_dir=.
  2813. for ac_exec_ext in '' $ac_executable_extensions; do
  2814. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2815. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2816. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2817. break 2
  2818. fi
  2819. done
  2820. done
  2821. IFS=$as_save_IFS
  2822. fi
  2823. fi
  2824. CC=$ac_cv_prog_CC
  2825. if test -n "$CC"; then
  2826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2827. $as_echo "$CC" >&6; }
  2828. else
  2829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2830. $as_echo "no" >&6; }
  2831. fi
  2832. test -n "$CC" && break
  2833. done
  2834. fi
  2835. if test -z "$CC"; then
  2836. ac_ct_CC=$CC
  2837. for ac_prog in cl.exe
  2838. do
  2839. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2840. set dummy $ac_prog; ac_word=$2
  2841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2842. $as_echo_n "checking for $ac_word... " >&6; }
  2843. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2844. $as_echo_n "(cached) " >&6
  2845. else
  2846. if test -n "$ac_ct_CC"; then
  2847. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2848. else
  2849. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2850. for as_dir in $PATH
  2851. do
  2852. IFS=$as_save_IFS
  2853. test -z "$as_dir" && as_dir=.
  2854. for ac_exec_ext in '' $ac_executable_extensions; do
  2855. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2856. ac_cv_prog_ac_ct_CC="$ac_prog"
  2857. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2858. break 2
  2859. fi
  2860. done
  2861. done
  2862. IFS=$as_save_IFS
  2863. fi
  2864. fi
  2865. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2866. if test -n "$ac_ct_CC"; then
  2867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2868. $as_echo "$ac_ct_CC" >&6; }
  2869. else
  2870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2871. $as_echo "no" >&6; }
  2872. fi
  2873. test -n "$ac_ct_CC" && break
  2874. done
  2875. if test "x$ac_ct_CC" = x; then
  2876. CC=""
  2877. else
  2878. case $cross_compiling:$ac_tool_warned in
  2879. yes:)
  2880. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2881. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2882. ac_tool_warned=yes ;;
  2883. esac
  2884. CC=$ac_ct_CC
  2885. fi
  2886. fi
  2887. fi
  2888. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2889. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2890. as_fn_error "no acceptable C compiler found in \$PATH
  2891. See \`config.log' for more details." "$LINENO" 5; }
  2892. # Provide some information about the compiler.
  2893. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2894. set X $ac_compile
  2895. ac_compiler=$2
  2896. for ac_option in --version -v -V -qversion; do
  2897. { { ac_try="$ac_compiler $ac_option >&5"
  2898. case "(($ac_try" in
  2899. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2900. *) ac_try_echo=$ac_try;;
  2901. esac
  2902. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2903. $as_echo "$ac_try_echo"; } >&5
  2904. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2905. ac_status=$?
  2906. if test -s conftest.err; then
  2907. sed '10a\
  2908. ... rest of stderr output deleted ...
  2909. 10q' conftest.err >conftest.er1
  2910. cat conftest.er1 >&5
  2911. fi
  2912. rm -f conftest.er1 conftest.err
  2913. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2914. test $ac_status = 0; }
  2915. done
  2916. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2917. /* end confdefs.h. */
  2918. int
  2919. main ()
  2920. {
  2921. ;
  2922. return 0;
  2923. }
  2924. _ACEOF
  2925. ac_clean_files_save=$ac_clean_files
  2926. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2927. # Try to create an executable without -o first, disregard a.out.
  2928. # It will help us diagnose broken compilers, and finding out an intuition
  2929. # of exeext.
  2930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2931. $as_echo_n "checking whether the C compiler works... " >&6; }
  2932. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2933. # The possible output files:
  2934. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2935. ac_rmfiles=
  2936. for ac_file in $ac_files
  2937. do
  2938. case $ac_file in
  2939. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2940. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2941. esac
  2942. done
  2943. rm -f $ac_rmfiles
  2944. if { { ac_try="$ac_link_default"
  2945. case "(($ac_try" in
  2946. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2947. *) ac_try_echo=$ac_try;;
  2948. esac
  2949. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2950. $as_echo "$ac_try_echo"; } >&5
  2951. (eval "$ac_link_default") 2>&5
  2952. ac_status=$?
  2953. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2954. test $ac_status = 0; }; then :
  2955. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2956. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2957. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2958. # so that the user can short-circuit this test for compilers unknown to
  2959. # Autoconf.
  2960. for ac_file in $ac_files ''
  2961. do
  2962. test -f "$ac_file" || continue
  2963. case $ac_file in
  2964. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2965. ;;
  2966. [ab].out )
  2967. # We found the default executable, but exeext='' is most
  2968. # certainly right.
  2969. break;;
  2970. *.* )
  2971. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2972. then :; else
  2973. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2974. fi
  2975. # We set ac_cv_exeext here because the later test for it is not
  2976. # safe: cross compilers may not add the suffix if given an `-o'
  2977. # argument, so we may need to know it at that point already.
  2978. # Even if this section looks crufty: it has the advantage of
  2979. # actually working.
  2980. break;;
  2981. * )
  2982. break;;
  2983. esac
  2984. done
  2985. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2986. else
  2987. ac_file=''
  2988. fi
  2989. if test -z "$ac_file"; then :
  2990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2991. $as_echo "no" >&6; }
  2992. $as_echo "$as_me: failed program was:" >&5
  2993. sed 's/^/| /' conftest.$ac_ext >&5
  2994. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2995. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2996. { as_fn_set_status 77
  2997. as_fn_error "C compiler cannot create executables
  2998. See \`config.log' for more details." "$LINENO" 5; }; }
  2999. else
  3000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3001. $as_echo "yes" >&6; }
  3002. fi
  3003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3004. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3006. $as_echo "$ac_file" >&6; }
  3007. ac_exeext=$ac_cv_exeext
  3008. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3009. ac_clean_files=$ac_clean_files_save
  3010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3011. $as_echo_n "checking for suffix of executables... " >&6; }
  3012. if { { ac_try="$ac_link"
  3013. case "(($ac_try" in
  3014. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3015. *) ac_try_echo=$ac_try;;
  3016. esac
  3017. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3018. $as_echo "$ac_try_echo"; } >&5
  3019. (eval "$ac_link") 2>&5
  3020. ac_status=$?
  3021. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3022. test $ac_status = 0; }; then :
  3023. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3024. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3025. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3026. # `rm'.
  3027. for ac_file in conftest.exe conftest conftest.*; do
  3028. test -f "$ac_file" || continue
  3029. case $ac_file in
  3030. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3031. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3032. break;;
  3033. * ) break;;
  3034. esac
  3035. done
  3036. else
  3037. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3038. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3039. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3040. See \`config.log' for more details." "$LINENO" 5; }
  3041. fi
  3042. rm -f conftest conftest$ac_cv_exeext
  3043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3044. $as_echo "$ac_cv_exeext" >&6; }
  3045. rm -f conftest.$ac_ext
  3046. EXEEXT=$ac_cv_exeext
  3047. ac_exeext=$EXEEXT
  3048. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3049. /* end confdefs.h. */
  3050. #include <stdio.h>
  3051. int
  3052. main ()
  3053. {
  3054. FILE *f = fopen ("conftest.out", "w");
  3055. return ferror (f) || fclose (f) != 0;
  3056. ;
  3057. return 0;
  3058. }
  3059. _ACEOF
  3060. ac_clean_files="$ac_clean_files conftest.out"
  3061. # Check that the compiler produces executables we can run. If not, either
  3062. # the compiler is broken, or we cross compile.
  3063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3064. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3065. if test "$cross_compiling" != yes; then
  3066. { { ac_try="$ac_link"
  3067. case "(($ac_try" in
  3068. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3069. *) ac_try_echo=$ac_try;;
  3070. esac
  3071. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3072. $as_echo "$ac_try_echo"; } >&5
  3073. (eval "$ac_link") 2>&5
  3074. ac_status=$?
  3075. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3076. test $ac_status = 0; }
  3077. if { ac_try='./conftest$ac_cv_exeext'
  3078. { { case "(($ac_try" in
  3079. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3080. *) ac_try_echo=$ac_try;;
  3081. esac
  3082. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3083. $as_echo "$ac_try_echo"; } >&5
  3084. (eval "$ac_try") 2>&5
  3085. ac_status=$?
  3086. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3087. test $ac_status = 0; }; }; then
  3088. cross_compiling=no
  3089. else
  3090. if test "$cross_compiling" = maybe; then
  3091. cross_compiling=yes
  3092. else
  3093. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3094. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3095. as_fn_error "cannot run C compiled programs.
  3096. If you meant to cross compile, use \`--host'.
  3097. See \`config.log' for more details." "$LINENO" 5; }
  3098. fi
  3099. fi
  3100. fi
  3101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3102. $as_echo "$cross_compiling" >&6; }
  3103. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3104. ac_clean_files=$ac_clean_files_save
  3105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3106. $as_echo_n "checking for suffix of object files... " >&6; }
  3107. if test "${ac_cv_objext+set}" = set; then :
  3108. $as_echo_n "(cached) " >&6
  3109. else
  3110. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3111. /* end confdefs.h. */
  3112. int
  3113. main ()
  3114. {
  3115. ;
  3116. return 0;
  3117. }
  3118. _ACEOF
  3119. rm -f conftest.o conftest.obj
  3120. if { { ac_try="$ac_compile"
  3121. case "(($ac_try" in
  3122. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3123. *) ac_try_echo=$ac_try;;
  3124. esac
  3125. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3126. $as_echo "$ac_try_echo"; } >&5
  3127. (eval "$ac_compile") 2>&5
  3128. ac_status=$?
  3129. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3130. test $ac_status = 0; }; then :
  3131. for ac_file in conftest.o conftest.obj conftest.*; do
  3132. test -f "$ac_file" || continue;
  3133. case $ac_file in
  3134. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3135. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3136. break;;
  3137. esac
  3138. done
  3139. else
  3140. $as_echo "$as_me: failed program was:" >&5
  3141. sed 's/^/| /' conftest.$ac_ext >&5
  3142. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3143. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3144. as_fn_error "cannot compute suffix of object files: cannot compile
  3145. See \`config.log' for more details." "$LINENO" 5; }
  3146. fi
  3147. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3148. fi
  3149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3150. $as_echo "$ac_cv_objext" >&6; }
  3151. OBJEXT=$ac_cv_objext
  3152. ac_objext=$OBJEXT
  3153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3154. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3155. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3156. $as_echo_n "(cached) " >&6
  3157. else
  3158. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3159. /* end confdefs.h. */
  3160. int
  3161. main ()
  3162. {
  3163. #ifndef __GNUC__
  3164. choke me
  3165. #endif
  3166. ;
  3167. return 0;
  3168. }
  3169. _ACEOF
  3170. if ac_fn_c_try_compile "$LINENO"; then :
  3171. ac_compiler_gnu=yes
  3172. else
  3173. ac_compiler_gnu=no
  3174. fi
  3175. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3176. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3177. fi
  3178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3179. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3180. if test $ac_compiler_gnu = yes; then
  3181. GCC=yes
  3182. else
  3183. GCC=
  3184. fi
  3185. ac_test_CFLAGS=${CFLAGS+set}
  3186. ac_save_CFLAGS=$CFLAGS
  3187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3188. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3189. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3190. $as_echo_n "(cached) " >&6
  3191. else
  3192. ac_save_c_werror_flag=$ac_c_werror_flag
  3193. ac_c_werror_flag=yes
  3194. ac_cv_prog_cc_g=no
  3195. CFLAGS="-g"
  3196. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3197. /* end confdefs.h. */
  3198. int
  3199. main ()
  3200. {
  3201. ;
  3202. return 0;
  3203. }
  3204. _ACEOF
  3205. if ac_fn_c_try_compile "$LINENO"; then :
  3206. ac_cv_prog_cc_g=yes
  3207. else
  3208. CFLAGS=""
  3209. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3210. /* end confdefs.h. */
  3211. int
  3212. main ()
  3213. {
  3214. ;
  3215. return 0;
  3216. }
  3217. _ACEOF
  3218. if ac_fn_c_try_compile "$LINENO"; then :
  3219. else
  3220. ac_c_werror_flag=$ac_save_c_werror_flag
  3221. CFLAGS="-g"
  3222. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3223. /* end confdefs.h. */
  3224. int
  3225. main ()
  3226. {
  3227. ;
  3228. return 0;
  3229. }
  3230. _ACEOF
  3231. if ac_fn_c_try_compile "$LINENO"; then :
  3232. ac_cv_prog_cc_g=yes
  3233. fi
  3234. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3235. fi
  3236. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3237. fi
  3238. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3239. ac_c_werror_flag=$ac_save_c_werror_flag
  3240. fi
  3241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3242. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3243. if test "$ac_test_CFLAGS" = set; then
  3244. CFLAGS=$ac_save_CFLAGS
  3245. elif test $ac_cv_prog_cc_g = yes; then
  3246. if test "$GCC" = yes; then
  3247. CFLAGS="-g -O2"
  3248. else
  3249. CFLAGS="-g"
  3250. fi
  3251. else
  3252. if test "$GCC" = yes; then
  3253. CFLAGS="-O2"
  3254. else
  3255. CFLAGS=
  3256. fi
  3257. fi
  3258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3259. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3260. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3261. $as_echo_n "(cached) " >&6
  3262. else
  3263. ac_cv_prog_cc_c89=no
  3264. ac_save_CC=$CC
  3265. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3266. /* end confdefs.h. */
  3267. #include <stdarg.h>
  3268. #include <stdio.h>
  3269. #include <sys/types.h>
  3270. #include <sys/stat.h>
  3271. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3272. struct buf { int x; };
  3273. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3274. static char *e (p, i)
  3275. char **p;
  3276. int i;
  3277. {
  3278. return p[i];
  3279. }
  3280. static char *f (char * (*g) (char **, int), char **p, ...)
  3281. {
  3282. char *s;
  3283. va_list v;
  3284. va_start (v,p);
  3285. s = g (p, va_arg (v,int));
  3286. va_end (v);
  3287. return s;
  3288. }
  3289. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3290. function prototypes and stuff, but not '\xHH' hex character constants.
  3291. These don't provoke an error unfortunately, instead are silently treated
  3292. as 'x'. The following induces an error, until -std is added to get
  3293. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3294. array size at least. It's necessary to write '\x00'==0 to get something
  3295. that's true only with -std. */
  3296. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3297. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3298. inside strings and character constants. */
  3299. #define FOO(x) 'x'
  3300. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3301. int test (int i, double x);
  3302. struct s1 {int (*f) (int a);};
  3303. struct s2 {int (*f) (double a);};
  3304. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3305. int argc;
  3306. char **argv;
  3307. int
  3308. main ()
  3309. {
  3310. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3311. ;
  3312. return 0;
  3313. }
  3314. _ACEOF
  3315. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3316. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3317. do
  3318. CC="$ac_save_CC $ac_arg"
  3319. if ac_fn_c_try_compile "$LINENO"; then :
  3320. ac_cv_prog_cc_c89=$ac_arg
  3321. fi
  3322. rm -f core conftest.err conftest.$ac_objext
  3323. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3324. done
  3325. rm -f conftest.$ac_ext
  3326. CC=$ac_save_CC
  3327. fi
  3328. # AC_CACHE_VAL
  3329. case "x$ac_cv_prog_cc_c89" in
  3330. x)
  3331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3332. $as_echo "none needed" >&6; } ;;
  3333. xno)
  3334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3335. $as_echo "unsupported" >&6; } ;;
  3336. *)
  3337. CC="$CC $ac_cv_prog_cc_c89"
  3338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3339. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3340. esac
  3341. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3342. fi
  3343. ac_ext=c
  3344. ac_cpp='$CPP $CPPFLAGS'
  3345. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3346. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3347. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3348. DEPDIR="${am__leading_dot}deps"
  3349. ac_config_commands="$ac_config_commands depfiles"
  3350. am_make=${MAKE-make}
  3351. cat > confinc << 'END'
  3352. am__doit:
  3353. @echo this is the am__doit target
  3354. .PHONY: am__doit
  3355. END
  3356. # If we don't find an include directive, just comment out the code.
  3357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3358. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3359. am__include="#"
  3360. am__quote=
  3361. _am_result=none
  3362. # First try GNU make style include.
  3363. echo "include confinc" > confmf
  3364. # Ignore all kinds of additional output from `make'.
  3365. case `$am_make -s -f confmf 2> /dev/null` in #(
  3366. *the\ am__doit\ target*)
  3367. am__include=include
  3368. am__quote=
  3369. _am_result=GNU
  3370. ;;
  3371. esac
  3372. # Now try BSD make style include.
  3373. if test "$am__include" = "#"; then
  3374. echo '.include "confinc"' > confmf
  3375. case `$am_make -s -f confmf 2> /dev/null` in #(
  3376. *the\ am__doit\ target*)
  3377. am__include=.include
  3378. am__quote="\""
  3379. _am_result=BSD
  3380. ;;
  3381. esac
  3382. fi
  3383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3384. $as_echo "$_am_result" >&6; }
  3385. rm -f confinc confmf
  3386. # Check whether --enable-dependency-tracking was given.
  3387. if test "${enable_dependency_tracking+set}" = set; then :
  3388. enableval=$enable_dependency_tracking;
  3389. fi
  3390. if test "x$enable_dependency_tracking" != xno; then
  3391. am_depcomp="$ac_aux_dir/depcomp"
  3392. AMDEPBACKSLASH='\'
  3393. fi
  3394. if test "x$enable_dependency_tracking" != xno; then
  3395. AMDEP_TRUE=
  3396. AMDEP_FALSE='#'
  3397. else
  3398. AMDEP_TRUE='#'
  3399. AMDEP_FALSE=
  3400. fi
  3401. depcc="$CC" am_compiler_list=
  3402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3403. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3404. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  3405. $as_echo_n "(cached) " >&6
  3406. else
  3407. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3408. # We make a subdir and do the tests there. Otherwise we can end up
  3409. # making bogus files that we don't know about and never remove. For
  3410. # instance it was reported that on HP-UX the gcc test will end up
  3411. # making a dummy file named `D' -- because `-MD' means `put the output
  3412. # in D'.
  3413. mkdir conftest.dir
  3414. # Copy depcomp to subdir because otherwise we won't find it if we're
  3415. # using a relative directory.
  3416. cp "$am_depcomp" conftest.dir
  3417. cd conftest.dir
  3418. # We will build objects and dependencies in a subdirectory because
  3419. # it helps to detect inapplicable dependency modes. For instance
  3420. # both Tru64's cc and ICC support -MD to output dependencies as a
  3421. # side effect of compilation, but ICC will put the dependencies in
  3422. # the current directory while Tru64 will put them in the object
  3423. # directory.
  3424. mkdir sub
  3425. am_cv_CC_dependencies_compiler_type=none
  3426. if test "$am_compiler_list" = ""; then
  3427. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3428. fi
  3429. am__universal=false
  3430. case " $depcc " in #(
  3431. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3432. esac
  3433. for depmode in $am_compiler_list; do
  3434. # Setup a source with many dependencies, because some compilers
  3435. # like to wrap large dependency lists on column 80 (with \), and
  3436. # we should not choose a depcomp mode which is confused by this.
  3437. #
  3438. # We need to recreate these files for each test, as the compiler may
  3439. # overwrite some of them when testing with obscure command lines.
  3440. # This happens at least with the AIX C compiler.
  3441. : > sub/conftest.c
  3442. for i in 1 2 3 4 5 6; do
  3443. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3444. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3445. # Solaris 8's {/usr,}/bin/sh.
  3446. touch sub/conftst$i.h
  3447. done
  3448. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3449. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3450. # mode. It turns out that the SunPro C++ compiler does not properly
  3451. # handle `-M -o', and we need to detect this. Also, some Intel
  3452. # versions had trouble with output in subdirs
  3453. am__obj=sub/conftest.${OBJEXT-o}
  3454. am__minus_obj="-o $am__obj"
  3455. case $depmode in
  3456. gcc)
  3457. # This depmode causes a compiler race in universal mode.
  3458. test "$am__universal" = false || continue
  3459. ;;
  3460. nosideeffect)
  3461. # after this tag, mechanisms are not by side-effect, so they'll
  3462. # only be used when explicitly requested
  3463. if test "x$enable_dependency_tracking" = xyes; then
  3464. continue
  3465. else
  3466. break
  3467. fi
  3468. ;;
  3469. msvisualcpp | msvcmsys)
  3470. # This compiler won't grok `-c -o', but also, the minuso test has
  3471. # not run yet. These depmodes are late enough in the game, and
  3472. # so weak that their functioning should not be impacted.
  3473. am__obj=conftest.${OBJEXT-o}
  3474. am__minus_obj=
  3475. ;;
  3476. none) break ;;
  3477. esac
  3478. if depmode=$depmode \
  3479. source=sub/conftest.c object=$am__obj \
  3480. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3481. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3482. >/dev/null 2>conftest.err &&
  3483. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3484. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3485. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3486. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3487. # icc doesn't choke on unknown options, it will just issue warnings
  3488. # or remarks (even with -Werror). So we grep stderr for any message
  3489. # that says an option was ignored or not supported.
  3490. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3491. # icc: Command line warning: ignoring option '-M'; no argument required
  3492. # The diagnosis changed in icc 8.0:
  3493. # icc: Command line remark: option '-MP' not supported
  3494. if (grep 'ignoring option' conftest.err ||
  3495. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3496. am_cv_CC_dependencies_compiler_type=$depmode
  3497. break
  3498. fi
  3499. fi
  3500. done
  3501. cd ..
  3502. rm -rf conftest.dir
  3503. else
  3504. am_cv_CC_dependencies_compiler_type=none
  3505. fi
  3506. fi
  3507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3508. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3509. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3510. if
  3511. test "x$enable_dependency_tracking" != xno \
  3512. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3513. am__fastdepCC_TRUE=
  3514. am__fastdepCC_FALSE='#'
  3515. else
  3516. am__fastdepCC_TRUE='#'
  3517. am__fastdepCC_FALSE=
  3518. fi
  3519. # Check whether --enable-nutdisc was given.
  3520. if test "${enable_nutdisc+set}" = set; then :
  3521. enableval=$enable_nutdisc;
  3522. else
  3523. enable_nutdisc=yes
  3524. fi
  3525. # Check whether --enable-wxpropgrid was given.
  3526. if test "${enable_wxpropgrid+set}" = set; then :
  3527. enableval=$enable_wxpropgrid;
  3528. else
  3529. enable_wxpropgrid=yes
  3530. fi
  3531. # Path to wx-config by default or from command line.
  3532. WXCONFIG=wx-config
  3533. # Check whether --with-wx-config was given.
  3534. if test "${with_wx_config+set}" = set; then :
  3535. withval=$with_wx_config;
  3536. if test "$withval" != "yes" -a "$withval" != ""; then
  3537. WXCONFIG=$withval
  3538. fi
  3539. fi
  3540. # Check wxWidgets' version.
  3541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking wxWidgets version" >&5
  3542. $as_echo_n "checking wxWidgets version... " >&6; }
  3543. if wxversion=`$WXCONFIG --version`; then
  3544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wxversion" >&5
  3545. $as_echo "$wxversion" >&6; }
  3546. wxwidgets_ok=yes
  3547. else
  3548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  3549. $as_echo "not found" >&6; }
  3550. as_fn_error "wxWidgets is required. Try --with-wx-config." "$LINENO" 5
  3551. wxwidgets_ok=no
  3552. fi
  3553. # Check property grid path, may be either /usr/ or /usr/local/.
  3554. if test "x$wxwidgets_ok" = "xyes"; then
  3555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for propgrid" >&5
  3556. $as_echo "$as_me: checking for propgrid" >&6;}
  3557. if test "x$enable_wxpropgrid" = "xyes" ; then
  3558. { $as_echo "$as_me:${as_lineno-$LINENO}: wxpropgrid enabled" >&5
  3559. $as_echo "$as_me: wxpropgrid enabled" >&6;}
  3560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxpropgrid" >&5
  3561. $as_echo "$as_me: checking for wxpropgrid" >&6;}
  3562. propgridpath1=/usr/include/wx-`wx-config --release`/wx/propgrid
  3563. propgridpath2=/usr/local/include/wx-`wx-config --release`/wx/propgrid
  3564. as_ac_File=`$as_echo "ac_cv_file_$propgridpath1/propgrid.h" | $as_tr_sh`
  3565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $propgridpath1/propgrid.h" >&5
  3566. $as_echo_n "checking for $propgridpath1/propgrid.h... " >&6; }
  3567. if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
  3568. $as_echo_n "(cached) " >&6
  3569. else
  3570. test "$cross_compiling" = yes &&
  3571. as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
  3572. if test -r "$propgridpath1/propgrid.h"; then
  3573. eval "$as_ac_File=yes"
  3574. else
  3575. eval "$as_ac_File=no"
  3576. fi
  3577. fi
  3578. eval ac_res=\$$as_ac_File
  3579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  3580. $as_echo "$ac_res" >&6; }
  3581. eval as_val=\$$as_ac_File
  3582. if test "x$as_val" = x""yes; then :
  3583. propgrid_ok="yes"
  3584. else
  3585. propgrid_ok="no"
  3586. fi
  3587. if test "x$propgrid_ok" = "xno"; then
  3588. as_ac_File=`$as_echo "ac_cv_file_$propgridpath2/propgrid.h" | $as_tr_sh`
  3589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $propgridpath2/propgrid.h" >&5
  3590. $as_echo_n "checking for $propgridpath2/propgrid.h... " >&6; }
  3591. if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
  3592. $as_echo_n "(cached) " >&6
  3593. else
  3594. test "$cross_compiling" = yes &&
  3595. as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
  3596. if test -r "$propgridpath2/propgrid.h"; then
  3597. eval "$as_ac_File=yes"
  3598. else
  3599. eval "$as_ac_File=no"
  3600. fi
  3601. fi
  3602. eval ac_res=\$$as_ac_File
  3603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  3604. $as_echo "$ac_res" >&6; }
  3605. eval as_val=\$$as_ac_File
  3606. if test "x$as_val" = x""yes; then :
  3607. propgrid_ok="yes"
  3608. else
  3609. propgrid_ok="no"
  3610. fi
  3611. fi
  3612. if test "x$propgrid_ok" = "xno"; then
  3613. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: wxpropgrid not found" >&5
  3614. $as_echo "$as_me: WARNING: wxpropgrid not found" >&2;}
  3615. else
  3616. { $as_echo "$as_me:${as_lineno-$LINENO}: wxpropgrid enabled" >&5
  3617. $as_echo "$as_me: wxpropgrid enabled" >&6;}
  3618. fi
  3619. else
  3620. propgrid_ok=no
  3621. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: wxpropgrid disabled" >&5
  3622. $as_echo "$as_me: WARNING: wxpropgrid disabled" >&2;}
  3623. fi
  3624. fi
  3625. # Check requirements and enable or disable nutdisc build.
  3626. if test "x$wxwidgets_ok" = "xyes"; then
  3627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nutdisc" >&5
  3628. $as_echo "$as_me: checking for nutdisc" >&6;}
  3629. if test "x$enable_nutdisc" = "xno"; then
  3630. { $as_echo "$as_me:${as_lineno-$LINENO}: nutdisc disabled" >&5
  3631. $as_echo "$as_me: nutdisc disabled" >&6;}
  3632. nutdisc_ok=no
  3633. else
  3634. if test "x$propgrid_ok" = "xno"; then
  3635. { $as_echo "$as_me:${as_lineno-$LINENO}: nutdisc requires propgrid" >&5
  3636. $as_echo "$as_me: nutdisc requires propgrid" >&6;}
  3637. nutdisc_ok=no
  3638. else
  3639. { $as_echo "$as_me:${as_lineno-$LINENO}: nutdisc enabled" >&5
  3640. $as_echo "$as_me: nutdisc enabled" >&6;}
  3641. nutdisc_ok=yes
  3642. fi
  3643. fi
  3644. fi
  3645. WX_CPPFLAGS="`$WXCONFIG --cppflags`"
  3646. WX_CXXFLAGS="`$WXCONFIG --cxxflags`"
  3647. WX_LIBS="`$WXCONFIG --libs`"
  3648. WX_PROPGRID="`$WXCONFIG --optional-libs propgrid`"
  3649. ac_ext=c
  3650. ac_cpp='$CPP $CPPFLAGS'
  3651. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3652. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3653. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3655. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3656. # On Suns, sometimes $CPP names a directory.
  3657. if test -n "$CPP" && test -d "$CPP"; then
  3658. CPP=
  3659. fi
  3660. if test -z "$CPP"; then
  3661. if test "${ac_cv_prog_CPP+set}" = set; then :
  3662. $as_echo_n "(cached) " >&6
  3663. else
  3664. # Double quotes because CPP needs to be expanded
  3665. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3666. do
  3667. ac_preproc_ok=false
  3668. for ac_c_preproc_warn_flag in '' yes
  3669. do
  3670. # Use a header file that comes with gcc, so configuring glibc
  3671. # with a fresh cross-compiler works.
  3672. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3673. # <limits.h> exists even on freestanding compilers.
  3674. # On the NeXT, cc -E runs the code through the compiler's parser,
  3675. # not just through cpp. "Syntax error" is here to catch this case.
  3676. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3677. /* end confdefs.h. */
  3678. #ifdef __STDC__
  3679. # include <limits.h>
  3680. #else
  3681. # include <assert.h>
  3682. #endif
  3683. Syntax error
  3684. _ACEOF
  3685. if ac_fn_c_try_cpp "$LINENO"; then :
  3686. else
  3687. # Broken: fails on valid input.
  3688. continue
  3689. fi
  3690. rm -f conftest.err conftest.$ac_ext
  3691. # OK, works on sane cases. Now check whether nonexistent headers
  3692. # can be detected and how.
  3693. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3694. /* end confdefs.h. */
  3695. #include <ac_nonexistent.h>
  3696. _ACEOF
  3697. if ac_fn_c_try_cpp "$LINENO"; then :
  3698. # Broken: success on invalid input.
  3699. continue
  3700. else
  3701. # Passes both tests.
  3702. ac_preproc_ok=:
  3703. break
  3704. fi
  3705. rm -f conftest.err conftest.$ac_ext
  3706. done
  3707. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3708. rm -f conftest.err conftest.$ac_ext
  3709. if $ac_preproc_ok; then :
  3710. break
  3711. fi
  3712. done
  3713. ac_cv_prog_CPP=$CPP
  3714. fi
  3715. CPP=$ac_cv_prog_CPP
  3716. else
  3717. ac_cv_prog_CPP=$CPP
  3718. fi
  3719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3720. $as_echo "$CPP" >&6; }
  3721. ac_preproc_ok=false
  3722. for ac_c_preproc_warn_flag in '' yes
  3723. do
  3724. # Use a header file that comes with gcc, so configuring glibc
  3725. # with a fresh cross-compiler works.
  3726. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3727. # <limits.h> exists even on freestanding compilers.
  3728. # On the NeXT, cc -E runs the code through the compiler's parser,
  3729. # not just through cpp. "Syntax error" is here to catch this case.
  3730. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3731. /* end confdefs.h. */
  3732. #ifdef __STDC__
  3733. # include <limits.h>
  3734. #else
  3735. # include <assert.h>
  3736. #endif
  3737. Syntax error
  3738. _ACEOF
  3739. if ac_fn_c_try_cpp "$LINENO"; then :
  3740. else
  3741. # Broken: fails on valid input.
  3742. continue
  3743. fi
  3744. rm -f conftest.err conftest.$ac_ext
  3745. # OK, works on sane cases. Now check whether nonexistent headers
  3746. # can be detected and how.
  3747. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3748. /* end confdefs.h. */
  3749. #include <ac_nonexistent.h>
  3750. _ACEOF
  3751. if ac_fn_c_try_cpp "$LINENO"; then :
  3752. # Broken: success on invalid input.
  3753. continue
  3754. else
  3755. # Passes both tests.
  3756. ac_preproc_ok=:
  3757. break
  3758. fi
  3759. rm -f conftest.err conftest.$ac_ext
  3760. done
  3761. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3762. rm -f conftest.err conftest.$ac_ext
  3763. if $ac_preproc_ok; then :
  3764. else
  3765. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3766. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3767. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  3768. See \`config.log' for more details." "$LINENO" 5; }
  3769. fi
  3770. ac_ext=c
  3771. ac_cpp='$CPP $CPPFLAGS'
  3772. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3773. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3774. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3775. ac_ext=cpp
  3776. ac_cpp='$CXXCPP $CPPFLAGS'
  3777. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3778. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3779. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3780. if test -z "$CXX"; then
  3781. if test -n "$CCC"; then
  3782. CXX=$CCC
  3783. else
  3784. if test -n "$ac_tool_prefix"; then
  3785. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3786. do
  3787. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3788. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3790. $as_echo_n "checking for $ac_word... " >&6; }
  3791. if test "${ac_cv_prog_CXX+set}" = set; then :
  3792. $as_echo_n "(cached) " >&6
  3793. else
  3794. if test -n "$CXX"; then
  3795. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3796. else
  3797. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3798. for as_dir in $PATH
  3799. do
  3800. IFS=$as_save_IFS
  3801. test -z "$as_dir" && as_dir=.
  3802. for ac_exec_ext in '' $ac_executable_extensions; do
  3803. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3804. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3805. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3806. break 2
  3807. fi
  3808. done
  3809. done
  3810. IFS=$as_save_IFS
  3811. fi
  3812. fi
  3813. CXX=$ac_cv_prog_CXX
  3814. if test -n "$CXX"; then
  3815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3816. $as_echo "$CXX" >&6; }
  3817. else
  3818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3819. $as_echo "no" >&6; }
  3820. fi
  3821. test -n "$CXX" && break
  3822. done
  3823. fi
  3824. if test -z "$CXX"; then
  3825. ac_ct_CXX=$CXX
  3826. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3827. do
  3828. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3829. set dummy $ac_prog; ac_word=$2
  3830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3831. $as_echo_n "checking for $ac_word... " >&6; }
  3832. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  3833. $as_echo_n "(cached) " >&6
  3834. else
  3835. if test -n "$ac_ct_CXX"; then
  3836. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3837. else
  3838. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3839. for as_dir in $PATH
  3840. do
  3841. IFS=$as_save_IFS
  3842. test -z "$as_dir" && as_dir=.
  3843. for ac_exec_ext in '' $ac_executable_extensions; do
  3844. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3845. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3846. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3847. break 2
  3848. fi
  3849. done
  3850. done
  3851. IFS=$as_save_IFS
  3852. fi
  3853. fi
  3854. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3855. if test -n "$ac_ct_CXX"; then
  3856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3857. $as_echo "$ac_ct_CXX" >&6; }
  3858. else
  3859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3860. $as_echo "no" >&6; }
  3861. fi
  3862. test -n "$ac_ct_CXX" && break
  3863. done
  3864. if test "x$ac_ct_CXX" = x; then
  3865. CXX="g++"
  3866. else
  3867. case $cross_compiling:$ac_tool_warned in
  3868. yes:)
  3869. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3870. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3871. ac_tool_warned=yes ;;
  3872. esac
  3873. CXX=$ac_ct_CXX
  3874. fi
  3875. fi
  3876. fi
  3877. fi
  3878. # Provide some information about the compiler.
  3879. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3880. set X $ac_compile
  3881. ac_compiler=$2
  3882. for ac_option in --version -v -V -qversion; do
  3883. { { ac_try="$ac_compiler $ac_option >&5"
  3884. case "(($ac_try" in
  3885. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3886. *) ac_try_echo=$ac_try;;
  3887. esac
  3888. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3889. $as_echo "$ac_try_echo"; } >&5
  3890. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3891. ac_status=$?
  3892. if test -s conftest.err; then
  3893. sed '10a\
  3894. ... rest of stderr output deleted ...
  3895. 10q' conftest.err >conftest.er1
  3896. cat conftest.er1 >&5
  3897. fi
  3898. rm -f conftest.er1 conftest.err
  3899. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3900. test $ac_status = 0; }
  3901. done
  3902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3903. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3904. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  3905. $as_echo_n "(cached) " >&6
  3906. else
  3907. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3908. /* end confdefs.h. */
  3909. int
  3910. main ()
  3911. {
  3912. #ifndef __GNUC__
  3913. choke me
  3914. #endif
  3915. ;
  3916. return 0;
  3917. }
  3918. _ACEOF
  3919. if ac_fn_cxx_try_compile "$LINENO"; then :
  3920. ac_compiler_gnu=yes
  3921. else
  3922. ac_compiler_gnu=no
  3923. fi
  3924. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3925. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3926. fi
  3927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3928. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3929. if test $ac_compiler_gnu = yes; then
  3930. GXX=yes
  3931. else
  3932. GXX=
  3933. fi
  3934. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3935. ac_save_CXXFLAGS=$CXXFLAGS
  3936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3937. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3938. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  3939. $as_echo_n "(cached) " >&6
  3940. else
  3941. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3942. ac_cxx_werror_flag=yes
  3943. ac_cv_prog_cxx_g=no
  3944. CXXFLAGS="-g"
  3945. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3946. /* end confdefs.h. */
  3947. int
  3948. main ()
  3949. {
  3950. ;
  3951. return 0;
  3952. }
  3953. _ACEOF
  3954. if ac_fn_cxx_try_compile "$LINENO"; then :
  3955. ac_cv_prog_cxx_g=yes
  3956. else
  3957. CXXFLAGS=""
  3958. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3959. /* end confdefs.h. */
  3960. int
  3961. main ()
  3962. {
  3963. ;
  3964. return 0;
  3965. }
  3966. _ACEOF
  3967. if ac_fn_cxx_try_compile "$LINENO"; then :
  3968. else
  3969. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3970. CXXFLAGS="-g"
  3971. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3972. /* end confdefs.h. */
  3973. int
  3974. main ()
  3975. {
  3976. ;
  3977. return 0;
  3978. }
  3979. _ACEOF
  3980. if ac_fn_cxx_try_compile "$LINENO"; then :
  3981. ac_cv_prog_cxx_g=yes
  3982. fi
  3983. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3984. fi
  3985. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3986. fi
  3987. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3988. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3989. fi
  3990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3991. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3992. if test "$ac_test_CXXFLAGS" = set; then
  3993. CXXFLAGS=$ac_save_CXXFLAGS
  3994. elif test $ac_cv_prog_cxx_g = yes; then
  3995. if test "$GXX" = yes; then
  3996. CXXFLAGS="-g -O2"
  3997. else
  3998. CXXFLAGS="-g"
  3999. fi
  4000. else
  4001. if test "$GXX" = yes; then
  4002. CXXFLAGS="-O2"
  4003. else
  4004. CXXFLAGS=
  4005. fi
  4006. fi
  4007. ac_ext=c
  4008. ac_cpp='$CPP $CPPFLAGS'
  4009. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4010. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4011. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4012. depcc="$CXX" am_compiler_list=
  4013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4014. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4015. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  4016. $as_echo_n "(cached) " >&6
  4017. else
  4018. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4019. # We make a subdir and do the tests there. Otherwise we can end up
  4020. # making bogus files that we don't know about and never remove. For
  4021. # instance it was reported that on HP-UX the gcc test will end up
  4022. # making a dummy file named `D' -- because `-MD' means `put the output
  4023. # in D'.
  4024. mkdir conftest.dir
  4025. # Copy depcomp to subdir because otherwise we won't find it if we're
  4026. # using a relative directory.
  4027. cp "$am_depcomp" conftest.dir
  4028. cd conftest.dir
  4029. # We will build objects and dependencies in a subdirectory because
  4030. # it helps to detect inapplicable dependency modes. For instance
  4031. # both Tru64's cc and ICC support -MD to output dependencies as a
  4032. # side effect of compilation, but ICC will put the dependencies in
  4033. # the current directory while Tru64 will put them in the object
  4034. # directory.
  4035. mkdir sub
  4036. am_cv_CXX_dependencies_compiler_type=none
  4037. if test "$am_compiler_list" = ""; then
  4038. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4039. fi
  4040. am__universal=false
  4041. case " $depcc " in #(
  4042. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4043. esac
  4044. for depmode in $am_compiler_list; do
  4045. # Setup a source with many dependencies, because some compilers
  4046. # like to wrap large dependency lists on column 80 (with \), and
  4047. # we should not choose a depcomp mode which is confused by this.
  4048. #
  4049. # We need to recreate these files for each test, as the compiler may
  4050. # overwrite some of them when testing with obscure command lines.
  4051. # This happens at least with the AIX C compiler.
  4052. : > sub/conftest.c
  4053. for i in 1 2 3 4 5 6; do
  4054. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4055. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4056. # Solaris 8's {/usr,}/bin/sh.
  4057. touch sub/conftst$i.h
  4058. done
  4059. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4060. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4061. # mode. It turns out that the SunPro C++ compiler does not properly
  4062. # handle `-M -o', and we need to detect this. Also, some Intel
  4063. # versions had trouble with output in subdirs
  4064. am__obj=sub/conftest.${OBJEXT-o}
  4065. am__minus_obj="-o $am__obj"
  4066. case $depmode in
  4067. gcc)
  4068. # This depmode causes a compiler race in universal mode.
  4069. test "$am__universal" = false || continue
  4070. ;;
  4071. nosideeffect)
  4072. # after this tag, mechanisms are not by side-effect, so they'll
  4073. # only be used when explicitly requested
  4074. if test "x$enable_dependency_tracking" = xyes; then
  4075. continue
  4076. else
  4077. break
  4078. fi
  4079. ;;
  4080. msvisualcpp | msvcmsys)
  4081. # This compiler won't grok `-c -o', but also, the minuso test has
  4082. # not run yet. These depmodes are late enough in the game, and
  4083. # so weak that their functioning should not be impacted.
  4084. am__obj=conftest.${OBJEXT-o}
  4085. am__minus_obj=
  4086. ;;
  4087. none) break ;;
  4088. esac
  4089. if depmode=$depmode \
  4090. source=sub/conftest.c object=$am__obj \
  4091. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4092. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4093. >/dev/null 2>conftest.err &&
  4094. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4095. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4096. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4097. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4098. # icc doesn't choke on unknown options, it will just issue warnings
  4099. # or remarks (even with -Werror). So we grep stderr for any message
  4100. # that says an option was ignored or not supported.
  4101. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4102. # icc: Command line warning: ignoring option '-M'; no argument required
  4103. # The diagnosis changed in icc 8.0:
  4104. # icc: Command line remark: option '-MP' not supported
  4105. if (grep 'ignoring option' conftest.err ||
  4106. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4107. am_cv_CXX_dependencies_compiler_type=$depmode
  4108. break
  4109. fi
  4110. fi
  4111. done
  4112. cd ..
  4113. rm -rf conftest.dir
  4114. else
  4115. am_cv_CXX_dependencies_compiler_type=none
  4116. fi
  4117. fi
  4118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  4119. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  4120. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  4121. if
  4122. test "x$enable_dependency_tracking" != xno \
  4123. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  4124. am__fastdepCXX_TRUE=
  4125. am__fastdepCXX_FALSE='#'
  4126. else
  4127. am__fastdepCXX_TRUE='#'
  4128. am__fastdepCXX_FALSE=
  4129. fi
  4130. case `pwd` in
  4131. *\ * | *\ *)
  4132. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4133. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4134. esac
  4135. macro_version='2.2.6b'
  4136. macro_revision='1.3017'
  4137. ltmain="$ac_aux_dir/ltmain.sh"
  4138. # Make sure we can run config.sub.
  4139. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4140. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  4141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  4142. $as_echo_n "checking build system type... " >&6; }
  4143. if test "${ac_cv_build+set}" = set; then :
  4144. $as_echo_n "(cached) " >&6
  4145. else
  4146. ac_build_alias=$build_alias
  4147. test "x$ac_build_alias" = x &&
  4148. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4149. test "x$ac_build_alias" = x &&
  4150. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  4151. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4152. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  4153. fi
  4154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  4155. $as_echo "$ac_cv_build" >&6; }
  4156. case $ac_cv_build in
  4157. *-*-*) ;;
  4158. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  4159. esac
  4160. build=$ac_cv_build
  4161. ac_save_IFS=$IFS; IFS='-'
  4162. set x $ac_cv_build
  4163. shift
  4164. build_cpu=$1
  4165. build_vendor=$2
  4166. shift; shift
  4167. # Remember, the first character of IFS is used to create $*,
  4168. # except with old shells:
  4169. build_os=$*
  4170. IFS=$ac_save_IFS
  4171. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  4173. $as_echo_n "checking host system type... " >&6; }
  4174. if test "${ac_cv_host+set}" = set; then :
  4175. $as_echo_n "(cached) " >&6
  4176. else
  4177. if test "x$host_alias" = x; then
  4178. ac_cv_host=$ac_cv_build
  4179. else
  4180. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4181. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  4182. fi
  4183. fi
  4184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  4185. $as_echo "$ac_cv_host" >&6; }
  4186. case $ac_cv_host in
  4187. *-*-*) ;;
  4188. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  4189. esac
  4190. host=$ac_cv_host
  4191. ac_save_IFS=$IFS; IFS='-'
  4192. set x $ac_cv_host
  4193. shift
  4194. host_cpu=$1
  4195. host_vendor=$2
  4196. shift; shift
  4197. # Remember, the first character of IFS is used to create $*,
  4198. # except with old shells:
  4199. host_os=$*
  4200. IFS=$ac_save_IFS
  4201. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4203. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4204. if test "${ac_cv_path_SED+set}" = set; then :
  4205. $as_echo_n "(cached) " >&6
  4206. else
  4207. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4208. for ac_i in 1 2 3 4 5 6 7; do
  4209. ac_script="$ac_script$as_nl$ac_script"
  4210. done
  4211. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4212. { ac_script=; unset ac_script;}
  4213. if test -z "$SED"; then
  4214. ac_path_SED_found=false
  4215. # Loop through the user's path and test for each of PROGNAME-LIST
  4216. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4217. for as_dir in $PATH
  4218. do
  4219. IFS=$as_save_IFS
  4220. test -z "$as_dir" && as_dir=.
  4221. for ac_prog in sed gsed; do
  4222. for ac_exec_ext in '' $ac_executable_extensions; do
  4223. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4224. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4225. # Check for GNU ac_path_SED and select it if it is found.
  4226. # Check for GNU $ac_path_SED
  4227. case `"$ac_path_SED" --version 2>&1` in
  4228. *GNU*)
  4229. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4230. *)
  4231. ac_count=0
  4232. $as_echo_n 0123456789 >"conftest.in"
  4233. while :
  4234. do
  4235. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4236. mv "conftest.tmp" "conftest.in"
  4237. cp "conftest.in" "conftest.nl"
  4238. $as_echo '' >> "conftest.nl"
  4239. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4240. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4241. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4242. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4243. # Best one so far, save it but keep looking for a better one
  4244. ac_cv_path_SED="$ac_path_SED"
  4245. ac_path_SED_max=$ac_count
  4246. fi
  4247. # 10*(2^10) chars as input seems more than enough
  4248. test $ac_count -gt 10 && break
  4249. done
  4250. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4251. esac
  4252. $ac_path_SED_found && break 3
  4253. done
  4254. done
  4255. done
  4256. IFS=$as_save_IFS
  4257. if test -z "$ac_cv_path_SED"; then
  4258. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4259. fi
  4260. else
  4261. ac_cv_path_SED=$SED
  4262. fi
  4263. fi
  4264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4265. $as_echo "$ac_cv_path_SED" >&6; }
  4266. SED="$ac_cv_path_SED"
  4267. rm -f conftest.sed
  4268. test -z "$SED" && SED=sed
  4269. Xsed="$SED -e 1s/^X//"
  4270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4271. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4272. if test "${ac_cv_path_GREP+set}" = set; then :
  4273. $as_echo_n "(cached) " >&6
  4274. else
  4275. if test -z "$GREP"; then
  4276. ac_path_GREP_found=false
  4277. # Loop through the user's path and test for each of PROGNAME-LIST
  4278. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4279. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4280. do
  4281. IFS=$as_save_IFS
  4282. test -z "$as_dir" && as_dir=.
  4283. for ac_prog in grep ggrep; do
  4284. for ac_exec_ext in '' $ac_executable_extensions; do
  4285. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4286. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4287. # Check for GNU ac_path_GREP and select it if it is found.
  4288. # Check for GNU $ac_path_GREP
  4289. case `"$ac_path_GREP" --version 2>&1` in
  4290. *GNU*)
  4291. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4292. *)
  4293. ac_count=0
  4294. $as_echo_n 0123456789 >"conftest.in"
  4295. while :
  4296. do
  4297. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4298. mv "conftest.tmp" "conftest.in"
  4299. cp "conftest.in" "conftest.nl"
  4300. $as_echo 'GREP' >> "conftest.nl"
  4301. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4302. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4303. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4304. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4305. # Best one so far, save it but keep looking for a better one
  4306. ac_cv_path_GREP="$ac_path_GREP"
  4307. ac_path_GREP_max=$ac_count
  4308. fi
  4309. # 10*(2^10) chars as input seems more than enough
  4310. test $ac_count -gt 10 && break
  4311. done
  4312. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4313. esac
  4314. $ac_path_GREP_found && break 3
  4315. done
  4316. done
  4317. done
  4318. IFS=$as_save_IFS
  4319. if test -z "$ac_cv_path_GREP"; then
  4320. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4321. fi
  4322. else
  4323. ac_cv_path_GREP=$GREP
  4324. fi
  4325. fi
  4326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4327. $as_echo "$ac_cv_path_GREP" >&6; }
  4328. GREP="$ac_cv_path_GREP"
  4329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4330. $as_echo_n "checking for egrep... " >&6; }
  4331. if test "${ac_cv_path_EGREP+set}" = set; then :
  4332. $as_echo_n "(cached) " >&6
  4333. else
  4334. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4335. then ac_cv_path_EGREP="$GREP -E"
  4336. else
  4337. if test -z "$EGREP"; then
  4338. ac_path_EGREP_found=false
  4339. # Loop through the user's path and test for each of PROGNAME-LIST
  4340. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4341. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4342. do
  4343. IFS=$as_save_IFS
  4344. test -z "$as_dir" && as_dir=.
  4345. for ac_prog in egrep; do
  4346. for ac_exec_ext in '' $ac_executable_extensions; do
  4347. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4348. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4349. # Check for GNU ac_path_EGREP and select it if it is found.
  4350. # Check for GNU $ac_path_EGREP
  4351. case `"$ac_path_EGREP" --version 2>&1` in
  4352. *GNU*)
  4353. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4354. *)
  4355. ac_count=0
  4356. $as_echo_n 0123456789 >"conftest.in"
  4357. while :
  4358. do
  4359. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4360. mv "conftest.tmp" "conftest.in"
  4361. cp "conftest.in" "conftest.nl"
  4362. $as_echo 'EGREP' >> "conftest.nl"
  4363. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4364. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4365. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4366. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4367. # Best one so far, save it but keep looking for a better one
  4368. ac_cv_path_EGREP="$ac_path_EGREP"
  4369. ac_path_EGREP_max=$ac_count
  4370. fi
  4371. # 10*(2^10) chars as input seems more than enough
  4372. test $ac_count -gt 10 && break
  4373. done
  4374. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4375. esac
  4376. $ac_path_EGREP_found && break 3
  4377. done
  4378. done
  4379. done
  4380. IFS=$as_save_IFS
  4381. if test -z "$ac_cv_path_EGREP"; then
  4382. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4383. fi
  4384. else
  4385. ac_cv_path_EGREP=$EGREP
  4386. fi
  4387. fi
  4388. fi
  4389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4390. $as_echo "$ac_cv_path_EGREP" >&6; }
  4391. EGREP="$ac_cv_path_EGREP"
  4392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4393. $as_echo_n "checking for fgrep... " >&6; }
  4394. if test "${ac_cv_path_FGREP+set}" = set; then :
  4395. $as_echo_n "(cached) " >&6
  4396. else
  4397. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4398. then ac_cv_path_FGREP="$GREP -F"
  4399. else
  4400. if test -z "$FGREP"; then
  4401. ac_path_FGREP_found=false
  4402. # Loop through the user's path and test for each of PROGNAME-LIST
  4403. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4404. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4405. do
  4406. IFS=$as_save_IFS
  4407. test -z "$as_dir" && as_dir=.
  4408. for ac_prog in fgrep; do
  4409. for ac_exec_ext in '' $ac_executable_extensions; do
  4410. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4411. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4412. # Check for GNU ac_path_FGREP and select it if it is found.
  4413. # Check for GNU $ac_path_FGREP
  4414. case `"$ac_path_FGREP" --version 2>&1` in
  4415. *GNU*)
  4416. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4417. *)
  4418. ac_count=0
  4419. $as_echo_n 0123456789 >"conftest.in"
  4420. while :
  4421. do
  4422. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4423. mv "conftest.tmp" "conftest.in"
  4424. cp "conftest.in" "conftest.nl"
  4425. $as_echo 'FGREP' >> "conftest.nl"
  4426. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4427. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4428. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4429. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4430. # Best one so far, save it but keep looking for a better one
  4431. ac_cv_path_FGREP="$ac_path_FGREP"
  4432. ac_path_FGREP_max=$ac_count
  4433. fi
  4434. # 10*(2^10) chars as input seems more than enough
  4435. test $ac_count -gt 10 && break
  4436. done
  4437. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4438. esac
  4439. $ac_path_FGREP_found && break 3
  4440. done
  4441. done
  4442. done
  4443. IFS=$as_save_IFS
  4444. if test -z "$ac_cv_path_FGREP"; then
  4445. as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4446. fi
  4447. else
  4448. ac_cv_path_FGREP=$FGREP
  4449. fi
  4450. fi
  4451. fi
  4452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4453. $as_echo "$ac_cv_path_FGREP" >&6; }
  4454. FGREP="$ac_cv_path_FGREP"
  4455. test -z "$GREP" && GREP=grep
  4456. # Check whether --with-gnu-ld was given.
  4457. if test "${with_gnu_ld+set}" = set; then :
  4458. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4459. else
  4460. with_gnu_ld=no
  4461. fi
  4462. ac_prog=ld
  4463. if test "$GCC" = yes; then
  4464. # Check if gcc -print-prog-name=ld gives a path.
  4465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4466. $as_echo_n "checking for ld used by $CC... " >&6; }
  4467. case $host in
  4468. *-*-mingw*)
  4469. # gcc leaves a trailing carriage return which upsets mingw
  4470. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4471. *)
  4472. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4473. esac
  4474. case $ac_prog in
  4475. # Accept absolute paths.
  4476. [\\/]* | ?:[\\/]*)
  4477. re_direlt='/[^/][^/]*/\.\./'
  4478. # Canonicalize the pathname of ld
  4479. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4480. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4481. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4482. done
  4483. test -z "$LD" && LD="$ac_prog"
  4484. ;;
  4485. "")
  4486. # If it fails, then pretend we aren't using GCC.
  4487. ac_prog=ld
  4488. ;;
  4489. *)
  4490. # If it is relative, then search for the first ld in PATH.
  4491. with_gnu_ld=unknown
  4492. ;;
  4493. esac
  4494. elif test "$with_gnu_ld" = yes; then
  4495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4496. $as_echo_n "checking for GNU ld... " >&6; }
  4497. else
  4498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4499. $as_echo_n "checking for non-GNU ld... " >&6; }
  4500. fi
  4501. if test "${lt_cv_path_LD+set}" = set; then :
  4502. $as_echo_n "(cached) " >&6
  4503. else
  4504. if test -z "$LD"; then
  4505. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4506. for ac_dir in $PATH; do
  4507. IFS="$lt_save_ifs"
  4508. test -z "$ac_dir" && ac_dir=.
  4509. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4510. lt_cv_path_LD="$ac_dir/$ac_prog"
  4511. # Check to see if the program is GNU ld. I'd rather use --version,
  4512. # but apparently some variants of GNU ld only accept -v.
  4513. # Break only if it was the GNU/non-GNU ld that we prefer.
  4514. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4515. *GNU* | *'with BFD'*)
  4516. test "$with_gnu_ld" != no && break
  4517. ;;
  4518. *)
  4519. test "$with_gnu_ld" != yes && break
  4520. ;;
  4521. esac
  4522. fi
  4523. done
  4524. IFS="$lt_save_ifs"
  4525. else
  4526. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4527. fi
  4528. fi
  4529. LD="$lt_cv_path_LD"
  4530. if test -n "$LD"; then
  4531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4532. $as_echo "$LD" >&6; }
  4533. else
  4534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4535. $as_echo "no" >&6; }
  4536. fi
  4537. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  4538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4539. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4540. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  4541. $as_echo_n "(cached) " >&6
  4542. else
  4543. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4544. case `$LD -v 2>&1 </dev/null` in
  4545. *GNU* | *'with BFD'*)
  4546. lt_cv_prog_gnu_ld=yes
  4547. ;;
  4548. *)
  4549. lt_cv_prog_gnu_ld=no
  4550. ;;
  4551. esac
  4552. fi
  4553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4554. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4555. with_gnu_ld=$lt_cv_prog_gnu_ld
  4556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4557. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4558. if test "${lt_cv_path_NM+set}" = set; then :
  4559. $as_echo_n "(cached) " >&6
  4560. else
  4561. if test -n "$NM"; then
  4562. # Let the user override the test.
  4563. lt_cv_path_NM="$NM"
  4564. else
  4565. lt_nm_to_check="${ac_tool_prefix}nm"
  4566. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4567. lt_nm_to_check="$lt_nm_to_check nm"
  4568. fi
  4569. for lt_tmp_nm in $lt_nm_to_check; do
  4570. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4571. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4572. IFS="$lt_save_ifs"
  4573. test -z "$ac_dir" && ac_dir=.
  4574. tmp_nm="$ac_dir/$lt_tmp_nm"
  4575. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4576. # Check to see if the nm accepts a BSD-compat flag.
  4577. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4578. # nm: unknown option "B" ignored
  4579. # Tru64's nm complains that /dev/null is an invalid object file
  4580. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4581. */dev/null* | *'Invalid file or object type'*)
  4582. lt_cv_path_NM="$tmp_nm -B"
  4583. break
  4584. ;;
  4585. *)
  4586. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4587. */dev/null*)
  4588. lt_cv_path_NM="$tmp_nm -p"
  4589. break
  4590. ;;
  4591. *)
  4592. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4593. continue # so that we can try to find one that supports BSD flags
  4594. ;;
  4595. esac
  4596. ;;
  4597. esac
  4598. fi
  4599. done
  4600. IFS="$lt_save_ifs"
  4601. done
  4602. : ${lt_cv_path_NM=no}
  4603. fi
  4604. fi
  4605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4606. $as_echo "$lt_cv_path_NM" >&6; }
  4607. if test "$lt_cv_path_NM" != "no"; then
  4608. NM="$lt_cv_path_NM"
  4609. else
  4610. # Didn't find any BSD compatible name lister, look for dumpbin.
  4611. if test -n "$ac_tool_prefix"; then
  4612. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4613. do
  4614. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4615. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4617. $as_echo_n "checking for $ac_word... " >&6; }
  4618. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  4619. $as_echo_n "(cached) " >&6
  4620. else
  4621. if test -n "$DUMPBIN"; then
  4622. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4623. else
  4624. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4625. for as_dir in $PATH
  4626. do
  4627. IFS=$as_save_IFS
  4628. test -z "$as_dir" && as_dir=.
  4629. for ac_exec_ext in '' $ac_executable_extensions; do
  4630. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4631. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4632. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4633. break 2
  4634. fi
  4635. done
  4636. done
  4637. IFS=$as_save_IFS
  4638. fi
  4639. fi
  4640. DUMPBIN=$ac_cv_prog_DUMPBIN
  4641. if test -n "$DUMPBIN"; then
  4642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4643. $as_echo "$DUMPBIN" >&6; }
  4644. else
  4645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4646. $as_echo "no" >&6; }
  4647. fi
  4648. test -n "$DUMPBIN" && break
  4649. done
  4650. fi
  4651. if test -z "$DUMPBIN"; then
  4652. ac_ct_DUMPBIN=$DUMPBIN
  4653. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4654. do
  4655. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4656. set dummy $ac_prog; ac_word=$2
  4657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4658. $as_echo_n "checking for $ac_word... " >&6; }
  4659. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  4660. $as_echo_n "(cached) " >&6
  4661. else
  4662. if test -n "$ac_ct_DUMPBIN"; then
  4663. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4664. else
  4665. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4666. for as_dir in $PATH
  4667. do
  4668. IFS=$as_save_IFS
  4669. test -z "$as_dir" && as_dir=.
  4670. for ac_exec_ext in '' $ac_executable_extensions; do
  4671. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4672. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4673. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4674. break 2
  4675. fi
  4676. done
  4677. done
  4678. IFS=$as_save_IFS
  4679. fi
  4680. fi
  4681. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4682. if test -n "$ac_ct_DUMPBIN"; then
  4683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4684. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4685. else
  4686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4687. $as_echo "no" >&6; }
  4688. fi
  4689. test -n "$ac_ct_DUMPBIN" && break
  4690. done
  4691. if test "x$ac_ct_DUMPBIN" = x; then
  4692. DUMPBIN=":"
  4693. else
  4694. case $cross_compiling:$ac_tool_warned in
  4695. yes:)
  4696. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4697. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4698. ac_tool_warned=yes ;;
  4699. esac
  4700. DUMPBIN=$ac_ct_DUMPBIN
  4701. fi
  4702. fi
  4703. if test "$DUMPBIN" != ":"; then
  4704. NM="$DUMPBIN"
  4705. fi
  4706. fi
  4707. test -z "$NM" && NM=nm
  4708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4709. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4710. if test "${lt_cv_nm_interface+set}" = set; then :
  4711. $as_echo_n "(cached) " >&6
  4712. else
  4713. lt_cv_nm_interface="BSD nm"
  4714. echo "int some_variable = 0;" > conftest.$ac_ext
  4715. (eval echo "\"\$as_me:5241: $ac_compile\"" >&5)
  4716. (eval "$ac_compile" 2>conftest.err)
  4717. cat conftest.err >&5
  4718. (eval echo "\"\$as_me:5244: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4719. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4720. cat conftest.err >&5
  4721. (eval echo "\"\$as_me:5247: output\"" >&5)
  4722. cat conftest.out >&5
  4723. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4724. lt_cv_nm_interface="MS dumpbin"
  4725. fi
  4726. rm -f conftest*
  4727. fi
  4728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4729. $as_echo "$lt_cv_nm_interface" >&6; }
  4730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4731. $as_echo_n "checking whether ln -s works... " >&6; }
  4732. LN_S=$as_ln_s
  4733. if test "$LN_S" = "ln -s"; then
  4734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4735. $as_echo "yes" >&6; }
  4736. else
  4737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4738. $as_echo "no, using $LN_S" >&6; }
  4739. fi
  4740. # find the maximum length of command line arguments
  4741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4742. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4743. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  4744. $as_echo_n "(cached) " >&6
  4745. else
  4746. i=0
  4747. teststring="ABCD"
  4748. case $build_os in
  4749. msdosdjgpp*)
  4750. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4751. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4752. # during glob expansion). Even if it were fixed, the result of this
  4753. # check would be larger than it should be.
  4754. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4755. ;;
  4756. gnu*)
  4757. # Under GNU Hurd, this test is not required because there is
  4758. # no limit to the length of command line arguments.
  4759. # Libtool will interpret -1 as no limit whatsoever
  4760. lt_cv_sys_max_cmd_len=-1;
  4761. ;;
  4762. cygwin* | mingw* | cegcc*)
  4763. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4764. # about 5 minutes as the teststring grows exponentially.
  4765. # Worse, since 9x/ME are not pre-emptively multitasking,
  4766. # you end up with a "frozen" computer, even though with patience
  4767. # the test eventually succeeds (with a max line length of 256k).
  4768. # Instead, let's just punt: use the minimum linelength reported by
  4769. # all of the supported platforms: 8192 (on NT/2K/XP).
  4770. lt_cv_sys_max_cmd_len=8192;
  4771. ;;
  4772. amigaos*)
  4773. # On AmigaOS with pdksh, this test takes hours, literally.
  4774. # So we just punt and use a minimum line length of 8192.
  4775. lt_cv_sys_max_cmd_len=8192;
  4776. ;;
  4777. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4778. # This has been around since 386BSD, at least. Likely further.
  4779. if test -x /sbin/sysctl; then
  4780. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4781. elif test -x /usr/sbin/sysctl; then
  4782. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4783. else
  4784. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4785. fi
  4786. # And add a safety zone
  4787. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4788. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4789. ;;
  4790. interix*)
  4791. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4792. lt_cv_sys_max_cmd_len=196608
  4793. ;;
  4794. osf*)
  4795. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4796. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4797. # nice to cause kernel panics so lets avoid the loop below.
  4798. # First set a reasonable default.
  4799. lt_cv_sys_max_cmd_len=16384
  4800. #
  4801. if test -x /sbin/sysconfig; then
  4802. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4803. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4804. esac
  4805. fi
  4806. ;;
  4807. sco3.2v5*)
  4808. lt_cv_sys_max_cmd_len=102400
  4809. ;;
  4810. sysv5* | sco5v6* | sysv4.2uw2*)
  4811. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4812. if test -n "$kargmax"; then
  4813. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4814. else
  4815. lt_cv_sys_max_cmd_len=32768
  4816. fi
  4817. ;;
  4818. *)
  4819. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4820. if test -n "$lt_cv_sys_max_cmd_len"; then
  4821. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4822. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4823. else
  4824. # Make teststring a little bigger before we do anything with it.
  4825. # a 1K string should be a reasonable start.
  4826. for i in 1 2 3 4 5 6 7 8 ; do
  4827. teststring=$teststring$teststring
  4828. done
  4829. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4830. # If test is not a shell built-in, we'll probably end up computing a
  4831. # maximum length that is only half of the actual maximum length, but
  4832. # we can't tell.
  4833. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  4834. = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  4835. test $i != 17 # 1/2 MB should be enough
  4836. do
  4837. i=`expr $i + 1`
  4838. teststring=$teststring$teststring
  4839. done
  4840. # Only check the string length outside the loop.
  4841. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4842. teststring=
  4843. # Add a significant safety factor because C++ compilers can tack on
  4844. # massive amounts of additional arguments before passing them to the
  4845. # linker. It appears as though 1/2 is a usable value.
  4846. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4847. fi
  4848. ;;
  4849. esac
  4850. fi
  4851. if test -n $lt_cv_sys_max_cmd_len ; then
  4852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4853. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4854. else
  4855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4856. $as_echo "none" >&6; }
  4857. fi
  4858. max_cmd_len=$lt_cv_sys_max_cmd_len
  4859. : ${CP="cp -f"}
  4860. : ${MV="mv -f"}
  4861. : ${RM="rm -f"}
  4862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4863. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4864. # Try some XSI features
  4865. xsi_shell=no
  4866. ( _lt_dummy="a/b/c"
  4867. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  4868. = c,a/b,, \
  4869. && eval 'test $(( 1 + 1 )) -eq 2 \
  4870. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4871. && xsi_shell=yes
  4872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4873. $as_echo "$xsi_shell" >&6; }
  4874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4875. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4876. lt_shell_append=no
  4877. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4878. >/dev/null 2>&1 \
  4879. && lt_shell_append=yes
  4880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4881. $as_echo "$lt_shell_append" >&6; }
  4882. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4883. lt_unset=unset
  4884. else
  4885. lt_unset=false
  4886. fi
  4887. # test EBCDIC or ASCII
  4888. case `echo X|tr X '\101'` in
  4889. A) # ASCII based system
  4890. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4891. lt_SP2NL='tr \040 \012'
  4892. lt_NL2SP='tr \015\012 \040\040'
  4893. ;;
  4894. *) # EBCDIC based system
  4895. lt_SP2NL='tr \100 \n'
  4896. lt_NL2SP='tr \r\n \100\100'
  4897. ;;
  4898. esac
  4899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4900. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4901. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  4902. $as_echo_n "(cached) " >&6
  4903. else
  4904. lt_cv_ld_reload_flag='-r'
  4905. fi
  4906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4907. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4908. reload_flag=$lt_cv_ld_reload_flag
  4909. case $reload_flag in
  4910. "" | " "*) ;;
  4911. *) reload_flag=" $reload_flag" ;;
  4912. esac
  4913. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4914. case $host_os in
  4915. darwin*)
  4916. if test "$GCC" = yes; then
  4917. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4918. else
  4919. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4920. fi
  4921. ;;
  4922. esac
  4923. if test -n "$ac_tool_prefix"; then
  4924. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4925. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4927. $as_echo_n "checking for $ac_word... " >&6; }
  4928. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  4929. $as_echo_n "(cached) " >&6
  4930. else
  4931. if test -n "$OBJDUMP"; then
  4932. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4933. else
  4934. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4935. for as_dir in $PATH
  4936. do
  4937. IFS=$as_save_IFS
  4938. test -z "$as_dir" && as_dir=.
  4939. for ac_exec_ext in '' $ac_executable_extensions; do
  4940. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4941. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4942. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4943. break 2
  4944. fi
  4945. done
  4946. done
  4947. IFS=$as_save_IFS
  4948. fi
  4949. fi
  4950. OBJDUMP=$ac_cv_prog_OBJDUMP
  4951. if test -n "$OBJDUMP"; then
  4952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4953. $as_echo "$OBJDUMP" >&6; }
  4954. else
  4955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4956. $as_echo "no" >&6; }
  4957. fi
  4958. fi
  4959. if test -z "$ac_cv_prog_OBJDUMP"; then
  4960. ac_ct_OBJDUMP=$OBJDUMP
  4961. # Extract the first word of "objdump", so it can be a program name with args.
  4962. set dummy objdump; ac_word=$2
  4963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4964. $as_echo_n "checking for $ac_word... " >&6; }
  4965. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  4966. $as_echo_n "(cached) " >&6
  4967. else
  4968. if test -n "$ac_ct_OBJDUMP"; then
  4969. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4970. else
  4971. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4972. for as_dir in $PATH
  4973. do
  4974. IFS=$as_save_IFS
  4975. test -z "$as_dir" && as_dir=.
  4976. for ac_exec_ext in '' $ac_executable_extensions; do
  4977. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4978. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4979. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4980. break 2
  4981. fi
  4982. done
  4983. done
  4984. IFS=$as_save_IFS
  4985. fi
  4986. fi
  4987. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4988. if test -n "$ac_ct_OBJDUMP"; then
  4989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4990. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4991. else
  4992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4993. $as_echo "no" >&6; }
  4994. fi
  4995. if test "x$ac_ct_OBJDUMP" = x; then
  4996. OBJDUMP="false"
  4997. else
  4998. case $cross_compiling:$ac_tool_warned in
  4999. yes:)
  5000. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5001. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5002. ac_tool_warned=yes ;;
  5003. esac
  5004. OBJDUMP=$ac_ct_OBJDUMP
  5005. fi
  5006. else
  5007. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5008. fi
  5009. test -z "$OBJDUMP" && OBJDUMP=objdump
  5010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5011. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5012. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  5013. $as_echo_n "(cached) " >&6
  5014. else
  5015. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5016. lt_cv_file_magic_test_file=
  5017. lt_cv_deplibs_check_method='unknown'
  5018. # Need to set the preceding variable on all platforms that support
  5019. # interlibrary dependencies.
  5020. # 'none' -- dependencies not supported.
  5021. # `unknown' -- same as none, but documents that we really don't know.
  5022. # 'pass_all' -- all dependencies passed with no checks.
  5023. # 'test_compile' -- check by making test program.
  5024. # 'file_magic [[regex]]' -- check by looking for files in library path
  5025. # which responds to the $file_magic_cmd with a given extended regex.
  5026. # If you have `file' or equivalent on your system and you're not sure
  5027. # whether `pass_all' will *always* work, you probably want this one.
  5028. case $host_os in
  5029. aix[4-9]*)
  5030. lt_cv_deplibs_check_method=pass_all
  5031. ;;
  5032. beos*)
  5033. lt_cv_deplibs_check_method=pass_all
  5034. ;;
  5035. bsdi[45]*)
  5036. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5037. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5038. lt_cv_file_magic_test_file=/shlib/libc.so
  5039. ;;
  5040. cygwin*)
  5041. # func_win32_libid is a shell function defined in ltmain.sh
  5042. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5043. lt_cv_file_magic_cmd='func_win32_libid'
  5044. ;;
  5045. mingw* | pw32*)
  5046. # Base MSYS/MinGW do not provide the 'file' command needed by
  5047. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5048. # unless we find 'file', for example because we are cross-compiling.
  5049. if ( file / ) >/dev/null 2>&1; then
  5050. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5051. lt_cv_file_magic_cmd='func_win32_libid'
  5052. else
  5053. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5054. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5055. fi
  5056. ;;
  5057. cegcc)
  5058. # use the weaker test based on 'objdump'. See mingw*.
  5059. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5060. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5061. ;;
  5062. darwin* | rhapsody*)
  5063. lt_cv_deplibs_check_method=pass_all
  5064. ;;
  5065. freebsd* | dragonfly*)
  5066. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5067. case $host_cpu in
  5068. i*86 )
  5069. # Not sure whether the presence of OpenBSD here was a mistake.
  5070. # Let's accept both of them until this is cleared up.
  5071. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5072. lt_cv_file_magic_cmd=/usr/bin/file
  5073. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5074. ;;
  5075. esac
  5076. else
  5077. lt_cv_deplibs_check_method=pass_all
  5078. fi
  5079. ;;
  5080. gnu*)
  5081. lt_cv_deplibs_check_method=pass_all
  5082. ;;
  5083. hpux10.20* | hpux11*)
  5084. lt_cv_file_magic_cmd=/usr/bin/file
  5085. case $host_cpu in
  5086. ia64*)
  5087. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5088. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5089. ;;
  5090. hppa*64*)
  5091. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
  5092. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5093. ;;
  5094. *)
  5095. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  5096. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5097. ;;
  5098. esac
  5099. ;;
  5100. interix[3-9]*)
  5101. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5102. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5103. ;;
  5104. irix5* | irix6* | nonstopux*)
  5105. case $LD in
  5106. *-32|*"-32 ") libmagic=32-bit;;
  5107. *-n32|*"-n32 ") libmagic=N32;;
  5108. *-64|*"-64 ") libmagic=64-bit;;
  5109. *) libmagic=never-match;;
  5110. esac
  5111. lt_cv_deplibs_check_method=pass_all
  5112. ;;
  5113. # This must be Linux ELF.
  5114. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5115. lt_cv_deplibs_check_method=pass_all
  5116. ;;
  5117. netbsd* | netbsdelf*-gnu)
  5118. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5119. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5120. else
  5121. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5122. fi
  5123. ;;
  5124. newos6*)
  5125. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5126. lt_cv_file_magic_cmd=/usr/bin/file
  5127. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5128. ;;
  5129. *nto* | *qnx*)
  5130. lt_cv_deplibs_check_method=pass_all
  5131. ;;
  5132. openbsd*)
  5133. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5134. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5135. else
  5136. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5137. fi
  5138. ;;
  5139. osf3* | osf4* | osf5*)
  5140. lt_cv_deplibs_check_method=pass_all
  5141. ;;
  5142. rdos*)
  5143. lt_cv_deplibs_check_method=pass_all
  5144. ;;
  5145. solaris*)
  5146. lt_cv_deplibs_check_method=pass_all
  5147. ;;
  5148. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5149. lt_cv_deplibs_check_method=pass_all
  5150. ;;
  5151. sysv4 | sysv4.3*)
  5152. case $host_vendor in
  5153. motorola)
  5154. 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]'
  5155. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5156. ;;
  5157. ncr)
  5158. lt_cv_deplibs_check_method=pass_all
  5159. ;;
  5160. sequent)
  5161. lt_cv_file_magic_cmd='/bin/file'
  5162. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5163. ;;
  5164. sni)
  5165. lt_cv_file_magic_cmd='/bin/file'
  5166. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5167. lt_cv_file_magic_test_file=/lib/libc.so
  5168. ;;
  5169. siemens)
  5170. lt_cv_deplibs_check_method=pass_all
  5171. ;;
  5172. pc)
  5173. lt_cv_deplibs_check_method=pass_all
  5174. ;;
  5175. esac
  5176. ;;
  5177. tpf*)
  5178. lt_cv_deplibs_check_method=pass_all
  5179. ;;
  5180. esac
  5181. fi
  5182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5183. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5184. file_magic_cmd=$lt_cv_file_magic_cmd
  5185. deplibs_check_method=$lt_cv_deplibs_check_method
  5186. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5187. if test -n "$ac_tool_prefix"; then
  5188. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5189. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5191. $as_echo_n "checking for $ac_word... " >&6; }
  5192. if test "${ac_cv_prog_AR+set}" = set; then :
  5193. $as_echo_n "(cached) " >&6
  5194. else
  5195. if test -n "$AR"; then
  5196. ac_cv_prog_AR="$AR" # Let the user override the test.
  5197. else
  5198. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5199. for as_dir in $PATH
  5200. do
  5201. IFS=$as_save_IFS
  5202. test -z "$as_dir" && as_dir=.
  5203. for ac_exec_ext in '' $ac_executable_extensions; do
  5204. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5205. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5206. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5207. break 2
  5208. fi
  5209. done
  5210. done
  5211. IFS=$as_save_IFS
  5212. fi
  5213. fi
  5214. AR=$ac_cv_prog_AR
  5215. if test -n "$AR"; then
  5216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5217. $as_echo "$AR" >&6; }
  5218. else
  5219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5220. $as_echo "no" >&6; }
  5221. fi
  5222. fi
  5223. if test -z "$ac_cv_prog_AR"; then
  5224. ac_ct_AR=$AR
  5225. # Extract the first word of "ar", so it can be a program name with args.
  5226. set dummy ar; ac_word=$2
  5227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5228. $as_echo_n "checking for $ac_word... " >&6; }
  5229. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  5230. $as_echo_n "(cached) " >&6
  5231. else
  5232. if test -n "$ac_ct_AR"; then
  5233. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5234. else
  5235. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5236. for as_dir in $PATH
  5237. do
  5238. IFS=$as_save_IFS
  5239. test -z "$as_dir" && as_dir=.
  5240. for ac_exec_ext in '' $ac_executable_extensions; do
  5241. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5242. ac_cv_prog_ac_ct_AR="ar"
  5243. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5244. break 2
  5245. fi
  5246. done
  5247. done
  5248. IFS=$as_save_IFS
  5249. fi
  5250. fi
  5251. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5252. if test -n "$ac_ct_AR"; then
  5253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5254. $as_echo "$ac_ct_AR" >&6; }
  5255. else
  5256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5257. $as_echo "no" >&6; }
  5258. fi
  5259. if test "x$ac_ct_AR" = x; then
  5260. AR="false"
  5261. else
  5262. case $cross_compiling:$ac_tool_warned in
  5263. yes:)
  5264. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5265. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5266. ac_tool_warned=yes ;;
  5267. esac
  5268. AR=$ac_ct_AR
  5269. fi
  5270. else
  5271. AR="$ac_cv_prog_AR"
  5272. fi
  5273. test -z "$AR" && AR=ar
  5274. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5275. if test -n "$ac_tool_prefix"; then
  5276. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5277. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5279. $as_echo_n "checking for $ac_word... " >&6; }
  5280. if test "${ac_cv_prog_STRIP+set}" = set; then :
  5281. $as_echo_n "(cached) " >&6
  5282. else
  5283. if test -n "$STRIP"; then
  5284. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5285. else
  5286. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5287. for as_dir in $PATH
  5288. do
  5289. IFS=$as_save_IFS
  5290. test -z "$as_dir" && as_dir=.
  5291. for ac_exec_ext in '' $ac_executable_extensions; do
  5292. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5293. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5294. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5295. break 2
  5296. fi
  5297. done
  5298. done
  5299. IFS=$as_save_IFS
  5300. fi
  5301. fi
  5302. STRIP=$ac_cv_prog_STRIP
  5303. if test -n "$STRIP"; then
  5304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5305. $as_echo "$STRIP" >&6; }
  5306. else
  5307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5308. $as_echo "no" >&6; }
  5309. fi
  5310. fi
  5311. if test -z "$ac_cv_prog_STRIP"; then
  5312. ac_ct_STRIP=$STRIP
  5313. # Extract the first word of "strip", so it can be a program name with args.
  5314. set dummy strip; ac_word=$2
  5315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5316. $as_echo_n "checking for $ac_word... " >&6; }
  5317. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  5318. $as_echo_n "(cached) " >&6
  5319. else
  5320. if test -n "$ac_ct_STRIP"; then
  5321. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5322. else
  5323. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5324. for as_dir in $PATH
  5325. do
  5326. IFS=$as_save_IFS
  5327. test -z "$as_dir" && as_dir=.
  5328. for ac_exec_ext in '' $ac_executable_extensions; do
  5329. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5330. ac_cv_prog_ac_ct_STRIP="strip"
  5331. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5332. break 2
  5333. fi
  5334. done
  5335. done
  5336. IFS=$as_save_IFS
  5337. fi
  5338. fi
  5339. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5340. if test -n "$ac_ct_STRIP"; then
  5341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5342. $as_echo "$ac_ct_STRIP" >&6; }
  5343. else
  5344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5345. $as_echo "no" >&6; }
  5346. fi
  5347. if test "x$ac_ct_STRIP" = x; then
  5348. STRIP=":"
  5349. else
  5350. case $cross_compiling:$ac_tool_warned in
  5351. yes:)
  5352. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5353. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5354. ac_tool_warned=yes ;;
  5355. esac
  5356. STRIP=$ac_ct_STRIP
  5357. fi
  5358. else
  5359. STRIP="$ac_cv_prog_STRIP"
  5360. fi
  5361. test -z "$STRIP" && STRIP=:
  5362. if test -n "$ac_tool_prefix"; then
  5363. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5364. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5366. $as_echo_n "checking for $ac_word... " >&6; }
  5367. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  5368. $as_echo_n "(cached) " >&6
  5369. else
  5370. if test -n "$RANLIB"; then
  5371. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5372. else
  5373. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5374. for as_dir in $PATH
  5375. do
  5376. IFS=$as_save_IFS
  5377. test -z "$as_dir" && as_dir=.
  5378. for ac_exec_ext in '' $ac_executable_extensions; do
  5379. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5380. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5381. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5382. break 2
  5383. fi
  5384. done
  5385. done
  5386. IFS=$as_save_IFS
  5387. fi
  5388. fi
  5389. RANLIB=$ac_cv_prog_RANLIB
  5390. if test -n "$RANLIB"; then
  5391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5392. $as_echo "$RANLIB" >&6; }
  5393. else
  5394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5395. $as_echo "no" >&6; }
  5396. fi
  5397. fi
  5398. if test -z "$ac_cv_prog_RANLIB"; then
  5399. ac_ct_RANLIB=$RANLIB
  5400. # Extract the first word of "ranlib", so it can be a program name with args.
  5401. set dummy ranlib; ac_word=$2
  5402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5403. $as_echo_n "checking for $ac_word... " >&6; }
  5404. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  5405. $as_echo_n "(cached) " >&6
  5406. else
  5407. if test -n "$ac_ct_RANLIB"; then
  5408. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5409. else
  5410. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5411. for as_dir in $PATH
  5412. do
  5413. IFS=$as_save_IFS
  5414. test -z "$as_dir" && as_dir=.
  5415. for ac_exec_ext in '' $ac_executable_extensions; do
  5416. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5417. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5418. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5419. break 2
  5420. fi
  5421. done
  5422. done
  5423. IFS=$as_save_IFS
  5424. fi
  5425. fi
  5426. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5427. if test -n "$ac_ct_RANLIB"; then
  5428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5429. $as_echo "$ac_ct_RANLIB" >&6; }
  5430. else
  5431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5432. $as_echo "no" >&6; }
  5433. fi
  5434. if test "x$ac_ct_RANLIB" = x; then
  5435. RANLIB=":"
  5436. else
  5437. case $cross_compiling:$ac_tool_warned in
  5438. yes:)
  5439. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5440. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5441. ac_tool_warned=yes ;;
  5442. esac
  5443. RANLIB=$ac_ct_RANLIB
  5444. fi
  5445. else
  5446. RANLIB="$ac_cv_prog_RANLIB"
  5447. fi
  5448. test -z "$RANLIB" && RANLIB=:
  5449. # Determine commands to create old-style static archives.
  5450. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5451. old_postinstall_cmds='chmod 644 $oldlib'
  5452. old_postuninstall_cmds=
  5453. if test -n "$RANLIB"; then
  5454. case $host_os in
  5455. openbsd*)
  5456. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5457. ;;
  5458. *)
  5459. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5460. ;;
  5461. esac
  5462. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5463. fi
  5464. # If no C compiler was specified, use CC.
  5465. LTCC=${LTCC-"$CC"}
  5466. # If no C compiler flags were specified, use CFLAGS.
  5467. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5468. # Allow CC to be a program name with arguments.
  5469. compiler=$CC
  5470. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5472. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5473. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  5474. $as_echo_n "(cached) " >&6
  5475. else
  5476. # These are sane defaults that work on at least a few old systems.
  5477. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5478. # Character class describing NM global symbol codes.
  5479. symcode='[BCDEGRST]'
  5480. # Regexp to match symbols that can be accessed directly from C.
  5481. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5482. # Define system-specific variables.
  5483. case $host_os in
  5484. aix*)
  5485. symcode='[BCDT]'
  5486. ;;
  5487. cygwin* | mingw* | pw32* | cegcc*)
  5488. symcode='[ABCDGISTW]'
  5489. ;;
  5490. hpux*)
  5491. if test "$host_cpu" = ia64; then
  5492. symcode='[ABCDEGRST]'
  5493. fi
  5494. ;;
  5495. irix* | nonstopux*)
  5496. symcode='[BCDEGRST]'
  5497. ;;
  5498. osf*)
  5499. symcode='[BCDEGQRST]'
  5500. ;;
  5501. solaris*)
  5502. symcode='[BDRT]'
  5503. ;;
  5504. sco3.2v5*)
  5505. symcode='[DT]'
  5506. ;;
  5507. sysv4.2uw2*)
  5508. symcode='[DT]'
  5509. ;;
  5510. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5511. symcode='[ABDT]'
  5512. ;;
  5513. sysv4)
  5514. symcode='[DFNSTU]'
  5515. ;;
  5516. esac
  5517. # If we're using GNU nm, then use its standard symbol codes.
  5518. case `$NM -V 2>&1` in
  5519. *GNU* | *'with BFD'*)
  5520. symcode='[ABCDGIRSTW]' ;;
  5521. esac
  5522. # Transform an extracted symbol line into a proper C declaration.
  5523. # Some systems (esp. on ia64) link data and code symbols differently,
  5524. # so use this general approach.
  5525. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5526. # Transform an extracted symbol line into symbol name and symbol address
  5527. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5528. 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'"
  5529. # Handle CRLF in mingw tool chain
  5530. opt_cr=
  5531. case $build_os in
  5532. mingw*)
  5533. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5534. ;;
  5535. esac
  5536. # Try without a prefix underscore, then with it.
  5537. for ac_symprfx in "" "_"; do
  5538. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5539. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5540. # Write the raw and C identifiers.
  5541. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5542. # Fake it for dumpbin and say T for any non-static function
  5543. # and D for any global variable.
  5544. # Also find C++ and __fastcall symbols from MSVC++,
  5545. # which start with @ or ?.
  5546. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5547. " {last_section=section; section=\$ 3};"\
  5548. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5549. " \$ 0!~/External *\|/{next};"\
  5550. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5551. " {if(hide[section]) next};"\
  5552. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5553. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5554. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5555. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5556. " ' prfx=^$ac_symprfx"
  5557. else
  5558. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5559. fi
  5560. # Check to see that the pipe works correctly.
  5561. pipe_works=no
  5562. rm -f conftest*
  5563. cat > conftest.$ac_ext <<_LT_EOF
  5564. #ifdef __cplusplus
  5565. extern "C" {
  5566. #endif
  5567. char nm_test_var;
  5568. void nm_test_func(void);
  5569. void nm_test_func(void){}
  5570. #ifdef __cplusplus
  5571. }
  5572. #endif
  5573. int main(){nm_test_var='a';nm_test_func();return(0);}
  5574. _LT_EOF
  5575. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5576. (eval $ac_compile) 2>&5
  5577. ac_status=$?
  5578. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5579. test $ac_status = 0; }; then
  5580. # Now try to grab the symbols.
  5581. nlist=conftest.nm
  5582. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  5583. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5584. ac_status=$?
  5585. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5586. test $ac_status = 0; } && test -s "$nlist"; then
  5587. # Try sorting and uniquifying the output.
  5588. if sort "$nlist" | uniq > "$nlist"T; then
  5589. mv -f "$nlist"T "$nlist"
  5590. else
  5591. rm -f "$nlist"T
  5592. fi
  5593. # Make sure that we snagged all the symbols we need.
  5594. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5595. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5596. cat <<_LT_EOF > conftest.$ac_ext
  5597. #ifdef __cplusplus
  5598. extern "C" {
  5599. #endif
  5600. _LT_EOF
  5601. # Now generate the symbol file.
  5602. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5603. cat <<_LT_EOF >> conftest.$ac_ext
  5604. /* The mapping between symbol names and symbols. */
  5605. const struct {
  5606. const char *name;
  5607. void *address;
  5608. }
  5609. lt__PROGRAM__LTX_preloaded_symbols[] =
  5610. {
  5611. { "@PROGRAM@", (void *) 0 },
  5612. _LT_EOF
  5613. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5614. cat <<\_LT_EOF >> conftest.$ac_ext
  5615. {0, (void *) 0}
  5616. };
  5617. /* This works around a problem in FreeBSD linker */
  5618. #ifdef FREEBSD_WORKAROUND
  5619. static const void *lt_preloaded_setup() {
  5620. return lt__PROGRAM__LTX_preloaded_symbols;
  5621. }
  5622. #endif
  5623. #ifdef __cplusplus
  5624. }
  5625. #endif
  5626. _LT_EOF
  5627. # Now try linking the two files.
  5628. mv conftest.$ac_objext conftstm.$ac_objext
  5629. lt_save_LIBS="$LIBS"
  5630. lt_save_CFLAGS="$CFLAGS"
  5631. LIBS="conftstm.$ac_objext"
  5632. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5633. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5634. (eval $ac_link) 2>&5
  5635. ac_status=$?
  5636. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5637. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5638. pipe_works=yes
  5639. fi
  5640. LIBS="$lt_save_LIBS"
  5641. CFLAGS="$lt_save_CFLAGS"
  5642. else
  5643. echo "cannot find nm_test_func in $nlist" >&5
  5644. fi
  5645. else
  5646. echo "cannot find nm_test_var in $nlist" >&5
  5647. fi
  5648. else
  5649. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5650. fi
  5651. else
  5652. echo "$progname: failed program was:" >&5
  5653. cat conftest.$ac_ext >&5
  5654. fi
  5655. rm -rf conftest* conftst*
  5656. # Do not use the global_symbol_pipe unless it works.
  5657. if test "$pipe_works" = yes; then
  5658. break
  5659. else
  5660. lt_cv_sys_global_symbol_pipe=
  5661. fi
  5662. done
  5663. fi
  5664. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5665. lt_cv_sys_global_symbol_to_cdecl=
  5666. fi
  5667. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5669. $as_echo "failed" >&6; }
  5670. else
  5671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5672. $as_echo "ok" >&6; }
  5673. fi
  5674. # Check whether --enable-libtool-lock was given.
  5675. if test "${enable_libtool_lock+set}" = set; then :
  5676. enableval=$enable_libtool_lock;
  5677. fi
  5678. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5679. # Some flags need to be propagated to the compiler or linker for good
  5680. # libtool support.
  5681. case $host in
  5682. ia64-*-hpux*)
  5683. # Find out which ABI we are using.
  5684. echo 'int i;' > conftest.$ac_ext
  5685. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5686. (eval $ac_compile) 2>&5
  5687. ac_status=$?
  5688. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5689. test $ac_status = 0; }; then
  5690. case `/usr/bin/file conftest.$ac_objext` in
  5691. *ELF-32*)
  5692. HPUX_IA64_MODE="32"
  5693. ;;
  5694. *ELF-64*)
  5695. HPUX_IA64_MODE="64"
  5696. ;;
  5697. esac
  5698. fi
  5699. rm -rf conftest*
  5700. ;;
  5701. *-*-irix6*)
  5702. # Find out which ABI we are using.
  5703. echo '#line 6453 "configure"' > conftest.$ac_ext
  5704. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5705. (eval $ac_compile) 2>&5
  5706. ac_status=$?
  5707. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5708. test $ac_status = 0; }; then
  5709. if test "$lt_cv_prog_gnu_ld" = yes; then
  5710. case `/usr/bin/file conftest.$ac_objext` in
  5711. *32-bit*)
  5712. LD="${LD-ld} -melf32bsmip"
  5713. ;;
  5714. *N32*)
  5715. LD="${LD-ld} -melf32bmipn32"
  5716. ;;
  5717. *64-bit*)
  5718. LD="${LD-ld} -melf64bmip"
  5719. ;;
  5720. esac
  5721. else
  5722. case `/usr/bin/file conftest.$ac_objext` in
  5723. *32-bit*)
  5724. LD="${LD-ld} -32"
  5725. ;;
  5726. *N32*)
  5727. LD="${LD-ld} -n32"
  5728. ;;
  5729. *64-bit*)
  5730. LD="${LD-ld} -64"
  5731. ;;
  5732. esac
  5733. fi
  5734. fi
  5735. rm -rf conftest*
  5736. ;;
  5737. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5738. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5739. # Find out which ABI we are using.
  5740. echo 'int i;' > conftest.$ac_ext
  5741. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5742. (eval $ac_compile) 2>&5
  5743. ac_status=$?
  5744. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5745. test $ac_status = 0; }; then
  5746. case `/usr/bin/file conftest.o` in
  5747. *32-bit*)
  5748. case $host in
  5749. x86_64-*kfreebsd*-gnu)
  5750. LD="${LD-ld} -m elf_i386_fbsd"
  5751. ;;
  5752. x86_64-*linux*)
  5753. LD="${LD-ld} -m elf_i386"
  5754. ;;
  5755. ppc64-*linux*|powerpc64-*linux*)
  5756. LD="${LD-ld} -m elf32ppclinux"
  5757. ;;
  5758. s390x-*linux*)
  5759. LD="${LD-ld} -m elf_s390"
  5760. ;;
  5761. sparc64-*linux*)
  5762. LD="${LD-ld} -m elf32_sparc"
  5763. ;;
  5764. esac
  5765. ;;
  5766. *64-bit*)
  5767. case $host in
  5768. x86_64-*kfreebsd*-gnu)
  5769. LD="${LD-ld} -m elf_x86_64_fbsd"
  5770. ;;
  5771. x86_64-*linux*)
  5772. LD="${LD-ld} -m elf_x86_64"
  5773. ;;
  5774. ppc*-*linux*|powerpc*-*linux*)
  5775. LD="${LD-ld} -m elf64ppc"
  5776. ;;
  5777. s390*-*linux*|s390*-*tpf*)
  5778. LD="${LD-ld} -m elf64_s390"
  5779. ;;
  5780. sparc*-*linux*)
  5781. LD="${LD-ld} -m elf64_sparc"
  5782. ;;
  5783. esac
  5784. ;;
  5785. esac
  5786. fi
  5787. rm -rf conftest*
  5788. ;;
  5789. *-*-sco3.2v5*)
  5790. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5791. SAVE_CFLAGS="$CFLAGS"
  5792. CFLAGS="$CFLAGS -belf"
  5793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5794. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5795. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  5796. $as_echo_n "(cached) " >&6
  5797. else
  5798. ac_ext=c
  5799. ac_cpp='$CPP $CPPFLAGS'
  5800. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5801. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5802. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5803. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5804. /* end confdefs.h. */
  5805. int
  5806. main ()
  5807. {
  5808. ;
  5809. return 0;
  5810. }
  5811. _ACEOF
  5812. if ac_fn_c_try_link "$LINENO"; then :
  5813. lt_cv_cc_needs_belf=yes
  5814. else
  5815. lt_cv_cc_needs_belf=no
  5816. fi
  5817. rm -f core conftest.err conftest.$ac_objext \
  5818. conftest$ac_exeext conftest.$ac_ext
  5819. ac_ext=c
  5820. ac_cpp='$CPP $CPPFLAGS'
  5821. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5822. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5823. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5824. fi
  5825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5826. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5827. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5828. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5829. CFLAGS="$SAVE_CFLAGS"
  5830. fi
  5831. ;;
  5832. sparc*-*solaris*)
  5833. # Find out which ABI we are using.
  5834. echo 'int i;' > conftest.$ac_ext
  5835. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5836. (eval $ac_compile) 2>&5
  5837. ac_status=$?
  5838. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5839. test $ac_status = 0; }; then
  5840. case `/usr/bin/file conftest.o` in
  5841. *64-bit*)
  5842. case $lt_cv_prog_gnu_ld in
  5843. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5844. *)
  5845. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5846. LD="${LD-ld} -64"
  5847. fi
  5848. ;;
  5849. esac
  5850. ;;
  5851. esac
  5852. fi
  5853. rm -rf conftest*
  5854. ;;
  5855. esac
  5856. need_locks="$enable_libtool_lock"
  5857. case $host_os in
  5858. rhapsody* | darwin*)
  5859. if test -n "$ac_tool_prefix"; then
  5860. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5861. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5863. $as_echo_n "checking for $ac_word... " >&6; }
  5864. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  5865. $as_echo_n "(cached) " >&6
  5866. else
  5867. if test -n "$DSYMUTIL"; then
  5868. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5869. else
  5870. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5871. for as_dir in $PATH
  5872. do
  5873. IFS=$as_save_IFS
  5874. test -z "$as_dir" && as_dir=.
  5875. for ac_exec_ext in '' $ac_executable_extensions; do
  5876. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5877. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5878. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5879. break 2
  5880. fi
  5881. done
  5882. done
  5883. IFS=$as_save_IFS
  5884. fi
  5885. fi
  5886. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5887. if test -n "$DSYMUTIL"; then
  5888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5889. $as_echo "$DSYMUTIL" >&6; }
  5890. else
  5891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5892. $as_echo "no" >&6; }
  5893. fi
  5894. fi
  5895. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5896. ac_ct_DSYMUTIL=$DSYMUTIL
  5897. # Extract the first word of "dsymutil", so it can be a program name with args.
  5898. set dummy dsymutil; ac_word=$2
  5899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5900. $as_echo_n "checking for $ac_word... " >&6; }
  5901. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  5902. $as_echo_n "(cached) " >&6
  5903. else
  5904. if test -n "$ac_ct_DSYMUTIL"; then
  5905. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5906. else
  5907. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5908. for as_dir in $PATH
  5909. do
  5910. IFS=$as_save_IFS
  5911. test -z "$as_dir" && as_dir=.
  5912. for ac_exec_ext in '' $ac_executable_extensions; do
  5913. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5914. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5915. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5916. break 2
  5917. fi
  5918. done
  5919. done
  5920. IFS=$as_save_IFS
  5921. fi
  5922. fi
  5923. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5924. if test -n "$ac_ct_DSYMUTIL"; then
  5925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5926. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5927. else
  5928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5929. $as_echo "no" >&6; }
  5930. fi
  5931. if test "x$ac_ct_DSYMUTIL" = x; then
  5932. DSYMUTIL=":"
  5933. else
  5934. case $cross_compiling:$ac_tool_warned in
  5935. yes:)
  5936. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5937. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5938. ac_tool_warned=yes ;;
  5939. esac
  5940. DSYMUTIL=$ac_ct_DSYMUTIL
  5941. fi
  5942. else
  5943. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5944. fi
  5945. if test -n "$ac_tool_prefix"; then
  5946. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5947. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5949. $as_echo_n "checking for $ac_word... " >&6; }
  5950. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  5951. $as_echo_n "(cached) " >&6
  5952. else
  5953. if test -n "$NMEDIT"; then
  5954. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5955. else
  5956. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5957. for as_dir in $PATH
  5958. do
  5959. IFS=$as_save_IFS
  5960. test -z "$as_dir" && as_dir=.
  5961. for ac_exec_ext in '' $ac_executable_extensions; do
  5962. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5963. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5964. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5965. break 2
  5966. fi
  5967. done
  5968. done
  5969. IFS=$as_save_IFS
  5970. fi
  5971. fi
  5972. NMEDIT=$ac_cv_prog_NMEDIT
  5973. if test -n "$NMEDIT"; then
  5974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5975. $as_echo "$NMEDIT" >&6; }
  5976. else
  5977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5978. $as_echo "no" >&6; }
  5979. fi
  5980. fi
  5981. if test -z "$ac_cv_prog_NMEDIT"; then
  5982. ac_ct_NMEDIT=$NMEDIT
  5983. # Extract the first word of "nmedit", so it can be a program name with args.
  5984. set dummy nmedit; ac_word=$2
  5985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5986. $as_echo_n "checking for $ac_word... " >&6; }
  5987. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  5988. $as_echo_n "(cached) " >&6
  5989. else
  5990. if test -n "$ac_ct_NMEDIT"; then
  5991. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5992. else
  5993. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5994. for as_dir in $PATH
  5995. do
  5996. IFS=$as_save_IFS
  5997. test -z "$as_dir" && as_dir=.
  5998. for ac_exec_ext in '' $ac_executable_extensions; do
  5999. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6000. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6001. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6002. break 2
  6003. fi
  6004. done
  6005. done
  6006. IFS=$as_save_IFS
  6007. fi
  6008. fi
  6009. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6010. if test -n "$ac_ct_NMEDIT"; then
  6011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6012. $as_echo "$ac_ct_NMEDIT" >&6; }
  6013. else
  6014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6015. $as_echo "no" >&6; }
  6016. fi
  6017. if test "x$ac_ct_NMEDIT" = x; then
  6018. NMEDIT=":"
  6019. else
  6020. case $cross_compiling:$ac_tool_warned in
  6021. yes:)
  6022. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6023. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6024. ac_tool_warned=yes ;;
  6025. esac
  6026. NMEDIT=$ac_ct_NMEDIT
  6027. fi
  6028. else
  6029. NMEDIT="$ac_cv_prog_NMEDIT"
  6030. fi
  6031. if test -n "$ac_tool_prefix"; then
  6032. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6033. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6035. $as_echo_n "checking for $ac_word... " >&6; }
  6036. if test "${ac_cv_prog_LIPO+set}" = set; then :
  6037. $as_echo_n "(cached) " >&6
  6038. else
  6039. if test -n "$LIPO"; then
  6040. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6041. else
  6042. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6043. for as_dir in $PATH
  6044. do
  6045. IFS=$as_save_IFS
  6046. test -z "$as_dir" && as_dir=.
  6047. for ac_exec_ext in '' $ac_executable_extensions; do
  6048. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6049. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6050. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6051. break 2
  6052. fi
  6053. done
  6054. done
  6055. IFS=$as_save_IFS
  6056. fi
  6057. fi
  6058. LIPO=$ac_cv_prog_LIPO
  6059. if test -n "$LIPO"; then
  6060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6061. $as_echo "$LIPO" >&6; }
  6062. else
  6063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6064. $as_echo "no" >&6; }
  6065. fi
  6066. fi
  6067. if test -z "$ac_cv_prog_LIPO"; then
  6068. ac_ct_LIPO=$LIPO
  6069. # Extract the first word of "lipo", so it can be a program name with args.
  6070. set dummy lipo; ac_word=$2
  6071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6072. $as_echo_n "checking for $ac_word... " >&6; }
  6073. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  6074. $as_echo_n "(cached) " >&6
  6075. else
  6076. if test -n "$ac_ct_LIPO"; then
  6077. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6078. else
  6079. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6080. for as_dir in $PATH
  6081. do
  6082. IFS=$as_save_IFS
  6083. test -z "$as_dir" && as_dir=.
  6084. for ac_exec_ext in '' $ac_executable_extensions; do
  6085. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6086. ac_cv_prog_ac_ct_LIPO="lipo"
  6087. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6088. break 2
  6089. fi
  6090. done
  6091. done
  6092. IFS=$as_save_IFS
  6093. fi
  6094. fi
  6095. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6096. if test -n "$ac_ct_LIPO"; then
  6097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6098. $as_echo "$ac_ct_LIPO" >&6; }
  6099. else
  6100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6101. $as_echo "no" >&6; }
  6102. fi
  6103. if test "x$ac_ct_LIPO" = x; then
  6104. LIPO=":"
  6105. else
  6106. case $cross_compiling:$ac_tool_warned in
  6107. yes:)
  6108. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6109. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6110. ac_tool_warned=yes ;;
  6111. esac
  6112. LIPO=$ac_ct_LIPO
  6113. fi
  6114. else
  6115. LIPO="$ac_cv_prog_LIPO"
  6116. fi
  6117. if test -n "$ac_tool_prefix"; then
  6118. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6119. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6121. $as_echo_n "checking for $ac_word... " >&6; }
  6122. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  6123. $as_echo_n "(cached) " >&6
  6124. else
  6125. if test -n "$OTOOL"; then
  6126. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6127. else
  6128. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6129. for as_dir in $PATH
  6130. do
  6131. IFS=$as_save_IFS
  6132. test -z "$as_dir" && as_dir=.
  6133. for ac_exec_ext in '' $ac_executable_extensions; do
  6134. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6135. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6136. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6137. break 2
  6138. fi
  6139. done
  6140. done
  6141. IFS=$as_save_IFS
  6142. fi
  6143. fi
  6144. OTOOL=$ac_cv_prog_OTOOL
  6145. if test -n "$OTOOL"; then
  6146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6147. $as_echo "$OTOOL" >&6; }
  6148. else
  6149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6150. $as_echo "no" >&6; }
  6151. fi
  6152. fi
  6153. if test -z "$ac_cv_prog_OTOOL"; then
  6154. ac_ct_OTOOL=$OTOOL
  6155. # Extract the first word of "otool", so it can be a program name with args.
  6156. set dummy otool; ac_word=$2
  6157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6158. $as_echo_n "checking for $ac_word... " >&6; }
  6159. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  6160. $as_echo_n "(cached) " >&6
  6161. else
  6162. if test -n "$ac_ct_OTOOL"; then
  6163. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6164. else
  6165. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6166. for as_dir in $PATH
  6167. do
  6168. IFS=$as_save_IFS
  6169. test -z "$as_dir" && as_dir=.
  6170. for ac_exec_ext in '' $ac_executable_extensions; do
  6171. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6172. ac_cv_prog_ac_ct_OTOOL="otool"
  6173. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6174. break 2
  6175. fi
  6176. done
  6177. done
  6178. IFS=$as_save_IFS
  6179. fi
  6180. fi
  6181. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6182. if test -n "$ac_ct_OTOOL"; then
  6183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6184. $as_echo "$ac_ct_OTOOL" >&6; }
  6185. else
  6186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6187. $as_echo "no" >&6; }
  6188. fi
  6189. if test "x$ac_ct_OTOOL" = x; then
  6190. OTOOL=":"
  6191. else
  6192. case $cross_compiling:$ac_tool_warned in
  6193. yes:)
  6194. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6195. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6196. ac_tool_warned=yes ;;
  6197. esac
  6198. OTOOL=$ac_ct_OTOOL
  6199. fi
  6200. else
  6201. OTOOL="$ac_cv_prog_OTOOL"
  6202. fi
  6203. if test -n "$ac_tool_prefix"; then
  6204. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6205. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6207. $as_echo_n "checking for $ac_word... " >&6; }
  6208. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  6209. $as_echo_n "(cached) " >&6
  6210. else
  6211. if test -n "$OTOOL64"; then
  6212. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6213. else
  6214. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6215. for as_dir in $PATH
  6216. do
  6217. IFS=$as_save_IFS
  6218. test -z "$as_dir" && as_dir=.
  6219. for ac_exec_ext in '' $ac_executable_extensions; do
  6220. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6221. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6222. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6223. break 2
  6224. fi
  6225. done
  6226. done
  6227. IFS=$as_save_IFS
  6228. fi
  6229. fi
  6230. OTOOL64=$ac_cv_prog_OTOOL64
  6231. if test -n "$OTOOL64"; then
  6232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6233. $as_echo "$OTOOL64" >&6; }
  6234. else
  6235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6236. $as_echo "no" >&6; }
  6237. fi
  6238. fi
  6239. if test -z "$ac_cv_prog_OTOOL64"; then
  6240. ac_ct_OTOOL64=$OTOOL64
  6241. # Extract the first word of "otool64", so it can be a program name with args.
  6242. set dummy otool64; ac_word=$2
  6243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6244. $as_echo_n "checking for $ac_word... " >&6; }
  6245. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  6246. $as_echo_n "(cached) " >&6
  6247. else
  6248. if test -n "$ac_ct_OTOOL64"; then
  6249. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6250. else
  6251. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6252. for as_dir in $PATH
  6253. do
  6254. IFS=$as_save_IFS
  6255. test -z "$as_dir" && as_dir=.
  6256. for ac_exec_ext in '' $ac_executable_extensions; do
  6257. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6258. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6259. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6260. break 2
  6261. fi
  6262. done
  6263. done
  6264. IFS=$as_save_IFS
  6265. fi
  6266. fi
  6267. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6268. if test -n "$ac_ct_OTOOL64"; then
  6269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6270. $as_echo "$ac_ct_OTOOL64" >&6; }
  6271. else
  6272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6273. $as_echo "no" >&6; }
  6274. fi
  6275. if test "x$ac_ct_OTOOL64" = x; then
  6276. OTOOL64=":"
  6277. else
  6278. case $cross_compiling:$ac_tool_warned in
  6279. yes:)
  6280. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6281. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6282. ac_tool_warned=yes ;;
  6283. esac
  6284. OTOOL64=$ac_ct_OTOOL64
  6285. fi
  6286. else
  6287. OTOOL64="$ac_cv_prog_OTOOL64"
  6288. fi
  6289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6290. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6291. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  6292. $as_echo_n "(cached) " >&6
  6293. else
  6294. lt_cv_apple_cc_single_mod=no
  6295. if test -z "${LT_MULTI_MODULE}"; then
  6296. # By default we will add the -single_module flag. You can override
  6297. # by either setting the environment variable LT_MULTI_MODULE
  6298. # non-empty at configure time, or by adding -multi_module to the
  6299. # link flags.
  6300. rm -rf libconftest.dylib*
  6301. echo "int foo(void){return 1;}" > conftest.c
  6302. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6303. -dynamiclib -Wl,-single_module conftest.c" >&5
  6304. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6305. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6306. _lt_result=$?
  6307. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6308. lt_cv_apple_cc_single_mod=yes
  6309. else
  6310. cat conftest.err >&5
  6311. fi
  6312. rm -rf libconftest.dylib*
  6313. rm -f conftest.*
  6314. fi
  6315. fi
  6316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6317. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6319. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6320. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  6321. $as_echo_n "(cached) " >&6
  6322. else
  6323. lt_cv_ld_exported_symbols_list=no
  6324. save_LDFLAGS=$LDFLAGS
  6325. echo "_main" > conftest.sym
  6326. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6328. /* end confdefs.h. */
  6329. int
  6330. main ()
  6331. {
  6332. ;
  6333. return 0;
  6334. }
  6335. _ACEOF
  6336. if ac_fn_c_try_link "$LINENO"; then :
  6337. lt_cv_ld_exported_symbols_list=yes
  6338. else
  6339. lt_cv_ld_exported_symbols_list=no
  6340. fi
  6341. rm -f core conftest.err conftest.$ac_objext \
  6342. conftest$ac_exeext conftest.$ac_ext
  6343. LDFLAGS="$save_LDFLAGS"
  6344. fi
  6345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6346. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6347. case $host_os in
  6348. rhapsody* | darwin1.[012])
  6349. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6350. darwin1.*)
  6351. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6352. darwin*) # darwin 5.x on
  6353. # if running on 10.5 or later, the deployment target defaults
  6354. # to the OS version, if on x86, and 10.4, the deployment
  6355. # target defaults to 10.4. Don't you love it?
  6356. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6357. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6358. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6359. 10.[012]*)
  6360. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6361. 10.*)
  6362. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6363. esac
  6364. ;;
  6365. esac
  6366. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6367. _lt_dar_single_mod='$single_module'
  6368. fi
  6369. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6370. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6371. else
  6372. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6373. fi
  6374. if test "$DSYMUTIL" != ":"; then
  6375. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6376. else
  6377. _lt_dsymutil=
  6378. fi
  6379. ;;
  6380. esac
  6381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6382. $as_echo_n "checking for ANSI C header files... " >&6; }
  6383. if test "${ac_cv_header_stdc+set}" = set; then :
  6384. $as_echo_n "(cached) " >&6
  6385. else
  6386. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6387. /* end confdefs.h. */
  6388. #include <stdlib.h>
  6389. #include <stdarg.h>
  6390. #include <string.h>
  6391. #include <float.h>
  6392. int
  6393. main ()
  6394. {
  6395. ;
  6396. return 0;
  6397. }
  6398. _ACEOF
  6399. if ac_fn_c_try_compile "$LINENO"; then :
  6400. ac_cv_header_stdc=yes
  6401. else
  6402. ac_cv_header_stdc=no
  6403. fi
  6404. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6405. if test $ac_cv_header_stdc = yes; then
  6406. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6407. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6408. /* end confdefs.h. */
  6409. #include <string.h>
  6410. _ACEOF
  6411. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6412. $EGREP "memchr" >/dev/null 2>&1; then :
  6413. else
  6414. ac_cv_header_stdc=no
  6415. fi
  6416. rm -f conftest*
  6417. fi
  6418. if test $ac_cv_header_stdc = yes; then
  6419. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6420. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6421. /* end confdefs.h. */
  6422. #include <stdlib.h>
  6423. _ACEOF
  6424. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6425. $EGREP "free" >/dev/null 2>&1; then :
  6426. else
  6427. ac_cv_header_stdc=no
  6428. fi
  6429. rm -f conftest*
  6430. fi
  6431. if test $ac_cv_header_stdc = yes; then
  6432. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6433. if test "$cross_compiling" = yes; then :
  6434. :
  6435. else
  6436. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6437. /* end confdefs.h. */
  6438. #include <ctype.h>
  6439. #include <stdlib.h>
  6440. #if ((' ' & 0x0FF) == 0x020)
  6441. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6442. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6443. #else
  6444. # define ISLOWER(c) \
  6445. (('a' <= (c) && (c) <= 'i') \
  6446. || ('j' <= (c) && (c) <= 'r') \
  6447. || ('s' <= (c) && (c) <= 'z'))
  6448. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6449. #endif
  6450. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6451. int
  6452. main ()
  6453. {
  6454. int i;
  6455. for (i = 0; i < 256; i++)
  6456. if (XOR (islower (i), ISLOWER (i))
  6457. || toupper (i) != TOUPPER (i))
  6458. return 2;
  6459. return 0;
  6460. }
  6461. _ACEOF
  6462. if ac_fn_c_try_run "$LINENO"; then :
  6463. else
  6464. ac_cv_header_stdc=no
  6465. fi
  6466. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6467. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6468. fi
  6469. fi
  6470. fi
  6471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6472. $as_echo "$ac_cv_header_stdc" >&6; }
  6473. if test $ac_cv_header_stdc = yes; then
  6474. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6475. fi
  6476. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6477. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6478. inttypes.h stdint.h unistd.h
  6479. do :
  6480. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6481. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6482. "
  6483. eval as_val=\$$as_ac_Header
  6484. if test "x$as_val" = x""yes; then :
  6485. cat >>confdefs.h <<_ACEOF
  6486. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6487. _ACEOF
  6488. fi
  6489. done
  6490. for ac_header in dlfcn.h
  6491. do :
  6492. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6493. "
  6494. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  6495. cat >>confdefs.h <<_ACEOF
  6496. #define HAVE_DLFCN_H 1
  6497. _ACEOF
  6498. fi
  6499. done
  6500. ac_ext=cpp
  6501. ac_cpp='$CXXCPP $CPPFLAGS'
  6502. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6503. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6504. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6505. if test -z "$CXX"; then
  6506. if test -n "$CCC"; then
  6507. CXX=$CCC
  6508. else
  6509. if test -n "$ac_tool_prefix"; then
  6510. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  6511. do
  6512. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6513. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6515. $as_echo_n "checking for $ac_word... " >&6; }
  6516. if test "${ac_cv_prog_CXX+set}" = set; then :
  6517. $as_echo_n "(cached) " >&6
  6518. else
  6519. if test -n "$CXX"; then
  6520. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  6521. else
  6522. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6523. for as_dir in $PATH
  6524. do
  6525. IFS=$as_save_IFS
  6526. test -z "$as_dir" && as_dir=.
  6527. for ac_exec_ext in '' $ac_executable_extensions; do
  6528. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6529. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  6530. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6531. break 2
  6532. fi
  6533. done
  6534. done
  6535. IFS=$as_save_IFS
  6536. fi
  6537. fi
  6538. CXX=$ac_cv_prog_CXX
  6539. if test -n "$CXX"; then
  6540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  6541. $as_echo "$CXX" >&6; }
  6542. else
  6543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6544. $as_echo "no" >&6; }
  6545. fi
  6546. test -n "$CXX" && break
  6547. done
  6548. fi
  6549. if test -z "$CXX"; then
  6550. ac_ct_CXX=$CXX
  6551. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  6552. do
  6553. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6554. set dummy $ac_prog; ac_word=$2
  6555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6556. $as_echo_n "checking for $ac_word... " >&6; }
  6557. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  6558. $as_echo_n "(cached) " >&6
  6559. else
  6560. if test -n "$ac_ct_CXX"; then
  6561. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  6562. else
  6563. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6564. for as_dir in $PATH
  6565. do
  6566. IFS=$as_save_IFS
  6567. test -z "$as_dir" && as_dir=.
  6568. for ac_exec_ext in '' $ac_executable_extensions; do
  6569. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6570. ac_cv_prog_ac_ct_CXX="$ac_prog"
  6571. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6572. break 2
  6573. fi
  6574. done
  6575. done
  6576. IFS=$as_save_IFS
  6577. fi
  6578. fi
  6579. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  6580. if test -n "$ac_ct_CXX"; then
  6581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  6582. $as_echo "$ac_ct_CXX" >&6; }
  6583. else
  6584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6585. $as_echo "no" >&6; }
  6586. fi
  6587. test -n "$ac_ct_CXX" && break
  6588. done
  6589. if test "x$ac_ct_CXX" = x; then
  6590. CXX="g++"
  6591. else
  6592. case $cross_compiling:$ac_tool_warned in
  6593. yes:)
  6594. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6595. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6596. ac_tool_warned=yes ;;
  6597. esac
  6598. CXX=$ac_ct_CXX
  6599. fi
  6600. fi
  6601. fi
  6602. fi
  6603. # Provide some information about the compiler.
  6604. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  6605. set X $ac_compile
  6606. ac_compiler=$2
  6607. for ac_option in --version -v -V -qversion; do
  6608. { { ac_try="$ac_compiler $ac_option >&5"
  6609. case "(($ac_try" in
  6610. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6611. *) ac_try_echo=$ac_try;;
  6612. esac
  6613. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  6614. $as_echo "$ac_try_echo"; } >&5
  6615. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  6616. ac_status=$?
  6617. if test -s conftest.err; then
  6618. sed '10a\
  6619. ... rest of stderr output deleted ...
  6620. 10q' conftest.err >conftest.er1
  6621. cat conftest.er1 >&5
  6622. fi
  6623. rm -f conftest.er1 conftest.err
  6624. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6625. test $ac_status = 0; }
  6626. done
  6627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  6628. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  6629. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  6630. $as_echo_n "(cached) " >&6
  6631. else
  6632. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6633. /* end confdefs.h. */
  6634. int
  6635. main ()
  6636. {
  6637. #ifndef __GNUC__
  6638. choke me
  6639. #endif
  6640. ;
  6641. return 0;
  6642. }
  6643. _ACEOF
  6644. if ac_fn_cxx_try_compile "$LINENO"; then :
  6645. ac_compiler_gnu=yes
  6646. else
  6647. ac_compiler_gnu=no
  6648. fi
  6649. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6650. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  6651. fi
  6652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  6653. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  6654. if test $ac_compiler_gnu = yes; then
  6655. GXX=yes
  6656. else
  6657. GXX=
  6658. fi
  6659. ac_test_CXXFLAGS=${CXXFLAGS+set}
  6660. ac_save_CXXFLAGS=$CXXFLAGS
  6661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  6662. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  6663. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  6664. $as_echo_n "(cached) " >&6
  6665. else
  6666. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  6667. ac_cxx_werror_flag=yes
  6668. ac_cv_prog_cxx_g=no
  6669. CXXFLAGS="-g"
  6670. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6671. /* end confdefs.h. */
  6672. int
  6673. main ()
  6674. {
  6675. ;
  6676. return 0;
  6677. }
  6678. _ACEOF
  6679. if ac_fn_cxx_try_compile "$LINENO"; then :
  6680. ac_cv_prog_cxx_g=yes
  6681. else
  6682. CXXFLAGS=""
  6683. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6684. /* end confdefs.h. */
  6685. int
  6686. main ()
  6687. {
  6688. ;
  6689. return 0;
  6690. }
  6691. _ACEOF
  6692. if ac_fn_cxx_try_compile "$LINENO"; then :
  6693. else
  6694. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  6695. CXXFLAGS="-g"
  6696. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6697. /* end confdefs.h. */
  6698. int
  6699. main ()
  6700. {
  6701. ;
  6702. return 0;
  6703. }
  6704. _ACEOF
  6705. if ac_fn_cxx_try_compile "$LINENO"; then :
  6706. ac_cv_prog_cxx_g=yes
  6707. fi
  6708. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6709. fi
  6710. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6711. fi
  6712. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6713. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  6714. fi
  6715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  6716. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  6717. if test "$ac_test_CXXFLAGS" = set; then
  6718. CXXFLAGS=$ac_save_CXXFLAGS
  6719. elif test $ac_cv_prog_cxx_g = yes; then
  6720. if test "$GXX" = yes; then
  6721. CXXFLAGS="-g -O2"
  6722. else
  6723. CXXFLAGS="-g"
  6724. fi
  6725. else
  6726. if test "$GXX" = yes; then
  6727. CXXFLAGS="-O2"
  6728. else
  6729. CXXFLAGS=
  6730. fi
  6731. fi
  6732. ac_ext=c
  6733. ac_cpp='$CPP $CPPFLAGS'
  6734. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6735. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6736. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6737. depcc="$CXX" am_compiler_list=
  6738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  6739. $as_echo_n "checking dependency style of $depcc... " >&6; }
  6740. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  6741. $as_echo_n "(cached) " >&6
  6742. else
  6743. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  6744. # We make a subdir and do the tests there. Otherwise we can end up
  6745. # making bogus files that we don't know about and never remove. For
  6746. # instance it was reported that on HP-UX the gcc test will end up
  6747. # making a dummy file named `D' -- because `-MD' means `put the output
  6748. # in D'.
  6749. mkdir conftest.dir
  6750. # Copy depcomp to subdir because otherwise we won't find it if we're
  6751. # using a relative directory.
  6752. cp "$am_depcomp" conftest.dir
  6753. cd conftest.dir
  6754. # We will build objects and dependencies in a subdirectory because
  6755. # it helps to detect inapplicable dependency modes. For instance
  6756. # both Tru64's cc and ICC support -MD to output dependencies as a
  6757. # side effect of compilation, but ICC will put the dependencies in
  6758. # the current directory while Tru64 will put them in the object
  6759. # directory.
  6760. mkdir sub
  6761. am_cv_CXX_dependencies_compiler_type=none
  6762. if test "$am_compiler_list" = ""; then
  6763. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  6764. fi
  6765. am__universal=false
  6766. case " $depcc " in #(
  6767. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  6768. esac
  6769. for depmode in $am_compiler_list; do
  6770. # Setup a source with many dependencies, because some compilers
  6771. # like to wrap large dependency lists on column 80 (with \), and
  6772. # we should not choose a depcomp mode which is confused by this.
  6773. #
  6774. # We need to recreate these files for each test, as the compiler may
  6775. # overwrite some of them when testing with obscure command lines.
  6776. # This happens at least with the AIX C compiler.
  6777. : > sub/conftest.c
  6778. for i in 1 2 3 4 5 6; do
  6779. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  6780. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  6781. # Solaris 8's {/usr,}/bin/sh.
  6782. touch sub/conftst$i.h
  6783. done
  6784. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  6785. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  6786. # mode. It turns out that the SunPro C++ compiler does not properly
  6787. # handle `-M -o', and we need to detect this. Also, some Intel
  6788. # versions had trouble with output in subdirs
  6789. am__obj=sub/conftest.${OBJEXT-o}
  6790. am__minus_obj="-o $am__obj"
  6791. case $depmode in
  6792. gcc)
  6793. # This depmode causes a compiler race in universal mode.
  6794. test "$am__universal" = false || continue
  6795. ;;
  6796. nosideeffect)
  6797. # after this tag, mechanisms are not by side-effect, so they'll
  6798. # only be used when explicitly requested
  6799. if test "x$enable_dependency_tracking" = xyes; then
  6800. continue
  6801. else
  6802. break
  6803. fi
  6804. ;;
  6805. msvisualcpp | msvcmsys)
  6806. # This compiler won't grok `-c -o', but also, the minuso test has
  6807. # not run yet. These depmodes are late enough in the game, and
  6808. # so weak that their functioning should not be impacted.
  6809. am__obj=conftest.${OBJEXT-o}
  6810. am__minus_obj=
  6811. ;;
  6812. none) break ;;
  6813. esac
  6814. if depmode=$depmode \
  6815. source=sub/conftest.c object=$am__obj \
  6816. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  6817. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  6818. >/dev/null 2>conftest.err &&
  6819. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  6820. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  6821. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  6822. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  6823. # icc doesn't choke on unknown options, it will just issue warnings
  6824. # or remarks (even with -Werror). So we grep stderr for any message
  6825. # that says an option was ignored or not supported.
  6826. # When given -MP, icc 7.0 and 7.1 complain thusly:
  6827. # icc: Command line warning: ignoring option '-M'; no argument required
  6828. # The diagnosis changed in icc 8.0:
  6829. # icc: Command line remark: option '-MP' not supported
  6830. if (grep 'ignoring option' conftest.err ||
  6831. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  6832. am_cv_CXX_dependencies_compiler_type=$depmode
  6833. break
  6834. fi
  6835. fi
  6836. done
  6837. cd ..
  6838. rm -rf conftest.dir
  6839. else
  6840. am_cv_CXX_dependencies_compiler_type=none
  6841. fi
  6842. fi
  6843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  6844. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  6845. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  6846. if
  6847. test "x$enable_dependency_tracking" != xno \
  6848. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  6849. am__fastdepCXX_TRUE=
  6850. am__fastdepCXX_FALSE='#'
  6851. else
  6852. am__fastdepCXX_TRUE='#'
  6853. am__fastdepCXX_FALSE=
  6854. fi
  6855. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  6856. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  6857. (test "X$CXX" != "Xg++"))) ; then
  6858. ac_ext=cpp
  6859. ac_cpp='$CXXCPP $CPPFLAGS'
  6860. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6861. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6862. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  6864. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  6865. if test -z "$CXXCPP"; then
  6866. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  6867. $as_echo_n "(cached) " >&6
  6868. else
  6869. # Double quotes because CXXCPP needs to be expanded
  6870. for CXXCPP in "$CXX -E" "/lib/cpp"
  6871. do
  6872. ac_preproc_ok=false
  6873. for ac_cxx_preproc_warn_flag in '' yes
  6874. do
  6875. # Use a header file that comes with gcc, so configuring glibc
  6876. # with a fresh cross-compiler works.
  6877. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6878. # <limits.h> exists even on freestanding compilers.
  6879. # On the NeXT, cc -E runs the code through the compiler's parser,
  6880. # not just through cpp. "Syntax error" is here to catch this case.
  6881. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6882. /* end confdefs.h. */
  6883. #ifdef __STDC__
  6884. # include <limits.h>
  6885. #else
  6886. # include <assert.h>
  6887. #endif
  6888. Syntax error
  6889. _ACEOF
  6890. if ac_fn_cxx_try_cpp "$LINENO"; then :
  6891. else
  6892. # Broken: fails on valid input.
  6893. continue
  6894. fi
  6895. rm -f conftest.err conftest.$ac_ext
  6896. # OK, works on sane cases. Now check whether nonexistent headers
  6897. # can be detected and how.
  6898. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6899. /* end confdefs.h. */
  6900. #include <ac_nonexistent.h>
  6901. _ACEOF
  6902. if ac_fn_cxx_try_cpp "$LINENO"; then :
  6903. # Broken: success on invalid input.
  6904. continue
  6905. else
  6906. # Passes both tests.
  6907. ac_preproc_ok=:
  6908. break
  6909. fi
  6910. rm -f conftest.err conftest.$ac_ext
  6911. done
  6912. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6913. rm -f conftest.err conftest.$ac_ext
  6914. if $ac_preproc_ok; then :
  6915. break
  6916. fi
  6917. done
  6918. ac_cv_prog_CXXCPP=$CXXCPP
  6919. fi
  6920. CXXCPP=$ac_cv_prog_CXXCPP
  6921. else
  6922. ac_cv_prog_CXXCPP=$CXXCPP
  6923. fi
  6924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  6925. $as_echo "$CXXCPP" >&6; }
  6926. ac_preproc_ok=false
  6927. for ac_cxx_preproc_warn_flag in '' yes
  6928. do
  6929. # Use a header file that comes with gcc, so configuring glibc
  6930. # with a fresh cross-compiler works.
  6931. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6932. # <limits.h> exists even on freestanding compilers.
  6933. # On the NeXT, cc -E runs the code through the compiler's parser,
  6934. # not just through cpp. "Syntax error" is here to catch this case.
  6935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6936. /* end confdefs.h. */
  6937. #ifdef __STDC__
  6938. # include <limits.h>
  6939. #else
  6940. # include <assert.h>
  6941. #endif
  6942. Syntax error
  6943. _ACEOF
  6944. if ac_fn_cxx_try_cpp "$LINENO"; then :
  6945. else
  6946. # Broken: fails on valid input.
  6947. continue
  6948. fi
  6949. rm -f conftest.err conftest.$ac_ext
  6950. # OK, works on sane cases. Now check whether nonexistent headers
  6951. # can be detected and how.
  6952. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6953. /* end confdefs.h. */
  6954. #include <ac_nonexistent.h>
  6955. _ACEOF
  6956. if ac_fn_cxx_try_cpp "$LINENO"; then :
  6957. # Broken: success on invalid input.
  6958. continue
  6959. else
  6960. # Passes both tests.
  6961. ac_preproc_ok=:
  6962. break
  6963. fi
  6964. rm -f conftest.err conftest.$ac_ext
  6965. done
  6966. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6967. rm -f conftest.err conftest.$ac_ext
  6968. if $ac_preproc_ok; then :
  6969. else
  6970. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6971. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6972. _lt_caught_CXX_error=yes; }
  6973. fi
  6974. ac_ext=c
  6975. ac_cpp='$CPP $CPPFLAGS'
  6976. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6977. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6978. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6979. else
  6980. _lt_caught_CXX_error=yes
  6981. fi
  6982. # Set options
  6983. enable_dlopen=no
  6984. enable_win32_dll=no
  6985. # Check whether --enable-shared was given.
  6986. if test "${enable_shared+set}" = set; then :
  6987. enableval=$enable_shared; p=${PACKAGE-default}
  6988. case $enableval in
  6989. yes) enable_shared=yes ;;
  6990. no) enable_shared=no ;;
  6991. *)
  6992. enable_shared=no
  6993. # Look at the argument we got. We use all the common list separators.
  6994. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6995. for pkg in $enableval; do
  6996. IFS="$lt_save_ifs"
  6997. if test "X$pkg" = "X$p"; then
  6998. enable_shared=yes
  6999. fi
  7000. done
  7001. IFS="$lt_save_ifs"
  7002. ;;
  7003. esac
  7004. else
  7005. enable_shared=yes
  7006. fi
  7007. # Check whether --enable-static was given.
  7008. if test "${enable_static+set}" = set; then :
  7009. enableval=$enable_static; p=${PACKAGE-default}
  7010. case $enableval in
  7011. yes) enable_static=yes ;;
  7012. no) enable_static=no ;;
  7013. *)
  7014. enable_static=no
  7015. # Look at the argument we got. We use all the common list separators.
  7016. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7017. for pkg in $enableval; do
  7018. IFS="$lt_save_ifs"
  7019. if test "X$pkg" = "X$p"; then
  7020. enable_static=yes
  7021. fi
  7022. done
  7023. IFS="$lt_save_ifs"
  7024. ;;
  7025. esac
  7026. else
  7027. enable_static=yes
  7028. fi
  7029. # Check whether --with-pic was given.
  7030. if test "${with_pic+set}" = set; then :
  7031. withval=$with_pic; pic_mode="$withval"
  7032. else
  7033. pic_mode=default
  7034. fi
  7035. test -z "$pic_mode" && pic_mode=default
  7036. # Check whether --enable-fast-install was given.
  7037. if test "${enable_fast_install+set}" = set; then :
  7038. enableval=$enable_fast_install; p=${PACKAGE-default}
  7039. case $enableval in
  7040. yes) enable_fast_install=yes ;;
  7041. no) enable_fast_install=no ;;
  7042. *)
  7043. enable_fast_install=no
  7044. # Look at the argument we got. We use all the common list separators.
  7045. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7046. for pkg in $enableval; do
  7047. IFS="$lt_save_ifs"
  7048. if test "X$pkg" = "X$p"; then
  7049. enable_fast_install=yes
  7050. fi
  7051. done
  7052. IFS="$lt_save_ifs"
  7053. ;;
  7054. esac
  7055. else
  7056. enable_fast_install=yes
  7057. fi
  7058. # This can be used to rebuild libtool when needed
  7059. LIBTOOL_DEPS="$ltmain"
  7060. # Always use our own libtool.
  7061. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7062. test -z "$LN_S" && LN_S="ln -s"
  7063. if test -n "${ZSH_VERSION+set}" ; then
  7064. setopt NO_GLOB_SUBST
  7065. fi
  7066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7067. $as_echo_n "checking for objdir... " >&6; }
  7068. if test "${lt_cv_objdir+set}" = set; then :
  7069. $as_echo_n "(cached) " >&6
  7070. else
  7071. rm -f .libs 2>/dev/null
  7072. mkdir .libs 2>/dev/null
  7073. if test -d .libs; then
  7074. lt_cv_objdir=.libs
  7075. else
  7076. # MS-DOS does not allow filenames that begin with a dot.
  7077. lt_cv_objdir=_libs
  7078. fi
  7079. rmdir .libs 2>/dev/null
  7080. fi
  7081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7082. $as_echo "$lt_cv_objdir" >&6; }
  7083. objdir=$lt_cv_objdir
  7084. cat >>confdefs.h <<_ACEOF
  7085. #define LT_OBJDIR "$lt_cv_objdir/"
  7086. _ACEOF
  7087. case $host_os in
  7088. aix3*)
  7089. # AIX sometimes has problems with the GCC collect2 program. For some
  7090. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7091. # vanish in a puff of smoke.
  7092. if test "X${COLLECT_NAMES+set}" != Xset; then
  7093. COLLECT_NAMES=
  7094. export COLLECT_NAMES
  7095. fi
  7096. ;;
  7097. esac
  7098. # Sed substitution that helps us do robust quoting. It backslashifies
  7099. # metacharacters that are still active within double-quoted strings.
  7100. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  7101. # Same as above, but do not quote variable references.
  7102. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  7103. # Sed substitution to delay expansion of an escaped shell variable in a
  7104. # double_quote_subst'ed string.
  7105. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  7106. # Sed substitution to delay expansion of an escaped single quote.
  7107. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  7108. # Sed substitution to avoid accidental globbing in evaled expressions
  7109. no_glob_subst='s/\*/\\\*/g'
  7110. # Global variables:
  7111. ofile=libtool
  7112. can_build_shared=yes
  7113. # All known linkers require a `.a' archive for static linking (except MSVC,
  7114. # which needs '.lib').
  7115. libext=a
  7116. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7117. old_CC="$CC"
  7118. old_CFLAGS="$CFLAGS"
  7119. # Set sane defaults for various variables
  7120. test -z "$CC" && CC=cc
  7121. test -z "$LTCC" && LTCC=$CC
  7122. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7123. test -z "$LD" && LD=ld
  7124. test -z "$ac_objext" && ac_objext=o
  7125. for cc_temp in $compiler""; do
  7126. case $cc_temp in
  7127. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7128. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7129. \-*) ;;
  7130. *) break;;
  7131. esac
  7132. done
  7133. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  7134. # Only perform the check for file, if the check method requires it
  7135. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7136. case $deplibs_check_method in
  7137. file_magic*)
  7138. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7140. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7141. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7142. $as_echo_n "(cached) " >&6
  7143. else
  7144. case $MAGIC_CMD in
  7145. [\\/*] | ?:[\\/]*)
  7146. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7147. ;;
  7148. *)
  7149. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7150. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7151. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7152. for ac_dir in $ac_dummy; do
  7153. IFS="$lt_save_ifs"
  7154. test -z "$ac_dir" && ac_dir=.
  7155. if test -f $ac_dir/${ac_tool_prefix}file; then
  7156. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7157. if test -n "$file_magic_test_file"; then
  7158. case $deplibs_check_method in
  7159. "file_magic "*)
  7160. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7161. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7162. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7163. $EGREP "$file_magic_regex" > /dev/null; then
  7164. :
  7165. else
  7166. cat <<_LT_EOF 1>&2
  7167. *** Warning: the command libtool uses to detect shared libraries,
  7168. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7169. *** The result is that libtool may fail to recognize shared libraries
  7170. *** as such. This will affect the creation of libtool libraries that
  7171. *** depend on shared libraries, but programs linked with such libtool
  7172. *** libraries will work regardless of this problem. Nevertheless, you
  7173. *** may want to report the problem to your system manager and/or to
  7174. *** bug-libtool@gnu.org
  7175. _LT_EOF
  7176. fi ;;
  7177. esac
  7178. fi
  7179. break
  7180. fi
  7181. done
  7182. IFS="$lt_save_ifs"
  7183. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7184. ;;
  7185. esac
  7186. fi
  7187. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7188. if test -n "$MAGIC_CMD"; then
  7189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7190. $as_echo "$MAGIC_CMD" >&6; }
  7191. else
  7192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7193. $as_echo "no" >&6; }
  7194. fi
  7195. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7196. if test -n "$ac_tool_prefix"; then
  7197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7198. $as_echo_n "checking for file... " >&6; }
  7199. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7200. $as_echo_n "(cached) " >&6
  7201. else
  7202. case $MAGIC_CMD in
  7203. [\\/*] | ?:[\\/]*)
  7204. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7205. ;;
  7206. *)
  7207. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7208. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7209. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7210. for ac_dir in $ac_dummy; do
  7211. IFS="$lt_save_ifs"
  7212. test -z "$ac_dir" && ac_dir=.
  7213. if test -f $ac_dir/file; then
  7214. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7215. if test -n "$file_magic_test_file"; then
  7216. case $deplibs_check_method in
  7217. "file_magic "*)
  7218. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7219. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7220. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7221. $EGREP "$file_magic_regex" > /dev/null; then
  7222. :
  7223. else
  7224. cat <<_LT_EOF 1>&2
  7225. *** Warning: the command libtool uses to detect shared libraries,
  7226. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7227. *** The result is that libtool may fail to recognize shared libraries
  7228. *** as such. This will affect the creation of libtool libraries that
  7229. *** depend on shared libraries, but programs linked with such libtool
  7230. *** libraries will work regardless of this problem. Nevertheless, you
  7231. *** may want to report the problem to your system manager and/or to
  7232. *** bug-libtool@gnu.org
  7233. _LT_EOF
  7234. fi ;;
  7235. esac
  7236. fi
  7237. break
  7238. fi
  7239. done
  7240. IFS="$lt_save_ifs"
  7241. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7242. ;;
  7243. esac
  7244. fi
  7245. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7246. if test -n "$MAGIC_CMD"; then
  7247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7248. $as_echo "$MAGIC_CMD" >&6; }
  7249. else
  7250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7251. $as_echo "no" >&6; }
  7252. fi
  7253. else
  7254. MAGIC_CMD=:
  7255. fi
  7256. fi
  7257. fi
  7258. ;;
  7259. esac
  7260. # Use C for the default configuration in the libtool script
  7261. lt_save_CC="$CC"
  7262. ac_ext=c
  7263. ac_cpp='$CPP $CPPFLAGS'
  7264. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7265. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7266. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7267. # Source file extension for C test sources.
  7268. ac_ext=c
  7269. # Object file extension for compiled C test sources.
  7270. objext=o
  7271. objext=$objext
  7272. # Code to be used in simple compile tests
  7273. lt_simple_compile_test_code="int some_variable = 0;"
  7274. # Code to be used in simple link tests
  7275. lt_simple_link_test_code='int main(){return(0);}'
  7276. # If no C compiler was specified, use CC.
  7277. LTCC=${LTCC-"$CC"}
  7278. # If no C compiler flags were specified, use CFLAGS.
  7279. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7280. # Allow CC to be a program name with arguments.
  7281. compiler=$CC
  7282. # Save the default compiler, since it gets overwritten when the other
  7283. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7284. compiler_DEFAULT=$CC
  7285. # save warnings/boilerplate of simple test code
  7286. ac_outfile=conftest.$ac_objext
  7287. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7288. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7289. _lt_compiler_boilerplate=`cat conftest.err`
  7290. $RM conftest*
  7291. ac_outfile=conftest.$ac_objext
  7292. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7293. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7294. _lt_linker_boilerplate=`cat conftest.err`
  7295. $RM -r conftest*
  7296. if test -n "$compiler"; then
  7297. lt_prog_compiler_no_builtin_flag=
  7298. if test "$GCC" = yes; then
  7299. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  7300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7301. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7302. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  7303. $as_echo_n "(cached) " >&6
  7304. else
  7305. lt_cv_prog_compiler_rtti_exceptions=no
  7306. ac_outfile=conftest.$ac_objext
  7307. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7308. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7309. # Insert the option either (1) after the last *FLAGS variable, or
  7310. # (2) before a word containing "conftest.", or (3) at the end.
  7311. # Note that $ac_compile itself does not contain backslashes and begins
  7312. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7313. # The option is referenced via a variable to avoid confusing sed.
  7314. lt_compile=`echo "$ac_compile" | $SED \
  7315. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7316. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7317. -e 's:$: $lt_compiler_flag:'`
  7318. (eval echo "\"\$as_me:8369: $lt_compile\"" >&5)
  7319. (eval "$lt_compile" 2>conftest.err)
  7320. ac_status=$?
  7321. cat conftest.err >&5
  7322. echo "$as_me:8373: \$? = $ac_status" >&5
  7323. if (exit $ac_status) && test -s "$ac_outfile"; then
  7324. # The compiler can only warn and ignore the option if not recognized
  7325. # So say no if there are warnings other than the usual output.
  7326. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7327. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7328. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7329. lt_cv_prog_compiler_rtti_exceptions=yes
  7330. fi
  7331. fi
  7332. $RM conftest*
  7333. fi
  7334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7335. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7336. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7337. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7338. else
  7339. :
  7340. fi
  7341. fi
  7342. lt_prog_compiler_wl=
  7343. lt_prog_compiler_pic=
  7344. lt_prog_compiler_static=
  7345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7346. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7347. if test "$GCC" = yes; then
  7348. lt_prog_compiler_wl='-Wl,'
  7349. lt_prog_compiler_static='-static'
  7350. case $host_os in
  7351. aix*)
  7352. # All AIX code is PIC.
  7353. if test "$host_cpu" = ia64; then
  7354. # AIX 5 now supports IA64 processor
  7355. lt_prog_compiler_static='-Bstatic'
  7356. fi
  7357. ;;
  7358. amigaos*)
  7359. case $host_cpu in
  7360. powerpc)
  7361. # see comment about AmigaOS4 .so support
  7362. lt_prog_compiler_pic='-fPIC'
  7363. ;;
  7364. m68k)
  7365. # FIXME: we need at least 68020 code to build shared libraries, but
  7366. # adding the `-m68020' flag to GCC prevents building anything better,
  7367. # like `-m68040'.
  7368. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7369. ;;
  7370. esac
  7371. ;;
  7372. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7373. # PIC is the default for these OSes.
  7374. ;;
  7375. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7376. # This hack is so that the source file can tell whether it is being
  7377. # built for inclusion in a dll (and should export symbols for example).
  7378. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7379. # (--disable-auto-import) libraries
  7380. lt_prog_compiler_pic='-DDLL_EXPORT'
  7381. ;;
  7382. darwin* | rhapsody*)
  7383. # PIC is the default on this platform
  7384. # Common symbols not allowed in MH_DYLIB files
  7385. lt_prog_compiler_pic='-fno-common'
  7386. ;;
  7387. hpux*)
  7388. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7389. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7390. # sets the default TLS model and affects inlining.
  7391. case $host_cpu in
  7392. hppa*64*)
  7393. # +Z the default
  7394. ;;
  7395. *)
  7396. lt_prog_compiler_pic='-fPIC'
  7397. ;;
  7398. esac
  7399. ;;
  7400. interix[3-9]*)
  7401. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7402. # Instead, we relocate shared libraries at runtime.
  7403. ;;
  7404. msdosdjgpp*)
  7405. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7406. # on systems that don't support them.
  7407. lt_prog_compiler_can_build_shared=no
  7408. enable_shared=no
  7409. ;;
  7410. *nto* | *qnx*)
  7411. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7412. # it will coredump.
  7413. lt_prog_compiler_pic='-fPIC -shared'
  7414. ;;
  7415. sysv4*MP*)
  7416. if test -d /usr/nec; then
  7417. lt_prog_compiler_pic=-Kconform_pic
  7418. fi
  7419. ;;
  7420. *)
  7421. lt_prog_compiler_pic='-fPIC'
  7422. ;;
  7423. esac
  7424. else
  7425. # PORTME Check for flag to pass linker flags through the system compiler.
  7426. case $host_os in
  7427. aix*)
  7428. lt_prog_compiler_wl='-Wl,'
  7429. if test "$host_cpu" = ia64; then
  7430. # AIX 5 now supports IA64 processor
  7431. lt_prog_compiler_static='-Bstatic'
  7432. else
  7433. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7434. fi
  7435. ;;
  7436. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7437. # This hack is so that the source file can tell whether it is being
  7438. # built for inclusion in a dll (and should export symbols for example).
  7439. lt_prog_compiler_pic='-DDLL_EXPORT'
  7440. ;;
  7441. hpux9* | hpux10* | hpux11*)
  7442. lt_prog_compiler_wl='-Wl,'
  7443. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7444. # not for PA HP-UX.
  7445. case $host_cpu in
  7446. hppa*64*|ia64*)
  7447. # +Z the default
  7448. ;;
  7449. *)
  7450. lt_prog_compiler_pic='+Z'
  7451. ;;
  7452. esac
  7453. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7454. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7455. ;;
  7456. irix5* | irix6* | nonstopux*)
  7457. lt_prog_compiler_wl='-Wl,'
  7458. # PIC (with -KPIC) is the default.
  7459. lt_prog_compiler_static='-non_shared'
  7460. ;;
  7461. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7462. case $cc_basename in
  7463. # old Intel for x86_64 which still supported -KPIC.
  7464. ecc*)
  7465. lt_prog_compiler_wl='-Wl,'
  7466. lt_prog_compiler_pic='-KPIC'
  7467. lt_prog_compiler_static='-static'
  7468. ;;
  7469. # icc used to be incompatible with GCC.
  7470. # ICC 10 doesn't accept -KPIC any more.
  7471. icc* | ifort*)
  7472. lt_prog_compiler_wl='-Wl,'
  7473. lt_prog_compiler_pic='-fPIC'
  7474. lt_prog_compiler_static='-static'
  7475. ;;
  7476. # Lahey Fortran 8.1.
  7477. lf95*)
  7478. lt_prog_compiler_wl='-Wl,'
  7479. lt_prog_compiler_pic='--shared'
  7480. lt_prog_compiler_static='--static'
  7481. ;;
  7482. pgcc* | pgf77* | pgf90* | pgf95*)
  7483. # Portland Group compilers (*not* the Pentium gcc compiler,
  7484. # which looks to be a dead project)
  7485. lt_prog_compiler_wl='-Wl,'
  7486. lt_prog_compiler_pic='-fpic'
  7487. lt_prog_compiler_static='-Bstatic'
  7488. ;;
  7489. ccc*)
  7490. lt_prog_compiler_wl='-Wl,'
  7491. # All Alpha code is PIC.
  7492. lt_prog_compiler_static='-non_shared'
  7493. ;;
  7494. xl*)
  7495. # IBM XL C 8.0/Fortran 10.1 on PPC
  7496. lt_prog_compiler_wl='-Wl,'
  7497. lt_prog_compiler_pic='-qpic'
  7498. lt_prog_compiler_static='-qstaticlink'
  7499. ;;
  7500. *)
  7501. case `$CC -V 2>&1 | sed 5q` in
  7502. *Sun\ C*)
  7503. # Sun C 5.9
  7504. lt_prog_compiler_pic='-KPIC'
  7505. lt_prog_compiler_static='-Bstatic'
  7506. lt_prog_compiler_wl='-Wl,'
  7507. ;;
  7508. *Sun\ F*)
  7509. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7510. lt_prog_compiler_pic='-KPIC'
  7511. lt_prog_compiler_static='-Bstatic'
  7512. lt_prog_compiler_wl=''
  7513. ;;
  7514. esac
  7515. ;;
  7516. esac
  7517. ;;
  7518. newsos6)
  7519. lt_prog_compiler_pic='-KPIC'
  7520. lt_prog_compiler_static='-Bstatic'
  7521. ;;
  7522. *nto* | *qnx*)
  7523. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7524. # it will coredump.
  7525. lt_prog_compiler_pic='-fPIC -shared'
  7526. ;;
  7527. osf3* | osf4* | osf5*)
  7528. lt_prog_compiler_wl='-Wl,'
  7529. # All OSF/1 code is PIC.
  7530. lt_prog_compiler_static='-non_shared'
  7531. ;;
  7532. rdos*)
  7533. lt_prog_compiler_static='-non_shared'
  7534. ;;
  7535. solaris*)
  7536. lt_prog_compiler_pic='-KPIC'
  7537. lt_prog_compiler_static='-Bstatic'
  7538. case $cc_basename in
  7539. f77* | f90* | f95*)
  7540. lt_prog_compiler_wl='-Qoption ld ';;
  7541. *)
  7542. lt_prog_compiler_wl='-Wl,';;
  7543. esac
  7544. ;;
  7545. sunos4*)
  7546. lt_prog_compiler_wl='-Qoption ld '
  7547. lt_prog_compiler_pic='-PIC'
  7548. lt_prog_compiler_static='-Bstatic'
  7549. ;;
  7550. sysv4 | sysv4.2uw2* | sysv4.3*)
  7551. lt_prog_compiler_wl='-Wl,'
  7552. lt_prog_compiler_pic='-KPIC'
  7553. lt_prog_compiler_static='-Bstatic'
  7554. ;;
  7555. sysv4*MP*)
  7556. if test -d /usr/nec ;then
  7557. lt_prog_compiler_pic='-Kconform_pic'
  7558. lt_prog_compiler_static='-Bstatic'
  7559. fi
  7560. ;;
  7561. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7562. lt_prog_compiler_wl='-Wl,'
  7563. lt_prog_compiler_pic='-KPIC'
  7564. lt_prog_compiler_static='-Bstatic'
  7565. ;;
  7566. unicos*)
  7567. lt_prog_compiler_wl='-Wl,'
  7568. lt_prog_compiler_can_build_shared=no
  7569. ;;
  7570. uts4*)
  7571. lt_prog_compiler_pic='-pic'
  7572. lt_prog_compiler_static='-Bstatic'
  7573. ;;
  7574. *)
  7575. lt_prog_compiler_can_build_shared=no
  7576. ;;
  7577. esac
  7578. fi
  7579. case $host_os in
  7580. # For platforms which do not support PIC, -DPIC is meaningless:
  7581. *djgpp*)
  7582. lt_prog_compiler_pic=
  7583. ;;
  7584. *)
  7585. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7586. ;;
  7587. esac
  7588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7589. $as_echo "$lt_prog_compiler_pic" >&6; }
  7590. #
  7591. # Check to make sure the PIC flag actually works.
  7592. #
  7593. if test -n "$lt_prog_compiler_pic"; then
  7594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7595. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7596. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  7597. $as_echo_n "(cached) " >&6
  7598. else
  7599. lt_cv_prog_compiler_pic_works=no
  7600. ac_outfile=conftest.$ac_objext
  7601. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7602. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7603. # Insert the option either (1) after the last *FLAGS variable, or
  7604. # (2) before a word containing "conftest.", or (3) at the end.
  7605. # Note that $ac_compile itself does not contain backslashes and begins
  7606. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7607. # The option is referenced via a variable to avoid confusing sed.
  7608. lt_compile=`echo "$ac_compile" | $SED \
  7609. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7610. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7611. -e 's:$: $lt_compiler_flag:'`
  7612. (eval echo "\"\$as_me:8708: $lt_compile\"" >&5)
  7613. (eval "$lt_compile" 2>conftest.err)
  7614. ac_status=$?
  7615. cat conftest.err >&5
  7616. echo "$as_me:8712: \$? = $ac_status" >&5
  7617. if (exit $ac_status) && test -s "$ac_outfile"; then
  7618. # The compiler can only warn and ignore the option if not recognized
  7619. # So say no if there are warnings other than the usual output.
  7620. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7621. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7622. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7623. lt_cv_prog_compiler_pic_works=yes
  7624. fi
  7625. fi
  7626. $RM conftest*
  7627. fi
  7628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7629. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7630. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7631. case $lt_prog_compiler_pic in
  7632. "" | " "*) ;;
  7633. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7634. esac
  7635. else
  7636. lt_prog_compiler_pic=
  7637. lt_prog_compiler_can_build_shared=no
  7638. fi
  7639. fi
  7640. #
  7641. # Check to make sure the static flag actually works.
  7642. #
  7643. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7645. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7646. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  7647. $as_echo_n "(cached) " >&6
  7648. else
  7649. lt_cv_prog_compiler_static_works=no
  7650. save_LDFLAGS="$LDFLAGS"
  7651. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7652. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7653. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7654. # The linker can only warn and ignore the option if not recognized
  7655. # So say no if there are warnings
  7656. if test -s conftest.err; then
  7657. # Append any errors to the config.log.
  7658. cat conftest.err 1>&5
  7659. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  7660. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7661. if diff conftest.exp conftest.er2 >/dev/null; then
  7662. lt_cv_prog_compiler_static_works=yes
  7663. fi
  7664. else
  7665. lt_cv_prog_compiler_static_works=yes
  7666. fi
  7667. fi
  7668. $RM -r conftest*
  7669. LDFLAGS="$save_LDFLAGS"
  7670. fi
  7671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7672. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7673. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7674. :
  7675. else
  7676. lt_prog_compiler_static=
  7677. fi
  7678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7679. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7680. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7681. $as_echo_n "(cached) " >&6
  7682. else
  7683. lt_cv_prog_compiler_c_o=no
  7684. $RM -r conftest 2>/dev/null
  7685. mkdir conftest
  7686. cd conftest
  7687. mkdir out
  7688. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7689. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7690. # Insert the option either (1) after the last *FLAGS variable, or
  7691. # (2) before a word containing "conftest.", or (3) at the end.
  7692. # Note that $ac_compile itself does not contain backslashes and begins
  7693. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7694. lt_compile=`echo "$ac_compile" | $SED \
  7695. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7696. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7697. -e 's:$: $lt_compiler_flag:'`
  7698. (eval echo "\"\$as_me:8813: $lt_compile\"" >&5)
  7699. (eval "$lt_compile" 2>out/conftest.err)
  7700. ac_status=$?
  7701. cat out/conftest.err >&5
  7702. echo "$as_me:8817: \$? = $ac_status" >&5
  7703. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7704. then
  7705. # The compiler can only warn and ignore the option if not recognized
  7706. # So say no if there are warnings
  7707. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7708. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7709. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7710. lt_cv_prog_compiler_c_o=yes
  7711. fi
  7712. fi
  7713. chmod u+w . 2>&5
  7714. $RM conftest*
  7715. # SGI C++ compiler will create directory out/ii_files/ for
  7716. # template instantiation
  7717. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7718. $RM out/* && rmdir out
  7719. cd ..
  7720. $RM -r conftest
  7721. $RM conftest*
  7722. fi
  7723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7724. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7726. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7727. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7728. $as_echo_n "(cached) " >&6
  7729. else
  7730. lt_cv_prog_compiler_c_o=no
  7731. $RM -r conftest 2>/dev/null
  7732. mkdir conftest
  7733. cd conftest
  7734. mkdir out
  7735. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7736. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7737. # Insert the option either (1) after the last *FLAGS variable, or
  7738. # (2) before a word containing "conftest.", or (3) at the end.
  7739. # Note that $ac_compile itself does not contain backslashes and begins
  7740. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7741. lt_compile=`echo "$ac_compile" | $SED \
  7742. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7743. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7744. -e 's:$: $lt_compiler_flag:'`
  7745. (eval echo "\"\$as_me:8868: $lt_compile\"" >&5)
  7746. (eval "$lt_compile" 2>out/conftest.err)
  7747. ac_status=$?
  7748. cat out/conftest.err >&5
  7749. echo "$as_me:8872: \$? = $ac_status" >&5
  7750. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7751. then
  7752. # The compiler can only warn and ignore the option if not recognized
  7753. # So say no if there are warnings
  7754. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7755. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7756. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7757. lt_cv_prog_compiler_c_o=yes
  7758. fi
  7759. fi
  7760. chmod u+w . 2>&5
  7761. $RM conftest*
  7762. # SGI C++ compiler will create directory out/ii_files/ for
  7763. # template instantiation
  7764. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7765. $RM out/* && rmdir out
  7766. cd ..
  7767. $RM -r conftest
  7768. $RM conftest*
  7769. fi
  7770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7771. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7772. hard_links="nottested"
  7773. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7774. # do not overwrite the value of need_locks provided by the user
  7775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7776. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7777. hard_links=yes
  7778. $RM conftest*
  7779. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7780. touch conftest.a
  7781. ln conftest.a conftest.b 2>&5 || hard_links=no
  7782. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7784. $as_echo "$hard_links" >&6; }
  7785. if test "$hard_links" = no; then
  7786. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7787. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7788. need_locks=warn
  7789. fi
  7790. else
  7791. need_locks=no
  7792. fi
  7793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7794. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7795. runpath_var=
  7796. allow_undefined_flag=
  7797. always_export_symbols=no
  7798. archive_cmds=
  7799. archive_expsym_cmds=
  7800. compiler_needs_object=no
  7801. enable_shared_with_static_runtimes=no
  7802. export_dynamic_flag_spec=
  7803. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7804. hardcode_automatic=no
  7805. hardcode_direct=no
  7806. hardcode_direct_absolute=no
  7807. hardcode_libdir_flag_spec=
  7808. hardcode_libdir_flag_spec_ld=
  7809. hardcode_libdir_separator=
  7810. hardcode_minus_L=no
  7811. hardcode_shlibpath_var=unsupported
  7812. inherit_rpath=no
  7813. link_all_deplibs=unknown
  7814. module_cmds=
  7815. module_expsym_cmds=
  7816. old_archive_from_new_cmds=
  7817. old_archive_from_expsyms_cmds=
  7818. thread_safe_flag_spec=
  7819. whole_archive_flag_spec=
  7820. # include_expsyms should be a list of space-separated symbols to be *always*
  7821. # included in the symbol list
  7822. include_expsyms=
  7823. # exclude_expsyms can be an extended regexp of symbols to exclude
  7824. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7825. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7826. # as well as any symbol that contains `d'.
  7827. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7828. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7829. # platforms (ab)use it in PIC code, but their linkers get confused if
  7830. # the symbol is explicitly referenced. Since portable code cannot
  7831. # rely on this symbol name, it's probably fine to never include it in
  7832. # preloaded symbol tables.
  7833. # Exclude shared library initialization/finalization symbols.
  7834. extract_expsyms_cmds=
  7835. case $host_os in
  7836. cygwin* | mingw* | pw32* | cegcc*)
  7837. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7838. # When not using gcc, we currently assume that we are using
  7839. # Microsoft Visual C++.
  7840. if test "$GCC" != yes; then
  7841. with_gnu_ld=no
  7842. fi
  7843. ;;
  7844. interix*)
  7845. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7846. with_gnu_ld=yes
  7847. ;;
  7848. openbsd*)
  7849. with_gnu_ld=no
  7850. ;;
  7851. linux* | k*bsd*-gnu)
  7852. link_all_deplibs=no
  7853. ;;
  7854. esac
  7855. ld_shlibs=yes
  7856. if test "$with_gnu_ld" = yes; then
  7857. # If archive_cmds runs LD, not CC, wlarc should be empty
  7858. wlarc='${wl}'
  7859. # Set some defaults for GNU ld with shared library support. These
  7860. # are reset later if shared libraries are not supported. Putting them
  7861. # here allows them to be overridden if necessary.
  7862. runpath_var=LD_RUN_PATH
  7863. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7864. export_dynamic_flag_spec='${wl}--export-dynamic'
  7865. # ancient GNU ld didn't support --whole-archive et. al.
  7866. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7867. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7868. else
  7869. whole_archive_flag_spec=
  7870. fi
  7871. supports_anon_versioning=no
  7872. case `$LD -v 2>&1` in
  7873. *GNU\ gold*) supports_anon_versioning=yes ;;
  7874. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7875. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7876. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7877. *\ 2.11.*) ;; # other 2.11 versions
  7878. *) supports_anon_versioning=yes ;;
  7879. esac
  7880. # See if GNU ld supports shared libraries.
  7881. case $host_os in
  7882. aix[3-9]*)
  7883. # On AIX/PPC, the GNU linker is very broken
  7884. if test "$host_cpu" != ia64; then
  7885. ld_shlibs=no
  7886. cat <<_LT_EOF 1>&2
  7887. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  7888. *** to be unable to reliably create shared libraries on AIX.
  7889. *** Therefore, libtool is disabling shared libraries support. If you
  7890. *** really care for shared libraries, you may want to modify your PATH
  7891. *** so that a non-GNU linker is found, and then restart.
  7892. _LT_EOF
  7893. fi
  7894. ;;
  7895. amigaos*)
  7896. case $host_cpu in
  7897. powerpc)
  7898. # see comment about AmigaOS4 .so support
  7899. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7900. archive_expsym_cmds=''
  7901. ;;
  7902. m68k)
  7903. 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)'
  7904. hardcode_libdir_flag_spec='-L$libdir'
  7905. hardcode_minus_L=yes
  7906. ;;
  7907. esac
  7908. ;;
  7909. beos*)
  7910. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7911. allow_undefined_flag=unsupported
  7912. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7913. # support --undefined. This deserves some investigation. FIXME
  7914. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7915. else
  7916. ld_shlibs=no
  7917. fi
  7918. ;;
  7919. cygwin* | mingw* | pw32* | cegcc*)
  7920. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7921. # as there is no search path for DLLs.
  7922. hardcode_libdir_flag_spec='-L$libdir'
  7923. allow_undefined_flag=unsupported
  7924. always_export_symbols=no
  7925. enable_shared_with_static_runtimes=yes
  7926. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7927. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7928. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7929. # If the export-symbols file already is a .def file (1st line
  7930. # is EXPORTS), use it as is; otherwise, prepend...
  7931. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7932. cp $export_symbols $output_objdir/$soname.def;
  7933. else
  7934. echo EXPORTS > $output_objdir/$soname.def;
  7935. cat $export_symbols >> $output_objdir/$soname.def;
  7936. fi~
  7937. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7938. else
  7939. ld_shlibs=no
  7940. fi
  7941. ;;
  7942. interix[3-9]*)
  7943. hardcode_direct=no
  7944. hardcode_shlibpath_var=no
  7945. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7946. export_dynamic_flag_spec='${wl}-E'
  7947. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7948. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7949. # default) and relocated if they conflict, which is a slow very memory
  7950. # consuming and fragmenting process. To avoid this, we pick a random,
  7951. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7952. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7953. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7954. 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'
  7955. ;;
  7956. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7957. tmp_diet=no
  7958. if test "$host_os" = linux-dietlibc; then
  7959. case $cc_basename in
  7960. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7961. esac
  7962. fi
  7963. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7964. && test "$tmp_diet" = no
  7965. then
  7966. tmp_addflag=
  7967. tmp_sharedflag='-shared'
  7968. case $cc_basename,$host_cpu in
  7969. pgcc*) # Portland Group C compiler
  7970. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7971. tmp_addflag=' $pic_flag'
  7972. ;;
  7973. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  7974. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7975. tmp_addflag=' $pic_flag -Mnomain' ;;
  7976. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7977. tmp_addflag=' -i_dynamic' ;;
  7978. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7979. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7980. ifc* | ifort*) # Intel Fortran compiler
  7981. tmp_addflag=' -nofor_main' ;;
  7982. lf95*) # Lahey Fortran 8.1
  7983. whole_archive_flag_spec=
  7984. tmp_sharedflag='--shared' ;;
  7985. xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7986. tmp_sharedflag='-qmkshrobj'
  7987. tmp_addflag= ;;
  7988. esac
  7989. case `$CC -V 2>&1 | sed 5q` in
  7990. *Sun\ C*) # Sun C 5.9
  7991. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7992. compiler_needs_object=yes
  7993. tmp_sharedflag='-G' ;;
  7994. *Sun\ F*) # Sun Fortran 8.3
  7995. tmp_sharedflag='-G' ;;
  7996. esac
  7997. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7998. if test "x$supports_anon_versioning" = xyes; then
  7999. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8000. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8001. echo "local: *; };" >> $output_objdir/$libname.ver~
  8002. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8003. fi
  8004. case $cc_basename in
  8005. xlf*)
  8006. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8007. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8008. hardcode_libdir_flag_spec=
  8009. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8010. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8011. if test "x$supports_anon_versioning" = xyes; then
  8012. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8013. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8014. echo "local: *; };" >> $output_objdir/$libname.ver~
  8015. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8016. fi
  8017. ;;
  8018. esac
  8019. else
  8020. ld_shlibs=no
  8021. fi
  8022. ;;
  8023. netbsd* | netbsdelf*-gnu)
  8024. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8025. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8026. wlarc=
  8027. else
  8028. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8029. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8030. fi
  8031. ;;
  8032. solaris*)
  8033. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8034. ld_shlibs=no
  8035. cat <<_LT_EOF 1>&2
  8036. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8037. *** create shared libraries on Solaris systems. Therefore, libtool
  8038. *** is disabling shared libraries support. We urge you to upgrade GNU
  8039. *** binutils to release 2.9.1 or newer. Another option is to modify
  8040. *** your PATH or compiler configuration so that the native linker is
  8041. *** used, and then restart.
  8042. _LT_EOF
  8043. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8044. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8045. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8046. else
  8047. ld_shlibs=no
  8048. fi
  8049. ;;
  8050. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8051. case `$LD -v 2>&1` in
  8052. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8053. ld_shlibs=no
  8054. cat <<_LT_EOF 1>&2
  8055. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8056. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8057. *** is disabling shared libraries support. We urge you to upgrade GNU
  8058. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8059. *** your PATH or compiler configuration so that the native linker is
  8060. *** used, and then restart.
  8061. _LT_EOF
  8062. ;;
  8063. *)
  8064. # For security reasons, it is highly recommended that you always
  8065. # use absolute paths for naming shared libraries, and exclude the
  8066. # DT_RUNPATH tag from executables and libraries. But doing so
  8067. # requires that you compile everything twice, which is a pain.
  8068. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8069. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8070. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8071. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8072. else
  8073. ld_shlibs=no
  8074. fi
  8075. ;;
  8076. esac
  8077. ;;
  8078. sunos4*)
  8079. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8080. wlarc=
  8081. hardcode_direct=yes
  8082. hardcode_shlibpath_var=no
  8083. ;;
  8084. *)
  8085. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8086. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8087. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8088. else
  8089. ld_shlibs=no
  8090. fi
  8091. ;;
  8092. esac
  8093. if test "$ld_shlibs" = no; then
  8094. runpath_var=
  8095. hardcode_libdir_flag_spec=
  8096. export_dynamic_flag_spec=
  8097. whole_archive_flag_spec=
  8098. fi
  8099. else
  8100. # PORTME fill in a description of your system's linker (not GNU ld)
  8101. case $host_os in
  8102. aix3*)
  8103. allow_undefined_flag=unsupported
  8104. always_export_symbols=yes
  8105. 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'
  8106. # Note: this linker hardcodes the directories in LIBPATH if there
  8107. # are no directories specified by -L.
  8108. hardcode_minus_L=yes
  8109. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8110. # Neither direct hardcoding nor static linking is supported with a
  8111. # broken collect2.
  8112. hardcode_direct=unsupported
  8113. fi
  8114. ;;
  8115. aix[4-9]*)
  8116. if test "$host_cpu" = ia64; then
  8117. # On IA64, the linker does run time linking by default, so we don't
  8118. # have to do anything special.
  8119. aix_use_runtimelinking=no
  8120. exp_sym_flag='-Bexport'
  8121. no_entry_flag=""
  8122. else
  8123. # If we're using GNU nm, then we don't want the "-C" option.
  8124. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8125. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8126. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8127. else
  8128. 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'
  8129. fi
  8130. aix_use_runtimelinking=no
  8131. # Test if we are trying to use run time linking or normal
  8132. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8133. # need to do runtime linking.
  8134. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8135. for ld_flag in $LDFLAGS; do
  8136. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8137. aix_use_runtimelinking=yes
  8138. break
  8139. fi
  8140. done
  8141. ;;
  8142. esac
  8143. exp_sym_flag='-bexport'
  8144. no_entry_flag='-bnoentry'
  8145. fi
  8146. # When large executables or shared objects are built, AIX ld can
  8147. # have problems creating the table of contents. If linking a library
  8148. # or program results in "error TOC overflow" add -mminimal-toc to
  8149. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8150. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8151. archive_cmds=''
  8152. hardcode_direct=yes
  8153. hardcode_direct_absolute=yes
  8154. hardcode_libdir_separator=':'
  8155. link_all_deplibs=yes
  8156. file_list_spec='${wl}-f,'
  8157. if test "$GCC" = yes; then
  8158. case $host_os in aix4.[012]|aix4.[012].*)
  8159. # We only want to do this on AIX 4.2 and lower, the check
  8160. # below for broken collect2 doesn't work under 4.3+
  8161. collect2name=`${CC} -print-prog-name=collect2`
  8162. if test -f "$collect2name" &&
  8163. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8164. then
  8165. # We have reworked collect2
  8166. :
  8167. else
  8168. # We have old collect2
  8169. hardcode_direct=unsupported
  8170. # It fails to find uninstalled libraries when the uninstalled
  8171. # path is not listed in the libpath. Setting hardcode_minus_L
  8172. # to unsupported forces relinking
  8173. hardcode_minus_L=yes
  8174. hardcode_libdir_flag_spec='-L$libdir'
  8175. hardcode_libdir_separator=
  8176. fi
  8177. ;;
  8178. esac
  8179. shared_flag='-shared'
  8180. if test "$aix_use_runtimelinking" = yes; then
  8181. shared_flag="$shared_flag "'${wl}-G'
  8182. fi
  8183. link_all_deplibs=no
  8184. else
  8185. # not using gcc
  8186. if test "$host_cpu" = ia64; then
  8187. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8188. # chokes on -Wl,-G. The following line is correct:
  8189. shared_flag='-G'
  8190. else
  8191. if test "$aix_use_runtimelinking" = yes; then
  8192. shared_flag='${wl}-G'
  8193. else
  8194. shared_flag='${wl}-bM:SRE'
  8195. fi
  8196. fi
  8197. fi
  8198. export_dynamic_flag_spec='${wl}-bexpall'
  8199. # It seems that -bexpall does not export symbols beginning with
  8200. # underscore (_), so it is better to generate a list of symbols to export.
  8201. always_export_symbols=yes
  8202. if test "$aix_use_runtimelinking" = yes; then
  8203. # Warning - without using the other runtime loading flags (-brtl),
  8204. # -berok will link without error, but may produce a broken library.
  8205. allow_undefined_flag='-berok'
  8206. # Determine the default libpath from the value encoded in an
  8207. # empty executable.
  8208. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8209. /* end confdefs.h. */
  8210. int
  8211. main ()
  8212. {
  8213. ;
  8214. return 0;
  8215. }
  8216. _ACEOF
  8217. if ac_fn_c_try_link "$LINENO"; then :
  8218. lt_aix_libpath_sed='
  8219. /Import File Strings/,/^$/ {
  8220. /^0/ {
  8221. s/^0 *\(.*\)$/\1/
  8222. p
  8223. }
  8224. }'
  8225. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8226. # Check for a 64-bit object if we didn't find anything.
  8227. if test -z "$aix_libpath"; then
  8228. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8229. fi
  8230. fi
  8231. rm -f core conftest.err conftest.$ac_objext \
  8232. conftest$ac_exeext conftest.$ac_ext
  8233. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8234. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8235. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8236. else
  8237. if test "$host_cpu" = ia64; then
  8238. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8239. allow_undefined_flag="-z nodefs"
  8240. 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"
  8241. else
  8242. # Determine the default libpath from the value encoded in an
  8243. # empty executable.
  8244. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8245. /* end confdefs.h. */
  8246. int
  8247. main ()
  8248. {
  8249. ;
  8250. return 0;
  8251. }
  8252. _ACEOF
  8253. if ac_fn_c_try_link "$LINENO"; then :
  8254. lt_aix_libpath_sed='
  8255. /Import File Strings/,/^$/ {
  8256. /^0/ {
  8257. s/^0 *\(.*\)$/\1/
  8258. p
  8259. }
  8260. }'
  8261. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8262. # Check for a 64-bit object if we didn't find anything.
  8263. if test -z "$aix_libpath"; then
  8264. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8265. fi
  8266. fi
  8267. rm -f core conftest.err conftest.$ac_objext \
  8268. conftest$ac_exeext conftest.$ac_ext
  8269. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8270. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8271. # Warning - without using the other run time loading flags,
  8272. # -berok will link without error, but may produce a broken library.
  8273. no_undefined_flag=' ${wl}-bernotok'
  8274. allow_undefined_flag=' ${wl}-berok'
  8275. # Exported symbols can be pulled into shared objects from archives
  8276. whole_archive_flag_spec='$convenience'
  8277. archive_cmds_need_lc=yes
  8278. # This is similar to how AIX traditionally builds its shared libraries.
  8279. 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'
  8280. fi
  8281. fi
  8282. ;;
  8283. amigaos*)
  8284. case $host_cpu in
  8285. powerpc)
  8286. # see comment about AmigaOS4 .so support
  8287. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8288. archive_expsym_cmds=''
  8289. ;;
  8290. m68k)
  8291. 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)'
  8292. hardcode_libdir_flag_spec='-L$libdir'
  8293. hardcode_minus_L=yes
  8294. ;;
  8295. esac
  8296. ;;
  8297. bsdi[45]*)
  8298. export_dynamic_flag_spec=-rdynamic
  8299. ;;
  8300. cygwin* | mingw* | pw32* | cegcc*)
  8301. # When not using gcc, we currently assume that we are using
  8302. # Microsoft Visual C++.
  8303. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8304. # no search path for DLLs.
  8305. hardcode_libdir_flag_spec=' '
  8306. allow_undefined_flag=unsupported
  8307. # Tell ltmain to make .lib files, not .a files.
  8308. libext=lib
  8309. # Tell ltmain to make .dll files, not .so files.
  8310. shrext_cmds=".dll"
  8311. # FIXME: Setting linknames here is a bad hack.
  8312. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  8313. # The linker will automatically build a .lib file if we build a DLL.
  8314. old_archive_from_new_cmds='true'
  8315. # FIXME: Should let the user specify the lib program.
  8316. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8317. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8318. enable_shared_with_static_runtimes=yes
  8319. ;;
  8320. darwin* | rhapsody*)
  8321. archive_cmds_need_lc=no
  8322. hardcode_direct=no
  8323. hardcode_automatic=yes
  8324. hardcode_shlibpath_var=unsupported
  8325. whole_archive_flag_spec=''
  8326. link_all_deplibs=yes
  8327. allow_undefined_flag="$_lt_dar_allow_undefined"
  8328. case $cc_basename in
  8329. ifort*) _lt_dar_can_shared=yes ;;
  8330. *) _lt_dar_can_shared=$GCC ;;
  8331. esac
  8332. if test "$_lt_dar_can_shared" = "yes"; then
  8333. output_verbose_link_cmd=echo
  8334. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8335. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8336. 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}"
  8337. 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}"
  8338. else
  8339. ld_shlibs=no
  8340. fi
  8341. ;;
  8342. dgux*)
  8343. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8344. hardcode_libdir_flag_spec='-L$libdir'
  8345. hardcode_shlibpath_var=no
  8346. ;;
  8347. freebsd1*)
  8348. ld_shlibs=no
  8349. ;;
  8350. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8351. # support. Future versions do this automatically, but an explicit c++rt0.o
  8352. # does not break anything, and helps significantly (at the cost of a little
  8353. # extra space).
  8354. freebsd2.2*)
  8355. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8356. hardcode_libdir_flag_spec='-R$libdir'
  8357. hardcode_direct=yes
  8358. hardcode_shlibpath_var=no
  8359. ;;
  8360. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8361. freebsd2*)
  8362. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8363. hardcode_direct=yes
  8364. hardcode_minus_L=yes
  8365. hardcode_shlibpath_var=no
  8366. ;;
  8367. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8368. freebsd* | dragonfly*)
  8369. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8370. hardcode_libdir_flag_spec='-R$libdir'
  8371. hardcode_direct=yes
  8372. hardcode_shlibpath_var=no
  8373. ;;
  8374. hpux9*)
  8375. if test "$GCC" = yes; then
  8376. archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8377. else
  8378. 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'
  8379. fi
  8380. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8381. hardcode_libdir_separator=:
  8382. hardcode_direct=yes
  8383. # hardcode_minus_L: Not really in the search PATH,
  8384. # but as the default location of the library.
  8385. hardcode_minus_L=yes
  8386. export_dynamic_flag_spec='${wl}-E'
  8387. ;;
  8388. hpux10*)
  8389. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8390. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8391. else
  8392. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8393. fi
  8394. if test "$with_gnu_ld" = no; then
  8395. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8396. hardcode_libdir_flag_spec_ld='+b $libdir'
  8397. hardcode_libdir_separator=:
  8398. hardcode_direct=yes
  8399. hardcode_direct_absolute=yes
  8400. export_dynamic_flag_spec='${wl}-E'
  8401. # hardcode_minus_L: Not really in the search PATH,
  8402. # but as the default location of the library.
  8403. hardcode_minus_L=yes
  8404. fi
  8405. ;;
  8406. hpux11*)
  8407. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8408. case $host_cpu in
  8409. hppa*64*)
  8410. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8411. ;;
  8412. ia64*)
  8413. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8414. ;;
  8415. *)
  8416. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8417. ;;
  8418. esac
  8419. else
  8420. case $host_cpu in
  8421. hppa*64*)
  8422. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8423. ;;
  8424. ia64*)
  8425. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8426. ;;
  8427. *)
  8428. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8429. ;;
  8430. esac
  8431. fi
  8432. if test "$with_gnu_ld" = no; then
  8433. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8434. hardcode_libdir_separator=:
  8435. case $host_cpu in
  8436. hppa*64*|ia64*)
  8437. hardcode_direct=no
  8438. hardcode_shlibpath_var=no
  8439. ;;
  8440. *)
  8441. hardcode_direct=yes
  8442. hardcode_direct_absolute=yes
  8443. export_dynamic_flag_spec='${wl}-E'
  8444. # hardcode_minus_L: Not really in the search PATH,
  8445. # but as the default location of the library.
  8446. hardcode_minus_L=yes
  8447. ;;
  8448. esac
  8449. fi
  8450. ;;
  8451. irix5* | irix6* | nonstopux*)
  8452. if test "$GCC" = yes; then
  8453. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8454. # Try to use the -exported_symbol ld option, if it does not
  8455. # work, assume that -exports_file does not work either and
  8456. # implicitly export all symbols.
  8457. save_LDFLAGS="$LDFLAGS"
  8458. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8459. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8460. /* end confdefs.h. */
  8461. int foo(void) {}
  8462. _ACEOF
  8463. if ac_fn_c_try_link "$LINENO"; then :
  8464. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  8465. fi
  8466. rm -f core conftest.err conftest.$ac_objext \
  8467. conftest$ac_exeext conftest.$ac_ext
  8468. LDFLAGS="$save_LDFLAGS"
  8469. else
  8470. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8471. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  8472. fi
  8473. archive_cmds_need_lc='no'
  8474. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8475. hardcode_libdir_separator=:
  8476. inherit_rpath=yes
  8477. link_all_deplibs=yes
  8478. ;;
  8479. netbsd* | netbsdelf*-gnu)
  8480. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8481. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8482. else
  8483. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8484. fi
  8485. hardcode_libdir_flag_spec='-R$libdir'
  8486. hardcode_direct=yes
  8487. hardcode_shlibpath_var=no
  8488. ;;
  8489. newsos6)
  8490. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8491. hardcode_direct=yes
  8492. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8493. hardcode_libdir_separator=:
  8494. hardcode_shlibpath_var=no
  8495. ;;
  8496. *nto* | *qnx*)
  8497. ;;
  8498. openbsd*)
  8499. if test -f /usr/libexec/ld.so; then
  8500. hardcode_direct=yes
  8501. hardcode_shlibpath_var=no
  8502. hardcode_direct_absolute=yes
  8503. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8504. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8505. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8506. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8507. export_dynamic_flag_spec='${wl}-E'
  8508. else
  8509. case $host_os in
  8510. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8511. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8512. hardcode_libdir_flag_spec='-R$libdir'
  8513. ;;
  8514. *)
  8515. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8516. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8517. ;;
  8518. esac
  8519. fi
  8520. else
  8521. ld_shlibs=no
  8522. fi
  8523. ;;
  8524. os2*)
  8525. hardcode_libdir_flag_spec='-L$libdir'
  8526. hardcode_minus_L=yes
  8527. allow_undefined_flag=unsupported
  8528. 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'
  8529. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8530. ;;
  8531. osf3*)
  8532. if test "$GCC" = yes; then
  8533. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8534. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8535. else
  8536. allow_undefined_flag=' -expect_unresolved \*'
  8537. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8538. fi
  8539. archive_cmds_need_lc='no'
  8540. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8541. hardcode_libdir_separator=:
  8542. ;;
  8543. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8544. if test "$GCC" = yes; then
  8545. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8546. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8547. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8548. else
  8549. allow_undefined_flag=' -expect_unresolved \*'
  8550. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8551. 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~
  8552. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  8553. # Both c and cxx compiler support -rpath directly
  8554. hardcode_libdir_flag_spec='-rpath $libdir'
  8555. fi
  8556. archive_cmds_need_lc='no'
  8557. hardcode_libdir_separator=:
  8558. ;;
  8559. solaris*)
  8560. no_undefined_flag=' -z defs'
  8561. if test "$GCC" = yes; then
  8562. wlarc='${wl}'
  8563. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8564. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8565. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8566. else
  8567. case `$CC -V 2>&1` in
  8568. *"Compilers 5.0"*)
  8569. wlarc=''
  8570. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8571. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8572. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8573. ;;
  8574. *)
  8575. wlarc='${wl}'
  8576. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8577. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8578. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8579. ;;
  8580. esac
  8581. fi
  8582. hardcode_libdir_flag_spec='-R$libdir'
  8583. hardcode_shlibpath_var=no
  8584. case $host_os in
  8585. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8586. *)
  8587. # The compiler driver will combine and reorder linker options,
  8588. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8589. # but is careful enough not to reorder.
  8590. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8591. if test "$GCC" = yes; then
  8592. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8593. else
  8594. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8595. fi
  8596. ;;
  8597. esac
  8598. link_all_deplibs=yes
  8599. ;;
  8600. sunos4*)
  8601. if test "x$host_vendor" = xsequent; then
  8602. # Use $CC to link under sequent, because it throws in some extra .o
  8603. # files that make .init and .fini sections work.
  8604. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8605. else
  8606. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8607. fi
  8608. hardcode_libdir_flag_spec='-L$libdir'
  8609. hardcode_direct=yes
  8610. hardcode_minus_L=yes
  8611. hardcode_shlibpath_var=no
  8612. ;;
  8613. sysv4)
  8614. case $host_vendor in
  8615. sni)
  8616. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8617. hardcode_direct=yes # is this really true???
  8618. ;;
  8619. siemens)
  8620. ## LD is ld it makes a PLAMLIB
  8621. ## CC just makes a GrossModule.
  8622. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8623. reload_cmds='$CC -r -o $output$reload_objs'
  8624. hardcode_direct=no
  8625. ;;
  8626. motorola)
  8627. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8628. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8629. ;;
  8630. esac
  8631. runpath_var='LD_RUN_PATH'
  8632. hardcode_shlibpath_var=no
  8633. ;;
  8634. sysv4.3*)
  8635. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8636. hardcode_shlibpath_var=no
  8637. export_dynamic_flag_spec='-Bexport'
  8638. ;;
  8639. sysv4*MP*)
  8640. if test -d /usr/nec; then
  8641. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8642. hardcode_shlibpath_var=no
  8643. runpath_var=LD_RUN_PATH
  8644. hardcode_runpath_var=yes
  8645. ld_shlibs=yes
  8646. fi
  8647. ;;
  8648. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8649. no_undefined_flag='${wl}-z,text'
  8650. archive_cmds_need_lc=no
  8651. hardcode_shlibpath_var=no
  8652. runpath_var='LD_RUN_PATH'
  8653. if test "$GCC" = yes; then
  8654. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8655. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8656. else
  8657. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8658. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8659. fi
  8660. ;;
  8661. sysv5* | sco3.2v5* | sco5v6*)
  8662. # Note: We can NOT use -z defs as we might desire, because we do not
  8663. # link with -lc, and that would cause any symbols used from libc to
  8664. # always be unresolved, which means just about no library would
  8665. # ever link correctly. If we're not using GNU ld we use -z text
  8666. # though, which does catch some bad symbols but isn't as heavy-handed
  8667. # as -z defs.
  8668. no_undefined_flag='${wl}-z,text'
  8669. allow_undefined_flag='${wl}-z,nodefs'
  8670. archive_cmds_need_lc=no
  8671. hardcode_shlibpath_var=no
  8672. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8673. hardcode_libdir_separator=':'
  8674. link_all_deplibs=yes
  8675. export_dynamic_flag_spec='${wl}-Bexport'
  8676. runpath_var='LD_RUN_PATH'
  8677. if test "$GCC" = yes; then
  8678. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8679. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8680. else
  8681. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8682. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8683. fi
  8684. ;;
  8685. uts4*)
  8686. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8687. hardcode_libdir_flag_spec='-L$libdir'
  8688. hardcode_shlibpath_var=no
  8689. ;;
  8690. *)
  8691. ld_shlibs=no
  8692. ;;
  8693. esac
  8694. if test x$host_vendor = xsni; then
  8695. case $host in
  8696. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8697. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8698. ;;
  8699. esac
  8700. fi
  8701. fi
  8702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8703. $as_echo "$ld_shlibs" >&6; }
  8704. test "$ld_shlibs" = no && can_build_shared=no
  8705. with_gnu_ld=$with_gnu_ld
  8706. #
  8707. # Do we need to explicitly link libc?
  8708. #
  8709. case "x$archive_cmds_need_lc" in
  8710. x|xyes)
  8711. # Assume -lc should be added
  8712. archive_cmds_need_lc=yes
  8713. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8714. case $archive_cmds in
  8715. *'~'*)
  8716. # FIXME: we may have to deal with multi-command sequences.
  8717. ;;
  8718. '$CC '*)
  8719. # Test whether the compiler implicitly links with -lc since on some
  8720. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8721. # to ld, don't add -lc before -lgcc.
  8722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8723. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8724. $RM conftest*
  8725. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8726. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8727. (eval $ac_compile) 2>&5
  8728. ac_status=$?
  8729. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8730. test $ac_status = 0; } 2>conftest.err; then
  8731. soname=conftest
  8732. lib=conftest
  8733. libobjs=conftest.$ac_objext
  8734. deplibs=
  8735. wl=$lt_prog_compiler_wl
  8736. pic_flag=$lt_prog_compiler_pic
  8737. compiler_flags=-v
  8738. linker_flags=-v
  8739. verstring=
  8740. output_objdir=.
  8741. libname=conftest
  8742. lt_save_allow_undefined_flag=$allow_undefined_flag
  8743. allow_undefined_flag=
  8744. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8745. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8746. ac_status=$?
  8747. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8748. test $ac_status = 0; }
  8749. then
  8750. archive_cmds_need_lc=no
  8751. else
  8752. archive_cmds_need_lc=yes
  8753. fi
  8754. allow_undefined_flag=$lt_save_allow_undefined_flag
  8755. else
  8756. cat conftest.err 1>&5
  8757. fi
  8758. $RM conftest*
  8759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  8760. $as_echo "$archive_cmds_need_lc" >&6; }
  8761. ;;
  8762. esac
  8763. fi
  8764. ;;
  8765. esac
  8766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8767. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8768. if test "$GCC" = yes; then
  8769. case $host_os in
  8770. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8771. *) lt_awk_arg="/^libraries:/" ;;
  8772. esac
  8773. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8774. if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  8775. # if the path contains ";" then we assume it to be the separator
  8776. # otherwise default to the standard path separator (i.e. ":") - it is
  8777. # assumed that no part of a normal pathname contains ";" but that should
  8778. # okay in the real world where ";" in dirpaths is itself problematic.
  8779. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  8780. else
  8781. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8782. fi
  8783. # Ok, now we have the path, separated by spaces, we can step through it
  8784. # and add multilib dir if necessary.
  8785. lt_tmp_lt_search_path_spec=
  8786. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8787. for lt_sys_path in $lt_search_path_spec; do
  8788. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8789. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8790. else
  8791. test -d "$lt_sys_path" && \
  8792. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8793. fi
  8794. done
  8795. lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  8796. BEGIN {RS=" "; FS="/|\n";} {
  8797. lt_foo="";
  8798. lt_count=0;
  8799. for (lt_i = NF; lt_i > 0; lt_i--) {
  8800. if ($lt_i != "" && $lt_i != ".") {
  8801. if ($lt_i == "..") {
  8802. lt_count++;
  8803. } else {
  8804. if (lt_count == 0) {
  8805. lt_foo="/" $lt_i lt_foo;
  8806. } else {
  8807. lt_count--;
  8808. }
  8809. }
  8810. }
  8811. }
  8812. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8813. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8814. }'`
  8815. sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  8816. else
  8817. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8818. fi
  8819. library_names_spec=
  8820. libname_spec='lib$name'
  8821. soname_spec=
  8822. shrext_cmds=".so"
  8823. postinstall_cmds=
  8824. postuninstall_cmds=
  8825. finish_cmds=
  8826. finish_eval=
  8827. shlibpath_var=
  8828. shlibpath_overrides_runpath=unknown
  8829. version_type=none
  8830. dynamic_linker="$host_os ld.so"
  8831. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8832. need_lib_prefix=unknown
  8833. hardcode_into_libs=no
  8834. # when you set need_version to no, make sure it does not cause -set_version
  8835. # flags to be left without arguments
  8836. need_version=unknown
  8837. case $host_os in
  8838. aix3*)
  8839. version_type=linux
  8840. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8841. shlibpath_var=LIBPATH
  8842. # AIX 3 has no versioning support, so we append a major version to the name.
  8843. soname_spec='${libname}${release}${shared_ext}$major'
  8844. ;;
  8845. aix[4-9]*)
  8846. version_type=linux
  8847. need_lib_prefix=no
  8848. need_version=no
  8849. hardcode_into_libs=yes
  8850. if test "$host_cpu" = ia64; then
  8851. # AIX 5 supports IA64
  8852. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8853. shlibpath_var=LD_LIBRARY_PATH
  8854. else
  8855. # With GCC up to 2.95.x, collect2 would create an import file
  8856. # for dependence libraries. The import file would start with
  8857. # the line `#! .'. This would cause the generated library to
  8858. # depend on `.', always an invalid library. This was fixed in
  8859. # development snapshots of GCC prior to 3.0.
  8860. case $host_os in
  8861. aix4 | aix4.[01] | aix4.[01].*)
  8862. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8863. echo ' yes '
  8864. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8865. :
  8866. else
  8867. can_build_shared=no
  8868. fi
  8869. ;;
  8870. esac
  8871. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8872. # soname into executable. Probably we can add versioning support to
  8873. # collect2, so additional links can be useful in future.
  8874. if test "$aix_use_runtimelinking" = yes; then
  8875. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8876. # instead of lib<name>.a to let people know that these are not
  8877. # typical AIX shared libraries.
  8878. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8879. else
  8880. # We preserve .a as extension for shared libraries through AIX4.2
  8881. # and later when we are not doing run time linking.
  8882. library_names_spec='${libname}${release}.a $libname.a'
  8883. soname_spec='${libname}${release}${shared_ext}$major'
  8884. fi
  8885. shlibpath_var=LIBPATH
  8886. fi
  8887. ;;
  8888. amigaos*)
  8889. case $host_cpu in
  8890. powerpc)
  8891. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8892. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8893. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8894. ;;
  8895. m68k)
  8896. library_names_spec='$libname.ixlibrary $libname.a'
  8897. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8898. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
  8899. ;;
  8900. esac
  8901. ;;
  8902. beos*)
  8903. library_names_spec='${libname}${shared_ext}'
  8904. dynamic_linker="$host_os ld.so"
  8905. shlibpath_var=LIBRARY_PATH
  8906. ;;
  8907. bsdi[45]*)
  8908. version_type=linux
  8909. need_version=no
  8910. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8911. soname_spec='${libname}${release}${shared_ext}$major'
  8912. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8913. shlibpath_var=LD_LIBRARY_PATH
  8914. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8915. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8916. # the default ld.so.conf also contains /usr/contrib/lib and
  8917. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8918. # libtool to hard-code these into programs
  8919. ;;
  8920. cygwin* | mingw* | pw32* | cegcc*)
  8921. version_type=windows
  8922. shrext_cmds=".dll"
  8923. need_version=no
  8924. need_lib_prefix=no
  8925. case $GCC,$host_os in
  8926. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8927. library_names_spec='$libname.dll.a'
  8928. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8929. postinstall_cmds='base_file=`basename \${file}`~
  8930. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8931. dldir=$destdir/`dirname \$dlpath`~
  8932. test -d \$dldir || mkdir -p \$dldir~
  8933. $install_prog $dir/$dlname \$dldir/$dlname~
  8934. chmod a+x \$dldir/$dlname~
  8935. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8936. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8937. fi'
  8938. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8939. dlpath=$dir/\$dldll~
  8940. $RM \$dlpath'
  8941. shlibpath_overrides_runpath=yes
  8942. case $host_os in
  8943. cygwin*)
  8944. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8945. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8946. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  8947. ;;
  8948. mingw* | cegcc*)
  8949. # MinGW DLLs use traditional 'lib' prefix
  8950. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8951. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8952. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8953. # It is most probably a Windows format PATH printed by
  8954. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  8955. # path with ; separators, and with drive letters. We can handle the
  8956. # drive letters (cygwin fileutils understands them), so leave them,
  8957. # especially as we might pass files found there to a mingw objdump,
  8958. # which wouldn't understand a cygwinified path. Ahh.
  8959. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8960. else
  8961. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8962. fi
  8963. ;;
  8964. pw32*)
  8965. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8966. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8967. ;;
  8968. esac
  8969. ;;
  8970. *)
  8971. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8972. ;;
  8973. esac
  8974. dynamic_linker='Win32 ld.exe'
  8975. # FIXME: first we should search . and the directory the executable is in
  8976. shlibpath_var=PATH
  8977. ;;
  8978. darwin* | rhapsody*)
  8979. dynamic_linker="$host_os dyld"
  8980. version_type=darwin
  8981. need_lib_prefix=no
  8982. need_version=no
  8983. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8984. soname_spec='${libname}${release}${major}$shared_ext'
  8985. shlibpath_overrides_runpath=yes
  8986. shlibpath_var=DYLD_LIBRARY_PATH
  8987. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8988. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8989. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8990. ;;
  8991. dgux*)
  8992. version_type=linux
  8993. need_lib_prefix=no
  8994. need_version=no
  8995. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8996. soname_spec='${libname}${release}${shared_ext}$major'
  8997. shlibpath_var=LD_LIBRARY_PATH
  8998. ;;
  8999. freebsd1*)
  9000. dynamic_linker=no
  9001. ;;
  9002. freebsd* | dragonfly*)
  9003. # DragonFly does not have aout. When/if they implement a new
  9004. # versioning mechanism, adjust this.
  9005. if test -x /usr/bin/objformat; then
  9006. objformat=`/usr/bin/objformat`
  9007. else
  9008. case $host_os in
  9009. freebsd[123]*) objformat=aout ;;
  9010. *) objformat=elf ;;
  9011. esac
  9012. fi
  9013. version_type=freebsd-$objformat
  9014. case $version_type in
  9015. freebsd-elf*)
  9016. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9017. need_version=no
  9018. need_lib_prefix=no
  9019. ;;
  9020. freebsd-*)
  9021. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9022. need_version=yes
  9023. ;;
  9024. esac
  9025. shlibpath_var=LD_LIBRARY_PATH
  9026. case $host_os in
  9027. freebsd2*)
  9028. shlibpath_overrides_runpath=yes
  9029. ;;
  9030. freebsd3.[01]* | freebsdelf3.[01]*)
  9031. shlibpath_overrides_runpath=yes
  9032. hardcode_into_libs=yes
  9033. ;;
  9034. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9035. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9036. shlibpath_overrides_runpath=no
  9037. hardcode_into_libs=yes
  9038. ;;
  9039. *) # from 4.6 on, and DragonFly
  9040. shlibpath_overrides_runpath=yes
  9041. hardcode_into_libs=yes
  9042. ;;
  9043. esac
  9044. ;;
  9045. gnu*)
  9046. version_type=linux
  9047. need_lib_prefix=no
  9048. need_version=no
  9049. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9050. soname_spec='${libname}${release}${shared_ext}$major'
  9051. shlibpath_var=LD_LIBRARY_PATH
  9052. hardcode_into_libs=yes
  9053. ;;
  9054. hpux9* | hpux10* | hpux11*)
  9055. # Give a soname corresponding to the major version so that dld.sl refuses to
  9056. # link against other versions.
  9057. version_type=sunos
  9058. need_lib_prefix=no
  9059. need_version=no
  9060. case $host_cpu in
  9061. ia64*)
  9062. shrext_cmds='.so'
  9063. hardcode_into_libs=yes
  9064. dynamic_linker="$host_os dld.so"
  9065. shlibpath_var=LD_LIBRARY_PATH
  9066. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9067. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9068. soname_spec='${libname}${release}${shared_ext}$major'
  9069. if test "X$HPUX_IA64_MODE" = X32; then
  9070. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9071. else
  9072. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9073. fi
  9074. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9075. ;;
  9076. hppa*64*)
  9077. shrext_cmds='.sl'
  9078. hardcode_into_libs=yes
  9079. dynamic_linker="$host_os dld.sl"
  9080. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9081. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9082. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9083. soname_spec='${libname}${release}${shared_ext}$major'
  9084. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9085. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9086. ;;
  9087. *)
  9088. shrext_cmds='.sl'
  9089. dynamic_linker="$host_os dld.sl"
  9090. shlibpath_var=SHLIB_PATH
  9091. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9092. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9093. soname_spec='${libname}${release}${shared_ext}$major'
  9094. ;;
  9095. esac
  9096. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  9097. postinstall_cmds='chmod 555 $lib'
  9098. ;;
  9099. interix[3-9]*)
  9100. version_type=linux
  9101. need_lib_prefix=no
  9102. need_version=no
  9103. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9104. soname_spec='${libname}${release}${shared_ext}$major'
  9105. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9106. shlibpath_var=LD_LIBRARY_PATH
  9107. shlibpath_overrides_runpath=no
  9108. hardcode_into_libs=yes
  9109. ;;
  9110. irix5* | irix6* | nonstopux*)
  9111. case $host_os in
  9112. nonstopux*) version_type=nonstopux ;;
  9113. *)
  9114. if test "$lt_cv_prog_gnu_ld" = yes; then
  9115. version_type=linux
  9116. else
  9117. version_type=irix
  9118. fi ;;
  9119. esac
  9120. need_lib_prefix=no
  9121. need_version=no
  9122. soname_spec='${libname}${release}${shared_ext}$major'
  9123. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9124. case $host_os in
  9125. irix5* | nonstopux*)
  9126. libsuff= shlibsuff=
  9127. ;;
  9128. *)
  9129. case $LD in # libtool.m4 will add one of these switches to LD
  9130. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9131. libsuff= shlibsuff= libmagic=32-bit;;
  9132. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9133. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9134. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9135. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9136. *) libsuff= shlibsuff= libmagic=never-match;;
  9137. esac
  9138. ;;
  9139. esac
  9140. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9141. shlibpath_overrides_runpath=no
  9142. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9143. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9144. hardcode_into_libs=yes
  9145. ;;
  9146. # No shared lib support for Linux oldld, aout, or coff.
  9147. linux*oldld* | linux*aout* | linux*coff*)
  9148. dynamic_linker=no
  9149. ;;
  9150. # This must be Linux ELF.
  9151. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9152. version_type=linux
  9153. need_lib_prefix=no
  9154. need_version=no
  9155. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9156. soname_spec='${libname}${release}${shared_ext}$major'
  9157. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9158. shlibpath_var=LD_LIBRARY_PATH
  9159. shlibpath_overrides_runpath=no
  9160. # Some binutils ld are patched to set DT_RUNPATH
  9161. save_LDFLAGS=$LDFLAGS
  9162. save_libdir=$libdir
  9163. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9164. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9165. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9166. /* end confdefs.h. */
  9167. int
  9168. main ()
  9169. {
  9170. ;
  9171. return 0;
  9172. }
  9173. _ACEOF
  9174. if ac_fn_c_try_link "$LINENO"; then :
  9175. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9176. shlibpath_overrides_runpath=yes
  9177. fi
  9178. fi
  9179. rm -f core conftest.err conftest.$ac_objext \
  9180. conftest$ac_exeext conftest.$ac_ext
  9181. LDFLAGS=$save_LDFLAGS
  9182. libdir=$save_libdir
  9183. # This implies no fast_install, which is unacceptable.
  9184. # Some rework will be needed to allow for fast_install
  9185. # before this can be enabled.
  9186. hardcode_into_libs=yes
  9187. # Append ld.so.conf contents to the search path
  9188. if test -f /etc/ld.so.conf; then
  9189. 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;/^$/d' | tr '\n' ' '`
  9190. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9191. fi
  9192. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9193. # powerpc, because MkLinux only supported shared libraries with the
  9194. # GNU dynamic linker. Since this was broken with cross compilers,
  9195. # most powerpc-linux boxes support dynamic linking these days and
  9196. # people can always --disable-shared, the test was removed, and we
  9197. # assume the GNU/Linux dynamic linker is in use.
  9198. dynamic_linker='GNU/Linux ld.so'
  9199. ;;
  9200. netbsdelf*-gnu)
  9201. version_type=linux
  9202. need_lib_prefix=no
  9203. need_version=no
  9204. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9205. soname_spec='${libname}${release}${shared_ext}$major'
  9206. shlibpath_var=LD_LIBRARY_PATH
  9207. shlibpath_overrides_runpath=no
  9208. hardcode_into_libs=yes
  9209. dynamic_linker='NetBSD ld.elf_so'
  9210. ;;
  9211. netbsd*)
  9212. version_type=sunos
  9213. need_lib_prefix=no
  9214. need_version=no
  9215. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9216. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9217. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9218. dynamic_linker='NetBSD (a.out) ld.so'
  9219. else
  9220. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9221. soname_spec='${libname}${release}${shared_ext}$major'
  9222. dynamic_linker='NetBSD ld.elf_so'
  9223. fi
  9224. shlibpath_var=LD_LIBRARY_PATH
  9225. shlibpath_overrides_runpath=yes
  9226. hardcode_into_libs=yes
  9227. ;;
  9228. newsos6)
  9229. version_type=linux
  9230. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9231. shlibpath_var=LD_LIBRARY_PATH
  9232. shlibpath_overrides_runpath=yes
  9233. ;;
  9234. *nto* | *qnx*)
  9235. version_type=qnx
  9236. need_lib_prefix=no
  9237. need_version=no
  9238. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9239. soname_spec='${libname}${release}${shared_ext}$major'
  9240. shlibpath_var=LD_LIBRARY_PATH
  9241. shlibpath_overrides_runpath=no
  9242. hardcode_into_libs=yes
  9243. dynamic_linker='ldqnx.so'
  9244. ;;
  9245. openbsd*)
  9246. version_type=sunos
  9247. sys_lib_dlsearch_path_spec="/usr/lib"
  9248. need_lib_prefix=no
  9249. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9250. case $host_os in
  9251. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9252. *) need_version=no ;;
  9253. esac
  9254. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9255. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9256. shlibpath_var=LD_LIBRARY_PATH
  9257. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9258. case $host_os in
  9259. openbsd2.[89] | openbsd2.[89].*)
  9260. shlibpath_overrides_runpath=no
  9261. ;;
  9262. *)
  9263. shlibpath_overrides_runpath=yes
  9264. ;;
  9265. esac
  9266. else
  9267. shlibpath_overrides_runpath=yes
  9268. fi
  9269. ;;
  9270. os2*)
  9271. libname_spec='$name'
  9272. shrext_cmds=".dll"
  9273. need_lib_prefix=no
  9274. library_names_spec='$libname${shared_ext} $libname.a'
  9275. dynamic_linker='OS/2 ld.exe'
  9276. shlibpath_var=LIBPATH
  9277. ;;
  9278. osf3* | osf4* | osf5*)
  9279. version_type=osf
  9280. need_lib_prefix=no
  9281. need_version=no
  9282. soname_spec='${libname}${release}${shared_ext}$major'
  9283. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9284. shlibpath_var=LD_LIBRARY_PATH
  9285. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9286. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9287. ;;
  9288. rdos*)
  9289. dynamic_linker=no
  9290. ;;
  9291. solaris*)
  9292. version_type=linux
  9293. need_lib_prefix=no
  9294. need_version=no
  9295. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9296. soname_spec='${libname}${release}${shared_ext}$major'
  9297. shlibpath_var=LD_LIBRARY_PATH
  9298. shlibpath_overrides_runpath=yes
  9299. hardcode_into_libs=yes
  9300. # ldd complains unless libraries are executable
  9301. postinstall_cmds='chmod +x $lib'
  9302. ;;
  9303. sunos4*)
  9304. version_type=sunos
  9305. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9306. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9307. shlibpath_var=LD_LIBRARY_PATH
  9308. shlibpath_overrides_runpath=yes
  9309. if test "$with_gnu_ld" = yes; then
  9310. need_lib_prefix=no
  9311. fi
  9312. need_version=yes
  9313. ;;
  9314. sysv4 | sysv4.3*)
  9315. version_type=linux
  9316. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9317. soname_spec='${libname}${release}${shared_ext}$major'
  9318. shlibpath_var=LD_LIBRARY_PATH
  9319. case $host_vendor in
  9320. sni)
  9321. shlibpath_overrides_runpath=no
  9322. need_lib_prefix=no
  9323. runpath_var=LD_RUN_PATH
  9324. ;;
  9325. siemens)
  9326. need_lib_prefix=no
  9327. ;;
  9328. motorola)
  9329. need_lib_prefix=no
  9330. need_version=no
  9331. shlibpath_overrides_runpath=no
  9332. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9333. ;;
  9334. esac
  9335. ;;
  9336. sysv4*MP*)
  9337. if test -d /usr/nec ;then
  9338. version_type=linux
  9339. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9340. soname_spec='$libname${shared_ext}.$major'
  9341. shlibpath_var=LD_LIBRARY_PATH
  9342. fi
  9343. ;;
  9344. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9345. version_type=freebsd-elf
  9346. need_lib_prefix=no
  9347. need_version=no
  9348. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9349. soname_spec='${libname}${release}${shared_ext}$major'
  9350. shlibpath_var=LD_LIBRARY_PATH
  9351. shlibpath_overrides_runpath=yes
  9352. hardcode_into_libs=yes
  9353. if test "$with_gnu_ld" = yes; then
  9354. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9355. else
  9356. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9357. case $host_os in
  9358. sco3.2v5*)
  9359. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9360. ;;
  9361. esac
  9362. fi
  9363. sys_lib_dlsearch_path_spec='/usr/lib'
  9364. ;;
  9365. tpf*)
  9366. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9367. version_type=linux
  9368. need_lib_prefix=no
  9369. need_version=no
  9370. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9371. shlibpath_var=LD_LIBRARY_PATH
  9372. shlibpath_overrides_runpath=no
  9373. hardcode_into_libs=yes
  9374. ;;
  9375. uts4*)
  9376. version_type=linux
  9377. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9378. soname_spec='${libname}${release}${shared_ext}$major'
  9379. shlibpath_var=LD_LIBRARY_PATH
  9380. ;;
  9381. *)
  9382. dynamic_linker=no
  9383. ;;
  9384. esac
  9385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9386. $as_echo "$dynamic_linker" >&6; }
  9387. test "$dynamic_linker" = no && can_build_shared=no
  9388. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9389. if test "$GCC" = yes; then
  9390. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9391. fi
  9392. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9393. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9394. fi
  9395. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9396. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9397. fi
  9398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9399. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9400. hardcode_action=
  9401. if test -n "$hardcode_libdir_flag_spec" ||
  9402. test -n "$runpath_var" ||
  9403. test "X$hardcode_automatic" = "Xyes" ; then
  9404. # We can hardcode non-existent directories.
  9405. if test "$hardcode_direct" != no &&
  9406. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9407. # have to relink, otherwise we might link with an installed library
  9408. # when we should be linking with a yet-to-be-installed one
  9409. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9410. test "$hardcode_minus_L" != no; then
  9411. # Linking always hardcodes the temporary library directory.
  9412. hardcode_action=relink
  9413. else
  9414. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9415. hardcode_action=immediate
  9416. fi
  9417. else
  9418. # We cannot hardcode anything, or else we can only hardcode existing
  9419. # directories.
  9420. hardcode_action=unsupported
  9421. fi
  9422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9423. $as_echo "$hardcode_action" >&6; }
  9424. if test "$hardcode_action" = relink ||
  9425. test "$inherit_rpath" = yes; then
  9426. # Fast installation is not supported
  9427. enable_fast_install=no
  9428. elif test "$shlibpath_overrides_runpath" = yes ||
  9429. test "$enable_shared" = no; then
  9430. # Fast installation is not necessary
  9431. enable_fast_install=needless
  9432. fi
  9433. if test "x$enable_dlopen" != xyes; then
  9434. enable_dlopen=unknown
  9435. enable_dlopen_self=unknown
  9436. enable_dlopen_self_static=unknown
  9437. else
  9438. lt_cv_dlopen=no
  9439. lt_cv_dlopen_libs=
  9440. case $host_os in
  9441. beos*)
  9442. lt_cv_dlopen="load_add_on"
  9443. lt_cv_dlopen_libs=
  9444. lt_cv_dlopen_self=yes
  9445. ;;
  9446. mingw* | pw32* | cegcc*)
  9447. lt_cv_dlopen="LoadLibrary"
  9448. lt_cv_dlopen_libs=
  9449. ;;
  9450. cygwin*)
  9451. lt_cv_dlopen="dlopen"
  9452. lt_cv_dlopen_libs=
  9453. ;;
  9454. darwin*)
  9455. # if libdl is installed we need to link against it
  9456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9457. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9458. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9459. $as_echo_n "(cached) " >&6
  9460. else
  9461. ac_check_lib_save_LIBS=$LIBS
  9462. LIBS="-ldl $LIBS"
  9463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9464. /* end confdefs.h. */
  9465. /* Override any GCC internal prototype to avoid an error.
  9466. Use char because int might match the return type of a GCC
  9467. builtin and then its argument prototype would still apply. */
  9468. #ifdef __cplusplus
  9469. extern "C"
  9470. #endif
  9471. char dlopen ();
  9472. int
  9473. main ()
  9474. {
  9475. return dlopen ();
  9476. ;
  9477. return 0;
  9478. }
  9479. _ACEOF
  9480. if ac_fn_c_try_link "$LINENO"; then :
  9481. ac_cv_lib_dl_dlopen=yes
  9482. else
  9483. ac_cv_lib_dl_dlopen=no
  9484. fi
  9485. rm -f core conftest.err conftest.$ac_objext \
  9486. conftest$ac_exeext conftest.$ac_ext
  9487. LIBS=$ac_check_lib_save_LIBS
  9488. fi
  9489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9490. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9491. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9492. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9493. else
  9494. lt_cv_dlopen="dyld"
  9495. lt_cv_dlopen_libs=
  9496. lt_cv_dlopen_self=yes
  9497. fi
  9498. ;;
  9499. *)
  9500. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9501. if test "x$ac_cv_func_shl_load" = x""yes; then :
  9502. lt_cv_dlopen="shl_load"
  9503. else
  9504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9505. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9506. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  9507. $as_echo_n "(cached) " >&6
  9508. else
  9509. ac_check_lib_save_LIBS=$LIBS
  9510. LIBS="-ldld $LIBS"
  9511. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9512. /* end confdefs.h. */
  9513. /* Override any GCC internal prototype to avoid an error.
  9514. Use char because int might match the return type of a GCC
  9515. builtin and then its argument prototype would still apply. */
  9516. #ifdef __cplusplus
  9517. extern "C"
  9518. #endif
  9519. char shl_load ();
  9520. int
  9521. main ()
  9522. {
  9523. return shl_load ();
  9524. ;
  9525. return 0;
  9526. }
  9527. _ACEOF
  9528. if ac_fn_c_try_link "$LINENO"; then :
  9529. ac_cv_lib_dld_shl_load=yes
  9530. else
  9531. ac_cv_lib_dld_shl_load=no
  9532. fi
  9533. rm -f core conftest.err conftest.$ac_objext \
  9534. conftest$ac_exeext conftest.$ac_ext
  9535. LIBS=$ac_check_lib_save_LIBS
  9536. fi
  9537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9538. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9539. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  9540. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9541. else
  9542. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9543. if test "x$ac_cv_func_dlopen" = x""yes; then :
  9544. lt_cv_dlopen="dlopen"
  9545. else
  9546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9547. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9548. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9549. $as_echo_n "(cached) " >&6
  9550. else
  9551. ac_check_lib_save_LIBS=$LIBS
  9552. LIBS="-ldl $LIBS"
  9553. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9554. /* end confdefs.h. */
  9555. /* Override any GCC internal prototype to avoid an error.
  9556. Use char because int might match the return type of a GCC
  9557. builtin and then its argument prototype would still apply. */
  9558. #ifdef __cplusplus
  9559. extern "C"
  9560. #endif
  9561. char dlopen ();
  9562. int
  9563. main ()
  9564. {
  9565. return dlopen ();
  9566. ;
  9567. return 0;
  9568. }
  9569. _ACEOF
  9570. if ac_fn_c_try_link "$LINENO"; then :
  9571. ac_cv_lib_dl_dlopen=yes
  9572. else
  9573. ac_cv_lib_dl_dlopen=no
  9574. fi
  9575. rm -f core conftest.err conftest.$ac_objext \
  9576. conftest$ac_exeext conftest.$ac_ext
  9577. LIBS=$ac_check_lib_save_LIBS
  9578. fi
  9579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9580. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9581. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9582. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9583. else
  9584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9585. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9586. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  9587. $as_echo_n "(cached) " >&6
  9588. else
  9589. ac_check_lib_save_LIBS=$LIBS
  9590. LIBS="-lsvld $LIBS"
  9591. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9592. /* end confdefs.h. */
  9593. /* Override any GCC internal prototype to avoid an error.
  9594. Use char because int might match the return type of a GCC
  9595. builtin and then its argument prototype would still apply. */
  9596. #ifdef __cplusplus
  9597. extern "C"
  9598. #endif
  9599. char dlopen ();
  9600. int
  9601. main ()
  9602. {
  9603. return dlopen ();
  9604. ;
  9605. return 0;
  9606. }
  9607. _ACEOF
  9608. if ac_fn_c_try_link "$LINENO"; then :
  9609. ac_cv_lib_svld_dlopen=yes
  9610. else
  9611. ac_cv_lib_svld_dlopen=no
  9612. fi
  9613. rm -f core conftest.err conftest.$ac_objext \
  9614. conftest$ac_exeext conftest.$ac_ext
  9615. LIBS=$ac_check_lib_save_LIBS
  9616. fi
  9617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9618. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9619. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  9620. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9621. else
  9622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9623. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9624. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  9625. $as_echo_n "(cached) " >&6
  9626. else
  9627. ac_check_lib_save_LIBS=$LIBS
  9628. LIBS="-ldld $LIBS"
  9629. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9630. /* end confdefs.h. */
  9631. /* Override any GCC internal prototype to avoid an error.
  9632. Use char because int might match the return type of a GCC
  9633. builtin and then its argument prototype would still apply. */
  9634. #ifdef __cplusplus
  9635. extern "C"
  9636. #endif
  9637. char dld_link ();
  9638. int
  9639. main ()
  9640. {
  9641. return dld_link ();
  9642. ;
  9643. return 0;
  9644. }
  9645. _ACEOF
  9646. if ac_fn_c_try_link "$LINENO"; then :
  9647. ac_cv_lib_dld_dld_link=yes
  9648. else
  9649. ac_cv_lib_dld_dld_link=no
  9650. fi
  9651. rm -f core conftest.err conftest.$ac_objext \
  9652. conftest$ac_exeext conftest.$ac_ext
  9653. LIBS=$ac_check_lib_save_LIBS
  9654. fi
  9655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9656. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9657. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  9658. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9659. fi
  9660. fi
  9661. fi
  9662. fi
  9663. fi
  9664. fi
  9665. ;;
  9666. esac
  9667. if test "x$lt_cv_dlopen" != xno; then
  9668. enable_dlopen=yes
  9669. else
  9670. enable_dlopen=no
  9671. fi
  9672. case $lt_cv_dlopen in
  9673. dlopen)
  9674. save_CPPFLAGS="$CPPFLAGS"
  9675. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9676. save_LDFLAGS="$LDFLAGS"
  9677. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9678. save_LIBS="$LIBS"
  9679. LIBS="$lt_cv_dlopen_libs $LIBS"
  9680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9681. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9682. if test "${lt_cv_dlopen_self+set}" = set; then :
  9683. $as_echo_n "(cached) " >&6
  9684. else
  9685. if test "$cross_compiling" = yes; then :
  9686. lt_cv_dlopen_self=cross
  9687. else
  9688. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9689. lt_status=$lt_dlunknown
  9690. cat > conftest.$ac_ext <<_LT_EOF
  9691. #line 11252 "configure"
  9692. #include "confdefs.h"
  9693. #if HAVE_DLFCN_H
  9694. #include <dlfcn.h>
  9695. #endif
  9696. #include <stdio.h>
  9697. #ifdef RTLD_GLOBAL
  9698. # define LT_DLGLOBAL RTLD_GLOBAL
  9699. #else
  9700. # ifdef DL_GLOBAL
  9701. # define LT_DLGLOBAL DL_GLOBAL
  9702. # else
  9703. # define LT_DLGLOBAL 0
  9704. # endif
  9705. #endif
  9706. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9707. find out it does not work in some platform. */
  9708. #ifndef LT_DLLAZY_OR_NOW
  9709. # ifdef RTLD_LAZY
  9710. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9711. # else
  9712. # ifdef DL_LAZY
  9713. # define LT_DLLAZY_OR_NOW DL_LAZY
  9714. # else
  9715. # ifdef RTLD_NOW
  9716. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9717. # else
  9718. # ifdef DL_NOW
  9719. # define LT_DLLAZY_OR_NOW DL_NOW
  9720. # else
  9721. # define LT_DLLAZY_OR_NOW 0
  9722. # endif
  9723. # endif
  9724. # endif
  9725. # endif
  9726. #endif
  9727. void fnord() { int i=42;}
  9728. int main ()
  9729. {
  9730. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9731. int status = $lt_dlunknown;
  9732. if (self)
  9733. {
  9734. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9735. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9736. /* dlclose (self); */
  9737. }
  9738. else
  9739. puts (dlerror ());
  9740. return status;
  9741. }
  9742. _LT_EOF
  9743. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9744. (eval $ac_link) 2>&5
  9745. ac_status=$?
  9746. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9747. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9748. (./conftest; exit; ) >&5 2>/dev/null
  9749. lt_status=$?
  9750. case x$lt_status in
  9751. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9752. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9753. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9754. esac
  9755. else :
  9756. # compilation failed
  9757. lt_cv_dlopen_self=no
  9758. fi
  9759. fi
  9760. rm -fr conftest*
  9761. fi
  9762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9763. $as_echo "$lt_cv_dlopen_self" >&6; }
  9764. if test "x$lt_cv_dlopen_self" = xyes; then
  9765. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9767. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9768. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  9769. $as_echo_n "(cached) " >&6
  9770. else
  9771. if test "$cross_compiling" = yes; then :
  9772. lt_cv_dlopen_self_static=cross
  9773. else
  9774. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9775. lt_status=$lt_dlunknown
  9776. cat > conftest.$ac_ext <<_LT_EOF
  9777. #line 11348 "configure"
  9778. #include "confdefs.h"
  9779. #if HAVE_DLFCN_H
  9780. #include <dlfcn.h>
  9781. #endif
  9782. #include <stdio.h>
  9783. #ifdef RTLD_GLOBAL
  9784. # define LT_DLGLOBAL RTLD_GLOBAL
  9785. #else
  9786. # ifdef DL_GLOBAL
  9787. # define LT_DLGLOBAL DL_GLOBAL
  9788. # else
  9789. # define LT_DLGLOBAL 0
  9790. # endif
  9791. #endif
  9792. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9793. find out it does not work in some platform. */
  9794. #ifndef LT_DLLAZY_OR_NOW
  9795. # ifdef RTLD_LAZY
  9796. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9797. # else
  9798. # ifdef DL_LAZY
  9799. # define LT_DLLAZY_OR_NOW DL_LAZY
  9800. # else
  9801. # ifdef RTLD_NOW
  9802. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9803. # else
  9804. # ifdef DL_NOW
  9805. # define LT_DLLAZY_OR_NOW DL_NOW
  9806. # else
  9807. # define LT_DLLAZY_OR_NOW 0
  9808. # endif
  9809. # endif
  9810. # endif
  9811. # endif
  9812. #endif
  9813. void fnord() { int i=42;}
  9814. int main ()
  9815. {
  9816. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9817. int status = $lt_dlunknown;
  9818. if (self)
  9819. {
  9820. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9821. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9822. /* dlclose (self); */
  9823. }
  9824. else
  9825. puts (dlerror ());
  9826. return status;
  9827. }
  9828. _LT_EOF
  9829. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9830. (eval $ac_link) 2>&5
  9831. ac_status=$?
  9832. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9833. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9834. (./conftest; exit; ) >&5 2>/dev/null
  9835. lt_status=$?
  9836. case x$lt_status in
  9837. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9838. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9839. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9840. esac
  9841. else :
  9842. # compilation failed
  9843. lt_cv_dlopen_self_static=no
  9844. fi
  9845. fi
  9846. rm -fr conftest*
  9847. fi
  9848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9849. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9850. fi
  9851. CPPFLAGS="$save_CPPFLAGS"
  9852. LDFLAGS="$save_LDFLAGS"
  9853. LIBS="$save_LIBS"
  9854. ;;
  9855. esac
  9856. case $lt_cv_dlopen_self in
  9857. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9858. *) enable_dlopen_self=unknown ;;
  9859. esac
  9860. case $lt_cv_dlopen_self_static in
  9861. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9862. *) enable_dlopen_self_static=unknown ;;
  9863. esac
  9864. fi
  9865. striplib=
  9866. old_striplib=
  9867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9868. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9869. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9870. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9871. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9873. $as_echo "yes" >&6; }
  9874. else
  9875. # FIXME - insert some real tests, host_os isn't really good enough
  9876. case $host_os in
  9877. darwin*)
  9878. if test -n "$STRIP" ; then
  9879. striplib="$STRIP -x"
  9880. old_striplib="$STRIP -S"
  9881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9882. $as_echo "yes" >&6; }
  9883. else
  9884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9885. $as_echo "no" >&6; }
  9886. fi
  9887. ;;
  9888. *)
  9889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9890. $as_echo "no" >&6; }
  9891. ;;
  9892. esac
  9893. fi
  9894. # Report which library types will actually be built
  9895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9896. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9898. $as_echo "$can_build_shared" >&6; }
  9899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9900. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9901. test "$can_build_shared" = "no" && enable_shared=no
  9902. # On AIX, shared libraries and static libraries use the same namespace, and
  9903. # are all built from PIC.
  9904. case $host_os in
  9905. aix3*)
  9906. test "$enable_shared" = yes && enable_static=no
  9907. if test -n "$RANLIB"; then
  9908. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9909. postinstall_cmds='$RANLIB $lib'
  9910. fi
  9911. ;;
  9912. aix[4-9]*)
  9913. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9914. test "$enable_shared" = yes && enable_static=no
  9915. fi
  9916. ;;
  9917. esac
  9918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9919. $as_echo "$enable_shared" >&6; }
  9920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9921. $as_echo_n "checking whether to build static libraries... " >&6; }
  9922. # Make sure either enable_shared or enable_static is yes.
  9923. test "$enable_shared" = yes || enable_static=yes
  9924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9925. $as_echo "$enable_static" >&6; }
  9926. fi
  9927. ac_ext=c
  9928. ac_cpp='$CPP $CPPFLAGS'
  9929. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9930. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9931. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9932. CC="$lt_save_CC"
  9933. ac_ext=cpp
  9934. ac_cpp='$CXXCPP $CPPFLAGS'
  9935. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9936. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9937. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9938. archive_cmds_need_lc_CXX=no
  9939. allow_undefined_flag_CXX=
  9940. always_export_symbols_CXX=no
  9941. archive_expsym_cmds_CXX=
  9942. compiler_needs_object_CXX=no
  9943. export_dynamic_flag_spec_CXX=
  9944. hardcode_direct_CXX=no
  9945. hardcode_direct_absolute_CXX=no
  9946. hardcode_libdir_flag_spec_CXX=
  9947. hardcode_libdir_flag_spec_ld_CXX=
  9948. hardcode_libdir_separator_CXX=
  9949. hardcode_minus_L_CXX=no
  9950. hardcode_shlibpath_var_CXX=unsupported
  9951. hardcode_automatic_CXX=no
  9952. inherit_rpath_CXX=no
  9953. module_cmds_CXX=
  9954. module_expsym_cmds_CXX=
  9955. link_all_deplibs_CXX=unknown
  9956. old_archive_cmds_CXX=$old_archive_cmds
  9957. no_undefined_flag_CXX=
  9958. whole_archive_flag_spec_CXX=
  9959. enable_shared_with_static_runtimes_CXX=no
  9960. # Source file extension for C++ test sources.
  9961. ac_ext=cpp
  9962. # Object file extension for compiled C++ test sources.
  9963. objext=o
  9964. objext_CXX=$objext
  9965. # No sense in running all these tests if we already determined that
  9966. # the CXX compiler isn't working. Some variables (like enable_shared)
  9967. # are currently assumed to apply to all compilers on this platform,
  9968. # and will be corrupted by setting them based on a non-working compiler.
  9969. if test "$_lt_caught_CXX_error" != yes; then
  9970. # Code to be used in simple compile tests
  9971. lt_simple_compile_test_code="int some_variable = 0;"
  9972. # Code to be used in simple link tests
  9973. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  9974. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9975. # If no C compiler was specified, use CC.
  9976. LTCC=${LTCC-"$CC"}
  9977. # If no C compiler flags were specified, use CFLAGS.
  9978. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  9979. # Allow CC to be a program name with arguments.
  9980. compiler=$CC
  9981. # save warnings/boilerplate of simple test code
  9982. ac_outfile=conftest.$ac_objext
  9983. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  9984. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9985. _lt_compiler_boilerplate=`cat conftest.err`
  9986. $RM conftest*
  9987. ac_outfile=conftest.$ac_objext
  9988. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  9989. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9990. _lt_linker_boilerplate=`cat conftest.err`
  9991. $RM -r conftest*
  9992. # Allow CC to be a program name with arguments.
  9993. lt_save_CC=$CC
  9994. lt_save_LD=$LD
  9995. lt_save_GCC=$GCC
  9996. GCC=$GXX
  9997. lt_save_with_gnu_ld=$with_gnu_ld
  9998. lt_save_path_LD=$lt_cv_path_LD
  9999. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10000. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10001. else
  10002. $as_unset lt_cv_prog_gnu_ld
  10003. fi
  10004. if test -n "${lt_cv_path_LDCXX+set}"; then
  10005. lt_cv_path_LD=$lt_cv_path_LDCXX
  10006. else
  10007. $as_unset lt_cv_path_LD
  10008. fi
  10009. test -z "${LDCXX+set}" || LD=$LDCXX
  10010. CC=${CXX-"c++"}
  10011. compiler=$CC
  10012. compiler_CXX=$CC
  10013. for cc_temp in $compiler""; do
  10014. case $cc_temp in
  10015. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10016. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10017. \-*) ;;
  10018. *) break;;
  10019. esac
  10020. done
  10021. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  10022. if test -n "$compiler"; then
  10023. # We don't want -fno-exception when compiling C++ code, so set the
  10024. # no_builtin_flag separately
  10025. if test "$GXX" = yes; then
  10026. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10027. else
  10028. lt_prog_compiler_no_builtin_flag_CXX=
  10029. fi
  10030. if test "$GXX" = yes; then
  10031. # Set up default GNU C++ configuration
  10032. # Check whether --with-gnu-ld was given.
  10033. if test "${with_gnu_ld+set}" = set; then :
  10034. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10035. else
  10036. with_gnu_ld=no
  10037. fi
  10038. ac_prog=ld
  10039. if test "$GCC" = yes; then
  10040. # Check if gcc -print-prog-name=ld gives a path.
  10041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10042. $as_echo_n "checking for ld used by $CC... " >&6; }
  10043. case $host in
  10044. *-*-mingw*)
  10045. # gcc leaves a trailing carriage return which upsets mingw
  10046. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10047. *)
  10048. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10049. esac
  10050. case $ac_prog in
  10051. # Accept absolute paths.
  10052. [\\/]* | ?:[\\/]*)
  10053. re_direlt='/[^/][^/]*/\.\./'
  10054. # Canonicalize the pathname of ld
  10055. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10056. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10057. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10058. done
  10059. test -z "$LD" && LD="$ac_prog"
  10060. ;;
  10061. "")
  10062. # If it fails, then pretend we aren't using GCC.
  10063. ac_prog=ld
  10064. ;;
  10065. *)
  10066. # If it is relative, then search for the first ld in PATH.
  10067. with_gnu_ld=unknown
  10068. ;;
  10069. esac
  10070. elif test "$with_gnu_ld" = yes; then
  10071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10072. $as_echo_n "checking for GNU ld... " >&6; }
  10073. else
  10074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10075. $as_echo_n "checking for non-GNU ld... " >&6; }
  10076. fi
  10077. if test "${lt_cv_path_LD+set}" = set; then :
  10078. $as_echo_n "(cached) " >&6
  10079. else
  10080. if test -z "$LD"; then
  10081. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10082. for ac_dir in $PATH; do
  10083. IFS="$lt_save_ifs"
  10084. test -z "$ac_dir" && ac_dir=.
  10085. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10086. lt_cv_path_LD="$ac_dir/$ac_prog"
  10087. # Check to see if the program is GNU ld. I'd rather use --version,
  10088. # but apparently some variants of GNU ld only accept -v.
  10089. # Break only if it was the GNU/non-GNU ld that we prefer.
  10090. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10091. *GNU* | *'with BFD'*)
  10092. test "$with_gnu_ld" != no && break
  10093. ;;
  10094. *)
  10095. test "$with_gnu_ld" != yes && break
  10096. ;;
  10097. esac
  10098. fi
  10099. done
  10100. IFS="$lt_save_ifs"
  10101. else
  10102. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10103. fi
  10104. fi
  10105. LD="$lt_cv_path_LD"
  10106. if test -n "$LD"; then
  10107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10108. $as_echo "$LD" >&6; }
  10109. else
  10110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10111. $as_echo "no" >&6; }
  10112. fi
  10113. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  10114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10115. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10116. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  10117. $as_echo_n "(cached) " >&6
  10118. else
  10119. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10120. case `$LD -v 2>&1 </dev/null` in
  10121. *GNU* | *'with BFD'*)
  10122. lt_cv_prog_gnu_ld=yes
  10123. ;;
  10124. *)
  10125. lt_cv_prog_gnu_ld=no
  10126. ;;
  10127. esac
  10128. fi
  10129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10130. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10131. with_gnu_ld=$lt_cv_prog_gnu_ld
  10132. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10133. # archiving commands below assume that GNU ld is being used.
  10134. if test "$with_gnu_ld" = yes; then
  10135. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10136. archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10137. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10138. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10139. # If archive_cmds runs LD, not CC, wlarc should be empty
  10140. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10141. # investigate it a little bit more. (MM)
  10142. wlarc='${wl}'
  10143. # ancient GNU ld didn't support --whole-archive et. al.
  10144. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10145. $GREP 'no-whole-archive' > /dev/null; then
  10146. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10147. else
  10148. whole_archive_flag_spec_CXX=
  10149. fi
  10150. else
  10151. with_gnu_ld=no
  10152. wlarc=
  10153. # A generic and very simple default shared library creation
  10154. # command for GNU C++ for the case where it uses the native
  10155. # linker, instead of GNU ld. If possible, this setting should
  10156. # overridden to take advantage of the native linker features on
  10157. # the platform it is being used on.
  10158. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10159. fi
  10160. # Commands to make compiler produce verbose output that lists
  10161. # what "hidden" libraries, object files and flags are used when
  10162. # linking a shared library.
  10163. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10164. else
  10165. GXX=no
  10166. with_gnu_ld=no
  10167. wlarc=
  10168. fi
  10169. # PORTME: fill in a description of your system's C++ link characteristics
  10170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10171. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10172. ld_shlibs_CXX=yes
  10173. case $host_os in
  10174. aix3*)
  10175. # FIXME: insert proper C++ library support
  10176. ld_shlibs_CXX=no
  10177. ;;
  10178. aix[4-9]*)
  10179. if test "$host_cpu" = ia64; then
  10180. # On IA64, the linker does run time linking by default, so we don't
  10181. # have to do anything special.
  10182. aix_use_runtimelinking=no
  10183. exp_sym_flag='-Bexport'
  10184. no_entry_flag=""
  10185. else
  10186. aix_use_runtimelinking=no
  10187. # Test if we are trying to use run time linking or normal
  10188. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10189. # need to do runtime linking.
  10190. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10191. for ld_flag in $LDFLAGS; do
  10192. case $ld_flag in
  10193. *-brtl*)
  10194. aix_use_runtimelinking=yes
  10195. break
  10196. ;;
  10197. esac
  10198. done
  10199. ;;
  10200. esac
  10201. exp_sym_flag='-bexport'
  10202. no_entry_flag='-bnoentry'
  10203. fi
  10204. # When large executables or shared objects are built, AIX ld can
  10205. # have problems creating the table of contents. If linking a library
  10206. # or program results in "error TOC overflow" add -mminimal-toc to
  10207. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10208. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10209. archive_cmds_CXX=''
  10210. hardcode_direct_CXX=yes
  10211. hardcode_direct_absolute_CXX=yes
  10212. hardcode_libdir_separator_CXX=':'
  10213. link_all_deplibs_CXX=yes
  10214. file_list_spec_CXX='${wl}-f,'
  10215. if test "$GXX" = yes; then
  10216. case $host_os in aix4.[012]|aix4.[012].*)
  10217. # We only want to do this on AIX 4.2 and lower, the check
  10218. # below for broken collect2 doesn't work under 4.3+
  10219. collect2name=`${CC} -print-prog-name=collect2`
  10220. if test -f "$collect2name" &&
  10221. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10222. then
  10223. # We have reworked collect2
  10224. :
  10225. else
  10226. # We have old collect2
  10227. hardcode_direct_CXX=unsupported
  10228. # It fails to find uninstalled libraries when the uninstalled
  10229. # path is not listed in the libpath. Setting hardcode_minus_L
  10230. # to unsupported forces relinking
  10231. hardcode_minus_L_CXX=yes
  10232. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10233. hardcode_libdir_separator_CXX=
  10234. fi
  10235. esac
  10236. shared_flag='-shared'
  10237. if test "$aix_use_runtimelinking" = yes; then
  10238. shared_flag="$shared_flag "'${wl}-G'
  10239. fi
  10240. else
  10241. # not using gcc
  10242. if test "$host_cpu" = ia64; then
  10243. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10244. # chokes on -Wl,-G. The following line is correct:
  10245. shared_flag='-G'
  10246. else
  10247. if test "$aix_use_runtimelinking" = yes; then
  10248. shared_flag='${wl}-G'
  10249. else
  10250. shared_flag='${wl}-bM:SRE'
  10251. fi
  10252. fi
  10253. fi
  10254. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10255. # It seems that -bexpall does not export symbols beginning with
  10256. # underscore (_), so it is better to generate a list of symbols to
  10257. # export.
  10258. always_export_symbols_CXX=yes
  10259. if test "$aix_use_runtimelinking" = yes; then
  10260. # Warning - without using the other runtime loading flags (-brtl),
  10261. # -berok will link without error, but may produce a broken library.
  10262. allow_undefined_flag_CXX='-berok'
  10263. # Determine the default libpath from the value encoded in an empty
  10264. # executable.
  10265. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10266. /* end confdefs.h. */
  10267. int
  10268. main ()
  10269. {
  10270. ;
  10271. return 0;
  10272. }
  10273. _ACEOF
  10274. if ac_fn_cxx_try_link "$LINENO"; then :
  10275. lt_aix_libpath_sed='
  10276. /Import File Strings/,/^$/ {
  10277. /^0/ {
  10278. s/^0 *\(.*\)$/\1/
  10279. p
  10280. }
  10281. }'
  10282. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10283. # Check for a 64-bit object if we didn't find anything.
  10284. if test -z "$aix_libpath"; then
  10285. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10286. fi
  10287. fi
  10288. rm -f core conftest.err conftest.$ac_objext \
  10289. conftest$ac_exeext conftest.$ac_ext
  10290. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10291. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10292. 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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  10293. else
  10294. if test "$host_cpu" = ia64; then
  10295. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10296. allow_undefined_flag_CXX="-z nodefs"
  10297. 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"
  10298. else
  10299. # Determine the default libpath from the value encoded in an
  10300. # empty executable.
  10301. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10302. /* end confdefs.h. */
  10303. int
  10304. main ()
  10305. {
  10306. ;
  10307. return 0;
  10308. }
  10309. _ACEOF
  10310. if ac_fn_cxx_try_link "$LINENO"; then :
  10311. lt_aix_libpath_sed='
  10312. /Import File Strings/,/^$/ {
  10313. /^0/ {
  10314. s/^0 *\(.*\)$/\1/
  10315. p
  10316. }
  10317. }'
  10318. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10319. # Check for a 64-bit object if we didn't find anything.
  10320. if test -z "$aix_libpath"; then
  10321. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10322. fi
  10323. fi
  10324. rm -f core conftest.err conftest.$ac_objext \
  10325. conftest$ac_exeext conftest.$ac_ext
  10326. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10327. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10328. # Warning - without using the other run time loading flags,
  10329. # -berok will link without error, but may produce a broken library.
  10330. no_undefined_flag_CXX=' ${wl}-bernotok'
  10331. allow_undefined_flag_CXX=' ${wl}-berok'
  10332. # Exported symbols can be pulled into shared objects from archives
  10333. whole_archive_flag_spec_CXX='$convenience'
  10334. archive_cmds_need_lc_CXX=yes
  10335. # This is similar to how AIX traditionally builds its shared
  10336. # libraries.
  10337. 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'
  10338. fi
  10339. fi
  10340. ;;
  10341. beos*)
  10342. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10343. allow_undefined_flag_CXX=unsupported
  10344. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  10345. # support --undefined. This deserves some investigation. FIXME
  10346. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10347. else
  10348. ld_shlibs_CXX=no
  10349. fi
  10350. ;;
  10351. chorus*)
  10352. case $cc_basename in
  10353. *)
  10354. # FIXME: insert proper C++ library support
  10355. ld_shlibs_CXX=no
  10356. ;;
  10357. esac
  10358. ;;
  10359. cygwin* | mingw* | pw32* | cegcc*)
  10360. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  10361. # as there is no search path for DLLs.
  10362. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10363. allow_undefined_flag_CXX=unsupported
  10364. always_export_symbols_CXX=no
  10365. enable_shared_with_static_runtimes_CXX=yes
  10366. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  10367. 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'
  10368. # If the export-symbols file already is a .def file (1st line
  10369. # is EXPORTS), use it as is; otherwise, prepend...
  10370. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10371. cp $export_symbols $output_objdir/$soname.def;
  10372. else
  10373. echo EXPORTS > $output_objdir/$soname.def;
  10374. cat $export_symbols >> $output_objdir/$soname.def;
  10375. fi~
  10376. $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'
  10377. else
  10378. ld_shlibs_CXX=no
  10379. fi
  10380. ;;
  10381. darwin* | rhapsody*)
  10382. archive_cmds_need_lc_CXX=no
  10383. hardcode_direct_CXX=no
  10384. hardcode_automatic_CXX=yes
  10385. hardcode_shlibpath_var_CXX=unsupported
  10386. whole_archive_flag_spec_CXX=''
  10387. link_all_deplibs_CXX=yes
  10388. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  10389. case $cc_basename in
  10390. ifort*) _lt_dar_can_shared=yes ;;
  10391. *) _lt_dar_can_shared=$GCC ;;
  10392. esac
  10393. if test "$_lt_dar_can_shared" = "yes"; then
  10394. output_verbose_link_cmd=echo
  10395. 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}"
  10396. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  10397. 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}"
  10398. 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}"
  10399. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  10400. 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}"
  10401. 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}"
  10402. fi
  10403. else
  10404. ld_shlibs_CXX=no
  10405. fi
  10406. ;;
  10407. dgux*)
  10408. case $cc_basename in
  10409. ec++*)
  10410. # FIXME: insert proper C++ library support
  10411. ld_shlibs_CXX=no
  10412. ;;
  10413. ghcx*)
  10414. # Green Hills C++ Compiler
  10415. # FIXME: insert proper C++ library support
  10416. ld_shlibs_CXX=no
  10417. ;;
  10418. *)
  10419. # FIXME: insert proper C++ library support
  10420. ld_shlibs_CXX=no
  10421. ;;
  10422. esac
  10423. ;;
  10424. freebsd[12]*)
  10425. # C++ shared libraries reported to be fairly broken before
  10426. # switch to ELF
  10427. ld_shlibs_CXX=no
  10428. ;;
  10429. freebsd-elf*)
  10430. archive_cmds_need_lc_CXX=no
  10431. ;;
  10432. freebsd* | dragonfly*)
  10433. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10434. # conventions
  10435. ld_shlibs_CXX=yes
  10436. ;;
  10437. gnu*)
  10438. ;;
  10439. hpux9*)
  10440. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10441. hardcode_libdir_separator_CXX=:
  10442. export_dynamic_flag_spec_CXX='${wl}-E'
  10443. hardcode_direct_CXX=yes
  10444. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10445. # but as the default
  10446. # location of the library.
  10447. case $cc_basename in
  10448. CC*)
  10449. # FIXME: insert proper C++ library support
  10450. ld_shlibs_CXX=no
  10451. ;;
  10452. aCC*)
  10453. 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'
  10454. # Commands to make compiler produce verbose output that lists
  10455. # what "hidden" libraries, object files and flags are used when
  10456. # linking a shared library.
  10457. #
  10458. # There doesn't appear to be a way to prevent this compiler from
  10459. # explicitly linking system object files so we need to strip them
  10460. # from the output so that they don't get included in the library
  10461. # dependencies.
  10462. 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; $ECHO "X$list" | $Xsed'
  10463. ;;
  10464. *)
  10465. if test "$GXX" = yes; then
  10466. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
  10467. else
  10468. # FIXME: insert proper C++ library support
  10469. ld_shlibs_CXX=no
  10470. fi
  10471. ;;
  10472. esac
  10473. ;;
  10474. hpux10*|hpux11*)
  10475. if test $with_gnu_ld = no; then
  10476. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10477. hardcode_libdir_separator_CXX=:
  10478. case $host_cpu in
  10479. hppa*64*|ia64*)
  10480. ;;
  10481. *)
  10482. export_dynamic_flag_spec_CXX='${wl}-E'
  10483. ;;
  10484. esac
  10485. fi
  10486. case $host_cpu in
  10487. hppa*64*|ia64*)
  10488. hardcode_direct_CXX=no
  10489. hardcode_shlibpath_var_CXX=no
  10490. ;;
  10491. *)
  10492. hardcode_direct_CXX=yes
  10493. hardcode_direct_absolute_CXX=yes
  10494. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10495. # but as the default
  10496. # location of the library.
  10497. ;;
  10498. esac
  10499. case $cc_basename in
  10500. CC*)
  10501. # FIXME: insert proper C++ library support
  10502. ld_shlibs_CXX=no
  10503. ;;
  10504. aCC*)
  10505. case $host_cpu in
  10506. hppa*64*)
  10507. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10508. ;;
  10509. ia64*)
  10510. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10511. ;;
  10512. *)
  10513. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10514. ;;
  10515. esac
  10516. # Commands to make compiler produce verbose output that lists
  10517. # what "hidden" libraries, object files and flags are used when
  10518. # linking a shared library.
  10519. #
  10520. # There doesn't appear to be a way to prevent this compiler from
  10521. # explicitly linking system object files so we need to strip them
  10522. # from the output so that they don't get included in the library
  10523. # dependencies.
  10524. 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; $ECHO "X$list" | $Xsed'
  10525. ;;
  10526. *)
  10527. if test "$GXX" = yes; then
  10528. if test $with_gnu_ld = no; then
  10529. case $host_cpu in
  10530. hppa*64*)
  10531. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10532. ;;
  10533. ia64*)
  10534. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10535. ;;
  10536. *)
  10537. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10538. ;;
  10539. esac
  10540. fi
  10541. else
  10542. # FIXME: insert proper C++ library support
  10543. ld_shlibs_CXX=no
  10544. fi
  10545. ;;
  10546. esac
  10547. ;;
  10548. interix[3-9]*)
  10549. hardcode_direct_CXX=no
  10550. hardcode_shlibpath_var_CXX=no
  10551. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10552. export_dynamic_flag_spec_CXX='${wl}-E'
  10553. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10554. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10555. # default) and relocated if they conflict, which is a slow very memory
  10556. # consuming and fragmenting process. To avoid this, we pick a random,
  10557. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10558. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10559. 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'
  10560. 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'
  10561. ;;
  10562. irix5* | irix6*)
  10563. case $cc_basename in
  10564. CC*)
  10565. # SGI C++
  10566. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  10567. # Archives containing C++ object files must be created using
  10568. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10569. # necessary to make sure instantiated templates are included
  10570. # in the archive.
  10571. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10572. ;;
  10573. *)
  10574. if test "$GXX" = yes; then
  10575. if test "$with_gnu_ld" = no; then
  10576. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10577. else
  10578. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
  10579. fi
  10580. fi
  10581. link_all_deplibs_CXX=yes
  10582. ;;
  10583. esac
  10584. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10585. hardcode_libdir_separator_CXX=:
  10586. inherit_rpath_CXX=yes
  10587. ;;
  10588. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  10589. case $cc_basename in
  10590. KCC*)
  10591. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10592. # KCC will only create a shared library if the output file
  10593. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10594. # to its proper name (with version) after linking.
  10595. 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'
  10596. 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'
  10597. # Commands to make compiler produce verbose output that lists
  10598. # what "hidden" libraries, object files and flags are used when
  10599. # linking a shared library.
  10600. #
  10601. # There doesn't appear to be a way to prevent this compiler from
  10602. # explicitly linking system object files so we need to strip them
  10603. # from the output so that they don't get included in the library
  10604. # dependencies.
  10605. 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; $ECHO "X$list" | $Xsed'
  10606. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10607. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10608. # Archives containing C++ object files must be created using
  10609. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10610. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10611. ;;
  10612. icpc* | ecpc* )
  10613. # Intel C++
  10614. with_gnu_ld=yes
  10615. # version 8.0 and above of icpc choke on multiply defined symbols
  10616. # if we add $predep_objects and $postdep_objects, however 7.1 and
  10617. # earlier do not add the objects themselves.
  10618. case `$CC -V 2>&1` in
  10619. *"Version 7."*)
  10620. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10621. 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'
  10622. ;;
  10623. *) # Version 8.0 or newer
  10624. tmp_idyn=
  10625. case $host_cpu in
  10626. ia64*) tmp_idyn=' -i_dynamic';;
  10627. esac
  10628. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10629. 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'
  10630. ;;
  10631. esac
  10632. archive_cmds_need_lc_CXX=no
  10633. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10634. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10635. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10636. ;;
  10637. pgCC* | pgcpp*)
  10638. # Portland Group C++ compiler
  10639. case `$CC -V` in
  10640. *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
  10641. prelink_cmds_CXX='tpldir=Template.dir~
  10642. rm -rf $tpldir~
  10643. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  10644. compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  10645. old_archive_cmds_CXX='tpldir=Template.dir~
  10646. rm -rf $tpldir~
  10647. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  10648. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  10649. $RANLIB $oldlib'
  10650. archive_cmds_CXX='tpldir=Template.dir~
  10651. rm -rf $tpldir~
  10652. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10653. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10654. archive_expsym_cmds_CXX='tpldir=Template.dir~
  10655. rm -rf $tpldir~
  10656. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10657. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  10658. ;;
  10659. *) # Version 6 will use weak symbols
  10660. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10661. 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'
  10662. ;;
  10663. esac
  10664. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10665. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10666. whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  10667. ;;
  10668. cxx*)
  10669. # Compaq C++
  10670. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10671. 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'
  10672. runpath_var=LD_RUN_PATH
  10673. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10674. hardcode_libdir_separator_CXX=:
  10675. # Commands to make compiler produce verbose output that lists
  10676. # what "hidden" libraries, object files and flags are used when
  10677. # linking a shared library.
  10678. #
  10679. # There doesn't appear to be a way to prevent this compiler from
  10680. # explicitly linking system object files so we need to strip them
  10681. # from the output so that they don't get included in the library
  10682. # dependencies.
  10683. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  10684. ;;
  10685. xl*)
  10686. # IBM XL 8.0 on PPC, with GNU ld
  10687. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10688. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10689. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10690. if test "x$supports_anon_versioning" = xyes; then
  10691. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  10692. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10693. echo "local: *; };" >> $output_objdir/$libname.ver~
  10694. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  10695. fi
  10696. ;;
  10697. *)
  10698. case `$CC -V 2>&1 | sed 5q` in
  10699. *Sun\ C*)
  10700. # Sun C++ 5.9
  10701. no_undefined_flag_CXX=' -zdefs'
  10702. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10703. 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'
  10704. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10705. whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  10706. compiler_needs_object_CXX=yes
  10707. # Not sure whether something based on
  10708. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  10709. # would be better.
  10710. output_verbose_link_cmd='echo'
  10711. # Archives containing C++ object files must be created using
  10712. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10713. # necessary to make sure instantiated templates are included
  10714. # in the archive.
  10715. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10716. ;;
  10717. esac
  10718. ;;
  10719. esac
  10720. ;;
  10721. lynxos*)
  10722. # FIXME: insert proper C++ library support
  10723. ld_shlibs_CXX=no
  10724. ;;
  10725. m88k*)
  10726. # FIXME: insert proper C++ library support
  10727. ld_shlibs_CXX=no
  10728. ;;
  10729. mvs*)
  10730. case $cc_basename in
  10731. cxx*)
  10732. # FIXME: insert proper C++ library support
  10733. ld_shlibs_CXX=no
  10734. ;;
  10735. *)
  10736. # FIXME: insert proper C++ library support
  10737. ld_shlibs_CXX=no
  10738. ;;
  10739. esac
  10740. ;;
  10741. netbsd*)
  10742. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10743. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10744. wlarc=
  10745. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10746. hardcode_direct_CXX=yes
  10747. hardcode_shlibpath_var_CXX=no
  10748. fi
  10749. # Workaround some broken pre-1.5 toolchains
  10750. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10751. ;;
  10752. *nto* | *qnx*)
  10753. ld_shlibs_CXX=yes
  10754. ;;
  10755. openbsd2*)
  10756. # C++ shared libraries are fairly broken
  10757. ld_shlibs_CXX=no
  10758. ;;
  10759. openbsd*)
  10760. if test -f /usr/libexec/ld.so; then
  10761. hardcode_direct_CXX=yes
  10762. hardcode_shlibpath_var_CXX=no
  10763. hardcode_direct_absolute_CXX=yes
  10764. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10765. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10766. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10767. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  10768. export_dynamic_flag_spec_CXX='${wl}-E'
  10769. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10770. fi
  10771. output_verbose_link_cmd=echo
  10772. else
  10773. ld_shlibs_CXX=no
  10774. fi
  10775. ;;
  10776. osf3* | osf4* | osf5*)
  10777. case $cc_basename in
  10778. KCC*)
  10779. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10780. # KCC will only create a shared library if the output file
  10781. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10782. # to its proper name (with version) after linking.
  10783. 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'
  10784. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10785. hardcode_libdir_separator_CXX=:
  10786. # Archives containing C++ object files must be created using
  10787. # the KAI C++ compiler.
  10788. case $host in
  10789. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  10790. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  10791. esac
  10792. ;;
  10793. RCC*)
  10794. # Rational C++ 2.4.1
  10795. # FIXME: insert proper C++ library support
  10796. ld_shlibs_CXX=no
  10797. ;;
  10798. cxx*)
  10799. case $host in
  10800. osf3*)
  10801. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10802. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  10803. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10804. ;;
  10805. *)
  10806. allow_undefined_flag_CXX=' -expect_unresolved \*'
  10807. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  10808. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10809. echo "-hidden">> $lib.exp~
  10810. $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
  10811. $RM $lib.exp'
  10812. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10813. ;;
  10814. esac
  10815. hardcode_libdir_separator_CXX=:
  10816. # Commands to make compiler produce verbose output that lists
  10817. # what "hidden" libraries, object files and flags are used when
  10818. # linking a shared library.
  10819. #
  10820. # There doesn't appear to be a way to prevent this compiler from
  10821. # explicitly linking system object files so we need to strip them
  10822. # from the output so that they don't get included in the library
  10823. # dependencies.
  10824. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  10825. ;;
  10826. *)
  10827. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10828. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10829. case $host in
  10830. osf3*)
  10831. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10832. ;;
  10833. *)
  10834. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10835. ;;
  10836. esac
  10837. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10838. hardcode_libdir_separator_CXX=:
  10839. # Commands to make compiler produce verbose output that lists
  10840. # what "hidden" libraries, object files and flags are used when
  10841. # linking a shared library.
  10842. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10843. else
  10844. # FIXME: insert proper C++ library support
  10845. ld_shlibs_CXX=no
  10846. fi
  10847. ;;
  10848. esac
  10849. ;;
  10850. psos*)
  10851. # FIXME: insert proper C++ library support
  10852. ld_shlibs_CXX=no
  10853. ;;
  10854. sunos4*)
  10855. case $cc_basename in
  10856. CC*)
  10857. # Sun C++ 4.x
  10858. # FIXME: insert proper C++ library support
  10859. ld_shlibs_CXX=no
  10860. ;;
  10861. lcc*)
  10862. # Lucid
  10863. # FIXME: insert proper C++ library support
  10864. ld_shlibs_CXX=no
  10865. ;;
  10866. *)
  10867. # FIXME: insert proper C++ library support
  10868. ld_shlibs_CXX=no
  10869. ;;
  10870. esac
  10871. ;;
  10872. solaris*)
  10873. case $cc_basename in
  10874. CC*)
  10875. # Sun C++ 4.2, 5.x and Centerline C++
  10876. archive_cmds_need_lc_CXX=yes
  10877. no_undefined_flag_CXX=' -zdefs'
  10878. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10879. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10880. $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'
  10881. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10882. hardcode_shlibpath_var_CXX=no
  10883. case $host_os in
  10884. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10885. *)
  10886. # The compiler driver will combine and reorder linker options,
  10887. # but understands `-z linker_flag'.
  10888. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10889. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  10890. ;;
  10891. esac
  10892. link_all_deplibs_CXX=yes
  10893. output_verbose_link_cmd='echo'
  10894. # Archives containing C++ object files must be created using
  10895. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10896. # necessary to make sure instantiated templates are included
  10897. # in the archive.
  10898. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10899. ;;
  10900. gcx*)
  10901. # Green Hills C++ Compiler
  10902. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10903. # The C++ compiler must be used to create the archive.
  10904. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10905. ;;
  10906. *)
  10907. # GNU C++ compiler with Solaris linker
  10908. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10909. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  10910. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  10911. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10912. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10913. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10914. # Commands to make compiler produce verbose output that lists
  10915. # what "hidden" libraries, object files and flags are used when
  10916. # linking a shared library.
  10917. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10918. else
  10919. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10920. # platform.
  10921. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10922. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10923. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10924. # Commands to make compiler produce verbose output that lists
  10925. # what "hidden" libraries, object files and flags are used when
  10926. # linking a shared library.
  10927. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10928. fi
  10929. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  10930. case $host_os in
  10931. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10932. *)
  10933. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  10934. ;;
  10935. esac
  10936. fi
  10937. ;;
  10938. esac
  10939. ;;
  10940. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10941. no_undefined_flag_CXX='${wl}-z,text'
  10942. archive_cmds_need_lc_CXX=no
  10943. hardcode_shlibpath_var_CXX=no
  10944. runpath_var='LD_RUN_PATH'
  10945. case $cc_basename in
  10946. CC*)
  10947. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10948. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10949. ;;
  10950. *)
  10951. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10952. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10953. ;;
  10954. esac
  10955. ;;
  10956. sysv5* | sco3.2v5* | sco5v6*)
  10957. # Note: We can NOT use -z defs as we might desire, because we do not
  10958. # link with -lc, and that would cause any symbols used from libc to
  10959. # always be unresolved, which means just about no library would
  10960. # ever link correctly. If we're not using GNU ld we use -z text
  10961. # though, which does catch some bad symbols but isn't as heavy-handed
  10962. # as -z defs.
  10963. no_undefined_flag_CXX='${wl}-z,text'
  10964. allow_undefined_flag_CXX='${wl}-z,nodefs'
  10965. archive_cmds_need_lc_CXX=no
  10966. hardcode_shlibpath_var_CXX=no
  10967. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  10968. hardcode_libdir_separator_CXX=':'
  10969. link_all_deplibs_CXX=yes
  10970. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  10971. runpath_var='LD_RUN_PATH'
  10972. case $cc_basename in
  10973. CC*)
  10974. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10975. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10976. ;;
  10977. *)
  10978. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10979. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10980. ;;
  10981. esac
  10982. ;;
  10983. tandem*)
  10984. case $cc_basename in
  10985. NCC*)
  10986. # NonStop-UX NCC 3.20
  10987. # FIXME: insert proper C++ library support
  10988. ld_shlibs_CXX=no
  10989. ;;
  10990. *)
  10991. # FIXME: insert proper C++ library support
  10992. ld_shlibs_CXX=no
  10993. ;;
  10994. esac
  10995. ;;
  10996. vxworks*)
  10997. # FIXME: insert proper C++ library support
  10998. ld_shlibs_CXX=no
  10999. ;;
  11000. *)
  11001. # FIXME: insert proper C++ library support
  11002. ld_shlibs_CXX=no
  11003. ;;
  11004. esac
  11005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11006. $as_echo "$ld_shlibs_CXX" >&6; }
  11007. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11008. GCC_CXX="$GXX"
  11009. LD_CXX="$LD"
  11010. ## CAVEAT EMPTOR:
  11011. ## There is no encapsulation within the following macros, do not change
  11012. ## the running order or otherwise move them around unless you know exactly
  11013. ## what you are doing...
  11014. # Dependencies to place before and after the object being linked:
  11015. predep_objects_CXX=
  11016. postdep_objects_CXX=
  11017. predeps_CXX=
  11018. postdeps_CXX=
  11019. compiler_lib_search_path_CXX=
  11020. cat > conftest.$ac_ext <<_LT_EOF
  11021. class Foo
  11022. {
  11023. public:
  11024. Foo (void) { a = 0; }
  11025. private:
  11026. int a;
  11027. };
  11028. _LT_EOF
  11029. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11030. (eval $ac_compile) 2>&5
  11031. ac_status=$?
  11032. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11033. test $ac_status = 0; }; then
  11034. # Parse the compiler output and extract the necessary
  11035. # objects, libraries and library flags.
  11036. # Sentinel used to keep track of whether or not we are before
  11037. # the conftest object file.
  11038. pre_test_object_deps_done=no
  11039. for p in `eval "$output_verbose_link_cmd"`; do
  11040. case $p in
  11041. -L* | -R* | -l*)
  11042. # Some compilers place space between "-{L,R}" and the path.
  11043. # Remove the space.
  11044. if test $p = "-L" ||
  11045. test $p = "-R"; then
  11046. prev=$p
  11047. continue
  11048. else
  11049. prev=
  11050. fi
  11051. if test "$pre_test_object_deps_done" = no; then
  11052. case $p in
  11053. -L* | -R*)
  11054. # Internal compiler library paths should come after those
  11055. # provided the user. The postdeps already come after the
  11056. # user supplied libs so there is no need to process them.
  11057. if test -z "$compiler_lib_search_path_CXX"; then
  11058. compiler_lib_search_path_CXX="${prev}${p}"
  11059. else
  11060. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11061. fi
  11062. ;;
  11063. # The "-l" case would never come before the object being
  11064. # linked, so don't bother handling this case.
  11065. esac
  11066. else
  11067. if test -z "$postdeps_CXX"; then
  11068. postdeps_CXX="${prev}${p}"
  11069. else
  11070. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11071. fi
  11072. fi
  11073. ;;
  11074. *.$objext)
  11075. # This assumes that the test object file only shows up
  11076. # once in the compiler output.
  11077. if test "$p" = "conftest.$objext"; then
  11078. pre_test_object_deps_done=yes
  11079. continue
  11080. fi
  11081. if test "$pre_test_object_deps_done" = no; then
  11082. if test -z "$predep_objects_CXX"; then
  11083. predep_objects_CXX="$p"
  11084. else
  11085. predep_objects_CXX="$predep_objects_CXX $p"
  11086. fi
  11087. else
  11088. if test -z "$postdep_objects_CXX"; then
  11089. postdep_objects_CXX="$p"
  11090. else
  11091. postdep_objects_CXX="$postdep_objects_CXX $p"
  11092. fi
  11093. fi
  11094. ;;
  11095. *) ;; # Ignore the rest.
  11096. esac
  11097. done
  11098. # Clean up.
  11099. rm -f a.out a.exe
  11100. else
  11101. echo "libtool.m4: error: problem compiling CXX test program"
  11102. fi
  11103. $RM -f confest.$objext
  11104. # PORTME: override above test on systems where it is broken
  11105. case $host_os in
  11106. interix[3-9]*)
  11107. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11108. # hack all around it, let's just trust "g++" to DTRT.
  11109. predep_objects_CXX=
  11110. postdep_objects_CXX=
  11111. postdeps_CXX=
  11112. ;;
  11113. linux*)
  11114. case `$CC -V 2>&1 | sed 5q` in
  11115. *Sun\ C*)
  11116. # Sun C++ 5.9
  11117. # The more standards-conforming stlport4 library is
  11118. # incompatible with the Cstd library. Avoid specifying
  11119. # it if it's in CXXFLAGS. Ignore libCrun as
  11120. # -library=stlport4 depends on it.
  11121. case " $CXX $CXXFLAGS " in
  11122. *" -library=stlport4 "*)
  11123. solaris_use_stlport4=yes
  11124. ;;
  11125. esac
  11126. if test "$solaris_use_stlport4" != yes; then
  11127. postdeps_CXX='-library=Cstd -library=Crun'
  11128. fi
  11129. ;;
  11130. esac
  11131. ;;
  11132. solaris*)
  11133. case $cc_basename in
  11134. CC*)
  11135. # The more standards-conforming stlport4 library is
  11136. # incompatible with the Cstd library. Avoid specifying
  11137. # it if it's in CXXFLAGS. Ignore libCrun as
  11138. # -library=stlport4 depends on it.
  11139. case " $CXX $CXXFLAGS " in
  11140. *" -library=stlport4 "*)
  11141. solaris_use_stlport4=yes
  11142. ;;
  11143. esac
  11144. # Adding this requires a known-good setup of shared libraries for
  11145. # Sun compiler versions before 5.6, else PIC objects from an old
  11146. # archive will be linked into the output, leading to subtle bugs.
  11147. if test "$solaris_use_stlport4" != yes; then
  11148. postdeps_CXX='-library=Cstd -library=Crun'
  11149. fi
  11150. ;;
  11151. esac
  11152. ;;
  11153. esac
  11154. case " $postdeps_CXX " in
  11155. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11156. esac
  11157. compiler_lib_search_dirs_CXX=
  11158. if test -n "${compiler_lib_search_path_CXX}"; then
  11159. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11160. fi
  11161. lt_prog_compiler_wl_CXX=
  11162. lt_prog_compiler_pic_CXX=
  11163. lt_prog_compiler_static_CXX=
  11164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  11165. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  11166. # C++ specific cases for pic, static, wl, etc.
  11167. if test "$GXX" = yes; then
  11168. lt_prog_compiler_wl_CXX='-Wl,'
  11169. lt_prog_compiler_static_CXX='-static'
  11170. case $host_os in
  11171. aix*)
  11172. # All AIX code is PIC.
  11173. if test "$host_cpu" = ia64; then
  11174. # AIX 5 now supports IA64 processor
  11175. lt_prog_compiler_static_CXX='-Bstatic'
  11176. fi
  11177. ;;
  11178. amigaos*)
  11179. case $host_cpu in
  11180. powerpc)
  11181. # see comment about AmigaOS4 .so support
  11182. lt_prog_compiler_pic_CXX='-fPIC'
  11183. ;;
  11184. m68k)
  11185. # FIXME: we need at least 68020 code to build shared libraries, but
  11186. # adding the `-m68020' flag to GCC prevents building anything better,
  11187. # like `-m68040'.
  11188. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11189. ;;
  11190. esac
  11191. ;;
  11192. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11193. # PIC is the default for these OSes.
  11194. ;;
  11195. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11196. # This hack is so that the source file can tell whether it is being
  11197. # built for inclusion in a dll (and should export symbols for example).
  11198. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11199. # (--disable-auto-import) libraries
  11200. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11201. ;;
  11202. darwin* | rhapsody*)
  11203. # PIC is the default on this platform
  11204. # Common symbols not allowed in MH_DYLIB files
  11205. lt_prog_compiler_pic_CXX='-fno-common'
  11206. ;;
  11207. *djgpp*)
  11208. # DJGPP does not support shared libraries at all
  11209. lt_prog_compiler_pic_CXX=
  11210. ;;
  11211. interix[3-9]*)
  11212. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11213. # Instead, we relocate shared libraries at runtime.
  11214. ;;
  11215. sysv4*MP*)
  11216. if test -d /usr/nec; then
  11217. lt_prog_compiler_pic_CXX=-Kconform_pic
  11218. fi
  11219. ;;
  11220. hpux*)
  11221. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11222. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  11223. # sets the default TLS model and affects inlining.
  11224. case $host_cpu in
  11225. hppa*64*)
  11226. ;;
  11227. *)
  11228. lt_prog_compiler_pic_CXX='-fPIC'
  11229. ;;
  11230. esac
  11231. ;;
  11232. *qnx* | *nto*)
  11233. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11234. # it will coredump.
  11235. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11236. ;;
  11237. *)
  11238. lt_prog_compiler_pic_CXX='-fPIC'
  11239. ;;
  11240. esac
  11241. else
  11242. case $host_os in
  11243. aix[4-9]*)
  11244. # All AIX code is PIC.
  11245. if test "$host_cpu" = ia64; then
  11246. # AIX 5 now supports IA64 processor
  11247. lt_prog_compiler_static_CXX='-Bstatic'
  11248. else
  11249. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11250. fi
  11251. ;;
  11252. chorus*)
  11253. case $cc_basename in
  11254. cxch68*)
  11255. # Green Hills C++ Compiler
  11256. # _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"
  11257. ;;
  11258. esac
  11259. ;;
  11260. dgux*)
  11261. case $cc_basename in
  11262. ec++*)
  11263. lt_prog_compiler_pic_CXX='-KPIC'
  11264. ;;
  11265. ghcx*)
  11266. # Green Hills C++ Compiler
  11267. lt_prog_compiler_pic_CXX='-pic'
  11268. ;;
  11269. *)
  11270. ;;
  11271. esac
  11272. ;;
  11273. freebsd* | dragonfly*)
  11274. # FreeBSD uses GNU C++
  11275. ;;
  11276. hpux9* | hpux10* | hpux11*)
  11277. case $cc_basename in
  11278. CC*)
  11279. lt_prog_compiler_wl_CXX='-Wl,'
  11280. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11281. if test "$host_cpu" != ia64; then
  11282. lt_prog_compiler_pic_CXX='+Z'
  11283. fi
  11284. ;;
  11285. aCC*)
  11286. lt_prog_compiler_wl_CXX='-Wl,'
  11287. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11288. case $host_cpu in
  11289. hppa*64*|ia64*)
  11290. # +Z the default
  11291. ;;
  11292. *)
  11293. lt_prog_compiler_pic_CXX='+Z'
  11294. ;;
  11295. esac
  11296. ;;
  11297. *)
  11298. ;;
  11299. esac
  11300. ;;
  11301. interix*)
  11302. # This is c89, which is MS Visual C++ (no shared libs)
  11303. # Anyone wants to do a port?
  11304. ;;
  11305. irix5* | irix6* | nonstopux*)
  11306. case $cc_basename in
  11307. CC*)
  11308. lt_prog_compiler_wl_CXX='-Wl,'
  11309. lt_prog_compiler_static_CXX='-non_shared'
  11310. # CC pic flag -KPIC is the default.
  11311. ;;
  11312. *)
  11313. ;;
  11314. esac
  11315. ;;
  11316. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11317. case $cc_basename in
  11318. KCC*)
  11319. # KAI C++ Compiler
  11320. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11321. lt_prog_compiler_pic_CXX='-fPIC'
  11322. ;;
  11323. ecpc* )
  11324. # old Intel C++ for x86_64 which still supported -KPIC.
  11325. lt_prog_compiler_wl_CXX='-Wl,'
  11326. lt_prog_compiler_pic_CXX='-KPIC'
  11327. lt_prog_compiler_static_CXX='-static'
  11328. ;;
  11329. icpc* )
  11330. # Intel C++, used to be incompatible with GCC.
  11331. # ICC 10 doesn't accept -KPIC any more.
  11332. lt_prog_compiler_wl_CXX='-Wl,'
  11333. lt_prog_compiler_pic_CXX='-fPIC'
  11334. lt_prog_compiler_static_CXX='-static'
  11335. ;;
  11336. pgCC* | pgcpp*)
  11337. # Portland Group C++ compiler
  11338. lt_prog_compiler_wl_CXX='-Wl,'
  11339. lt_prog_compiler_pic_CXX='-fpic'
  11340. lt_prog_compiler_static_CXX='-Bstatic'
  11341. ;;
  11342. cxx*)
  11343. # Compaq C++
  11344. # Make sure the PIC flag is empty. It appears that all Alpha
  11345. # Linux and Compaq Tru64 Unix objects are PIC.
  11346. lt_prog_compiler_pic_CXX=
  11347. lt_prog_compiler_static_CXX='-non_shared'
  11348. ;;
  11349. xlc* | xlC*)
  11350. # IBM XL 8.0 on PPC
  11351. lt_prog_compiler_wl_CXX='-Wl,'
  11352. lt_prog_compiler_pic_CXX='-qpic'
  11353. lt_prog_compiler_static_CXX='-qstaticlink'
  11354. ;;
  11355. *)
  11356. case `$CC -V 2>&1 | sed 5q` in
  11357. *Sun\ C*)
  11358. # Sun C++ 5.9
  11359. lt_prog_compiler_pic_CXX='-KPIC'
  11360. lt_prog_compiler_static_CXX='-Bstatic'
  11361. lt_prog_compiler_wl_CXX='-Qoption ld '
  11362. ;;
  11363. esac
  11364. ;;
  11365. esac
  11366. ;;
  11367. lynxos*)
  11368. ;;
  11369. m88k*)
  11370. ;;
  11371. mvs*)
  11372. case $cc_basename in
  11373. cxx*)
  11374. lt_prog_compiler_pic_CXX='-W c,exportall'
  11375. ;;
  11376. *)
  11377. ;;
  11378. esac
  11379. ;;
  11380. netbsd* | netbsdelf*-gnu)
  11381. ;;
  11382. *qnx* | *nto*)
  11383. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11384. # it will coredump.
  11385. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11386. ;;
  11387. osf3* | osf4* | osf5*)
  11388. case $cc_basename in
  11389. KCC*)
  11390. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11391. ;;
  11392. RCC*)
  11393. # Rational C++ 2.4.1
  11394. lt_prog_compiler_pic_CXX='-pic'
  11395. ;;
  11396. cxx*)
  11397. # Digital/Compaq C++
  11398. lt_prog_compiler_wl_CXX='-Wl,'
  11399. # Make sure the PIC flag is empty. It appears that all Alpha
  11400. # Linux and Compaq Tru64 Unix objects are PIC.
  11401. lt_prog_compiler_pic_CXX=
  11402. lt_prog_compiler_static_CXX='-non_shared'
  11403. ;;
  11404. *)
  11405. ;;
  11406. esac
  11407. ;;
  11408. psos*)
  11409. ;;
  11410. solaris*)
  11411. case $cc_basename in
  11412. CC*)
  11413. # Sun C++ 4.2, 5.x and Centerline C++
  11414. lt_prog_compiler_pic_CXX='-KPIC'
  11415. lt_prog_compiler_static_CXX='-Bstatic'
  11416. lt_prog_compiler_wl_CXX='-Qoption ld '
  11417. ;;
  11418. gcx*)
  11419. # Green Hills C++ Compiler
  11420. lt_prog_compiler_pic_CXX='-PIC'
  11421. ;;
  11422. *)
  11423. ;;
  11424. esac
  11425. ;;
  11426. sunos4*)
  11427. case $cc_basename in
  11428. CC*)
  11429. # Sun C++ 4.x
  11430. lt_prog_compiler_pic_CXX='-pic'
  11431. lt_prog_compiler_static_CXX='-Bstatic'
  11432. ;;
  11433. lcc*)
  11434. # Lucid
  11435. lt_prog_compiler_pic_CXX='-pic'
  11436. ;;
  11437. *)
  11438. ;;
  11439. esac
  11440. ;;
  11441. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11442. case $cc_basename in
  11443. CC*)
  11444. lt_prog_compiler_wl_CXX='-Wl,'
  11445. lt_prog_compiler_pic_CXX='-KPIC'
  11446. lt_prog_compiler_static_CXX='-Bstatic'
  11447. ;;
  11448. esac
  11449. ;;
  11450. tandem*)
  11451. case $cc_basename in
  11452. NCC*)
  11453. # NonStop-UX NCC 3.20
  11454. lt_prog_compiler_pic_CXX='-KPIC'
  11455. ;;
  11456. *)
  11457. ;;
  11458. esac
  11459. ;;
  11460. vxworks*)
  11461. ;;
  11462. *)
  11463. lt_prog_compiler_can_build_shared_CXX=no
  11464. ;;
  11465. esac
  11466. fi
  11467. case $host_os in
  11468. # For platforms which do not support PIC, -DPIC is meaningless:
  11469. *djgpp*)
  11470. lt_prog_compiler_pic_CXX=
  11471. ;;
  11472. *)
  11473. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11474. ;;
  11475. esac
  11476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
  11477. $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  11478. #
  11479. # Check to make sure the PIC flag actually works.
  11480. #
  11481. if test -n "$lt_prog_compiler_pic_CXX"; then
  11482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  11483. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  11484. if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
  11485. $as_echo_n "(cached) " >&6
  11486. else
  11487. lt_cv_prog_compiler_pic_works_CXX=no
  11488. ac_outfile=conftest.$ac_objext
  11489. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11490. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  11491. # Insert the option either (1) after the last *FLAGS variable, or
  11492. # (2) before a word containing "conftest.", or (3) at the end.
  11493. # Note that $ac_compile itself does not contain backslashes and begins
  11494. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11495. # The option is referenced via a variable to avoid confusing sed.
  11496. lt_compile=`echo "$ac_compile" | $SED \
  11497. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11498. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11499. -e 's:$: $lt_compiler_flag:'`
  11500. (eval echo "\"\$as_me:13304: $lt_compile\"" >&5)
  11501. (eval "$lt_compile" 2>conftest.err)
  11502. ac_status=$?
  11503. cat conftest.err >&5
  11504. echo "$as_me:13308: \$? = $ac_status" >&5
  11505. if (exit $ac_status) && test -s "$ac_outfile"; then
  11506. # The compiler can only warn and ignore the option if not recognized
  11507. # So say no if there are warnings other than the usual output.
  11508. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  11509. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11510. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11511. lt_cv_prog_compiler_pic_works_CXX=yes
  11512. fi
  11513. fi
  11514. $RM conftest*
  11515. fi
  11516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  11517. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  11518. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  11519. case $lt_prog_compiler_pic_CXX in
  11520. "" | " "*) ;;
  11521. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  11522. esac
  11523. else
  11524. lt_prog_compiler_pic_CXX=
  11525. lt_prog_compiler_can_build_shared_CXX=no
  11526. fi
  11527. fi
  11528. #
  11529. # Check to make sure the static flag actually works.
  11530. #
  11531. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  11532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11533. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  11534. if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
  11535. $as_echo_n "(cached) " >&6
  11536. else
  11537. lt_cv_prog_compiler_static_works_CXX=no
  11538. save_LDFLAGS="$LDFLAGS"
  11539. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11540. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11541. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11542. # The linker can only warn and ignore the option if not recognized
  11543. # So say no if there are warnings
  11544. if test -s conftest.err; then
  11545. # Append any errors to the config.log.
  11546. cat conftest.err 1>&5
  11547. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  11548. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11549. if diff conftest.exp conftest.er2 >/dev/null; then
  11550. lt_cv_prog_compiler_static_works_CXX=yes
  11551. fi
  11552. else
  11553. lt_cv_prog_compiler_static_works_CXX=yes
  11554. fi
  11555. fi
  11556. $RM -r conftest*
  11557. LDFLAGS="$save_LDFLAGS"
  11558. fi
  11559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  11560. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  11561. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  11562. :
  11563. else
  11564. lt_prog_compiler_static_CXX=
  11565. fi
  11566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11567. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11568. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  11569. $as_echo_n "(cached) " >&6
  11570. else
  11571. lt_cv_prog_compiler_c_o_CXX=no
  11572. $RM -r conftest 2>/dev/null
  11573. mkdir conftest
  11574. cd conftest
  11575. mkdir out
  11576. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11577. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11578. # Insert the option either (1) after the last *FLAGS variable, or
  11579. # (2) before a word containing "conftest.", or (3) at the end.
  11580. # Note that $ac_compile itself does not contain backslashes and begins
  11581. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11582. lt_compile=`echo "$ac_compile" | $SED \
  11583. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11584. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11585. -e 's:$: $lt_compiler_flag:'`
  11586. (eval echo "\"\$as_me:13403: $lt_compile\"" >&5)
  11587. (eval "$lt_compile" 2>out/conftest.err)
  11588. ac_status=$?
  11589. cat out/conftest.err >&5
  11590. echo "$as_me:13407: \$? = $ac_status" >&5
  11591. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11592. then
  11593. # The compiler can only warn and ignore the option if not recognized
  11594. # So say no if there are warnings
  11595. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11596. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11597. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11598. lt_cv_prog_compiler_c_o_CXX=yes
  11599. fi
  11600. fi
  11601. chmod u+w . 2>&5
  11602. $RM conftest*
  11603. # SGI C++ compiler will create directory out/ii_files/ for
  11604. # template instantiation
  11605. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11606. $RM out/* && rmdir out
  11607. cd ..
  11608. $RM -r conftest
  11609. $RM conftest*
  11610. fi
  11611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11612. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11614. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11615. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  11616. $as_echo_n "(cached) " >&6
  11617. else
  11618. lt_cv_prog_compiler_c_o_CXX=no
  11619. $RM -r conftest 2>/dev/null
  11620. mkdir conftest
  11621. cd conftest
  11622. mkdir out
  11623. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11624. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11625. # Insert the option either (1) after the last *FLAGS variable, or
  11626. # (2) before a word containing "conftest.", or (3) at the end.
  11627. # Note that $ac_compile itself does not contain backslashes and begins
  11628. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11629. lt_compile=`echo "$ac_compile" | $SED \
  11630. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11631. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11632. -e 's:$: $lt_compiler_flag:'`
  11633. (eval echo "\"\$as_me:13455: $lt_compile\"" >&5)
  11634. (eval "$lt_compile" 2>out/conftest.err)
  11635. ac_status=$?
  11636. cat out/conftest.err >&5
  11637. echo "$as_me:13459: \$? = $ac_status" >&5
  11638. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11639. then
  11640. # The compiler can only warn and ignore the option if not recognized
  11641. # So say no if there are warnings
  11642. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11643. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11644. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11645. lt_cv_prog_compiler_c_o_CXX=yes
  11646. fi
  11647. fi
  11648. chmod u+w . 2>&5
  11649. $RM conftest*
  11650. # SGI C++ compiler will create directory out/ii_files/ for
  11651. # template instantiation
  11652. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11653. $RM out/* && rmdir out
  11654. cd ..
  11655. $RM -r conftest
  11656. $RM conftest*
  11657. fi
  11658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11659. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11660. hard_links="nottested"
  11661. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  11662. # do not overwrite the value of need_locks provided by the user
  11663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  11664. $as_echo_n "checking if we can lock with hard links... " >&6; }
  11665. hard_links=yes
  11666. $RM conftest*
  11667. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11668. touch conftest.a
  11669. ln conftest.a conftest.b 2>&5 || hard_links=no
  11670. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  11672. $as_echo "$hard_links" >&6; }
  11673. if test "$hard_links" = no; then
  11674. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11675. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11676. need_locks=warn
  11677. fi
  11678. else
  11679. need_locks=no
  11680. fi
  11681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11682. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11683. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11684. case $host_os in
  11685. aix[4-9]*)
  11686. # If we're using GNU nm, then we don't want the "-C" option.
  11687. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11688. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  11689. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  11690. else
  11691. 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'
  11692. fi
  11693. ;;
  11694. pw32*)
  11695. export_symbols_cmds_CXX="$ltdll_cmds"
  11696. ;;
  11697. cygwin* | mingw* | cegcc*)
  11698. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  11699. ;;
  11700. linux* | k*bsd*-gnu)
  11701. link_all_deplibs_CXX=no
  11702. ;;
  11703. *)
  11704. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11705. ;;
  11706. esac
  11707. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  11708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11709. $as_echo "$ld_shlibs_CXX" >&6; }
  11710. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11711. with_gnu_ld_CXX=$with_gnu_ld
  11712. #
  11713. # Do we need to explicitly link libc?
  11714. #
  11715. case "x$archive_cmds_need_lc_CXX" in
  11716. x|xyes)
  11717. # Assume -lc should be added
  11718. archive_cmds_need_lc_CXX=yes
  11719. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11720. case $archive_cmds_CXX in
  11721. *'~'*)
  11722. # FIXME: we may have to deal with multi-command sequences.
  11723. ;;
  11724. '$CC '*)
  11725. # Test whether the compiler implicitly links with -lc since on some
  11726. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11727. # to ld, don't add -lc before -lgcc.
  11728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  11729. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  11730. $RM conftest*
  11731. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11732. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11733. (eval $ac_compile) 2>&5
  11734. ac_status=$?
  11735. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11736. test $ac_status = 0; } 2>conftest.err; then
  11737. soname=conftest
  11738. lib=conftest
  11739. libobjs=conftest.$ac_objext
  11740. deplibs=
  11741. wl=$lt_prog_compiler_wl_CXX
  11742. pic_flag=$lt_prog_compiler_pic_CXX
  11743. compiler_flags=-v
  11744. linker_flags=-v
  11745. verstring=
  11746. output_objdir=.
  11747. libname=conftest
  11748. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  11749. allow_undefined_flag_CXX=
  11750. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  11751. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11752. ac_status=$?
  11753. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11754. test $ac_status = 0; }
  11755. then
  11756. archive_cmds_need_lc_CXX=no
  11757. else
  11758. archive_cmds_need_lc_CXX=yes
  11759. fi
  11760. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  11761. else
  11762. cat conftest.err 1>&5
  11763. fi
  11764. $RM conftest*
  11765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
  11766. $as_echo "$archive_cmds_need_lc_CXX" >&6; }
  11767. ;;
  11768. esac
  11769. fi
  11770. ;;
  11771. esac
  11772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  11773. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  11774. library_names_spec=
  11775. libname_spec='lib$name'
  11776. soname_spec=
  11777. shrext_cmds=".so"
  11778. postinstall_cmds=
  11779. postuninstall_cmds=
  11780. finish_cmds=
  11781. finish_eval=
  11782. shlibpath_var=
  11783. shlibpath_overrides_runpath=unknown
  11784. version_type=none
  11785. dynamic_linker="$host_os ld.so"
  11786. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11787. need_lib_prefix=unknown
  11788. hardcode_into_libs=no
  11789. # when you set need_version to no, make sure it does not cause -set_version
  11790. # flags to be left without arguments
  11791. need_version=unknown
  11792. case $host_os in
  11793. aix3*)
  11794. version_type=linux
  11795. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  11796. shlibpath_var=LIBPATH
  11797. # AIX 3 has no versioning support, so we append a major version to the name.
  11798. soname_spec='${libname}${release}${shared_ext}$major'
  11799. ;;
  11800. aix[4-9]*)
  11801. version_type=linux
  11802. need_lib_prefix=no
  11803. need_version=no
  11804. hardcode_into_libs=yes
  11805. if test "$host_cpu" = ia64; then
  11806. # AIX 5 supports IA64
  11807. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  11808. shlibpath_var=LD_LIBRARY_PATH
  11809. else
  11810. # With GCC up to 2.95.x, collect2 would create an import file
  11811. # for dependence libraries. The import file would start with
  11812. # the line `#! .'. This would cause the generated library to
  11813. # depend on `.', always an invalid library. This was fixed in
  11814. # development snapshots of GCC prior to 3.0.
  11815. case $host_os in
  11816. aix4 | aix4.[01] | aix4.[01].*)
  11817. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11818. echo ' yes '
  11819. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  11820. :
  11821. else
  11822. can_build_shared=no
  11823. fi
  11824. ;;
  11825. esac
  11826. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  11827. # soname into executable. Probably we can add versioning support to
  11828. # collect2, so additional links can be useful in future.
  11829. if test "$aix_use_runtimelinking" = yes; then
  11830. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11831. # instead of lib<name>.a to let people know that these are not
  11832. # typical AIX shared libraries.
  11833. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11834. else
  11835. # We preserve .a as extension for shared libraries through AIX4.2
  11836. # and later when we are not doing run time linking.
  11837. library_names_spec='${libname}${release}.a $libname.a'
  11838. soname_spec='${libname}${release}${shared_ext}$major'
  11839. fi
  11840. shlibpath_var=LIBPATH
  11841. fi
  11842. ;;
  11843. amigaos*)
  11844. case $host_cpu in
  11845. powerpc)
  11846. # Since July 2007 AmigaOS4 officially supports .so libraries.
  11847. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  11848. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11849. ;;
  11850. m68k)
  11851. library_names_spec='$libname.ixlibrary $libname.a'
  11852. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11853. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
  11854. ;;
  11855. esac
  11856. ;;
  11857. beos*)
  11858. library_names_spec='${libname}${shared_ext}'
  11859. dynamic_linker="$host_os ld.so"
  11860. shlibpath_var=LIBRARY_PATH
  11861. ;;
  11862. bsdi[45]*)
  11863. version_type=linux
  11864. need_version=no
  11865. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11866. soname_spec='${libname}${release}${shared_ext}$major'
  11867. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11868. shlibpath_var=LD_LIBRARY_PATH
  11869. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11870. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11871. # the default ld.so.conf also contains /usr/contrib/lib and
  11872. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11873. # libtool to hard-code these into programs
  11874. ;;
  11875. cygwin* | mingw* | pw32* | cegcc*)
  11876. version_type=windows
  11877. shrext_cmds=".dll"
  11878. need_version=no
  11879. need_lib_prefix=no
  11880. case $GCC,$host_os in
  11881. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  11882. library_names_spec='$libname.dll.a'
  11883. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11884. postinstall_cmds='base_file=`basename \${file}`~
  11885. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  11886. dldir=$destdir/`dirname \$dlpath`~
  11887. test -d \$dldir || mkdir -p \$dldir~
  11888. $install_prog $dir/$dlname \$dldir/$dlname~
  11889. chmod a+x \$dldir/$dlname~
  11890. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  11891. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  11892. fi'
  11893. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11894. dlpath=$dir/\$dldll~
  11895. $RM \$dlpath'
  11896. shlibpath_overrides_runpath=yes
  11897. case $host_os in
  11898. cygwin*)
  11899. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11900. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11901. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  11902. ;;
  11903. mingw* | cegcc*)
  11904. # MinGW DLLs use traditional 'lib' prefix
  11905. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11906. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  11907. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  11908. # It is most probably a Windows format PATH printed by
  11909. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  11910. # path with ; separators, and with drive letters. We can handle the
  11911. # drive letters (cygwin fileutils understands them), so leave them,
  11912. # especially as we might pass files found there to a mingw objdump,
  11913. # which wouldn't understand a cygwinified path. Ahh.
  11914. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11915. else
  11916. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11917. fi
  11918. ;;
  11919. pw32*)
  11920. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11921. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11922. ;;
  11923. esac
  11924. ;;
  11925. *)
  11926. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  11927. ;;
  11928. esac
  11929. dynamic_linker='Win32 ld.exe'
  11930. # FIXME: first we should search . and the directory the executable is in
  11931. shlibpath_var=PATH
  11932. ;;
  11933. darwin* | rhapsody*)
  11934. dynamic_linker="$host_os dyld"
  11935. version_type=darwin
  11936. need_lib_prefix=no
  11937. need_version=no
  11938. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  11939. soname_spec='${libname}${release}${major}$shared_ext'
  11940. shlibpath_overrides_runpath=yes
  11941. shlibpath_var=DYLD_LIBRARY_PATH
  11942. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  11943. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  11944. ;;
  11945. dgux*)
  11946. version_type=linux
  11947. need_lib_prefix=no
  11948. need_version=no
  11949. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  11950. soname_spec='${libname}${release}${shared_ext}$major'
  11951. shlibpath_var=LD_LIBRARY_PATH
  11952. ;;
  11953. freebsd1*)
  11954. dynamic_linker=no
  11955. ;;
  11956. freebsd* | dragonfly*)
  11957. # DragonFly does not have aout. When/if they implement a new
  11958. # versioning mechanism, adjust this.
  11959. if test -x /usr/bin/objformat; then
  11960. objformat=`/usr/bin/objformat`
  11961. else
  11962. case $host_os in
  11963. freebsd[123]*) objformat=aout ;;
  11964. *) objformat=elf ;;
  11965. esac
  11966. fi
  11967. version_type=freebsd-$objformat
  11968. case $version_type in
  11969. freebsd-elf*)
  11970. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11971. need_version=no
  11972. need_lib_prefix=no
  11973. ;;
  11974. freebsd-*)
  11975. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  11976. need_version=yes
  11977. ;;
  11978. esac
  11979. shlibpath_var=LD_LIBRARY_PATH
  11980. case $host_os in
  11981. freebsd2*)
  11982. shlibpath_overrides_runpath=yes
  11983. ;;
  11984. freebsd3.[01]* | freebsdelf3.[01]*)
  11985. shlibpath_overrides_runpath=yes
  11986. hardcode_into_libs=yes
  11987. ;;
  11988. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  11989. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  11990. shlibpath_overrides_runpath=no
  11991. hardcode_into_libs=yes
  11992. ;;
  11993. *) # from 4.6 on, and DragonFly
  11994. shlibpath_overrides_runpath=yes
  11995. hardcode_into_libs=yes
  11996. ;;
  11997. esac
  11998. ;;
  11999. gnu*)
  12000. version_type=linux
  12001. need_lib_prefix=no
  12002. need_version=no
  12003. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12004. soname_spec='${libname}${release}${shared_ext}$major'
  12005. shlibpath_var=LD_LIBRARY_PATH
  12006. hardcode_into_libs=yes
  12007. ;;
  12008. hpux9* | hpux10* | hpux11*)
  12009. # Give a soname corresponding to the major version so that dld.sl refuses to
  12010. # link against other versions.
  12011. version_type=sunos
  12012. need_lib_prefix=no
  12013. need_version=no
  12014. case $host_cpu in
  12015. ia64*)
  12016. shrext_cmds='.so'
  12017. hardcode_into_libs=yes
  12018. dynamic_linker="$host_os dld.so"
  12019. shlibpath_var=LD_LIBRARY_PATH
  12020. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12021. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12022. soname_spec='${libname}${release}${shared_ext}$major'
  12023. if test "X$HPUX_IA64_MODE" = X32; then
  12024. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12025. else
  12026. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12027. fi
  12028. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12029. ;;
  12030. hppa*64*)
  12031. shrext_cmds='.sl'
  12032. hardcode_into_libs=yes
  12033. dynamic_linker="$host_os dld.sl"
  12034. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12035. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12036. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12037. soname_spec='${libname}${release}${shared_ext}$major'
  12038. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12039. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12040. ;;
  12041. *)
  12042. shrext_cmds='.sl'
  12043. dynamic_linker="$host_os dld.sl"
  12044. shlibpath_var=SHLIB_PATH
  12045. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12046. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12047. soname_spec='${libname}${release}${shared_ext}$major'
  12048. ;;
  12049. esac
  12050. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  12051. postinstall_cmds='chmod 555 $lib'
  12052. ;;
  12053. interix[3-9]*)
  12054. version_type=linux
  12055. need_lib_prefix=no
  12056. need_version=no
  12057. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12058. soname_spec='${libname}${release}${shared_ext}$major'
  12059. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12060. shlibpath_var=LD_LIBRARY_PATH
  12061. shlibpath_overrides_runpath=no
  12062. hardcode_into_libs=yes
  12063. ;;
  12064. irix5* | irix6* | nonstopux*)
  12065. case $host_os in
  12066. nonstopux*) version_type=nonstopux ;;
  12067. *)
  12068. if test "$lt_cv_prog_gnu_ld" = yes; then
  12069. version_type=linux
  12070. else
  12071. version_type=irix
  12072. fi ;;
  12073. esac
  12074. need_lib_prefix=no
  12075. need_version=no
  12076. soname_spec='${libname}${release}${shared_ext}$major'
  12077. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12078. case $host_os in
  12079. irix5* | nonstopux*)
  12080. libsuff= shlibsuff=
  12081. ;;
  12082. *)
  12083. case $LD in # libtool.m4 will add one of these switches to LD
  12084. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12085. libsuff= shlibsuff= libmagic=32-bit;;
  12086. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12087. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12088. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12089. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12090. *) libsuff= shlibsuff= libmagic=never-match;;
  12091. esac
  12092. ;;
  12093. esac
  12094. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12095. shlibpath_overrides_runpath=no
  12096. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12097. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12098. hardcode_into_libs=yes
  12099. ;;
  12100. # No shared lib support for Linux oldld, aout, or coff.
  12101. linux*oldld* | linux*aout* | linux*coff*)
  12102. dynamic_linker=no
  12103. ;;
  12104. # This must be Linux ELF.
  12105. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12106. version_type=linux
  12107. need_lib_prefix=no
  12108. need_version=no
  12109. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12110. soname_spec='${libname}${release}${shared_ext}$major'
  12111. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12112. shlibpath_var=LD_LIBRARY_PATH
  12113. shlibpath_overrides_runpath=no
  12114. # Some binutils ld are patched to set DT_RUNPATH
  12115. save_LDFLAGS=$LDFLAGS
  12116. save_libdir=$libdir
  12117. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  12118. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  12119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12120. /* end confdefs.h. */
  12121. int
  12122. main ()
  12123. {
  12124. ;
  12125. return 0;
  12126. }
  12127. _ACEOF
  12128. if ac_fn_cxx_try_link "$LINENO"; then :
  12129. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12130. shlibpath_overrides_runpath=yes
  12131. fi
  12132. fi
  12133. rm -f core conftest.err conftest.$ac_objext \
  12134. conftest$ac_exeext conftest.$ac_ext
  12135. LDFLAGS=$save_LDFLAGS
  12136. libdir=$save_libdir
  12137. # This implies no fast_install, which is unacceptable.
  12138. # Some rework will be needed to allow for fast_install
  12139. # before this can be enabled.
  12140. hardcode_into_libs=yes
  12141. # Append ld.so.conf contents to the search path
  12142. if test -f /etc/ld.so.conf; then
  12143. 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;/^$/d' | tr '\n' ' '`
  12144. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12145. fi
  12146. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12147. # powerpc, because MkLinux only supported shared libraries with the
  12148. # GNU dynamic linker. Since this was broken with cross compilers,
  12149. # most powerpc-linux boxes support dynamic linking these days and
  12150. # people can always --disable-shared, the test was removed, and we
  12151. # assume the GNU/Linux dynamic linker is in use.
  12152. dynamic_linker='GNU/Linux ld.so'
  12153. ;;
  12154. netbsdelf*-gnu)
  12155. version_type=linux
  12156. need_lib_prefix=no
  12157. need_version=no
  12158. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12159. soname_spec='${libname}${release}${shared_ext}$major'
  12160. shlibpath_var=LD_LIBRARY_PATH
  12161. shlibpath_overrides_runpath=no
  12162. hardcode_into_libs=yes
  12163. dynamic_linker='NetBSD ld.elf_so'
  12164. ;;
  12165. netbsd*)
  12166. version_type=sunos
  12167. need_lib_prefix=no
  12168. need_version=no
  12169. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12170. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12171. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12172. dynamic_linker='NetBSD (a.out) ld.so'
  12173. else
  12174. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12175. soname_spec='${libname}${release}${shared_ext}$major'
  12176. dynamic_linker='NetBSD ld.elf_so'
  12177. fi
  12178. shlibpath_var=LD_LIBRARY_PATH
  12179. shlibpath_overrides_runpath=yes
  12180. hardcode_into_libs=yes
  12181. ;;
  12182. newsos6)
  12183. version_type=linux
  12184. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12185. shlibpath_var=LD_LIBRARY_PATH
  12186. shlibpath_overrides_runpath=yes
  12187. ;;
  12188. *nto* | *qnx*)
  12189. version_type=qnx
  12190. need_lib_prefix=no
  12191. need_version=no
  12192. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12193. soname_spec='${libname}${release}${shared_ext}$major'
  12194. shlibpath_var=LD_LIBRARY_PATH
  12195. shlibpath_overrides_runpath=no
  12196. hardcode_into_libs=yes
  12197. dynamic_linker='ldqnx.so'
  12198. ;;
  12199. openbsd*)
  12200. version_type=sunos
  12201. sys_lib_dlsearch_path_spec="/usr/lib"
  12202. need_lib_prefix=no
  12203. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12204. case $host_os in
  12205. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12206. *) need_version=no ;;
  12207. esac
  12208. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12209. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12210. shlibpath_var=LD_LIBRARY_PATH
  12211. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12212. case $host_os in
  12213. openbsd2.[89] | openbsd2.[89].*)
  12214. shlibpath_overrides_runpath=no
  12215. ;;
  12216. *)
  12217. shlibpath_overrides_runpath=yes
  12218. ;;
  12219. esac
  12220. else
  12221. shlibpath_overrides_runpath=yes
  12222. fi
  12223. ;;
  12224. os2*)
  12225. libname_spec='$name'
  12226. shrext_cmds=".dll"
  12227. need_lib_prefix=no
  12228. library_names_spec='$libname${shared_ext} $libname.a'
  12229. dynamic_linker='OS/2 ld.exe'
  12230. shlibpath_var=LIBPATH
  12231. ;;
  12232. osf3* | osf4* | osf5*)
  12233. version_type=osf
  12234. need_lib_prefix=no
  12235. need_version=no
  12236. soname_spec='${libname}${release}${shared_ext}$major'
  12237. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12238. shlibpath_var=LD_LIBRARY_PATH
  12239. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12240. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12241. ;;
  12242. rdos*)
  12243. dynamic_linker=no
  12244. ;;
  12245. solaris*)
  12246. version_type=linux
  12247. need_lib_prefix=no
  12248. need_version=no
  12249. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12250. soname_spec='${libname}${release}${shared_ext}$major'
  12251. shlibpath_var=LD_LIBRARY_PATH
  12252. shlibpath_overrides_runpath=yes
  12253. hardcode_into_libs=yes
  12254. # ldd complains unless libraries are executable
  12255. postinstall_cmds='chmod +x $lib'
  12256. ;;
  12257. sunos4*)
  12258. version_type=sunos
  12259. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12260. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12261. shlibpath_var=LD_LIBRARY_PATH
  12262. shlibpath_overrides_runpath=yes
  12263. if test "$with_gnu_ld" = yes; then
  12264. need_lib_prefix=no
  12265. fi
  12266. need_version=yes
  12267. ;;
  12268. sysv4 | sysv4.3*)
  12269. version_type=linux
  12270. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12271. soname_spec='${libname}${release}${shared_ext}$major'
  12272. shlibpath_var=LD_LIBRARY_PATH
  12273. case $host_vendor in
  12274. sni)
  12275. shlibpath_overrides_runpath=no
  12276. need_lib_prefix=no
  12277. runpath_var=LD_RUN_PATH
  12278. ;;
  12279. siemens)
  12280. need_lib_prefix=no
  12281. ;;
  12282. motorola)
  12283. need_lib_prefix=no
  12284. need_version=no
  12285. shlibpath_overrides_runpath=no
  12286. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12287. ;;
  12288. esac
  12289. ;;
  12290. sysv4*MP*)
  12291. if test -d /usr/nec ;then
  12292. version_type=linux
  12293. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12294. soname_spec='$libname${shared_ext}.$major'
  12295. shlibpath_var=LD_LIBRARY_PATH
  12296. fi
  12297. ;;
  12298. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12299. version_type=freebsd-elf
  12300. need_lib_prefix=no
  12301. need_version=no
  12302. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12303. soname_spec='${libname}${release}${shared_ext}$major'
  12304. shlibpath_var=LD_LIBRARY_PATH
  12305. shlibpath_overrides_runpath=yes
  12306. hardcode_into_libs=yes
  12307. if test "$with_gnu_ld" = yes; then
  12308. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12309. else
  12310. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12311. case $host_os in
  12312. sco3.2v5*)
  12313. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12314. ;;
  12315. esac
  12316. fi
  12317. sys_lib_dlsearch_path_spec='/usr/lib'
  12318. ;;
  12319. tpf*)
  12320. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  12321. version_type=linux
  12322. need_lib_prefix=no
  12323. need_version=no
  12324. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12325. shlibpath_var=LD_LIBRARY_PATH
  12326. shlibpath_overrides_runpath=no
  12327. hardcode_into_libs=yes
  12328. ;;
  12329. uts4*)
  12330. version_type=linux
  12331. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12332. soname_spec='${libname}${release}${shared_ext}$major'
  12333. shlibpath_var=LD_LIBRARY_PATH
  12334. ;;
  12335. *)
  12336. dynamic_linker=no
  12337. ;;
  12338. esac
  12339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  12340. $as_echo "$dynamic_linker" >&6; }
  12341. test "$dynamic_linker" = no && can_build_shared=no
  12342. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12343. if test "$GCC" = yes; then
  12344. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12345. fi
  12346. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  12347. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  12348. fi
  12349. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  12350. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  12351. fi
  12352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  12353. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  12354. hardcode_action_CXX=
  12355. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  12356. test -n "$runpath_var_CXX" ||
  12357. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  12358. # We can hardcode non-existent directories.
  12359. if test "$hardcode_direct_CXX" != no &&
  12360. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12361. # have to relink, otherwise we might link with an installed library
  12362. # when we should be linking with a yet-to-be-installed one
  12363. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  12364. test "$hardcode_minus_L_CXX" != no; then
  12365. # Linking always hardcodes the temporary library directory.
  12366. hardcode_action_CXX=relink
  12367. else
  12368. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12369. hardcode_action_CXX=immediate
  12370. fi
  12371. else
  12372. # We cannot hardcode anything, or else we can only hardcode existing
  12373. # directories.
  12374. hardcode_action_CXX=unsupported
  12375. fi
  12376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  12377. $as_echo "$hardcode_action_CXX" >&6; }
  12378. if test "$hardcode_action_CXX" = relink ||
  12379. test "$inherit_rpath_CXX" = yes; then
  12380. # Fast installation is not supported
  12381. enable_fast_install=no
  12382. elif test "$shlibpath_overrides_runpath" = yes ||
  12383. test "$enable_shared" = no; then
  12384. # Fast installation is not necessary
  12385. enable_fast_install=needless
  12386. fi
  12387. fi # test -n "$compiler"
  12388. CC=$lt_save_CC
  12389. LDCXX=$LD
  12390. LD=$lt_save_LD
  12391. GCC=$lt_save_GCC
  12392. with_gnu_ld=$lt_save_with_gnu_ld
  12393. lt_cv_path_LDCXX=$lt_cv_path_LD
  12394. lt_cv_path_LD=$lt_save_path_LD
  12395. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  12396. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  12397. fi # test "$_lt_caught_CXX_error" != yes
  12398. ac_ext=c
  12399. ac_cpp='$CPP $CPPFLAGS'
  12400. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12401. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12402. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12403. ac_config_commands="$ac_config_commands libtool"
  12404. # Only expand once:
  12405. # Propagate our conditionals.
  12406. if test x$nutdisc_ok = xyes; then
  12407. BUILD_NUTDISC_TRUE=
  12408. BUILD_NUTDISC_FALSE='#'
  12409. else
  12410. BUILD_NUTDISC_TRUE='#'
  12411. BUILD_NUTDISC_FALSE=
  12412. fi
  12413. ac_config_files="$ac_config_files Makefile src/Makefile"
  12414. cat >confcache <<\_ACEOF
  12415. # This file is a shell script that caches the results of configure
  12416. # tests run on this system so they can be shared between configure
  12417. # scripts and configure runs, see configure's option --config-cache.
  12418. # It is not useful on other systems. If it contains results you don't
  12419. # want to keep, you may remove or edit it.
  12420. #
  12421. # config.status only pays attention to the cache file if you give it
  12422. # the --recheck option to rerun configure.
  12423. #
  12424. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12425. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12426. # following values.
  12427. _ACEOF
  12428. # The following way of writing the cache mishandles newlines in values,
  12429. # but we know of no workaround that is simple, portable, and efficient.
  12430. # So, we kill variables containing newlines.
  12431. # Ultrix sh set writes to stderr and can't be redirected directly,
  12432. # and sets the high bit in the cache file unless we assign to the vars.
  12433. (
  12434. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  12435. eval ac_val=\$$ac_var
  12436. case $ac_val in #(
  12437. *${as_nl}*)
  12438. case $ac_var in #(
  12439. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  12440. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  12441. esac
  12442. case $ac_var in #(
  12443. _ | IFS | as_nl) ;; #(
  12444. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  12445. *) { eval $ac_var=; unset $ac_var;} ;;
  12446. esac ;;
  12447. esac
  12448. done
  12449. (set) 2>&1 |
  12450. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  12451. *${as_nl}ac_space=\ *)
  12452. # `set' does not quote correctly, so add quotes: double-quote
  12453. # substitution turns \\\\ into \\, and sed turns \\ into \.
  12454. sed -n \
  12455. "s/'/'\\\\''/g;
  12456. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12457. ;; #(
  12458. *)
  12459. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12460. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  12461. ;;
  12462. esac |
  12463. sort
  12464. ) |
  12465. sed '
  12466. /^ac_cv_env_/b end
  12467. t clear
  12468. :clear
  12469. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12470. t end
  12471. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12472. :end' >>confcache
  12473. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  12474. if test -w "$cache_file"; then
  12475. test "x$cache_file" != "x/dev/null" &&
  12476. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  12477. $as_echo "$as_me: updating cache $cache_file" >&6;}
  12478. cat confcache >$cache_file
  12479. else
  12480. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  12481. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  12482. fi
  12483. fi
  12484. rm -f confcache
  12485. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  12486. # Let make expand exec_prefix.
  12487. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  12488. DEFS=-DHAVE_CONFIG_H
  12489. ac_libobjs=
  12490. ac_ltlibobjs=
  12491. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  12492. # 1. Remove the extension, and $U if already installed.
  12493. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  12494. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  12495. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  12496. # will be set to the directory where LIBOBJS objects are built.
  12497. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  12498. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  12499. done
  12500. LIBOBJS=$ac_libobjs
  12501. LTLIBOBJS=$ac_ltlibobjs
  12502. if test -n "$EXEEXT"; then
  12503. am__EXEEXT_TRUE=
  12504. am__EXEEXT_FALSE='#'
  12505. else
  12506. am__EXEEXT_TRUE='#'
  12507. am__EXEEXT_FALSE=
  12508. fi
  12509. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  12510. as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  12511. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12512. fi
  12513. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  12514. as_fn_error "conditional \"AMDEP\" was never defined.
  12515. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12516. fi
  12517. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  12518. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  12519. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12520. fi
  12521. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  12522. as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  12523. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12524. fi
  12525. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  12526. as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  12527. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12528. fi
  12529. if test -z "${BUILD_NUTDISC_TRUE}" && test -z "${BUILD_NUTDISC_FALSE}"; then
  12530. as_fn_error "conditional \"BUILD_NUTDISC\" was never defined.
  12531. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12532. fi
  12533. : ${CONFIG_STATUS=./config.status}
  12534. ac_write_fail=0
  12535. ac_clean_files_save=$ac_clean_files
  12536. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  12537. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  12538. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  12539. as_write_fail=0
  12540. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  12541. #! $SHELL
  12542. # Generated by $as_me.
  12543. # Run this file to recreate the current configuration.
  12544. # Compiler output produced by configure, useful for debugging
  12545. # configure, is in config.log if it exists.
  12546. debug=false
  12547. ac_cs_recheck=false
  12548. ac_cs_silent=false
  12549. SHELL=\${CONFIG_SHELL-$SHELL}
  12550. export SHELL
  12551. _ASEOF
  12552. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  12553. ## -------------------- ##
  12554. ## M4sh Initialization. ##
  12555. ## -------------------- ##
  12556. # Be more Bourne compatible
  12557. DUALCASE=1; export DUALCASE # for MKS sh
  12558. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  12559. emulate sh
  12560. NULLCMD=:
  12561. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  12562. # is contrary to our usage. Disable this feature.
  12563. alias -g '${1+"$@"}'='"$@"'
  12564. setopt NO_GLOB_SUBST
  12565. else
  12566. case `(set -o) 2>/dev/null` in #(
  12567. *posix*) :
  12568. set -o posix ;; #(
  12569. *) :
  12570. ;;
  12571. esac
  12572. fi
  12573. as_nl='
  12574. '
  12575. export as_nl
  12576. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  12577. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  12578. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  12579. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  12580. # Prefer a ksh shell builtin over an external printf program on Solaris,
  12581. # but without wasting forks for bash or zsh.
  12582. if test -z "$BASH_VERSION$ZSH_VERSION" \
  12583. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  12584. as_echo='print -r --'
  12585. as_echo_n='print -rn --'
  12586. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  12587. as_echo='printf %s\n'
  12588. as_echo_n='printf %s'
  12589. else
  12590. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  12591. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  12592. as_echo_n='/usr/ucb/echo -n'
  12593. else
  12594. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  12595. as_echo_n_body='eval
  12596. arg=$1;
  12597. case $arg in #(
  12598. *"$as_nl"*)
  12599. expr "X$arg" : "X\\(.*\\)$as_nl";
  12600. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  12601. esac;
  12602. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  12603. '
  12604. export as_echo_n_body
  12605. as_echo_n='sh -c $as_echo_n_body as_echo'
  12606. fi
  12607. export as_echo_body
  12608. as_echo='sh -c $as_echo_body as_echo'
  12609. fi
  12610. # The user is always right.
  12611. if test "${PATH_SEPARATOR+set}" != set; then
  12612. PATH_SEPARATOR=:
  12613. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  12614. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  12615. PATH_SEPARATOR=';'
  12616. }
  12617. fi
  12618. # IFS
  12619. # We need space, tab and new line, in precisely that order. Quoting is
  12620. # there to prevent editors from complaining about space-tab.
  12621. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  12622. # splitting by setting IFS to empty value.)
  12623. IFS=" "" $as_nl"
  12624. # Find who we are. Look in the path if we contain no directory separator.
  12625. case $0 in #((
  12626. *[\\/]* ) as_myself=$0 ;;
  12627. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12628. for as_dir in $PATH
  12629. do
  12630. IFS=$as_save_IFS
  12631. test -z "$as_dir" && as_dir=.
  12632. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12633. done
  12634. IFS=$as_save_IFS
  12635. ;;
  12636. esac
  12637. # We did not find ourselves, most probably we were run as `sh COMMAND'
  12638. # in which case we are not to be found in the path.
  12639. if test "x$as_myself" = x; then
  12640. as_myself=$0
  12641. fi
  12642. if test ! -f "$as_myself"; then
  12643. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  12644. exit 1
  12645. fi
  12646. # Unset variables that we do not need and which cause bugs (e.g. in
  12647. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  12648. # suppresses any "Segmentation fault" message there. '((' could
  12649. # trigger a bug in pdksh 5.2.14.
  12650. for as_var in BASH_ENV ENV MAIL MAILPATH
  12651. do eval test x\${$as_var+set} = xset \
  12652. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  12653. done
  12654. PS1='$ '
  12655. PS2='> '
  12656. PS4='+ '
  12657. # NLS nuisances.
  12658. LC_ALL=C
  12659. export LC_ALL
  12660. LANGUAGE=C
  12661. export LANGUAGE
  12662. # CDPATH.
  12663. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  12664. # as_fn_error ERROR [LINENO LOG_FD]
  12665. # ---------------------------------
  12666. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  12667. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  12668. # script with status $?, using 1 if that was 0.
  12669. as_fn_error ()
  12670. {
  12671. as_status=$?; test $as_status -eq 0 && as_status=1
  12672. if test "$3"; then
  12673. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  12674. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  12675. fi
  12676. $as_echo "$as_me: error: $1" >&2
  12677. as_fn_exit $as_status
  12678. } # as_fn_error
  12679. # as_fn_set_status STATUS
  12680. # -----------------------
  12681. # Set $? to STATUS, without forking.
  12682. as_fn_set_status ()
  12683. {
  12684. return $1
  12685. } # as_fn_set_status
  12686. # as_fn_exit STATUS
  12687. # -----------------
  12688. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  12689. as_fn_exit ()
  12690. {
  12691. set +e
  12692. as_fn_set_status $1
  12693. exit $1
  12694. } # as_fn_exit
  12695. # as_fn_unset VAR
  12696. # ---------------
  12697. # Portably unset VAR.
  12698. as_fn_unset ()
  12699. {
  12700. { eval $1=; unset $1;}
  12701. }
  12702. as_unset=as_fn_unset
  12703. # as_fn_append VAR VALUE
  12704. # ----------------------
  12705. # Append the text in VALUE to the end of the definition contained in VAR. Take
  12706. # advantage of any shell optimizations that allow amortized linear growth over
  12707. # repeated appends, instead of the typical quadratic growth present in naive
  12708. # implementations.
  12709. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  12710. eval 'as_fn_append ()
  12711. {
  12712. eval $1+=\$2
  12713. }'
  12714. else
  12715. as_fn_append ()
  12716. {
  12717. eval $1=\$$1\$2
  12718. }
  12719. fi # as_fn_append
  12720. # as_fn_arith ARG...
  12721. # ------------------
  12722. # Perform arithmetic evaluation on the ARGs, and store the result in the
  12723. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  12724. # must be portable across $(()) and expr.
  12725. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  12726. eval 'as_fn_arith ()
  12727. {
  12728. as_val=$(( $* ))
  12729. }'
  12730. else
  12731. as_fn_arith ()
  12732. {
  12733. as_val=`expr "$@" || test $? -eq 1`
  12734. }
  12735. fi # as_fn_arith
  12736. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12737. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12738. as_expr=expr
  12739. else
  12740. as_expr=false
  12741. fi
  12742. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  12743. as_basename=basename
  12744. else
  12745. as_basename=false
  12746. fi
  12747. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  12748. as_dirname=dirname
  12749. else
  12750. as_dirname=false
  12751. fi
  12752. as_me=`$as_basename -- "$0" ||
  12753. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  12754. X"$0" : 'X\(//\)$' \| \
  12755. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  12756. $as_echo X/"$0" |
  12757. sed '/^.*\/\([^/][^/]*\)\/*$/{
  12758. s//\1/
  12759. q
  12760. }
  12761. /^X\/\(\/\/\)$/{
  12762. s//\1/
  12763. q
  12764. }
  12765. /^X\/\(\/\).*/{
  12766. s//\1/
  12767. q
  12768. }
  12769. s/.*/./; q'`
  12770. # Avoid depending upon Character Ranges.
  12771. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12772. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12773. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12774. as_cr_digits='0123456789'
  12775. as_cr_alnum=$as_cr_Letters$as_cr_digits
  12776. ECHO_C= ECHO_N= ECHO_T=
  12777. case `echo -n x` in #(((((
  12778. -n*)
  12779. case `echo 'xy\c'` in
  12780. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  12781. xy) ECHO_C='\c';;
  12782. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  12783. ECHO_T=' ';;
  12784. esac;;
  12785. *)
  12786. ECHO_N='-n';;
  12787. esac
  12788. rm -f conf$$ conf$$.exe conf$$.file
  12789. if test -d conf$$.dir; then
  12790. rm -f conf$$.dir/conf$$.file
  12791. else
  12792. rm -f conf$$.dir
  12793. mkdir conf$$.dir 2>/dev/null
  12794. fi
  12795. if (echo >conf$$.file) 2>/dev/null; then
  12796. if ln -s conf$$.file conf$$ 2>/dev/null; then
  12797. as_ln_s='ln -s'
  12798. # ... but there are two gotchas:
  12799. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  12800. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  12801. # In both cases, we have to default to `cp -p'.
  12802. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  12803. as_ln_s='cp -p'
  12804. elif ln conf$$.file conf$$ 2>/dev/null; then
  12805. as_ln_s=ln
  12806. else
  12807. as_ln_s='cp -p'
  12808. fi
  12809. else
  12810. as_ln_s='cp -p'
  12811. fi
  12812. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  12813. rmdir conf$$.dir 2>/dev/null
  12814. # as_fn_mkdir_p
  12815. # -------------
  12816. # Create "$as_dir" as a directory, including parents if necessary.
  12817. as_fn_mkdir_p ()
  12818. {
  12819. case $as_dir in #(
  12820. -*) as_dir=./$as_dir;;
  12821. esac
  12822. test -d "$as_dir" || eval $as_mkdir_p || {
  12823. as_dirs=
  12824. while :; do
  12825. case $as_dir in #(
  12826. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  12827. *) as_qdir=$as_dir;;
  12828. esac
  12829. as_dirs="'$as_qdir' $as_dirs"
  12830. as_dir=`$as_dirname -- "$as_dir" ||
  12831. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12832. X"$as_dir" : 'X\(//\)[^/]' \| \
  12833. X"$as_dir" : 'X\(//\)$' \| \
  12834. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  12835. $as_echo X"$as_dir" |
  12836. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12837. s//\1/
  12838. q
  12839. }
  12840. /^X\(\/\/\)[^/].*/{
  12841. s//\1/
  12842. q
  12843. }
  12844. /^X\(\/\/\)$/{
  12845. s//\1/
  12846. q
  12847. }
  12848. /^X\(\/\).*/{
  12849. s//\1/
  12850. q
  12851. }
  12852. s/.*/./; q'`
  12853. test -d "$as_dir" && break
  12854. done
  12855. test -z "$as_dirs" || eval "mkdir $as_dirs"
  12856. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  12857. } # as_fn_mkdir_p
  12858. if mkdir -p . 2>/dev/null; then
  12859. as_mkdir_p='mkdir -p "$as_dir"'
  12860. else
  12861. test -d ./-p && rmdir ./-p
  12862. as_mkdir_p=false
  12863. fi
  12864. if test -x / >/dev/null 2>&1; then
  12865. as_test_x='test -x'
  12866. else
  12867. if ls -dL / >/dev/null 2>&1; then
  12868. as_ls_L_option=L
  12869. else
  12870. as_ls_L_option=
  12871. fi
  12872. as_test_x='
  12873. eval sh -c '\''
  12874. if test -d "$1"; then
  12875. test -d "$1/.";
  12876. else
  12877. case $1 in #(
  12878. -*)set "./$1";;
  12879. esac;
  12880. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  12881. ???[sx]*):;;*)false;;esac;fi
  12882. '\'' sh
  12883. '
  12884. fi
  12885. as_executable_p=$as_test_x
  12886. # Sed expression to map a string onto a valid CPP name.
  12887. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  12888. # Sed expression to map a string onto a valid variable name.
  12889. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  12890. exec 6>&1
  12891. ## ----------------------------------- ##
  12892. ## Main body of $CONFIG_STATUS script. ##
  12893. ## ----------------------------------- ##
  12894. _ASEOF
  12895. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  12896. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12897. # Save the log message, to keep $0 and so on meaningful, and to
  12898. # report actual input values of CONFIG_FILES etc. instead of their
  12899. # values after options handling.
  12900. ac_log="
  12901. This file was extended by nutdisc $as_me 3.0.0, which was
  12902. generated by GNU Autoconf 2.65. Invocation command line was
  12903. CONFIG_FILES = $CONFIG_FILES
  12904. CONFIG_HEADERS = $CONFIG_HEADERS
  12905. CONFIG_LINKS = $CONFIG_LINKS
  12906. CONFIG_COMMANDS = $CONFIG_COMMANDS
  12907. $ $0 $@
  12908. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  12909. "
  12910. _ACEOF
  12911. case $ac_config_files in *"
  12912. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  12913. esac
  12914. case $ac_config_headers in *"
  12915. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  12916. esac
  12917. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12918. # Files that config.status was made for.
  12919. config_files="$ac_config_files"
  12920. config_headers="$ac_config_headers"
  12921. config_commands="$ac_config_commands"
  12922. _ACEOF
  12923. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12924. ac_cs_usage="\
  12925. \`$as_me' instantiates files and other configuration actions
  12926. from templates according to the current configuration. Unless the files
  12927. and actions are specified as TAGs, all are instantiated by default.
  12928. Usage: $0 [OPTION]... [TAG]...
  12929. -h, --help print this help, then exit
  12930. -V, --version print version number and configuration settings, then exit
  12931. --config print configuration, then exit
  12932. -q, --quiet, --silent
  12933. do not print progress messages
  12934. -d, --debug don't remove temporary files
  12935. --recheck update $as_me by reconfiguring in the same conditions
  12936. --file=FILE[:TEMPLATE]
  12937. instantiate the configuration file FILE
  12938. --header=FILE[:TEMPLATE]
  12939. instantiate the configuration header FILE
  12940. Configuration files:
  12941. $config_files
  12942. Configuration headers:
  12943. $config_headers
  12944. Configuration commands:
  12945. $config_commands
  12946. Report bugs to the package provider."
  12947. _ACEOF
  12948. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12949. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  12950. ac_cs_version="\\
  12951. nutdisc config.status 3.0.0
  12952. configured by $0, generated by GNU Autoconf 2.65,
  12953. with options \\"\$ac_cs_config\\"
  12954. Copyright (C) 2009 Free Software Foundation, Inc.
  12955. This config.status script is free software; the Free Software Foundation
  12956. gives unlimited permission to copy, distribute and modify it."
  12957. ac_pwd='$ac_pwd'
  12958. srcdir='$srcdir'
  12959. INSTALL='$INSTALL'
  12960. MKDIR_P='$MKDIR_P'
  12961. AWK='$AWK'
  12962. test -n "\$AWK" || AWK=awk
  12963. _ACEOF
  12964. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12965. # The default lists apply if the user does not specify any file.
  12966. ac_need_defaults=:
  12967. while test $# != 0
  12968. do
  12969. case $1 in
  12970. --*=*)
  12971. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12972. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  12973. ac_shift=:
  12974. ;;
  12975. *)
  12976. ac_option=$1
  12977. ac_optarg=$2
  12978. ac_shift=shift
  12979. ;;
  12980. esac
  12981. case $ac_option in
  12982. # Handling of the options.
  12983. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  12984. ac_cs_recheck=: ;;
  12985. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  12986. $as_echo "$ac_cs_version"; exit ;;
  12987. --config | --confi | --conf | --con | --co | --c )
  12988. $as_echo "$ac_cs_config"; exit ;;
  12989. --debug | --debu | --deb | --de | --d | -d )
  12990. debug=: ;;
  12991. --file | --fil | --fi | --f )
  12992. $ac_shift
  12993. case $ac_optarg in
  12994. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12995. esac
  12996. as_fn_append CONFIG_FILES " '$ac_optarg'"
  12997. ac_need_defaults=false;;
  12998. --header | --heade | --head | --hea )
  12999. $ac_shift
  13000. case $ac_optarg in
  13001. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13002. esac
  13003. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  13004. ac_need_defaults=false;;
  13005. --he | --h)
  13006. # Conflict between --help and --header
  13007. as_fn_error "ambiguous option: \`$1'
  13008. Try \`$0 --help' for more information.";;
  13009. --help | --hel | -h )
  13010. $as_echo "$ac_cs_usage"; exit ;;
  13011. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  13012. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  13013. ac_cs_silent=: ;;
  13014. # This is an error.
  13015. -*) as_fn_error "unrecognized option: \`$1'
  13016. Try \`$0 --help' for more information." ;;
  13017. *) as_fn_append ac_config_targets " $1"
  13018. ac_need_defaults=false ;;
  13019. esac
  13020. shift
  13021. done
  13022. ac_configure_extra_args=
  13023. if $ac_cs_silent; then
  13024. exec 6>/dev/null
  13025. ac_configure_extra_args="$ac_configure_extra_args --silent"
  13026. fi
  13027. _ACEOF
  13028. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13029. if \$ac_cs_recheck; then
  13030. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  13031. shift
  13032. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  13033. CONFIG_SHELL='$SHELL'
  13034. export CONFIG_SHELL
  13035. exec "\$@"
  13036. fi
  13037. _ACEOF
  13038. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13039. exec 5>>config.log
  13040. {
  13041. echo
  13042. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  13043. ## Running $as_me. ##
  13044. _ASBOX
  13045. $as_echo "$ac_log"
  13046. } >&5
  13047. _ACEOF
  13048. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13049. #
  13050. # INIT-COMMANDS
  13051. #
  13052. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  13053. # The HP-UX ksh and POSIX shell print the target directory to stdout
  13054. # if CDPATH is set.
  13055. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13056. sed_quote_subst='$sed_quote_subst'
  13057. double_quote_subst='$double_quote_subst'
  13058. delay_variable_subst='$delay_variable_subst'
  13059. macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  13060. macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  13061. enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  13062. enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  13063. pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  13064. enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  13065. host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  13066. host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  13067. host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  13068. build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  13069. build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  13070. build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  13071. SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  13072. Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  13073. GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  13074. EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  13075. FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  13076. LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  13077. NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  13078. LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  13079. max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  13080. ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  13081. exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  13082. lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  13083. lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  13084. lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  13085. reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  13086. reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13087. OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  13088. deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  13089. file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  13090. AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  13091. AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  13092. STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  13093. RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  13094. old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13095. old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13096. old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13097. CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  13098. CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  13099. compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  13100. GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  13101. lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  13102. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  13103. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
  13104. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  13105. objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  13106. SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  13107. ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  13108. MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  13109. lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  13110. lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  13111. lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  13112. lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  13113. lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  13114. need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  13115. DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  13116. NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  13117. LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  13118. OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  13119. OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  13120. libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  13121. shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13122. extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13123. archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  13124. enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  13125. export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13126. whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13127. compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  13128. old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13129. old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13130. archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13131. archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13132. module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13133. module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13134. with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  13135. allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  13136. no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  13137. hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13138. hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  13139. hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  13140. hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  13141. hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  13142. hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  13143. hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  13144. hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  13145. inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  13146. link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  13147. fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  13148. always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  13149. export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13150. exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  13151. include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  13152. prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13153. file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13154. variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  13155. need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  13156. need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  13157. version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  13158. runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  13159. shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  13160. shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  13161. libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13162. library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13163. soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13164. postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13165. postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13166. finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13167. finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  13168. hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  13169. sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13170. sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13171. hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  13172. enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  13173. enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  13174. enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  13175. old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  13176. striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  13177. compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
  13178. predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  13179. postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  13180. predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
  13181. postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
  13182. compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
  13183. LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13184. old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13185. compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13186. GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13187. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13188. lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13189. lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13190. lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13191. lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13192. archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13193. enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13194. export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13195. whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13196. compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13197. old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13198. old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13199. archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13200. archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13201. module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13202. module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13203. with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13204. allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13205. no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13206. hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13207. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13208. hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13209. hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13210. hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13211. hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13212. hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13213. hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13214. inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13215. link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13216. fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13217. always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13218. export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13219. exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13220. include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13221. prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13222. file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13223. hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13224. compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13225. predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13226. postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13227. predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13228. postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13229. compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13230. LTCC='$LTCC'
  13231. LTCFLAGS='$LTCFLAGS'
  13232. compiler='$compiler_DEFAULT'
  13233. # Quote evaled strings.
  13234. for var in SED \
  13235. GREP \
  13236. EGREP \
  13237. FGREP \
  13238. LD \
  13239. NM \
  13240. LN_S \
  13241. lt_SP2NL \
  13242. lt_NL2SP \
  13243. reload_flag \
  13244. OBJDUMP \
  13245. deplibs_check_method \
  13246. file_magic_cmd \
  13247. AR \
  13248. AR_FLAGS \
  13249. STRIP \
  13250. RANLIB \
  13251. CC \
  13252. CFLAGS \
  13253. compiler \
  13254. lt_cv_sys_global_symbol_pipe \
  13255. lt_cv_sys_global_symbol_to_cdecl \
  13256. lt_cv_sys_global_symbol_to_c_name_address \
  13257. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  13258. SHELL \
  13259. ECHO \
  13260. lt_prog_compiler_no_builtin_flag \
  13261. lt_prog_compiler_wl \
  13262. lt_prog_compiler_pic \
  13263. lt_prog_compiler_static \
  13264. lt_cv_prog_compiler_c_o \
  13265. need_locks \
  13266. DSYMUTIL \
  13267. NMEDIT \
  13268. LIPO \
  13269. OTOOL \
  13270. OTOOL64 \
  13271. shrext_cmds \
  13272. export_dynamic_flag_spec \
  13273. whole_archive_flag_spec \
  13274. compiler_needs_object \
  13275. with_gnu_ld \
  13276. allow_undefined_flag \
  13277. no_undefined_flag \
  13278. hardcode_libdir_flag_spec \
  13279. hardcode_libdir_flag_spec_ld \
  13280. hardcode_libdir_separator \
  13281. fix_srcfile_path \
  13282. exclude_expsyms \
  13283. include_expsyms \
  13284. file_list_spec \
  13285. variables_saved_for_relink \
  13286. libname_spec \
  13287. library_names_spec \
  13288. soname_spec \
  13289. finish_eval \
  13290. old_striplib \
  13291. striplib \
  13292. compiler_lib_search_dirs \
  13293. predep_objects \
  13294. postdep_objects \
  13295. predeps \
  13296. postdeps \
  13297. compiler_lib_search_path \
  13298. LD_CXX \
  13299. compiler_CXX \
  13300. lt_prog_compiler_no_builtin_flag_CXX \
  13301. lt_prog_compiler_wl_CXX \
  13302. lt_prog_compiler_pic_CXX \
  13303. lt_prog_compiler_static_CXX \
  13304. lt_cv_prog_compiler_c_o_CXX \
  13305. export_dynamic_flag_spec_CXX \
  13306. whole_archive_flag_spec_CXX \
  13307. compiler_needs_object_CXX \
  13308. with_gnu_ld_CXX \
  13309. allow_undefined_flag_CXX \
  13310. no_undefined_flag_CXX \
  13311. hardcode_libdir_flag_spec_CXX \
  13312. hardcode_libdir_flag_spec_ld_CXX \
  13313. hardcode_libdir_separator_CXX \
  13314. fix_srcfile_path_CXX \
  13315. exclude_expsyms_CXX \
  13316. include_expsyms_CXX \
  13317. file_list_spec_CXX \
  13318. compiler_lib_search_dirs_CXX \
  13319. predep_objects_CXX \
  13320. postdep_objects_CXX \
  13321. predeps_CXX \
  13322. postdeps_CXX \
  13323. compiler_lib_search_path_CXX; do
  13324. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  13325. *[\\\\\\\`\\"\\\$]*)
  13326. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  13327. ;;
  13328. *)
  13329. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13330. ;;
  13331. esac
  13332. done
  13333. # Double-quote double-evaled strings.
  13334. for var in reload_cmds \
  13335. old_postinstall_cmds \
  13336. old_postuninstall_cmds \
  13337. old_archive_cmds \
  13338. extract_expsyms_cmds \
  13339. old_archive_from_new_cmds \
  13340. old_archive_from_expsyms_cmds \
  13341. archive_cmds \
  13342. archive_expsym_cmds \
  13343. module_cmds \
  13344. module_expsym_cmds \
  13345. export_symbols_cmds \
  13346. prelink_cmds \
  13347. postinstall_cmds \
  13348. postuninstall_cmds \
  13349. finish_cmds \
  13350. sys_lib_search_path_spec \
  13351. sys_lib_dlsearch_path_spec \
  13352. old_archive_cmds_CXX \
  13353. old_archive_from_new_cmds_CXX \
  13354. old_archive_from_expsyms_cmds_CXX \
  13355. archive_cmds_CXX \
  13356. archive_expsym_cmds_CXX \
  13357. module_cmds_CXX \
  13358. module_expsym_cmds_CXX \
  13359. export_symbols_cmds_CXX \
  13360. prelink_cmds_CXX; do
  13361. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  13362. *[\\\\\\\`\\"\\\$]*)
  13363. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  13364. ;;
  13365. *)
  13366. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13367. ;;
  13368. esac
  13369. done
  13370. # Fix-up fallback echo if it was mangled by the above quoting rules.
  13371. case \$lt_ECHO in
  13372. *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  13373. ;;
  13374. esac
  13375. ac_aux_dir='$ac_aux_dir'
  13376. xsi_shell='$xsi_shell'
  13377. lt_shell_append='$lt_shell_append'
  13378. # See if we are running on zsh, and set the options which allow our
  13379. # commands through without removal of \ escapes INIT.
  13380. if test -n "\${ZSH_VERSION+set}" ; then
  13381. setopt NO_GLOB_SUBST
  13382. fi
  13383. PACKAGE='$PACKAGE'
  13384. VERSION='$VERSION'
  13385. TIMESTAMP='$TIMESTAMP'
  13386. RM='$RM'
  13387. ofile='$ofile'
  13388. _ACEOF
  13389. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13390. # Handling of arguments.
  13391. for ac_config_target in $ac_config_targets
  13392. do
  13393. case $ac_config_target in
  13394. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  13395. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  13396. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  13397. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  13398. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  13399. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  13400. esac
  13401. done
  13402. # If the user did not use the arguments to specify the items to instantiate,
  13403. # then the envvar interface is used. Set only those that are not.
  13404. # We use the long form for the default assignment because of an extremely
  13405. # bizarre bug on SunOS 4.1.3.
  13406. if $ac_need_defaults; then
  13407. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  13408. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  13409. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  13410. fi
  13411. # Have a temporary directory for convenience. Make it in the build tree
  13412. # simply because there is no reason against having it here, and in addition,
  13413. # creating and moving files from /tmp can sometimes cause problems.
  13414. # Hook for its removal unless debugging.
  13415. # Note that there is a small window in which the directory will not be cleaned:
  13416. # after its creation but before its name has been assigned to `$tmp'.
  13417. $debug ||
  13418. {
  13419. tmp=
  13420. trap 'exit_status=$?
  13421. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  13422. ' 0
  13423. trap 'as_fn_exit 1' 1 2 13 15
  13424. }
  13425. # Create a (secure) tmp directory for tmp files.
  13426. {
  13427. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  13428. test -n "$tmp" && test -d "$tmp"
  13429. } ||
  13430. {
  13431. tmp=./conf$$-$RANDOM
  13432. (umask 077 && mkdir "$tmp")
  13433. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  13434. # Set up the scripts for CONFIG_FILES section.
  13435. # No need to generate them if there are no CONFIG_FILES.
  13436. # This happens for instance with `./config.status config.h'.
  13437. if test -n "$CONFIG_FILES"; then
  13438. ac_cr=`echo X | tr X '\015'`
  13439. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  13440. # But we know of no other shell where ac_cr would be empty at this
  13441. # point, so we can use a bashism as a fallback.
  13442. if test "x$ac_cr" = x; then
  13443. eval ac_cr=\$\'\\r\'
  13444. fi
  13445. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  13446. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  13447. ac_cs_awk_cr='\r'
  13448. else
  13449. ac_cs_awk_cr=$ac_cr
  13450. fi
  13451. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  13452. _ACEOF
  13453. {
  13454. echo "cat >conf$$subs.awk <<_ACEOF" &&
  13455. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  13456. echo "_ACEOF"
  13457. } >conf$$subs.sh ||
  13458. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  13459. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  13460. ac_delim='%!_!# '
  13461. for ac_last_try in false false false false false :; do
  13462. . ./conf$$subs.sh ||
  13463. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  13464. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  13465. if test $ac_delim_n = $ac_delim_num; then
  13466. break
  13467. elif $ac_last_try; then
  13468. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  13469. else
  13470. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13471. fi
  13472. done
  13473. rm -f conf$$subs.sh
  13474. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13475. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  13476. _ACEOF
  13477. sed -n '
  13478. h
  13479. s/^/S["/; s/!.*/"]=/
  13480. p
  13481. g
  13482. s/^[^!]*!//
  13483. :repl
  13484. t repl
  13485. s/'"$ac_delim"'$//
  13486. t delim
  13487. :nl
  13488. h
  13489. s/\(.\{148\}\)..*/\1/
  13490. t more1
  13491. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  13492. p
  13493. n
  13494. b repl
  13495. :more1
  13496. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13497. p
  13498. g
  13499. s/.\{148\}//
  13500. t nl
  13501. :delim
  13502. h
  13503. s/\(.\{148\}\)..*/\1/
  13504. t more2
  13505. s/["\\]/\\&/g; s/^/"/; s/$/"/
  13506. p
  13507. b
  13508. :more2
  13509. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13510. p
  13511. g
  13512. s/.\{148\}//
  13513. t delim
  13514. ' <conf$$subs.awk | sed '
  13515. /^[^""]/{
  13516. N
  13517. s/\n//
  13518. }
  13519. ' >>$CONFIG_STATUS || ac_write_fail=1
  13520. rm -f conf$$subs.awk
  13521. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13522. _ACAWK
  13523. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  13524. for (key in S) S_is_set[key] = 1
  13525. FS = ""
  13526. }
  13527. {
  13528. line = $ 0
  13529. nfields = split(line, field, "@")
  13530. substed = 0
  13531. len = length(field[1])
  13532. for (i = 2; i < nfields; i++) {
  13533. key = field[i]
  13534. keylen = length(key)
  13535. if (S_is_set[key]) {
  13536. value = S[key]
  13537. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  13538. len += length(value) + length(field[++i])
  13539. substed = 1
  13540. } else
  13541. len += 1 + keylen
  13542. }
  13543. print line
  13544. }
  13545. _ACAWK
  13546. _ACEOF
  13547. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13548. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  13549. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  13550. else
  13551. cat
  13552. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  13553. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  13554. _ACEOF
  13555. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  13556. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  13557. # trailing colons and then remove the whole line if VPATH becomes empty
  13558. # (actually we leave an empty line to preserve line numbers).
  13559. if test "x$srcdir" = x.; then
  13560. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  13561. s/:*\$(srcdir):*/:/
  13562. s/:*\${srcdir}:*/:/
  13563. s/:*@srcdir@:*/:/
  13564. s/^\([^=]*=[ ]*\):*/\1/
  13565. s/:*$//
  13566. s/^[^=]*=[ ]*$//
  13567. }'
  13568. fi
  13569. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13570. fi # test -n "$CONFIG_FILES"
  13571. # Set up the scripts for CONFIG_HEADERS section.
  13572. # No need to generate them if there are no CONFIG_HEADERS.
  13573. # This happens for instance with `./config.status Makefile'.
  13574. if test -n "$CONFIG_HEADERS"; then
  13575. cat >"$tmp/defines.awk" <<\_ACAWK ||
  13576. BEGIN {
  13577. _ACEOF
  13578. # Transform confdefs.h into an awk script `defines.awk', embedded as
  13579. # here-document in config.status, that substitutes the proper values into
  13580. # config.h.in to produce config.h.
  13581. # Create a delimiter string that does not exist in confdefs.h, to ease
  13582. # handling of long lines.
  13583. ac_delim='%!_!# '
  13584. for ac_last_try in false false :; do
  13585. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  13586. if test -z "$ac_t"; then
  13587. break
  13588. elif $ac_last_try; then
  13589. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  13590. else
  13591. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13592. fi
  13593. done
  13594. # For the awk script, D is an array of macro values keyed by name,
  13595. # likewise P contains macro parameters if any. Preserve backslash
  13596. # newline sequences.
  13597. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  13598. sed -n '
  13599. s/.\{148\}/&'"$ac_delim"'/g
  13600. t rset
  13601. :rset
  13602. s/^[ ]*#[ ]*define[ ][ ]*/ /
  13603. t def
  13604. d
  13605. :def
  13606. s/\\$//
  13607. t bsnl
  13608. s/["\\]/\\&/g
  13609. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13610. D["\1"]=" \3"/p
  13611. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  13612. d
  13613. :bsnl
  13614. s/["\\]/\\&/g
  13615. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13616. D["\1"]=" \3\\\\\\n"\\/p
  13617. t cont
  13618. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  13619. t cont
  13620. d
  13621. :cont
  13622. n
  13623. s/.\{148\}/&'"$ac_delim"'/g
  13624. t clear
  13625. :clear
  13626. s/\\$//
  13627. t bsnlc
  13628. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  13629. d
  13630. :bsnlc
  13631. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  13632. b cont
  13633. ' <confdefs.h | sed '
  13634. s/'"$ac_delim"'/"\\\
  13635. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  13636. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13637. for (key in D) D_is_set[key] = 1
  13638. FS = ""
  13639. }
  13640. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  13641. line = \$ 0
  13642. split(line, arg, " ")
  13643. if (arg[1] == "#") {
  13644. defundef = arg[2]
  13645. mac1 = arg[3]
  13646. } else {
  13647. defundef = substr(arg[1], 2)
  13648. mac1 = arg[2]
  13649. }
  13650. split(mac1, mac2, "(") #)
  13651. macro = mac2[1]
  13652. prefix = substr(line, 1, index(line, defundef) - 1)
  13653. if (D_is_set[macro]) {
  13654. # Preserve the white space surrounding the "#".
  13655. print prefix "define", macro P[macro] D[macro]
  13656. next
  13657. } else {
  13658. # Replace #undef with comments. This is necessary, for example,
  13659. # in the case of _POSIX_SOURCE, which is predefined and required
  13660. # on some systems where configure will not decide to define it.
  13661. if (defundef == "undef") {
  13662. print "/*", prefix defundef, macro, "*/"
  13663. next
  13664. }
  13665. }
  13666. }
  13667. { print }
  13668. _ACAWK
  13669. _ACEOF
  13670. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13671. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  13672. fi # test -n "$CONFIG_HEADERS"
  13673. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  13674. shift
  13675. for ac_tag
  13676. do
  13677. case $ac_tag in
  13678. :[FHLC]) ac_mode=$ac_tag; continue;;
  13679. esac
  13680. case $ac_mode$ac_tag in
  13681. :[FHL]*:*);;
  13682. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  13683. :[FH]-) ac_tag=-:-;;
  13684. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  13685. esac
  13686. ac_save_IFS=$IFS
  13687. IFS=:
  13688. set x $ac_tag
  13689. IFS=$ac_save_IFS
  13690. shift
  13691. ac_file=$1
  13692. shift
  13693. case $ac_mode in
  13694. :L) ac_source=$1;;
  13695. :[FH])
  13696. ac_file_inputs=
  13697. for ac_f
  13698. do
  13699. case $ac_f in
  13700. -) ac_f="$tmp/stdin";;
  13701. *) # Look for the file first in the build tree, then in the source tree
  13702. # (if the path is not absolute). The absolute path cannot be DOS-style,
  13703. # because $ac_f cannot contain `:'.
  13704. test -f "$ac_f" ||
  13705. case $ac_f in
  13706. [\\/$]*) false;;
  13707. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  13708. esac ||
  13709. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  13710. esac
  13711. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  13712. as_fn_append ac_file_inputs " '$ac_f'"
  13713. done
  13714. # Let's still pretend it is `configure' which instantiates (i.e., don't
  13715. # use $as_me), people would be surprised to read:
  13716. # /* config.h. Generated by config.status. */
  13717. configure_input='Generated from '`
  13718. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  13719. `' by configure.'
  13720. if test x"$ac_file" != x-; then
  13721. configure_input="$ac_file. $configure_input"
  13722. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  13723. $as_echo "$as_me: creating $ac_file" >&6;}
  13724. fi
  13725. # Neutralize special characters interpreted by sed in replacement strings.
  13726. case $configure_input in #(
  13727. *\&* | *\|* | *\\* )
  13728. ac_sed_conf_input=`$as_echo "$configure_input" |
  13729. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  13730. *) ac_sed_conf_input=$configure_input;;
  13731. esac
  13732. case $ac_tag in
  13733. *:-:* | *:-) cat >"$tmp/stdin" \
  13734. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  13735. esac
  13736. ;;
  13737. esac
  13738. ac_dir=`$as_dirname -- "$ac_file" ||
  13739. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13740. X"$ac_file" : 'X\(//\)[^/]' \| \
  13741. X"$ac_file" : 'X\(//\)$' \| \
  13742. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  13743. $as_echo X"$ac_file" |
  13744. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13745. s//\1/
  13746. q
  13747. }
  13748. /^X\(\/\/\)[^/].*/{
  13749. s//\1/
  13750. q
  13751. }
  13752. /^X\(\/\/\)$/{
  13753. s//\1/
  13754. q
  13755. }
  13756. /^X\(\/\).*/{
  13757. s//\1/
  13758. q
  13759. }
  13760. s/.*/./; q'`
  13761. as_dir="$ac_dir"; as_fn_mkdir_p
  13762. ac_builddir=.
  13763. case "$ac_dir" in
  13764. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13765. *)
  13766. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  13767. # A ".." for each directory in $ac_dir_suffix.
  13768. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  13769. case $ac_top_builddir_sub in
  13770. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13771. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  13772. esac ;;
  13773. esac
  13774. ac_abs_top_builddir=$ac_pwd
  13775. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  13776. # for backward compatibility:
  13777. ac_top_builddir=$ac_top_build_prefix
  13778. case $srcdir in
  13779. .) # We are building in place.
  13780. ac_srcdir=.
  13781. ac_top_srcdir=$ac_top_builddir_sub
  13782. ac_abs_top_srcdir=$ac_pwd ;;
  13783. [\\/]* | ?:[\\/]* ) # Absolute name.
  13784. ac_srcdir=$srcdir$ac_dir_suffix;
  13785. ac_top_srcdir=$srcdir
  13786. ac_abs_top_srcdir=$srcdir ;;
  13787. *) # Relative name.
  13788. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  13789. ac_top_srcdir=$ac_top_build_prefix$srcdir
  13790. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  13791. esac
  13792. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  13793. case $ac_mode in
  13794. :F)
  13795. #
  13796. # CONFIG_FILE
  13797. #
  13798. case $INSTALL in
  13799. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  13800. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  13801. esac
  13802. ac_MKDIR_P=$MKDIR_P
  13803. case $MKDIR_P in
  13804. [\\/$]* | ?:[\\/]* ) ;;
  13805. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  13806. esac
  13807. _ACEOF
  13808. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13809. # If the template does not know about datarootdir, expand it.
  13810. # FIXME: This hack should be removed a few years after 2.60.
  13811. ac_datarootdir_hack=; ac_datarootdir_seen=
  13812. ac_sed_dataroot='
  13813. /datarootdir/ {
  13814. p
  13815. q
  13816. }
  13817. /@datadir@/p
  13818. /@docdir@/p
  13819. /@infodir@/p
  13820. /@localedir@/p
  13821. /@mandir@/p'
  13822. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  13823. *datarootdir*) ac_datarootdir_seen=yes;;
  13824. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  13825. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  13826. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  13827. _ACEOF
  13828. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13829. ac_datarootdir_hack='
  13830. s&@datadir@&$datadir&g
  13831. s&@docdir@&$docdir&g
  13832. s&@infodir@&$infodir&g
  13833. s&@localedir@&$localedir&g
  13834. s&@mandir@&$mandir&g
  13835. s&\\\${datarootdir}&$datarootdir&g' ;;
  13836. esac
  13837. _ACEOF
  13838. # Neutralize VPATH when `$srcdir' = `.'.
  13839. # Shell code in configure.ac might set extrasub.
  13840. # FIXME: do we really want to maintain this feature?
  13841. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13842. ac_sed_extra="$ac_vpsub
  13843. $extrasub
  13844. _ACEOF
  13845. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13846. :t
  13847. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  13848. s|@configure_input@|$ac_sed_conf_input|;t t
  13849. s&@top_builddir@&$ac_top_builddir_sub&;t t
  13850. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  13851. s&@srcdir@&$ac_srcdir&;t t
  13852. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  13853. s&@top_srcdir@&$ac_top_srcdir&;t t
  13854. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  13855. s&@builddir@&$ac_builddir&;t t
  13856. s&@abs_builddir@&$ac_abs_builddir&;t t
  13857. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  13858. s&@INSTALL@&$ac_INSTALL&;t t
  13859. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  13860. $ac_datarootdir_hack
  13861. "
  13862. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  13863. || as_fn_error "could not create $ac_file" "$LINENO" 5
  13864. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  13865. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  13866. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  13867. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13868. which seems to be undefined. Please make sure it is defined." >&5
  13869. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13870. which seems to be undefined. Please make sure it is defined." >&2;}
  13871. rm -f "$tmp/stdin"
  13872. case $ac_file in
  13873. -) cat "$tmp/out" && rm -f "$tmp/out";;
  13874. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  13875. esac \
  13876. || as_fn_error "could not create $ac_file" "$LINENO" 5
  13877. ;;
  13878. :H)
  13879. #
  13880. # CONFIG_HEADER
  13881. #
  13882. if test x"$ac_file" != x-; then
  13883. {
  13884. $as_echo "/* $configure_input */" \
  13885. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  13886. } >"$tmp/config.h" \
  13887. || as_fn_error "could not create $ac_file" "$LINENO" 5
  13888. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  13889. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  13890. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  13891. else
  13892. rm -f "$ac_file"
  13893. mv "$tmp/config.h" "$ac_file" \
  13894. || as_fn_error "could not create $ac_file" "$LINENO" 5
  13895. fi
  13896. else
  13897. $as_echo "/* $configure_input */" \
  13898. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  13899. || as_fn_error "could not create -" "$LINENO" 5
  13900. fi
  13901. # Compute "$ac_file"'s index in $config_headers.
  13902. _am_arg="$ac_file"
  13903. _am_stamp_count=1
  13904. for _am_header in $config_headers :; do
  13905. case $_am_header in
  13906. $_am_arg | $_am_arg:* )
  13907. break ;;
  13908. * )
  13909. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  13910. esac
  13911. done
  13912. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  13913. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13914. X"$_am_arg" : 'X\(//\)[^/]' \| \
  13915. X"$_am_arg" : 'X\(//\)$' \| \
  13916. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  13917. $as_echo X"$_am_arg" |
  13918. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13919. s//\1/
  13920. q
  13921. }
  13922. /^X\(\/\/\)[^/].*/{
  13923. s//\1/
  13924. q
  13925. }
  13926. /^X\(\/\/\)$/{
  13927. s//\1/
  13928. q
  13929. }
  13930. /^X\(\/\).*/{
  13931. s//\1/
  13932. q
  13933. }
  13934. s/.*/./; q'`/stamp-h$_am_stamp_count
  13935. ;;
  13936. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  13937. $as_echo "$as_me: executing $ac_file commands" >&6;}
  13938. ;;
  13939. esac
  13940. case $ac_file$ac_mode in
  13941. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  13942. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  13943. # are listed without --file. Let's play safe and only enable the eval
  13944. # if we detect the quoting.
  13945. case $CONFIG_FILES in
  13946. *\'*) eval set x "$CONFIG_FILES" ;;
  13947. *) set x $CONFIG_FILES ;;
  13948. esac
  13949. shift
  13950. for mf
  13951. do
  13952. # Strip MF so we end up with the name of the file.
  13953. mf=`echo "$mf" | sed -e 's/:.*$//'`
  13954. # Check whether this is an Automake generated Makefile or not.
  13955. # We used to match only the files named `Makefile.in', but
  13956. # some people rename them; so instead we look at the file content.
  13957. # Grep'ing the first line is not enough: some people post-process
  13958. # each Makefile.in and add a new line on top of each file to say so.
  13959. # Grep'ing the whole file is not good either: AIX grep has a line
  13960. # limit of 2048, but all sed's we know have understand at least 4000.
  13961. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  13962. dirpart=`$as_dirname -- "$mf" ||
  13963. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13964. X"$mf" : 'X\(//\)[^/]' \| \
  13965. X"$mf" : 'X\(//\)$' \| \
  13966. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  13967. $as_echo X"$mf" |
  13968. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13969. s//\1/
  13970. q
  13971. }
  13972. /^X\(\/\/\)[^/].*/{
  13973. s//\1/
  13974. q
  13975. }
  13976. /^X\(\/\/\)$/{
  13977. s//\1/
  13978. q
  13979. }
  13980. /^X\(\/\).*/{
  13981. s//\1/
  13982. q
  13983. }
  13984. s/.*/./; q'`
  13985. else
  13986. continue
  13987. fi
  13988. # Extract the definition of DEPDIR, am__include, and am__quote
  13989. # from the Makefile without running `make'.
  13990. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  13991. test -z "$DEPDIR" && continue
  13992. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  13993. test -z "am__include" && continue
  13994. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  13995. # When using ansi2knr, U may be empty or an underscore; expand it
  13996. U=`sed -n 's/^U = //p' < "$mf"`
  13997. # Find all dependency output files, they are included files with
  13998. # $(DEPDIR) in their names. We invoke sed twice because it is the
  13999. # simplest approach to changing $(DEPDIR) to its actual value in the
  14000. # expansion.
  14001. for file in `sed -n "
  14002. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  14003. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  14004. # Make sure the directory exists.
  14005. test -f "$dirpart/$file" && continue
  14006. fdir=`$as_dirname -- "$file" ||
  14007. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14008. X"$file" : 'X\(//\)[^/]' \| \
  14009. X"$file" : 'X\(//\)$' \| \
  14010. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  14011. $as_echo X"$file" |
  14012. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14013. s//\1/
  14014. q
  14015. }
  14016. /^X\(\/\/\)[^/].*/{
  14017. s//\1/
  14018. q
  14019. }
  14020. /^X\(\/\/\)$/{
  14021. s//\1/
  14022. q
  14023. }
  14024. /^X\(\/\).*/{
  14025. s//\1/
  14026. q
  14027. }
  14028. s/.*/./; q'`
  14029. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  14030. # echo "creating $dirpart/$file"
  14031. echo '# dummy' > "$dirpart/$file"
  14032. done
  14033. done
  14034. }
  14035. ;;
  14036. "libtool":C)
  14037. # See if we are running on zsh, and set the options which allow our
  14038. # commands through without removal of \ escapes.
  14039. if test -n "${ZSH_VERSION+set}" ; then
  14040. setopt NO_GLOB_SUBST
  14041. fi
  14042. cfgfile="${ofile}T"
  14043. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  14044. $RM "$cfgfile"
  14045. cat <<_LT_EOF >> "$cfgfile"
  14046. #! $SHELL
  14047. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  14048. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  14049. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  14050. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  14051. #
  14052. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  14053. # 2006, 2007, 2008 Free Software Foundation, Inc.
  14054. # Written by Gordon Matzigkeit, 1996
  14055. #
  14056. # This file is part of GNU Libtool.
  14057. #
  14058. # GNU Libtool is free software; you can redistribute it and/or
  14059. # modify it under the terms of the GNU General Public License as
  14060. # published by the Free Software Foundation; either version 2 of
  14061. # the License, or (at your option) any later version.
  14062. #
  14063. # As a special exception to the GNU General Public License,
  14064. # if you distribute this file as part of a program or library that
  14065. # is built using GNU Libtool, you may include this file under the
  14066. # same distribution terms that you use for the rest of that program.
  14067. #
  14068. # GNU Libtool is distributed in the hope that it will be useful,
  14069. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14070. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14071. # GNU General Public License for more details.
  14072. #
  14073. # You should have received a copy of the GNU General Public License
  14074. # along with GNU Libtool; see the file COPYING. If not, a copy
  14075. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  14076. # obtained by writing to the Free Software Foundation, Inc.,
  14077. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  14078. # The names of the tagged configurations supported by this script.
  14079. available_tags="CXX "
  14080. # ### BEGIN LIBTOOL CONFIG
  14081. # Which release of libtool.m4 was used?
  14082. macro_version=$macro_version
  14083. macro_revision=$macro_revision
  14084. # Whether or not to build shared libraries.
  14085. build_libtool_libs=$enable_shared
  14086. # Whether or not to build static libraries.
  14087. build_old_libs=$enable_static
  14088. # What type of objects to build.
  14089. pic_mode=$pic_mode
  14090. # Whether or not to optimize for fast installation.
  14091. fast_install=$enable_fast_install
  14092. # The host system.
  14093. host_alias=$host_alias
  14094. host=$host
  14095. host_os=$host_os
  14096. # The build system.
  14097. build_alias=$build_alias
  14098. build=$build
  14099. build_os=$build_os
  14100. # A sed program that does not truncate output.
  14101. SED=$lt_SED
  14102. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  14103. Xsed="\$SED -e 1s/^X//"
  14104. # A grep program that handles long lines.
  14105. GREP=$lt_GREP
  14106. # An ERE matcher.
  14107. EGREP=$lt_EGREP
  14108. # A literal string matcher.
  14109. FGREP=$lt_FGREP
  14110. # A BSD- or MS-compatible name lister.
  14111. NM=$lt_NM
  14112. # Whether we need soft or hard links.
  14113. LN_S=$lt_LN_S
  14114. # What is the maximum length of a command?
  14115. max_cmd_len=$max_cmd_len
  14116. # Object file suffix (normally "o").
  14117. objext=$ac_objext
  14118. # Executable file suffix (normally "").
  14119. exeext=$exeext
  14120. # whether the shell understands "unset".
  14121. lt_unset=$lt_unset
  14122. # turn spaces into newlines.
  14123. SP2NL=$lt_lt_SP2NL
  14124. # turn newlines into spaces.
  14125. NL2SP=$lt_lt_NL2SP
  14126. # How to create reloadable object files.
  14127. reload_flag=$lt_reload_flag
  14128. reload_cmds=$lt_reload_cmds
  14129. # An object symbol dumper.
  14130. OBJDUMP=$lt_OBJDUMP
  14131. # Method to check whether dependent libraries are shared objects.
  14132. deplibs_check_method=$lt_deplibs_check_method
  14133. # Command to use when deplibs_check_method == "file_magic".
  14134. file_magic_cmd=$lt_file_magic_cmd
  14135. # The archiver.
  14136. AR=$lt_AR
  14137. AR_FLAGS=$lt_AR_FLAGS
  14138. # A symbol stripping program.
  14139. STRIP=$lt_STRIP
  14140. # Commands used to install an old-style archive.
  14141. RANLIB=$lt_RANLIB
  14142. old_postinstall_cmds=$lt_old_postinstall_cmds
  14143. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  14144. # A C compiler.
  14145. LTCC=$lt_CC
  14146. # LTCC compiler flags.
  14147. LTCFLAGS=$lt_CFLAGS
  14148. # Take the output of nm and produce a listing of raw symbols and C names.
  14149. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14150. # Transform the output of nm in a proper C declaration.
  14151. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14152. # Transform the output of nm in a C name address pair.
  14153. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14154. # Transform the output of nm in a C name address pair when lib prefix is needed.
  14155. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  14156. # The name of the directory that contains temporary libtool files.
  14157. objdir=$objdir
  14158. # Shell to use when invoking shell scripts.
  14159. SHELL=$lt_SHELL
  14160. # An echo program that does not interpret backslashes.
  14161. ECHO=$lt_ECHO
  14162. # Used to examine libraries when file_magic_cmd begins with "file".
  14163. MAGIC_CMD=$MAGIC_CMD
  14164. # Must we lock files when doing compilation?
  14165. need_locks=$lt_need_locks
  14166. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  14167. DSYMUTIL=$lt_DSYMUTIL
  14168. # Tool to change global to local symbols on Mac OS X.
  14169. NMEDIT=$lt_NMEDIT
  14170. # Tool to manipulate fat objects and archives on Mac OS X.
  14171. LIPO=$lt_LIPO
  14172. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  14173. OTOOL=$lt_OTOOL
  14174. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  14175. OTOOL64=$lt_OTOOL64
  14176. # Old archive suffix (normally "a").
  14177. libext=$libext
  14178. # Shared library suffix (normally ".so").
  14179. shrext_cmds=$lt_shrext_cmds
  14180. # The commands to extract the exported symbol list from a shared archive.
  14181. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14182. # Variables whose values should be saved in libtool wrapper scripts and
  14183. # restored at link time.
  14184. variables_saved_for_relink=$lt_variables_saved_for_relink
  14185. # Do we need the "lib" prefix for modules?
  14186. need_lib_prefix=$need_lib_prefix
  14187. # Do we need a version for libraries?
  14188. need_version=$need_version
  14189. # Library versioning type.
  14190. version_type=$version_type
  14191. # Shared library runtime path variable.
  14192. runpath_var=$runpath_var
  14193. # Shared library path variable.
  14194. shlibpath_var=$shlibpath_var
  14195. # Is shlibpath searched before the hard-coded library search path?
  14196. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14197. # Format of library name prefix.
  14198. libname_spec=$lt_libname_spec
  14199. # List of archive names. First name is the real one, the rest are links.
  14200. # The last name is the one that the linker finds with -lNAME
  14201. library_names_spec=$lt_library_names_spec
  14202. # The coded name of the library, if different from the real name.
  14203. soname_spec=$lt_soname_spec
  14204. # Command to use after installation of a shared archive.
  14205. postinstall_cmds=$lt_postinstall_cmds
  14206. # Command to use after uninstallation of a shared archive.
  14207. postuninstall_cmds=$lt_postuninstall_cmds
  14208. # Commands used to finish a libtool library installation in a directory.
  14209. finish_cmds=$lt_finish_cmds
  14210. # As "finish_cmds", except a single script fragment to be evaled but
  14211. # not shown.
  14212. finish_eval=$lt_finish_eval
  14213. # Whether we should hardcode library paths into libraries.
  14214. hardcode_into_libs=$hardcode_into_libs
  14215. # Compile-time system search path for libraries.
  14216. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  14217. # Run-time system search path for libraries.
  14218. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  14219. # Whether dlopen is supported.
  14220. dlopen_support=$enable_dlopen
  14221. # Whether dlopen of programs is supported.
  14222. dlopen_self=$enable_dlopen_self
  14223. # Whether dlopen of statically linked programs is supported.
  14224. dlopen_self_static=$enable_dlopen_self_static
  14225. # Commands to strip libraries.
  14226. old_striplib=$lt_old_striplib
  14227. striplib=$lt_striplib
  14228. # The linker used to build libraries.
  14229. LD=$lt_LD
  14230. # Commands used to build an old-style archive.
  14231. old_archive_cmds=$lt_old_archive_cmds
  14232. # A language specific compiler.
  14233. CC=$lt_compiler
  14234. # Is the compiler the GNU compiler?
  14235. with_gcc=$GCC
  14236. # Compiler flag to turn off builtin functions.
  14237. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  14238. # How to pass a linker flag through the compiler.
  14239. wl=$lt_lt_prog_compiler_wl
  14240. # Additional compiler flags for building library objects.
  14241. pic_flag=$lt_lt_prog_compiler_pic
  14242. # Compiler flag to prevent dynamic linking.
  14243. link_static_flag=$lt_lt_prog_compiler_static
  14244. # Does compiler simultaneously support -c and -o options?
  14245. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  14246. # Whether or not to add -lc for building shared libraries.
  14247. build_libtool_need_lc=$archive_cmds_need_lc
  14248. # Whether or not to disallow shared libs when runtime libs are static.
  14249. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  14250. # Compiler flag to allow reflexive dlopens.
  14251. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  14252. # Compiler flag to generate shared objects directly from archives.
  14253. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  14254. # Whether the compiler copes with passing no objects directly.
  14255. compiler_needs_object=$lt_compiler_needs_object
  14256. # Create an old-style archive from a shared archive.
  14257. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  14258. # Create a temporary old-style archive to link instead of a shared archive.
  14259. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  14260. # Commands used to build a shared archive.
  14261. archive_cmds=$lt_archive_cmds
  14262. archive_expsym_cmds=$lt_archive_expsym_cmds
  14263. # Commands used to build a loadable module if different from building
  14264. # a shared archive.
  14265. module_cmds=$lt_module_cmds
  14266. module_expsym_cmds=$lt_module_expsym_cmds
  14267. # Whether we are building with GNU ld or not.
  14268. with_gnu_ld=$lt_with_gnu_ld
  14269. # Flag that allows shared libraries with undefined symbols to be built.
  14270. allow_undefined_flag=$lt_allow_undefined_flag
  14271. # Flag that enforces no undefined symbols.
  14272. no_undefined_flag=$lt_no_undefined_flag
  14273. # Flag to hardcode \$libdir into a binary during linking.
  14274. # This must work even if \$libdir does not exist
  14275. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  14276. # If ld is used when linking, flag to hardcode \$libdir into a binary
  14277. # during linking. This must work even if \$libdir does not exist.
  14278. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  14279. # Whether we need a single "-rpath" flag with a separated argument.
  14280. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  14281. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14282. # DIR into the resulting binary.
  14283. hardcode_direct=$hardcode_direct
  14284. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14285. # DIR into the resulting binary and the resulting library dependency is
  14286. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  14287. # library is relocated.
  14288. hardcode_direct_absolute=$hardcode_direct_absolute
  14289. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  14290. # into the resulting binary.
  14291. hardcode_minus_L=$hardcode_minus_L
  14292. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  14293. # into the resulting binary.
  14294. hardcode_shlibpath_var=$hardcode_shlibpath_var
  14295. # Set to "yes" if building a shared library automatically hardcodes DIR
  14296. # into the library and all subsequent libraries and executables linked
  14297. # against it.
  14298. hardcode_automatic=$hardcode_automatic
  14299. # Set to yes if linker adds runtime paths of dependent libraries
  14300. # to runtime path list.
  14301. inherit_rpath=$inherit_rpath
  14302. # Whether libtool must link a program against all its dependency libraries.
  14303. link_all_deplibs=$link_all_deplibs
  14304. # Fix the shell variable \$srcfile for the compiler.
  14305. fix_srcfile_path=$lt_fix_srcfile_path
  14306. # Set to "yes" if exported symbols are required.
  14307. always_export_symbols=$always_export_symbols
  14308. # The commands to list exported symbols.
  14309. export_symbols_cmds=$lt_export_symbols_cmds
  14310. # Symbols that should not be listed in the preloaded symbols.
  14311. exclude_expsyms=$lt_exclude_expsyms
  14312. # Symbols that must always be exported.
  14313. include_expsyms=$lt_include_expsyms
  14314. # Commands necessary for linking programs (against libraries) with templates.
  14315. prelink_cmds=$lt_prelink_cmds
  14316. # Specify filename containing input files.
  14317. file_list_spec=$lt_file_list_spec
  14318. # How to hardcode a shared library path into an executable.
  14319. hardcode_action=$hardcode_action
  14320. # The directories searched by this compiler when creating a shared library.
  14321. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  14322. # Dependencies to place before and after the objects being linked to
  14323. # create a shared library.
  14324. predep_objects=$lt_predep_objects
  14325. postdep_objects=$lt_postdep_objects
  14326. predeps=$lt_predeps
  14327. postdeps=$lt_postdeps
  14328. # The library search path used internally by the compiler when linking
  14329. # a shared library.
  14330. compiler_lib_search_path=$lt_compiler_lib_search_path
  14331. # ### END LIBTOOL CONFIG
  14332. _LT_EOF
  14333. case $host_os in
  14334. aix3*)
  14335. cat <<\_LT_EOF >> "$cfgfile"
  14336. # AIX sometimes has problems with the GCC collect2 program. For some
  14337. # reason, if we set the COLLECT_NAMES environment variable, the problems
  14338. # vanish in a puff of smoke.
  14339. if test "X${COLLECT_NAMES+set}" != Xset; then
  14340. COLLECT_NAMES=
  14341. export COLLECT_NAMES
  14342. fi
  14343. _LT_EOF
  14344. ;;
  14345. esac
  14346. ltmain="$ac_aux_dir/ltmain.sh"
  14347. # We use sed instead of cat because bash on DJGPP gets confused if
  14348. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  14349. # text mode, it properly converts lines to CR/LF. This bash problem
  14350. # is reportedly fixed, but why not run on old versions too?
  14351. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  14352. || (rm -f "$cfgfile"; exit 1)
  14353. case $xsi_shell in
  14354. yes)
  14355. cat << \_LT_EOF >> "$cfgfile"
  14356. # func_dirname file append nondir_replacement
  14357. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  14358. # otherwise set result to NONDIR_REPLACEMENT.
  14359. func_dirname ()
  14360. {
  14361. case ${1} in
  14362. */*) func_dirname_result="${1%/*}${2}" ;;
  14363. * ) func_dirname_result="${3}" ;;
  14364. esac
  14365. }
  14366. # func_basename file
  14367. func_basename ()
  14368. {
  14369. func_basename_result="${1##*/}"
  14370. }
  14371. # func_dirname_and_basename file append nondir_replacement
  14372. # perform func_basename and func_dirname in a single function
  14373. # call:
  14374. # dirname: Compute the dirname of FILE. If nonempty,
  14375. # add APPEND to the result, otherwise set result
  14376. # to NONDIR_REPLACEMENT.
  14377. # value returned in "$func_dirname_result"
  14378. # basename: Compute filename of FILE.
  14379. # value retuned in "$func_basename_result"
  14380. # Implementation must be kept synchronized with func_dirname
  14381. # and func_basename. For efficiency, we do not delegate to
  14382. # those functions but instead duplicate the functionality here.
  14383. func_dirname_and_basename ()
  14384. {
  14385. case ${1} in
  14386. */*) func_dirname_result="${1%/*}${2}" ;;
  14387. * ) func_dirname_result="${3}" ;;
  14388. esac
  14389. func_basename_result="${1##*/}"
  14390. }
  14391. # func_stripname prefix suffix name
  14392. # strip PREFIX and SUFFIX off of NAME.
  14393. # PREFIX and SUFFIX must not contain globbing or regex special
  14394. # characters, hashes, percent signs, but SUFFIX may contain a leading
  14395. # dot (in which case that matches only a dot).
  14396. func_stripname ()
  14397. {
  14398. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  14399. # positional parameters, so assign one to ordinary parameter first.
  14400. func_stripname_result=${3}
  14401. func_stripname_result=${func_stripname_result#"${1}"}
  14402. func_stripname_result=${func_stripname_result%"${2}"}
  14403. }
  14404. # func_opt_split
  14405. func_opt_split ()
  14406. {
  14407. func_opt_split_opt=${1%%=*}
  14408. func_opt_split_arg=${1#*=}
  14409. }
  14410. # func_lo2o object
  14411. func_lo2o ()
  14412. {
  14413. case ${1} in
  14414. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  14415. *) func_lo2o_result=${1} ;;
  14416. esac
  14417. }
  14418. # func_xform libobj-or-source
  14419. func_xform ()
  14420. {
  14421. func_xform_result=${1%.*}.lo
  14422. }
  14423. # func_arith arithmetic-term...
  14424. func_arith ()
  14425. {
  14426. func_arith_result=$(( $* ))
  14427. }
  14428. # func_len string
  14429. # STRING may not start with a hyphen.
  14430. func_len ()
  14431. {
  14432. func_len_result=${#1}
  14433. }
  14434. _LT_EOF
  14435. ;;
  14436. *) # Bourne compatible functions.
  14437. cat << \_LT_EOF >> "$cfgfile"
  14438. # func_dirname file append nondir_replacement
  14439. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  14440. # otherwise set result to NONDIR_REPLACEMENT.
  14441. func_dirname ()
  14442. {
  14443. # Extract subdirectory from the argument.
  14444. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  14445. if test "X$func_dirname_result" = "X${1}"; then
  14446. func_dirname_result="${3}"
  14447. else
  14448. func_dirname_result="$func_dirname_result${2}"
  14449. fi
  14450. }
  14451. # func_basename file
  14452. func_basename ()
  14453. {
  14454. func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  14455. }
  14456. # func_stripname prefix suffix name
  14457. # strip PREFIX and SUFFIX off of NAME.
  14458. # PREFIX and SUFFIX must not contain globbing or regex special
  14459. # characters, hashes, percent signs, but SUFFIX may contain a leading
  14460. # dot (in which case that matches only a dot).
  14461. # func_strip_suffix prefix name
  14462. func_stripname ()
  14463. {
  14464. case ${2} in
  14465. .*) func_stripname_result=`$ECHO "X${3}" \
  14466. | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  14467. *) func_stripname_result=`$ECHO "X${3}" \
  14468. | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  14469. esac
  14470. }
  14471. # sed scripts:
  14472. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  14473. my_sed_long_arg='1s/^-[^=]*=//'
  14474. # func_opt_split
  14475. func_opt_split ()
  14476. {
  14477. func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  14478. func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  14479. }
  14480. # func_lo2o object
  14481. func_lo2o ()
  14482. {
  14483. func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  14484. }
  14485. # func_xform libobj-or-source
  14486. func_xform ()
  14487. {
  14488. func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  14489. }
  14490. # func_arith arithmetic-term...
  14491. func_arith ()
  14492. {
  14493. func_arith_result=`expr "$@"`
  14494. }
  14495. # func_len string
  14496. # STRING may not start with a hyphen.
  14497. func_len ()
  14498. {
  14499. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  14500. }
  14501. _LT_EOF
  14502. esac
  14503. case $lt_shell_append in
  14504. yes)
  14505. cat << \_LT_EOF >> "$cfgfile"
  14506. # func_append var value
  14507. # Append VALUE to the end of shell variable VAR.
  14508. func_append ()
  14509. {
  14510. eval "$1+=\$2"
  14511. }
  14512. _LT_EOF
  14513. ;;
  14514. *)
  14515. cat << \_LT_EOF >> "$cfgfile"
  14516. # func_append var value
  14517. # Append VALUE to the end of shell variable VAR.
  14518. func_append ()
  14519. {
  14520. eval "$1=\$$1\$2"
  14521. }
  14522. _LT_EOF
  14523. ;;
  14524. esac
  14525. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  14526. || (rm -f "$cfgfile"; exit 1)
  14527. mv -f "$cfgfile" "$ofile" ||
  14528. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  14529. chmod +x "$ofile"
  14530. cat <<_LT_EOF >> "$ofile"
  14531. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  14532. # The linker used to build libraries.
  14533. LD=$lt_LD_CXX
  14534. # Commands used to build an old-style archive.
  14535. old_archive_cmds=$lt_old_archive_cmds_CXX
  14536. # A language specific compiler.
  14537. CC=$lt_compiler_CXX
  14538. # Is the compiler the GNU compiler?
  14539. with_gcc=$GCC_CXX
  14540. # Compiler flag to turn off builtin functions.
  14541. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  14542. # How to pass a linker flag through the compiler.
  14543. wl=$lt_lt_prog_compiler_wl_CXX
  14544. # Additional compiler flags for building library objects.
  14545. pic_flag=$lt_lt_prog_compiler_pic_CXX
  14546. # Compiler flag to prevent dynamic linking.
  14547. link_static_flag=$lt_lt_prog_compiler_static_CXX
  14548. # Does compiler simultaneously support -c and -o options?
  14549. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  14550. # Whether or not to add -lc for building shared libraries.
  14551. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  14552. # Whether or not to disallow shared libs when runtime libs are static.
  14553. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  14554. # Compiler flag to allow reflexive dlopens.
  14555. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  14556. # Compiler flag to generate shared objects directly from archives.
  14557. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  14558. # Whether the compiler copes with passing no objects directly.
  14559. compiler_needs_object=$lt_compiler_needs_object_CXX
  14560. # Create an old-style archive from a shared archive.
  14561. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  14562. # Create a temporary old-style archive to link instead of a shared archive.
  14563. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  14564. # Commands used to build a shared archive.
  14565. archive_cmds=$lt_archive_cmds_CXX
  14566. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  14567. # Commands used to build a loadable module if different from building
  14568. # a shared archive.
  14569. module_cmds=$lt_module_cmds_CXX
  14570. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  14571. # Whether we are building with GNU ld or not.
  14572. with_gnu_ld=$lt_with_gnu_ld_CXX
  14573. # Flag that allows shared libraries with undefined symbols to be built.
  14574. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  14575. # Flag that enforces no undefined symbols.
  14576. no_undefined_flag=$lt_no_undefined_flag_CXX
  14577. # Flag to hardcode \$libdir into a binary during linking.
  14578. # This must work even if \$libdir does not exist
  14579. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  14580. # If ld is used when linking, flag to hardcode \$libdir into a binary
  14581. # during linking. This must work even if \$libdir does not exist.
  14582. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  14583. # Whether we need a single "-rpath" flag with a separated argument.
  14584. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  14585. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14586. # DIR into the resulting binary.
  14587. hardcode_direct=$hardcode_direct_CXX
  14588. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14589. # DIR into the resulting binary and the resulting library dependency is
  14590. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  14591. # library is relocated.
  14592. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  14593. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  14594. # into the resulting binary.
  14595. hardcode_minus_L=$hardcode_minus_L_CXX
  14596. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  14597. # into the resulting binary.
  14598. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  14599. # Set to "yes" if building a shared library automatically hardcodes DIR
  14600. # into the library and all subsequent libraries and executables linked
  14601. # against it.
  14602. hardcode_automatic=$hardcode_automatic_CXX
  14603. # Set to yes if linker adds runtime paths of dependent libraries
  14604. # to runtime path list.
  14605. inherit_rpath=$inherit_rpath_CXX
  14606. # Whether libtool must link a program against all its dependency libraries.
  14607. link_all_deplibs=$link_all_deplibs_CXX
  14608. # Fix the shell variable \$srcfile for the compiler.
  14609. fix_srcfile_path=$lt_fix_srcfile_path_CXX
  14610. # Set to "yes" if exported symbols are required.
  14611. always_export_symbols=$always_export_symbols_CXX
  14612. # The commands to list exported symbols.
  14613. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  14614. # Symbols that should not be listed in the preloaded symbols.
  14615. exclude_expsyms=$lt_exclude_expsyms_CXX
  14616. # Symbols that must always be exported.
  14617. include_expsyms=$lt_include_expsyms_CXX
  14618. # Commands necessary for linking programs (against libraries) with templates.
  14619. prelink_cmds=$lt_prelink_cmds_CXX
  14620. # Specify filename containing input files.
  14621. file_list_spec=$lt_file_list_spec_CXX
  14622. # How to hardcode a shared library path into an executable.
  14623. hardcode_action=$hardcode_action_CXX
  14624. # The directories searched by this compiler when creating a shared library.
  14625. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  14626. # Dependencies to place before and after the objects being linked to
  14627. # create a shared library.
  14628. predep_objects=$lt_predep_objects_CXX
  14629. postdep_objects=$lt_postdep_objects_CXX
  14630. predeps=$lt_predeps_CXX
  14631. postdeps=$lt_postdeps_CXX
  14632. # The library search path used internally by the compiler when linking
  14633. # a shared library.
  14634. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  14635. # ### END LIBTOOL TAG CONFIG: CXX
  14636. _LT_EOF
  14637. ;;
  14638. esac
  14639. done # for ac_tag
  14640. as_fn_exit 0
  14641. _ACEOF
  14642. ac_clean_files=$ac_clean_files_save
  14643. test $ac_write_fail = 0 ||
  14644. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  14645. # configure is writing to config.log, and then calls config.status.
  14646. # config.status does its own redirection, appending to config.log.
  14647. # Unfortunately, on DOS this fails, as config.log is still kept open
  14648. # by configure, so config.status won't be able to write to it; its
  14649. # output is simply discarded. So we exec the FD to /dev/null,
  14650. # effectively closing config.log, so it can be properly (re)opened and
  14651. # appended to by config.status. When coming back to configure, we
  14652. # need to make the FD available again.
  14653. if test "$no_create" != yes; then
  14654. ac_cs_success=:
  14655. ac_config_status_args=
  14656. test "$silent" = yes &&
  14657. ac_config_status_args="$ac_config_status_args --quiet"
  14658. exec 5>/dev/null
  14659. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  14660. exec 5>>config.log
  14661. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  14662. # would make configure fail if this is the last instruction.
  14663. $ac_cs_success || as_fn_exit $?
  14664. fi
  14665. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  14666. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  14667. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  14668. fi