configure 487 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for SDL2_ttf 2.0.14.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  186. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  187. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. PATH=/empty FPATH=/empty; export PATH FPATH
  190. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  191. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  192. test \$(( 1 + 1 )) = 2 || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME='SDL2_ttf'
  539. PACKAGE_TARNAME='sdl2_ttf'
  540. PACKAGE_VERSION='2.0.14'
  541. PACKAGE_STRING='SDL2_ttf 2.0.14'
  542. PACKAGE_BUGREPORT=''
  543. PACKAGE_URL=''
  544. ac_unique_file="README.txt"
  545. # Factoring default headers for most tests.
  546. ac_includes_default="\
  547. #include <stdio.h>
  548. #ifdef HAVE_SYS_TYPES_H
  549. # include <sys/types.h>
  550. #endif
  551. #ifdef HAVE_SYS_STAT_H
  552. # include <sys/stat.h>
  553. #endif
  554. #ifdef STDC_HEADERS
  555. # include <stdlib.h>
  556. # include <stddef.h>
  557. #else
  558. # ifdef HAVE_STDLIB_H
  559. # include <stdlib.h>
  560. # endif
  561. #endif
  562. #ifdef HAVE_STRING_H
  563. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  564. # include <memory.h>
  565. # endif
  566. # include <string.h>
  567. #endif
  568. #ifdef HAVE_STRINGS_H
  569. # include <strings.h>
  570. #endif
  571. #ifdef HAVE_INTTYPES_H
  572. # include <inttypes.h>
  573. #endif
  574. #ifdef HAVE_STDINT_H
  575. # include <stdint.h>
  576. #endif
  577. #ifdef HAVE_UNISTD_H
  578. # include <unistd.h>
  579. #endif"
  580. ac_subst_vars='am__EXEEXT_FALSE
  581. am__EXEEXT_TRUE
  582. LTLIBOBJS
  583. LIBOBJS
  584. MATHLIB
  585. GL_LIBS
  586. X_EXTRA_LIBS
  587. X_LIBS
  588. X_PRE_LIBS
  589. X_CFLAGS
  590. XMKMF
  591. SDL2_CONFIG
  592. SDL_LIBS
  593. SDL_CFLAGS
  594. SDL_VERSION
  595. HAVE_RAQM_FALSE
  596. HAVE_RAQM_TRUE
  597. RAQM_LIBS
  598. RAQM_CFLAGS
  599. PKG_CONFIG
  600. FREETYPE_CONFIG
  601. USE_VERSION_RC_FALSE
  602. USE_VERSION_RC_TRUE
  603. ALLOCA
  604. WINDRES
  605. MAINT
  606. MAINTAINER_MODE_FALSE
  607. MAINTAINER_MODE_TRUE
  608. AM_BACKSLASH
  609. AM_DEFAULT_VERBOSITY
  610. AM_DEFAULT_V
  611. AM_V
  612. am__fastdepCC_FALSE
  613. am__fastdepCC_TRUE
  614. CCDEPMODE
  615. am__nodep
  616. AMDEPBACKSLASH
  617. AMDEP_FALSE
  618. AMDEP_TRUE
  619. am__quote
  620. am__include
  621. DEPDIR
  622. am__untar
  623. am__tar
  624. AMTAR
  625. am__leading_dot
  626. SET_MAKE
  627. mkdir_p
  628. MKDIR_P
  629. INSTALL_STRIP_PROGRAM
  630. install_sh
  631. MAKEINFO
  632. AUTOHEADER
  633. AUTOMAKE
  634. AUTOCONF
  635. ACLOCAL
  636. PACKAGE
  637. CYGPATH_W
  638. am__isrc
  639. INSTALL_DATA
  640. INSTALL_SCRIPT
  641. INSTALL_PROGRAM
  642. LT_AGE
  643. LT_REVISION
  644. LT_CURRENT
  645. LT_RELEASE
  646. CPP
  647. LT_SYS_LIBRARY_PATH
  648. OTOOL64
  649. OTOOL
  650. LIPO
  651. NMEDIT
  652. DSYMUTIL
  653. MANIFEST_TOOL
  654. AWK
  655. RANLIB
  656. STRIP
  657. ac_ct_AR
  658. AR
  659. LN_S
  660. NM
  661. ac_ct_DUMPBIN
  662. DUMPBIN
  663. LD
  664. FGREP
  665. EGREP
  666. GREP
  667. SED
  668. OBJEXT
  669. EXEEXT
  670. ac_ct_CC
  671. CPPFLAGS
  672. LDFLAGS
  673. CFLAGS
  674. CC
  675. host_os
  676. host_vendor
  677. host_cpu
  678. host
  679. build_os
  680. build_vendor
  681. build_cpu
  682. build
  683. LIBTOOL
  684. OBJDUMP
  685. DLLTOOL
  686. AS
  687. VERSION
  688. BINARY_AGE
  689. INTERFACE_AGE
  690. MICRO_VERSION
  691. MINOR_VERSION
  692. MAJOR_VERSION
  693. target_alias
  694. host_alias
  695. build_alias
  696. LIBS
  697. ECHO_T
  698. ECHO_N
  699. ECHO_C
  700. DEFS
  701. mandir
  702. localedir
  703. libdir
  704. psdir
  705. pdfdir
  706. dvidir
  707. htmldir
  708. infodir
  709. docdir
  710. oldincludedir
  711. includedir
  712. runstatedir
  713. localstatedir
  714. sharedstatedir
  715. sysconfdir
  716. datadir
  717. datarootdir
  718. libexecdir
  719. sbindir
  720. bindir
  721. program_transform_name
  722. prefix
  723. exec_prefix
  724. PACKAGE_URL
  725. PACKAGE_BUGREPORT
  726. PACKAGE_STRING
  727. PACKAGE_VERSION
  728. PACKAGE_TARNAME
  729. PACKAGE_NAME
  730. PATH_SEPARATOR
  731. SHELL'
  732. ac_subst_files=''
  733. ac_user_opts='
  734. enable_option_checking
  735. enable_shared
  736. enable_static
  737. with_pic
  738. enable_fast_install
  739. with_aix_soname
  740. with_gnu_ld
  741. with_sysroot
  742. enable_libtool_lock
  743. enable_dependency_tracking
  744. enable_silent_rules
  745. enable_maintainer_mode
  746. with_freetype_prefix
  747. with_freetype_exec_prefix
  748. with_raqm
  749. with_sdl_prefix
  750. with_sdl_exec_prefix
  751. enable_sdltest
  752. with_x
  753. '
  754. ac_precious_vars='build_alias
  755. host_alias
  756. target_alias
  757. CC
  758. CFLAGS
  759. LDFLAGS
  760. LIBS
  761. CPPFLAGS
  762. LT_SYS_LIBRARY_PATH
  763. CPP
  764. PKG_CONFIG
  765. RAQM_CFLAGS
  766. RAQM_LIBS
  767. SDL_CFLAGS
  768. SDL_LIBS
  769. XMKMF'
  770. # Initialize some variables set by options.
  771. ac_init_help=
  772. ac_init_version=false
  773. ac_unrecognized_opts=
  774. ac_unrecognized_sep=
  775. # The variables have the same names as the options, with
  776. # dashes changed to underlines.
  777. cache_file=/dev/null
  778. exec_prefix=NONE
  779. no_create=
  780. no_recursion=
  781. prefix=NONE
  782. program_prefix=NONE
  783. program_suffix=NONE
  784. program_transform_name=s,x,x,
  785. silent=
  786. site=
  787. srcdir=
  788. verbose=
  789. x_includes=NONE
  790. x_libraries=NONE
  791. # Installation directory options.
  792. # These are left unexpanded so users can "make install exec_prefix=/foo"
  793. # and all the variables that are supposed to be based on exec_prefix
  794. # by default will actually change.
  795. # Use braces instead of parens because sh, perl, etc. also accept them.
  796. # (The list follows the same order as the GNU Coding Standards.)
  797. bindir='${exec_prefix}/bin'
  798. sbindir='${exec_prefix}/sbin'
  799. libexecdir='${exec_prefix}/libexec'
  800. datarootdir='${prefix}/share'
  801. datadir='${datarootdir}'
  802. sysconfdir='${prefix}/etc'
  803. sharedstatedir='${prefix}/com'
  804. localstatedir='${prefix}/var'
  805. runstatedir='${localstatedir}/run'
  806. includedir='${prefix}/include'
  807. oldincludedir='/usr/include'
  808. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  809. infodir='${datarootdir}/info'
  810. htmldir='${docdir}'
  811. dvidir='${docdir}'
  812. pdfdir='${docdir}'
  813. psdir='${docdir}'
  814. libdir='${exec_prefix}/lib'
  815. localedir='${datarootdir}/locale'
  816. mandir='${datarootdir}/man'
  817. ac_prev=
  818. ac_dashdash=
  819. for ac_option
  820. do
  821. # If the previous option needs an argument, assign it.
  822. if test -n "$ac_prev"; then
  823. eval $ac_prev=\$ac_option
  824. ac_prev=
  825. continue
  826. fi
  827. case $ac_option in
  828. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  829. *=) ac_optarg= ;;
  830. *) ac_optarg=yes ;;
  831. esac
  832. # Accept the important Cygnus configure options, so we can diagnose typos.
  833. case $ac_dashdash$ac_option in
  834. --)
  835. ac_dashdash=yes ;;
  836. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  837. ac_prev=bindir ;;
  838. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  839. bindir=$ac_optarg ;;
  840. -build | --build | --buil | --bui | --bu)
  841. ac_prev=build_alias ;;
  842. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  843. build_alias=$ac_optarg ;;
  844. -cache-file | --cache-file | --cache-fil | --cache-fi \
  845. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  846. ac_prev=cache_file ;;
  847. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  848. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  849. cache_file=$ac_optarg ;;
  850. --config-cache | -C)
  851. cache_file=config.cache ;;
  852. -datadir | --datadir | --datadi | --datad)
  853. ac_prev=datadir ;;
  854. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  855. datadir=$ac_optarg ;;
  856. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  857. | --dataroo | --dataro | --datar)
  858. ac_prev=datarootdir ;;
  859. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  860. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  861. datarootdir=$ac_optarg ;;
  862. -disable-* | --disable-*)
  863. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  864. # Reject names that are not valid shell variable names.
  865. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  866. as_fn_error $? "invalid feature name: $ac_useropt"
  867. ac_useropt_orig=$ac_useropt
  868. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  869. case $ac_user_opts in
  870. *"
  871. "enable_$ac_useropt"
  872. "*) ;;
  873. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  874. ac_unrecognized_sep=', ';;
  875. esac
  876. eval enable_$ac_useropt=no ;;
  877. -docdir | --docdir | --docdi | --doc | --do)
  878. ac_prev=docdir ;;
  879. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  880. docdir=$ac_optarg ;;
  881. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  882. ac_prev=dvidir ;;
  883. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  884. dvidir=$ac_optarg ;;
  885. -enable-* | --enable-*)
  886. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  887. # Reject names that are not valid shell variable names.
  888. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  889. as_fn_error $? "invalid feature name: $ac_useropt"
  890. ac_useropt_orig=$ac_useropt
  891. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  892. case $ac_user_opts in
  893. *"
  894. "enable_$ac_useropt"
  895. "*) ;;
  896. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  897. ac_unrecognized_sep=', ';;
  898. esac
  899. eval enable_$ac_useropt=\$ac_optarg ;;
  900. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  901. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  902. | --exec | --exe | --ex)
  903. ac_prev=exec_prefix ;;
  904. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  905. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  906. | --exec=* | --exe=* | --ex=*)
  907. exec_prefix=$ac_optarg ;;
  908. -gas | --gas | --ga | --g)
  909. # Obsolete; use --with-gas.
  910. with_gas=yes ;;
  911. -help | --help | --hel | --he | -h)
  912. ac_init_help=long ;;
  913. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  914. ac_init_help=recursive ;;
  915. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  916. ac_init_help=short ;;
  917. -host | --host | --hos | --ho)
  918. ac_prev=host_alias ;;
  919. -host=* | --host=* | --hos=* | --ho=*)
  920. host_alias=$ac_optarg ;;
  921. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  922. ac_prev=htmldir ;;
  923. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  924. | --ht=*)
  925. htmldir=$ac_optarg ;;
  926. -includedir | --includedir | --includedi | --included | --include \
  927. | --includ | --inclu | --incl | --inc)
  928. ac_prev=includedir ;;
  929. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  930. | --includ=* | --inclu=* | --incl=* | --inc=*)
  931. includedir=$ac_optarg ;;
  932. -infodir | --infodir | --infodi | --infod | --info | --inf)
  933. ac_prev=infodir ;;
  934. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  935. infodir=$ac_optarg ;;
  936. -libdir | --libdir | --libdi | --libd)
  937. ac_prev=libdir ;;
  938. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  939. libdir=$ac_optarg ;;
  940. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  941. | --libexe | --libex | --libe)
  942. ac_prev=libexecdir ;;
  943. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  944. | --libexe=* | --libex=* | --libe=*)
  945. libexecdir=$ac_optarg ;;
  946. -localedir | --localedir | --localedi | --localed | --locale)
  947. ac_prev=localedir ;;
  948. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  949. localedir=$ac_optarg ;;
  950. -localstatedir | --localstatedir | --localstatedi | --localstated \
  951. | --localstate | --localstat | --localsta | --localst | --locals)
  952. ac_prev=localstatedir ;;
  953. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  954. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  955. localstatedir=$ac_optarg ;;
  956. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  957. ac_prev=mandir ;;
  958. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  959. mandir=$ac_optarg ;;
  960. -nfp | --nfp | --nf)
  961. # Obsolete; use --without-fp.
  962. with_fp=no ;;
  963. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  964. | --no-cr | --no-c | -n)
  965. no_create=yes ;;
  966. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  967. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  968. no_recursion=yes ;;
  969. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  970. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  971. | --oldin | --oldi | --old | --ol | --o)
  972. ac_prev=oldincludedir ;;
  973. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  974. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  975. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  976. oldincludedir=$ac_optarg ;;
  977. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  978. ac_prev=prefix ;;
  979. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  980. prefix=$ac_optarg ;;
  981. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  982. | --program-pre | --program-pr | --program-p)
  983. ac_prev=program_prefix ;;
  984. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  985. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  986. program_prefix=$ac_optarg ;;
  987. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  988. | --program-suf | --program-su | --program-s)
  989. ac_prev=program_suffix ;;
  990. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  991. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  992. program_suffix=$ac_optarg ;;
  993. -program-transform-name | --program-transform-name \
  994. | --program-transform-nam | --program-transform-na \
  995. | --program-transform-n | --program-transform- \
  996. | --program-transform | --program-transfor \
  997. | --program-transfo | --program-transf \
  998. | --program-trans | --program-tran \
  999. | --progr-tra | --program-tr | --program-t)
  1000. ac_prev=program_transform_name ;;
  1001. -program-transform-name=* | --program-transform-name=* \
  1002. | --program-transform-nam=* | --program-transform-na=* \
  1003. | --program-transform-n=* | --program-transform-=* \
  1004. | --program-transform=* | --program-transfor=* \
  1005. | --program-transfo=* | --program-transf=* \
  1006. | --program-trans=* | --program-tran=* \
  1007. | --progr-tra=* | --program-tr=* | --program-t=*)
  1008. program_transform_name=$ac_optarg ;;
  1009. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1010. ac_prev=pdfdir ;;
  1011. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1012. pdfdir=$ac_optarg ;;
  1013. -psdir | --psdir | --psdi | --psd | --ps)
  1014. ac_prev=psdir ;;
  1015. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1016. psdir=$ac_optarg ;;
  1017. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1018. | -silent | --silent | --silen | --sile | --sil)
  1019. silent=yes ;;
  1020. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1021. | --runstate | --runstat | --runsta | --runst | --runs \
  1022. | --run | --ru | --r)
  1023. ac_prev=runstatedir ;;
  1024. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1025. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1026. | --run=* | --ru=* | --r=*)
  1027. runstatedir=$ac_optarg ;;
  1028. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1029. ac_prev=sbindir ;;
  1030. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1031. | --sbi=* | --sb=*)
  1032. sbindir=$ac_optarg ;;
  1033. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1034. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1035. | --sharedst | --shareds | --shared | --share | --shar \
  1036. | --sha | --sh)
  1037. ac_prev=sharedstatedir ;;
  1038. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1039. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1040. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1041. | --sha=* | --sh=*)
  1042. sharedstatedir=$ac_optarg ;;
  1043. -site | --site | --sit)
  1044. ac_prev=site ;;
  1045. -site=* | --site=* | --sit=*)
  1046. site=$ac_optarg ;;
  1047. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1048. ac_prev=srcdir ;;
  1049. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1050. srcdir=$ac_optarg ;;
  1051. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1052. | --syscon | --sysco | --sysc | --sys | --sy)
  1053. ac_prev=sysconfdir ;;
  1054. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1055. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1056. sysconfdir=$ac_optarg ;;
  1057. -target | --target | --targe | --targ | --tar | --ta | --t)
  1058. ac_prev=target_alias ;;
  1059. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1060. target_alias=$ac_optarg ;;
  1061. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1062. verbose=yes ;;
  1063. -version | --version | --versio | --versi | --vers | -V)
  1064. ac_init_version=: ;;
  1065. -with-* | --with-*)
  1066. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1067. # Reject names that are not valid shell variable names.
  1068. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1069. as_fn_error $? "invalid package name: $ac_useropt"
  1070. ac_useropt_orig=$ac_useropt
  1071. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1072. case $ac_user_opts in
  1073. *"
  1074. "with_$ac_useropt"
  1075. "*) ;;
  1076. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1077. ac_unrecognized_sep=', ';;
  1078. esac
  1079. eval with_$ac_useropt=\$ac_optarg ;;
  1080. -without-* | --without-*)
  1081. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1082. # Reject names that are not valid shell variable names.
  1083. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1084. as_fn_error $? "invalid package name: $ac_useropt"
  1085. ac_useropt_orig=$ac_useropt
  1086. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1087. case $ac_user_opts in
  1088. *"
  1089. "with_$ac_useropt"
  1090. "*) ;;
  1091. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1092. ac_unrecognized_sep=', ';;
  1093. esac
  1094. eval with_$ac_useropt=no ;;
  1095. --x)
  1096. # Obsolete; use --with-x.
  1097. with_x=yes ;;
  1098. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1099. | --x-incl | --x-inc | --x-in | --x-i)
  1100. ac_prev=x_includes ;;
  1101. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1102. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1103. x_includes=$ac_optarg ;;
  1104. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1105. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1106. ac_prev=x_libraries ;;
  1107. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1108. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1109. x_libraries=$ac_optarg ;;
  1110. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1111. Try \`$0 --help' for more information"
  1112. ;;
  1113. *=*)
  1114. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1115. # Reject names that are not valid shell variable names.
  1116. case $ac_envvar in #(
  1117. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1118. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1119. esac
  1120. eval $ac_envvar=\$ac_optarg
  1121. export $ac_envvar ;;
  1122. *)
  1123. # FIXME: should be removed in autoconf 3.0.
  1124. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1125. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1126. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1127. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1128. ;;
  1129. esac
  1130. done
  1131. if test -n "$ac_prev"; then
  1132. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1133. as_fn_error $? "missing argument to $ac_option"
  1134. fi
  1135. if test -n "$ac_unrecognized_opts"; then
  1136. case $enable_option_checking in
  1137. no) ;;
  1138. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1139. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1140. esac
  1141. fi
  1142. # Check all directory arguments for consistency.
  1143. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1144. datadir sysconfdir sharedstatedir localstatedir includedir \
  1145. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1146. libdir localedir mandir runstatedir
  1147. do
  1148. eval ac_val=\$$ac_var
  1149. # Remove trailing slashes.
  1150. case $ac_val in
  1151. */ )
  1152. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1153. eval $ac_var=\$ac_val;;
  1154. esac
  1155. # Be sure to have absolute directory names.
  1156. case $ac_val in
  1157. [\\/$]* | ?:[\\/]* ) continue;;
  1158. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1159. esac
  1160. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1161. done
  1162. # There might be people who depend on the old broken behavior: `$host'
  1163. # used to hold the argument of --host etc.
  1164. # FIXME: To remove some day.
  1165. build=$build_alias
  1166. host=$host_alias
  1167. target=$target_alias
  1168. # FIXME: To remove some day.
  1169. if test "x$host_alias" != x; then
  1170. if test "x$build_alias" = x; then
  1171. cross_compiling=maybe
  1172. elif test "x$build_alias" != "x$host_alias"; then
  1173. cross_compiling=yes
  1174. fi
  1175. fi
  1176. ac_tool_prefix=
  1177. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1178. test "$silent" = yes && exec 6>/dev/null
  1179. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1180. ac_ls_di=`ls -di .` &&
  1181. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1182. as_fn_error $? "working directory cannot be determined"
  1183. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1184. as_fn_error $? "pwd does not report name of working directory"
  1185. # Find the source files, if location was not specified.
  1186. if test -z "$srcdir"; then
  1187. ac_srcdir_defaulted=yes
  1188. # Try the directory containing this script, then the parent directory.
  1189. ac_confdir=`$as_dirname -- "$as_myself" ||
  1190. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1191. X"$as_myself" : 'X\(//\)[^/]' \| \
  1192. X"$as_myself" : 'X\(//\)$' \| \
  1193. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1194. $as_echo X"$as_myself" |
  1195. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1196. s//\1/
  1197. q
  1198. }
  1199. /^X\(\/\/\)[^/].*/{
  1200. s//\1/
  1201. q
  1202. }
  1203. /^X\(\/\/\)$/{
  1204. s//\1/
  1205. q
  1206. }
  1207. /^X\(\/\).*/{
  1208. s//\1/
  1209. q
  1210. }
  1211. s/.*/./; q'`
  1212. srcdir=$ac_confdir
  1213. if test ! -r "$srcdir/$ac_unique_file"; then
  1214. srcdir=..
  1215. fi
  1216. else
  1217. ac_srcdir_defaulted=no
  1218. fi
  1219. if test ! -r "$srcdir/$ac_unique_file"; then
  1220. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1221. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1222. fi
  1223. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1224. ac_abs_confdir=`(
  1225. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1226. pwd)`
  1227. # When building in place, set srcdir=.
  1228. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1229. srcdir=.
  1230. fi
  1231. # Remove unnecessary trailing slashes from srcdir.
  1232. # Double slashes in file names in object file debugging info
  1233. # mess up M-x gdb in Emacs.
  1234. case $srcdir in
  1235. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1236. esac
  1237. for ac_var in $ac_precious_vars; do
  1238. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1239. eval ac_env_${ac_var}_value=\$${ac_var}
  1240. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1241. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1242. done
  1243. #
  1244. # Report the --help message.
  1245. #
  1246. if test "$ac_init_help" = "long"; then
  1247. # Omit some internal or obsolete options to make the list less imposing.
  1248. # This message is too long to be a string in the A/UX 3.1 sh.
  1249. cat <<_ACEOF
  1250. \`configure' configures SDL2_ttf 2.0.14 to adapt to many kinds of systems.
  1251. Usage: $0 [OPTION]... [VAR=VALUE]...
  1252. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1253. VAR=VALUE. See below for descriptions of some of the useful variables.
  1254. Defaults for the options are specified in brackets.
  1255. Configuration:
  1256. -h, --help display this help and exit
  1257. --help=short display options specific to this package
  1258. --help=recursive display the short help of all the included packages
  1259. -V, --version display version information and exit
  1260. -q, --quiet, --silent do not print \`checking ...' messages
  1261. --cache-file=FILE cache test results in FILE [disabled]
  1262. -C, --config-cache alias for \`--cache-file=config.cache'
  1263. -n, --no-create do not create output files
  1264. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1265. Installation directories:
  1266. --prefix=PREFIX install architecture-independent files in PREFIX
  1267. [$ac_default_prefix]
  1268. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1269. [PREFIX]
  1270. By default, \`make install' will install all the files in
  1271. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1272. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1273. for instance \`--prefix=\$HOME'.
  1274. For better control, use the options below.
  1275. Fine tuning of the installation directories:
  1276. --bindir=DIR user executables [EPREFIX/bin]
  1277. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1278. --libexecdir=DIR program executables [EPREFIX/libexec]
  1279. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1280. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1281. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1282. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1283. --libdir=DIR object code libraries [EPREFIX/lib]
  1284. --includedir=DIR C header files [PREFIX/include]
  1285. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1286. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1287. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1288. --infodir=DIR info documentation [DATAROOTDIR/info]
  1289. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1290. --mandir=DIR man documentation [DATAROOTDIR/man]
  1291. --docdir=DIR documentation root [DATAROOTDIR/doc/sdl2_ttf]
  1292. --htmldir=DIR html documentation [DOCDIR]
  1293. --dvidir=DIR dvi documentation [DOCDIR]
  1294. --pdfdir=DIR pdf documentation [DOCDIR]
  1295. --psdir=DIR ps documentation [DOCDIR]
  1296. _ACEOF
  1297. cat <<\_ACEOF
  1298. Program names:
  1299. --program-prefix=PREFIX prepend PREFIX to installed program names
  1300. --program-suffix=SUFFIX append SUFFIX to installed program names
  1301. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1302. X features:
  1303. --x-includes=DIR X include files are in DIR
  1304. --x-libraries=DIR X library files are in DIR
  1305. System types:
  1306. --build=BUILD configure for building on BUILD [guessed]
  1307. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1308. _ACEOF
  1309. fi
  1310. if test -n "$ac_init_help"; then
  1311. case $ac_init_help in
  1312. short | recursive ) echo "Configuration of SDL2_ttf 2.0.14:";;
  1313. esac
  1314. cat <<\_ACEOF
  1315. Optional Features:
  1316. --disable-option-checking ignore unrecognized --enable/--with options
  1317. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1318. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1319. --enable-shared[=PKGS] build shared libraries [default=yes]
  1320. --enable-static[=PKGS] build static libraries [default=yes]
  1321. --enable-fast-install[=PKGS]
  1322. optimize for fast installation [default=yes]
  1323. --disable-libtool-lock avoid locking (might break parallel builds)
  1324. --enable-dependency-tracking
  1325. do not reject slow dependency extractors
  1326. --disable-dependency-tracking
  1327. speeds up one-time build
  1328. --enable-silent-rules less verbose build output (undo: "make V=1")
  1329. --disable-silent-rules verbose build output (undo: "make V=0")
  1330. --enable-maintainer-mode
  1331. enable make rules and dependencies not useful (and
  1332. sometimes confusing) to the casual installer
  1333. --disable-sdltest Do not try to compile and run a test SDL program
  1334. Optional Packages:
  1335. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1336. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1337. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1338. both]
  1339. --with-aix-soname=aix|svr4|both
  1340. shared library versioning (aka "SONAME") variant to
  1341. provide on AIX, [default=aix].
  1342. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1343. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1344. compiler's sysroot if not specified).
  1345. --with-freetype-prefix=PFX Prefix where FREETYPE is
  1346. installed (optional)
  1347. --with-freetype-exec-prefix=PFX Exec prefix
  1348. where FREETYPE is installed (optional)
  1349. --with-raqm with complex text layout support
  1350. --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
  1351. --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
  1352. --with-x use the X Window System
  1353. Some influential environment variables:
  1354. CC C compiler command
  1355. CFLAGS C compiler flags
  1356. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1357. nonstandard directory <lib dir>
  1358. LIBS libraries to pass to the linker, e.g. -l<library>
  1359. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1360. you have headers in a nonstandard directory <include dir>
  1361. LT_SYS_LIBRARY_PATH
  1362. User-defined run-time library search path.
  1363. CPP C preprocessor
  1364. PKG_CONFIG path to pkg-config utility
  1365. RAQM_CFLAGS C compiler flags for RAQM, overriding pkg-config
  1366. RAQM_LIBS linker flags for RAQM, overriding pkg-config
  1367. SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
  1368. SDL_LIBS linker flags for SDL, overriding pkg-config
  1369. XMKMF Path to xmkmf, Makefile generator for X Window System
  1370. Use these variables to override the choices made by `configure' or to help
  1371. it to find libraries and programs with nonstandard names/locations.
  1372. Report bugs to the package provider.
  1373. _ACEOF
  1374. ac_status=$?
  1375. fi
  1376. if test "$ac_init_help" = "recursive"; then
  1377. # If there are subdirs, report their specific --help.
  1378. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1379. test -d "$ac_dir" ||
  1380. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1381. continue
  1382. ac_builddir=.
  1383. case "$ac_dir" in
  1384. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1385. *)
  1386. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1387. # A ".." for each directory in $ac_dir_suffix.
  1388. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1389. case $ac_top_builddir_sub in
  1390. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1391. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1392. esac ;;
  1393. esac
  1394. ac_abs_top_builddir=$ac_pwd
  1395. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1396. # for backward compatibility:
  1397. ac_top_builddir=$ac_top_build_prefix
  1398. case $srcdir in
  1399. .) # We are building in place.
  1400. ac_srcdir=.
  1401. ac_top_srcdir=$ac_top_builddir_sub
  1402. ac_abs_top_srcdir=$ac_pwd ;;
  1403. [\\/]* | ?:[\\/]* ) # Absolute name.
  1404. ac_srcdir=$srcdir$ac_dir_suffix;
  1405. ac_top_srcdir=$srcdir
  1406. ac_abs_top_srcdir=$srcdir ;;
  1407. *) # Relative name.
  1408. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1409. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1410. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1411. esac
  1412. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1413. cd "$ac_dir" || { ac_status=$?; continue; }
  1414. # Check for guested configure.
  1415. if test -f "$ac_srcdir/configure.gnu"; then
  1416. echo &&
  1417. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1418. elif test -f "$ac_srcdir/configure"; then
  1419. echo &&
  1420. $SHELL "$ac_srcdir/configure" --help=recursive
  1421. else
  1422. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1423. fi || ac_status=$?
  1424. cd "$ac_pwd" || { ac_status=$?; break; }
  1425. done
  1426. fi
  1427. test -n "$ac_init_help" && exit $ac_status
  1428. if $ac_init_version; then
  1429. cat <<\_ACEOF
  1430. SDL2_ttf configure 2.0.14
  1431. generated by GNU Autoconf 2.69
  1432. Copyright (C) 2012 Free Software Foundation, Inc.
  1433. This configure script is free software; the Free Software Foundation
  1434. gives unlimited permission to copy, distribute and modify it.
  1435. _ACEOF
  1436. exit
  1437. fi
  1438. ## ------------------------ ##
  1439. ## Autoconf initialization. ##
  1440. ## ------------------------ ##
  1441. # ac_fn_c_try_compile LINENO
  1442. # --------------------------
  1443. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1444. ac_fn_c_try_compile ()
  1445. {
  1446. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1447. rm -f conftest.$ac_objext
  1448. if { { ac_try="$ac_compile"
  1449. case "(($ac_try" in
  1450. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1451. *) ac_try_echo=$ac_try;;
  1452. esac
  1453. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1454. $as_echo "$ac_try_echo"; } >&5
  1455. (eval "$ac_compile") 2>conftest.err
  1456. ac_status=$?
  1457. if test -s conftest.err; then
  1458. grep -v '^ *+' conftest.err >conftest.er1
  1459. cat conftest.er1 >&5
  1460. mv -f conftest.er1 conftest.err
  1461. fi
  1462. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1463. test $ac_status = 0; } && {
  1464. test -z "$ac_c_werror_flag" ||
  1465. test ! -s conftest.err
  1466. } && test -s conftest.$ac_objext; then :
  1467. ac_retval=0
  1468. else
  1469. $as_echo "$as_me: failed program was:" >&5
  1470. sed 's/^/| /' conftest.$ac_ext >&5
  1471. ac_retval=1
  1472. fi
  1473. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1474. as_fn_set_status $ac_retval
  1475. } # ac_fn_c_try_compile
  1476. # ac_fn_c_try_link LINENO
  1477. # -----------------------
  1478. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1479. ac_fn_c_try_link ()
  1480. {
  1481. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1482. rm -f conftest.$ac_objext conftest$ac_exeext
  1483. if { { ac_try="$ac_link"
  1484. case "(($ac_try" in
  1485. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1486. *) ac_try_echo=$ac_try;;
  1487. esac
  1488. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1489. $as_echo "$ac_try_echo"; } >&5
  1490. (eval "$ac_link") 2>conftest.err
  1491. ac_status=$?
  1492. if test -s conftest.err; then
  1493. grep -v '^ *+' conftest.err >conftest.er1
  1494. cat conftest.er1 >&5
  1495. mv -f conftest.er1 conftest.err
  1496. fi
  1497. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1498. test $ac_status = 0; } && {
  1499. test -z "$ac_c_werror_flag" ||
  1500. test ! -s conftest.err
  1501. } && test -s conftest$ac_exeext && {
  1502. test "$cross_compiling" = yes ||
  1503. test -x conftest$ac_exeext
  1504. }; then :
  1505. ac_retval=0
  1506. else
  1507. $as_echo "$as_me: failed program was:" >&5
  1508. sed 's/^/| /' conftest.$ac_ext >&5
  1509. ac_retval=1
  1510. fi
  1511. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1512. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1513. # interfere with the next link command; also delete a directory that is
  1514. # left behind by Apple's compiler. We do this before executing the actions.
  1515. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1516. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1517. as_fn_set_status $ac_retval
  1518. } # ac_fn_c_try_link
  1519. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1520. # -------------------------------------------------------
  1521. # Tests whether HEADER exists and can be compiled using the include files in
  1522. # INCLUDES, setting the cache variable VAR accordingly.
  1523. ac_fn_c_check_header_compile ()
  1524. {
  1525. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1527. $as_echo_n "checking for $2... " >&6; }
  1528. if eval \${$3+:} false; then :
  1529. $as_echo_n "(cached) " >&6
  1530. else
  1531. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1532. /* end confdefs.h. */
  1533. $4
  1534. #include <$2>
  1535. _ACEOF
  1536. if ac_fn_c_try_compile "$LINENO"; then :
  1537. eval "$3=yes"
  1538. else
  1539. eval "$3=no"
  1540. fi
  1541. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1542. fi
  1543. eval ac_res=\$$3
  1544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1545. $as_echo "$ac_res" >&6; }
  1546. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1547. } # ac_fn_c_check_header_compile
  1548. # ac_fn_c_try_cpp LINENO
  1549. # ----------------------
  1550. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1551. ac_fn_c_try_cpp ()
  1552. {
  1553. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1554. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1555. case "(($ac_try" in
  1556. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1557. *) ac_try_echo=$ac_try;;
  1558. esac
  1559. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1560. $as_echo "$ac_try_echo"; } >&5
  1561. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1562. ac_status=$?
  1563. if test -s conftest.err; then
  1564. grep -v '^ *+' conftest.err >conftest.er1
  1565. cat conftest.er1 >&5
  1566. mv -f conftest.er1 conftest.err
  1567. fi
  1568. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1569. test $ac_status = 0; } > conftest.i && {
  1570. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1571. test ! -s conftest.err
  1572. }; then :
  1573. ac_retval=0
  1574. else
  1575. $as_echo "$as_me: failed program was:" >&5
  1576. sed 's/^/| /' conftest.$ac_ext >&5
  1577. ac_retval=1
  1578. fi
  1579. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1580. as_fn_set_status $ac_retval
  1581. } # ac_fn_c_try_cpp
  1582. # ac_fn_c_try_run LINENO
  1583. # ----------------------
  1584. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1585. # that executables *can* be run.
  1586. ac_fn_c_try_run ()
  1587. {
  1588. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1589. if { { ac_try="$ac_link"
  1590. case "(($ac_try" in
  1591. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1592. *) ac_try_echo=$ac_try;;
  1593. esac
  1594. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1595. $as_echo "$ac_try_echo"; } >&5
  1596. (eval "$ac_link") 2>&5
  1597. ac_status=$?
  1598. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1599. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1600. { { case "(($ac_try" in
  1601. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1602. *) ac_try_echo=$ac_try;;
  1603. esac
  1604. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1605. $as_echo "$ac_try_echo"; } >&5
  1606. (eval "$ac_try") 2>&5
  1607. ac_status=$?
  1608. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1609. test $ac_status = 0; }; }; then :
  1610. ac_retval=0
  1611. else
  1612. $as_echo "$as_me: program exited with status $ac_status" >&5
  1613. $as_echo "$as_me: failed program was:" >&5
  1614. sed 's/^/| /' conftest.$ac_ext >&5
  1615. ac_retval=$ac_status
  1616. fi
  1617. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1618. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1619. as_fn_set_status $ac_retval
  1620. } # ac_fn_c_try_run
  1621. # ac_fn_c_check_func LINENO FUNC VAR
  1622. # ----------------------------------
  1623. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1624. ac_fn_c_check_func ()
  1625. {
  1626. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1628. $as_echo_n "checking for $2... " >&6; }
  1629. if eval \${$3+:} false; then :
  1630. $as_echo_n "(cached) " >&6
  1631. else
  1632. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1633. /* end confdefs.h. */
  1634. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1635. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1636. #define $2 innocuous_$2
  1637. /* System header to define __stub macros and hopefully few prototypes,
  1638. which can conflict with char $2 (); below.
  1639. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1640. <limits.h> exists even on freestanding compilers. */
  1641. #ifdef __STDC__
  1642. # include <limits.h>
  1643. #else
  1644. # include <assert.h>
  1645. #endif
  1646. #undef $2
  1647. /* Override any GCC internal prototype to avoid an error.
  1648. Use char because int might match the return type of a GCC
  1649. builtin and then its argument prototype would still apply. */
  1650. #ifdef __cplusplus
  1651. extern "C"
  1652. #endif
  1653. char $2 ();
  1654. /* The GNU C library defines this for functions which it implements
  1655. to always fail with ENOSYS. Some functions are actually named
  1656. something starting with __ and the normal name is an alias. */
  1657. #if defined __stub_$2 || defined __stub___$2
  1658. choke me
  1659. #endif
  1660. int
  1661. main ()
  1662. {
  1663. return $2 ();
  1664. ;
  1665. return 0;
  1666. }
  1667. _ACEOF
  1668. if ac_fn_c_try_link "$LINENO"; then :
  1669. eval "$3=yes"
  1670. else
  1671. eval "$3=no"
  1672. fi
  1673. rm -f core conftest.err conftest.$ac_objext \
  1674. conftest$ac_exeext conftest.$ac_ext
  1675. fi
  1676. eval ac_res=\$$3
  1677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1678. $as_echo "$ac_res" >&6; }
  1679. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1680. } # ac_fn_c_check_func
  1681. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1682. # -------------------------------------------
  1683. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1684. # variable VAR accordingly.
  1685. ac_fn_c_check_type ()
  1686. {
  1687. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1689. $as_echo_n "checking for $2... " >&6; }
  1690. if eval \${$3+:} false; then :
  1691. $as_echo_n "(cached) " >&6
  1692. else
  1693. eval "$3=no"
  1694. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1695. /* end confdefs.h. */
  1696. $4
  1697. int
  1698. main ()
  1699. {
  1700. if (sizeof ($2))
  1701. return 0;
  1702. ;
  1703. return 0;
  1704. }
  1705. _ACEOF
  1706. if ac_fn_c_try_compile "$LINENO"; then :
  1707. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1708. /* end confdefs.h. */
  1709. $4
  1710. int
  1711. main ()
  1712. {
  1713. if (sizeof (($2)))
  1714. return 0;
  1715. ;
  1716. return 0;
  1717. }
  1718. _ACEOF
  1719. if ac_fn_c_try_compile "$LINENO"; then :
  1720. else
  1721. eval "$3=yes"
  1722. fi
  1723. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1724. fi
  1725. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1726. fi
  1727. eval ac_res=\$$3
  1728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1729. $as_echo "$ac_res" >&6; }
  1730. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1731. } # ac_fn_c_check_type
  1732. cat >config.log <<_ACEOF
  1733. This file contains any messages produced by compilers while
  1734. running configure, to aid debugging if configure makes a mistake.
  1735. It was created by SDL2_ttf $as_me 2.0.14, which was
  1736. generated by GNU Autoconf 2.69. Invocation command line was
  1737. $ $0 $@
  1738. _ACEOF
  1739. exec 5>>config.log
  1740. {
  1741. cat <<_ASUNAME
  1742. ## --------- ##
  1743. ## Platform. ##
  1744. ## --------- ##
  1745. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1746. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1747. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1748. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1749. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1750. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1751. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1752. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1753. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1754. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1755. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1756. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1757. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1758. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1759. _ASUNAME
  1760. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1761. for as_dir in $PATH
  1762. do
  1763. IFS=$as_save_IFS
  1764. test -z "$as_dir" && as_dir=.
  1765. $as_echo "PATH: $as_dir"
  1766. done
  1767. IFS=$as_save_IFS
  1768. } >&5
  1769. cat >&5 <<_ACEOF
  1770. ## ----------- ##
  1771. ## Core tests. ##
  1772. ## ----------- ##
  1773. _ACEOF
  1774. # Keep a trace of the command line.
  1775. # Strip out --no-create and --no-recursion so they do not pile up.
  1776. # Strip out --silent because we don't want to record it for future runs.
  1777. # Also quote any args containing shell meta-characters.
  1778. # Make two passes to allow for proper duplicate-argument suppression.
  1779. ac_configure_args=
  1780. ac_configure_args0=
  1781. ac_configure_args1=
  1782. ac_must_keep_next=false
  1783. for ac_pass in 1 2
  1784. do
  1785. for ac_arg
  1786. do
  1787. case $ac_arg in
  1788. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1789. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1790. | -silent | --silent | --silen | --sile | --sil)
  1791. continue ;;
  1792. *\'*)
  1793. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1794. esac
  1795. case $ac_pass in
  1796. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1797. 2)
  1798. as_fn_append ac_configure_args1 " '$ac_arg'"
  1799. if test $ac_must_keep_next = true; then
  1800. ac_must_keep_next=false # Got value, back to normal.
  1801. else
  1802. case $ac_arg in
  1803. *=* | --config-cache | -C | -disable-* | --disable-* \
  1804. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1805. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1806. | -with-* | --with-* | -without-* | --without-* | --x)
  1807. case "$ac_configure_args0 " in
  1808. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1809. esac
  1810. ;;
  1811. -* ) ac_must_keep_next=true ;;
  1812. esac
  1813. fi
  1814. as_fn_append ac_configure_args " '$ac_arg'"
  1815. ;;
  1816. esac
  1817. done
  1818. done
  1819. { ac_configure_args0=; unset ac_configure_args0;}
  1820. { ac_configure_args1=; unset ac_configure_args1;}
  1821. # When interrupted or exit'd, cleanup temporary files, and complete
  1822. # config.log. We remove comments because anyway the quotes in there
  1823. # would cause problems or look ugly.
  1824. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1825. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1826. trap 'exit_status=$?
  1827. # Save into config.log some information that might help in debugging.
  1828. {
  1829. echo
  1830. $as_echo "## ---------------- ##
  1831. ## Cache variables. ##
  1832. ## ---------------- ##"
  1833. echo
  1834. # The following way of writing the cache mishandles newlines in values,
  1835. (
  1836. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1837. eval ac_val=\$$ac_var
  1838. case $ac_val in #(
  1839. *${as_nl}*)
  1840. case $ac_var in #(
  1841. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1842. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1843. esac
  1844. case $ac_var in #(
  1845. _ | IFS | as_nl) ;; #(
  1846. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1847. *) { eval $ac_var=; unset $ac_var;} ;;
  1848. esac ;;
  1849. esac
  1850. done
  1851. (set) 2>&1 |
  1852. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1853. *${as_nl}ac_space=\ *)
  1854. sed -n \
  1855. "s/'\''/'\''\\\\'\'''\''/g;
  1856. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1857. ;; #(
  1858. *)
  1859. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1860. ;;
  1861. esac |
  1862. sort
  1863. )
  1864. echo
  1865. $as_echo "## ----------------- ##
  1866. ## Output variables. ##
  1867. ## ----------------- ##"
  1868. echo
  1869. for ac_var in $ac_subst_vars
  1870. do
  1871. eval ac_val=\$$ac_var
  1872. case $ac_val in
  1873. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1874. esac
  1875. $as_echo "$ac_var='\''$ac_val'\''"
  1876. done | sort
  1877. echo
  1878. if test -n "$ac_subst_files"; then
  1879. $as_echo "## ------------------- ##
  1880. ## File substitutions. ##
  1881. ## ------------------- ##"
  1882. echo
  1883. for ac_var in $ac_subst_files
  1884. do
  1885. eval ac_val=\$$ac_var
  1886. case $ac_val in
  1887. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1888. esac
  1889. $as_echo "$ac_var='\''$ac_val'\''"
  1890. done | sort
  1891. echo
  1892. fi
  1893. if test -s confdefs.h; then
  1894. $as_echo "## ----------- ##
  1895. ## confdefs.h. ##
  1896. ## ----------- ##"
  1897. echo
  1898. cat confdefs.h
  1899. echo
  1900. fi
  1901. test "$ac_signal" != 0 &&
  1902. $as_echo "$as_me: caught signal $ac_signal"
  1903. $as_echo "$as_me: exit $exit_status"
  1904. } >&5
  1905. rm -f core *.core core.conftest.* &&
  1906. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1907. exit $exit_status
  1908. ' 0
  1909. for ac_signal in 1 2 13 15; do
  1910. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1911. done
  1912. ac_signal=0
  1913. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1914. rm -f -r conftest* confdefs.h
  1915. $as_echo "/* confdefs.h */" > confdefs.h
  1916. # Predefined preprocessor variables.
  1917. cat >>confdefs.h <<_ACEOF
  1918. #define PACKAGE_NAME "$PACKAGE_NAME"
  1919. _ACEOF
  1920. cat >>confdefs.h <<_ACEOF
  1921. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1922. _ACEOF
  1923. cat >>confdefs.h <<_ACEOF
  1924. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1925. _ACEOF
  1926. cat >>confdefs.h <<_ACEOF
  1927. #define PACKAGE_STRING "$PACKAGE_STRING"
  1928. _ACEOF
  1929. cat >>confdefs.h <<_ACEOF
  1930. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1931. _ACEOF
  1932. cat >>confdefs.h <<_ACEOF
  1933. #define PACKAGE_URL "$PACKAGE_URL"
  1934. _ACEOF
  1935. # Let the site file select an alternate cache file if it wants to.
  1936. # Prefer an explicitly selected file to automatically selected ones.
  1937. ac_site_file1=NONE
  1938. ac_site_file2=NONE
  1939. if test -n "$CONFIG_SITE"; then
  1940. # We do not want a PATH search for config.site.
  1941. case $CONFIG_SITE in #((
  1942. -*) ac_site_file1=./$CONFIG_SITE;;
  1943. */*) ac_site_file1=$CONFIG_SITE;;
  1944. *) ac_site_file1=./$CONFIG_SITE;;
  1945. esac
  1946. elif test "x$prefix" != xNONE; then
  1947. ac_site_file1=$prefix/share/config.site
  1948. ac_site_file2=$prefix/etc/config.site
  1949. else
  1950. ac_site_file1=$ac_default_prefix/share/config.site
  1951. ac_site_file2=$ac_default_prefix/etc/config.site
  1952. fi
  1953. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1954. do
  1955. test "x$ac_site_file" = xNONE && continue
  1956. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1957. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1958. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1959. sed 's/^/| /' "$ac_site_file" >&5
  1960. . "$ac_site_file" \
  1961. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1962. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1963. as_fn_error $? "failed to load site script $ac_site_file
  1964. See \`config.log' for more details" "$LINENO" 5; }
  1965. fi
  1966. done
  1967. if test -r "$cache_file"; then
  1968. # Some versions of bash will fail to source /dev/null (special files
  1969. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1970. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1971. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1972. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1973. case $cache_file in
  1974. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1975. *) . "./$cache_file";;
  1976. esac
  1977. fi
  1978. else
  1979. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1980. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1981. >$cache_file
  1982. fi
  1983. # Check that the precious variables saved in the cache have kept the same
  1984. # value.
  1985. ac_cache_corrupted=false
  1986. for ac_var in $ac_precious_vars; do
  1987. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1988. eval ac_new_set=\$ac_env_${ac_var}_set
  1989. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1990. eval ac_new_val=\$ac_env_${ac_var}_value
  1991. case $ac_old_set,$ac_new_set in
  1992. set,)
  1993. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1994. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1995. ac_cache_corrupted=: ;;
  1996. ,set)
  1997. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1998. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1999. ac_cache_corrupted=: ;;
  2000. ,);;
  2001. *)
  2002. if test "x$ac_old_val" != "x$ac_new_val"; then
  2003. # differences in whitespace do not lead to failure.
  2004. ac_old_val_w=`echo x $ac_old_val`
  2005. ac_new_val_w=`echo x $ac_new_val`
  2006. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2007. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2008. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2009. ac_cache_corrupted=:
  2010. else
  2011. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2012. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2013. eval $ac_var=\$ac_old_val
  2014. fi
  2015. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2016. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2017. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2018. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2019. fi;;
  2020. esac
  2021. # Pass precious variables to config.status.
  2022. if test "$ac_new_set" = set; then
  2023. case $ac_new_val in
  2024. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2025. *) ac_arg=$ac_var=$ac_new_val ;;
  2026. esac
  2027. case " $ac_configure_args " in
  2028. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2029. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2030. esac
  2031. fi
  2032. done
  2033. if $ac_cache_corrupted; then
  2034. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2035. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2036. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2037. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2038. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2039. fi
  2040. ## -------------------- ##
  2041. ## Main body of script. ##
  2042. ## -------------------- ##
  2043. ac_ext=c
  2044. ac_cpp='$CPP $CPPFLAGS'
  2045. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2046. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2047. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2048. # Making releases:
  2049. # MICRO_VERSION += 1;
  2050. # INTERFACE_AGE += 1;
  2051. # BINARY_AGE += 1;
  2052. # if any functions have been added, set INTERFACE_AGE to 0.
  2053. # if backwards compatibility has been broken,
  2054. # set BINARY_AGE and INTERFACE_AGE to 0.
  2055. MAJOR_VERSION=2
  2056. MINOR_VERSION=0
  2057. MICRO_VERSION=14
  2058. INTERFACE_AGE=0
  2059. BINARY_AGE=14
  2060. VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION
  2061. # libtool versioning
  2062. ac_aux_dir=
  2063. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2064. if test -f "$ac_dir/install-sh"; then
  2065. ac_aux_dir=$ac_dir
  2066. ac_install_sh="$ac_aux_dir/install-sh -c"
  2067. break
  2068. elif test -f "$ac_dir/install.sh"; then
  2069. ac_aux_dir=$ac_dir
  2070. ac_install_sh="$ac_aux_dir/install.sh -c"
  2071. break
  2072. elif test -f "$ac_dir/shtool"; then
  2073. ac_aux_dir=$ac_dir
  2074. ac_install_sh="$ac_aux_dir/shtool install -c"
  2075. break
  2076. fi
  2077. done
  2078. if test -z "$ac_aux_dir"; then
  2079. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2080. fi
  2081. # These three variables are undocumented and unsupported,
  2082. # and are intended to be withdrawn in a future Autoconf release.
  2083. # They can cause serious problems if a builder's source tree is in a directory
  2084. # whose full name contains unusual characters.
  2085. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2086. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2087. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2088. case `pwd` in
  2089. *\ * | *\ *)
  2090. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2091. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2092. esac
  2093. macro_version='2.4.6'
  2094. macro_revision='2.4.6'
  2095. ltmain=$ac_aux_dir/ltmain.sh
  2096. # Make sure we can run config.sub.
  2097. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2098. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2100. $as_echo_n "checking build system type... " >&6; }
  2101. if ${ac_cv_build+:} false; then :
  2102. $as_echo_n "(cached) " >&6
  2103. else
  2104. ac_build_alias=$build_alias
  2105. test "x$ac_build_alias" = x &&
  2106. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2107. test "x$ac_build_alias" = x &&
  2108. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2109. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2110. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2111. fi
  2112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2113. $as_echo "$ac_cv_build" >&6; }
  2114. case $ac_cv_build in
  2115. *-*-*) ;;
  2116. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2117. esac
  2118. build=$ac_cv_build
  2119. ac_save_IFS=$IFS; IFS='-'
  2120. set x $ac_cv_build
  2121. shift
  2122. build_cpu=$1
  2123. build_vendor=$2
  2124. shift; shift
  2125. # Remember, the first character of IFS is used to create $*,
  2126. # except with old shells:
  2127. build_os=$*
  2128. IFS=$ac_save_IFS
  2129. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2131. $as_echo_n "checking host system type... " >&6; }
  2132. if ${ac_cv_host+:} false; then :
  2133. $as_echo_n "(cached) " >&6
  2134. else
  2135. if test "x$host_alias" = x; then
  2136. ac_cv_host=$ac_cv_build
  2137. else
  2138. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2139. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2140. fi
  2141. fi
  2142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2143. $as_echo "$ac_cv_host" >&6; }
  2144. case $ac_cv_host in
  2145. *-*-*) ;;
  2146. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2147. esac
  2148. host=$ac_cv_host
  2149. ac_save_IFS=$IFS; IFS='-'
  2150. set x $ac_cv_host
  2151. shift
  2152. host_cpu=$1
  2153. host_vendor=$2
  2154. shift; shift
  2155. # Remember, the first character of IFS is used to create $*,
  2156. # except with old shells:
  2157. host_os=$*
  2158. IFS=$ac_save_IFS
  2159. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2160. # Backslashify metacharacters that are still active within
  2161. # double-quoted strings.
  2162. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2163. # Same as above, but do not quote variable references.
  2164. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2165. # Sed substitution to delay expansion of an escaped shell variable in a
  2166. # double_quote_subst'ed string.
  2167. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2168. # Sed substitution to delay expansion of an escaped single quote.
  2169. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2170. # Sed substitution to avoid accidental globbing in evaled expressions
  2171. no_glob_subst='s/\*/\\\*/g'
  2172. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2173. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2174. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2176. $as_echo_n "checking how to print strings... " >&6; }
  2177. # Test print first, because it will be a builtin if present.
  2178. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2179. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2180. ECHO='print -r --'
  2181. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2182. ECHO='printf %s\n'
  2183. else
  2184. # Use this function as a fallback that always works.
  2185. func_fallback_echo ()
  2186. {
  2187. eval 'cat <<_LTECHO_EOF
  2188. $1
  2189. _LTECHO_EOF'
  2190. }
  2191. ECHO='func_fallback_echo'
  2192. fi
  2193. # func_echo_all arg...
  2194. # Invoke $ECHO with all args, space-separated.
  2195. func_echo_all ()
  2196. {
  2197. $ECHO ""
  2198. }
  2199. case $ECHO in
  2200. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2201. $as_echo "printf" >&6; } ;;
  2202. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2203. $as_echo "print -r" >&6; } ;;
  2204. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2205. $as_echo "cat" >&6; } ;;
  2206. esac
  2207. # Expand $ac_aux_dir to an absolute path.
  2208. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2209. ac_ext=c
  2210. ac_cpp='$CPP $CPPFLAGS'
  2211. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2212. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2213. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2214. if test -n "$ac_tool_prefix"; then
  2215. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2216. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2218. $as_echo_n "checking for $ac_word... " >&6; }
  2219. if ${ac_cv_prog_CC+:} false; then :
  2220. $as_echo_n "(cached) " >&6
  2221. else
  2222. if test -n "$CC"; then
  2223. ac_cv_prog_CC="$CC" # Let the user override the test.
  2224. else
  2225. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2226. for as_dir in $PATH
  2227. do
  2228. IFS=$as_save_IFS
  2229. test -z "$as_dir" && as_dir=.
  2230. for ac_exec_ext in '' $ac_executable_extensions; do
  2231. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2232. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2233. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2234. break 2
  2235. fi
  2236. done
  2237. done
  2238. IFS=$as_save_IFS
  2239. fi
  2240. fi
  2241. CC=$ac_cv_prog_CC
  2242. if test -n "$CC"; then
  2243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2244. $as_echo "$CC" >&6; }
  2245. else
  2246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2247. $as_echo "no" >&6; }
  2248. fi
  2249. fi
  2250. if test -z "$ac_cv_prog_CC"; then
  2251. ac_ct_CC=$CC
  2252. # Extract the first word of "gcc", so it can be a program name with args.
  2253. set dummy gcc; ac_word=$2
  2254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2255. $as_echo_n "checking for $ac_word... " >&6; }
  2256. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2257. $as_echo_n "(cached) " >&6
  2258. else
  2259. if test -n "$ac_ct_CC"; then
  2260. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2261. else
  2262. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2263. for as_dir in $PATH
  2264. do
  2265. IFS=$as_save_IFS
  2266. test -z "$as_dir" && as_dir=.
  2267. for ac_exec_ext in '' $ac_executable_extensions; do
  2268. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2269. ac_cv_prog_ac_ct_CC="gcc"
  2270. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2271. break 2
  2272. fi
  2273. done
  2274. done
  2275. IFS=$as_save_IFS
  2276. fi
  2277. fi
  2278. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2279. if test -n "$ac_ct_CC"; then
  2280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2281. $as_echo "$ac_ct_CC" >&6; }
  2282. else
  2283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2284. $as_echo "no" >&6; }
  2285. fi
  2286. if test "x$ac_ct_CC" = x; then
  2287. CC=""
  2288. else
  2289. case $cross_compiling:$ac_tool_warned in
  2290. yes:)
  2291. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2292. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2293. ac_tool_warned=yes ;;
  2294. esac
  2295. CC=$ac_ct_CC
  2296. fi
  2297. else
  2298. CC="$ac_cv_prog_CC"
  2299. fi
  2300. if test -z "$CC"; then
  2301. if test -n "$ac_tool_prefix"; then
  2302. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2303. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2305. $as_echo_n "checking for $ac_word... " >&6; }
  2306. if ${ac_cv_prog_CC+:} false; then :
  2307. $as_echo_n "(cached) " >&6
  2308. else
  2309. if test -n "$CC"; then
  2310. ac_cv_prog_CC="$CC" # Let the user override the test.
  2311. else
  2312. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2313. for as_dir in $PATH
  2314. do
  2315. IFS=$as_save_IFS
  2316. test -z "$as_dir" && as_dir=.
  2317. for ac_exec_ext in '' $ac_executable_extensions; do
  2318. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2319. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2320. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2321. break 2
  2322. fi
  2323. done
  2324. done
  2325. IFS=$as_save_IFS
  2326. fi
  2327. fi
  2328. CC=$ac_cv_prog_CC
  2329. if test -n "$CC"; then
  2330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2331. $as_echo "$CC" >&6; }
  2332. else
  2333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2334. $as_echo "no" >&6; }
  2335. fi
  2336. fi
  2337. fi
  2338. if test -z "$CC"; then
  2339. # Extract the first word of "cc", so it can be a program name with args.
  2340. set dummy cc; ac_word=$2
  2341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2342. $as_echo_n "checking for $ac_word... " >&6; }
  2343. if ${ac_cv_prog_CC+:} false; then :
  2344. $as_echo_n "(cached) " >&6
  2345. else
  2346. if test -n "$CC"; then
  2347. ac_cv_prog_CC="$CC" # Let the user override the test.
  2348. else
  2349. ac_prog_rejected=no
  2350. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2351. for as_dir in $PATH
  2352. do
  2353. IFS=$as_save_IFS
  2354. test -z "$as_dir" && as_dir=.
  2355. for ac_exec_ext in '' $ac_executable_extensions; do
  2356. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2357. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2358. ac_prog_rejected=yes
  2359. continue
  2360. fi
  2361. ac_cv_prog_CC="cc"
  2362. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2363. break 2
  2364. fi
  2365. done
  2366. done
  2367. IFS=$as_save_IFS
  2368. if test $ac_prog_rejected = yes; then
  2369. # We found a bogon in the path, so make sure we never use it.
  2370. set dummy $ac_cv_prog_CC
  2371. shift
  2372. if test $# != 0; then
  2373. # We chose a different compiler from the bogus one.
  2374. # However, it has the same basename, so the bogon will be chosen
  2375. # first if we set CC to just the basename; use the full file name.
  2376. shift
  2377. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2378. fi
  2379. fi
  2380. fi
  2381. fi
  2382. CC=$ac_cv_prog_CC
  2383. if test -n "$CC"; then
  2384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2385. $as_echo "$CC" >&6; }
  2386. else
  2387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2388. $as_echo "no" >&6; }
  2389. fi
  2390. fi
  2391. if test -z "$CC"; then
  2392. if test -n "$ac_tool_prefix"; then
  2393. for ac_prog in cl.exe
  2394. do
  2395. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2396. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2398. $as_echo_n "checking for $ac_word... " >&6; }
  2399. if ${ac_cv_prog_CC+:} false; then :
  2400. $as_echo_n "(cached) " >&6
  2401. else
  2402. if test -n "$CC"; then
  2403. ac_cv_prog_CC="$CC" # Let the user override the test.
  2404. else
  2405. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2406. for as_dir in $PATH
  2407. do
  2408. IFS=$as_save_IFS
  2409. test -z "$as_dir" && as_dir=.
  2410. for ac_exec_ext in '' $ac_executable_extensions; do
  2411. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2412. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2413. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2414. break 2
  2415. fi
  2416. done
  2417. done
  2418. IFS=$as_save_IFS
  2419. fi
  2420. fi
  2421. CC=$ac_cv_prog_CC
  2422. if test -n "$CC"; then
  2423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2424. $as_echo "$CC" >&6; }
  2425. else
  2426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2427. $as_echo "no" >&6; }
  2428. fi
  2429. test -n "$CC" && break
  2430. done
  2431. fi
  2432. if test -z "$CC"; then
  2433. ac_ct_CC=$CC
  2434. for ac_prog in cl.exe
  2435. do
  2436. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2437. set dummy $ac_prog; ac_word=$2
  2438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2439. $as_echo_n "checking for $ac_word... " >&6; }
  2440. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2441. $as_echo_n "(cached) " >&6
  2442. else
  2443. if test -n "$ac_ct_CC"; then
  2444. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2445. else
  2446. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2447. for as_dir in $PATH
  2448. do
  2449. IFS=$as_save_IFS
  2450. test -z "$as_dir" && as_dir=.
  2451. for ac_exec_ext in '' $ac_executable_extensions; do
  2452. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2453. ac_cv_prog_ac_ct_CC="$ac_prog"
  2454. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2455. break 2
  2456. fi
  2457. done
  2458. done
  2459. IFS=$as_save_IFS
  2460. fi
  2461. fi
  2462. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2463. if test -n "$ac_ct_CC"; then
  2464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2465. $as_echo "$ac_ct_CC" >&6; }
  2466. else
  2467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2468. $as_echo "no" >&6; }
  2469. fi
  2470. test -n "$ac_ct_CC" && break
  2471. done
  2472. if test "x$ac_ct_CC" = x; then
  2473. CC=""
  2474. else
  2475. case $cross_compiling:$ac_tool_warned in
  2476. yes:)
  2477. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2478. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2479. ac_tool_warned=yes ;;
  2480. esac
  2481. CC=$ac_ct_CC
  2482. fi
  2483. fi
  2484. fi
  2485. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2486. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2487. as_fn_error $? "no acceptable C compiler found in \$PATH
  2488. See \`config.log' for more details" "$LINENO" 5; }
  2489. # Provide some information about the compiler.
  2490. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2491. set X $ac_compile
  2492. ac_compiler=$2
  2493. for ac_option in --version -v -V -qversion; do
  2494. { { ac_try="$ac_compiler $ac_option >&5"
  2495. case "(($ac_try" in
  2496. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2497. *) ac_try_echo=$ac_try;;
  2498. esac
  2499. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2500. $as_echo "$ac_try_echo"; } >&5
  2501. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2502. ac_status=$?
  2503. if test -s conftest.err; then
  2504. sed '10a\
  2505. ... rest of stderr output deleted ...
  2506. 10q' conftest.err >conftest.er1
  2507. cat conftest.er1 >&5
  2508. fi
  2509. rm -f conftest.er1 conftest.err
  2510. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2511. test $ac_status = 0; }
  2512. done
  2513. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2514. /* end confdefs.h. */
  2515. int
  2516. main ()
  2517. {
  2518. ;
  2519. return 0;
  2520. }
  2521. _ACEOF
  2522. ac_clean_files_save=$ac_clean_files
  2523. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2524. # Try to create an executable without -o first, disregard a.out.
  2525. # It will help us diagnose broken compilers, and finding out an intuition
  2526. # of exeext.
  2527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2528. $as_echo_n "checking whether the C compiler works... " >&6; }
  2529. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2530. # The possible output files:
  2531. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2532. ac_rmfiles=
  2533. for ac_file in $ac_files
  2534. do
  2535. case $ac_file in
  2536. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2537. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2538. esac
  2539. done
  2540. rm -f $ac_rmfiles
  2541. if { { ac_try="$ac_link_default"
  2542. case "(($ac_try" in
  2543. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2544. *) ac_try_echo=$ac_try;;
  2545. esac
  2546. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2547. $as_echo "$ac_try_echo"; } >&5
  2548. (eval "$ac_link_default") 2>&5
  2549. ac_status=$?
  2550. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2551. test $ac_status = 0; }; then :
  2552. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2553. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2554. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2555. # so that the user can short-circuit this test for compilers unknown to
  2556. # Autoconf.
  2557. for ac_file in $ac_files ''
  2558. do
  2559. test -f "$ac_file" || continue
  2560. case $ac_file in
  2561. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2562. ;;
  2563. [ab].out )
  2564. # We found the default executable, but exeext='' is most
  2565. # certainly right.
  2566. break;;
  2567. *.* )
  2568. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2569. then :; else
  2570. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2571. fi
  2572. # We set ac_cv_exeext here because the later test for it is not
  2573. # safe: cross compilers may not add the suffix if given an `-o'
  2574. # argument, so we may need to know it at that point already.
  2575. # Even if this section looks crufty: it has the advantage of
  2576. # actually working.
  2577. break;;
  2578. * )
  2579. break;;
  2580. esac
  2581. done
  2582. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2583. else
  2584. ac_file=''
  2585. fi
  2586. if test -z "$ac_file"; then :
  2587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2588. $as_echo "no" >&6; }
  2589. $as_echo "$as_me: failed program was:" >&5
  2590. sed 's/^/| /' conftest.$ac_ext >&5
  2591. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2592. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2593. as_fn_error 77 "C compiler cannot create executables
  2594. See \`config.log' for more details" "$LINENO" 5; }
  2595. else
  2596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2597. $as_echo "yes" >&6; }
  2598. fi
  2599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2600. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2602. $as_echo "$ac_file" >&6; }
  2603. ac_exeext=$ac_cv_exeext
  2604. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2605. ac_clean_files=$ac_clean_files_save
  2606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2607. $as_echo_n "checking for suffix of executables... " >&6; }
  2608. if { { ac_try="$ac_link"
  2609. case "(($ac_try" in
  2610. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2611. *) ac_try_echo=$ac_try;;
  2612. esac
  2613. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2614. $as_echo "$ac_try_echo"; } >&5
  2615. (eval "$ac_link") 2>&5
  2616. ac_status=$?
  2617. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2618. test $ac_status = 0; }; then :
  2619. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2620. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2621. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2622. # `rm'.
  2623. for ac_file in conftest.exe conftest conftest.*; do
  2624. test -f "$ac_file" || continue
  2625. case $ac_file in
  2626. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2627. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2628. break;;
  2629. * ) break;;
  2630. esac
  2631. done
  2632. else
  2633. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2634. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2635. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2636. See \`config.log' for more details" "$LINENO" 5; }
  2637. fi
  2638. rm -f conftest conftest$ac_cv_exeext
  2639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2640. $as_echo "$ac_cv_exeext" >&6; }
  2641. rm -f conftest.$ac_ext
  2642. EXEEXT=$ac_cv_exeext
  2643. ac_exeext=$EXEEXT
  2644. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2645. /* end confdefs.h. */
  2646. #include <stdio.h>
  2647. int
  2648. main ()
  2649. {
  2650. FILE *f = fopen ("conftest.out", "w");
  2651. return ferror (f) || fclose (f) != 0;
  2652. ;
  2653. return 0;
  2654. }
  2655. _ACEOF
  2656. ac_clean_files="$ac_clean_files conftest.out"
  2657. # Check that the compiler produces executables we can run. If not, either
  2658. # the compiler is broken, or we cross compile.
  2659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2660. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2661. if test "$cross_compiling" != yes; then
  2662. { { ac_try="$ac_link"
  2663. case "(($ac_try" in
  2664. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2665. *) ac_try_echo=$ac_try;;
  2666. esac
  2667. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2668. $as_echo "$ac_try_echo"; } >&5
  2669. (eval "$ac_link") 2>&5
  2670. ac_status=$?
  2671. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2672. test $ac_status = 0; }
  2673. if { ac_try='./conftest$ac_cv_exeext'
  2674. { { case "(($ac_try" in
  2675. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2676. *) ac_try_echo=$ac_try;;
  2677. esac
  2678. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2679. $as_echo "$ac_try_echo"; } >&5
  2680. (eval "$ac_try") 2>&5
  2681. ac_status=$?
  2682. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2683. test $ac_status = 0; }; }; then
  2684. cross_compiling=no
  2685. else
  2686. if test "$cross_compiling" = maybe; then
  2687. cross_compiling=yes
  2688. else
  2689. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2690. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2691. as_fn_error $? "cannot run C compiled programs.
  2692. If you meant to cross compile, use \`--host'.
  2693. See \`config.log' for more details" "$LINENO" 5; }
  2694. fi
  2695. fi
  2696. fi
  2697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2698. $as_echo "$cross_compiling" >&6; }
  2699. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2700. ac_clean_files=$ac_clean_files_save
  2701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2702. $as_echo_n "checking for suffix of object files... " >&6; }
  2703. if ${ac_cv_objext+:} false; then :
  2704. $as_echo_n "(cached) " >&6
  2705. else
  2706. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2707. /* end confdefs.h. */
  2708. int
  2709. main ()
  2710. {
  2711. ;
  2712. return 0;
  2713. }
  2714. _ACEOF
  2715. rm -f conftest.o conftest.obj
  2716. if { { ac_try="$ac_compile"
  2717. case "(($ac_try" in
  2718. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2719. *) ac_try_echo=$ac_try;;
  2720. esac
  2721. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2722. $as_echo "$ac_try_echo"; } >&5
  2723. (eval "$ac_compile") 2>&5
  2724. ac_status=$?
  2725. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2726. test $ac_status = 0; }; then :
  2727. for ac_file in conftest.o conftest.obj conftest.*; do
  2728. test -f "$ac_file" || continue;
  2729. case $ac_file in
  2730. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2731. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2732. break;;
  2733. esac
  2734. done
  2735. else
  2736. $as_echo "$as_me: failed program was:" >&5
  2737. sed 's/^/| /' conftest.$ac_ext >&5
  2738. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2739. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2740. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2741. See \`config.log' for more details" "$LINENO" 5; }
  2742. fi
  2743. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2744. fi
  2745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2746. $as_echo "$ac_cv_objext" >&6; }
  2747. OBJEXT=$ac_cv_objext
  2748. ac_objext=$OBJEXT
  2749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2750. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2751. if ${ac_cv_c_compiler_gnu+:} false; then :
  2752. $as_echo_n "(cached) " >&6
  2753. else
  2754. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2755. /* end confdefs.h. */
  2756. int
  2757. main ()
  2758. {
  2759. #ifndef __GNUC__
  2760. choke me
  2761. #endif
  2762. ;
  2763. return 0;
  2764. }
  2765. _ACEOF
  2766. if ac_fn_c_try_compile "$LINENO"; then :
  2767. ac_compiler_gnu=yes
  2768. else
  2769. ac_compiler_gnu=no
  2770. fi
  2771. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2772. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2773. fi
  2774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2775. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2776. if test $ac_compiler_gnu = yes; then
  2777. GCC=yes
  2778. else
  2779. GCC=
  2780. fi
  2781. ac_test_CFLAGS=${CFLAGS+set}
  2782. ac_save_CFLAGS=$CFLAGS
  2783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2784. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2785. if ${ac_cv_prog_cc_g+:} false; then :
  2786. $as_echo_n "(cached) " >&6
  2787. else
  2788. ac_save_c_werror_flag=$ac_c_werror_flag
  2789. ac_c_werror_flag=yes
  2790. ac_cv_prog_cc_g=no
  2791. CFLAGS="-g"
  2792. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2793. /* end confdefs.h. */
  2794. int
  2795. main ()
  2796. {
  2797. ;
  2798. return 0;
  2799. }
  2800. _ACEOF
  2801. if ac_fn_c_try_compile "$LINENO"; then :
  2802. ac_cv_prog_cc_g=yes
  2803. else
  2804. CFLAGS=""
  2805. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2806. /* end confdefs.h. */
  2807. int
  2808. main ()
  2809. {
  2810. ;
  2811. return 0;
  2812. }
  2813. _ACEOF
  2814. if ac_fn_c_try_compile "$LINENO"; then :
  2815. else
  2816. ac_c_werror_flag=$ac_save_c_werror_flag
  2817. CFLAGS="-g"
  2818. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2819. /* end confdefs.h. */
  2820. int
  2821. main ()
  2822. {
  2823. ;
  2824. return 0;
  2825. }
  2826. _ACEOF
  2827. if ac_fn_c_try_compile "$LINENO"; then :
  2828. ac_cv_prog_cc_g=yes
  2829. fi
  2830. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2831. fi
  2832. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2833. fi
  2834. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2835. ac_c_werror_flag=$ac_save_c_werror_flag
  2836. fi
  2837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2838. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2839. if test "$ac_test_CFLAGS" = set; then
  2840. CFLAGS=$ac_save_CFLAGS
  2841. elif test $ac_cv_prog_cc_g = yes; then
  2842. if test "$GCC" = yes; then
  2843. CFLAGS="-g -O2"
  2844. else
  2845. CFLAGS="-g"
  2846. fi
  2847. else
  2848. if test "$GCC" = yes; then
  2849. CFLAGS="-O2"
  2850. else
  2851. CFLAGS=
  2852. fi
  2853. fi
  2854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2855. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2856. if ${ac_cv_prog_cc_c89+:} false; then :
  2857. $as_echo_n "(cached) " >&6
  2858. else
  2859. ac_cv_prog_cc_c89=no
  2860. ac_save_CC=$CC
  2861. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2862. /* end confdefs.h. */
  2863. #include <stdarg.h>
  2864. #include <stdio.h>
  2865. struct stat;
  2866. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2867. struct buf { int x; };
  2868. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2869. static char *e (p, i)
  2870. char **p;
  2871. int i;
  2872. {
  2873. return p[i];
  2874. }
  2875. static char *f (char * (*g) (char **, int), char **p, ...)
  2876. {
  2877. char *s;
  2878. va_list v;
  2879. va_start (v,p);
  2880. s = g (p, va_arg (v,int));
  2881. va_end (v);
  2882. return s;
  2883. }
  2884. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2885. function prototypes and stuff, but not '\xHH' hex character constants.
  2886. These don't provoke an error unfortunately, instead are silently treated
  2887. as 'x'. The following induces an error, until -std is added to get
  2888. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2889. array size at least. It's necessary to write '\x00'==0 to get something
  2890. that's true only with -std. */
  2891. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2892. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2893. inside strings and character constants. */
  2894. #define FOO(x) 'x'
  2895. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2896. int test (int i, double x);
  2897. struct s1 {int (*f) (int a);};
  2898. struct s2 {int (*f) (double a);};
  2899. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2900. int argc;
  2901. char **argv;
  2902. int
  2903. main ()
  2904. {
  2905. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2906. ;
  2907. return 0;
  2908. }
  2909. _ACEOF
  2910. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2911. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2912. do
  2913. CC="$ac_save_CC $ac_arg"
  2914. if ac_fn_c_try_compile "$LINENO"; then :
  2915. ac_cv_prog_cc_c89=$ac_arg
  2916. fi
  2917. rm -f core conftest.err conftest.$ac_objext
  2918. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2919. done
  2920. rm -f conftest.$ac_ext
  2921. CC=$ac_save_CC
  2922. fi
  2923. # AC_CACHE_VAL
  2924. case "x$ac_cv_prog_cc_c89" in
  2925. x)
  2926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  2927. $as_echo "none needed" >&6; } ;;
  2928. xno)
  2929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  2930. $as_echo "unsupported" >&6; } ;;
  2931. *)
  2932. CC="$CC $ac_cv_prog_cc_c89"
  2933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  2934. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  2935. esac
  2936. if test "x$ac_cv_prog_cc_c89" != xno; then :
  2937. fi
  2938. ac_ext=c
  2939. ac_cpp='$CPP $CPPFLAGS'
  2940. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2941. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2942. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2943. ac_ext=c
  2944. ac_cpp='$CPP $CPPFLAGS'
  2945. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2946. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2947. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  2949. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  2950. if ${am_cv_prog_cc_c_o+:} false; then :
  2951. $as_echo_n "(cached) " >&6
  2952. else
  2953. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2954. /* end confdefs.h. */
  2955. int
  2956. main ()
  2957. {
  2958. ;
  2959. return 0;
  2960. }
  2961. _ACEOF
  2962. # Make sure it works both with $CC and with simple cc.
  2963. # Following AC_PROG_CC_C_O, we do the test twice because some
  2964. # compilers refuse to overwrite an existing .o file with -o,
  2965. # though they will create one.
  2966. am_cv_prog_cc_c_o=yes
  2967. for am_i in 1 2; do
  2968. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  2969. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  2970. ac_status=$?
  2971. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2972. (exit $ac_status); } \
  2973. && test -f conftest2.$ac_objext; then
  2974. : OK
  2975. else
  2976. am_cv_prog_cc_c_o=no
  2977. break
  2978. fi
  2979. done
  2980. rm -f core conftest*
  2981. unset am_i
  2982. fi
  2983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  2984. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  2985. if test "$am_cv_prog_cc_c_o" != yes; then
  2986. # Losing compiler, so override with the script.
  2987. # FIXME: It is wrong to rewrite CC.
  2988. # But if we don't then we get into trouble of one sort or another.
  2989. # A longer-term fix would be to have automake use am__CC in this case,
  2990. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  2991. CC="$am_aux_dir/compile $CC"
  2992. fi
  2993. ac_ext=c
  2994. ac_cpp='$CPP $CPPFLAGS'
  2995. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2996. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2997. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  2999. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3000. if ${ac_cv_path_SED+:} false; then :
  3001. $as_echo_n "(cached) " >&6
  3002. else
  3003. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3004. for ac_i in 1 2 3 4 5 6 7; do
  3005. ac_script="$ac_script$as_nl$ac_script"
  3006. done
  3007. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3008. { ac_script=; unset ac_script;}
  3009. if test -z "$SED"; then
  3010. ac_path_SED_found=false
  3011. # Loop through the user's path and test for each of PROGNAME-LIST
  3012. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3013. for as_dir in $PATH
  3014. do
  3015. IFS=$as_save_IFS
  3016. test -z "$as_dir" && as_dir=.
  3017. for ac_prog in sed gsed; do
  3018. for ac_exec_ext in '' $ac_executable_extensions; do
  3019. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3020. as_fn_executable_p "$ac_path_SED" || continue
  3021. # Check for GNU ac_path_SED and select it if it is found.
  3022. # Check for GNU $ac_path_SED
  3023. case `"$ac_path_SED" --version 2>&1` in
  3024. *GNU*)
  3025. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3026. *)
  3027. ac_count=0
  3028. $as_echo_n 0123456789 >"conftest.in"
  3029. while :
  3030. do
  3031. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3032. mv "conftest.tmp" "conftest.in"
  3033. cp "conftest.in" "conftest.nl"
  3034. $as_echo '' >> "conftest.nl"
  3035. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3036. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3037. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3038. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3039. # Best one so far, save it but keep looking for a better one
  3040. ac_cv_path_SED="$ac_path_SED"
  3041. ac_path_SED_max=$ac_count
  3042. fi
  3043. # 10*(2^10) chars as input seems more than enough
  3044. test $ac_count -gt 10 && break
  3045. done
  3046. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3047. esac
  3048. $ac_path_SED_found && break 3
  3049. done
  3050. done
  3051. done
  3052. IFS=$as_save_IFS
  3053. if test -z "$ac_cv_path_SED"; then
  3054. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3055. fi
  3056. else
  3057. ac_cv_path_SED=$SED
  3058. fi
  3059. fi
  3060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3061. $as_echo "$ac_cv_path_SED" >&6; }
  3062. SED="$ac_cv_path_SED"
  3063. rm -f conftest.sed
  3064. test -z "$SED" && SED=sed
  3065. Xsed="$SED -e 1s/^X//"
  3066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3067. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3068. if ${ac_cv_path_GREP+:} false; then :
  3069. $as_echo_n "(cached) " >&6
  3070. else
  3071. if test -z "$GREP"; then
  3072. ac_path_GREP_found=false
  3073. # Loop through the user's path and test for each of PROGNAME-LIST
  3074. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3075. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3076. do
  3077. IFS=$as_save_IFS
  3078. test -z "$as_dir" && as_dir=.
  3079. for ac_prog in grep ggrep; do
  3080. for ac_exec_ext in '' $ac_executable_extensions; do
  3081. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3082. as_fn_executable_p "$ac_path_GREP" || continue
  3083. # Check for GNU ac_path_GREP and select it if it is found.
  3084. # Check for GNU $ac_path_GREP
  3085. case `"$ac_path_GREP" --version 2>&1` in
  3086. *GNU*)
  3087. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3088. *)
  3089. ac_count=0
  3090. $as_echo_n 0123456789 >"conftest.in"
  3091. while :
  3092. do
  3093. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3094. mv "conftest.tmp" "conftest.in"
  3095. cp "conftest.in" "conftest.nl"
  3096. $as_echo 'GREP' >> "conftest.nl"
  3097. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3098. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3099. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3100. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3101. # Best one so far, save it but keep looking for a better one
  3102. ac_cv_path_GREP="$ac_path_GREP"
  3103. ac_path_GREP_max=$ac_count
  3104. fi
  3105. # 10*(2^10) chars as input seems more than enough
  3106. test $ac_count -gt 10 && break
  3107. done
  3108. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3109. esac
  3110. $ac_path_GREP_found && break 3
  3111. done
  3112. done
  3113. done
  3114. IFS=$as_save_IFS
  3115. if test -z "$ac_cv_path_GREP"; then
  3116. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3117. fi
  3118. else
  3119. ac_cv_path_GREP=$GREP
  3120. fi
  3121. fi
  3122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3123. $as_echo "$ac_cv_path_GREP" >&6; }
  3124. GREP="$ac_cv_path_GREP"
  3125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3126. $as_echo_n "checking for egrep... " >&6; }
  3127. if ${ac_cv_path_EGREP+:} false; then :
  3128. $as_echo_n "(cached) " >&6
  3129. else
  3130. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3131. then ac_cv_path_EGREP="$GREP -E"
  3132. else
  3133. if test -z "$EGREP"; then
  3134. ac_path_EGREP_found=false
  3135. # Loop through the user's path and test for each of PROGNAME-LIST
  3136. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3137. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3138. do
  3139. IFS=$as_save_IFS
  3140. test -z "$as_dir" && as_dir=.
  3141. for ac_prog in egrep; do
  3142. for ac_exec_ext in '' $ac_executable_extensions; do
  3143. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3144. as_fn_executable_p "$ac_path_EGREP" || continue
  3145. # Check for GNU ac_path_EGREP and select it if it is found.
  3146. # Check for GNU $ac_path_EGREP
  3147. case `"$ac_path_EGREP" --version 2>&1` in
  3148. *GNU*)
  3149. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3150. *)
  3151. ac_count=0
  3152. $as_echo_n 0123456789 >"conftest.in"
  3153. while :
  3154. do
  3155. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3156. mv "conftest.tmp" "conftest.in"
  3157. cp "conftest.in" "conftest.nl"
  3158. $as_echo 'EGREP' >> "conftest.nl"
  3159. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3160. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3161. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3162. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3163. # Best one so far, save it but keep looking for a better one
  3164. ac_cv_path_EGREP="$ac_path_EGREP"
  3165. ac_path_EGREP_max=$ac_count
  3166. fi
  3167. # 10*(2^10) chars as input seems more than enough
  3168. test $ac_count -gt 10 && break
  3169. done
  3170. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3171. esac
  3172. $ac_path_EGREP_found && break 3
  3173. done
  3174. done
  3175. done
  3176. IFS=$as_save_IFS
  3177. if test -z "$ac_cv_path_EGREP"; then
  3178. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3179. fi
  3180. else
  3181. ac_cv_path_EGREP=$EGREP
  3182. fi
  3183. fi
  3184. fi
  3185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3186. $as_echo "$ac_cv_path_EGREP" >&6; }
  3187. EGREP="$ac_cv_path_EGREP"
  3188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3189. $as_echo_n "checking for fgrep... " >&6; }
  3190. if ${ac_cv_path_FGREP+:} false; then :
  3191. $as_echo_n "(cached) " >&6
  3192. else
  3193. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3194. then ac_cv_path_FGREP="$GREP -F"
  3195. else
  3196. if test -z "$FGREP"; then
  3197. ac_path_FGREP_found=false
  3198. # Loop through the user's path and test for each of PROGNAME-LIST
  3199. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3200. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3201. do
  3202. IFS=$as_save_IFS
  3203. test -z "$as_dir" && as_dir=.
  3204. for ac_prog in fgrep; do
  3205. for ac_exec_ext in '' $ac_executable_extensions; do
  3206. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3207. as_fn_executable_p "$ac_path_FGREP" || continue
  3208. # Check for GNU ac_path_FGREP and select it if it is found.
  3209. # Check for GNU $ac_path_FGREP
  3210. case `"$ac_path_FGREP" --version 2>&1` in
  3211. *GNU*)
  3212. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3213. *)
  3214. ac_count=0
  3215. $as_echo_n 0123456789 >"conftest.in"
  3216. while :
  3217. do
  3218. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3219. mv "conftest.tmp" "conftest.in"
  3220. cp "conftest.in" "conftest.nl"
  3221. $as_echo 'FGREP' >> "conftest.nl"
  3222. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3223. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3224. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3225. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3226. # Best one so far, save it but keep looking for a better one
  3227. ac_cv_path_FGREP="$ac_path_FGREP"
  3228. ac_path_FGREP_max=$ac_count
  3229. fi
  3230. # 10*(2^10) chars as input seems more than enough
  3231. test $ac_count -gt 10 && break
  3232. done
  3233. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3234. esac
  3235. $ac_path_FGREP_found && break 3
  3236. done
  3237. done
  3238. done
  3239. IFS=$as_save_IFS
  3240. if test -z "$ac_cv_path_FGREP"; then
  3241. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3242. fi
  3243. else
  3244. ac_cv_path_FGREP=$FGREP
  3245. fi
  3246. fi
  3247. fi
  3248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3249. $as_echo "$ac_cv_path_FGREP" >&6; }
  3250. FGREP="$ac_cv_path_FGREP"
  3251. test -z "$GREP" && GREP=grep
  3252. # Check whether --with-gnu-ld was given.
  3253. if test "${with_gnu_ld+set}" = set; then :
  3254. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  3255. else
  3256. with_gnu_ld=no
  3257. fi
  3258. ac_prog=ld
  3259. if test yes = "$GCC"; then
  3260. # Check if gcc -print-prog-name=ld gives a path.
  3261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3262. $as_echo_n "checking for ld used by $CC... " >&6; }
  3263. case $host in
  3264. *-*-mingw*)
  3265. # gcc leaves a trailing carriage return, which upsets mingw
  3266. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3267. *)
  3268. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3269. esac
  3270. case $ac_prog in
  3271. # Accept absolute paths.
  3272. [\\/]* | ?:[\\/]*)
  3273. re_direlt='/[^/][^/]*/\.\./'
  3274. # Canonicalize the pathname of ld
  3275. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3276. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3277. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3278. done
  3279. test -z "$LD" && LD=$ac_prog
  3280. ;;
  3281. "")
  3282. # If it fails, then pretend we aren't using GCC.
  3283. ac_prog=ld
  3284. ;;
  3285. *)
  3286. # If it is relative, then search for the first ld in PATH.
  3287. with_gnu_ld=unknown
  3288. ;;
  3289. esac
  3290. elif test yes = "$with_gnu_ld"; then
  3291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3292. $as_echo_n "checking for GNU ld... " >&6; }
  3293. else
  3294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3295. $as_echo_n "checking for non-GNU ld... " >&6; }
  3296. fi
  3297. if ${lt_cv_path_LD+:} false; then :
  3298. $as_echo_n "(cached) " >&6
  3299. else
  3300. if test -z "$LD"; then
  3301. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  3302. for ac_dir in $PATH; do
  3303. IFS=$lt_save_ifs
  3304. test -z "$ac_dir" && ac_dir=.
  3305. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3306. lt_cv_path_LD=$ac_dir/$ac_prog
  3307. # Check to see if the program is GNU ld. I'd rather use --version,
  3308. # but apparently some variants of GNU ld only accept -v.
  3309. # Break only if it was the GNU/non-GNU ld that we prefer.
  3310. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3311. *GNU* | *'with BFD'*)
  3312. test no != "$with_gnu_ld" && break
  3313. ;;
  3314. *)
  3315. test yes != "$with_gnu_ld" && break
  3316. ;;
  3317. esac
  3318. fi
  3319. done
  3320. IFS=$lt_save_ifs
  3321. else
  3322. lt_cv_path_LD=$LD # Let the user override the test with a path.
  3323. fi
  3324. fi
  3325. LD=$lt_cv_path_LD
  3326. if test -n "$LD"; then
  3327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3328. $as_echo "$LD" >&6; }
  3329. else
  3330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3331. $as_echo "no" >&6; }
  3332. fi
  3333. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3335. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3336. if ${lt_cv_prog_gnu_ld+:} false; then :
  3337. $as_echo_n "(cached) " >&6
  3338. else
  3339. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3340. case `$LD -v 2>&1 </dev/null` in
  3341. *GNU* | *'with BFD'*)
  3342. lt_cv_prog_gnu_ld=yes
  3343. ;;
  3344. *)
  3345. lt_cv_prog_gnu_ld=no
  3346. ;;
  3347. esac
  3348. fi
  3349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3350. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3351. with_gnu_ld=$lt_cv_prog_gnu_ld
  3352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3353. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3354. if ${lt_cv_path_NM+:} false; then :
  3355. $as_echo_n "(cached) " >&6
  3356. else
  3357. if test -n "$NM"; then
  3358. # Let the user override the test.
  3359. lt_cv_path_NM=$NM
  3360. else
  3361. lt_nm_to_check=${ac_tool_prefix}nm
  3362. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3363. lt_nm_to_check="$lt_nm_to_check nm"
  3364. fi
  3365. for lt_tmp_nm in $lt_nm_to_check; do
  3366. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  3367. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3368. IFS=$lt_save_ifs
  3369. test -z "$ac_dir" && ac_dir=.
  3370. tmp_nm=$ac_dir/$lt_tmp_nm
  3371. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  3372. # Check to see if the nm accepts a BSD-compat flag.
  3373. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  3374. # nm: unknown option "B" ignored
  3375. # Tru64's nm complains that /dev/null is an invalid object file
  3376. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  3377. case $build_os in
  3378. mingw*) lt_bad_file=conftest.nm/nofile ;;
  3379. *) lt_bad_file=/dev/null ;;
  3380. esac
  3381. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  3382. *$lt_bad_file* | *'Invalid file or object type'*)
  3383. lt_cv_path_NM="$tmp_nm -B"
  3384. break 2
  3385. ;;
  3386. *)
  3387. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3388. */dev/null*)
  3389. lt_cv_path_NM="$tmp_nm -p"
  3390. break 2
  3391. ;;
  3392. *)
  3393. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3394. continue # so that we can try to find one that supports BSD flags
  3395. ;;
  3396. esac
  3397. ;;
  3398. esac
  3399. fi
  3400. done
  3401. IFS=$lt_save_ifs
  3402. done
  3403. : ${lt_cv_path_NM=no}
  3404. fi
  3405. fi
  3406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3407. $as_echo "$lt_cv_path_NM" >&6; }
  3408. if test no != "$lt_cv_path_NM"; then
  3409. NM=$lt_cv_path_NM
  3410. else
  3411. # Didn't find any BSD compatible name lister, look for dumpbin.
  3412. if test -n "$DUMPBIN"; then :
  3413. # Let the user override the test.
  3414. else
  3415. if test -n "$ac_tool_prefix"; then
  3416. for ac_prog in dumpbin "link -dump"
  3417. do
  3418. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3419. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3421. $as_echo_n "checking for $ac_word... " >&6; }
  3422. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3423. $as_echo_n "(cached) " >&6
  3424. else
  3425. if test -n "$DUMPBIN"; then
  3426. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3427. else
  3428. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3429. for as_dir in $PATH
  3430. do
  3431. IFS=$as_save_IFS
  3432. test -z "$as_dir" && as_dir=.
  3433. for ac_exec_ext in '' $ac_executable_extensions; do
  3434. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3435. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3436. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3437. break 2
  3438. fi
  3439. done
  3440. done
  3441. IFS=$as_save_IFS
  3442. fi
  3443. fi
  3444. DUMPBIN=$ac_cv_prog_DUMPBIN
  3445. if test -n "$DUMPBIN"; then
  3446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3447. $as_echo "$DUMPBIN" >&6; }
  3448. else
  3449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3450. $as_echo "no" >&6; }
  3451. fi
  3452. test -n "$DUMPBIN" && break
  3453. done
  3454. fi
  3455. if test -z "$DUMPBIN"; then
  3456. ac_ct_DUMPBIN=$DUMPBIN
  3457. for ac_prog in dumpbin "link -dump"
  3458. do
  3459. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3460. set dummy $ac_prog; ac_word=$2
  3461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3462. $as_echo_n "checking for $ac_word... " >&6; }
  3463. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3464. $as_echo_n "(cached) " >&6
  3465. else
  3466. if test -n "$ac_ct_DUMPBIN"; then
  3467. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3468. else
  3469. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3470. for as_dir in $PATH
  3471. do
  3472. IFS=$as_save_IFS
  3473. test -z "$as_dir" && as_dir=.
  3474. for ac_exec_ext in '' $ac_executable_extensions; do
  3475. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3476. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3477. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3478. break 2
  3479. fi
  3480. done
  3481. done
  3482. IFS=$as_save_IFS
  3483. fi
  3484. fi
  3485. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3486. if test -n "$ac_ct_DUMPBIN"; then
  3487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3488. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3489. else
  3490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3491. $as_echo "no" >&6; }
  3492. fi
  3493. test -n "$ac_ct_DUMPBIN" && break
  3494. done
  3495. if test "x$ac_ct_DUMPBIN" = x; then
  3496. DUMPBIN=":"
  3497. else
  3498. case $cross_compiling:$ac_tool_warned in
  3499. yes:)
  3500. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3501. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3502. ac_tool_warned=yes ;;
  3503. esac
  3504. DUMPBIN=$ac_ct_DUMPBIN
  3505. fi
  3506. fi
  3507. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  3508. *COFF*)
  3509. DUMPBIN="$DUMPBIN -symbols -headers"
  3510. ;;
  3511. *)
  3512. DUMPBIN=:
  3513. ;;
  3514. esac
  3515. fi
  3516. if test : != "$DUMPBIN"; then
  3517. NM=$DUMPBIN
  3518. fi
  3519. fi
  3520. test -z "$NM" && NM=nm
  3521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3522. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3523. if ${lt_cv_nm_interface+:} false; then :
  3524. $as_echo_n "(cached) " >&6
  3525. else
  3526. lt_cv_nm_interface="BSD nm"
  3527. echo "int some_variable = 0;" > conftest.$ac_ext
  3528. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3529. (eval "$ac_compile" 2>conftest.err)
  3530. cat conftest.err >&5
  3531. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3532. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3533. cat conftest.err >&5
  3534. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  3535. cat conftest.out >&5
  3536. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3537. lt_cv_nm_interface="MS dumpbin"
  3538. fi
  3539. rm -f conftest*
  3540. fi
  3541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  3542. $as_echo "$lt_cv_nm_interface" >&6; }
  3543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  3544. $as_echo_n "checking whether ln -s works... " >&6; }
  3545. LN_S=$as_ln_s
  3546. if test "$LN_S" = "ln -s"; then
  3547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3548. $as_echo "yes" >&6; }
  3549. else
  3550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  3551. $as_echo "no, using $LN_S" >&6; }
  3552. fi
  3553. # find the maximum length of command line arguments
  3554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  3555. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  3556. if ${lt_cv_sys_max_cmd_len+:} false; then :
  3557. $as_echo_n "(cached) " >&6
  3558. else
  3559. i=0
  3560. teststring=ABCD
  3561. case $build_os in
  3562. msdosdjgpp*)
  3563. # On DJGPP, this test can blow up pretty badly due to problems in libc
  3564. # (any single argument exceeding 2000 bytes causes a buffer overrun
  3565. # during glob expansion). Even if it were fixed, the result of this
  3566. # check would be larger than it should be.
  3567. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  3568. ;;
  3569. gnu*)
  3570. # Under GNU Hurd, this test is not required because there is
  3571. # no limit to the length of command line arguments.
  3572. # Libtool will interpret -1 as no limit whatsoever
  3573. lt_cv_sys_max_cmd_len=-1;
  3574. ;;
  3575. cygwin* | mingw* | cegcc*)
  3576. # On Win9x/ME, this test blows up -- it succeeds, but takes
  3577. # about 5 minutes as the teststring grows exponentially.
  3578. # Worse, since 9x/ME are not pre-emptively multitasking,
  3579. # you end up with a "frozen" computer, even though with patience
  3580. # the test eventually succeeds (with a max line length of 256k).
  3581. # Instead, let's just punt: use the minimum linelength reported by
  3582. # all of the supported platforms: 8192 (on NT/2K/XP).
  3583. lt_cv_sys_max_cmd_len=8192;
  3584. ;;
  3585. mint*)
  3586. # On MiNT this can take a long time and run out of memory.
  3587. lt_cv_sys_max_cmd_len=8192;
  3588. ;;
  3589. amigaos*)
  3590. # On AmigaOS with pdksh, this test takes hours, literally.
  3591. # So we just punt and use a minimum line length of 8192.
  3592. lt_cv_sys_max_cmd_len=8192;
  3593. ;;
  3594. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  3595. # This has been around since 386BSD, at least. Likely further.
  3596. if test -x /sbin/sysctl; then
  3597. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  3598. elif test -x /usr/sbin/sysctl; then
  3599. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  3600. else
  3601. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  3602. fi
  3603. # And add a safety zone
  3604. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3605. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3606. ;;
  3607. interix*)
  3608. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  3609. lt_cv_sys_max_cmd_len=196608
  3610. ;;
  3611. os2*)
  3612. # The test takes a long time on OS/2.
  3613. lt_cv_sys_max_cmd_len=8192
  3614. ;;
  3615. osf*)
  3616. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  3617. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  3618. # nice to cause kernel panics so lets avoid the loop below.
  3619. # First set a reasonable default.
  3620. lt_cv_sys_max_cmd_len=16384
  3621. #
  3622. if test -x /sbin/sysconfig; then
  3623. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  3624. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  3625. esac
  3626. fi
  3627. ;;
  3628. sco3.2v5*)
  3629. lt_cv_sys_max_cmd_len=102400
  3630. ;;
  3631. sysv5* | sco5v6* | sysv4.2uw2*)
  3632. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  3633. if test -n "$kargmax"; then
  3634. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  3635. else
  3636. lt_cv_sys_max_cmd_len=32768
  3637. fi
  3638. ;;
  3639. *)
  3640. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  3641. if test -n "$lt_cv_sys_max_cmd_len" && \
  3642. test undefined != "$lt_cv_sys_max_cmd_len"; then
  3643. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3644. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3645. else
  3646. # Make teststring a little bigger before we do anything with it.
  3647. # a 1K string should be a reasonable start.
  3648. for i in 1 2 3 4 5 6 7 8; do
  3649. teststring=$teststring$teststring
  3650. done
  3651. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  3652. # If test is not a shell built-in, we'll probably end up computing a
  3653. # maximum length that is only half of the actual maximum length, but
  3654. # we can't tell.
  3655. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  3656. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  3657. test 17 != "$i" # 1/2 MB should be enough
  3658. do
  3659. i=`expr $i + 1`
  3660. teststring=$teststring$teststring
  3661. done
  3662. # Only check the string length outside the loop.
  3663. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  3664. teststring=
  3665. # Add a significant safety factor because C++ compilers can tack on
  3666. # massive amounts of additional arguments before passing them to the
  3667. # linker. It appears as though 1/2 is a usable value.
  3668. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  3669. fi
  3670. ;;
  3671. esac
  3672. fi
  3673. if test -n "$lt_cv_sys_max_cmd_len"; then
  3674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  3675. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  3676. else
  3677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  3678. $as_echo "none" >&6; }
  3679. fi
  3680. max_cmd_len=$lt_cv_sys_max_cmd_len
  3681. : ${CP="cp -f"}
  3682. : ${MV="mv -f"}
  3683. : ${RM="rm -f"}
  3684. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  3685. lt_unset=unset
  3686. else
  3687. lt_unset=false
  3688. fi
  3689. # test EBCDIC or ASCII
  3690. case `echo X|tr X '\101'` in
  3691. A) # ASCII based system
  3692. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  3693. lt_SP2NL='tr \040 \012'
  3694. lt_NL2SP='tr \015\012 \040\040'
  3695. ;;
  3696. *) # EBCDIC based system
  3697. lt_SP2NL='tr \100 \n'
  3698. lt_NL2SP='tr \r\n \100\100'
  3699. ;;
  3700. esac
  3701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  3702. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  3703. if ${lt_cv_to_host_file_cmd+:} false; then :
  3704. $as_echo_n "(cached) " >&6
  3705. else
  3706. case $host in
  3707. *-*-mingw* )
  3708. case $build in
  3709. *-*-mingw* ) # actually msys
  3710. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  3711. ;;
  3712. *-*-cygwin* )
  3713. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  3714. ;;
  3715. * ) # otherwise, assume *nix
  3716. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  3717. ;;
  3718. esac
  3719. ;;
  3720. *-*-cygwin* )
  3721. case $build in
  3722. *-*-mingw* ) # actually msys
  3723. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  3724. ;;
  3725. *-*-cygwin* )
  3726. lt_cv_to_host_file_cmd=func_convert_file_noop
  3727. ;;
  3728. * ) # otherwise, assume *nix
  3729. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  3730. ;;
  3731. esac
  3732. ;;
  3733. * ) # unhandled hosts (and "normal" native builds)
  3734. lt_cv_to_host_file_cmd=func_convert_file_noop
  3735. ;;
  3736. esac
  3737. fi
  3738. to_host_file_cmd=$lt_cv_to_host_file_cmd
  3739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  3740. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  3741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  3742. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  3743. if ${lt_cv_to_tool_file_cmd+:} false; then :
  3744. $as_echo_n "(cached) " >&6
  3745. else
  3746. #assume ordinary cross tools, or native build.
  3747. lt_cv_to_tool_file_cmd=func_convert_file_noop
  3748. case $host in
  3749. *-*-mingw* )
  3750. case $build in
  3751. *-*-mingw* ) # actually msys
  3752. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  3753. ;;
  3754. esac
  3755. ;;
  3756. esac
  3757. fi
  3758. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  3759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  3760. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  3761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  3762. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  3763. if ${lt_cv_ld_reload_flag+:} false; then :
  3764. $as_echo_n "(cached) " >&6
  3765. else
  3766. lt_cv_ld_reload_flag='-r'
  3767. fi
  3768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  3769. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  3770. reload_flag=$lt_cv_ld_reload_flag
  3771. case $reload_flag in
  3772. "" | " "*) ;;
  3773. *) reload_flag=" $reload_flag" ;;
  3774. esac
  3775. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3776. case $host_os in
  3777. cygwin* | mingw* | pw32* | cegcc*)
  3778. if test yes != "$GCC"; then
  3779. reload_cmds=false
  3780. fi
  3781. ;;
  3782. darwin*)
  3783. if test yes = "$GCC"; then
  3784. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  3785. else
  3786. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3787. fi
  3788. ;;
  3789. esac
  3790. if test -n "$ac_tool_prefix"; then
  3791. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  3792. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  3793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3794. $as_echo_n "checking for $ac_word... " >&6; }
  3795. if ${ac_cv_prog_OBJDUMP+:} false; then :
  3796. $as_echo_n "(cached) " >&6
  3797. else
  3798. if test -n "$OBJDUMP"; then
  3799. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  3800. else
  3801. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3802. for as_dir in $PATH
  3803. do
  3804. IFS=$as_save_IFS
  3805. test -z "$as_dir" && as_dir=.
  3806. for ac_exec_ext in '' $ac_executable_extensions; do
  3807. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3808. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  3809. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3810. break 2
  3811. fi
  3812. done
  3813. done
  3814. IFS=$as_save_IFS
  3815. fi
  3816. fi
  3817. OBJDUMP=$ac_cv_prog_OBJDUMP
  3818. if test -n "$OBJDUMP"; then
  3819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  3820. $as_echo "$OBJDUMP" >&6; }
  3821. else
  3822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3823. $as_echo "no" >&6; }
  3824. fi
  3825. fi
  3826. if test -z "$ac_cv_prog_OBJDUMP"; then
  3827. ac_ct_OBJDUMP=$OBJDUMP
  3828. # Extract the first word of "objdump", so it can be a program name with args.
  3829. set dummy objdump; ac_word=$2
  3830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3831. $as_echo_n "checking for $ac_word... " >&6; }
  3832. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  3833. $as_echo_n "(cached) " >&6
  3834. else
  3835. if test -n "$ac_ct_OBJDUMP"; then
  3836. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  3837. else
  3838. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3839. for as_dir in $PATH
  3840. do
  3841. IFS=$as_save_IFS
  3842. test -z "$as_dir" && as_dir=.
  3843. for ac_exec_ext in '' $ac_executable_extensions; do
  3844. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3845. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  3846. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3847. break 2
  3848. fi
  3849. done
  3850. done
  3851. IFS=$as_save_IFS
  3852. fi
  3853. fi
  3854. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  3855. if test -n "$ac_ct_OBJDUMP"; then
  3856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  3857. $as_echo "$ac_ct_OBJDUMP" >&6; }
  3858. else
  3859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3860. $as_echo "no" >&6; }
  3861. fi
  3862. if test "x$ac_ct_OBJDUMP" = x; then
  3863. OBJDUMP="false"
  3864. else
  3865. case $cross_compiling:$ac_tool_warned in
  3866. yes:)
  3867. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3868. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3869. ac_tool_warned=yes ;;
  3870. esac
  3871. OBJDUMP=$ac_ct_OBJDUMP
  3872. fi
  3873. else
  3874. OBJDUMP="$ac_cv_prog_OBJDUMP"
  3875. fi
  3876. test -z "$OBJDUMP" && OBJDUMP=objdump
  3877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  3878. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  3879. if ${lt_cv_deplibs_check_method+:} false; then :
  3880. $as_echo_n "(cached) " >&6
  3881. else
  3882. lt_cv_file_magic_cmd='$MAGIC_CMD'
  3883. lt_cv_file_magic_test_file=
  3884. lt_cv_deplibs_check_method='unknown'
  3885. # Need to set the preceding variable on all platforms that support
  3886. # interlibrary dependencies.
  3887. # 'none' -- dependencies not supported.
  3888. # 'unknown' -- same as none, but documents that we really don't know.
  3889. # 'pass_all' -- all dependencies passed with no checks.
  3890. # 'test_compile' -- check by making test program.
  3891. # 'file_magic [[regex]]' -- check by looking for files in library path
  3892. # that responds to the $file_magic_cmd with a given extended regex.
  3893. # If you have 'file' or equivalent on your system and you're not sure
  3894. # whether 'pass_all' will *always* work, you probably want this one.
  3895. case $host_os in
  3896. aix[4-9]*)
  3897. lt_cv_deplibs_check_method=pass_all
  3898. ;;
  3899. beos*)
  3900. lt_cv_deplibs_check_method=pass_all
  3901. ;;
  3902. bsdi[45]*)
  3903. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  3904. lt_cv_file_magic_cmd='/usr/bin/file -L'
  3905. lt_cv_file_magic_test_file=/shlib/libc.so
  3906. ;;
  3907. cygwin*)
  3908. # func_win32_libid is a shell function defined in ltmain.sh
  3909. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3910. lt_cv_file_magic_cmd='func_win32_libid'
  3911. ;;
  3912. mingw* | pw32*)
  3913. # Base MSYS/MinGW do not provide the 'file' command needed by
  3914. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  3915. # unless we find 'file', for example because we are cross-compiling.
  3916. if ( file / ) >/dev/null 2>&1; then
  3917. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3918. lt_cv_file_magic_cmd='func_win32_libid'
  3919. else
  3920. # Keep this pattern in sync with the one in func_win32_libid.
  3921. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  3922. lt_cv_file_magic_cmd='$OBJDUMP -f'
  3923. fi
  3924. ;;
  3925. cegcc*)
  3926. # use the weaker test based on 'objdump'. See mingw*.
  3927. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  3928. lt_cv_file_magic_cmd='$OBJDUMP -f'
  3929. ;;
  3930. darwin* | rhapsody*)
  3931. lt_cv_deplibs_check_method=pass_all
  3932. ;;
  3933. freebsd* | dragonfly*)
  3934. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  3935. case $host_cpu in
  3936. i*86 )
  3937. # Not sure whether the presence of OpenBSD here was a mistake.
  3938. # Let's accept both of them until this is cleared up.
  3939. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  3940. lt_cv_file_magic_cmd=/usr/bin/file
  3941. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3942. ;;
  3943. esac
  3944. else
  3945. lt_cv_deplibs_check_method=pass_all
  3946. fi
  3947. ;;
  3948. haiku*)
  3949. lt_cv_deplibs_check_method=pass_all
  3950. ;;
  3951. hpux10.20* | hpux11*)
  3952. lt_cv_file_magic_cmd=/usr/bin/file
  3953. case $host_cpu in
  3954. ia64*)
  3955. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  3956. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  3957. ;;
  3958. hppa*64*)
  3959. 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]'
  3960. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  3961. ;;
  3962. *)
  3963. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  3964. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  3965. ;;
  3966. esac
  3967. ;;
  3968. interix[3-9]*)
  3969. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  3970. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  3971. ;;
  3972. irix5* | irix6* | nonstopux*)
  3973. case $LD in
  3974. *-32|*"-32 ") libmagic=32-bit;;
  3975. *-n32|*"-n32 ") libmagic=N32;;
  3976. *-64|*"-64 ") libmagic=64-bit;;
  3977. *) libmagic=never-match;;
  3978. esac
  3979. lt_cv_deplibs_check_method=pass_all
  3980. ;;
  3981. # This must be glibc/ELF.
  3982. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  3983. lt_cv_deplibs_check_method=pass_all
  3984. ;;
  3985. netbsd* | netbsdelf*-gnu)
  3986. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  3987. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  3988. else
  3989. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  3990. fi
  3991. ;;
  3992. newos6*)
  3993. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  3994. lt_cv_file_magic_cmd=/usr/bin/file
  3995. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  3996. ;;
  3997. *nto* | *qnx*)
  3998. lt_cv_deplibs_check_method=pass_all
  3999. ;;
  4000. openbsd* | bitrig*)
  4001. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  4002. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4003. else
  4004. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4005. fi
  4006. ;;
  4007. osf3* | osf4* | osf5*)
  4008. lt_cv_deplibs_check_method=pass_all
  4009. ;;
  4010. rdos*)
  4011. lt_cv_deplibs_check_method=pass_all
  4012. ;;
  4013. solaris*)
  4014. lt_cv_deplibs_check_method=pass_all
  4015. ;;
  4016. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4017. lt_cv_deplibs_check_method=pass_all
  4018. ;;
  4019. sysv4 | sysv4.3*)
  4020. case $host_vendor in
  4021. motorola)
  4022. 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]'
  4023. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4024. ;;
  4025. ncr)
  4026. lt_cv_deplibs_check_method=pass_all
  4027. ;;
  4028. sequent)
  4029. lt_cv_file_magic_cmd='/bin/file'
  4030. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4031. ;;
  4032. sni)
  4033. lt_cv_file_magic_cmd='/bin/file'
  4034. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4035. lt_cv_file_magic_test_file=/lib/libc.so
  4036. ;;
  4037. siemens)
  4038. lt_cv_deplibs_check_method=pass_all
  4039. ;;
  4040. pc)
  4041. lt_cv_deplibs_check_method=pass_all
  4042. ;;
  4043. esac
  4044. ;;
  4045. tpf*)
  4046. lt_cv_deplibs_check_method=pass_all
  4047. ;;
  4048. os2*)
  4049. lt_cv_deplibs_check_method=pass_all
  4050. ;;
  4051. esac
  4052. fi
  4053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4054. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4055. file_magic_glob=
  4056. want_nocaseglob=no
  4057. if test "$build" = "$host"; then
  4058. case $host_os in
  4059. mingw* | pw32*)
  4060. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4061. want_nocaseglob=yes
  4062. else
  4063. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4064. fi
  4065. ;;
  4066. esac
  4067. fi
  4068. file_magic_cmd=$lt_cv_file_magic_cmd
  4069. deplibs_check_method=$lt_cv_deplibs_check_method
  4070. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4071. if test -n "$ac_tool_prefix"; then
  4072. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4073. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4075. $as_echo_n "checking for $ac_word... " >&6; }
  4076. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4077. $as_echo_n "(cached) " >&6
  4078. else
  4079. if test -n "$DLLTOOL"; then
  4080. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4081. else
  4082. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4083. for as_dir in $PATH
  4084. do
  4085. IFS=$as_save_IFS
  4086. test -z "$as_dir" && as_dir=.
  4087. for ac_exec_ext in '' $ac_executable_extensions; do
  4088. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4089. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4090. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4091. break 2
  4092. fi
  4093. done
  4094. done
  4095. IFS=$as_save_IFS
  4096. fi
  4097. fi
  4098. DLLTOOL=$ac_cv_prog_DLLTOOL
  4099. if test -n "$DLLTOOL"; then
  4100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4101. $as_echo "$DLLTOOL" >&6; }
  4102. else
  4103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4104. $as_echo "no" >&6; }
  4105. fi
  4106. fi
  4107. if test -z "$ac_cv_prog_DLLTOOL"; then
  4108. ac_ct_DLLTOOL=$DLLTOOL
  4109. # Extract the first word of "dlltool", so it can be a program name with args.
  4110. set dummy dlltool; ac_word=$2
  4111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4112. $as_echo_n "checking for $ac_word... " >&6; }
  4113. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4114. $as_echo_n "(cached) " >&6
  4115. else
  4116. if test -n "$ac_ct_DLLTOOL"; then
  4117. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4118. else
  4119. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4120. for as_dir in $PATH
  4121. do
  4122. IFS=$as_save_IFS
  4123. test -z "$as_dir" && as_dir=.
  4124. for ac_exec_ext in '' $ac_executable_extensions; do
  4125. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4126. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4127. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4128. break 2
  4129. fi
  4130. done
  4131. done
  4132. IFS=$as_save_IFS
  4133. fi
  4134. fi
  4135. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4136. if test -n "$ac_ct_DLLTOOL"; then
  4137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4138. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4139. else
  4140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4141. $as_echo "no" >&6; }
  4142. fi
  4143. if test "x$ac_ct_DLLTOOL" = x; then
  4144. DLLTOOL="false"
  4145. else
  4146. case $cross_compiling:$ac_tool_warned in
  4147. yes:)
  4148. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4149. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4150. ac_tool_warned=yes ;;
  4151. esac
  4152. DLLTOOL=$ac_ct_DLLTOOL
  4153. fi
  4154. else
  4155. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4156. fi
  4157. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4159. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4160. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4161. $as_echo_n "(cached) " >&6
  4162. else
  4163. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4164. case $host_os in
  4165. cygwin* | mingw* | pw32* | cegcc*)
  4166. # two different shell functions defined in ltmain.sh;
  4167. # decide which one to use based on capabilities of $DLLTOOL
  4168. case `$DLLTOOL --help 2>&1` in
  4169. *--identify-strict*)
  4170. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4171. ;;
  4172. *)
  4173. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4174. ;;
  4175. esac
  4176. ;;
  4177. *)
  4178. # fallback: assume linklib IS sharedlib
  4179. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  4180. ;;
  4181. esac
  4182. fi
  4183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4184. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4185. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4186. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4187. if test -n "$ac_tool_prefix"; then
  4188. for ac_prog in ar
  4189. do
  4190. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4191. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4193. $as_echo_n "checking for $ac_word... " >&6; }
  4194. if ${ac_cv_prog_AR+:} false; then :
  4195. $as_echo_n "(cached) " >&6
  4196. else
  4197. if test -n "$AR"; then
  4198. ac_cv_prog_AR="$AR" # Let the user override the test.
  4199. else
  4200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4201. for as_dir in $PATH
  4202. do
  4203. IFS=$as_save_IFS
  4204. test -z "$as_dir" && as_dir=.
  4205. for ac_exec_ext in '' $ac_executable_extensions; do
  4206. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4207. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4208. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4209. break 2
  4210. fi
  4211. done
  4212. done
  4213. IFS=$as_save_IFS
  4214. fi
  4215. fi
  4216. AR=$ac_cv_prog_AR
  4217. if test -n "$AR"; then
  4218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4219. $as_echo "$AR" >&6; }
  4220. else
  4221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4222. $as_echo "no" >&6; }
  4223. fi
  4224. test -n "$AR" && break
  4225. done
  4226. fi
  4227. if test -z "$AR"; then
  4228. ac_ct_AR=$AR
  4229. for ac_prog in ar
  4230. do
  4231. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4232. set dummy $ac_prog; ac_word=$2
  4233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4234. $as_echo_n "checking for $ac_word... " >&6; }
  4235. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4236. $as_echo_n "(cached) " >&6
  4237. else
  4238. if test -n "$ac_ct_AR"; then
  4239. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4240. else
  4241. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4242. for as_dir in $PATH
  4243. do
  4244. IFS=$as_save_IFS
  4245. test -z "$as_dir" && as_dir=.
  4246. for ac_exec_ext in '' $ac_executable_extensions; do
  4247. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4248. ac_cv_prog_ac_ct_AR="$ac_prog"
  4249. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4250. break 2
  4251. fi
  4252. done
  4253. done
  4254. IFS=$as_save_IFS
  4255. fi
  4256. fi
  4257. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4258. if test -n "$ac_ct_AR"; then
  4259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4260. $as_echo "$ac_ct_AR" >&6; }
  4261. else
  4262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4263. $as_echo "no" >&6; }
  4264. fi
  4265. test -n "$ac_ct_AR" && break
  4266. done
  4267. if test "x$ac_ct_AR" = x; then
  4268. AR="false"
  4269. else
  4270. case $cross_compiling:$ac_tool_warned in
  4271. yes:)
  4272. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4273. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4274. ac_tool_warned=yes ;;
  4275. esac
  4276. AR=$ac_ct_AR
  4277. fi
  4278. fi
  4279. : ${AR=ar}
  4280. : ${AR_FLAGS=cru}
  4281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4282. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4283. if ${lt_cv_ar_at_file+:} false; then :
  4284. $as_echo_n "(cached) " >&6
  4285. else
  4286. lt_cv_ar_at_file=no
  4287. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4288. /* end confdefs.h. */
  4289. int
  4290. main ()
  4291. {
  4292. ;
  4293. return 0;
  4294. }
  4295. _ACEOF
  4296. if ac_fn_c_try_compile "$LINENO"; then :
  4297. echo conftest.$ac_objext > conftest.lst
  4298. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4299. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4300. (eval $lt_ar_try) 2>&5
  4301. ac_status=$?
  4302. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4303. test $ac_status = 0; }
  4304. if test 0 -eq "$ac_status"; then
  4305. # Ensure the archiver fails upon bogus file names.
  4306. rm -f conftest.$ac_objext libconftest.a
  4307. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4308. (eval $lt_ar_try) 2>&5
  4309. ac_status=$?
  4310. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4311. test $ac_status = 0; }
  4312. if test 0 -ne "$ac_status"; then
  4313. lt_cv_ar_at_file=@
  4314. fi
  4315. fi
  4316. rm -f conftest.* libconftest.a
  4317. fi
  4318. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4319. fi
  4320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4321. $as_echo "$lt_cv_ar_at_file" >&6; }
  4322. if test no = "$lt_cv_ar_at_file"; then
  4323. archiver_list_spec=
  4324. else
  4325. archiver_list_spec=$lt_cv_ar_at_file
  4326. fi
  4327. if test -n "$ac_tool_prefix"; then
  4328. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4329. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4331. $as_echo_n "checking for $ac_word... " >&6; }
  4332. if ${ac_cv_prog_STRIP+:} false; then :
  4333. $as_echo_n "(cached) " >&6
  4334. else
  4335. if test -n "$STRIP"; then
  4336. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4337. else
  4338. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4339. for as_dir in $PATH
  4340. do
  4341. IFS=$as_save_IFS
  4342. test -z "$as_dir" && as_dir=.
  4343. for ac_exec_ext in '' $ac_executable_extensions; do
  4344. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4345. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4346. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4347. break 2
  4348. fi
  4349. done
  4350. done
  4351. IFS=$as_save_IFS
  4352. fi
  4353. fi
  4354. STRIP=$ac_cv_prog_STRIP
  4355. if test -n "$STRIP"; then
  4356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4357. $as_echo "$STRIP" >&6; }
  4358. else
  4359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4360. $as_echo "no" >&6; }
  4361. fi
  4362. fi
  4363. if test -z "$ac_cv_prog_STRIP"; then
  4364. ac_ct_STRIP=$STRIP
  4365. # Extract the first word of "strip", so it can be a program name with args.
  4366. set dummy strip; ac_word=$2
  4367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4368. $as_echo_n "checking for $ac_word... " >&6; }
  4369. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4370. $as_echo_n "(cached) " >&6
  4371. else
  4372. if test -n "$ac_ct_STRIP"; then
  4373. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4374. else
  4375. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4376. for as_dir in $PATH
  4377. do
  4378. IFS=$as_save_IFS
  4379. test -z "$as_dir" && as_dir=.
  4380. for ac_exec_ext in '' $ac_executable_extensions; do
  4381. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4382. ac_cv_prog_ac_ct_STRIP="strip"
  4383. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4384. break 2
  4385. fi
  4386. done
  4387. done
  4388. IFS=$as_save_IFS
  4389. fi
  4390. fi
  4391. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4392. if test -n "$ac_ct_STRIP"; then
  4393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4394. $as_echo "$ac_ct_STRIP" >&6; }
  4395. else
  4396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4397. $as_echo "no" >&6; }
  4398. fi
  4399. if test "x$ac_ct_STRIP" = x; then
  4400. STRIP=":"
  4401. else
  4402. case $cross_compiling:$ac_tool_warned in
  4403. yes:)
  4404. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4405. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4406. ac_tool_warned=yes ;;
  4407. esac
  4408. STRIP=$ac_ct_STRIP
  4409. fi
  4410. else
  4411. STRIP="$ac_cv_prog_STRIP"
  4412. fi
  4413. test -z "$STRIP" && STRIP=:
  4414. if test -n "$ac_tool_prefix"; then
  4415. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4416. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4418. $as_echo_n "checking for $ac_word... " >&6; }
  4419. if ${ac_cv_prog_RANLIB+:} false; then :
  4420. $as_echo_n "(cached) " >&6
  4421. else
  4422. if test -n "$RANLIB"; then
  4423. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4424. else
  4425. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4426. for as_dir in $PATH
  4427. do
  4428. IFS=$as_save_IFS
  4429. test -z "$as_dir" && as_dir=.
  4430. for ac_exec_ext in '' $ac_executable_extensions; do
  4431. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4432. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4433. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4434. break 2
  4435. fi
  4436. done
  4437. done
  4438. IFS=$as_save_IFS
  4439. fi
  4440. fi
  4441. RANLIB=$ac_cv_prog_RANLIB
  4442. if test -n "$RANLIB"; then
  4443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4444. $as_echo "$RANLIB" >&6; }
  4445. else
  4446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4447. $as_echo "no" >&6; }
  4448. fi
  4449. fi
  4450. if test -z "$ac_cv_prog_RANLIB"; then
  4451. ac_ct_RANLIB=$RANLIB
  4452. # Extract the first word of "ranlib", so it can be a program name with args.
  4453. set dummy ranlib; ac_word=$2
  4454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4455. $as_echo_n "checking for $ac_word... " >&6; }
  4456. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4457. $as_echo_n "(cached) " >&6
  4458. else
  4459. if test -n "$ac_ct_RANLIB"; then
  4460. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4461. else
  4462. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4463. for as_dir in $PATH
  4464. do
  4465. IFS=$as_save_IFS
  4466. test -z "$as_dir" && as_dir=.
  4467. for ac_exec_ext in '' $ac_executable_extensions; do
  4468. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4469. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4470. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4471. break 2
  4472. fi
  4473. done
  4474. done
  4475. IFS=$as_save_IFS
  4476. fi
  4477. fi
  4478. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4479. if test -n "$ac_ct_RANLIB"; then
  4480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4481. $as_echo "$ac_ct_RANLIB" >&6; }
  4482. else
  4483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4484. $as_echo "no" >&6; }
  4485. fi
  4486. if test "x$ac_ct_RANLIB" = x; then
  4487. RANLIB=":"
  4488. else
  4489. case $cross_compiling:$ac_tool_warned in
  4490. yes:)
  4491. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4492. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4493. ac_tool_warned=yes ;;
  4494. esac
  4495. RANLIB=$ac_ct_RANLIB
  4496. fi
  4497. else
  4498. RANLIB="$ac_cv_prog_RANLIB"
  4499. fi
  4500. test -z "$RANLIB" && RANLIB=:
  4501. # Determine commands to create old-style static archives.
  4502. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4503. old_postinstall_cmds='chmod 644 $oldlib'
  4504. old_postuninstall_cmds=
  4505. if test -n "$RANLIB"; then
  4506. case $host_os in
  4507. bitrig* | openbsd*)
  4508. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  4509. ;;
  4510. *)
  4511. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  4512. ;;
  4513. esac
  4514. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  4515. fi
  4516. case $host_os in
  4517. darwin*)
  4518. lock_old_archive_extraction=yes ;;
  4519. *)
  4520. lock_old_archive_extraction=no ;;
  4521. esac
  4522. for ac_prog in gawk mawk nawk awk
  4523. do
  4524. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4525. set dummy $ac_prog; ac_word=$2
  4526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4527. $as_echo_n "checking for $ac_word... " >&6; }
  4528. if ${ac_cv_prog_AWK+:} false; then :
  4529. $as_echo_n "(cached) " >&6
  4530. else
  4531. if test -n "$AWK"; then
  4532. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4533. else
  4534. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4535. for as_dir in $PATH
  4536. do
  4537. IFS=$as_save_IFS
  4538. test -z "$as_dir" && as_dir=.
  4539. for ac_exec_ext in '' $ac_executable_extensions; do
  4540. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4541. ac_cv_prog_AWK="$ac_prog"
  4542. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4543. break 2
  4544. fi
  4545. done
  4546. done
  4547. IFS=$as_save_IFS
  4548. fi
  4549. fi
  4550. AWK=$ac_cv_prog_AWK
  4551. if test -n "$AWK"; then
  4552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4553. $as_echo "$AWK" >&6; }
  4554. else
  4555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4556. $as_echo "no" >&6; }
  4557. fi
  4558. test -n "$AWK" && break
  4559. done
  4560. # If no C compiler was specified, use CC.
  4561. LTCC=${LTCC-"$CC"}
  4562. # If no C compiler flags were specified, use CFLAGS.
  4563. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4564. # Allow CC to be a program name with arguments.
  4565. compiler=$CC
  4566. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  4568. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  4569. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  4570. $as_echo_n "(cached) " >&6
  4571. else
  4572. # These are sane defaults that work on at least a few old systems.
  4573. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4574. # Character class describing NM global symbol codes.
  4575. symcode='[BCDEGRST]'
  4576. # Regexp to match symbols that can be accessed directly from C.
  4577. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4578. # Define system-specific variables.
  4579. case $host_os in
  4580. aix*)
  4581. symcode='[BCDT]'
  4582. ;;
  4583. cygwin* | mingw* | pw32* | cegcc*)
  4584. symcode='[ABCDGISTW]'
  4585. ;;
  4586. hpux*)
  4587. if test ia64 = "$host_cpu"; then
  4588. symcode='[ABCDEGRST]'
  4589. fi
  4590. ;;
  4591. irix* | nonstopux*)
  4592. symcode='[BCDEGRST]'
  4593. ;;
  4594. osf*)
  4595. symcode='[BCDEGQRST]'
  4596. ;;
  4597. solaris*)
  4598. symcode='[BDRT]'
  4599. ;;
  4600. sco3.2v5*)
  4601. symcode='[DT]'
  4602. ;;
  4603. sysv4.2uw2*)
  4604. symcode='[DT]'
  4605. ;;
  4606. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4607. symcode='[ABDT]'
  4608. ;;
  4609. sysv4)
  4610. symcode='[DFNSTU]'
  4611. ;;
  4612. esac
  4613. # If we're using GNU nm, then use its standard symbol codes.
  4614. case `$NM -V 2>&1` in
  4615. *GNU* | *'with BFD'*)
  4616. symcode='[ABCDGIRSTW]' ;;
  4617. esac
  4618. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  4619. # Gets list of data symbols to import.
  4620. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  4621. # Adjust the below global symbol transforms to fixup imported variables.
  4622. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  4623. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  4624. lt_c_name_lib_hook="\
  4625. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  4626. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  4627. else
  4628. # Disable hooks by default.
  4629. lt_cv_sys_global_symbol_to_import=
  4630. lt_cdecl_hook=
  4631. lt_c_name_hook=
  4632. lt_c_name_lib_hook=
  4633. fi
  4634. # Transform an extracted symbol line into a proper C declaration.
  4635. # Some systems (esp. on ia64) link data and code symbols differently,
  4636. # so use this general approach.
  4637. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  4638. $lt_cdecl_hook\
  4639. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  4640. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  4641. # Transform an extracted symbol line into symbol name and symbol address
  4642. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  4643. $lt_c_name_hook\
  4644. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  4645. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  4646. # Transform an extracted symbol line into symbol name with lib prefix and
  4647. # symbol address.
  4648. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  4649. $lt_c_name_lib_hook\
  4650. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  4651. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  4652. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  4653. # Handle CRLF in mingw tool chain
  4654. opt_cr=
  4655. case $build_os in
  4656. mingw*)
  4657. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4658. ;;
  4659. esac
  4660. # Try without a prefix underscore, then with it.
  4661. for ac_symprfx in "" "_"; do
  4662. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4663. symxfrm="\\1 $ac_symprfx\\2 \\2"
  4664. # Write the raw and C identifiers.
  4665. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  4666. # Fake it for dumpbin and say T for any non-static function,
  4667. # D for any global variable and I for any imported variable.
  4668. # Also find C++ and __fastcall symbols from MSVC++,
  4669. # which start with @ or ?.
  4670. lt_cv_sys_global_symbol_pipe="$AWK '"\
  4671. " {last_section=section; section=\$ 3};"\
  4672. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  4673. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  4674. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  4675. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  4676. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  4677. " \$ 0!~/External *\|/{next};"\
  4678. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  4679. " {if(hide[section]) next};"\
  4680. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  4681. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  4682. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  4683. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  4684. " ' prfx=^$ac_symprfx"
  4685. else
  4686. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  4687. fi
  4688. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  4689. # Check to see that the pipe works correctly.
  4690. pipe_works=no
  4691. rm -f conftest*
  4692. cat > conftest.$ac_ext <<_LT_EOF
  4693. #ifdef __cplusplus
  4694. extern "C" {
  4695. #endif
  4696. char nm_test_var;
  4697. void nm_test_func(void);
  4698. void nm_test_func(void){}
  4699. #ifdef __cplusplus
  4700. }
  4701. #endif
  4702. int main(){nm_test_var='a';nm_test_func();return(0);}
  4703. _LT_EOF
  4704. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  4705. (eval $ac_compile) 2>&5
  4706. ac_status=$?
  4707. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4708. test $ac_status = 0; }; then
  4709. # Now try to grab the symbols.
  4710. nlist=conftest.nm
  4711. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  4712. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  4713. ac_status=$?
  4714. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4715. test $ac_status = 0; } && test -s "$nlist"; then
  4716. # Try sorting and uniquifying the output.
  4717. if sort "$nlist" | uniq > "$nlist"T; then
  4718. mv -f "$nlist"T "$nlist"
  4719. else
  4720. rm -f "$nlist"T
  4721. fi
  4722. # Make sure that we snagged all the symbols we need.
  4723. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  4724. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  4725. cat <<_LT_EOF > conftest.$ac_ext
  4726. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  4727. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  4728. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  4729. relocations are performed -- see ld's documentation on pseudo-relocs. */
  4730. # define LT_DLSYM_CONST
  4731. #elif defined __osf__
  4732. /* This system does not cope well with relocations in const data. */
  4733. # define LT_DLSYM_CONST
  4734. #else
  4735. # define LT_DLSYM_CONST const
  4736. #endif
  4737. #ifdef __cplusplus
  4738. extern "C" {
  4739. #endif
  4740. _LT_EOF
  4741. # Now generate the symbol file.
  4742. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  4743. cat <<_LT_EOF >> conftest.$ac_ext
  4744. /* The mapping between symbol names and symbols. */
  4745. LT_DLSYM_CONST struct {
  4746. const char *name;
  4747. void *address;
  4748. }
  4749. lt__PROGRAM__LTX_preloaded_symbols[] =
  4750. {
  4751. { "@PROGRAM@", (void *) 0 },
  4752. _LT_EOF
  4753. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  4754. cat <<\_LT_EOF >> conftest.$ac_ext
  4755. {0, (void *) 0}
  4756. };
  4757. /* This works around a problem in FreeBSD linker */
  4758. #ifdef FREEBSD_WORKAROUND
  4759. static const void *lt_preloaded_setup() {
  4760. return lt__PROGRAM__LTX_preloaded_symbols;
  4761. }
  4762. #endif
  4763. #ifdef __cplusplus
  4764. }
  4765. #endif
  4766. _LT_EOF
  4767. # Now try linking the two files.
  4768. mv conftest.$ac_objext conftstm.$ac_objext
  4769. lt_globsym_save_LIBS=$LIBS
  4770. lt_globsym_save_CFLAGS=$CFLAGS
  4771. LIBS=conftstm.$ac_objext
  4772. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  4773. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  4774. (eval $ac_link) 2>&5
  4775. ac_status=$?
  4776. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4777. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  4778. pipe_works=yes
  4779. fi
  4780. LIBS=$lt_globsym_save_LIBS
  4781. CFLAGS=$lt_globsym_save_CFLAGS
  4782. else
  4783. echo "cannot find nm_test_func in $nlist" >&5
  4784. fi
  4785. else
  4786. echo "cannot find nm_test_var in $nlist" >&5
  4787. fi
  4788. else
  4789. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  4790. fi
  4791. else
  4792. echo "$progname: failed program was:" >&5
  4793. cat conftest.$ac_ext >&5
  4794. fi
  4795. rm -rf conftest* conftst*
  4796. # Do not use the global_symbol_pipe unless it works.
  4797. if test yes = "$pipe_works"; then
  4798. break
  4799. else
  4800. lt_cv_sys_global_symbol_pipe=
  4801. fi
  4802. done
  4803. fi
  4804. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  4805. lt_cv_sys_global_symbol_to_cdecl=
  4806. fi
  4807. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  4808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  4809. $as_echo "failed" >&6; }
  4810. else
  4811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  4812. $as_echo "ok" >&6; }
  4813. fi
  4814. # Response file support.
  4815. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  4816. nm_file_list_spec='@'
  4817. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  4818. nm_file_list_spec='@'
  4819. fi
  4820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  4821. $as_echo_n "checking for sysroot... " >&6; }
  4822. # Check whether --with-sysroot was given.
  4823. if test "${with_sysroot+set}" = set; then :
  4824. withval=$with_sysroot;
  4825. else
  4826. with_sysroot=no
  4827. fi
  4828. lt_sysroot=
  4829. case $with_sysroot in #(
  4830. yes)
  4831. if test yes = "$GCC"; then
  4832. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  4833. fi
  4834. ;; #(
  4835. /*)
  4836. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  4837. ;; #(
  4838. no|'')
  4839. ;; #(
  4840. *)
  4841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  4842. $as_echo "$with_sysroot" >&6; }
  4843. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  4844. ;;
  4845. esac
  4846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  4847. $as_echo "${lt_sysroot:-no}" >&6; }
  4848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  4849. $as_echo_n "checking for a working dd... " >&6; }
  4850. if ${ac_cv_path_lt_DD+:} false; then :
  4851. $as_echo_n "(cached) " >&6
  4852. else
  4853. printf 0123456789abcdef0123456789abcdef >conftest.i
  4854. cat conftest.i conftest.i >conftest2.i
  4855. : ${lt_DD:=$DD}
  4856. if test -z "$lt_DD"; then
  4857. ac_path_lt_DD_found=false
  4858. # Loop through the user's path and test for each of PROGNAME-LIST
  4859. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4860. for as_dir in $PATH
  4861. do
  4862. IFS=$as_save_IFS
  4863. test -z "$as_dir" && as_dir=.
  4864. for ac_prog in dd; do
  4865. for ac_exec_ext in '' $ac_executable_extensions; do
  4866. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  4867. as_fn_executable_p "$ac_path_lt_DD" || continue
  4868. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  4869. cmp -s conftest.i conftest.out \
  4870. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  4871. fi
  4872. $ac_path_lt_DD_found && break 3
  4873. done
  4874. done
  4875. done
  4876. IFS=$as_save_IFS
  4877. if test -z "$ac_cv_path_lt_DD"; then
  4878. :
  4879. fi
  4880. else
  4881. ac_cv_path_lt_DD=$lt_DD
  4882. fi
  4883. rm -f conftest.i conftest2.i conftest.out
  4884. fi
  4885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  4886. $as_echo "$ac_cv_path_lt_DD" >&6; }
  4887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  4888. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  4889. if ${lt_cv_truncate_bin+:} false; then :
  4890. $as_echo_n "(cached) " >&6
  4891. else
  4892. printf 0123456789abcdef0123456789abcdef >conftest.i
  4893. cat conftest.i conftest.i >conftest2.i
  4894. lt_cv_truncate_bin=
  4895. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  4896. cmp -s conftest.i conftest.out \
  4897. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  4898. fi
  4899. rm -f conftest.i conftest2.i conftest.out
  4900. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  4901. fi
  4902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  4903. $as_echo "$lt_cv_truncate_bin" >&6; }
  4904. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  4905. func_cc_basename ()
  4906. {
  4907. for cc_temp in $*""; do
  4908. case $cc_temp in
  4909. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  4910. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  4911. \-*) ;;
  4912. *) break;;
  4913. esac
  4914. done
  4915. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  4916. }
  4917. # Check whether --enable-libtool-lock was given.
  4918. if test "${enable_libtool_lock+set}" = set; then :
  4919. enableval=$enable_libtool_lock;
  4920. fi
  4921. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  4922. # Some flags need to be propagated to the compiler or linker for good
  4923. # libtool support.
  4924. case $host in
  4925. ia64-*-hpux*)
  4926. # Find out what ABI is being produced by ac_compile, and set mode
  4927. # options accordingly.
  4928. echo 'int i;' > conftest.$ac_ext
  4929. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  4930. (eval $ac_compile) 2>&5
  4931. ac_status=$?
  4932. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4933. test $ac_status = 0; }; then
  4934. case `/usr/bin/file conftest.$ac_objext` in
  4935. *ELF-32*)
  4936. HPUX_IA64_MODE=32
  4937. ;;
  4938. *ELF-64*)
  4939. HPUX_IA64_MODE=64
  4940. ;;
  4941. esac
  4942. fi
  4943. rm -rf conftest*
  4944. ;;
  4945. *-*-irix6*)
  4946. # Find out what ABI is being produced by ac_compile, and set linker
  4947. # options accordingly.
  4948. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  4949. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  4950. (eval $ac_compile) 2>&5
  4951. ac_status=$?
  4952. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4953. test $ac_status = 0; }; then
  4954. if test yes = "$lt_cv_prog_gnu_ld"; then
  4955. case `/usr/bin/file conftest.$ac_objext` in
  4956. *32-bit*)
  4957. LD="${LD-ld} -melf32bsmip"
  4958. ;;
  4959. *N32*)
  4960. LD="${LD-ld} -melf32bmipn32"
  4961. ;;
  4962. *64-bit*)
  4963. LD="${LD-ld} -melf64bmip"
  4964. ;;
  4965. esac
  4966. else
  4967. case `/usr/bin/file conftest.$ac_objext` in
  4968. *32-bit*)
  4969. LD="${LD-ld} -32"
  4970. ;;
  4971. *N32*)
  4972. LD="${LD-ld} -n32"
  4973. ;;
  4974. *64-bit*)
  4975. LD="${LD-ld} -64"
  4976. ;;
  4977. esac
  4978. fi
  4979. fi
  4980. rm -rf conftest*
  4981. ;;
  4982. mips64*-*linux*)
  4983. # Find out what ABI is being produced by ac_compile, and set linker
  4984. # options accordingly.
  4985. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  4986. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  4987. (eval $ac_compile) 2>&5
  4988. ac_status=$?
  4989. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4990. test $ac_status = 0; }; then
  4991. emul=elf
  4992. case `/usr/bin/file conftest.$ac_objext` in
  4993. *32-bit*)
  4994. emul="${emul}32"
  4995. ;;
  4996. *64-bit*)
  4997. emul="${emul}64"
  4998. ;;
  4999. esac
  5000. case `/usr/bin/file conftest.$ac_objext` in
  5001. *MSB*)
  5002. emul="${emul}btsmip"
  5003. ;;
  5004. *LSB*)
  5005. emul="${emul}ltsmip"
  5006. ;;
  5007. esac
  5008. case `/usr/bin/file conftest.$ac_objext` in
  5009. *N32*)
  5010. emul="${emul}n32"
  5011. ;;
  5012. esac
  5013. LD="${LD-ld} -m $emul"
  5014. fi
  5015. rm -rf conftest*
  5016. ;;
  5017. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5018. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5019. # Find out what ABI is being produced by ac_compile, and set linker
  5020. # options accordingly. Note that the listed cases only cover the
  5021. # situations where additional linker options are needed (such as when
  5022. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  5023. # vice versa); the common cases where no linker options are needed do
  5024. # not appear in the list.
  5025. echo 'int i;' > conftest.$ac_ext
  5026. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5027. (eval $ac_compile) 2>&5
  5028. ac_status=$?
  5029. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5030. test $ac_status = 0; }; then
  5031. case `/usr/bin/file conftest.o` in
  5032. *32-bit*)
  5033. case $host in
  5034. x86_64-*kfreebsd*-gnu)
  5035. LD="${LD-ld} -m elf_i386_fbsd"
  5036. ;;
  5037. x86_64-*linux*)
  5038. case `/usr/bin/file conftest.o` in
  5039. *x86-64*)
  5040. LD="${LD-ld} -m elf32_x86_64"
  5041. ;;
  5042. *)
  5043. LD="${LD-ld} -m elf_i386"
  5044. ;;
  5045. esac
  5046. ;;
  5047. powerpc64le-*linux*)
  5048. LD="${LD-ld} -m elf32lppclinux"
  5049. ;;
  5050. powerpc64-*linux*)
  5051. LD="${LD-ld} -m elf32ppclinux"
  5052. ;;
  5053. s390x-*linux*)
  5054. LD="${LD-ld} -m elf_s390"
  5055. ;;
  5056. sparc64-*linux*)
  5057. LD="${LD-ld} -m elf32_sparc"
  5058. ;;
  5059. esac
  5060. ;;
  5061. *64-bit*)
  5062. case $host in
  5063. x86_64-*kfreebsd*-gnu)
  5064. LD="${LD-ld} -m elf_x86_64_fbsd"
  5065. ;;
  5066. x86_64-*linux*)
  5067. LD="${LD-ld} -m elf_x86_64"
  5068. ;;
  5069. powerpcle-*linux*)
  5070. LD="${LD-ld} -m elf64lppc"
  5071. ;;
  5072. powerpc-*linux*)
  5073. LD="${LD-ld} -m elf64ppc"
  5074. ;;
  5075. s390*-*linux*|s390*-*tpf*)
  5076. LD="${LD-ld} -m elf64_s390"
  5077. ;;
  5078. sparc*-*linux*)
  5079. LD="${LD-ld} -m elf64_sparc"
  5080. ;;
  5081. esac
  5082. ;;
  5083. esac
  5084. fi
  5085. rm -rf conftest*
  5086. ;;
  5087. *-*-sco3.2v5*)
  5088. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5089. SAVE_CFLAGS=$CFLAGS
  5090. CFLAGS="$CFLAGS -belf"
  5091. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5092. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5093. if ${lt_cv_cc_needs_belf+:} false; then :
  5094. $as_echo_n "(cached) " >&6
  5095. else
  5096. ac_ext=c
  5097. ac_cpp='$CPP $CPPFLAGS'
  5098. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5099. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5100. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5101. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5102. /* end confdefs.h. */
  5103. int
  5104. main ()
  5105. {
  5106. ;
  5107. return 0;
  5108. }
  5109. _ACEOF
  5110. if ac_fn_c_try_link "$LINENO"; then :
  5111. lt_cv_cc_needs_belf=yes
  5112. else
  5113. lt_cv_cc_needs_belf=no
  5114. fi
  5115. rm -f core conftest.err conftest.$ac_objext \
  5116. conftest$ac_exeext conftest.$ac_ext
  5117. ac_ext=c
  5118. ac_cpp='$CPP $CPPFLAGS'
  5119. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5120. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5121. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5122. fi
  5123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5124. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5125. if test yes != "$lt_cv_cc_needs_belf"; then
  5126. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5127. CFLAGS=$SAVE_CFLAGS
  5128. fi
  5129. ;;
  5130. *-*solaris*)
  5131. # Find out what ABI is being produced by ac_compile, and set linker
  5132. # options accordingly.
  5133. echo 'int i;' > conftest.$ac_ext
  5134. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5135. (eval $ac_compile) 2>&5
  5136. ac_status=$?
  5137. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5138. test $ac_status = 0; }; then
  5139. case `/usr/bin/file conftest.o` in
  5140. *64-bit*)
  5141. case $lt_cv_prog_gnu_ld in
  5142. yes*)
  5143. case $host in
  5144. i?86-*-solaris*|x86_64-*-solaris*)
  5145. LD="${LD-ld} -m elf_x86_64"
  5146. ;;
  5147. sparc*-*-solaris*)
  5148. LD="${LD-ld} -m elf64_sparc"
  5149. ;;
  5150. esac
  5151. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5152. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5153. LD=${LD-ld}_sol2
  5154. fi
  5155. ;;
  5156. *)
  5157. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5158. LD="${LD-ld} -64"
  5159. fi
  5160. ;;
  5161. esac
  5162. ;;
  5163. esac
  5164. fi
  5165. rm -rf conftest*
  5166. ;;
  5167. esac
  5168. need_locks=$enable_libtool_lock
  5169. if test -n "$ac_tool_prefix"; then
  5170. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5171. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5173. $as_echo_n "checking for $ac_word... " >&6; }
  5174. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5175. $as_echo_n "(cached) " >&6
  5176. else
  5177. if test -n "$MANIFEST_TOOL"; then
  5178. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5179. else
  5180. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5181. for as_dir in $PATH
  5182. do
  5183. IFS=$as_save_IFS
  5184. test -z "$as_dir" && as_dir=.
  5185. for ac_exec_ext in '' $ac_executable_extensions; do
  5186. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5187. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5188. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5189. break 2
  5190. fi
  5191. done
  5192. done
  5193. IFS=$as_save_IFS
  5194. fi
  5195. fi
  5196. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5197. if test -n "$MANIFEST_TOOL"; then
  5198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5199. $as_echo "$MANIFEST_TOOL" >&6; }
  5200. else
  5201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5202. $as_echo "no" >&6; }
  5203. fi
  5204. fi
  5205. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5206. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5207. # Extract the first word of "mt", so it can be a program name with args.
  5208. set dummy mt; ac_word=$2
  5209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5210. $as_echo_n "checking for $ac_word... " >&6; }
  5211. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5212. $as_echo_n "(cached) " >&6
  5213. else
  5214. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5215. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5216. else
  5217. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5218. for as_dir in $PATH
  5219. do
  5220. IFS=$as_save_IFS
  5221. test -z "$as_dir" && as_dir=.
  5222. for ac_exec_ext in '' $ac_executable_extensions; do
  5223. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5224. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5225. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5226. break 2
  5227. fi
  5228. done
  5229. done
  5230. IFS=$as_save_IFS
  5231. fi
  5232. fi
  5233. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5234. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5236. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5237. else
  5238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5239. $as_echo "no" >&6; }
  5240. fi
  5241. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5242. MANIFEST_TOOL=":"
  5243. else
  5244. case $cross_compiling:$ac_tool_warned in
  5245. yes:)
  5246. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5247. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5248. ac_tool_warned=yes ;;
  5249. esac
  5250. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5251. fi
  5252. else
  5253. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5254. fi
  5255. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5257. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5258. if ${lt_cv_path_mainfest_tool+:} false; then :
  5259. $as_echo_n "(cached) " >&6
  5260. else
  5261. lt_cv_path_mainfest_tool=no
  5262. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5263. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5264. cat conftest.err >&5
  5265. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5266. lt_cv_path_mainfest_tool=yes
  5267. fi
  5268. rm -f conftest*
  5269. fi
  5270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5271. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5272. if test yes != "$lt_cv_path_mainfest_tool"; then
  5273. MANIFEST_TOOL=:
  5274. fi
  5275. case $host_os in
  5276. rhapsody* | darwin*)
  5277. if test -n "$ac_tool_prefix"; then
  5278. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5279. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5281. $as_echo_n "checking for $ac_word... " >&6; }
  5282. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5283. $as_echo_n "(cached) " >&6
  5284. else
  5285. if test -n "$DSYMUTIL"; then
  5286. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5287. else
  5288. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5289. for as_dir in $PATH
  5290. do
  5291. IFS=$as_save_IFS
  5292. test -z "$as_dir" && as_dir=.
  5293. for ac_exec_ext in '' $ac_executable_extensions; do
  5294. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5295. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5296. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5297. break 2
  5298. fi
  5299. done
  5300. done
  5301. IFS=$as_save_IFS
  5302. fi
  5303. fi
  5304. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5305. if test -n "$DSYMUTIL"; then
  5306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5307. $as_echo "$DSYMUTIL" >&6; }
  5308. else
  5309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5310. $as_echo "no" >&6; }
  5311. fi
  5312. fi
  5313. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5314. ac_ct_DSYMUTIL=$DSYMUTIL
  5315. # Extract the first word of "dsymutil", so it can be a program name with args.
  5316. set dummy dsymutil; ac_word=$2
  5317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5318. $as_echo_n "checking for $ac_word... " >&6; }
  5319. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5320. $as_echo_n "(cached) " >&6
  5321. else
  5322. if test -n "$ac_ct_DSYMUTIL"; then
  5323. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5324. else
  5325. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5326. for as_dir in $PATH
  5327. do
  5328. IFS=$as_save_IFS
  5329. test -z "$as_dir" && as_dir=.
  5330. for ac_exec_ext in '' $ac_executable_extensions; do
  5331. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5332. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5333. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5334. break 2
  5335. fi
  5336. done
  5337. done
  5338. IFS=$as_save_IFS
  5339. fi
  5340. fi
  5341. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5342. if test -n "$ac_ct_DSYMUTIL"; then
  5343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5344. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5345. else
  5346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5347. $as_echo "no" >&6; }
  5348. fi
  5349. if test "x$ac_ct_DSYMUTIL" = x; then
  5350. DSYMUTIL=":"
  5351. else
  5352. case $cross_compiling:$ac_tool_warned in
  5353. yes:)
  5354. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5355. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5356. ac_tool_warned=yes ;;
  5357. esac
  5358. DSYMUTIL=$ac_ct_DSYMUTIL
  5359. fi
  5360. else
  5361. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5362. fi
  5363. if test -n "$ac_tool_prefix"; then
  5364. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5365. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5367. $as_echo_n "checking for $ac_word... " >&6; }
  5368. if ${ac_cv_prog_NMEDIT+:} false; then :
  5369. $as_echo_n "(cached) " >&6
  5370. else
  5371. if test -n "$NMEDIT"; then
  5372. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5373. else
  5374. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5375. for as_dir in $PATH
  5376. do
  5377. IFS=$as_save_IFS
  5378. test -z "$as_dir" && as_dir=.
  5379. for ac_exec_ext in '' $ac_executable_extensions; do
  5380. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5381. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5382. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5383. break 2
  5384. fi
  5385. done
  5386. done
  5387. IFS=$as_save_IFS
  5388. fi
  5389. fi
  5390. NMEDIT=$ac_cv_prog_NMEDIT
  5391. if test -n "$NMEDIT"; then
  5392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5393. $as_echo "$NMEDIT" >&6; }
  5394. else
  5395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5396. $as_echo "no" >&6; }
  5397. fi
  5398. fi
  5399. if test -z "$ac_cv_prog_NMEDIT"; then
  5400. ac_ct_NMEDIT=$NMEDIT
  5401. # Extract the first word of "nmedit", so it can be a program name with args.
  5402. set dummy nmedit; ac_word=$2
  5403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5404. $as_echo_n "checking for $ac_word... " >&6; }
  5405. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5406. $as_echo_n "(cached) " >&6
  5407. else
  5408. if test -n "$ac_ct_NMEDIT"; then
  5409. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5410. else
  5411. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5412. for as_dir in $PATH
  5413. do
  5414. IFS=$as_save_IFS
  5415. test -z "$as_dir" && as_dir=.
  5416. for ac_exec_ext in '' $ac_executable_extensions; do
  5417. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5418. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5419. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5420. break 2
  5421. fi
  5422. done
  5423. done
  5424. IFS=$as_save_IFS
  5425. fi
  5426. fi
  5427. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5428. if test -n "$ac_ct_NMEDIT"; then
  5429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5430. $as_echo "$ac_ct_NMEDIT" >&6; }
  5431. else
  5432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5433. $as_echo "no" >&6; }
  5434. fi
  5435. if test "x$ac_ct_NMEDIT" = x; then
  5436. NMEDIT=":"
  5437. else
  5438. case $cross_compiling:$ac_tool_warned in
  5439. yes:)
  5440. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5441. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5442. ac_tool_warned=yes ;;
  5443. esac
  5444. NMEDIT=$ac_ct_NMEDIT
  5445. fi
  5446. else
  5447. NMEDIT="$ac_cv_prog_NMEDIT"
  5448. fi
  5449. if test -n "$ac_tool_prefix"; then
  5450. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5451. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5453. $as_echo_n "checking for $ac_word... " >&6; }
  5454. if ${ac_cv_prog_LIPO+:} false; then :
  5455. $as_echo_n "(cached) " >&6
  5456. else
  5457. if test -n "$LIPO"; then
  5458. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5459. else
  5460. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5461. for as_dir in $PATH
  5462. do
  5463. IFS=$as_save_IFS
  5464. test -z "$as_dir" && as_dir=.
  5465. for ac_exec_ext in '' $ac_executable_extensions; do
  5466. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5467. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5468. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5469. break 2
  5470. fi
  5471. done
  5472. done
  5473. IFS=$as_save_IFS
  5474. fi
  5475. fi
  5476. LIPO=$ac_cv_prog_LIPO
  5477. if test -n "$LIPO"; then
  5478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5479. $as_echo "$LIPO" >&6; }
  5480. else
  5481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5482. $as_echo "no" >&6; }
  5483. fi
  5484. fi
  5485. if test -z "$ac_cv_prog_LIPO"; then
  5486. ac_ct_LIPO=$LIPO
  5487. # Extract the first word of "lipo", so it can be a program name with args.
  5488. set dummy lipo; ac_word=$2
  5489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5490. $as_echo_n "checking for $ac_word... " >&6; }
  5491. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5492. $as_echo_n "(cached) " >&6
  5493. else
  5494. if test -n "$ac_ct_LIPO"; then
  5495. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5496. else
  5497. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5498. for as_dir in $PATH
  5499. do
  5500. IFS=$as_save_IFS
  5501. test -z "$as_dir" && as_dir=.
  5502. for ac_exec_ext in '' $ac_executable_extensions; do
  5503. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5504. ac_cv_prog_ac_ct_LIPO="lipo"
  5505. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5506. break 2
  5507. fi
  5508. done
  5509. done
  5510. IFS=$as_save_IFS
  5511. fi
  5512. fi
  5513. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5514. if test -n "$ac_ct_LIPO"; then
  5515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5516. $as_echo "$ac_ct_LIPO" >&6; }
  5517. else
  5518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5519. $as_echo "no" >&6; }
  5520. fi
  5521. if test "x$ac_ct_LIPO" = x; then
  5522. LIPO=":"
  5523. else
  5524. case $cross_compiling:$ac_tool_warned in
  5525. yes:)
  5526. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5527. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5528. ac_tool_warned=yes ;;
  5529. esac
  5530. LIPO=$ac_ct_LIPO
  5531. fi
  5532. else
  5533. LIPO="$ac_cv_prog_LIPO"
  5534. fi
  5535. if test -n "$ac_tool_prefix"; then
  5536. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5537. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5539. $as_echo_n "checking for $ac_word... " >&6; }
  5540. if ${ac_cv_prog_OTOOL+:} false; then :
  5541. $as_echo_n "(cached) " >&6
  5542. else
  5543. if test -n "$OTOOL"; then
  5544. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5545. else
  5546. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5547. for as_dir in $PATH
  5548. do
  5549. IFS=$as_save_IFS
  5550. test -z "$as_dir" && as_dir=.
  5551. for ac_exec_ext in '' $ac_executable_extensions; do
  5552. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5553. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5554. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5555. break 2
  5556. fi
  5557. done
  5558. done
  5559. IFS=$as_save_IFS
  5560. fi
  5561. fi
  5562. OTOOL=$ac_cv_prog_OTOOL
  5563. if test -n "$OTOOL"; then
  5564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5565. $as_echo "$OTOOL" >&6; }
  5566. else
  5567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5568. $as_echo "no" >&6; }
  5569. fi
  5570. fi
  5571. if test -z "$ac_cv_prog_OTOOL"; then
  5572. ac_ct_OTOOL=$OTOOL
  5573. # Extract the first word of "otool", so it can be a program name with args.
  5574. set dummy otool; ac_word=$2
  5575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5576. $as_echo_n "checking for $ac_word... " >&6; }
  5577. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5578. $as_echo_n "(cached) " >&6
  5579. else
  5580. if test -n "$ac_ct_OTOOL"; then
  5581. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5582. else
  5583. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5584. for as_dir in $PATH
  5585. do
  5586. IFS=$as_save_IFS
  5587. test -z "$as_dir" && as_dir=.
  5588. for ac_exec_ext in '' $ac_executable_extensions; do
  5589. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5590. ac_cv_prog_ac_ct_OTOOL="otool"
  5591. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5592. break 2
  5593. fi
  5594. done
  5595. done
  5596. IFS=$as_save_IFS
  5597. fi
  5598. fi
  5599. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5600. if test -n "$ac_ct_OTOOL"; then
  5601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5602. $as_echo "$ac_ct_OTOOL" >&6; }
  5603. else
  5604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5605. $as_echo "no" >&6; }
  5606. fi
  5607. if test "x$ac_ct_OTOOL" = x; then
  5608. OTOOL=":"
  5609. else
  5610. case $cross_compiling:$ac_tool_warned in
  5611. yes:)
  5612. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5613. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5614. ac_tool_warned=yes ;;
  5615. esac
  5616. OTOOL=$ac_ct_OTOOL
  5617. fi
  5618. else
  5619. OTOOL="$ac_cv_prog_OTOOL"
  5620. fi
  5621. if test -n "$ac_tool_prefix"; then
  5622. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5623. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5625. $as_echo_n "checking for $ac_word... " >&6; }
  5626. if ${ac_cv_prog_OTOOL64+:} false; then :
  5627. $as_echo_n "(cached) " >&6
  5628. else
  5629. if test -n "$OTOOL64"; then
  5630. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5631. else
  5632. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5633. for as_dir in $PATH
  5634. do
  5635. IFS=$as_save_IFS
  5636. test -z "$as_dir" && as_dir=.
  5637. for ac_exec_ext in '' $ac_executable_extensions; do
  5638. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5639. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5640. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5641. break 2
  5642. fi
  5643. done
  5644. done
  5645. IFS=$as_save_IFS
  5646. fi
  5647. fi
  5648. OTOOL64=$ac_cv_prog_OTOOL64
  5649. if test -n "$OTOOL64"; then
  5650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5651. $as_echo "$OTOOL64" >&6; }
  5652. else
  5653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5654. $as_echo "no" >&6; }
  5655. fi
  5656. fi
  5657. if test -z "$ac_cv_prog_OTOOL64"; then
  5658. ac_ct_OTOOL64=$OTOOL64
  5659. # Extract the first word of "otool64", so it can be a program name with args.
  5660. set dummy otool64; ac_word=$2
  5661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5662. $as_echo_n "checking for $ac_word... " >&6; }
  5663. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5664. $as_echo_n "(cached) " >&6
  5665. else
  5666. if test -n "$ac_ct_OTOOL64"; then
  5667. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5668. else
  5669. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5670. for as_dir in $PATH
  5671. do
  5672. IFS=$as_save_IFS
  5673. test -z "$as_dir" && as_dir=.
  5674. for ac_exec_ext in '' $ac_executable_extensions; do
  5675. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5676. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5677. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5678. break 2
  5679. fi
  5680. done
  5681. done
  5682. IFS=$as_save_IFS
  5683. fi
  5684. fi
  5685. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5686. if test -n "$ac_ct_OTOOL64"; then
  5687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  5688. $as_echo "$ac_ct_OTOOL64" >&6; }
  5689. else
  5690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5691. $as_echo "no" >&6; }
  5692. fi
  5693. if test "x$ac_ct_OTOOL64" = x; then
  5694. OTOOL64=":"
  5695. else
  5696. case $cross_compiling:$ac_tool_warned in
  5697. yes:)
  5698. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5699. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5700. ac_tool_warned=yes ;;
  5701. esac
  5702. OTOOL64=$ac_ct_OTOOL64
  5703. fi
  5704. else
  5705. OTOOL64="$ac_cv_prog_OTOOL64"
  5706. fi
  5707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  5708. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5709. if ${lt_cv_apple_cc_single_mod+:} false; then :
  5710. $as_echo_n "(cached) " >&6
  5711. else
  5712. lt_cv_apple_cc_single_mod=no
  5713. if test -z "$LT_MULTI_MODULE"; then
  5714. # By default we will add the -single_module flag. You can override
  5715. # by either setting the environment variable LT_MULTI_MODULE
  5716. # non-empty at configure time, or by adding -multi_module to the
  5717. # link flags.
  5718. rm -rf libconftest.dylib*
  5719. echo "int foo(void){return 1;}" > conftest.c
  5720. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5721. -dynamiclib -Wl,-single_module conftest.c" >&5
  5722. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5723. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5724. _lt_result=$?
  5725. # If there is a non-empty error log, and "single_module"
  5726. # appears in it, assume the flag caused a linker warning
  5727. if test -s conftest.err && $GREP single_module conftest.err; then
  5728. cat conftest.err >&5
  5729. # Otherwise, if the output was created with a 0 exit code from
  5730. # the compiler, it worked.
  5731. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  5732. lt_cv_apple_cc_single_mod=yes
  5733. else
  5734. cat conftest.err >&5
  5735. fi
  5736. rm -rf libconftest.dylib*
  5737. rm -f conftest.*
  5738. fi
  5739. fi
  5740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  5741. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  5743. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5744. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  5745. $as_echo_n "(cached) " >&6
  5746. else
  5747. lt_cv_ld_exported_symbols_list=no
  5748. save_LDFLAGS=$LDFLAGS
  5749. echo "_main" > conftest.sym
  5750. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  5751. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5752. /* end confdefs.h. */
  5753. int
  5754. main ()
  5755. {
  5756. ;
  5757. return 0;
  5758. }
  5759. _ACEOF
  5760. if ac_fn_c_try_link "$LINENO"; then :
  5761. lt_cv_ld_exported_symbols_list=yes
  5762. else
  5763. lt_cv_ld_exported_symbols_list=no
  5764. fi
  5765. rm -f core conftest.err conftest.$ac_objext \
  5766. conftest$ac_exeext conftest.$ac_ext
  5767. LDFLAGS=$save_LDFLAGS
  5768. fi
  5769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  5770. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  5771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  5772. $as_echo_n "checking for -force_load linker flag... " >&6; }
  5773. if ${lt_cv_ld_force_load+:} false; then :
  5774. $as_echo_n "(cached) " >&6
  5775. else
  5776. lt_cv_ld_force_load=no
  5777. cat > conftest.c << _LT_EOF
  5778. int forced_loaded() { return 2;}
  5779. _LT_EOF
  5780. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  5781. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  5782. echo "$AR cru libconftest.a conftest.o" >&5
  5783. $AR cru libconftest.a conftest.o 2>&5
  5784. echo "$RANLIB libconftest.a" >&5
  5785. $RANLIB libconftest.a 2>&5
  5786. cat > conftest.c << _LT_EOF
  5787. int main() { return 0;}
  5788. _LT_EOF
  5789. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  5790. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  5791. _lt_result=$?
  5792. if test -s conftest.err && $GREP force_load conftest.err; then
  5793. cat conftest.err >&5
  5794. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  5795. lt_cv_ld_force_load=yes
  5796. else
  5797. cat conftest.err >&5
  5798. fi
  5799. rm -f conftest.err libconftest.a conftest conftest.c
  5800. rm -rf conftest.dSYM
  5801. fi
  5802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  5803. $as_echo "$lt_cv_ld_force_load" >&6; }
  5804. case $host_os in
  5805. rhapsody* | darwin1.[012])
  5806. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  5807. darwin1.*)
  5808. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  5809. darwin*) # darwin 5.x on
  5810. # if running on 10.5 or later, the deployment target defaults
  5811. # to the OS version, if on x86, and 10.4, the deployment
  5812. # target defaults to 10.4. Don't you love it?
  5813. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  5814. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  5815. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  5816. 10.[012][,.]*)
  5817. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  5818. 10.*)
  5819. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  5820. esac
  5821. ;;
  5822. esac
  5823. if test yes = "$lt_cv_apple_cc_single_mod"; then
  5824. _lt_dar_single_mod='$single_module'
  5825. fi
  5826. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  5827. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  5828. else
  5829. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  5830. fi
  5831. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  5832. _lt_dsymutil='~$DSYMUTIL $lib || :'
  5833. else
  5834. _lt_dsymutil=
  5835. fi
  5836. ;;
  5837. esac
  5838. # func_munge_path_list VARIABLE PATH
  5839. # -----------------------------------
  5840. # VARIABLE is name of variable containing _space_ separated list of
  5841. # directories to be munged by the contents of PATH, which is string
  5842. # having a format:
  5843. # "DIR[:DIR]:"
  5844. # string "DIR[ DIR]" will be prepended to VARIABLE
  5845. # ":DIR[:DIR]"
  5846. # string "DIR[ DIR]" will be appended to VARIABLE
  5847. # "DIRP[:DIRP]::[DIRA:]DIRA"
  5848. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  5849. # "DIRA[ DIRA]" will be appended to VARIABLE
  5850. # "DIR[:DIR]"
  5851. # VARIABLE will be replaced by "DIR[ DIR]"
  5852. func_munge_path_list ()
  5853. {
  5854. case x$2 in
  5855. x)
  5856. ;;
  5857. *:)
  5858. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  5859. ;;
  5860. x:*)
  5861. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  5862. ;;
  5863. *::*)
  5864. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  5865. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  5866. ;;
  5867. *)
  5868. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  5869. ;;
  5870. esac
  5871. }
  5872. ac_ext=c
  5873. ac_cpp='$CPP $CPPFLAGS'
  5874. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5875. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5876. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  5878. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  5879. # On Suns, sometimes $CPP names a directory.
  5880. if test -n "$CPP" && test -d "$CPP"; then
  5881. CPP=
  5882. fi
  5883. if test -z "$CPP"; then
  5884. if ${ac_cv_prog_CPP+:} false; then :
  5885. $as_echo_n "(cached) " >&6
  5886. else
  5887. # Double quotes because CPP needs to be expanded
  5888. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5889. do
  5890. ac_preproc_ok=false
  5891. for ac_c_preproc_warn_flag in '' yes
  5892. do
  5893. # Use a header file that comes with gcc, so configuring glibc
  5894. # with a fresh cross-compiler works.
  5895. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5896. # <limits.h> exists even on freestanding compilers.
  5897. # On the NeXT, cc -E runs the code through the compiler's parser,
  5898. # not just through cpp. "Syntax error" is here to catch this case.
  5899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5900. /* end confdefs.h. */
  5901. #ifdef __STDC__
  5902. # include <limits.h>
  5903. #else
  5904. # include <assert.h>
  5905. #endif
  5906. Syntax error
  5907. _ACEOF
  5908. if ac_fn_c_try_cpp "$LINENO"; then :
  5909. else
  5910. # Broken: fails on valid input.
  5911. continue
  5912. fi
  5913. rm -f conftest.err conftest.i conftest.$ac_ext
  5914. # OK, works on sane cases. Now check whether nonexistent headers
  5915. # can be detected and how.
  5916. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5917. /* end confdefs.h. */
  5918. #include <ac_nonexistent.h>
  5919. _ACEOF
  5920. if ac_fn_c_try_cpp "$LINENO"; then :
  5921. # Broken: success on invalid input.
  5922. continue
  5923. else
  5924. # Passes both tests.
  5925. ac_preproc_ok=:
  5926. break
  5927. fi
  5928. rm -f conftest.err conftest.i conftest.$ac_ext
  5929. done
  5930. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5931. rm -f conftest.i conftest.err conftest.$ac_ext
  5932. if $ac_preproc_ok; then :
  5933. break
  5934. fi
  5935. done
  5936. ac_cv_prog_CPP=$CPP
  5937. fi
  5938. CPP=$ac_cv_prog_CPP
  5939. else
  5940. ac_cv_prog_CPP=$CPP
  5941. fi
  5942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  5943. $as_echo "$CPP" >&6; }
  5944. ac_preproc_ok=false
  5945. for ac_c_preproc_warn_flag in '' yes
  5946. do
  5947. # Use a header file that comes with gcc, so configuring glibc
  5948. # with a fresh cross-compiler works.
  5949. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5950. # <limits.h> exists even on freestanding compilers.
  5951. # On the NeXT, cc -E runs the code through the compiler's parser,
  5952. # not just through cpp. "Syntax error" is here to catch this case.
  5953. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5954. /* end confdefs.h. */
  5955. #ifdef __STDC__
  5956. # include <limits.h>
  5957. #else
  5958. # include <assert.h>
  5959. #endif
  5960. Syntax error
  5961. _ACEOF
  5962. if ac_fn_c_try_cpp "$LINENO"; then :
  5963. else
  5964. # Broken: fails on valid input.
  5965. continue
  5966. fi
  5967. rm -f conftest.err conftest.i conftest.$ac_ext
  5968. # OK, works on sane cases. Now check whether nonexistent headers
  5969. # can be detected and how.
  5970. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5971. /* end confdefs.h. */
  5972. #include <ac_nonexistent.h>
  5973. _ACEOF
  5974. if ac_fn_c_try_cpp "$LINENO"; then :
  5975. # Broken: success on invalid input.
  5976. continue
  5977. else
  5978. # Passes both tests.
  5979. ac_preproc_ok=:
  5980. break
  5981. fi
  5982. rm -f conftest.err conftest.i conftest.$ac_ext
  5983. done
  5984. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5985. rm -f conftest.i conftest.err conftest.$ac_ext
  5986. if $ac_preproc_ok; then :
  5987. else
  5988. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5989. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5990. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  5991. See \`config.log' for more details" "$LINENO" 5; }
  5992. fi
  5993. ac_ext=c
  5994. ac_cpp='$CPP $CPPFLAGS'
  5995. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5996. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5997. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  5999. $as_echo_n "checking for ANSI C header files... " >&6; }
  6000. if ${ac_cv_header_stdc+:} false; then :
  6001. $as_echo_n "(cached) " >&6
  6002. else
  6003. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6004. /* end confdefs.h. */
  6005. #include <stdlib.h>
  6006. #include <stdarg.h>
  6007. #include <string.h>
  6008. #include <float.h>
  6009. int
  6010. main ()
  6011. {
  6012. ;
  6013. return 0;
  6014. }
  6015. _ACEOF
  6016. if ac_fn_c_try_compile "$LINENO"; then :
  6017. ac_cv_header_stdc=yes
  6018. else
  6019. ac_cv_header_stdc=no
  6020. fi
  6021. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6022. if test $ac_cv_header_stdc = yes; then
  6023. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6024. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6025. /* end confdefs.h. */
  6026. #include <string.h>
  6027. _ACEOF
  6028. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6029. $EGREP "memchr" >/dev/null 2>&1; then :
  6030. else
  6031. ac_cv_header_stdc=no
  6032. fi
  6033. rm -f conftest*
  6034. fi
  6035. if test $ac_cv_header_stdc = yes; then
  6036. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6037. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6038. /* end confdefs.h. */
  6039. #include <stdlib.h>
  6040. _ACEOF
  6041. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6042. $EGREP "free" >/dev/null 2>&1; then :
  6043. else
  6044. ac_cv_header_stdc=no
  6045. fi
  6046. rm -f conftest*
  6047. fi
  6048. if test $ac_cv_header_stdc = yes; then
  6049. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6050. if test "$cross_compiling" = yes; then :
  6051. :
  6052. else
  6053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6054. /* end confdefs.h. */
  6055. #include <ctype.h>
  6056. #include <stdlib.h>
  6057. #if ((' ' & 0x0FF) == 0x020)
  6058. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6059. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6060. #else
  6061. # define ISLOWER(c) \
  6062. (('a' <= (c) && (c) <= 'i') \
  6063. || ('j' <= (c) && (c) <= 'r') \
  6064. || ('s' <= (c) && (c) <= 'z'))
  6065. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6066. #endif
  6067. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6068. int
  6069. main ()
  6070. {
  6071. int i;
  6072. for (i = 0; i < 256; i++)
  6073. if (XOR (islower (i), ISLOWER (i))
  6074. || toupper (i) != TOUPPER (i))
  6075. return 2;
  6076. return 0;
  6077. }
  6078. _ACEOF
  6079. if ac_fn_c_try_run "$LINENO"; then :
  6080. else
  6081. ac_cv_header_stdc=no
  6082. fi
  6083. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6084. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6085. fi
  6086. fi
  6087. fi
  6088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6089. $as_echo "$ac_cv_header_stdc" >&6; }
  6090. if test $ac_cv_header_stdc = yes; then
  6091. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6092. fi
  6093. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6094. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6095. inttypes.h stdint.h unistd.h
  6096. do :
  6097. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6098. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6099. "
  6100. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6101. cat >>confdefs.h <<_ACEOF
  6102. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6103. _ACEOF
  6104. fi
  6105. done
  6106. for ac_header in dlfcn.h
  6107. do :
  6108. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6109. "
  6110. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6111. cat >>confdefs.h <<_ACEOF
  6112. #define HAVE_DLFCN_H 1
  6113. _ACEOF
  6114. fi
  6115. done
  6116. # Set options
  6117. enable_win32_dll=yes
  6118. case $host in
  6119. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6120. if test -n "$ac_tool_prefix"; then
  6121. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6122. set dummy ${ac_tool_prefix}as; ac_word=$2
  6123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6124. $as_echo_n "checking for $ac_word... " >&6; }
  6125. if ${ac_cv_prog_AS+:} false; then :
  6126. $as_echo_n "(cached) " >&6
  6127. else
  6128. if test -n "$AS"; then
  6129. ac_cv_prog_AS="$AS" # Let the user override the test.
  6130. else
  6131. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6132. for as_dir in $PATH
  6133. do
  6134. IFS=$as_save_IFS
  6135. test -z "$as_dir" && as_dir=.
  6136. for ac_exec_ext in '' $ac_executable_extensions; do
  6137. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6138. ac_cv_prog_AS="${ac_tool_prefix}as"
  6139. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6140. break 2
  6141. fi
  6142. done
  6143. done
  6144. IFS=$as_save_IFS
  6145. fi
  6146. fi
  6147. AS=$ac_cv_prog_AS
  6148. if test -n "$AS"; then
  6149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6150. $as_echo "$AS" >&6; }
  6151. else
  6152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6153. $as_echo "no" >&6; }
  6154. fi
  6155. fi
  6156. if test -z "$ac_cv_prog_AS"; then
  6157. ac_ct_AS=$AS
  6158. # Extract the first word of "as", so it can be a program name with args.
  6159. set dummy as; ac_word=$2
  6160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6161. $as_echo_n "checking for $ac_word... " >&6; }
  6162. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6163. $as_echo_n "(cached) " >&6
  6164. else
  6165. if test -n "$ac_ct_AS"; then
  6166. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6167. else
  6168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6169. for as_dir in $PATH
  6170. do
  6171. IFS=$as_save_IFS
  6172. test -z "$as_dir" && as_dir=.
  6173. for ac_exec_ext in '' $ac_executable_extensions; do
  6174. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6175. ac_cv_prog_ac_ct_AS="as"
  6176. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6177. break 2
  6178. fi
  6179. done
  6180. done
  6181. IFS=$as_save_IFS
  6182. fi
  6183. fi
  6184. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6185. if test -n "$ac_ct_AS"; then
  6186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6187. $as_echo "$ac_ct_AS" >&6; }
  6188. else
  6189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6190. $as_echo "no" >&6; }
  6191. fi
  6192. if test "x$ac_ct_AS" = x; then
  6193. AS="false"
  6194. else
  6195. case $cross_compiling:$ac_tool_warned in
  6196. yes:)
  6197. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6198. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6199. ac_tool_warned=yes ;;
  6200. esac
  6201. AS=$ac_ct_AS
  6202. fi
  6203. else
  6204. AS="$ac_cv_prog_AS"
  6205. fi
  6206. if test -n "$ac_tool_prefix"; then
  6207. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6208. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6210. $as_echo_n "checking for $ac_word... " >&6; }
  6211. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6212. $as_echo_n "(cached) " >&6
  6213. else
  6214. if test -n "$DLLTOOL"; then
  6215. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6216. else
  6217. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6218. for as_dir in $PATH
  6219. do
  6220. IFS=$as_save_IFS
  6221. test -z "$as_dir" && as_dir=.
  6222. for ac_exec_ext in '' $ac_executable_extensions; do
  6223. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6224. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6225. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6226. break 2
  6227. fi
  6228. done
  6229. done
  6230. IFS=$as_save_IFS
  6231. fi
  6232. fi
  6233. DLLTOOL=$ac_cv_prog_DLLTOOL
  6234. if test -n "$DLLTOOL"; then
  6235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6236. $as_echo "$DLLTOOL" >&6; }
  6237. else
  6238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6239. $as_echo "no" >&6; }
  6240. fi
  6241. fi
  6242. if test -z "$ac_cv_prog_DLLTOOL"; then
  6243. ac_ct_DLLTOOL=$DLLTOOL
  6244. # Extract the first word of "dlltool", so it can be a program name with args.
  6245. set dummy dlltool; ac_word=$2
  6246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6247. $as_echo_n "checking for $ac_word... " >&6; }
  6248. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6249. $as_echo_n "(cached) " >&6
  6250. else
  6251. if test -n "$ac_ct_DLLTOOL"; then
  6252. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6253. else
  6254. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6255. for as_dir in $PATH
  6256. do
  6257. IFS=$as_save_IFS
  6258. test -z "$as_dir" && as_dir=.
  6259. for ac_exec_ext in '' $ac_executable_extensions; do
  6260. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6261. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6262. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6263. break 2
  6264. fi
  6265. done
  6266. done
  6267. IFS=$as_save_IFS
  6268. fi
  6269. fi
  6270. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6271. if test -n "$ac_ct_DLLTOOL"; then
  6272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6273. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6274. else
  6275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6276. $as_echo "no" >&6; }
  6277. fi
  6278. if test "x$ac_ct_DLLTOOL" = x; then
  6279. DLLTOOL="false"
  6280. else
  6281. case $cross_compiling:$ac_tool_warned in
  6282. yes:)
  6283. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6284. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6285. ac_tool_warned=yes ;;
  6286. esac
  6287. DLLTOOL=$ac_ct_DLLTOOL
  6288. fi
  6289. else
  6290. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6291. fi
  6292. if test -n "$ac_tool_prefix"; then
  6293. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6294. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6296. $as_echo_n "checking for $ac_word... " >&6; }
  6297. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6298. $as_echo_n "(cached) " >&6
  6299. else
  6300. if test -n "$OBJDUMP"; then
  6301. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6302. else
  6303. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6304. for as_dir in $PATH
  6305. do
  6306. IFS=$as_save_IFS
  6307. test -z "$as_dir" && as_dir=.
  6308. for ac_exec_ext in '' $ac_executable_extensions; do
  6309. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6310. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6311. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6312. break 2
  6313. fi
  6314. done
  6315. done
  6316. IFS=$as_save_IFS
  6317. fi
  6318. fi
  6319. OBJDUMP=$ac_cv_prog_OBJDUMP
  6320. if test -n "$OBJDUMP"; then
  6321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6322. $as_echo "$OBJDUMP" >&6; }
  6323. else
  6324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6325. $as_echo "no" >&6; }
  6326. fi
  6327. fi
  6328. if test -z "$ac_cv_prog_OBJDUMP"; then
  6329. ac_ct_OBJDUMP=$OBJDUMP
  6330. # Extract the first word of "objdump", so it can be a program name with args.
  6331. set dummy objdump; ac_word=$2
  6332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6333. $as_echo_n "checking for $ac_word... " >&6; }
  6334. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6335. $as_echo_n "(cached) " >&6
  6336. else
  6337. if test -n "$ac_ct_OBJDUMP"; then
  6338. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6339. else
  6340. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6341. for as_dir in $PATH
  6342. do
  6343. IFS=$as_save_IFS
  6344. test -z "$as_dir" && as_dir=.
  6345. for ac_exec_ext in '' $ac_executable_extensions; do
  6346. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6347. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6348. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6349. break 2
  6350. fi
  6351. done
  6352. done
  6353. IFS=$as_save_IFS
  6354. fi
  6355. fi
  6356. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6357. if test -n "$ac_ct_OBJDUMP"; then
  6358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6359. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6360. else
  6361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6362. $as_echo "no" >&6; }
  6363. fi
  6364. if test "x$ac_ct_OBJDUMP" = x; then
  6365. OBJDUMP="false"
  6366. else
  6367. case $cross_compiling:$ac_tool_warned in
  6368. yes:)
  6369. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6370. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6371. ac_tool_warned=yes ;;
  6372. esac
  6373. OBJDUMP=$ac_ct_OBJDUMP
  6374. fi
  6375. else
  6376. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6377. fi
  6378. ;;
  6379. esac
  6380. test -z "$AS" && AS=as
  6381. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6382. test -z "$OBJDUMP" && OBJDUMP=objdump
  6383. enable_dlopen=no
  6384. # Check whether --enable-shared was given.
  6385. if test "${enable_shared+set}" = set; then :
  6386. enableval=$enable_shared; p=${PACKAGE-default}
  6387. case $enableval in
  6388. yes) enable_shared=yes ;;
  6389. no) enable_shared=no ;;
  6390. *)
  6391. enable_shared=no
  6392. # Look at the argument we got. We use all the common list separators.
  6393. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6394. for pkg in $enableval; do
  6395. IFS=$lt_save_ifs
  6396. if test "X$pkg" = "X$p"; then
  6397. enable_shared=yes
  6398. fi
  6399. done
  6400. IFS=$lt_save_ifs
  6401. ;;
  6402. esac
  6403. else
  6404. enable_shared=yes
  6405. fi
  6406. # Check whether --enable-static was given.
  6407. if test "${enable_static+set}" = set; then :
  6408. enableval=$enable_static; p=${PACKAGE-default}
  6409. case $enableval in
  6410. yes) enable_static=yes ;;
  6411. no) enable_static=no ;;
  6412. *)
  6413. enable_static=no
  6414. # Look at the argument we got. We use all the common list separators.
  6415. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6416. for pkg in $enableval; do
  6417. IFS=$lt_save_ifs
  6418. if test "X$pkg" = "X$p"; then
  6419. enable_static=yes
  6420. fi
  6421. done
  6422. IFS=$lt_save_ifs
  6423. ;;
  6424. esac
  6425. else
  6426. enable_static=yes
  6427. fi
  6428. # Check whether --with-pic was given.
  6429. if test "${with_pic+set}" = set; then :
  6430. withval=$with_pic; lt_p=${PACKAGE-default}
  6431. case $withval in
  6432. yes|no) pic_mode=$withval ;;
  6433. *)
  6434. pic_mode=default
  6435. # Look at the argument we got. We use all the common list separators.
  6436. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6437. for lt_pkg in $withval; do
  6438. IFS=$lt_save_ifs
  6439. if test "X$lt_pkg" = "X$lt_p"; then
  6440. pic_mode=yes
  6441. fi
  6442. done
  6443. IFS=$lt_save_ifs
  6444. ;;
  6445. esac
  6446. else
  6447. pic_mode=default
  6448. fi
  6449. # Check whether --enable-fast-install was given.
  6450. if test "${enable_fast_install+set}" = set; then :
  6451. enableval=$enable_fast_install; p=${PACKAGE-default}
  6452. case $enableval in
  6453. yes) enable_fast_install=yes ;;
  6454. no) enable_fast_install=no ;;
  6455. *)
  6456. enable_fast_install=no
  6457. # Look at the argument we got. We use all the common list separators.
  6458. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6459. for pkg in $enableval; do
  6460. IFS=$lt_save_ifs
  6461. if test "X$pkg" = "X$p"; then
  6462. enable_fast_install=yes
  6463. fi
  6464. done
  6465. IFS=$lt_save_ifs
  6466. ;;
  6467. esac
  6468. else
  6469. enable_fast_install=yes
  6470. fi
  6471. shared_archive_member_spec=
  6472. case $host,$enable_shared in
  6473. power*-*-aix[5-9]*,yes)
  6474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  6475. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  6476. # Check whether --with-aix-soname was given.
  6477. if test "${with_aix_soname+set}" = set; then :
  6478. withval=$with_aix_soname; case $withval in
  6479. aix|svr4|both)
  6480. ;;
  6481. *)
  6482. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  6483. ;;
  6484. esac
  6485. lt_cv_with_aix_soname=$with_aix_soname
  6486. else
  6487. if ${lt_cv_with_aix_soname+:} false; then :
  6488. $as_echo_n "(cached) " >&6
  6489. else
  6490. lt_cv_with_aix_soname=aix
  6491. fi
  6492. with_aix_soname=$lt_cv_with_aix_soname
  6493. fi
  6494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  6495. $as_echo "$with_aix_soname" >&6; }
  6496. if test aix != "$with_aix_soname"; then
  6497. # For the AIX way of multilib, we name the shared archive member
  6498. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  6499. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  6500. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  6501. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  6502. if test 64 = "${OBJECT_MODE-32}"; then
  6503. shared_archive_member_spec=shr_64
  6504. else
  6505. shared_archive_member_spec=shr
  6506. fi
  6507. fi
  6508. ;;
  6509. *)
  6510. with_aix_soname=aix
  6511. ;;
  6512. esac
  6513. # This can be used to rebuild libtool when needed
  6514. LIBTOOL_DEPS=$ltmain
  6515. # Always use our own libtool.
  6516. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6517. test -z "$LN_S" && LN_S="ln -s"
  6518. if test -n "${ZSH_VERSION+set}"; then
  6519. setopt NO_GLOB_SUBST
  6520. fi
  6521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6522. $as_echo_n "checking for objdir... " >&6; }
  6523. if ${lt_cv_objdir+:} false; then :
  6524. $as_echo_n "(cached) " >&6
  6525. else
  6526. rm -f .libs 2>/dev/null
  6527. mkdir .libs 2>/dev/null
  6528. if test -d .libs; then
  6529. lt_cv_objdir=.libs
  6530. else
  6531. # MS-DOS does not allow filenames that begin with a dot.
  6532. lt_cv_objdir=_libs
  6533. fi
  6534. rmdir .libs 2>/dev/null
  6535. fi
  6536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6537. $as_echo "$lt_cv_objdir" >&6; }
  6538. objdir=$lt_cv_objdir
  6539. cat >>confdefs.h <<_ACEOF
  6540. #define LT_OBJDIR "$lt_cv_objdir/"
  6541. _ACEOF
  6542. case $host_os in
  6543. aix3*)
  6544. # AIX sometimes has problems with the GCC collect2 program. For some
  6545. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6546. # vanish in a puff of smoke.
  6547. if test set != "${COLLECT_NAMES+set}"; then
  6548. COLLECT_NAMES=
  6549. export COLLECT_NAMES
  6550. fi
  6551. ;;
  6552. esac
  6553. # Global variables:
  6554. ofile=libtool
  6555. can_build_shared=yes
  6556. # All known linkers require a '.a' archive for static linking (except MSVC,
  6557. # which needs '.lib').
  6558. libext=a
  6559. with_gnu_ld=$lt_cv_prog_gnu_ld
  6560. old_CC=$CC
  6561. old_CFLAGS=$CFLAGS
  6562. # Set sane defaults for various variables
  6563. test -z "$CC" && CC=cc
  6564. test -z "$LTCC" && LTCC=$CC
  6565. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6566. test -z "$LD" && LD=ld
  6567. test -z "$ac_objext" && ac_objext=o
  6568. func_cc_basename $compiler
  6569. cc_basename=$func_cc_basename_result
  6570. # Only perform the check for file, if the check method requires it
  6571. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6572. case $deplibs_check_method in
  6573. file_magic*)
  6574. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6576. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6577. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6578. $as_echo_n "(cached) " >&6
  6579. else
  6580. case $MAGIC_CMD in
  6581. [\\/*] | ?:[\\/]*)
  6582. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  6583. ;;
  6584. *)
  6585. lt_save_MAGIC_CMD=$MAGIC_CMD
  6586. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  6587. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6588. for ac_dir in $ac_dummy; do
  6589. IFS=$lt_save_ifs
  6590. test -z "$ac_dir" && ac_dir=.
  6591. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  6592. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  6593. if test -n "$file_magic_test_file"; then
  6594. case $deplibs_check_method in
  6595. "file_magic "*)
  6596. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6597. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  6598. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6599. $EGREP "$file_magic_regex" > /dev/null; then
  6600. :
  6601. else
  6602. cat <<_LT_EOF 1>&2
  6603. *** Warning: the command libtool uses to detect shared libraries,
  6604. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6605. *** The result is that libtool may fail to recognize shared libraries
  6606. *** as such. This will affect the creation of libtool libraries that
  6607. *** depend on shared libraries, but programs linked with such libtool
  6608. *** libraries will work regardless of this problem. Nevertheless, you
  6609. *** may want to report the problem to your system manager and/or to
  6610. *** bug-libtool@gnu.org
  6611. _LT_EOF
  6612. fi ;;
  6613. esac
  6614. fi
  6615. break
  6616. fi
  6617. done
  6618. IFS=$lt_save_ifs
  6619. MAGIC_CMD=$lt_save_MAGIC_CMD
  6620. ;;
  6621. esac
  6622. fi
  6623. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  6624. if test -n "$MAGIC_CMD"; then
  6625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6626. $as_echo "$MAGIC_CMD" >&6; }
  6627. else
  6628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6629. $as_echo "no" >&6; }
  6630. fi
  6631. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6632. if test -n "$ac_tool_prefix"; then
  6633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6634. $as_echo_n "checking for file... " >&6; }
  6635. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6636. $as_echo_n "(cached) " >&6
  6637. else
  6638. case $MAGIC_CMD in
  6639. [\\/*] | ?:[\\/]*)
  6640. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  6641. ;;
  6642. *)
  6643. lt_save_MAGIC_CMD=$MAGIC_CMD
  6644. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  6645. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6646. for ac_dir in $ac_dummy; do
  6647. IFS=$lt_save_ifs
  6648. test -z "$ac_dir" && ac_dir=.
  6649. if test -f "$ac_dir/file"; then
  6650. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  6651. if test -n "$file_magic_test_file"; then
  6652. case $deplibs_check_method in
  6653. "file_magic "*)
  6654. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6655. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  6656. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6657. $EGREP "$file_magic_regex" > /dev/null; then
  6658. :
  6659. else
  6660. cat <<_LT_EOF 1>&2
  6661. *** Warning: the command libtool uses to detect shared libraries,
  6662. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6663. *** The result is that libtool may fail to recognize shared libraries
  6664. *** as such. This will affect the creation of libtool libraries that
  6665. *** depend on shared libraries, but programs linked with such libtool
  6666. *** libraries will work regardless of this problem. Nevertheless, you
  6667. *** may want to report the problem to your system manager and/or to
  6668. *** bug-libtool@gnu.org
  6669. _LT_EOF
  6670. fi ;;
  6671. esac
  6672. fi
  6673. break
  6674. fi
  6675. done
  6676. IFS=$lt_save_ifs
  6677. MAGIC_CMD=$lt_save_MAGIC_CMD
  6678. ;;
  6679. esac
  6680. fi
  6681. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  6682. if test -n "$MAGIC_CMD"; then
  6683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6684. $as_echo "$MAGIC_CMD" >&6; }
  6685. else
  6686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6687. $as_echo "no" >&6; }
  6688. fi
  6689. else
  6690. MAGIC_CMD=:
  6691. fi
  6692. fi
  6693. fi
  6694. ;;
  6695. esac
  6696. # Use C for the default configuration in the libtool script
  6697. lt_save_CC=$CC
  6698. ac_ext=c
  6699. ac_cpp='$CPP $CPPFLAGS'
  6700. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6701. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6702. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6703. # Source file extension for C test sources.
  6704. ac_ext=c
  6705. # Object file extension for compiled C test sources.
  6706. objext=o
  6707. objext=$objext
  6708. # Code to be used in simple compile tests
  6709. lt_simple_compile_test_code="int some_variable = 0;"
  6710. # Code to be used in simple link tests
  6711. lt_simple_link_test_code='int main(){return(0);}'
  6712. # If no C compiler was specified, use CC.
  6713. LTCC=${LTCC-"$CC"}
  6714. # If no C compiler flags were specified, use CFLAGS.
  6715. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6716. # Allow CC to be a program name with arguments.
  6717. compiler=$CC
  6718. # Save the default compiler, since it gets overwritten when the other
  6719. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6720. compiler_DEFAULT=$CC
  6721. # save warnings/boilerplate of simple test code
  6722. ac_outfile=conftest.$ac_objext
  6723. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6724. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6725. _lt_compiler_boilerplate=`cat conftest.err`
  6726. $RM conftest*
  6727. ac_outfile=conftest.$ac_objext
  6728. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6729. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6730. _lt_linker_boilerplate=`cat conftest.err`
  6731. $RM -r conftest*
  6732. ## CAVEAT EMPTOR:
  6733. ## There is no encapsulation within the following macros, do not change
  6734. ## the running order or otherwise move them around unless you know exactly
  6735. ## what you are doing...
  6736. if test -n "$compiler"; then
  6737. lt_prog_compiler_no_builtin_flag=
  6738. if test yes = "$GCC"; then
  6739. case $cc_basename in
  6740. nvcc*)
  6741. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6742. *)
  6743. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6744. esac
  6745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6746. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6747. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6748. $as_echo_n "(cached) " >&6
  6749. else
  6750. lt_cv_prog_compiler_rtti_exceptions=no
  6751. ac_outfile=conftest.$ac_objext
  6752. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6753. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  6754. # Insert the option either (1) after the last *FLAGS variable, or
  6755. # (2) before a word containing "conftest.", or (3) at the end.
  6756. # Note that $ac_compile itself does not contain backslashes and begins
  6757. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6758. # The option is referenced via a variable to avoid confusing sed.
  6759. lt_compile=`echo "$ac_compile" | $SED \
  6760. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6761. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6762. -e 's:$: $lt_compiler_flag:'`
  6763. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6764. (eval "$lt_compile" 2>conftest.err)
  6765. ac_status=$?
  6766. cat conftest.err >&5
  6767. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6768. if (exit $ac_status) && test -s "$ac_outfile"; then
  6769. # The compiler can only warn and ignore the option if not recognized
  6770. # So say no if there are warnings other than the usual output.
  6771. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6772. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6773. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6774. lt_cv_prog_compiler_rtti_exceptions=yes
  6775. fi
  6776. fi
  6777. $RM conftest*
  6778. fi
  6779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6780. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6781. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  6782. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6783. else
  6784. :
  6785. fi
  6786. fi
  6787. lt_prog_compiler_wl=
  6788. lt_prog_compiler_pic=
  6789. lt_prog_compiler_static=
  6790. if test yes = "$GCC"; then
  6791. lt_prog_compiler_wl='-Wl,'
  6792. lt_prog_compiler_static='-static'
  6793. case $host_os in
  6794. aix*)
  6795. # All AIX code is PIC.
  6796. if test ia64 = "$host_cpu"; then
  6797. # AIX 5 now supports IA64 processor
  6798. lt_prog_compiler_static='-Bstatic'
  6799. fi
  6800. lt_prog_compiler_pic='-fPIC'
  6801. ;;
  6802. amigaos*)
  6803. case $host_cpu in
  6804. powerpc)
  6805. # see comment about AmigaOS4 .so support
  6806. lt_prog_compiler_pic='-fPIC'
  6807. ;;
  6808. m68k)
  6809. # FIXME: we need at least 68020 code to build shared libraries, but
  6810. # adding the '-m68020' flag to GCC prevents building anything better,
  6811. # like '-m68040'.
  6812. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6813. ;;
  6814. esac
  6815. ;;
  6816. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6817. # PIC is the default for these OSes.
  6818. ;;
  6819. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6820. # This hack is so that the source file can tell whether it is being
  6821. # built for inclusion in a dll (and should export symbols for example).
  6822. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6823. # (--disable-auto-import) libraries
  6824. lt_prog_compiler_pic='-DDLL_EXPORT'
  6825. case $host_os in
  6826. os2*)
  6827. lt_prog_compiler_static='$wl-static'
  6828. ;;
  6829. esac
  6830. ;;
  6831. darwin* | rhapsody*)
  6832. # PIC is the default on this platform
  6833. # Common symbols not allowed in MH_DYLIB files
  6834. lt_prog_compiler_pic='-fno-common'
  6835. ;;
  6836. haiku*)
  6837. # PIC is the default for Haiku.
  6838. # The "-static" flag exists, but is broken.
  6839. lt_prog_compiler_static=
  6840. ;;
  6841. hpux*)
  6842. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6843. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6844. # sets the default TLS model and affects inlining.
  6845. case $host_cpu in
  6846. hppa*64*)
  6847. # +Z the default
  6848. ;;
  6849. *)
  6850. lt_prog_compiler_pic='-fPIC'
  6851. ;;
  6852. esac
  6853. ;;
  6854. interix[3-9]*)
  6855. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6856. # Instead, we relocate shared libraries at runtime.
  6857. ;;
  6858. msdosdjgpp*)
  6859. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6860. # on systems that don't support them.
  6861. lt_prog_compiler_can_build_shared=no
  6862. enable_shared=no
  6863. ;;
  6864. *nto* | *qnx*)
  6865. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6866. # it will coredump.
  6867. lt_prog_compiler_pic='-fPIC -shared'
  6868. ;;
  6869. sysv4*MP*)
  6870. if test -d /usr/nec; then
  6871. lt_prog_compiler_pic=-Kconform_pic
  6872. fi
  6873. ;;
  6874. *)
  6875. lt_prog_compiler_pic='-fPIC'
  6876. ;;
  6877. esac
  6878. case $cc_basename in
  6879. nvcc*) # Cuda Compiler Driver 2.2
  6880. lt_prog_compiler_wl='-Xlinker '
  6881. if test -n "$lt_prog_compiler_pic"; then
  6882. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  6883. fi
  6884. ;;
  6885. esac
  6886. else
  6887. # PORTME Check for flag to pass linker flags through the system compiler.
  6888. case $host_os in
  6889. aix*)
  6890. lt_prog_compiler_wl='-Wl,'
  6891. if test ia64 = "$host_cpu"; then
  6892. # AIX 5 now supports IA64 processor
  6893. lt_prog_compiler_static='-Bstatic'
  6894. else
  6895. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6896. fi
  6897. ;;
  6898. darwin* | rhapsody*)
  6899. # PIC is the default on this platform
  6900. # Common symbols not allowed in MH_DYLIB files
  6901. lt_prog_compiler_pic='-fno-common'
  6902. case $cc_basename in
  6903. nagfor*)
  6904. # NAG Fortran compiler
  6905. lt_prog_compiler_wl='-Wl,-Wl,,'
  6906. lt_prog_compiler_pic='-PIC'
  6907. lt_prog_compiler_static='-Bstatic'
  6908. ;;
  6909. esac
  6910. ;;
  6911. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6912. # This hack is so that the source file can tell whether it is being
  6913. # built for inclusion in a dll (and should export symbols for example).
  6914. lt_prog_compiler_pic='-DDLL_EXPORT'
  6915. case $host_os in
  6916. os2*)
  6917. lt_prog_compiler_static='$wl-static'
  6918. ;;
  6919. esac
  6920. ;;
  6921. hpux9* | hpux10* | hpux11*)
  6922. lt_prog_compiler_wl='-Wl,'
  6923. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6924. # not for PA HP-UX.
  6925. case $host_cpu in
  6926. hppa*64*|ia64*)
  6927. # +Z the default
  6928. ;;
  6929. *)
  6930. lt_prog_compiler_pic='+Z'
  6931. ;;
  6932. esac
  6933. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6934. lt_prog_compiler_static='$wl-a ${wl}archive'
  6935. ;;
  6936. irix5* | irix6* | nonstopux*)
  6937. lt_prog_compiler_wl='-Wl,'
  6938. # PIC (with -KPIC) is the default.
  6939. lt_prog_compiler_static='-non_shared'
  6940. ;;
  6941. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  6942. case $cc_basename in
  6943. # old Intel for x86_64, which still supported -KPIC.
  6944. ecc*)
  6945. lt_prog_compiler_wl='-Wl,'
  6946. lt_prog_compiler_pic='-KPIC'
  6947. lt_prog_compiler_static='-static'
  6948. ;;
  6949. # icc used to be incompatible with GCC.
  6950. # ICC 10 doesn't accept -KPIC any more.
  6951. icc* | ifort*)
  6952. lt_prog_compiler_wl='-Wl,'
  6953. lt_prog_compiler_pic='-fPIC'
  6954. lt_prog_compiler_static='-static'
  6955. ;;
  6956. # Lahey Fortran 8.1.
  6957. lf95*)
  6958. lt_prog_compiler_wl='-Wl,'
  6959. lt_prog_compiler_pic='--shared'
  6960. lt_prog_compiler_static='--static'
  6961. ;;
  6962. nagfor*)
  6963. # NAG Fortran compiler
  6964. lt_prog_compiler_wl='-Wl,-Wl,,'
  6965. lt_prog_compiler_pic='-PIC'
  6966. lt_prog_compiler_static='-Bstatic'
  6967. ;;
  6968. tcc*)
  6969. # Fabrice Bellard et al's Tiny C Compiler
  6970. lt_prog_compiler_wl='-Wl,'
  6971. lt_prog_compiler_pic='-fPIC'
  6972. lt_prog_compiler_static='-static'
  6973. ;;
  6974. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  6975. # Portland Group compilers (*not* the Pentium gcc compiler,
  6976. # which looks to be a dead project)
  6977. lt_prog_compiler_wl='-Wl,'
  6978. lt_prog_compiler_pic='-fpic'
  6979. lt_prog_compiler_static='-Bstatic'
  6980. ;;
  6981. ccc*)
  6982. lt_prog_compiler_wl='-Wl,'
  6983. # All Alpha code is PIC.
  6984. lt_prog_compiler_static='-non_shared'
  6985. ;;
  6986. xl* | bgxl* | bgf* | mpixl*)
  6987. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  6988. lt_prog_compiler_wl='-Wl,'
  6989. lt_prog_compiler_pic='-qpic'
  6990. lt_prog_compiler_static='-qstaticlink'
  6991. ;;
  6992. *)
  6993. case `$CC -V 2>&1 | sed 5q` in
  6994. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  6995. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  6996. lt_prog_compiler_pic='-KPIC'
  6997. lt_prog_compiler_static='-Bstatic'
  6998. lt_prog_compiler_wl=''
  6999. ;;
  7000. *Sun\ F* | *Sun*Fortran*)
  7001. lt_prog_compiler_pic='-KPIC'
  7002. lt_prog_compiler_static='-Bstatic'
  7003. lt_prog_compiler_wl='-Qoption ld '
  7004. ;;
  7005. *Sun\ C*)
  7006. # Sun C 5.9
  7007. lt_prog_compiler_pic='-KPIC'
  7008. lt_prog_compiler_static='-Bstatic'
  7009. lt_prog_compiler_wl='-Wl,'
  7010. ;;
  7011. *Intel*\ [CF]*Compiler*)
  7012. lt_prog_compiler_wl='-Wl,'
  7013. lt_prog_compiler_pic='-fPIC'
  7014. lt_prog_compiler_static='-static'
  7015. ;;
  7016. *Portland\ Group*)
  7017. lt_prog_compiler_wl='-Wl,'
  7018. lt_prog_compiler_pic='-fpic'
  7019. lt_prog_compiler_static='-Bstatic'
  7020. ;;
  7021. esac
  7022. ;;
  7023. esac
  7024. ;;
  7025. newsos6)
  7026. lt_prog_compiler_pic='-KPIC'
  7027. lt_prog_compiler_static='-Bstatic'
  7028. ;;
  7029. *nto* | *qnx*)
  7030. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7031. # it will coredump.
  7032. lt_prog_compiler_pic='-fPIC -shared'
  7033. ;;
  7034. osf3* | osf4* | osf5*)
  7035. lt_prog_compiler_wl='-Wl,'
  7036. # All OSF/1 code is PIC.
  7037. lt_prog_compiler_static='-non_shared'
  7038. ;;
  7039. rdos*)
  7040. lt_prog_compiler_static='-non_shared'
  7041. ;;
  7042. solaris*)
  7043. lt_prog_compiler_pic='-KPIC'
  7044. lt_prog_compiler_static='-Bstatic'
  7045. case $cc_basename in
  7046. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7047. lt_prog_compiler_wl='-Qoption ld ';;
  7048. *)
  7049. lt_prog_compiler_wl='-Wl,';;
  7050. esac
  7051. ;;
  7052. sunos4*)
  7053. lt_prog_compiler_wl='-Qoption ld '
  7054. lt_prog_compiler_pic='-PIC'
  7055. lt_prog_compiler_static='-Bstatic'
  7056. ;;
  7057. sysv4 | sysv4.2uw2* | sysv4.3*)
  7058. lt_prog_compiler_wl='-Wl,'
  7059. lt_prog_compiler_pic='-KPIC'
  7060. lt_prog_compiler_static='-Bstatic'
  7061. ;;
  7062. sysv4*MP*)
  7063. if test -d /usr/nec; then
  7064. lt_prog_compiler_pic='-Kconform_pic'
  7065. lt_prog_compiler_static='-Bstatic'
  7066. fi
  7067. ;;
  7068. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7069. lt_prog_compiler_wl='-Wl,'
  7070. lt_prog_compiler_pic='-KPIC'
  7071. lt_prog_compiler_static='-Bstatic'
  7072. ;;
  7073. unicos*)
  7074. lt_prog_compiler_wl='-Wl,'
  7075. lt_prog_compiler_can_build_shared=no
  7076. ;;
  7077. uts4*)
  7078. lt_prog_compiler_pic='-pic'
  7079. lt_prog_compiler_static='-Bstatic'
  7080. ;;
  7081. *)
  7082. lt_prog_compiler_can_build_shared=no
  7083. ;;
  7084. esac
  7085. fi
  7086. case $host_os in
  7087. # For platforms that do not support PIC, -DPIC is meaningless:
  7088. *djgpp*)
  7089. lt_prog_compiler_pic=
  7090. ;;
  7091. *)
  7092. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7093. ;;
  7094. esac
  7095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7096. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7097. if ${lt_cv_prog_compiler_pic+:} false; then :
  7098. $as_echo_n "(cached) " >&6
  7099. else
  7100. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7101. fi
  7102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7103. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7104. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7105. #
  7106. # Check to make sure the PIC flag actually works.
  7107. #
  7108. if test -n "$lt_prog_compiler_pic"; then
  7109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7110. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7111. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7112. $as_echo_n "(cached) " >&6
  7113. else
  7114. lt_cv_prog_compiler_pic_works=no
  7115. ac_outfile=conftest.$ac_objext
  7116. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7117. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  7118. # Insert the option either (1) after the last *FLAGS variable, or
  7119. # (2) before a word containing "conftest.", or (3) at the end.
  7120. # Note that $ac_compile itself does not contain backslashes and begins
  7121. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7122. # The option is referenced via a variable to avoid confusing sed.
  7123. lt_compile=`echo "$ac_compile" | $SED \
  7124. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7125. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7126. -e 's:$: $lt_compiler_flag:'`
  7127. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7128. (eval "$lt_compile" 2>conftest.err)
  7129. ac_status=$?
  7130. cat conftest.err >&5
  7131. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7132. if (exit $ac_status) && test -s "$ac_outfile"; then
  7133. # The compiler can only warn and ignore the option if not recognized
  7134. # So say no if there are warnings other than the usual output.
  7135. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7136. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7137. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7138. lt_cv_prog_compiler_pic_works=yes
  7139. fi
  7140. fi
  7141. $RM conftest*
  7142. fi
  7143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7144. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7145. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  7146. case $lt_prog_compiler_pic in
  7147. "" | " "*) ;;
  7148. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7149. esac
  7150. else
  7151. lt_prog_compiler_pic=
  7152. lt_prog_compiler_can_build_shared=no
  7153. fi
  7154. fi
  7155. #
  7156. # Check to make sure the static flag actually works.
  7157. #
  7158. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7160. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7161. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7162. $as_echo_n "(cached) " >&6
  7163. else
  7164. lt_cv_prog_compiler_static_works=no
  7165. save_LDFLAGS=$LDFLAGS
  7166. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7167. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7168. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7169. # The linker can only warn and ignore the option if not recognized
  7170. # So say no if there are warnings
  7171. if test -s conftest.err; then
  7172. # Append any errors to the config.log.
  7173. cat conftest.err 1>&5
  7174. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7175. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7176. if diff conftest.exp conftest.er2 >/dev/null; then
  7177. lt_cv_prog_compiler_static_works=yes
  7178. fi
  7179. else
  7180. lt_cv_prog_compiler_static_works=yes
  7181. fi
  7182. fi
  7183. $RM -r conftest*
  7184. LDFLAGS=$save_LDFLAGS
  7185. fi
  7186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7187. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7188. if test yes = "$lt_cv_prog_compiler_static_works"; then
  7189. :
  7190. else
  7191. lt_prog_compiler_static=
  7192. fi
  7193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7194. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7195. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7196. $as_echo_n "(cached) " >&6
  7197. else
  7198. lt_cv_prog_compiler_c_o=no
  7199. $RM -r conftest 2>/dev/null
  7200. mkdir conftest
  7201. cd conftest
  7202. mkdir out
  7203. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7204. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7205. # Insert the option either (1) after the last *FLAGS variable, or
  7206. # (2) before a word containing "conftest.", or (3) at the end.
  7207. # Note that $ac_compile itself does not contain backslashes and begins
  7208. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7209. lt_compile=`echo "$ac_compile" | $SED \
  7210. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7211. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7212. -e 's:$: $lt_compiler_flag:'`
  7213. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7214. (eval "$lt_compile" 2>out/conftest.err)
  7215. ac_status=$?
  7216. cat out/conftest.err >&5
  7217. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7218. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7219. then
  7220. # The compiler can only warn and ignore the option if not recognized
  7221. # So say no if there are warnings
  7222. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7223. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7224. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7225. lt_cv_prog_compiler_c_o=yes
  7226. fi
  7227. fi
  7228. chmod u+w . 2>&5
  7229. $RM conftest*
  7230. # SGI C++ compiler will create directory out/ii_files/ for
  7231. # template instantiation
  7232. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7233. $RM out/* && rmdir out
  7234. cd ..
  7235. $RM -r conftest
  7236. $RM conftest*
  7237. fi
  7238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7239. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7241. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7242. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7243. $as_echo_n "(cached) " >&6
  7244. else
  7245. lt_cv_prog_compiler_c_o=no
  7246. $RM -r conftest 2>/dev/null
  7247. mkdir conftest
  7248. cd conftest
  7249. mkdir out
  7250. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7251. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7252. # Insert the option either (1) after the last *FLAGS variable, or
  7253. # (2) before a word containing "conftest.", or (3) at the end.
  7254. # Note that $ac_compile itself does not contain backslashes and begins
  7255. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7256. lt_compile=`echo "$ac_compile" | $SED \
  7257. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7258. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7259. -e 's:$: $lt_compiler_flag:'`
  7260. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7261. (eval "$lt_compile" 2>out/conftest.err)
  7262. ac_status=$?
  7263. cat out/conftest.err >&5
  7264. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7265. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7266. then
  7267. # The compiler can only warn and ignore the option if not recognized
  7268. # So say no if there are warnings
  7269. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7270. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7271. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7272. lt_cv_prog_compiler_c_o=yes
  7273. fi
  7274. fi
  7275. chmod u+w . 2>&5
  7276. $RM conftest*
  7277. # SGI C++ compiler will create directory out/ii_files/ for
  7278. # template instantiation
  7279. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7280. $RM out/* && rmdir out
  7281. cd ..
  7282. $RM -r conftest
  7283. $RM conftest*
  7284. fi
  7285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7286. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7287. hard_links=nottested
  7288. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  7289. # do not overwrite the value of need_locks provided by the user
  7290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7291. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7292. hard_links=yes
  7293. $RM conftest*
  7294. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7295. touch conftest.a
  7296. ln conftest.a conftest.b 2>&5 || hard_links=no
  7297. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7299. $as_echo "$hard_links" >&6; }
  7300. if test no = "$hard_links"; then
  7301. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  7302. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  7303. need_locks=warn
  7304. fi
  7305. else
  7306. need_locks=no
  7307. fi
  7308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7309. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7310. runpath_var=
  7311. allow_undefined_flag=
  7312. always_export_symbols=no
  7313. archive_cmds=
  7314. archive_expsym_cmds=
  7315. compiler_needs_object=no
  7316. enable_shared_with_static_runtimes=no
  7317. export_dynamic_flag_spec=
  7318. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7319. hardcode_automatic=no
  7320. hardcode_direct=no
  7321. hardcode_direct_absolute=no
  7322. hardcode_libdir_flag_spec=
  7323. hardcode_libdir_separator=
  7324. hardcode_minus_L=no
  7325. hardcode_shlibpath_var=unsupported
  7326. inherit_rpath=no
  7327. link_all_deplibs=unknown
  7328. module_cmds=
  7329. module_expsym_cmds=
  7330. old_archive_from_new_cmds=
  7331. old_archive_from_expsyms_cmds=
  7332. thread_safe_flag_spec=
  7333. whole_archive_flag_spec=
  7334. # include_expsyms should be a list of space-separated symbols to be *always*
  7335. # included in the symbol list
  7336. include_expsyms=
  7337. # exclude_expsyms can be an extended regexp of symbols to exclude
  7338. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  7339. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  7340. # as well as any symbol that contains 'd'.
  7341. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7342. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7343. # platforms (ab)use it in PIC code, but their linkers get confused if
  7344. # the symbol is explicitly referenced. Since portable code cannot
  7345. # rely on this symbol name, it's probably fine to never include it in
  7346. # preloaded symbol tables.
  7347. # Exclude shared library initialization/finalization symbols.
  7348. extract_expsyms_cmds=
  7349. case $host_os in
  7350. cygwin* | mingw* | pw32* | cegcc*)
  7351. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7352. # When not using gcc, we currently assume that we are using
  7353. # Microsoft Visual C++.
  7354. if test yes != "$GCC"; then
  7355. with_gnu_ld=no
  7356. fi
  7357. ;;
  7358. interix*)
  7359. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7360. with_gnu_ld=yes
  7361. ;;
  7362. openbsd* | bitrig*)
  7363. with_gnu_ld=no
  7364. ;;
  7365. linux* | k*bsd*-gnu | gnu*)
  7366. link_all_deplibs=no
  7367. ;;
  7368. esac
  7369. ld_shlibs=yes
  7370. # On some targets, GNU ld is compatible enough with the native linker
  7371. # that we're better off using the native interface for both.
  7372. lt_use_gnu_ld_interface=no
  7373. if test yes = "$with_gnu_ld"; then
  7374. case $host_os in
  7375. aix*)
  7376. # The AIX port of GNU ld has always aspired to compatibility
  7377. # with the native linker. However, as the warning in the GNU ld
  7378. # block says, versions before 2.19.5* couldn't really create working
  7379. # shared libraries, regardless of the interface used.
  7380. case `$LD -v 2>&1` in
  7381. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7382. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7383. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7384. *)
  7385. lt_use_gnu_ld_interface=yes
  7386. ;;
  7387. esac
  7388. ;;
  7389. *)
  7390. lt_use_gnu_ld_interface=yes
  7391. ;;
  7392. esac
  7393. fi
  7394. if test yes = "$lt_use_gnu_ld_interface"; then
  7395. # If archive_cmds runs LD, not CC, wlarc should be empty
  7396. wlarc='$wl'
  7397. # Set some defaults for GNU ld with shared library support. These
  7398. # are reset later if shared libraries are not supported. Putting them
  7399. # here allows them to be overridden if necessary.
  7400. runpath_var=LD_RUN_PATH
  7401. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  7402. export_dynamic_flag_spec='$wl--export-dynamic'
  7403. # ancient GNU ld didn't support --whole-archive et. al.
  7404. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7405. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  7406. else
  7407. whole_archive_flag_spec=
  7408. fi
  7409. supports_anon_versioning=no
  7410. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  7411. *GNU\ gold*) supports_anon_versioning=yes ;;
  7412. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7413. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7414. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7415. *\ 2.11.*) ;; # other 2.11 versions
  7416. *) supports_anon_versioning=yes ;;
  7417. esac
  7418. # See if GNU ld supports shared libraries.
  7419. case $host_os in
  7420. aix[3-9]*)
  7421. # On AIX/PPC, the GNU linker is very broken
  7422. if test ia64 != "$host_cpu"; then
  7423. ld_shlibs=no
  7424. cat <<_LT_EOF 1>&2
  7425. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7426. *** to be unable to reliably create shared libraries on AIX.
  7427. *** Therefore, libtool is disabling shared libraries support. If you
  7428. *** really care for shared libraries, you may want to install binutils
  7429. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7430. *** You will then need to restart the configuration process.
  7431. _LT_EOF
  7432. fi
  7433. ;;
  7434. amigaos*)
  7435. case $host_cpu in
  7436. powerpc)
  7437. # see comment about AmigaOS4 .so support
  7438. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7439. archive_expsym_cmds=''
  7440. ;;
  7441. m68k)
  7442. 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)'
  7443. hardcode_libdir_flag_spec='-L$libdir'
  7444. hardcode_minus_L=yes
  7445. ;;
  7446. esac
  7447. ;;
  7448. beos*)
  7449. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7450. allow_undefined_flag=unsupported
  7451. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7452. # support --undefined. This deserves some investigation. FIXME
  7453. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7454. else
  7455. ld_shlibs=no
  7456. fi
  7457. ;;
  7458. cygwin* | mingw* | pw32* | cegcc*)
  7459. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7460. # as there is no search path for DLLs.
  7461. hardcode_libdir_flag_spec='-L$libdir'
  7462. export_dynamic_flag_spec='$wl--export-all-symbols'
  7463. allow_undefined_flag=unsupported
  7464. always_export_symbols=no
  7465. enable_shared_with_static_runtimes=yes
  7466. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  7467. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7468. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7469. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7470. # If the export-symbols file already is a .def file, use it as
  7471. # is; otherwise, prepend EXPORTS...
  7472. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  7473. cp $export_symbols $output_objdir/$soname.def;
  7474. else
  7475. echo EXPORTS > $output_objdir/$soname.def;
  7476. cat $export_symbols >> $output_objdir/$soname.def;
  7477. fi~
  7478. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7479. else
  7480. ld_shlibs=no
  7481. fi
  7482. ;;
  7483. haiku*)
  7484. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7485. link_all_deplibs=yes
  7486. ;;
  7487. os2*)
  7488. hardcode_libdir_flag_spec='-L$libdir'
  7489. hardcode_minus_L=yes
  7490. allow_undefined_flag=unsupported
  7491. shrext_cmds=.dll
  7492. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  7493. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  7494. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  7495. $ECHO EXPORTS >> $output_objdir/$libname.def~
  7496. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  7497. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  7498. emximp -o $lib $output_objdir/$libname.def'
  7499. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  7500. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  7501. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  7502. $ECHO EXPORTS >> $output_objdir/$libname.def~
  7503. prefix_cmds="$SED"~
  7504. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  7505. prefix_cmds="$prefix_cmds -e 1d";
  7506. fi~
  7507. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  7508. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  7509. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  7510. emximp -o $lib $output_objdir/$libname.def'
  7511. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  7512. enable_shared_with_static_runtimes=yes
  7513. ;;
  7514. interix[3-9]*)
  7515. hardcode_direct=no
  7516. hardcode_shlibpath_var=no
  7517. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  7518. export_dynamic_flag_spec='$wl-E'
  7519. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7520. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7521. # default) and relocated if they conflict, which is a slow very memory
  7522. # consuming and fragmenting process. To avoid this, we pick a random,
  7523. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7524. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7525. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7526. 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'
  7527. ;;
  7528. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7529. tmp_diet=no
  7530. if test linux-dietlibc = "$host_os"; then
  7531. case $cc_basename in
  7532. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7533. esac
  7534. fi
  7535. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7536. && test no = "$tmp_diet"
  7537. then
  7538. tmp_addflag=' $pic_flag'
  7539. tmp_sharedflag='-shared'
  7540. case $cc_basename,$host_cpu in
  7541. pgcc*) # Portland Group C compiler
  7542. 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'
  7543. tmp_addflag=' $pic_flag'
  7544. ;;
  7545. pgf77* | pgf90* | pgf95* | pgfortran*)
  7546. # Portland Group f77 and f90 compilers
  7547. 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'
  7548. tmp_addflag=' $pic_flag -Mnomain' ;;
  7549. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7550. tmp_addflag=' -i_dynamic' ;;
  7551. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7552. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7553. ifc* | ifort*) # Intel Fortran compiler
  7554. tmp_addflag=' -nofor_main' ;;
  7555. lf95*) # Lahey Fortran 8.1
  7556. whole_archive_flag_spec=
  7557. tmp_sharedflag='--shared' ;;
  7558. nagfor*) # NAGFOR 5.3
  7559. tmp_sharedflag='-Wl,-shared' ;;
  7560. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7561. tmp_sharedflag='-qmkshrobj'
  7562. tmp_addflag= ;;
  7563. nvcc*) # Cuda Compiler Driver 2.2
  7564. 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'
  7565. compiler_needs_object=yes
  7566. ;;
  7567. esac
  7568. case `$CC -V 2>&1 | sed 5q` in
  7569. *Sun\ C*) # Sun C 5.9
  7570. 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'
  7571. compiler_needs_object=yes
  7572. tmp_sharedflag='-G' ;;
  7573. *Sun\ F*) # Sun Fortran 8.3
  7574. tmp_sharedflag='-G' ;;
  7575. esac
  7576. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7577. if test yes = "$supports_anon_versioning"; then
  7578. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7579. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7580. echo "local: *; };" >> $output_objdir/$libname.ver~
  7581. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  7582. fi
  7583. case $cc_basename in
  7584. tcc*)
  7585. export_dynamic_flag_spec='-rdynamic'
  7586. ;;
  7587. xlf* | bgf* | bgxlf* | mpixlf*)
  7588. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7589. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7590. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  7591. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7592. if test yes = "$supports_anon_versioning"; then
  7593. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7594. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7595. echo "local: *; };" >> $output_objdir/$libname.ver~
  7596. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7597. fi
  7598. ;;
  7599. esac
  7600. else
  7601. ld_shlibs=no
  7602. fi
  7603. ;;
  7604. netbsd* | netbsdelf*-gnu)
  7605. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7606. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7607. wlarc=
  7608. else
  7609. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7610. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  7611. fi
  7612. ;;
  7613. solaris*)
  7614. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7615. ld_shlibs=no
  7616. cat <<_LT_EOF 1>&2
  7617. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7618. *** create shared libraries on Solaris systems. Therefore, libtool
  7619. *** is disabling shared libraries support. We urge you to upgrade GNU
  7620. *** binutils to release 2.9.1 or newer. Another option is to modify
  7621. *** your PATH or compiler configuration so that the native linker is
  7622. *** used, and then restart.
  7623. _LT_EOF
  7624. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7625. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7626. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  7627. else
  7628. ld_shlibs=no
  7629. fi
  7630. ;;
  7631. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7632. case `$LD -v 2>&1` in
  7633. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7634. ld_shlibs=no
  7635. cat <<_LT_EOF 1>&2
  7636. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  7637. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7638. *** is disabling shared libraries support. We urge you to upgrade GNU
  7639. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7640. *** your PATH or compiler configuration so that the native linker is
  7641. *** used, and then restart.
  7642. _LT_EOF
  7643. ;;
  7644. *)
  7645. # For security reasons, it is highly recommended that you always
  7646. # use absolute paths for naming shared libraries, and exclude the
  7647. # DT_RUNPATH tag from executables and libraries. But doing so
  7648. # requires that you compile everything twice, which is a pain.
  7649. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7650. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  7651. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7652. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  7653. else
  7654. ld_shlibs=no
  7655. fi
  7656. ;;
  7657. esac
  7658. ;;
  7659. sunos4*)
  7660. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7661. wlarc=
  7662. hardcode_direct=yes
  7663. hardcode_shlibpath_var=no
  7664. ;;
  7665. *)
  7666. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7667. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7668. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  7669. else
  7670. ld_shlibs=no
  7671. fi
  7672. ;;
  7673. esac
  7674. if test no = "$ld_shlibs"; then
  7675. runpath_var=
  7676. hardcode_libdir_flag_spec=
  7677. export_dynamic_flag_spec=
  7678. whole_archive_flag_spec=
  7679. fi
  7680. else
  7681. # PORTME fill in a description of your system's linker (not GNU ld)
  7682. case $host_os in
  7683. aix3*)
  7684. allow_undefined_flag=unsupported
  7685. always_export_symbols=yes
  7686. 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'
  7687. # Note: this linker hardcodes the directories in LIBPATH if there
  7688. # are no directories specified by -L.
  7689. hardcode_minus_L=yes
  7690. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  7691. # Neither direct hardcoding nor static linking is supported with a
  7692. # broken collect2.
  7693. hardcode_direct=unsupported
  7694. fi
  7695. ;;
  7696. aix[4-9]*)
  7697. if test ia64 = "$host_cpu"; then
  7698. # On IA64, the linker does run time linking by default, so we don't
  7699. # have to do anything special.
  7700. aix_use_runtimelinking=no
  7701. exp_sym_flag='-Bexport'
  7702. no_entry_flag=
  7703. else
  7704. # If we're using GNU nm, then we don't want the "-C" option.
  7705. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  7706. # Without the "-l" option, or with the "-B" option, AIX nm treats
  7707. # weak defined symbols like other global defined symbols, whereas
  7708. # GNU nm marks them as "W".
  7709. # While the 'weak' keyword is ignored in the Export File, we need
  7710. # it in the Import File for the 'aix-soname' feature, so we have
  7711. # to replace the "-B" option with "-P" for AIX nm.
  7712. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7713. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  7714. else
  7715. export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  7716. fi
  7717. aix_use_runtimelinking=no
  7718. # Test if we are trying to use run time linking or normal
  7719. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7720. # have runtime linking enabled, and use it for executables.
  7721. # For shared libraries, we enable/disable runtime linking
  7722. # depending on the kind of the shared library created -
  7723. # when "with_aix_soname,aix_use_runtimelinking" is:
  7724. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  7725. # "aix,yes" lib.so shared, rtl:yes, for executables
  7726. # lib.a static archive
  7727. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  7728. # lib.a(lib.so.V) shared, rtl:no, for executables
  7729. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  7730. # lib.a(lib.so.V) shared, rtl:no
  7731. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  7732. # lib.a static archive
  7733. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7734. for ld_flag in $LDFLAGS; do
  7735. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  7736. aix_use_runtimelinking=yes
  7737. break
  7738. fi
  7739. done
  7740. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  7741. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  7742. # so we don't have lib.a shared libs to link our executables.
  7743. # We have to force runtime linking in this case.
  7744. aix_use_runtimelinking=yes
  7745. LDFLAGS="$LDFLAGS -Wl,-brtl"
  7746. fi
  7747. ;;
  7748. esac
  7749. exp_sym_flag='-bexport'
  7750. no_entry_flag='-bnoentry'
  7751. fi
  7752. # When large executables or shared objects are built, AIX ld can
  7753. # have problems creating the table of contents. If linking a library
  7754. # or program results in "error TOC overflow" add -mminimal-toc to
  7755. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7756. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7757. archive_cmds=''
  7758. hardcode_direct=yes
  7759. hardcode_direct_absolute=yes
  7760. hardcode_libdir_separator=':'
  7761. link_all_deplibs=yes
  7762. file_list_spec='$wl-f,'
  7763. case $with_aix_soname,$aix_use_runtimelinking in
  7764. aix,*) ;; # traditional, no import file
  7765. svr4,* | *,yes) # use import file
  7766. # The Import File defines what to hardcode.
  7767. hardcode_direct=no
  7768. hardcode_direct_absolute=no
  7769. ;;
  7770. esac
  7771. if test yes = "$GCC"; then
  7772. case $host_os in aix4.[012]|aix4.[012].*)
  7773. # We only want to do this on AIX 4.2 and lower, the check
  7774. # below for broken collect2 doesn't work under 4.3+
  7775. collect2name=`$CC -print-prog-name=collect2`
  7776. if test -f "$collect2name" &&
  7777. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7778. then
  7779. # We have reworked collect2
  7780. :
  7781. else
  7782. # We have old collect2
  7783. hardcode_direct=unsupported
  7784. # It fails to find uninstalled libraries when the uninstalled
  7785. # path is not listed in the libpath. Setting hardcode_minus_L
  7786. # to unsupported forces relinking
  7787. hardcode_minus_L=yes
  7788. hardcode_libdir_flag_spec='-L$libdir'
  7789. hardcode_libdir_separator=
  7790. fi
  7791. ;;
  7792. esac
  7793. shared_flag='-shared'
  7794. if test yes = "$aix_use_runtimelinking"; then
  7795. shared_flag="$shared_flag "'$wl-G'
  7796. fi
  7797. # Need to ensure runtime linking is disabled for the traditional
  7798. # shared library, or the linker may eventually find shared libraries
  7799. # /with/ Import File - we do not want to mix them.
  7800. shared_flag_aix='-shared'
  7801. shared_flag_svr4='-shared $wl-G'
  7802. else
  7803. # not using gcc
  7804. if test ia64 = "$host_cpu"; then
  7805. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7806. # chokes on -Wl,-G. The following line is correct:
  7807. shared_flag='-G'
  7808. else
  7809. if test yes = "$aix_use_runtimelinking"; then
  7810. shared_flag='$wl-G'
  7811. else
  7812. shared_flag='$wl-bM:SRE'
  7813. fi
  7814. shared_flag_aix='$wl-bM:SRE'
  7815. shared_flag_svr4='$wl-G'
  7816. fi
  7817. fi
  7818. export_dynamic_flag_spec='$wl-bexpall'
  7819. # It seems that -bexpall does not export symbols beginning with
  7820. # underscore (_), so it is better to generate a list of symbols to export.
  7821. always_export_symbols=yes
  7822. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  7823. # Warning - without using the other runtime loading flags (-brtl),
  7824. # -berok will link without error, but may produce a broken library.
  7825. allow_undefined_flag='-berok'
  7826. # Determine the default libpath from the value encoded in an
  7827. # empty executable.
  7828. if test set = "${lt_cv_aix_libpath+set}"; then
  7829. aix_libpath=$lt_cv_aix_libpath
  7830. else
  7831. if ${lt_cv_aix_libpath_+:} false; then :
  7832. $as_echo_n "(cached) " >&6
  7833. else
  7834. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7835. /* end confdefs.h. */
  7836. int
  7837. main ()
  7838. {
  7839. ;
  7840. return 0;
  7841. }
  7842. _ACEOF
  7843. if ac_fn_c_try_link "$LINENO"; then :
  7844. lt_aix_libpath_sed='
  7845. /Import File Strings/,/^$/ {
  7846. /^0/ {
  7847. s/^0 *\([^ ]*\) *$/\1/
  7848. p
  7849. }
  7850. }'
  7851. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7852. # Check for a 64-bit object if we didn't find anything.
  7853. if test -z "$lt_cv_aix_libpath_"; then
  7854. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7855. fi
  7856. fi
  7857. rm -f core conftest.err conftest.$ac_objext \
  7858. conftest$ac_exeext conftest.$ac_ext
  7859. if test -z "$lt_cv_aix_libpath_"; then
  7860. lt_cv_aix_libpath_=/usr/lib:/lib
  7861. fi
  7862. fi
  7863. aix_libpath=$lt_cv_aix_libpath_
  7864. fi
  7865. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  7866. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  7867. else
  7868. if test ia64 = "$host_cpu"; then
  7869. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  7870. allow_undefined_flag="-z nodefs"
  7871. 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"
  7872. else
  7873. # Determine the default libpath from the value encoded in an
  7874. # empty executable.
  7875. if test set = "${lt_cv_aix_libpath+set}"; then
  7876. aix_libpath=$lt_cv_aix_libpath
  7877. else
  7878. if ${lt_cv_aix_libpath_+:} false; then :
  7879. $as_echo_n "(cached) " >&6
  7880. else
  7881. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7882. /* end confdefs.h. */
  7883. int
  7884. main ()
  7885. {
  7886. ;
  7887. return 0;
  7888. }
  7889. _ACEOF
  7890. if ac_fn_c_try_link "$LINENO"; then :
  7891. lt_aix_libpath_sed='
  7892. /Import File Strings/,/^$/ {
  7893. /^0/ {
  7894. s/^0 *\([^ ]*\) *$/\1/
  7895. p
  7896. }
  7897. }'
  7898. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7899. # Check for a 64-bit object if we didn't find anything.
  7900. if test -z "$lt_cv_aix_libpath_"; then
  7901. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7902. fi
  7903. fi
  7904. rm -f core conftest.err conftest.$ac_objext \
  7905. conftest$ac_exeext conftest.$ac_ext
  7906. if test -z "$lt_cv_aix_libpath_"; then
  7907. lt_cv_aix_libpath_=/usr/lib:/lib
  7908. fi
  7909. fi
  7910. aix_libpath=$lt_cv_aix_libpath_
  7911. fi
  7912. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  7913. # Warning - without using the other run time loading flags,
  7914. # -berok will link without error, but may produce a broken library.
  7915. no_undefined_flag=' $wl-bernotok'
  7916. allow_undefined_flag=' $wl-berok'
  7917. if test yes = "$with_gnu_ld"; then
  7918. # We only use this code for GNU lds that support --whole-archive.
  7919. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  7920. else
  7921. # Exported symbols can be pulled into shared objects from archives
  7922. whole_archive_flag_spec='$convenience'
  7923. fi
  7924. archive_cmds_need_lc=yes
  7925. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  7926. # -brtl affects multiple linker settings, -berok does not and is overridden later
  7927. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  7928. if test svr4 != "$with_aix_soname"; then
  7929. # This is similar to how AIX traditionally builds its shared libraries.
  7930. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  7931. fi
  7932. if test aix != "$with_aix_soname"; then
  7933. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  7934. else
  7935. # used by -dlpreopen to get the symbols
  7936. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  7937. fi
  7938. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  7939. fi
  7940. fi
  7941. ;;
  7942. amigaos*)
  7943. case $host_cpu in
  7944. powerpc)
  7945. # see comment about AmigaOS4 .so support
  7946. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7947. archive_expsym_cmds=''
  7948. ;;
  7949. m68k)
  7950. 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)'
  7951. hardcode_libdir_flag_spec='-L$libdir'
  7952. hardcode_minus_L=yes
  7953. ;;
  7954. esac
  7955. ;;
  7956. bsdi[45]*)
  7957. export_dynamic_flag_spec=-rdynamic
  7958. ;;
  7959. cygwin* | mingw* | pw32* | cegcc*)
  7960. # When not using gcc, we currently assume that we are using
  7961. # Microsoft Visual C++.
  7962. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7963. # no search path for DLLs.
  7964. case $cc_basename in
  7965. cl*)
  7966. # Native MSVC
  7967. hardcode_libdir_flag_spec=' '
  7968. allow_undefined_flag=unsupported
  7969. always_export_symbols=yes
  7970. file_list_spec='@'
  7971. # Tell ltmain to make .lib files, not .a files.
  7972. libext=lib
  7973. # Tell ltmain to make .dll files, not .so files.
  7974. shrext_cmds=.dll
  7975. # FIXME: Setting linknames here is a bad hack.
  7976. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  7977. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  7978. cp "$export_symbols" "$output_objdir/$soname.def";
  7979. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  7980. else
  7981. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  7982. fi~
  7983. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  7984. linknames='
  7985. # The linker will not automatically build a static lib if we build a DLL.
  7986. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  7987. enable_shared_with_static_runtimes=yes
  7988. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  7989. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7990. # Don't use ranlib
  7991. old_postinstall_cmds='chmod 644 $oldlib'
  7992. postlink_cmds='lt_outputfile="@OUTPUT@"~
  7993. lt_tool_outputfile="@TOOL_OUTPUT@"~
  7994. case $lt_outputfile in
  7995. *.exe|*.EXE) ;;
  7996. *)
  7997. lt_outputfile=$lt_outputfile.exe
  7998. lt_tool_outputfile=$lt_tool_outputfile.exe
  7999. ;;
  8000. esac~
  8001. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  8002. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8003. $RM "$lt_outputfile.manifest";
  8004. fi'
  8005. ;;
  8006. *)
  8007. # Assume MSVC wrapper
  8008. hardcode_libdir_flag_spec=' '
  8009. allow_undefined_flag=unsupported
  8010. # Tell ltmain to make .lib files, not .a files.
  8011. libext=lib
  8012. # Tell ltmain to make .dll files, not .so files.
  8013. shrext_cmds=.dll
  8014. # FIXME: Setting linknames here is a bad hack.
  8015. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8016. # The linker will automatically build a .lib file if we build a DLL.
  8017. old_archive_from_new_cmds='true'
  8018. # FIXME: Should let the user specify the lib program.
  8019. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8020. enable_shared_with_static_runtimes=yes
  8021. ;;
  8022. esac
  8023. ;;
  8024. darwin* | rhapsody*)
  8025. archive_cmds_need_lc=no
  8026. hardcode_direct=no
  8027. hardcode_automatic=yes
  8028. hardcode_shlibpath_var=unsupported
  8029. if test yes = "$lt_cv_ld_force_load"; then
  8030. 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\"`'
  8031. else
  8032. whole_archive_flag_spec=''
  8033. fi
  8034. link_all_deplibs=yes
  8035. allow_undefined_flag=$_lt_dar_allow_undefined
  8036. case $cc_basename in
  8037. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  8038. *) _lt_dar_can_shared=$GCC ;;
  8039. esac
  8040. if test yes = "$_lt_dar_can_shared"; then
  8041. output_verbose_link_cmd=func_echo_all
  8042. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  8043. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  8044. 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"
  8045. 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"
  8046. else
  8047. ld_shlibs=no
  8048. fi
  8049. ;;
  8050. dgux*)
  8051. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8052. hardcode_libdir_flag_spec='-L$libdir'
  8053. hardcode_shlibpath_var=no
  8054. ;;
  8055. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8056. # support. Future versions do this automatically, but an explicit c++rt0.o
  8057. # does not break anything, and helps significantly (at the cost of a little
  8058. # extra space).
  8059. freebsd2.2*)
  8060. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8061. hardcode_libdir_flag_spec='-R$libdir'
  8062. hardcode_direct=yes
  8063. hardcode_shlibpath_var=no
  8064. ;;
  8065. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8066. freebsd2.*)
  8067. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8068. hardcode_direct=yes
  8069. hardcode_minus_L=yes
  8070. hardcode_shlibpath_var=no
  8071. ;;
  8072. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8073. freebsd* | dragonfly*)
  8074. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8075. hardcode_libdir_flag_spec='-R$libdir'
  8076. hardcode_direct=yes
  8077. hardcode_shlibpath_var=no
  8078. ;;
  8079. hpux9*)
  8080. if test yes = "$GCC"; then
  8081. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  8082. else
  8083. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  8084. fi
  8085. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8086. hardcode_libdir_separator=:
  8087. hardcode_direct=yes
  8088. # hardcode_minus_L: Not really in the search PATH,
  8089. # but as the default location of the library.
  8090. hardcode_minus_L=yes
  8091. export_dynamic_flag_spec='$wl-E'
  8092. ;;
  8093. hpux10*)
  8094. if test yes,no = "$GCC,$with_gnu_ld"; then
  8095. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8096. else
  8097. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8098. fi
  8099. if test no = "$with_gnu_ld"; then
  8100. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8101. hardcode_libdir_separator=:
  8102. hardcode_direct=yes
  8103. hardcode_direct_absolute=yes
  8104. export_dynamic_flag_spec='$wl-E'
  8105. # hardcode_minus_L: Not really in the search PATH,
  8106. # but as the default location of the library.
  8107. hardcode_minus_L=yes
  8108. fi
  8109. ;;
  8110. hpux11*)
  8111. if test yes,no = "$GCC,$with_gnu_ld"; then
  8112. case $host_cpu in
  8113. hppa*64*)
  8114. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8115. ;;
  8116. ia64*)
  8117. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8118. ;;
  8119. *)
  8120. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8121. ;;
  8122. esac
  8123. else
  8124. case $host_cpu in
  8125. hppa*64*)
  8126. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8127. ;;
  8128. ia64*)
  8129. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8130. ;;
  8131. *)
  8132. # Older versions of the 11.00 compiler do not understand -b yet
  8133. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8135. $as_echo_n "checking if $CC understands -b... " >&6; }
  8136. if ${lt_cv_prog_compiler__b+:} false; then :
  8137. $as_echo_n "(cached) " >&6
  8138. else
  8139. lt_cv_prog_compiler__b=no
  8140. save_LDFLAGS=$LDFLAGS
  8141. LDFLAGS="$LDFLAGS -b"
  8142. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8143. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8144. # The linker can only warn and ignore the option if not recognized
  8145. # So say no if there are warnings
  8146. if test -s conftest.err; then
  8147. # Append any errors to the config.log.
  8148. cat conftest.err 1>&5
  8149. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8150. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8151. if diff conftest.exp conftest.er2 >/dev/null; then
  8152. lt_cv_prog_compiler__b=yes
  8153. fi
  8154. else
  8155. lt_cv_prog_compiler__b=yes
  8156. fi
  8157. fi
  8158. $RM -r conftest*
  8159. LDFLAGS=$save_LDFLAGS
  8160. fi
  8161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8162. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8163. if test yes = "$lt_cv_prog_compiler__b"; then
  8164. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8165. else
  8166. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8167. fi
  8168. ;;
  8169. esac
  8170. fi
  8171. if test no = "$with_gnu_ld"; then
  8172. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8173. hardcode_libdir_separator=:
  8174. case $host_cpu in
  8175. hppa*64*|ia64*)
  8176. hardcode_direct=no
  8177. hardcode_shlibpath_var=no
  8178. ;;
  8179. *)
  8180. hardcode_direct=yes
  8181. hardcode_direct_absolute=yes
  8182. export_dynamic_flag_spec='$wl-E'
  8183. # hardcode_minus_L: Not really in the search PATH,
  8184. # but as the default location of the library.
  8185. hardcode_minus_L=yes
  8186. ;;
  8187. esac
  8188. fi
  8189. ;;
  8190. irix5* | irix6* | nonstopux*)
  8191. if test yes = "$GCC"; then
  8192. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  8193. # Try to use the -exported_symbol ld option, if it does not
  8194. # work, assume that -exports_file does not work either and
  8195. # implicitly export all symbols.
  8196. # This should be the same for all languages, so no per-tag cache variable.
  8197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8198. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8199. if ${lt_cv_irix_exported_symbol+:} false; then :
  8200. $as_echo_n "(cached) " >&6
  8201. else
  8202. save_LDFLAGS=$LDFLAGS
  8203. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  8204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8205. /* end confdefs.h. */
  8206. int foo (void) { return 0; }
  8207. _ACEOF
  8208. if ac_fn_c_try_link "$LINENO"; then :
  8209. lt_cv_irix_exported_symbol=yes
  8210. else
  8211. lt_cv_irix_exported_symbol=no
  8212. fi
  8213. rm -f core conftest.err conftest.$ac_objext \
  8214. conftest$ac_exeext conftest.$ac_ext
  8215. LDFLAGS=$save_LDFLAGS
  8216. fi
  8217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8218. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8219. if test yes = "$lt_cv_irix_exported_symbol"; then
  8220. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
  8221. fi
  8222. link_all_deplibs=no
  8223. else
  8224. 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'
  8225. 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'
  8226. fi
  8227. archive_cmds_need_lc='no'
  8228. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8229. hardcode_libdir_separator=:
  8230. inherit_rpath=yes
  8231. link_all_deplibs=yes
  8232. ;;
  8233. linux*)
  8234. case $cc_basename in
  8235. tcc*)
  8236. # Fabrice Bellard et al's Tiny C Compiler
  8237. ld_shlibs=yes
  8238. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8239. ;;
  8240. esac
  8241. ;;
  8242. netbsd* | netbsdelf*-gnu)
  8243. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8244. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8245. else
  8246. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8247. fi
  8248. hardcode_libdir_flag_spec='-R$libdir'
  8249. hardcode_direct=yes
  8250. hardcode_shlibpath_var=no
  8251. ;;
  8252. newsos6)
  8253. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8254. hardcode_direct=yes
  8255. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8256. hardcode_libdir_separator=:
  8257. hardcode_shlibpath_var=no
  8258. ;;
  8259. *nto* | *qnx*)
  8260. ;;
  8261. openbsd* | bitrig*)
  8262. if test -f /usr/libexec/ld.so; then
  8263. hardcode_direct=yes
  8264. hardcode_shlibpath_var=no
  8265. hardcode_direct_absolute=yes
  8266. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  8267. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8268. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  8269. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8270. export_dynamic_flag_spec='$wl-E'
  8271. else
  8272. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8273. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8274. fi
  8275. else
  8276. ld_shlibs=no
  8277. fi
  8278. ;;
  8279. os2*)
  8280. hardcode_libdir_flag_spec='-L$libdir'
  8281. hardcode_minus_L=yes
  8282. allow_undefined_flag=unsupported
  8283. shrext_cmds=.dll
  8284. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8285. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8286. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8287. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8288. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8289. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8290. emximp -o $lib $output_objdir/$libname.def'
  8291. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8292. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8293. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8294. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8295. prefix_cmds="$SED"~
  8296. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8297. prefix_cmds="$prefix_cmds -e 1d";
  8298. fi~
  8299. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8300. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8301. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8302. emximp -o $lib $output_objdir/$libname.def'
  8303. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8304. enable_shared_with_static_runtimes=yes
  8305. ;;
  8306. osf3*)
  8307. if test yes = "$GCC"; then
  8308. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  8309. 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'
  8310. else
  8311. allow_undefined_flag=' -expect_unresolved \*'
  8312. 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'
  8313. fi
  8314. archive_cmds_need_lc='no'
  8315. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8316. hardcode_libdir_separator=:
  8317. ;;
  8318. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8319. if test yes = "$GCC"; then
  8320. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  8321. archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  8322. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8323. else
  8324. allow_undefined_flag=' -expect_unresolved \*'
  8325. 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'
  8326. 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~
  8327. $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'
  8328. # Both c and cxx compiler support -rpath directly
  8329. hardcode_libdir_flag_spec='-rpath $libdir'
  8330. fi
  8331. archive_cmds_need_lc='no'
  8332. hardcode_libdir_separator=:
  8333. ;;
  8334. solaris*)
  8335. no_undefined_flag=' -z defs'
  8336. if test yes = "$GCC"; then
  8337. wlarc='$wl'
  8338. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8339. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8340. $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8341. else
  8342. case `$CC -V 2>&1` in
  8343. *"Compilers 5.0"*)
  8344. wlarc=''
  8345. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8346. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8347. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8348. ;;
  8349. *)
  8350. wlarc='$wl'
  8351. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8352. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8353. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8354. ;;
  8355. esac
  8356. fi
  8357. hardcode_libdir_flag_spec='-R$libdir'
  8358. hardcode_shlibpath_var=no
  8359. case $host_os in
  8360. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8361. *)
  8362. # The compiler driver will combine and reorder linker options,
  8363. # but understands '-z linker_flag'. GCC discards it without '$wl',
  8364. # but is careful enough not to reorder.
  8365. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8366. if test yes = "$GCC"; then
  8367. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  8368. else
  8369. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8370. fi
  8371. ;;
  8372. esac
  8373. link_all_deplibs=yes
  8374. ;;
  8375. sunos4*)
  8376. if test sequent = "$host_vendor"; then
  8377. # Use $CC to link under sequent, because it throws in some extra .o
  8378. # files that make .init and .fini sections work.
  8379. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8380. else
  8381. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8382. fi
  8383. hardcode_libdir_flag_spec='-L$libdir'
  8384. hardcode_direct=yes
  8385. hardcode_minus_L=yes
  8386. hardcode_shlibpath_var=no
  8387. ;;
  8388. sysv4)
  8389. case $host_vendor in
  8390. sni)
  8391. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8392. hardcode_direct=yes # is this really true???
  8393. ;;
  8394. siemens)
  8395. ## LD is ld it makes a PLAMLIB
  8396. ## CC just makes a GrossModule.
  8397. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8398. reload_cmds='$CC -r -o $output$reload_objs'
  8399. hardcode_direct=no
  8400. ;;
  8401. motorola)
  8402. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8403. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8404. ;;
  8405. esac
  8406. runpath_var='LD_RUN_PATH'
  8407. hardcode_shlibpath_var=no
  8408. ;;
  8409. sysv4.3*)
  8410. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8411. hardcode_shlibpath_var=no
  8412. export_dynamic_flag_spec='-Bexport'
  8413. ;;
  8414. sysv4*MP*)
  8415. if test -d /usr/nec; then
  8416. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8417. hardcode_shlibpath_var=no
  8418. runpath_var=LD_RUN_PATH
  8419. hardcode_runpath_var=yes
  8420. ld_shlibs=yes
  8421. fi
  8422. ;;
  8423. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8424. no_undefined_flag='$wl-z,text'
  8425. archive_cmds_need_lc=no
  8426. hardcode_shlibpath_var=no
  8427. runpath_var='LD_RUN_PATH'
  8428. if test yes = "$GCC"; then
  8429. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8430. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8431. else
  8432. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8433. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8434. fi
  8435. ;;
  8436. sysv5* | sco3.2v5* | sco5v6*)
  8437. # Note: We CANNOT use -z defs as we might desire, because we do not
  8438. # link with -lc, and that would cause any symbols used from libc to
  8439. # always be unresolved, which means just about no library would
  8440. # ever link correctly. If we're not using GNU ld we use -z text
  8441. # though, which does catch some bad symbols but isn't as heavy-handed
  8442. # as -z defs.
  8443. no_undefined_flag='$wl-z,text'
  8444. allow_undefined_flag='$wl-z,nodefs'
  8445. archive_cmds_need_lc=no
  8446. hardcode_shlibpath_var=no
  8447. hardcode_libdir_flag_spec='$wl-R,$libdir'
  8448. hardcode_libdir_separator=':'
  8449. link_all_deplibs=yes
  8450. export_dynamic_flag_spec='$wl-Bexport'
  8451. runpath_var='LD_RUN_PATH'
  8452. if test yes = "$GCC"; then
  8453. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8454. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8455. else
  8456. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8457. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8458. fi
  8459. ;;
  8460. uts4*)
  8461. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8462. hardcode_libdir_flag_spec='-L$libdir'
  8463. hardcode_shlibpath_var=no
  8464. ;;
  8465. *)
  8466. ld_shlibs=no
  8467. ;;
  8468. esac
  8469. if test sni = "$host_vendor"; then
  8470. case $host in
  8471. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8472. export_dynamic_flag_spec='$wl-Blargedynsym'
  8473. ;;
  8474. esac
  8475. fi
  8476. fi
  8477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8478. $as_echo "$ld_shlibs" >&6; }
  8479. test no = "$ld_shlibs" && can_build_shared=no
  8480. with_gnu_ld=$with_gnu_ld
  8481. #
  8482. # Do we need to explicitly link libc?
  8483. #
  8484. case "x$archive_cmds_need_lc" in
  8485. x|xyes)
  8486. # Assume -lc should be added
  8487. archive_cmds_need_lc=yes
  8488. if test yes,yes = "$GCC,$enable_shared"; then
  8489. case $archive_cmds in
  8490. *'~'*)
  8491. # FIXME: we may have to deal with multi-command sequences.
  8492. ;;
  8493. '$CC '*)
  8494. # Test whether the compiler implicitly links with -lc since on some
  8495. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8496. # to ld, don't add -lc before -lgcc.
  8497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8498. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8499. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8500. $as_echo_n "(cached) " >&6
  8501. else
  8502. $RM conftest*
  8503. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8504. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8505. (eval $ac_compile) 2>&5
  8506. ac_status=$?
  8507. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8508. test $ac_status = 0; } 2>conftest.err; then
  8509. soname=conftest
  8510. lib=conftest
  8511. libobjs=conftest.$ac_objext
  8512. deplibs=
  8513. wl=$lt_prog_compiler_wl
  8514. pic_flag=$lt_prog_compiler_pic
  8515. compiler_flags=-v
  8516. linker_flags=-v
  8517. verstring=
  8518. output_objdir=.
  8519. libname=conftest
  8520. lt_save_allow_undefined_flag=$allow_undefined_flag
  8521. allow_undefined_flag=
  8522. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8523. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8524. ac_status=$?
  8525. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8526. test $ac_status = 0; }
  8527. then
  8528. lt_cv_archive_cmds_need_lc=no
  8529. else
  8530. lt_cv_archive_cmds_need_lc=yes
  8531. fi
  8532. allow_undefined_flag=$lt_save_allow_undefined_flag
  8533. else
  8534. cat conftest.err 1>&5
  8535. fi
  8536. $RM conftest*
  8537. fi
  8538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8539. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8540. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8541. ;;
  8542. esac
  8543. fi
  8544. ;;
  8545. esac
  8546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8547. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8548. if test yes = "$GCC"; then
  8549. case $host_os in
  8550. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  8551. *) lt_awk_arg='/^libraries:/' ;;
  8552. esac
  8553. case $host_os in
  8554. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  8555. *) lt_sed_strip_eq='s|=/|/|g' ;;
  8556. esac
  8557. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8558. case $lt_search_path_spec in
  8559. *\;*)
  8560. # if the path contains ";" then we assume it to be the separator
  8561. # otherwise default to the standard path separator (i.e. ":") - it is
  8562. # assumed that no part of a normal pathname contains ";" but that should
  8563. # okay in the real world where ";" in dirpaths is itself problematic.
  8564. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8565. ;;
  8566. *)
  8567. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8568. ;;
  8569. esac
  8570. # Ok, now we have the path, separated by spaces, we can step through it
  8571. # and add multilib dir if necessary...
  8572. lt_tmp_lt_search_path_spec=
  8573. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8574. # ...but if some path component already ends with the multilib dir we assume
  8575. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  8576. case "$lt_multi_os_dir; $lt_search_path_spec " in
  8577. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  8578. lt_multi_os_dir=
  8579. ;;
  8580. esac
  8581. for lt_sys_path in $lt_search_path_spec; do
  8582. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  8583. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  8584. elif test -n "$lt_multi_os_dir"; then
  8585. test -d "$lt_sys_path" && \
  8586. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8587. fi
  8588. done
  8589. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8590. BEGIN {RS = " "; FS = "/|\n";} {
  8591. lt_foo = "";
  8592. lt_count = 0;
  8593. for (lt_i = NF; lt_i > 0; lt_i--) {
  8594. if ($lt_i != "" && $lt_i != ".") {
  8595. if ($lt_i == "..") {
  8596. lt_count++;
  8597. } else {
  8598. if (lt_count == 0) {
  8599. lt_foo = "/" $lt_i lt_foo;
  8600. } else {
  8601. lt_count--;
  8602. }
  8603. }
  8604. }
  8605. }
  8606. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8607. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8608. }'`
  8609. # AWK program above erroneously prepends '/' to C:/dos/paths
  8610. # for these hosts.
  8611. case $host_os in
  8612. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8613. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  8614. esac
  8615. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8616. else
  8617. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8618. fi
  8619. library_names_spec=
  8620. libname_spec='lib$name'
  8621. soname_spec=
  8622. shrext_cmds=.so
  8623. postinstall_cmds=
  8624. postuninstall_cmds=
  8625. finish_cmds=
  8626. finish_eval=
  8627. shlibpath_var=
  8628. shlibpath_overrides_runpath=unknown
  8629. version_type=none
  8630. dynamic_linker="$host_os ld.so"
  8631. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8632. need_lib_prefix=unknown
  8633. hardcode_into_libs=no
  8634. # when you set need_version to no, make sure it does not cause -set_version
  8635. # flags to be left without arguments
  8636. need_version=unknown
  8637. case $host_os in
  8638. aix3*)
  8639. version_type=linux # correct to gnu/linux during the next big refactor
  8640. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  8641. shlibpath_var=LIBPATH
  8642. # AIX 3 has no versioning support, so we append a major version to the name.
  8643. soname_spec='$libname$release$shared_ext$major'
  8644. ;;
  8645. aix[4-9]*)
  8646. version_type=linux # correct to gnu/linux during the next big refactor
  8647. need_lib_prefix=no
  8648. need_version=no
  8649. hardcode_into_libs=yes
  8650. if test ia64 = "$host_cpu"; then
  8651. # AIX 5 supports IA64
  8652. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  8653. shlibpath_var=LD_LIBRARY_PATH
  8654. else
  8655. # With GCC up to 2.95.x, collect2 would create an import file
  8656. # for dependence libraries. The import file would start with
  8657. # the line '#! .'. This would cause the generated library to
  8658. # depend on '.', always an invalid library. This was fixed in
  8659. # development snapshots of GCC prior to 3.0.
  8660. case $host_os in
  8661. aix4 | aix4.[01] | aix4.[01].*)
  8662. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8663. echo ' yes '
  8664. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  8665. :
  8666. else
  8667. can_build_shared=no
  8668. fi
  8669. ;;
  8670. esac
  8671. # Using Import Files as archive members, it is possible to support
  8672. # filename-based versioning of shared library archives on AIX. While
  8673. # this would work for both with and without runtime linking, it will
  8674. # prevent static linking of such archives. So we do filename-based
  8675. # shared library versioning with .so extension only, which is used
  8676. # when both runtime linking and shared linking is enabled.
  8677. # Unfortunately, runtime linking may impact performance, so we do
  8678. # not want this to be the default eventually. Also, we use the
  8679. # versioned .so libs for executables only if there is the -brtl
  8680. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  8681. # To allow for filename-based versioning support, we need to create
  8682. # libNAME.so.V as an archive file, containing:
  8683. # *) an Import File, referring to the versioned filename of the
  8684. # archive as well as the shared archive member, telling the
  8685. # bitwidth (32 or 64) of that shared object, and providing the
  8686. # list of exported symbols of that shared object, eventually
  8687. # decorated with the 'weak' keyword
  8688. # *) the shared object with the F_LOADONLY flag set, to really avoid
  8689. # it being seen by the linker.
  8690. # At run time we better use the real file rather than another symlink,
  8691. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  8692. case $with_aix_soname,$aix_use_runtimelinking in
  8693. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  8694. # soname into executable. Probably we can add versioning support to
  8695. # collect2, so additional links can be useful in future.
  8696. aix,yes) # traditional libtool
  8697. dynamic_linker='AIX unversionable lib.so'
  8698. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8699. # instead of lib<name>.a to let people know that these are not
  8700. # typical AIX shared libraries.
  8701. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  8702. ;;
  8703. aix,no) # traditional AIX only
  8704. dynamic_linker='AIX lib.a(lib.so.V)'
  8705. # We preserve .a as extension for shared libraries through AIX4.2
  8706. # and later when we are not doing run time linking.
  8707. library_names_spec='$libname$release.a $libname.a'
  8708. soname_spec='$libname$release$shared_ext$major'
  8709. ;;
  8710. svr4,*) # full svr4 only
  8711. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  8712. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  8713. # We do not specify a path in Import Files, so LIBPATH fires.
  8714. shlibpath_overrides_runpath=yes
  8715. ;;
  8716. *,yes) # both, prefer svr4
  8717. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  8718. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  8719. # unpreferred sharedlib libNAME.a needs extra handling
  8720. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  8721. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  8722. # We do not specify a path in Import Files, so LIBPATH fires.
  8723. shlibpath_overrides_runpath=yes
  8724. ;;
  8725. *,no) # both, prefer aix
  8726. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  8727. library_names_spec='$libname$release.a $libname.a'
  8728. soname_spec='$libname$release$shared_ext$major'
  8729. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  8730. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  8731. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  8732. ;;
  8733. esac
  8734. shlibpath_var=LIBPATH
  8735. fi
  8736. ;;
  8737. amigaos*)
  8738. case $host_cpu in
  8739. powerpc)
  8740. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8741. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8742. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  8743. ;;
  8744. m68k)
  8745. library_names_spec='$libname.ixlibrary $libname.a'
  8746. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8747. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  8748. ;;
  8749. esac
  8750. ;;
  8751. beos*)
  8752. library_names_spec='$libname$shared_ext'
  8753. dynamic_linker="$host_os ld.so"
  8754. shlibpath_var=LIBRARY_PATH
  8755. ;;
  8756. bsdi[45]*)
  8757. version_type=linux # correct to gnu/linux during the next big refactor
  8758. need_version=no
  8759. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  8760. soname_spec='$libname$release$shared_ext$major'
  8761. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8762. shlibpath_var=LD_LIBRARY_PATH
  8763. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8764. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8765. # the default ld.so.conf also contains /usr/contrib/lib and
  8766. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8767. # libtool to hard-code these into programs
  8768. ;;
  8769. cygwin* | mingw* | pw32* | cegcc*)
  8770. version_type=windows
  8771. shrext_cmds=.dll
  8772. need_version=no
  8773. need_lib_prefix=no
  8774. case $GCC,$cc_basename in
  8775. yes,*)
  8776. # gcc
  8777. library_names_spec='$libname.dll.a'
  8778. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8779. postinstall_cmds='base_file=`basename \$file`~
  8780. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  8781. dldir=$destdir/`dirname \$dlpath`~
  8782. test -d \$dldir || mkdir -p \$dldir~
  8783. $install_prog $dir/$dlname \$dldir/$dlname~
  8784. chmod a+x \$dldir/$dlname~
  8785. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8786. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8787. fi'
  8788. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8789. dlpath=$dir/\$dldll~
  8790. $RM \$dlpath'
  8791. shlibpath_overrides_runpath=yes
  8792. case $host_os in
  8793. cygwin*)
  8794. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8795. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  8796. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8797. ;;
  8798. mingw* | cegcc*)
  8799. # MinGW DLLs use traditional 'lib' prefix
  8800. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  8801. ;;
  8802. pw32*)
  8803. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8804. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  8805. ;;
  8806. esac
  8807. dynamic_linker='Win32 ld.exe'
  8808. ;;
  8809. *,cl*)
  8810. # Native MSVC
  8811. libname_spec='$name'
  8812. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  8813. library_names_spec='$libname.dll.lib'
  8814. case $build_os in
  8815. mingw*)
  8816. sys_lib_search_path_spec=
  8817. lt_save_ifs=$IFS
  8818. IFS=';'
  8819. for lt_path in $LIB
  8820. do
  8821. IFS=$lt_save_ifs
  8822. # Let DOS variable expansion print the short 8.3 style file name.
  8823. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8824. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8825. done
  8826. IFS=$lt_save_ifs
  8827. # Convert to MSYS style.
  8828. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8829. ;;
  8830. cygwin*)
  8831. # Convert to unix form, then to dos form, then back to unix form
  8832. # but this time dos style (no spaces!) so that the unix form looks
  8833. # like /cygdrive/c/PROGRA~1:/cygdr...
  8834. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8835. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8836. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8837. ;;
  8838. *)
  8839. sys_lib_search_path_spec=$LIB
  8840. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8841. # It is most probably a Windows format PATH.
  8842. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8843. else
  8844. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8845. fi
  8846. # FIXME: find the short name or the path components, as spaces are
  8847. # common. (e.g. "Program Files" -> "PROGRA~1")
  8848. ;;
  8849. esac
  8850. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8851. postinstall_cmds='base_file=`basename \$file`~
  8852. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  8853. dldir=$destdir/`dirname \$dlpath`~
  8854. test -d \$dldir || mkdir -p \$dldir~
  8855. $install_prog $dir/$dlname \$dldir/$dlname'
  8856. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8857. dlpath=$dir/\$dldll~
  8858. $RM \$dlpath'
  8859. shlibpath_overrides_runpath=yes
  8860. dynamic_linker='Win32 link.exe'
  8861. ;;
  8862. *)
  8863. # Assume MSVC wrapper
  8864. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  8865. dynamic_linker='Win32 ld.exe'
  8866. ;;
  8867. esac
  8868. # FIXME: first we should search . and the directory the executable is in
  8869. shlibpath_var=PATH
  8870. ;;
  8871. darwin* | rhapsody*)
  8872. dynamic_linker="$host_os dyld"
  8873. version_type=darwin
  8874. need_lib_prefix=no
  8875. need_version=no
  8876. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  8877. soname_spec='$libname$release$major$shared_ext'
  8878. shlibpath_overrides_runpath=yes
  8879. shlibpath_var=DYLD_LIBRARY_PATH
  8880. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8881. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8882. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8883. ;;
  8884. dgux*)
  8885. version_type=linux # correct to gnu/linux during the next big refactor
  8886. need_lib_prefix=no
  8887. need_version=no
  8888. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  8889. soname_spec='$libname$release$shared_ext$major'
  8890. shlibpath_var=LD_LIBRARY_PATH
  8891. ;;
  8892. freebsd* | dragonfly*)
  8893. # DragonFly does not have aout. When/if they implement a new
  8894. # versioning mechanism, adjust this.
  8895. if test -x /usr/bin/objformat; then
  8896. objformat=`/usr/bin/objformat`
  8897. else
  8898. case $host_os in
  8899. freebsd[23].*) objformat=aout ;;
  8900. *) objformat=elf ;;
  8901. esac
  8902. fi
  8903. version_type=freebsd-$objformat
  8904. case $version_type in
  8905. freebsd-elf*)
  8906. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  8907. soname_spec='$libname$release$shared_ext$major'
  8908. need_version=no
  8909. need_lib_prefix=no
  8910. ;;
  8911. freebsd-*)
  8912. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  8913. need_version=yes
  8914. ;;
  8915. esac
  8916. shlibpath_var=LD_LIBRARY_PATH
  8917. case $host_os in
  8918. freebsd2.*)
  8919. shlibpath_overrides_runpath=yes
  8920. ;;
  8921. freebsd3.[01]* | freebsdelf3.[01]*)
  8922. shlibpath_overrides_runpath=yes
  8923. hardcode_into_libs=yes
  8924. ;;
  8925. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8926. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8927. shlibpath_overrides_runpath=no
  8928. hardcode_into_libs=yes
  8929. ;;
  8930. *) # from 4.6 on, and DragonFly
  8931. shlibpath_overrides_runpath=yes
  8932. hardcode_into_libs=yes
  8933. ;;
  8934. esac
  8935. ;;
  8936. haiku*)
  8937. version_type=linux # correct to gnu/linux during the next big refactor
  8938. need_lib_prefix=no
  8939. need_version=no
  8940. dynamic_linker="$host_os runtime_loader"
  8941. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  8942. soname_spec='$libname$release$shared_ext$major'
  8943. shlibpath_var=LIBRARY_PATH
  8944. shlibpath_overrides_runpath=no
  8945. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  8946. hardcode_into_libs=yes
  8947. ;;
  8948. hpux9* | hpux10* | hpux11*)
  8949. # Give a soname corresponding to the major version so that dld.sl refuses to
  8950. # link against other versions.
  8951. version_type=sunos
  8952. need_lib_prefix=no
  8953. need_version=no
  8954. case $host_cpu in
  8955. ia64*)
  8956. shrext_cmds='.so'
  8957. hardcode_into_libs=yes
  8958. dynamic_linker="$host_os dld.so"
  8959. shlibpath_var=LD_LIBRARY_PATH
  8960. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8961. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  8962. soname_spec='$libname$release$shared_ext$major'
  8963. if test 32 = "$HPUX_IA64_MODE"; then
  8964. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8965. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  8966. else
  8967. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8968. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  8969. fi
  8970. ;;
  8971. hppa*64*)
  8972. shrext_cmds='.sl'
  8973. hardcode_into_libs=yes
  8974. dynamic_linker="$host_os dld.sl"
  8975. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8976. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8977. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  8978. soname_spec='$libname$release$shared_ext$major'
  8979. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8980. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8981. ;;
  8982. *)
  8983. shrext_cmds='.sl'
  8984. dynamic_linker="$host_os dld.sl"
  8985. shlibpath_var=SHLIB_PATH
  8986. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8987. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  8988. soname_spec='$libname$release$shared_ext$major'
  8989. ;;
  8990. esac
  8991. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8992. postinstall_cmds='chmod 555 $lib'
  8993. # or fails outright, so override atomically:
  8994. install_override_mode=555
  8995. ;;
  8996. interix[3-9]*)
  8997. version_type=linux # correct to gnu/linux during the next big refactor
  8998. need_lib_prefix=no
  8999. need_version=no
  9000. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9001. soname_spec='$libname$release$shared_ext$major'
  9002. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9003. shlibpath_var=LD_LIBRARY_PATH
  9004. shlibpath_overrides_runpath=no
  9005. hardcode_into_libs=yes
  9006. ;;
  9007. irix5* | irix6* | nonstopux*)
  9008. case $host_os in
  9009. nonstopux*) version_type=nonstopux ;;
  9010. *)
  9011. if test yes = "$lt_cv_prog_gnu_ld"; then
  9012. version_type=linux # correct to gnu/linux during the next big refactor
  9013. else
  9014. version_type=irix
  9015. fi ;;
  9016. esac
  9017. need_lib_prefix=no
  9018. need_version=no
  9019. soname_spec='$libname$release$shared_ext$major'
  9020. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  9021. case $host_os in
  9022. irix5* | nonstopux*)
  9023. libsuff= shlibsuff=
  9024. ;;
  9025. *)
  9026. case $LD in # libtool.m4 will add one of these switches to LD
  9027. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9028. libsuff= shlibsuff= libmagic=32-bit;;
  9029. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9030. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9031. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9032. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9033. *) libsuff= shlibsuff= libmagic=never-match;;
  9034. esac
  9035. ;;
  9036. esac
  9037. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9038. shlibpath_overrides_runpath=no
  9039. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  9040. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  9041. hardcode_into_libs=yes
  9042. ;;
  9043. # No shared lib support for Linux oldld, aout, or coff.
  9044. linux*oldld* | linux*aout* | linux*coff*)
  9045. dynamic_linker=no
  9046. ;;
  9047. linux*android*)
  9048. version_type=none # Android doesn't support versioned libraries.
  9049. need_lib_prefix=no
  9050. need_version=no
  9051. library_names_spec='$libname$release$shared_ext'
  9052. soname_spec='$libname$release$shared_ext'
  9053. finish_cmds=
  9054. shlibpath_var=LD_LIBRARY_PATH
  9055. shlibpath_overrides_runpath=yes
  9056. # This implies no fast_install, which is unacceptable.
  9057. # Some rework will be needed to allow for fast_install
  9058. # before this can be enabled.
  9059. hardcode_into_libs=yes
  9060. dynamic_linker='Android linker'
  9061. # Don't embed -rpath directories since the linker doesn't support them.
  9062. hardcode_libdir_flag_spec='-L$libdir'
  9063. ;;
  9064. # This must be glibc/ELF.
  9065. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9066. version_type=linux # correct to gnu/linux during the next big refactor
  9067. need_lib_prefix=no
  9068. need_version=no
  9069. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9070. soname_spec='$libname$release$shared_ext$major'
  9071. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9072. shlibpath_var=LD_LIBRARY_PATH
  9073. shlibpath_overrides_runpath=no
  9074. # Some binutils ld are patched to set DT_RUNPATH
  9075. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9076. $as_echo_n "(cached) " >&6
  9077. else
  9078. lt_cv_shlibpath_overrides_runpath=no
  9079. save_LDFLAGS=$LDFLAGS
  9080. save_libdir=$libdir
  9081. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9082. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9083. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9084. /* end confdefs.h. */
  9085. int
  9086. main ()
  9087. {
  9088. ;
  9089. return 0;
  9090. }
  9091. _ACEOF
  9092. if ac_fn_c_try_link "$LINENO"; then :
  9093. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9094. lt_cv_shlibpath_overrides_runpath=yes
  9095. fi
  9096. fi
  9097. rm -f core conftest.err conftest.$ac_objext \
  9098. conftest$ac_exeext conftest.$ac_ext
  9099. LDFLAGS=$save_LDFLAGS
  9100. libdir=$save_libdir
  9101. fi
  9102. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9103. # This implies no fast_install, which is unacceptable.
  9104. # Some rework will be needed to allow for fast_install
  9105. # before this can be enabled.
  9106. hardcode_into_libs=yes
  9107. # Ideally, we could use ldconfig to report *all* directores which are
  9108. # searched for libraries, however this is still not possible. Aside from not
  9109. # being certain /sbin/ldconfig is available, command
  9110. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  9111. # even though it is searched at run-time. Try to do the best guess by
  9112. # appending ld.so.conf contents (and includes) to the search path.
  9113. if test -f /etc/ld.so.conf; then
  9114. 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' ' '`
  9115. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9116. fi
  9117. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9118. # powerpc, because MkLinux only supported shared libraries with the
  9119. # GNU dynamic linker. Since this was broken with cross compilers,
  9120. # most powerpc-linux boxes support dynamic linking these days and
  9121. # people can always --disable-shared, the test was removed, and we
  9122. # assume the GNU/Linux dynamic linker is in use.
  9123. dynamic_linker='GNU/Linux ld.so'
  9124. ;;
  9125. netbsdelf*-gnu)
  9126. version_type=linux
  9127. need_lib_prefix=no
  9128. need_version=no
  9129. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9130. soname_spec='${libname}${release}${shared_ext}$major'
  9131. shlibpath_var=LD_LIBRARY_PATH
  9132. shlibpath_overrides_runpath=no
  9133. hardcode_into_libs=yes
  9134. dynamic_linker='NetBSD ld.elf_so'
  9135. ;;
  9136. netbsd*)
  9137. version_type=sunos
  9138. need_lib_prefix=no
  9139. need_version=no
  9140. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9141. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9142. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9143. dynamic_linker='NetBSD (a.out) ld.so'
  9144. else
  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. dynamic_linker='NetBSD ld.elf_so'
  9148. fi
  9149. shlibpath_var=LD_LIBRARY_PATH
  9150. shlibpath_overrides_runpath=yes
  9151. hardcode_into_libs=yes
  9152. ;;
  9153. newsos6)
  9154. version_type=linux # correct to gnu/linux during the next big refactor
  9155. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9156. shlibpath_var=LD_LIBRARY_PATH
  9157. shlibpath_overrides_runpath=yes
  9158. ;;
  9159. *nto* | *qnx*)
  9160. version_type=qnx
  9161. need_lib_prefix=no
  9162. need_version=no
  9163. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9164. soname_spec='$libname$release$shared_ext$major'
  9165. shlibpath_var=LD_LIBRARY_PATH
  9166. shlibpath_overrides_runpath=no
  9167. hardcode_into_libs=yes
  9168. dynamic_linker='ldqnx.so'
  9169. ;;
  9170. openbsd* | bitrig*)
  9171. version_type=sunos
  9172. sys_lib_dlsearch_path_spec=/usr/lib
  9173. need_lib_prefix=no
  9174. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9175. need_version=no
  9176. else
  9177. need_version=yes
  9178. fi
  9179. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9180. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9181. shlibpath_var=LD_LIBRARY_PATH
  9182. shlibpath_overrides_runpath=yes
  9183. ;;
  9184. os2*)
  9185. libname_spec='$name'
  9186. version_type=windows
  9187. shrext_cmds=.dll
  9188. need_version=no
  9189. need_lib_prefix=no
  9190. # OS/2 can only load a DLL with a base name of 8 characters or less.
  9191. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  9192. v=$($ECHO $release$versuffix | tr -d .-);
  9193. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  9194. $ECHO $n$v`$shared_ext'
  9195. library_names_spec='${libname}_dll.$libext'
  9196. dynamic_linker='OS/2 ld.exe'
  9197. shlibpath_var=BEGINLIBPATH
  9198. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9199. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9200. postinstall_cmds='base_file=`basename \$file`~
  9201. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  9202. dldir=$destdir/`dirname \$dlpath`~
  9203. test -d \$dldir || mkdir -p \$dldir~
  9204. $install_prog $dir/$dlname \$dldir/$dlname~
  9205. chmod a+x \$dldir/$dlname~
  9206. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9207. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9208. fi'
  9209. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  9210. dlpath=$dir/\$dldll~
  9211. $RM \$dlpath'
  9212. ;;
  9213. osf3* | osf4* | osf5*)
  9214. version_type=osf
  9215. need_lib_prefix=no
  9216. need_version=no
  9217. soname_spec='$libname$release$shared_ext$major'
  9218. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9219. shlibpath_var=LD_LIBRARY_PATH
  9220. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9221. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9222. ;;
  9223. rdos*)
  9224. dynamic_linker=no
  9225. ;;
  9226. solaris*)
  9227. version_type=linux # correct to gnu/linux during the next big refactor
  9228. need_lib_prefix=no
  9229. need_version=no
  9230. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9231. soname_spec='$libname$release$shared_ext$major'
  9232. shlibpath_var=LD_LIBRARY_PATH
  9233. shlibpath_overrides_runpath=yes
  9234. hardcode_into_libs=yes
  9235. # ldd complains unless libraries are executable
  9236. postinstall_cmds='chmod +x $lib'
  9237. ;;
  9238. sunos4*)
  9239. version_type=sunos
  9240. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9241. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9242. shlibpath_var=LD_LIBRARY_PATH
  9243. shlibpath_overrides_runpath=yes
  9244. if test yes = "$with_gnu_ld"; then
  9245. need_lib_prefix=no
  9246. fi
  9247. need_version=yes
  9248. ;;
  9249. sysv4 | sysv4.3*)
  9250. version_type=linux # correct to gnu/linux during the next big refactor
  9251. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9252. soname_spec='$libname$release$shared_ext$major'
  9253. shlibpath_var=LD_LIBRARY_PATH
  9254. case $host_vendor in
  9255. sni)
  9256. shlibpath_overrides_runpath=no
  9257. need_lib_prefix=no
  9258. runpath_var=LD_RUN_PATH
  9259. ;;
  9260. siemens)
  9261. need_lib_prefix=no
  9262. ;;
  9263. motorola)
  9264. need_lib_prefix=no
  9265. need_version=no
  9266. shlibpath_overrides_runpath=no
  9267. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9268. ;;
  9269. esac
  9270. ;;
  9271. sysv4*MP*)
  9272. if test -d /usr/nec; then
  9273. version_type=linux # correct to gnu/linux during the next big refactor
  9274. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  9275. soname_spec='$libname$shared_ext.$major'
  9276. shlibpath_var=LD_LIBRARY_PATH
  9277. fi
  9278. ;;
  9279. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9280. version_type=sco
  9281. need_lib_prefix=no
  9282. need_version=no
  9283. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  9284. soname_spec='$libname$release$shared_ext$major'
  9285. shlibpath_var=LD_LIBRARY_PATH
  9286. shlibpath_overrides_runpath=yes
  9287. hardcode_into_libs=yes
  9288. if test yes = "$with_gnu_ld"; then
  9289. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9290. else
  9291. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9292. case $host_os in
  9293. sco3.2v5*)
  9294. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9295. ;;
  9296. esac
  9297. fi
  9298. sys_lib_dlsearch_path_spec='/usr/lib'
  9299. ;;
  9300. tpf*)
  9301. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9302. version_type=linux # correct to gnu/linux during the next big refactor
  9303. need_lib_prefix=no
  9304. need_version=no
  9305. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9306. shlibpath_var=LD_LIBRARY_PATH
  9307. shlibpath_overrides_runpath=no
  9308. hardcode_into_libs=yes
  9309. ;;
  9310. uts4*)
  9311. version_type=linux # correct to gnu/linux during the next big refactor
  9312. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9313. soname_spec='$libname$release$shared_ext$major'
  9314. shlibpath_var=LD_LIBRARY_PATH
  9315. ;;
  9316. *)
  9317. dynamic_linker=no
  9318. ;;
  9319. esac
  9320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9321. $as_echo "$dynamic_linker" >&6; }
  9322. test no = "$dynamic_linker" && can_build_shared=no
  9323. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9324. if test yes = "$GCC"; then
  9325. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9326. fi
  9327. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  9328. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  9329. fi
  9330. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  9331. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  9332. fi
  9333. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  9334. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  9335. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  9336. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  9337. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  9338. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  9339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9340. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9341. hardcode_action=
  9342. if test -n "$hardcode_libdir_flag_spec" ||
  9343. test -n "$runpath_var" ||
  9344. test yes = "$hardcode_automatic"; then
  9345. # We can hardcode non-existent directories.
  9346. if test no != "$hardcode_direct" &&
  9347. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9348. # have to relink, otherwise we might link with an installed library
  9349. # when we should be linking with a yet-to-be-installed one
  9350. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  9351. test no != "$hardcode_minus_L"; then
  9352. # Linking always hardcodes the temporary library directory.
  9353. hardcode_action=relink
  9354. else
  9355. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9356. hardcode_action=immediate
  9357. fi
  9358. else
  9359. # We cannot hardcode anything, or else we can only hardcode existing
  9360. # directories.
  9361. hardcode_action=unsupported
  9362. fi
  9363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9364. $as_echo "$hardcode_action" >&6; }
  9365. if test relink = "$hardcode_action" ||
  9366. test yes = "$inherit_rpath"; then
  9367. # Fast installation is not supported
  9368. enable_fast_install=no
  9369. elif test yes = "$shlibpath_overrides_runpath" ||
  9370. test no = "$enable_shared"; then
  9371. # Fast installation is not necessary
  9372. enable_fast_install=needless
  9373. fi
  9374. if test yes != "$enable_dlopen"; then
  9375. enable_dlopen=unknown
  9376. enable_dlopen_self=unknown
  9377. enable_dlopen_self_static=unknown
  9378. else
  9379. lt_cv_dlopen=no
  9380. lt_cv_dlopen_libs=
  9381. case $host_os in
  9382. beos*)
  9383. lt_cv_dlopen=load_add_on
  9384. lt_cv_dlopen_libs=
  9385. lt_cv_dlopen_self=yes
  9386. ;;
  9387. mingw* | pw32* | cegcc*)
  9388. lt_cv_dlopen=LoadLibrary
  9389. lt_cv_dlopen_libs=
  9390. ;;
  9391. cygwin*)
  9392. lt_cv_dlopen=dlopen
  9393. lt_cv_dlopen_libs=
  9394. ;;
  9395. darwin*)
  9396. # if libdl is installed we need to link against it
  9397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9398. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9399. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9400. $as_echo_n "(cached) " >&6
  9401. else
  9402. ac_check_lib_save_LIBS=$LIBS
  9403. LIBS="-ldl $LIBS"
  9404. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9405. /* end confdefs.h. */
  9406. /* Override any GCC internal prototype to avoid an error.
  9407. Use char because int might match the return type of a GCC
  9408. builtin and then its argument prototype would still apply. */
  9409. #ifdef __cplusplus
  9410. extern "C"
  9411. #endif
  9412. char dlopen ();
  9413. int
  9414. main ()
  9415. {
  9416. return dlopen ();
  9417. ;
  9418. return 0;
  9419. }
  9420. _ACEOF
  9421. if ac_fn_c_try_link "$LINENO"; then :
  9422. ac_cv_lib_dl_dlopen=yes
  9423. else
  9424. ac_cv_lib_dl_dlopen=no
  9425. fi
  9426. rm -f core conftest.err conftest.$ac_objext \
  9427. conftest$ac_exeext conftest.$ac_ext
  9428. LIBS=$ac_check_lib_save_LIBS
  9429. fi
  9430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9431. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9432. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9433. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  9434. else
  9435. lt_cv_dlopen=dyld
  9436. lt_cv_dlopen_libs=
  9437. lt_cv_dlopen_self=yes
  9438. fi
  9439. ;;
  9440. tpf*)
  9441. # Don't try to run any link tests for TPF. We know it's impossible
  9442. # because TPF is a cross-compiler, and we know how we open DSOs.
  9443. lt_cv_dlopen=dlopen
  9444. lt_cv_dlopen_libs=
  9445. lt_cv_dlopen_self=no
  9446. ;;
  9447. *)
  9448. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9449. if test "x$ac_cv_func_shl_load" = xyes; then :
  9450. lt_cv_dlopen=shl_load
  9451. else
  9452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9453. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9454. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9455. $as_echo_n "(cached) " >&6
  9456. else
  9457. ac_check_lib_save_LIBS=$LIBS
  9458. LIBS="-ldld $LIBS"
  9459. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9460. /* end confdefs.h. */
  9461. /* Override any GCC internal prototype to avoid an error.
  9462. Use char because int might match the return type of a GCC
  9463. builtin and then its argument prototype would still apply. */
  9464. #ifdef __cplusplus
  9465. extern "C"
  9466. #endif
  9467. char shl_load ();
  9468. int
  9469. main ()
  9470. {
  9471. return shl_load ();
  9472. ;
  9473. return 0;
  9474. }
  9475. _ACEOF
  9476. if ac_fn_c_try_link "$LINENO"; then :
  9477. ac_cv_lib_dld_shl_load=yes
  9478. else
  9479. ac_cv_lib_dld_shl_load=no
  9480. fi
  9481. rm -f core conftest.err conftest.$ac_objext \
  9482. conftest$ac_exeext conftest.$ac_ext
  9483. LIBS=$ac_check_lib_save_LIBS
  9484. fi
  9485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9486. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9487. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9488. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  9489. else
  9490. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9491. if test "x$ac_cv_func_dlopen" = xyes; then :
  9492. lt_cv_dlopen=dlopen
  9493. else
  9494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9495. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9496. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9497. $as_echo_n "(cached) " >&6
  9498. else
  9499. ac_check_lib_save_LIBS=$LIBS
  9500. LIBS="-ldl $LIBS"
  9501. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9502. /* end confdefs.h. */
  9503. /* Override any GCC internal prototype to avoid an error.
  9504. Use char because int might match the return type of a GCC
  9505. builtin and then its argument prototype would still apply. */
  9506. #ifdef __cplusplus
  9507. extern "C"
  9508. #endif
  9509. char dlopen ();
  9510. int
  9511. main ()
  9512. {
  9513. return dlopen ();
  9514. ;
  9515. return 0;
  9516. }
  9517. _ACEOF
  9518. if ac_fn_c_try_link "$LINENO"; then :
  9519. ac_cv_lib_dl_dlopen=yes
  9520. else
  9521. ac_cv_lib_dl_dlopen=no
  9522. fi
  9523. rm -f core conftest.err conftest.$ac_objext \
  9524. conftest$ac_exeext conftest.$ac_ext
  9525. LIBS=$ac_check_lib_save_LIBS
  9526. fi
  9527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9528. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9529. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9530. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  9531. else
  9532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9533. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9534. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9535. $as_echo_n "(cached) " >&6
  9536. else
  9537. ac_check_lib_save_LIBS=$LIBS
  9538. LIBS="-lsvld $LIBS"
  9539. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9540. /* end confdefs.h. */
  9541. /* Override any GCC internal prototype to avoid an error.
  9542. Use char because int might match the return type of a GCC
  9543. builtin and then its argument prototype would still apply. */
  9544. #ifdef __cplusplus
  9545. extern "C"
  9546. #endif
  9547. char dlopen ();
  9548. int
  9549. main ()
  9550. {
  9551. return dlopen ();
  9552. ;
  9553. return 0;
  9554. }
  9555. _ACEOF
  9556. if ac_fn_c_try_link "$LINENO"; then :
  9557. ac_cv_lib_svld_dlopen=yes
  9558. else
  9559. ac_cv_lib_svld_dlopen=no
  9560. fi
  9561. rm -f core conftest.err conftest.$ac_objext \
  9562. conftest$ac_exeext conftest.$ac_ext
  9563. LIBS=$ac_check_lib_save_LIBS
  9564. fi
  9565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9566. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9567. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9568. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  9569. else
  9570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9571. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9572. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9573. $as_echo_n "(cached) " >&6
  9574. else
  9575. ac_check_lib_save_LIBS=$LIBS
  9576. LIBS="-ldld $LIBS"
  9577. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9578. /* end confdefs.h. */
  9579. /* Override any GCC internal prototype to avoid an error.
  9580. Use char because int might match the return type of a GCC
  9581. builtin and then its argument prototype would still apply. */
  9582. #ifdef __cplusplus
  9583. extern "C"
  9584. #endif
  9585. char dld_link ();
  9586. int
  9587. main ()
  9588. {
  9589. return dld_link ();
  9590. ;
  9591. return 0;
  9592. }
  9593. _ACEOF
  9594. if ac_fn_c_try_link "$LINENO"; then :
  9595. ac_cv_lib_dld_dld_link=yes
  9596. else
  9597. ac_cv_lib_dld_dld_link=no
  9598. fi
  9599. rm -f core conftest.err conftest.$ac_objext \
  9600. conftest$ac_exeext conftest.$ac_ext
  9601. LIBS=$ac_check_lib_save_LIBS
  9602. fi
  9603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9604. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9605. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9606. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  9607. fi
  9608. fi
  9609. fi
  9610. fi
  9611. fi
  9612. fi
  9613. ;;
  9614. esac
  9615. if test no = "$lt_cv_dlopen"; then
  9616. enable_dlopen=no
  9617. else
  9618. enable_dlopen=yes
  9619. fi
  9620. case $lt_cv_dlopen in
  9621. dlopen)
  9622. save_CPPFLAGS=$CPPFLAGS
  9623. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9624. save_LDFLAGS=$LDFLAGS
  9625. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9626. save_LIBS=$LIBS
  9627. LIBS="$lt_cv_dlopen_libs $LIBS"
  9628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9629. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9630. if ${lt_cv_dlopen_self+:} false; then :
  9631. $as_echo_n "(cached) " >&6
  9632. else
  9633. if test yes = "$cross_compiling"; then :
  9634. lt_cv_dlopen_self=cross
  9635. else
  9636. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9637. lt_status=$lt_dlunknown
  9638. cat > conftest.$ac_ext <<_LT_EOF
  9639. #line $LINENO "configure"
  9640. #include "confdefs.h"
  9641. #if HAVE_DLFCN_H
  9642. #include <dlfcn.h>
  9643. #endif
  9644. #include <stdio.h>
  9645. #ifdef RTLD_GLOBAL
  9646. # define LT_DLGLOBAL RTLD_GLOBAL
  9647. #else
  9648. # ifdef DL_GLOBAL
  9649. # define LT_DLGLOBAL DL_GLOBAL
  9650. # else
  9651. # define LT_DLGLOBAL 0
  9652. # endif
  9653. #endif
  9654. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9655. find out it does not work in some platform. */
  9656. #ifndef LT_DLLAZY_OR_NOW
  9657. # ifdef RTLD_LAZY
  9658. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9659. # else
  9660. # ifdef DL_LAZY
  9661. # define LT_DLLAZY_OR_NOW DL_LAZY
  9662. # else
  9663. # ifdef RTLD_NOW
  9664. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9665. # else
  9666. # ifdef DL_NOW
  9667. # define LT_DLLAZY_OR_NOW DL_NOW
  9668. # else
  9669. # define LT_DLLAZY_OR_NOW 0
  9670. # endif
  9671. # endif
  9672. # endif
  9673. # endif
  9674. #endif
  9675. /* When -fvisibility=hidden is used, assume the code has been annotated
  9676. correspondingly for the symbols needed. */
  9677. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9678. int fnord () __attribute__((visibility("default")));
  9679. #endif
  9680. int fnord () { return 42; }
  9681. int main ()
  9682. {
  9683. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9684. int status = $lt_dlunknown;
  9685. if (self)
  9686. {
  9687. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9688. else
  9689. {
  9690. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9691. else puts (dlerror ());
  9692. }
  9693. /* dlclose (self); */
  9694. }
  9695. else
  9696. puts (dlerror ());
  9697. return status;
  9698. }
  9699. _LT_EOF
  9700. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9701. (eval $ac_link) 2>&5
  9702. ac_status=$?
  9703. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9704. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  9705. (./conftest; exit; ) >&5 2>/dev/null
  9706. lt_status=$?
  9707. case x$lt_status in
  9708. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9709. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9710. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9711. esac
  9712. else :
  9713. # compilation failed
  9714. lt_cv_dlopen_self=no
  9715. fi
  9716. fi
  9717. rm -fr conftest*
  9718. fi
  9719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9720. $as_echo "$lt_cv_dlopen_self" >&6; }
  9721. if test yes = "$lt_cv_dlopen_self"; then
  9722. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9724. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9725. if ${lt_cv_dlopen_self_static+:} false; then :
  9726. $as_echo_n "(cached) " >&6
  9727. else
  9728. if test yes = "$cross_compiling"; then :
  9729. lt_cv_dlopen_self_static=cross
  9730. else
  9731. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9732. lt_status=$lt_dlunknown
  9733. cat > conftest.$ac_ext <<_LT_EOF
  9734. #line $LINENO "configure"
  9735. #include "confdefs.h"
  9736. #if HAVE_DLFCN_H
  9737. #include <dlfcn.h>
  9738. #endif
  9739. #include <stdio.h>
  9740. #ifdef RTLD_GLOBAL
  9741. # define LT_DLGLOBAL RTLD_GLOBAL
  9742. #else
  9743. # ifdef DL_GLOBAL
  9744. # define LT_DLGLOBAL DL_GLOBAL
  9745. # else
  9746. # define LT_DLGLOBAL 0
  9747. # endif
  9748. #endif
  9749. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9750. find out it does not work in some platform. */
  9751. #ifndef LT_DLLAZY_OR_NOW
  9752. # ifdef RTLD_LAZY
  9753. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9754. # else
  9755. # ifdef DL_LAZY
  9756. # define LT_DLLAZY_OR_NOW DL_LAZY
  9757. # else
  9758. # ifdef RTLD_NOW
  9759. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9760. # else
  9761. # ifdef DL_NOW
  9762. # define LT_DLLAZY_OR_NOW DL_NOW
  9763. # else
  9764. # define LT_DLLAZY_OR_NOW 0
  9765. # endif
  9766. # endif
  9767. # endif
  9768. # endif
  9769. #endif
  9770. /* When -fvisibility=hidden is used, assume the code has been annotated
  9771. correspondingly for the symbols needed. */
  9772. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9773. int fnord () __attribute__((visibility("default")));
  9774. #endif
  9775. int fnord () { return 42; }
  9776. int main ()
  9777. {
  9778. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9779. int status = $lt_dlunknown;
  9780. if (self)
  9781. {
  9782. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9783. else
  9784. {
  9785. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9786. else puts (dlerror ());
  9787. }
  9788. /* dlclose (self); */
  9789. }
  9790. else
  9791. puts (dlerror ());
  9792. return status;
  9793. }
  9794. _LT_EOF
  9795. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9796. (eval $ac_link) 2>&5
  9797. ac_status=$?
  9798. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9799. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  9800. (./conftest; exit; ) >&5 2>/dev/null
  9801. lt_status=$?
  9802. case x$lt_status in
  9803. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9804. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9805. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9806. esac
  9807. else :
  9808. # compilation failed
  9809. lt_cv_dlopen_self_static=no
  9810. fi
  9811. fi
  9812. rm -fr conftest*
  9813. fi
  9814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9815. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9816. fi
  9817. CPPFLAGS=$save_CPPFLAGS
  9818. LDFLAGS=$save_LDFLAGS
  9819. LIBS=$save_LIBS
  9820. ;;
  9821. esac
  9822. case $lt_cv_dlopen_self in
  9823. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9824. *) enable_dlopen_self=unknown ;;
  9825. esac
  9826. case $lt_cv_dlopen_self_static in
  9827. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9828. *) enable_dlopen_self_static=unknown ;;
  9829. esac
  9830. fi
  9831. striplib=
  9832. old_striplib=
  9833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9834. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9835. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9836. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9837. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9839. $as_echo "yes" >&6; }
  9840. else
  9841. # FIXME - insert some real tests, host_os isn't really good enough
  9842. case $host_os in
  9843. darwin*)
  9844. if test -n "$STRIP"; then
  9845. striplib="$STRIP -x"
  9846. old_striplib="$STRIP -S"
  9847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9848. $as_echo "yes" >&6; }
  9849. else
  9850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9851. $as_echo "no" >&6; }
  9852. fi
  9853. ;;
  9854. *)
  9855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9856. $as_echo "no" >&6; }
  9857. ;;
  9858. esac
  9859. fi
  9860. # Report what library types will actually be built
  9861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9862. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9864. $as_echo "$can_build_shared" >&6; }
  9865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9866. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9867. test no = "$can_build_shared" && enable_shared=no
  9868. # On AIX, shared libraries and static libraries use the same namespace, and
  9869. # are all built from PIC.
  9870. case $host_os in
  9871. aix3*)
  9872. test yes = "$enable_shared" && enable_static=no
  9873. if test -n "$RANLIB"; then
  9874. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9875. postinstall_cmds='$RANLIB $lib'
  9876. fi
  9877. ;;
  9878. aix[4-9]*)
  9879. if test ia64 != "$host_cpu"; then
  9880. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  9881. yes,aix,yes) ;; # shared object as lib.so file only
  9882. yes,svr4,*) ;; # shared object as lib.so archive member only
  9883. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  9884. esac
  9885. fi
  9886. ;;
  9887. esac
  9888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9889. $as_echo "$enable_shared" >&6; }
  9890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9891. $as_echo_n "checking whether to build static libraries... " >&6; }
  9892. # Make sure either enable_shared or enable_static is yes.
  9893. test yes = "$enable_shared" || enable_static=yes
  9894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9895. $as_echo "$enable_static" >&6; }
  9896. fi
  9897. ac_ext=c
  9898. ac_cpp='$CPP $CPPFLAGS'
  9899. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9900. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9901. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9902. CC=$lt_save_CC
  9903. ac_config_commands="$ac_config_commands libtool"
  9904. # Only expand once:
  9905. LT_RELEASE=$MAJOR_VERSION.$MINOR_VERSION
  9906. LT_CURRENT=`expr $MICRO_VERSION - $INTERFACE_AGE`
  9907. LT_REVISION=$INTERFACE_AGE
  9908. LT_AGE=`expr $BINARY_AGE - $INTERFACE_AGE`
  9909. am__api_version='1.15'
  9910. # Find a good install program. We prefer a C program (faster),
  9911. # so one script is as good as another. But avoid the broken or
  9912. # incompatible versions:
  9913. # SysV /etc/install, /usr/sbin/install
  9914. # SunOS /usr/etc/install
  9915. # IRIX /sbin/install
  9916. # AIX /bin/install
  9917. # AmigaOS /C/install, which installs bootblocks on floppy discs
  9918. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  9919. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  9920. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  9921. # OS/2's system install, which has a completely different semantic
  9922. # ./install, which can be erroneously created by make from ./install.sh.
  9923. # Reject install programs that cannot install multiple files.
  9924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  9925. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  9926. if test -z "$INSTALL"; then
  9927. if ${ac_cv_path_install+:} false; then :
  9928. $as_echo_n "(cached) " >&6
  9929. else
  9930. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9931. for as_dir in $PATH
  9932. do
  9933. IFS=$as_save_IFS
  9934. test -z "$as_dir" && as_dir=.
  9935. # Account for people who put trailing slashes in PATH elements.
  9936. case $as_dir/ in #((
  9937. ./ | .// | /[cC]/* | \
  9938. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  9939. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  9940. /usr/ucb/* ) ;;
  9941. *)
  9942. # OSF1 and SCO ODT 3.0 have their own names for install.
  9943. # Don't use installbsd from OSF since it installs stuff as root
  9944. # by default.
  9945. for ac_prog in ginstall scoinst install; do
  9946. for ac_exec_ext in '' $ac_executable_extensions; do
  9947. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  9948. if test $ac_prog = install &&
  9949. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  9950. # AIX install. It has an incompatible calling convention.
  9951. :
  9952. elif test $ac_prog = install &&
  9953. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  9954. # program-specific install script used by HP pwplus--don't use.
  9955. :
  9956. else
  9957. rm -rf conftest.one conftest.two conftest.dir
  9958. echo one > conftest.one
  9959. echo two > conftest.two
  9960. mkdir conftest.dir
  9961. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  9962. test -s conftest.one && test -s conftest.two &&
  9963. test -s conftest.dir/conftest.one &&
  9964. test -s conftest.dir/conftest.two
  9965. then
  9966. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  9967. break 3
  9968. fi
  9969. fi
  9970. fi
  9971. done
  9972. done
  9973. ;;
  9974. esac
  9975. done
  9976. IFS=$as_save_IFS
  9977. rm -rf conftest.one conftest.two conftest.dir
  9978. fi
  9979. if test "${ac_cv_path_install+set}" = set; then
  9980. INSTALL=$ac_cv_path_install
  9981. else
  9982. # As a last resort, use the slow shell script. Don't cache a
  9983. # value for INSTALL within a source directory, because that will
  9984. # break other packages using the cache if that directory is
  9985. # removed, or if the value is a relative name.
  9986. INSTALL=$ac_install_sh
  9987. fi
  9988. fi
  9989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  9990. $as_echo "$INSTALL" >&6; }
  9991. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  9992. # It thinks the first close brace ends the variable substitution.
  9993. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  9994. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  9995. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  9996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  9997. $as_echo_n "checking whether build environment is sane... " >&6; }
  9998. # Reject unsafe characters in $srcdir or the absolute working directory
  9999. # name. Accept space and tab only in the latter.
  10000. am_lf='
  10001. '
  10002. case `pwd` in
  10003. *[\\\"\#\$\&\'\`$am_lf]*)
  10004. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  10005. esac
  10006. case $srcdir in
  10007. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  10008. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  10009. esac
  10010. # Do 'set' in a subshell so we don't clobber the current shell's
  10011. # arguments. Must try -L first in case configure is actually a
  10012. # symlink; some systems play weird games with the mod time of symlinks
  10013. # (eg FreeBSD returns the mod time of the symlink's containing
  10014. # directory).
  10015. if (
  10016. am_has_slept=no
  10017. for am_try in 1 2; do
  10018. echo "timestamp, slept: $am_has_slept" > conftest.file
  10019. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  10020. if test "$*" = "X"; then
  10021. # -L didn't work.
  10022. set X `ls -t "$srcdir/configure" conftest.file`
  10023. fi
  10024. if test "$*" != "X $srcdir/configure conftest.file" \
  10025. && test "$*" != "X conftest.file $srcdir/configure"; then
  10026. # If neither matched, then we have a broken ls. This can happen
  10027. # if, for instance, CONFIG_SHELL is bash and it inherits a
  10028. # broken ls alias from the environment. This has actually
  10029. # happened. Such a system could not be considered "sane".
  10030. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  10031. alias in your environment" "$LINENO" 5
  10032. fi
  10033. if test "$2" = conftest.file || test $am_try -eq 2; then
  10034. break
  10035. fi
  10036. # Just in case.
  10037. sleep 1
  10038. am_has_slept=yes
  10039. done
  10040. test "$2" = conftest.file
  10041. )
  10042. then
  10043. # Ok.
  10044. :
  10045. else
  10046. as_fn_error $? "newly created file is older than distributed files!
  10047. Check your system clock" "$LINENO" 5
  10048. fi
  10049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10050. $as_echo "yes" >&6; }
  10051. # If we didn't sleep, we still need to ensure time stamps of config.status and
  10052. # generated files are strictly newer.
  10053. am_sleep_pid=
  10054. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  10055. ( sleep 1 ) &
  10056. am_sleep_pid=$!
  10057. fi
  10058. rm -f conftest.file
  10059. test "$program_prefix" != NONE &&
  10060. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  10061. # Use a double $ so make ignores it.
  10062. test "$program_suffix" != NONE &&
  10063. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  10064. # Double any \ or $.
  10065. # By default was `s,x,x', remove it if useless.
  10066. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  10067. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  10068. if test x"${MISSING+set}" != xset; then
  10069. case $am_aux_dir in
  10070. *\ * | *\ *)
  10071. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  10072. *)
  10073. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  10074. esac
  10075. fi
  10076. # Use eval to expand $SHELL
  10077. if eval "$MISSING --is-lightweight"; then
  10078. am_missing_run="$MISSING "
  10079. else
  10080. am_missing_run=
  10081. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  10082. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  10083. fi
  10084. if test x"${install_sh+set}" != xset; then
  10085. case $am_aux_dir in
  10086. *\ * | *\ *)
  10087. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  10088. *)
  10089. install_sh="\${SHELL} $am_aux_dir/install-sh"
  10090. esac
  10091. fi
  10092. # Installed binaries are usually stripped using 'strip' when the user
  10093. # run "make install-strip". However 'strip' might not be the right
  10094. # tool to use in cross-compilation environments, therefore Automake
  10095. # will honor the 'STRIP' environment variable to overrule this program.
  10096. if test "$cross_compiling" != no; then
  10097. if test -n "$ac_tool_prefix"; then
  10098. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  10099. set dummy ${ac_tool_prefix}strip; ac_word=$2
  10100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10101. $as_echo_n "checking for $ac_word... " >&6; }
  10102. if ${ac_cv_prog_STRIP+:} false; then :
  10103. $as_echo_n "(cached) " >&6
  10104. else
  10105. if test -n "$STRIP"; then
  10106. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  10107. else
  10108. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10109. for as_dir in $PATH
  10110. do
  10111. IFS=$as_save_IFS
  10112. test -z "$as_dir" && as_dir=.
  10113. for ac_exec_ext in '' $ac_executable_extensions; do
  10114. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10115. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  10116. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10117. break 2
  10118. fi
  10119. done
  10120. done
  10121. IFS=$as_save_IFS
  10122. fi
  10123. fi
  10124. STRIP=$ac_cv_prog_STRIP
  10125. if test -n "$STRIP"; then
  10126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  10127. $as_echo "$STRIP" >&6; }
  10128. else
  10129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10130. $as_echo "no" >&6; }
  10131. fi
  10132. fi
  10133. if test -z "$ac_cv_prog_STRIP"; then
  10134. ac_ct_STRIP=$STRIP
  10135. # Extract the first word of "strip", so it can be a program name with args.
  10136. set dummy strip; ac_word=$2
  10137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10138. $as_echo_n "checking for $ac_word... " >&6; }
  10139. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  10140. $as_echo_n "(cached) " >&6
  10141. else
  10142. if test -n "$ac_ct_STRIP"; then
  10143. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  10144. else
  10145. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10146. for as_dir in $PATH
  10147. do
  10148. IFS=$as_save_IFS
  10149. test -z "$as_dir" && as_dir=.
  10150. for ac_exec_ext in '' $ac_executable_extensions; do
  10151. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10152. ac_cv_prog_ac_ct_STRIP="strip"
  10153. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10154. break 2
  10155. fi
  10156. done
  10157. done
  10158. IFS=$as_save_IFS
  10159. fi
  10160. fi
  10161. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  10162. if test -n "$ac_ct_STRIP"; then
  10163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  10164. $as_echo "$ac_ct_STRIP" >&6; }
  10165. else
  10166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10167. $as_echo "no" >&6; }
  10168. fi
  10169. if test "x$ac_ct_STRIP" = x; then
  10170. STRIP=":"
  10171. else
  10172. case $cross_compiling:$ac_tool_warned in
  10173. yes:)
  10174. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10175. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10176. ac_tool_warned=yes ;;
  10177. esac
  10178. STRIP=$ac_ct_STRIP
  10179. fi
  10180. else
  10181. STRIP="$ac_cv_prog_STRIP"
  10182. fi
  10183. fi
  10184. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  10185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  10186. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  10187. if test -z "$MKDIR_P"; then
  10188. if ${ac_cv_path_mkdir+:} false; then :
  10189. $as_echo_n "(cached) " >&6
  10190. else
  10191. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10192. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  10193. do
  10194. IFS=$as_save_IFS
  10195. test -z "$as_dir" && as_dir=.
  10196. for ac_prog in mkdir gmkdir; do
  10197. for ac_exec_ext in '' $ac_executable_extensions; do
  10198. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  10199. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  10200. 'mkdir (GNU coreutils) '* | \
  10201. 'mkdir (coreutils) '* | \
  10202. 'mkdir (fileutils) '4.1*)
  10203. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  10204. break 3;;
  10205. esac
  10206. done
  10207. done
  10208. done
  10209. IFS=$as_save_IFS
  10210. fi
  10211. test -d ./--version && rmdir ./--version
  10212. if test "${ac_cv_path_mkdir+set}" = set; then
  10213. MKDIR_P="$ac_cv_path_mkdir -p"
  10214. else
  10215. # As a last resort, use the slow shell script. Don't cache a
  10216. # value for MKDIR_P within a source directory, because that will
  10217. # break other packages using the cache if that directory is
  10218. # removed, or if the value is a relative name.
  10219. MKDIR_P="$ac_install_sh -d"
  10220. fi
  10221. fi
  10222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  10223. $as_echo "$MKDIR_P" >&6; }
  10224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  10225. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  10226. set x ${MAKE-make}
  10227. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  10228. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  10229. $as_echo_n "(cached) " >&6
  10230. else
  10231. cat >conftest.make <<\_ACEOF
  10232. SHELL = /bin/sh
  10233. all:
  10234. @echo '@@@%%%=$(MAKE)=@@@%%%'
  10235. _ACEOF
  10236. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  10237. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  10238. *@@@%%%=?*=@@@%%%*)
  10239. eval ac_cv_prog_make_${ac_make}_set=yes;;
  10240. *)
  10241. eval ac_cv_prog_make_${ac_make}_set=no;;
  10242. esac
  10243. rm -f conftest.make
  10244. fi
  10245. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  10246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10247. $as_echo "yes" >&6; }
  10248. SET_MAKE=
  10249. else
  10250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10251. $as_echo "no" >&6; }
  10252. SET_MAKE="MAKE=${MAKE-make}"
  10253. fi
  10254. rm -rf .tst 2>/dev/null
  10255. mkdir .tst 2>/dev/null
  10256. if test -d .tst; then
  10257. am__leading_dot=.
  10258. else
  10259. am__leading_dot=_
  10260. fi
  10261. rmdir .tst 2>/dev/null
  10262. DEPDIR="${am__leading_dot}deps"
  10263. ac_config_commands="$ac_config_commands depfiles"
  10264. am_make=${MAKE-make}
  10265. cat > confinc << 'END'
  10266. am__doit:
  10267. @echo this is the am__doit target
  10268. .PHONY: am__doit
  10269. END
  10270. # If we don't find an include directive, just comment out the code.
  10271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  10272. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  10273. am__include="#"
  10274. am__quote=
  10275. _am_result=none
  10276. # First try GNU make style include.
  10277. echo "include confinc" > confmf
  10278. # Ignore all kinds of additional output from 'make'.
  10279. case `$am_make -s -f confmf 2> /dev/null` in #(
  10280. *the\ am__doit\ target*)
  10281. am__include=include
  10282. am__quote=
  10283. _am_result=GNU
  10284. ;;
  10285. esac
  10286. # Now try BSD make style include.
  10287. if test "$am__include" = "#"; then
  10288. echo '.include "confinc"' > confmf
  10289. case `$am_make -s -f confmf 2> /dev/null` in #(
  10290. *the\ am__doit\ target*)
  10291. am__include=.include
  10292. am__quote="\""
  10293. _am_result=BSD
  10294. ;;
  10295. esac
  10296. fi
  10297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  10298. $as_echo "$_am_result" >&6; }
  10299. rm -f confinc confmf
  10300. # Check whether --enable-dependency-tracking was given.
  10301. if test "${enable_dependency_tracking+set}" = set; then :
  10302. enableval=$enable_dependency_tracking;
  10303. fi
  10304. if test "x$enable_dependency_tracking" != xno; then
  10305. am_depcomp="$ac_aux_dir/depcomp"
  10306. AMDEPBACKSLASH='\'
  10307. am__nodep='_no'
  10308. fi
  10309. if test "x$enable_dependency_tracking" != xno; then
  10310. AMDEP_TRUE=
  10311. AMDEP_FALSE='#'
  10312. else
  10313. AMDEP_TRUE='#'
  10314. AMDEP_FALSE=
  10315. fi
  10316. # Check whether --enable-silent-rules was given.
  10317. if test "${enable_silent_rules+set}" = set; then :
  10318. enableval=$enable_silent_rules;
  10319. fi
  10320. case $enable_silent_rules in # (((
  10321. yes) AM_DEFAULT_VERBOSITY=0;;
  10322. no) AM_DEFAULT_VERBOSITY=1;;
  10323. *) AM_DEFAULT_VERBOSITY=1;;
  10324. esac
  10325. am_make=${MAKE-make}
  10326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  10327. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  10328. if ${am_cv_make_support_nested_variables+:} false; then :
  10329. $as_echo_n "(cached) " >&6
  10330. else
  10331. if $as_echo 'TRUE=$(BAR$(V))
  10332. BAR0=false
  10333. BAR1=true
  10334. V=1
  10335. am__doit:
  10336. @$(TRUE)
  10337. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  10338. am_cv_make_support_nested_variables=yes
  10339. else
  10340. am_cv_make_support_nested_variables=no
  10341. fi
  10342. fi
  10343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  10344. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  10345. if test $am_cv_make_support_nested_variables = yes; then
  10346. AM_V='$(V)'
  10347. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  10348. else
  10349. AM_V=$AM_DEFAULT_VERBOSITY
  10350. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  10351. fi
  10352. AM_BACKSLASH='\'
  10353. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  10354. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  10355. # is not polluted with repeated "-I."
  10356. am__isrc=' -I$(srcdir)'
  10357. # test to see if srcdir already configured
  10358. if test -f $srcdir/config.status; then
  10359. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  10360. fi
  10361. fi
  10362. # test whether we have cygpath
  10363. if test -z "$CYGPATH_W"; then
  10364. if (cygpath --version) >/dev/null 2>/dev/null; then
  10365. CYGPATH_W='cygpath -w'
  10366. else
  10367. CYGPATH_W=echo
  10368. fi
  10369. fi
  10370. # Define the identity of the package.
  10371. PACKAGE='sdl2_ttf'
  10372. VERSION='2.0.14'
  10373. cat >>confdefs.h <<_ACEOF
  10374. #define PACKAGE "$PACKAGE"
  10375. _ACEOF
  10376. cat >>confdefs.h <<_ACEOF
  10377. #define VERSION "$VERSION"
  10378. _ACEOF
  10379. # Some tools Automake needs.
  10380. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  10381. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  10382. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  10383. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  10384. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  10385. # For better backward compatibility. To be removed once Automake 1.9.x
  10386. # dies out for good. For more background, see:
  10387. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  10388. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  10389. mkdir_p='$(MKDIR_P)'
  10390. # We need awk for the "check" target (and possibly the TAP driver). The
  10391. # system "awk" is bad on some platforms.
  10392. # Always define AMTAR for backward compatibility. Yes, it's still used
  10393. # in the wild :-( We should find a proper way to deprecate it ...
  10394. AMTAR='$${TAR-tar}'
  10395. # We'll loop over all known methods to create a tar archive until one works.
  10396. _am_tools='gnutar pax cpio none'
  10397. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  10398. depcc="$CC" am_compiler_list=
  10399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  10400. $as_echo_n "checking dependency style of $depcc... " >&6; }
  10401. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  10402. $as_echo_n "(cached) " >&6
  10403. else
  10404. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  10405. # We make a subdir and do the tests there. Otherwise we can end up
  10406. # making bogus files that we don't know about and never remove. For
  10407. # instance it was reported that on HP-UX the gcc test will end up
  10408. # making a dummy file named 'D' -- because '-MD' means "put the output
  10409. # in D".
  10410. rm -rf conftest.dir
  10411. mkdir conftest.dir
  10412. # Copy depcomp to subdir because otherwise we won't find it if we're
  10413. # using a relative directory.
  10414. cp "$am_depcomp" conftest.dir
  10415. cd conftest.dir
  10416. # We will build objects and dependencies in a subdirectory because
  10417. # it helps to detect inapplicable dependency modes. For instance
  10418. # both Tru64's cc and ICC support -MD to output dependencies as a
  10419. # side effect of compilation, but ICC will put the dependencies in
  10420. # the current directory while Tru64 will put them in the object
  10421. # directory.
  10422. mkdir sub
  10423. am_cv_CC_dependencies_compiler_type=none
  10424. if test "$am_compiler_list" = ""; then
  10425. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  10426. fi
  10427. am__universal=false
  10428. case " $depcc " in #(
  10429. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  10430. esac
  10431. for depmode in $am_compiler_list; do
  10432. # Setup a source with many dependencies, because some compilers
  10433. # like to wrap large dependency lists on column 80 (with \), and
  10434. # we should not choose a depcomp mode which is confused by this.
  10435. #
  10436. # We need to recreate these files for each test, as the compiler may
  10437. # overwrite some of them when testing with obscure command lines.
  10438. # This happens at least with the AIX C compiler.
  10439. : > sub/conftest.c
  10440. for i in 1 2 3 4 5 6; do
  10441. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  10442. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  10443. # Solaris 10 /bin/sh.
  10444. echo '/* dummy */' > sub/conftst$i.h
  10445. done
  10446. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  10447. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  10448. # mode. It turns out that the SunPro C++ compiler does not properly
  10449. # handle '-M -o', and we need to detect this. Also, some Intel
  10450. # versions had trouble with output in subdirs.
  10451. am__obj=sub/conftest.${OBJEXT-o}
  10452. am__minus_obj="-o $am__obj"
  10453. case $depmode in
  10454. gcc)
  10455. # This depmode causes a compiler race in universal mode.
  10456. test "$am__universal" = false || continue
  10457. ;;
  10458. nosideeffect)
  10459. # After this tag, mechanisms are not by side-effect, so they'll
  10460. # only be used when explicitly requested.
  10461. if test "x$enable_dependency_tracking" = xyes; then
  10462. continue
  10463. else
  10464. break
  10465. fi
  10466. ;;
  10467. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  10468. # This compiler won't grok '-c -o', but also, the minuso test has
  10469. # not run yet. These depmodes are late enough in the game, and
  10470. # so weak that their functioning should not be impacted.
  10471. am__obj=conftest.${OBJEXT-o}
  10472. am__minus_obj=
  10473. ;;
  10474. none) break ;;
  10475. esac
  10476. if depmode=$depmode \
  10477. source=sub/conftest.c object=$am__obj \
  10478. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  10479. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  10480. >/dev/null 2>conftest.err &&
  10481. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  10482. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  10483. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  10484. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  10485. # icc doesn't choke on unknown options, it will just issue warnings
  10486. # or remarks (even with -Werror). So we grep stderr for any message
  10487. # that says an option was ignored or not supported.
  10488. # When given -MP, icc 7.0 and 7.1 complain thusly:
  10489. # icc: Command line warning: ignoring option '-M'; no argument required
  10490. # The diagnosis changed in icc 8.0:
  10491. # icc: Command line remark: option '-MP' not supported
  10492. if (grep 'ignoring option' conftest.err ||
  10493. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  10494. am_cv_CC_dependencies_compiler_type=$depmode
  10495. break
  10496. fi
  10497. fi
  10498. done
  10499. cd ..
  10500. rm -rf conftest.dir
  10501. else
  10502. am_cv_CC_dependencies_compiler_type=none
  10503. fi
  10504. fi
  10505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  10506. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  10507. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  10508. if
  10509. test "x$enable_dependency_tracking" != xno \
  10510. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  10511. am__fastdepCC_TRUE=
  10512. am__fastdepCC_FALSE='#'
  10513. else
  10514. am__fastdepCC_TRUE='#'
  10515. am__fastdepCC_FALSE=
  10516. fi
  10517. # POSIX will say in a future version that running "rm -f" with no argument
  10518. # is OK; and we want to be able to make that assumption in our Makefile
  10519. # recipes. So use an aggressive probe to check that the usage we want is
  10520. # actually supported "in the wild" to an acceptable degree.
  10521. # See automake bug#10828.
  10522. # To make any issue more visible, cause the running configure to be aborted
  10523. # by default if the 'rm' program in use doesn't match our expectations; the
  10524. # user can still override this though.
  10525. if rm -f && rm -fr && rm -rf; then : OK; else
  10526. cat >&2 <<'END'
  10527. Oops!
  10528. Your 'rm' program seems unable to run without file operands specified
  10529. on the command line, even when the '-f' option is present. This is contrary
  10530. to the behaviour of most rm programs out there, and not conforming with
  10531. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  10532. Please tell bug-automake@gnu.org about your system, including the value
  10533. of your $PATH and any error possibly output before this message. This
  10534. can help us improve future automake versions.
  10535. END
  10536. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  10537. echo 'Configuration will proceed anyway, since you have set the' >&2
  10538. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  10539. echo >&2
  10540. else
  10541. cat >&2 <<'END'
  10542. Aborting the configuration process, to ensure you take notice of the issue.
  10543. You can download and install GNU coreutils to get an 'rm' implementation
  10544. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  10545. If you want to complete the configuration process using your problematic
  10546. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  10547. to "yes", and re-run configure.
  10548. END
  10549. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  10550. fi
  10551. fi
  10552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  10553. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  10554. # Check whether --enable-maintainer-mode was given.
  10555. if test "${enable_maintainer_mode+set}" = set; then :
  10556. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  10557. else
  10558. USE_MAINTAINER_MODE=no
  10559. fi
  10560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  10561. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  10562. if test $USE_MAINTAINER_MODE = yes; then
  10563. MAINTAINER_MODE_TRUE=
  10564. MAINTAINER_MODE_FALSE='#'
  10565. else
  10566. MAINTAINER_MODE_TRUE='#'
  10567. MAINTAINER_MODE_FALSE=
  10568. fi
  10569. MAINT=$MAINTAINER_MODE_TRUE
  10570. ac_ext=c
  10571. ac_cpp='$CPP $CPPFLAGS'
  10572. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10573. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10574. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10575. if test -n "$ac_tool_prefix"; then
  10576. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  10577. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  10578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10579. $as_echo_n "checking for $ac_word... " >&6; }
  10580. if ${ac_cv_prog_CC+:} false; then :
  10581. $as_echo_n "(cached) " >&6
  10582. else
  10583. if test -n "$CC"; then
  10584. ac_cv_prog_CC="$CC" # Let the user override the test.
  10585. else
  10586. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10587. for as_dir in $PATH
  10588. do
  10589. IFS=$as_save_IFS
  10590. test -z "$as_dir" && as_dir=.
  10591. for ac_exec_ext in '' $ac_executable_extensions; do
  10592. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10593. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  10594. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10595. break 2
  10596. fi
  10597. done
  10598. done
  10599. IFS=$as_save_IFS
  10600. fi
  10601. fi
  10602. CC=$ac_cv_prog_CC
  10603. if test -n "$CC"; then
  10604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10605. $as_echo "$CC" >&6; }
  10606. else
  10607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10608. $as_echo "no" >&6; }
  10609. fi
  10610. fi
  10611. if test -z "$ac_cv_prog_CC"; then
  10612. ac_ct_CC=$CC
  10613. # Extract the first word of "gcc", so it can be a program name with args.
  10614. set dummy gcc; ac_word=$2
  10615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10616. $as_echo_n "checking for $ac_word... " >&6; }
  10617. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10618. $as_echo_n "(cached) " >&6
  10619. else
  10620. if test -n "$ac_ct_CC"; then
  10621. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10622. else
  10623. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10624. for as_dir in $PATH
  10625. do
  10626. IFS=$as_save_IFS
  10627. test -z "$as_dir" && as_dir=.
  10628. for ac_exec_ext in '' $ac_executable_extensions; do
  10629. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10630. ac_cv_prog_ac_ct_CC="gcc"
  10631. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10632. break 2
  10633. fi
  10634. done
  10635. done
  10636. IFS=$as_save_IFS
  10637. fi
  10638. fi
  10639. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10640. if test -n "$ac_ct_CC"; then
  10641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10642. $as_echo "$ac_ct_CC" >&6; }
  10643. else
  10644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10645. $as_echo "no" >&6; }
  10646. fi
  10647. if test "x$ac_ct_CC" = x; then
  10648. CC=""
  10649. else
  10650. case $cross_compiling:$ac_tool_warned in
  10651. yes:)
  10652. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10653. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10654. ac_tool_warned=yes ;;
  10655. esac
  10656. CC=$ac_ct_CC
  10657. fi
  10658. else
  10659. CC="$ac_cv_prog_CC"
  10660. fi
  10661. if test -z "$CC"; then
  10662. if test -n "$ac_tool_prefix"; then
  10663. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  10664. set dummy ${ac_tool_prefix}cc; ac_word=$2
  10665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10666. $as_echo_n "checking for $ac_word... " >&6; }
  10667. if ${ac_cv_prog_CC+:} false; then :
  10668. $as_echo_n "(cached) " >&6
  10669. else
  10670. if test -n "$CC"; then
  10671. ac_cv_prog_CC="$CC" # Let the user override the test.
  10672. else
  10673. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10674. for as_dir in $PATH
  10675. do
  10676. IFS=$as_save_IFS
  10677. test -z "$as_dir" && as_dir=.
  10678. for ac_exec_ext in '' $ac_executable_extensions; do
  10679. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10680. ac_cv_prog_CC="${ac_tool_prefix}cc"
  10681. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10682. break 2
  10683. fi
  10684. done
  10685. done
  10686. IFS=$as_save_IFS
  10687. fi
  10688. fi
  10689. CC=$ac_cv_prog_CC
  10690. if test -n "$CC"; then
  10691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10692. $as_echo "$CC" >&6; }
  10693. else
  10694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10695. $as_echo "no" >&6; }
  10696. fi
  10697. fi
  10698. fi
  10699. if test -z "$CC"; then
  10700. # Extract the first word of "cc", so it can be a program name with args.
  10701. set dummy cc; ac_word=$2
  10702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10703. $as_echo_n "checking for $ac_word... " >&6; }
  10704. if ${ac_cv_prog_CC+:} false; then :
  10705. $as_echo_n "(cached) " >&6
  10706. else
  10707. if test -n "$CC"; then
  10708. ac_cv_prog_CC="$CC" # Let the user override the test.
  10709. else
  10710. ac_prog_rejected=no
  10711. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10712. for as_dir in $PATH
  10713. do
  10714. IFS=$as_save_IFS
  10715. test -z "$as_dir" && as_dir=.
  10716. for ac_exec_ext in '' $ac_executable_extensions; do
  10717. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10718. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  10719. ac_prog_rejected=yes
  10720. continue
  10721. fi
  10722. ac_cv_prog_CC="cc"
  10723. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10724. break 2
  10725. fi
  10726. done
  10727. done
  10728. IFS=$as_save_IFS
  10729. if test $ac_prog_rejected = yes; then
  10730. # We found a bogon in the path, so make sure we never use it.
  10731. set dummy $ac_cv_prog_CC
  10732. shift
  10733. if test $# != 0; then
  10734. # We chose a different compiler from the bogus one.
  10735. # However, it has the same basename, so the bogon will be chosen
  10736. # first if we set CC to just the basename; use the full file name.
  10737. shift
  10738. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  10739. fi
  10740. fi
  10741. fi
  10742. fi
  10743. CC=$ac_cv_prog_CC
  10744. if test -n "$CC"; then
  10745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10746. $as_echo "$CC" >&6; }
  10747. else
  10748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10749. $as_echo "no" >&6; }
  10750. fi
  10751. fi
  10752. if test -z "$CC"; then
  10753. if test -n "$ac_tool_prefix"; then
  10754. for ac_prog in cl.exe
  10755. do
  10756. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10757. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10759. $as_echo_n "checking for $ac_word... " >&6; }
  10760. if ${ac_cv_prog_CC+:} false; then :
  10761. $as_echo_n "(cached) " >&6
  10762. else
  10763. if test -n "$CC"; then
  10764. ac_cv_prog_CC="$CC" # Let the user override the test.
  10765. else
  10766. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10767. for as_dir in $PATH
  10768. do
  10769. IFS=$as_save_IFS
  10770. test -z "$as_dir" && as_dir=.
  10771. for ac_exec_ext in '' $ac_executable_extensions; do
  10772. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10773. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10774. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10775. break 2
  10776. fi
  10777. done
  10778. done
  10779. IFS=$as_save_IFS
  10780. fi
  10781. fi
  10782. CC=$ac_cv_prog_CC
  10783. if test -n "$CC"; then
  10784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10785. $as_echo "$CC" >&6; }
  10786. else
  10787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10788. $as_echo "no" >&6; }
  10789. fi
  10790. test -n "$CC" && break
  10791. done
  10792. fi
  10793. if test -z "$CC"; then
  10794. ac_ct_CC=$CC
  10795. for ac_prog in cl.exe
  10796. do
  10797. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10798. set dummy $ac_prog; ac_word=$2
  10799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10800. $as_echo_n "checking for $ac_word... " >&6; }
  10801. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10802. $as_echo_n "(cached) " >&6
  10803. else
  10804. if test -n "$ac_ct_CC"; then
  10805. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10806. else
  10807. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10808. for as_dir in $PATH
  10809. do
  10810. IFS=$as_save_IFS
  10811. test -z "$as_dir" && as_dir=.
  10812. for ac_exec_ext in '' $ac_executable_extensions; do
  10813. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10814. ac_cv_prog_ac_ct_CC="$ac_prog"
  10815. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10816. break 2
  10817. fi
  10818. done
  10819. done
  10820. IFS=$as_save_IFS
  10821. fi
  10822. fi
  10823. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10824. if test -n "$ac_ct_CC"; then
  10825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10826. $as_echo "$ac_ct_CC" >&6; }
  10827. else
  10828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10829. $as_echo "no" >&6; }
  10830. fi
  10831. test -n "$ac_ct_CC" && break
  10832. done
  10833. if test "x$ac_ct_CC" = x; then
  10834. CC=""
  10835. else
  10836. case $cross_compiling:$ac_tool_warned in
  10837. yes:)
  10838. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10839. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10840. ac_tool_warned=yes ;;
  10841. esac
  10842. CC=$ac_ct_CC
  10843. fi
  10844. fi
  10845. fi
  10846. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10847. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10848. as_fn_error $? "no acceptable C compiler found in \$PATH
  10849. See \`config.log' for more details" "$LINENO" 5; }
  10850. # Provide some information about the compiler.
  10851. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10852. set X $ac_compile
  10853. ac_compiler=$2
  10854. for ac_option in --version -v -V -qversion; do
  10855. { { ac_try="$ac_compiler $ac_option >&5"
  10856. case "(($ac_try" in
  10857. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10858. *) ac_try_echo=$ac_try;;
  10859. esac
  10860. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10861. $as_echo "$ac_try_echo"; } >&5
  10862. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10863. ac_status=$?
  10864. if test -s conftest.err; then
  10865. sed '10a\
  10866. ... rest of stderr output deleted ...
  10867. 10q' conftest.err >conftest.er1
  10868. cat conftest.er1 >&5
  10869. fi
  10870. rm -f conftest.er1 conftest.err
  10871. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10872. test $ac_status = 0; }
  10873. done
  10874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10875. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10876. if ${ac_cv_c_compiler_gnu+:} false; then :
  10877. $as_echo_n "(cached) " >&6
  10878. else
  10879. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10880. /* end confdefs.h. */
  10881. int
  10882. main ()
  10883. {
  10884. #ifndef __GNUC__
  10885. choke me
  10886. #endif
  10887. ;
  10888. return 0;
  10889. }
  10890. _ACEOF
  10891. if ac_fn_c_try_compile "$LINENO"; then :
  10892. ac_compiler_gnu=yes
  10893. else
  10894. ac_compiler_gnu=no
  10895. fi
  10896. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10897. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10898. fi
  10899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10900. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10901. if test $ac_compiler_gnu = yes; then
  10902. GCC=yes
  10903. else
  10904. GCC=
  10905. fi
  10906. ac_test_CFLAGS=${CFLAGS+set}
  10907. ac_save_CFLAGS=$CFLAGS
  10908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10909. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10910. if ${ac_cv_prog_cc_g+:} false; then :
  10911. $as_echo_n "(cached) " >&6
  10912. else
  10913. ac_save_c_werror_flag=$ac_c_werror_flag
  10914. ac_c_werror_flag=yes
  10915. ac_cv_prog_cc_g=no
  10916. CFLAGS="-g"
  10917. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10918. /* end confdefs.h. */
  10919. int
  10920. main ()
  10921. {
  10922. ;
  10923. return 0;
  10924. }
  10925. _ACEOF
  10926. if ac_fn_c_try_compile "$LINENO"; then :
  10927. ac_cv_prog_cc_g=yes
  10928. else
  10929. CFLAGS=""
  10930. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10931. /* end confdefs.h. */
  10932. int
  10933. main ()
  10934. {
  10935. ;
  10936. return 0;
  10937. }
  10938. _ACEOF
  10939. if ac_fn_c_try_compile "$LINENO"; then :
  10940. else
  10941. ac_c_werror_flag=$ac_save_c_werror_flag
  10942. CFLAGS="-g"
  10943. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10944. /* end confdefs.h. */
  10945. int
  10946. main ()
  10947. {
  10948. ;
  10949. return 0;
  10950. }
  10951. _ACEOF
  10952. if ac_fn_c_try_compile "$LINENO"; then :
  10953. ac_cv_prog_cc_g=yes
  10954. fi
  10955. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10956. fi
  10957. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10958. fi
  10959. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10960. ac_c_werror_flag=$ac_save_c_werror_flag
  10961. fi
  10962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10963. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10964. if test "$ac_test_CFLAGS" = set; then
  10965. CFLAGS=$ac_save_CFLAGS
  10966. elif test $ac_cv_prog_cc_g = yes; then
  10967. if test "$GCC" = yes; then
  10968. CFLAGS="-g -O2"
  10969. else
  10970. CFLAGS="-g"
  10971. fi
  10972. else
  10973. if test "$GCC" = yes; then
  10974. CFLAGS="-O2"
  10975. else
  10976. CFLAGS=
  10977. fi
  10978. fi
  10979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10980. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10981. if ${ac_cv_prog_cc_c89+:} false; then :
  10982. $as_echo_n "(cached) " >&6
  10983. else
  10984. ac_cv_prog_cc_c89=no
  10985. ac_save_CC=$CC
  10986. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10987. /* end confdefs.h. */
  10988. #include <stdarg.h>
  10989. #include <stdio.h>
  10990. struct stat;
  10991. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10992. struct buf { int x; };
  10993. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10994. static char *e (p, i)
  10995. char **p;
  10996. int i;
  10997. {
  10998. return p[i];
  10999. }
  11000. static char *f (char * (*g) (char **, int), char **p, ...)
  11001. {
  11002. char *s;
  11003. va_list v;
  11004. va_start (v,p);
  11005. s = g (p, va_arg (v,int));
  11006. va_end (v);
  11007. return s;
  11008. }
  11009. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  11010. function prototypes and stuff, but not '\xHH' hex character constants.
  11011. These don't provoke an error unfortunately, instead are silently treated
  11012. as 'x'. The following induces an error, until -std is added to get
  11013. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  11014. array size at least. It's necessary to write '\x00'==0 to get something
  11015. that's true only with -std. */
  11016. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  11017. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  11018. inside strings and character constants. */
  11019. #define FOO(x) 'x'
  11020. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  11021. int test (int i, double x);
  11022. struct s1 {int (*f) (int a);};
  11023. struct s2 {int (*f) (double a);};
  11024. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  11025. int argc;
  11026. char **argv;
  11027. int
  11028. main ()
  11029. {
  11030. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  11031. ;
  11032. return 0;
  11033. }
  11034. _ACEOF
  11035. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  11036. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  11037. do
  11038. CC="$ac_save_CC $ac_arg"
  11039. if ac_fn_c_try_compile "$LINENO"; then :
  11040. ac_cv_prog_cc_c89=$ac_arg
  11041. fi
  11042. rm -f core conftest.err conftest.$ac_objext
  11043. test "x$ac_cv_prog_cc_c89" != "xno" && break
  11044. done
  11045. rm -f conftest.$ac_ext
  11046. CC=$ac_save_CC
  11047. fi
  11048. # AC_CACHE_VAL
  11049. case "x$ac_cv_prog_cc_c89" in
  11050. x)
  11051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11052. $as_echo "none needed" >&6; } ;;
  11053. xno)
  11054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11055. $as_echo "unsupported" >&6; } ;;
  11056. *)
  11057. CC="$CC $ac_cv_prog_cc_c89"
  11058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  11059. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  11060. esac
  11061. if test "x$ac_cv_prog_cc_c89" != xno; then :
  11062. fi
  11063. ac_ext=c
  11064. ac_cpp='$CPP $CPPFLAGS'
  11065. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11066. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11067. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11068. ac_ext=c
  11069. ac_cpp='$CPP $CPPFLAGS'
  11070. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11071. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11072. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  11074. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  11075. if ${am_cv_prog_cc_c_o+:} false; then :
  11076. $as_echo_n "(cached) " >&6
  11077. else
  11078. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11079. /* end confdefs.h. */
  11080. int
  11081. main ()
  11082. {
  11083. ;
  11084. return 0;
  11085. }
  11086. _ACEOF
  11087. # Make sure it works both with $CC and with simple cc.
  11088. # Following AC_PROG_CC_C_O, we do the test twice because some
  11089. # compilers refuse to overwrite an existing .o file with -o,
  11090. # though they will create one.
  11091. am_cv_prog_cc_c_o=yes
  11092. for am_i in 1 2; do
  11093. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  11094. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  11095. ac_status=$?
  11096. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11097. (exit $ac_status); } \
  11098. && test -f conftest2.$ac_objext; then
  11099. : OK
  11100. else
  11101. am_cv_prog_cc_c_o=no
  11102. break
  11103. fi
  11104. done
  11105. rm -f core conftest*
  11106. unset am_i
  11107. fi
  11108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  11109. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  11110. if test "$am_cv_prog_cc_c_o" != yes; then
  11111. # Losing compiler, so override with the script.
  11112. # FIXME: It is wrong to rewrite CC.
  11113. # But if we don't then we get into trouble of one sort or another.
  11114. # A longer-term fix would be to have automake use am__CC in this case,
  11115. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  11116. CC="$am_aux_dir/compile $CC"
  11117. fi
  11118. ac_ext=c
  11119. ac_cpp='$CPP $CPPFLAGS'
  11120. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11121. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11122. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  11124. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  11125. set x ${MAKE-make}
  11126. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  11127. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  11128. $as_echo_n "(cached) " >&6
  11129. else
  11130. cat >conftest.make <<\_ACEOF
  11131. SHELL = /bin/sh
  11132. all:
  11133. @echo '@@@%%%=$(MAKE)=@@@%%%'
  11134. _ACEOF
  11135. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  11136. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  11137. *@@@%%%=?*=@@@%%%*)
  11138. eval ac_cv_prog_make_${ac_make}_set=yes;;
  11139. *)
  11140. eval ac_cv_prog_make_${ac_make}_set=no;;
  11141. esac
  11142. rm -f conftest.make
  11143. fi
  11144. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  11145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11146. $as_echo "yes" >&6; }
  11147. SET_MAKE=
  11148. else
  11149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11150. $as_echo "no" >&6; }
  11151. SET_MAKE="MAKE=${MAKE-make}"
  11152. fi
  11153. if test -z "$host_alias"; then
  11154. hostaliaswindres=
  11155. else
  11156. hostaliaswindres="$host_alias-windres"
  11157. fi
  11158. for ac_prog in windres $hostaliaswindres $host_os-windres
  11159. do
  11160. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11161. set dummy $ac_prog; ac_word=$2
  11162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11163. $as_echo_n "checking for $ac_word... " >&6; }
  11164. if ${ac_cv_prog_WINDRES+:} false; then :
  11165. $as_echo_n "(cached) " >&6
  11166. else
  11167. if test -n "$WINDRES"; then
  11168. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  11169. else
  11170. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11171. for as_dir in $PATH
  11172. do
  11173. IFS=$as_save_IFS
  11174. test -z "$as_dir" && as_dir=.
  11175. for ac_exec_ext in '' $ac_executable_extensions; do
  11176. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11177. ac_cv_prog_WINDRES="$ac_prog"
  11178. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11179. break 2
  11180. fi
  11181. done
  11182. done
  11183. IFS=$as_save_IFS
  11184. fi
  11185. fi
  11186. WINDRES=$ac_cv_prog_WINDRES
  11187. if test -n "$WINDRES"; then
  11188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  11189. $as_echo "$WINDRES" >&6; }
  11190. else
  11191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11192. $as_echo "no" >&6; }
  11193. fi
  11194. test -n "$WINDRES" && break
  11195. done
  11196. case "$host" in
  11197. *-*-cygwin* | *-*-mingw32*)
  11198. ;;
  11199. *)
  11200. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  11201. if test "x$ac_cv_type_size_t" = xyes; then :
  11202. else
  11203. cat >>confdefs.h <<_ACEOF
  11204. #define size_t unsigned int
  11205. _ACEOF
  11206. fi
  11207. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  11208. # for constant arguments. Useless!
  11209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  11210. $as_echo_n "checking for working alloca.h... " >&6; }
  11211. if ${ac_cv_working_alloca_h+:} false; then :
  11212. $as_echo_n "(cached) " >&6
  11213. else
  11214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11215. /* end confdefs.h. */
  11216. #include <alloca.h>
  11217. int
  11218. main ()
  11219. {
  11220. char *p = (char *) alloca (2 * sizeof (int));
  11221. if (p) return 0;
  11222. ;
  11223. return 0;
  11224. }
  11225. _ACEOF
  11226. if ac_fn_c_try_link "$LINENO"; then :
  11227. ac_cv_working_alloca_h=yes
  11228. else
  11229. ac_cv_working_alloca_h=no
  11230. fi
  11231. rm -f core conftest.err conftest.$ac_objext \
  11232. conftest$ac_exeext conftest.$ac_ext
  11233. fi
  11234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  11235. $as_echo "$ac_cv_working_alloca_h" >&6; }
  11236. if test $ac_cv_working_alloca_h = yes; then
  11237. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  11238. fi
  11239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  11240. $as_echo_n "checking for alloca... " >&6; }
  11241. if ${ac_cv_func_alloca_works+:} false; then :
  11242. $as_echo_n "(cached) " >&6
  11243. else
  11244. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11245. /* end confdefs.h. */
  11246. #ifdef __GNUC__
  11247. # define alloca __builtin_alloca
  11248. #else
  11249. # ifdef _MSC_VER
  11250. # include <malloc.h>
  11251. # define alloca _alloca
  11252. # else
  11253. # ifdef HAVE_ALLOCA_H
  11254. # include <alloca.h>
  11255. # else
  11256. # ifdef _AIX
  11257. #pragma alloca
  11258. # else
  11259. # ifndef alloca /* predefined by HP cc +Olibcalls */
  11260. void *alloca (size_t);
  11261. # endif
  11262. # endif
  11263. # endif
  11264. # endif
  11265. #endif
  11266. int
  11267. main ()
  11268. {
  11269. char *p = (char *) alloca (1);
  11270. if (p) return 0;
  11271. ;
  11272. return 0;
  11273. }
  11274. _ACEOF
  11275. if ac_fn_c_try_link "$LINENO"; then :
  11276. ac_cv_func_alloca_works=yes
  11277. else
  11278. ac_cv_func_alloca_works=no
  11279. fi
  11280. rm -f core conftest.err conftest.$ac_objext \
  11281. conftest$ac_exeext conftest.$ac_ext
  11282. fi
  11283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  11284. $as_echo "$ac_cv_func_alloca_works" >&6; }
  11285. if test $ac_cv_func_alloca_works = yes; then
  11286. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  11287. else
  11288. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  11289. # that cause trouble. Some versions do not even contain alloca or
  11290. # contain a buggy version. If you still want to use their alloca,
  11291. # use ar to extract alloca.o from them instead of compiling alloca.c.
  11292. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  11293. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  11294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  11295. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  11296. if ${ac_cv_os_cray+:} false; then :
  11297. $as_echo_n "(cached) " >&6
  11298. else
  11299. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11300. /* end confdefs.h. */
  11301. #if defined CRAY && ! defined CRAY2
  11302. webecray
  11303. #else
  11304. wenotbecray
  11305. #endif
  11306. _ACEOF
  11307. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11308. $EGREP "webecray" >/dev/null 2>&1; then :
  11309. ac_cv_os_cray=yes
  11310. else
  11311. ac_cv_os_cray=no
  11312. fi
  11313. rm -f conftest*
  11314. fi
  11315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  11316. $as_echo "$ac_cv_os_cray" >&6; }
  11317. if test $ac_cv_os_cray = yes; then
  11318. for ac_func in _getb67 GETB67 getb67; do
  11319. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11320. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  11321. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  11322. cat >>confdefs.h <<_ACEOF
  11323. #define CRAY_STACKSEG_END $ac_func
  11324. _ACEOF
  11325. break
  11326. fi
  11327. done
  11328. fi
  11329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  11330. $as_echo_n "checking stack direction for C alloca... " >&6; }
  11331. if ${ac_cv_c_stack_direction+:} false; then :
  11332. $as_echo_n "(cached) " >&6
  11333. else
  11334. if test "$cross_compiling" = yes; then :
  11335. ac_cv_c_stack_direction=0
  11336. else
  11337. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11338. /* end confdefs.h. */
  11339. $ac_includes_default
  11340. int
  11341. find_stack_direction (int *addr, int depth)
  11342. {
  11343. int dir, dummy = 0;
  11344. if (! addr)
  11345. addr = &dummy;
  11346. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  11347. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  11348. return dir + dummy;
  11349. }
  11350. int
  11351. main (int argc, char **argv)
  11352. {
  11353. return find_stack_direction (0, argc + !argv + 20) < 0;
  11354. }
  11355. _ACEOF
  11356. if ac_fn_c_try_run "$LINENO"; then :
  11357. ac_cv_c_stack_direction=1
  11358. else
  11359. ac_cv_c_stack_direction=-1
  11360. fi
  11361. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11362. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11363. fi
  11364. fi
  11365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  11366. $as_echo "$ac_cv_c_stack_direction" >&6; }
  11367. cat >>confdefs.h <<_ACEOF
  11368. #define STACK_DIRECTION $ac_cv_c_stack_direction
  11369. _ACEOF
  11370. fi
  11371. ;;
  11372. esac
  11373. case "$host" in
  11374. *-*-beos*)
  11375. ac_default_prefix=/boot/develop/tools/gnupro
  11376. ;;
  11377. *-*-cygwin* | *-*-mingw32*)
  11378. if test "$build" != "$host"; then # cross-compiling
  11379. # Default cross-compile location
  11380. ac_default_prefix=/usr/local/cross-tools/$host
  11381. else
  11382. # Look for the location of the tools and install there
  11383. if test "$BUILD_PREFIX" != ""; then
  11384. ac_default_prefix=$BUILD_PREFIX
  11385. fi
  11386. fi
  11387. if test x$WINDRES != x; then
  11388. use_version_rc=true
  11389. fi
  11390. ;;
  11391. esac
  11392. if test x$use_version_rc = xtrue; then
  11393. USE_VERSION_RC_TRUE=
  11394. USE_VERSION_RC_FALSE='#'
  11395. else
  11396. USE_VERSION_RC_TRUE='#'
  11397. USE_VERSION_RC_FALSE=
  11398. fi
  11399. # Check whether --with-freetype-prefix was given.
  11400. if test "${with_freetype_prefix+set}" = set; then :
  11401. withval=$with_freetype_prefix; freetype_prefix="$withval"
  11402. else
  11403. freetype_prefix=""
  11404. fi
  11405. # Check whether --with-freetype-exec-prefix was given.
  11406. if test "${with_freetype_exec_prefix+set}" = set; then :
  11407. withval=$with_freetype_exec_prefix; freetype_exec_prefix="$withval"
  11408. else
  11409. freetype_exec_prefix=""
  11410. fi
  11411. if test x$freetype_exec_prefix != x ; then
  11412. freetype_args="$freetype_args --exec-prefix=$freetype_exec_prefix"
  11413. if test x${FREETYPE_CONFIG+set} != xset ; then
  11414. FREETYPE_CONFIG=$freetype_exec_prefix/bin/freetype-config
  11415. fi
  11416. fi
  11417. if test x$freetype_prefix != x ; then
  11418. freetype_args="$freetype_args --prefix=$freetype_prefix"
  11419. if test x${FREETYPE_CONFIG+set} != xset ; then
  11420. FREETYPE_CONFIG=$freetype_prefix/bin/freetype-config
  11421. fi
  11422. fi
  11423. # Extract the first word of "freetype-config", so it can be a program name with args.
  11424. set dummy freetype-config; ac_word=$2
  11425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11426. $as_echo_n "checking for $ac_word... " >&6; }
  11427. if ${ac_cv_path_FREETYPE_CONFIG+:} false; then :
  11428. $as_echo_n "(cached) " >&6
  11429. else
  11430. case $FREETYPE_CONFIG in
  11431. [\\/]* | ?:[\\/]*)
  11432. ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
  11433. ;;
  11434. *)
  11435. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11436. for as_dir in $PATH
  11437. do
  11438. IFS=$as_save_IFS
  11439. test -z "$as_dir" && as_dir=.
  11440. for ac_exec_ext in '' $ac_executable_extensions; do
  11441. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11442. ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  11443. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11444. break 2
  11445. fi
  11446. done
  11447. done
  11448. IFS=$as_save_IFS
  11449. test -z "$ac_cv_path_FREETYPE_CONFIG" && ac_cv_path_FREETYPE_CONFIG="no"
  11450. ;;
  11451. esac
  11452. fi
  11453. FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
  11454. if test -n "$FREETYPE_CONFIG"; then
  11455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CONFIG" >&5
  11456. $as_echo "$FREETYPE_CONFIG" >&6; }
  11457. else
  11458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11459. $as_echo "no" >&6; }
  11460. fi
  11461. no_freetype=""
  11462. if test "$FREETYPE_CONFIG" = "no" ; then
  11463. as_fn_error $? "
  11464. *** Unable to find FreeType2 library (http://www.freetype.org/)
  11465. " "$LINENO" 5
  11466. else
  11467. CFLAGS="$CFLAGS `$FREETYPE_CONFIG $freetypeconf_args --cflags`"
  11468. LIBS="$LIBS `$FREETYPE_CONFIG $freetypeconf_args --libs`"
  11469. fi
  11470. # Check whether --with-raqm was given.
  11471. if test "${with_raqm+set}" = set; then :
  11472. withval=$with_raqm; with_raqm=$withval
  11473. else
  11474. with_with='yes'
  11475. fi
  11476. have_raqm=""
  11477. if test "x$with_raqm" != 'xno'; then
  11478. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  11479. if test -n "$ac_tool_prefix"; then
  11480. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  11481. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  11482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11483. $as_echo_n "checking for $ac_word... " >&6; }
  11484. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  11485. $as_echo_n "(cached) " >&6
  11486. else
  11487. case $PKG_CONFIG in
  11488. [\\/]* | ?:[\\/]*)
  11489. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  11490. ;;
  11491. *)
  11492. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11493. for as_dir in $PATH
  11494. do
  11495. IFS=$as_save_IFS
  11496. test -z "$as_dir" && as_dir=.
  11497. for ac_exec_ext in '' $ac_executable_extensions; do
  11498. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11499. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  11500. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11501. break 2
  11502. fi
  11503. done
  11504. done
  11505. IFS=$as_save_IFS
  11506. ;;
  11507. esac
  11508. fi
  11509. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  11510. if test -n "$PKG_CONFIG"; then
  11511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  11512. $as_echo "$PKG_CONFIG" >&6; }
  11513. else
  11514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11515. $as_echo "no" >&6; }
  11516. fi
  11517. fi
  11518. if test -z "$ac_cv_path_PKG_CONFIG"; then
  11519. ac_pt_PKG_CONFIG=$PKG_CONFIG
  11520. # Extract the first word of "pkg-config", so it can be a program name with args.
  11521. set dummy pkg-config; ac_word=$2
  11522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11523. $as_echo_n "checking for $ac_word... " >&6; }
  11524. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  11525. $as_echo_n "(cached) " >&6
  11526. else
  11527. case $ac_pt_PKG_CONFIG in
  11528. [\\/]* | ?:[\\/]*)
  11529. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  11530. ;;
  11531. *)
  11532. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11533. for as_dir in $PATH
  11534. do
  11535. IFS=$as_save_IFS
  11536. test -z "$as_dir" && as_dir=.
  11537. for ac_exec_ext in '' $ac_executable_extensions; do
  11538. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11539. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  11540. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11541. break 2
  11542. fi
  11543. done
  11544. done
  11545. IFS=$as_save_IFS
  11546. ;;
  11547. esac
  11548. fi
  11549. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  11550. if test -n "$ac_pt_PKG_CONFIG"; then
  11551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  11552. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  11553. else
  11554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11555. $as_echo "no" >&6; }
  11556. fi
  11557. if test "x$ac_pt_PKG_CONFIG" = x; then
  11558. PKG_CONFIG=""
  11559. else
  11560. case $cross_compiling:$ac_tool_warned in
  11561. yes:)
  11562. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11563. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11564. ac_tool_warned=yes ;;
  11565. esac
  11566. PKG_CONFIG=$ac_pt_PKG_CONFIG
  11567. fi
  11568. else
  11569. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  11570. fi
  11571. fi
  11572. if test -n "$PKG_CONFIG"; then
  11573. _pkg_min_version=0.9.0
  11574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  11575. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  11576. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  11577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11578. $as_echo "yes" >&6; }
  11579. else
  11580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11581. $as_echo "no" >&6; }
  11582. PKG_CONFIG=""
  11583. fi
  11584. fi
  11585. pkg_failed=no
  11586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RAQM" >&5
  11587. $as_echo_n "checking for RAQM... " >&6; }
  11588. if test -n "$PKG_CONFIG"; then
  11589. if test -n "$RAQM_CFLAGS"; then
  11590. pkg_cv_RAQM_CFLAGS="$RAQM_CFLAGS"
  11591. else
  11592. if test -n "$PKG_CONFIG" && \
  11593. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"raqm\""; } >&5
  11594. ($PKG_CONFIG --exists --print-errors "raqm") 2>&5
  11595. ac_status=$?
  11596. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11597. test $ac_status = 0; }; then
  11598. pkg_cv_RAQM_CFLAGS=`$PKG_CONFIG --cflags "raqm" 2>/dev/null`
  11599. else
  11600. pkg_failed=yes
  11601. fi
  11602. fi
  11603. else
  11604. pkg_failed=untried
  11605. fi
  11606. if test -n "$PKG_CONFIG"; then
  11607. if test -n "$RAQM_LIBS"; then
  11608. pkg_cv_RAQM_LIBS="$RAQM_LIBS"
  11609. else
  11610. if test -n "$PKG_CONFIG" && \
  11611. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"raqm\""; } >&5
  11612. ($PKG_CONFIG --exists --print-errors "raqm") 2>&5
  11613. ac_status=$?
  11614. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11615. test $ac_status = 0; }; then
  11616. pkg_cv_RAQM_LIBS=`$PKG_CONFIG --libs "raqm" 2>/dev/null`
  11617. else
  11618. pkg_failed=yes
  11619. fi
  11620. fi
  11621. else
  11622. pkg_failed=untried
  11623. fi
  11624. if test $pkg_failed = yes; then
  11625. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  11626. _pkg_short_errors_supported=yes
  11627. else
  11628. _pkg_short_errors_supported=no
  11629. fi
  11630. if test $_pkg_short_errors_supported = yes; then
  11631. RAQM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "raqm"`
  11632. else
  11633. RAQM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "raqm"`
  11634. fi
  11635. # Put the nasty error message in config.log where it belongs
  11636. echo "$RAQM_PKG_ERRORS" >&5
  11637. as_fn_error $? "Package requirements (raqm) were not met:
  11638. $RAQM_PKG_ERRORS
  11639. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  11640. installed software in a non-standard prefix.
  11641. Alternatively, you may set the environment variables RAQM_CFLAGS
  11642. and RAQM_LIBS to avoid the need to call pkg-config.
  11643. See the pkg-config man page for more details.
  11644. " "$LINENO" 5
  11645. elif test $pkg_failed = untried; then
  11646. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11647. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11648. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  11649. is in your PATH or set the PKG_CONFIG environment variable to the full
  11650. path to pkg-config.
  11651. Alternatively, you may set the environment variables RAQM_CFLAGS
  11652. and RAQM_LIBS to avoid the need to call pkg-config.
  11653. See the pkg-config man page for more details.
  11654. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  11655. See \`config.log' for more details" "$LINENO" 5; }
  11656. else
  11657. RAQM_CFLAGS=$pkg_cv_RAQM_CFLAGS
  11658. RAQM_LIBS=$pkg_cv_RAQM_LIBS
  11659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11660. $as_echo "yes" >&6; }
  11661. have_raqm="yes"
  11662. fi
  11663. fi
  11664. if test "x$have_raqm" == "xyes"; then
  11665. $as_echo "#define HAVE_RAQM 1" >>confdefs.h
  11666. CFLAGS="$CFLAGS $RAQM_CFLAGS"
  11667. LIBS="$LIBS $RAQM_LIBS"
  11668. fi
  11669. if test "x$have_raqm" == "xyes"; then
  11670. HAVE_RAQM_TRUE=
  11671. HAVE_RAQM_FALSE='#'
  11672. else
  11673. HAVE_RAQM_TRUE='#'
  11674. HAVE_RAQM_FALSE=
  11675. fi
  11676. SDL_VERSION=2.0.0
  11677. # Check whether --with-sdl-prefix was given.
  11678. if test "${with_sdl_prefix+set}" = set; then :
  11679. withval=$with_sdl_prefix; sdl_prefix="$withval"
  11680. else
  11681. sdl_prefix=""
  11682. fi
  11683. # Check whether --with-sdl-exec-prefix was given.
  11684. if test "${with_sdl_exec_prefix+set}" = set; then :
  11685. withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
  11686. else
  11687. sdl_exec_prefix=""
  11688. fi
  11689. # Check whether --enable-sdltest was given.
  11690. if test "${enable_sdltest+set}" = set; then :
  11691. enableval=$enable_sdltest;
  11692. else
  11693. enable_sdltest=yes
  11694. fi
  11695. min_sdl_version=$SDL_VERSION
  11696. if test "x$sdl_prefix$sdl_exec_prefix" = x ; then
  11697. pkg_failed=no
  11698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL" >&5
  11699. $as_echo_n "checking for SDL... " >&6; }
  11700. if test -n "$PKG_CONFIG"; then
  11701. if test -n "$SDL_CFLAGS"; then
  11702. pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
  11703. else
  11704. if test -n "$PKG_CONFIG" && \
  11705. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2 >= \$min_sdl_version\""; } >&5
  11706. ($PKG_CONFIG --exists --print-errors "sdl2 >= $min_sdl_version") 2>&5
  11707. ac_status=$?
  11708. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11709. test $ac_status = 0; }; then
  11710. pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl2 >= $min_sdl_version" 2>/dev/null`
  11711. else
  11712. pkg_failed=yes
  11713. fi
  11714. fi
  11715. else
  11716. pkg_failed=untried
  11717. fi
  11718. if test -n "$PKG_CONFIG"; then
  11719. if test -n "$SDL_LIBS"; then
  11720. pkg_cv_SDL_LIBS="$SDL_LIBS"
  11721. else
  11722. if test -n "$PKG_CONFIG" && \
  11723. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2 >= \$min_sdl_version\""; } >&5
  11724. ($PKG_CONFIG --exists --print-errors "sdl2 >= $min_sdl_version") 2>&5
  11725. ac_status=$?
  11726. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11727. test $ac_status = 0; }; then
  11728. pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl2 >= $min_sdl_version" 2>/dev/null`
  11729. else
  11730. pkg_failed=yes
  11731. fi
  11732. fi
  11733. else
  11734. pkg_failed=untried
  11735. fi
  11736. if test $pkg_failed = yes; then
  11737. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  11738. _pkg_short_errors_supported=yes
  11739. else
  11740. _pkg_short_errors_supported=no
  11741. fi
  11742. if test $_pkg_short_errors_supported = yes; then
  11743. SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sdl2 >= $min_sdl_version"`
  11744. else
  11745. SDL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sdl2 >= $min_sdl_version"`
  11746. fi
  11747. # Put the nasty error message in config.log where it belongs
  11748. echo "$SDL_PKG_ERRORS" >&5
  11749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11750. $as_echo "no" >&6; }
  11751. sdl_pc=no
  11752. elif test $pkg_failed = untried; then
  11753. sdl_pc=no
  11754. else
  11755. SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
  11756. SDL_LIBS=$pkg_cv_SDL_LIBS
  11757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11758. $as_echo "yes" >&6; }
  11759. sdl_pc=yes
  11760. fi
  11761. else
  11762. sdl_pc=no
  11763. if test x$sdl_exec_prefix != x ; then
  11764. sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
  11765. if test x${SDL2_CONFIG+set} != xset ; then
  11766. SDL2_CONFIG=$sdl_exec_prefix/bin/sdl2-config
  11767. fi
  11768. fi
  11769. if test x$sdl_prefix != x ; then
  11770. sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
  11771. if test x${SDL2_CONFIG+set} != xset ; then
  11772. SDL2_CONFIG=$sdl_prefix/bin/sdl2-config
  11773. fi
  11774. fi
  11775. fi
  11776. if test "x$sdl_pc" = xyes ; then
  11777. no_sdl=""
  11778. SDL2_CONFIG="pkg-config sdl2"
  11779. else
  11780. as_save_PATH="$PATH"
  11781. if test "x$prefix" != xNONE && test "$cross_compiling" != yes; then
  11782. PATH="$prefix/bin:$prefix/usr/bin:$PATH"
  11783. fi
  11784. # Extract the first word of "sdl2-config", so it can be a program name with args.
  11785. set dummy sdl2-config; ac_word=$2
  11786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11787. $as_echo_n "checking for $ac_word... " >&6; }
  11788. if ${ac_cv_path_SDL2_CONFIG+:} false; then :
  11789. $as_echo_n "(cached) " >&6
  11790. else
  11791. case $SDL2_CONFIG in
  11792. [\\/]* | ?:[\\/]*)
  11793. ac_cv_path_SDL2_CONFIG="$SDL2_CONFIG" # Let the user override the test with a path.
  11794. ;;
  11795. *)
  11796. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11797. for as_dir in $PATH
  11798. do
  11799. IFS=$as_save_IFS
  11800. test -z "$as_dir" && as_dir=.
  11801. for ac_exec_ext in '' $ac_executable_extensions; do
  11802. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11803. ac_cv_path_SDL2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  11804. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11805. break 2
  11806. fi
  11807. done
  11808. done
  11809. IFS=$as_save_IFS
  11810. test -z "$ac_cv_path_SDL2_CONFIG" && ac_cv_path_SDL2_CONFIG="no"
  11811. ;;
  11812. esac
  11813. fi
  11814. SDL2_CONFIG=$ac_cv_path_SDL2_CONFIG
  11815. if test -n "$SDL2_CONFIG"; then
  11816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL2_CONFIG" >&5
  11817. $as_echo "$SDL2_CONFIG" >&6; }
  11818. else
  11819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11820. $as_echo "no" >&6; }
  11821. fi
  11822. PATH="$as_save_PATH"
  11823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
  11824. $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
  11825. no_sdl=""
  11826. if test "$SDL2_CONFIG" = "no" ; then
  11827. no_sdl=yes
  11828. else
  11829. SDL_CFLAGS=`$SDL2_CONFIG $sdl_config_args --cflags`
  11830. SDL_LIBS=`$SDL2_CONFIG $sdl_config_args --libs`
  11831. sdl_major_version=`$SDL2_CONFIG $sdl_config_args --version | \
  11832. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  11833. sdl_minor_version=`$SDL2_CONFIG $sdl_config_args --version | \
  11834. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  11835. sdl_micro_version=`$SDL2_CONFIG $sdl_config_args --version | \
  11836. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  11837. if test "x$enable_sdltest" = "xyes" ; then
  11838. ac_save_CFLAGS="$CFLAGS"
  11839. ac_save_CXXFLAGS="$CXXFLAGS"
  11840. ac_save_LIBS="$LIBS"
  11841. CFLAGS="$CFLAGS $SDL_CFLAGS"
  11842. CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
  11843. LIBS="$LIBS $SDL_LIBS"
  11844. rm -f conf.sdltest
  11845. if test "$cross_compiling" = yes; then :
  11846. echo $ac_n "cross compiling; assumed OK... $ac_c"
  11847. else
  11848. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11849. /* end confdefs.h. */
  11850. #include <stdio.h>
  11851. #include <stdlib.h>
  11852. #include <string.h>
  11853. #include "SDL.h"
  11854. char*
  11855. my_strdup (char *str)
  11856. {
  11857. char *new_str;
  11858. if (str)
  11859. {
  11860. new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
  11861. strcpy (new_str, str);
  11862. }
  11863. else
  11864. new_str = NULL;
  11865. return new_str;
  11866. }
  11867. int main (int argc, char *argv[])
  11868. {
  11869. int major, minor, micro;
  11870. char *tmp_version;
  11871. /* This hangs on some systems (?)
  11872. system ("touch conf.sdltest");
  11873. */
  11874. { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
  11875. /* HP/UX 9 (%@#!) writes to sscanf strings */
  11876. tmp_version = my_strdup("$min_sdl_version");
  11877. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  11878. printf("%s, bad version string\n", "$min_sdl_version");
  11879. exit(1);
  11880. }
  11881. if (($sdl_major_version > major) ||
  11882. (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
  11883. (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
  11884. {
  11885. return 0;
  11886. }
  11887. else
  11888. {
  11889. printf("\n*** 'sdl2-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
  11890. printf("*** of SDL required is %d.%d.%d. If sdl2-config is correct, then it is\n", major, minor, micro);
  11891. printf("*** best to upgrade to the required version.\n");
  11892. printf("*** If sdl2-config was wrong, set the environment variable SDL2_CONFIG\n");
  11893. printf("*** to point to the correct copy of sdl2-config, and remove the file\n");
  11894. printf("*** config.cache before re-running configure\n");
  11895. return 1;
  11896. }
  11897. }
  11898. _ACEOF
  11899. if ac_fn_c_try_run "$LINENO"; then :
  11900. else
  11901. no_sdl=yes
  11902. fi
  11903. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11904. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11905. fi
  11906. CFLAGS="$ac_save_CFLAGS"
  11907. CXXFLAGS="$ac_save_CXXFLAGS"
  11908. LIBS="$ac_save_LIBS"
  11909. fi
  11910. fi
  11911. if test "x$no_sdl" = x ; then
  11912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11913. $as_echo "yes" >&6; }
  11914. else
  11915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11916. $as_echo "no" >&6; }
  11917. fi
  11918. fi
  11919. if test "x$no_sdl" = x ; then
  11920. :
  11921. else
  11922. if test "$SDL2_CONFIG" = "no" ; then
  11923. echo "*** The sdl2-config script installed by SDL could not be found"
  11924. echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
  11925. echo "*** your path, or set the SDL2_CONFIG environment variable to the"
  11926. echo "*** full path to sdl2-config."
  11927. else
  11928. if test -f conf.sdltest ; then
  11929. :
  11930. else
  11931. echo "*** Could not run SDL test program, checking why..."
  11932. CFLAGS="$CFLAGS $SDL_CFLAGS"
  11933. CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
  11934. LIBS="$LIBS $SDL_LIBS"
  11935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11936. /* end confdefs.h. */
  11937. #include <stdio.h>
  11938. #include "SDL.h"
  11939. int main(int argc, char *argv[])
  11940. { return 0; }
  11941. #undef main
  11942. #define main K_and_R_C_main
  11943. int
  11944. main ()
  11945. {
  11946. return 0;
  11947. ;
  11948. return 0;
  11949. }
  11950. _ACEOF
  11951. if ac_fn_c_try_link "$LINENO"; then :
  11952. echo "*** The test program compiled, but did not run. This usually means"
  11953. echo "*** that the run-time linker is not finding SDL or finding the wrong"
  11954. echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
  11955. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  11956. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  11957. echo "*** is required on your system"
  11958. echo "***"
  11959. echo "*** If you have an old version installed, it is best to remove it, although"
  11960. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  11961. else
  11962. echo "*** The test program failed to compile or link. See the file config.log for the"
  11963. echo "*** exact error that occured. This usually means SDL was incorrectly installed"
  11964. echo "*** or that you have moved SDL since it was installed. In the latter case, you"
  11965. echo "*** may want to edit the sdl2-config script: $SDL2_CONFIG"
  11966. fi
  11967. rm -f core conftest.err conftest.$ac_objext \
  11968. conftest$ac_exeext conftest.$ac_ext
  11969. CFLAGS="$ac_save_CFLAGS"
  11970. CXXFLAGS="$ac_save_CXXFLAGS"
  11971. LIBS="$ac_save_LIBS"
  11972. fi
  11973. fi
  11974. SDL_CFLAGS=""
  11975. SDL_LIBS=""
  11976. as_fn_error $? "*** SDL version $SDL_VERSION not found!" "$LINENO" 5
  11977. fi
  11978. rm -f conf.sdltest
  11979. CFLAGS="$CFLAGS $SDL_CFLAGS"
  11980. LIBS="$LIBS $SDL_LIBS"
  11981. case "$host" in
  11982. *-*-cygwin* | *-*-mingw32*)
  11983. MATHLIB=""
  11984. SYS_GL_LIBS="-lopengl32"
  11985. ;;
  11986. *-*-beos*)
  11987. MATHLIB=""
  11988. SYS_GL_LIBS="-lGL"
  11989. ;;
  11990. *-*-darwin*)
  11991. MATHLIB=""
  11992. SYS_GL_LIBS="-Wl,-framework,OpenGL"
  11993. ;;
  11994. *-*-aix*)
  11995. if test x$ac_cv_c_compiler_gnu = xyes; then
  11996. CFLAGS="-mthreads"
  11997. fi
  11998. SYS_GL_LIBS=""
  11999. ;;
  12000. *)
  12001. MATHLIB="-lm"
  12002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  12003. $as_echo_n "checking for X... " >&6; }
  12004. # Check whether --with-x was given.
  12005. if test "${with_x+set}" = set; then :
  12006. withval=$with_x;
  12007. fi
  12008. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  12009. if test "x$with_x" = xno; then
  12010. # The user explicitly disabled X.
  12011. have_x=disabled
  12012. else
  12013. case $x_includes,$x_libraries in #(
  12014. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  12015. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  12016. $as_echo_n "(cached) " >&6
  12017. else
  12018. # One or both of the vars are not set, and there is no cached value.
  12019. ac_x_includes=no ac_x_libraries=no
  12020. rm -f -r conftest.dir
  12021. if mkdir conftest.dir; then
  12022. cd conftest.dir
  12023. cat >Imakefile <<'_ACEOF'
  12024. incroot:
  12025. @echo incroot='${INCROOT}'
  12026. usrlibdir:
  12027. @echo usrlibdir='${USRLIBDIR}'
  12028. libdir:
  12029. @echo libdir='${LIBDIR}'
  12030. _ACEOF
  12031. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  12032. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  12033. for ac_var in incroot usrlibdir libdir; do
  12034. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  12035. done
  12036. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  12037. for ac_extension in a so sl dylib la dll; do
  12038. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  12039. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  12040. ac_im_usrlibdir=$ac_im_libdir; break
  12041. fi
  12042. done
  12043. # Screen out bogus values from the imake configuration. They are
  12044. # bogus both because they are the default anyway, and because
  12045. # using them would break gcc on systems where it needs fixed includes.
  12046. case $ac_im_incroot in
  12047. /usr/include) ac_x_includes= ;;
  12048. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  12049. esac
  12050. case $ac_im_usrlibdir in
  12051. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  12052. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  12053. esac
  12054. fi
  12055. cd ..
  12056. rm -f -r conftest.dir
  12057. fi
  12058. # Standard set of common directories for X headers.
  12059. # Check X11 before X11Rn because it is often a symlink to the current release.
  12060. ac_x_header_dirs='
  12061. /usr/X11/include
  12062. /usr/X11R7/include
  12063. /usr/X11R6/include
  12064. /usr/X11R5/include
  12065. /usr/X11R4/include
  12066. /usr/include/X11
  12067. /usr/include/X11R7
  12068. /usr/include/X11R6
  12069. /usr/include/X11R5
  12070. /usr/include/X11R4
  12071. /usr/local/X11/include
  12072. /usr/local/X11R7/include
  12073. /usr/local/X11R6/include
  12074. /usr/local/X11R5/include
  12075. /usr/local/X11R4/include
  12076. /usr/local/include/X11
  12077. /usr/local/include/X11R7
  12078. /usr/local/include/X11R6
  12079. /usr/local/include/X11R5
  12080. /usr/local/include/X11R4
  12081. /usr/X386/include
  12082. /usr/x386/include
  12083. /usr/XFree86/include/X11
  12084. /usr/include
  12085. /usr/local/include
  12086. /usr/unsupported/include
  12087. /usr/athena/include
  12088. /usr/local/x11r5/include
  12089. /usr/lpp/Xamples/include
  12090. /usr/openwin/include
  12091. /usr/openwin/share/include'
  12092. if test "$ac_x_includes" = no; then
  12093. # Guess where to find include files, by looking for Xlib.h.
  12094. # First, try using that file with no special directory specified.
  12095. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12096. /* end confdefs.h. */
  12097. #include <X11/Xlib.h>
  12098. _ACEOF
  12099. if ac_fn_c_try_cpp "$LINENO"; then :
  12100. # We can compile using X headers with no special include directory.
  12101. ac_x_includes=
  12102. else
  12103. for ac_dir in $ac_x_header_dirs; do
  12104. if test -r "$ac_dir/X11/Xlib.h"; then
  12105. ac_x_includes=$ac_dir
  12106. break
  12107. fi
  12108. done
  12109. fi
  12110. rm -f conftest.err conftest.i conftest.$ac_ext
  12111. fi # $ac_x_includes = no
  12112. if test "$ac_x_libraries" = no; then
  12113. # Check for the libraries.
  12114. # See if we find them without any special options.
  12115. # Don't add to $LIBS permanently.
  12116. ac_save_LIBS=$LIBS
  12117. LIBS="-lX11 $LIBS"
  12118. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12119. /* end confdefs.h. */
  12120. #include <X11/Xlib.h>
  12121. int
  12122. main ()
  12123. {
  12124. XrmInitialize ()
  12125. ;
  12126. return 0;
  12127. }
  12128. _ACEOF
  12129. if ac_fn_c_try_link "$LINENO"; then :
  12130. LIBS=$ac_save_LIBS
  12131. # We can link X programs with no special library path.
  12132. ac_x_libraries=
  12133. else
  12134. LIBS=$ac_save_LIBS
  12135. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  12136. do
  12137. # Don't even attempt the hair of trying to link an X program!
  12138. for ac_extension in a so sl dylib la dll; do
  12139. if test -r "$ac_dir/libX11.$ac_extension"; then
  12140. ac_x_libraries=$ac_dir
  12141. break 2
  12142. fi
  12143. done
  12144. done
  12145. fi
  12146. rm -f core conftest.err conftest.$ac_objext \
  12147. conftest$ac_exeext conftest.$ac_ext
  12148. fi # $ac_x_libraries = no
  12149. case $ac_x_includes,$ac_x_libraries in #(
  12150. no,* | *,no | *\'*)
  12151. # Didn't find X, or a directory has "'" in its name.
  12152. ac_cv_have_x="have_x=no";; #(
  12153. *)
  12154. # Record where we found X for the cache.
  12155. ac_cv_have_x="have_x=yes\
  12156. ac_x_includes='$ac_x_includes'\
  12157. ac_x_libraries='$ac_x_libraries'"
  12158. esac
  12159. fi
  12160. ;; #(
  12161. *) have_x=yes;;
  12162. esac
  12163. eval "$ac_cv_have_x"
  12164. fi # $with_x != no
  12165. if test "$have_x" != yes; then
  12166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  12167. $as_echo "$have_x" >&6; }
  12168. no_x=yes
  12169. else
  12170. # If each of the values was on the command line, it overrides each guess.
  12171. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  12172. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  12173. # Update the cache value to reflect the command line values.
  12174. ac_cv_have_x="have_x=yes\
  12175. ac_x_includes='$x_includes'\
  12176. ac_x_libraries='$x_libraries'"
  12177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  12178. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  12179. fi
  12180. if test "$no_x" = yes; then
  12181. # Not all programs may use this symbol, but it does not hurt to define it.
  12182. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  12183. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  12184. else
  12185. if test -n "$x_includes"; then
  12186. X_CFLAGS="$X_CFLAGS -I$x_includes"
  12187. fi
  12188. # It would also be nice to do this for all -L options, not just this one.
  12189. if test -n "$x_libraries"; then
  12190. X_LIBS="$X_LIBS -L$x_libraries"
  12191. # For Solaris; some versions of Sun CC require a space after -R and
  12192. # others require no space. Words are not sufficient . . . .
  12193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  12194. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  12195. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  12196. ac_xsave_c_werror_flag=$ac_c_werror_flag
  12197. ac_c_werror_flag=yes
  12198. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12199. /* end confdefs.h. */
  12200. int
  12201. main ()
  12202. {
  12203. ;
  12204. return 0;
  12205. }
  12206. _ACEOF
  12207. if ac_fn_c_try_link "$LINENO"; then :
  12208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12209. $as_echo "no" >&6; }
  12210. X_LIBS="$X_LIBS -R$x_libraries"
  12211. else
  12212. LIBS="$ac_xsave_LIBS -R $x_libraries"
  12213. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12214. /* end confdefs.h. */
  12215. int
  12216. main ()
  12217. {
  12218. ;
  12219. return 0;
  12220. }
  12221. _ACEOF
  12222. if ac_fn_c_try_link "$LINENO"; then :
  12223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12224. $as_echo "yes" >&6; }
  12225. X_LIBS="$X_LIBS -R $x_libraries"
  12226. else
  12227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  12228. $as_echo "neither works" >&6; }
  12229. fi
  12230. rm -f core conftest.err conftest.$ac_objext \
  12231. conftest$ac_exeext conftest.$ac_ext
  12232. fi
  12233. rm -f core conftest.err conftest.$ac_objext \
  12234. conftest$ac_exeext conftest.$ac_ext
  12235. ac_c_werror_flag=$ac_xsave_c_werror_flag
  12236. LIBS=$ac_xsave_LIBS
  12237. fi
  12238. # Check for system-dependent libraries X programs must link with.
  12239. # Do this before checking for the system-independent R6 libraries
  12240. # (-lICE), since we may need -lsocket or whatever for X linking.
  12241. if test "$ISC" = yes; then
  12242. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  12243. else
  12244. # Martyn Johnson says this is needed for Ultrix, if the X
  12245. # libraries were built with DECnet support. And Karl Berry says
  12246. # the Alpha needs dnet_stub (dnet does not exist).
  12247. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  12248. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12249. /* end confdefs.h. */
  12250. /* Override any GCC internal prototype to avoid an error.
  12251. Use char because int might match the return type of a GCC
  12252. builtin and then its argument prototype would still apply. */
  12253. #ifdef __cplusplus
  12254. extern "C"
  12255. #endif
  12256. char XOpenDisplay ();
  12257. int
  12258. main ()
  12259. {
  12260. return XOpenDisplay ();
  12261. ;
  12262. return 0;
  12263. }
  12264. _ACEOF
  12265. if ac_fn_c_try_link "$LINENO"; then :
  12266. else
  12267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  12268. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  12269. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  12270. $as_echo_n "(cached) " >&6
  12271. else
  12272. ac_check_lib_save_LIBS=$LIBS
  12273. LIBS="-ldnet $LIBS"
  12274. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12275. /* end confdefs.h. */
  12276. /* Override any GCC internal prototype to avoid an error.
  12277. Use char because int might match the return type of a GCC
  12278. builtin and then its argument prototype would still apply. */
  12279. #ifdef __cplusplus
  12280. extern "C"
  12281. #endif
  12282. char dnet_ntoa ();
  12283. int
  12284. main ()
  12285. {
  12286. return dnet_ntoa ();
  12287. ;
  12288. return 0;
  12289. }
  12290. _ACEOF
  12291. if ac_fn_c_try_link "$LINENO"; then :
  12292. ac_cv_lib_dnet_dnet_ntoa=yes
  12293. else
  12294. ac_cv_lib_dnet_dnet_ntoa=no
  12295. fi
  12296. rm -f core conftest.err conftest.$ac_objext \
  12297. conftest$ac_exeext conftest.$ac_ext
  12298. LIBS=$ac_check_lib_save_LIBS
  12299. fi
  12300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  12301. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  12302. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  12303. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  12304. fi
  12305. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  12306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  12307. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  12308. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  12309. $as_echo_n "(cached) " >&6
  12310. else
  12311. ac_check_lib_save_LIBS=$LIBS
  12312. LIBS="-ldnet_stub $LIBS"
  12313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12314. /* end confdefs.h. */
  12315. /* Override any GCC internal prototype to avoid an error.
  12316. Use char because int might match the return type of a GCC
  12317. builtin and then its argument prototype would still apply. */
  12318. #ifdef __cplusplus
  12319. extern "C"
  12320. #endif
  12321. char dnet_ntoa ();
  12322. int
  12323. main ()
  12324. {
  12325. return dnet_ntoa ();
  12326. ;
  12327. return 0;
  12328. }
  12329. _ACEOF
  12330. if ac_fn_c_try_link "$LINENO"; then :
  12331. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  12332. else
  12333. ac_cv_lib_dnet_stub_dnet_ntoa=no
  12334. fi
  12335. rm -f core conftest.err conftest.$ac_objext \
  12336. conftest$ac_exeext conftest.$ac_ext
  12337. LIBS=$ac_check_lib_save_LIBS
  12338. fi
  12339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  12340. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  12341. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  12342. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  12343. fi
  12344. fi
  12345. fi
  12346. rm -f core conftest.err conftest.$ac_objext \
  12347. conftest$ac_exeext conftest.$ac_ext
  12348. LIBS="$ac_xsave_LIBS"
  12349. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  12350. # to get the SysV transport functions.
  12351. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  12352. # needs -lnsl.
  12353. # The nsl library prevents programs from opening the X display
  12354. # on Irix 5.2, according to T.E. Dickey.
  12355. # The functions gethostbyname, getservbyname, and inet_addr are
  12356. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  12357. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  12358. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  12359. fi
  12360. if test $ac_cv_func_gethostbyname = no; then
  12361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  12362. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  12363. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  12364. $as_echo_n "(cached) " >&6
  12365. else
  12366. ac_check_lib_save_LIBS=$LIBS
  12367. LIBS="-lnsl $LIBS"
  12368. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12369. /* end confdefs.h. */
  12370. /* Override any GCC internal prototype to avoid an error.
  12371. Use char because int might match the return type of a GCC
  12372. builtin and then its argument prototype would still apply. */
  12373. #ifdef __cplusplus
  12374. extern "C"
  12375. #endif
  12376. char gethostbyname ();
  12377. int
  12378. main ()
  12379. {
  12380. return gethostbyname ();
  12381. ;
  12382. return 0;
  12383. }
  12384. _ACEOF
  12385. if ac_fn_c_try_link "$LINENO"; then :
  12386. ac_cv_lib_nsl_gethostbyname=yes
  12387. else
  12388. ac_cv_lib_nsl_gethostbyname=no
  12389. fi
  12390. rm -f core conftest.err conftest.$ac_objext \
  12391. conftest$ac_exeext conftest.$ac_ext
  12392. LIBS=$ac_check_lib_save_LIBS
  12393. fi
  12394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  12395. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  12396. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  12397. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  12398. fi
  12399. if test $ac_cv_lib_nsl_gethostbyname = no; then
  12400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  12401. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  12402. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  12403. $as_echo_n "(cached) " >&6
  12404. else
  12405. ac_check_lib_save_LIBS=$LIBS
  12406. LIBS="-lbsd $LIBS"
  12407. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12408. /* end confdefs.h. */
  12409. /* Override any GCC internal prototype to avoid an error.
  12410. Use char because int might match the return type of a GCC
  12411. builtin and then its argument prototype would still apply. */
  12412. #ifdef __cplusplus
  12413. extern "C"
  12414. #endif
  12415. char gethostbyname ();
  12416. int
  12417. main ()
  12418. {
  12419. return gethostbyname ();
  12420. ;
  12421. return 0;
  12422. }
  12423. _ACEOF
  12424. if ac_fn_c_try_link "$LINENO"; then :
  12425. ac_cv_lib_bsd_gethostbyname=yes
  12426. else
  12427. ac_cv_lib_bsd_gethostbyname=no
  12428. fi
  12429. rm -f core conftest.err conftest.$ac_objext \
  12430. conftest$ac_exeext conftest.$ac_ext
  12431. LIBS=$ac_check_lib_save_LIBS
  12432. fi
  12433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  12434. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  12435. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  12436. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  12437. fi
  12438. fi
  12439. fi
  12440. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  12441. # socket/setsockopt and other routines are undefined under SCO ODT
  12442. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  12443. # on later versions), says Simon Leinen: it contains gethostby*
  12444. # variants that don't use the name server (or something). -lsocket
  12445. # must be given before -lnsl if both are needed. We assume that
  12446. # if connect needs -lnsl, so does gethostbyname.
  12447. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  12448. if test "x$ac_cv_func_connect" = xyes; then :
  12449. fi
  12450. if test $ac_cv_func_connect = no; then
  12451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  12452. $as_echo_n "checking for connect in -lsocket... " >&6; }
  12453. if ${ac_cv_lib_socket_connect+:} false; then :
  12454. $as_echo_n "(cached) " >&6
  12455. else
  12456. ac_check_lib_save_LIBS=$LIBS
  12457. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  12458. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12459. /* end confdefs.h. */
  12460. /* Override any GCC internal prototype to avoid an error.
  12461. Use char because int might match the return type of a GCC
  12462. builtin and then its argument prototype would still apply. */
  12463. #ifdef __cplusplus
  12464. extern "C"
  12465. #endif
  12466. char connect ();
  12467. int
  12468. main ()
  12469. {
  12470. return connect ();
  12471. ;
  12472. return 0;
  12473. }
  12474. _ACEOF
  12475. if ac_fn_c_try_link "$LINENO"; then :
  12476. ac_cv_lib_socket_connect=yes
  12477. else
  12478. ac_cv_lib_socket_connect=no
  12479. fi
  12480. rm -f core conftest.err conftest.$ac_objext \
  12481. conftest$ac_exeext conftest.$ac_ext
  12482. LIBS=$ac_check_lib_save_LIBS
  12483. fi
  12484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  12485. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  12486. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  12487. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  12488. fi
  12489. fi
  12490. # Guillermo Gomez says -lposix is necessary on A/UX.
  12491. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  12492. if test "x$ac_cv_func_remove" = xyes; then :
  12493. fi
  12494. if test $ac_cv_func_remove = no; then
  12495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  12496. $as_echo_n "checking for remove in -lposix... " >&6; }
  12497. if ${ac_cv_lib_posix_remove+:} false; then :
  12498. $as_echo_n "(cached) " >&6
  12499. else
  12500. ac_check_lib_save_LIBS=$LIBS
  12501. LIBS="-lposix $LIBS"
  12502. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12503. /* end confdefs.h. */
  12504. /* Override any GCC internal prototype to avoid an error.
  12505. Use char because int might match the return type of a GCC
  12506. builtin and then its argument prototype would still apply. */
  12507. #ifdef __cplusplus
  12508. extern "C"
  12509. #endif
  12510. char remove ();
  12511. int
  12512. main ()
  12513. {
  12514. return remove ();
  12515. ;
  12516. return 0;
  12517. }
  12518. _ACEOF
  12519. if ac_fn_c_try_link "$LINENO"; then :
  12520. ac_cv_lib_posix_remove=yes
  12521. else
  12522. ac_cv_lib_posix_remove=no
  12523. fi
  12524. rm -f core conftest.err conftest.$ac_objext \
  12525. conftest$ac_exeext conftest.$ac_ext
  12526. LIBS=$ac_check_lib_save_LIBS
  12527. fi
  12528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  12529. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  12530. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  12531. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  12532. fi
  12533. fi
  12534. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  12535. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  12536. if test "x$ac_cv_func_shmat" = xyes; then :
  12537. fi
  12538. if test $ac_cv_func_shmat = no; then
  12539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  12540. $as_echo_n "checking for shmat in -lipc... " >&6; }
  12541. if ${ac_cv_lib_ipc_shmat+:} false; then :
  12542. $as_echo_n "(cached) " >&6
  12543. else
  12544. ac_check_lib_save_LIBS=$LIBS
  12545. LIBS="-lipc $LIBS"
  12546. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12547. /* end confdefs.h. */
  12548. /* Override any GCC internal prototype to avoid an error.
  12549. Use char because int might match the return type of a GCC
  12550. builtin and then its argument prototype would still apply. */
  12551. #ifdef __cplusplus
  12552. extern "C"
  12553. #endif
  12554. char shmat ();
  12555. int
  12556. main ()
  12557. {
  12558. return shmat ();
  12559. ;
  12560. return 0;
  12561. }
  12562. _ACEOF
  12563. if ac_fn_c_try_link "$LINENO"; then :
  12564. ac_cv_lib_ipc_shmat=yes
  12565. else
  12566. ac_cv_lib_ipc_shmat=no
  12567. fi
  12568. rm -f core conftest.err conftest.$ac_objext \
  12569. conftest$ac_exeext conftest.$ac_ext
  12570. LIBS=$ac_check_lib_save_LIBS
  12571. fi
  12572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  12573. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  12574. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  12575. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  12576. fi
  12577. fi
  12578. fi
  12579. # Check for libraries that X11R6 Xt/Xaw programs need.
  12580. ac_save_LDFLAGS=$LDFLAGS
  12581. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  12582. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  12583. # check for ICE first), but we must link in the order -lSM -lICE or
  12584. # we get undefined symbols. So assume we have SM if we have ICE.
  12585. # These have to be linked with before -lX11, unlike the other
  12586. # libraries we check for below, so use a different variable.
  12587. # John Interrante, Karl Berry
  12588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  12589. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  12590. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  12591. $as_echo_n "(cached) " >&6
  12592. else
  12593. ac_check_lib_save_LIBS=$LIBS
  12594. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  12595. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12596. /* end confdefs.h. */
  12597. /* Override any GCC internal prototype to avoid an error.
  12598. Use char because int might match the return type of a GCC
  12599. builtin and then its argument prototype would still apply. */
  12600. #ifdef __cplusplus
  12601. extern "C"
  12602. #endif
  12603. char IceConnectionNumber ();
  12604. int
  12605. main ()
  12606. {
  12607. return IceConnectionNumber ();
  12608. ;
  12609. return 0;
  12610. }
  12611. _ACEOF
  12612. if ac_fn_c_try_link "$LINENO"; then :
  12613. ac_cv_lib_ICE_IceConnectionNumber=yes
  12614. else
  12615. ac_cv_lib_ICE_IceConnectionNumber=no
  12616. fi
  12617. rm -f core conftest.err conftest.$ac_objext \
  12618. conftest$ac_exeext conftest.$ac_ext
  12619. LIBS=$ac_check_lib_save_LIBS
  12620. fi
  12621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  12622. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  12623. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  12624. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  12625. fi
  12626. LDFLAGS=$ac_save_LDFLAGS
  12627. fi
  12628. if test x$have_x = xyes; then
  12629. CFLAGS="$CFLAGS $X_CFLAGS"
  12630. SYS_GL_LIBS="$X_LIBS -lGL"
  12631. else
  12632. SYS_GL_LIBS="-lGL"
  12633. fi
  12634. ;;
  12635. esac
  12636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL support" >&5
  12637. $as_echo_n "checking for OpenGL support... " >&6; }
  12638. have_opengl=no
  12639. save_LIBS="$LIBS"
  12640. LIBS="$LIBS $SYS_GL_LIBS"
  12641. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12642. /* end confdefs.h. */
  12643. #include "SDL_opengl.h"
  12644. int
  12645. main ()
  12646. {
  12647. glOrtho( -2.0, 2.0, -2.0, 2.0, -20.0, 20.0 );
  12648. ;
  12649. return 0;
  12650. }
  12651. _ACEOF
  12652. if ac_fn_c_try_link "$LINENO"; then :
  12653. have_opengl=yes
  12654. fi
  12655. rm -f core conftest.err conftest.$ac_objext \
  12656. conftest$ac_exeext conftest.$ac_ext
  12657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_opengl" >&5
  12658. $as_echo "$have_opengl" >&6; }
  12659. LIBS="$save_LIBS"
  12660. if test x$have_opengl = xyes; then
  12661. CFLAGS="$CFLAGS -DHAVE_OPENGL"
  12662. GL_LIBS="$SYS_GL_LIBS"
  12663. else
  12664. GL_LIBS=""
  12665. fi
  12666. # Finally create all the generated files
  12667. ac_config_files="$ac_config_files Makefile SDL2_ttf.spec SDL2_ttf.pc"
  12668. cat >confcache <<\_ACEOF
  12669. # This file is a shell script that caches the results of configure
  12670. # tests run on this system so they can be shared between configure
  12671. # scripts and configure runs, see configure's option --config-cache.
  12672. # It is not useful on other systems. If it contains results you don't
  12673. # want to keep, you may remove or edit it.
  12674. #
  12675. # config.status only pays attention to the cache file if you give it
  12676. # the --recheck option to rerun configure.
  12677. #
  12678. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12679. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12680. # following values.
  12681. _ACEOF
  12682. # The following way of writing the cache mishandles newlines in values,
  12683. # but we know of no workaround that is simple, portable, and efficient.
  12684. # So, we kill variables containing newlines.
  12685. # Ultrix sh set writes to stderr and can't be redirected directly,
  12686. # and sets the high bit in the cache file unless we assign to the vars.
  12687. (
  12688. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  12689. eval ac_val=\$$ac_var
  12690. case $ac_val in #(
  12691. *${as_nl}*)
  12692. case $ac_var in #(
  12693. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  12694. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  12695. esac
  12696. case $ac_var in #(
  12697. _ | IFS | as_nl) ;; #(
  12698. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  12699. *) { eval $ac_var=; unset $ac_var;} ;;
  12700. esac ;;
  12701. esac
  12702. done
  12703. (set) 2>&1 |
  12704. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  12705. *${as_nl}ac_space=\ *)
  12706. # `set' does not quote correctly, so add quotes: double-quote
  12707. # substitution turns \\\\ into \\, and sed turns \\ into \.
  12708. sed -n \
  12709. "s/'/'\\\\''/g;
  12710. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12711. ;; #(
  12712. *)
  12713. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12714. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  12715. ;;
  12716. esac |
  12717. sort
  12718. ) |
  12719. sed '
  12720. /^ac_cv_env_/b end
  12721. t clear
  12722. :clear
  12723. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12724. t end
  12725. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12726. :end' >>confcache
  12727. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  12728. if test -w "$cache_file"; then
  12729. if test "x$cache_file" != "x/dev/null"; then
  12730. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  12731. $as_echo "$as_me: updating cache $cache_file" >&6;}
  12732. if test ! -f "$cache_file" || test -h "$cache_file"; then
  12733. cat confcache >"$cache_file"
  12734. else
  12735. case $cache_file in #(
  12736. */* | ?:*)
  12737. mv -f confcache "$cache_file"$$ &&
  12738. mv -f "$cache_file"$$ "$cache_file" ;; #(
  12739. *)
  12740. mv -f confcache "$cache_file" ;;
  12741. esac
  12742. fi
  12743. fi
  12744. else
  12745. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  12746. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  12747. fi
  12748. fi
  12749. rm -f confcache
  12750. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  12751. # Let make expand exec_prefix.
  12752. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  12753. # Transform confdefs.h into DEFS.
  12754. # Protect against shell expansion while executing Makefile rules.
  12755. # Protect against Makefile macro expansion.
  12756. #
  12757. # If the first sed substitution is executed (which looks for macros that
  12758. # take arguments), then branch to the quote section. Otherwise,
  12759. # look for a macro that doesn't take arguments.
  12760. ac_script='
  12761. :mline
  12762. /\\$/{
  12763. N
  12764. s,\\\n,,
  12765. b mline
  12766. }
  12767. t clear
  12768. :clear
  12769. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  12770. t quote
  12771. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  12772. t quote
  12773. b any
  12774. :quote
  12775. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  12776. s/\[/\\&/g
  12777. s/\]/\\&/g
  12778. s/\$/$$/g
  12779. H
  12780. :any
  12781. ${
  12782. g
  12783. s/^\n//
  12784. s/\n/ /g
  12785. p
  12786. }
  12787. '
  12788. DEFS=`sed -n "$ac_script" confdefs.h`
  12789. ac_libobjs=
  12790. ac_ltlibobjs=
  12791. U=
  12792. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  12793. # 1. Remove the extension, and $U if already installed.
  12794. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  12795. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  12796. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  12797. # will be set to the directory where LIBOBJS objects are built.
  12798. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  12799. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  12800. done
  12801. LIBOBJS=$ac_libobjs
  12802. LTLIBOBJS=$ac_ltlibobjs
  12803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  12804. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  12805. if test -n "$am_sleep_pid"; then
  12806. # Hide warnings about reused PIDs.
  12807. wait $am_sleep_pid 2>/dev/null
  12808. fi
  12809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  12810. $as_echo "done" >&6; }
  12811. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  12812. as_fn_error $? "conditional \"AMDEP\" was never defined.
  12813. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12814. fi
  12815. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  12816. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  12817. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12818. fi
  12819. if test -n "$EXEEXT"; then
  12820. am__EXEEXT_TRUE=
  12821. am__EXEEXT_FALSE='#'
  12822. else
  12823. am__EXEEXT_TRUE='#'
  12824. am__EXEEXT_FALSE=
  12825. fi
  12826. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  12827. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  12828. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12829. fi
  12830. if test -z "${USE_VERSION_RC_TRUE}" && test -z "${USE_VERSION_RC_FALSE}"; then
  12831. as_fn_error $? "conditional \"USE_VERSION_RC\" was never defined.
  12832. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12833. fi
  12834. if test -z "${HAVE_RAQM_TRUE}" && test -z "${HAVE_RAQM_FALSE}"; then
  12835. as_fn_error $? "conditional \"HAVE_RAQM\" was never defined.
  12836. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12837. fi
  12838. : "${CONFIG_STATUS=./config.status}"
  12839. ac_write_fail=0
  12840. ac_clean_files_save=$ac_clean_files
  12841. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  12842. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  12843. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  12844. as_write_fail=0
  12845. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  12846. #! $SHELL
  12847. # Generated by $as_me.
  12848. # Run this file to recreate the current configuration.
  12849. # Compiler output produced by configure, useful for debugging
  12850. # configure, is in config.log if it exists.
  12851. debug=false
  12852. ac_cs_recheck=false
  12853. ac_cs_silent=false
  12854. SHELL=\${CONFIG_SHELL-$SHELL}
  12855. export SHELL
  12856. _ASEOF
  12857. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  12858. ## -------------------- ##
  12859. ## M4sh Initialization. ##
  12860. ## -------------------- ##
  12861. # Be more Bourne compatible
  12862. DUALCASE=1; export DUALCASE # for MKS sh
  12863. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  12864. emulate sh
  12865. NULLCMD=:
  12866. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  12867. # is contrary to our usage. Disable this feature.
  12868. alias -g '${1+"$@"}'='"$@"'
  12869. setopt NO_GLOB_SUBST
  12870. else
  12871. case `(set -o) 2>/dev/null` in #(
  12872. *posix*) :
  12873. set -o posix ;; #(
  12874. *) :
  12875. ;;
  12876. esac
  12877. fi
  12878. as_nl='
  12879. '
  12880. export as_nl
  12881. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  12882. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  12883. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  12884. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  12885. # Prefer a ksh shell builtin over an external printf program on Solaris,
  12886. # but without wasting forks for bash or zsh.
  12887. if test -z "$BASH_VERSION$ZSH_VERSION" \
  12888. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  12889. as_echo='print -r --'
  12890. as_echo_n='print -rn --'
  12891. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  12892. as_echo='printf %s\n'
  12893. as_echo_n='printf %s'
  12894. else
  12895. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  12896. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  12897. as_echo_n='/usr/ucb/echo -n'
  12898. else
  12899. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  12900. as_echo_n_body='eval
  12901. arg=$1;
  12902. case $arg in #(
  12903. *"$as_nl"*)
  12904. expr "X$arg" : "X\\(.*\\)$as_nl";
  12905. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  12906. esac;
  12907. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  12908. '
  12909. export as_echo_n_body
  12910. as_echo_n='sh -c $as_echo_n_body as_echo'
  12911. fi
  12912. export as_echo_body
  12913. as_echo='sh -c $as_echo_body as_echo'
  12914. fi
  12915. # The user is always right.
  12916. if test "${PATH_SEPARATOR+set}" != set; then
  12917. PATH_SEPARATOR=:
  12918. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  12919. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  12920. PATH_SEPARATOR=';'
  12921. }
  12922. fi
  12923. # IFS
  12924. # We need space, tab and new line, in precisely that order. Quoting is
  12925. # there to prevent editors from complaining about space-tab.
  12926. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  12927. # splitting by setting IFS to empty value.)
  12928. IFS=" "" $as_nl"
  12929. # Find who we are. Look in the path if we contain no directory separator.
  12930. as_myself=
  12931. case $0 in #((
  12932. *[\\/]* ) as_myself=$0 ;;
  12933. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12934. for as_dir in $PATH
  12935. do
  12936. IFS=$as_save_IFS
  12937. test -z "$as_dir" && as_dir=.
  12938. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12939. done
  12940. IFS=$as_save_IFS
  12941. ;;
  12942. esac
  12943. # We did not find ourselves, most probably we were run as `sh COMMAND'
  12944. # in which case we are not to be found in the path.
  12945. if test "x$as_myself" = x; then
  12946. as_myself=$0
  12947. fi
  12948. if test ! -f "$as_myself"; then
  12949. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  12950. exit 1
  12951. fi
  12952. # Unset variables that we do not need and which cause bugs (e.g. in
  12953. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  12954. # suppresses any "Segmentation fault" message there. '((' could
  12955. # trigger a bug in pdksh 5.2.14.
  12956. for as_var in BASH_ENV ENV MAIL MAILPATH
  12957. do eval test x\${$as_var+set} = xset \
  12958. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  12959. done
  12960. PS1='$ '
  12961. PS2='> '
  12962. PS4='+ '
  12963. # NLS nuisances.
  12964. LC_ALL=C
  12965. export LC_ALL
  12966. LANGUAGE=C
  12967. export LANGUAGE
  12968. # CDPATH.
  12969. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  12970. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  12971. # ----------------------------------------
  12972. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  12973. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  12974. # script with STATUS, using 1 if that was 0.
  12975. as_fn_error ()
  12976. {
  12977. as_status=$1; test $as_status -eq 0 && as_status=1
  12978. if test "$4"; then
  12979. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  12980. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  12981. fi
  12982. $as_echo "$as_me: error: $2" >&2
  12983. as_fn_exit $as_status
  12984. } # as_fn_error
  12985. # as_fn_set_status STATUS
  12986. # -----------------------
  12987. # Set $? to STATUS, without forking.
  12988. as_fn_set_status ()
  12989. {
  12990. return $1
  12991. } # as_fn_set_status
  12992. # as_fn_exit STATUS
  12993. # -----------------
  12994. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  12995. as_fn_exit ()
  12996. {
  12997. set +e
  12998. as_fn_set_status $1
  12999. exit $1
  13000. } # as_fn_exit
  13001. # as_fn_unset VAR
  13002. # ---------------
  13003. # Portably unset VAR.
  13004. as_fn_unset ()
  13005. {
  13006. { eval $1=; unset $1;}
  13007. }
  13008. as_unset=as_fn_unset
  13009. # as_fn_append VAR VALUE
  13010. # ----------------------
  13011. # Append the text in VALUE to the end of the definition contained in VAR. Take
  13012. # advantage of any shell optimizations that allow amortized linear growth over
  13013. # repeated appends, instead of the typical quadratic growth present in naive
  13014. # implementations.
  13015. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  13016. eval 'as_fn_append ()
  13017. {
  13018. eval $1+=\$2
  13019. }'
  13020. else
  13021. as_fn_append ()
  13022. {
  13023. eval $1=\$$1\$2
  13024. }
  13025. fi # as_fn_append
  13026. # as_fn_arith ARG...
  13027. # ------------------
  13028. # Perform arithmetic evaluation on the ARGs, and store the result in the
  13029. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  13030. # must be portable across $(()) and expr.
  13031. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  13032. eval 'as_fn_arith ()
  13033. {
  13034. as_val=$(( $* ))
  13035. }'
  13036. else
  13037. as_fn_arith ()
  13038. {
  13039. as_val=`expr "$@" || test $? -eq 1`
  13040. }
  13041. fi # as_fn_arith
  13042. if expr a : '\(a\)' >/dev/null 2>&1 &&
  13043. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13044. as_expr=expr
  13045. else
  13046. as_expr=false
  13047. fi
  13048. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  13049. as_basename=basename
  13050. else
  13051. as_basename=false
  13052. fi
  13053. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  13054. as_dirname=dirname
  13055. else
  13056. as_dirname=false
  13057. fi
  13058. as_me=`$as_basename -- "$0" ||
  13059. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13060. X"$0" : 'X\(//\)$' \| \
  13061. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13062. $as_echo X/"$0" |
  13063. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13064. s//\1/
  13065. q
  13066. }
  13067. /^X\/\(\/\/\)$/{
  13068. s//\1/
  13069. q
  13070. }
  13071. /^X\/\(\/\).*/{
  13072. s//\1/
  13073. q
  13074. }
  13075. s/.*/./; q'`
  13076. # Avoid depending upon Character Ranges.
  13077. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  13078. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  13079. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13080. as_cr_digits='0123456789'
  13081. as_cr_alnum=$as_cr_Letters$as_cr_digits
  13082. ECHO_C= ECHO_N= ECHO_T=
  13083. case `echo -n x` in #(((((
  13084. -n*)
  13085. case `echo 'xy\c'` in
  13086. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  13087. xy) ECHO_C='\c';;
  13088. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  13089. ECHO_T=' ';;
  13090. esac;;
  13091. *)
  13092. ECHO_N='-n';;
  13093. esac
  13094. rm -f conf$$ conf$$.exe conf$$.file
  13095. if test -d conf$$.dir; then
  13096. rm -f conf$$.dir/conf$$.file
  13097. else
  13098. rm -f conf$$.dir
  13099. mkdir conf$$.dir 2>/dev/null
  13100. fi
  13101. if (echo >conf$$.file) 2>/dev/null; then
  13102. if ln -s conf$$.file conf$$ 2>/dev/null; then
  13103. as_ln_s='ln -s'
  13104. # ... but there are two gotchas:
  13105. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  13106. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  13107. # In both cases, we have to default to `cp -pR'.
  13108. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  13109. as_ln_s='cp -pR'
  13110. elif ln conf$$.file conf$$ 2>/dev/null; then
  13111. as_ln_s=ln
  13112. else
  13113. as_ln_s='cp -pR'
  13114. fi
  13115. else
  13116. as_ln_s='cp -pR'
  13117. fi
  13118. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  13119. rmdir conf$$.dir 2>/dev/null
  13120. # as_fn_mkdir_p
  13121. # -------------
  13122. # Create "$as_dir" as a directory, including parents if necessary.
  13123. as_fn_mkdir_p ()
  13124. {
  13125. case $as_dir in #(
  13126. -*) as_dir=./$as_dir;;
  13127. esac
  13128. test -d "$as_dir" || eval $as_mkdir_p || {
  13129. as_dirs=
  13130. while :; do
  13131. case $as_dir in #(
  13132. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13133. *) as_qdir=$as_dir;;
  13134. esac
  13135. as_dirs="'$as_qdir' $as_dirs"
  13136. as_dir=`$as_dirname -- "$as_dir" ||
  13137. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13138. X"$as_dir" : 'X\(//\)[^/]' \| \
  13139. X"$as_dir" : 'X\(//\)$' \| \
  13140. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13141. $as_echo X"$as_dir" |
  13142. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13143. s//\1/
  13144. q
  13145. }
  13146. /^X\(\/\/\)[^/].*/{
  13147. s//\1/
  13148. q
  13149. }
  13150. /^X\(\/\/\)$/{
  13151. s//\1/
  13152. q
  13153. }
  13154. /^X\(\/\).*/{
  13155. s//\1/
  13156. q
  13157. }
  13158. s/.*/./; q'`
  13159. test -d "$as_dir" && break
  13160. done
  13161. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13162. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  13163. } # as_fn_mkdir_p
  13164. if mkdir -p . 2>/dev/null; then
  13165. as_mkdir_p='mkdir -p "$as_dir"'
  13166. else
  13167. test -d ./-p && rmdir ./-p
  13168. as_mkdir_p=false
  13169. fi
  13170. # as_fn_executable_p FILE
  13171. # -----------------------
  13172. # Test if FILE is an executable regular file.
  13173. as_fn_executable_p ()
  13174. {
  13175. test -f "$1" && test -x "$1"
  13176. } # as_fn_executable_p
  13177. as_test_x='test -x'
  13178. as_executable_p=as_fn_executable_p
  13179. # Sed expression to map a string onto a valid CPP name.
  13180. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  13181. # Sed expression to map a string onto a valid variable name.
  13182. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  13183. exec 6>&1
  13184. ## ----------------------------------- ##
  13185. ## Main body of $CONFIG_STATUS script. ##
  13186. ## ----------------------------------- ##
  13187. _ASEOF
  13188. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  13189. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13190. # Save the log message, to keep $0 and so on meaningful, and to
  13191. # report actual input values of CONFIG_FILES etc. instead of their
  13192. # values after options handling.
  13193. ac_log="
  13194. This file was extended by SDL2_ttf $as_me 2.0.14, which was
  13195. generated by GNU Autoconf 2.69. Invocation command line was
  13196. CONFIG_FILES = $CONFIG_FILES
  13197. CONFIG_HEADERS = $CONFIG_HEADERS
  13198. CONFIG_LINKS = $CONFIG_LINKS
  13199. CONFIG_COMMANDS = $CONFIG_COMMANDS
  13200. $ $0 $@
  13201. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  13202. "
  13203. _ACEOF
  13204. case $ac_config_files in *"
  13205. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  13206. esac
  13207. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13208. # Files that config.status was made for.
  13209. config_files="$ac_config_files"
  13210. config_commands="$ac_config_commands"
  13211. _ACEOF
  13212. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13213. ac_cs_usage="\
  13214. \`$as_me' instantiates files and other configuration actions
  13215. from templates according to the current configuration. Unless the files
  13216. and actions are specified as TAGs, all are instantiated by default.
  13217. Usage: $0 [OPTION]... [TAG]...
  13218. -h, --help print this help, then exit
  13219. -V, --version print version number and configuration settings, then exit
  13220. --config print configuration, then exit
  13221. -q, --quiet, --silent
  13222. do not print progress messages
  13223. -d, --debug don't remove temporary files
  13224. --recheck update $as_me by reconfiguring in the same conditions
  13225. --file=FILE[:TEMPLATE]
  13226. instantiate the configuration file FILE
  13227. Configuration files:
  13228. $config_files
  13229. Configuration commands:
  13230. $config_commands
  13231. Report bugs to the package provider."
  13232. _ACEOF
  13233. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13234. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  13235. ac_cs_version="\\
  13236. SDL2_ttf config.status 2.0.14
  13237. configured by $0, generated by GNU Autoconf 2.69,
  13238. with options \\"\$ac_cs_config\\"
  13239. Copyright (C) 2012 Free Software Foundation, Inc.
  13240. This config.status script is free software; the Free Software Foundation
  13241. gives unlimited permission to copy, distribute and modify it."
  13242. ac_pwd='$ac_pwd'
  13243. srcdir='$srcdir'
  13244. INSTALL='$INSTALL'
  13245. MKDIR_P='$MKDIR_P'
  13246. AWK='$AWK'
  13247. test -n "\$AWK" || AWK=awk
  13248. _ACEOF
  13249. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13250. # The default lists apply if the user does not specify any file.
  13251. ac_need_defaults=:
  13252. while test $# != 0
  13253. do
  13254. case $1 in
  13255. --*=?*)
  13256. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13257. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  13258. ac_shift=:
  13259. ;;
  13260. --*=)
  13261. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13262. ac_optarg=
  13263. ac_shift=:
  13264. ;;
  13265. *)
  13266. ac_option=$1
  13267. ac_optarg=$2
  13268. ac_shift=shift
  13269. ;;
  13270. esac
  13271. case $ac_option in
  13272. # Handling of the options.
  13273. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13274. ac_cs_recheck=: ;;
  13275. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  13276. $as_echo "$ac_cs_version"; exit ;;
  13277. --config | --confi | --conf | --con | --co | --c )
  13278. $as_echo "$ac_cs_config"; exit ;;
  13279. --debug | --debu | --deb | --de | --d | -d )
  13280. debug=: ;;
  13281. --file | --fil | --fi | --f )
  13282. $ac_shift
  13283. case $ac_optarg in
  13284. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13285. '') as_fn_error $? "missing file argument" ;;
  13286. esac
  13287. as_fn_append CONFIG_FILES " '$ac_optarg'"
  13288. ac_need_defaults=false;;
  13289. --he | --h | --help | --hel | -h )
  13290. $as_echo "$ac_cs_usage"; exit ;;
  13291. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  13292. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  13293. ac_cs_silent=: ;;
  13294. # This is an error.
  13295. -*) as_fn_error $? "unrecognized option: \`$1'
  13296. Try \`$0 --help' for more information." ;;
  13297. *) as_fn_append ac_config_targets " $1"
  13298. ac_need_defaults=false ;;
  13299. esac
  13300. shift
  13301. done
  13302. ac_configure_extra_args=
  13303. if $ac_cs_silent; then
  13304. exec 6>/dev/null
  13305. ac_configure_extra_args="$ac_configure_extra_args --silent"
  13306. fi
  13307. _ACEOF
  13308. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13309. if \$ac_cs_recheck; then
  13310. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  13311. shift
  13312. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  13313. CONFIG_SHELL='$SHELL'
  13314. export CONFIG_SHELL
  13315. exec "\$@"
  13316. fi
  13317. _ACEOF
  13318. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13319. exec 5>>config.log
  13320. {
  13321. echo
  13322. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  13323. ## Running $as_me. ##
  13324. _ASBOX
  13325. $as_echo "$ac_log"
  13326. } >&5
  13327. _ACEOF
  13328. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13329. #
  13330. # INIT-COMMANDS
  13331. #
  13332. # The HP-UX ksh and POSIX shell print the target directory to stdout
  13333. # if CDPATH is set.
  13334. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13335. sed_quote_subst='$sed_quote_subst'
  13336. double_quote_subst='$double_quote_subst'
  13337. delay_variable_subst='$delay_variable_subst'
  13338. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  13339. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  13340. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  13341. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  13342. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  13343. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  13344. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  13345. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  13346. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  13347. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  13348. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  13349. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  13350. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  13351. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  13352. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  13353. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  13354. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  13355. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  13356. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  13357. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  13358. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  13359. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  13360. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  13361. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  13362. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  13363. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  13364. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  13365. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  13366. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  13367. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  13368. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  13369. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  13370. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  13371. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  13372. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  13373. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  13374. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  13375. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  13376. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  13377. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  13378. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  13379. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  13380. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  13381. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  13382. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  13383. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  13384. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  13385. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  13386. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  13387. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  13388. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  13389. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  13390. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  13391. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  13392. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  13393. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  13394. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  13395. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  13396. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  13397. 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"`'
  13398. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  13399. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  13400. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  13401. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  13402. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  13403. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  13404. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  13405. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  13406. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  13407. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  13408. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  13409. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  13410. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  13411. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  13412. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  13413. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  13414. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  13415. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  13416. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  13417. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  13418. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  13419. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  13420. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  13421. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  13422. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  13423. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  13424. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  13425. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  13426. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  13427. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  13428. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  13429. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  13430. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  13431. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  13432. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  13433. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  13434. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  13435. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  13436. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  13437. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  13438. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  13439. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  13440. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  13441. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  13442. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  13443. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  13444. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  13445. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  13446. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  13447. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  13448. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  13449. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  13450. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  13451. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  13452. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  13453. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  13454. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  13455. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  13456. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  13457. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  13458. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  13459. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  13460. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  13461. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  13462. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  13463. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  13464. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  13465. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  13466. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  13467. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  13468. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  13469. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  13470. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  13471. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  13472. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  13473. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  13474. LTCC='$LTCC'
  13475. LTCFLAGS='$LTCFLAGS'
  13476. compiler='$compiler_DEFAULT'
  13477. # A function that is used when there is no print builtin or printf.
  13478. func_fallback_echo ()
  13479. {
  13480. eval 'cat <<_LTECHO_EOF
  13481. \$1
  13482. _LTECHO_EOF'
  13483. }
  13484. # Quote evaled strings.
  13485. for var in AS \
  13486. DLLTOOL \
  13487. OBJDUMP \
  13488. SHELL \
  13489. ECHO \
  13490. PATH_SEPARATOR \
  13491. SED \
  13492. GREP \
  13493. EGREP \
  13494. FGREP \
  13495. LD \
  13496. NM \
  13497. LN_S \
  13498. lt_SP2NL \
  13499. lt_NL2SP \
  13500. reload_flag \
  13501. deplibs_check_method \
  13502. file_magic_cmd \
  13503. file_magic_glob \
  13504. want_nocaseglob \
  13505. sharedlib_from_linklib_cmd \
  13506. AR \
  13507. AR_FLAGS \
  13508. archiver_list_spec \
  13509. STRIP \
  13510. RANLIB \
  13511. CC \
  13512. CFLAGS \
  13513. compiler \
  13514. lt_cv_sys_global_symbol_pipe \
  13515. lt_cv_sys_global_symbol_to_cdecl \
  13516. lt_cv_sys_global_symbol_to_import \
  13517. lt_cv_sys_global_symbol_to_c_name_address \
  13518. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  13519. lt_cv_nm_interface \
  13520. nm_file_list_spec \
  13521. lt_cv_truncate_bin \
  13522. lt_prog_compiler_no_builtin_flag \
  13523. lt_prog_compiler_pic \
  13524. lt_prog_compiler_wl \
  13525. lt_prog_compiler_static \
  13526. lt_cv_prog_compiler_c_o \
  13527. need_locks \
  13528. MANIFEST_TOOL \
  13529. DSYMUTIL \
  13530. NMEDIT \
  13531. LIPO \
  13532. OTOOL \
  13533. OTOOL64 \
  13534. shrext_cmds \
  13535. export_dynamic_flag_spec \
  13536. whole_archive_flag_spec \
  13537. compiler_needs_object \
  13538. with_gnu_ld \
  13539. allow_undefined_flag \
  13540. no_undefined_flag \
  13541. hardcode_libdir_flag_spec \
  13542. hardcode_libdir_separator \
  13543. exclude_expsyms \
  13544. include_expsyms \
  13545. file_list_spec \
  13546. variables_saved_for_relink \
  13547. libname_spec \
  13548. library_names_spec \
  13549. soname_spec \
  13550. install_override_mode \
  13551. finish_eval \
  13552. old_striplib \
  13553. striplib; do
  13554. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  13555. *[\\\\\\\`\\"\\\$]*)
  13556. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  13557. ;;
  13558. *)
  13559. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13560. ;;
  13561. esac
  13562. done
  13563. # Double-quote double-evaled strings.
  13564. for var in reload_cmds \
  13565. old_postinstall_cmds \
  13566. old_postuninstall_cmds \
  13567. old_archive_cmds \
  13568. extract_expsyms_cmds \
  13569. old_archive_from_new_cmds \
  13570. old_archive_from_expsyms_cmds \
  13571. archive_cmds \
  13572. archive_expsym_cmds \
  13573. module_cmds \
  13574. module_expsym_cmds \
  13575. export_symbols_cmds \
  13576. prelink_cmds \
  13577. postlink_cmds \
  13578. postinstall_cmds \
  13579. postuninstall_cmds \
  13580. finish_cmds \
  13581. sys_lib_search_path_spec \
  13582. configure_time_dlsearch_path \
  13583. configure_time_lt_sys_library_path; do
  13584. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  13585. *[\\\\\\\`\\"\\\$]*)
  13586. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  13587. ;;
  13588. *)
  13589. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13590. ;;
  13591. esac
  13592. done
  13593. ac_aux_dir='$ac_aux_dir'
  13594. # See if we are running on zsh, and set the options that allow our
  13595. # commands through without removal of \ escapes INIT.
  13596. if test -n "\${ZSH_VERSION+set}"; then
  13597. setopt NO_GLOB_SUBST
  13598. fi
  13599. PACKAGE='$PACKAGE'
  13600. VERSION='$VERSION'
  13601. RM='$RM'
  13602. ofile='$ofile'
  13603. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  13604. _ACEOF
  13605. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13606. # Handling of arguments.
  13607. for ac_config_target in $ac_config_targets
  13608. do
  13609. case $ac_config_target in
  13610. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  13611. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  13612. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  13613. "SDL2_ttf.spec") CONFIG_FILES="$CONFIG_FILES SDL2_ttf.spec" ;;
  13614. "SDL2_ttf.pc") CONFIG_FILES="$CONFIG_FILES SDL2_ttf.pc" ;;
  13615. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  13616. esac
  13617. done
  13618. # If the user did not use the arguments to specify the items to instantiate,
  13619. # then the envvar interface is used. Set only those that are not.
  13620. # We use the long form for the default assignment because of an extremely
  13621. # bizarre bug on SunOS 4.1.3.
  13622. if $ac_need_defaults; then
  13623. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  13624. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  13625. fi
  13626. # Have a temporary directory for convenience. Make it in the build tree
  13627. # simply because there is no reason against having it here, and in addition,
  13628. # creating and moving files from /tmp can sometimes cause problems.
  13629. # Hook for its removal unless debugging.
  13630. # Note that there is a small window in which the directory will not be cleaned:
  13631. # after its creation but before its name has been assigned to `$tmp'.
  13632. $debug ||
  13633. {
  13634. tmp= ac_tmp=
  13635. trap 'exit_status=$?
  13636. : "${ac_tmp:=$tmp}"
  13637. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  13638. ' 0
  13639. trap 'as_fn_exit 1' 1 2 13 15
  13640. }
  13641. # Create a (secure) tmp directory for tmp files.
  13642. {
  13643. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  13644. test -d "$tmp"
  13645. } ||
  13646. {
  13647. tmp=./conf$$-$RANDOM
  13648. (umask 077 && mkdir "$tmp")
  13649. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  13650. ac_tmp=$tmp
  13651. # Set up the scripts for CONFIG_FILES section.
  13652. # No need to generate them if there are no CONFIG_FILES.
  13653. # This happens for instance with `./config.status config.h'.
  13654. if test -n "$CONFIG_FILES"; then
  13655. ac_cr=`echo X | tr X '\015'`
  13656. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  13657. # But we know of no other shell where ac_cr would be empty at this
  13658. # point, so we can use a bashism as a fallback.
  13659. if test "x$ac_cr" = x; then
  13660. eval ac_cr=\$\'\\r\'
  13661. fi
  13662. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  13663. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  13664. ac_cs_awk_cr='\\r'
  13665. else
  13666. ac_cs_awk_cr=$ac_cr
  13667. fi
  13668. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  13669. _ACEOF
  13670. {
  13671. echo "cat >conf$$subs.awk <<_ACEOF" &&
  13672. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  13673. echo "_ACEOF"
  13674. } >conf$$subs.sh ||
  13675. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  13676. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  13677. ac_delim='%!_!# '
  13678. for ac_last_try in false false false false false :; do
  13679. . ./conf$$subs.sh ||
  13680. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  13681. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  13682. if test $ac_delim_n = $ac_delim_num; then
  13683. break
  13684. elif $ac_last_try; then
  13685. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  13686. else
  13687. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13688. fi
  13689. done
  13690. rm -f conf$$subs.sh
  13691. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13692. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  13693. _ACEOF
  13694. sed -n '
  13695. h
  13696. s/^/S["/; s/!.*/"]=/
  13697. p
  13698. g
  13699. s/^[^!]*!//
  13700. :repl
  13701. t repl
  13702. s/'"$ac_delim"'$//
  13703. t delim
  13704. :nl
  13705. h
  13706. s/\(.\{148\}\)..*/\1/
  13707. t more1
  13708. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  13709. p
  13710. n
  13711. b repl
  13712. :more1
  13713. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13714. p
  13715. g
  13716. s/.\{148\}//
  13717. t nl
  13718. :delim
  13719. h
  13720. s/\(.\{148\}\)..*/\1/
  13721. t more2
  13722. s/["\\]/\\&/g; s/^/"/; s/$/"/
  13723. p
  13724. b
  13725. :more2
  13726. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13727. p
  13728. g
  13729. s/.\{148\}//
  13730. t delim
  13731. ' <conf$$subs.awk | sed '
  13732. /^[^""]/{
  13733. N
  13734. s/\n//
  13735. }
  13736. ' >>$CONFIG_STATUS || ac_write_fail=1
  13737. rm -f conf$$subs.awk
  13738. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13739. _ACAWK
  13740. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  13741. for (key in S) S_is_set[key] = 1
  13742. FS = ""
  13743. }
  13744. {
  13745. line = $ 0
  13746. nfields = split(line, field, "@")
  13747. substed = 0
  13748. len = length(field[1])
  13749. for (i = 2; i < nfields; i++) {
  13750. key = field[i]
  13751. keylen = length(key)
  13752. if (S_is_set[key]) {
  13753. value = S[key]
  13754. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  13755. len += length(value) + length(field[++i])
  13756. substed = 1
  13757. } else
  13758. len += 1 + keylen
  13759. }
  13760. print line
  13761. }
  13762. _ACAWK
  13763. _ACEOF
  13764. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13765. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  13766. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  13767. else
  13768. cat
  13769. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  13770. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  13771. _ACEOF
  13772. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  13773. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  13774. # trailing colons and then remove the whole line if VPATH becomes empty
  13775. # (actually we leave an empty line to preserve line numbers).
  13776. if test "x$srcdir" = x.; then
  13777. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  13778. h
  13779. s///
  13780. s/^/:/
  13781. s/[ ]*$/:/
  13782. s/:\$(srcdir):/:/g
  13783. s/:\${srcdir}:/:/g
  13784. s/:@srcdir@:/:/g
  13785. s/^:*//
  13786. s/:*$//
  13787. x
  13788. s/\(=[ ]*\).*/\1/
  13789. G
  13790. s/\n//
  13791. s/^[^=]*=[ ]*$//
  13792. }'
  13793. fi
  13794. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13795. fi # test -n "$CONFIG_FILES"
  13796. eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
  13797. shift
  13798. for ac_tag
  13799. do
  13800. case $ac_tag in
  13801. :[FHLC]) ac_mode=$ac_tag; continue;;
  13802. esac
  13803. case $ac_mode$ac_tag in
  13804. :[FHL]*:*);;
  13805. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  13806. :[FH]-) ac_tag=-:-;;
  13807. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  13808. esac
  13809. ac_save_IFS=$IFS
  13810. IFS=:
  13811. set x $ac_tag
  13812. IFS=$ac_save_IFS
  13813. shift
  13814. ac_file=$1
  13815. shift
  13816. case $ac_mode in
  13817. :L) ac_source=$1;;
  13818. :[FH])
  13819. ac_file_inputs=
  13820. for ac_f
  13821. do
  13822. case $ac_f in
  13823. -) ac_f="$ac_tmp/stdin";;
  13824. *) # Look for the file first in the build tree, then in the source tree
  13825. # (if the path is not absolute). The absolute path cannot be DOS-style,
  13826. # because $ac_f cannot contain `:'.
  13827. test -f "$ac_f" ||
  13828. case $ac_f in
  13829. [\\/$]*) false;;
  13830. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  13831. esac ||
  13832. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  13833. esac
  13834. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  13835. as_fn_append ac_file_inputs " '$ac_f'"
  13836. done
  13837. # Let's still pretend it is `configure' which instantiates (i.e., don't
  13838. # use $as_me), people would be surprised to read:
  13839. # /* config.h. Generated by config.status. */
  13840. configure_input='Generated from '`
  13841. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  13842. `' by configure.'
  13843. if test x"$ac_file" != x-; then
  13844. configure_input="$ac_file. $configure_input"
  13845. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  13846. $as_echo "$as_me: creating $ac_file" >&6;}
  13847. fi
  13848. # Neutralize special characters interpreted by sed in replacement strings.
  13849. case $configure_input in #(
  13850. *\&* | *\|* | *\\* )
  13851. ac_sed_conf_input=`$as_echo "$configure_input" |
  13852. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  13853. *) ac_sed_conf_input=$configure_input;;
  13854. esac
  13855. case $ac_tag in
  13856. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  13857. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  13858. esac
  13859. ;;
  13860. esac
  13861. ac_dir=`$as_dirname -- "$ac_file" ||
  13862. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13863. X"$ac_file" : 'X\(//\)[^/]' \| \
  13864. X"$ac_file" : 'X\(//\)$' \| \
  13865. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  13866. $as_echo X"$ac_file" |
  13867. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13868. s//\1/
  13869. q
  13870. }
  13871. /^X\(\/\/\)[^/].*/{
  13872. s//\1/
  13873. q
  13874. }
  13875. /^X\(\/\/\)$/{
  13876. s//\1/
  13877. q
  13878. }
  13879. /^X\(\/\).*/{
  13880. s//\1/
  13881. q
  13882. }
  13883. s/.*/./; q'`
  13884. as_dir="$ac_dir"; as_fn_mkdir_p
  13885. ac_builddir=.
  13886. case "$ac_dir" in
  13887. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13888. *)
  13889. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  13890. # A ".." for each directory in $ac_dir_suffix.
  13891. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  13892. case $ac_top_builddir_sub in
  13893. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13894. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  13895. esac ;;
  13896. esac
  13897. ac_abs_top_builddir=$ac_pwd
  13898. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  13899. # for backward compatibility:
  13900. ac_top_builddir=$ac_top_build_prefix
  13901. case $srcdir in
  13902. .) # We are building in place.
  13903. ac_srcdir=.
  13904. ac_top_srcdir=$ac_top_builddir_sub
  13905. ac_abs_top_srcdir=$ac_pwd ;;
  13906. [\\/]* | ?:[\\/]* ) # Absolute name.
  13907. ac_srcdir=$srcdir$ac_dir_suffix;
  13908. ac_top_srcdir=$srcdir
  13909. ac_abs_top_srcdir=$srcdir ;;
  13910. *) # Relative name.
  13911. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  13912. ac_top_srcdir=$ac_top_build_prefix$srcdir
  13913. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  13914. esac
  13915. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  13916. case $ac_mode in
  13917. :F)
  13918. #
  13919. # CONFIG_FILE
  13920. #
  13921. case $INSTALL in
  13922. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  13923. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  13924. esac
  13925. ac_MKDIR_P=$MKDIR_P
  13926. case $MKDIR_P in
  13927. [\\/$]* | ?:[\\/]* ) ;;
  13928. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  13929. esac
  13930. _ACEOF
  13931. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13932. # If the template does not know about datarootdir, expand it.
  13933. # FIXME: This hack should be removed a few years after 2.60.
  13934. ac_datarootdir_hack=; ac_datarootdir_seen=
  13935. ac_sed_dataroot='
  13936. /datarootdir/ {
  13937. p
  13938. q
  13939. }
  13940. /@datadir@/p
  13941. /@docdir@/p
  13942. /@infodir@/p
  13943. /@localedir@/p
  13944. /@mandir@/p'
  13945. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  13946. *datarootdir*) ac_datarootdir_seen=yes;;
  13947. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  13948. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  13949. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  13950. _ACEOF
  13951. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13952. ac_datarootdir_hack='
  13953. s&@datadir@&$datadir&g
  13954. s&@docdir@&$docdir&g
  13955. s&@infodir@&$infodir&g
  13956. s&@localedir@&$localedir&g
  13957. s&@mandir@&$mandir&g
  13958. s&\\\${datarootdir}&$datarootdir&g' ;;
  13959. esac
  13960. _ACEOF
  13961. # Neutralize VPATH when `$srcdir' = `.'.
  13962. # Shell code in configure.ac might set extrasub.
  13963. # FIXME: do we really want to maintain this feature?
  13964. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13965. ac_sed_extra="$ac_vpsub
  13966. $extrasub
  13967. _ACEOF
  13968. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13969. :t
  13970. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  13971. s|@configure_input@|$ac_sed_conf_input|;t t
  13972. s&@top_builddir@&$ac_top_builddir_sub&;t t
  13973. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  13974. s&@srcdir@&$ac_srcdir&;t t
  13975. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  13976. s&@top_srcdir@&$ac_top_srcdir&;t t
  13977. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  13978. s&@builddir@&$ac_builddir&;t t
  13979. s&@abs_builddir@&$ac_abs_builddir&;t t
  13980. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  13981. s&@INSTALL@&$ac_INSTALL&;t t
  13982. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  13983. $ac_datarootdir_hack
  13984. "
  13985. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  13986. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13987. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  13988. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  13989. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  13990. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  13991. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13992. which seems to be undefined. Please make sure it is defined" >&5
  13993. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13994. which seems to be undefined. Please make sure it is defined" >&2;}
  13995. rm -f "$ac_tmp/stdin"
  13996. case $ac_file in
  13997. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  13998. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  13999. esac \
  14000. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14001. ;;
  14002. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  14003. $as_echo "$as_me: executing $ac_file commands" >&6;}
  14004. ;;
  14005. esac
  14006. case $ac_file$ac_mode in
  14007. "libtool":C)
  14008. # See if we are running on zsh, and set the options that allow our
  14009. # commands through without removal of \ escapes.
  14010. if test -n "${ZSH_VERSION+set}"; then
  14011. setopt NO_GLOB_SUBST
  14012. fi
  14013. cfgfile=${ofile}T
  14014. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  14015. $RM "$cfgfile"
  14016. cat <<_LT_EOF >> "$cfgfile"
  14017. #! $SHELL
  14018. # Generated automatically by $as_me ($PACKAGE) $VERSION
  14019. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  14020. # Provide generalized library-building support services.
  14021. # Written by Gordon Matzigkeit, 1996
  14022. # Copyright (C) 2014 Free Software Foundation, Inc.
  14023. # This is free software; see the source for copying conditions. There is NO
  14024. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  14025. # GNU Libtool is free software; you can redistribute it and/or modify
  14026. # it under the terms of the GNU General Public License as published by
  14027. # the Free Software Foundation; either version 2 of of the License, or
  14028. # (at your option) any later version.
  14029. #
  14030. # As a special exception to the GNU General Public License, if you
  14031. # distribute this file as part of a program or library that is built
  14032. # using GNU Libtool, you may include this file under the same
  14033. # distribution terms that you use for the rest of that program.
  14034. #
  14035. # GNU Libtool is distributed in the hope that it will be useful, but
  14036. # WITHOUT ANY WARRANTY; without even the implied warranty of
  14037. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14038. # GNU General Public License for more details.
  14039. #
  14040. # You should have received a copy of the GNU General Public License
  14041. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  14042. # The names of the tagged configurations supported by this script.
  14043. available_tags=''
  14044. # Configured defaults for sys_lib_dlsearch_path munging.
  14045. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  14046. # ### BEGIN LIBTOOL CONFIG
  14047. # Which release of libtool.m4 was used?
  14048. macro_version=$macro_version
  14049. macro_revision=$macro_revision
  14050. # Assembler program.
  14051. AS=$lt_AS
  14052. # DLL creation program.
  14053. DLLTOOL=$lt_DLLTOOL
  14054. # Object dumper program.
  14055. OBJDUMP=$lt_OBJDUMP
  14056. # Whether or not to build shared libraries.
  14057. build_libtool_libs=$enable_shared
  14058. # Whether or not to build static libraries.
  14059. build_old_libs=$enable_static
  14060. # What type of objects to build.
  14061. pic_mode=$pic_mode
  14062. # Whether or not to optimize for fast installation.
  14063. fast_install=$enable_fast_install
  14064. # Shared archive member basename,for filename based shared library versioning on AIX.
  14065. shared_archive_member_spec=$shared_archive_member_spec
  14066. # Shell to use when invoking shell scripts.
  14067. SHELL=$lt_SHELL
  14068. # An echo program that protects backslashes.
  14069. ECHO=$lt_ECHO
  14070. # The PATH separator for the build system.
  14071. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  14072. # The host system.
  14073. host_alias=$host_alias
  14074. host=$host
  14075. host_os=$host_os
  14076. # The build system.
  14077. build_alias=$build_alias
  14078. build=$build
  14079. build_os=$build_os
  14080. # A sed program that does not truncate output.
  14081. SED=$lt_SED
  14082. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  14083. Xsed="\$SED -e 1s/^X//"
  14084. # A grep program that handles long lines.
  14085. GREP=$lt_GREP
  14086. # An ERE matcher.
  14087. EGREP=$lt_EGREP
  14088. # A literal string matcher.
  14089. FGREP=$lt_FGREP
  14090. # A BSD- or MS-compatible name lister.
  14091. NM=$lt_NM
  14092. # Whether we need soft or hard links.
  14093. LN_S=$lt_LN_S
  14094. # What is the maximum length of a command?
  14095. max_cmd_len=$max_cmd_len
  14096. # Object file suffix (normally "o").
  14097. objext=$ac_objext
  14098. # Executable file suffix (normally "").
  14099. exeext=$exeext
  14100. # whether the shell understands "unset".
  14101. lt_unset=$lt_unset
  14102. # turn spaces into newlines.
  14103. SP2NL=$lt_lt_SP2NL
  14104. # turn newlines into spaces.
  14105. NL2SP=$lt_lt_NL2SP
  14106. # convert \$build file names to \$host format.
  14107. to_host_file_cmd=$lt_cv_to_host_file_cmd
  14108. # convert \$build files to toolchain format.
  14109. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  14110. # Method to check whether dependent libraries are shared objects.
  14111. deplibs_check_method=$lt_deplibs_check_method
  14112. # Command to use when deplibs_check_method = "file_magic".
  14113. file_magic_cmd=$lt_file_magic_cmd
  14114. # How to find potential files when deplibs_check_method = "file_magic".
  14115. file_magic_glob=$lt_file_magic_glob
  14116. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  14117. want_nocaseglob=$lt_want_nocaseglob
  14118. # Command to associate shared and link libraries.
  14119. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  14120. # The archiver.
  14121. AR=$lt_AR
  14122. # Flags to create an archive.
  14123. AR_FLAGS=$lt_AR_FLAGS
  14124. # How to feed a file listing to the archiver.
  14125. archiver_list_spec=$lt_archiver_list_spec
  14126. # A symbol stripping program.
  14127. STRIP=$lt_STRIP
  14128. # Commands used to install an old-style archive.
  14129. RANLIB=$lt_RANLIB
  14130. old_postinstall_cmds=$lt_old_postinstall_cmds
  14131. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  14132. # Whether to use a lock for old archive extraction.
  14133. lock_old_archive_extraction=$lock_old_archive_extraction
  14134. # A C compiler.
  14135. LTCC=$lt_CC
  14136. # LTCC compiler flags.
  14137. LTCFLAGS=$lt_CFLAGS
  14138. # Take the output of nm and produce a listing of raw symbols and C names.
  14139. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14140. # Transform the output of nm in a proper C declaration.
  14141. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14142. # Transform the output of nm into a list of symbols to manually relocate.
  14143. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  14144. # Transform the output of nm in a C name address pair.
  14145. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14146. # Transform the output of nm in a C name address pair when lib prefix is needed.
  14147. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  14148. # The name lister interface.
  14149. nm_interface=$lt_lt_cv_nm_interface
  14150. # Specify filename containing input files for \$NM.
  14151. nm_file_list_spec=$lt_nm_file_list_spec
  14152. # The root where to search for dependent libraries,and where our libraries should be installed.
  14153. lt_sysroot=$lt_sysroot
  14154. # Command to truncate a binary pipe.
  14155. lt_truncate_bin=$lt_lt_cv_truncate_bin
  14156. # The name of the directory that contains temporary libtool files.
  14157. objdir=$objdir
  14158. # Used to examine libraries when file_magic_cmd begins with "file".
  14159. MAGIC_CMD=$MAGIC_CMD
  14160. # Must we lock files when doing compilation?
  14161. need_locks=$lt_need_locks
  14162. # Manifest tool.
  14163. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  14164. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  14165. DSYMUTIL=$lt_DSYMUTIL
  14166. # Tool to change global to local symbols on Mac OS X.
  14167. NMEDIT=$lt_NMEDIT
  14168. # Tool to manipulate fat objects and archives on Mac OS X.
  14169. LIPO=$lt_LIPO
  14170. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  14171. OTOOL=$lt_OTOOL
  14172. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  14173. OTOOL64=$lt_OTOOL64
  14174. # Old archive suffix (normally "a").
  14175. libext=$libext
  14176. # Shared library suffix (normally ".so").
  14177. shrext_cmds=$lt_shrext_cmds
  14178. # The commands to extract the exported symbol list from a shared archive.
  14179. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14180. # Variables whose values should be saved in libtool wrapper scripts and
  14181. # restored at link time.
  14182. variables_saved_for_relink=$lt_variables_saved_for_relink
  14183. # Do we need the "lib" prefix for modules?
  14184. need_lib_prefix=$need_lib_prefix
  14185. # Do we need a version for libraries?
  14186. need_version=$need_version
  14187. # Library versioning type.
  14188. version_type=$version_type
  14189. # Shared library runtime path variable.
  14190. runpath_var=$runpath_var
  14191. # Shared library path variable.
  14192. shlibpath_var=$shlibpath_var
  14193. # Is shlibpath searched before the hard-coded library search path?
  14194. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14195. # Format of library name prefix.
  14196. libname_spec=$lt_libname_spec
  14197. # List of archive names. First name is the real one, the rest are links.
  14198. # The last name is the one that the linker finds with -lNAME
  14199. library_names_spec=$lt_library_names_spec
  14200. # The coded name of the library, if different from the real name.
  14201. soname_spec=$lt_soname_spec
  14202. # Permission mode override for installation of shared libraries.
  14203. install_override_mode=$lt_install_override_mode
  14204. # Command to use after installation of a shared archive.
  14205. postinstall_cmds=$lt_postinstall_cmds
  14206. # Command to use after uninstallation of a shared archive.
  14207. postuninstall_cmds=$lt_postuninstall_cmds
  14208. # Commands used to finish a libtool library installation in a directory.
  14209. finish_cmds=$lt_finish_cmds
  14210. # As "finish_cmds", except a single script fragment to be evaled but
  14211. # not shown.
  14212. finish_eval=$lt_finish_eval
  14213. # Whether we should hardcode library paths into libraries.
  14214. hardcode_into_libs=$hardcode_into_libs
  14215. # Compile-time system search path for libraries.
  14216. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  14217. # Detected run-time system search path for libraries.
  14218. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  14219. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  14220. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  14221. # Whether dlopen is supported.
  14222. dlopen_support=$enable_dlopen
  14223. # Whether dlopen of programs is supported.
  14224. dlopen_self=$enable_dlopen_self
  14225. # Whether dlopen of statically linked programs is supported.
  14226. dlopen_self_static=$enable_dlopen_self_static
  14227. # Commands to strip libraries.
  14228. old_striplib=$lt_old_striplib
  14229. striplib=$lt_striplib
  14230. # The linker used to build libraries.
  14231. LD=$lt_LD
  14232. # How to create reloadable object files.
  14233. reload_flag=$lt_reload_flag
  14234. reload_cmds=$lt_reload_cmds
  14235. # Commands used to build an old-style archive.
  14236. old_archive_cmds=$lt_old_archive_cmds
  14237. # A language specific compiler.
  14238. CC=$lt_compiler
  14239. # Is the compiler the GNU compiler?
  14240. with_gcc=$GCC
  14241. # Compiler flag to turn off builtin functions.
  14242. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  14243. # Additional compiler flags for building library objects.
  14244. pic_flag=$lt_lt_prog_compiler_pic
  14245. # How to pass a linker flag through the compiler.
  14246. wl=$lt_lt_prog_compiler_wl
  14247. # Compiler flag to prevent dynamic linking.
  14248. link_static_flag=$lt_lt_prog_compiler_static
  14249. # Does compiler simultaneously support -c and -o options?
  14250. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  14251. # Whether or not to add -lc for building shared libraries.
  14252. build_libtool_need_lc=$archive_cmds_need_lc
  14253. # Whether or not to disallow shared libs when runtime libs are static.
  14254. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  14255. # Compiler flag to allow reflexive dlopens.
  14256. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  14257. # Compiler flag to generate shared objects directly from archives.
  14258. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  14259. # Whether the compiler copes with passing no objects directly.
  14260. compiler_needs_object=$lt_compiler_needs_object
  14261. # Create an old-style archive from a shared archive.
  14262. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  14263. # Create a temporary old-style archive to link instead of a shared archive.
  14264. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  14265. # Commands used to build a shared archive.
  14266. archive_cmds=$lt_archive_cmds
  14267. archive_expsym_cmds=$lt_archive_expsym_cmds
  14268. # Commands used to build a loadable module if different from building
  14269. # a shared archive.
  14270. module_cmds=$lt_module_cmds
  14271. module_expsym_cmds=$lt_module_expsym_cmds
  14272. # Whether we are building with GNU ld or not.
  14273. with_gnu_ld=$lt_with_gnu_ld
  14274. # Flag that allows shared libraries with undefined symbols to be built.
  14275. allow_undefined_flag=$lt_allow_undefined_flag
  14276. # Flag that enforces no undefined symbols.
  14277. no_undefined_flag=$lt_no_undefined_flag
  14278. # Flag to hardcode \$libdir into a binary during linking.
  14279. # This must work even if \$libdir does not exist
  14280. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  14281. # Whether we need a single "-rpath" flag with a separated argument.
  14282. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  14283. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  14284. # DIR into the resulting binary.
  14285. hardcode_direct=$hardcode_direct
  14286. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  14287. # DIR into the resulting binary and the resulting library dependency is
  14288. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  14289. # library is relocated.
  14290. hardcode_direct_absolute=$hardcode_direct_absolute
  14291. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  14292. # into the resulting binary.
  14293. hardcode_minus_L=$hardcode_minus_L
  14294. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  14295. # into the resulting binary.
  14296. hardcode_shlibpath_var=$hardcode_shlibpath_var
  14297. # Set to "yes" if building a shared library automatically hardcodes DIR
  14298. # into the library and all subsequent libraries and executables linked
  14299. # against it.
  14300. hardcode_automatic=$hardcode_automatic
  14301. # Set to yes if linker adds runtime paths of dependent libraries
  14302. # to runtime path list.
  14303. inherit_rpath=$inherit_rpath
  14304. # Whether libtool must link a program against all its dependency libraries.
  14305. link_all_deplibs=$link_all_deplibs
  14306. # Set to "yes" if exported symbols are required.
  14307. always_export_symbols=$always_export_symbols
  14308. # The commands to list exported symbols.
  14309. export_symbols_cmds=$lt_export_symbols_cmds
  14310. # Symbols that should not be listed in the preloaded symbols.
  14311. exclude_expsyms=$lt_exclude_expsyms
  14312. # Symbols that must always be exported.
  14313. include_expsyms=$lt_include_expsyms
  14314. # Commands necessary for linking programs (against libraries) with templates.
  14315. prelink_cmds=$lt_prelink_cmds
  14316. # Commands necessary for finishing linking programs.
  14317. postlink_cmds=$lt_postlink_cmds
  14318. # Specify filename containing input files.
  14319. file_list_spec=$lt_file_list_spec
  14320. # How to hardcode a shared library path into an executable.
  14321. hardcode_action=$hardcode_action
  14322. # ### END LIBTOOL CONFIG
  14323. _LT_EOF
  14324. cat <<'_LT_EOF' >> "$cfgfile"
  14325. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  14326. # func_munge_path_list VARIABLE PATH
  14327. # -----------------------------------
  14328. # VARIABLE is name of variable containing _space_ separated list of
  14329. # directories to be munged by the contents of PATH, which is string
  14330. # having a format:
  14331. # "DIR[:DIR]:"
  14332. # string "DIR[ DIR]" will be prepended to VARIABLE
  14333. # ":DIR[:DIR]"
  14334. # string "DIR[ DIR]" will be appended to VARIABLE
  14335. # "DIRP[:DIRP]::[DIRA:]DIRA"
  14336. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  14337. # "DIRA[ DIRA]" will be appended to VARIABLE
  14338. # "DIR[:DIR]"
  14339. # VARIABLE will be replaced by "DIR[ DIR]"
  14340. func_munge_path_list ()
  14341. {
  14342. case x$2 in
  14343. x)
  14344. ;;
  14345. *:)
  14346. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  14347. ;;
  14348. x:*)
  14349. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  14350. ;;
  14351. *::*)
  14352. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  14353. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  14354. ;;
  14355. *)
  14356. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  14357. ;;
  14358. esac
  14359. }
  14360. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  14361. func_cc_basename ()
  14362. {
  14363. for cc_temp in $*""; do
  14364. case $cc_temp in
  14365. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  14366. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  14367. \-*) ;;
  14368. *) break;;
  14369. esac
  14370. done
  14371. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  14372. }
  14373. # ### END FUNCTIONS SHARED WITH CONFIGURE
  14374. _LT_EOF
  14375. case $host_os in
  14376. aix3*)
  14377. cat <<\_LT_EOF >> "$cfgfile"
  14378. # AIX sometimes has problems with the GCC collect2 program. For some
  14379. # reason, if we set the COLLECT_NAMES environment variable, the problems
  14380. # vanish in a puff of smoke.
  14381. if test set != "${COLLECT_NAMES+set}"; then
  14382. COLLECT_NAMES=
  14383. export COLLECT_NAMES
  14384. fi
  14385. _LT_EOF
  14386. ;;
  14387. esac
  14388. ltmain=$ac_aux_dir/ltmain.sh
  14389. # We use sed instead of cat because bash on DJGPP gets confused if
  14390. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  14391. # text mode, it properly converts lines to CR/LF. This bash problem
  14392. # is reportedly fixed, but why not run on old versions too?
  14393. sed '$q' "$ltmain" >> "$cfgfile" \
  14394. || (rm -f "$cfgfile"; exit 1)
  14395. mv -f "$cfgfile" "$ofile" ||
  14396. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  14397. chmod +x "$ofile"
  14398. ;;
  14399. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  14400. # Older Autoconf quotes --file arguments for eval, but not when files
  14401. # are listed without --file. Let's play safe and only enable the eval
  14402. # if we detect the quoting.
  14403. case $CONFIG_FILES in
  14404. *\'*) eval set x "$CONFIG_FILES" ;;
  14405. *) set x $CONFIG_FILES ;;
  14406. esac
  14407. shift
  14408. for mf
  14409. do
  14410. # Strip MF so we end up with the name of the file.
  14411. mf=`echo "$mf" | sed -e 's/:.*$//'`
  14412. # Check whether this is an Automake generated Makefile or not.
  14413. # We used to match only the files named 'Makefile.in', but
  14414. # some people rename them; so instead we look at the file content.
  14415. # Grep'ing the first line is not enough: some people post-process
  14416. # each Makefile.in and add a new line on top of each file to say so.
  14417. # Grep'ing the whole file is not good either: AIX grep has a line
  14418. # limit of 2048, but all sed's we know have understand at least 4000.
  14419. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  14420. dirpart=`$as_dirname -- "$mf" ||
  14421. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14422. X"$mf" : 'X\(//\)[^/]' \| \
  14423. X"$mf" : 'X\(//\)$' \| \
  14424. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  14425. $as_echo X"$mf" |
  14426. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14427. s//\1/
  14428. q
  14429. }
  14430. /^X\(\/\/\)[^/].*/{
  14431. s//\1/
  14432. q
  14433. }
  14434. /^X\(\/\/\)$/{
  14435. s//\1/
  14436. q
  14437. }
  14438. /^X\(\/\).*/{
  14439. s//\1/
  14440. q
  14441. }
  14442. s/.*/./; q'`
  14443. else
  14444. continue
  14445. fi
  14446. # Extract the definition of DEPDIR, am__include, and am__quote
  14447. # from the Makefile without running 'make'.
  14448. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  14449. test -z "$DEPDIR" && continue
  14450. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  14451. test -z "$am__include" && continue
  14452. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  14453. # Find all dependency output files, they are included files with
  14454. # $(DEPDIR) in their names. We invoke sed twice because it is the
  14455. # simplest approach to changing $(DEPDIR) to its actual value in the
  14456. # expansion.
  14457. for file in `sed -n "
  14458. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  14459. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  14460. # Make sure the directory exists.
  14461. test -f "$dirpart/$file" && continue
  14462. fdir=`$as_dirname -- "$file" ||
  14463. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14464. X"$file" : 'X\(//\)[^/]' \| \
  14465. X"$file" : 'X\(//\)$' \| \
  14466. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  14467. $as_echo X"$file" |
  14468. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14469. s//\1/
  14470. q
  14471. }
  14472. /^X\(\/\/\)[^/].*/{
  14473. s//\1/
  14474. q
  14475. }
  14476. /^X\(\/\/\)$/{
  14477. s//\1/
  14478. q
  14479. }
  14480. /^X\(\/\).*/{
  14481. s//\1/
  14482. q
  14483. }
  14484. s/.*/./; q'`
  14485. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  14486. # echo "creating $dirpart/$file"
  14487. echo '# dummy' > "$dirpart/$file"
  14488. done
  14489. done
  14490. }
  14491. ;;
  14492. esac
  14493. done # for ac_tag
  14494. as_fn_exit 0
  14495. _ACEOF
  14496. ac_clean_files=$ac_clean_files_save
  14497. test $ac_write_fail = 0 ||
  14498. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  14499. # configure is writing to config.log, and then calls config.status.
  14500. # config.status does its own redirection, appending to config.log.
  14501. # Unfortunately, on DOS this fails, as config.log is still kept open
  14502. # by configure, so config.status won't be able to write to it; its
  14503. # output is simply discarded. So we exec the FD to /dev/null,
  14504. # effectively closing config.log, so it can be properly (re)opened and
  14505. # appended to by config.status. When coming back to configure, we
  14506. # need to make the FD available again.
  14507. if test "$no_create" != yes; then
  14508. ac_cs_success=:
  14509. ac_config_status_args=
  14510. test "$silent" = yes &&
  14511. ac_config_status_args="$ac_config_status_args --quiet"
  14512. exec 5>/dev/null
  14513. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  14514. exec 5>>config.log
  14515. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  14516. # would make configure fail if this is the last instruction.
  14517. $ac_cs_success || as_fn_exit 1
  14518. fi
  14519. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  14520. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  14521. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  14522. fi