configure 557 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.64 for libffi 3.99999.
  4. #
  5. # Report bugs to <http://github.com/atgreen/libffi/issues>.
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
  9. # Foundation, Inc.
  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 -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  161. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  162. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  163. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  164. PATH=/empty FPATH=/empty; export PATH FPATH
  165. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  166. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  167. test \$(( 1 + 1 )) = 2 || exit 1"
  168. if (eval "$as_required") 2>/dev/null; then :
  169. as_have_required=yes
  170. else
  171. as_have_required=no
  172. fi
  173. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  174. else
  175. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  176. as_found=false
  177. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  178. do
  179. IFS=$as_save_IFS
  180. test -z "$as_dir" && as_dir=.
  181. as_found=:
  182. case $as_dir in #(
  183. /*)
  184. for as_base in sh bash ksh sh5; do
  185. # Try only shells that exist, to save several forks.
  186. as_shell=$as_dir/$as_base
  187. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  188. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  189. CONFIG_SHELL=$as_shell as_have_required=yes
  190. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  191. break 2
  192. fi
  193. fi
  194. done;;
  195. esac
  196. as_found=false
  197. done
  198. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  199. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  200. CONFIG_SHELL=$SHELL as_have_required=yes
  201. fi; }
  202. IFS=$as_save_IFS
  203. if test "x$CONFIG_SHELL" != x; then :
  204. # We cannot yet assume a decent shell, so we have to provide a
  205. # neutralization value for shells without unset; and this also
  206. # works around shells that cannot unset nonexistent variables.
  207. BASH_ENV=/dev/null
  208. ENV=/dev/null
  209. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  210. export CONFIG_SHELL
  211. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  212. fi
  213. if test x$as_have_required = xno; then :
  214. $as_echo "$0: This script requires a shell more modern than all"
  215. $as_echo "$0: the shells that I found on your system."
  216. if test x${ZSH_VERSION+set} = xset ; then
  217. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  218. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  219. else
  220. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  221. $0: http://github.com/atgreen/libffi/issues about your
  222. $0: system, including any error possibly output before this
  223. $0: message. Then install a modern shell, or manually run
  224. $0: the script under such a shell if you do have one."
  225. fi
  226. exit 1
  227. fi
  228. fi
  229. fi
  230. SHELL=${CONFIG_SHELL-/bin/sh}
  231. export SHELL
  232. # Unset more variables known to interfere with behavior of common tools.
  233. CLICOLOR_FORCE= GREP_OPTIONS=
  234. unset CLICOLOR_FORCE GREP_OPTIONS
  235. ## --------------------- ##
  236. ## M4sh Shell Functions. ##
  237. ## --------------------- ##
  238. # as_fn_unset VAR
  239. # ---------------
  240. # Portably unset VAR.
  241. as_fn_unset ()
  242. {
  243. { eval $1=; unset $1;}
  244. }
  245. as_unset=as_fn_unset
  246. # as_fn_set_status STATUS
  247. # -----------------------
  248. # Set $? to STATUS, without forking.
  249. as_fn_set_status ()
  250. {
  251. return $1
  252. } # as_fn_set_status
  253. # as_fn_exit STATUS
  254. # -----------------
  255. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  256. as_fn_exit ()
  257. {
  258. set +e
  259. as_fn_set_status $1
  260. exit $1
  261. } # as_fn_exit
  262. # as_fn_mkdir_p
  263. # -------------
  264. # Create "$as_dir" as a directory, including parents if necessary.
  265. as_fn_mkdir_p ()
  266. {
  267. case $as_dir in #(
  268. -*) as_dir=./$as_dir;;
  269. esac
  270. test -d "$as_dir" || eval $as_mkdir_p || {
  271. as_dirs=
  272. while :; do
  273. case $as_dir in #(
  274. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  275. *) as_qdir=$as_dir;;
  276. esac
  277. as_dirs="'$as_qdir' $as_dirs"
  278. as_dir=`$as_dirname -- "$as_dir" ||
  279. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  280. X"$as_dir" : 'X\(//\)[^/]' \| \
  281. X"$as_dir" : 'X\(//\)$' \| \
  282. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  283. $as_echo X"$as_dir" |
  284. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  285. s//\1/
  286. q
  287. }
  288. /^X\(\/\/\)[^/].*/{
  289. s//\1/
  290. q
  291. }
  292. /^X\(\/\/\)$/{
  293. s//\1/
  294. q
  295. }
  296. /^X\(\/\).*/{
  297. s//\1/
  298. q
  299. }
  300. s/.*/./; q'`
  301. test -d "$as_dir" && break
  302. done
  303. test -z "$as_dirs" || eval "mkdir $as_dirs"
  304. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  305. } # as_fn_mkdir_p
  306. # as_fn_append VAR VALUE
  307. # ----------------------
  308. # Append the text in VALUE to the end of the definition contained in VAR. Take
  309. # advantage of any shell optimizations that allow amortized linear growth over
  310. # repeated appends, instead of the typical quadratic growth present in naive
  311. # implementations.
  312. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  313. eval 'as_fn_append ()
  314. {
  315. eval $1+=\$2
  316. }'
  317. else
  318. as_fn_append ()
  319. {
  320. eval $1=\$$1\$2
  321. }
  322. fi # as_fn_append
  323. # as_fn_arith ARG...
  324. # ------------------
  325. # Perform arithmetic evaluation on the ARGs, and store the result in the
  326. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  327. # must be portable across $(()) and expr.
  328. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  329. eval 'as_fn_arith ()
  330. {
  331. as_val=$(( $* ))
  332. }'
  333. else
  334. as_fn_arith ()
  335. {
  336. as_val=`expr "$@" || test $? -eq 1`
  337. }
  338. fi # as_fn_arith
  339. # as_fn_error ERROR [LINENO LOG_FD]
  340. # ---------------------------------
  341. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  342. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  343. # script with status $?, using 1 if that was 0.
  344. as_fn_error ()
  345. {
  346. as_status=$?; test $as_status -eq 0 && as_status=1
  347. if test "$3"; then
  348. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  349. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  350. fi
  351. $as_echo "$as_me: error: $1" >&2
  352. as_fn_exit $as_status
  353. } # as_fn_error
  354. if expr a : '\(a\)' >/dev/null 2>&1 &&
  355. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  356. as_expr=expr
  357. else
  358. as_expr=false
  359. fi
  360. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  361. as_basename=basename
  362. else
  363. as_basename=false
  364. fi
  365. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  366. as_dirname=dirname
  367. else
  368. as_dirname=false
  369. fi
  370. as_me=`$as_basename -- "$0" ||
  371. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  372. X"$0" : 'X\(//\)$' \| \
  373. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  374. $as_echo X/"$0" |
  375. sed '/^.*\/\([^/][^/]*\)\/*$/{
  376. s//\1/
  377. q
  378. }
  379. /^X\/\(\/\/\)$/{
  380. s//\1/
  381. q
  382. }
  383. /^X\/\(\/\).*/{
  384. s//\1/
  385. q
  386. }
  387. s/.*/./; q'`
  388. # Avoid depending upon Character Ranges.
  389. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  390. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  391. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  392. as_cr_digits='0123456789'
  393. as_cr_alnum=$as_cr_Letters$as_cr_digits
  394. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  395. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  396. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  397. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  398. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  399. sed -n '
  400. p
  401. /[$]LINENO/=
  402. ' <$as_myself |
  403. sed '
  404. s/[$]LINENO.*/&-/
  405. t lineno
  406. b
  407. :lineno
  408. N
  409. :loop
  410. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  411. t loop
  412. s/-\n.*//
  413. ' >$as_me.lineno &&
  414. chmod +x "$as_me.lineno" ||
  415. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  416. # Don't try to exec as it changes $[0], causing all sort of problems
  417. # (the dirname of $[0] is not the place where we might find the
  418. # original and so on. Autoconf is especially sensitive to this).
  419. . "./$as_me.lineno"
  420. # Exit status is that of the last command.
  421. exit
  422. }
  423. ECHO_C= ECHO_N= ECHO_T=
  424. case `echo -n x` in #(((((
  425. -n*)
  426. case `echo 'xy\c'` in
  427. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  428. xy) ECHO_C='\c';;
  429. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  430. ECHO_T=' ';;
  431. esac;;
  432. *)
  433. ECHO_N='-n';;
  434. esac
  435. rm -f conf$$ conf$$.exe conf$$.file
  436. if test -d conf$$.dir; then
  437. rm -f conf$$.dir/conf$$.file
  438. else
  439. rm -f conf$$.dir
  440. mkdir conf$$.dir 2>/dev/null
  441. fi
  442. if (echo >conf$$.file) 2>/dev/null; then
  443. if ln -s conf$$.file conf$$ 2>/dev/null; then
  444. as_ln_s='ln -s'
  445. # ... but there are two gotchas:
  446. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  447. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  448. # In both cases, we have to default to `cp -p'.
  449. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  450. as_ln_s='cp -p'
  451. elif ln conf$$.file conf$$ 2>/dev/null; then
  452. as_ln_s=ln
  453. else
  454. as_ln_s='cp -p'
  455. fi
  456. else
  457. as_ln_s='cp -p'
  458. fi
  459. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  460. rmdir conf$$.dir 2>/dev/null
  461. if mkdir -p . 2>/dev/null; then
  462. as_mkdir_p='mkdir -p "$as_dir"'
  463. else
  464. test -d ./-p && rmdir ./-p
  465. as_mkdir_p=false
  466. fi
  467. if test -x / >/dev/null 2>&1; then
  468. as_test_x='test -x'
  469. else
  470. if ls -dL / >/dev/null 2>&1; then
  471. as_ls_L_option=L
  472. else
  473. as_ls_L_option=
  474. fi
  475. as_test_x='
  476. eval sh -c '\''
  477. if test -d "$1"; then
  478. test -d "$1/.";
  479. else
  480. case $1 in #(
  481. -*)set "./$1";;
  482. esac;
  483. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  484. ???[sx]*):;;*)false;;esac;fi
  485. '\'' sh
  486. '
  487. fi
  488. as_executable_p=$as_test_x
  489. # Sed expression to map a string onto a valid CPP name.
  490. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  491. # Sed expression to map a string onto a valid variable name.
  492. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  493. SHELL=${CONFIG_SHELL-/bin/sh}
  494. exec 7<&0 </dev/null 6>&1
  495. # Name of the host.
  496. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  497. # so uname gets run too.
  498. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  499. #
  500. # Initializations.
  501. #
  502. ac_default_prefix=/usr/local
  503. ac_clean_files=
  504. ac_config_libobj_dir=.
  505. LIBOBJS=
  506. cross_compiling=no
  507. subdirs=
  508. MFLAGS=
  509. MAKEFLAGS=
  510. # Identity of this package.
  511. PACKAGE_NAME='libffi'
  512. PACKAGE_TARNAME='libffi'
  513. PACKAGE_VERSION='3.99999'
  514. PACKAGE_STRING='libffi 3.99999'
  515. PACKAGE_BUGREPORT='http://github.com/atgreen/libffi/issues'
  516. PACKAGE_URL=''
  517. # Factoring default headers for most tests.
  518. ac_includes_default="\
  519. #include <stdio.h>
  520. #ifdef HAVE_SYS_TYPES_H
  521. # include <sys/types.h>
  522. #endif
  523. #ifdef HAVE_SYS_STAT_H
  524. # include <sys/stat.h>
  525. #endif
  526. #ifdef STDC_HEADERS
  527. # include <stdlib.h>
  528. # include <stddef.h>
  529. #else
  530. # ifdef HAVE_STDLIB_H
  531. # include <stdlib.h>
  532. # endif
  533. #endif
  534. #ifdef HAVE_STRING_H
  535. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  536. # include <memory.h>
  537. # endif
  538. # include <string.h>
  539. #endif
  540. #ifdef HAVE_STRINGS_H
  541. # include <strings.h>
  542. #endif
  543. #ifdef HAVE_INTTYPES_H
  544. # include <inttypes.h>
  545. #endif
  546. #ifdef HAVE_STDINT_H
  547. # include <stdint.h>
  548. #endif
  549. #ifdef HAVE_UNISTD_H
  550. # include <unistd.h>
  551. #endif"
  552. ac_subst_vars='am__EXEEXT_FALSE
  553. am__EXEEXT_TRUE
  554. LTLIBOBJS
  555. LIBOBJS
  556. toolexeclibdir
  557. toolexecdir
  558. FFI_DEBUG_FALSE
  559. FFI_DEBUG_TRUE
  560. TARGET_OBJ
  561. TARGETDIR
  562. TARGET
  563. FFI_EXEC_TRAMPOLINE_TABLE
  564. FFI_EXEC_TRAMPOLINE_TABLE_FALSE
  565. FFI_EXEC_TRAMPOLINE_TABLE_TRUE
  566. HAVE_LONG_DOUBLE_VARIANT
  567. HAVE_LONG_DOUBLE
  568. ALLOCA
  569. AM_LTLDFLAGS
  570. AM_RUNTESTFLAGS
  571. TESTSUBDIR_FALSE
  572. TESTSUBDIR_TRUE
  573. MAINT
  574. MAINTAINER_MODE_FALSE
  575. MAINTAINER_MODE_TRUE
  576. CXXCPP
  577. CPP
  578. OTOOL64
  579. OTOOL
  580. LIPO
  581. NMEDIT
  582. DSYMUTIL
  583. RANLIB
  584. AR
  585. OBJDUMP
  586. LN_S
  587. NM
  588. ac_ct_DUMPBIN
  589. DUMPBIN
  590. LD
  591. FGREP
  592. EGREP
  593. GREP
  594. SED
  595. LIBTOOL
  596. am__fastdepCCAS_FALSE
  597. am__fastdepCCAS_TRUE
  598. CCASDEPMODE
  599. CCASFLAGS
  600. CCAS
  601. am__fastdepCXX_FALSE
  602. am__fastdepCXX_TRUE
  603. CXXDEPMODE
  604. ac_ct_CXX
  605. CXXFLAGS
  606. CXX
  607. am__fastdepCC_FALSE
  608. am__fastdepCC_TRUE
  609. CCDEPMODE
  610. AMDEPBACKSLASH
  611. AMDEP_FALSE
  612. AMDEP_TRUE
  613. am__quote
  614. am__include
  615. DEPDIR
  616. OBJEXT
  617. EXEEXT
  618. ac_ct_CC
  619. CPPFLAGS
  620. LDFLAGS
  621. CFLAGS
  622. CC
  623. GENINSRC_FALSE
  624. GENINSRC_TRUE
  625. BUILD_INFO_FALSE
  626. BUILD_INFO_TRUE
  627. am__untar
  628. am__tar
  629. AMTAR
  630. am__leading_dot
  631. SET_MAKE
  632. AWK
  633. mkdir_p
  634. MKDIR_P
  635. INSTALL_STRIP_PROGRAM
  636. STRIP
  637. install_sh
  638. MAKEINFO
  639. AUTOHEADER
  640. AUTOMAKE
  641. AUTOCONF
  642. ACLOCAL
  643. VERSION
  644. PACKAGE
  645. CYGPATH_W
  646. am__isrc
  647. INSTALL_DATA
  648. INSTALL_SCRIPT
  649. INSTALL_PROGRAM
  650. target_os
  651. target_vendor
  652. target_cpu
  653. target
  654. host_os
  655. host_vendor
  656. host_cpu
  657. host
  658. build_os
  659. build_vendor
  660. build_cpu
  661. build
  662. multi_basedir
  663. target_alias
  664. host_alias
  665. build_alias
  666. LIBS
  667. ECHO_T
  668. ECHO_N
  669. ECHO_C
  670. DEFS
  671. mandir
  672. localedir
  673. libdir
  674. psdir
  675. pdfdir
  676. dvidir
  677. htmldir
  678. infodir
  679. docdir
  680. oldincludedir
  681. includedir
  682. localstatedir
  683. sharedstatedir
  684. sysconfdir
  685. datadir
  686. datarootdir
  687. libexecdir
  688. sbindir
  689. bindir
  690. program_transform_name
  691. prefix
  692. exec_prefix
  693. PACKAGE_URL
  694. PACKAGE_BUGREPORT
  695. PACKAGE_STRING
  696. PACKAGE_VERSION
  697. PACKAGE_TARNAME
  698. PACKAGE_NAME
  699. PATH_SEPARATOR
  700. SHELL'
  701. ac_subst_files=''
  702. ac_user_opts='
  703. enable_option_checking
  704. enable_multilib
  705. enable_generated_files_in_srcdir
  706. enable_dependency_tracking
  707. enable_shared
  708. enable_static
  709. with_pic
  710. enable_fast_install
  711. with_gnu_ld
  712. enable_libtool_lock
  713. enable_maintainer_mode
  714. enable_pax_emutramp
  715. enable_debug
  716. enable_structs
  717. enable_raw_api
  718. enable_purify_safety
  719. '
  720. ac_precious_vars='build_alias
  721. host_alias
  722. target_alias
  723. CCAS
  724. CCASFLAGS
  725. CPP
  726. CPPFLAGS
  727. CXXCPP'
  728. # Initialize some variables set by options.
  729. ac_init_help=
  730. ac_init_version=false
  731. ac_unrecognized_opts=
  732. ac_unrecognized_sep=
  733. # The variables have the same names as the options, with
  734. # dashes changed to underlines.
  735. cache_file=/dev/null
  736. exec_prefix=NONE
  737. no_create=
  738. no_recursion=
  739. prefix=NONE
  740. program_prefix=NONE
  741. program_suffix=NONE
  742. program_transform_name=s,x,x,
  743. silent=
  744. site=
  745. srcdir=
  746. verbose=
  747. x_includes=NONE
  748. x_libraries=NONE
  749. # Installation directory options.
  750. # These are left unexpanded so users can "make install exec_prefix=/foo"
  751. # and all the variables that are supposed to be based on exec_prefix
  752. # by default will actually change.
  753. # Use braces instead of parens because sh, perl, etc. also accept them.
  754. # (The list follows the same order as the GNU Coding Standards.)
  755. bindir='${exec_prefix}/bin'
  756. sbindir='${exec_prefix}/sbin'
  757. libexecdir='${exec_prefix}/libexec'
  758. datarootdir='${prefix}/share'
  759. datadir='${datarootdir}'
  760. sysconfdir='${prefix}/etc'
  761. sharedstatedir='${prefix}/com'
  762. localstatedir='${prefix}/var'
  763. includedir='${prefix}/include'
  764. oldincludedir='/usr/include'
  765. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  766. infodir='${datarootdir}/info'
  767. htmldir='${docdir}'
  768. dvidir='${docdir}'
  769. pdfdir='${docdir}'
  770. psdir='${docdir}'
  771. libdir='${exec_prefix}/lib'
  772. localedir='${datarootdir}/locale'
  773. mandir='${datarootdir}/man'
  774. ac_prev=
  775. ac_dashdash=
  776. for ac_option
  777. do
  778. # If the previous option needs an argument, assign it.
  779. if test -n "$ac_prev"; then
  780. eval $ac_prev=\$ac_option
  781. ac_prev=
  782. continue
  783. fi
  784. case $ac_option in
  785. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  786. *) ac_optarg=yes ;;
  787. esac
  788. # Accept the important Cygnus configure options, so we can diagnose typos.
  789. case $ac_dashdash$ac_option in
  790. --)
  791. ac_dashdash=yes ;;
  792. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  793. ac_prev=bindir ;;
  794. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  795. bindir=$ac_optarg ;;
  796. -build | --build | --buil | --bui | --bu)
  797. ac_prev=build_alias ;;
  798. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  799. build_alias=$ac_optarg ;;
  800. -cache-file | --cache-file | --cache-fil | --cache-fi \
  801. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  802. ac_prev=cache_file ;;
  803. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  804. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  805. cache_file=$ac_optarg ;;
  806. --config-cache | -C)
  807. cache_file=config.cache ;;
  808. -datadir | --datadir | --datadi | --datad)
  809. ac_prev=datadir ;;
  810. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  811. datadir=$ac_optarg ;;
  812. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  813. | --dataroo | --dataro | --datar)
  814. ac_prev=datarootdir ;;
  815. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  816. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  817. datarootdir=$ac_optarg ;;
  818. -disable-* | --disable-*)
  819. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  820. # Reject names that are not valid shell variable names.
  821. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  822. as_fn_error "invalid feature name: $ac_useropt"
  823. ac_useropt_orig=$ac_useropt
  824. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  825. case $ac_user_opts in
  826. *"
  827. "enable_$ac_useropt"
  828. "*) ;;
  829. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  830. ac_unrecognized_sep=', ';;
  831. esac
  832. eval enable_$ac_useropt=no ;;
  833. -docdir | --docdir | --docdi | --doc | --do)
  834. ac_prev=docdir ;;
  835. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  836. docdir=$ac_optarg ;;
  837. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  838. ac_prev=dvidir ;;
  839. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  840. dvidir=$ac_optarg ;;
  841. -enable-* | --enable-*)
  842. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  843. # Reject names that are not valid shell variable names.
  844. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  845. as_fn_error "invalid feature name: $ac_useropt"
  846. ac_useropt_orig=$ac_useropt
  847. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  848. case $ac_user_opts in
  849. *"
  850. "enable_$ac_useropt"
  851. "*) ;;
  852. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  853. ac_unrecognized_sep=', ';;
  854. esac
  855. eval enable_$ac_useropt=\$ac_optarg ;;
  856. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  857. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  858. | --exec | --exe | --ex)
  859. ac_prev=exec_prefix ;;
  860. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  861. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  862. | --exec=* | --exe=* | --ex=*)
  863. exec_prefix=$ac_optarg ;;
  864. -gas | --gas | --ga | --g)
  865. # Obsolete; use --with-gas.
  866. with_gas=yes ;;
  867. -help | --help | --hel | --he | -h)
  868. ac_init_help=long ;;
  869. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  870. ac_init_help=recursive ;;
  871. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  872. ac_init_help=short ;;
  873. -host | --host | --hos | --ho)
  874. ac_prev=host_alias ;;
  875. -host=* | --host=* | --hos=* | --ho=*)
  876. host_alias=$ac_optarg ;;
  877. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  878. ac_prev=htmldir ;;
  879. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  880. | --ht=*)
  881. htmldir=$ac_optarg ;;
  882. -includedir | --includedir | --includedi | --included | --include \
  883. | --includ | --inclu | --incl | --inc)
  884. ac_prev=includedir ;;
  885. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  886. | --includ=* | --inclu=* | --incl=* | --inc=*)
  887. includedir=$ac_optarg ;;
  888. -infodir | --infodir | --infodi | --infod | --info | --inf)
  889. ac_prev=infodir ;;
  890. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  891. infodir=$ac_optarg ;;
  892. -libdir | --libdir | --libdi | --libd)
  893. ac_prev=libdir ;;
  894. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  895. libdir=$ac_optarg ;;
  896. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  897. | --libexe | --libex | --libe)
  898. ac_prev=libexecdir ;;
  899. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  900. | --libexe=* | --libex=* | --libe=*)
  901. libexecdir=$ac_optarg ;;
  902. -localedir | --localedir | --localedi | --localed | --locale)
  903. ac_prev=localedir ;;
  904. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  905. localedir=$ac_optarg ;;
  906. -localstatedir | --localstatedir | --localstatedi | --localstated \
  907. | --localstate | --localstat | --localsta | --localst | --locals)
  908. ac_prev=localstatedir ;;
  909. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  910. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  911. localstatedir=$ac_optarg ;;
  912. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  913. ac_prev=mandir ;;
  914. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  915. mandir=$ac_optarg ;;
  916. -nfp | --nfp | --nf)
  917. # Obsolete; use --without-fp.
  918. with_fp=no ;;
  919. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  920. | --no-cr | --no-c | -n)
  921. no_create=yes ;;
  922. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  923. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  924. no_recursion=yes ;;
  925. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  926. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  927. | --oldin | --oldi | --old | --ol | --o)
  928. ac_prev=oldincludedir ;;
  929. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  930. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  931. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  932. oldincludedir=$ac_optarg ;;
  933. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  934. ac_prev=prefix ;;
  935. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  936. prefix=$ac_optarg ;;
  937. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  938. | --program-pre | --program-pr | --program-p)
  939. ac_prev=program_prefix ;;
  940. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  941. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  942. program_prefix=$ac_optarg ;;
  943. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  944. | --program-suf | --program-su | --program-s)
  945. ac_prev=program_suffix ;;
  946. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  947. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  948. program_suffix=$ac_optarg ;;
  949. -program-transform-name | --program-transform-name \
  950. | --program-transform-nam | --program-transform-na \
  951. | --program-transform-n | --program-transform- \
  952. | --program-transform | --program-transfor \
  953. | --program-transfo | --program-transf \
  954. | --program-trans | --program-tran \
  955. | --progr-tra | --program-tr | --program-t)
  956. ac_prev=program_transform_name ;;
  957. -program-transform-name=* | --program-transform-name=* \
  958. | --program-transform-nam=* | --program-transform-na=* \
  959. | --program-transform-n=* | --program-transform-=* \
  960. | --program-transform=* | --program-transfor=* \
  961. | --program-transfo=* | --program-transf=* \
  962. | --program-trans=* | --program-tran=* \
  963. | --progr-tra=* | --program-tr=* | --program-t=*)
  964. program_transform_name=$ac_optarg ;;
  965. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  966. ac_prev=pdfdir ;;
  967. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  968. pdfdir=$ac_optarg ;;
  969. -psdir | --psdir | --psdi | --psd | --ps)
  970. ac_prev=psdir ;;
  971. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  972. psdir=$ac_optarg ;;
  973. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  974. | -silent | --silent | --silen | --sile | --sil)
  975. silent=yes ;;
  976. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  977. ac_prev=sbindir ;;
  978. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  979. | --sbi=* | --sb=*)
  980. sbindir=$ac_optarg ;;
  981. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  982. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  983. | --sharedst | --shareds | --shared | --share | --shar \
  984. | --sha | --sh)
  985. ac_prev=sharedstatedir ;;
  986. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  987. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  988. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  989. | --sha=* | --sh=*)
  990. sharedstatedir=$ac_optarg ;;
  991. -site | --site | --sit)
  992. ac_prev=site ;;
  993. -site=* | --site=* | --sit=*)
  994. site=$ac_optarg ;;
  995. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  996. ac_prev=srcdir ;;
  997. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  998. srcdir=$ac_optarg ;;
  999. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1000. | --syscon | --sysco | --sysc | --sys | --sy)
  1001. ac_prev=sysconfdir ;;
  1002. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1003. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1004. sysconfdir=$ac_optarg ;;
  1005. -target | --target | --targe | --targ | --tar | --ta | --t)
  1006. ac_prev=target_alias ;;
  1007. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1008. target_alias=$ac_optarg ;;
  1009. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1010. verbose=yes ;;
  1011. -version | --version | --versio | --versi | --vers | -V)
  1012. ac_init_version=: ;;
  1013. -with-* | --with-*)
  1014. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1015. # Reject names that are not valid shell variable names.
  1016. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1017. as_fn_error "invalid package name: $ac_useropt"
  1018. ac_useropt_orig=$ac_useropt
  1019. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1020. case $ac_user_opts in
  1021. *"
  1022. "with_$ac_useropt"
  1023. "*) ;;
  1024. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1025. ac_unrecognized_sep=', ';;
  1026. esac
  1027. eval with_$ac_useropt=\$ac_optarg ;;
  1028. -without-* | --without-*)
  1029. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1030. # Reject names that are not valid shell variable names.
  1031. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1032. as_fn_error "invalid package name: $ac_useropt"
  1033. ac_useropt_orig=$ac_useropt
  1034. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1035. case $ac_user_opts in
  1036. *"
  1037. "with_$ac_useropt"
  1038. "*) ;;
  1039. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1040. ac_unrecognized_sep=', ';;
  1041. esac
  1042. eval with_$ac_useropt=no ;;
  1043. --x)
  1044. # Obsolete; use --with-x.
  1045. with_x=yes ;;
  1046. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1047. | --x-incl | --x-inc | --x-in | --x-i)
  1048. ac_prev=x_includes ;;
  1049. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1050. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1051. x_includes=$ac_optarg ;;
  1052. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1053. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1054. ac_prev=x_libraries ;;
  1055. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1056. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1057. x_libraries=$ac_optarg ;;
  1058. -*) as_fn_error "unrecognized option: \`$ac_option'
  1059. Try \`$0 --help' for more information."
  1060. ;;
  1061. *=*)
  1062. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1063. # Reject names that are not valid shell variable names.
  1064. case $ac_envvar in #(
  1065. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1066. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1067. esac
  1068. eval $ac_envvar=\$ac_optarg
  1069. export $ac_envvar ;;
  1070. *)
  1071. # FIXME: should be removed in autoconf 3.0.
  1072. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1073. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1074. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1075. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1076. ;;
  1077. esac
  1078. done
  1079. if test -n "$ac_prev"; then
  1080. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1081. as_fn_error "missing argument to $ac_option"
  1082. fi
  1083. if test -n "$ac_unrecognized_opts"; then
  1084. case $enable_option_checking in
  1085. no) ;;
  1086. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1087. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1088. esac
  1089. fi
  1090. # Check all directory arguments for consistency.
  1091. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1092. datadir sysconfdir sharedstatedir localstatedir includedir \
  1093. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1094. libdir localedir mandir
  1095. do
  1096. eval ac_val=\$$ac_var
  1097. # Remove trailing slashes.
  1098. case $ac_val in
  1099. */ )
  1100. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1101. eval $ac_var=\$ac_val;;
  1102. esac
  1103. # Be sure to have absolute directory names.
  1104. case $ac_val in
  1105. [\\/$]* | ?:[\\/]* ) continue;;
  1106. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1107. esac
  1108. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1109. done
  1110. # There might be people who depend on the old broken behavior: `$host'
  1111. # used to hold the argument of --host etc.
  1112. # FIXME: To remove some day.
  1113. build=$build_alias
  1114. host=$host_alias
  1115. target=$target_alias
  1116. # FIXME: To remove some day.
  1117. if test "x$host_alias" != x; then
  1118. if test "x$build_alias" = x; then
  1119. cross_compiling=maybe
  1120. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1121. If a cross compiler is detected then cross compile mode will be used." >&2
  1122. elif test "x$build_alias" != "x$host_alias"; then
  1123. cross_compiling=yes
  1124. fi
  1125. fi
  1126. ac_tool_prefix=
  1127. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1128. test "$silent" = yes && exec 6>/dev/null
  1129. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1130. ac_ls_di=`ls -di .` &&
  1131. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1132. as_fn_error "working directory cannot be determined"
  1133. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1134. as_fn_error "pwd does not report name of working directory"
  1135. # Find the source files, if location was not specified.
  1136. if test -z "$srcdir"; then
  1137. ac_srcdir_defaulted=yes
  1138. # Try the directory containing this script, then the parent directory.
  1139. ac_confdir=`$as_dirname -- "$as_myself" ||
  1140. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1141. X"$as_myself" : 'X\(//\)[^/]' \| \
  1142. X"$as_myself" : 'X\(//\)$' \| \
  1143. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1144. $as_echo X"$as_myself" |
  1145. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1146. s//\1/
  1147. q
  1148. }
  1149. /^X\(\/\/\)[^/].*/{
  1150. s//\1/
  1151. q
  1152. }
  1153. /^X\(\/\/\)$/{
  1154. s//\1/
  1155. q
  1156. }
  1157. /^X\(\/\).*/{
  1158. s//\1/
  1159. q
  1160. }
  1161. s/.*/./; q'`
  1162. srcdir=$ac_confdir
  1163. if test ! -r "$srcdir/$ac_unique_file"; then
  1164. srcdir=..
  1165. fi
  1166. else
  1167. ac_srcdir_defaulted=no
  1168. fi
  1169. if test ! -r "$srcdir/$ac_unique_file"; then
  1170. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1171. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1172. fi
  1173. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1174. ac_abs_confdir=`(
  1175. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1176. pwd)`
  1177. # When building in place, set srcdir=.
  1178. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1179. srcdir=.
  1180. fi
  1181. # Remove unnecessary trailing slashes from srcdir.
  1182. # Double slashes in file names in object file debugging info
  1183. # mess up M-x gdb in Emacs.
  1184. case $srcdir in
  1185. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1186. esac
  1187. for ac_var in $ac_precious_vars; do
  1188. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1189. eval ac_env_${ac_var}_value=\$${ac_var}
  1190. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1191. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1192. done
  1193. #
  1194. # Report the --help message.
  1195. #
  1196. if test "$ac_init_help" = "long"; then
  1197. # Omit some internal or obsolete options to make the list less imposing.
  1198. # This message is too long to be a string in the A/UX 3.1 sh.
  1199. cat <<_ACEOF
  1200. \`configure' configures libffi 3.99999 to adapt to many kinds of systems.
  1201. Usage: $0 [OPTION]... [VAR=VALUE]...
  1202. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1203. VAR=VALUE. See below for descriptions of some of the useful variables.
  1204. Defaults for the options are specified in brackets.
  1205. Configuration:
  1206. -h, --help display this help and exit
  1207. --help=short display options specific to this package
  1208. --help=recursive display the short help of all the included packages
  1209. -V, --version display version information and exit
  1210. -q, --quiet, --silent do not print \`checking...' messages
  1211. --cache-file=FILE cache test results in FILE [disabled]
  1212. -C, --config-cache alias for \`--cache-file=config.cache'
  1213. -n, --no-create do not create output files
  1214. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1215. Installation directories:
  1216. --prefix=PREFIX install architecture-independent files in PREFIX
  1217. [$ac_default_prefix]
  1218. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1219. [PREFIX]
  1220. By default, \`make install' will install all the files in
  1221. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1222. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1223. for instance \`--prefix=\$HOME'.
  1224. For better control, use the options below.
  1225. Fine tuning of the installation directories:
  1226. --bindir=DIR user executables [EPREFIX/bin]
  1227. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1228. --libexecdir=DIR program executables [EPREFIX/libexec]
  1229. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1230. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1231. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1232. --libdir=DIR object code libraries [EPREFIX/lib]
  1233. --includedir=DIR C header files [PREFIX/include]
  1234. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1235. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1236. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1237. --infodir=DIR info documentation [DATAROOTDIR/info]
  1238. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1239. --mandir=DIR man documentation [DATAROOTDIR/man]
  1240. --docdir=DIR documentation root [DATAROOTDIR/doc/libffi]
  1241. --htmldir=DIR html documentation [DOCDIR]
  1242. --dvidir=DIR dvi documentation [DOCDIR]
  1243. --pdfdir=DIR pdf documentation [DOCDIR]
  1244. --psdir=DIR ps documentation [DOCDIR]
  1245. _ACEOF
  1246. cat <<\_ACEOF
  1247. Program names:
  1248. --program-prefix=PREFIX prepend PREFIX to installed program names
  1249. --program-suffix=SUFFIX append SUFFIX to installed program names
  1250. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1251. System types:
  1252. --build=BUILD configure for building on BUILD [guessed]
  1253. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1254. --target=TARGET configure for building compilers for TARGET [HOST]
  1255. _ACEOF
  1256. fi
  1257. if test -n "$ac_init_help"; then
  1258. case $ac_init_help in
  1259. short | recursive ) echo "Configuration of libffi 3.99999:";;
  1260. esac
  1261. cat <<\_ACEOF
  1262. Optional Features:
  1263. --disable-option-checking ignore unrecognized --enable/--with options
  1264. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1265. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1266. --enable-multilib build many library versions (default)
  1267. --enable-generated-files-in-srcdir
  1268. put copies of generated files in source dir intended
  1269. for creating source tarballs for users without
  1270. texinfo bison or flex
  1271. --disable-dependency-tracking speeds up one-time build
  1272. --enable-dependency-tracking do not reject slow dependency extractors
  1273. --enable-shared[=PKGS] build shared libraries [default=yes]
  1274. --enable-static[=PKGS] build static libraries [default=yes]
  1275. --enable-fast-install[=PKGS]
  1276. optimize for fast installation [default=yes]
  1277. --disable-libtool-lock avoid locking (might break parallel builds)
  1278. --enable-maintainer-mode enable make rules and dependencies not useful
  1279. (and sometimes confusing) to the casual installer
  1280. --enable-pax_emutramp enable pax emulated trampolines, for we can't use PROT_EXEC
  1281. --enable-debug debugging mode
  1282. --disable-structs omit code for struct support
  1283. --disable-raw-api make the raw api unavailable
  1284. --enable-purify-safety purify-safe mode
  1285. Optional Packages:
  1286. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1287. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1288. --with-pic try to use only PIC/non-PIC objects [default=use
  1289. both]
  1290. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1291. Some influential environment variables:
  1292. CC C compiler command
  1293. CFLAGS C compiler flags
  1294. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1295. nonstandard directory <lib dir>
  1296. LIBS libraries to pass to the linker, e.g. -l<library>
  1297. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1298. you have headers in a nonstandard directory <include dir>
  1299. CXX C++ compiler command
  1300. CXXFLAGS C++ compiler flags
  1301. CCAS assembler compiler command (defaults to CC)
  1302. CCASFLAGS assembler compiler flags (defaults to CFLAGS)
  1303. CPP C preprocessor
  1304. CXXCPP C++ preprocessor
  1305. Use these variables to override the choices made by `configure' or to help
  1306. it to find libraries and programs with nonstandard names/locations.
  1307. Report bugs to <http://github.com/atgreen/libffi/issues>.
  1308. _ACEOF
  1309. ac_status=$?
  1310. fi
  1311. if test "$ac_init_help" = "recursive"; then
  1312. # If there are subdirs, report their specific --help.
  1313. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1314. test -d "$ac_dir" ||
  1315. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1316. continue
  1317. ac_builddir=.
  1318. case "$ac_dir" in
  1319. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1320. *)
  1321. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1322. # A ".." for each directory in $ac_dir_suffix.
  1323. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1324. case $ac_top_builddir_sub in
  1325. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1326. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1327. esac ;;
  1328. esac
  1329. ac_abs_top_builddir=$ac_pwd
  1330. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1331. # for backward compatibility:
  1332. ac_top_builddir=$ac_top_build_prefix
  1333. case $srcdir in
  1334. .) # We are building in place.
  1335. ac_srcdir=.
  1336. ac_top_srcdir=$ac_top_builddir_sub
  1337. ac_abs_top_srcdir=$ac_pwd ;;
  1338. [\\/]* | ?:[\\/]* ) # Absolute name.
  1339. ac_srcdir=$srcdir$ac_dir_suffix;
  1340. ac_top_srcdir=$srcdir
  1341. ac_abs_top_srcdir=$srcdir ;;
  1342. *) # Relative name.
  1343. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1344. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1345. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1346. esac
  1347. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1348. cd "$ac_dir" || { ac_status=$?; continue; }
  1349. # Check for guested configure.
  1350. if test -f "$ac_srcdir/configure.gnu"; then
  1351. echo &&
  1352. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1353. elif test -f "$ac_srcdir/configure"; then
  1354. echo &&
  1355. $SHELL "$ac_srcdir/configure" --help=recursive
  1356. else
  1357. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1358. fi || ac_status=$?
  1359. cd "$ac_pwd" || { ac_status=$?; break; }
  1360. done
  1361. fi
  1362. test -n "$ac_init_help" && exit $ac_status
  1363. if $ac_init_version; then
  1364. cat <<\_ACEOF
  1365. libffi configure 3.99999
  1366. generated by GNU Autoconf 2.64
  1367. Copyright (C) 2009 Free Software Foundation, Inc.
  1368. This configure script is free software; the Free Software Foundation
  1369. gives unlimited permission to copy, distribute and modify it.
  1370. _ACEOF
  1371. exit
  1372. fi
  1373. ## ------------------------ ##
  1374. ## Autoconf initialization. ##
  1375. ## ------------------------ ##
  1376. # ac_fn_c_try_compile LINENO
  1377. # --------------------------
  1378. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1379. ac_fn_c_try_compile ()
  1380. {
  1381. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1382. rm -f conftest.$ac_objext
  1383. if { { ac_try="$ac_compile"
  1384. case "(($ac_try" in
  1385. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1386. *) ac_try_echo=$ac_try;;
  1387. esac
  1388. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1389. $as_echo "$ac_try_echo"; } >&5
  1390. (eval "$ac_compile") 2>conftest.err
  1391. ac_status=$?
  1392. if test -s conftest.err; then
  1393. grep -v '^ *+' conftest.err >conftest.er1
  1394. cat conftest.er1 >&5
  1395. mv -f conftest.er1 conftest.err
  1396. fi
  1397. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1398. test $ac_status = 0; } && {
  1399. test -z "$ac_c_werror_flag" ||
  1400. test ! -s conftest.err
  1401. } && test -s conftest.$ac_objext; then :
  1402. ac_retval=0
  1403. else
  1404. $as_echo "$as_me: failed program was:" >&5
  1405. sed 's/^/| /' conftest.$ac_ext >&5
  1406. ac_retval=1
  1407. fi
  1408. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1409. return $ac_retval
  1410. } # ac_fn_c_try_compile
  1411. # ac_fn_cxx_try_compile LINENO
  1412. # ----------------------------
  1413. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1414. ac_fn_cxx_try_compile ()
  1415. {
  1416. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1417. rm -f conftest.$ac_objext
  1418. if { { ac_try="$ac_compile"
  1419. case "(($ac_try" in
  1420. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1421. *) ac_try_echo=$ac_try;;
  1422. esac
  1423. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1424. $as_echo "$ac_try_echo"; } >&5
  1425. (eval "$ac_compile") 2>conftest.err
  1426. ac_status=$?
  1427. if test -s conftest.err; then
  1428. grep -v '^ *+' conftest.err >conftest.er1
  1429. cat conftest.er1 >&5
  1430. mv -f conftest.er1 conftest.err
  1431. fi
  1432. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1433. test $ac_status = 0; } && {
  1434. test -z "$ac_cxx_werror_flag" ||
  1435. test ! -s conftest.err
  1436. } && test -s conftest.$ac_objext; then :
  1437. ac_retval=0
  1438. else
  1439. $as_echo "$as_me: failed program was:" >&5
  1440. sed 's/^/| /' conftest.$ac_ext >&5
  1441. ac_retval=1
  1442. fi
  1443. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1444. return $ac_retval
  1445. } # ac_fn_cxx_try_compile
  1446. # ac_fn_c_try_link LINENO
  1447. # -----------------------
  1448. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1449. ac_fn_c_try_link ()
  1450. {
  1451. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1452. rm -f conftest.$ac_objext conftest$ac_exeext
  1453. if { { ac_try="$ac_link"
  1454. case "(($ac_try" in
  1455. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1456. *) ac_try_echo=$ac_try;;
  1457. esac
  1458. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1459. $as_echo "$ac_try_echo"; } >&5
  1460. (eval "$ac_link") 2>conftest.err
  1461. ac_status=$?
  1462. if test -s conftest.err; then
  1463. grep -v '^ *+' conftest.err >conftest.er1
  1464. cat conftest.er1 >&5
  1465. mv -f conftest.er1 conftest.err
  1466. fi
  1467. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1468. test $ac_status = 0; } && {
  1469. test -z "$ac_c_werror_flag" ||
  1470. test ! -s conftest.err
  1471. } && test -s conftest$ac_exeext && {
  1472. test "$cross_compiling" = yes ||
  1473. $as_test_x conftest$ac_exeext
  1474. }; then :
  1475. ac_retval=0
  1476. else
  1477. $as_echo "$as_me: failed program was:" >&5
  1478. sed 's/^/| /' conftest.$ac_ext >&5
  1479. ac_retval=1
  1480. fi
  1481. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1482. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1483. # interfere with the next link command; also delete a directory that is
  1484. # left behind by Apple's compiler. We do this before executing the actions.
  1485. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1486. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1487. return $ac_retval
  1488. } # ac_fn_c_try_link
  1489. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1490. # -------------------------------------------------------
  1491. # Tests whether HEADER exists and can be compiled using the include files in
  1492. # INCLUDES, setting the cache variable VAR accordingly.
  1493. ac_fn_c_check_header_compile ()
  1494. {
  1495. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1497. $as_echo_n "checking for $2... " >&6; }
  1498. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1499. $as_echo_n "(cached) " >&6
  1500. else
  1501. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1502. /* end confdefs.h. */
  1503. $4
  1504. #include <$2>
  1505. _ACEOF
  1506. if ac_fn_c_try_compile "$LINENO"; then :
  1507. eval "$3=yes"
  1508. else
  1509. eval "$3=no"
  1510. fi
  1511. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1512. fi
  1513. eval ac_res=\$$3
  1514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1515. $as_echo "$ac_res" >&6; }
  1516. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1517. } # ac_fn_c_check_header_compile
  1518. # ac_fn_c_try_cpp LINENO
  1519. # ----------------------
  1520. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1521. ac_fn_c_try_cpp ()
  1522. {
  1523. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1524. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1525. case "(($ac_try" in
  1526. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1527. *) ac_try_echo=$ac_try;;
  1528. esac
  1529. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1530. $as_echo "$ac_try_echo"; } >&5
  1531. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1532. ac_status=$?
  1533. if test -s conftest.err; then
  1534. grep -v '^ *+' conftest.err >conftest.er1
  1535. cat conftest.er1 >&5
  1536. mv -f conftest.er1 conftest.err
  1537. fi
  1538. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1539. test $ac_status = 0; } >/dev/null && {
  1540. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1541. test ! -s conftest.err
  1542. }; then :
  1543. ac_retval=0
  1544. else
  1545. $as_echo "$as_me: failed program was:" >&5
  1546. sed 's/^/| /' conftest.$ac_ext >&5
  1547. ac_retval=1
  1548. fi
  1549. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1550. return $ac_retval
  1551. } # ac_fn_c_try_cpp
  1552. # ac_fn_c_try_run LINENO
  1553. # ----------------------
  1554. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1555. # that executables *can* be run.
  1556. ac_fn_c_try_run ()
  1557. {
  1558. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1559. if { { ac_try="$ac_link"
  1560. case "(($ac_try" in
  1561. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1562. *) ac_try_echo=$ac_try;;
  1563. esac
  1564. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1565. $as_echo "$ac_try_echo"; } >&5
  1566. (eval "$ac_link") 2>&5
  1567. ac_status=$?
  1568. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1569. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1570. { { case "(($ac_try" in
  1571. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1572. *) ac_try_echo=$ac_try;;
  1573. esac
  1574. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1575. $as_echo "$ac_try_echo"; } >&5
  1576. (eval "$ac_try") 2>&5
  1577. ac_status=$?
  1578. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1579. test $ac_status = 0; }; }; then :
  1580. ac_retval=0
  1581. else
  1582. $as_echo "$as_me: program exited with status $ac_status" >&5
  1583. $as_echo "$as_me: failed program was:" >&5
  1584. sed 's/^/| /' conftest.$ac_ext >&5
  1585. ac_retval=$ac_status
  1586. fi
  1587. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1588. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1589. return $ac_retval
  1590. } # ac_fn_c_try_run
  1591. # ac_fn_c_check_func LINENO FUNC VAR
  1592. # ----------------------------------
  1593. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1594. ac_fn_c_check_func ()
  1595. {
  1596. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1598. $as_echo_n "checking for $2... " >&6; }
  1599. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1600. $as_echo_n "(cached) " >&6
  1601. else
  1602. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1603. /* end confdefs.h. */
  1604. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1605. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1606. #define $2 innocuous_$2
  1607. /* System header to define __stub macros and hopefully few prototypes,
  1608. which can conflict with char $2 (); below.
  1609. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1610. <limits.h> exists even on freestanding compilers. */
  1611. #ifdef __STDC__
  1612. # include <limits.h>
  1613. #else
  1614. # include <assert.h>
  1615. #endif
  1616. #undef $2
  1617. /* Override any GCC internal prototype to avoid an error.
  1618. Use char because int might match the return type of a GCC
  1619. builtin and then its argument prototype would still apply. */
  1620. #ifdef __cplusplus
  1621. extern "C"
  1622. #endif
  1623. char $2 ();
  1624. /* The GNU C library defines this for functions which it implements
  1625. to always fail with ENOSYS. Some functions are actually named
  1626. something starting with __ and the normal name is an alias. */
  1627. #if defined __stub_$2 || defined __stub___$2
  1628. choke me
  1629. #endif
  1630. int
  1631. main ()
  1632. {
  1633. return $2 ();
  1634. ;
  1635. return 0;
  1636. }
  1637. _ACEOF
  1638. if ac_fn_c_try_link "$LINENO"; then :
  1639. eval "$3=yes"
  1640. else
  1641. eval "$3=no"
  1642. fi
  1643. rm -f core conftest.err conftest.$ac_objext \
  1644. conftest$ac_exeext 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_func
  1651. # ac_fn_cxx_try_cpp LINENO
  1652. # ------------------------
  1653. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1654. ac_fn_cxx_try_cpp ()
  1655. {
  1656. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1657. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1658. case "(($ac_try" in
  1659. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1660. *) ac_try_echo=$ac_try;;
  1661. esac
  1662. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1663. $as_echo "$ac_try_echo"; } >&5
  1664. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1665. ac_status=$?
  1666. if test -s conftest.err; then
  1667. grep -v '^ *+' conftest.err >conftest.er1
  1668. cat conftest.er1 >&5
  1669. mv -f conftest.er1 conftest.err
  1670. fi
  1671. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1672. test $ac_status = 0; } >/dev/null && {
  1673. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1674. test ! -s conftest.err
  1675. }; then :
  1676. ac_retval=0
  1677. else
  1678. $as_echo "$as_me: failed program was:" >&5
  1679. sed 's/^/| /' conftest.$ac_ext >&5
  1680. ac_retval=1
  1681. fi
  1682. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1683. return $ac_retval
  1684. } # ac_fn_cxx_try_cpp
  1685. # ac_fn_cxx_try_link LINENO
  1686. # -------------------------
  1687. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1688. ac_fn_cxx_try_link ()
  1689. {
  1690. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1691. rm -f conftest.$ac_objext conftest$ac_exeext
  1692. if { { ac_try="$ac_link"
  1693. case "(($ac_try" in
  1694. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1695. *) ac_try_echo=$ac_try;;
  1696. esac
  1697. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1698. $as_echo "$ac_try_echo"; } >&5
  1699. (eval "$ac_link") 2>conftest.err
  1700. ac_status=$?
  1701. if test -s conftest.err; then
  1702. grep -v '^ *+' conftest.err >conftest.er1
  1703. cat conftest.er1 >&5
  1704. mv -f conftest.er1 conftest.err
  1705. fi
  1706. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1707. test $ac_status = 0; } && {
  1708. test -z "$ac_cxx_werror_flag" ||
  1709. test ! -s conftest.err
  1710. } && test -s conftest$ac_exeext && {
  1711. test "$cross_compiling" = yes ||
  1712. $as_test_x conftest$ac_exeext
  1713. }; then :
  1714. ac_retval=0
  1715. else
  1716. $as_echo "$as_me: failed program was:" >&5
  1717. sed 's/^/| /' conftest.$ac_ext >&5
  1718. ac_retval=1
  1719. fi
  1720. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1721. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1722. # interfere with the next link command; also delete a directory that is
  1723. # left behind by Apple's compiler. We do this before executing the actions.
  1724. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1725. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1726. return $ac_retval
  1727. } # ac_fn_cxx_try_link
  1728. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1729. # --------------------------------------------
  1730. # Tries to find the compile-time value of EXPR in a program that includes
  1731. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1732. # computed
  1733. ac_fn_c_compute_int ()
  1734. {
  1735. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1736. if test "$cross_compiling" = yes; then
  1737. # Depending upon the size, compute the lo and hi bounds.
  1738. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1739. /* end confdefs.h. */
  1740. $4
  1741. int
  1742. main ()
  1743. {
  1744. static int test_array [1 - 2 * !(($2) >= 0)];
  1745. test_array [0] = 0
  1746. ;
  1747. return 0;
  1748. }
  1749. _ACEOF
  1750. if ac_fn_c_try_compile "$LINENO"; then :
  1751. ac_lo=0 ac_mid=0
  1752. while :; do
  1753. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1754. /* end confdefs.h. */
  1755. $4
  1756. int
  1757. main ()
  1758. {
  1759. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1760. test_array [0] = 0
  1761. ;
  1762. return 0;
  1763. }
  1764. _ACEOF
  1765. if ac_fn_c_try_compile "$LINENO"; then :
  1766. ac_hi=$ac_mid; break
  1767. else
  1768. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1769. if test $ac_lo -le $ac_mid; then
  1770. ac_lo= ac_hi=
  1771. break
  1772. fi
  1773. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1774. fi
  1775. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1776. done
  1777. else
  1778. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1779. /* end confdefs.h. */
  1780. $4
  1781. int
  1782. main ()
  1783. {
  1784. static int test_array [1 - 2 * !(($2) < 0)];
  1785. test_array [0] = 0
  1786. ;
  1787. return 0;
  1788. }
  1789. _ACEOF
  1790. if ac_fn_c_try_compile "$LINENO"; then :
  1791. ac_hi=-1 ac_mid=-1
  1792. while :; do
  1793. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1794. /* end confdefs.h. */
  1795. $4
  1796. int
  1797. main ()
  1798. {
  1799. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1800. test_array [0] = 0
  1801. ;
  1802. return 0;
  1803. }
  1804. _ACEOF
  1805. if ac_fn_c_try_compile "$LINENO"; then :
  1806. ac_lo=$ac_mid; break
  1807. else
  1808. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1809. if test $ac_mid -le $ac_hi; then
  1810. ac_lo= ac_hi=
  1811. break
  1812. fi
  1813. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1814. fi
  1815. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1816. done
  1817. else
  1818. ac_lo= ac_hi=
  1819. fi
  1820. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1821. fi
  1822. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1823. # Binary search between lo and hi bounds.
  1824. while test "x$ac_lo" != "x$ac_hi"; do
  1825. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1826. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1827. /* end confdefs.h. */
  1828. $4
  1829. int
  1830. main ()
  1831. {
  1832. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1833. test_array [0] = 0
  1834. ;
  1835. return 0;
  1836. }
  1837. _ACEOF
  1838. if ac_fn_c_try_compile "$LINENO"; then :
  1839. ac_hi=$ac_mid
  1840. else
  1841. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1842. fi
  1843. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1844. done
  1845. case $ac_lo in #((
  1846. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1847. '') ac_retval=1 ;;
  1848. esac
  1849. else
  1850. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1851. /* end confdefs.h. */
  1852. $4
  1853. static long int longval () { return $2; }
  1854. static unsigned long int ulongval () { return $2; }
  1855. #include <stdio.h>
  1856. #include <stdlib.h>
  1857. int
  1858. main ()
  1859. {
  1860. FILE *f = fopen ("conftest.val", "w");
  1861. if (! f)
  1862. return 1;
  1863. if (($2) < 0)
  1864. {
  1865. long int i = longval ();
  1866. if (i != ($2))
  1867. return 1;
  1868. fprintf (f, "%ld", i);
  1869. }
  1870. else
  1871. {
  1872. unsigned long int i = ulongval ();
  1873. if (i != ($2))
  1874. return 1;
  1875. fprintf (f, "%lu", i);
  1876. }
  1877. /* Do not output a trailing newline, as this causes \r\n confusion
  1878. on some platforms. */
  1879. return ferror (f) || fclose (f) != 0;
  1880. ;
  1881. return 0;
  1882. }
  1883. _ACEOF
  1884. if ac_fn_c_try_run "$LINENO"; then :
  1885. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1886. else
  1887. ac_retval=1
  1888. fi
  1889. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1890. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1891. rm -f conftest.val
  1892. fi
  1893. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1894. return $ac_retval
  1895. } # ac_fn_c_compute_int
  1896. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1897. # -------------------------------------------------------
  1898. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1899. # the include files in INCLUDES and setting the cache variable VAR
  1900. # accordingly.
  1901. ac_fn_c_check_header_mongrel ()
  1902. {
  1903. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1904. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1906. $as_echo_n "checking for $2... " >&6; }
  1907. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1908. $as_echo_n "(cached) " >&6
  1909. fi
  1910. eval ac_res=\$$3
  1911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1912. $as_echo "$ac_res" >&6; }
  1913. else
  1914. # Is the header compilable?
  1915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1916. $as_echo_n "checking $2 usability... " >&6; }
  1917. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1918. /* end confdefs.h. */
  1919. $4
  1920. #include <$2>
  1921. _ACEOF
  1922. if ac_fn_c_try_compile "$LINENO"; then :
  1923. ac_header_compiler=yes
  1924. else
  1925. ac_header_compiler=no
  1926. fi
  1927. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1929. $as_echo "$ac_header_compiler" >&6; }
  1930. # Is the header present?
  1931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1932. $as_echo_n "checking $2 presence... " >&6; }
  1933. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1934. /* end confdefs.h. */
  1935. #include <$2>
  1936. _ACEOF
  1937. if ac_fn_c_try_cpp "$LINENO"; then :
  1938. ac_header_preproc=yes
  1939. else
  1940. ac_header_preproc=no
  1941. fi
  1942. rm -f conftest.err conftest.$ac_ext
  1943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1944. $as_echo "$ac_header_preproc" >&6; }
  1945. # So? What about this header?
  1946. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1947. yes:no: )
  1948. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1949. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1950. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1951. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1952. ;;
  1953. no:yes:* )
  1954. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1955. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1956. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1957. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1958. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1959. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1960. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1961. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1962. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1963. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1964. ( cat <<\_ASBOX
  1965. ## ------------------------------------------------------ ##
  1966. ## Report this to http://github.com/atgreen/libffi/issues ##
  1967. ## ------------------------------------------------------ ##
  1968. _ASBOX
  1969. ) | sed "s/^/$as_me: WARNING: /" >&2
  1970. ;;
  1971. esac
  1972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1973. $as_echo_n "checking for $2... " >&6; }
  1974. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1975. $as_echo_n "(cached) " >&6
  1976. else
  1977. eval "$3=\$ac_header_compiler"
  1978. fi
  1979. eval ac_res=\$$3
  1980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1981. $as_echo "$ac_res" >&6; }
  1982. fi
  1983. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1984. } # ac_fn_c_check_header_mongrel
  1985. cat >config.log <<_ACEOF
  1986. This file contains any messages produced by compilers while
  1987. running configure, to aid debugging if configure makes a mistake.
  1988. It was created by libffi $as_me 3.99999, which was
  1989. generated by GNU Autoconf 2.64. Invocation command line was
  1990. $ $0 $@
  1991. _ACEOF
  1992. exec 5>>config.log
  1993. {
  1994. cat <<_ASUNAME
  1995. ## --------- ##
  1996. ## Platform. ##
  1997. ## --------- ##
  1998. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1999. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2000. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2001. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2002. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2003. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2004. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2005. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2006. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2007. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2008. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2009. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2010. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2011. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2012. _ASUNAME
  2013. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2014. for as_dir in $PATH
  2015. do
  2016. IFS=$as_save_IFS
  2017. test -z "$as_dir" && as_dir=.
  2018. $as_echo "PATH: $as_dir"
  2019. done
  2020. IFS=$as_save_IFS
  2021. } >&5
  2022. cat >&5 <<_ACEOF
  2023. ## ----------- ##
  2024. ## Core tests. ##
  2025. ## ----------- ##
  2026. _ACEOF
  2027. # Keep a trace of the command line.
  2028. # Strip out --no-create and --no-recursion so they do not pile up.
  2029. # Strip out --silent because we don't want to record it for future runs.
  2030. # Also quote any args containing shell meta-characters.
  2031. # Make two passes to allow for proper duplicate-argument suppression.
  2032. ac_configure_args=
  2033. ac_configure_args0=
  2034. ac_configure_args1=
  2035. ac_must_keep_next=false
  2036. for ac_pass in 1 2
  2037. do
  2038. for ac_arg
  2039. do
  2040. case $ac_arg in
  2041. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2042. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2043. | -silent | --silent | --silen | --sile | --sil)
  2044. continue ;;
  2045. *\'*)
  2046. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2047. esac
  2048. case $ac_pass in
  2049. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2050. 2)
  2051. as_fn_append ac_configure_args1 " '$ac_arg'"
  2052. if test $ac_must_keep_next = true; then
  2053. ac_must_keep_next=false # Got value, back to normal.
  2054. else
  2055. case $ac_arg in
  2056. *=* | --config-cache | -C | -disable-* | --disable-* \
  2057. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2058. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2059. | -with-* | --with-* | -without-* | --without-* | --x)
  2060. case "$ac_configure_args0 " in
  2061. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2062. esac
  2063. ;;
  2064. -* ) ac_must_keep_next=true ;;
  2065. esac
  2066. fi
  2067. as_fn_append ac_configure_args " '$ac_arg'"
  2068. ;;
  2069. esac
  2070. done
  2071. done
  2072. { ac_configure_args0=; unset ac_configure_args0;}
  2073. { ac_configure_args1=; unset ac_configure_args1;}
  2074. # When interrupted or exit'd, cleanup temporary files, and complete
  2075. # config.log. We remove comments because anyway the quotes in there
  2076. # would cause problems or look ugly.
  2077. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2078. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2079. trap 'exit_status=$?
  2080. # Save into config.log some information that might help in debugging.
  2081. {
  2082. echo
  2083. cat <<\_ASBOX
  2084. ## ---------------- ##
  2085. ## Cache variables. ##
  2086. ## ---------------- ##
  2087. _ASBOX
  2088. echo
  2089. # The following way of writing the cache mishandles newlines in values,
  2090. (
  2091. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2092. eval ac_val=\$$ac_var
  2093. case $ac_val in #(
  2094. *${as_nl}*)
  2095. case $ac_var in #(
  2096. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2097. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2098. esac
  2099. case $ac_var in #(
  2100. _ | IFS | as_nl) ;; #(
  2101. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2102. *) { eval $ac_var=; unset $ac_var;} ;;
  2103. esac ;;
  2104. esac
  2105. done
  2106. (set) 2>&1 |
  2107. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2108. *${as_nl}ac_space=\ *)
  2109. sed -n \
  2110. "s/'\''/'\''\\\\'\'''\''/g;
  2111. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2112. ;; #(
  2113. *)
  2114. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2115. ;;
  2116. esac |
  2117. sort
  2118. )
  2119. echo
  2120. cat <<\_ASBOX
  2121. ## ----------------- ##
  2122. ## Output variables. ##
  2123. ## ----------------- ##
  2124. _ASBOX
  2125. echo
  2126. for ac_var in $ac_subst_vars
  2127. do
  2128. eval ac_val=\$$ac_var
  2129. case $ac_val in
  2130. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2131. esac
  2132. $as_echo "$ac_var='\''$ac_val'\''"
  2133. done | sort
  2134. echo
  2135. if test -n "$ac_subst_files"; then
  2136. cat <<\_ASBOX
  2137. ## ------------------- ##
  2138. ## File substitutions. ##
  2139. ## ------------------- ##
  2140. _ASBOX
  2141. echo
  2142. for ac_var in $ac_subst_files
  2143. do
  2144. eval ac_val=\$$ac_var
  2145. case $ac_val in
  2146. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2147. esac
  2148. $as_echo "$ac_var='\''$ac_val'\''"
  2149. done | sort
  2150. echo
  2151. fi
  2152. if test -s confdefs.h; then
  2153. cat <<\_ASBOX
  2154. ## ----------- ##
  2155. ## confdefs.h. ##
  2156. ## ----------- ##
  2157. _ASBOX
  2158. echo
  2159. cat confdefs.h
  2160. echo
  2161. fi
  2162. test "$ac_signal" != 0 &&
  2163. $as_echo "$as_me: caught signal $ac_signal"
  2164. $as_echo "$as_me: exit $exit_status"
  2165. } >&5
  2166. rm -f core *.core core.conftest.* &&
  2167. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2168. exit $exit_status
  2169. ' 0
  2170. for ac_signal in 1 2 13 15; do
  2171. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2172. done
  2173. ac_signal=0
  2174. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2175. rm -f -r conftest* confdefs.h
  2176. $as_echo "/* confdefs.h */" > confdefs.h
  2177. # Predefined preprocessor variables.
  2178. cat >>confdefs.h <<_ACEOF
  2179. #define PACKAGE_NAME "$PACKAGE_NAME"
  2180. _ACEOF
  2181. cat >>confdefs.h <<_ACEOF
  2182. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2183. _ACEOF
  2184. cat >>confdefs.h <<_ACEOF
  2185. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2186. _ACEOF
  2187. cat >>confdefs.h <<_ACEOF
  2188. #define PACKAGE_STRING "$PACKAGE_STRING"
  2189. _ACEOF
  2190. cat >>confdefs.h <<_ACEOF
  2191. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2192. _ACEOF
  2193. cat >>confdefs.h <<_ACEOF
  2194. #define PACKAGE_URL "$PACKAGE_URL"
  2195. _ACEOF
  2196. # Let the site file select an alternate cache file if it wants to.
  2197. # Prefer an explicitly selected file to automatically selected ones.
  2198. ac_site_file1=NONE
  2199. ac_site_file2=NONE
  2200. if test -n "$CONFIG_SITE"; then
  2201. ac_site_file1=$CONFIG_SITE
  2202. elif test "x$prefix" != xNONE; then
  2203. ac_site_file1=$prefix/share/config.site
  2204. ac_site_file2=$prefix/etc/config.site
  2205. else
  2206. ac_site_file1=$ac_default_prefix/share/config.site
  2207. ac_site_file2=$ac_default_prefix/etc/config.site
  2208. fi
  2209. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2210. do
  2211. test "x$ac_site_file" = xNONE && continue
  2212. if test -r "$ac_site_file"; then
  2213. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2214. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2215. sed 's/^/| /' "$ac_site_file" >&5
  2216. . "$ac_site_file"
  2217. fi
  2218. done
  2219. if test -r "$cache_file"; then
  2220. # Some versions of bash will fail to source /dev/null (special
  2221. # files actually), so we avoid doing that.
  2222. if test -f "$cache_file"; then
  2223. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2224. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2225. case $cache_file in
  2226. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2227. *) . "./$cache_file";;
  2228. esac
  2229. fi
  2230. else
  2231. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2232. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2233. >$cache_file
  2234. fi
  2235. # Check that the precious variables saved in the cache have kept the same
  2236. # value.
  2237. ac_cache_corrupted=false
  2238. for ac_var in $ac_precious_vars; do
  2239. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2240. eval ac_new_set=\$ac_env_${ac_var}_set
  2241. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2242. eval ac_new_val=\$ac_env_${ac_var}_value
  2243. case $ac_old_set,$ac_new_set in
  2244. set,)
  2245. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2246. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2247. ac_cache_corrupted=: ;;
  2248. ,set)
  2249. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2250. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2251. ac_cache_corrupted=: ;;
  2252. ,);;
  2253. *)
  2254. if test "x$ac_old_val" != "x$ac_new_val"; then
  2255. # differences in whitespace do not lead to failure.
  2256. ac_old_val_w=`echo x $ac_old_val`
  2257. ac_new_val_w=`echo x $ac_new_val`
  2258. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2259. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2260. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2261. ac_cache_corrupted=:
  2262. else
  2263. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2264. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2265. eval $ac_var=\$ac_old_val
  2266. fi
  2267. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2268. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2269. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2270. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2271. fi;;
  2272. esac
  2273. # Pass precious variables to config.status.
  2274. if test "$ac_new_set" = set; then
  2275. case $ac_new_val in
  2276. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2277. *) ac_arg=$ac_var=$ac_new_val ;;
  2278. esac
  2279. case " $ac_configure_args " in
  2280. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2281. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2282. esac
  2283. fi
  2284. done
  2285. if $ac_cache_corrupted; then
  2286. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2287. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2288. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2289. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2290. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2291. fi
  2292. ## -------------------- ##
  2293. ## Main body of script. ##
  2294. ## -------------------- ##
  2295. ac_ext=c
  2296. ac_cpp='$CPP $CPPFLAGS'
  2297. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2298. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2299. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2300. ac_config_headers="$ac_config_headers fficonfig.h"
  2301. # Default to --enable-multilib
  2302. # Check whether --enable-multilib was given.
  2303. if test "${enable_multilib+set}" = set; then :
  2304. enableval=$enable_multilib; case "$enableval" in
  2305. yes) multilib=yes ;;
  2306. no) multilib=no ;;
  2307. *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
  2308. esac
  2309. else
  2310. multilib=yes
  2311. fi
  2312. # We may get other options which we leave undocumented:
  2313. # --with-target-subdir, --with-multisrctop, --with-multisubdir
  2314. # See config-ml.in if you want the gory details.
  2315. if test "$srcdir" = "."; then
  2316. if test "$with_target_subdir" != "."; then
  2317. multi_basedir="$srcdir/$with_multisrctop../.."
  2318. else
  2319. multi_basedir="$srcdir/$with_multisrctop.."
  2320. fi
  2321. else
  2322. multi_basedir="$srcdir/.."
  2323. fi
  2324. # Even if the default multilib is not a cross compilation,
  2325. # it may be that some of the other multilibs are.
  2326. if test $cross_compiling = no && test $multilib = yes \
  2327. && test "x${with_multisubdir}" != x ; then
  2328. cross_compiling=maybe
  2329. fi
  2330. ac_config_commands="$ac_config_commands default-1"
  2331. ac_aux_dir=
  2332. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2333. for ac_t in install-sh install.sh shtool; do
  2334. if test -f "$ac_dir/$ac_t"; then
  2335. ac_aux_dir=$ac_dir
  2336. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2337. break 2
  2338. fi
  2339. done
  2340. done
  2341. if test -z "$ac_aux_dir"; then
  2342. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2343. fi
  2344. # These three variables are undocumented and unsupported,
  2345. # and are intended to be withdrawn in a future Autoconf release.
  2346. # They can cause serious problems if a builder's source tree is in a directory
  2347. # whose full name contains unusual characters.
  2348. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2349. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2350. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2351. # Make sure we can run config.sub.
  2352. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2353. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2355. $as_echo_n "checking build system type... " >&6; }
  2356. if test "${ac_cv_build+set}" = set; then :
  2357. $as_echo_n "(cached) " >&6
  2358. else
  2359. ac_build_alias=$build_alias
  2360. test "x$ac_build_alias" = x &&
  2361. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2362. test "x$ac_build_alias" = x &&
  2363. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  2364. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2365. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2366. fi
  2367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2368. $as_echo "$ac_cv_build" >&6; }
  2369. case $ac_cv_build in
  2370. *-*-*) ;;
  2371. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  2372. esac
  2373. build=$ac_cv_build
  2374. ac_save_IFS=$IFS; IFS='-'
  2375. set x $ac_cv_build
  2376. shift
  2377. build_cpu=$1
  2378. build_vendor=$2
  2379. shift; shift
  2380. # Remember, the first character of IFS is used to create $*,
  2381. # except with old shells:
  2382. build_os=$*
  2383. IFS=$ac_save_IFS
  2384. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2386. $as_echo_n "checking host system type... " >&6; }
  2387. if test "${ac_cv_host+set}" = set; then :
  2388. $as_echo_n "(cached) " >&6
  2389. else
  2390. if test "x$host_alias" = x; then
  2391. ac_cv_host=$ac_cv_build
  2392. else
  2393. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2394. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2395. fi
  2396. fi
  2397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2398. $as_echo "$ac_cv_host" >&6; }
  2399. case $ac_cv_host in
  2400. *-*-*) ;;
  2401. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  2402. esac
  2403. host=$ac_cv_host
  2404. ac_save_IFS=$IFS; IFS='-'
  2405. set x $ac_cv_host
  2406. shift
  2407. host_cpu=$1
  2408. host_vendor=$2
  2409. shift; shift
  2410. # Remember, the first character of IFS is used to create $*,
  2411. # except with old shells:
  2412. host_os=$*
  2413. IFS=$ac_save_IFS
  2414. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2416. $as_echo_n "checking target system type... " >&6; }
  2417. if test "${ac_cv_target+set}" = set; then :
  2418. $as_echo_n "(cached) " >&6
  2419. else
  2420. if test "x$target_alias" = x; then
  2421. ac_cv_target=$ac_cv_host
  2422. else
  2423. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2424. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2425. fi
  2426. fi
  2427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2428. $as_echo "$ac_cv_target" >&6; }
  2429. case $ac_cv_target in
  2430. *-*-*) ;;
  2431. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  2432. esac
  2433. target=$ac_cv_target
  2434. ac_save_IFS=$IFS; IFS='-'
  2435. set x $ac_cv_target
  2436. shift
  2437. target_cpu=$1
  2438. target_vendor=$2
  2439. shift; shift
  2440. # Remember, the first character of IFS is used to create $*,
  2441. # except with old shells:
  2442. target_os=$*
  2443. IFS=$ac_save_IFS
  2444. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2445. # The aliases save the names the user supplied, while $host etc.
  2446. # will get canonicalized.
  2447. test -n "$target_alias" &&
  2448. test "$program_prefix$program_suffix$program_transform_name" = \
  2449. NONENONEs,x,x, &&
  2450. program_prefix=${target_alias}-
  2451. target_alias=${target_alias-$host_alias}
  2452. am__api_version='1.11'
  2453. # Find a good install program. We prefer a C program (faster),
  2454. # so one script is as good as another. But avoid the broken or
  2455. # incompatible versions:
  2456. # SysV /etc/install, /usr/sbin/install
  2457. # SunOS /usr/etc/install
  2458. # IRIX /sbin/install
  2459. # AIX /bin/install
  2460. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2461. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2462. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2463. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2464. # OS/2's system install, which has a completely different semantic
  2465. # ./install, which can be erroneously created by make from ./install.sh.
  2466. # Reject install programs that cannot install multiple files.
  2467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2468. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2469. if test -z "$INSTALL"; then
  2470. if test "${ac_cv_path_install+set}" = set; then :
  2471. $as_echo_n "(cached) " >&6
  2472. else
  2473. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2474. for as_dir in $PATH
  2475. do
  2476. IFS=$as_save_IFS
  2477. test -z "$as_dir" && as_dir=.
  2478. # Account for people who put trailing slashes in PATH elements.
  2479. case $as_dir/ in #((
  2480. ./ | .// | /[cC]/* | \
  2481. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2482. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2483. /usr/ucb/* ) ;;
  2484. *)
  2485. # OSF1 and SCO ODT 3.0 have their own names for install.
  2486. # Don't use installbsd from OSF since it installs stuff as root
  2487. # by default.
  2488. for ac_prog in ginstall scoinst install; do
  2489. for ac_exec_ext in '' $ac_executable_extensions; do
  2490. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2491. if test $ac_prog = install &&
  2492. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2493. # AIX install. It has an incompatible calling convention.
  2494. :
  2495. elif test $ac_prog = install &&
  2496. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2497. # program-specific install script used by HP pwplus--don't use.
  2498. :
  2499. else
  2500. rm -rf conftest.one conftest.two conftest.dir
  2501. echo one > conftest.one
  2502. echo two > conftest.two
  2503. mkdir conftest.dir
  2504. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2505. test -s conftest.one && test -s conftest.two &&
  2506. test -s conftest.dir/conftest.one &&
  2507. test -s conftest.dir/conftest.two
  2508. then
  2509. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2510. break 3
  2511. fi
  2512. fi
  2513. fi
  2514. done
  2515. done
  2516. ;;
  2517. esac
  2518. done
  2519. IFS=$as_save_IFS
  2520. rm -rf conftest.one conftest.two conftest.dir
  2521. fi
  2522. if test "${ac_cv_path_install+set}" = set; then
  2523. INSTALL=$ac_cv_path_install
  2524. else
  2525. # As a last resort, use the slow shell script. Don't cache a
  2526. # value for INSTALL within a source directory, because that will
  2527. # break other packages using the cache if that directory is
  2528. # removed, or if the value is a relative name.
  2529. INSTALL=$ac_install_sh
  2530. fi
  2531. fi
  2532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2533. $as_echo "$INSTALL" >&6; }
  2534. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2535. # It thinks the first close brace ends the variable substitution.
  2536. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2537. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2538. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2540. $as_echo_n "checking whether build environment is sane... " >&6; }
  2541. # Just in case
  2542. sleep 1
  2543. echo timestamp > conftest.file
  2544. # Reject unsafe characters in $srcdir or the absolute working directory
  2545. # name. Accept space and tab only in the latter.
  2546. am_lf='
  2547. '
  2548. case `pwd` in
  2549. *[\\\"\#\$\&\'\`$am_lf]*)
  2550. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  2551. esac
  2552. case $srcdir in
  2553. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2554. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2555. esac
  2556. # Do `set' in a subshell so we don't clobber the current shell's
  2557. # arguments. Must try -L first in case configure is actually a
  2558. # symlink; some systems play weird games with the mod time of symlinks
  2559. # (eg FreeBSD returns the mod time of the symlink's containing
  2560. # directory).
  2561. if (
  2562. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2563. if test "$*" = "X"; then
  2564. # -L didn't work.
  2565. set X `ls -t "$srcdir/configure" conftest.file`
  2566. fi
  2567. rm -f conftest.file
  2568. if test "$*" != "X $srcdir/configure conftest.file" \
  2569. && test "$*" != "X conftest.file $srcdir/configure"; then
  2570. # If neither matched, then we have a broken ls. This can happen
  2571. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2572. # broken ls alias from the environment. This has actually
  2573. # happened. Such a system could not be considered "sane".
  2574. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  2575. alias in your environment" "$LINENO" 5
  2576. fi
  2577. test "$2" = conftest.file
  2578. )
  2579. then
  2580. # Ok.
  2581. :
  2582. else
  2583. as_fn_error "newly created file is older than distributed files!
  2584. Check your system clock" "$LINENO" 5
  2585. fi
  2586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2587. $as_echo "yes" >&6; }
  2588. test "$program_prefix" != NONE &&
  2589. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2590. # Use a double $ so make ignores it.
  2591. test "$program_suffix" != NONE &&
  2592. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2593. # Double any \ or $.
  2594. # By default was `s,x,x', remove it if useless.
  2595. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2596. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2597. # expand $ac_aux_dir to an absolute path
  2598. am_aux_dir=`cd $ac_aux_dir && pwd`
  2599. if test x"${MISSING+set}" != xset; then
  2600. case $am_aux_dir in
  2601. *\ * | *\ *)
  2602. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2603. *)
  2604. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2605. esac
  2606. fi
  2607. # Use eval to expand $SHELL
  2608. if eval "$MISSING --run true"; then
  2609. am_missing_run="$MISSING --run "
  2610. else
  2611. am_missing_run=
  2612. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2613. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2614. fi
  2615. if test x"${install_sh}" != xset; then
  2616. case $am_aux_dir in
  2617. *\ * | *\ *)
  2618. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2619. *)
  2620. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2621. esac
  2622. fi
  2623. # Installed binaries are usually stripped using `strip' when the user
  2624. # run `make install-strip'. However `strip' might not be the right
  2625. # tool to use in cross-compilation environments, therefore Automake
  2626. # will honor the `STRIP' environment variable to overrule this program.
  2627. if test "$cross_compiling" != no; then
  2628. if test -n "$ac_tool_prefix"; then
  2629. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2630. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2632. $as_echo_n "checking for $ac_word... " >&6; }
  2633. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2634. $as_echo_n "(cached) " >&6
  2635. else
  2636. if test -n "$STRIP"; then
  2637. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2638. else
  2639. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2640. for as_dir in $PATH
  2641. do
  2642. IFS=$as_save_IFS
  2643. test -z "$as_dir" && as_dir=.
  2644. for ac_exec_ext in '' $ac_executable_extensions; do
  2645. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2646. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2647. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2648. break 2
  2649. fi
  2650. done
  2651. done
  2652. IFS=$as_save_IFS
  2653. fi
  2654. fi
  2655. STRIP=$ac_cv_prog_STRIP
  2656. if test -n "$STRIP"; then
  2657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2658. $as_echo "$STRIP" >&6; }
  2659. else
  2660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2661. $as_echo "no" >&6; }
  2662. fi
  2663. fi
  2664. if test -z "$ac_cv_prog_STRIP"; then
  2665. ac_ct_STRIP=$STRIP
  2666. # Extract the first word of "strip", so it can be a program name with args.
  2667. set dummy strip; ac_word=$2
  2668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2669. $as_echo_n "checking for $ac_word... " >&6; }
  2670. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2671. $as_echo_n "(cached) " >&6
  2672. else
  2673. if test -n "$ac_ct_STRIP"; then
  2674. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2675. else
  2676. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2677. for as_dir in $PATH
  2678. do
  2679. IFS=$as_save_IFS
  2680. test -z "$as_dir" && as_dir=.
  2681. for ac_exec_ext in '' $ac_executable_extensions; do
  2682. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2683. ac_cv_prog_ac_ct_STRIP="strip"
  2684. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2685. break 2
  2686. fi
  2687. done
  2688. done
  2689. IFS=$as_save_IFS
  2690. fi
  2691. fi
  2692. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2693. if test -n "$ac_ct_STRIP"; then
  2694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2695. $as_echo "$ac_ct_STRIP" >&6; }
  2696. else
  2697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2698. $as_echo "no" >&6; }
  2699. fi
  2700. if test "x$ac_ct_STRIP" = x; then
  2701. STRIP=":"
  2702. else
  2703. case $cross_compiling:$ac_tool_warned in
  2704. yes:)
  2705. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2706. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2707. ac_tool_warned=yes ;;
  2708. esac
  2709. STRIP=$ac_ct_STRIP
  2710. fi
  2711. else
  2712. STRIP="$ac_cv_prog_STRIP"
  2713. fi
  2714. fi
  2715. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2717. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2718. if test -z "$MKDIR_P"; then
  2719. if test "${ac_cv_path_mkdir+set}" = set; then :
  2720. $as_echo_n "(cached) " >&6
  2721. else
  2722. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2723. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2724. do
  2725. IFS=$as_save_IFS
  2726. test -z "$as_dir" && as_dir=.
  2727. for ac_prog in mkdir gmkdir; do
  2728. for ac_exec_ext in '' $ac_executable_extensions; do
  2729. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2730. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2731. 'mkdir (GNU coreutils) '* | \
  2732. 'mkdir (coreutils) '* | \
  2733. 'mkdir (fileutils) '4.1*)
  2734. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2735. break 3;;
  2736. esac
  2737. done
  2738. done
  2739. done
  2740. IFS=$as_save_IFS
  2741. fi
  2742. if test "${ac_cv_path_mkdir+set}" = set; then
  2743. MKDIR_P="$ac_cv_path_mkdir -p"
  2744. else
  2745. # As a last resort, use the slow shell script. Don't cache a
  2746. # value for MKDIR_P within a source directory, because that will
  2747. # break other packages using the cache if that directory is
  2748. # removed, or if the value is a relative name.
  2749. test -d ./--version && rmdir ./--version
  2750. MKDIR_P="$ac_install_sh -d"
  2751. fi
  2752. fi
  2753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2754. $as_echo "$MKDIR_P" >&6; }
  2755. mkdir_p="$MKDIR_P"
  2756. case $mkdir_p in
  2757. [\\/$]* | ?:[\\/]*) ;;
  2758. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2759. esac
  2760. for ac_prog in gawk mawk nawk awk
  2761. do
  2762. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2763. set dummy $ac_prog; ac_word=$2
  2764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2765. $as_echo_n "checking for $ac_word... " >&6; }
  2766. if test "${ac_cv_prog_AWK+set}" = set; then :
  2767. $as_echo_n "(cached) " >&6
  2768. else
  2769. if test -n "$AWK"; then
  2770. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2771. else
  2772. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2773. for as_dir in $PATH
  2774. do
  2775. IFS=$as_save_IFS
  2776. test -z "$as_dir" && as_dir=.
  2777. for ac_exec_ext in '' $ac_executable_extensions; do
  2778. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2779. ac_cv_prog_AWK="$ac_prog"
  2780. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2781. break 2
  2782. fi
  2783. done
  2784. done
  2785. IFS=$as_save_IFS
  2786. fi
  2787. fi
  2788. AWK=$ac_cv_prog_AWK
  2789. if test -n "$AWK"; then
  2790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2791. $as_echo "$AWK" >&6; }
  2792. else
  2793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2794. $as_echo "no" >&6; }
  2795. fi
  2796. test -n "$AWK" && break
  2797. done
  2798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2799. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2800. set x ${MAKE-make}
  2801. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2802. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  2803. $as_echo_n "(cached) " >&6
  2804. else
  2805. cat >conftest.make <<\_ACEOF
  2806. SHELL = /bin/sh
  2807. all:
  2808. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2809. _ACEOF
  2810. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2811. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2812. *@@@%%%=?*=@@@%%%*)
  2813. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2814. *)
  2815. eval ac_cv_prog_make_${ac_make}_set=no;;
  2816. esac
  2817. rm -f conftest.make
  2818. fi
  2819. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2821. $as_echo "yes" >&6; }
  2822. SET_MAKE=
  2823. else
  2824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2825. $as_echo "no" >&6; }
  2826. SET_MAKE="MAKE=${MAKE-make}"
  2827. fi
  2828. rm -rf .tst 2>/dev/null
  2829. mkdir .tst 2>/dev/null
  2830. if test -d .tst; then
  2831. am__leading_dot=.
  2832. else
  2833. am__leading_dot=_
  2834. fi
  2835. rmdir .tst 2>/dev/null
  2836. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2837. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2838. # is not polluted with repeated "-I."
  2839. am__isrc=' -I$(srcdir)'
  2840. # test to see if srcdir already configured
  2841. if test -f $srcdir/config.status; then
  2842. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2843. fi
  2844. fi
  2845. # test whether we have cygpath
  2846. if test -z "$CYGPATH_W"; then
  2847. if (cygpath --version) >/dev/null 2>/dev/null; then
  2848. CYGPATH_W='cygpath -w'
  2849. else
  2850. CYGPATH_W=echo
  2851. fi
  2852. fi
  2853. # Define the identity of the package.
  2854. PACKAGE='libffi'
  2855. VERSION='3.99999'
  2856. cat >>confdefs.h <<_ACEOF
  2857. #define PACKAGE "$PACKAGE"
  2858. _ACEOF
  2859. cat >>confdefs.h <<_ACEOF
  2860. #define VERSION "$VERSION"
  2861. _ACEOF
  2862. # Some tools Automake needs.
  2863. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2864. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2865. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2866. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2867. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2868. # We need awk for the "check" target. The system "awk" is bad on
  2869. # some platforms.
  2870. # Always define AMTAR for backward compatibility.
  2871. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2872. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2873. # See if makeinfo has been installed and is modern enough
  2874. # that we can use it.
  2875. # Extract the first word of "makeinfo", so it can be a program name with args.
  2876. set dummy makeinfo; ac_word=$2
  2877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2878. $as_echo_n "checking for $ac_word... " >&6; }
  2879. if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
  2880. $as_echo_n "(cached) " >&6
  2881. else
  2882. if test -n "$MAKEINFO"; then
  2883. ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
  2884. else
  2885. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2886. for as_dir in $PATH
  2887. do
  2888. IFS=$as_save_IFS
  2889. test -z "$as_dir" && as_dir=.
  2890. for ac_exec_ext in '' $ac_executable_extensions; do
  2891. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2892. ac_cv_prog_MAKEINFO="makeinfo"
  2893. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2894. break 2
  2895. fi
  2896. done
  2897. done
  2898. IFS=$as_save_IFS
  2899. fi
  2900. fi
  2901. MAKEINFO=$ac_cv_prog_MAKEINFO
  2902. if test -n "$MAKEINFO"; then
  2903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
  2904. $as_echo "$MAKEINFO" >&6; }
  2905. else
  2906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2907. $as_echo "no" >&6; }
  2908. fi
  2909. if test -n "$MAKEINFO"; then
  2910. # Found it, now check the version.
  2911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
  2912. $as_echo_n "checking for modern makeinfo... " >&6; }
  2913. if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
  2914. $as_echo_n "(cached) " >&6
  2915. else
  2916. ac_prog_version=`eval $MAKEINFO --version 2>&1 |
  2917. sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
  2918. case $ac_prog_version in
  2919. '') gcc_cv_prog_makeinfo_modern=no;;
  2920. 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
  2921. *) gcc_cv_prog_makeinfo_modern=no;;
  2922. esac
  2923. fi
  2924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
  2925. $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
  2926. else
  2927. gcc_cv_prog_makeinfo_modern=no
  2928. fi
  2929. if test $gcc_cv_prog_makeinfo_modern = no; then
  2930. MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
  2931. fi
  2932. if test $gcc_cv_prog_makeinfo_modern = "yes"; then
  2933. BUILD_INFO_TRUE=
  2934. BUILD_INFO_FALSE='#'
  2935. else
  2936. BUILD_INFO_TRUE='#'
  2937. BUILD_INFO_FALSE=
  2938. fi
  2939. # We would like our source tree to be readonly. However when releases or
  2940. # pre-releases are generated, the flex/bison generated files as well as the
  2941. # various formats of manuals need to be included along with the rest of the
  2942. # sources. Therefore we have --enable-generated-files-in-srcdir to do
  2943. # just that.
  2944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking generated-files-in-srcdir" >&5
  2945. $as_echo_n "checking generated-files-in-srcdir... " >&6; }
  2946. # Check whether --enable-generated-files-in-srcdir was given.
  2947. if test "${enable_generated_files_in_srcdir+set}" = set; then :
  2948. enableval=$enable_generated_files_in_srcdir; case "$enableval" in
  2949. yes) enable_generated_files_in_srcdir=yes ;;
  2950. no) enable_generated_files_in_srcdir=no ;;
  2951. *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
  2952. esac
  2953. else
  2954. enable_generated_files_in_srcdir=no
  2955. fi
  2956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
  2957. $as_echo "$enable_generated_files_in_srcdir" >&6; }
  2958. if test "$enable_generated_files_in_srcdir" = yes; then
  2959. GENINSRC_TRUE=
  2960. GENINSRC_FALSE='#'
  2961. else
  2962. GENINSRC_TRUE='#'
  2963. GENINSRC_FALSE=
  2964. fi
  2965. # The same as in boehm-gc and libstdc++. Have to borrow it from there.
  2966. # We must force CC to /not/ be precious variables; otherwise
  2967. # the wrong, non-multilib-adjusted value will be used in multilibs.
  2968. # As a side effect, we have to subst CFLAGS ourselves.
  2969. # Also save and restore CFLAGS, since AC_PROG_CC will come up with
  2970. # defaults of its own if none are provided.
  2971. save_CFLAGS=$CFLAGS
  2972. ac_ext=c
  2973. ac_cpp='$CPP $CPPFLAGS'
  2974. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2975. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2976. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2977. if test -n "$ac_tool_prefix"; then
  2978. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2979. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2981. $as_echo_n "checking for $ac_word... " >&6; }
  2982. if test "${ac_cv_prog_CC+set}" = set; then :
  2983. $as_echo_n "(cached) " >&6
  2984. else
  2985. if test -n "$CC"; then
  2986. ac_cv_prog_CC="$CC" # Let the user override the test.
  2987. else
  2988. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2989. for as_dir in $PATH
  2990. do
  2991. IFS=$as_save_IFS
  2992. test -z "$as_dir" && as_dir=.
  2993. for ac_exec_ext in '' $ac_executable_extensions; do
  2994. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2995. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2996. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2997. break 2
  2998. fi
  2999. done
  3000. done
  3001. IFS=$as_save_IFS
  3002. fi
  3003. fi
  3004. CC=$ac_cv_prog_CC
  3005. if test -n "$CC"; then
  3006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3007. $as_echo "$CC" >&6; }
  3008. else
  3009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3010. $as_echo "no" >&6; }
  3011. fi
  3012. fi
  3013. if test -z "$ac_cv_prog_CC"; then
  3014. ac_ct_CC=$CC
  3015. # Extract the first word of "gcc", so it can be a program name with args.
  3016. set dummy gcc; ac_word=$2
  3017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3018. $as_echo_n "checking for $ac_word... " >&6; }
  3019. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3020. $as_echo_n "(cached) " >&6
  3021. else
  3022. if test -n "$ac_ct_CC"; then
  3023. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3024. else
  3025. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3026. for as_dir in $PATH
  3027. do
  3028. IFS=$as_save_IFS
  3029. test -z "$as_dir" && as_dir=.
  3030. for ac_exec_ext in '' $ac_executable_extensions; do
  3031. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3032. ac_cv_prog_ac_ct_CC="gcc"
  3033. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3034. break 2
  3035. fi
  3036. done
  3037. done
  3038. IFS=$as_save_IFS
  3039. fi
  3040. fi
  3041. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3042. if test -n "$ac_ct_CC"; then
  3043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3044. $as_echo "$ac_ct_CC" >&6; }
  3045. else
  3046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3047. $as_echo "no" >&6; }
  3048. fi
  3049. if test "x$ac_ct_CC" = x; then
  3050. CC=""
  3051. else
  3052. case $cross_compiling:$ac_tool_warned in
  3053. yes:)
  3054. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3055. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3056. ac_tool_warned=yes ;;
  3057. esac
  3058. CC=$ac_ct_CC
  3059. fi
  3060. else
  3061. CC="$ac_cv_prog_CC"
  3062. fi
  3063. if test -z "$CC"; then
  3064. if test -n "$ac_tool_prefix"; then
  3065. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3066. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3068. $as_echo_n "checking for $ac_word... " >&6; }
  3069. if test "${ac_cv_prog_CC+set}" = set; then :
  3070. $as_echo_n "(cached) " >&6
  3071. else
  3072. if test -n "$CC"; then
  3073. ac_cv_prog_CC="$CC" # Let the user override the test.
  3074. else
  3075. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3076. for as_dir in $PATH
  3077. do
  3078. IFS=$as_save_IFS
  3079. test -z "$as_dir" && as_dir=.
  3080. for ac_exec_ext in '' $ac_executable_extensions; do
  3081. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3082. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3083. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3084. break 2
  3085. fi
  3086. done
  3087. done
  3088. IFS=$as_save_IFS
  3089. fi
  3090. fi
  3091. CC=$ac_cv_prog_CC
  3092. if test -n "$CC"; then
  3093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3094. $as_echo "$CC" >&6; }
  3095. else
  3096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3097. $as_echo "no" >&6; }
  3098. fi
  3099. fi
  3100. fi
  3101. if test -z "$CC"; then
  3102. # Extract the first word of "cc", so it can be a program name with args.
  3103. set dummy cc; ac_word=$2
  3104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3105. $as_echo_n "checking for $ac_word... " >&6; }
  3106. if test "${ac_cv_prog_CC+set}" = set; then :
  3107. $as_echo_n "(cached) " >&6
  3108. else
  3109. if test -n "$CC"; then
  3110. ac_cv_prog_CC="$CC" # Let the user override the test.
  3111. else
  3112. ac_prog_rejected=no
  3113. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3114. for as_dir in $PATH
  3115. do
  3116. IFS=$as_save_IFS
  3117. test -z "$as_dir" && as_dir=.
  3118. for ac_exec_ext in '' $ac_executable_extensions; do
  3119. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3120. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3121. ac_prog_rejected=yes
  3122. continue
  3123. fi
  3124. ac_cv_prog_CC="cc"
  3125. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3126. break 2
  3127. fi
  3128. done
  3129. done
  3130. IFS=$as_save_IFS
  3131. if test $ac_prog_rejected = yes; then
  3132. # We found a bogon in the path, so make sure we never use it.
  3133. set dummy $ac_cv_prog_CC
  3134. shift
  3135. if test $# != 0; then
  3136. # We chose a different compiler from the bogus one.
  3137. # However, it has the same basename, so the bogon will be chosen
  3138. # first if we set CC to just the basename; use the full file name.
  3139. shift
  3140. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3141. fi
  3142. fi
  3143. fi
  3144. fi
  3145. CC=$ac_cv_prog_CC
  3146. if test -n "$CC"; then
  3147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3148. $as_echo "$CC" >&6; }
  3149. else
  3150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3151. $as_echo "no" >&6; }
  3152. fi
  3153. fi
  3154. if test -z "$CC"; then
  3155. if test -n "$ac_tool_prefix"; then
  3156. for ac_prog in cl.exe
  3157. do
  3158. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3159. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3161. $as_echo_n "checking for $ac_word... " >&6; }
  3162. if test "${ac_cv_prog_CC+set}" = set; then :
  3163. $as_echo_n "(cached) " >&6
  3164. else
  3165. if test -n "$CC"; then
  3166. ac_cv_prog_CC="$CC" # Let the user override the test.
  3167. else
  3168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3169. for as_dir in $PATH
  3170. do
  3171. IFS=$as_save_IFS
  3172. test -z "$as_dir" && as_dir=.
  3173. for ac_exec_ext in '' $ac_executable_extensions; do
  3174. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3175. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3176. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3177. break 2
  3178. fi
  3179. done
  3180. done
  3181. IFS=$as_save_IFS
  3182. fi
  3183. fi
  3184. CC=$ac_cv_prog_CC
  3185. if test -n "$CC"; then
  3186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3187. $as_echo "$CC" >&6; }
  3188. else
  3189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3190. $as_echo "no" >&6; }
  3191. fi
  3192. test -n "$CC" && break
  3193. done
  3194. fi
  3195. if test -z "$CC"; then
  3196. ac_ct_CC=$CC
  3197. for ac_prog in cl.exe
  3198. do
  3199. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3200. set dummy $ac_prog; ac_word=$2
  3201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3202. $as_echo_n "checking for $ac_word... " >&6; }
  3203. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3204. $as_echo_n "(cached) " >&6
  3205. else
  3206. if test -n "$ac_ct_CC"; then
  3207. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3208. else
  3209. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3210. for as_dir in $PATH
  3211. do
  3212. IFS=$as_save_IFS
  3213. test -z "$as_dir" && as_dir=.
  3214. for ac_exec_ext in '' $ac_executable_extensions; do
  3215. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3216. ac_cv_prog_ac_ct_CC="$ac_prog"
  3217. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3218. break 2
  3219. fi
  3220. done
  3221. done
  3222. IFS=$as_save_IFS
  3223. fi
  3224. fi
  3225. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3226. if test -n "$ac_ct_CC"; then
  3227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3228. $as_echo "$ac_ct_CC" >&6; }
  3229. else
  3230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3231. $as_echo "no" >&6; }
  3232. fi
  3233. test -n "$ac_ct_CC" && break
  3234. done
  3235. if test "x$ac_ct_CC" = x; then
  3236. CC=""
  3237. else
  3238. case $cross_compiling:$ac_tool_warned in
  3239. yes:)
  3240. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3241. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3242. ac_tool_warned=yes ;;
  3243. esac
  3244. CC=$ac_ct_CC
  3245. fi
  3246. fi
  3247. fi
  3248. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3249. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3250. as_fn_error "no acceptable C compiler found in \$PATH
  3251. See \`config.log' for more details." "$LINENO" 5; }
  3252. # Provide some information about the compiler.
  3253. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3254. set X $ac_compile
  3255. ac_compiler=$2
  3256. for ac_option in --version -v -V -qversion; do
  3257. { { ac_try="$ac_compiler $ac_option >&5"
  3258. case "(($ac_try" in
  3259. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3260. *) ac_try_echo=$ac_try;;
  3261. esac
  3262. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3263. $as_echo "$ac_try_echo"; } >&5
  3264. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3265. ac_status=$?
  3266. if test -s conftest.err; then
  3267. sed '10a\
  3268. ... rest of stderr output deleted ...
  3269. 10q' conftest.err >conftest.er1
  3270. cat conftest.er1 >&5
  3271. rm -f conftest.er1 conftest.err
  3272. fi
  3273. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3274. test $ac_status = 0; }
  3275. done
  3276. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3277. /* end confdefs.h. */
  3278. int
  3279. main ()
  3280. {
  3281. ;
  3282. return 0;
  3283. }
  3284. _ACEOF
  3285. ac_clean_files_save=$ac_clean_files
  3286. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  3287. # Try to create an executable without -o first, disregard a.out.
  3288. # It will help us diagnose broken compilers, and finding out an intuition
  3289. # of exeext.
  3290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3291. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3292. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3293. # The possible output files:
  3294. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3295. ac_rmfiles=
  3296. for ac_file in $ac_files
  3297. do
  3298. case $ac_file in
  3299. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3300. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3301. esac
  3302. done
  3303. rm -f $ac_rmfiles
  3304. if { { ac_try="$ac_link_default"
  3305. case "(($ac_try" in
  3306. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3307. *) ac_try_echo=$ac_try;;
  3308. esac
  3309. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3310. $as_echo "$ac_try_echo"; } >&5
  3311. (eval "$ac_link_default") 2>&5
  3312. ac_status=$?
  3313. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3314. test $ac_status = 0; }; then :
  3315. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3316. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3317. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3318. # so that the user can short-circuit this test for compilers unknown to
  3319. # Autoconf.
  3320. for ac_file in $ac_files ''
  3321. do
  3322. test -f "$ac_file" || continue
  3323. case $ac_file in
  3324. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3325. ;;
  3326. [ab].out )
  3327. # We found the default executable, but exeext='' is most
  3328. # certainly right.
  3329. break;;
  3330. *.* )
  3331. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3332. then :; else
  3333. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3334. fi
  3335. # We set ac_cv_exeext here because the later test for it is not
  3336. # safe: cross compilers may not add the suffix if given an `-o'
  3337. # argument, so we may need to know it at that point already.
  3338. # Even if this section looks crufty: it has the advantage of
  3339. # actually working.
  3340. break;;
  3341. * )
  3342. break;;
  3343. esac
  3344. done
  3345. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3346. else
  3347. ac_file=''
  3348. fi
  3349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3350. $as_echo "$ac_file" >&6; }
  3351. if test -z "$ac_file"; then :
  3352. $as_echo "$as_me: failed program was:" >&5
  3353. sed 's/^/| /' conftest.$ac_ext >&5
  3354. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3355. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3356. { as_fn_set_status 77
  3357. as_fn_error "C compiler cannot create executables
  3358. See \`config.log' for more details." "$LINENO" 5; }; }
  3359. fi
  3360. ac_exeext=$ac_cv_exeext
  3361. # Check that the compiler produces executables we can run. If not, either
  3362. # the compiler is broken, or we cross compile.
  3363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3364. $as_echo_n "checking whether the C compiler works... " >&6; }
  3365. # If not cross compiling, check that we can run a simple program.
  3366. if test "$cross_compiling" != yes; then
  3367. if { ac_try='./$ac_file'
  3368. { { case "(($ac_try" in
  3369. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3370. *) ac_try_echo=$ac_try;;
  3371. esac
  3372. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3373. $as_echo "$ac_try_echo"; } >&5
  3374. (eval "$ac_try") 2>&5
  3375. ac_status=$?
  3376. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3377. test $ac_status = 0; }; }; then
  3378. cross_compiling=no
  3379. else
  3380. if test "$cross_compiling" = maybe; then
  3381. cross_compiling=yes
  3382. else
  3383. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3384. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3385. as_fn_error "cannot run C compiled programs.
  3386. If you meant to cross compile, use \`--host'.
  3387. See \`config.log' for more details." "$LINENO" 5; }
  3388. fi
  3389. fi
  3390. fi
  3391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3392. $as_echo "yes" >&6; }
  3393. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  3394. ac_clean_files=$ac_clean_files_save
  3395. # Check that the compiler produces executables we can run. If not, either
  3396. # the compiler is broken, or we cross compile.
  3397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3398. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3400. $as_echo "$cross_compiling" >&6; }
  3401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3402. $as_echo_n "checking for suffix of executables... " >&6; }
  3403. if { { ac_try="$ac_link"
  3404. case "(($ac_try" in
  3405. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3406. *) ac_try_echo=$ac_try;;
  3407. esac
  3408. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3409. $as_echo "$ac_try_echo"; } >&5
  3410. (eval "$ac_link") 2>&5
  3411. ac_status=$?
  3412. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3413. test $ac_status = 0; }; then :
  3414. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3415. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3416. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3417. # `rm'.
  3418. for ac_file in conftest.exe conftest conftest.*; do
  3419. test -f "$ac_file" || continue
  3420. case $ac_file in
  3421. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3422. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3423. break;;
  3424. * ) break;;
  3425. esac
  3426. done
  3427. else
  3428. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3429. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3430. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3431. See \`config.log' for more details." "$LINENO" 5; }
  3432. fi
  3433. rm -f conftest$ac_cv_exeext
  3434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3435. $as_echo "$ac_cv_exeext" >&6; }
  3436. rm -f conftest.$ac_ext
  3437. EXEEXT=$ac_cv_exeext
  3438. ac_exeext=$EXEEXT
  3439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3440. $as_echo_n "checking for suffix of object files... " >&6; }
  3441. if test "${ac_cv_objext+set}" = set; then :
  3442. $as_echo_n "(cached) " >&6
  3443. else
  3444. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3445. /* end confdefs.h. */
  3446. int
  3447. main ()
  3448. {
  3449. ;
  3450. return 0;
  3451. }
  3452. _ACEOF
  3453. rm -f conftest.o conftest.obj
  3454. if { { ac_try="$ac_compile"
  3455. case "(($ac_try" in
  3456. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3457. *) ac_try_echo=$ac_try;;
  3458. esac
  3459. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3460. $as_echo "$ac_try_echo"; } >&5
  3461. (eval "$ac_compile") 2>&5
  3462. ac_status=$?
  3463. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3464. test $ac_status = 0; }; then :
  3465. for ac_file in conftest.o conftest.obj conftest.*; do
  3466. test -f "$ac_file" || continue;
  3467. case $ac_file in
  3468. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3469. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3470. break;;
  3471. esac
  3472. done
  3473. else
  3474. $as_echo "$as_me: failed program was:" >&5
  3475. sed 's/^/| /' conftest.$ac_ext >&5
  3476. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3477. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3478. as_fn_error "cannot compute suffix of object files: cannot compile
  3479. See \`config.log' for more details." "$LINENO" 5; }
  3480. fi
  3481. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3482. fi
  3483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3484. $as_echo "$ac_cv_objext" >&6; }
  3485. OBJEXT=$ac_cv_objext
  3486. ac_objext=$OBJEXT
  3487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3488. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3489. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3490. $as_echo_n "(cached) " >&6
  3491. else
  3492. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3493. /* end confdefs.h. */
  3494. int
  3495. main ()
  3496. {
  3497. #ifndef __GNUC__
  3498. choke me
  3499. #endif
  3500. ;
  3501. return 0;
  3502. }
  3503. _ACEOF
  3504. if ac_fn_c_try_compile "$LINENO"; then :
  3505. ac_compiler_gnu=yes
  3506. else
  3507. ac_compiler_gnu=no
  3508. fi
  3509. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3510. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3511. fi
  3512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3513. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3514. if test $ac_compiler_gnu = yes; then
  3515. GCC=yes
  3516. else
  3517. GCC=
  3518. fi
  3519. ac_test_CFLAGS=${CFLAGS+set}
  3520. ac_save_CFLAGS=$CFLAGS
  3521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3522. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3523. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3524. $as_echo_n "(cached) " >&6
  3525. else
  3526. ac_save_c_werror_flag=$ac_c_werror_flag
  3527. ac_c_werror_flag=yes
  3528. ac_cv_prog_cc_g=no
  3529. CFLAGS="-g"
  3530. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3531. /* end confdefs.h. */
  3532. int
  3533. main ()
  3534. {
  3535. ;
  3536. return 0;
  3537. }
  3538. _ACEOF
  3539. if ac_fn_c_try_compile "$LINENO"; then :
  3540. ac_cv_prog_cc_g=yes
  3541. else
  3542. CFLAGS=""
  3543. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3544. /* end confdefs.h. */
  3545. int
  3546. main ()
  3547. {
  3548. ;
  3549. return 0;
  3550. }
  3551. _ACEOF
  3552. if ac_fn_c_try_compile "$LINENO"; then :
  3553. else
  3554. ac_c_werror_flag=$ac_save_c_werror_flag
  3555. CFLAGS="-g"
  3556. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3557. /* end confdefs.h. */
  3558. int
  3559. main ()
  3560. {
  3561. ;
  3562. return 0;
  3563. }
  3564. _ACEOF
  3565. if ac_fn_c_try_compile "$LINENO"; then :
  3566. ac_cv_prog_cc_g=yes
  3567. fi
  3568. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3569. fi
  3570. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3571. fi
  3572. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3573. ac_c_werror_flag=$ac_save_c_werror_flag
  3574. fi
  3575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3576. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3577. if test "$ac_test_CFLAGS" = set; then
  3578. CFLAGS=$ac_save_CFLAGS
  3579. elif test $ac_cv_prog_cc_g = yes; then
  3580. if test "$GCC" = yes; then
  3581. CFLAGS="-g -O2"
  3582. else
  3583. CFLAGS="-g"
  3584. fi
  3585. else
  3586. if test "$GCC" = yes; then
  3587. CFLAGS="-O2"
  3588. else
  3589. CFLAGS=
  3590. fi
  3591. fi
  3592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3593. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3594. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3595. $as_echo_n "(cached) " >&6
  3596. else
  3597. ac_cv_prog_cc_c89=no
  3598. ac_save_CC=$CC
  3599. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3600. /* end confdefs.h. */
  3601. #include <stdarg.h>
  3602. #include <stdio.h>
  3603. #include <sys/types.h>
  3604. #include <sys/stat.h>
  3605. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3606. struct buf { int x; };
  3607. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3608. static char *e (p, i)
  3609. char **p;
  3610. int i;
  3611. {
  3612. return p[i];
  3613. }
  3614. static char *f (char * (*g) (char **, int), char **p, ...)
  3615. {
  3616. char *s;
  3617. va_list v;
  3618. va_start (v,p);
  3619. s = g (p, va_arg (v,int));
  3620. va_end (v);
  3621. return s;
  3622. }
  3623. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3624. function prototypes and stuff, but not '\xHH' hex character constants.
  3625. These don't provoke an error unfortunately, instead are silently treated
  3626. as 'x'. The following induces an error, until -std is added to get
  3627. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3628. array size at least. It's necessary to write '\x00'==0 to get something
  3629. that's true only with -std. */
  3630. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3631. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3632. inside strings and character constants. */
  3633. #define FOO(x) 'x'
  3634. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3635. int test (int i, double x);
  3636. struct s1 {int (*f) (int a);};
  3637. struct s2 {int (*f) (double a);};
  3638. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3639. int argc;
  3640. char **argv;
  3641. int
  3642. main ()
  3643. {
  3644. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3645. ;
  3646. return 0;
  3647. }
  3648. _ACEOF
  3649. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3650. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3651. do
  3652. CC="$ac_save_CC $ac_arg"
  3653. if ac_fn_c_try_compile "$LINENO"; then :
  3654. ac_cv_prog_cc_c89=$ac_arg
  3655. fi
  3656. rm -f core conftest.err conftest.$ac_objext
  3657. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3658. done
  3659. rm -f conftest.$ac_ext
  3660. CC=$ac_save_CC
  3661. fi
  3662. # AC_CACHE_VAL
  3663. case "x$ac_cv_prog_cc_c89" in
  3664. x)
  3665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3666. $as_echo "none needed" >&6; } ;;
  3667. xno)
  3668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3669. $as_echo "unsupported" >&6; } ;;
  3670. *)
  3671. CC="$CC $ac_cv_prog_cc_c89"
  3672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3673. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3674. esac
  3675. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3676. fi
  3677. ac_ext=c
  3678. ac_cpp='$CPP $CPPFLAGS'
  3679. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3680. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3681. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3682. DEPDIR="${am__leading_dot}deps"
  3683. ac_config_commands="$ac_config_commands depfiles"
  3684. am_make=${MAKE-make}
  3685. cat > confinc << 'END'
  3686. am__doit:
  3687. @echo this is the am__doit target
  3688. .PHONY: am__doit
  3689. END
  3690. # If we don't find an include directive, just comment out the code.
  3691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3692. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3693. am__include="#"
  3694. am__quote=
  3695. _am_result=none
  3696. # First try GNU make style include.
  3697. echo "include confinc" > confmf
  3698. # Ignore all kinds of additional output from `make'.
  3699. case `$am_make -s -f confmf 2> /dev/null` in #(
  3700. *the\ am__doit\ target*)
  3701. am__include=include
  3702. am__quote=
  3703. _am_result=GNU
  3704. ;;
  3705. esac
  3706. # Now try BSD make style include.
  3707. if test "$am__include" = "#"; then
  3708. echo '.include "confinc"' > confmf
  3709. case `$am_make -s -f confmf 2> /dev/null` in #(
  3710. *the\ am__doit\ target*)
  3711. am__include=.include
  3712. am__quote="\""
  3713. _am_result=BSD
  3714. ;;
  3715. esac
  3716. fi
  3717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3718. $as_echo "$_am_result" >&6; }
  3719. rm -f confinc confmf
  3720. # Check whether --enable-dependency-tracking was given.
  3721. if test "${enable_dependency_tracking+set}" = set; then :
  3722. enableval=$enable_dependency_tracking;
  3723. fi
  3724. if test "x$enable_dependency_tracking" != xno; then
  3725. am_depcomp="$ac_aux_dir/depcomp"
  3726. AMDEPBACKSLASH='\'
  3727. fi
  3728. if test "x$enable_dependency_tracking" != xno; then
  3729. AMDEP_TRUE=
  3730. AMDEP_FALSE='#'
  3731. else
  3732. AMDEP_TRUE='#'
  3733. AMDEP_FALSE=
  3734. fi
  3735. depcc="$CC" am_compiler_list=
  3736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3737. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3738. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  3739. $as_echo_n "(cached) " >&6
  3740. else
  3741. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3742. # We make a subdir and do the tests there. Otherwise we can end up
  3743. # making bogus files that we don't know about and never remove. For
  3744. # instance it was reported that on HP-UX the gcc test will end up
  3745. # making a dummy file named `D' -- because `-MD' means `put the output
  3746. # in D'.
  3747. mkdir conftest.dir
  3748. # Copy depcomp to subdir because otherwise we won't find it if we're
  3749. # using a relative directory.
  3750. cp "$am_depcomp" conftest.dir
  3751. cd conftest.dir
  3752. # We will build objects and dependencies in a subdirectory because
  3753. # it helps to detect inapplicable dependency modes. For instance
  3754. # both Tru64's cc and ICC support -MD to output dependencies as a
  3755. # side effect of compilation, but ICC will put the dependencies in
  3756. # the current directory while Tru64 will put them in the object
  3757. # directory.
  3758. mkdir sub
  3759. am_cv_CC_dependencies_compiler_type=none
  3760. if test "$am_compiler_list" = ""; then
  3761. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3762. fi
  3763. am__universal=false
  3764. case " $depcc " in #(
  3765. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3766. esac
  3767. for depmode in $am_compiler_list; do
  3768. # Setup a source with many dependencies, because some compilers
  3769. # like to wrap large dependency lists on column 80 (with \), and
  3770. # we should not choose a depcomp mode which is confused by this.
  3771. #
  3772. # We need to recreate these files for each test, as the compiler may
  3773. # overwrite some of them when testing with obscure command lines.
  3774. # This happens at least with the AIX C compiler.
  3775. : > sub/conftest.c
  3776. for i in 1 2 3 4 5 6; do
  3777. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3778. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3779. # Solaris 8's {/usr,}/bin/sh.
  3780. touch sub/conftst$i.h
  3781. done
  3782. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3783. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3784. # mode. It turns out that the SunPro C++ compiler does not properly
  3785. # handle `-M -o', and we need to detect this. Also, some Intel
  3786. # versions had trouble with output in subdirs
  3787. am__obj=sub/conftest.${OBJEXT-o}
  3788. am__minus_obj="-o $am__obj"
  3789. case $depmode in
  3790. gcc)
  3791. # This depmode causes a compiler race in universal mode.
  3792. test "$am__universal" = false || continue
  3793. ;;
  3794. nosideeffect)
  3795. # after this tag, mechanisms are not by side-effect, so they'll
  3796. # only be used when explicitly requested
  3797. if test "x$enable_dependency_tracking" = xyes; then
  3798. continue
  3799. else
  3800. break
  3801. fi
  3802. ;;
  3803. msvisualcpp | msvcmsys)
  3804. # This compiler won't grok `-c -o', but also, the minuso test has
  3805. # not run yet. These depmodes are late enough in the game, and
  3806. # so weak that their functioning should not be impacted.
  3807. am__obj=conftest.${OBJEXT-o}
  3808. am__minus_obj=
  3809. ;;
  3810. none) break ;;
  3811. esac
  3812. if depmode=$depmode \
  3813. source=sub/conftest.c object=$am__obj \
  3814. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3815. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3816. >/dev/null 2>conftest.err &&
  3817. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3818. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3819. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3820. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3821. # icc doesn't choke on unknown options, it will just issue warnings
  3822. # or remarks (even with -Werror). So we grep stderr for any message
  3823. # that says an option was ignored or not supported.
  3824. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3825. # icc: Command line warning: ignoring option '-M'; no argument required
  3826. # The diagnosis changed in icc 8.0:
  3827. # icc: Command line remark: option '-MP' not supported
  3828. if (grep 'ignoring option' conftest.err ||
  3829. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3830. am_cv_CC_dependencies_compiler_type=$depmode
  3831. break
  3832. fi
  3833. fi
  3834. done
  3835. cd ..
  3836. rm -rf conftest.dir
  3837. else
  3838. am_cv_CC_dependencies_compiler_type=none
  3839. fi
  3840. fi
  3841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3842. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3843. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3844. if
  3845. test "x$enable_dependency_tracking" != xno \
  3846. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3847. am__fastdepCC_TRUE=
  3848. am__fastdepCC_FALSE='#'
  3849. else
  3850. am__fastdepCC_TRUE='#'
  3851. am__fastdepCC_FALSE=
  3852. fi
  3853. ac_ext=cpp
  3854. ac_cpp='$CXXCPP $CPPFLAGS'
  3855. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3856. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3857. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3858. if test -z "$CXX"; then
  3859. if test -n "$CCC"; then
  3860. CXX=$CCC
  3861. else
  3862. if test -n "$ac_tool_prefix"; then
  3863. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3864. do
  3865. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3866. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3868. $as_echo_n "checking for $ac_word... " >&6; }
  3869. if test "${ac_cv_prog_CXX+set}" = set; then :
  3870. $as_echo_n "(cached) " >&6
  3871. else
  3872. if test -n "$CXX"; then
  3873. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3874. else
  3875. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3876. for as_dir in $PATH
  3877. do
  3878. IFS=$as_save_IFS
  3879. test -z "$as_dir" && as_dir=.
  3880. for ac_exec_ext in '' $ac_executable_extensions; do
  3881. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3882. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3883. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3884. break 2
  3885. fi
  3886. done
  3887. done
  3888. IFS=$as_save_IFS
  3889. fi
  3890. fi
  3891. CXX=$ac_cv_prog_CXX
  3892. if test -n "$CXX"; then
  3893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3894. $as_echo "$CXX" >&6; }
  3895. else
  3896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3897. $as_echo "no" >&6; }
  3898. fi
  3899. test -n "$CXX" && break
  3900. done
  3901. fi
  3902. if test -z "$CXX"; then
  3903. ac_ct_CXX=$CXX
  3904. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3905. do
  3906. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3907. set dummy $ac_prog; ac_word=$2
  3908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3909. $as_echo_n "checking for $ac_word... " >&6; }
  3910. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  3911. $as_echo_n "(cached) " >&6
  3912. else
  3913. if test -n "$ac_ct_CXX"; then
  3914. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3915. else
  3916. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3917. for as_dir in $PATH
  3918. do
  3919. IFS=$as_save_IFS
  3920. test -z "$as_dir" && as_dir=.
  3921. for ac_exec_ext in '' $ac_executable_extensions; do
  3922. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3923. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3924. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3925. break 2
  3926. fi
  3927. done
  3928. done
  3929. IFS=$as_save_IFS
  3930. fi
  3931. fi
  3932. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3933. if test -n "$ac_ct_CXX"; then
  3934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3935. $as_echo "$ac_ct_CXX" >&6; }
  3936. else
  3937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3938. $as_echo "no" >&6; }
  3939. fi
  3940. test -n "$ac_ct_CXX" && break
  3941. done
  3942. if test "x$ac_ct_CXX" = x; then
  3943. CXX="g++"
  3944. else
  3945. case $cross_compiling:$ac_tool_warned in
  3946. yes:)
  3947. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3948. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3949. ac_tool_warned=yes ;;
  3950. esac
  3951. CXX=$ac_ct_CXX
  3952. fi
  3953. fi
  3954. fi
  3955. fi
  3956. # Provide some information about the compiler.
  3957. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3958. set X $ac_compile
  3959. ac_compiler=$2
  3960. for ac_option in --version -v -V -qversion; do
  3961. { { ac_try="$ac_compiler $ac_option >&5"
  3962. case "(($ac_try" in
  3963. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3964. *) ac_try_echo=$ac_try;;
  3965. esac
  3966. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3967. $as_echo "$ac_try_echo"; } >&5
  3968. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3969. ac_status=$?
  3970. if test -s conftest.err; then
  3971. sed '10a\
  3972. ... rest of stderr output deleted ...
  3973. 10q' conftest.err >conftest.er1
  3974. cat conftest.er1 >&5
  3975. rm -f conftest.er1 conftest.err
  3976. fi
  3977. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3978. test $ac_status = 0; }
  3979. done
  3980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3981. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3982. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  3983. $as_echo_n "(cached) " >&6
  3984. else
  3985. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3986. /* end confdefs.h. */
  3987. int
  3988. main ()
  3989. {
  3990. #ifndef __GNUC__
  3991. choke me
  3992. #endif
  3993. ;
  3994. return 0;
  3995. }
  3996. _ACEOF
  3997. if ac_fn_cxx_try_compile "$LINENO"; then :
  3998. ac_compiler_gnu=yes
  3999. else
  4000. ac_compiler_gnu=no
  4001. fi
  4002. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4003. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4004. fi
  4005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  4006. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  4007. if test $ac_compiler_gnu = yes; then
  4008. GXX=yes
  4009. else
  4010. GXX=
  4011. fi
  4012. ac_test_CXXFLAGS=${CXXFLAGS+set}
  4013. ac_save_CXXFLAGS=$CXXFLAGS
  4014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  4015. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  4016. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  4017. $as_echo_n "(cached) " >&6
  4018. else
  4019. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  4020. ac_cxx_werror_flag=yes
  4021. ac_cv_prog_cxx_g=no
  4022. CXXFLAGS="-g"
  4023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4024. /* end confdefs.h. */
  4025. int
  4026. main ()
  4027. {
  4028. ;
  4029. return 0;
  4030. }
  4031. _ACEOF
  4032. if ac_fn_cxx_try_compile "$LINENO"; then :
  4033. ac_cv_prog_cxx_g=yes
  4034. else
  4035. CXXFLAGS=""
  4036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4037. /* end confdefs.h. */
  4038. int
  4039. main ()
  4040. {
  4041. ;
  4042. return 0;
  4043. }
  4044. _ACEOF
  4045. if ac_fn_cxx_try_compile "$LINENO"; then :
  4046. else
  4047. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4048. CXXFLAGS="-g"
  4049. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4050. /* end confdefs.h. */
  4051. int
  4052. main ()
  4053. {
  4054. ;
  4055. return 0;
  4056. }
  4057. _ACEOF
  4058. if ac_fn_cxx_try_compile "$LINENO"; then :
  4059. ac_cv_prog_cxx_g=yes
  4060. fi
  4061. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4062. fi
  4063. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4064. fi
  4065. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4066. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4067. fi
  4068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  4069. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  4070. if test "$ac_test_CXXFLAGS" = set; then
  4071. CXXFLAGS=$ac_save_CXXFLAGS
  4072. elif test $ac_cv_prog_cxx_g = yes; then
  4073. if test "$GXX" = yes; then
  4074. CXXFLAGS="-g -O2"
  4075. else
  4076. CXXFLAGS="-g"
  4077. fi
  4078. else
  4079. if test "$GXX" = yes; then
  4080. CXXFLAGS="-O2"
  4081. else
  4082. CXXFLAGS=
  4083. fi
  4084. fi
  4085. ac_ext=c
  4086. ac_cpp='$CPP $CPPFLAGS'
  4087. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4088. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4089. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4090. depcc="$CXX" am_compiler_list=
  4091. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4092. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4093. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  4094. $as_echo_n "(cached) " >&6
  4095. else
  4096. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4097. # We make a subdir and do the tests there. Otherwise we can end up
  4098. # making bogus files that we don't know about and never remove. For
  4099. # instance it was reported that on HP-UX the gcc test will end up
  4100. # making a dummy file named `D' -- because `-MD' means `put the output
  4101. # in D'.
  4102. mkdir conftest.dir
  4103. # Copy depcomp to subdir because otherwise we won't find it if we're
  4104. # using a relative directory.
  4105. cp "$am_depcomp" conftest.dir
  4106. cd conftest.dir
  4107. # We will build objects and dependencies in a subdirectory because
  4108. # it helps to detect inapplicable dependency modes. For instance
  4109. # both Tru64's cc and ICC support -MD to output dependencies as a
  4110. # side effect of compilation, but ICC will put the dependencies in
  4111. # the current directory while Tru64 will put them in the object
  4112. # directory.
  4113. mkdir sub
  4114. am_cv_CXX_dependencies_compiler_type=none
  4115. if test "$am_compiler_list" = ""; then
  4116. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4117. fi
  4118. am__universal=false
  4119. case " $depcc " in #(
  4120. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4121. esac
  4122. for depmode in $am_compiler_list; do
  4123. # Setup a source with many dependencies, because some compilers
  4124. # like to wrap large dependency lists on column 80 (with \), and
  4125. # we should not choose a depcomp mode which is confused by this.
  4126. #
  4127. # We need to recreate these files for each test, as the compiler may
  4128. # overwrite some of them when testing with obscure command lines.
  4129. # This happens at least with the AIX C compiler.
  4130. : > sub/conftest.c
  4131. for i in 1 2 3 4 5 6; do
  4132. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4133. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4134. # Solaris 8's {/usr,}/bin/sh.
  4135. touch sub/conftst$i.h
  4136. done
  4137. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4138. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4139. # mode. It turns out that the SunPro C++ compiler does not properly
  4140. # handle `-M -o', and we need to detect this. Also, some Intel
  4141. # versions had trouble with output in subdirs
  4142. am__obj=sub/conftest.${OBJEXT-o}
  4143. am__minus_obj="-o $am__obj"
  4144. case $depmode in
  4145. gcc)
  4146. # This depmode causes a compiler race in universal mode.
  4147. test "$am__universal" = false || continue
  4148. ;;
  4149. nosideeffect)
  4150. # after this tag, mechanisms are not by side-effect, so they'll
  4151. # only be used when explicitly requested
  4152. if test "x$enable_dependency_tracking" = xyes; then
  4153. continue
  4154. else
  4155. break
  4156. fi
  4157. ;;
  4158. msvisualcpp | msvcmsys)
  4159. # This compiler won't grok `-c -o', but also, the minuso test has
  4160. # not run yet. These depmodes are late enough in the game, and
  4161. # so weak that their functioning should not be impacted.
  4162. am__obj=conftest.${OBJEXT-o}
  4163. am__minus_obj=
  4164. ;;
  4165. none) break ;;
  4166. esac
  4167. if depmode=$depmode \
  4168. source=sub/conftest.c object=$am__obj \
  4169. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4170. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4171. >/dev/null 2>conftest.err &&
  4172. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4173. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4174. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4175. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4176. # icc doesn't choke on unknown options, it will just issue warnings
  4177. # or remarks (even with -Werror). So we grep stderr for any message
  4178. # that says an option was ignored or not supported.
  4179. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4180. # icc: Command line warning: ignoring option '-M'; no argument required
  4181. # The diagnosis changed in icc 8.0:
  4182. # icc: Command line remark: option '-MP' not supported
  4183. if (grep 'ignoring option' conftest.err ||
  4184. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4185. am_cv_CXX_dependencies_compiler_type=$depmode
  4186. break
  4187. fi
  4188. fi
  4189. done
  4190. cd ..
  4191. rm -rf conftest.dir
  4192. else
  4193. am_cv_CXX_dependencies_compiler_type=none
  4194. fi
  4195. fi
  4196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  4197. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  4198. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  4199. if
  4200. test "x$enable_dependency_tracking" != xno \
  4201. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  4202. am__fastdepCXX_TRUE=
  4203. am__fastdepCXX_FALSE='#'
  4204. else
  4205. am__fastdepCXX_TRUE='#'
  4206. am__fastdepCXX_FALSE=
  4207. fi
  4208. CFLAGS=$save_CFLAGS
  4209. # By default we simply use the C compiler to build assembly code.
  4210. test "${CCAS+set}" = set || CCAS=$CC
  4211. test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  4212. depcc="$CCAS" am_compiler_list=
  4213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4214. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4215. if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
  4216. $as_echo_n "(cached) " >&6
  4217. else
  4218. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4219. # We make a subdir and do the tests there. Otherwise we can end up
  4220. # making bogus files that we don't know about and never remove. For
  4221. # instance it was reported that on HP-UX the gcc test will end up
  4222. # making a dummy file named `D' -- because `-MD' means `put the output
  4223. # in D'.
  4224. mkdir conftest.dir
  4225. # Copy depcomp to subdir because otherwise we won't find it if we're
  4226. # using a relative directory.
  4227. cp "$am_depcomp" conftest.dir
  4228. cd conftest.dir
  4229. # We will build objects and dependencies in a subdirectory because
  4230. # it helps to detect inapplicable dependency modes. For instance
  4231. # both Tru64's cc and ICC support -MD to output dependencies as a
  4232. # side effect of compilation, but ICC will put the dependencies in
  4233. # the current directory while Tru64 will put them in the object
  4234. # directory.
  4235. mkdir sub
  4236. am_cv_CCAS_dependencies_compiler_type=none
  4237. if test "$am_compiler_list" = ""; then
  4238. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4239. fi
  4240. am__universal=false
  4241. for depmode in $am_compiler_list; do
  4242. # Setup a source with many dependencies, because some compilers
  4243. # like to wrap large dependency lists on column 80 (with \), and
  4244. # we should not choose a depcomp mode which is confused by this.
  4245. #
  4246. # We need to recreate these files for each test, as the compiler may
  4247. # overwrite some of them when testing with obscure command lines.
  4248. # This happens at least with the AIX C compiler.
  4249. : > sub/conftest.c
  4250. for i in 1 2 3 4 5 6; do
  4251. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4252. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4253. # Solaris 8's {/usr,}/bin/sh.
  4254. touch sub/conftst$i.h
  4255. done
  4256. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4257. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4258. # mode. It turns out that the SunPro C++ compiler does not properly
  4259. # handle `-M -o', and we need to detect this. Also, some Intel
  4260. # versions had trouble with output in subdirs
  4261. am__obj=sub/conftest.${OBJEXT-o}
  4262. am__minus_obj="-o $am__obj"
  4263. case $depmode in
  4264. gcc)
  4265. # This depmode causes a compiler race in universal mode.
  4266. test "$am__universal" = false || continue
  4267. ;;
  4268. nosideeffect)
  4269. # after this tag, mechanisms are not by side-effect, so they'll
  4270. # only be used when explicitly requested
  4271. if test "x$enable_dependency_tracking" = xyes; then
  4272. continue
  4273. else
  4274. break
  4275. fi
  4276. ;;
  4277. msvisualcpp | msvcmsys)
  4278. # This compiler won't grok `-c -o', but also, the minuso test has
  4279. # not run yet. These depmodes are late enough in the game, and
  4280. # so weak that their functioning should not be impacted.
  4281. am__obj=conftest.${OBJEXT-o}
  4282. am__minus_obj=
  4283. ;;
  4284. none) break ;;
  4285. esac
  4286. if depmode=$depmode \
  4287. source=sub/conftest.c object=$am__obj \
  4288. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4289. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4290. >/dev/null 2>conftest.err &&
  4291. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4292. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4293. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4294. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4295. # icc doesn't choke on unknown options, it will just issue warnings
  4296. # or remarks (even with -Werror). So we grep stderr for any message
  4297. # that says an option was ignored or not supported.
  4298. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4299. # icc: Command line warning: ignoring option '-M'; no argument required
  4300. # The diagnosis changed in icc 8.0:
  4301. # icc: Command line remark: option '-MP' not supported
  4302. if (grep 'ignoring option' conftest.err ||
  4303. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4304. am_cv_CCAS_dependencies_compiler_type=$depmode
  4305. break
  4306. fi
  4307. fi
  4308. done
  4309. cd ..
  4310. rm -rf conftest.dir
  4311. else
  4312. am_cv_CCAS_dependencies_compiler_type=none
  4313. fi
  4314. fi
  4315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
  4316. $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
  4317. CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
  4318. if
  4319. test "x$enable_dependency_tracking" != xno \
  4320. && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
  4321. am__fastdepCCAS_TRUE=
  4322. am__fastdepCCAS_FALSE='#'
  4323. else
  4324. am__fastdepCCAS_TRUE='#'
  4325. am__fastdepCCAS_FALSE=
  4326. fi
  4327. if test "x$CC" != xcc; then
  4328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  4329. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  4330. else
  4331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  4332. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  4333. fi
  4334. set dummy $CC; ac_cc=`$as_echo "$2" |
  4335. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4336. if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
  4337. $as_echo_n "(cached) " >&6
  4338. else
  4339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4340. /* end confdefs.h. */
  4341. int
  4342. main ()
  4343. {
  4344. ;
  4345. return 0;
  4346. }
  4347. _ACEOF
  4348. # Make sure it works both with $CC and with simple cc.
  4349. # We do the test twice because some compilers refuse to overwrite an
  4350. # existing .o file with -o, though they will create one.
  4351. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4352. rm -f conftest2.*
  4353. if { { case "(($ac_try" in
  4354. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4355. *) ac_try_echo=$ac_try;;
  4356. esac
  4357. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4358. $as_echo "$ac_try_echo"; } >&5
  4359. (eval "$ac_try") 2>&5
  4360. ac_status=$?
  4361. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4362. test $ac_status = 0; } &&
  4363. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  4364. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4365. *) ac_try_echo=$ac_try;;
  4366. esac
  4367. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4368. $as_echo "$ac_try_echo"; } >&5
  4369. (eval "$ac_try") 2>&5
  4370. ac_status=$?
  4371. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4372. test $ac_status = 0; };
  4373. then
  4374. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  4375. if test "x$CC" != xcc; then
  4376. # Test first that cc exists at all.
  4377. if { ac_try='cc -c conftest.$ac_ext >&5'
  4378. { { case "(($ac_try" in
  4379. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4380. *) ac_try_echo=$ac_try;;
  4381. esac
  4382. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4383. $as_echo "$ac_try_echo"; } >&5
  4384. (eval "$ac_try") 2>&5
  4385. ac_status=$?
  4386. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4387. test $ac_status = 0; }; }; then
  4388. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4389. rm -f conftest2.*
  4390. if { { case "(($ac_try" in
  4391. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4392. *) ac_try_echo=$ac_try;;
  4393. esac
  4394. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4395. $as_echo "$ac_try_echo"; } >&5
  4396. (eval "$ac_try") 2>&5
  4397. ac_status=$?
  4398. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4399. test $ac_status = 0; } &&
  4400. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  4401. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4402. *) ac_try_echo=$ac_try;;
  4403. esac
  4404. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4405. $as_echo "$ac_try_echo"; } >&5
  4406. (eval "$ac_try") 2>&5
  4407. ac_status=$?
  4408. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4409. test $ac_status = 0; };
  4410. then
  4411. # cc works too.
  4412. :
  4413. else
  4414. # cc exists but doesn't like -o.
  4415. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4416. fi
  4417. fi
  4418. fi
  4419. else
  4420. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4421. fi
  4422. rm -f core conftest*
  4423. fi
  4424. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  4425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4426. $as_echo "yes" >&6; }
  4427. else
  4428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4429. $as_echo "no" >&6; }
  4430. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  4431. fi
  4432. # FIXME: we rely on the cache variable name because
  4433. # there is no other way.
  4434. set dummy $CC
  4435. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4436. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  4437. if test "$am_t" != yes; then
  4438. # Losing compiler, so override with the script.
  4439. # FIXME: It is wrong to rewrite CC.
  4440. # But if we don't then we get into trouble of one sort or another.
  4441. # A longer-term fix would be to have automake use am__CC in this case,
  4442. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4443. CC="$am_aux_dir/compile $CC"
  4444. fi
  4445. case `pwd` in
  4446. *\ * | *\ *)
  4447. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4448. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4449. esac
  4450. macro_version='2.2.7a'
  4451. macro_revision='1.3134'
  4452. ltmain="$ac_aux_dir/ltmain.sh"
  4453. # Backslashify metacharacters that are still active within
  4454. # double-quoted strings.
  4455. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4456. # Same as above, but do not quote variable references.
  4457. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4458. # Sed substitution to delay expansion of an escaped shell variable in a
  4459. # double_quote_subst'ed string.
  4460. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4461. # Sed substitution to delay expansion of an escaped single quote.
  4462. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4463. # Sed substitution to avoid accidental globbing in evaled expressions
  4464. no_glob_subst='s/\*/\\\*/g'
  4465. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4466. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4467. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4469. $as_echo_n "checking how to print strings... " >&6; }
  4470. # Test print first, because it will be a builtin if present.
  4471. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  4472. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4473. ECHO='print -r --'
  4474. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4475. ECHO='printf %s\n'
  4476. else
  4477. # Use this function as a fallback that always works.
  4478. func_fallback_echo ()
  4479. {
  4480. eval 'cat <<_LTECHO_EOF
  4481. $1
  4482. _LTECHO_EOF'
  4483. }
  4484. ECHO='func_fallback_echo'
  4485. fi
  4486. # func_echo_all arg...
  4487. # Invoke $ECHO with all args, space-separated.
  4488. func_echo_all ()
  4489. {
  4490. $ECHO ""
  4491. }
  4492. case "$ECHO" in
  4493. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4494. $as_echo "printf" >&6; } ;;
  4495. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4496. $as_echo "print -r" >&6; } ;;
  4497. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4498. $as_echo "cat" >&6; } ;;
  4499. esac
  4500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4501. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4502. if test "${ac_cv_path_SED+set}" = set; then :
  4503. $as_echo_n "(cached) " >&6
  4504. else
  4505. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4506. for ac_i in 1 2 3 4 5 6 7; do
  4507. ac_script="$ac_script$as_nl$ac_script"
  4508. done
  4509. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4510. { ac_script=; unset ac_script;}
  4511. if test -z "$SED"; then
  4512. ac_path_SED_found=false
  4513. # Loop through the user's path and test for each of PROGNAME-LIST
  4514. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4515. for as_dir in $PATH
  4516. do
  4517. IFS=$as_save_IFS
  4518. test -z "$as_dir" && as_dir=.
  4519. for ac_prog in sed gsed; do
  4520. for ac_exec_ext in '' $ac_executable_extensions; do
  4521. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4522. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4523. # Check for GNU ac_path_SED and select it if it is found.
  4524. # Check for GNU $ac_path_SED
  4525. case `"$ac_path_SED" --version 2>&1` in
  4526. *GNU*)
  4527. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4528. *)
  4529. ac_count=0
  4530. $as_echo_n 0123456789 >"conftest.in"
  4531. while :
  4532. do
  4533. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4534. mv "conftest.tmp" "conftest.in"
  4535. cp "conftest.in" "conftest.nl"
  4536. $as_echo '' >> "conftest.nl"
  4537. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4538. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4539. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4540. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4541. # Best one so far, save it but keep looking for a better one
  4542. ac_cv_path_SED="$ac_path_SED"
  4543. ac_path_SED_max=$ac_count
  4544. fi
  4545. # 10*(2^10) chars as input seems more than enough
  4546. test $ac_count -gt 10 && break
  4547. done
  4548. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4549. esac
  4550. $ac_path_SED_found && break 3
  4551. done
  4552. done
  4553. done
  4554. IFS=$as_save_IFS
  4555. if test -z "$ac_cv_path_SED"; then
  4556. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4557. fi
  4558. else
  4559. ac_cv_path_SED=$SED
  4560. fi
  4561. fi
  4562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4563. $as_echo "$ac_cv_path_SED" >&6; }
  4564. SED="$ac_cv_path_SED"
  4565. rm -f conftest.sed
  4566. test -z "$SED" && SED=sed
  4567. Xsed="$SED -e 1s/^X//"
  4568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4569. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4570. if test "${ac_cv_path_GREP+set}" = set; then :
  4571. $as_echo_n "(cached) " >&6
  4572. else
  4573. if test -z "$GREP"; then
  4574. ac_path_GREP_found=false
  4575. # Loop through the user's path and test for each of PROGNAME-LIST
  4576. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4577. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4578. do
  4579. IFS=$as_save_IFS
  4580. test -z "$as_dir" && as_dir=.
  4581. for ac_prog in grep ggrep; do
  4582. for ac_exec_ext in '' $ac_executable_extensions; do
  4583. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4584. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4585. # Check for GNU ac_path_GREP and select it if it is found.
  4586. # Check for GNU $ac_path_GREP
  4587. case `"$ac_path_GREP" --version 2>&1` in
  4588. *GNU*)
  4589. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4590. *)
  4591. ac_count=0
  4592. $as_echo_n 0123456789 >"conftest.in"
  4593. while :
  4594. do
  4595. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4596. mv "conftest.tmp" "conftest.in"
  4597. cp "conftest.in" "conftest.nl"
  4598. $as_echo 'GREP' >> "conftest.nl"
  4599. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4600. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4601. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4602. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4603. # Best one so far, save it but keep looking for a better one
  4604. ac_cv_path_GREP="$ac_path_GREP"
  4605. ac_path_GREP_max=$ac_count
  4606. fi
  4607. # 10*(2^10) chars as input seems more than enough
  4608. test $ac_count -gt 10 && break
  4609. done
  4610. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4611. esac
  4612. $ac_path_GREP_found && break 3
  4613. done
  4614. done
  4615. done
  4616. IFS=$as_save_IFS
  4617. if test -z "$ac_cv_path_GREP"; then
  4618. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4619. fi
  4620. else
  4621. ac_cv_path_GREP=$GREP
  4622. fi
  4623. fi
  4624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4625. $as_echo "$ac_cv_path_GREP" >&6; }
  4626. GREP="$ac_cv_path_GREP"
  4627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4628. $as_echo_n "checking for egrep... " >&6; }
  4629. if test "${ac_cv_path_EGREP+set}" = set; then :
  4630. $as_echo_n "(cached) " >&6
  4631. else
  4632. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4633. then ac_cv_path_EGREP="$GREP -E"
  4634. else
  4635. if test -z "$EGREP"; then
  4636. ac_path_EGREP_found=false
  4637. # Loop through the user's path and test for each of PROGNAME-LIST
  4638. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4639. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4640. do
  4641. IFS=$as_save_IFS
  4642. test -z "$as_dir" && as_dir=.
  4643. for ac_prog in egrep; do
  4644. for ac_exec_ext in '' $ac_executable_extensions; do
  4645. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4646. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4647. # Check for GNU ac_path_EGREP and select it if it is found.
  4648. # Check for GNU $ac_path_EGREP
  4649. case `"$ac_path_EGREP" --version 2>&1` in
  4650. *GNU*)
  4651. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4652. *)
  4653. ac_count=0
  4654. $as_echo_n 0123456789 >"conftest.in"
  4655. while :
  4656. do
  4657. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4658. mv "conftest.tmp" "conftest.in"
  4659. cp "conftest.in" "conftest.nl"
  4660. $as_echo 'EGREP' >> "conftest.nl"
  4661. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4662. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4663. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4664. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4665. # Best one so far, save it but keep looking for a better one
  4666. ac_cv_path_EGREP="$ac_path_EGREP"
  4667. ac_path_EGREP_max=$ac_count
  4668. fi
  4669. # 10*(2^10) chars as input seems more than enough
  4670. test $ac_count -gt 10 && break
  4671. done
  4672. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4673. esac
  4674. $ac_path_EGREP_found && break 3
  4675. done
  4676. done
  4677. done
  4678. IFS=$as_save_IFS
  4679. if test -z "$ac_cv_path_EGREP"; then
  4680. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4681. fi
  4682. else
  4683. ac_cv_path_EGREP=$EGREP
  4684. fi
  4685. fi
  4686. fi
  4687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4688. $as_echo "$ac_cv_path_EGREP" >&6; }
  4689. EGREP="$ac_cv_path_EGREP"
  4690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4691. $as_echo_n "checking for fgrep... " >&6; }
  4692. if test "${ac_cv_path_FGREP+set}" = set; then :
  4693. $as_echo_n "(cached) " >&6
  4694. else
  4695. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4696. then ac_cv_path_FGREP="$GREP -F"
  4697. else
  4698. if test -z "$FGREP"; then
  4699. ac_path_FGREP_found=false
  4700. # Loop through the user's path and test for each of PROGNAME-LIST
  4701. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4702. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4703. do
  4704. IFS=$as_save_IFS
  4705. test -z "$as_dir" && as_dir=.
  4706. for ac_prog in fgrep; do
  4707. for ac_exec_ext in '' $ac_executable_extensions; do
  4708. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4709. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4710. # Check for GNU ac_path_FGREP and select it if it is found.
  4711. # Check for GNU $ac_path_FGREP
  4712. case `"$ac_path_FGREP" --version 2>&1` in
  4713. *GNU*)
  4714. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4715. *)
  4716. ac_count=0
  4717. $as_echo_n 0123456789 >"conftest.in"
  4718. while :
  4719. do
  4720. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4721. mv "conftest.tmp" "conftest.in"
  4722. cp "conftest.in" "conftest.nl"
  4723. $as_echo 'FGREP' >> "conftest.nl"
  4724. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4725. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4726. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4727. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4728. # Best one so far, save it but keep looking for a better one
  4729. ac_cv_path_FGREP="$ac_path_FGREP"
  4730. ac_path_FGREP_max=$ac_count
  4731. fi
  4732. # 10*(2^10) chars as input seems more than enough
  4733. test $ac_count -gt 10 && break
  4734. done
  4735. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4736. esac
  4737. $ac_path_FGREP_found && break 3
  4738. done
  4739. done
  4740. done
  4741. IFS=$as_save_IFS
  4742. if test -z "$ac_cv_path_FGREP"; then
  4743. as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4744. fi
  4745. else
  4746. ac_cv_path_FGREP=$FGREP
  4747. fi
  4748. fi
  4749. fi
  4750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4751. $as_echo "$ac_cv_path_FGREP" >&6; }
  4752. FGREP="$ac_cv_path_FGREP"
  4753. test -z "$GREP" && GREP=grep
  4754. # Check whether --with-gnu-ld was given.
  4755. if test "${with_gnu_ld+set}" = set; then :
  4756. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4757. else
  4758. with_gnu_ld=no
  4759. fi
  4760. ac_prog=ld
  4761. if test "$GCC" = yes; then
  4762. # Check if gcc -print-prog-name=ld gives a path.
  4763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4764. $as_echo_n "checking for ld used by $CC... " >&6; }
  4765. case $host in
  4766. *-*-mingw*)
  4767. # gcc leaves a trailing carriage return which upsets mingw
  4768. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4769. *)
  4770. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4771. esac
  4772. case $ac_prog in
  4773. # Accept absolute paths.
  4774. [\\/]* | ?:[\\/]*)
  4775. re_direlt='/[^/][^/]*/\.\./'
  4776. # Canonicalize the pathname of ld
  4777. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4778. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4779. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4780. done
  4781. test -z "$LD" && LD="$ac_prog"
  4782. ;;
  4783. "")
  4784. # If it fails, then pretend we aren't using GCC.
  4785. ac_prog=ld
  4786. ;;
  4787. *)
  4788. # If it is relative, then search for the first ld in PATH.
  4789. with_gnu_ld=unknown
  4790. ;;
  4791. esac
  4792. elif test "$with_gnu_ld" = yes; then
  4793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4794. $as_echo_n "checking for GNU ld... " >&6; }
  4795. else
  4796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4797. $as_echo_n "checking for non-GNU ld... " >&6; }
  4798. fi
  4799. if test "${lt_cv_path_LD+set}" = set; then :
  4800. $as_echo_n "(cached) " >&6
  4801. else
  4802. if test -z "$LD"; then
  4803. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4804. for ac_dir in $PATH; do
  4805. IFS="$lt_save_ifs"
  4806. test -z "$ac_dir" && ac_dir=.
  4807. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4808. lt_cv_path_LD="$ac_dir/$ac_prog"
  4809. # Check to see if the program is GNU ld. I'd rather use --version,
  4810. # but apparently some variants of GNU ld only accept -v.
  4811. # Break only if it was the GNU/non-GNU ld that we prefer.
  4812. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4813. *GNU* | *'with BFD'*)
  4814. test "$with_gnu_ld" != no && break
  4815. ;;
  4816. *)
  4817. test "$with_gnu_ld" != yes && break
  4818. ;;
  4819. esac
  4820. fi
  4821. done
  4822. IFS="$lt_save_ifs"
  4823. else
  4824. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4825. fi
  4826. fi
  4827. LD="$lt_cv_path_LD"
  4828. if test -n "$LD"; then
  4829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4830. $as_echo "$LD" >&6; }
  4831. else
  4832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4833. $as_echo "no" >&6; }
  4834. fi
  4835. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  4836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4837. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4838. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  4839. $as_echo_n "(cached) " >&6
  4840. else
  4841. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4842. case `$LD -v 2>&1 </dev/null` in
  4843. *GNU* | *'with BFD'*)
  4844. lt_cv_prog_gnu_ld=yes
  4845. ;;
  4846. *)
  4847. lt_cv_prog_gnu_ld=no
  4848. ;;
  4849. esac
  4850. fi
  4851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4852. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4853. with_gnu_ld=$lt_cv_prog_gnu_ld
  4854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4855. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4856. if test "${lt_cv_path_NM+set}" = set; then :
  4857. $as_echo_n "(cached) " >&6
  4858. else
  4859. if test -n "$NM"; then
  4860. # Let the user override the test.
  4861. lt_cv_path_NM="$NM"
  4862. else
  4863. lt_nm_to_check="${ac_tool_prefix}nm"
  4864. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4865. lt_nm_to_check="$lt_nm_to_check nm"
  4866. fi
  4867. for lt_tmp_nm in $lt_nm_to_check; do
  4868. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4869. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4870. IFS="$lt_save_ifs"
  4871. test -z "$ac_dir" && ac_dir=.
  4872. tmp_nm="$ac_dir/$lt_tmp_nm"
  4873. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4874. # Check to see if the nm accepts a BSD-compat flag.
  4875. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4876. # nm: unknown option "B" ignored
  4877. # Tru64's nm complains that /dev/null is an invalid object file
  4878. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4879. */dev/null* | *'Invalid file or object type'*)
  4880. lt_cv_path_NM="$tmp_nm -B"
  4881. break
  4882. ;;
  4883. *)
  4884. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4885. */dev/null*)
  4886. lt_cv_path_NM="$tmp_nm -p"
  4887. break
  4888. ;;
  4889. *)
  4890. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4891. continue # so that we can try to find one that supports BSD flags
  4892. ;;
  4893. esac
  4894. ;;
  4895. esac
  4896. fi
  4897. done
  4898. IFS="$lt_save_ifs"
  4899. done
  4900. : ${lt_cv_path_NM=no}
  4901. fi
  4902. fi
  4903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4904. $as_echo "$lt_cv_path_NM" >&6; }
  4905. if test "$lt_cv_path_NM" != "no"; then
  4906. NM="$lt_cv_path_NM"
  4907. else
  4908. # Didn't find any BSD compatible name lister, look for dumpbin.
  4909. if test -n "$DUMPBIN"; then :
  4910. # Let the user override the test.
  4911. else
  4912. if test -n "$ac_tool_prefix"; then
  4913. for ac_prog in dumpbin "link -dump"
  4914. do
  4915. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4916. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4918. $as_echo_n "checking for $ac_word... " >&6; }
  4919. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  4920. $as_echo_n "(cached) " >&6
  4921. else
  4922. if test -n "$DUMPBIN"; then
  4923. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4924. else
  4925. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4926. for as_dir in $PATH
  4927. do
  4928. IFS=$as_save_IFS
  4929. test -z "$as_dir" && as_dir=.
  4930. for ac_exec_ext in '' $ac_executable_extensions; do
  4931. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4932. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4933. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4934. break 2
  4935. fi
  4936. done
  4937. done
  4938. IFS=$as_save_IFS
  4939. fi
  4940. fi
  4941. DUMPBIN=$ac_cv_prog_DUMPBIN
  4942. if test -n "$DUMPBIN"; then
  4943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4944. $as_echo "$DUMPBIN" >&6; }
  4945. else
  4946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4947. $as_echo "no" >&6; }
  4948. fi
  4949. test -n "$DUMPBIN" && break
  4950. done
  4951. fi
  4952. if test -z "$DUMPBIN"; then
  4953. ac_ct_DUMPBIN=$DUMPBIN
  4954. for ac_prog in dumpbin "link -dump"
  4955. do
  4956. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4957. set dummy $ac_prog; ac_word=$2
  4958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4959. $as_echo_n "checking for $ac_word... " >&6; }
  4960. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  4961. $as_echo_n "(cached) " >&6
  4962. else
  4963. if test -n "$ac_ct_DUMPBIN"; then
  4964. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4965. else
  4966. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4967. for as_dir in $PATH
  4968. do
  4969. IFS=$as_save_IFS
  4970. test -z "$as_dir" && as_dir=.
  4971. for ac_exec_ext in '' $ac_executable_extensions; do
  4972. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4973. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4974. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4975. break 2
  4976. fi
  4977. done
  4978. done
  4979. IFS=$as_save_IFS
  4980. fi
  4981. fi
  4982. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4983. if test -n "$ac_ct_DUMPBIN"; then
  4984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4985. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4986. else
  4987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4988. $as_echo "no" >&6; }
  4989. fi
  4990. test -n "$ac_ct_DUMPBIN" && break
  4991. done
  4992. if test "x$ac_ct_DUMPBIN" = x; then
  4993. DUMPBIN=":"
  4994. else
  4995. case $cross_compiling:$ac_tool_warned in
  4996. yes:)
  4997. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4998. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4999. ac_tool_warned=yes ;;
  5000. esac
  5001. DUMPBIN=$ac_ct_DUMPBIN
  5002. fi
  5003. fi
  5004. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  5005. *COFF*)
  5006. DUMPBIN="$DUMPBIN -symbols"
  5007. ;;
  5008. *)
  5009. DUMPBIN=:
  5010. ;;
  5011. esac
  5012. fi
  5013. if test "$DUMPBIN" != ":"; then
  5014. NM="$DUMPBIN"
  5015. fi
  5016. fi
  5017. test -z "$NM" && NM=nm
  5018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5019. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5020. if test "${lt_cv_nm_interface+set}" = set; then :
  5021. $as_echo_n "(cached) " >&6
  5022. else
  5023. lt_cv_nm_interface="BSD nm"
  5024. echo "int some_variable = 0;" > conftest.$ac_ext
  5025. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5026. (eval "$ac_compile" 2>conftest.err)
  5027. cat conftest.err >&5
  5028. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5029. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5030. cat conftest.err >&5
  5031. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5032. cat conftest.out >&5
  5033. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5034. lt_cv_nm_interface="MS dumpbin"
  5035. fi
  5036. rm -f conftest*
  5037. fi
  5038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5039. $as_echo "$lt_cv_nm_interface" >&6; }
  5040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5041. $as_echo_n "checking whether ln -s works... " >&6; }
  5042. LN_S=$as_ln_s
  5043. if test "$LN_S" = "ln -s"; then
  5044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5045. $as_echo "yes" >&6; }
  5046. else
  5047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5048. $as_echo "no, using $LN_S" >&6; }
  5049. fi
  5050. # find the maximum length of command line arguments
  5051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5052. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5053. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  5054. $as_echo_n "(cached) " >&6
  5055. else
  5056. i=0
  5057. teststring="ABCD"
  5058. case $build_os in
  5059. msdosdjgpp*)
  5060. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5061. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5062. # during glob expansion). Even if it were fixed, the result of this
  5063. # check would be larger than it should be.
  5064. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5065. ;;
  5066. gnu*)
  5067. # Under GNU Hurd, this test is not required because there is
  5068. # no limit to the length of command line arguments.
  5069. # Libtool will interpret -1 as no limit whatsoever
  5070. lt_cv_sys_max_cmd_len=-1;
  5071. ;;
  5072. cygwin* | mingw* | cegcc*)
  5073. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5074. # about 5 minutes as the teststring grows exponentially.
  5075. # Worse, since 9x/ME are not pre-emptively multitasking,
  5076. # you end up with a "frozen" computer, even though with patience
  5077. # the test eventually succeeds (with a max line length of 256k).
  5078. # Instead, let's just punt: use the minimum linelength reported by
  5079. # all of the supported platforms: 8192 (on NT/2K/XP).
  5080. lt_cv_sys_max_cmd_len=8192;
  5081. ;;
  5082. mint*)
  5083. # On MiNT this can take a long time and run out of memory.
  5084. lt_cv_sys_max_cmd_len=8192;
  5085. ;;
  5086. amigaos*)
  5087. # On AmigaOS with pdksh, this test takes hours, literally.
  5088. # So we just punt and use a minimum line length of 8192.
  5089. lt_cv_sys_max_cmd_len=8192;
  5090. ;;
  5091. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5092. # This has been around since 386BSD, at least. Likely further.
  5093. if test -x /sbin/sysctl; then
  5094. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5095. elif test -x /usr/sbin/sysctl; then
  5096. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5097. else
  5098. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5099. fi
  5100. # And add a safety zone
  5101. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5102. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5103. ;;
  5104. interix*)
  5105. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5106. lt_cv_sys_max_cmd_len=196608
  5107. ;;
  5108. osf*)
  5109. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5110. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5111. # nice to cause kernel panics so lets avoid the loop below.
  5112. # First set a reasonable default.
  5113. lt_cv_sys_max_cmd_len=16384
  5114. #
  5115. if test -x /sbin/sysconfig; then
  5116. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5117. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5118. esac
  5119. fi
  5120. ;;
  5121. sco3.2v5*)
  5122. lt_cv_sys_max_cmd_len=102400
  5123. ;;
  5124. sysv5* | sco5v6* | sysv4.2uw2*)
  5125. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5126. if test -n "$kargmax"; then
  5127. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5128. else
  5129. lt_cv_sys_max_cmd_len=32768
  5130. fi
  5131. ;;
  5132. *)
  5133. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5134. if test -n "$lt_cv_sys_max_cmd_len"; then
  5135. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5136. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5137. else
  5138. # Make teststring a little bigger before we do anything with it.
  5139. # a 1K string should be a reasonable start.
  5140. for i in 1 2 3 4 5 6 7 8 ; do
  5141. teststring=$teststring$teststring
  5142. done
  5143. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5144. # If test is not a shell built-in, we'll probably end up computing a
  5145. # maximum length that is only half of the actual maximum length, but
  5146. # we can't tell.
  5147. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  5148. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5149. test $i != 17 # 1/2 MB should be enough
  5150. do
  5151. i=`expr $i + 1`
  5152. teststring=$teststring$teststring
  5153. done
  5154. # Only check the string length outside the loop.
  5155. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5156. teststring=
  5157. # Add a significant safety factor because C++ compilers can tack on
  5158. # massive amounts of additional arguments before passing them to the
  5159. # linker. It appears as though 1/2 is a usable value.
  5160. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5161. fi
  5162. ;;
  5163. esac
  5164. fi
  5165. if test -n $lt_cv_sys_max_cmd_len ; then
  5166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5167. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5168. else
  5169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5170. $as_echo "none" >&6; }
  5171. fi
  5172. max_cmd_len=$lt_cv_sys_max_cmd_len
  5173. : ${CP="cp -f"}
  5174. : ${MV="mv -f"}
  5175. : ${RM="rm -f"}
  5176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5177. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5178. # Try some XSI features
  5179. xsi_shell=no
  5180. ( _lt_dummy="a/b/c"
  5181. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  5182. = c,a/b,, \
  5183. && eval 'test $(( 1 + 1 )) -eq 2 \
  5184. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5185. && xsi_shell=yes
  5186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5187. $as_echo "$xsi_shell" >&6; }
  5188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5189. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5190. lt_shell_append=no
  5191. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5192. >/dev/null 2>&1 \
  5193. && lt_shell_append=yes
  5194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5195. $as_echo "$lt_shell_append" >&6; }
  5196. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5197. lt_unset=unset
  5198. else
  5199. lt_unset=false
  5200. fi
  5201. # test EBCDIC or ASCII
  5202. case `echo X|tr X '\101'` in
  5203. A) # ASCII based system
  5204. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5205. lt_SP2NL='tr \040 \012'
  5206. lt_NL2SP='tr \015\012 \040\040'
  5207. ;;
  5208. *) # EBCDIC based system
  5209. lt_SP2NL='tr \100 \n'
  5210. lt_NL2SP='tr \r\n \100\100'
  5211. ;;
  5212. esac
  5213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5214. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5215. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  5216. $as_echo_n "(cached) " >&6
  5217. else
  5218. lt_cv_ld_reload_flag='-r'
  5219. fi
  5220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5221. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5222. reload_flag=$lt_cv_ld_reload_flag
  5223. case $reload_flag in
  5224. "" | " "*) ;;
  5225. *) reload_flag=" $reload_flag" ;;
  5226. esac
  5227. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5228. case $host_os in
  5229. darwin*)
  5230. if test "$GCC" = yes; then
  5231. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5232. else
  5233. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5234. fi
  5235. ;;
  5236. esac
  5237. if test -n "$ac_tool_prefix"; then
  5238. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5239. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5241. $as_echo_n "checking for $ac_word... " >&6; }
  5242. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  5243. $as_echo_n "(cached) " >&6
  5244. else
  5245. if test -n "$OBJDUMP"; then
  5246. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5247. else
  5248. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5249. for as_dir in $PATH
  5250. do
  5251. IFS=$as_save_IFS
  5252. test -z "$as_dir" && as_dir=.
  5253. for ac_exec_ext in '' $ac_executable_extensions; do
  5254. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5255. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5256. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5257. break 2
  5258. fi
  5259. done
  5260. done
  5261. IFS=$as_save_IFS
  5262. fi
  5263. fi
  5264. OBJDUMP=$ac_cv_prog_OBJDUMP
  5265. if test -n "$OBJDUMP"; then
  5266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5267. $as_echo "$OBJDUMP" >&6; }
  5268. else
  5269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5270. $as_echo "no" >&6; }
  5271. fi
  5272. fi
  5273. if test -z "$ac_cv_prog_OBJDUMP"; then
  5274. ac_ct_OBJDUMP=$OBJDUMP
  5275. # Extract the first word of "objdump", so it can be a program name with args.
  5276. set dummy objdump; ac_word=$2
  5277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5278. $as_echo_n "checking for $ac_word... " >&6; }
  5279. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  5280. $as_echo_n "(cached) " >&6
  5281. else
  5282. if test -n "$ac_ct_OBJDUMP"; then
  5283. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5284. else
  5285. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5286. for as_dir in $PATH
  5287. do
  5288. IFS=$as_save_IFS
  5289. test -z "$as_dir" && as_dir=.
  5290. for ac_exec_ext in '' $ac_executable_extensions; do
  5291. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5292. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5293. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5294. break 2
  5295. fi
  5296. done
  5297. done
  5298. IFS=$as_save_IFS
  5299. fi
  5300. fi
  5301. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5302. if test -n "$ac_ct_OBJDUMP"; then
  5303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5304. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5305. else
  5306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5307. $as_echo "no" >&6; }
  5308. fi
  5309. if test "x$ac_ct_OBJDUMP" = x; then
  5310. OBJDUMP="false"
  5311. else
  5312. case $cross_compiling:$ac_tool_warned in
  5313. yes:)
  5314. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5315. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5316. ac_tool_warned=yes ;;
  5317. esac
  5318. OBJDUMP=$ac_ct_OBJDUMP
  5319. fi
  5320. else
  5321. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5322. fi
  5323. test -z "$OBJDUMP" && OBJDUMP=objdump
  5324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5325. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5326. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  5327. $as_echo_n "(cached) " >&6
  5328. else
  5329. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5330. lt_cv_file_magic_test_file=
  5331. lt_cv_deplibs_check_method='unknown'
  5332. # Need to set the preceding variable on all platforms that support
  5333. # interlibrary dependencies.
  5334. # 'none' -- dependencies not supported.
  5335. # `unknown' -- same as none, but documents that we really don't know.
  5336. # 'pass_all' -- all dependencies passed with no checks.
  5337. # 'test_compile' -- check by making test program.
  5338. # 'file_magic [[regex]]' -- check by looking for files in library path
  5339. # which responds to the $file_magic_cmd with a given extended regex.
  5340. # If you have `file' or equivalent on your system and you're not sure
  5341. # whether `pass_all' will *always* work, you probably want this one.
  5342. case $host_os in
  5343. aix[4-9]*)
  5344. lt_cv_deplibs_check_method=pass_all
  5345. ;;
  5346. beos*)
  5347. lt_cv_deplibs_check_method=pass_all
  5348. ;;
  5349. bsdi[45]*)
  5350. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5351. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5352. lt_cv_file_magic_test_file=/shlib/libc.so
  5353. ;;
  5354. cygwin*)
  5355. # func_win32_libid is a shell function defined in ltmain.sh
  5356. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5357. lt_cv_file_magic_cmd='func_win32_libid'
  5358. ;;
  5359. mingw* | pw32*)
  5360. # Base MSYS/MinGW do not provide the 'file' command needed by
  5361. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5362. # unless we find 'file', for example because we are cross-compiling.
  5363. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5364. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5365. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5366. lt_cv_file_magic_cmd='func_win32_libid'
  5367. else
  5368. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5369. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5370. fi
  5371. ;;
  5372. cegcc*)
  5373. # use the weaker test based on 'objdump'. See mingw*.
  5374. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5375. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5376. ;;
  5377. darwin* | rhapsody*)
  5378. lt_cv_deplibs_check_method=pass_all
  5379. ;;
  5380. freebsd* | dragonfly*)
  5381. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5382. case $host_cpu in
  5383. i*86 )
  5384. # Not sure whether the presence of OpenBSD here was a mistake.
  5385. # Let's accept both of them until this is cleared up.
  5386. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5387. lt_cv_file_magic_cmd=/usr/bin/file
  5388. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5389. ;;
  5390. esac
  5391. else
  5392. lt_cv_deplibs_check_method=pass_all
  5393. fi
  5394. ;;
  5395. gnu*)
  5396. lt_cv_deplibs_check_method=pass_all
  5397. ;;
  5398. haiku*)
  5399. lt_cv_deplibs_check_method=pass_all
  5400. ;;
  5401. hpux10.20* | hpux11*)
  5402. lt_cv_file_magic_cmd=/usr/bin/file
  5403. case $host_cpu in
  5404. ia64*)
  5405. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5406. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5407. ;;
  5408. hppa*64*)
  5409. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  5410. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5411. ;;
  5412. *)
  5413. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5414. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5415. ;;
  5416. esac
  5417. ;;
  5418. interix[3-9]*)
  5419. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5420. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5421. ;;
  5422. irix5* | irix6* | nonstopux*)
  5423. case $LD in
  5424. *-32|*"-32 ") libmagic=32-bit;;
  5425. *-n32|*"-n32 ") libmagic=N32;;
  5426. *-64|*"-64 ") libmagic=64-bit;;
  5427. *) libmagic=never-match;;
  5428. esac
  5429. lt_cv_deplibs_check_method=pass_all
  5430. ;;
  5431. # This must be Linux ELF.
  5432. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5433. lt_cv_deplibs_check_method=pass_all
  5434. ;;
  5435. netbsd*)
  5436. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5437. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5438. else
  5439. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5440. fi
  5441. ;;
  5442. newos6*)
  5443. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5444. lt_cv_file_magic_cmd=/usr/bin/file
  5445. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5446. ;;
  5447. *nto* | *qnx*)
  5448. lt_cv_deplibs_check_method=pass_all
  5449. ;;
  5450. openbsd*)
  5451. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5452. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5453. else
  5454. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5455. fi
  5456. ;;
  5457. osf3* | osf4* | osf5*)
  5458. lt_cv_deplibs_check_method=pass_all
  5459. ;;
  5460. rdos*)
  5461. lt_cv_deplibs_check_method=pass_all
  5462. ;;
  5463. solaris*)
  5464. lt_cv_deplibs_check_method=pass_all
  5465. ;;
  5466. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5467. lt_cv_deplibs_check_method=pass_all
  5468. ;;
  5469. sysv4 | sysv4.3*)
  5470. case $host_vendor in
  5471. motorola)
  5472. 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]'
  5473. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5474. ;;
  5475. ncr)
  5476. lt_cv_deplibs_check_method=pass_all
  5477. ;;
  5478. sequent)
  5479. lt_cv_file_magic_cmd='/bin/file'
  5480. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5481. ;;
  5482. sni)
  5483. lt_cv_file_magic_cmd='/bin/file'
  5484. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5485. lt_cv_file_magic_test_file=/lib/libc.so
  5486. ;;
  5487. siemens)
  5488. lt_cv_deplibs_check_method=pass_all
  5489. ;;
  5490. pc)
  5491. lt_cv_deplibs_check_method=pass_all
  5492. ;;
  5493. esac
  5494. ;;
  5495. tpf*)
  5496. lt_cv_deplibs_check_method=pass_all
  5497. ;;
  5498. esac
  5499. fi
  5500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5501. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5502. file_magic_cmd=$lt_cv_file_magic_cmd
  5503. deplibs_check_method=$lt_cv_deplibs_check_method
  5504. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5505. if test -n "$ac_tool_prefix"; then
  5506. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5507. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5509. $as_echo_n "checking for $ac_word... " >&6; }
  5510. if test "${ac_cv_prog_AR+set}" = set; then :
  5511. $as_echo_n "(cached) " >&6
  5512. else
  5513. if test -n "$AR"; then
  5514. ac_cv_prog_AR="$AR" # Let the user override the test.
  5515. else
  5516. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5517. for as_dir in $PATH
  5518. do
  5519. IFS=$as_save_IFS
  5520. test -z "$as_dir" && as_dir=.
  5521. for ac_exec_ext in '' $ac_executable_extensions; do
  5522. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5523. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5524. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5525. break 2
  5526. fi
  5527. done
  5528. done
  5529. IFS=$as_save_IFS
  5530. fi
  5531. fi
  5532. AR=$ac_cv_prog_AR
  5533. if test -n "$AR"; then
  5534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5535. $as_echo "$AR" >&6; }
  5536. else
  5537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5538. $as_echo "no" >&6; }
  5539. fi
  5540. fi
  5541. if test -z "$ac_cv_prog_AR"; then
  5542. ac_ct_AR=$AR
  5543. # Extract the first word of "ar", so it can be a program name with args.
  5544. set dummy ar; ac_word=$2
  5545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5546. $as_echo_n "checking for $ac_word... " >&6; }
  5547. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  5548. $as_echo_n "(cached) " >&6
  5549. else
  5550. if test -n "$ac_ct_AR"; then
  5551. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5552. else
  5553. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5554. for as_dir in $PATH
  5555. do
  5556. IFS=$as_save_IFS
  5557. test -z "$as_dir" && as_dir=.
  5558. for ac_exec_ext in '' $ac_executable_extensions; do
  5559. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5560. ac_cv_prog_ac_ct_AR="ar"
  5561. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5562. break 2
  5563. fi
  5564. done
  5565. done
  5566. IFS=$as_save_IFS
  5567. fi
  5568. fi
  5569. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5570. if test -n "$ac_ct_AR"; then
  5571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5572. $as_echo "$ac_ct_AR" >&6; }
  5573. else
  5574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5575. $as_echo "no" >&6; }
  5576. fi
  5577. if test "x$ac_ct_AR" = x; then
  5578. AR="false"
  5579. else
  5580. case $cross_compiling:$ac_tool_warned in
  5581. yes:)
  5582. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5583. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5584. ac_tool_warned=yes ;;
  5585. esac
  5586. AR=$ac_ct_AR
  5587. fi
  5588. else
  5589. AR="$ac_cv_prog_AR"
  5590. fi
  5591. test -z "$AR" && AR=ar
  5592. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5593. if test -n "$ac_tool_prefix"; then
  5594. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5595. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5597. $as_echo_n "checking for $ac_word... " >&6; }
  5598. if test "${ac_cv_prog_STRIP+set}" = set; then :
  5599. $as_echo_n "(cached) " >&6
  5600. else
  5601. if test -n "$STRIP"; then
  5602. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5603. else
  5604. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5605. for as_dir in $PATH
  5606. do
  5607. IFS=$as_save_IFS
  5608. test -z "$as_dir" && as_dir=.
  5609. for ac_exec_ext in '' $ac_executable_extensions; do
  5610. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5611. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5612. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5613. break 2
  5614. fi
  5615. done
  5616. done
  5617. IFS=$as_save_IFS
  5618. fi
  5619. fi
  5620. STRIP=$ac_cv_prog_STRIP
  5621. if test -n "$STRIP"; then
  5622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5623. $as_echo "$STRIP" >&6; }
  5624. else
  5625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5626. $as_echo "no" >&6; }
  5627. fi
  5628. fi
  5629. if test -z "$ac_cv_prog_STRIP"; then
  5630. ac_ct_STRIP=$STRIP
  5631. # Extract the first word of "strip", so it can be a program name with args.
  5632. set dummy strip; ac_word=$2
  5633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5634. $as_echo_n "checking for $ac_word... " >&6; }
  5635. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  5636. $as_echo_n "(cached) " >&6
  5637. else
  5638. if test -n "$ac_ct_STRIP"; then
  5639. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5640. else
  5641. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5642. for as_dir in $PATH
  5643. do
  5644. IFS=$as_save_IFS
  5645. test -z "$as_dir" && as_dir=.
  5646. for ac_exec_ext in '' $ac_executable_extensions; do
  5647. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5648. ac_cv_prog_ac_ct_STRIP="strip"
  5649. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5650. break 2
  5651. fi
  5652. done
  5653. done
  5654. IFS=$as_save_IFS
  5655. fi
  5656. fi
  5657. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5658. if test -n "$ac_ct_STRIP"; then
  5659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5660. $as_echo "$ac_ct_STRIP" >&6; }
  5661. else
  5662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5663. $as_echo "no" >&6; }
  5664. fi
  5665. if test "x$ac_ct_STRIP" = x; then
  5666. STRIP=":"
  5667. else
  5668. case $cross_compiling:$ac_tool_warned in
  5669. yes:)
  5670. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5671. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5672. ac_tool_warned=yes ;;
  5673. esac
  5674. STRIP=$ac_ct_STRIP
  5675. fi
  5676. else
  5677. STRIP="$ac_cv_prog_STRIP"
  5678. fi
  5679. test -z "$STRIP" && STRIP=:
  5680. if test -n "$ac_tool_prefix"; then
  5681. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5682. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5684. $as_echo_n "checking for $ac_word... " >&6; }
  5685. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  5686. $as_echo_n "(cached) " >&6
  5687. else
  5688. if test -n "$RANLIB"; then
  5689. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5690. else
  5691. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5692. for as_dir in $PATH
  5693. do
  5694. IFS=$as_save_IFS
  5695. test -z "$as_dir" && as_dir=.
  5696. for ac_exec_ext in '' $ac_executable_extensions; do
  5697. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5698. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5699. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5700. break 2
  5701. fi
  5702. done
  5703. done
  5704. IFS=$as_save_IFS
  5705. fi
  5706. fi
  5707. RANLIB=$ac_cv_prog_RANLIB
  5708. if test -n "$RANLIB"; then
  5709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5710. $as_echo "$RANLIB" >&6; }
  5711. else
  5712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5713. $as_echo "no" >&6; }
  5714. fi
  5715. fi
  5716. if test -z "$ac_cv_prog_RANLIB"; then
  5717. ac_ct_RANLIB=$RANLIB
  5718. # Extract the first word of "ranlib", so it can be a program name with args.
  5719. set dummy ranlib; ac_word=$2
  5720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5721. $as_echo_n "checking for $ac_word... " >&6; }
  5722. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  5723. $as_echo_n "(cached) " >&6
  5724. else
  5725. if test -n "$ac_ct_RANLIB"; then
  5726. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5727. else
  5728. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5729. for as_dir in $PATH
  5730. do
  5731. IFS=$as_save_IFS
  5732. test -z "$as_dir" && as_dir=.
  5733. for ac_exec_ext in '' $ac_executable_extensions; do
  5734. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5735. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5736. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5737. break 2
  5738. fi
  5739. done
  5740. done
  5741. IFS=$as_save_IFS
  5742. fi
  5743. fi
  5744. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5745. if test -n "$ac_ct_RANLIB"; then
  5746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5747. $as_echo "$ac_ct_RANLIB" >&6; }
  5748. else
  5749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5750. $as_echo "no" >&6; }
  5751. fi
  5752. if test "x$ac_ct_RANLIB" = x; then
  5753. RANLIB=":"
  5754. else
  5755. case $cross_compiling:$ac_tool_warned in
  5756. yes:)
  5757. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5758. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5759. ac_tool_warned=yes ;;
  5760. esac
  5761. RANLIB=$ac_ct_RANLIB
  5762. fi
  5763. else
  5764. RANLIB="$ac_cv_prog_RANLIB"
  5765. fi
  5766. test -z "$RANLIB" && RANLIB=:
  5767. # Determine commands to create old-style static archives.
  5768. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5769. old_postinstall_cmds='chmod 644 $oldlib'
  5770. old_postuninstall_cmds=
  5771. if test -n "$RANLIB"; then
  5772. case $host_os in
  5773. openbsd*)
  5774. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5775. ;;
  5776. *)
  5777. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5778. ;;
  5779. esac
  5780. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5781. fi
  5782. case $host_os in
  5783. darwin*)
  5784. lock_old_archive_extraction=yes ;;
  5785. *)
  5786. lock_old_archive_extraction=no ;;
  5787. esac
  5788. # If no C compiler was specified, use CC.
  5789. LTCC=${LTCC-"$CC"}
  5790. # If no C compiler flags were specified, use CFLAGS.
  5791. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5792. # Allow CC to be a program name with arguments.
  5793. compiler=$CC
  5794. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5796. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5797. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  5798. $as_echo_n "(cached) " >&6
  5799. else
  5800. # These are sane defaults that work on at least a few old systems.
  5801. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5802. # Character class describing NM global symbol codes.
  5803. symcode='[BCDEGRST]'
  5804. # Regexp to match symbols that can be accessed directly from C.
  5805. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5806. # Define system-specific variables.
  5807. case $host_os in
  5808. aix*)
  5809. symcode='[BCDT]'
  5810. ;;
  5811. cygwin* | mingw* | pw32* | cegcc*)
  5812. symcode='[ABCDGISTW]'
  5813. ;;
  5814. hpux*)
  5815. if test "$host_cpu" = ia64; then
  5816. symcode='[ABCDEGRST]'
  5817. fi
  5818. ;;
  5819. irix* | nonstopux*)
  5820. symcode='[BCDEGRST]'
  5821. ;;
  5822. osf*)
  5823. symcode='[BCDEGQRST]'
  5824. ;;
  5825. solaris*)
  5826. symcode='[BDRT]'
  5827. ;;
  5828. sco3.2v5*)
  5829. symcode='[DT]'
  5830. ;;
  5831. sysv4.2uw2*)
  5832. symcode='[DT]'
  5833. ;;
  5834. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5835. symcode='[ABDT]'
  5836. ;;
  5837. sysv4)
  5838. symcode='[DFNSTU]'
  5839. ;;
  5840. esac
  5841. # If we're using GNU nm, then use its standard symbol codes.
  5842. case `$NM -V 2>&1` in
  5843. *GNU* | *'with BFD'*)
  5844. symcode='[ABCDGIRSTW]' ;;
  5845. esac
  5846. # Transform an extracted symbol line into a proper C declaration.
  5847. # Some systems (esp. on ia64) link data and code symbols differently,
  5848. # so use this general approach.
  5849. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5850. # Transform an extracted symbol line into symbol name and symbol address
  5851. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5852. 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'"
  5853. # Handle CRLF in mingw tool chain
  5854. opt_cr=
  5855. case $build_os in
  5856. mingw*)
  5857. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5858. ;;
  5859. esac
  5860. # Try without a prefix underscore, then with it.
  5861. for ac_symprfx in "" "_"; do
  5862. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5863. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5864. # Write the raw and C identifiers.
  5865. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5866. # Fake it for dumpbin and say T for any non-static function
  5867. # and D for any global variable.
  5868. # Also find C++ and __fastcall symbols from MSVC++,
  5869. # which start with @ or ?.
  5870. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5871. " {last_section=section; section=\$ 3};"\
  5872. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5873. " \$ 0!~/External *\|/{next};"\
  5874. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5875. " {if(hide[section]) next};"\
  5876. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5877. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5878. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5879. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5880. " ' prfx=^$ac_symprfx"
  5881. else
  5882. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5883. fi
  5884. # Check to see that the pipe works correctly.
  5885. pipe_works=no
  5886. rm -f conftest*
  5887. cat > conftest.$ac_ext <<_LT_EOF
  5888. #ifdef __cplusplus
  5889. extern "C" {
  5890. #endif
  5891. char nm_test_var;
  5892. void nm_test_func(void);
  5893. void nm_test_func(void){}
  5894. #ifdef __cplusplus
  5895. }
  5896. #endif
  5897. int main(){nm_test_var='a';nm_test_func();return(0);}
  5898. _LT_EOF
  5899. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5900. (eval $ac_compile) 2>&5
  5901. ac_status=$?
  5902. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5903. test $ac_status = 0; }; then
  5904. # Now try to grab the symbols.
  5905. nlist=conftest.nm
  5906. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5907. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5908. ac_status=$?
  5909. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5910. test $ac_status = 0; } && test -s "$nlist"; then
  5911. # Try sorting and uniquifying the output.
  5912. if sort "$nlist" | uniq > "$nlist"T; then
  5913. mv -f "$nlist"T "$nlist"
  5914. else
  5915. rm -f "$nlist"T
  5916. fi
  5917. # Make sure that we snagged all the symbols we need.
  5918. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5919. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5920. cat <<_LT_EOF > conftest.$ac_ext
  5921. #ifdef __cplusplus
  5922. extern "C" {
  5923. #endif
  5924. _LT_EOF
  5925. # Now generate the symbol file.
  5926. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5927. cat <<_LT_EOF >> conftest.$ac_ext
  5928. /* The mapping between symbol names and symbols. */
  5929. const struct {
  5930. const char *name;
  5931. void *address;
  5932. }
  5933. lt__PROGRAM__LTX_preloaded_symbols[] =
  5934. {
  5935. { "@PROGRAM@", (void *) 0 },
  5936. _LT_EOF
  5937. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5938. cat <<\_LT_EOF >> conftest.$ac_ext
  5939. {0, (void *) 0}
  5940. };
  5941. /* This works around a problem in FreeBSD linker */
  5942. #ifdef FREEBSD_WORKAROUND
  5943. static const void *lt_preloaded_setup() {
  5944. return lt__PROGRAM__LTX_preloaded_symbols;
  5945. }
  5946. #endif
  5947. #ifdef __cplusplus
  5948. }
  5949. #endif
  5950. _LT_EOF
  5951. # Now try linking the two files.
  5952. mv conftest.$ac_objext conftstm.$ac_objext
  5953. lt_save_LIBS="$LIBS"
  5954. lt_save_CFLAGS="$CFLAGS"
  5955. LIBS="conftstm.$ac_objext"
  5956. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5957. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5958. (eval $ac_link) 2>&5
  5959. ac_status=$?
  5960. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5961. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5962. pipe_works=yes
  5963. fi
  5964. LIBS="$lt_save_LIBS"
  5965. CFLAGS="$lt_save_CFLAGS"
  5966. else
  5967. echo "cannot find nm_test_func in $nlist" >&5
  5968. fi
  5969. else
  5970. echo "cannot find nm_test_var in $nlist" >&5
  5971. fi
  5972. else
  5973. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5974. fi
  5975. else
  5976. echo "$progname: failed program was:" >&5
  5977. cat conftest.$ac_ext >&5
  5978. fi
  5979. rm -rf conftest* conftst*
  5980. # Do not use the global_symbol_pipe unless it works.
  5981. if test "$pipe_works" = yes; then
  5982. break
  5983. else
  5984. lt_cv_sys_global_symbol_pipe=
  5985. fi
  5986. done
  5987. fi
  5988. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5989. lt_cv_sys_global_symbol_to_cdecl=
  5990. fi
  5991. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5993. $as_echo "failed" >&6; }
  5994. else
  5995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5996. $as_echo "ok" >&6; }
  5997. fi
  5998. # Check whether --enable-libtool-lock was given.
  5999. if test "${enable_libtool_lock+set}" = set; then :
  6000. enableval=$enable_libtool_lock;
  6001. fi
  6002. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6003. # Some flags need to be propagated to the compiler or linker for good
  6004. # libtool support.
  6005. case $host in
  6006. ia64-*-hpux*)
  6007. # Find out which ABI we are using.
  6008. echo 'int i;' > conftest.$ac_ext
  6009. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6010. (eval $ac_compile) 2>&5
  6011. ac_status=$?
  6012. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6013. test $ac_status = 0; }; then
  6014. case `/usr/bin/file conftest.$ac_objext` in
  6015. *ELF-32*)
  6016. HPUX_IA64_MODE="32"
  6017. ;;
  6018. *ELF-64*)
  6019. HPUX_IA64_MODE="64"
  6020. ;;
  6021. esac
  6022. fi
  6023. rm -rf conftest*
  6024. ;;
  6025. *-*-irix6*)
  6026. # Find out which ABI we are using.
  6027. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6028. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6029. (eval $ac_compile) 2>&5
  6030. ac_status=$?
  6031. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6032. test $ac_status = 0; }; then
  6033. if test "$lt_cv_prog_gnu_ld" = yes; then
  6034. case `/usr/bin/file conftest.$ac_objext` in
  6035. *32-bit*)
  6036. LD="${LD-ld} -melf32bsmip"
  6037. ;;
  6038. *N32*)
  6039. LD="${LD-ld} -melf32bmipn32"
  6040. ;;
  6041. *64-bit*)
  6042. LD="${LD-ld} -melf64bmip"
  6043. ;;
  6044. esac
  6045. else
  6046. case `/usr/bin/file conftest.$ac_objext` in
  6047. *32-bit*)
  6048. LD="${LD-ld} -32"
  6049. ;;
  6050. *N32*)
  6051. LD="${LD-ld} -n32"
  6052. ;;
  6053. *64-bit*)
  6054. LD="${LD-ld} -64"
  6055. ;;
  6056. esac
  6057. fi
  6058. fi
  6059. rm -rf conftest*
  6060. ;;
  6061. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6062. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6063. # Find out which ABI we are using.
  6064. echo 'int i;' > conftest.$ac_ext
  6065. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6066. (eval $ac_compile) 2>&5
  6067. ac_status=$?
  6068. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6069. test $ac_status = 0; }; then
  6070. case `/usr/bin/file conftest.o` in
  6071. *32-bit*)
  6072. case $host in
  6073. x86_64-*kfreebsd*-gnu)
  6074. LD="${LD-ld} -m elf_i386_fbsd"
  6075. ;;
  6076. x86_64-*linux*)
  6077. case `/usr/bin/file conftest.o` in
  6078. *x86-64*)
  6079. LD="${LD-ld} -m elf32_x86_64"
  6080. ;;
  6081. *)
  6082. LD="${LD-ld} -m elf_i386"
  6083. ;;
  6084. esac
  6085. ;;
  6086. powerpc64le-*linux*)
  6087. LD="${LD-ld} -m elf32lppclinux"
  6088. ;;
  6089. powerpc64-*linux*)
  6090. LD="${LD-ld} -m elf32ppclinux"
  6091. ;;
  6092. s390x-*linux*)
  6093. LD="${LD-ld} -m elf_s390"
  6094. ;;
  6095. sparc64-*linux*)
  6096. LD="${LD-ld} -m elf32_sparc"
  6097. ;;
  6098. esac
  6099. ;;
  6100. *64-bit*)
  6101. case $host in
  6102. x86_64-*kfreebsd*-gnu)
  6103. LD="${LD-ld} -m elf_x86_64_fbsd"
  6104. ;;
  6105. x86_64-*linux*)
  6106. LD="${LD-ld} -m elf_x86_64"
  6107. ;;
  6108. powerpcle-*linux*)
  6109. LD="${LD-ld} -m elf64lppc"
  6110. ;;
  6111. powerpc-*linux*)
  6112. LD="${LD-ld} -m elf64ppc"
  6113. ;;
  6114. s390*-*linux*|s390*-*tpf*)
  6115. LD="${LD-ld} -m elf64_s390"
  6116. ;;
  6117. sparc*-*linux*)
  6118. LD="${LD-ld} -m elf64_sparc"
  6119. ;;
  6120. esac
  6121. ;;
  6122. esac
  6123. fi
  6124. rm -rf conftest*
  6125. ;;
  6126. *-*-sco3.2v5*)
  6127. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6128. SAVE_CFLAGS="$CFLAGS"
  6129. CFLAGS="$CFLAGS -belf"
  6130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6131. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6132. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  6133. $as_echo_n "(cached) " >&6
  6134. else
  6135. ac_ext=c
  6136. ac_cpp='$CPP $CPPFLAGS'
  6137. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6138. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6139. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6140. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6141. /* end confdefs.h. */
  6142. int
  6143. main ()
  6144. {
  6145. ;
  6146. return 0;
  6147. }
  6148. _ACEOF
  6149. if ac_fn_c_try_link "$LINENO"; then :
  6150. lt_cv_cc_needs_belf=yes
  6151. else
  6152. lt_cv_cc_needs_belf=no
  6153. fi
  6154. rm -f core conftest.err conftest.$ac_objext \
  6155. conftest$ac_exeext conftest.$ac_ext
  6156. ac_ext=c
  6157. ac_cpp='$CPP $CPPFLAGS'
  6158. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6159. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6160. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6161. fi
  6162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6163. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6164. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6165. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6166. CFLAGS="$SAVE_CFLAGS"
  6167. fi
  6168. ;;
  6169. sparc*-*solaris*)
  6170. # Find out which ABI we are using.
  6171. echo 'int i;' > conftest.$ac_ext
  6172. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6173. (eval $ac_compile) 2>&5
  6174. ac_status=$?
  6175. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6176. test $ac_status = 0; }; then
  6177. case `/usr/bin/file conftest.o` in
  6178. *64-bit*)
  6179. case $lt_cv_prog_gnu_ld in
  6180. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6181. *)
  6182. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6183. LD="${LD-ld} -64"
  6184. fi
  6185. ;;
  6186. esac
  6187. ;;
  6188. esac
  6189. fi
  6190. rm -rf conftest*
  6191. ;;
  6192. esac
  6193. need_locks="$enable_libtool_lock"
  6194. case $host_os in
  6195. rhapsody* | darwin*)
  6196. if test -n "$ac_tool_prefix"; then
  6197. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6198. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6200. $as_echo_n "checking for $ac_word... " >&6; }
  6201. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  6202. $as_echo_n "(cached) " >&6
  6203. else
  6204. if test -n "$DSYMUTIL"; then
  6205. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6206. else
  6207. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6208. for as_dir in $PATH
  6209. do
  6210. IFS=$as_save_IFS
  6211. test -z "$as_dir" && as_dir=.
  6212. for ac_exec_ext in '' $ac_executable_extensions; do
  6213. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6214. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6215. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6216. break 2
  6217. fi
  6218. done
  6219. done
  6220. IFS=$as_save_IFS
  6221. fi
  6222. fi
  6223. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6224. if test -n "$DSYMUTIL"; then
  6225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6226. $as_echo "$DSYMUTIL" >&6; }
  6227. else
  6228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6229. $as_echo "no" >&6; }
  6230. fi
  6231. fi
  6232. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6233. ac_ct_DSYMUTIL=$DSYMUTIL
  6234. # Extract the first word of "dsymutil", so it can be a program name with args.
  6235. set dummy dsymutil; ac_word=$2
  6236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6237. $as_echo_n "checking for $ac_word... " >&6; }
  6238. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  6239. $as_echo_n "(cached) " >&6
  6240. else
  6241. if test -n "$ac_ct_DSYMUTIL"; then
  6242. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6243. else
  6244. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6245. for as_dir in $PATH
  6246. do
  6247. IFS=$as_save_IFS
  6248. test -z "$as_dir" && as_dir=.
  6249. for ac_exec_ext in '' $ac_executable_extensions; do
  6250. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6251. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6252. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6253. break 2
  6254. fi
  6255. done
  6256. done
  6257. IFS=$as_save_IFS
  6258. fi
  6259. fi
  6260. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6261. if test -n "$ac_ct_DSYMUTIL"; then
  6262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6263. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6264. else
  6265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6266. $as_echo "no" >&6; }
  6267. fi
  6268. if test "x$ac_ct_DSYMUTIL" = x; then
  6269. DSYMUTIL=":"
  6270. else
  6271. case $cross_compiling:$ac_tool_warned in
  6272. yes:)
  6273. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6274. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6275. ac_tool_warned=yes ;;
  6276. esac
  6277. DSYMUTIL=$ac_ct_DSYMUTIL
  6278. fi
  6279. else
  6280. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6281. fi
  6282. if test -n "$ac_tool_prefix"; then
  6283. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6284. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6286. $as_echo_n "checking for $ac_word... " >&6; }
  6287. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  6288. $as_echo_n "(cached) " >&6
  6289. else
  6290. if test -n "$NMEDIT"; then
  6291. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6292. else
  6293. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6294. for as_dir in $PATH
  6295. do
  6296. IFS=$as_save_IFS
  6297. test -z "$as_dir" && as_dir=.
  6298. for ac_exec_ext in '' $ac_executable_extensions; do
  6299. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6300. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6301. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6302. break 2
  6303. fi
  6304. done
  6305. done
  6306. IFS=$as_save_IFS
  6307. fi
  6308. fi
  6309. NMEDIT=$ac_cv_prog_NMEDIT
  6310. if test -n "$NMEDIT"; then
  6311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6312. $as_echo "$NMEDIT" >&6; }
  6313. else
  6314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6315. $as_echo "no" >&6; }
  6316. fi
  6317. fi
  6318. if test -z "$ac_cv_prog_NMEDIT"; then
  6319. ac_ct_NMEDIT=$NMEDIT
  6320. # Extract the first word of "nmedit", so it can be a program name with args.
  6321. set dummy nmedit; ac_word=$2
  6322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6323. $as_echo_n "checking for $ac_word... " >&6; }
  6324. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  6325. $as_echo_n "(cached) " >&6
  6326. else
  6327. if test -n "$ac_ct_NMEDIT"; then
  6328. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6329. else
  6330. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6331. for as_dir in $PATH
  6332. do
  6333. IFS=$as_save_IFS
  6334. test -z "$as_dir" && as_dir=.
  6335. for ac_exec_ext in '' $ac_executable_extensions; do
  6336. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6337. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6338. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6339. break 2
  6340. fi
  6341. done
  6342. done
  6343. IFS=$as_save_IFS
  6344. fi
  6345. fi
  6346. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6347. if test -n "$ac_ct_NMEDIT"; then
  6348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6349. $as_echo "$ac_ct_NMEDIT" >&6; }
  6350. else
  6351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6352. $as_echo "no" >&6; }
  6353. fi
  6354. if test "x$ac_ct_NMEDIT" = x; then
  6355. NMEDIT=":"
  6356. else
  6357. case $cross_compiling:$ac_tool_warned in
  6358. yes:)
  6359. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6360. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6361. ac_tool_warned=yes ;;
  6362. esac
  6363. NMEDIT=$ac_ct_NMEDIT
  6364. fi
  6365. else
  6366. NMEDIT="$ac_cv_prog_NMEDIT"
  6367. fi
  6368. if test -n "$ac_tool_prefix"; then
  6369. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6370. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6372. $as_echo_n "checking for $ac_word... " >&6; }
  6373. if test "${ac_cv_prog_LIPO+set}" = set; then :
  6374. $as_echo_n "(cached) " >&6
  6375. else
  6376. if test -n "$LIPO"; then
  6377. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6378. else
  6379. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6380. for as_dir in $PATH
  6381. do
  6382. IFS=$as_save_IFS
  6383. test -z "$as_dir" && as_dir=.
  6384. for ac_exec_ext in '' $ac_executable_extensions; do
  6385. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6386. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6387. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6388. break 2
  6389. fi
  6390. done
  6391. done
  6392. IFS=$as_save_IFS
  6393. fi
  6394. fi
  6395. LIPO=$ac_cv_prog_LIPO
  6396. if test -n "$LIPO"; then
  6397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6398. $as_echo "$LIPO" >&6; }
  6399. else
  6400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6401. $as_echo "no" >&6; }
  6402. fi
  6403. fi
  6404. if test -z "$ac_cv_prog_LIPO"; then
  6405. ac_ct_LIPO=$LIPO
  6406. # Extract the first word of "lipo", so it can be a program name with args.
  6407. set dummy lipo; ac_word=$2
  6408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6409. $as_echo_n "checking for $ac_word... " >&6; }
  6410. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  6411. $as_echo_n "(cached) " >&6
  6412. else
  6413. if test -n "$ac_ct_LIPO"; then
  6414. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6415. else
  6416. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6417. for as_dir in $PATH
  6418. do
  6419. IFS=$as_save_IFS
  6420. test -z "$as_dir" && as_dir=.
  6421. for ac_exec_ext in '' $ac_executable_extensions; do
  6422. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6423. ac_cv_prog_ac_ct_LIPO="lipo"
  6424. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6425. break 2
  6426. fi
  6427. done
  6428. done
  6429. IFS=$as_save_IFS
  6430. fi
  6431. fi
  6432. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6433. if test -n "$ac_ct_LIPO"; then
  6434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6435. $as_echo "$ac_ct_LIPO" >&6; }
  6436. else
  6437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6438. $as_echo "no" >&6; }
  6439. fi
  6440. if test "x$ac_ct_LIPO" = x; then
  6441. LIPO=":"
  6442. else
  6443. case $cross_compiling:$ac_tool_warned in
  6444. yes:)
  6445. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6446. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6447. ac_tool_warned=yes ;;
  6448. esac
  6449. LIPO=$ac_ct_LIPO
  6450. fi
  6451. else
  6452. LIPO="$ac_cv_prog_LIPO"
  6453. fi
  6454. if test -n "$ac_tool_prefix"; then
  6455. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6456. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6458. $as_echo_n "checking for $ac_word... " >&6; }
  6459. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  6460. $as_echo_n "(cached) " >&6
  6461. else
  6462. if test -n "$OTOOL"; then
  6463. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6464. else
  6465. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6466. for as_dir in $PATH
  6467. do
  6468. IFS=$as_save_IFS
  6469. test -z "$as_dir" && as_dir=.
  6470. for ac_exec_ext in '' $ac_executable_extensions; do
  6471. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6472. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6473. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6474. break 2
  6475. fi
  6476. done
  6477. done
  6478. IFS=$as_save_IFS
  6479. fi
  6480. fi
  6481. OTOOL=$ac_cv_prog_OTOOL
  6482. if test -n "$OTOOL"; then
  6483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6484. $as_echo "$OTOOL" >&6; }
  6485. else
  6486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6487. $as_echo "no" >&6; }
  6488. fi
  6489. fi
  6490. if test -z "$ac_cv_prog_OTOOL"; then
  6491. ac_ct_OTOOL=$OTOOL
  6492. # Extract the first word of "otool", so it can be a program name with args.
  6493. set dummy otool; ac_word=$2
  6494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6495. $as_echo_n "checking for $ac_word... " >&6; }
  6496. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  6497. $as_echo_n "(cached) " >&6
  6498. else
  6499. if test -n "$ac_ct_OTOOL"; then
  6500. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6501. else
  6502. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6503. for as_dir in $PATH
  6504. do
  6505. IFS=$as_save_IFS
  6506. test -z "$as_dir" && as_dir=.
  6507. for ac_exec_ext in '' $ac_executable_extensions; do
  6508. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6509. ac_cv_prog_ac_ct_OTOOL="otool"
  6510. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6511. break 2
  6512. fi
  6513. done
  6514. done
  6515. IFS=$as_save_IFS
  6516. fi
  6517. fi
  6518. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6519. if test -n "$ac_ct_OTOOL"; then
  6520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6521. $as_echo "$ac_ct_OTOOL" >&6; }
  6522. else
  6523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6524. $as_echo "no" >&6; }
  6525. fi
  6526. if test "x$ac_ct_OTOOL" = x; then
  6527. OTOOL=":"
  6528. else
  6529. case $cross_compiling:$ac_tool_warned in
  6530. yes:)
  6531. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6532. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6533. ac_tool_warned=yes ;;
  6534. esac
  6535. OTOOL=$ac_ct_OTOOL
  6536. fi
  6537. else
  6538. OTOOL="$ac_cv_prog_OTOOL"
  6539. fi
  6540. if test -n "$ac_tool_prefix"; then
  6541. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6542. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6544. $as_echo_n "checking for $ac_word... " >&6; }
  6545. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  6546. $as_echo_n "(cached) " >&6
  6547. else
  6548. if test -n "$OTOOL64"; then
  6549. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6550. else
  6551. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6552. for as_dir in $PATH
  6553. do
  6554. IFS=$as_save_IFS
  6555. test -z "$as_dir" && as_dir=.
  6556. for ac_exec_ext in '' $ac_executable_extensions; do
  6557. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6558. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6559. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6560. break 2
  6561. fi
  6562. done
  6563. done
  6564. IFS=$as_save_IFS
  6565. fi
  6566. fi
  6567. OTOOL64=$ac_cv_prog_OTOOL64
  6568. if test -n "$OTOOL64"; then
  6569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6570. $as_echo "$OTOOL64" >&6; }
  6571. else
  6572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6573. $as_echo "no" >&6; }
  6574. fi
  6575. fi
  6576. if test -z "$ac_cv_prog_OTOOL64"; then
  6577. ac_ct_OTOOL64=$OTOOL64
  6578. # Extract the first word of "otool64", so it can be a program name with args.
  6579. set dummy otool64; ac_word=$2
  6580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6581. $as_echo_n "checking for $ac_word... " >&6; }
  6582. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  6583. $as_echo_n "(cached) " >&6
  6584. else
  6585. if test -n "$ac_ct_OTOOL64"; then
  6586. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6587. else
  6588. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6589. for as_dir in $PATH
  6590. do
  6591. IFS=$as_save_IFS
  6592. test -z "$as_dir" && as_dir=.
  6593. for ac_exec_ext in '' $ac_executable_extensions; do
  6594. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6595. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6596. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6597. break 2
  6598. fi
  6599. done
  6600. done
  6601. IFS=$as_save_IFS
  6602. fi
  6603. fi
  6604. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6605. if test -n "$ac_ct_OTOOL64"; then
  6606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6607. $as_echo "$ac_ct_OTOOL64" >&6; }
  6608. else
  6609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6610. $as_echo "no" >&6; }
  6611. fi
  6612. if test "x$ac_ct_OTOOL64" = x; then
  6613. OTOOL64=":"
  6614. else
  6615. case $cross_compiling:$ac_tool_warned in
  6616. yes:)
  6617. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6618. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6619. ac_tool_warned=yes ;;
  6620. esac
  6621. OTOOL64=$ac_ct_OTOOL64
  6622. fi
  6623. else
  6624. OTOOL64="$ac_cv_prog_OTOOL64"
  6625. fi
  6626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6627. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6628. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  6629. $as_echo_n "(cached) " >&6
  6630. else
  6631. lt_cv_apple_cc_single_mod=no
  6632. if test -z "${LT_MULTI_MODULE}"; then
  6633. # By default we will add the -single_module flag. You can override
  6634. # by either setting the environment variable LT_MULTI_MODULE
  6635. # non-empty at configure time, or by adding -multi_module to the
  6636. # link flags.
  6637. rm -rf libconftest.dylib*
  6638. echo "int foo(void){return 1;}" > conftest.c
  6639. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6640. -dynamiclib -Wl,-single_module conftest.c" >&5
  6641. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6642. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6643. _lt_result=$?
  6644. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6645. lt_cv_apple_cc_single_mod=yes
  6646. else
  6647. cat conftest.err >&5
  6648. fi
  6649. rm -rf libconftest.dylib*
  6650. rm -f conftest.*
  6651. fi
  6652. fi
  6653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6654. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6656. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6657. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  6658. $as_echo_n "(cached) " >&6
  6659. else
  6660. lt_cv_ld_exported_symbols_list=no
  6661. save_LDFLAGS=$LDFLAGS
  6662. echo "_main" > conftest.sym
  6663. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6664. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6665. /* end confdefs.h. */
  6666. int
  6667. main ()
  6668. {
  6669. ;
  6670. return 0;
  6671. }
  6672. _ACEOF
  6673. if ac_fn_c_try_link "$LINENO"; then :
  6674. lt_cv_ld_exported_symbols_list=yes
  6675. else
  6676. lt_cv_ld_exported_symbols_list=no
  6677. fi
  6678. rm -f core conftest.err conftest.$ac_objext \
  6679. conftest$ac_exeext conftest.$ac_ext
  6680. LDFLAGS="$save_LDFLAGS"
  6681. fi
  6682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6683. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6685. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6686. if test "${lt_cv_ld_force_load+set}" = set; then :
  6687. $as_echo_n "(cached) " >&6
  6688. else
  6689. lt_cv_ld_force_load=no
  6690. cat > conftest.c << _LT_EOF
  6691. int forced_loaded() { return 2;}
  6692. _LT_EOF
  6693. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6694. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6695. echo "$AR cru libconftest.a conftest.o" >&5
  6696. $AR cru libconftest.a conftest.o 2>&5
  6697. cat > conftest.c << _LT_EOF
  6698. int main() { return 0;}
  6699. _LT_EOF
  6700. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6701. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6702. _lt_result=$?
  6703. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  6704. lt_cv_ld_force_load=yes
  6705. else
  6706. cat conftest.err >&5
  6707. fi
  6708. rm -f conftest.err libconftest.a conftest conftest.c
  6709. rm -rf conftest.dSYM
  6710. fi
  6711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6712. $as_echo "$lt_cv_ld_force_load" >&6; }
  6713. case $host_os in
  6714. rhapsody* | darwin1.[012])
  6715. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6716. darwin1.*)
  6717. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6718. darwin*) # darwin 5.x on
  6719. # if running on 10.5 or later, the deployment target defaults
  6720. # to the OS version, if on x86, and 10.4, the deployment
  6721. # target defaults to 10.4. Don't you love it?
  6722. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6723. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6724. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6725. 10.[012][,.]*)
  6726. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6727. 10.*)
  6728. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6729. esac
  6730. ;;
  6731. esac
  6732. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6733. _lt_dar_single_mod='$single_module'
  6734. fi
  6735. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6736. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6737. else
  6738. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6739. fi
  6740. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6741. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6742. else
  6743. _lt_dsymutil=
  6744. fi
  6745. ;;
  6746. esac
  6747. ac_ext=c
  6748. ac_cpp='$CPP $CPPFLAGS'
  6749. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6750. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6751. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6753. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6754. # On Suns, sometimes $CPP names a directory.
  6755. if test -n "$CPP" && test -d "$CPP"; then
  6756. CPP=
  6757. fi
  6758. if test -z "$CPP"; then
  6759. if test "${ac_cv_prog_CPP+set}" = set; then :
  6760. $as_echo_n "(cached) " >&6
  6761. else
  6762. # Double quotes because CPP needs to be expanded
  6763. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6764. do
  6765. ac_preproc_ok=false
  6766. for ac_c_preproc_warn_flag in '' yes
  6767. do
  6768. # Use a header file that comes with gcc, so configuring glibc
  6769. # with a fresh cross-compiler works.
  6770. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6771. # <limits.h> exists even on freestanding compilers.
  6772. # On the NeXT, cc -E runs the code through the compiler's parser,
  6773. # not just through cpp. "Syntax error" is here to catch this case.
  6774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6775. /* end confdefs.h. */
  6776. #ifdef __STDC__
  6777. # include <limits.h>
  6778. #else
  6779. # include <assert.h>
  6780. #endif
  6781. Syntax error
  6782. _ACEOF
  6783. if ac_fn_c_try_cpp "$LINENO"; then :
  6784. else
  6785. # Broken: fails on valid input.
  6786. continue
  6787. fi
  6788. rm -f conftest.err conftest.$ac_ext
  6789. # OK, works on sane cases. Now check whether nonexistent headers
  6790. # can be detected and how.
  6791. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6792. /* end confdefs.h. */
  6793. #include <ac_nonexistent.h>
  6794. _ACEOF
  6795. if ac_fn_c_try_cpp "$LINENO"; then :
  6796. # Broken: success on invalid input.
  6797. continue
  6798. else
  6799. # Passes both tests.
  6800. ac_preproc_ok=:
  6801. break
  6802. fi
  6803. rm -f conftest.err conftest.$ac_ext
  6804. done
  6805. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6806. rm -f conftest.err conftest.$ac_ext
  6807. if $ac_preproc_ok; then :
  6808. break
  6809. fi
  6810. done
  6811. ac_cv_prog_CPP=$CPP
  6812. fi
  6813. CPP=$ac_cv_prog_CPP
  6814. else
  6815. ac_cv_prog_CPP=$CPP
  6816. fi
  6817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6818. $as_echo "$CPP" >&6; }
  6819. ac_preproc_ok=false
  6820. for ac_c_preproc_warn_flag in '' yes
  6821. do
  6822. # Use a header file that comes with gcc, so configuring glibc
  6823. # with a fresh cross-compiler works.
  6824. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6825. # <limits.h> exists even on freestanding compilers.
  6826. # On the NeXT, cc -E runs the code through the compiler's parser,
  6827. # not just through cpp. "Syntax error" is here to catch this case.
  6828. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6829. /* end confdefs.h. */
  6830. #ifdef __STDC__
  6831. # include <limits.h>
  6832. #else
  6833. # include <assert.h>
  6834. #endif
  6835. Syntax error
  6836. _ACEOF
  6837. if ac_fn_c_try_cpp "$LINENO"; then :
  6838. else
  6839. # Broken: fails on valid input.
  6840. continue
  6841. fi
  6842. rm -f conftest.err conftest.$ac_ext
  6843. # OK, works on sane cases. Now check whether nonexistent headers
  6844. # can be detected and how.
  6845. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6846. /* end confdefs.h. */
  6847. #include <ac_nonexistent.h>
  6848. _ACEOF
  6849. if ac_fn_c_try_cpp "$LINENO"; then :
  6850. # Broken: success on invalid input.
  6851. continue
  6852. else
  6853. # Passes both tests.
  6854. ac_preproc_ok=:
  6855. break
  6856. fi
  6857. rm -f conftest.err conftest.$ac_ext
  6858. done
  6859. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6860. rm -f conftest.err conftest.$ac_ext
  6861. if $ac_preproc_ok; then :
  6862. else
  6863. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6864. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6865. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  6866. See \`config.log' for more details." "$LINENO" 5; }
  6867. fi
  6868. ac_ext=c
  6869. ac_cpp='$CPP $CPPFLAGS'
  6870. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6871. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6872. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6874. $as_echo_n "checking for ANSI C header files... " >&6; }
  6875. if test "${ac_cv_header_stdc+set}" = set; then :
  6876. $as_echo_n "(cached) " >&6
  6877. else
  6878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6879. /* end confdefs.h. */
  6880. #include <stdlib.h>
  6881. #include <stdarg.h>
  6882. #include <string.h>
  6883. #include <float.h>
  6884. int
  6885. main ()
  6886. {
  6887. ;
  6888. return 0;
  6889. }
  6890. _ACEOF
  6891. if ac_fn_c_try_compile "$LINENO"; then :
  6892. ac_cv_header_stdc=yes
  6893. else
  6894. ac_cv_header_stdc=no
  6895. fi
  6896. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6897. if test $ac_cv_header_stdc = yes; then
  6898. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6900. /* end confdefs.h. */
  6901. #include <string.h>
  6902. _ACEOF
  6903. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6904. $EGREP "memchr" >/dev/null 2>&1; then :
  6905. else
  6906. ac_cv_header_stdc=no
  6907. fi
  6908. rm -f conftest*
  6909. fi
  6910. if test $ac_cv_header_stdc = yes; then
  6911. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6913. /* end confdefs.h. */
  6914. #include <stdlib.h>
  6915. _ACEOF
  6916. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6917. $EGREP "free" >/dev/null 2>&1; then :
  6918. else
  6919. ac_cv_header_stdc=no
  6920. fi
  6921. rm -f conftest*
  6922. fi
  6923. if test $ac_cv_header_stdc = yes; then
  6924. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6925. if test "$cross_compiling" = yes; then :
  6926. :
  6927. else
  6928. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6929. /* end confdefs.h. */
  6930. #include <ctype.h>
  6931. #include <stdlib.h>
  6932. #if ((' ' & 0x0FF) == 0x020)
  6933. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6934. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6935. #else
  6936. # define ISLOWER(c) \
  6937. (('a' <= (c) && (c) <= 'i') \
  6938. || ('j' <= (c) && (c) <= 'r') \
  6939. || ('s' <= (c) && (c) <= 'z'))
  6940. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6941. #endif
  6942. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6943. int
  6944. main ()
  6945. {
  6946. int i;
  6947. for (i = 0; i < 256; i++)
  6948. if (XOR (islower (i), ISLOWER (i))
  6949. || toupper (i) != TOUPPER (i))
  6950. return 2;
  6951. return 0;
  6952. }
  6953. _ACEOF
  6954. if ac_fn_c_try_run "$LINENO"; then :
  6955. else
  6956. ac_cv_header_stdc=no
  6957. fi
  6958. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6959. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6960. fi
  6961. fi
  6962. fi
  6963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6964. $as_echo "$ac_cv_header_stdc" >&6; }
  6965. if test $ac_cv_header_stdc = yes; then
  6966. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6967. fi
  6968. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6969. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6970. inttypes.h stdint.h unistd.h
  6971. do :
  6972. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6973. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6974. "
  6975. eval as_val=\$$as_ac_Header
  6976. if test "x$as_val" = x""yes; then :
  6977. cat >>confdefs.h <<_ACEOF
  6978. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6979. _ACEOF
  6980. fi
  6981. done
  6982. for ac_header in dlfcn.h
  6983. do :
  6984. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6985. "
  6986. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  6987. cat >>confdefs.h <<_ACEOF
  6988. #define HAVE_DLFCN_H 1
  6989. _ACEOF
  6990. fi
  6991. done
  6992. # Set options
  6993. enable_dlopen=no
  6994. enable_win32_dll=no
  6995. # Check whether --enable-shared was given.
  6996. if test "${enable_shared+set}" = set; then :
  6997. enableval=$enable_shared; p=${PACKAGE-default}
  6998. case $enableval in
  6999. yes) enable_shared=yes ;;
  7000. no) enable_shared=no ;;
  7001. *)
  7002. enable_shared=no
  7003. # Look at the argument we got. We use all the common list separators.
  7004. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7005. for pkg in $enableval; do
  7006. IFS="$lt_save_ifs"
  7007. if test "X$pkg" = "X$p"; then
  7008. enable_shared=yes
  7009. fi
  7010. done
  7011. IFS="$lt_save_ifs"
  7012. ;;
  7013. esac
  7014. else
  7015. enable_shared=yes
  7016. fi
  7017. # Check whether --enable-static was given.
  7018. if test "${enable_static+set}" = set; then :
  7019. enableval=$enable_static; p=${PACKAGE-default}
  7020. case $enableval in
  7021. yes) enable_static=yes ;;
  7022. no) enable_static=no ;;
  7023. *)
  7024. enable_static=no
  7025. # Look at the argument we got. We use all the common list separators.
  7026. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7027. for pkg in $enableval; do
  7028. IFS="$lt_save_ifs"
  7029. if test "X$pkg" = "X$p"; then
  7030. enable_static=yes
  7031. fi
  7032. done
  7033. IFS="$lt_save_ifs"
  7034. ;;
  7035. esac
  7036. else
  7037. enable_static=yes
  7038. fi
  7039. # Check whether --with-pic was given.
  7040. if test "${with_pic+set}" = set; then :
  7041. withval=$with_pic; pic_mode="$withval"
  7042. else
  7043. pic_mode=default
  7044. fi
  7045. test -z "$pic_mode" && pic_mode=default
  7046. # Check whether --enable-fast-install was given.
  7047. if test "${enable_fast_install+set}" = set; then :
  7048. enableval=$enable_fast_install; p=${PACKAGE-default}
  7049. case $enableval in
  7050. yes) enable_fast_install=yes ;;
  7051. no) enable_fast_install=no ;;
  7052. *)
  7053. enable_fast_install=no
  7054. # Look at the argument we got. We use all the common list separators.
  7055. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7056. for pkg in $enableval; do
  7057. IFS="$lt_save_ifs"
  7058. if test "X$pkg" = "X$p"; then
  7059. enable_fast_install=yes
  7060. fi
  7061. done
  7062. IFS="$lt_save_ifs"
  7063. ;;
  7064. esac
  7065. else
  7066. enable_fast_install=yes
  7067. fi
  7068. # This can be used to rebuild libtool when needed
  7069. LIBTOOL_DEPS="$ltmain"
  7070. # Always use our own libtool.
  7071. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7072. test -z "$LN_S" && LN_S="ln -s"
  7073. if test -n "${ZSH_VERSION+set}" ; then
  7074. setopt NO_GLOB_SUBST
  7075. fi
  7076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7077. $as_echo_n "checking for objdir... " >&6; }
  7078. if test "${lt_cv_objdir+set}" = set; then :
  7079. $as_echo_n "(cached) " >&6
  7080. else
  7081. rm -f .libs 2>/dev/null
  7082. mkdir .libs 2>/dev/null
  7083. if test -d .libs; then
  7084. lt_cv_objdir=.libs
  7085. else
  7086. # MS-DOS does not allow filenames that begin with a dot.
  7087. lt_cv_objdir=_libs
  7088. fi
  7089. rmdir .libs 2>/dev/null
  7090. fi
  7091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7092. $as_echo "$lt_cv_objdir" >&6; }
  7093. objdir=$lt_cv_objdir
  7094. cat >>confdefs.h <<_ACEOF
  7095. #define LT_OBJDIR "$lt_cv_objdir/"
  7096. _ACEOF
  7097. case $host_os in
  7098. aix3*)
  7099. # AIX sometimes has problems with the GCC collect2 program. For some
  7100. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7101. # vanish in a puff of smoke.
  7102. if test "X${COLLECT_NAMES+set}" != Xset; then
  7103. COLLECT_NAMES=
  7104. export COLLECT_NAMES
  7105. fi
  7106. ;;
  7107. esac
  7108. # Global variables:
  7109. ofile=libtool
  7110. can_build_shared=yes
  7111. # All known linkers require a `.a' archive for static linking (except MSVC,
  7112. # which needs '.lib').
  7113. libext=a
  7114. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7115. old_CC="$CC"
  7116. old_CFLAGS="$CFLAGS"
  7117. # Set sane defaults for various variables
  7118. test -z "$CC" && CC=cc
  7119. test -z "$LTCC" && LTCC=$CC
  7120. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7121. test -z "$LD" && LD=ld
  7122. test -z "$ac_objext" && ac_objext=o
  7123. for cc_temp in $compiler""; do
  7124. case $cc_temp in
  7125. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7126. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7127. \-*) ;;
  7128. *) break;;
  7129. esac
  7130. done
  7131. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7132. # Only perform the check for file, if the check method requires it
  7133. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7134. case $deplibs_check_method in
  7135. file_magic*)
  7136. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7138. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7139. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7140. $as_echo_n "(cached) " >&6
  7141. else
  7142. case $MAGIC_CMD in
  7143. [\\/*] | ?:[\\/]*)
  7144. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7145. ;;
  7146. *)
  7147. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7148. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7149. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7150. for ac_dir in $ac_dummy; do
  7151. IFS="$lt_save_ifs"
  7152. test -z "$ac_dir" && ac_dir=.
  7153. if test -f $ac_dir/${ac_tool_prefix}file; then
  7154. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7155. if test -n "$file_magic_test_file"; then
  7156. case $deplibs_check_method in
  7157. "file_magic "*)
  7158. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7159. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7160. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7161. $EGREP "$file_magic_regex" > /dev/null; then
  7162. :
  7163. else
  7164. cat <<_LT_EOF 1>&2
  7165. *** Warning: the command libtool uses to detect shared libraries,
  7166. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7167. *** The result is that libtool may fail to recognize shared libraries
  7168. *** as such. This will affect the creation of libtool libraries that
  7169. *** depend on shared libraries, but programs linked with such libtool
  7170. *** libraries will work regardless of this problem. Nevertheless, you
  7171. *** may want to report the problem to your system manager and/or to
  7172. *** bug-libtool@gnu.org
  7173. _LT_EOF
  7174. fi ;;
  7175. esac
  7176. fi
  7177. break
  7178. fi
  7179. done
  7180. IFS="$lt_save_ifs"
  7181. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7182. ;;
  7183. esac
  7184. fi
  7185. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7186. if test -n "$MAGIC_CMD"; then
  7187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7188. $as_echo "$MAGIC_CMD" >&6; }
  7189. else
  7190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7191. $as_echo "no" >&6; }
  7192. fi
  7193. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7194. if test -n "$ac_tool_prefix"; then
  7195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7196. $as_echo_n "checking for file... " >&6; }
  7197. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7198. $as_echo_n "(cached) " >&6
  7199. else
  7200. case $MAGIC_CMD in
  7201. [\\/*] | ?:[\\/]*)
  7202. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7203. ;;
  7204. *)
  7205. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7206. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7207. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7208. for ac_dir in $ac_dummy; do
  7209. IFS="$lt_save_ifs"
  7210. test -z "$ac_dir" && ac_dir=.
  7211. if test -f $ac_dir/file; then
  7212. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7213. if test -n "$file_magic_test_file"; then
  7214. case $deplibs_check_method in
  7215. "file_magic "*)
  7216. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7217. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7218. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7219. $EGREP "$file_magic_regex" > /dev/null; then
  7220. :
  7221. else
  7222. cat <<_LT_EOF 1>&2
  7223. *** Warning: the command libtool uses to detect shared libraries,
  7224. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7225. *** The result is that libtool may fail to recognize shared libraries
  7226. *** as such. This will affect the creation of libtool libraries that
  7227. *** depend on shared libraries, but programs linked with such libtool
  7228. *** libraries will work regardless of this problem. Nevertheless, you
  7229. *** may want to report the problem to your system manager and/or to
  7230. *** bug-libtool@gnu.org
  7231. _LT_EOF
  7232. fi ;;
  7233. esac
  7234. fi
  7235. break
  7236. fi
  7237. done
  7238. IFS="$lt_save_ifs"
  7239. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7240. ;;
  7241. esac
  7242. fi
  7243. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7244. if test -n "$MAGIC_CMD"; then
  7245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7246. $as_echo "$MAGIC_CMD" >&6; }
  7247. else
  7248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7249. $as_echo "no" >&6; }
  7250. fi
  7251. else
  7252. MAGIC_CMD=:
  7253. fi
  7254. fi
  7255. fi
  7256. ;;
  7257. esac
  7258. # Use C for the default configuration in the libtool script
  7259. lt_save_CC="$CC"
  7260. ac_ext=c
  7261. ac_cpp='$CPP $CPPFLAGS'
  7262. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7263. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7264. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7265. # Source file extension for C test sources.
  7266. ac_ext=c
  7267. # Object file extension for compiled C test sources.
  7268. objext=o
  7269. objext=$objext
  7270. # Code to be used in simple compile tests
  7271. lt_simple_compile_test_code="int some_variable = 0;"
  7272. # Code to be used in simple link tests
  7273. lt_simple_link_test_code='int main(){return(0);}'
  7274. # If no C compiler was specified, use CC.
  7275. LTCC=${LTCC-"$CC"}
  7276. # If no C compiler flags were specified, use CFLAGS.
  7277. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7278. # Allow CC to be a program name with arguments.
  7279. compiler=$CC
  7280. # Save the default compiler, since it gets overwritten when the other
  7281. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7282. compiler_DEFAULT=$CC
  7283. # save warnings/boilerplate of simple test code
  7284. ac_outfile=conftest.$ac_objext
  7285. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7286. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7287. _lt_compiler_boilerplate=`cat conftest.err`
  7288. $RM conftest*
  7289. ac_outfile=conftest.$ac_objext
  7290. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7291. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7292. _lt_linker_boilerplate=`cat conftest.err`
  7293. $RM -r conftest*
  7294. ## CAVEAT EMPTOR:
  7295. ## There is no encapsulation within the following macros, do not change
  7296. ## the running order or otherwise move them around unless you know exactly
  7297. ## what you are doing...
  7298. if test -n "$compiler"; then
  7299. lt_prog_compiler_no_builtin_flag=
  7300. if test "$GCC" = yes; then
  7301. case $cc_basename in
  7302. nvcc*)
  7303. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7304. *)
  7305. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7306. esac
  7307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7308. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7309. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  7310. $as_echo_n "(cached) " >&6
  7311. else
  7312. lt_cv_prog_compiler_rtti_exceptions=no
  7313. ac_outfile=conftest.$ac_objext
  7314. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7315. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7316. # Insert the option either (1) after the last *FLAGS variable, or
  7317. # (2) before a word containing "conftest.", or (3) at the end.
  7318. # Note that $ac_compile itself does not contain backslashes and begins
  7319. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7320. # The option is referenced via a variable to avoid confusing sed.
  7321. lt_compile=`echo "$ac_compile" | $SED \
  7322. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7323. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7324. -e 's:$: $lt_compiler_flag:'`
  7325. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7326. (eval "$lt_compile" 2>conftest.err)
  7327. ac_status=$?
  7328. cat conftest.err >&5
  7329. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7330. if (exit $ac_status) && test -s "$ac_outfile"; then
  7331. # The compiler can only warn and ignore the option if not recognized
  7332. # So say no if there are warnings other than the usual output.
  7333. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7334. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7335. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7336. lt_cv_prog_compiler_rtti_exceptions=yes
  7337. fi
  7338. fi
  7339. $RM conftest*
  7340. fi
  7341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7342. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7343. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7344. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7345. else
  7346. :
  7347. fi
  7348. fi
  7349. lt_prog_compiler_wl=
  7350. lt_prog_compiler_pic=
  7351. lt_prog_compiler_static=
  7352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7353. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7354. if test "$GCC" = yes; then
  7355. lt_prog_compiler_wl='-Wl,'
  7356. lt_prog_compiler_static='-static'
  7357. case $host_os in
  7358. aix*)
  7359. # All AIX code is PIC.
  7360. if test "$host_cpu" = ia64; then
  7361. # AIX 5 now supports IA64 processor
  7362. lt_prog_compiler_static='-Bstatic'
  7363. fi
  7364. lt_prog_compiler_pic='-fPIC'
  7365. ;;
  7366. amigaos*)
  7367. case $host_cpu in
  7368. powerpc)
  7369. # see comment about AmigaOS4 .so support
  7370. lt_prog_compiler_pic='-fPIC'
  7371. ;;
  7372. m68k)
  7373. # FIXME: we need at least 68020 code to build shared libraries, but
  7374. # adding the `-m68020' flag to GCC prevents building anything better,
  7375. # like `-m68040'.
  7376. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7377. ;;
  7378. esac
  7379. ;;
  7380. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7381. # PIC is the default for these OSes.
  7382. ;;
  7383. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7384. # This hack is so that the source file can tell whether it is being
  7385. # built for inclusion in a dll (and should export symbols for example).
  7386. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7387. # (--disable-auto-import) libraries
  7388. lt_prog_compiler_pic='-DDLL_EXPORT'
  7389. ;;
  7390. darwin* | rhapsody*)
  7391. # PIC is the default on this platform
  7392. # Common symbols not allowed in MH_DYLIB files
  7393. lt_prog_compiler_pic='-fno-common'
  7394. ;;
  7395. haiku*)
  7396. # PIC is the default for Haiku.
  7397. # The "-static" flag exists, but is broken.
  7398. lt_prog_compiler_static=
  7399. ;;
  7400. hpux*)
  7401. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7402. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7403. # sets the default TLS model and affects inlining.
  7404. case $host_cpu in
  7405. hppa*64*)
  7406. # +Z the default
  7407. ;;
  7408. *)
  7409. lt_prog_compiler_pic='-fPIC'
  7410. ;;
  7411. esac
  7412. ;;
  7413. interix[3-9]*)
  7414. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7415. # Instead, we relocate shared libraries at runtime.
  7416. ;;
  7417. msdosdjgpp*)
  7418. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7419. # on systems that don't support them.
  7420. lt_prog_compiler_can_build_shared=no
  7421. enable_shared=no
  7422. ;;
  7423. *nto* | *qnx*)
  7424. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7425. # it will coredump.
  7426. lt_prog_compiler_pic='-fPIC -shared'
  7427. ;;
  7428. sysv4*MP*)
  7429. if test -d /usr/nec; then
  7430. lt_prog_compiler_pic=-Kconform_pic
  7431. fi
  7432. ;;
  7433. *)
  7434. lt_prog_compiler_pic='-fPIC'
  7435. ;;
  7436. esac
  7437. case $cc_basename in
  7438. nvcc*) # Cuda Compiler Driver 2.2
  7439. lt_prog_compiler_wl='-Xlinker '
  7440. lt_prog_compiler_pic='-Xcompiler -fPIC'
  7441. ;;
  7442. esac
  7443. else
  7444. # PORTME Check for flag to pass linker flags through the system compiler.
  7445. case $host_os in
  7446. aix*)
  7447. lt_prog_compiler_wl='-Wl,'
  7448. if test "$host_cpu" = ia64; then
  7449. # AIX 5 now supports IA64 processor
  7450. lt_prog_compiler_static='-Bstatic'
  7451. else
  7452. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7453. fi
  7454. ;;
  7455. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7456. # This hack is so that the source file can tell whether it is being
  7457. # built for inclusion in a dll (and should export symbols for example).
  7458. lt_prog_compiler_pic='-DDLL_EXPORT'
  7459. ;;
  7460. hpux9* | hpux10* | hpux11*)
  7461. lt_prog_compiler_wl='-Wl,'
  7462. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7463. # not for PA HP-UX.
  7464. case $host_cpu in
  7465. hppa*64*|ia64*)
  7466. # +Z the default
  7467. ;;
  7468. *)
  7469. lt_prog_compiler_pic='+Z'
  7470. ;;
  7471. esac
  7472. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7473. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7474. ;;
  7475. irix5* | irix6* | nonstopux*)
  7476. lt_prog_compiler_wl='-Wl,'
  7477. # PIC (with -KPIC) is the default.
  7478. lt_prog_compiler_static='-non_shared'
  7479. ;;
  7480. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7481. case $cc_basename in
  7482. # old Intel for x86_64 which still supported -KPIC.
  7483. ecc*)
  7484. lt_prog_compiler_wl='-Wl,'
  7485. lt_prog_compiler_pic='-KPIC'
  7486. lt_prog_compiler_static='-static'
  7487. ;;
  7488. # icc used to be incompatible with GCC.
  7489. # ICC 10 doesn't accept -KPIC any more.
  7490. icc* | ifort*)
  7491. lt_prog_compiler_wl='-Wl,'
  7492. lt_prog_compiler_pic='-fPIC'
  7493. lt_prog_compiler_static='-static'
  7494. ;;
  7495. # Lahey Fortran 8.1.
  7496. lf95*)
  7497. lt_prog_compiler_wl='-Wl,'
  7498. lt_prog_compiler_pic='--shared'
  7499. lt_prog_compiler_static='--static'
  7500. ;;
  7501. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7502. # Portland Group compilers (*not* the Pentium gcc compiler,
  7503. # which looks to be a dead project)
  7504. lt_prog_compiler_wl='-Wl,'
  7505. lt_prog_compiler_pic='-fpic'
  7506. lt_prog_compiler_static='-Bstatic'
  7507. ;;
  7508. ccc*)
  7509. lt_prog_compiler_wl='-Wl,'
  7510. # All Alpha code is PIC.
  7511. lt_prog_compiler_static='-non_shared'
  7512. ;;
  7513. xl* | bgxl* | bgf* | mpixl*)
  7514. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7515. lt_prog_compiler_wl='-Wl,'
  7516. lt_prog_compiler_pic='-qpic'
  7517. lt_prog_compiler_static='-qstaticlink'
  7518. ;;
  7519. *)
  7520. case `$CC -V 2>&1 | sed 5q` in
  7521. *Sun\ F* | *Sun*Fortran*)
  7522. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7523. lt_prog_compiler_pic='-KPIC'
  7524. lt_prog_compiler_static='-Bstatic'
  7525. lt_prog_compiler_wl=''
  7526. ;;
  7527. *Sun\ C*)
  7528. # Sun C 5.9
  7529. lt_prog_compiler_pic='-KPIC'
  7530. lt_prog_compiler_static='-Bstatic'
  7531. lt_prog_compiler_wl='-Wl,'
  7532. ;;
  7533. esac
  7534. ;;
  7535. esac
  7536. ;;
  7537. newsos6)
  7538. lt_prog_compiler_pic='-KPIC'
  7539. lt_prog_compiler_static='-Bstatic'
  7540. ;;
  7541. *nto* | *qnx*)
  7542. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7543. # it will coredump.
  7544. lt_prog_compiler_pic='-fPIC -shared'
  7545. ;;
  7546. osf3* | osf4* | osf5*)
  7547. lt_prog_compiler_wl='-Wl,'
  7548. # All OSF/1 code is PIC.
  7549. lt_prog_compiler_static='-non_shared'
  7550. ;;
  7551. rdos*)
  7552. lt_prog_compiler_static='-non_shared'
  7553. ;;
  7554. solaris*)
  7555. lt_prog_compiler_pic='-KPIC'
  7556. lt_prog_compiler_static='-Bstatic'
  7557. case $cc_basename in
  7558. f77* | f90* | f95*)
  7559. lt_prog_compiler_wl='-Qoption ld ';;
  7560. *)
  7561. lt_prog_compiler_wl='-Wl,';;
  7562. esac
  7563. ;;
  7564. sunos4*)
  7565. lt_prog_compiler_wl='-Qoption ld '
  7566. lt_prog_compiler_pic='-PIC'
  7567. lt_prog_compiler_static='-Bstatic'
  7568. ;;
  7569. sysv4 | sysv4.2uw2* | sysv4.3*)
  7570. lt_prog_compiler_wl='-Wl,'
  7571. lt_prog_compiler_pic='-KPIC'
  7572. lt_prog_compiler_static='-Bstatic'
  7573. ;;
  7574. sysv4*MP*)
  7575. if test -d /usr/nec ;then
  7576. lt_prog_compiler_pic='-Kconform_pic'
  7577. lt_prog_compiler_static='-Bstatic'
  7578. fi
  7579. ;;
  7580. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7581. lt_prog_compiler_wl='-Wl,'
  7582. lt_prog_compiler_pic='-KPIC'
  7583. lt_prog_compiler_static='-Bstatic'
  7584. ;;
  7585. unicos*)
  7586. lt_prog_compiler_wl='-Wl,'
  7587. lt_prog_compiler_can_build_shared=no
  7588. ;;
  7589. uts4*)
  7590. lt_prog_compiler_pic='-pic'
  7591. lt_prog_compiler_static='-Bstatic'
  7592. ;;
  7593. *)
  7594. lt_prog_compiler_can_build_shared=no
  7595. ;;
  7596. esac
  7597. fi
  7598. case $host_os in
  7599. # For platforms which do not support PIC, -DPIC is meaningless:
  7600. *djgpp*)
  7601. lt_prog_compiler_pic=
  7602. ;;
  7603. *)
  7604. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7605. ;;
  7606. esac
  7607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7608. $as_echo "$lt_prog_compiler_pic" >&6; }
  7609. #
  7610. # Check to make sure the PIC flag actually works.
  7611. #
  7612. if test -n "$lt_prog_compiler_pic"; then
  7613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7614. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7615. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  7616. $as_echo_n "(cached) " >&6
  7617. else
  7618. lt_cv_prog_compiler_pic_works=no
  7619. ac_outfile=conftest.$ac_objext
  7620. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7621. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7622. # Insert the option either (1) after the last *FLAGS variable, or
  7623. # (2) before a word containing "conftest.", or (3) at the end.
  7624. # Note that $ac_compile itself does not contain backslashes and begins
  7625. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7626. # The option is referenced via a variable to avoid confusing sed.
  7627. lt_compile=`echo "$ac_compile" | $SED \
  7628. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7629. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7630. -e 's:$: $lt_compiler_flag:'`
  7631. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7632. (eval "$lt_compile" 2>conftest.err)
  7633. ac_status=$?
  7634. cat conftest.err >&5
  7635. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7636. if (exit $ac_status) && test -s "$ac_outfile"; then
  7637. # The compiler can only warn and ignore the option if not recognized
  7638. # So say no if there are warnings other than the usual output.
  7639. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7640. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7641. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7642. lt_cv_prog_compiler_pic_works=yes
  7643. fi
  7644. fi
  7645. $RM conftest*
  7646. fi
  7647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7648. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7649. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7650. case $lt_prog_compiler_pic in
  7651. "" | " "*) ;;
  7652. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7653. esac
  7654. else
  7655. lt_prog_compiler_pic=
  7656. lt_prog_compiler_can_build_shared=no
  7657. fi
  7658. fi
  7659. #
  7660. # Check to make sure the static flag actually works.
  7661. #
  7662. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7664. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7665. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  7666. $as_echo_n "(cached) " >&6
  7667. else
  7668. lt_cv_prog_compiler_static_works=no
  7669. save_LDFLAGS="$LDFLAGS"
  7670. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7671. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7672. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7673. # The linker can only warn and ignore the option if not recognized
  7674. # So say no if there are warnings
  7675. if test -s conftest.err; then
  7676. # Append any errors to the config.log.
  7677. cat conftest.err 1>&5
  7678. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7679. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7680. if diff conftest.exp conftest.er2 >/dev/null; then
  7681. lt_cv_prog_compiler_static_works=yes
  7682. fi
  7683. else
  7684. lt_cv_prog_compiler_static_works=yes
  7685. fi
  7686. fi
  7687. $RM -r conftest*
  7688. LDFLAGS="$save_LDFLAGS"
  7689. fi
  7690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7691. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7692. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7693. :
  7694. else
  7695. lt_prog_compiler_static=
  7696. fi
  7697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7698. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7699. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7700. $as_echo_n "(cached) " >&6
  7701. else
  7702. lt_cv_prog_compiler_c_o=no
  7703. $RM -r conftest 2>/dev/null
  7704. mkdir conftest
  7705. cd conftest
  7706. mkdir out
  7707. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7708. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7709. # Insert the option either (1) after the last *FLAGS variable, or
  7710. # (2) before a word containing "conftest.", or (3) at the end.
  7711. # Note that $ac_compile itself does not contain backslashes and begins
  7712. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7713. lt_compile=`echo "$ac_compile" | $SED \
  7714. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7715. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7716. -e 's:$: $lt_compiler_flag:'`
  7717. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7718. (eval "$lt_compile" 2>out/conftest.err)
  7719. ac_status=$?
  7720. cat out/conftest.err >&5
  7721. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7722. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7723. then
  7724. # The compiler can only warn and ignore the option if not recognized
  7725. # So say no if there are warnings
  7726. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7727. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7728. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7729. lt_cv_prog_compiler_c_o=yes
  7730. fi
  7731. fi
  7732. chmod u+w . 2>&5
  7733. $RM conftest*
  7734. # SGI C++ compiler will create directory out/ii_files/ for
  7735. # template instantiation
  7736. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7737. $RM out/* && rmdir out
  7738. cd ..
  7739. $RM -r conftest
  7740. $RM conftest*
  7741. fi
  7742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7743. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7745. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7746. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7747. $as_echo_n "(cached) " >&6
  7748. else
  7749. lt_cv_prog_compiler_c_o=no
  7750. $RM -r conftest 2>/dev/null
  7751. mkdir conftest
  7752. cd conftest
  7753. mkdir out
  7754. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7755. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7756. # Insert the option either (1) after the last *FLAGS variable, or
  7757. # (2) before a word containing "conftest.", or (3) at the end.
  7758. # Note that $ac_compile itself does not contain backslashes and begins
  7759. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7760. lt_compile=`echo "$ac_compile" | $SED \
  7761. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7762. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7763. -e 's:$: $lt_compiler_flag:'`
  7764. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7765. (eval "$lt_compile" 2>out/conftest.err)
  7766. ac_status=$?
  7767. cat out/conftest.err >&5
  7768. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7769. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7770. then
  7771. # The compiler can only warn and ignore the option if not recognized
  7772. # So say no if there are warnings
  7773. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7774. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7775. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7776. lt_cv_prog_compiler_c_o=yes
  7777. fi
  7778. fi
  7779. chmod u+w . 2>&5
  7780. $RM conftest*
  7781. # SGI C++ compiler will create directory out/ii_files/ for
  7782. # template instantiation
  7783. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7784. $RM out/* && rmdir out
  7785. cd ..
  7786. $RM -r conftest
  7787. $RM conftest*
  7788. fi
  7789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7790. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7791. hard_links="nottested"
  7792. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7793. # do not overwrite the value of need_locks provided by the user
  7794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7795. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7796. hard_links=yes
  7797. $RM conftest*
  7798. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7799. touch conftest.a
  7800. ln conftest.a conftest.b 2>&5 || hard_links=no
  7801. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7803. $as_echo "$hard_links" >&6; }
  7804. if test "$hard_links" = no; then
  7805. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7806. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7807. need_locks=warn
  7808. fi
  7809. else
  7810. need_locks=no
  7811. fi
  7812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7813. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7814. runpath_var=
  7815. allow_undefined_flag=
  7816. always_export_symbols=no
  7817. archive_cmds=
  7818. archive_expsym_cmds=
  7819. compiler_needs_object=no
  7820. enable_shared_with_static_runtimes=no
  7821. export_dynamic_flag_spec=
  7822. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7823. hardcode_automatic=no
  7824. hardcode_direct=no
  7825. hardcode_direct_absolute=no
  7826. hardcode_libdir_flag_spec=
  7827. hardcode_libdir_flag_spec_ld=
  7828. hardcode_libdir_separator=
  7829. hardcode_minus_L=no
  7830. hardcode_shlibpath_var=unsupported
  7831. inherit_rpath=no
  7832. link_all_deplibs=unknown
  7833. module_cmds=
  7834. module_expsym_cmds=
  7835. old_archive_from_new_cmds=
  7836. old_archive_from_expsyms_cmds=
  7837. thread_safe_flag_spec=
  7838. whole_archive_flag_spec=
  7839. # include_expsyms should be a list of space-separated symbols to be *always*
  7840. # included in the symbol list
  7841. include_expsyms=
  7842. # exclude_expsyms can be an extended regexp of symbols to exclude
  7843. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7844. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7845. # as well as any symbol that contains `d'.
  7846. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7847. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7848. # platforms (ab)use it in PIC code, but their linkers get confused if
  7849. # the symbol is explicitly referenced. Since portable code cannot
  7850. # rely on this symbol name, it's probably fine to never include it in
  7851. # preloaded symbol tables.
  7852. # Exclude shared library initialization/finalization symbols.
  7853. extract_expsyms_cmds=
  7854. case $host_os in
  7855. cygwin* | mingw* | pw32* | cegcc*)
  7856. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7857. # When not using gcc, we currently assume that we are using
  7858. # Microsoft Visual C++.
  7859. if test "$GCC" != yes; then
  7860. with_gnu_ld=no
  7861. fi
  7862. ;;
  7863. interix*)
  7864. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7865. with_gnu_ld=yes
  7866. ;;
  7867. openbsd*)
  7868. with_gnu_ld=no
  7869. ;;
  7870. esac
  7871. ld_shlibs=yes
  7872. # On some targets, GNU ld is compatible enough with the native linker
  7873. # that we're better off using the native interface for both.
  7874. lt_use_gnu_ld_interface=no
  7875. if test "$with_gnu_ld" = yes; then
  7876. case $host_os in
  7877. aix*)
  7878. # The AIX port of GNU ld has always aspired to compatibility
  7879. # with the native linker. However, as the warning in the GNU ld
  7880. # block says, versions before 2.19.5* couldn't really create working
  7881. # shared libraries, regardless of the interface used.
  7882. case `$LD -v 2>&1` in
  7883. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7884. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7885. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7886. *)
  7887. lt_use_gnu_ld_interface=yes
  7888. ;;
  7889. esac
  7890. ;;
  7891. *)
  7892. lt_use_gnu_ld_interface=yes
  7893. ;;
  7894. esac
  7895. fi
  7896. if test "$lt_use_gnu_ld_interface" = yes; then
  7897. # If archive_cmds runs LD, not CC, wlarc should be empty
  7898. wlarc='${wl}'
  7899. # Set some defaults for GNU ld with shared library support. These
  7900. # are reset later if shared libraries are not supported. Putting them
  7901. # here allows them to be overridden if necessary.
  7902. runpath_var=LD_RUN_PATH
  7903. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7904. export_dynamic_flag_spec='${wl}--export-dynamic'
  7905. # ancient GNU ld didn't support --whole-archive et. al.
  7906. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7907. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7908. else
  7909. whole_archive_flag_spec=
  7910. fi
  7911. supports_anon_versioning=no
  7912. case `$LD -v 2>&1` in
  7913. *GNU\ gold*) supports_anon_versioning=yes ;;
  7914. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7915. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7916. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7917. *\ 2.11.*) ;; # other 2.11 versions
  7918. *) supports_anon_versioning=yes ;;
  7919. esac
  7920. # See if GNU ld supports shared libraries.
  7921. case $host_os in
  7922. aix[3-9]*)
  7923. # On AIX/PPC, the GNU linker is very broken
  7924. if test "$host_cpu" != ia64; then
  7925. ld_shlibs=no
  7926. cat <<_LT_EOF 1>&2
  7927. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7928. *** to be unable to reliably create shared libraries on AIX.
  7929. *** Therefore, libtool is disabling shared libraries support. If you
  7930. *** really care for shared libraries, you may want to install binutils
  7931. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7932. *** You will then need to restart the configuration process.
  7933. _LT_EOF
  7934. fi
  7935. ;;
  7936. amigaos*)
  7937. case $host_cpu in
  7938. powerpc)
  7939. # see comment about AmigaOS4 .so support
  7940. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7941. archive_expsym_cmds=''
  7942. ;;
  7943. m68k)
  7944. 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)'
  7945. hardcode_libdir_flag_spec='-L$libdir'
  7946. hardcode_minus_L=yes
  7947. ;;
  7948. esac
  7949. ;;
  7950. beos*)
  7951. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7952. allow_undefined_flag=unsupported
  7953. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7954. # support --undefined. This deserves some investigation. FIXME
  7955. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7956. else
  7957. ld_shlibs=no
  7958. fi
  7959. ;;
  7960. cygwin* | mingw* | pw32* | cegcc*)
  7961. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7962. # as there is no search path for DLLs.
  7963. hardcode_libdir_flag_spec='-L$libdir'
  7964. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7965. allow_undefined_flag=unsupported
  7966. always_export_symbols=no
  7967. enable_shared_with_static_runtimes=yes
  7968. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7969. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7970. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7971. # If the export-symbols file already is a .def file (1st line
  7972. # is EXPORTS), use it as is; otherwise, prepend...
  7973. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7974. cp $export_symbols $output_objdir/$soname.def;
  7975. else
  7976. echo EXPORTS > $output_objdir/$soname.def;
  7977. cat $export_symbols >> $output_objdir/$soname.def;
  7978. fi~
  7979. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7980. else
  7981. ld_shlibs=no
  7982. fi
  7983. ;;
  7984. haiku*)
  7985. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7986. link_all_deplibs=yes
  7987. ;;
  7988. interix[3-9]*)
  7989. hardcode_direct=no
  7990. hardcode_shlibpath_var=no
  7991. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7992. export_dynamic_flag_spec='${wl}-E'
  7993. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7994. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7995. # default) and relocated if they conflict, which is a slow very memory
  7996. # consuming and fragmenting process. To avoid this, we pick a random,
  7997. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7998. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7999. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8000. 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'
  8001. ;;
  8002. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8003. tmp_diet=no
  8004. if test "$host_os" = linux-dietlibc; then
  8005. case $cc_basename in
  8006. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8007. esac
  8008. fi
  8009. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8010. && test "$tmp_diet" = no
  8011. then
  8012. tmp_addflag=' $pic_flag'
  8013. tmp_sharedflag='-shared'
  8014. case $cc_basename,$host_cpu in
  8015. pgcc*) # Portland Group C compiler
  8016. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  8017. tmp_addflag=' $pic_flag'
  8018. ;;
  8019. pgf77* | pgf90* | pgf95* | pgfortran*)
  8020. # Portland Group f77 and f90 compilers
  8021. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  8022. tmp_addflag=' $pic_flag -Mnomain' ;;
  8023. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8024. tmp_addflag=' -i_dynamic' ;;
  8025. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8026. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8027. ifc* | ifort*) # Intel Fortran compiler
  8028. tmp_addflag=' -nofor_main' ;;
  8029. lf95*) # Lahey Fortran 8.1
  8030. whole_archive_flag_spec=
  8031. tmp_sharedflag='--shared' ;;
  8032. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8033. tmp_sharedflag='-qmkshrobj'
  8034. tmp_addflag= ;;
  8035. nvcc*) # Cuda Compiler Driver 2.2
  8036. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  8037. compiler_needs_object=yes
  8038. ;;
  8039. esac
  8040. case `$CC -V 2>&1 | sed 5q` in
  8041. *Sun\ C*) # Sun C 5.9
  8042. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  8043. compiler_needs_object=yes
  8044. tmp_sharedflag='-G' ;;
  8045. *Sun\ F*) # Sun Fortran 8.3
  8046. tmp_sharedflag='-G' ;;
  8047. esac
  8048. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8049. if test "x$supports_anon_versioning" = xyes; then
  8050. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8051. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8052. echo "local: *; };" >> $output_objdir/$libname.ver~
  8053. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8054. fi
  8055. case $cc_basename in
  8056. xlf* | bgf* | bgxlf* | mpixlf*)
  8057. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8058. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8059. hardcode_libdir_flag_spec=
  8060. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8061. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8062. if test "x$supports_anon_versioning" = xyes; then
  8063. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8064. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8065. echo "local: *; };" >> $output_objdir/$libname.ver~
  8066. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8067. fi
  8068. ;;
  8069. esac
  8070. else
  8071. ld_shlibs=no
  8072. fi
  8073. ;;
  8074. netbsd*)
  8075. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8076. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8077. wlarc=
  8078. else
  8079. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8080. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8081. fi
  8082. ;;
  8083. solaris*)
  8084. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8085. ld_shlibs=no
  8086. cat <<_LT_EOF 1>&2
  8087. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8088. *** create shared libraries on Solaris systems. Therefore, libtool
  8089. *** is disabling shared libraries support. We urge you to upgrade GNU
  8090. *** binutils to release 2.9.1 or newer. Another option is to modify
  8091. *** your PATH or compiler configuration so that the native linker is
  8092. *** used, and then restart.
  8093. _LT_EOF
  8094. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8095. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8096. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8097. else
  8098. ld_shlibs=no
  8099. fi
  8100. ;;
  8101. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8102. case `$LD -v 2>&1` in
  8103. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8104. ld_shlibs=no
  8105. cat <<_LT_EOF 1>&2
  8106. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8107. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8108. *** is disabling shared libraries support. We urge you to upgrade GNU
  8109. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8110. *** your PATH or compiler configuration so that the native linker is
  8111. *** used, and then restart.
  8112. _LT_EOF
  8113. ;;
  8114. *)
  8115. # For security reasons, it is highly recommended that you always
  8116. # use absolute paths for naming shared libraries, and exclude the
  8117. # DT_RUNPATH tag from executables and libraries. But doing so
  8118. # requires that you compile everything twice, which is a pain.
  8119. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8120. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8121. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8122. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8123. else
  8124. ld_shlibs=no
  8125. fi
  8126. ;;
  8127. esac
  8128. ;;
  8129. sunos4*)
  8130. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8131. wlarc=
  8132. hardcode_direct=yes
  8133. hardcode_shlibpath_var=no
  8134. ;;
  8135. *)
  8136. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8137. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8138. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8139. else
  8140. ld_shlibs=no
  8141. fi
  8142. ;;
  8143. esac
  8144. if test "$ld_shlibs" = no; then
  8145. runpath_var=
  8146. hardcode_libdir_flag_spec=
  8147. export_dynamic_flag_spec=
  8148. whole_archive_flag_spec=
  8149. fi
  8150. else
  8151. # PORTME fill in a description of your system's linker (not GNU ld)
  8152. case $host_os in
  8153. aix3*)
  8154. allow_undefined_flag=unsupported
  8155. always_export_symbols=yes
  8156. 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'
  8157. # Note: this linker hardcodes the directories in LIBPATH if there
  8158. # are no directories specified by -L.
  8159. hardcode_minus_L=yes
  8160. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8161. # Neither direct hardcoding nor static linking is supported with a
  8162. # broken collect2.
  8163. hardcode_direct=unsupported
  8164. fi
  8165. ;;
  8166. aix[4-9]*)
  8167. if test "$host_cpu" = ia64; then
  8168. # On IA64, the linker does run time linking by default, so we don't
  8169. # have to do anything special.
  8170. aix_use_runtimelinking=no
  8171. exp_sym_flag='-Bexport'
  8172. no_entry_flag=""
  8173. else
  8174. # If we're using GNU nm, then we don't want the "-C" option.
  8175. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8176. # Also, AIX nm treats weak defined symbols like other global
  8177. # defined symbols, whereas GNU nm marks them as "W".
  8178. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8179. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8180. else
  8181. 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'
  8182. fi
  8183. aix_use_runtimelinking=no
  8184. # Test if we are trying to use run time linking or normal
  8185. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8186. # need to do runtime linking.
  8187. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8188. for ld_flag in $LDFLAGS; do
  8189. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8190. aix_use_runtimelinking=yes
  8191. break
  8192. fi
  8193. done
  8194. ;;
  8195. esac
  8196. exp_sym_flag='-bexport'
  8197. no_entry_flag='-bnoentry'
  8198. fi
  8199. # When large executables or shared objects are built, AIX ld can
  8200. # have problems creating the table of contents. If linking a library
  8201. # or program results in "error TOC overflow" add -mminimal-toc to
  8202. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8203. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8204. archive_cmds=''
  8205. hardcode_direct=yes
  8206. hardcode_direct_absolute=yes
  8207. hardcode_libdir_separator=':'
  8208. link_all_deplibs=yes
  8209. file_list_spec='${wl}-f,'
  8210. if test "$GCC" = yes; then
  8211. case $host_os in aix4.[012]|aix4.[012].*)
  8212. # We only want to do this on AIX 4.2 and lower, the check
  8213. # below for broken collect2 doesn't work under 4.3+
  8214. collect2name=`${CC} -print-prog-name=collect2`
  8215. if test -f "$collect2name" &&
  8216. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8217. then
  8218. # We have reworked collect2
  8219. :
  8220. else
  8221. # We have old collect2
  8222. hardcode_direct=unsupported
  8223. # It fails to find uninstalled libraries when the uninstalled
  8224. # path is not listed in the libpath. Setting hardcode_minus_L
  8225. # to unsupported forces relinking
  8226. hardcode_minus_L=yes
  8227. hardcode_libdir_flag_spec='-L$libdir'
  8228. hardcode_libdir_separator=
  8229. fi
  8230. ;;
  8231. esac
  8232. shared_flag='-shared'
  8233. if test "$aix_use_runtimelinking" = yes; then
  8234. shared_flag="$shared_flag "'${wl}-G'
  8235. fi
  8236. else
  8237. # not using gcc
  8238. if test "$host_cpu" = ia64; then
  8239. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8240. # chokes on -Wl,-G. The following line is correct:
  8241. shared_flag='-G'
  8242. else
  8243. if test "$aix_use_runtimelinking" = yes; then
  8244. shared_flag='${wl}-G'
  8245. else
  8246. shared_flag='${wl}-bM:SRE'
  8247. fi
  8248. fi
  8249. fi
  8250. export_dynamic_flag_spec='${wl}-bexpall'
  8251. # It seems that -bexpall does not export symbols beginning with
  8252. # underscore (_), so it is better to generate a list of symbols to export.
  8253. always_export_symbols=yes
  8254. if test "$aix_use_runtimelinking" = yes; then
  8255. # Warning - without using the other runtime loading flags (-brtl),
  8256. # -berok will link without error, but may produce a broken library.
  8257. allow_undefined_flag='-berok'
  8258. # Determine the default libpath from the value encoded in an
  8259. # empty executable.
  8260. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8261. /* end confdefs.h. */
  8262. int
  8263. main ()
  8264. {
  8265. ;
  8266. return 0;
  8267. }
  8268. _ACEOF
  8269. if ac_fn_c_try_link "$LINENO"; then :
  8270. lt_aix_libpath_sed='
  8271. /Import File Strings/,/^$/ {
  8272. /^0/ {
  8273. s/^0 *\(.*\)$/\1/
  8274. p
  8275. }
  8276. }'
  8277. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8278. # Check for a 64-bit object if we didn't find anything.
  8279. if test -z "$aix_libpath"; then
  8280. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8281. fi
  8282. fi
  8283. rm -f core conftest.err conftest.$ac_objext \
  8284. conftest$ac_exeext conftest.$ac_ext
  8285. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8286. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8287. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8288. else
  8289. if test "$host_cpu" = ia64; then
  8290. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8291. allow_undefined_flag="-z nodefs"
  8292. 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"
  8293. else
  8294. # Determine the default libpath from the value encoded in an
  8295. # empty executable.
  8296. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8297. /* end confdefs.h. */
  8298. int
  8299. main ()
  8300. {
  8301. ;
  8302. return 0;
  8303. }
  8304. _ACEOF
  8305. if ac_fn_c_try_link "$LINENO"; then :
  8306. lt_aix_libpath_sed='
  8307. /Import File Strings/,/^$/ {
  8308. /^0/ {
  8309. s/^0 *\(.*\)$/\1/
  8310. p
  8311. }
  8312. }'
  8313. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8314. # Check for a 64-bit object if we didn't find anything.
  8315. if test -z "$aix_libpath"; then
  8316. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8317. fi
  8318. fi
  8319. rm -f core conftest.err conftest.$ac_objext \
  8320. conftest$ac_exeext conftest.$ac_ext
  8321. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8322. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8323. # Warning - without using the other run time loading flags,
  8324. # -berok will link without error, but may produce a broken library.
  8325. no_undefined_flag=' ${wl}-bernotok'
  8326. allow_undefined_flag=' ${wl}-berok'
  8327. if test "$with_gnu_ld" = yes; then
  8328. # We only use this code for GNU lds that support --whole-archive.
  8329. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8330. else
  8331. # Exported symbols can be pulled into shared objects from archives
  8332. whole_archive_flag_spec='$convenience'
  8333. fi
  8334. archive_cmds_need_lc=yes
  8335. # This is similar to how AIX traditionally builds its shared libraries.
  8336. 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'
  8337. fi
  8338. fi
  8339. ;;
  8340. amigaos*)
  8341. case $host_cpu in
  8342. powerpc)
  8343. # see comment about AmigaOS4 .so support
  8344. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8345. archive_expsym_cmds=''
  8346. ;;
  8347. m68k)
  8348. 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)'
  8349. hardcode_libdir_flag_spec='-L$libdir'
  8350. hardcode_minus_L=yes
  8351. ;;
  8352. esac
  8353. ;;
  8354. bsdi[45]*)
  8355. export_dynamic_flag_spec=-rdynamic
  8356. ;;
  8357. cygwin* | mingw* | pw32* | cegcc*)
  8358. # When not using gcc, we currently assume that we are using
  8359. # Microsoft Visual C++.
  8360. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8361. # no search path for DLLs.
  8362. hardcode_libdir_flag_spec=' '
  8363. allow_undefined_flag=unsupported
  8364. # Tell ltmain to make .lib files, not .a files.
  8365. libext=lib
  8366. # Tell ltmain to make .dll files, not .so files.
  8367. shrext_cmds=".dll"
  8368. # FIXME: Setting linknames here is a bad hack.
  8369. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8370. # The linker will automatically build a .lib file if we build a DLL.
  8371. old_archive_from_new_cmds='true'
  8372. # FIXME: Should let the user specify the lib program.
  8373. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8374. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8375. enable_shared_with_static_runtimes=yes
  8376. ;;
  8377. darwin* | rhapsody*)
  8378. archive_cmds_need_lc=no
  8379. hardcode_direct=no
  8380. hardcode_automatic=yes
  8381. hardcode_shlibpath_var=unsupported
  8382. if test "$lt_cv_ld_force_load" = "yes"; then
  8383. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  8384. else
  8385. whole_archive_flag_spec=''
  8386. fi
  8387. link_all_deplibs=yes
  8388. allow_undefined_flag="$_lt_dar_allow_undefined"
  8389. case $cc_basename in
  8390. ifort*) _lt_dar_can_shared=yes ;;
  8391. *) _lt_dar_can_shared=$GCC ;;
  8392. esac
  8393. if test "$_lt_dar_can_shared" = "yes"; then
  8394. output_verbose_link_cmd=func_echo_all
  8395. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8396. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8397. 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}"
  8398. 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}"
  8399. else
  8400. ld_shlibs=no
  8401. fi
  8402. ;;
  8403. dgux*)
  8404. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8405. hardcode_libdir_flag_spec='-L$libdir'
  8406. hardcode_shlibpath_var=no
  8407. ;;
  8408. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8409. # support. Future versions do this automatically, but an explicit c++rt0.o
  8410. # does not break anything, and helps significantly (at the cost of a little
  8411. # extra space).
  8412. freebsd2.2*)
  8413. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8414. hardcode_libdir_flag_spec='-R$libdir'
  8415. hardcode_direct=yes
  8416. hardcode_shlibpath_var=no
  8417. ;;
  8418. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8419. freebsd2.*)
  8420. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8421. hardcode_direct=yes
  8422. hardcode_minus_L=yes
  8423. hardcode_shlibpath_var=no
  8424. ;;
  8425. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8426. freebsd* | dragonfly*)
  8427. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8428. hardcode_libdir_flag_spec='-R$libdir'
  8429. hardcode_direct=yes
  8430. hardcode_shlibpath_var=no
  8431. ;;
  8432. hpux9*)
  8433. if test "$GCC" = yes; then
  8434. 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'
  8435. else
  8436. 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'
  8437. fi
  8438. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8439. hardcode_libdir_separator=:
  8440. hardcode_direct=yes
  8441. # hardcode_minus_L: Not really in the search PATH,
  8442. # but as the default location of the library.
  8443. hardcode_minus_L=yes
  8444. export_dynamic_flag_spec='${wl}-E'
  8445. ;;
  8446. hpux10*)
  8447. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8448. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8449. else
  8450. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8451. fi
  8452. if test "$with_gnu_ld" = no; then
  8453. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8454. hardcode_libdir_flag_spec_ld='+b $libdir'
  8455. hardcode_libdir_separator=:
  8456. hardcode_direct=yes
  8457. hardcode_direct_absolute=yes
  8458. export_dynamic_flag_spec='${wl}-E'
  8459. # hardcode_minus_L: Not really in the search PATH,
  8460. # but as the default location of the library.
  8461. hardcode_minus_L=yes
  8462. fi
  8463. ;;
  8464. hpux11*)
  8465. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8466. case $host_cpu in
  8467. hppa*64*)
  8468. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8469. ;;
  8470. ia64*)
  8471. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8472. ;;
  8473. *)
  8474. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8475. ;;
  8476. esac
  8477. else
  8478. case $host_cpu in
  8479. hppa*64*)
  8480. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8481. ;;
  8482. ia64*)
  8483. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8484. ;;
  8485. *)
  8486. # Older versions of the 11.00 compiler do not understand -b yet
  8487. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8489. $as_echo_n "checking if $CC understands -b... " >&6; }
  8490. if test "${lt_cv_prog_compiler__b+set}" = set; then :
  8491. $as_echo_n "(cached) " >&6
  8492. else
  8493. lt_cv_prog_compiler__b=no
  8494. save_LDFLAGS="$LDFLAGS"
  8495. LDFLAGS="$LDFLAGS -b"
  8496. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8497. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8498. # The linker can only warn and ignore the option if not recognized
  8499. # So say no if there are warnings
  8500. if test -s conftest.err; then
  8501. # Append any errors to the config.log.
  8502. cat conftest.err 1>&5
  8503. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8504. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8505. if diff conftest.exp conftest.er2 >/dev/null; then
  8506. lt_cv_prog_compiler__b=yes
  8507. fi
  8508. else
  8509. lt_cv_prog_compiler__b=yes
  8510. fi
  8511. fi
  8512. $RM -r conftest*
  8513. LDFLAGS="$save_LDFLAGS"
  8514. fi
  8515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8516. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8517. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8518. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8519. else
  8520. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8521. fi
  8522. ;;
  8523. esac
  8524. fi
  8525. if test "$with_gnu_ld" = no; then
  8526. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8527. hardcode_libdir_separator=:
  8528. case $host_cpu in
  8529. hppa*64*|ia64*)
  8530. hardcode_direct=no
  8531. hardcode_shlibpath_var=no
  8532. ;;
  8533. *)
  8534. hardcode_direct=yes
  8535. hardcode_direct_absolute=yes
  8536. export_dynamic_flag_spec='${wl}-E'
  8537. # hardcode_minus_L: Not really in the search PATH,
  8538. # but as the default location of the library.
  8539. hardcode_minus_L=yes
  8540. ;;
  8541. esac
  8542. fi
  8543. ;;
  8544. irix5* | irix6* | nonstopux*)
  8545. if test "$GCC" = yes; then
  8546. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8547. # Try to use the -exported_symbol ld option, if it does not
  8548. # work, assume that -exports_file does not work either and
  8549. # implicitly export all symbols.
  8550. save_LDFLAGS="$LDFLAGS"
  8551. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8552. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8553. /* end confdefs.h. */
  8554. int foo(void) {}
  8555. _ACEOF
  8556. if ac_fn_c_try_link "$LINENO"; then :
  8557. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  8558. fi
  8559. rm -f core conftest.err conftest.$ac_objext \
  8560. conftest$ac_exeext conftest.$ac_ext
  8561. LDFLAGS="$save_LDFLAGS"
  8562. else
  8563. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8564. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  8565. fi
  8566. archive_cmds_need_lc='no'
  8567. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8568. hardcode_libdir_separator=:
  8569. inherit_rpath=yes
  8570. link_all_deplibs=yes
  8571. ;;
  8572. netbsd*)
  8573. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8574. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8575. else
  8576. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8577. fi
  8578. hardcode_libdir_flag_spec='-R$libdir'
  8579. hardcode_direct=yes
  8580. hardcode_shlibpath_var=no
  8581. ;;
  8582. newsos6)
  8583. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8584. hardcode_direct=yes
  8585. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8586. hardcode_libdir_separator=:
  8587. hardcode_shlibpath_var=no
  8588. ;;
  8589. *nto* | *qnx*)
  8590. ;;
  8591. openbsd*)
  8592. if test -f /usr/libexec/ld.so; then
  8593. hardcode_direct=yes
  8594. hardcode_shlibpath_var=no
  8595. hardcode_direct_absolute=yes
  8596. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8597. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8598. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8599. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8600. export_dynamic_flag_spec='${wl}-E'
  8601. else
  8602. case $host_os in
  8603. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8604. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8605. hardcode_libdir_flag_spec='-R$libdir'
  8606. ;;
  8607. *)
  8608. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8609. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8610. ;;
  8611. esac
  8612. fi
  8613. else
  8614. ld_shlibs=no
  8615. fi
  8616. ;;
  8617. os2*)
  8618. hardcode_libdir_flag_spec='-L$libdir'
  8619. hardcode_minus_L=yes
  8620. allow_undefined_flag=unsupported
  8621. 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'
  8622. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8623. ;;
  8624. osf3*)
  8625. if test "$GCC" = yes; then
  8626. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8627. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8628. else
  8629. allow_undefined_flag=' -expect_unresolved \*'
  8630. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8631. fi
  8632. archive_cmds_need_lc='no'
  8633. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8634. hardcode_libdir_separator=:
  8635. ;;
  8636. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8637. if test "$GCC" = yes; then
  8638. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8639. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8640. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8641. else
  8642. allow_undefined_flag=' -expect_unresolved \*'
  8643. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8644. 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~
  8645. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  8646. # Both c and cxx compiler support -rpath directly
  8647. hardcode_libdir_flag_spec='-rpath $libdir'
  8648. fi
  8649. archive_cmds_need_lc='no'
  8650. hardcode_libdir_separator=:
  8651. ;;
  8652. solaris*)
  8653. no_undefined_flag=' -z defs'
  8654. if test "$GCC" = yes; then
  8655. wlarc='${wl}'
  8656. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8657. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8658. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8659. else
  8660. case `$CC -V 2>&1` in
  8661. *"Compilers 5.0"*)
  8662. wlarc=''
  8663. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8664. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8665. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8666. ;;
  8667. *)
  8668. wlarc='${wl}'
  8669. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8670. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8671. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8672. ;;
  8673. esac
  8674. fi
  8675. hardcode_libdir_flag_spec='-R$libdir'
  8676. hardcode_shlibpath_var=no
  8677. case $host_os in
  8678. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8679. *)
  8680. # The compiler driver will combine and reorder linker options,
  8681. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8682. # but is careful enough not to reorder.
  8683. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8684. if test "$GCC" = yes; then
  8685. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8686. else
  8687. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8688. fi
  8689. ;;
  8690. esac
  8691. link_all_deplibs=yes
  8692. ;;
  8693. sunos4*)
  8694. if test "x$host_vendor" = xsequent; then
  8695. # Use $CC to link under sequent, because it throws in some extra .o
  8696. # files that make .init and .fini sections work.
  8697. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8698. else
  8699. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8700. fi
  8701. hardcode_libdir_flag_spec='-L$libdir'
  8702. hardcode_direct=yes
  8703. hardcode_minus_L=yes
  8704. hardcode_shlibpath_var=no
  8705. ;;
  8706. sysv4)
  8707. case $host_vendor in
  8708. sni)
  8709. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8710. hardcode_direct=yes # is this really true???
  8711. ;;
  8712. siemens)
  8713. ## LD is ld it makes a PLAMLIB
  8714. ## CC just makes a GrossModule.
  8715. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8716. reload_cmds='$CC -r -o $output$reload_objs'
  8717. hardcode_direct=no
  8718. ;;
  8719. motorola)
  8720. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8721. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8722. ;;
  8723. esac
  8724. runpath_var='LD_RUN_PATH'
  8725. hardcode_shlibpath_var=no
  8726. ;;
  8727. sysv4.3*)
  8728. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8729. hardcode_shlibpath_var=no
  8730. export_dynamic_flag_spec='-Bexport'
  8731. ;;
  8732. sysv4*MP*)
  8733. if test -d /usr/nec; then
  8734. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8735. hardcode_shlibpath_var=no
  8736. runpath_var=LD_RUN_PATH
  8737. hardcode_runpath_var=yes
  8738. ld_shlibs=yes
  8739. fi
  8740. ;;
  8741. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8742. no_undefined_flag='${wl}-z,text'
  8743. archive_cmds_need_lc=no
  8744. hardcode_shlibpath_var=no
  8745. runpath_var='LD_RUN_PATH'
  8746. if test "$GCC" = yes; then
  8747. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8748. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8749. else
  8750. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8751. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8752. fi
  8753. ;;
  8754. sysv5* | sco3.2v5* | sco5v6*)
  8755. # Note: We can NOT use -z defs as we might desire, because we do not
  8756. # link with -lc, and that would cause any symbols used from libc to
  8757. # always be unresolved, which means just about no library would
  8758. # ever link correctly. If we're not using GNU ld we use -z text
  8759. # though, which does catch some bad symbols but isn't as heavy-handed
  8760. # as -z defs.
  8761. no_undefined_flag='${wl}-z,text'
  8762. allow_undefined_flag='${wl}-z,nodefs'
  8763. archive_cmds_need_lc=no
  8764. hardcode_shlibpath_var=no
  8765. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8766. hardcode_libdir_separator=':'
  8767. link_all_deplibs=yes
  8768. export_dynamic_flag_spec='${wl}-Bexport'
  8769. runpath_var='LD_RUN_PATH'
  8770. if test "$GCC" = yes; then
  8771. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8772. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8773. else
  8774. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8775. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8776. fi
  8777. ;;
  8778. uts4*)
  8779. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8780. hardcode_libdir_flag_spec='-L$libdir'
  8781. hardcode_shlibpath_var=no
  8782. ;;
  8783. *)
  8784. ld_shlibs=no
  8785. ;;
  8786. esac
  8787. if test x$host_vendor = xsni; then
  8788. case $host in
  8789. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8790. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8791. ;;
  8792. esac
  8793. fi
  8794. fi
  8795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8796. $as_echo "$ld_shlibs" >&6; }
  8797. test "$ld_shlibs" = no && can_build_shared=no
  8798. with_gnu_ld=$with_gnu_ld
  8799. #
  8800. # Do we need to explicitly link libc?
  8801. #
  8802. case "x$archive_cmds_need_lc" in
  8803. x|xyes)
  8804. # Assume -lc should be added
  8805. archive_cmds_need_lc=yes
  8806. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8807. case $archive_cmds in
  8808. *'~'*)
  8809. # FIXME: we may have to deal with multi-command sequences.
  8810. ;;
  8811. '$CC '*)
  8812. # Test whether the compiler implicitly links with -lc since on some
  8813. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8814. # to ld, don't add -lc before -lgcc.
  8815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8816. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8817. if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
  8818. $as_echo_n "(cached) " >&6
  8819. else
  8820. $RM conftest*
  8821. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8822. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8823. (eval $ac_compile) 2>&5
  8824. ac_status=$?
  8825. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8826. test $ac_status = 0; } 2>conftest.err; then
  8827. soname=conftest
  8828. lib=conftest
  8829. libobjs=conftest.$ac_objext
  8830. deplibs=
  8831. wl=$lt_prog_compiler_wl
  8832. pic_flag=$lt_prog_compiler_pic
  8833. compiler_flags=-v
  8834. linker_flags=-v
  8835. verstring=
  8836. output_objdir=.
  8837. libname=conftest
  8838. lt_save_allow_undefined_flag=$allow_undefined_flag
  8839. allow_undefined_flag=
  8840. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8841. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8842. ac_status=$?
  8843. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8844. test $ac_status = 0; }
  8845. then
  8846. lt_cv_archive_cmds_need_lc=no
  8847. else
  8848. lt_cv_archive_cmds_need_lc=yes
  8849. fi
  8850. allow_undefined_flag=$lt_save_allow_undefined_flag
  8851. else
  8852. cat conftest.err 1>&5
  8853. fi
  8854. $RM conftest*
  8855. fi
  8856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8857. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8858. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8859. ;;
  8860. esac
  8861. fi
  8862. ;;
  8863. esac
  8864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8865. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8866. if test "$GCC" = yes; then
  8867. case $host_os in
  8868. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8869. *) lt_awk_arg="/^libraries:/" ;;
  8870. esac
  8871. case $host_os in
  8872. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8873. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8874. esac
  8875. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8876. case $lt_search_path_spec in
  8877. *\;*)
  8878. # if the path contains ";" then we assume it to be the separator
  8879. # otherwise default to the standard path separator (i.e. ":") - it is
  8880. # assumed that no part of a normal pathname contains ";" but that should
  8881. # okay in the real world where ";" in dirpaths is itself problematic.
  8882. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8883. ;;
  8884. *)
  8885. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8886. ;;
  8887. esac
  8888. # Ok, now we have the path, separated by spaces, we can step through it
  8889. # and add multilib dir if necessary.
  8890. lt_tmp_lt_search_path_spec=
  8891. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8892. for lt_sys_path in $lt_search_path_spec; do
  8893. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8894. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8895. else
  8896. test -d "$lt_sys_path" && \
  8897. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8898. fi
  8899. done
  8900. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8901. BEGIN {RS=" "; FS="/|\n";} {
  8902. lt_foo="";
  8903. lt_count=0;
  8904. for (lt_i = NF; lt_i > 0; lt_i--) {
  8905. if ($lt_i != "" && $lt_i != ".") {
  8906. if ($lt_i == "..") {
  8907. lt_count++;
  8908. } else {
  8909. if (lt_count == 0) {
  8910. lt_foo="/" $lt_i lt_foo;
  8911. } else {
  8912. lt_count--;
  8913. }
  8914. }
  8915. }
  8916. }
  8917. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8918. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8919. }'`
  8920. # AWK program above erroneously prepends '/' to C:/dos/paths
  8921. # for these hosts.
  8922. case $host_os in
  8923. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8924. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8925. esac
  8926. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8927. else
  8928. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8929. fi
  8930. library_names_spec=
  8931. libname_spec='lib$name'
  8932. soname_spec=
  8933. shrext_cmds=".so"
  8934. postinstall_cmds=
  8935. postuninstall_cmds=
  8936. finish_cmds=
  8937. finish_eval=
  8938. shlibpath_var=
  8939. shlibpath_overrides_runpath=unknown
  8940. version_type=none
  8941. dynamic_linker="$host_os ld.so"
  8942. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8943. need_lib_prefix=unknown
  8944. hardcode_into_libs=no
  8945. # when you set need_version to no, make sure it does not cause -set_version
  8946. # flags to be left without arguments
  8947. need_version=unknown
  8948. case $host_os in
  8949. aix3*)
  8950. version_type=linux
  8951. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8952. shlibpath_var=LIBPATH
  8953. # AIX 3 has no versioning support, so we append a major version to the name.
  8954. soname_spec='${libname}${release}${shared_ext}$major'
  8955. ;;
  8956. aix[4-9]*)
  8957. version_type=linux
  8958. need_lib_prefix=no
  8959. need_version=no
  8960. hardcode_into_libs=yes
  8961. if test "$host_cpu" = ia64; then
  8962. # AIX 5 supports IA64
  8963. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8964. shlibpath_var=LD_LIBRARY_PATH
  8965. else
  8966. # With GCC up to 2.95.x, collect2 would create an import file
  8967. # for dependence libraries. The import file would start with
  8968. # the line `#! .'. This would cause the generated library to
  8969. # depend on `.', always an invalid library. This was fixed in
  8970. # development snapshots of GCC prior to 3.0.
  8971. case $host_os in
  8972. aix4 | aix4.[01] | aix4.[01].*)
  8973. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8974. echo ' yes '
  8975. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8976. :
  8977. else
  8978. can_build_shared=no
  8979. fi
  8980. ;;
  8981. esac
  8982. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8983. # soname into executable. Probably we can add versioning support to
  8984. # collect2, so additional links can be useful in future.
  8985. if test "$aix_use_runtimelinking" = yes; then
  8986. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8987. # instead of lib<name>.a to let people know that these are not
  8988. # typical AIX shared libraries.
  8989. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8990. else
  8991. # We preserve .a as extension for shared libraries through AIX4.2
  8992. # and later when we are not doing run time linking.
  8993. library_names_spec='${libname}${release}.a $libname.a'
  8994. soname_spec='${libname}${release}${shared_ext}$major'
  8995. fi
  8996. shlibpath_var=LIBPATH
  8997. fi
  8998. ;;
  8999. amigaos*)
  9000. case $host_cpu in
  9001. powerpc)
  9002. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9003. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9004. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9005. ;;
  9006. m68k)
  9007. library_names_spec='$libname.ixlibrary $libname.a'
  9008. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9009. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  9010. ;;
  9011. esac
  9012. ;;
  9013. beos*)
  9014. library_names_spec='${libname}${shared_ext}'
  9015. dynamic_linker="$host_os ld.so"
  9016. shlibpath_var=LIBRARY_PATH
  9017. ;;
  9018. bsdi[45]*)
  9019. version_type=linux
  9020. need_version=no
  9021. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9022. soname_spec='${libname}${release}${shared_ext}$major'
  9023. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9024. shlibpath_var=LD_LIBRARY_PATH
  9025. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9026. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9027. # the default ld.so.conf also contains /usr/contrib/lib and
  9028. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9029. # libtool to hard-code these into programs
  9030. ;;
  9031. cygwin* | mingw* | pw32* | cegcc*)
  9032. version_type=windows
  9033. shrext_cmds=".dll"
  9034. need_version=no
  9035. need_lib_prefix=no
  9036. case $GCC,$host_os in
  9037. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  9038. library_names_spec='$libname.dll.a'
  9039. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9040. postinstall_cmds='base_file=`basename \${file}`~
  9041. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9042. dldir=$destdir/`dirname \$dlpath`~
  9043. test -d \$dldir || mkdir -p \$dldir~
  9044. $install_prog $dir/$dlname \$dldir/$dlname~
  9045. chmod a+x \$dldir/$dlname~
  9046. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9047. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9048. fi'
  9049. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9050. dlpath=$dir/\$dldll~
  9051. $RM \$dlpath'
  9052. shlibpath_overrides_runpath=yes
  9053. case $host_os in
  9054. cygwin*)
  9055. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9056. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9057. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9058. ;;
  9059. mingw* | cegcc*)
  9060. # MinGW DLLs use traditional 'lib' prefix
  9061. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9062. ;;
  9063. pw32*)
  9064. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9065. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9066. ;;
  9067. esac
  9068. ;;
  9069. *)
  9070. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9071. ;;
  9072. esac
  9073. dynamic_linker='Win32 ld.exe'
  9074. # FIXME: first we should search . and the directory the executable is in
  9075. shlibpath_var=PATH
  9076. ;;
  9077. darwin* | rhapsody*)
  9078. dynamic_linker="$host_os dyld"
  9079. version_type=darwin
  9080. need_lib_prefix=no
  9081. need_version=no
  9082. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9083. soname_spec='${libname}${release}${major}$shared_ext'
  9084. shlibpath_overrides_runpath=yes
  9085. shlibpath_var=DYLD_LIBRARY_PATH
  9086. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9087. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9088. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9089. ;;
  9090. dgux*)
  9091. version_type=linux
  9092. need_lib_prefix=no
  9093. need_version=no
  9094. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9095. soname_spec='${libname}${release}${shared_ext}$major'
  9096. shlibpath_var=LD_LIBRARY_PATH
  9097. ;;
  9098. freebsd* | dragonfly*)
  9099. # DragonFly does not have aout. When/if they implement a new
  9100. # versioning mechanism, adjust this.
  9101. if test -x /usr/bin/objformat; then
  9102. objformat=`/usr/bin/objformat`
  9103. else
  9104. case $host_os in
  9105. freebsd[23].*) objformat=aout ;;
  9106. *) objformat=elf ;;
  9107. esac
  9108. fi
  9109. version_type=freebsd-$objformat
  9110. case $version_type in
  9111. freebsd-elf*)
  9112. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9113. need_version=no
  9114. need_lib_prefix=no
  9115. ;;
  9116. freebsd-*)
  9117. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9118. need_version=yes
  9119. ;;
  9120. esac
  9121. shlibpath_var=LD_LIBRARY_PATH
  9122. case $host_os in
  9123. freebsd2.*)
  9124. shlibpath_overrides_runpath=yes
  9125. ;;
  9126. freebsd3.[01]* | freebsdelf3.[01]*)
  9127. shlibpath_overrides_runpath=yes
  9128. hardcode_into_libs=yes
  9129. ;;
  9130. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9131. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9132. shlibpath_overrides_runpath=no
  9133. hardcode_into_libs=yes
  9134. ;;
  9135. *) # from 4.6 on, and DragonFly
  9136. shlibpath_overrides_runpath=yes
  9137. hardcode_into_libs=yes
  9138. ;;
  9139. esac
  9140. ;;
  9141. gnu*)
  9142. version_type=linux
  9143. need_lib_prefix=no
  9144. need_version=no
  9145. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9146. soname_spec='${libname}${release}${shared_ext}$major'
  9147. shlibpath_var=LD_LIBRARY_PATH
  9148. hardcode_into_libs=yes
  9149. ;;
  9150. haiku*)
  9151. version_type=linux
  9152. need_lib_prefix=no
  9153. need_version=no
  9154. dynamic_linker="$host_os runtime_loader"
  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. shlibpath_var=LIBRARY_PATH
  9158. shlibpath_overrides_runpath=yes
  9159. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  9160. hardcode_into_libs=yes
  9161. ;;
  9162. hpux9* | hpux10* | hpux11*)
  9163. # Give a soname corresponding to the major version so that dld.sl refuses to
  9164. # link against other versions.
  9165. version_type=sunos
  9166. need_lib_prefix=no
  9167. need_version=no
  9168. case $host_cpu in
  9169. ia64*)
  9170. shrext_cmds='.so'
  9171. hardcode_into_libs=yes
  9172. dynamic_linker="$host_os dld.so"
  9173. shlibpath_var=LD_LIBRARY_PATH
  9174. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9175. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9176. soname_spec='${libname}${release}${shared_ext}$major'
  9177. if test "X$HPUX_IA64_MODE" = X32; then
  9178. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9179. else
  9180. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9181. fi
  9182. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9183. ;;
  9184. hppa*64*)
  9185. shrext_cmds='.sl'
  9186. hardcode_into_libs=yes
  9187. dynamic_linker="$host_os dld.sl"
  9188. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9189. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9190. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9191. soname_spec='${libname}${release}${shared_ext}$major'
  9192. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9193. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9194. ;;
  9195. *)
  9196. shrext_cmds='.sl'
  9197. dynamic_linker="$host_os dld.sl"
  9198. shlibpath_var=SHLIB_PATH
  9199. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9200. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9201. soname_spec='${libname}${release}${shared_ext}$major'
  9202. ;;
  9203. esac
  9204. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9205. postinstall_cmds='chmod 555 $lib'
  9206. # or fails outright, so override atomically:
  9207. install_override_mode=555
  9208. ;;
  9209. interix[3-9]*)
  9210. version_type=linux
  9211. need_lib_prefix=no
  9212. need_version=no
  9213. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9214. soname_spec='${libname}${release}${shared_ext}$major'
  9215. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9216. shlibpath_var=LD_LIBRARY_PATH
  9217. shlibpath_overrides_runpath=no
  9218. hardcode_into_libs=yes
  9219. ;;
  9220. irix5* | irix6* | nonstopux*)
  9221. case $host_os in
  9222. nonstopux*) version_type=nonstopux ;;
  9223. *)
  9224. if test "$lt_cv_prog_gnu_ld" = yes; then
  9225. version_type=linux
  9226. else
  9227. version_type=irix
  9228. fi ;;
  9229. esac
  9230. need_lib_prefix=no
  9231. need_version=no
  9232. soname_spec='${libname}${release}${shared_ext}$major'
  9233. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9234. case $host_os in
  9235. irix5* | nonstopux*)
  9236. libsuff= shlibsuff=
  9237. ;;
  9238. *)
  9239. case $LD in # libtool.m4 will add one of these switches to LD
  9240. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9241. libsuff= shlibsuff= libmagic=32-bit;;
  9242. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9243. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9244. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9245. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9246. *) libsuff= shlibsuff= libmagic=never-match;;
  9247. esac
  9248. ;;
  9249. esac
  9250. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9251. shlibpath_overrides_runpath=no
  9252. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9253. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9254. hardcode_into_libs=yes
  9255. ;;
  9256. # No shared lib support for Linux oldld, aout, or coff.
  9257. linux*oldld* | linux*aout* | linux*coff*)
  9258. dynamic_linker=no
  9259. ;;
  9260. # This must be Linux ELF.
  9261. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9262. version_type=linux
  9263. need_lib_prefix=no
  9264. need_version=no
  9265. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9266. soname_spec='${libname}${release}${shared_ext}$major'
  9267. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9268. shlibpath_var=LD_LIBRARY_PATH
  9269. shlibpath_overrides_runpath=no
  9270. # Some binutils ld are patched to set DT_RUNPATH
  9271. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  9272. $as_echo_n "(cached) " >&6
  9273. else
  9274. lt_cv_shlibpath_overrides_runpath=no
  9275. save_LDFLAGS=$LDFLAGS
  9276. save_libdir=$libdir
  9277. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9278. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9279. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9280. /* end confdefs.h. */
  9281. int
  9282. main ()
  9283. {
  9284. ;
  9285. return 0;
  9286. }
  9287. _ACEOF
  9288. if ac_fn_c_try_link "$LINENO"; then :
  9289. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9290. lt_cv_shlibpath_overrides_runpath=yes
  9291. fi
  9292. fi
  9293. rm -f core conftest.err conftest.$ac_objext \
  9294. conftest$ac_exeext conftest.$ac_ext
  9295. LDFLAGS=$save_LDFLAGS
  9296. libdir=$save_libdir
  9297. fi
  9298. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9299. # This implies no fast_install, which is unacceptable.
  9300. # Some rework will be needed to allow for fast_install
  9301. # before this can be enabled.
  9302. hardcode_into_libs=yes
  9303. # Append ld.so.conf contents to the search path
  9304. if test -f /etc/ld.so.conf; then
  9305. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  9306. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9307. fi
  9308. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9309. # powerpc, because MkLinux only supported shared libraries with the
  9310. # GNU dynamic linker. Since this was broken with cross compilers,
  9311. # most powerpc-linux boxes support dynamic linking these days and
  9312. # people can always --disable-shared, the test was removed, and we
  9313. # assume the GNU/Linux dynamic linker is in use.
  9314. dynamic_linker='GNU/Linux ld.so'
  9315. ;;
  9316. netbsd*)
  9317. version_type=sunos
  9318. need_lib_prefix=no
  9319. need_version=no
  9320. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9321. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9322. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9323. dynamic_linker='NetBSD (a.out) ld.so'
  9324. else
  9325. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9326. soname_spec='${libname}${release}${shared_ext}$major'
  9327. dynamic_linker='NetBSD ld.elf_so'
  9328. fi
  9329. shlibpath_var=LD_LIBRARY_PATH
  9330. shlibpath_overrides_runpath=yes
  9331. hardcode_into_libs=yes
  9332. ;;
  9333. newsos6)
  9334. version_type=linux
  9335. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9336. shlibpath_var=LD_LIBRARY_PATH
  9337. shlibpath_overrides_runpath=yes
  9338. ;;
  9339. *nto* | *qnx*)
  9340. version_type=qnx
  9341. need_lib_prefix=no
  9342. need_version=no
  9343. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9344. soname_spec='${libname}${release}${shared_ext}$major'
  9345. shlibpath_var=LD_LIBRARY_PATH
  9346. shlibpath_overrides_runpath=no
  9347. hardcode_into_libs=yes
  9348. dynamic_linker='ldqnx.so'
  9349. ;;
  9350. openbsd*)
  9351. version_type=sunos
  9352. sys_lib_dlsearch_path_spec="/usr/lib"
  9353. need_lib_prefix=no
  9354. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9355. case $host_os in
  9356. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9357. *) need_version=no ;;
  9358. esac
  9359. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9360. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9361. shlibpath_var=LD_LIBRARY_PATH
  9362. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9363. case $host_os in
  9364. openbsd2.[89] | openbsd2.[89].*)
  9365. shlibpath_overrides_runpath=no
  9366. ;;
  9367. *)
  9368. shlibpath_overrides_runpath=yes
  9369. ;;
  9370. esac
  9371. else
  9372. shlibpath_overrides_runpath=yes
  9373. fi
  9374. ;;
  9375. os2*)
  9376. libname_spec='$name'
  9377. shrext_cmds=".dll"
  9378. need_lib_prefix=no
  9379. library_names_spec='$libname${shared_ext} $libname.a'
  9380. dynamic_linker='OS/2 ld.exe'
  9381. shlibpath_var=LIBPATH
  9382. ;;
  9383. osf3* | osf4* | osf5*)
  9384. version_type=osf
  9385. need_lib_prefix=no
  9386. need_version=no
  9387. soname_spec='${libname}${release}${shared_ext}$major'
  9388. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9389. shlibpath_var=LD_LIBRARY_PATH
  9390. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9391. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9392. ;;
  9393. rdos*)
  9394. dynamic_linker=no
  9395. ;;
  9396. solaris*)
  9397. version_type=linux
  9398. need_lib_prefix=no
  9399. need_version=no
  9400. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9401. soname_spec='${libname}${release}${shared_ext}$major'
  9402. shlibpath_var=LD_LIBRARY_PATH
  9403. shlibpath_overrides_runpath=yes
  9404. hardcode_into_libs=yes
  9405. # ldd complains unless libraries are executable
  9406. postinstall_cmds='chmod +x $lib'
  9407. ;;
  9408. sunos4*)
  9409. version_type=sunos
  9410. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9411. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9412. shlibpath_var=LD_LIBRARY_PATH
  9413. shlibpath_overrides_runpath=yes
  9414. if test "$with_gnu_ld" = yes; then
  9415. need_lib_prefix=no
  9416. fi
  9417. need_version=yes
  9418. ;;
  9419. sysv4 | sysv4.3*)
  9420. version_type=linux
  9421. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9422. soname_spec='${libname}${release}${shared_ext}$major'
  9423. shlibpath_var=LD_LIBRARY_PATH
  9424. case $host_vendor in
  9425. sni)
  9426. shlibpath_overrides_runpath=no
  9427. need_lib_prefix=no
  9428. runpath_var=LD_RUN_PATH
  9429. ;;
  9430. siemens)
  9431. need_lib_prefix=no
  9432. ;;
  9433. motorola)
  9434. need_lib_prefix=no
  9435. need_version=no
  9436. shlibpath_overrides_runpath=no
  9437. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9438. ;;
  9439. esac
  9440. ;;
  9441. sysv4*MP*)
  9442. if test -d /usr/nec ;then
  9443. version_type=linux
  9444. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9445. soname_spec='$libname${shared_ext}.$major'
  9446. shlibpath_var=LD_LIBRARY_PATH
  9447. fi
  9448. ;;
  9449. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9450. version_type=freebsd-elf
  9451. need_lib_prefix=no
  9452. need_version=no
  9453. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9454. soname_spec='${libname}${release}${shared_ext}$major'
  9455. shlibpath_var=LD_LIBRARY_PATH
  9456. shlibpath_overrides_runpath=yes
  9457. hardcode_into_libs=yes
  9458. if test "$with_gnu_ld" = yes; then
  9459. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9460. else
  9461. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9462. case $host_os in
  9463. sco3.2v5*)
  9464. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9465. ;;
  9466. esac
  9467. fi
  9468. sys_lib_dlsearch_path_spec='/usr/lib'
  9469. ;;
  9470. tpf*)
  9471. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9472. version_type=linux
  9473. need_lib_prefix=no
  9474. need_version=no
  9475. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9476. shlibpath_var=LD_LIBRARY_PATH
  9477. shlibpath_overrides_runpath=no
  9478. hardcode_into_libs=yes
  9479. ;;
  9480. uts4*)
  9481. version_type=linux
  9482. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9483. soname_spec='${libname}${release}${shared_ext}$major'
  9484. shlibpath_var=LD_LIBRARY_PATH
  9485. ;;
  9486. *)
  9487. dynamic_linker=no
  9488. ;;
  9489. esac
  9490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9491. $as_echo "$dynamic_linker" >&6; }
  9492. test "$dynamic_linker" = no && can_build_shared=no
  9493. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9494. if test "$GCC" = yes; then
  9495. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9496. fi
  9497. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9498. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9499. fi
  9500. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9501. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9502. fi
  9503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9504. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9505. hardcode_action=
  9506. if test -n "$hardcode_libdir_flag_spec" ||
  9507. test -n "$runpath_var" ||
  9508. test "X$hardcode_automatic" = "Xyes" ; then
  9509. # We can hardcode non-existent directories.
  9510. if test "$hardcode_direct" != no &&
  9511. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9512. # have to relink, otherwise we might link with an installed library
  9513. # when we should be linking with a yet-to-be-installed one
  9514. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9515. test "$hardcode_minus_L" != no; then
  9516. # Linking always hardcodes the temporary library directory.
  9517. hardcode_action=relink
  9518. else
  9519. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9520. hardcode_action=immediate
  9521. fi
  9522. else
  9523. # We cannot hardcode anything, or else we can only hardcode existing
  9524. # directories.
  9525. hardcode_action=unsupported
  9526. fi
  9527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9528. $as_echo "$hardcode_action" >&6; }
  9529. if test "$hardcode_action" = relink ||
  9530. test "$inherit_rpath" = yes; then
  9531. # Fast installation is not supported
  9532. enable_fast_install=no
  9533. elif test "$shlibpath_overrides_runpath" = yes ||
  9534. test "$enable_shared" = no; then
  9535. # Fast installation is not necessary
  9536. enable_fast_install=needless
  9537. fi
  9538. if test "x$enable_dlopen" != xyes; then
  9539. enable_dlopen=unknown
  9540. enable_dlopen_self=unknown
  9541. enable_dlopen_self_static=unknown
  9542. else
  9543. lt_cv_dlopen=no
  9544. lt_cv_dlopen_libs=
  9545. case $host_os in
  9546. beos*)
  9547. lt_cv_dlopen="load_add_on"
  9548. lt_cv_dlopen_libs=
  9549. lt_cv_dlopen_self=yes
  9550. ;;
  9551. mingw* | pw32* | cegcc*)
  9552. lt_cv_dlopen="LoadLibrary"
  9553. lt_cv_dlopen_libs=
  9554. ;;
  9555. cygwin*)
  9556. lt_cv_dlopen="dlopen"
  9557. lt_cv_dlopen_libs=
  9558. ;;
  9559. darwin*)
  9560. # if libdl is installed we need to link against it
  9561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9562. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9563. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9564. $as_echo_n "(cached) " >&6
  9565. else
  9566. ac_check_lib_save_LIBS=$LIBS
  9567. LIBS="-ldl $LIBS"
  9568. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9569. /* end confdefs.h. */
  9570. /* Override any GCC internal prototype to avoid an error.
  9571. Use char because int might match the return type of a GCC
  9572. builtin and then its argument prototype would still apply. */
  9573. #ifdef __cplusplus
  9574. extern "C"
  9575. #endif
  9576. char dlopen ();
  9577. int
  9578. main ()
  9579. {
  9580. return dlopen ();
  9581. ;
  9582. return 0;
  9583. }
  9584. _ACEOF
  9585. if ac_fn_c_try_link "$LINENO"; then :
  9586. ac_cv_lib_dl_dlopen=yes
  9587. else
  9588. ac_cv_lib_dl_dlopen=no
  9589. fi
  9590. rm -f core conftest.err conftest.$ac_objext \
  9591. conftest$ac_exeext conftest.$ac_ext
  9592. LIBS=$ac_check_lib_save_LIBS
  9593. fi
  9594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9595. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9596. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9597. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9598. else
  9599. lt_cv_dlopen="dyld"
  9600. lt_cv_dlopen_libs=
  9601. lt_cv_dlopen_self=yes
  9602. fi
  9603. ;;
  9604. *)
  9605. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9606. if test "x$ac_cv_func_shl_load" = x""yes; then :
  9607. lt_cv_dlopen="shl_load"
  9608. else
  9609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9610. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9611. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  9612. $as_echo_n "(cached) " >&6
  9613. else
  9614. ac_check_lib_save_LIBS=$LIBS
  9615. LIBS="-ldld $LIBS"
  9616. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9617. /* end confdefs.h. */
  9618. /* Override any GCC internal prototype to avoid an error.
  9619. Use char because int might match the return type of a GCC
  9620. builtin and then its argument prototype would still apply. */
  9621. #ifdef __cplusplus
  9622. extern "C"
  9623. #endif
  9624. char shl_load ();
  9625. int
  9626. main ()
  9627. {
  9628. return shl_load ();
  9629. ;
  9630. return 0;
  9631. }
  9632. _ACEOF
  9633. if ac_fn_c_try_link "$LINENO"; then :
  9634. ac_cv_lib_dld_shl_load=yes
  9635. else
  9636. ac_cv_lib_dld_shl_load=no
  9637. fi
  9638. rm -f core conftest.err conftest.$ac_objext \
  9639. conftest$ac_exeext conftest.$ac_ext
  9640. LIBS=$ac_check_lib_save_LIBS
  9641. fi
  9642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9643. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9644. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  9645. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9646. else
  9647. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9648. if test "x$ac_cv_func_dlopen" = x""yes; then :
  9649. lt_cv_dlopen="dlopen"
  9650. else
  9651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9652. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9653. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9654. $as_echo_n "(cached) " >&6
  9655. else
  9656. ac_check_lib_save_LIBS=$LIBS
  9657. LIBS="-ldl $LIBS"
  9658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9659. /* end confdefs.h. */
  9660. /* Override any GCC internal prototype to avoid an error.
  9661. Use char because int might match the return type of a GCC
  9662. builtin and then its argument prototype would still apply. */
  9663. #ifdef __cplusplus
  9664. extern "C"
  9665. #endif
  9666. char dlopen ();
  9667. int
  9668. main ()
  9669. {
  9670. return dlopen ();
  9671. ;
  9672. return 0;
  9673. }
  9674. _ACEOF
  9675. if ac_fn_c_try_link "$LINENO"; then :
  9676. ac_cv_lib_dl_dlopen=yes
  9677. else
  9678. ac_cv_lib_dl_dlopen=no
  9679. fi
  9680. rm -f core conftest.err conftest.$ac_objext \
  9681. conftest$ac_exeext conftest.$ac_ext
  9682. LIBS=$ac_check_lib_save_LIBS
  9683. fi
  9684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9685. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9686. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9687. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9688. else
  9689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9690. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9691. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  9692. $as_echo_n "(cached) " >&6
  9693. else
  9694. ac_check_lib_save_LIBS=$LIBS
  9695. LIBS="-lsvld $LIBS"
  9696. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9697. /* end confdefs.h. */
  9698. /* Override any GCC internal prototype to avoid an error.
  9699. Use char because int might match the return type of a GCC
  9700. builtin and then its argument prototype would still apply. */
  9701. #ifdef __cplusplus
  9702. extern "C"
  9703. #endif
  9704. char dlopen ();
  9705. int
  9706. main ()
  9707. {
  9708. return dlopen ();
  9709. ;
  9710. return 0;
  9711. }
  9712. _ACEOF
  9713. if ac_fn_c_try_link "$LINENO"; then :
  9714. ac_cv_lib_svld_dlopen=yes
  9715. else
  9716. ac_cv_lib_svld_dlopen=no
  9717. fi
  9718. rm -f core conftest.err conftest.$ac_objext \
  9719. conftest$ac_exeext conftest.$ac_ext
  9720. LIBS=$ac_check_lib_save_LIBS
  9721. fi
  9722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9723. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9724. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  9725. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9726. else
  9727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9728. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9729. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  9730. $as_echo_n "(cached) " >&6
  9731. else
  9732. ac_check_lib_save_LIBS=$LIBS
  9733. LIBS="-ldld $LIBS"
  9734. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9735. /* end confdefs.h. */
  9736. /* Override any GCC internal prototype to avoid an error.
  9737. Use char because int might match the return type of a GCC
  9738. builtin and then its argument prototype would still apply. */
  9739. #ifdef __cplusplus
  9740. extern "C"
  9741. #endif
  9742. char dld_link ();
  9743. int
  9744. main ()
  9745. {
  9746. return dld_link ();
  9747. ;
  9748. return 0;
  9749. }
  9750. _ACEOF
  9751. if ac_fn_c_try_link "$LINENO"; then :
  9752. ac_cv_lib_dld_dld_link=yes
  9753. else
  9754. ac_cv_lib_dld_dld_link=no
  9755. fi
  9756. rm -f core conftest.err conftest.$ac_objext \
  9757. conftest$ac_exeext conftest.$ac_ext
  9758. LIBS=$ac_check_lib_save_LIBS
  9759. fi
  9760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9761. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9762. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  9763. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9764. fi
  9765. fi
  9766. fi
  9767. fi
  9768. fi
  9769. fi
  9770. ;;
  9771. esac
  9772. if test "x$lt_cv_dlopen" != xno; then
  9773. enable_dlopen=yes
  9774. else
  9775. enable_dlopen=no
  9776. fi
  9777. case $lt_cv_dlopen in
  9778. dlopen)
  9779. save_CPPFLAGS="$CPPFLAGS"
  9780. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9781. save_LDFLAGS="$LDFLAGS"
  9782. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9783. save_LIBS="$LIBS"
  9784. LIBS="$lt_cv_dlopen_libs $LIBS"
  9785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9786. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9787. if test "${lt_cv_dlopen_self+set}" = set; then :
  9788. $as_echo_n "(cached) " >&6
  9789. else
  9790. if test "$cross_compiling" = yes; then :
  9791. lt_cv_dlopen_self=cross
  9792. else
  9793. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9794. lt_status=$lt_dlunknown
  9795. cat > conftest.$ac_ext <<_LT_EOF
  9796. #line 11373 "configure"
  9797. #include "confdefs.h"
  9798. #if HAVE_DLFCN_H
  9799. #include <dlfcn.h>
  9800. #endif
  9801. #include <stdio.h>
  9802. #ifdef RTLD_GLOBAL
  9803. # define LT_DLGLOBAL RTLD_GLOBAL
  9804. #else
  9805. # ifdef DL_GLOBAL
  9806. # define LT_DLGLOBAL DL_GLOBAL
  9807. # else
  9808. # define LT_DLGLOBAL 0
  9809. # endif
  9810. #endif
  9811. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9812. find out it does not work in some platform. */
  9813. #ifndef LT_DLLAZY_OR_NOW
  9814. # ifdef RTLD_LAZY
  9815. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9816. # else
  9817. # ifdef DL_LAZY
  9818. # define LT_DLLAZY_OR_NOW DL_LAZY
  9819. # else
  9820. # ifdef RTLD_NOW
  9821. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9822. # else
  9823. # ifdef DL_NOW
  9824. # define LT_DLLAZY_OR_NOW DL_NOW
  9825. # else
  9826. # define LT_DLLAZY_OR_NOW 0
  9827. # endif
  9828. # endif
  9829. # endif
  9830. # endif
  9831. #endif
  9832. /* When -fvisbility=hidden is used, assume the code has been annotated
  9833. correspondingly for the symbols needed. */
  9834. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9835. void fnord () __attribute__((visibility("default")));
  9836. #endif
  9837. void fnord () { int i=42; }
  9838. int main ()
  9839. {
  9840. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9841. int status = $lt_dlunknown;
  9842. if (self)
  9843. {
  9844. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9845. else
  9846. {
  9847. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9848. else puts (dlerror ());
  9849. }
  9850. /* dlclose (self); */
  9851. }
  9852. else
  9853. puts (dlerror ());
  9854. return status;
  9855. }
  9856. _LT_EOF
  9857. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9858. (eval $ac_link) 2>&5
  9859. ac_status=$?
  9860. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9861. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9862. (./conftest; exit; ) >&5 2>/dev/null
  9863. lt_status=$?
  9864. case x$lt_status in
  9865. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9866. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9867. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9868. esac
  9869. else :
  9870. # compilation failed
  9871. lt_cv_dlopen_self=no
  9872. fi
  9873. fi
  9874. rm -fr conftest*
  9875. fi
  9876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9877. $as_echo "$lt_cv_dlopen_self" >&6; }
  9878. if test "x$lt_cv_dlopen_self" = xyes; then
  9879. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9881. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9882. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  9883. $as_echo_n "(cached) " >&6
  9884. else
  9885. if test "$cross_compiling" = yes; then :
  9886. lt_cv_dlopen_self_static=cross
  9887. else
  9888. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9889. lt_status=$lt_dlunknown
  9890. cat > conftest.$ac_ext <<_LT_EOF
  9891. #line 11479 "configure"
  9892. #include "confdefs.h"
  9893. #if HAVE_DLFCN_H
  9894. #include <dlfcn.h>
  9895. #endif
  9896. #include <stdio.h>
  9897. #ifdef RTLD_GLOBAL
  9898. # define LT_DLGLOBAL RTLD_GLOBAL
  9899. #else
  9900. # ifdef DL_GLOBAL
  9901. # define LT_DLGLOBAL DL_GLOBAL
  9902. # else
  9903. # define LT_DLGLOBAL 0
  9904. # endif
  9905. #endif
  9906. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9907. find out it does not work in some platform. */
  9908. #ifndef LT_DLLAZY_OR_NOW
  9909. # ifdef RTLD_LAZY
  9910. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9911. # else
  9912. # ifdef DL_LAZY
  9913. # define LT_DLLAZY_OR_NOW DL_LAZY
  9914. # else
  9915. # ifdef RTLD_NOW
  9916. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9917. # else
  9918. # ifdef DL_NOW
  9919. # define LT_DLLAZY_OR_NOW DL_NOW
  9920. # else
  9921. # define LT_DLLAZY_OR_NOW 0
  9922. # endif
  9923. # endif
  9924. # endif
  9925. # endif
  9926. #endif
  9927. /* When -fvisbility=hidden is used, assume the code has been annotated
  9928. correspondingly for the symbols needed. */
  9929. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9930. void fnord () __attribute__((visibility("default")));
  9931. #endif
  9932. void fnord () { int i=42; }
  9933. int main ()
  9934. {
  9935. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9936. int status = $lt_dlunknown;
  9937. if (self)
  9938. {
  9939. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9940. else
  9941. {
  9942. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9943. else puts (dlerror ());
  9944. }
  9945. /* dlclose (self); */
  9946. }
  9947. else
  9948. puts (dlerror ());
  9949. return status;
  9950. }
  9951. _LT_EOF
  9952. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9953. (eval $ac_link) 2>&5
  9954. ac_status=$?
  9955. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9956. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9957. (./conftest; exit; ) >&5 2>/dev/null
  9958. lt_status=$?
  9959. case x$lt_status in
  9960. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9961. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9962. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9963. esac
  9964. else :
  9965. # compilation failed
  9966. lt_cv_dlopen_self_static=no
  9967. fi
  9968. fi
  9969. rm -fr conftest*
  9970. fi
  9971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9972. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9973. fi
  9974. CPPFLAGS="$save_CPPFLAGS"
  9975. LDFLAGS="$save_LDFLAGS"
  9976. LIBS="$save_LIBS"
  9977. ;;
  9978. esac
  9979. case $lt_cv_dlopen_self in
  9980. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9981. *) enable_dlopen_self=unknown ;;
  9982. esac
  9983. case $lt_cv_dlopen_self_static in
  9984. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9985. *) enable_dlopen_self_static=unknown ;;
  9986. esac
  9987. fi
  9988. striplib=
  9989. old_striplib=
  9990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9991. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9992. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9993. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9994. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9996. $as_echo "yes" >&6; }
  9997. else
  9998. # FIXME - insert some real tests, host_os isn't really good enough
  9999. case $host_os in
  10000. darwin*)
  10001. if test -n "$STRIP" ; then
  10002. striplib="$STRIP -x"
  10003. old_striplib="$STRIP -S"
  10004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10005. $as_echo "yes" >&6; }
  10006. else
  10007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10008. $as_echo "no" >&6; }
  10009. fi
  10010. ;;
  10011. *)
  10012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10013. $as_echo "no" >&6; }
  10014. ;;
  10015. esac
  10016. fi
  10017. # Report which library types will actually be built
  10018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10019. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10021. $as_echo "$can_build_shared" >&6; }
  10022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10023. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10024. test "$can_build_shared" = "no" && enable_shared=no
  10025. # On AIX, shared libraries and static libraries use the same namespace, and
  10026. # are all built from PIC.
  10027. case $host_os in
  10028. aix3*)
  10029. test "$enable_shared" = yes && enable_static=no
  10030. if test -n "$RANLIB"; then
  10031. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10032. postinstall_cmds='$RANLIB $lib'
  10033. fi
  10034. ;;
  10035. aix[4-9]*)
  10036. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10037. test "$enable_shared" = yes && enable_static=no
  10038. fi
  10039. ;;
  10040. esac
  10041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10042. $as_echo "$enable_shared" >&6; }
  10043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10044. $as_echo_n "checking whether to build static libraries... " >&6; }
  10045. # Make sure either enable_shared or enable_static is yes.
  10046. test "$enable_shared" = yes || enable_static=yes
  10047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10048. $as_echo "$enable_static" >&6; }
  10049. fi
  10050. ac_ext=c
  10051. ac_cpp='$CPP $CPPFLAGS'
  10052. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10053. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10054. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10055. CC="$lt_save_CC"
  10056. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10057. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10058. (test "X$CXX" != "Xg++"))) ; then
  10059. ac_ext=cpp
  10060. ac_cpp='$CXXCPP $CPPFLAGS'
  10061. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10062. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10063. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10065. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10066. if test -z "$CXXCPP"; then
  10067. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  10068. $as_echo_n "(cached) " >&6
  10069. else
  10070. # Double quotes because CXXCPP needs to be expanded
  10071. for CXXCPP in "$CXX -E" "/lib/cpp"
  10072. do
  10073. ac_preproc_ok=false
  10074. for ac_cxx_preproc_warn_flag in '' yes
  10075. do
  10076. # Use a header file that comes with gcc, so configuring glibc
  10077. # with a fresh cross-compiler works.
  10078. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10079. # <limits.h> exists even on freestanding compilers.
  10080. # On the NeXT, cc -E runs the code through the compiler's parser,
  10081. # not just through cpp. "Syntax error" is here to catch this case.
  10082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10083. /* end confdefs.h. */
  10084. #ifdef __STDC__
  10085. # include <limits.h>
  10086. #else
  10087. # include <assert.h>
  10088. #endif
  10089. Syntax error
  10090. _ACEOF
  10091. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10092. else
  10093. # Broken: fails on valid input.
  10094. continue
  10095. fi
  10096. rm -f conftest.err conftest.$ac_ext
  10097. # OK, works on sane cases. Now check whether nonexistent headers
  10098. # can be detected and how.
  10099. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10100. /* end confdefs.h. */
  10101. #include <ac_nonexistent.h>
  10102. _ACEOF
  10103. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10104. # Broken: success on invalid input.
  10105. continue
  10106. else
  10107. # Passes both tests.
  10108. ac_preproc_ok=:
  10109. break
  10110. fi
  10111. rm -f conftest.err conftest.$ac_ext
  10112. done
  10113. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10114. rm -f conftest.err conftest.$ac_ext
  10115. if $ac_preproc_ok; then :
  10116. break
  10117. fi
  10118. done
  10119. ac_cv_prog_CXXCPP=$CXXCPP
  10120. fi
  10121. CXXCPP=$ac_cv_prog_CXXCPP
  10122. else
  10123. ac_cv_prog_CXXCPP=$CXXCPP
  10124. fi
  10125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10126. $as_echo "$CXXCPP" >&6; }
  10127. ac_preproc_ok=false
  10128. for ac_cxx_preproc_warn_flag in '' yes
  10129. do
  10130. # Use a header file that comes with gcc, so configuring glibc
  10131. # with a fresh cross-compiler works.
  10132. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10133. # <limits.h> exists even on freestanding compilers.
  10134. # On the NeXT, cc -E runs the code through the compiler's parser,
  10135. # not just through cpp. "Syntax error" is here to catch this case.
  10136. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10137. /* end confdefs.h. */
  10138. #ifdef __STDC__
  10139. # include <limits.h>
  10140. #else
  10141. # include <assert.h>
  10142. #endif
  10143. Syntax error
  10144. _ACEOF
  10145. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10146. else
  10147. # Broken: fails on valid input.
  10148. continue
  10149. fi
  10150. rm -f conftest.err conftest.$ac_ext
  10151. # OK, works on sane cases. Now check whether nonexistent headers
  10152. # can be detected and how.
  10153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10154. /* end confdefs.h. */
  10155. #include <ac_nonexistent.h>
  10156. _ACEOF
  10157. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10158. # Broken: success on invalid input.
  10159. continue
  10160. else
  10161. # Passes both tests.
  10162. ac_preproc_ok=:
  10163. break
  10164. fi
  10165. rm -f conftest.err conftest.$ac_ext
  10166. done
  10167. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10168. rm -f conftest.err conftest.$ac_ext
  10169. if $ac_preproc_ok; then :
  10170. else
  10171. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10172. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10173. as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
  10174. See \`config.log' for more details." "$LINENO" 5; }
  10175. fi
  10176. ac_ext=c
  10177. ac_cpp='$CPP $CPPFLAGS'
  10178. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10179. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10180. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10181. else
  10182. _lt_caught_CXX_error=yes
  10183. fi
  10184. ac_ext=cpp
  10185. ac_cpp='$CXXCPP $CPPFLAGS'
  10186. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10187. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10188. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10189. archive_cmds_need_lc_CXX=no
  10190. allow_undefined_flag_CXX=
  10191. always_export_symbols_CXX=no
  10192. archive_expsym_cmds_CXX=
  10193. compiler_needs_object_CXX=no
  10194. export_dynamic_flag_spec_CXX=
  10195. hardcode_direct_CXX=no
  10196. hardcode_direct_absolute_CXX=no
  10197. hardcode_libdir_flag_spec_CXX=
  10198. hardcode_libdir_flag_spec_ld_CXX=
  10199. hardcode_libdir_separator_CXX=
  10200. hardcode_minus_L_CXX=no
  10201. hardcode_shlibpath_var_CXX=unsupported
  10202. hardcode_automatic_CXX=no
  10203. inherit_rpath_CXX=no
  10204. module_cmds_CXX=
  10205. module_expsym_cmds_CXX=
  10206. link_all_deplibs_CXX=unknown
  10207. old_archive_cmds_CXX=$old_archive_cmds
  10208. reload_flag_CXX=$reload_flag
  10209. reload_cmds_CXX=$reload_cmds
  10210. no_undefined_flag_CXX=
  10211. whole_archive_flag_spec_CXX=
  10212. enable_shared_with_static_runtimes_CXX=no
  10213. # Source file extension for C++ test sources.
  10214. ac_ext=cpp
  10215. # Object file extension for compiled C++ test sources.
  10216. objext=o
  10217. objext_CXX=$objext
  10218. # No sense in running all these tests if we already determined that
  10219. # the CXX compiler isn't working. Some variables (like enable_shared)
  10220. # are currently assumed to apply to all compilers on this platform,
  10221. # and will be corrupted by setting them based on a non-working compiler.
  10222. if test "$_lt_caught_CXX_error" != yes; then
  10223. # Code to be used in simple compile tests
  10224. lt_simple_compile_test_code="int some_variable = 0;"
  10225. # Code to be used in simple link tests
  10226. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10227. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10228. # If no C compiler was specified, use CC.
  10229. LTCC=${LTCC-"$CC"}
  10230. # If no C compiler flags were specified, use CFLAGS.
  10231. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10232. # Allow CC to be a program name with arguments.
  10233. compiler=$CC
  10234. # save warnings/boilerplate of simple test code
  10235. ac_outfile=conftest.$ac_objext
  10236. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10237. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10238. _lt_compiler_boilerplate=`cat conftest.err`
  10239. $RM conftest*
  10240. ac_outfile=conftest.$ac_objext
  10241. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10242. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10243. _lt_linker_boilerplate=`cat conftest.err`
  10244. $RM -r conftest*
  10245. # Allow CC to be a program name with arguments.
  10246. lt_save_CC=$CC
  10247. lt_save_LD=$LD
  10248. lt_save_GCC=$GCC
  10249. GCC=$GXX
  10250. lt_save_with_gnu_ld=$with_gnu_ld
  10251. lt_save_path_LD=$lt_cv_path_LD
  10252. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10253. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10254. else
  10255. $as_unset lt_cv_prog_gnu_ld
  10256. fi
  10257. if test -n "${lt_cv_path_LDCXX+set}"; then
  10258. lt_cv_path_LD=$lt_cv_path_LDCXX
  10259. else
  10260. $as_unset lt_cv_path_LD
  10261. fi
  10262. test -z "${LDCXX+set}" || LD=$LDCXX
  10263. CC=${CXX-"c++"}
  10264. compiler=$CC
  10265. compiler_CXX=$CC
  10266. for cc_temp in $compiler""; do
  10267. case $cc_temp in
  10268. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10269. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10270. \-*) ;;
  10271. *) break;;
  10272. esac
  10273. done
  10274. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10275. if test -n "$compiler"; then
  10276. # We don't want -fno-exception when compiling C++ code, so set the
  10277. # no_builtin_flag separately
  10278. if test "$GXX" = yes; then
  10279. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10280. else
  10281. lt_prog_compiler_no_builtin_flag_CXX=
  10282. fi
  10283. if test "$GXX" = yes; then
  10284. # Set up default GNU C++ configuration
  10285. # Check whether --with-gnu-ld was given.
  10286. if test "${with_gnu_ld+set}" = set; then :
  10287. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10288. else
  10289. with_gnu_ld=no
  10290. fi
  10291. ac_prog=ld
  10292. if test "$GCC" = yes; then
  10293. # Check if gcc -print-prog-name=ld gives a path.
  10294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10295. $as_echo_n "checking for ld used by $CC... " >&6; }
  10296. case $host in
  10297. *-*-mingw*)
  10298. # gcc leaves a trailing carriage return which upsets mingw
  10299. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10300. *)
  10301. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10302. esac
  10303. case $ac_prog in
  10304. # Accept absolute paths.
  10305. [\\/]* | ?:[\\/]*)
  10306. re_direlt='/[^/][^/]*/\.\./'
  10307. # Canonicalize the pathname of ld
  10308. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10309. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10310. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10311. done
  10312. test -z "$LD" && LD="$ac_prog"
  10313. ;;
  10314. "")
  10315. # If it fails, then pretend we aren't using GCC.
  10316. ac_prog=ld
  10317. ;;
  10318. *)
  10319. # If it is relative, then search for the first ld in PATH.
  10320. with_gnu_ld=unknown
  10321. ;;
  10322. esac
  10323. elif test "$with_gnu_ld" = yes; then
  10324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10325. $as_echo_n "checking for GNU ld... " >&6; }
  10326. else
  10327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10328. $as_echo_n "checking for non-GNU ld... " >&6; }
  10329. fi
  10330. if test "${lt_cv_path_LD+set}" = set; then :
  10331. $as_echo_n "(cached) " >&6
  10332. else
  10333. if test -z "$LD"; then
  10334. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10335. for ac_dir in $PATH; do
  10336. IFS="$lt_save_ifs"
  10337. test -z "$ac_dir" && ac_dir=.
  10338. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10339. lt_cv_path_LD="$ac_dir/$ac_prog"
  10340. # Check to see if the program is GNU ld. I'd rather use --version,
  10341. # but apparently some variants of GNU ld only accept -v.
  10342. # Break only if it was the GNU/non-GNU ld that we prefer.
  10343. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10344. *GNU* | *'with BFD'*)
  10345. test "$with_gnu_ld" != no && break
  10346. ;;
  10347. *)
  10348. test "$with_gnu_ld" != yes && break
  10349. ;;
  10350. esac
  10351. fi
  10352. done
  10353. IFS="$lt_save_ifs"
  10354. else
  10355. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10356. fi
  10357. fi
  10358. LD="$lt_cv_path_LD"
  10359. if test -n "$LD"; then
  10360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10361. $as_echo "$LD" >&6; }
  10362. else
  10363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10364. $as_echo "no" >&6; }
  10365. fi
  10366. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  10367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10368. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10369. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  10370. $as_echo_n "(cached) " >&6
  10371. else
  10372. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10373. case `$LD -v 2>&1 </dev/null` in
  10374. *GNU* | *'with BFD'*)
  10375. lt_cv_prog_gnu_ld=yes
  10376. ;;
  10377. *)
  10378. lt_cv_prog_gnu_ld=no
  10379. ;;
  10380. esac
  10381. fi
  10382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10383. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10384. with_gnu_ld=$lt_cv_prog_gnu_ld
  10385. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10386. # archiving commands below assume that GNU ld is being used.
  10387. if test "$with_gnu_ld" = yes; then
  10388. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10389. archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10390. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10391. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10392. # If archive_cmds runs LD, not CC, wlarc should be empty
  10393. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10394. # investigate it a little bit more. (MM)
  10395. wlarc='${wl}'
  10396. # ancient GNU ld didn't support --whole-archive et. al.
  10397. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10398. $GREP 'no-whole-archive' > /dev/null; then
  10399. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10400. else
  10401. whole_archive_flag_spec_CXX=
  10402. fi
  10403. else
  10404. with_gnu_ld=no
  10405. wlarc=
  10406. # A generic and very simple default shared library creation
  10407. # command for GNU C++ for the case where it uses the native
  10408. # linker, instead of GNU ld. If possible, this setting should
  10409. # overridden to take advantage of the native linker features on
  10410. # the platform it is being used on.
  10411. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10412. fi
  10413. # Commands to make compiler produce verbose output that lists
  10414. # what "hidden" libraries, object files and flags are used when
  10415. # linking a shared library.
  10416. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10417. else
  10418. GXX=no
  10419. with_gnu_ld=no
  10420. wlarc=
  10421. fi
  10422. # PORTME: fill in a description of your system's C++ link characteristics
  10423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10424. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10425. ld_shlibs_CXX=yes
  10426. case $host_os in
  10427. aix3*)
  10428. # FIXME: insert proper C++ library support
  10429. ld_shlibs_CXX=no
  10430. ;;
  10431. aix[4-9]*)
  10432. if test "$host_cpu" = ia64; then
  10433. # On IA64, the linker does run time linking by default, so we don't
  10434. # have to do anything special.
  10435. aix_use_runtimelinking=no
  10436. exp_sym_flag='-Bexport'
  10437. no_entry_flag=""
  10438. else
  10439. aix_use_runtimelinking=no
  10440. # Test if we are trying to use run time linking or normal
  10441. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10442. # need to do runtime linking.
  10443. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10444. for ld_flag in $LDFLAGS; do
  10445. case $ld_flag in
  10446. *-brtl*)
  10447. aix_use_runtimelinking=yes
  10448. break
  10449. ;;
  10450. esac
  10451. done
  10452. ;;
  10453. esac
  10454. exp_sym_flag='-bexport'
  10455. no_entry_flag='-bnoentry'
  10456. fi
  10457. # When large executables or shared objects are built, AIX ld can
  10458. # have problems creating the table of contents. If linking a library
  10459. # or program results in "error TOC overflow" add -mminimal-toc to
  10460. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10461. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10462. archive_cmds_CXX=''
  10463. hardcode_direct_CXX=yes
  10464. hardcode_direct_absolute_CXX=yes
  10465. hardcode_libdir_separator_CXX=':'
  10466. link_all_deplibs_CXX=yes
  10467. file_list_spec_CXX='${wl}-f,'
  10468. if test "$GXX" = yes; then
  10469. case $host_os in aix4.[012]|aix4.[012].*)
  10470. # We only want to do this on AIX 4.2 and lower, the check
  10471. # below for broken collect2 doesn't work under 4.3+
  10472. collect2name=`${CC} -print-prog-name=collect2`
  10473. if test -f "$collect2name" &&
  10474. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10475. then
  10476. # We have reworked collect2
  10477. :
  10478. else
  10479. # We have old collect2
  10480. hardcode_direct_CXX=unsupported
  10481. # It fails to find uninstalled libraries when the uninstalled
  10482. # path is not listed in the libpath. Setting hardcode_minus_L
  10483. # to unsupported forces relinking
  10484. hardcode_minus_L_CXX=yes
  10485. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10486. hardcode_libdir_separator_CXX=
  10487. fi
  10488. esac
  10489. shared_flag='-shared'
  10490. if test "$aix_use_runtimelinking" = yes; then
  10491. shared_flag="$shared_flag "'${wl}-G'
  10492. fi
  10493. else
  10494. # not using gcc
  10495. if test "$host_cpu" = ia64; then
  10496. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10497. # chokes on -Wl,-G. The following line is correct:
  10498. shared_flag='-G'
  10499. else
  10500. if test "$aix_use_runtimelinking" = yes; then
  10501. shared_flag='${wl}-G'
  10502. else
  10503. shared_flag='${wl}-bM:SRE'
  10504. fi
  10505. fi
  10506. fi
  10507. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10508. # It seems that -bexpall does not export symbols beginning with
  10509. # underscore (_), so it is better to generate a list of symbols to
  10510. # export.
  10511. always_export_symbols_CXX=yes
  10512. if test "$aix_use_runtimelinking" = yes; then
  10513. # Warning - without using the other runtime loading flags (-brtl),
  10514. # -berok will link without error, but may produce a broken library.
  10515. allow_undefined_flag_CXX='-berok'
  10516. # Determine the default libpath from the value encoded in an empty
  10517. # executable.
  10518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10519. /* end confdefs.h. */
  10520. int
  10521. main ()
  10522. {
  10523. ;
  10524. return 0;
  10525. }
  10526. _ACEOF
  10527. if ac_fn_cxx_try_link "$LINENO"; then :
  10528. lt_aix_libpath_sed='
  10529. /Import File Strings/,/^$/ {
  10530. /^0/ {
  10531. s/^0 *\(.*\)$/\1/
  10532. p
  10533. }
  10534. }'
  10535. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10536. # Check for a 64-bit object if we didn't find anything.
  10537. if test -z "$aix_libpath"; then
  10538. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10539. fi
  10540. fi
  10541. rm -f core conftest.err conftest.$ac_objext \
  10542. conftest$ac_exeext conftest.$ac_ext
  10543. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10544. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10545. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  10546. else
  10547. if test "$host_cpu" = ia64; then
  10548. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10549. allow_undefined_flag_CXX="-z nodefs"
  10550. 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"
  10551. else
  10552. # Determine the default libpath from the value encoded in an
  10553. # empty executable.
  10554. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10555. /* end confdefs.h. */
  10556. int
  10557. main ()
  10558. {
  10559. ;
  10560. return 0;
  10561. }
  10562. _ACEOF
  10563. if ac_fn_cxx_try_link "$LINENO"; then :
  10564. lt_aix_libpath_sed='
  10565. /Import File Strings/,/^$/ {
  10566. /^0/ {
  10567. s/^0 *\(.*\)$/\1/
  10568. p
  10569. }
  10570. }'
  10571. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10572. # Check for a 64-bit object if we didn't find anything.
  10573. if test -z "$aix_libpath"; then
  10574. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10575. fi
  10576. fi
  10577. rm -f core conftest.err conftest.$ac_objext \
  10578. conftest$ac_exeext conftest.$ac_ext
  10579. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10580. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10581. # Warning - without using the other run time loading flags,
  10582. # -berok will link without error, but may produce a broken library.
  10583. no_undefined_flag_CXX=' ${wl}-bernotok'
  10584. allow_undefined_flag_CXX=' ${wl}-berok'
  10585. if test "$with_gnu_ld" = yes; then
  10586. # We only use this code for GNU lds that support --whole-archive.
  10587. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10588. else
  10589. # Exported symbols can be pulled into shared objects from archives
  10590. whole_archive_flag_spec_CXX='$convenience'
  10591. fi
  10592. archive_cmds_need_lc_CXX=yes
  10593. # This is similar to how AIX traditionally builds its shared
  10594. # libraries.
  10595. 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'
  10596. fi
  10597. fi
  10598. ;;
  10599. beos*)
  10600. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10601. allow_undefined_flag_CXX=unsupported
  10602. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  10603. # support --undefined. This deserves some investigation. FIXME
  10604. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10605. else
  10606. ld_shlibs_CXX=no
  10607. fi
  10608. ;;
  10609. chorus*)
  10610. case $cc_basename in
  10611. *)
  10612. # FIXME: insert proper C++ library support
  10613. ld_shlibs_CXX=no
  10614. ;;
  10615. esac
  10616. ;;
  10617. cygwin* | mingw* | pw32* | cegcc*)
  10618. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  10619. # as there is no search path for DLLs.
  10620. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10621. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  10622. allow_undefined_flag_CXX=unsupported
  10623. always_export_symbols_CXX=no
  10624. enable_shared_with_static_runtimes_CXX=yes
  10625. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  10626. 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'
  10627. # If the export-symbols file already is a .def file (1st line
  10628. # is EXPORTS), use it as is; otherwise, prepend...
  10629. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10630. cp $export_symbols $output_objdir/$soname.def;
  10631. else
  10632. echo EXPORTS > $output_objdir/$soname.def;
  10633. cat $export_symbols >> $output_objdir/$soname.def;
  10634. fi~
  10635. $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'
  10636. else
  10637. ld_shlibs_CXX=no
  10638. fi
  10639. ;;
  10640. darwin* | rhapsody*)
  10641. archive_cmds_need_lc_CXX=no
  10642. hardcode_direct_CXX=no
  10643. hardcode_automatic_CXX=yes
  10644. hardcode_shlibpath_var_CXX=unsupported
  10645. if test "$lt_cv_ld_force_load" = "yes"; then
  10646. whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  10647. else
  10648. whole_archive_flag_spec_CXX=''
  10649. fi
  10650. link_all_deplibs_CXX=yes
  10651. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  10652. case $cc_basename in
  10653. ifort*) _lt_dar_can_shared=yes ;;
  10654. *) _lt_dar_can_shared=$GCC ;;
  10655. esac
  10656. if test "$_lt_dar_can_shared" = "yes"; then
  10657. output_verbose_link_cmd=func_echo_all
  10658. 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}"
  10659. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  10660. 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}"
  10661. 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}"
  10662. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  10663. 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}"
  10664. 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}"
  10665. fi
  10666. else
  10667. ld_shlibs_CXX=no
  10668. fi
  10669. ;;
  10670. dgux*)
  10671. case $cc_basename in
  10672. ec++*)
  10673. # FIXME: insert proper C++ library support
  10674. ld_shlibs_CXX=no
  10675. ;;
  10676. ghcx*)
  10677. # Green Hills C++ Compiler
  10678. # FIXME: insert proper C++ library support
  10679. ld_shlibs_CXX=no
  10680. ;;
  10681. *)
  10682. # FIXME: insert proper C++ library support
  10683. ld_shlibs_CXX=no
  10684. ;;
  10685. esac
  10686. ;;
  10687. freebsd2.*)
  10688. # C++ shared libraries reported to be fairly broken before
  10689. # switch to ELF
  10690. ld_shlibs_CXX=no
  10691. ;;
  10692. freebsd-elf*)
  10693. archive_cmds_need_lc_CXX=no
  10694. ;;
  10695. freebsd* | dragonfly*)
  10696. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10697. # conventions
  10698. ld_shlibs_CXX=yes
  10699. ;;
  10700. gnu*)
  10701. ;;
  10702. haiku*)
  10703. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10704. link_all_deplibs_CXX=yes
  10705. ;;
  10706. hpux9*)
  10707. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10708. hardcode_libdir_separator_CXX=:
  10709. export_dynamic_flag_spec_CXX='${wl}-E'
  10710. hardcode_direct_CXX=yes
  10711. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10712. # but as the default
  10713. # location of the library.
  10714. case $cc_basename in
  10715. CC*)
  10716. # FIXME: insert proper C++ library support
  10717. ld_shlibs_CXX=no
  10718. ;;
  10719. aCC*)
  10720. 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'
  10721. # Commands to make compiler produce verbose output that lists
  10722. # what "hidden" libraries, object files and flags are used when
  10723. # linking a shared library.
  10724. #
  10725. # There doesn't appear to be a way to prevent this compiler from
  10726. # explicitly linking system object files so we need to strip them
  10727. # from the output so that they don't get included in the library
  10728. # dependencies.
  10729. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  10730. ;;
  10731. *)
  10732. if test "$GXX" = yes; then
  10733. 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'
  10734. else
  10735. # FIXME: insert proper C++ library support
  10736. ld_shlibs_CXX=no
  10737. fi
  10738. ;;
  10739. esac
  10740. ;;
  10741. hpux10*|hpux11*)
  10742. if test $with_gnu_ld = no; then
  10743. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10744. hardcode_libdir_separator_CXX=:
  10745. case $host_cpu in
  10746. hppa*64*|ia64*)
  10747. ;;
  10748. *)
  10749. export_dynamic_flag_spec_CXX='${wl}-E'
  10750. ;;
  10751. esac
  10752. fi
  10753. case $host_cpu in
  10754. hppa*64*|ia64*)
  10755. hardcode_direct_CXX=no
  10756. hardcode_shlibpath_var_CXX=no
  10757. ;;
  10758. *)
  10759. hardcode_direct_CXX=yes
  10760. hardcode_direct_absolute_CXX=yes
  10761. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10762. # but as the default
  10763. # location of the library.
  10764. ;;
  10765. esac
  10766. case $cc_basename in
  10767. CC*)
  10768. # FIXME: insert proper C++ library support
  10769. ld_shlibs_CXX=no
  10770. ;;
  10771. aCC*)
  10772. case $host_cpu in
  10773. hppa*64*)
  10774. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10775. ;;
  10776. ia64*)
  10777. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10778. ;;
  10779. *)
  10780. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10781. ;;
  10782. esac
  10783. # Commands to make compiler produce verbose output that lists
  10784. # what "hidden" libraries, object files and flags are used when
  10785. # linking a shared library.
  10786. #
  10787. # There doesn't appear to be a way to prevent this compiler from
  10788. # explicitly linking system object files so we need to strip them
  10789. # from the output so that they don't get included in the library
  10790. # dependencies.
  10791. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  10792. ;;
  10793. *)
  10794. if test "$GXX" = yes; then
  10795. if test $with_gnu_ld = no; then
  10796. case $host_cpu in
  10797. hppa*64*)
  10798. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10799. ;;
  10800. ia64*)
  10801. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10802. ;;
  10803. *)
  10804. 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'
  10805. ;;
  10806. esac
  10807. fi
  10808. else
  10809. # FIXME: insert proper C++ library support
  10810. ld_shlibs_CXX=no
  10811. fi
  10812. ;;
  10813. esac
  10814. ;;
  10815. interix[3-9]*)
  10816. hardcode_direct_CXX=no
  10817. hardcode_shlibpath_var_CXX=no
  10818. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10819. export_dynamic_flag_spec_CXX='${wl}-E'
  10820. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10821. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10822. # default) and relocated if they conflict, which is a slow very memory
  10823. # consuming and fragmenting process. To avoid this, we pick a random,
  10824. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10825. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10826. 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'
  10827. 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'
  10828. ;;
  10829. irix5* | irix6*)
  10830. case $cc_basename in
  10831. CC*)
  10832. # SGI C++
  10833. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  10834. # Archives containing C++ object files must be created using
  10835. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10836. # necessary to make sure instantiated templates are included
  10837. # in the archive.
  10838. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10839. ;;
  10840. *)
  10841. if test "$GXX" = yes; then
  10842. if test "$with_gnu_ld" = no; then
  10843. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10844. else
  10845. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
  10846. fi
  10847. fi
  10848. link_all_deplibs_CXX=yes
  10849. ;;
  10850. esac
  10851. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10852. hardcode_libdir_separator_CXX=:
  10853. inherit_rpath_CXX=yes
  10854. ;;
  10855. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  10856. case $cc_basename in
  10857. KCC*)
  10858. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10859. # KCC will only create a shared library if the output file
  10860. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10861. # to its proper name (with version) after linking.
  10862. 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'
  10863. 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'
  10864. # Commands to make compiler produce verbose output that lists
  10865. # what "hidden" libraries, object files and flags are used when
  10866. # linking a shared library.
  10867. #
  10868. # There doesn't appear to be a way to prevent this compiler from
  10869. # explicitly linking system object files so we need to strip them
  10870. # from the output so that they don't get included in the library
  10871. # dependencies.
  10872. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  10873. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10874. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10875. # Archives containing C++ object files must be created using
  10876. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10877. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10878. ;;
  10879. icpc* | ecpc* )
  10880. # Intel C++
  10881. with_gnu_ld=yes
  10882. # version 8.0 and above of icpc choke on multiply defined symbols
  10883. # if we add $predep_objects and $postdep_objects, however 7.1 and
  10884. # earlier do not add the objects themselves.
  10885. case `$CC -V 2>&1` in
  10886. *"Version 7."*)
  10887. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10888. 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'
  10889. ;;
  10890. *) # Version 8.0 or newer
  10891. tmp_idyn=
  10892. case $host_cpu in
  10893. ia64*) tmp_idyn=' -i_dynamic';;
  10894. esac
  10895. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10896. 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'
  10897. ;;
  10898. esac
  10899. archive_cmds_need_lc_CXX=no
  10900. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10901. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10902. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10903. ;;
  10904. pgCC* | pgcpp*)
  10905. # Portland Group C++ compiler
  10906. case `$CC -V` in
  10907. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  10908. prelink_cmds_CXX='tpldir=Template.dir~
  10909. rm -rf $tpldir~
  10910. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  10911. compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  10912. old_archive_cmds_CXX='tpldir=Template.dir~
  10913. rm -rf $tpldir~
  10914. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  10915. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  10916. $RANLIB $oldlib'
  10917. archive_cmds_CXX='tpldir=Template.dir~
  10918. rm -rf $tpldir~
  10919. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10920. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10921. archive_expsym_cmds_CXX='tpldir=Template.dir~
  10922. rm -rf $tpldir~
  10923. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10924. $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'
  10925. ;;
  10926. *) # Version 6 and above use weak symbols
  10927. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10928. 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'
  10929. ;;
  10930. esac
  10931. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10932. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10933. whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  10934. ;;
  10935. cxx*)
  10936. # Compaq C++
  10937. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10938. 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'
  10939. runpath_var=LD_RUN_PATH
  10940. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10941. hardcode_libdir_separator_CXX=:
  10942. # Commands to make compiler produce verbose output that lists
  10943. # what "hidden" libraries, object files and flags are used when
  10944. # linking a shared library.
  10945. #
  10946. # There doesn't appear to be a way to prevent this compiler from
  10947. # explicitly linking system object files so we need to strip them
  10948. # from the output so that they don't get included in the library
  10949. # dependencies.
  10950. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
  10951. ;;
  10952. xl* | mpixl* | bgxl*)
  10953. # IBM XL 8.0 on PPC, with GNU ld
  10954. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10955. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10956. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10957. if test "x$supports_anon_versioning" = xyes; then
  10958. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  10959. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10960. echo "local: *; };" >> $output_objdir/$libname.ver~
  10961. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  10962. fi
  10963. ;;
  10964. *)
  10965. case `$CC -V 2>&1 | sed 5q` in
  10966. *Sun\ C*)
  10967. # Sun C++ 5.9
  10968. no_undefined_flag_CXX=' -zdefs'
  10969. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10970. 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'
  10971. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10972. whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  10973. compiler_needs_object_CXX=yes
  10974. # Not sure whether something based on
  10975. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  10976. # would be better.
  10977. output_verbose_link_cmd='func_echo_all'
  10978. # Archives containing C++ object files must be created using
  10979. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10980. # necessary to make sure instantiated templates are included
  10981. # in the archive.
  10982. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10983. ;;
  10984. esac
  10985. ;;
  10986. esac
  10987. ;;
  10988. lynxos*)
  10989. # FIXME: insert proper C++ library support
  10990. ld_shlibs_CXX=no
  10991. ;;
  10992. m88k*)
  10993. # FIXME: insert proper C++ library support
  10994. ld_shlibs_CXX=no
  10995. ;;
  10996. mvs*)
  10997. case $cc_basename in
  10998. cxx*)
  10999. # FIXME: insert proper C++ library support
  11000. ld_shlibs_CXX=no
  11001. ;;
  11002. *)
  11003. # FIXME: insert proper C++ library support
  11004. ld_shlibs_CXX=no
  11005. ;;
  11006. esac
  11007. ;;
  11008. netbsd*)
  11009. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11010. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11011. wlarc=
  11012. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11013. hardcode_direct_CXX=yes
  11014. hardcode_shlibpath_var_CXX=no
  11015. fi
  11016. # Workaround some broken pre-1.5 toolchains
  11017. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11018. ;;
  11019. *nto* | *qnx*)
  11020. ld_shlibs_CXX=yes
  11021. ;;
  11022. openbsd2*)
  11023. # C++ shared libraries are fairly broken
  11024. ld_shlibs_CXX=no
  11025. ;;
  11026. openbsd*)
  11027. if test -f /usr/libexec/ld.so; then
  11028. hardcode_direct_CXX=yes
  11029. hardcode_shlibpath_var_CXX=no
  11030. hardcode_direct_absolute_CXX=yes
  11031. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11032. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11033. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11034. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11035. export_dynamic_flag_spec_CXX='${wl}-E'
  11036. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11037. fi
  11038. output_verbose_link_cmd=func_echo_all
  11039. else
  11040. ld_shlibs_CXX=no
  11041. fi
  11042. ;;
  11043. osf3* | osf4* | osf5*)
  11044. case $cc_basename in
  11045. KCC*)
  11046. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11047. # KCC will only create a shared library if the output file
  11048. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11049. # to its proper name (with version) after linking.
  11050. 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'
  11051. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11052. hardcode_libdir_separator_CXX=:
  11053. # Archives containing C++ object files must be created using
  11054. # the KAI C++ compiler.
  11055. case $host in
  11056. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11057. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11058. esac
  11059. ;;
  11060. RCC*)
  11061. # Rational C++ 2.4.1
  11062. # FIXME: insert proper C++ library support
  11063. ld_shlibs_CXX=no
  11064. ;;
  11065. cxx*)
  11066. case $host in
  11067. osf3*)
  11068. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11069. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11070. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11071. ;;
  11072. *)
  11073. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11074. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11075. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11076. echo "-hidden">> $lib.exp~
  11077. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
  11078. $RM $lib.exp'
  11079. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11080. ;;
  11081. esac
  11082. hardcode_libdir_separator_CXX=:
  11083. # Commands to make compiler produce verbose output that lists
  11084. # what "hidden" libraries, object files and flags are used when
  11085. # linking a shared library.
  11086. #
  11087. # There doesn't appear to be a way to prevent this compiler from
  11088. # explicitly linking system object files so we need to strip them
  11089. # from the output so that they don't get included in the library
  11090. # dependencies.
  11091. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11092. ;;
  11093. *)
  11094. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11095. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11096. case $host in
  11097. osf3*)
  11098. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11099. ;;
  11100. *)
  11101. 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" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11102. ;;
  11103. esac
  11104. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11105. hardcode_libdir_separator_CXX=:
  11106. # Commands to make compiler produce verbose output that lists
  11107. # what "hidden" libraries, object files and flags are used when
  11108. # linking a shared library.
  11109. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11110. else
  11111. # FIXME: insert proper C++ library support
  11112. ld_shlibs_CXX=no
  11113. fi
  11114. ;;
  11115. esac
  11116. ;;
  11117. psos*)
  11118. # FIXME: insert proper C++ library support
  11119. ld_shlibs_CXX=no
  11120. ;;
  11121. sunos4*)
  11122. case $cc_basename in
  11123. CC*)
  11124. # Sun C++ 4.x
  11125. # FIXME: insert proper C++ library support
  11126. ld_shlibs_CXX=no
  11127. ;;
  11128. lcc*)
  11129. # Lucid
  11130. # FIXME: insert proper C++ library support
  11131. ld_shlibs_CXX=no
  11132. ;;
  11133. *)
  11134. # FIXME: insert proper C++ library support
  11135. ld_shlibs_CXX=no
  11136. ;;
  11137. esac
  11138. ;;
  11139. solaris*)
  11140. case $cc_basename in
  11141. CC*)
  11142. # Sun C++ 4.2, 5.x and Centerline C++
  11143. archive_cmds_need_lc_CXX=yes
  11144. no_undefined_flag_CXX=' -zdefs'
  11145. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11146. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11147. $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'
  11148. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11149. hardcode_shlibpath_var_CXX=no
  11150. case $host_os in
  11151. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11152. *)
  11153. # The compiler driver will combine and reorder linker options,
  11154. # but understands `-z linker_flag'.
  11155. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11156. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11157. ;;
  11158. esac
  11159. link_all_deplibs_CXX=yes
  11160. output_verbose_link_cmd='func_echo_all'
  11161. # Archives containing C++ object files must be created using
  11162. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11163. # necessary to make sure instantiated templates are included
  11164. # in the archive.
  11165. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11166. ;;
  11167. gcx*)
  11168. # Green Hills C++ Compiler
  11169. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11170. # The C++ compiler must be used to create the archive.
  11171. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11172. ;;
  11173. *)
  11174. # GNU C++ compiler with Solaris linker
  11175. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11176. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11177. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11178. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11179. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11180. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11181. # Commands to make compiler produce verbose output that lists
  11182. # what "hidden" libraries, object files and flags are used when
  11183. # linking a shared library.
  11184. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11185. else
  11186. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11187. # platform.
  11188. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11189. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11190. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11191. # Commands to make compiler produce verbose output that lists
  11192. # what "hidden" libraries, object files and flags are used when
  11193. # linking a shared library.
  11194. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11195. fi
  11196. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11197. case $host_os in
  11198. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11199. *)
  11200. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11201. ;;
  11202. esac
  11203. fi
  11204. ;;
  11205. esac
  11206. ;;
  11207. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11208. no_undefined_flag_CXX='${wl}-z,text'
  11209. archive_cmds_need_lc_CXX=no
  11210. hardcode_shlibpath_var_CXX=no
  11211. runpath_var='LD_RUN_PATH'
  11212. case $cc_basename in
  11213. CC*)
  11214. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11215. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11216. ;;
  11217. *)
  11218. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11219. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11220. ;;
  11221. esac
  11222. ;;
  11223. sysv5* | sco3.2v5* | sco5v6*)
  11224. # Note: We can NOT use -z defs as we might desire, because we do not
  11225. # link with -lc, and that would cause any symbols used from libc to
  11226. # always be unresolved, which means just about no library would
  11227. # ever link correctly. If we're not using GNU ld we use -z text
  11228. # though, which does catch some bad symbols but isn't as heavy-handed
  11229. # as -z defs.
  11230. no_undefined_flag_CXX='${wl}-z,text'
  11231. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11232. archive_cmds_need_lc_CXX=no
  11233. hardcode_shlibpath_var_CXX=no
  11234. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11235. hardcode_libdir_separator_CXX=':'
  11236. link_all_deplibs_CXX=yes
  11237. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11238. runpath_var='LD_RUN_PATH'
  11239. case $cc_basename in
  11240. CC*)
  11241. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11242. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11243. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11244. '"$old_archive_cmds_CXX"
  11245. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11246. '"$reload_cmds_CXX"
  11247. ;;
  11248. *)
  11249. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11250. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11251. ;;
  11252. esac
  11253. ;;
  11254. tandem*)
  11255. case $cc_basename in
  11256. NCC*)
  11257. # NonStop-UX NCC 3.20
  11258. # FIXME: insert proper C++ library support
  11259. ld_shlibs_CXX=no
  11260. ;;
  11261. *)
  11262. # FIXME: insert proper C++ library support
  11263. ld_shlibs_CXX=no
  11264. ;;
  11265. esac
  11266. ;;
  11267. vxworks*)
  11268. # FIXME: insert proper C++ library support
  11269. ld_shlibs_CXX=no
  11270. ;;
  11271. *)
  11272. # FIXME: insert proper C++ library support
  11273. ld_shlibs_CXX=no
  11274. ;;
  11275. esac
  11276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11277. $as_echo "$ld_shlibs_CXX" >&6; }
  11278. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11279. GCC_CXX="$GXX"
  11280. LD_CXX="$LD"
  11281. ## CAVEAT EMPTOR:
  11282. ## There is no encapsulation within the following macros, do not change
  11283. ## the running order or otherwise move them around unless you know exactly
  11284. ## what you are doing...
  11285. # Dependencies to place before and after the object being linked:
  11286. predep_objects_CXX=
  11287. postdep_objects_CXX=
  11288. predeps_CXX=
  11289. postdeps_CXX=
  11290. compiler_lib_search_path_CXX=
  11291. cat > conftest.$ac_ext <<_LT_EOF
  11292. class Foo
  11293. {
  11294. public:
  11295. Foo (void) { a = 0; }
  11296. private:
  11297. int a;
  11298. };
  11299. _LT_EOF
  11300. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11301. (eval $ac_compile) 2>&5
  11302. ac_status=$?
  11303. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11304. test $ac_status = 0; }; then
  11305. # Parse the compiler output and extract the necessary
  11306. # objects, libraries and library flags.
  11307. # Sentinel used to keep track of whether or not we are before
  11308. # the conftest object file.
  11309. pre_test_object_deps_done=no
  11310. for p in `eval "$output_verbose_link_cmd"`; do
  11311. case $p in
  11312. -L* | -R* | -l*)
  11313. # Some compilers place space between "-{L,R}" and the path.
  11314. # Remove the space.
  11315. if test $p = "-L" ||
  11316. test $p = "-R"; then
  11317. prev=$p
  11318. continue
  11319. else
  11320. prev=
  11321. fi
  11322. if test "$pre_test_object_deps_done" = no; then
  11323. case $p in
  11324. -L* | -R*)
  11325. # Internal compiler library paths should come after those
  11326. # provided the user. The postdeps already come after the
  11327. # user supplied libs so there is no need to process them.
  11328. if test -z "$compiler_lib_search_path_CXX"; then
  11329. compiler_lib_search_path_CXX="${prev}${p}"
  11330. else
  11331. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11332. fi
  11333. ;;
  11334. # The "-l" case would never come before the object being
  11335. # linked, so don't bother handling this case.
  11336. esac
  11337. else
  11338. if test -z "$postdeps_CXX"; then
  11339. postdeps_CXX="${prev}${p}"
  11340. else
  11341. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11342. fi
  11343. fi
  11344. ;;
  11345. *.$objext)
  11346. # This assumes that the test object file only shows up
  11347. # once in the compiler output.
  11348. if test "$p" = "conftest.$objext"; then
  11349. pre_test_object_deps_done=yes
  11350. continue
  11351. fi
  11352. if test "$pre_test_object_deps_done" = no; then
  11353. if test -z "$predep_objects_CXX"; then
  11354. predep_objects_CXX="$p"
  11355. else
  11356. predep_objects_CXX="$predep_objects_CXX $p"
  11357. fi
  11358. else
  11359. if test -z "$postdep_objects_CXX"; then
  11360. postdep_objects_CXX="$p"
  11361. else
  11362. postdep_objects_CXX="$postdep_objects_CXX $p"
  11363. fi
  11364. fi
  11365. ;;
  11366. *) ;; # Ignore the rest.
  11367. esac
  11368. done
  11369. # Clean up.
  11370. rm -f a.out a.exe
  11371. else
  11372. echo "libtool.m4: error: problem compiling CXX test program"
  11373. fi
  11374. $RM -f confest.$objext
  11375. # PORTME: override above test on systems where it is broken
  11376. case $host_os in
  11377. interix[3-9]*)
  11378. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11379. # hack all around it, let's just trust "g++" to DTRT.
  11380. predep_objects_CXX=
  11381. postdep_objects_CXX=
  11382. postdeps_CXX=
  11383. ;;
  11384. linux*)
  11385. case `$CC -V 2>&1 | sed 5q` in
  11386. *Sun\ C*)
  11387. # Sun C++ 5.9
  11388. # The more standards-conforming stlport4 library is
  11389. # incompatible with the Cstd library. Avoid specifying
  11390. # it if it's in CXXFLAGS. Ignore libCrun as
  11391. # -library=stlport4 depends on it.
  11392. case " $CXX $CXXFLAGS " in
  11393. *" -library=stlport4 "*)
  11394. solaris_use_stlport4=yes
  11395. ;;
  11396. esac
  11397. if test "$solaris_use_stlport4" != yes; then
  11398. postdeps_CXX='-library=Cstd -library=Crun'
  11399. fi
  11400. ;;
  11401. esac
  11402. ;;
  11403. solaris*)
  11404. case $cc_basename in
  11405. CC*)
  11406. # The more standards-conforming stlport4 library is
  11407. # incompatible with the Cstd library. Avoid specifying
  11408. # it if it's in CXXFLAGS. Ignore libCrun as
  11409. # -library=stlport4 depends on it.
  11410. case " $CXX $CXXFLAGS " in
  11411. *" -library=stlport4 "*)
  11412. solaris_use_stlport4=yes
  11413. ;;
  11414. esac
  11415. # Adding this requires a known-good setup of shared libraries for
  11416. # Sun compiler versions before 5.6, else PIC objects from an old
  11417. # archive will be linked into the output, leading to subtle bugs.
  11418. if test "$solaris_use_stlport4" != yes; then
  11419. postdeps_CXX='-library=Cstd -library=Crun'
  11420. fi
  11421. ;;
  11422. esac
  11423. ;;
  11424. esac
  11425. case " $postdeps_CXX " in
  11426. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11427. esac
  11428. compiler_lib_search_dirs_CXX=
  11429. if test -n "${compiler_lib_search_path_CXX}"; then
  11430. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11431. fi
  11432. lt_prog_compiler_wl_CXX=
  11433. lt_prog_compiler_pic_CXX=
  11434. lt_prog_compiler_static_CXX=
  11435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  11436. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  11437. # C++ specific cases for pic, static, wl, etc.
  11438. if test "$GXX" = yes; then
  11439. lt_prog_compiler_wl_CXX='-Wl,'
  11440. lt_prog_compiler_static_CXX='-static'
  11441. case $host_os in
  11442. aix*)
  11443. # All AIX code is PIC.
  11444. if test "$host_cpu" = ia64; then
  11445. # AIX 5 now supports IA64 processor
  11446. lt_prog_compiler_static_CXX='-Bstatic'
  11447. fi
  11448. lt_prog_compiler_pic_CXX='-fPIC'
  11449. ;;
  11450. amigaos*)
  11451. case $host_cpu in
  11452. powerpc)
  11453. # see comment about AmigaOS4 .so support
  11454. lt_prog_compiler_pic_CXX='-fPIC'
  11455. ;;
  11456. m68k)
  11457. # FIXME: we need at least 68020 code to build shared libraries, but
  11458. # adding the `-m68020' flag to GCC prevents building anything better,
  11459. # like `-m68040'.
  11460. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11461. ;;
  11462. esac
  11463. ;;
  11464. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11465. # PIC is the default for these OSes.
  11466. ;;
  11467. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11468. # This hack is so that the source file can tell whether it is being
  11469. # built for inclusion in a dll (and should export symbols for example).
  11470. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11471. # (--disable-auto-import) libraries
  11472. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11473. ;;
  11474. darwin* | rhapsody*)
  11475. # PIC is the default on this platform
  11476. # Common symbols not allowed in MH_DYLIB files
  11477. lt_prog_compiler_pic_CXX='-fno-common'
  11478. ;;
  11479. *djgpp*)
  11480. # DJGPP does not support shared libraries at all
  11481. lt_prog_compiler_pic_CXX=
  11482. ;;
  11483. haiku*)
  11484. # PIC is the default for Haiku.
  11485. # The "-static" flag exists, but is broken.
  11486. lt_prog_compiler_static_CXX=
  11487. ;;
  11488. interix[3-9]*)
  11489. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11490. # Instead, we relocate shared libraries at runtime.
  11491. ;;
  11492. sysv4*MP*)
  11493. if test -d /usr/nec; then
  11494. lt_prog_compiler_pic_CXX=-Kconform_pic
  11495. fi
  11496. ;;
  11497. hpux*)
  11498. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11499. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  11500. # sets the default TLS model and affects inlining.
  11501. case $host_cpu in
  11502. hppa*64*)
  11503. ;;
  11504. *)
  11505. lt_prog_compiler_pic_CXX='-fPIC'
  11506. ;;
  11507. esac
  11508. ;;
  11509. *qnx* | *nto*)
  11510. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11511. # it will coredump.
  11512. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11513. ;;
  11514. *)
  11515. lt_prog_compiler_pic_CXX='-fPIC'
  11516. ;;
  11517. esac
  11518. else
  11519. case $host_os in
  11520. aix[4-9]*)
  11521. # All AIX code is PIC.
  11522. if test "$host_cpu" = ia64; then
  11523. # AIX 5 now supports IA64 processor
  11524. lt_prog_compiler_static_CXX='-Bstatic'
  11525. else
  11526. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11527. fi
  11528. ;;
  11529. chorus*)
  11530. case $cc_basename in
  11531. cxch68*)
  11532. # Green Hills C++ Compiler
  11533. # _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"
  11534. ;;
  11535. esac
  11536. ;;
  11537. dgux*)
  11538. case $cc_basename in
  11539. ec++*)
  11540. lt_prog_compiler_pic_CXX='-KPIC'
  11541. ;;
  11542. ghcx*)
  11543. # Green Hills C++ Compiler
  11544. lt_prog_compiler_pic_CXX='-pic'
  11545. ;;
  11546. *)
  11547. ;;
  11548. esac
  11549. ;;
  11550. freebsd* | dragonfly*)
  11551. # FreeBSD uses GNU C++
  11552. ;;
  11553. hpux9* | hpux10* | hpux11*)
  11554. case $cc_basename in
  11555. CC*)
  11556. lt_prog_compiler_wl_CXX='-Wl,'
  11557. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11558. if test "$host_cpu" != ia64; then
  11559. lt_prog_compiler_pic_CXX='+Z'
  11560. fi
  11561. ;;
  11562. aCC*)
  11563. lt_prog_compiler_wl_CXX='-Wl,'
  11564. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11565. case $host_cpu in
  11566. hppa*64*|ia64*)
  11567. # +Z the default
  11568. ;;
  11569. *)
  11570. lt_prog_compiler_pic_CXX='+Z'
  11571. ;;
  11572. esac
  11573. ;;
  11574. *)
  11575. ;;
  11576. esac
  11577. ;;
  11578. interix*)
  11579. # This is c89, which is MS Visual C++ (no shared libs)
  11580. # Anyone wants to do a port?
  11581. ;;
  11582. irix5* | irix6* | nonstopux*)
  11583. case $cc_basename in
  11584. CC*)
  11585. lt_prog_compiler_wl_CXX='-Wl,'
  11586. lt_prog_compiler_static_CXX='-non_shared'
  11587. # CC pic flag -KPIC is the default.
  11588. ;;
  11589. *)
  11590. ;;
  11591. esac
  11592. ;;
  11593. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11594. case $cc_basename in
  11595. KCC*)
  11596. # KAI C++ Compiler
  11597. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11598. lt_prog_compiler_pic_CXX='-fPIC'
  11599. ;;
  11600. ecpc* )
  11601. # old Intel C++ for x86_64 which still supported -KPIC.
  11602. lt_prog_compiler_wl_CXX='-Wl,'
  11603. lt_prog_compiler_pic_CXX='-KPIC'
  11604. lt_prog_compiler_static_CXX='-static'
  11605. ;;
  11606. icpc* )
  11607. # Intel C++, used to be incompatible with GCC.
  11608. # ICC 10 doesn't accept -KPIC any more.
  11609. lt_prog_compiler_wl_CXX='-Wl,'
  11610. lt_prog_compiler_pic_CXX='-fPIC'
  11611. lt_prog_compiler_static_CXX='-static'
  11612. ;;
  11613. pgCC* | pgcpp*)
  11614. # Portland Group C++ compiler
  11615. lt_prog_compiler_wl_CXX='-Wl,'
  11616. lt_prog_compiler_pic_CXX='-fpic'
  11617. lt_prog_compiler_static_CXX='-Bstatic'
  11618. ;;
  11619. cxx*)
  11620. # Compaq C++
  11621. # Make sure the PIC flag is empty. It appears that all Alpha
  11622. # Linux and Compaq Tru64 Unix objects are PIC.
  11623. lt_prog_compiler_pic_CXX=
  11624. lt_prog_compiler_static_CXX='-non_shared'
  11625. ;;
  11626. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  11627. # IBM XL 8.0, 9.0 on PPC and BlueGene
  11628. lt_prog_compiler_wl_CXX='-Wl,'
  11629. lt_prog_compiler_pic_CXX='-qpic'
  11630. lt_prog_compiler_static_CXX='-qstaticlink'
  11631. ;;
  11632. *)
  11633. case `$CC -V 2>&1 | sed 5q` in
  11634. *Sun\ C*)
  11635. # Sun C++ 5.9
  11636. lt_prog_compiler_pic_CXX='-KPIC'
  11637. lt_prog_compiler_static_CXX='-Bstatic'
  11638. lt_prog_compiler_wl_CXX='-Qoption ld '
  11639. ;;
  11640. esac
  11641. ;;
  11642. esac
  11643. ;;
  11644. lynxos*)
  11645. ;;
  11646. m88k*)
  11647. ;;
  11648. mvs*)
  11649. case $cc_basename in
  11650. cxx*)
  11651. lt_prog_compiler_pic_CXX='-W c,exportall'
  11652. ;;
  11653. *)
  11654. ;;
  11655. esac
  11656. ;;
  11657. netbsd*)
  11658. ;;
  11659. *qnx* | *nto*)
  11660. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11661. # it will coredump.
  11662. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11663. ;;
  11664. osf3* | osf4* | osf5*)
  11665. case $cc_basename in
  11666. KCC*)
  11667. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11668. ;;
  11669. RCC*)
  11670. # Rational C++ 2.4.1
  11671. lt_prog_compiler_pic_CXX='-pic'
  11672. ;;
  11673. cxx*)
  11674. # Digital/Compaq C++
  11675. lt_prog_compiler_wl_CXX='-Wl,'
  11676. # Make sure the PIC flag is empty. It appears that all Alpha
  11677. # Linux and Compaq Tru64 Unix objects are PIC.
  11678. lt_prog_compiler_pic_CXX=
  11679. lt_prog_compiler_static_CXX='-non_shared'
  11680. ;;
  11681. *)
  11682. ;;
  11683. esac
  11684. ;;
  11685. psos*)
  11686. ;;
  11687. solaris*)
  11688. case $cc_basename in
  11689. CC*)
  11690. # Sun C++ 4.2, 5.x and Centerline C++
  11691. lt_prog_compiler_pic_CXX='-KPIC'
  11692. lt_prog_compiler_static_CXX='-Bstatic'
  11693. lt_prog_compiler_wl_CXX='-Qoption ld '
  11694. ;;
  11695. gcx*)
  11696. # Green Hills C++ Compiler
  11697. lt_prog_compiler_pic_CXX='-PIC'
  11698. ;;
  11699. *)
  11700. ;;
  11701. esac
  11702. ;;
  11703. sunos4*)
  11704. case $cc_basename in
  11705. CC*)
  11706. # Sun C++ 4.x
  11707. lt_prog_compiler_pic_CXX='-pic'
  11708. lt_prog_compiler_static_CXX='-Bstatic'
  11709. ;;
  11710. lcc*)
  11711. # Lucid
  11712. lt_prog_compiler_pic_CXX='-pic'
  11713. ;;
  11714. *)
  11715. ;;
  11716. esac
  11717. ;;
  11718. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11719. case $cc_basename in
  11720. CC*)
  11721. lt_prog_compiler_wl_CXX='-Wl,'
  11722. lt_prog_compiler_pic_CXX='-KPIC'
  11723. lt_prog_compiler_static_CXX='-Bstatic'
  11724. ;;
  11725. esac
  11726. ;;
  11727. tandem*)
  11728. case $cc_basename in
  11729. NCC*)
  11730. # NonStop-UX NCC 3.20
  11731. lt_prog_compiler_pic_CXX='-KPIC'
  11732. ;;
  11733. *)
  11734. ;;
  11735. esac
  11736. ;;
  11737. vxworks*)
  11738. ;;
  11739. *)
  11740. lt_prog_compiler_can_build_shared_CXX=no
  11741. ;;
  11742. esac
  11743. fi
  11744. case $host_os in
  11745. # For platforms which do not support PIC, -DPIC is meaningless:
  11746. *djgpp*)
  11747. lt_prog_compiler_pic_CXX=
  11748. ;;
  11749. *)
  11750. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11751. ;;
  11752. esac
  11753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
  11754. $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  11755. #
  11756. # Check to make sure the PIC flag actually works.
  11757. #
  11758. if test -n "$lt_prog_compiler_pic_CXX"; then
  11759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  11760. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  11761. if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
  11762. $as_echo_n "(cached) " >&6
  11763. else
  11764. lt_cv_prog_compiler_pic_works_CXX=no
  11765. ac_outfile=conftest.$ac_objext
  11766. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11767. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  11768. # Insert the option either (1) after the last *FLAGS variable, or
  11769. # (2) before a word containing "conftest.", or (3) at the end.
  11770. # Note that $ac_compile itself does not contain backslashes and begins
  11771. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11772. # The option is referenced via a variable to avoid confusing sed.
  11773. lt_compile=`echo "$ac_compile" | $SED \
  11774. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11775. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11776. -e 's:$: $lt_compiler_flag:'`
  11777. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11778. (eval "$lt_compile" 2>conftest.err)
  11779. ac_status=$?
  11780. cat conftest.err >&5
  11781. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11782. if (exit $ac_status) && test -s "$ac_outfile"; then
  11783. # The compiler can only warn and ignore the option if not recognized
  11784. # So say no if there are warnings other than the usual output.
  11785. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  11786. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11787. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11788. lt_cv_prog_compiler_pic_works_CXX=yes
  11789. fi
  11790. fi
  11791. $RM conftest*
  11792. fi
  11793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  11794. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  11795. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  11796. case $lt_prog_compiler_pic_CXX in
  11797. "" | " "*) ;;
  11798. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  11799. esac
  11800. else
  11801. lt_prog_compiler_pic_CXX=
  11802. lt_prog_compiler_can_build_shared_CXX=no
  11803. fi
  11804. fi
  11805. #
  11806. # Check to make sure the static flag actually works.
  11807. #
  11808. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  11809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11810. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  11811. if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
  11812. $as_echo_n "(cached) " >&6
  11813. else
  11814. lt_cv_prog_compiler_static_works_CXX=no
  11815. save_LDFLAGS="$LDFLAGS"
  11816. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11817. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11818. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11819. # The linker can only warn and ignore the option if not recognized
  11820. # So say no if there are warnings
  11821. if test -s conftest.err; then
  11822. # Append any errors to the config.log.
  11823. cat conftest.err 1>&5
  11824. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  11825. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11826. if diff conftest.exp conftest.er2 >/dev/null; then
  11827. lt_cv_prog_compiler_static_works_CXX=yes
  11828. fi
  11829. else
  11830. lt_cv_prog_compiler_static_works_CXX=yes
  11831. fi
  11832. fi
  11833. $RM -r conftest*
  11834. LDFLAGS="$save_LDFLAGS"
  11835. fi
  11836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  11837. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  11838. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  11839. :
  11840. else
  11841. lt_prog_compiler_static_CXX=
  11842. fi
  11843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11844. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11845. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  11846. $as_echo_n "(cached) " >&6
  11847. else
  11848. lt_cv_prog_compiler_c_o_CXX=no
  11849. $RM -r conftest 2>/dev/null
  11850. mkdir conftest
  11851. cd conftest
  11852. mkdir out
  11853. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11854. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11855. # Insert the option either (1) after the last *FLAGS variable, or
  11856. # (2) before a word containing "conftest.", or (3) at the end.
  11857. # Note that $ac_compile itself does not contain backslashes and begins
  11858. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11859. lt_compile=`echo "$ac_compile" | $SED \
  11860. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11861. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11862. -e 's:$: $lt_compiler_flag:'`
  11863. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11864. (eval "$lt_compile" 2>out/conftest.err)
  11865. ac_status=$?
  11866. cat out/conftest.err >&5
  11867. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11868. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11869. then
  11870. # The compiler can only warn and ignore the option if not recognized
  11871. # So say no if there are warnings
  11872. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  11873. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11874. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11875. lt_cv_prog_compiler_c_o_CXX=yes
  11876. fi
  11877. fi
  11878. chmod u+w . 2>&5
  11879. $RM conftest*
  11880. # SGI C++ compiler will create directory out/ii_files/ for
  11881. # template instantiation
  11882. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11883. $RM out/* && rmdir out
  11884. cd ..
  11885. $RM -r conftest
  11886. $RM conftest*
  11887. fi
  11888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11889. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11891. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11892. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  11893. $as_echo_n "(cached) " >&6
  11894. else
  11895. lt_cv_prog_compiler_c_o_CXX=no
  11896. $RM -r conftest 2>/dev/null
  11897. mkdir conftest
  11898. cd conftest
  11899. mkdir out
  11900. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11901. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11902. # Insert the option either (1) after the last *FLAGS variable, or
  11903. # (2) before a word containing "conftest.", or (3) at the end.
  11904. # Note that $ac_compile itself does not contain backslashes and begins
  11905. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11906. lt_compile=`echo "$ac_compile" | $SED \
  11907. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11908. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11909. -e 's:$: $lt_compiler_flag:'`
  11910. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11911. (eval "$lt_compile" 2>out/conftest.err)
  11912. ac_status=$?
  11913. cat out/conftest.err >&5
  11914. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11915. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11916. then
  11917. # The compiler can only warn and ignore the option if not recognized
  11918. # So say no if there are warnings
  11919. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  11920. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11921. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11922. lt_cv_prog_compiler_c_o_CXX=yes
  11923. fi
  11924. fi
  11925. chmod u+w . 2>&5
  11926. $RM conftest*
  11927. # SGI C++ compiler will create directory out/ii_files/ for
  11928. # template instantiation
  11929. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11930. $RM out/* && rmdir out
  11931. cd ..
  11932. $RM -r conftest
  11933. $RM conftest*
  11934. fi
  11935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11936. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11937. hard_links="nottested"
  11938. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  11939. # do not overwrite the value of need_locks provided by the user
  11940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  11941. $as_echo_n "checking if we can lock with hard links... " >&6; }
  11942. hard_links=yes
  11943. $RM conftest*
  11944. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11945. touch conftest.a
  11946. ln conftest.a conftest.b 2>&5 || hard_links=no
  11947. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  11949. $as_echo "$hard_links" >&6; }
  11950. if test "$hard_links" = no; then
  11951. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11952. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11953. need_locks=warn
  11954. fi
  11955. else
  11956. need_locks=no
  11957. fi
  11958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11959. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11960. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11961. case $host_os in
  11962. aix[4-9]*)
  11963. # If we're using GNU nm, then we don't want the "-C" option.
  11964. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11965. # Also, AIX nm treats weak defined symbols like other global defined
  11966. # symbols, whereas GNU nm marks them as "W".
  11967. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  11968. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  11969. else
  11970. 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'
  11971. fi
  11972. ;;
  11973. pw32*)
  11974. export_symbols_cmds_CXX="$ltdll_cmds"
  11975. ;;
  11976. cygwin* | mingw* | cegcc*)
  11977. 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'
  11978. ;;
  11979. *)
  11980. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11981. ;;
  11982. esac
  11983. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  11984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11985. $as_echo "$ld_shlibs_CXX" >&6; }
  11986. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11987. with_gnu_ld_CXX=$with_gnu_ld
  11988. #
  11989. # Do we need to explicitly link libc?
  11990. #
  11991. case "x$archive_cmds_need_lc_CXX" in
  11992. x|xyes)
  11993. # Assume -lc should be added
  11994. archive_cmds_need_lc_CXX=yes
  11995. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11996. case $archive_cmds_CXX in
  11997. *'~'*)
  11998. # FIXME: we may have to deal with multi-command sequences.
  11999. ;;
  12000. '$CC '*)
  12001. # Test whether the compiler implicitly links with -lc since on some
  12002. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12003. # to ld, don't add -lc before -lgcc.
  12004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12005. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12006. if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
  12007. $as_echo_n "(cached) " >&6
  12008. else
  12009. $RM conftest*
  12010. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12011. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12012. (eval $ac_compile) 2>&5
  12013. ac_status=$?
  12014. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12015. test $ac_status = 0; } 2>conftest.err; then
  12016. soname=conftest
  12017. lib=conftest
  12018. libobjs=conftest.$ac_objext
  12019. deplibs=
  12020. wl=$lt_prog_compiler_wl_CXX
  12021. pic_flag=$lt_prog_compiler_pic_CXX
  12022. compiler_flags=-v
  12023. linker_flags=-v
  12024. verstring=
  12025. output_objdir=.
  12026. libname=conftest
  12027. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12028. allow_undefined_flag_CXX=
  12029. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12030. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12031. ac_status=$?
  12032. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12033. test $ac_status = 0; }
  12034. then
  12035. lt_cv_archive_cmds_need_lc_CXX=no
  12036. else
  12037. lt_cv_archive_cmds_need_lc_CXX=yes
  12038. fi
  12039. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12040. else
  12041. cat conftest.err 1>&5
  12042. fi
  12043. $RM conftest*
  12044. fi
  12045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12046. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12047. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12048. ;;
  12049. esac
  12050. fi
  12051. ;;
  12052. esac
  12053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12054. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12055. library_names_spec=
  12056. libname_spec='lib$name'
  12057. soname_spec=
  12058. shrext_cmds=".so"
  12059. postinstall_cmds=
  12060. postuninstall_cmds=
  12061. finish_cmds=
  12062. finish_eval=
  12063. shlibpath_var=
  12064. shlibpath_overrides_runpath=unknown
  12065. version_type=none
  12066. dynamic_linker="$host_os ld.so"
  12067. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12068. need_lib_prefix=unknown
  12069. hardcode_into_libs=no
  12070. # when you set need_version to no, make sure it does not cause -set_version
  12071. # flags to be left without arguments
  12072. need_version=unknown
  12073. case $host_os in
  12074. aix3*)
  12075. version_type=linux
  12076. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12077. shlibpath_var=LIBPATH
  12078. # AIX 3 has no versioning support, so we append a major version to the name.
  12079. soname_spec='${libname}${release}${shared_ext}$major'
  12080. ;;
  12081. aix[4-9]*)
  12082. version_type=linux
  12083. need_lib_prefix=no
  12084. need_version=no
  12085. hardcode_into_libs=yes
  12086. if test "$host_cpu" = ia64; then
  12087. # AIX 5 supports IA64
  12088. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12089. shlibpath_var=LD_LIBRARY_PATH
  12090. else
  12091. # With GCC up to 2.95.x, collect2 would create an import file
  12092. # for dependence libraries. The import file would start with
  12093. # the line `#! .'. This would cause the generated library to
  12094. # depend on `.', always an invalid library. This was fixed in
  12095. # development snapshots of GCC prior to 3.0.
  12096. case $host_os in
  12097. aix4 | aix4.[01] | aix4.[01].*)
  12098. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12099. echo ' yes '
  12100. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12101. :
  12102. else
  12103. can_build_shared=no
  12104. fi
  12105. ;;
  12106. esac
  12107. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12108. # soname into executable. Probably we can add versioning support to
  12109. # collect2, so additional links can be useful in future.
  12110. if test "$aix_use_runtimelinking" = yes; then
  12111. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12112. # instead of lib<name>.a to let people know that these are not
  12113. # typical AIX shared libraries.
  12114. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12115. else
  12116. # We preserve .a as extension for shared libraries through AIX4.2
  12117. # and later when we are not doing run time linking.
  12118. library_names_spec='${libname}${release}.a $libname.a'
  12119. soname_spec='${libname}${release}${shared_ext}$major'
  12120. fi
  12121. shlibpath_var=LIBPATH
  12122. fi
  12123. ;;
  12124. amigaos*)
  12125. case $host_cpu in
  12126. powerpc)
  12127. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12128. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12129. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12130. ;;
  12131. m68k)
  12132. library_names_spec='$libname.ixlibrary $libname.a'
  12133. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12134. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  12135. ;;
  12136. esac
  12137. ;;
  12138. beos*)
  12139. library_names_spec='${libname}${shared_ext}'
  12140. dynamic_linker="$host_os ld.so"
  12141. shlibpath_var=LIBRARY_PATH
  12142. ;;
  12143. bsdi[45]*)
  12144. version_type=linux
  12145. need_version=no
  12146. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12147. soname_spec='${libname}${release}${shared_ext}$major'
  12148. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12149. shlibpath_var=LD_LIBRARY_PATH
  12150. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12151. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12152. # the default ld.so.conf also contains /usr/contrib/lib and
  12153. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12154. # libtool to hard-code these into programs
  12155. ;;
  12156. cygwin* | mingw* | pw32* | cegcc*)
  12157. version_type=windows
  12158. shrext_cmds=".dll"
  12159. need_version=no
  12160. need_lib_prefix=no
  12161. case $GCC,$host_os in
  12162. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  12163. library_names_spec='$libname.dll.a'
  12164. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12165. postinstall_cmds='base_file=`basename \${file}`~
  12166. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12167. dldir=$destdir/`dirname \$dlpath`~
  12168. test -d \$dldir || mkdir -p \$dldir~
  12169. $install_prog $dir/$dlname \$dldir/$dlname~
  12170. chmod a+x \$dldir/$dlname~
  12171. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12172. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12173. fi'
  12174. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12175. dlpath=$dir/\$dldll~
  12176. $RM \$dlpath'
  12177. shlibpath_overrides_runpath=yes
  12178. case $host_os in
  12179. cygwin*)
  12180. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12181. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12182. ;;
  12183. mingw* | cegcc*)
  12184. # MinGW DLLs use traditional 'lib' prefix
  12185. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12186. ;;
  12187. pw32*)
  12188. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12189. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12190. ;;
  12191. esac
  12192. ;;
  12193. *)
  12194. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12195. ;;
  12196. esac
  12197. dynamic_linker='Win32 ld.exe'
  12198. # FIXME: first we should search . and the directory the executable is in
  12199. shlibpath_var=PATH
  12200. ;;
  12201. darwin* | rhapsody*)
  12202. dynamic_linker="$host_os dyld"
  12203. version_type=darwin
  12204. need_lib_prefix=no
  12205. need_version=no
  12206. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12207. soname_spec='${libname}${release}${major}$shared_ext'
  12208. shlibpath_overrides_runpath=yes
  12209. shlibpath_var=DYLD_LIBRARY_PATH
  12210. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12211. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12212. ;;
  12213. dgux*)
  12214. version_type=linux
  12215. need_lib_prefix=no
  12216. need_version=no
  12217. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12218. soname_spec='${libname}${release}${shared_ext}$major'
  12219. shlibpath_var=LD_LIBRARY_PATH
  12220. ;;
  12221. freebsd* | dragonfly*)
  12222. # DragonFly does not have aout. When/if they implement a new
  12223. # versioning mechanism, adjust this.
  12224. if test -x /usr/bin/objformat; then
  12225. objformat=`/usr/bin/objformat`
  12226. else
  12227. case $host_os in
  12228. freebsd[23].*) objformat=aout ;;
  12229. *) objformat=elf ;;
  12230. esac
  12231. fi
  12232. version_type=freebsd-$objformat
  12233. case $version_type in
  12234. freebsd-elf*)
  12235. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12236. need_version=no
  12237. need_lib_prefix=no
  12238. ;;
  12239. freebsd-*)
  12240. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12241. need_version=yes
  12242. ;;
  12243. esac
  12244. shlibpath_var=LD_LIBRARY_PATH
  12245. case $host_os in
  12246. freebsd2.*)
  12247. shlibpath_overrides_runpath=yes
  12248. ;;
  12249. freebsd3.[01]* | freebsdelf3.[01]*)
  12250. shlibpath_overrides_runpath=yes
  12251. hardcode_into_libs=yes
  12252. ;;
  12253. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12254. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12255. shlibpath_overrides_runpath=no
  12256. hardcode_into_libs=yes
  12257. ;;
  12258. *) # from 4.6 on, and DragonFly
  12259. shlibpath_overrides_runpath=yes
  12260. hardcode_into_libs=yes
  12261. ;;
  12262. esac
  12263. ;;
  12264. gnu*)
  12265. version_type=linux
  12266. need_lib_prefix=no
  12267. need_version=no
  12268. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12269. soname_spec='${libname}${release}${shared_ext}$major'
  12270. shlibpath_var=LD_LIBRARY_PATH
  12271. hardcode_into_libs=yes
  12272. ;;
  12273. haiku*)
  12274. version_type=linux
  12275. need_lib_prefix=no
  12276. need_version=no
  12277. dynamic_linker="$host_os runtime_loader"
  12278. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12279. soname_spec='${libname}${release}${shared_ext}$major'
  12280. shlibpath_var=LIBRARY_PATH
  12281. shlibpath_overrides_runpath=yes
  12282. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  12283. hardcode_into_libs=yes
  12284. ;;
  12285. hpux9* | hpux10* | hpux11*)
  12286. # Give a soname corresponding to the major version so that dld.sl refuses to
  12287. # link against other versions.
  12288. version_type=sunos
  12289. need_lib_prefix=no
  12290. need_version=no
  12291. case $host_cpu in
  12292. ia64*)
  12293. shrext_cmds='.so'
  12294. hardcode_into_libs=yes
  12295. dynamic_linker="$host_os dld.so"
  12296. shlibpath_var=LD_LIBRARY_PATH
  12297. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12298. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12299. soname_spec='${libname}${release}${shared_ext}$major'
  12300. if test "X$HPUX_IA64_MODE" = X32; then
  12301. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12302. else
  12303. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12304. fi
  12305. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12306. ;;
  12307. hppa*64*)
  12308. shrext_cmds='.sl'
  12309. hardcode_into_libs=yes
  12310. dynamic_linker="$host_os dld.sl"
  12311. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12312. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12313. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12314. soname_spec='${libname}${release}${shared_ext}$major'
  12315. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12316. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12317. ;;
  12318. *)
  12319. shrext_cmds='.sl'
  12320. dynamic_linker="$host_os dld.sl"
  12321. shlibpath_var=SHLIB_PATH
  12322. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12323. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12324. soname_spec='${libname}${release}${shared_ext}$major'
  12325. ;;
  12326. esac
  12327. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12328. postinstall_cmds='chmod 555 $lib'
  12329. # or fails outright, so override atomically:
  12330. install_override_mode=555
  12331. ;;
  12332. interix[3-9]*)
  12333. version_type=linux
  12334. need_lib_prefix=no
  12335. need_version=no
  12336. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12337. soname_spec='${libname}${release}${shared_ext}$major'
  12338. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12339. shlibpath_var=LD_LIBRARY_PATH
  12340. shlibpath_overrides_runpath=no
  12341. hardcode_into_libs=yes
  12342. ;;
  12343. irix5* | irix6* | nonstopux*)
  12344. case $host_os in
  12345. nonstopux*) version_type=nonstopux ;;
  12346. *)
  12347. if test "$lt_cv_prog_gnu_ld" = yes; then
  12348. version_type=linux
  12349. else
  12350. version_type=irix
  12351. fi ;;
  12352. esac
  12353. need_lib_prefix=no
  12354. need_version=no
  12355. soname_spec='${libname}${release}${shared_ext}$major'
  12356. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12357. case $host_os in
  12358. irix5* | nonstopux*)
  12359. libsuff= shlibsuff=
  12360. ;;
  12361. *)
  12362. case $LD in # libtool.m4 will add one of these switches to LD
  12363. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12364. libsuff= shlibsuff= libmagic=32-bit;;
  12365. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12366. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12367. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12368. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12369. *) libsuff= shlibsuff= libmagic=never-match;;
  12370. esac
  12371. ;;
  12372. esac
  12373. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12374. shlibpath_overrides_runpath=no
  12375. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12376. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12377. hardcode_into_libs=yes
  12378. ;;
  12379. # No shared lib support for Linux oldld, aout, or coff.
  12380. linux*oldld* | linux*aout* | linux*coff*)
  12381. dynamic_linker=no
  12382. ;;
  12383. # This must be Linux ELF.
  12384. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12385. version_type=linux
  12386. need_lib_prefix=no
  12387. need_version=no
  12388. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12389. soname_spec='${libname}${release}${shared_ext}$major'
  12390. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12391. shlibpath_var=LD_LIBRARY_PATH
  12392. shlibpath_overrides_runpath=no
  12393. # Some binutils ld are patched to set DT_RUNPATH
  12394. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  12395. $as_echo_n "(cached) " >&6
  12396. else
  12397. lt_cv_shlibpath_overrides_runpath=no
  12398. save_LDFLAGS=$LDFLAGS
  12399. save_libdir=$libdir
  12400. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  12401. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  12402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12403. /* end confdefs.h. */
  12404. int
  12405. main ()
  12406. {
  12407. ;
  12408. return 0;
  12409. }
  12410. _ACEOF
  12411. if ac_fn_cxx_try_link "$LINENO"; then :
  12412. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12413. lt_cv_shlibpath_overrides_runpath=yes
  12414. fi
  12415. fi
  12416. rm -f core conftest.err conftest.$ac_objext \
  12417. conftest$ac_exeext conftest.$ac_ext
  12418. LDFLAGS=$save_LDFLAGS
  12419. libdir=$save_libdir
  12420. fi
  12421. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  12422. # This implies no fast_install, which is unacceptable.
  12423. # Some rework will be needed to allow for fast_install
  12424. # before this can be enabled.
  12425. hardcode_into_libs=yes
  12426. # Append ld.so.conf contents to the search path
  12427. if test -f /etc/ld.so.conf; then
  12428. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  12429. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12430. fi
  12431. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12432. # powerpc, because MkLinux only supported shared libraries with the
  12433. # GNU dynamic linker. Since this was broken with cross compilers,
  12434. # most powerpc-linux boxes support dynamic linking these days and
  12435. # people can always --disable-shared, the test was removed, and we
  12436. # assume the GNU/Linux dynamic linker is in use.
  12437. dynamic_linker='GNU/Linux ld.so'
  12438. ;;
  12439. netbsd*)
  12440. version_type=sunos
  12441. need_lib_prefix=no
  12442. need_version=no
  12443. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12444. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12445. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12446. dynamic_linker='NetBSD (a.out) ld.so'
  12447. else
  12448. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12449. soname_spec='${libname}${release}${shared_ext}$major'
  12450. dynamic_linker='NetBSD ld.elf_so'
  12451. fi
  12452. shlibpath_var=LD_LIBRARY_PATH
  12453. shlibpath_overrides_runpath=yes
  12454. hardcode_into_libs=yes
  12455. ;;
  12456. newsos6)
  12457. version_type=linux
  12458. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12459. shlibpath_var=LD_LIBRARY_PATH
  12460. shlibpath_overrides_runpath=yes
  12461. ;;
  12462. *nto* | *qnx*)
  12463. version_type=qnx
  12464. need_lib_prefix=no
  12465. need_version=no
  12466. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12467. soname_spec='${libname}${release}${shared_ext}$major'
  12468. shlibpath_var=LD_LIBRARY_PATH
  12469. shlibpath_overrides_runpath=no
  12470. hardcode_into_libs=yes
  12471. dynamic_linker='ldqnx.so'
  12472. ;;
  12473. openbsd*)
  12474. version_type=sunos
  12475. sys_lib_dlsearch_path_spec="/usr/lib"
  12476. need_lib_prefix=no
  12477. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12478. case $host_os in
  12479. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12480. *) need_version=no ;;
  12481. esac
  12482. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12483. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12484. shlibpath_var=LD_LIBRARY_PATH
  12485. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12486. case $host_os in
  12487. openbsd2.[89] | openbsd2.[89].*)
  12488. shlibpath_overrides_runpath=no
  12489. ;;
  12490. *)
  12491. shlibpath_overrides_runpath=yes
  12492. ;;
  12493. esac
  12494. else
  12495. shlibpath_overrides_runpath=yes
  12496. fi
  12497. ;;
  12498. os2*)
  12499. libname_spec='$name'
  12500. shrext_cmds=".dll"
  12501. need_lib_prefix=no
  12502. library_names_spec='$libname${shared_ext} $libname.a'
  12503. dynamic_linker='OS/2 ld.exe'
  12504. shlibpath_var=LIBPATH
  12505. ;;
  12506. osf3* | osf4* | osf5*)
  12507. version_type=osf
  12508. need_lib_prefix=no
  12509. need_version=no
  12510. soname_spec='${libname}${release}${shared_ext}$major'
  12511. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12512. shlibpath_var=LD_LIBRARY_PATH
  12513. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12514. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12515. ;;
  12516. rdos*)
  12517. dynamic_linker=no
  12518. ;;
  12519. solaris*)
  12520. version_type=linux
  12521. need_lib_prefix=no
  12522. need_version=no
  12523. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12524. soname_spec='${libname}${release}${shared_ext}$major'
  12525. shlibpath_var=LD_LIBRARY_PATH
  12526. shlibpath_overrides_runpath=yes
  12527. hardcode_into_libs=yes
  12528. # ldd complains unless libraries are executable
  12529. postinstall_cmds='chmod +x $lib'
  12530. ;;
  12531. sunos4*)
  12532. version_type=sunos
  12533. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12534. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12535. shlibpath_var=LD_LIBRARY_PATH
  12536. shlibpath_overrides_runpath=yes
  12537. if test "$with_gnu_ld" = yes; then
  12538. need_lib_prefix=no
  12539. fi
  12540. need_version=yes
  12541. ;;
  12542. sysv4 | sysv4.3*)
  12543. version_type=linux
  12544. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12545. soname_spec='${libname}${release}${shared_ext}$major'
  12546. shlibpath_var=LD_LIBRARY_PATH
  12547. case $host_vendor in
  12548. sni)
  12549. shlibpath_overrides_runpath=no
  12550. need_lib_prefix=no
  12551. runpath_var=LD_RUN_PATH
  12552. ;;
  12553. siemens)
  12554. need_lib_prefix=no
  12555. ;;
  12556. motorola)
  12557. need_lib_prefix=no
  12558. need_version=no
  12559. shlibpath_overrides_runpath=no
  12560. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12561. ;;
  12562. esac
  12563. ;;
  12564. sysv4*MP*)
  12565. if test -d /usr/nec ;then
  12566. version_type=linux
  12567. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12568. soname_spec='$libname${shared_ext}.$major'
  12569. shlibpath_var=LD_LIBRARY_PATH
  12570. fi
  12571. ;;
  12572. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12573. version_type=freebsd-elf
  12574. need_lib_prefix=no
  12575. need_version=no
  12576. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12577. soname_spec='${libname}${release}${shared_ext}$major'
  12578. shlibpath_var=LD_LIBRARY_PATH
  12579. shlibpath_overrides_runpath=yes
  12580. hardcode_into_libs=yes
  12581. if test "$with_gnu_ld" = yes; then
  12582. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12583. else
  12584. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12585. case $host_os in
  12586. sco3.2v5*)
  12587. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12588. ;;
  12589. esac
  12590. fi
  12591. sys_lib_dlsearch_path_spec='/usr/lib'
  12592. ;;
  12593. tpf*)
  12594. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  12595. version_type=linux
  12596. need_lib_prefix=no
  12597. need_version=no
  12598. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12599. shlibpath_var=LD_LIBRARY_PATH
  12600. shlibpath_overrides_runpath=no
  12601. hardcode_into_libs=yes
  12602. ;;
  12603. uts4*)
  12604. version_type=linux
  12605. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12606. soname_spec='${libname}${release}${shared_ext}$major'
  12607. shlibpath_var=LD_LIBRARY_PATH
  12608. ;;
  12609. *)
  12610. dynamic_linker=no
  12611. ;;
  12612. esac
  12613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  12614. $as_echo "$dynamic_linker" >&6; }
  12615. test "$dynamic_linker" = no && can_build_shared=no
  12616. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12617. if test "$GCC" = yes; then
  12618. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12619. fi
  12620. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  12621. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  12622. fi
  12623. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  12624. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  12625. fi
  12626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  12627. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  12628. hardcode_action_CXX=
  12629. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  12630. test -n "$runpath_var_CXX" ||
  12631. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  12632. # We can hardcode non-existent directories.
  12633. if test "$hardcode_direct_CXX" != no &&
  12634. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12635. # have to relink, otherwise we might link with an installed library
  12636. # when we should be linking with a yet-to-be-installed one
  12637. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  12638. test "$hardcode_minus_L_CXX" != no; then
  12639. # Linking always hardcodes the temporary library directory.
  12640. hardcode_action_CXX=relink
  12641. else
  12642. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12643. hardcode_action_CXX=immediate
  12644. fi
  12645. else
  12646. # We cannot hardcode anything, or else we can only hardcode existing
  12647. # directories.
  12648. hardcode_action_CXX=unsupported
  12649. fi
  12650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  12651. $as_echo "$hardcode_action_CXX" >&6; }
  12652. if test "$hardcode_action_CXX" = relink ||
  12653. test "$inherit_rpath_CXX" = yes; then
  12654. # Fast installation is not supported
  12655. enable_fast_install=no
  12656. elif test "$shlibpath_overrides_runpath" = yes ||
  12657. test "$enable_shared" = no; then
  12658. # Fast installation is not necessary
  12659. enable_fast_install=needless
  12660. fi
  12661. fi # test -n "$compiler"
  12662. CC=$lt_save_CC
  12663. LDCXX=$LD
  12664. LD=$lt_save_LD
  12665. GCC=$lt_save_GCC
  12666. with_gnu_ld=$lt_save_with_gnu_ld
  12667. lt_cv_path_LDCXX=$lt_cv_path_LD
  12668. lt_cv_path_LD=$lt_save_path_LD
  12669. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  12670. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  12671. fi # test "$_lt_caught_CXX_error" != yes
  12672. ac_ext=c
  12673. ac_cpp='$CPP $CPPFLAGS'
  12674. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12675. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12676. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12677. ac_config_commands="$ac_config_commands libtool"
  12678. # Only expand once:
  12679. # Test for 64-bit build.
  12680. # The cast to long int works around a bug in the HP C Compiler
  12681. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  12682. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  12683. # This bug is HP SR number 8606223364.
  12684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
  12685. $as_echo_n "checking size of size_t... " >&6; }
  12686. if test "${ac_cv_sizeof_size_t+set}" = set; then :
  12687. $as_echo_n "(cached) " >&6
  12688. else
  12689. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
  12690. else
  12691. if test "$ac_cv_type_size_t" = yes; then
  12692. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12693. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12694. { as_fn_set_status 77
  12695. as_fn_error "cannot compute sizeof (size_t)
  12696. See \`config.log' for more details." "$LINENO" 5; }; }
  12697. else
  12698. ac_cv_sizeof_size_t=0
  12699. fi
  12700. fi
  12701. fi
  12702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
  12703. $as_echo "$ac_cv_sizeof_size_t" >&6; }
  12704. cat >>confdefs.h <<_ACEOF
  12705. #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
  12706. _ACEOF
  12707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  12708. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  12709. # Check whether --enable-maintainer-mode was given.
  12710. if test "${enable_maintainer_mode+set}" = set; then :
  12711. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  12712. else
  12713. USE_MAINTAINER_MODE=no
  12714. fi
  12715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  12716. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  12717. if test $USE_MAINTAINER_MODE = yes; then
  12718. MAINTAINER_MODE_TRUE=
  12719. MAINTAINER_MODE_FALSE='#'
  12720. else
  12721. MAINTAINER_MODE_TRUE='#'
  12722. MAINTAINER_MODE_FALSE=
  12723. fi
  12724. MAINT=$MAINTAINER_MODE_TRUE
  12725. for ac_header in sys/mman.h
  12726. do :
  12727. ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
  12728. if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
  12729. cat >>confdefs.h <<_ACEOF
  12730. #define HAVE_SYS_MMAN_H 1
  12731. _ACEOF
  12732. fi
  12733. done
  12734. for ac_func in mmap mkostemp
  12735. do :
  12736. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12737. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12738. eval as_val=\$$as_ac_var
  12739. if test "x$as_val" = x""yes; then :
  12740. cat >>confdefs.h <<_ACEOF
  12741. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12742. _ACEOF
  12743. fi
  12744. done
  12745. ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
  12746. if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
  12747. libffi_header_sys_mman_h=yes
  12748. else
  12749. libffi_header_sys_mman_h=no
  12750. fi
  12751. ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
  12752. if test "x$ac_cv_func_mmap" = x""yes; then :
  12753. libffi_func_mmap=yes
  12754. else
  12755. libffi_func_mmap=no
  12756. fi
  12757. if test "$libffi_header_sys_mman_h" != yes \
  12758. || test "$libffi_func_mmap" != yes; then
  12759. ac_cv_func_mmap_file=no
  12760. ac_cv_func_mmap_dev_zero=no
  12761. ac_cv_func_mmap_anon=no
  12762. else
  12763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
  12764. $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
  12765. if test "${ac_cv_func_mmap_file+set}" = set; then :
  12766. $as_echo_n "(cached) " >&6
  12767. else
  12768. # Add a system to this blacklist if
  12769. # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
  12770. # memory area containing the same data that you'd get if you applied
  12771. # read() to the same fd. The only system known to have a problem here
  12772. # is VMS, where text files have record structure.
  12773. case "$host_os" in
  12774. vms* | ultrix*)
  12775. ac_cv_func_mmap_file=no ;;
  12776. *)
  12777. ac_cv_func_mmap_file=yes;;
  12778. esac
  12779. fi
  12780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
  12781. $as_echo "$ac_cv_func_mmap_file" >&6; }
  12782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
  12783. $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
  12784. if test "${ac_cv_func_mmap_dev_zero+set}" = set; then :
  12785. $as_echo_n "(cached) " >&6
  12786. else
  12787. # Add a system to this blacklist if it has mmap() but /dev/zero
  12788. # does not exist, or if mmapping /dev/zero does not give anonymous
  12789. # zeroed pages with both the following properties:
  12790. # 1. If you map N consecutive pages in with one call, and then
  12791. # unmap any subset of those pages, the pages that were not
  12792. # explicitly unmapped remain accessible.
  12793. # 2. If you map two adjacent blocks of memory and then unmap them
  12794. # both at once, they must both go away.
  12795. # Systems known to be in this category are Windows (all variants),
  12796. # VMS, and Darwin.
  12797. case "$host_os" in
  12798. vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
  12799. ac_cv_func_mmap_dev_zero=no ;;
  12800. *)
  12801. ac_cv_func_mmap_dev_zero=yes;;
  12802. esac
  12803. fi
  12804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
  12805. $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
  12806. # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
  12807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
  12808. $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
  12809. if test "${ac_cv_decl_map_anon+set}" = set; then :
  12810. $as_echo_n "(cached) " >&6
  12811. else
  12812. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12813. /* end confdefs.h. */
  12814. #include <sys/types.h>
  12815. #include <sys/mman.h>
  12816. #include <unistd.h>
  12817. #ifndef MAP_ANONYMOUS
  12818. #define MAP_ANONYMOUS MAP_ANON
  12819. #endif
  12820. int
  12821. main ()
  12822. {
  12823. int n = MAP_ANONYMOUS;
  12824. ;
  12825. return 0;
  12826. }
  12827. _ACEOF
  12828. if ac_fn_c_try_compile "$LINENO"; then :
  12829. ac_cv_decl_map_anon=yes
  12830. else
  12831. ac_cv_decl_map_anon=no
  12832. fi
  12833. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12834. fi
  12835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
  12836. $as_echo "$ac_cv_decl_map_anon" >&6; }
  12837. if test $ac_cv_decl_map_anon = no; then
  12838. ac_cv_func_mmap_anon=no
  12839. else
  12840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
  12841. $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
  12842. if test "${ac_cv_func_mmap_anon+set}" = set; then :
  12843. $as_echo_n "(cached) " >&6
  12844. else
  12845. # Add a system to this blacklist if it has mmap() and MAP_ANON or
  12846. # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
  12847. # doesn't give anonymous zeroed pages with the same properties listed
  12848. # above for use of /dev/zero.
  12849. # Systems known to be in this category are Windows, VMS, and SCO Unix.
  12850. case "$host_os" in
  12851. vms* | cygwin* | pe | mingw* | sco* | udk* )
  12852. ac_cv_func_mmap_anon=no ;;
  12853. *)
  12854. ac_cv_func_mmap_anon=yes;;
  12855. esac
  12856. fi
  12857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
  12858. $as_echo "$ac_cv_func_mmap_anon" >&6; }
  12859. fi
  12860. fi
  12861. if test $ac_cv_func_mmap_file = yes; then
  12862. $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
  12863. fi
  12864. if test $ac_cv_func_mmap_dev_zero = yes; then
  12865. $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
  12866. fi
  12867. if test $ac_cv_func_mmap_anon = yes; then
  12868. $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
  12869. fi
  12870. if test -d $srcdir/testsuite; then
  12871. TESTSUBDIR_TRUE=
  12872. TESTSUBDIR_FALSE='#'
  12873. else
  12874. TESTSUBDIR_TRUE='#'
  12875. TESTSUBDIR_FALSE=
  12876. fi
  12877. TARGETDIR="unknown"
  12878. HAVE_LONG_DOUBLE_VARIANT=0
  12879. . ${srcdir}/configure.host
  12880. if test -n "${UNSUPPORTED}"; then
  12881. as_fn_error "\"libffi has not been ported to $host.\"" "$LINENO" 5
  12882. fi
  12883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  12884. $as_echo_n "checking for ANSI C header files... " >&6; }
  12885. if test "${ac_cv_header_stdc+set}" = set; then :
  12886. $as_echo_n "(cached) " >&6
  12887. else
  12888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12889. /* end confdefs.h. */
  12890. #include <stdlib.h>
  12891. #include <stdarg.h>
  12892. #include <string.h>
  12893. #include <float.h>
  12894. int
  12895. main ()
  12896. {
  12897. ;
  12898. return 0;
  12899. }
  12900. _ACEOF
  12901. if ac_fn_c_try_compile "$LINENO"; then :
  12902. ac_cv_header_stdc=yes
  12903. else
  12904. ac_cv_header_stdc=no
  12905. fi
  12906. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12907. if test $ac_cv_header_stdc = yes; then
  12908. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  12909. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12910. /* end confdefs.h. */
  12911. #include <string.h>
  12912. _ACEOF
  12913. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12914. $EGREP "memchr" >/dev/null 2>&1; then :
  12915. else
  12916. ac_cv_header_stdc=no
  12917. fi
  12918. rm -f conftest*
  12919. fi
  12920. if test $ac_cv_header_stdc = yes; then
  12921. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  12922. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12923. /* end confdefs.h. */
  12924. #include <stdlib.h>
  12925. _ACEOF
  12926. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12927. $EGREP "free" >/dev/null 2>&1; then :
  12928. else
  12929. ac_cv_header_stdc=no
  12930. fi
  12931. rm -f conftest*
  12932. fi
  12933. if test $ac_cv_header_stdc = yes; then
  12934. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  12935. if test "$cross_compiling" = yes; then :
  12936. :
  12937. else
  12938. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12939. /* end confdefs.h. */
  12940. #include <ctype.h>
  12941. #include <stdlib.h>
  12942. #if ((' ' & 0x0FF) == 0x020)
  12943. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  12944. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  12945. #else
  12946. # define ISLOWER(c) \
  12947. (('a' <= (c) && (c) <= 'i') \
  12948. || ('j' <= (c) && (c) <= 'r') \
  12949. || ('s' <= (c) && (c) <= 'z'))
  12950. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  12951. #endif
  12952. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  12953. int
  12954. main ()
  12955. {
  12956. int i;
  12957. for (i = 0; i < 256; i++)
  12958. if (XOR (islower (i), ISLOWER (i))
  12959. || toupper (i) != TOUPPER (i))
  12960. return 2;
  12961. return 0;
  12962. }
  12963. _ACEOF
  12964. if ac_fn_c_try_run "$LINENO"; then :
  12965. else
  12966. ac_cv_header_stdc=no
  12967. fi
  12968. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12969. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12970. fi
  12971. fi
  12972. fi
  12973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  12974. $as_echo "$ac_cv_header_stdc" >&6; }
  12975. if test $ac_cv_header_stdc = yes; then
  12976. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  12977. fi
  12978. for ac_func in memcpy
  12979. do :
  12980. ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
  12981. if test "x$ac_cv_func_memcpy" = x""yes; then :
  12982. cat >>confdefs.h <<_ACEOF
  12983. #define HAVE_MEMCPY 1
  12984. _ACEOF
  12985. fi
  12986. done
  12987. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  12988. # for constant arguments. Useless!
  12989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  12990. $as_echo_n "checking for working alloca.h... " >&6; }
  12991. if test "${ac_cv_working_alloca_h+set}" = set; then :
  12992. $as_echo_n "(cached) " >&6
  12993. else
  12994. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12995. /* end confdefs.h. */
  12996. #include <alloca.h>
  12997. int
  12998. main ()
  12999. {
  13000. char *p = (char *) alloca (2 * sizeof (int));
  13001. if (p) return 0;
  13002. ;
  13003. return 0;
  13004. }
  13005. _ACEOF
  13006. if ac_fn_c_try_link "$LINENO"; then :
  13007. ac_cv_working_alloca_h=yes
  13008. else
  13009. ac_cv_working_alloca_h=no
  13010. fi
  13011. rm -f core conftest.err conftest.$ac_objext \
  13012. conftest$ac_exeext conftest.$ac_ext
  13013. fi
  13014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  13015. $as_echo "$ac_cv_working_alloca_h" >&6; }
  13016. if test $ac_cv_working_alloca_h = yes; then
  13017. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  13018. fi
  13019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  13020. $as_echo_n "checking for alloca... " >&6; }
  13021. if test "${ac_cv_func_alloca_works+set}" = set; then :
  13022. $as_echo_n "(cached) " >&6
  13023. else
  13024. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13025. /* end confdefs.h. */
  13026. #ifdef __GNUC__
  13027. # define alloca __builtin_alloca
  13028. #else
  13029. # ifdef _MSC_VER
  13030. # include <malloc.h>
  13031. # define alloca _alloca
  13032. # else
  13033. # ifdef HAVE_ALLOCA_H
  13034. # include <alloca.h>
  13035. # else
  13036. # ifdef _AIX
  13037. #pragma alloca
  13038. # else
  13039. # ifndef alloca /* predefined by HP cc +Olibcalls */
  13040. char *alloca ();
  13041. # endif
  13042. # endif
  13043. # endif
  13044. # endif
  13045. #endif
  13046. int
  13047. main ()
  13048. {
  13049. char *p = (char *) alloca (1);
  13050. if (p) return 0;
  13051. ;
  13052. return 0;
  13053. }
  13054. _ACEOF
  13055. if ac_fn_c_try_link "$LINENO"; then :
  13056. ac_cv_func_alloca_works=yes
  13057. else
  13058. ac_cv_func_alloca_works=no
  13059. fi
  13060. rm -f core conftest.err conftest.$ac_objext \
  13061. conftest$ac_exeext conftest.$ac_ext
  13062. fi
  13063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  13064. $as_echo "$ac_cv_func_alloca_works" >&6; }
  13065. if test $ac_cv_func_alloca_works = yes; then
  13066. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  13067. else
  13068. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  13069. # that cause trouble. Some versions do not even contain alloca or
  13070. # contain a buggy version. If you still want to use their alloca,
  13071. # use ar to extract alloca.o from them instead of compiling alloca.c.
  13072. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  13073. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  13074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  13075. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  13076. if test "${ac_cv_os_cray+set}" = set; then :
  13077. $as_echo_n "(cached) " >&6
  13078. else
  13079. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13080. /* end confdefs.h. */
  13081. #if defined CRAY && ! defined CRAY2
  13082. webecray
  13083. #else
  13084. wenotbecray
  13085. #endif
  13086. _ACEOF
  13087. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13088. $EGREP "webecray" >/dev/null 2>&1; then :
  13089. ac_cv_os_cray=yes
  13090. else
  13091. ac_cv_os_cray=no
  13092. fi
  13093. rm -f conftest*
  13094. fi
  13095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  13096. $as_echo "$ac_cv_os_cray" >&6; }
  13097. if test $ac_cv_os_cray = yes; then
  13098. for ac_func in _getb67 GETB67 getb67; do
  13099. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13100. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13101. eval as_val=\$$as_ac_var
  13102. if test "x$as_val" = x""yes; then :
  13103. cat >>confdefs.h <<_ACEOF
  13104. #define CRAY_STACKSEG_END $ac_func
  13105. _ACEOF
  13106. break
  13107. fi
  13108. done
  13109. fi
  13110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  13111. $as_echo_n "checking stack direction for C alloca... " >&6; }
  13112. if test "${ac_cv_c_stack_direction+set}" = set; then :
  13113. $as_echo_n "(cached) " >&6
  13114. else
  13115. if test "$cross_compiling" = yes; then :
  13116. ac_cv_c_stack_direction=0
  13117. else
  13118. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13119. /* end confdefs.h. */
  13120. $ac_includes_default
  13121. int
  13122. find_stack_direction ()
  13123. {
  13124. static char *addr = 0;
  13125. auto char dummy;
  13126. if (addr == 0)
  13127. {
  13128. addr = &dummy;
  13129. return find_stack_direction ();
  13130. }
  13131. else
  13132. return (&dummy > addr) ? 1 : -1;
  13133. }
  13134. int
  13135. main ()
  13136. {
  13137. return find_stack_direction () < 0;
  13138. }
  13139. _ACEOF
  13140. if ac_fn_c_try_run "$LINENO"; then :
  13141. ac_cv_c_stack_direction=1
  13142. else
  13143. ac_cv_c_stack_direction=-1
  13144. fi
  13145. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13146. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13147. fi
  13148. fi
  13149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  13150. $as_echo "$ac_cv_c_stack_direction" >&6; }
  13151. cat >>confdefs.h <<_ACEOF
  13152. #define STACK_DIRECTION $ac_cv_c_stack_direction
  13153. _ACEOF
  13154. fi
  13155. # The cast to long int works around a bug in the HP C Compiler
  13156. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13157. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13158. # This bug is HP SR number 8606223364.
  13159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
  13160. $as_echo_n "checking size of double... " >&6; }
  13161. if test "${ac_cv_sizeof_double+set}" = set; then :
  13162. $as_echo_n "(cached) " >&6
  13163. else
  13164. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
  13165. else
  13166. if test "$ac_cv_type_double" = yes; then
  13167. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13168. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13169. { as_fn_set_status 77
  13170. as_fn_error "cannot compute sizeof (double)
  13171. See \`config.log' for more details." "$LINENO" 5; }; }
  13172. else
  13173. ac_cv_sizeof_double=0
  13174. fi
  13175. fi
  13176. fi
  13177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
  13178. $as_echo "$ac_cv_sizeof_double" >&6; }
  13179. cat >>confdefs.h <<_ACEOF
  13180. #define SIZEOF_DOUBLE $ac_cv_sizeof_double
  13181. _ACEOF
  13182. # The cast to long int works around a bug in the HP C Compiler
  13183. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13184. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13185. # This bug is HP SR number 8606223364.
  13186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
  13187. $as_echo_n "checking size of long double... " >&6; }
  13188. if test "${ac_cv_sizeof_long_double+set}" = set; then :
  13189. $as_echo_n "(cached) " >&6
  13190. else
  13191. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
  13192. else
  13193. if test "$ac_cv_type_long_double" = yes; then
  13194. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13195. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13196. { as_fn_set_status 77
  13197. as_fn_error "cannot compute sizeof (long double)
  13198. See \`config.log' for more details." "$LINENO" 5; }; }
  13199. else
  13200. ac_cv_sizeof_long_double=0
  13201. fi
  13202. fi
  13203. fi
  13204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
  13205. $as_echo "$ac_cv_sizeof_long_double" >&6; }
  13206. cat >>confdefs.h <<_ACEOF
  13207. #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
  13208. _ACEOF
  13209. # Also AC_SUBST this variable for ffi.h.
  13210. if test -z "$HAVE_LONG_DOUBLE"; then
  13211. HAVE_LONG_DOUBLE=0
  13212. if test $ac_cv_sizeof_long_double != 0; then
  13213. if test $HAVE_LONG_DOUBLE_VARIANT != 0; then
  13214. $as_echo "#define HAVE_LONG_DOUBLE_VARIANT 1" >>confdefs.h
  13215. HAVE_LONG_DOUBLE=1
  13216. else
  13217. if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
  13218. HAVE_LONG_DOUBLE=1
  13219. $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
  13220. fi
  13221. fi
  13222. fi
  13223. fi
  13224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  13225. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  13226. if test "${ac_cv_c_bigendian+set}" = set; then :
  13227. $as_echo_n "(cached) " >&6
  13228. else
  13229. ac_cv_c_bigendian=unknown
  13230. # See if we're dealing with a universal compiler.
  13231. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13232. /* end confdefs.h. */
  13233. #ifndef __APPLE_CC__
  13234. not a universal capable compiler
  13235. #endif
  13236. typedef int dummy;
  13237. _ACEOF
  13238. if ac_fn_c_try_compile "$LINENO"; then :
  13239. # Check for potential -arch flags. It is not universal unless
  13240. # there are at least two -arch flags with different values.
  13241. ac_arch=
  13242. ac_prev=
  13243. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  13244. if test -n "$ac_prev"; then
  13245. case $ac_word in
  13246. i?86 | x86_64 | ppc | ppc64)
  13247. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  13248. ac_arch=$ac_word
  13249. else
  13250. ac_cv_c_bigendian=universal
  13251. break
  13252. fi
  13253. ;;
  13254. esac
  13255. ac_prev=
  13256. elif test "x$ac_word" = "x-arch"; then
  13257. ac_prev=arch
  13258. fi
  13259. done
  13260. fi
  13261. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13262. if test $ac_cv_c_bigendian = unknown; then
  13263. # See if sys/param.h defines the BYTE_ORDER macro.
  13264. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13265. /* end confdefs.h. */
  13266. #include <sys/types.h>
  13267. #include <sys/param.h>
  13268. int
  13269. main ()
  13270. {
  13271. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  13272. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  13273. && LITTLE_ENDIAN)
  13274. bogus endian macros
  13275. #endif
  13276. ;
  13277. return 0;
  13278. }
  13279. _ACEOF
  13280. if ac_fn_c_try_compile "$LINENO"; then :
  13281. # It does; now see whether it defined to BIG_ENDIAN or not.
  13282. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13283. /* end confdefs.h. */
  13284. #include <sys/types.h>
  13285. #include <sys/param.h>
  13286. int
  13287. main ()
  13288. {
  13289. #if BYTE_ORDER != BIG_ENDIAN
  13290. not big endian
  13291. #endif
  13292. ;
  13293. return 0;
  13294. }
  13295. _ACEOF
  13296. if ac_fn_c_try_compile "$LINENO"; then :
  13297. ac_cv_c_bigendian=yes
  13298. else
  13299. ac_cv_c_bigendian=no
  13300. fi
  13301. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13302. fi
  13303. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13304. fi
  13305. if test $ac_cv_c_bigendian = unknown; then
  13306. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  13307. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13308. /* end confdefs.h. */
  13309. #include <limits.h>
  13310. int
  13311. main ()
  13312. {
  13313. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  13314. bogus endian macros
  13315. #endif
  13316. ;
  13317. return 0;
  13318. }
  13319. _ACEOF
  13320. if ac_fn_c_try_compile "$LINENO"; then :
  13321. # It does; now see whether it defined to _BIG_ENDIAN or not.
  13322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13323. /* end confdefs.h. */
  13324. #include <limits.h>
  13325. int
  13326. main ()
  13327. {
  13328. #ifndef _BIG_ENDIAN
  13329. not big endian
  13330. #endif
  13331. ;
  13332. return 0;
  13333. }
  13334. _ACEOF
  13335. if ac_fn_c_try_compile "$LINENO"; then :
  13336. ac_cv_c_bigendian=yes
  13337. else
  13338. ac_cv_c_bigendian=no
  13339. fi
  13340. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13341. fi
  13342. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13343. fi
  13344. if test $ac_cv_c_bigendian = unknown; then
  13345. # Compile a test program.
  13346. if test "$cross_compiling" = yes; then :
  13347. # Try to guess by grepping values from an object file.
  13348. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13349. /* end confdefs.h. */
  13350. short int ascii_mm[] =
  13351. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  13352. short int ascii_ii[] =
  13353. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  13354. int use_ascii (int i) {
  13355. return ascii_mm[i] + ascii_ii[i];
  13356. }
  13357. short int ebcdic_ii[] =
  13358. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  13359. short int ebcdic_mm[] =
  13360. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  13361. int use_ebcdic (int i) {
  13362. return ebcdic_mm[i] + ebcdic_ii[i];
  13363. }
  13364. extern int foo;
  13365. int
  13366. main ()
  13367. {
  13368. return use_ascii (foo) == use_ebcdic (foo);
  13369. ;
  13370. return 0;
  13371. }
  13372. _ACEOF
  13373. if ac_fn_c_try_compile "$LINENO"; then :
  13374. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  13375. ac_cv_c_bigendian=yes
  13376. fi
  13377. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  13378. if test "$ac_cv_c_bigendian" = unknown; then
  13379. ac_cv_c_bigendian=no
  13380. else
  13381. # finding both strings is unlikely to happen, but who knows?
  13382. ac_cv_c_bigendian=unknown
  13383. fi
  13384. fi
  13385. fi
  13386. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13387. else
  13388. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13389. /* end confdefs.h. */
  13390. $ac_includes_default
  13391. int
  13392. main ()
  13393. {
  13394. /* Are we little or big endian? From Harbison&Steele. */
  13395. union
  13396. {
  13397. long int l;
  13398. char c[sizeof (long int)];
  13399. } u;
  13400. u.l = 1;
  13401. return u.c[sizeof (long int) - 1] == 1;
  13402. ;
  13403. return 0;
  13404. }
  13405. _ACEOF
  13406. if ac_fn_c_try_run "$LINENO"; then :
  13407. ac_cv_c_bigendian=no
  13408. else
  13409. ac_cv_c_bigendian=yes
  13410. fi
  13411. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13412. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13413. fi
  13414. fi
  13415. fi
  13416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  13417. $as_echo "$ac_cv_c_bigendian" >&6; }
  13418. case $ac_cv_c_bigendian in #(
  13419. yes)
  13420. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  13421. ;; #(
  13422. no)
  13423. ;; #(
  13424. universal)
  13425. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  13426. ;; #(
  13427. *)
  13428. as_fn_error "unknown endianness
  13429. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  13430. esac
  13431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
  13432. $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
  13433. if test "${gcc_cv_as_cfi_pseudo_op+set}" = set; then :
  13434. $as_echo_n "(cached) " >&6
  13435. else
  13436. gcc_cv_as_cfi_pseudo_op=unknown
  13437. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13438. /* end confdefs.h. */
  13439. asm (".cfi_startproc\n\t.cfi_endproc");
  13440. int
  13441. main ()
  13442. {
  13443. ;
  13444. return 0;
  13445. }
  13446. _ACEOF
  13447. if ac_fn_c_try_compile "$LINENO"; then :
  13448. gcc_cv_as_cfi_pseudo_op=yes
  13449. else
  13450. gcc_cv_as_cfi_pseudo_op=no
  13451. fi
  13452. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13453. fi
  13454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
  13455. $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
  13456. if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
  13457. $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
  13458. fi
  13459. case "$TARGET" in
  13460. SPARC)
  13461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
  13462. $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
  13463. if test "${libffi_cv_as_sparc_ua_pcrel+set}" = set; then :
  13464. $as_echo_n "(cached) " >&6
  13465. else
  13466. save_CFLAGS="$CFLAGS"
  13467. save_LDFLAGS="$LDFLAGS"
  13468. CFLAGS="$CFLAGS -fpic"
  13469. LDFLAGS="$LDFLAGS -shared"
  13470. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13471. /* end confdefs.h. */
  13472. asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
  13473. int
  13474. main ()
  13475. {
  13476. ;
  13477. return 0;
  13478. }
  13479. _ACEOF
  13480. if ac_fn_c_try_link "$LINENO"; then :
  13481. libffi_cv_as_sparc_ua_pcrel=yes
  13482. else
  13483. libffi_cv_as_sparc_ua_pcrel=no
  13484. fi
  13485. rm -f core conftest.err conftest.$ac_objext \
  13486. conftest$ac_exeext conftest.$ac_ext
  13487. CFLAGS="$save_CFLAGS"
  13488. LDFLAGS="$save_LDFLAGS"
  13489. fi
  13490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
  13491. $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
  13492. if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
  13493. $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
  13494. fi
  13495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
  13496. $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
  13497. if test "${libffi_cv_as_register_pseudo_op+set}" = set; then :
  13498. $as_echo_n "(cached) " >&6
  13499. else
  13500. libffi_cv_as_register_pseudo_op=unknown
  13501. # Check if we have .register
  13502. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13503. /* end confdefs.h. */
  13504. int
  13505. main ()
  13506. {
  13507. asm (".register %g2, #scratch");
  13508. ;
  13509. return 0;
  13510. }
  13511. _ACEOF
  13512. if ac_fn_c_try_compile "$LINENO"; then :
  13513. libffi_cv_as_register_pseudo_op=yes
  13514. else
  13515. libffi_cv_as_register_pseudo_op=no
  13516. fi
  13517. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13518. fi
  13519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
  13520. $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
  13521. if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
  13522. $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
  13523. fi
  13524. ;;
  13525. X86*)
  13526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
  13527. $as_echo_n "checking assembler supports pc related relocs... " >&6; }
  13528. if test "${libffi_cv_as_x86_pcrel+set}" = set; then :
  13529. $as_echo_n "(cached) " >&6
  13530. else
  13531. libffi_cv_as_x86_pcrel=no
  13532. echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
  13533. if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
  13534. libffi_cv_as_x86_pcrel=yes
  13535. fi
  13536. fi
  13537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
  13538. $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
  13539. if test "x$libffi_cv_as_x86_pcrel" = xyes; then
  13540. $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
  13541. fi
  13542. ;;
  13543. S390)
  13544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler uses zarch features" >&5
  13545. $as_echo_n "checking compiler uses zarch features... " >&6; }
  13546. if test "${libffi_cv_as_s390_zarch+set}" = set; then :
  13547. $as_echo_n "(cached) " >&6
  13548. else
  13549. libffi_cv_as_s390_zarch=no
  13550. echo 'void foo(void) { bar(); bar(); }' > conftest.c
  13551. if $CC $CFLAGS -S conftest.c > /dev/null 2>&1; then
  13552. if grep -q brasl conftest.s; then
  13553. libffi_cv_as_s390_zarch=yes
  13554. fi
  13555. fi
  13556. fi
  13557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_s390_zarch" >&5
  13558. $as_echo "$libffi_cv_as_s390_zarch" >&6; }
  13559. if test "x$libffi_cv_as_s390_zarch" = xyes; then
  13560. $as_echo "#define HAVE_AS_S390_ZARCH 1" >>confdefs.h
  13561. fi
  13562. ;;
  13563. esac
  13564. # On PaX enable kernels that have MPROTECT enable we can't use PROT_EXEC.
  13565. # Check whether --enable-pax_emutramp was given.
  13566. if test "${enable_pax_emutramp+set}" = set; then :
  13567. enableval=$enable_pax_emutramp; if test "$enable_pax_emutramp" = "yes"; then
  13568. $as_echo "#define FFI_MMAP_EXEC_EMUTRAMP_PAX 1" >>confdefs.h
  13569. fi
  13570. fi
  13571. FFI_EXEC_TRAMPOLINE_TABLE=0
  13572. case "$target" in
  13573. *arm*-apple-darwin* | aarch64-apple-darwin*)
  13574. FFI_EXEC_TRAMPOLINE_TABLE=1
  13575. $as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h
  13576. ;;
  13577. *-apple-darwin1* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris*)
  13578. $as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
  13579. ;;
  13580. esac
  13581. if test x$FFI_EXEC_TRAMPOLINE_TABLE = x1; then
  13582. FFI_EXEC_TRAMPOLINE_TABLE_TRUE=
  13583. FFI_EXEC_TRAMPOLINE_TABLE_FALSE='#'
  13584. else
  13585. FFI_EXEC_TRAMPOLINE_TABLE_TRUE='#'
  13586. FFI_EXEC_TRAMPOLINE_TABLE_FALSE=
  13587. fi
  13588. if test x$TARGET = xX86_64; then
  13589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking toolchain supports unwind section type" >&5
  13590. $as_echo_n "checking toolchain supports unwind section type... " >&6; }
  13591. if test "${libffi_cv_as_x86_64_unwind_section_type+set}" = set; then :
  13592. $as_echo_n "(cached) " >&6
  13593. else
  13594. cat > conftest1.s << EOF
  13595. .text
  13596. .globl foo
  13597. foo:
  13598. jmp bar
  13599. .section .eh_frame,"a",@unwind
  13600. bar:
  13601. EOF
  13602. cat > conftest2.c << EOF
  13603. extern void foo();
  13604. int main(){foo();}
  13605. EOF
  13606. libffi_cv_as_x86_64_unwind_section_type=no
  13607. # we ensure that we can compile _and_ link an assembly file containing an @unwind section
  13608. # since the compiler can support it and not the linker (ie old binutils)
  13609. if $CC -Wa,--fatal-warnings $CFLAGS -c conftest1.s > /dev/null 2>&1 && \
  13610. $CC conftest2.c conftest1.o > /dev/null 2>&1 ; then
  13611. libffi_cv_as_x86_64_unwind_section_type=yes
  13612. fi
  13613. fi
  13614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
  13615. $as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
  13616. if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
  13617. $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
  13618. fi
  13619. fi
  13620. if test "x$GCC" = "xyes"; then
  13621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
  13622. $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
  13623. if test "${libffi_cv_ro_eh_frame+set}" = set; then :
  13624. $as_echo_n "(cached) " >&6
  13625. else
  13626. libffi_cv_ro_eh_frame=no
  13627. echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
  13628. if $CC $CFLAGS -c -fpic -fexceptions -o conftest.o conftest.c > /dev/null 2>&1; then
  13629. objdump -h conftest.o > conftest.dump 2>&1
  13630. libffi_eh_frame_line=`grep -n eh_frame conftest.dump | cut -d: -f 1`
  13631. if test "x$libffi_eh_frame_line" != "x"; then
  13632. libffi_test_line=`expr $libffi_eh_frame_line + 1`p
  13633. sed -n $libffi_test_line conftest.dump > conftest.line
  13634. if grep READONLY conftest.line > /dev/null; then
  13635. libffi_cv_ro_eh_frame=yes
  13636. fi
  13637. fi
  13638. fi
  13639. rm -f conftest.*
  13640. fi
  13641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
  13642. $as_echo "$libffi_cv_ro_eh_frame" >&6; }
  13643. if test "x$libffi_cv_ro_eh_frame" = xyes; then
  13644. $as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
  13645. $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
  13646. else
  13647. $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
  13648. fi
  13649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
  13650. $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
  13651. if test "${libffi_cv_hidden_visibility_attribute+set}" = set; then :
  13652. $as_echo_n "(cached) " >&6
  13653. else
  13654. echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1 ; }' > conftest.c
  13655. libffi_cv_hidden_visibility_attribute=no
  13656. if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
  13657. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  13658. (eval $ac_try) 2>&5
  13659. ac_status=$?
  13660. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13661. test $ac_status = 0; }; }; then
  13662. if grep '\.hidden.*foo' conftest.s >/dev/null; then
  13663. libffi_cv_hidden_visibility_attribute=yes
  13664. fi
  13665. fi
  13666. rm -f conftest.*
  13667. fi
  13668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
  13669. $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
  13670. if test $libffi_cv_hidden_visibility_attribute = yes; then
  13671. $as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
  13672. fi
  13673. fi
  13674. TARGET_OBJ=
  13675. for i in $SOURCES; do
  13676. TARGET_OBJ="${TARGET_OBJ} src/${TARGETDIR}/"`echo $i | sed 's/[cS]$/lo/'`
  13677. done
  13678. # Check whether --enable-debug was given.
  13679. if test "${enable_debug+set}" = set; then :
  13680. enableval=$enable_debug; if test "$enable_debug" = "yes"; then
  13681. $as_echo "#define FFI_DEBUG 1" >>confdefs.h
  13682. fi
  13683. fi
  13684. if test "$enable_debug" = "yes"; then
  13685. FFI_DEBUG_TRUE=
  13686. FFI_DEBUG_FALSE='#'
  13687. else
  13688. FFI_DEBUG_TRUE='#'
  13689. FFI_DEBUG_FALSE=
  13690. fi
  13691. # Check whether --enable-structs was given.
  13692. if test "${enable_structs+set}" = set; then :
  13693. enableval=$enable_structs; if test "$enable_structs" = "no"; then
  13694. $as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
  13695. fi
  13696. fi
  13697. if test "$enable_debug" = "yes"; then
  13698. FFI_DEBUG_TRUE=
  13699. FFI_DEBUG_FALSE='#'
  13700. else
  13701. FFI_DEBUG_TRUE='#'
  13702. FFI_DEBUG_FALSE=
  13703. fi
  13704. # Check whether --enable-raw-api was given.
  13705. if test "${enable_raw_api+set}" = set; then :
  13706. enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
  13707. $as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
  13708. fi
  13709. fi
  13710. # Check whether --enable-purify-safety was given.
  13711. if test "${enable_purify_safety+set}" = set; then :
  13712. enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
  13713. $as_echo "#define USING_PURIFY 1" >>confdefs.h
  13714. fi
  13715. fi
  13716. if test -n "$with_cross_host" &&
  13717. test x"$with_cross_host" != x"no"; then
  13718. toolexecdir='$(exec_prefix)/$(target_alias)'
  13719. toolexeclibdir='$(toolexecdir)/lib'
  13720. else
  13721. toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
  13722. toolexeclibdir='$(libdir)'
  13723. fi
  13724. multi_os_directory=`$CC -print-multi-os-directory`
  13725. case $multi_os_directory in
  13726. .) ;; # Avoid trailing /.
  13727. *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
  13728. esac
  13729. if test "${multilib}" = "yes"; then
  13730. multilib_arg="--enable-multilib"
  13731. else
  13732. multilib_arg=
  13733. fi
  13734. ac_config_commands="$ac_config_commands include"
  13735. ac_config_commands="$ac_config_commands src"
  13736. ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
  13737. ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
  13738. cat >confcache <<\_ACEOF
  13739. # This file is a shell script that caches the results of configure
  13740. # tests run on this system so they can be shared between configure
  13741. # scripts and configure runs, see configure's option --config-cache.
  13742. # It is not useful on other systems. If it contains results you don't
  13743. # want to keep, you may remove or edit it.
  13744. #
  13745. # config.status only pays attention to the cache file if you give it
  13746. # the --recheck option to rerun configure.
  13747. #
  13748. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13749. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13750. # following values.
  13751. _ACEOF
  13752. # The following way of writing the cache mishandles newlines in values,
  13753. # but we know of no workaround that is simple, portable, and efficient.
  13754. # So, we kill variables containing newlines.
  13755. # Ultrix sh set writes to stderr and can't be redirected directly,
  13756. # and sets the high bit in the cache file unless we assign to the vars.
  13757. (
  13758. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13759. eval ac_val=\$$ac_var
  13760. case $ac_val in #(
  13761. *${as_nl}*)
  13762. case $ac_var in #(
  13763. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13764. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13765. esac
  13766. case $ac_var in #(
  13767. _ | IFS | as_nl) ;; #(
  13768. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13769. *) { eval $ac_var=; unset $ac_var;} ;;
  13770. esac ;;
  13771. esac
  13772. done
  13773. (set) 2>&1 |
  13774. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13775. *${as_nl}ac_space=\ *)
  13776. # `set' does not quote correctly, so add quotes: double-quote
  13777. # substitution turns \\\\ into \\, and sed turns \\ into \.
  13778. sed -n \
  13779. "s/'/'\\\\''/g;
  13780. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13781. ;; #(
  13782. *)
  13783. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13784. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  13785. ;;
  13786. esac |
  13787. sort
  13788. ) |
  13789. sed '
  13790. /^ac_cv_env_/b end
  13791. t clear
  13792. :clear
  13793. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  13794. t end
  13795. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  13796. :end' >>confcache
  13797. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  13798. if test -w "$cache_file"; then
  13799. test "x$cache_file" != "x/dev/null" &&
  13800. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  13801. $as_echo "$as_me: updating cache $cache_file" >&6;}
  13802. cat confcache >$cache_file
  13803. else
  13804. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  13805. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  13806. fi
  13807. fi
  13808. rm -f confcache
  13809. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  13810. # Let make expand exec_prefix.
  13811. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  13812. DEFS=-DHAVE_CONFIG_H
  13813. ac_libobjs=
  13814. ac_ltlibobjs=
  13815. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  13816. # 1. Remove the extension, and $U if already installed.
  13817. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  13818. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  13819. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  13820. # will be set to the directory where LIBOBJS objects are built.
  13821. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  13822. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  13823. done
  13824. LIBOBJS=$ac_libobjs
  13825. LTLIBOBJS=$ac_ltlibobjs
  13826. if test -n "$EXEEXT"; then
  13827. am__EXEEXT_TRUE=
  13828. am__EXEEXT_FALSE='#'
  13829. else
  13830. am__EXEEXT_TRUE='#'
  13831. am__EXEEXT_FALSE=
  13832. fi
  13833. if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
  13834. as_fn_error "conditional \"BUILD_INFO\" was never defined.
  13835. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13836. fi
  13837. if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
  13838. as_fn_error "conditional \"GENINSRC\" was never defined.
  13839. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13840. fi
  13841. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  13842. as_fn_error "conditional \"AMDEP\" was never defined.
  13843. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13844. fi
  13845. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  13846. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  13847. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13848. fi
  13849. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  13850. as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  13851. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13852. fi
  13853. if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
  13854. as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
  13855. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13856. fi
  13857. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  13858. as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  13859. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13860. fi
  13861. if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
  13862. as_fn_error "conditional \"TESTSUBDIR\" was never defined.
  13863. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13864. fi
  13865. if test -z "${FFI_EXEC_TRAMPOLINE_TABLE_TRUE}" && test -z "${FFI_EXEC_TRAMPOLINE_TABLE_FALSE}"; then
  13866. as_fn_error "conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
  13867. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13868. fi
  13869. if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
  13870. as_fn_error "conditional \"FFI_DEBUG\" was never defined.
  13871. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13872. fi
  13873. if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
  13874. as_fn_error "conditional \"FFI_DEBUG\" was never defined.
  13875. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13876. fi
  13877. : ${CONFIG_STATUS=./config.status}
  13878. ac_write_fail=0
  13879. ac_clean_files_save=$ac_clean_files
  13880. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  13881. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  13882. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  13883. as_write_fail=0
  13884. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  13885. #! $SHELL
  13886. # Generated by $as_me.
  13887. # Run this file to recreate the current configuration.
  13888. # Compiler output produced by configure, useful for debugging
  13889. # configure, is in config.log if it exists.
  13890. debug=false
  13891. ac_cs_recheck=false
  13892. ac_cs_silent=false
  13893. SHELL=\${CONFIG_SHELL-$SHELL}
  13894. export SHELL
  13895. _ASEOF
  13896. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  13897. ## -------------------- ##
  13898. ## M4sh Initialization. ##
  13899. ## -------------------- ##
  13900. # Be more Bourne compatible
  13901. DUALCASE=1; export DUALCASE # for MKS sh
  13902. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  13903. emulate sh
  13904. NULLCMD=:
  13905. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13906. # is contrary to our usage. Disable this feature.
  13907. alias -g '${1+"$@"}'='"$@"'
  13908. setopt NO_GLOB_SUBST
  13909. else
  13910. case `(set -o) 2>/dev/null` in #(
  13911. *posix*) :
  13912. set -o posix ;; #(
  13913. *) :
  13914. ;;
  13915. esac
  13916. fi
  13917. as_nl='
  13918. '
  13919. export as_nl
  13920. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  13921. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  13922. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  13923. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  13924. # Prefer a ksh shell builtin over an external printf program on Solaris,
  13925. # but without wasting forks for bash or zsh.
  13926. if test -z "$BASH_VERSION$ZSH_VERSION" \
  13927. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  13928. as_echo='print -r --'
  13929. as_echo_n='print -rn --'
  13930. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  13931. as_echo='printf %s\n'
  13932. as_echo_n='printf %s'
  13933. else
  13934. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  13935. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  13936. as_echo_n='/usr/ucb/echo -n'
  13937. else
  13938. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  13939. as_echo_n_body='eval
  13940. arg=$1;
  13941. case $arg in #(
  13942. *"$as_nl"*)
  13943. expr "X$arg" : "X\\(.*\\)$as_nl";
  13944. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  13945. esac;
  13946. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  13947. '
  13948. export as_echo_n_body
  13949. as_echo_n='sh -c $as_echo_n_body as_echo'
  13950. fi
  13951. export as_echo_body
  13952. as_echo='sh -c $as_echo_body as_echo'
  13953. fi
  13954. # The user is always right.
  13955. if test "${PATH_SEPARATOR+set}" != set; then
  13956. PATH_SEPARATOR=:
  13957. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  13958. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  13959. PATH_SEPARATOR=';'
  13960. }
  13961. fi
  13962. # IFS
  13963. # We need space, tab and new line, in precisely that order. Quoting is
  13964. # there to prevent editors from complaining about space-tab.
  13965. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  13966. # splitting by setting IFS to empty value.)
  13967. IFS=" "" $as_nl"
  13968. # Find who we are. Look in the path if we contain no directory separator.
  13969. case $0 in #((
  13970. *[\\/]* ) as_myself=$0 ;;
  13971. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13972. for as_dir in $PATH
  13973. do
  13974. IFS=$as_save_IFS
  13975. test -z "$as_dir" && as_dir=.
  13976. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13977. done
  13978. IFS=$as_save_IFS
  13979. ;;
  13980. esac
  13981. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13982. # in which case we are not to be found in the path.
  13983. if test "x$as_myself" = x; then
  13984. as_myself=$0
  13985. fi
  13986. if test ! -f "$as_myself"; then
  13987. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13988. exit 1
  13989. fi
  13990. # Unset variables that we do not need and which cause bugs (e.g. in
  13991. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  13992. # suppresses any "Segmentation fault" message there. '((' could
  13993. # trigger a bug in pdksh 5.2.14.
  13994. for as_var in BASH_ENV ENV MAIL MAILPATH
  13995. do eval test x\${$as_var+set} = xset \
  13996. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  13997. done
  13998. PS1='$ '
  13999. PS2='> '
  14000. PS4='+ '
  14001. # NLS nuisances.
  14002. LC_ALL=C
  14003. export LC_ALL
  14004. LANGUAGE=C
  14005. export LANGUAGE
  14006. # CDPATH.
  14007. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14008. # as_fn_error ERROR [LINENO LOG_FD]
  14009. # ---------------------------------
  14010. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  14011. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  14012. # script with status $?, using 1 if that was 0.
  14013. as_fn_error ()
  14014. {
  14015. as_status=$?; test $as_status -eq 0 && as_status=1
  14016. if test "$3"; then
  14017. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14018. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  14019. fi
  14020. $as_echo "$as_me: error: $1" >&2
  14021. as_fn_exit $as_status
  14022. } # as_fn_error
  14023. # as_fn_set_status STATUS
  14024. # -----------------------
  14025. # Set $? to STATUS, without forking.
  14026. as_fn_set_status ()
  14027. {
  14028. return $1
  14029. } # as_fn_set_status
  14030. # as_fn_exit STATUS
  14031. # -----------------
  14032. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  14033. as_fn_exit ()
  14034. {
  14035. set +e
  14036. as_fn_set_status $1
  14037. exit $1
  14038. } # as_fn_exit
  14039. # as_fn_unset VAR
  14040. # ---------------
  14041. # Portably unset VAR.
  14042. as_fn_unset ()
  14043. {
  14044. { eval $1=; unset $1;}
  14045. }
  14046. as_unset=as_fn_unset
  14047. # as_fn_append VAR VALUE
  14048. # ----------------------
  14049. # Append the text in VALUE to the end of the definition contained in VAR. Take
  14050. # advantage of any shell optimizations that allow amortized linear growth over
  14051. # repeated appends, instead of the typical quadratic growth present in naive
  14052. # implementations.
  14053. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  14054. eval 'as_fn_append ()
  14055. {
  14056. eval $1+=\$2
  14057. }'
  14058. else
  14059. as_fn_append ()
  14060. {
  14061. eval $1=\$$1\$2
  14062. }
  14063. fi # as_fn_append
  14064. # as_fn_arith ARG...
  14065. # ------------------
  14066. # Perform arithmetic evaluation on the ARGs, and store the result in the
  14067. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  14068. # must be portable across $(()) and expr.
  14069. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  14070. eval 'as_fn_arith ()
  14071. {
  14072. as_val=$(( $* ))
  14073. }'
  14074. else
  14075. as_fn_arith ()
  14076. {
  14077. as_val=`expr "$@" || test $? -eq 1`
  14078. }
  14079. fi # as_fn_arith
  14080. if expr a : '\(a\)' >/dev/null 2>&1 &&
  14081. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  14082. as_expr=expr
  14083. else
  14084. as_expr=false
  14085. fi
  14086. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  14087. as_basename=basename
  14088. else
  14089. as_basename=false
  14090. fi
  14091. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  14092. as_dirname=dirname
  14093. else
  14094. as_dirname=false
  14095. fi
  14096. as_me=`$as_basename -- "$0" ||
  14097. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  14098. X"$0" : 'X\(//\)$' \| \
  14099. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  14100. $as_echo X/"$0" |
  14101. sed '/^.*\/\([^/][^/]*\)\/*$/{
  14102. s//\1/
  14103. q
  14104. }
  14105. /^X\/\(\/\/\)$/{
  14106. s//\1/
  14107. q
  14108. }
  14109. /^X\/\(\/\).*/{
  14110. s//\1/
  14111. q
  14112. }
  14113. s/.*/./; q'`
  14114. # Avoid depending upon Character Ranges.
  14115. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  14116. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  14117. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  14118. as_cr_digits='0123456789'
  14119. as_cr_alnum=$as_cr_Letters$as_cr_digits
  14120. ECHO_C= ECHO_N= ECHO_T=
  14121. case `echo -n x` in #(((((
  14122. -n*)
  14123. case `echo 'xy\c'` in
  14124. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  14125. xy) ECHO_C='\c';;
  14126. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  14127. ECHO_T=' ';;
  14128. esac;;
  14129. *)
  14130. ECHO_N='-n';;
  14131. esac
  14132. rm -f conf$$ conf$$.exe conf$$.file
  14133. if test -d conf$$.dir; then
  14134. rm -f conf$$.dir/conf$$.file
  14135. else
  14136. rm -f conf$$.dir
  14137. mkdir conf$$.dir 2>/dev/null
  14138. fi
  14139. if (echo >conf$$.file) 2>/dev/null; then
  14140. if ln -s conf$$.file conf$$ 2>/dev/null; then
  14141. as_ln_s='ln -s'
  14142. # ... but there are two gotchas:
  14143. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  14144. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  14145. # In both cases, we have to default to `cp -p'.
  14146. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  14147. as_ln_s='cp -p'
  14148. elif ln conf$$.file conf$$ 2>/dev/null; then
  14149. as_ln_s=ln
  14150. else
  14151. as_ln_s='cp -p'
  14152. fi
  14153. else
  14154. as_ln_s='cp -p'
  14155. fi
  14156. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  14157. rmdir conf$$.dir 2>/dev/null
  14158. # as_fn_mkdir_p
  14159. # -------------
  14160. # Create "$as_dir" as a directory, including parents if necessary.
  14161. as_fn_mkdir_p ()
  14162. {
  14163. case $as_dir in #(
  14164. -*) as_dir=./$as_dir;;
  14165. esac
  14166. test -d "$as_dir" || eval $as_mkdir_p || {
  14167. as_dirs=
  14168. while :; do
  14169. case $as_dir in #(
  14170. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  14171. *) as_qdir=$as_dir;;
  14172. esac
  14173. as_dirs="'$as_qdir' $as_dirs"
  14174. as_dir=`$as_dirname -- "$as_dir" ||
  14175. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14176. X"$as_dir" : 'X\(//\)[^/]' \| \
  14177. X"$as_dir" : 'X\(//\)$' \| \
  14178. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  14179. $as_echo X"$as_dir" |
  14180. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14181. s//\1/
  14182. q
  14183. }
  14184. /^X\(\/\/\)[^/].*/{
  14185. s//\1/
  14186. q
  14187. }
  14188. /^X\(\/\/\)$/{
  14189. s//\1/
  14190. q
  14191. }
  14192. /^X\(\/\).*/{
  14193. s//\1/
  14194. q
  14195. }
  14196. s/.*/./; q'`
  14197. test -d "$as_dir" && break
  14198. done
  14199. test -z "$as_dirs" || eval "mkdir $as_dirs"
  14200. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  14201. } # as_fn_mkdir_p
  14202. if mkdir -p . 2>/dev/null; then
  14203. as_mkdir_p='mkdir -p "$as_dir"'
  14204. else
  14205. test -d ./-p && rmdir ./-p
  14206. as_mkdir_p=false
  14207. fi
  14208. if test -x / >/dev/null 2>&1; then
  14209. as_test_x='test -x'
  14210. else
  14211. if ls -dL / >/dev/null 2>&1; then
  14212. as_ls_L_option=L
  14213. else
  14214. as_ls_L_option=
  14215. fi
  14216. as_test_x='
  14217. eval sh -c '\''
  14218. if test -d "$1"; then
  14219. test -d "$1/.";
  14220. else
  14221. case $1 in #(
  14222. -*)set "./$1";;
  14223. esac;
  14224. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  14225. ???[sx]*):;;*)false;;esac;fi
  14226. '\'' sh
  14227. '
  14228. fi
  14229. as_executable_p=$as_test_x
  14230. # Sed expression to map a string onto a valid CPP name.
  14231. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  14232. # Sed expression to map a string onto a valid variable name.
  14233. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  14234. exec 6>&1
  14235. ## ----------------------------------- ##
  14236. ## Main body of $CONFIG_STATUS script. ##
  14237. ## ----------------------------------- ##
  14238. _ASEOF
  14239. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  14240. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14241. # Save the log message, to keep $0 and so on meaningful, and to
  14242. # report actual input values of CONFIG_FILES etc. instead of their
  14243. # values after options handling.
  14244. ac_log="
  14245. This file was extended by libffi $as_me 3.99999, which was
  14246. generated by GNU Autoconf 2.64. Invocation command line was
  14247. CONFIG_FILES = $CONFIG_FILES
  14248. CONFIG_HEADERS = $CONFIG_HEADERS
  14249. CONFIG_LINKS = $CONFIG_LINKS
  14250. CONFIG_COMMANDS = $CONFIG_COMMANDS
  14251. $ $0 $@
  14252. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  14253. "
  14254. _ACEOF
  14255. case $ac_config_files in *"
  14256. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  14257. esac
  14258. case $ac_config_headers in *"
  14259. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  14260. esac
  14261. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14262. # Files that config.status was made for.
  14263. config_files="$ac_config_files"
  14264. config_headers="$ac_config_headers"
  14265. config_links="$ac_config_links"
  14266. config_commands="$ac_config_commands"
  14267. _ACEOF
  14268. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14269. ac_cs_usage="\
  14270. \`$as_me' instantiates files and other configuration actions
  14271. from templates according to the current configuration. Unless the files
  14272. and actions are specified as TAGs, all are instantiated by default.
  14273. Usage: $0 [OPTION]... [TAG]...
  14274. -h, --help print this help, then exit
  14275. -V, --version print version number and configuration settings, then exit
  14276. -q, --quiet, --silent
  14277. do not print progress messages
  14278. -d, --debug don't remove temporary files
  14279. --recheck update $as_me by reconfiguring in the same conditions
  14280. --file=FILE[:TEMPLATE]
  14281. instantiate the configuration file FILE
  14282. --header=FILE[:TEMPLATE]
  14283. instantiate the configuration header FILE
  14284. Configuration files:
  14285. $config_files
  14286. Configuration headers:
  14287. $config_headers
  14288. Configuration links:
  14289. $config_links
  14290. Configuration commands:
  14291. $config_commands
  14292. Report bugs to <http://github.com/atgreen/libffi/issues>."
  14293. _ACEOF
  14294. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14295. ac_cs_version="\\
  14296. libffi config.status 3.99999
  14297. configured by $0, generated by GNU Autoconf 2.64,
  14298. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  14299. Copyright (C) 2009 Free Software Foundation, Inc.
  14300. This config.status script is free software; the Free Software Foundation
  14301. gives unlimited permission to copy, distribute and modify it."
  14302. ac_pwd='$ac_pwd'
  14303. srcdir='$srcdir'
  14304. INSTALL='$INSTALL'
  14305. MKDIR_P='$MKDIR_P'
  14306. AWK='$AWK'
  14307. test -n "\$AWK" || AWK=awk
  14308. _ACEOF
  14309. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14310. # The default lists apply if the user does not specify any file.
  14311. ac_need_defaults=:
  14312. while test $# != 0
  14313. do
  14314. case $1 in
  14315. --*=*)
  14316. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14317. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  14318. ac_shift=:
  14319. ;;
  14320. *)
  14321. ac_option=$1
  14322. ac_optarg=$2
  14323. ac_shift=shift
  14324. ;;
  14325. esac
  14326. case $ac_option in
  14327. # Handling of the options.
  14328. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  14329. ac_cs_recheck=: ;;
  14330. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  14331. $as_echo "$ac_cs_version"; exit ;;
  14332. --debug | --debu | --deb | --de | --d | -d )
  14333. debug=: ;;
  14334. --file | --fil | --fi | --f )
  14335. $ac_shift
  14336. case $ac_optarg in
  14337. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14338. esac
  14339. as_fn_append CONFIG_FILES " '$ac_optarg'"
  14340. ac_need_defaults=false;;
  14341. --header | --heade | --head | --hea )
  14342. $ac_shift
  14343. case $ac_optarg in
  14344. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14345. esac
  14346. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  14347. ac_need_defaults=false;;
  14348. --he | --h)
  14349. # Conflict between --help and --header
  14350. as_fn_error "ambiguous option: \`$1'
  14351. Try \`$0 --help' for more information.";;
  14352. --help | --hel | -h )
  14353. $as_echo "$ac_cs_usage"; exit ;;
  14354. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14355. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  14356. ac_cs_silent=: ;;
  14357. # This is an error.
  14358. -*) as_fn_error "unrecognized option: \`$1'
  14359. Try \`$0 --help' for more information." ;;
  14360. *) as_fn_append ac_config_targets " $1"
  14361. ac_need_defaults=false ;;
  14362. esac
  14363. shift
  14364. done
  14365. ac_configure_extra_args=
  14366. if $ac_cs_silent; then
  14367. exec 6>/dev/null
  14368. ac_configure_extra_args="$ac_configure_extra_args --silent"
  14369. fi
  14370. _ACEOF
  14371. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14372. if \$ac_cs_recheck; then
  14373. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14374. shift
  14375. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  14376. CONFIG_SHELL='$SHELL'
  14377. export CONFIG_SHELL
  14378. exec "\$@"
  14379. fi
  14380. _ACEOF
  14381. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14382. exec 5>>config.log
  14383. {
  14384. echo
  14385. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  14386. ## Running $as_me. ##
  14387. _ASBOX
  14388. $as_echo "$ac_log"
  14389. } >&5
  14390. _ACEOF
  14391. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14392. #
  14393. # INIT-COMMANDS
  14394. #
  14395. srcdir="$srcdir"
  14396. host="$host"
  14397. target="$target"
  14398. with_multisubdir="$with_multisubdir"
  14399. with_multisrctop="$with_multisrctop"
  14400. with_target_subdir="$with_target_subdir"
  14401. ac_configure_args="${multilib_arg} ${ac_configure_args}"
  14402. multi_basedir="$multi_basedir"
  14403. CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  14404. CC="$CC"
  14405. CXX="$CXX"
  14406. GFORTRAN="$GFORTRAN"
  14407. GCJ="$GCJ"
  14408. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  14409. # The HP-UX ksh and POSIX shell print the target directory to stdout
  14410. # if CDPATH is set.
  14411. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14412. sed_quote_subst='$sed_quote_subst'
  14413. double_quote_subst='$double_quote_subst'
  14414. delay_variable_subst='$delay_variable_subst'
  14415. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  14416. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  14417. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  14418. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  14419. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  14420. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  14421. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  14422. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  14423. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  14424. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  14425. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  14426. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  14427. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  14428. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  14429. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  14430. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  14431. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  14432. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  14433. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  14434. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  14435. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  14436. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  14437. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  14438. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  14439. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  14440. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  14441. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  14442. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  14443. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  14444. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  14445. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  14446. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  14447. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  14448. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  14449. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  14450. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  14451. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  14452. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14453. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14454. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  14455. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  14456. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  14457. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  14458. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  14459. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  14460. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  14461. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  14462. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  14463. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  14464. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  14465. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  14466. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  14467. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  14468. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  14469. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  14470. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  14471. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  14472. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  14473. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  14474. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  14475. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  14476. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  14477. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  14478. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  14479. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14480. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  14481. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  14482. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  14483. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  14484. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  14485. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  14486. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14487. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  14488. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14489. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  14490. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14491. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  14492. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14493. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14494. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  14495. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  14496. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  14497. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  14498. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  14499. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  14500. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14501. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  14502. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  14503. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  14504. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  14505. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  14506. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  14507. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  14508. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  14509. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  14510. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  14511. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  14512. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  14513. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  14514. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  14515. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  14516. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14517. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  14518. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  14519. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  14520. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  14521. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  14522. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14523. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14524. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  14525. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  14526. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  14527. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  14528. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  14529. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  14530. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  14531. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  14532. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  14533. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  14534. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  14535. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  14536. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  14537. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  14538. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  14539. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  14540. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  14541. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  14542. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14543. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14544. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14545. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  14546. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  14547. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14548. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  14549. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  14550. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  14551. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  14552. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  14553. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  14554. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14555. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14556. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  14557. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14558. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14559. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14560. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14561. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14562. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14563. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  14564. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14565. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14566. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14567. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
  14568. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  14569. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  14570. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  14571. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  14572. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  14573. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  14574. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  14575. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  14576. fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
  14577. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  14578. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14579. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  14580. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  14581. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14582. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14583. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  14584. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  14585. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  14586. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  14587. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  14588. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  14589. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  14590. LTCC='$LTCC'
  14591. LTCFLAGS='$LTCFLAGS'
  14592. compiler='$compiler_DEFAULT'
  14593. # A function that is used when there is no print builtin or printf.
  14594. func_fallback_echo ()
  14595. {
  14596. eval 'cat <<_LTECHO_EOF
  14597. \$1
  14598. _LTECHO_EOF'
  14599. }
  14600. # Quote evaled strings.
  14601. for var in SHELL \
  14602. ECHO \
  14603. SED \
  14604. GREP \
  14605. EGREP \
  14606. FGREP \
  14607. LD \
  14608. NM \
  14609. LN_S \
  14610. lt_SP2NL \
  14611. lt_NL2SP \
  14612. reload_flag \
  14613. OBJDUMP \
  14614. deplibs_check_method \
  14615. file_magic_cmd \
  14616. AR \
  14617. AR_FLAGS \
  14618. STRIP \
  14619. RANLIB \
  14620. CC \
  14621. CFLAGS \
  14622. compiler \
  14623. lt_cv_sys_global_symbol_pipe \
  14624. lt_cv_sys_global_symbol_to_cdecl \
  14625. lt_cv_sys_global_symbol_to_c_name_address \
  14626. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  14627. lt_prog_compiler_no_builtin_flag \
  14628. lt_prog_compiler_wl \
  14629. lt_prog_compiler_pic \
  14630. lt_prog_compiler_static \
  14631. lt_cv_prog_compiler_c_o \
  14632. need_locks \
  14633. DSYMUTIL \
  14634. NMEDIT \
  14635. LIPO \
  14636. OTOOL \
  14637. OTOOL64 \
  14638. shrext_cmds \
  14639. export_dynamic_flag_spec \
  14640. whole_archive_flag_spec \
  14641. compiler_needs_object \
  14642. with_gnu_ld \
  14643. allow_undefined_flag \
  14644. no_undefined_flag \
  14645. hardcode_libdir_flag_spec \
  14646. hardcode_libdir_flag_spec_ld \
  14647. hardcode_libdir_separator \
  14648. fix_srcfile_path \
  14649. exclude_expsyms \
  14650. include_expsyms \
  14651. file_list_spec \
  14652. variables_saved_for_relink \
  14653. libname_spec \
  14654. library_names_spec \
  14655. soname_spec \
  14656. install_override_mode \
  14657. finish_eval \
  14658. old_striplib \
  14659. striplib \
  14660. compiler_lib_search_dirs \
  14661. predep_objects \
  14662. postdep_objects \
  14663. predeps \
  14664. postdeps \
  14665. compiler_lib_search_path \
  14666. LD_CXX \
  14667. reload_flag_CXX \
  14668. compiler_CXX \
  14669. lt_prog_compiler_no_builtin_flag_CXX \
  14670. lt_prog_compiler_wl_CXX \
  14671. lt_prog_compiler_pic_CXX \
  14672. lt_prog_compiler_static_CXX \
  14673. lt_cv_prog_compiler_c_o_CXX \
  14674. export_dynamic_flag_spec_CXX \
  14675. whole_archive_flag_spec_CXX \
  14676. compiler_needs_object_CXX \
  14677. with_gnu_ld_CXX \
  14678. allow_undefined_flag_CXX \
  14679. no_undefined_flag_CXX \
  14680. hardcode_libdir_flag_spec_CXX \
  14681. hardcode_libdir_flag_spec_ld_CXX \
  14682. hardcode_libdir_separator_CXX \
  14683. fix_srcfile_path_CXX \
  14684. exclude_expsyms_CXX \
  14685. include_expsyms_CXX \
  14686. file_list_spec_CXX \
  14687. compiler_lib_search_dirs_CXX \
  14688. predep_objects_CXX \
  14689. postdep_objects_CXX \
  14690. predeps_CXX \
  14691. postdeps_CXX \
  14692. compiler_lib_search_path_CXX; do
  14693. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  14694. *[\\\\\\\`\\"\\\$]*)
  14695. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  14696. ;;
  14697. *)
  14698. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14699. ;;
  14700. esac
  14701. done
  14702. # Double-quote double-evaled strings.
  14703. for var in reload_cmds \
  14704. old_postinstall_cmds \
  14705. old_postuninstall_cmds \
  14706. old_archive_cmds \
  14707. extract_expsyms_cmds \
  14708. old_archive_from_new_cmds \
  14709. old_archive_from_expsyms_cmds \
  14710. archive_cmds \
  14711. archive_expsym_cmds \
  14712. module_cmds \
  14713. module_expsym_cmds \
  14714. export_symbols_cmds \
  14715. prelink_cmds \
  14716. postinstall_cmds \
  14717. postuninstall_cmds \
  14718. finish_cmds \
  14719. sys_lib_search_path_spec \
  14720. sys_lib_dlsearch_path_spec \
  14721. reload_cmds_CXX \
  14722. old_archive_cmds_CXX \
  14723. old_archive_from_new_cmds_CXX \
  14724. old_archive_from_expsyms_cmds_CXX \
  14725. archive_cmds_CXX \
  14726. archive_expsym_cmds_CXX \
  14727. module_cmds_CXX \
  14728. module_expsym_cmds_CXX \
  14729. export_symbols_cmds_CXX \
  14730. prelink_cmds_CXX; do
  14731. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  14732. *[\\\\\\\`\\"\\\$]*)
  14733. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  14734. ;;
  14735. *)
  14736. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14737. ;;
  14738. esac
  14739. done
  14740. ac_aux_dir='$ac_aux_dir'
  14741. xsi_shell='$xsi_shell'
  14742. lt_shell_append='$lt_shell_append'
  14743. # See if we are running on zsh, and set the options which allow our
  14744. # commands through without removal of \ escapes INIT.
  14745. if test -n "\${ZSH_VERSION+set}" ; then
  14746. setopt NO_GLOB_SUBST
  14747. fi
  14748. PACKAGE='$PACKAGE'
  14749. VERSION='$VERSION'
  14750. TIMESTAMP='$TIMESTAMP'
  14751. RM='$RM'
  14752. ofile='$ofile'
  14753. TARGETDIR="$TARGETDIR"
  14754. _ACEOF
  14755. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14756. # Handling of arguments.
  14757. for ac_config_target in $ac_config_targets
  14758. do
  14759. case $ac_config_target in
  14760. "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
  14761. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  14762. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  14763. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  14764. "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
  14765. "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
  14766. "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
  14767. "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
  14768. "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
  14769. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  14770. "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
  14771. "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
  14772. "libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;;
  14773. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  14774. esac
  14775. done
  14776. # If the user did not use the arguments to specify the items to instantiate,
  14777. # then the envvar interface is used. Set only those that are not.
  14778. # We use the long form for the default assignment because of an extremely
  14779. # bizarre bug on SunOS 4.1.3.
  14780. if $ac_need_defaults; then
  14781. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  14782. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  14783. test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
  14784. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  14785. fi
  14786. # Have a temporary directory for convenience. Make it in the build tree
  14787. # simply because there is no reason against having it here, and in addition,
  14788. # creating and moving files from /tmp can sometimes cause problems.
  14789. # Hook for its removal unless debugging.
  14790. # Note that there is a small window in which the directory will not be cleaned:
  14791. # after its creation but before its name has been assigned to `$tmp'.
  14792. $debug ||
  14793. {
  14794. tmp=
  14795. trap 'exit_status=$?
  14796. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  14797. ' 0
  14798. trap 'as_fn_exit 1' 1 2 13 15
  14799. }
  14800. # Create a (secure) tmp directory for tmp files.
  14801. {
  14802. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  14803. test -n "$tmp" && test -d "$tmp"
  14804. } ||
  14805. {
  14806. tmp=./conf$$-$RANDOM
  14807. (umask 077 && mkdir "$tmp")
  14808. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  14809. # Set up the scripts for CONFIG_FILES section.
  14810. # No need to generate them if there are no CONFIG_FILES.
  14811. # This happens for instance with `./config.status config.h'.
  14812. if test -n "$CONFIG_FILES"; then
  14813. ac_cr=`echo X | tr X '\015'`
  14814. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  14815. # But we know of no other shell where ac_cr would be empty at this
  14816. # point, so we can use a bashism as a fallback.
  14817. if test "x$ac_cr" = x; then
  14818. eval ac_cr=\$\'\\r\'
  14819. fi
  14820. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  14821. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  14822. ac_cs_awk_cr='\r'
  14823. else
  14824. ac_cs_awk_cr=$ac_cr
  14825. fi
  14826. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  14827. _ACEOF
  14828. {
  14829. echo "cat >conf$$subs.awk <<_ACEOF" &&
  14830. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  14831. echo "_ACEOF"
  14832. } >conf$$subs.sh ||
  14833. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14834. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  14835. ac_delim='%!_!# '
  14836. for ac_last_try in false false false false false :; do
  14837. . ./conf$$subs.sh ||
  14838. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14839. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  14840. if test $ac_delim_n = $ac_delim_num; then
  14841. break
  14842. elif $ac_last_try; then
  14843. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14844. else
  14845. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14846. fi
  14847. done
  14848. rm -f conf$$subs.sh
  14849. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14850. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  14851. _ACEOF
  14852. sed -n '
  14853. h
  14854. s/^/S["/; s/!.*/"]=/
  14855. p
  14856. g
  14857. s/^[^!]*!//
  14858. :repl
  14859. t repl
  14860. s/'"$ac_delim"'$//
  14861. t delim
  14862. :nl
  14863. h
  14864. s/\(.\{148\}\).*/\1/
  14865. t more1
  14866. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  14867. p
  14868. n
  14869. b repl
  14870. :more1
  14871. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14872. p
  14873. g
  14874. s/.\{148\}//
  14875. t nl
  14876. :delim
  14877. h
  14878. s/\(.\{148\}\).*/\1/
  14879. t more2
  14880. s/["\\]/\\&/g; s/^/"/; s/$/"/
  14881. p
  14882. b
  14883. :more2
  14884. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14885. p
  14886. g
  14887. s/.\{148\}//
  14888. t delim
  14889. ' <conf$$subs.awk | sed '
  14890. /^[^""]/{
  14891. N
  14892. s/\n//
  14893. }
  14894. ' >>$CONFIG_STATUS || ac_write_fail=1
  14895. rm -f conf$$subs.awk
  14896. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14897. _ACAWK
  14898. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  14899. for (key in S) S_is_set[key] = 1
  14900. FS = ""
  14901. }
  14902. {
  14903. line = $ 0
  14904. nfields = split(line, field, "@")
  14905. substed = 0
  14906. len = length(field[1])
  14907. for (i = 2; i < nfields; i++) {
  14908. key = field[i]
  14909. keylen = length(key)
  14910. if (S_is_set[key]) {
  14911. value = S[key]
  14912. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  14913. len += length(value) + length(field[++i])
  14914. substed = 1
  14915. } else
  14916. len += 1 + keylen
  14917. }
  14918. print line
  14919. }
  14920. _ACAWK
  14921. _ACEOF
  14922. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14923. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  14924. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  14925. else
  14926. cat
  14927. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  14928. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  14929. _ACEOF
  14930. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  14931. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  14932. # trailing colons and then remove the whole line if VPATH becomes empty
  14933. # (actually we leave an empty line to preserve line numbers).
  14934. if test "x$srcdir" = x.; then
  14935. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  14936. s/:*\$(srcdir):*/:/
  14937. s/:*\${srcdir}:*/:/
  14938. s/:*@srcdir@:*/:/
  14939. s/^\([^=]*=[ ]*\):*/\1/
  14940. s/:*$//
  14941. s/^[^=]*=[ ]*$//
  14942. }'
  14943. fi
  14944. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14945. fi # test -n "$CONFIG_FILES"
  14946. # Set up the scripts for CONFIG_HEADERS section.
  14947. # No need to generate them if there are no CONFIG_HEADERS.
  14948. # This happens for instance with `./config.status Makefile'.
  14949. if test -n "$CONFIG_HEADERS"; then
  14950. cat >"$tmp/defines.awk" <<\_ACAWK ||
  14951. BEGIN {
  14952. _ACEOF
  14953. # Transform confdefs.h into an awk script `defines.awk', embedded as
  14954. # here-document in config.status, that substitutes the proper values into
  14955. # config.h.in to produce config.h.
  14956. # Create a delimiter string that does not exist in confdefs.h, to ease
  14957. # handling of long lines.
  14958. ac_delim='%!_!# '
  14959. for ac_last_try in false false :; do
  14960. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  14961. if test -z "$ac_t"; then
  14962. break
  14963. elif $ac_last_try; then
  14964. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  14965. else
  14966. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14967. fi
  14968. done
  14969. # For the awk script, D is an array of macro values keyed by name,
  14970. # likewise P contains macro parameters if any. Preserve backslash
  14971. # newline sequences.
  14972. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  14973. sed -n '
  14974. s/.\{148\}/&'"$ac_delim"'/g
  14975. t rset
  14976. :rset
  14977. s/^[ ]*#[ ]*define[ ][ ]*/ /
  14978. t def
  14979. d
  14980. :def
  14981. s/\\$//
  14982. t bsnl
  14983. s/["\\]/\\&/g
  14984. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14985. D["\1"]=" \3"/p
  14986. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  14987. d
  14988. :bsnl
  14989. s/["\\]/\\&/g
  14990. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14991. D["\1"]=" \3\\\\\\n"\\/p
  14992. t cont
  14993. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  14994. t cont
  14995. d
  14996. :cont
  14997. n
  14998. s/.\{148\}/&'"$ac_delim"'/g
  14999. t clear
  15000. :clear
  15001. s/\\$//
  15002. t bsnlc
  15003. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  15004. d
  15005. :bsnlc
  15006. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  15007. b cont
  15008. ' <confdefs.h | sed '
  15009. s/'"$ac_delim"'/"\\\
  15010. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  15011. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15012. for (key in D) D_is_set[key] = 1
  15013. FS = ""
  15014. }
  15015. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  15016. line = \$ 0
  15017. split(line, arg, " ")
  15018. if (arg[1] == "#") {
  15019. defundef = arg[2]
  15020. mac1 = arg[3]
  15021. } else {
  15022. defundef = substr(arg[1], 2)
  15023. mac1 = arg[2]
  15024. }
  15025. split(mac1, mac2, "(") #)
  15026. macro = mac2[1]
  15027. prefix = substr(line, 1, index(line, defundef) - 1)
  15028. if (D_is_set[macro]) {
  15029. # Preserve the white space surrounding the "#".
  15030. print prefix "define", macro P[macro] D[macro]
  15031. next
  15032. } else {
  15033. # Replace #undef with comments. This is necessary, for example,
  15034. # in the case of _POSIX_SOURCE, which is predefined and required
  15035. # on some systems where configure will not decide to define it.
  15036. if (defundef == "undef") {
  15037. print "/*", prefix defundef, macro, "*/"
  15038. next
  15039. }
  15040. }
  15041. }
  15042. { print }
  15043. _ACAWK
  15044. _ACEOF
  15045. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15046. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  15047. fi # test -n "$CONFIG_HEADERS"
  15048. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
  15049. shift
  15050. for ac_tag
  15051. do
  15052. case $ac_tag in
  15053. :[FHLC]) ac_mode=$ac_tag; continue;;
  15054. esac
  15055. case $ac_mode$ac_tag in
  15056. :[FHL]*:*);;
  15057. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  15058. :[FH]-) ac_tag=-:-;;
  15059. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  15060. esac
  15061. ac_save_IFS=$IFS
  15062. IFS=:
  15063. set x $ac_tag
  15064. IFS=$ac_save_IFS
  15065. shift
  15066. ac_file=$1
  15067. shift
  15068. case $ac_mode in
  15069. :L) ac_source=$1;;
  15070. :[FH])
  15071. ac_file_inputs=
  15072. for ac_f
  15073. do
  15074. case $ac_f in
  15075. -) ac_f="$tmp/stdin";;
  15076. *) # Look for the file first in the build tree, then in the source tree
  15077. # (if the path is not absolute). The absolute path cannot be DOS-style,
  15078. # because $ac_f cannot contain `:'.
  15079. test -f "$ac_f" ||
  15080. case $ac_f in
  15081. [\\/$]*) false;;
  15082. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  15083. esac ||
  15084. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  15085. esac
  15086. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  15087. as_fn_append ac_file_inputs " '$ac_f'"
  15088. done
  15089. # Let's still pretend it is `configure' which instantiates (i.e., don't
  15090. # use $as_me), people would be surprised to read:
  15091. # /* config.h. Generated by config.status. */
  15092. configure_input='Generated from '`
  15093. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  15094. `' by configure.'
  15095. if test x"$ac_file" != x-; then
  15096. configure_input="$ac_file. $configure_input"
  15097. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  15098. $as_echo "$as_me: creating $ac_file" >&6;}
  15099. fi
  15100. # Neutralize special characters interpreted by sed in replacement strings.
  15101. case $configure_input in #(
  15102. *\&* | *\|* | *\\* )
  15103. ac_sed_conf_input=`$as_echo "$configure_input" |
  15104. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  15105. *) ac_sed_conf_input=$configure_input;;
  15106. esac
  15107. case $ac_tag in
  15108. *:-:* | *:-) cat >"$tmp/stdin" \
  15109. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  15110. esac
  15111. ;;
  15112. esac
  15113. ac_dir=`$as_dirname -- "$ac_file" ||
  15114. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15115. X"$ac_file" : 'X\(//\)[^/]' \| \
  15116. X"$ac_file" : 'X\(//\)$' \| \
  15117. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  15118. $as_echo X"$ac_file" |
  15119. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15120. s//\1/
  15121. q
  15122. }
  15123. /^X\(\/\/\)[^/].*/{
  15124. s//\1/
  15125. q
  15126. }
  15127. /^X\(\/\/\)$/{
  15128. s//\1/
  15129. q
  15130. }
  15131. /^X\(\/\).*/{
  15132. s//\1/
  15133. q
  15134. }
  15135. s/.*/./; q'`
  15136. as_dir="$ac_dir"; as_fn_mkdir_p
  15137. ac_builddir=.
  15138. case "$ac_dir" in
  15139. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15140. *)
  15141. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  15142. # A ".." for each directory in $ac_dir_suffix.
  15143. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  15144. case $ac_top_builddir_sub in
  15145. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15146. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  15147. esac ;;
  15148. esac
  15149. ac_abs_top_builddir=$ac_pwd
  15150. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  15151. # for backward compatibility:
  15152. ac_top_builddir=$ac_top_build_prefix
  15153. case $srcdir in
  15154. .) # We are building in place.
  15155. ac_srcdir=.
  15156. ac_top_srcdir=$ac_top_builddir_sub
  15157. ac_abs_top_srcdir=$ac_pwd ;;
  15158. [\\/]* | ?:[\\/]* ) # Absolute name.
  15159. ac_srcdir=$srcdir$ac_dir_suffix;
  15160. ac_top_srcdir=$srcdir
  15161. ac_abs_top_srcdir=$srcdir ;;
  15162. *) # Relative name.
  15163. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  15164. ac_top_srcdir=$ac_top_build_prefix$srcdir
  15165. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  15166. esac
  15167. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  15168. case $ac_mode in
  15169. :F)
  15170. #
  15171. # CONFIG_FILE
  15172. #
  15173. case $INSTALL in
  15174. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  15175. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  15176. esac
  15177. ac_MKDIR_P=$MKDIR_P
  15178. case $MKDIR_P in
  15179. [\\/$]* | ?:[\\/]* ) ;;
  15180. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  15181. esac
  15182. _ACEOF
  15183. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15184. # If the template does not know about datarootdir, expand it.
  15185. # FIXME: This hack should be removed a few years after 2.60.
  15186. ac_datarootdir_hack=; ac_datarootdir_seen=
  15187. ac_sed_dataroot='
  15188. /datarootdir/ {
  15189. p
  15190. q
  15191. }
  15192. /@datadir@/p
  15193. /@docdir@/p
  15194. /@infodir@/p
  15195. /@localedir@/p
  15196. /@mandir@/p'
  15197. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  15198. *datarootdir*) ac_datarootdir_seen=yes;;
  15199. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  15200. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  15201. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  15202. _ACEOF
  15203. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15204. ac_datarootdir_hack='
  15205. s&@datadir@&$datadir&g
  15206. s&@docdir@&$docdir&g
  15207. s&@infodir@&$infodir&g
  15208. s&@localedir@&$localedir&g
  15209. s&@mandir@&$mandir&g
  15210. s&\\\${datarootdir}&$datarootdir&g' ;;
  15211. esac
  15212. _ACEOF
  15213. # Neutralize VPATH when `$srcdir' = `.'.
  15214. # Shell code in configure.ac might set extrasub.
  15215. # FIXME: do we really want to maintain this feature?
  15216. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15217. ac_sed_extra="$ac_vpsub
  15218. $extrasub
  15219. _ACEOF
  15220. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15221. :t
  15222. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  15223. s|@configure_input@|$ac_sed_conf_input|;t t
  15224. s&@top_builddir@&$ac_top_builddir_sub&;t t
  15225. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  15226. s&@srcdir@&$ac_srcdir&;t t
  15227. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  15228. s&@top_srcdir@&$ac_top_srcdir&;t t
  15229. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  15230. s&@builddir@&$ac_builddir&;t t
  15231. s&@abs_builddir@&$ac_abs_builddir&;t t
  15232. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  15233. s&@INSTALL@&$ac_INSTALL&;t t
  15234. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  15235. $ac_datarootdir_hack
  15236. "
  15237. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  15238. || as_fn_error "could not create $ac_file" "$LINENO" 5
  15239. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  15240. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  15241. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  15242. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15243. which seems to be undefined. Please make sure it is defined." >&5
  15244. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15245. which seems to be undefined. Please make sure it is defined." >&2;}
  15246. rm -f "$tmp/stdin"
  15247. case $ac_file in
  15248. -) cat "$tmp/out" && rm -f "$tmp/out";;
  15249. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  15250. esac \
  15251. || as_fn_error "could not create $ac_file" "$LINENO" 5
  15252. ;;
  15253. :H)
  15254. #
  15255. # CONFIG_HEADER
  15256. #
  15257. if test x"$ac_file" != x-; then
  15258. {
  15259. $as_echo "/* $configure_input */" \
  15260. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  15261. } >"$tmp/config.h" \
  15262. || as_fn_error "could not create $ac_file" "$LINENO" 5
  15263. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  15264. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  15265. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  15266. else
  15267. rm -f "$ac_file"
  15268. mv "$tmp/config.h" "$ac_file" \
  15269. || as_fn_error "could not create $ac_file" "$LINENO" 5
  15270. fi
  15271. else
  15272. $as_echo "/* $configure_input */" \
  15273. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  15274. || as_fn_error "could not create -" "$LINENO" 5
  15275. fi
  15276. # Compute "$ac_file"'s index in $config_headers.
  15277. _am_arg="$ac_file"
  15278. _am_stamp_count=1
  15279. for _am_header in $config_headers :; do
  15280. case $_am_header in
  15281. $_am_arg | $_am_arg:* )
  15282. break ;;
  15283. * )
  15284. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  15285. esac
  15286. done
  15287. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  15288. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15289. X"$_am_arg" : 'X\(//\)[^/]' \| \
  15290. X"$_am_arg" : 'X\(//\)$' \| \
  15291. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  15292. $as_echo X"$_am_arg" |
  15293. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15294. s//\1/
  15295. q
  15296. }
  15297. /^X\(\/\/\)[^/].*/{
  15298. s//\1/
  15299. q
  15300. }
  15301. /^X\(\/\/\)$/{
  15302. s//\1/
  15303. q
  15304. }
  15305. /^X\(\/\).*/{
  15306. s//\1/
  15307. q
  15308. }
  15309. s/.*/./; q'`/stamp-h$_am_stamp_count
  15310. ;;
  15311. :L)
  15312. #
  15313. # CONFIG_LINK
  15314. #
  15315. if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
  15316. :
  15317. else
  15318. # Prefer the file from the source tree if names are identical.
  15319. if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
  15320. ac_source=$srcdir/$ac_source
  15321. fi
  15322. { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
  15323. $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
  15324. if test ! -r "$ac_source"; then
  15325. as_fn_error "$ac_source: file not found" "$LINENO" 5
  15326. fi
  15327. rm -f "$ac_file"
  15328. # Try a relative symlink, then a hard link, then a copy.
  15329. case $srcdir in
  15330. [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
  15331. *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
  15332. esac
  15333. ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
  15334. ln "$ac_source" "$ac_file" 2>/dev/null ||
  15335. cp -p "$ac_source" "$ac_file" ||
  15336. as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
  15337. fi
  15338. ;;
  15339. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  15340. $as_echo "$as_me: executing $ac_file commands" >&6;}
  15341. ;;
  15342. esac
  15343. case $ac_file$ac_mode in
  15344. "default-1":C)
  15345. # Only add multilib support code if we just rebuilt the top-level
  15346. # Makefile.
  15347. case " $CONFIG_FILES " in
  15348. *" Makefile "*)
  15349. ac_file=Makefile . ${multi_basedir}/config-ml.in
  15350. ;;
  15351. esac ;;
  15352. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  15353. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  15354. # are listed without --file. Let's play safe and only enable the eval
  15355. # if we detect the quoting.
  15356. case $CONFIG_FILES in
  15357. *\'*) eval set x "$CONFIG_FILES" ;;
  15358. *) set x $CONFIG_FILES ;;
  15359. esac
  15360. shift
  15361. for mf
  15362. do
  15363. # Strip MF so we end up with the name of the file.
  15364. mf=`echo "$mf" | sed -e 's/:.*$//'`
  15365. # Check whether this is an Automake generated Makefile or not.
  15366. # We used to match only the files named `Makefile.in', but
  15367. # some people rename them; so instead we look at the file content.
  15368. # Grep'ing the first line is not enough: some people post-process
  15369. # each Makefile.in and add a new line on top of each file to say so.
  15370. # Grep'ing the whole file is not good either: AIX grep has a line
  15371. # limit of 2048, but all sed's we know have understand at least 4000.
  15372. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  15373. dirpart=`$as_dirname -- "$mf" ||
  15374. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15375. X"$mf" : 'X\(//\)[^/]' \| \
  15376. X"$mf" : 'X\(//\)$' \| \
  15377. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  15378. $as_echo X"$mf" |
  15379. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15380. s//\1/
  15381. q
  15382. }
  15383. /^X\(\/\/\)[^/].*/{
  15384. s//\1/
  15385. q
  15386. }
  15387. /^X\(\/\/\)$/{
  15388. s//\1/
  15389. q
  15390. }
  15391. /^X\(\/\).*/{
  15392. s//\1/
  15393. q
  15394. }
  15395. s/.*/./; q'`
  15396. else
  15397. continue
  15398. fi
  15399. # Extract the definition of DEPDIR, am__include, and am__quote
  15400. # from the Makefile without running `make'.
  15401. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  15402. test -z "$DEPDIR" && continue
  15403. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  15404. test -z "am__include" && continue
  15405. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  15406. # When using ansi2knr, U may be empty or an underscore; expand it
  15407. U=`sed -n 's/^U = //p' < "$mf"`
  15408. # Find all dependency output files, they are included files with
  15409. # $(DEPDIR) in their names. We invoke sed twice because it is the
  15410. # simplest approach to changing $(DEPDIR) to its actual value in the
  15411. # expansion.
  15412. for file in `sed -n "
  15413. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  15414. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  15415. # Make sure the directory exists.
  15416. test -f "$dirpart/$file" && continue
  15417. fdir=`$as_dirname -- "$file" ||
  15418. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15419. X"$file" : 'X\(//\)[^/]' \| \
  15420. X"$file" : 'X\(//\)$' \| \
  15421. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  15422. $as_echo X"$file" |
  15423. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15424. s//\1/
  15425. q
  15426. }
  15427. /^X\(\/\/\)[^/].*/{
  15428. s//\1/
  15429. q
  15430. }
  15431. /^X\(\/\/\)$/{
  15432. s//\1/
  15433. q
  15434. }
  15435. /^X\(\/\).*/{
  15436. s//\1/
  15437. q
  15438. }
  15439. s/.*/./; q'`
  15440. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  15441. # echo "creating $dirpart/$file"
  15442. echo '# dummy' > "$dirpart/$file"
  15443. done
  15444. done
  15445. }
  15446. ;;
  15447. "libtool":C)
  15448. # See if we are running on zsh, and set the options which allow our
  15449. # commands through without removal of \ escapes.
  15450. if test -n "${ZSH_VERSION+set}" ; then
  15451. setopt NO_GLOB_SUBST
  15452. fi
  15453. cfgfile="${ofile}T"
  15454. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  15455. $RM "$cfgfile"
  15456. cat <<_LT_EOF >> "$cfgfile"
  15457. #! $SHELL
  15458. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  15459. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  15460. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  15461. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  15462. #
  15463. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  15464. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  15465. # Written by Gordon Matzigkeit, 1996
  15466. #
  15467. # This file is part of GNU Libtool.
  15468. #
  15469. # GNU Libtool is free software; you can redistribute it and/or
  15470. # modify it under the terms of the GNU General Public License as
  15471. # published by the Free Software Foundation; either version 2 of
  15472. # the License, or (at your option) any later version.
  15473. #
  15474. # As a special exception to the GNU General Public License,
  15475. # if you distribute this file as part of a program or library that
  15476. # is built using GNU Libtool, you may include this file under the
  15477. # same distribution terms that you use for the rest of that program.
  15478. #
  15479. # GNU Libtool is distributed in the hope that it will be useful,
  15480. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15481. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15482. # GNU General Public License for more details.
  15483. #
  15484. # You should have received a copy of the GNU General Public License
  15485. # along with GNU Libtool; see the file COPYING. If not, a copy
  15486. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  15487. # obtained by writing to the Free Software Foundation, Inc.,
  15488. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15489. # The names of the tagged configurations supported by this script.
  15490. available_tags="CXX "
  15491. # ### BEGIN LIBTOOL CONFIG
  15492. # Which release of libtool.m4 was used?
  15493. macro_version=$macro_version
  15494. macro_revision=$macro_revision
  15495. # Whether or not to build shared libraries.
  15496. build_libtool_libs=$enable_shared
  15497. # Whether or not to build static libraries.
  15498. build_old_libs=$enable_static
  15499. # What type of objects to build.
  15500. pic_mode=$pic_mode
  15501. # Whether or not to optimize for fast installation.
  15502. fast_install=$enable_fast_install
  15503. # Shell to use when invoking shell scripts.
  15504. SHELL=$lt_SHELL
  15505. # An echo program that protects backslashes.
  15506. ECHO=$lt_ECHO
  15507. # The host system.
  15508. host_alias=$host_alias
  15509. host=$host
  15510. host_os=$host_os
  15511. # The build system.
  15512. build_alias=$build_alias
  15513. build=$build
  15514. build_os=$build_os
  15515. # A sed program that does not truncate output.
  15516. SED=$lt_SED
  15517. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  15518. Xsed="\$SED -e 1s/^X//"
  15519. # A grep program that handles long lines.
  15520. GREP=$lt_GREP
  15521. # An ERE matcher.
  15522. EGREP=$lt_EGREP
  15523. # A literal string matcher.
  15524. FGREP=$lt_FGREP
  15525. # A BSD- or MS-compatible name lister.
  15526. NM=$lt_NM
  15527. # Whether we need soft or hard links.
  15528. LN_S=$lt_LN_S
  15529. # What is the maximum length of a command?
  15530. max_cmd_len=$max_cmd_len
  15531. # Object file suffix (normally "o").
  15532. objext=$ac_objext
  15533. # Executable file suffix (normally "").
  15534. exeext=$exeext
  15535. # whether the shell understands "unset".
  15536. lt_unset=$lt_unset
  15537. # turn spaces into newlines.
  15538. SP2NL=$lt_lt_SP2NL
  15539. # turn newlines into spaces.
  15540. NL2SP=$lt_lt_NL2SP
  15541. # An object symbol dumper.
  15542. OBJDUMP=$lt_OBJDUMP
  15543. # Method to check whether dependent libraries are shared objects.
  15544. deplibs_check_method=$lt_deplibs_check_method
  15545. # Command to use when deplibs_check_method == "file_magic".
  15546. file_magic_cmd=$lt_file_magic_cmd
  15547. # The archiver.
  15548. AR=$lt_AR
  15549. AR_FLAGS=$lt_AR_FLAGS
  15550. # A symbol stripping program.
  15551. STRIP=$lt_STRIP
  15552. # Commands used to install an old-style archive.
  15553. RANLIB=$lt_RANLIB
  15554. old_postinstall_cmds=$lt_old_postinstall_cmds
  15555. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  15556. # Whether to use a lock for old archive extraction.
  15557. lock_old_archive_extraction=$lock_old_archive_extraction
  15558. # A C compiler.
  15559. LTCC=$lt_CC
  15560. # LTCC compiler flags.
  15561. LTCFLAGS=$lt_CFLAGS
  15562. # Take the output of nm and produce a listing of raw symbols and C names.
  15563. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  15564. # Transform the output of nm in a proper C declaration.
  15565. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  15566. # Transform the output of nm in a C name address pair.
  15567. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  15568. # Transform the output of nm in a C name address pair when lib prefix is needed.
  15569. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  15570. # The name of the directory that contains temporary libtool files.
  15571. objdir=$objdir
  15572. # Used to examine libraries when file_magic_cmd begins with "file".
  15573. MAGIC_CMD=$MAGIC_CMD
  15574. # Must we lock files when doing compilation?
  15575. need_locks=$lt_need_locks
  15576. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  15577. DSYMUTIL=$lt_DSYMUTIL
  15578. # Tool to change global to local symbols on Mac OS X.
  15579. NMEDIT=$lt_NMEDIT
  15580. # Tool to manipulate fat objects and archives on Mac OS X.
  15581. LIPO=$lt_LIPO
  15582. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  15583. OTOOL=$lt_OTOOL
  15584. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  15585. OTOOL64=$lt_OTOOL64
  15586. # Old archive suffix (normally "a").
  15587. libext=$libext
  15588. # Shared library suffix (normally ".so").
  15589. shrext_cmds=$lt_shrext_cmds
  15590. # The commands to extract the exported symbol list from a shared archive.
  15591. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  15592. # Variables whose values should be saved in libtool wrapper scripts and
  15593. # restored at link time.
  15594. variables_saved_for_relink=$lt_variables_saved_for_relink
  15595. # Do we need the "lib" prefix for modules?
  15596. need_lib_prefix=$need_lib_prefix
  15597. # Do we need a version for libraries?
  15598. need_version=$need_version
  15599. # Library versioning type.
  15600. version_type=$version_type
  15601. # Shared library runtime path variable.
  15602. runpath_var=$runpath_var
  15603. # Shared library path variable.
  15604. shlibpath_var=$shlibpath_var
  15605. # Is shlibpath searched before the hard-coded library search path?
  15606. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  15607. # Format of library name prefix.
  15608. libname_spec=$lt_libname_spec
  15609. # List of archive names. First name is the real one, the rest are links.
  15610. # The last name is the one that the linker finds with -lNAME
  15611. library_names_spec=$lt_library_names_spec
  15612. # The coded name of the library, if different from the real name.
  15613. soname_spec=$lt_soname_spec
  15614. # Permission mode override for installation of shared libraries.
  15615. install_override_mode=$lt_install_override_mode
  15616. # Command to use after installation of a shared archive.
  15617. postinstall_cmds=$lt_postinstall_cmds
  15618. # Command to use after uninstallation of a shared archive.
  15619. postuninstall_cmds=$lt_postuninstall_cmds
  15620. # Commands used to finish a libtool library installation in a directory.
  15621. finish_cmds=$lt_finish_cmds
  15622. # As "finish_cmds", except a single script fragment to be evaled but
  15623. # not shown.
  15624. finish_eval=$lt_finish_eval
  15625. # Whether we should hardcode library paths into libraries.
  15626. hardcode_into_libs=$hardcode_into_libs
  15627. # Compile-time system search path for libraries.
  15628. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  15629. # Run-time system search path for libraries.
  15630. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  15631. # Whether dlopen is supported.
  15632. dlopen_support=$enable_dlopen
  15633. # Whether dlopen of programs is supported.
  15634. dlopen_self=$enable_dlopen_self
  15635. # Whether dlopen of statically linked programs is supported.
  15636. dlopen_self_static=$enable_dlopen_self_static
  15637. # Commands to strip libraries.
  15638. old_striplib=$lt_old_striplib
  15639. striplib=$lt_striplib
  15640. # The linker used to build libraries.
  15641. LD=$lt_LD
  15642. # How to create reloadable object files.
  15643. reload_flag=$lt_reload_flag
  15644. reload_cmds=$lt_reload_cmds
  15645. # Commands used to build an old-style archive.
  15646. old_archive_cmds=$lt_old_archive_cmds
  15647. # A language specific compiler.
  15648. CC=$lt_compiler
  15649. # Is the compiler the GNU compiler?
  15650. with_gcc=$GCC
  15651. # Compiler flag to turn off builtin functions.
  15652. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  15653. # How to pass a linker flag through the compiler.
  15654. wl=$lt_lt_prog_compiler_wl
  15655. # Additional compiler flags for building library objects.
  15656. pic_flag=$lt_lt_prog_compiler_pic
  15657. # Compiler flag to prevent dynamic linking.
  15658. link_static_flag=$lt_lt_prog_compiler_static
  15659. # Does compiler simultaneously support -c and -o options?
  15660. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  15661. # Whether or not to add -lc for building shared libraries.
  15662. build_libtool_need_lc=$archive_cmds_need_lc
  15663. # Whether or not to disallow shared libs when runtime libs are static.
  15664. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  15665. # Compiler flag to allow reflexive dlopens.
  15666. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  15667. # Compiler flag to generate shared objects directly from archives.
  15668. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  15669. # Whether the compiler copes with passing no objects directly.
  15670. compiler_needs_object=$lt_compiler_needs_object
  15671. # Create an old-style archive from a shared archive.
  15672. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  15673. # Create a temporary old-style archive to link instead of a shared archive.
  15674. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  15675. # Commands used to build a shared archive.
  15676. archive_cmds=$lt_archive_cmds
  15677. archive_expsym_cmds=$lt_archive_expsym_cmds
  15678. # Commands used to build a loadable module if different from building
  15679. # a shared archive.
  15680. module_cmds=$lt_module_cmds
  15681. module_expsym_cmds=$lt_module_expsym_cmds
  15682. # Whether we are building with GNU ld or not.
  15683. with_gnu_ld=$lt_with_gnu_ld
  15684. # Flag that allows shared libraries with undefined symbols to be built.
  15685. allow_undefined_flag=$lt_allow_undefined_flag
  15686. # Flag that enforces no undefined symbols.
  15687. no_undefined_flag=$lt_no_undefined_flag
  15688. # Flag to hardcode \$libdir into a binary during linking.
  15689. # This must work even if \$libdir does not exist
  15690. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  15691. # If ld is used when linking, flag to hardcode \$libdir into a binary
  15692. # during linking. This must work even if \$libdir does not exist.
  15693. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  15694. # Whether we need a single "-rpath" flag with a separated argument.
  15695. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  15696. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15697. # DIR into the resulting binary.
  15698. hardcode_direct=$hardcode_direct
  15699. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15700. # DIR into the resulting binary and the resulting library dependency is
  15701. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  15702. # library is relocated.
  15703. hardcode_direct_absolute=$hardcode_direct_absolute
  15704. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15705. # into the resulting binary.
  15706. hardcode_minus_L=$hardcode_minus_L
  15707. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  15708. # into the resulting binary.
  15709. hardcode_shlibpath_var=$hardcode_shlibpath_var
  15710. # Set to "yes" if building a shared library automatically hardcodes DIR
  15711. # into the library and all subsequent libraries and executables linked
  15712. # against it.
  15713. hardcode_automatic=$hardcode_automatic
  15714. # Set to yes if linker adds runtime paths of dependent libraries
  15715. # to runtime path list.
  15716. inherit_rpath=$inherit_rpath
  15717. # Whether libtool must link a program against all its dependency libraries.
  15718. link_all_deplibs=$link_all_deplibs
  15719. # Fix the shell variable \$srcfile for the compiler.
  15720. fix_srcfile_path=$lt_fix_srcfile_path
  15721. # Set to "yes" if exported symbols are required.
  15722. always_export_symbols=$always_export_symbols
  15723. # The commands to list exported symbols.
  15724. export_symbols_cmds=$lt_export_symbols_cmds
  15725. # Symbols that should not be listed in the preloaded symbols.
  15726. exclude_expsyms=$lt_exclude_expsyms
  15727. # Symbols that must always be exported.
  15728. include_expsyms=$lt_include_expsyms
  15729. # Commands necessary for linking programs (against libraries) with templates.
  15730. prelink_cmds=$lt_prelink_cmds
  15731. # Specify filename containing input files.
  15732. file_list_spec=$lt_file_list_spec
  15733. # How to hardcode a shared library path into an executable.
  15734. hardcode_action=$hardcode_action
  15735. # The directories searched by this compiler when creating a shared library.
  15736. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  15737. # Dependencies to place before and after the objects being linked to
  15738. # create a shared library.
  15739. predep_objects=$lt_predep_objects
  15740. postdep_objects=$lt_postdep_objects
  15741. predeps=$lt_predeps
  15742. postdeps=$lt_postdeps
  15743. # The library search path used internally by the compiler when linking
  15744. # a shared library.
  15745. compiler_lib_search_path=$lt_compiler_lib_search_path
  15746. # ### END LIBTOOL CONFIG
  15747. _LT_EOF
  15748. case $host_os in
  15749. aix3*)
  15750. cat <<\_LT_EOF >> "$cfgfile"
  15751. # AIX sometimes has problems with the GCC collect2 program. For some
  15752. # reason, if we set the COLLECT_NAMES environment variable, the problems
  15753. # vanish in a puff of smoke.
  15754. if test "X${COLLECT_NAMES+set}" != Xset; then
  15755. COLLECT_NAMES=
  15756. export COLLECT_NAMES
  15757. fi
  15758. _LT_EOF
  15759. ;;
  15760. esac
  15761. ltmain="$ac_aux_dir/ltmain.sh"
  15762. # We use sed instead of cat because bash on DJGPP gets confused if
  15763. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  15764. # text mode, it properly converts lines to CR/LF. This bash problem
  15765. # is reportedly fixed, but why not run on old versions too?
  15766. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  15767. || (rm -f "$cfgfile"; exit 1)
  15768. case $xsi_shell in
  15769. yes)
  15770. cat << \_LT_EOF >> "$cfgfile"
  15771. # func_dirname file append nondir_replacement
  15772. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  15773. # otherwise set result to NONDIR_REPLACEMENT.
  15774. func_dirname ()
  15775. {
  15776. case ${1} in
  15777. */*) func_dirname_result="${1%/*}${2}" ;;
  15778. * ) func_dirname_result="${3}" ;;
  15779. esac
  15780. }
  15781. # func_basename file
  15782. func_basename ()
  15783. {
  15784. func_basename_result="${1##*/}"
  15785. }
  15786. # func_dirname_and_basename file append nondir_replacement
  15787. # perform func_basename and func_dirname in a single function
  15788. # call:
  15789. # dirname: Compute the dirname of FILE. If nonempty,
  15790. # add APPEND to the result, otherwise set result
  15791. # to NONDIR_REPLACEMENT.
  15792. # value returned in "$func_dirname_result"
  15793. # basename: Compute filename of FILE.
  15794. # value retuned in "$func_basename_result"
  15795. # Implementation must be kept synchronized with func_dirname
  15796. # and func_basename. For efficiency, we do not delegate to
  15797. # those functions but instead duplicate the functionality here.
  15798. func_dirname_and_basename ()
  15799. {
  15800. case ${1} in
  15801. */*) func_dirname_result="${1%/*}${2}" ;;
  15802. * ) func_dirname_result="${3}" ;;
  15803. esac
  15804. func_basename_result="${1##*/}"
  15805. }
  15806. # func_stripname prefix suffix name
  15807. # strip PREFIX and SUFFIX off of NAME.
  15808. # PREFIX and SUFFIX must not contain globbing or regex special
  15809. # characters, hashes, percent signs, but SUFFIX may contain a leading
  15810. # dot (in which case that matches only a dot).
  15811. func_stripname ()
  15812. {
  15813. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  15814. # positional parameters, so assign one to ordinary parameter first.
  15815. func_stripname_result=${3}
  15816. func_stripname_result=${func_stripname_result#"${1}"}
  15817. func_stripname_result=${func_stripname_result%"${2}"}
  15818. }
  15819. # func_opt_split
  15820. func_opt_split ()
  15821. {
  15822. func_opt_split_opt=${1%%=*}
  15823. func_opt_split_arg=${1#*=}
  15824. }
  15825. # func_lo2o object
  15826. func_lo2o ()
  15827. {
  15828. case ${1} in
  15829. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  15830. *) func_lo2o_result=${1} ;;
  15831. esac
  15832. }
  15833. # func_xform libobj-or-source
  15834. func_xform ()
  15835. {
  15836. func_xform_result=${1%.*}.lo
  15837. }
  15838. # func_arith arithmetic-term...
  15839. func_arith ()
  15840. {
  15841. func_arith_result=$(( $* ))
  15842. }
  15843. # func_len string
  15844. # STRING may not start with a hyphen.
  15845. func_len ()
  15846. {
  15847. func_len_result=${#1}
  15848. }
  15849. _LT_EOF
  15850. ;;
  15851. *) # Bourne compatible functions.
  15852. cat << \_LT_EOF >> "$cfgfile"
  15853. # func_dirname file append nondir_replacement
  15854. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  15855. # otherwise set result to NONDIR_REPLACEMENT.
  15856. func_dirname ()
  15857. {
  15858. # Extract subdirectory from the argument.
  15859. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  15860. if test "X$func_dirname_result" = "X${1}"; then
  15861. func_dirname_result="${3}"
  15862. else
  15863. func_dirname_result="$func_dirname_result${2}"
  15864. fi
  15865. }
  15866. # func_basename file
  15867. func_basename ()
  15868. {
  15869. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  15870. }
  15871. # func_stripname prefix suffix name
  15872. # strip PREFIX and SUFFIX off of NAME.
  15873. # PREFIX and SUFFIX must not contain globbing or regex special
  15874. # characters, hashes, percent signs, but SUFFIX may contain a leading
  15875. # dot (in which case that matches only a dot).
  15876. # func_strip_suffix prefix name
  15877. func_stripname ()
  15878. {
  15879. case ${2} in
  15880. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  15881. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  15882. esac
  15883. }
  15884. # sed scripts:
  15885. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  15886. my_sed_long_arg='1s/^-[^=]*=//'
  15887. # func_opt_split
  15888. func_opt_split ()
  15889. {
  15890. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  15891. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  15892. }
  15893. # func_lo2o object
  15894. func_lo2o ()
  15895. {
  15896. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  15897. }
  15898. # func_xform libobj-or-source
  15899. func_xform ()
  15900. {
  15901. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  15902. }
  15903. # func_arith arithmetic-term...
  15904. func_arith ()
  15905. {
  15906. func_arith_result=`expr "$@"`
  15907. }
  15908. # func_len string
  15909. # STRING may not start with a hyphen.
  15910. func_len ()
  15911. {
  15912. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  15913. }
  15914. _LT_EOF
  15915. esac
  15916. case $lt_shell_append in
  15917. yes)
  15918. cat << \_LT_EOF >> "$cfgfile"
  15919. # func_append var value
  15920. # Append VALUE to the end of shell variable VAR.
  15921. func_append ()
  15922. {
  15923. eval "$1+=\$2"
  15924. }
  15925. _LT_EOF
  15926. ;;
  15927. *)
  15928. cat << \_LT_EOF >> "$cfgfile"
  15929. # func_append var value
  15930. # Append VALUE to the end of shell variable VAR.
  15931. func_append ()
  15932. {
  15933. eval "$1=\$$1\$2"
  15934. }
  15935. _LT_EOF
  15936. ;;
  15937. esac
  15938. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  15939. || (rm -f "$cfgfile"; exit 1)
  15940. mv -f "$cfgfile" "$ofile" ||
  15941. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  15942. chmod +x "$ofile"
  15943. cat <<_LT_EOF >> "$ofile"
  15944. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  15945. # The linker used to build libraries.
  15946. LD=$lt_LD_CXX
  15947. # How to create reloadable object files.
  15948. reload_flag=$lt_reload_flag_CXX
  15949. reload_cmds=$lt_reload_cmds_CXX
  15950. # Commands used to build an old-style archive.
  15951. old_archive_cmds=$lt_old_archive_cmds_CXX
  15952. # A language specific compiler.
  15953. CC=$lt_compiler_CXX
  15954. # Is the compiler the GNU compiler?
  15955. with_gcc=$GCC_CXX
  15956. # Compiler flag to turn off builtin functions.
  15957. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  15958. # How to pass a linker flag through the compiler.
  15959. wl=$lt_lt_prog_compiler_wl_CXX
  15960. # Additional compiler flags for building library objects.
  15961. pic_flag=$lt_lt_prog_compiler_pic_CXX
  15962. # Compiler flag to prevent dynamic linking.
  15963. link_static_flag=$lt_lt_prog_compiler_static_CXX
  15964. # Does compiler simultaneously support -c and -o options?
  15965. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  15966. # Whether or not to add -lc for building shared libraries.
  15967. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  15968. # Whether or not to disallow shared libs when runtime libs are static.
  15969. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  15970. # Compiler flag to allow reflexive dlopens.
  15971. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  15972. # Compiler flag to generate shared objects directly from archives.
  15973. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  15974. # Whether the compiler copes with passing no objects directly.
  15975. compiler_needs_object=$lt_compiler_needs_object_CXX
  15976. # Create an old-style archive from a shared archive.
  15977. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  15978. # Create a temporary old-style archive to link instead of a shared archive.
  15979. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  15980. # Commands used to build a shared archive.
  15981. archive_cmds=$lt_archive_cmds_CXX
  15982. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  15983. # Commands used to build a loadable module if different from building
  15984. # a shared archive.
  15985. module_cmds=$lt_module_cmds_CXX
  15986. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  15987. # Whether we are building with GNU ld or not.
  15988. with_gnu_ld=$lt_with_gnu_ld_CXX
  15989. # Flag that allows shared libraries with undefined symbols to be built.
  15990. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  15991. # Flag that enforces no undefined symbols.
  15992. no_undefined_flag=$lt_no_undefined_flag_CXX
  15993. # Flag to hardcode \$libdir into a binary during linking.
  15994. # This must work even if \$libdir does not exist
  15995. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  15996. # If ld is used when linking, flag to hardcode \$libdir into a binary
  15997. # during linking. This must work even if \$libdir does not exist.
  15998. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  15999. # Whether we need a single "-rpath" flag with a separated argument.
  16000. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  16001. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16002. # DIR into the resulting binary.
  16003. hardcode_direct=$hardcode_direct_CXX
  16004. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16005. # DIR into the resulting binary and the resulting library dependency is
  16006. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16007. # library is relocated.
  16008. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  16009. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16010. # into the resulting binary.
  16011. hardcode_minus_L=$hardcode_minus_L_CXX
  16012. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16013. # into the resulting binary.
  16014. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  16015. # Set to "yes" if building a shared library automatically hardcodes DIR
  16016. # into the library and all subsequent libraries and executables linked
  16017. # against it.
  16018. hardcode_automatic=$hardcode_automatic_CXX
  16019. # Set to yes if linker adds runtime paths of dependent libraries
  16020. # to runtime path list.
  16021. inherit_rpath=$inherit_rpath_CXX
  16022. # Whether libtool must link a program against all its dependency libraries.
  16023. link_all_deplibs=$link_all_deplibs_CXX
  16024. # Fix the shell variable \$srcfile for the compiler.
  16025. fix_srcfile_path=$lt_fix_srcfile_path_CXX
  16026. # Set to "yes" if exported symbols are required.
  16027. always_export_symbols=$always_export_symbols_CXX
  16028. # The commands to list exported symbols.
  16029. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  16030. # Symbols that should not be listed in the preloaded symbols.
  16031. exclude_expsyms=$lt_exclude_expsyms_CXX
  16032. # Symbols that must always be exported.
  16033. include_expsyms=$lt_include_expsyms_CXX
  16034. # Commands necessary for linking programs (against libraries) with templates.
  16035. prelink_cmds=$lt_prelink_cmds_CXX
  16036. # Specify filename containing input files.
  16037. file_list_spec=$lt_file_list_spec_CXX
  16038. # How to hardcode a shared library path into an executable.
  16039. hardcode_action=$hardcode_action_CXX
  16040. # The directories searched by this compiler when creating a shared library.
  16041. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  16042. # Dependencies to place before and after the objects being linked to
  16043. # create a shared library.
  16044. predep_objects=$lt_predep_objects_CXX
  16045. postdep_objects=$lt_postdep_objects_CXX
  16046. predeps=$lt_predeps_CXX
  16047. postdeps=$lt_postdeps_CXX
  16048. # The library search path used internally by the compiler when linking
  16049. # a shared library.
  16050. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  16051. # ### END LIBTOOL TAG CONFIG: CXX
  16052. _LT_EOF
  16053. ;;
  16054. "include":C) test -d include || mkdir include ;;
  16055. "src":C)
  16056. test -d src || mkdir src
  16057. test -d src/$TARGETDIR || mkdir src/$TARGETDIR
  16058. ;;
  16059. esac
  16060. done # for ac_tag
  16061. as_fn_exit 0
  16062. _ACEOF
  16063. ac_clean_files=$ac_clean_files_save
  16064. test $ac_write_fail = 0 ||
  16065. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  16066. # configure is writing to config.log, and then calls config.status.
  16067. # config.status does its own redirection, appending to config.log.
  16068. # Unfortunately, on DOS this fails, as config.log is still kept open
  16069. # by configure, so config.status won't be able to write to it; its
  16070. # output is simply discarded. So we exec the FD to /dev/null,
  16071. # effectively closing config.log, so it can be properly (re)opened and
  16072. # appended to by config.status. When coming back to configure, we
  16073. # need to make the FD available again.
  16074. if test "$no_create" != yes; then
  16075. ac_cs_success=:
  16076. ac_config_status_args=
  16077. test "$silent" = yes &&
  16078. ac_config_status_args="$ac_config_status_args --quiet"
  16079. exec 5>/dev/null
  16080. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  16081. exec 5>>config.log
  16082. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  16083. # would make configure fail if this is the last instruction.
  16084. $ac_cs_success || as_fn_exit $?
  16085. fi
  16086. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  16087. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  16088. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  16089. fi