configure 445 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69.
  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 \$(( 1 + 1 )) = 2 || exit 1"
  186. if (eval "$as_required") 2>/dev/null; then :
  187. as_have_required=yes
  188. else
  189. as_have_required=no
  190. fi
  191. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  192. else
  193. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  194. as_found=false
  195. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  196. do
  197. IFS=$as_save_IFS
  198. test -z "$as_dir" && as_dir=.
  199. as_found=:
  200. case $as_dir in #(
  201. /*)
  202. for as_base in sh bash ksh sh5; do
  203. # Try only shells that exist, to save several forks.
  204. as_shell=$as_dir/$as_base
  205. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  206. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  207. CONFIG_SHELL=$as_shell as_have_required=yes
  208. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  209. break 2
  210. fi
  211. fi
  212. done;;
  213. esac
  214. as_found=false
  215. done
  216. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  217. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  218. CONFIG_SHELL=$SHELL as_have_required=yes
  219. fi; }
  220. IFS=$as_save_IFS
  221. if test "x$CONFIG_SHELL" != x; then :
  222. export CONFIG_SHELL
  223. # We cannot yet assume a decent shell, so we have to provide a
  224. # neutralization value for shells without unset; and this also
  225. # works around shells that cannot unset nonexistent variables.
  226. # Preserve -v and -x to the replacement shell.
  227. BASH_ENV=/dev/null
  228. ENV=/dev/null
  229. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  230. case $- in # ((((
  231. *v*x* | *x*v* ) as_opts=-vx ;;
  232. *v* ) as_opts=-v ;;
  233. *x* ) as_opts=-x ;;
  234. * ) as_opts= ;;
  235. esac
  236. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  237. # Admittedly, this is quite paranoid, since all the known shells bail
  238. # out after a failed `exec'.
  239. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  240. exit 255
  241. fi
  242. if test x$as_have_required = xno; then :
  243. $as_echo "$0: This script requires a shell more modern than all"
  244. $as_echo "$0: the shells that I found on your system."
  245. if test x${ZSH_VERSION+set} = xset ; then
  246. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  247. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  248. else
  249. $as_echo "$0: Please tell [email protected] about your system,
  250. $0: including any error possibly output before this
  251. $0: message. Then install a modern shell, or manually run
  252. $0: the script under such a shell if you do have one."
  253. fi
  254. exit 1
  255. fi
  256. fi
  257. fi
  258. SHELL=${CONFIG_SHELL-/bin/sh}
  259. export SHELL
  260. # Unset more variables known to interfere with behavior of common tools.
  261. CLICOLOR_FORCE= GREP_OPTIONS=
  262. unset CLICOLOR_FORCE GREP_OPTIONS
  263. ## --------------------- ##
  264. ## M4sh Shell Functions. ##
  265. ## --------------------- ##
  266. # as_fn_unset VAR
  267. # ---------------
  268. # Portably unset VAR.
  269. as_fn_unset ()
  270. {
  271. { eval $1=; unset $1;}
  272. }
  273. as_unset=as_fn_unset
  274. # as_fn_set_status STATUS
  275. # -----------------------
  276. # Set $? to STATUS, without forking.
  277. as_fn_set_status ()
  278. {
  279. return $1
  280. } # as_fn_set_status
  281. # as_fn_exit STATUS
  282. # -----------------
  283. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  284. as_fn_exit ()
  285. {
  286. set +e
  287. as_fn_set_status $1
  288. exit $1
  289. } # as_fn_exit
  290. # as_fn_mkdir_p
  291. # -------------
  292. # Create "$as_dir" as a directory, including parents if necessary.
  293. as_fn_mkdir_p ()
  294. {
  295. case $as_dir in #(
  296. -*) as_dir=./$as_dir;;
  297. esac
  298. test -d "$as_dir" || eval $as_mkdir_p || {
  299. as_dirs=
  300. while :; do
  301. case $as_dir in #(
  302. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  303. *) as_qdir=$as_dir;;
  304. esac
  305. as_dirs="'$as_qdir' $as_dirs"
  306. as_dir=`$as_dirname -- "$as_dir" ||
  307. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  308. X"$as_dir" : 'X\(//\)[^/]' \| \
  309. X"$as_dir" : 'X\(//\)$' \| \
  310. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  311. $as_echo X"$as_dir" |
  312. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  313. s//\1/
  314. q
  315. }
  316. /^X\(\/\/\)[^/].*/{
  317. s//\1/
  318. q
  319. }
  320. /^X\(\/\/\)$/{
  321. s//\1/
  322. q
  323. }
  324. /^X\(\/\).*/{
  325. s//\1/
  326. q
  327. }
  328. s/.*/./; q'`
  329. test -d "$as_dir" && break
  330. done
  331. test -z "$as_dirs" || eval "mkdir $as_dirs"
  332. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  333. } # as_fn_mkdir_p
  334. # as_fn_executable_p FILE
  335. # -----------------------
  336. # Test if FILE is an executable regular file.
  337. as_fn_executable_p ()
  338. {
  339. test -f "$1" && test -x "$1"
  340. } # as_fn_executable_p
  341. # as_fn_append VAR VALUE
  342. # ----------------------
  343. # Append the text in VALUE to the end of the definition contained in VAR. Take
  344. # advantage of any shell optimizations that allow amortized linear growth over
  345. # repeated appends, instead of the typical quadratic growth present in naive
  346. # implementations.
  347. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  348. eval 'as_fn_append ()
  349. {
  350. eval $1+=\$2
  351. }'
  352. else
  353. as_fn_append ()
  354. {
  355. eval $1=\$$1\$2
  356. }
  357. fi # as_fn_append
  358. # as_fn_arith ARG...
  359. # ------------------
  360. # Perform arithmetic evaluation on the ARGs, and store the result in the
  361. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  362. # must be portable across $(()) and expr.
  363. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  364. eval 'as_fn_arith ()
  365. {
  366. as_val=$(( $* ))
  367. }'
  368. else
  369. as_fn_arith ()
  370. {
  371. as_val=`expr "$@" || test $? -eq 1`
  372. }
  373. fi # as_fn_arith
  374. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  375. # ----------------------------------------
  376. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  377. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  378. # script with STATUS, using 1 if that was 0.
  379. as_fn_error ()
  380. {
  381. as_status=$1; test $as_status -eq 0 && as_status=1
  382. if test "$4"; then
  383. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  384. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  385. fi
  386. $as_echo "$as_me: error: $2" >&2
  387. as_fn_exit $as_status
  388. } # as_fn_error
  389. if expr a : '\(a\)' >/dev/null 2>&1 &&
  390. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  391. as_expr=expr
  392. else
  393. as_expr=false
  394. fi
  395. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  396. as_basename=basename
  397. else
  398. as_basename=false
  399. fi
  400. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  401. as_dirname=dirname
  402. else
  403. as_dirname=false
  404. fi
  405. as_me=`$as_basename -- "$0" ||
  406. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  407. X"$0" : 'X\(//\)$' \| \
  408. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  409. $as_echo X/"$0" |
  410. sed '/^.*\/\([^/][^/]*\)\/*$/{
  411. s//\1/
  412. q
  413. }
  414. /^X\/\(\/\/\)$/{
  415. s//\1/
  416. q
  417. }
  418. /^X\/\(\/\).*/{
  419. s//\1/
  420. q
  421. }
  422. s/.*/./; q'`
  423. # Avoid depending upon Character Ranges.
  424. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  425. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  426. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  427. as_cr_digits='0123456789'
  428. as_cr_alnum=$as_cr_Letters$as_cr_digits
  429. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  430. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  431. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  432. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  433. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  434. sed -n '
  435. p
  436. /[$]LINENO/=
  437. ' <$as_myself |
  438. sed '
  439. s/[$]LINENO.*/&-/
  440. t lineno
  441. b
  442. :lineno
  443. N
  444. :loop
  445. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  446. t loop
  447. s/-\n.*//
  448. ' >$as_me.lineno &&
  449. chmod +x "$as_me.lineno" ||
  450. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  451. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  452. # already done that, so ensure we don't try to do so again and fall
  453. # in an infinite loop. This has already happened in practice.
  454. _as_can_reexec=no; export _as_can_reexec
  455. # Don't try to exec as it changes $[0], causing all sort of problems
  456. # (the dirname of $[0] is not the place where we might find the
  457. # original and so on. Autoconf is especially sensitive to this).
  458. . "./$as_me.lineno"
  459. # Exit status is that of the last command.
  460. exit
  461. }
  462. ECHO_C= ECHO_N= ECHO_T=
  463. case `echo -n x` in #(((((
  464. -n*)
  465. case `echo 'xy\c'` in
  466. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  467. xy) ECHO_C='\c';;
  468. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  469. ECHO_T=' ';;
  470. esac;;
  471. *)
  472. ECHO_N='-n';;
  473. esac
  474. rm -f conf$$ conf$$.exe conf$$.file
  475. if test -d conf$$.dir; then
  476. rm -f conf$$.dir/conf$$.file
  477. else
  478. rm -f conf$$.dir
  479. mkdir conf$$.dir 2>/dev/null
  480. fi
  481. if (echo >conf$$.file) 2>/dev/null; then
  482. if ln -s conf$$.file conf$$ 2>/dev/null; then
  483. as_ln_s='ln -s'
  484. # ... but there are two gotchas:
  485. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  486. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  487. # In both cases, we have to default to `cp -pR'.
  488. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  489. as_ln_s='cp -pR'
  490. elif ln conf$$.file conf$$ 2>/dev/null; then
  491. as_ln_s=ln
  492. else
  493. as_ln_s='cp -pR'
  494. fi
  495. else
  496. as_ln_s='cp -pR'
  497. fi
  498. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  499. rmdir conf$$.dir 2>/dev/null
  500. if mkdir -p . 2>/dev/null; then
  501. as_mkdir_p='mkdir -p "$as_dir"'
  502. else
  503. test -d ./-p && rmdir ./-p
  504. as_mkdir_p=false
  505. fi
  506. as_test_x='test -x'
  507. as_executable_p=as_fn_executable_p
  508. # Sed expression to map a string onto a valid CPP name.
  509. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  510. # Sed expression to map a string onto a valid variable name.
  511. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  512. # Check that we are running under the correct shell.
  513. SHELL=${CONFIG_SHELL-/bin/sh}
  514. case X$lt_ECHO in
  515. X*--fallback-echo)
  516. # Remove one level of quotation (which was required for Make).
  517. ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  518. ;;
  519. esac
  520. ECHO=${lt_ECHO-echo}
  521. if test "X$1" = X--no-reexec; then
  522. # Discard the --no-reexec flag, and continue.
  523. shift
  524. elif test "X$1" = X--fallback-echo; then
  525. # Avoid inline document here, it may be left over
  526. :
  527. elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  528. # Yippee, $ECHO works!
  529. :
  530. else
  531. # Restart under the correct shell.
  532. exec $SHELL "$0" --no-reexec ${1+"$@"}
  533. fi
  534. if test "X$1" = X--fallback-echo; then
  535. # used as fallback echo
  536. shift
  537. cat <<_LT_EOF
  538. $*
  539. _LT_EOF
  540. exit 0
  541. fi
  542. # The HP-UX ksh and POSIX shell print the target directory to stdout
  543. # if CDPATH is set.
  544. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  545. if test -z "$lt_ECHO"; then
  546. if test "X${echo_test_string+set}" != Xset; then
  547. # find a string as large as possible, as long as the shell can cope with it
  548. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  549. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  550. if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  551. { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  552. then
  553. break
  554. fi
  555. done
  556. fi
  557. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  558. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  559. test "X$echo_testing_string" = "X$echo_test_string"; then
  560. :
  561. else
  562. # The Solaris, AIX, and Digital Unix default echo programs unquote
  563. # backslashes. This makes it impossible to quote backslashes using
  564. # echo "$something" | sed 's/\\/\\\\/g'
  565. #
  566. # So, first we look for a working echo in the user's PATH.
  567. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  568. for dir in $PATH /usr/ucb; do
  569. IFS="$lt_save_ifs"
  570. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  571. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  572. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  573. test "X$echo_testing_string" = "X$echo_test_string"; then
  574. ECHO="$dir/echo"
  575. break
  576. fi
  577. done
  578. IFS="$lt_save_ifs"
  579. if test "X$ECHO" = Xecho; then
  580. # We didn't find a better echo, so look for alternatives.
  581. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  582. echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  583. test "X$echo_testing_string" = "X$echo_test_string"; then
  584. # This shell has a builtin print -r that does the trick.
  585. ECHO='print -r'
  586. elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  587. test "X$CONFIG_SHELL" != X/bin/ksh; then
  588. # If we have ksh, try running configure again with it.
  589. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  590. export ORIGINAL_CONFIG_SHELL
  591. CONFIG_SHELL=/bin/ksh
  592. export CONFIG_SHELL
  593. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  594. else
  595. # Try using printf.
  596. ECHO='printf %s\n'
  597. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  598. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  599. test "X$echo_testing_string" = "X$echo_test_string"; then
  600. # Cool, printf works
  601. :
  602. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  603. test "X$echo_testing_string" = 'X\t' &&
  604. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  605. test "X$echo_testing_string" = "X$echo_test_string"; then
  606. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  607. export CONFIG_SHELL
  608. SHELL="$CONFIG_SHELL"
  609. export SHELL
  610. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  611. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  612. test "X$echo_testing_string" = 'X\t' &&
  613. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  614. test "X$echo_testing_string" = "X$echo_test_string"; then
  615. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  616. else
  617. # maybe with a smaller string...
  618. prev=:
  619. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  620. if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  621. then
  622. break
  623. fi
  624. prev="$cmd"
  625. done
  626. if test "$prev" != 'sed 50q "$0"'; then
  627. echo_test_string=`eval $prev`
  628. export echo_test_string
  629. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  630. else
  631. # Oops. We lost completely, so just stick with echo.
  632. ECHO=echo
  633. fi
  634. fi
  635. fi
  636. fi
  637. fi
  638. fi
  639. # Copy echo and quote the copy suitably for passing to libtool from
  640. # the Makefile, instead of quoting the original, which is used later.
  641. lt_ECHO=$ECHO
  642. if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  643. lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  644. fi
  645. test -n "$DJDIR" || exec 7<&0 </dev/null
  646. exec 6>&1
  647. # Name of the host.
  648. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  649. # so uname gets run too.
  650. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  651. #
  652. # Initializations.
  653. #
  654. ac_default_prefix=/usr/local
  655. ac_clean_files=
  656. ac_config_libobj_dir=.
  657. LIBOBJS=
  658. cross_compiling=no
  659. subdirs=
  660. MFLAGS=
  661. MAKEFLAGS=
  662. # Identity of this package.
  663. PACKAGE_NAME=
  664. PACKAGE_TARNAME=
  665. PACKAGE_VERSION=
  666. PACKAGE_STRING=
  667. PACKAGE_BUGREPORT=
  668. PACKAGE_URL=
  669. ac_unique_file="README.txt"
  670. # Factoring default headers for most tests.
  671. ac_includes_default="\
  672. #include <stdio.h>
  673. #ifdef HAVE_SYS_TYPES_H
  674. # include <sys/types.h>
  675. #endif
  676. #ifdef HAVE_SYS_STAT_H
  677. # include <sys/stat.h>
  678. #endif
  679. #ifdef STDC_HEADERS
  680. # include <stdlib.h>
  681. # include <stddef.h>
  682. #else
  683. # ifdef HAVE_STDLIB_H
  684. # include <stdlib.h>
  685. # endif
  686. #endif
  687. #ifdef HAVE_STRING_H
  688. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  689. # include <memory.h>
  690. # endif
  691. # include <string.h>
  692. #endif
  693. #ifdef HAVE_STRINGS_H
  694. # include <strings.h>
  695. #endif
  696. #ifdef HAVE_INTTYPES_H
  697. # include <inttypes.h>
  698. #endif
  699. #ifdef HAVE_STDINT_H
  700. # include <stdint.h>
  701. #endif
  702. #ifdef HAVE_UNISTD_H
  703. # include <unistd.h>
  704. #endif"
  705. ac_subst_vars='am__EXEEXT_FALSE
  706. am__EXEEXT_TRUE
  707. LTLIBOBJS
  708. LIBOBJS
  709. IMG_LIBS
  710. LIBWEBP_LIBS
  711. LIBWEBP_CFLAGS
  712. LIBPNG_LIBS
  713. LIBPNG_CFLAGS
  714. SDL2_CONFIG
  715. SDL_LIBS
  716. SDL_CFLAGS
  717. PKG_CONFIG
  718. SDL_VERSION
  719. USE_VERSION_RC_FALSE
  720. USE_VERSION_RC_TRUE
  721. USE_IMAGEIO_FALSE
  722. USE_IMAGEIO_TRUE
  723. WINDRES
  724. am__fastdepOBJC_FALSE
  725. am__fastdepOBJC_TRUE
  726. OBJCDEPMODE
  727. ac_ct_OBJC
  728. OBJCFLAGS
  729. OBJC
  730. AM_BACKSLASH
  731. AM_DEFAULT_VERBOSITY
  732. AM_DEFAULT_V
  733. AM_V
  734. am__fastdepCC_FALSE
  735. am__fastdepCC_TRUE
  736. CCDEPMODE
  737. am__nodep
  738. AMDEPBACKSLASH
  739. AMDEP_FALSE
  740. AMDEP_TRUE
  741. am__quote
  742. am__include
  743. DEPDIR
  744. am__untar
  745. am__tar
  746. AMTAR
  747. am__leading_dot
  748. SET_MAKE
  749. AWK
  750. mkdir_p
  751. MKDIR_P
  752. INSTALL_STRIP_PROGRAM
  753. install_sh
  754. MAKEINFO
  755. AUTOHEADER
  756. AUTOMAKE
  757. AUTOCONF
  758. ACLOCAL
  759. PACKAGE
  760. CYGPATH_W
  761. am__isrc
  762. INSTALL_DATA
  763. INSTALL_SCRIPT
  764. INSTALL_PROGRAM
  765. LT_AGE
  766. LT_REVISION
  767. LT_CURRENT
  768. LT_RELEASE
  769. CPP
  770. OTOOL64
  771. OTOOL
  772. LIPO
  773. NMEDIT
  774. DSYMUTIL
  775. lt_ECHO
  776. RANLIB
  777. STRIP
  778. AR
  779. LN_S
  780. NM
  781. ac_ct_DUMPBIN
  782. DUMPBIN
  783. LD
  784. FGREP
  785. EGREP
  786. GREP
  787. SED
  788. OBJEXT
  789. EXEEXT
  790. ac_ct_CC
  791. CPPFLAGS
  792. LDFLAGS
  793. CFLAGS
  794. CC
  795. host_os
  796. host_vendor
  797. host_cpu
  798. host
  799. build_os
  800. build_vendor
  801. build_cpu
  802. build
  803. LIBTOOL
  804. OBJDUMP
  805. DLLTOOL
  806. AS
  807. VERSION
  808. BINARY_AGE
  809. INTERFACE_AGE
  810. MICRO_VERSION
  811. MINOR_VERSION
  812. MAJOR_VERSION
  813. target_alias
  814. host_alias
  815. build_alias
  816. LIBS
  817. ECHO_T
  818. ECHO_N
  819. ECHO_C
  820. DEFS
  821. mandir
  822. localedir
  823. libdir
  824. psdir
  825. pdfdir
  826. dvidir
  827. htmldir
  828. infodir
  829. docdir
  830. oldincludedir
  831. includedir
  832. localstatedir
  833. sharedstatedir
  834. sysconfdir
  835. datadir
  836. datarootdir
  837. libexecdir
  838. sbindir
  839. bindir
  840. program_transform_name
  841. prefix
  842. exec_prefix
  843. PACKAGE_URL
  844. PACKAGE_BUGREPORT
  845. PACKAGE_STRING
  846. PACKAGE_VERSION
  847. PACKAGE_TARNAME
  848. PACKAGE_NAME
  849. PATH_SEPARATOR
  850. SHELL'
  851. ac_subst_files=''
  852. ac_user_opts='
  853. enable_option_checking
  854. enable_shared
  855. enable_static
  856. with_pic
  857. enable_fast_install
  858. with_gnu_ld
  859. enable_libtool_lock
  860. enable_dependency_tracking
  861. enable_silent_rules
  862. enable_imageio
  863. with_sdl_prefix
  864. with_sdl_exec_prefix
  865. enable_sdltest
  866. enable_bmp
  867. enable_gif
  868. enable_jpg
  869. enable_jpg_shared
  870. enable_lbm
  871. enable_pcx
  872. enable_png
  873. enable_png_shared
  874. enable_pnm
  875. enable_tga
  876. enable_tif
  877. enable_tif_shared
  878. enable_xcf
  879. enable_xpm
  880. enable_xv
  881. enable_webp
  882. enable_webp_shared
  883. '
  884. ac_precious_vars='build_alias
  885. host_alias
  886. target_alias
  887. CC
  888. CFLAGS
  889. LDFLAGS
  890. LIBS
  891. CPPFLAGS
  892. CPP
  893. OBJC
  894. OBJCFLAGS
  895. PKG_CONFIG
  896. SDL_CFLAGS
  897. SDL_LIBS
  898. LIBPNG_CFLAGS
  899. LIBPNG_LIBS
  900. LIBWEBP_CFLAGS
  901. LIBWEBP_LIBS'
  902. # Initialize some variables set by options.
  903. ac_init_help=
  904. ac_init_version=false
  905. ac_unrecognized_opts=
  906. ac_unrecognized_sep=
  907. # The variables have the same names as the options, with
  908. # dashes changed to underlines.
  909. cache_file=/dev/null
  910. exec_prefix=NONE
  911. no_create=
  912. no_recursion=
  913. prefix=NONE
  914. program_prefix=NONE
  915. program_suffix=NONE
  916. program_transform_name=s,x,x,
  917. silent=
  918. site=
  919. srcdir=
  920. verbose=
  921. x_includes=NONE
  922. x_libraries=NONE
  923. # Installation directory options.
  924. # These are left unexpanded so users can "make install exec_prefix=/foo"
  925. # and all the variables that are supposed to be based on exec_prefix
  926. # by default will actually change.
  927. # Use braces instead of parens because sh, perl, etc. also accept them.
  928. # (The list follows the same order as the GNU Coding Standards.)
  929. bindir='${exec_prefix}/bin'
  930. sbindir='${exec_prefix}/sbin'
  931. libexecdir='${exec_prefix}/libexec'
  932. datarootdir='${prefix}/share'
  933. datadir='${datarootdir}'
  934. sysconfdir='${prefix}/etc'
  935. sharedstatedir='${prefix}/com'
  936. localstatedir='${prefix}/var'
  937. includedir='${prefix}/include'
  938. oldincludedir='/usr/include'
  939. docdir='${datarootdir}/doc/${PACKAGE}'
  940. infodir='${datarootdir}/info'
  941. htmldir='${docdir}'
  942. dvidir='${docdir}'
  943. pdfdir='${docdir}'
  944. psdir='${docdir}'
  945. libdir='${exec_prefix}/lib'
  946. localedir='${datarootdir}/locale'
  947. mandir='${datarootdir}/man'
  948. ac_prev=
  949. ac_dashdash=
  950. for ac_option
  951. do
  952. # If the previous option needs an argument, assign it.
  953. if test -n "$ac_prev"; then
  954. eval $ac_prev=\$ac_option
  955. ac_prev=
  956. continue
  957. fi
  958. case $ac_option in
  959. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  960. *=) ac_optarg= ;;
  961. *) ac_optarg=yes ;;
  962. esac
  963. # Accept the important Cygnus configure options, so we can diagnose typos.
  964. case $ac_dashdash$ac_option in
  965. --)
  966. ac_dashdash=yes ;;
  967. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  968. ac_prev=bindir ;;
  969. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  970. bindir=$ac_optarg ;;
  971. -build | --build | --buil | --bui | --bu)
  972. ac_prev=build_alias ;;
  973. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  974. build_alias=$ac_optarg ;;
  975. -cache-file | --cache-file | --cache-fil | --cache-fi \
  976. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  977. ac_prev=cache_file ;;
  978. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  979. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  980. cache_file=$ac_optarg ;;
  981. --config-cache | -C)
  982. cache_file=config.cache ;;
  983. -datadir | --datadir | --datadi | --datad)
  984. ac_prev=datadir ;;
  985. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  986. datadir=$ac_optarg ;;
  987. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  988. | --dataroo | --dataro | --datar)
  989. ac_prev=datarootdir ;;
  990. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  991. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  992. datarootdir=$ac_optarg ;;
  993. -disable-* | --disable-*)
  994. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  995. # Reject names that are not valid shell variable names.
  996. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  997. as_fn_error $? "invalid feature name: $ac_useropt"
  998. ac_useropt_orig=$ac_useropt
  999. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1000. case $ac_user_opts in
  1001. *"
  1002. "enable_$ac_useropt"
  1003. "*) ;;
  1004. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1005. ac_unrecognized_sep=', ';;
  1006. esac
  1007. eval enable_$ac_useropt=no ;;
  1008. -docdir | --docdir | --docdi | --doc | --do)
  1009. ac_prev=docdir ;;
  1010. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1011. docdir=$ac_optarg ;;
  1012. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1013. ac_prev=dvidir ;;
  1014. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1015. dvidir=$ac_optarg ;;
  1016. -enable-* | --enable-*)
  1017. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1018. # Reject names that are not valid shell variable names.
  1019. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1020. as_fn_error $? "invalid feature name: $ac_useropt"
  1021. ac_useropt_orig=$ac_useropt
  1022. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1023. case $ac_user_opts in
  1024. *"
  1025. "enable_$ac_useropt"
  1026. "*) ;;
  1027. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1028. ac_unrecognized_sep=', ';;
  1029. esac
  1030. eval enable_$ac_useropt=\$ac_optarg ;;
  1031. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1032. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1033. | --exec | --exe | --ex)
  1034. ac_prev=exec_prefix ;;
  1035. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1036. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1037. | --exec=* | --exe=* | --ex=*)
  1038. exec_prefix=$ac_optarg ;;
  1039. -gas | --gas | --ga | --g)
  1040. # Obsolete; use --with-gas.
  1041. with_gas=yes ;;
  1042. -help | --help | --hel | --he | -h)
  1043. ac_init_help=long ;;
  1044. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1045. ac_init_help=recursive ;;
  1046. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1047. ac_init_help=short ;;
  1048. -host | --host | --hos | --ho)
  1049. ac_prev=host_alias ;;
  1050. -host=* | --host=* | --hos=* | --ho=*)
  1051. host_alias=$ac_optarg ;;
  1052. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1053. ac_prev=htmldir ;;
  1054. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1055. | --ht=*)
  1056. htmldir=$ac_optarg ;;
  1057. -includedir | --includedir | --includedi | --included | --include \
  1058. | --includ | --inclu | --incl | --inc)
  1059. ac_prev=includedir ;;
  1060. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1061. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1062. includedir=$ac_optarg ;;
  1063. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1064. ac_prev=infodir ;;
  1065. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1066. infodir=$ac_optarg ;;
  1067. -libdir | --libdir | --libdi | --libd)
  1068. ac_prev=libdir ;;
  1069. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1070. libdir=$ac_optarg ;;
  1071. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1072. | --libexe | --libex | --libe)
  1073. ac_prev=libexecdir ;;
  1074. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1075. | --libexe=* | --libex=* | --libe=*)
  1076. libexecdir=$ac_optarg ;;
  1077. -localedir | --localedir | --localedi | --localed | --locale)
  1078. ac_prev=localedir ;;
  1079. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1080. localedir=$ac_optarg ;;
  1081. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1082. | --localstate | --localstat | --localsta | --localst | --locals)
  1083. ac_prev=localstatedir ;;
  1084. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1085. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1086. localstatedir=$ac_optarg ;;
  1087. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1088. ac_prev=mandir ;;
  1089. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1090. mandir=$ac_optarg ;;
  1091. -nfp | --nfp | --nf)
  1092. # Obsolete; use --without-fp.
  1093. with_fp=no ;;
  1094. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1095. | --no-cr | --no-c | -n)
  1096. no_create=yes ;;
  1097. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1098. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1099. no_recursion=yes ;;
  1100. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1101. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1102. | --oldin | --oldi | --old | --ol | --o)
  1103. ac_prev=oldincludedir ;;
  1104. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1105. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1106. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1107. oldincludedir=$ac_optarg ;;
  1108. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1109. ac_prev=prefix ;;
  1110. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1111. prefix=$ac_optarg ;;
  1112. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1113. | --program-pre | --program-pr | --program-p)
  1114. ac_prev=program_prefix ;;
  1115. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1116. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1117. program_prefix=$ac_optarg ;;
  1118. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1119. | --program-suf | --program-su | --program-s)
  1120. ac_prev=program_suffix ;;
  1121. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1122. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1123. program_suffix=$ac_optarg ;;
  1124. -program-transform-name | --program-transform-name \
  1125. | --program-transform-nam | --program-transform-na \
  1126. | --program-transform-n | --program-transform- \
  1127. | --program-transform | --program-transfor \
  1128. | --program-transfo | --program-transf \
  1129. | --program-trans | --program-tran \
  1130. | --progr-tra | --program-tr | --program-t)
  1131. ac_prev=program_transform_name ;;
  1132. -program-transform-name=* | --program-transform-name=* \
  1133. | --program-transform-nam=* | --program-transform-na=* \
  1134. | --program-transform-n=* | --program-transform-=* \
  1135. | --program-transform=* | --program-transfor=* \
  1136. | --program-transfo=* | --program-transf=* \
  1137. | --program-trans=* | --program-tran=* \
  1138. | --progr-tra=* | --program-tr=* | --program-t=*)
  1139. program_transform_name=$ac_optarg ;;
  1140. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1141. ac_prev=pdfdir ;;
  1142. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1143. pdfdir=$ac_optarg ;;
  1144. -psdir | --psdir | --psdi | --psd | --ps)
  1145. ac_prev=psdir ;;
  1146. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1147. psdir=$ac_optarg ;;
  1148. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1149. | -silent | --silent | --silen | --sile | --sil)
  1150. silent=yes ;;
  1151. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1152. ac_prev=sbindir ;;
  1153. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1154. | --sbi=* | --sb=*)
  1155. sbindir=$ac_optarg ;;
  1156. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1157. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1158. | --sharedst | --shareds | --shared | --share | --shar \
  1159. | --sha | --sh)
  1160. ac_prev=sharedstatedir ;;
  1161. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1162. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1163. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1164. | --sha=* | --sh=*)
  1165. sharedstatedir=$ac_optarg ;;
  1166. -site | --site | --sit)
  1167. ac_prev=site ;;
  1168. -site=* | --site=* | --sit=*)
  1169. site=$ac_optarg ;;
  1170. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1171. ac_prev=srcdir ;;
  1172. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1173. srcdir=$ac_optarg ;;
  1174. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1175. | --syscon | --sysco | --sysc | --sys | --sy)
  1176. ac_prev=sysconfdir ;;
  1177. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1178. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1179. sysconfdir=$ac_optarg ;;
  1180. -target | --target | --targe | --targ | --tar | --ta | --t)
  1181. ac_prev=target_alias ;;
  1182. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1183. target_alias=$ac_optarg ;;
  1184. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1185. verbose=yes ;;
  1186. -version | --version | --versio | --versi | --vers | -V)
  1187. ac_init_version=: ;;
  1188. -with-* | --with-*)
  1189. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1190. # Reject names that are not valid shell variable names.
  1191. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1192. as_fn_error $? "invalid package name: $ac_useropt"
  1193. ac_useropt_orig=$ac_useropt
  1194. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1195. case $ac_user_opts in
  1196. *"
  1197. "with_$ac_useropt"
  1198. "*) ;;
  1199. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1200. ac_unrecognized_sep=', ';;
  1201. esac
  1202. eval with_$ac_useropt=\$ac_optarg ;;
  1203. -without-* | --without-*)
  1204. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1205. # Reject names that are not valid shell variable names.
  1206. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1207. as_fn_error $? "invalid package name: $ac_useropt"
  1208. ac_useropt_orig=$ac_useropt
  1209. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1210. case $ac_user_opts in
  1211. *"
  1212. "with_$ac_useropt"
  1213. "*) ;;
  1214. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1215. ac_unrecognized_sep=', ';;
  1216. esac
  1217. eval with_$ac_useropt=no ;;
  1218. --x)
  1219. # Obsolete; use --with-x.
  1220. with_x=yes ;;
  1221. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1222. | --x-incl | --x-inc | --x-in | --x-i)
  1223. ac_prev=x_includes ;;
  1224. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1225. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1226. x_includes=$ac_optarg ;;
  1227. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1228. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1229. ac_prev=x_libraries ;;
  1230. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1231. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1232. x_libraries=$ac_optarg ;;
  1233. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1234. Try \`$0 --help' for more information"
  1235. ;;
  1236. *=*)
  1237. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1238. # Reject names that are not valid shell variable names.
  1239. case $ac_envvar in #(
  1240. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1241. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1242. esac
  1243. eval $ac_envvar=\$ac_optarg
  1244. export $ac_envvar ;;
  1245. *)
  1246. # FIXME: should be removed in autoconf 3.0.
  1247. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1248. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1249. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1250. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1251. ;;
  1252. esac
  1253. done
  1254. if test -n "$ac_prev"; then
  1255. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1256. as_fn_error $? "missing argument to $ac_option"
  1257. fi
  1258. if test -n "$ac_unrecognized_opts"; then
  1259. case $enable_option_checking in
  1260. no) ;;
  1261. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1262. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1263. esac
  1264. fi
  1265. # Check all directory arguments for consistency.
  1266. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1267. datadir sysconfdir sharedstatedir localstatedir includedir \
  1268. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1269. libdir localedir mandir
  1270. do
  1271. eval ac_val=\$$ac_var
  1272. # Remove trailing slashes.
  1273. case $ac_val in
  1274. */ )
  1275. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1276. eval $ac_var=\$ac_val;;
  1277. esac
  1278. # Be sure to have absolute directory names.
  1279. case $ac_val in
  1280. [\\/$]* | ?:[\\/]* ) continue;;
  1281. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1282. esac
  1283. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1284. done
  1285. # There might be people who depend on the old broken behavior: `$host'
  1286. # used to hold the argument of --host etc.
  1287. # FIXME: To remove some day.
  1288. build=$build_alias
  1289. host=$host_alias
  1290. target=$target_alias
  1291. # FIXME: To remove some day.
  1292. if test "x$host_alias" != x; then
  1293. if test "x$build_alias" = x; then
  1294. cross_compiling=maybe
  1295. elif test "x$build_alias" != "x$host_alias"; then
  1296. cross_compiling=yes
  1297. fi
  1298. fi
  1299. ac_tool_prefix=
  1300. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1301. test "$silent" = yes && exec 6>/dev/null
  1302. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1303. ac_ls_di=`ls -di .` &&
  1304. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1305. as_fn_error $? "working directory cannot be determined"
  1306. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1307. as_fn_error $? "pwd does not report name of working directory"
  1308. # Find the source files, if location was not specified.
  1309. if test -z "$srcdir"; then
  1310. ac_srcdir_defaulted=yes
  1311. # Try the directory containing this script, then the parent directory.
  1312. ac_confdir=`$as_dirname -- "$as_myself" ||
  1313. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1314. X"$as_myself" : 'X\(//\)[^/]' \| \
  1315. X"$as_myself" : 'X\(//\)$' \| \
  1316. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1317. $as_echo X"$as_myself" |
  1318. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1319. s//\1/
  1320. q
  1321. }
  1322. /^X\(\/\/\)[^/].*/{
  1323. s//\1/
  1324. q
  1325. }
  1326. /^X\(\/\/\)$/{
  1327. s//\1/
  1328. q
  1329. }
  1330. /^X\(\/\).*/{
  1331. s//\1/
  1332. q
  1333. }
  1334. s/.*/./; q'`
  1335. srcdir=$ac_confdir
  1336. if test ! -r "$srcdir/$ac_unique_file"; then
  1337. srcdir=..
  1338. fi
  1339. else
  1340. ac_srcdir_defaulted=no
  1341. fi
  1342. if test ! -r "$srcdir/$ac_unique_file"; then
  1343. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1344. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1345. fi
  1346. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1347. ac_abs_confdir=`(
  1348. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1349. pwd)`
  1350. # When building in place, set srcdir=.
  1351. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1352. srcdir=.
  1353. fi
  1354. # Remove unnecessary trailing slashes from srcdir.
  1355. # Double slashes in file names in object file debugging info
  1356. # mess up M-x gdb in Emacs.
  1357. case $srcdir in
  1358. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1359. esac
  1360. for ac_var in $ac_precious_vars; do
  1361. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1362. eval ac_env_${ac_var}_value=\$${ac_var}
  1363. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1364. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1365. done
  1366. #
  1367. # Report the --help message.
  1368. #
  1369. if test "$ac_init_help" = "long"; then
  1370. # Omit some internal or obsolete options to make the list less imposing.
  1371. # This message is too long to be a string in the A/UX 3.1 sh.
  1372. cat <<_ACEOF
  1373. \`configure' configures this package to adapt to many kinds of systems.
  1374. Usage: $0 [OPTION]... [VAR=VALUE]...
  1375. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1376. VAR=VALUE. See below for descriptions of some of the useful variables.
  1377. Defaults for the options are specified in brackets.
  1378. Configuration:
  1379. -h, --help display this help and exit
  1380. --help=short display options specific to this package
  1381. --help=recursive display the short help of all the included packages
  1382. -V, --version display version information and exit
  1383. -q, --quiet, --silent do not print \`checking ...' messages
  1384. --cache-file=FILE cache test results in FILE [disabled]
  1385. -C, --config-cache alias for \`--cache-file=config.cache'
  1386. -n, --no-create do not create output files
  1387. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1388. Installation directories:
  1389. --prefix=PREFIX install architecture-independent files in PREFIX
  1390. [$ac_default_prefix]
  1391. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1392. [PREFIX]
  1393. By default, \`make install' will install all the files in
  1394. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1395. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1396. for instance \`--prefix=\$HOME'.
  1397. For better control, use the options below.
  1398. Fine tuning of the installation directories:
  1399. --bindir=DIR user executables [EPREFIX/bin]
  1400. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1401. --libexecdir=DIR program executables [EPREFIX/libexec]
  1402. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1403. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1404. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1405. --libdir=DIR object code libraries [EPREFIX/lib]
  1406. --includedir=DIR C header files [PREFIX/include]
  1407. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1408. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1409. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1410. --infodir=DIR info documentation [DATAROOTDIR/info]
  1411. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1412. --mandir=DIR man documentation [DATAROOTDIR/man]
  1413. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1414. --htmldir=DIR html documentation [DOCDIR]
  1415. --dvidir=DIR dvi documentation [DOCDIR]
  1416. --pdfdir=DIR pdf documentation [DOCDIR]
  1417. --psdir=DIR ps documentation [DOCDIR]
  1418. _ACEOF
  1419. cat <<\_ACEOF
  1420. Program names:
  1421. --program-prefix=PREFIX prepend PREFIX to installed program names
  1422. --program-suffix=SUFFIX append SUFFIX to installed program names
  1423. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1424. System types:
  1425. --build=BUILD configure for building on BUILD [guessed]
  1426. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1427. _ACEOF
  1428. fi
  1429. if test -n "$ac_init_help"; then
  1430. cat <<\_ACEOF
  1431. Optional Features:
  1432. --disable-option-checking ignore unrecognized --enable/--with options
  1433. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1434. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1435. --enable-shared[=PKGS] build shared libraries [default=yes]
  1436. --enable-static[=PKGS] build static libraries [default=yes]
  1437. --enable-fast-install[=PKGS]
  1438. optimize for fast installation [default=yes]
  1439. --disable-libtool-lock avoid locking (might break parallel builds)
  1440. --enable-dependency-tracking
  1441. do not reject slow dependency extractors
  1442. --disable-dependency-tracking
  1443. speeds up one-time build
  1444. --enable-silent-rules less verbose build output (undo: "make V=1")
  1445. --disable-silent-rules verbose build output (undo: "make V=0")
  1446. --enable-imageio use native Mac OS X frameworks for loading images
  1447. [default=yes]
  1448. --disable-sdltest Do not try to compile and run a test SDL program
  1449. --enable-bmp support loading BMP/ICO/CUR images [default=yes]
  1450. --enable-gif support loading GIF images [default=yes]
  1451. --enable-jpg support loading JPG images [default=yes]
  1452. --enable-jpg-shared dynamically load JPG support [[default=yes]]
  1453. --enable-lbm support loading LBM images [default=yes]
  1454. --enable-pcx support loading PCX images [default=yes]
  1455. --enable-png support loading PNG images [default=yes]
  1456. --enable-png-shared dynamically load PNG support [[default=yes]]
  1457. --enable-pnm support loading PNM images [default=yes]
  1458. --enable-tga support loading TGA images [default=yes]
  1459. --enable-tif support loading TIFF images [default=yes]
  1460. --enable-tif-shared dynamically load TIFF support [[default=yes]]
  1461. --enable-xcf support loading XCF images [default=yes]
  1462. --enable-xpm support loading XPM images [default=yes]
  1463. --enable-xv support loading XV images [default=yes]
  1464. --enable-webp support loading WEBP images [default=yes]
  1465. --enable-webp-shared dynamically load WEBP support [[default=yes]]
  1466. Optional Packages:
  1467. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1468. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1469. --with-pic try to use only PIC/non-PIC objects [default=use
  1470. both]
  1471. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1472. --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
  1473. --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
  1474. Some influential environment variables:
  1475. CC C compiler command
  1476. CFLAGS C compiler flags
  1477. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1478. nonstandard directory <lib dir>
  1479. LIBS libraries to pass to the linker, e.g. -l<library>
  1480. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1481. you have headers in a nonstandard directory <include dir>
  1482. CPP C preprocessor
  1483. OBJC Objective C compiler command
  1484. OBJCFLAGS Objective C compiler flags
  1485. PKG_CONFIG path to pkg-config utility
  1486. SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
  1487. SDL_LIBS linker flags for SDL, overriding pkg-config
  1488. LIBPNG_CFLAGS
  1489. C compiler flags for LIBPNG, overriding pkg-config
  1490. LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
  1491. LIBWEBP_CFLAGS
  1492. C compiler flags for LIBWEBP, overriding pkg-config
  1493. LIBWEBP_LIBS
  1494. linker flags for LIBWEBP, overriding pkg-config
  1495. Use these variables to override the choices made by `configure' or to help
  1496. it to find libraries and programs with nonstandard names/locations.
  1497. Report bugs to the package provider.
  1498. _ACEOF
  1499. ac_status=$?
  1500. fi
  1501. if test "$ac_init_help" = "recursive"; then
  1502. # If there are subdirs, report their specific --help.
  1503. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1504. test -d "$ac_dir" ||
  1505. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1506. continue
  1507. ac_builddir=.
  1508. case "$ac_dir" in
  1509. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1510. *)
  1511. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1512. # A ".." for each directory in $ac_dir_suffix.
  1513. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1514. case $ac_top_builddir_sub in
  1515. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1516. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1517. esac ;;
  1518. esac
  1519. ac_abs_top_builddir=$ac_pwd
  1520. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1521. # for backward compatibility:
  1522. ac_top_builddir=$ac_top_build_prefix
  1523. case $srcdir in
  1524. .) # We are building in place.
  1525. ac_srcdir=.
  1526. ac_top_srcdir=$ac_top_builddir_sub
  1527. ac_abs_top_srcdir=$ac_pwd ;;
  1528. [\\/]* | ?:[\\/]* ) # Absolute name.
  1529. ac_srcdir=$srcdir$ac_dir_suffix;
  1530. ac_top_srcdir=$srcdir
  1531. ac_abs_top_srcdir=$srcdir ;;
  1532. *) # Relative name.
  1533. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1534. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1535. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1536. esac
  1537. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1538. cd "$ac_dir" || { ac_status=$?; continue; }
  1539. # Check for guested configure.
  1540. if test -f "$ac_srcdir/configure.gnu"; then
  1541. echo &&
  1542. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1543. elif test -f "$ac_srcdir/configure"; then
  1544. echo &&
  1545. $SHELL "$ac_srcdir/configure" --help=recursive
  1546. else
  1547. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1548. fi || ac_status=$?
  1549. cd "$ac_pwd" || { ac_status=$?; break; }
  1550. done
  1551. fi
  1552. test -n "$ac_init_help" && exit $ac_status
  1553. if $ac_init_version; then
  1554. cat <<\_ACEOF
  1555. configure
  1556. generated by GNU Autoconf 2.69
  1557. Copyright (C) 2012 Free Software Foundation, Inc.
  1558. This configure script is free software; the Free Software Foundation
  1559. gives unlimited permission to copy, distribute and modify it.
  1560. _ACEOF
  1561. exit
  1562. fi
  1563. ## ------------------------ ##
  1564. ## Autoconf initialization. ##
  1565. ## ------------------------ ##
  1566. # ac_fn_c_try_compile LINENO
  1567. # --------------------------
  1568. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1569. ac_fn_c_try_compile ()
  1570. {
  1571. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1572. rm -f conftest.$ac_objext
  1573. if { { ac_try="$ac_compile"
  1574. case "(($ac_try" in
  1575. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1576. *) ac_try_echo=$ac_try;;
  1577. esac
  1578. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1579. $as_echo "$ac_try_echo"; } >&5
  1580. (eval "$ac_compile") 2>conftest.err
  1581. ac_status=$?
  1582. if test -s conftest.err; then
  1583. grep -v '^ *+' conftest.err >conftest.er1
  1584. cat conftest.er1 >&5
  1585. mv -f conftest.er1 conftest.err
  1586. fi
  1587. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1588. test $ac_status = 0; } && {
  1589. test -z "$ac_c_werror_flag" ||
  1590. test ! -s conftest.err
  1591. } && test -s conftest.$ac_objext; then :
  1592. ac_retval=0
  1593. else
  1594. $as_echo "$as_me: failed program was:" >&5
  1595. sed 's/^/| /' conftest.$ac_ext >&5
  1596. ac_retval=1
  1597. fi
  1598. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1599. as_fn_set_status $ac_retval
  1600. } # ac_fn_c_try_compile
  1601. # ac_fn_c_try_link LINENO
  1602. # -----------------------
  1603. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1604. ac_fn_c_try_link ()
  1605. {
  1606. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1607. rm -f conftest.$ac_objext conftest$ac_exeext
  1608. if { { ac_try="$ac_link"
  1609. case "(($ac_try" in
  1610. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1611. *) ac_try_echo=$ac_try;;
  1612. esac
  1613. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1614. $as_echo "$ac_try_echo"; } >&5
  1615. (eval "$ac_link") 2>conftest.err
  1616. ac_status=$?
  1617. if test -s conftest.err; then
  1618. grep -v '^ *+' conftest.err >conftest.er1
  1619. cat conftest.er1 >&5
  1620. mv -f conftest.er1 conftest.err
  1621. fi
  1622. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1623. test $ac_status = 0; } && {
  1624. test -z "$ac_c_werror_flag" ||
  1625. test ! -s conftest.err
  1626. } && test -s conftest$ac_exeext && {
  1627. test "$cross_compiling" = yes ||
  1628. test -x conftest$ac_exeext
  1629. }; then :
  1630. ac_retval=0
  1631. else
  1632. $as_echo "$as_me: failed program was:" >&5
  1633. sed 's/^/| /' conftest.$ac_ext >&5
  1634. ac_retval=1
  1635. fi
  1636. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1637. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1638. # interfere with the next link command; also delete a directory that is
  1639. # left behind by Apple's compiler. We do this before executing the actions.
  1640. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1641. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1642. as_fn_set_status $ac_retval
  1643. } # ac_fn_c_try_link
  1644. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1645. # -------------------------------------------------------
  1646. # Tests whether HEADER exists and can be compiled using the include files in
  1647. # INCLUDES, setting the cache variable VAR accordingly.
  1648. ac_fn_c_check_header_compile ()
  1649. {
  1650. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1652. $as_echo_n "checking for $2... " >&6; }
  1653. if eval \${$3+:} false; then :
  1654. $as_echo_n "(cached) " >&6
  1655. else
  1656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1657. /* end confdefs.h. */
  1658. $4
  1659. #include <$2>
  1660. _ACEOF
  1661. if ac_fn_c_try_compile "$LINENO"; then :
  1662. eval "$3=yes"
  1663. else
  1664. eval "$3=no"
  1665. fi
  1666. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1667. fi
  1668. eval ac_res=\$$3
  1669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1670. $as_echo "$ac_res" >&6; }
  1671. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1672. } # ac_fn_c_check_header_compile
  1673. # ac_fn_c_try_cpp LINENO
  1674. # ----------------------
  1675. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1676. ac_fn_c_try_cpp ()
  1677. {
  1678. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1679. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1680. case "(($ac_try" in
  1681. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1682. *) ac_try_echo=$ac_try;;
  1683. esac
  1684. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1685. $as_echo "$ac_try_echo"; } >&5
  1686. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1687. ac_status=$?
  1688. if test -s conftest.err; then
  1689. grep -v '^ *+' conftest.err >conftest.er1
  1690. cat conftest.er1 >&5
  1691. mv -f conftest.er1 conftest.err
  1692. fi
  1693. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1694. test $ac_status = 0; } > conftest.i && {
  1695. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1696. test ! -s conftest.err
  1697. }; then :
  1698. ac_retval=0
  1699. else
  1700. $as_echo "$as_me: failed program was:" >&5
  1701. sed 's/^/| /' conftest.$ac_ext >&5
  1702. ac_retval=1
  1703. fi
  1704. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1705. as_fn_set_status $ac_retval
  1706. } # ac_fn_c_try_cpp
  1707. # ac_fn_c_try_run LINENO
  1708. # ----------------------
  1709. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1710. # that executables *can* be run.
  1711. ac_fn_c_try_run ()
  1712. {
  1713. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1714. if { { ac_try="$ac_link"
  1715. case "(($ac_try" in
  1716. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1717. *) ac_try_echo=$ac_try;;
  1718. esac
  1719. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1720. $as_echo "$ac_try_echo"; } >&5
  1721. (eval "$ac_link") 2>&5
  1722. ac_status=$?
  1723. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1724. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1725. { { case "(($ac_try" in
  1726. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1727. *) ac_try_echo=$ac_try;;
  1728. esac
  1729. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1730. $as_echo "$ac_try_echo"; } >&5
  1731. (eval "$ac_try") 2>&5
  1732. ac_status=$?
  1733. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1734. test $ac_status = 0; }; }; then :
  1735. ac_retval=0
  1736. else
  1737. $as_echo "$as_me: program exited with status $ac_status" >&5
  1738. $as_echo "$as_me: failed program was:" >&5
  1739. sed 's/^/| /' conftest.$ac_ext >&5
  1740. ac_retval=$ac_status
  1741. fi
  1742. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1743. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1744. as_fn_set_status $ac_retval
  1745. } # ac_fn_c_try_run
  1746. # ac_fn_c_check_func LINENO FUNC VAR
  1747. # ----------------------------------
  1748. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1749. ac_fn_c_check_func ()
  1750. {
  1751. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1753. $as_echo_n "checking for $2... " >&6; }
  1754. if eval \${$3+:} false; then :
  1755. $as_echo_n "(cached) " >&6
  1756. else
  1757. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1758. /* end confdefs.h. */
  1759. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1760. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1761. #define $2 innocuous_$2
  1762. /* System header to define __stub macros and hopefully few prototypes,
  1763. which can conflict with char $2 (); below.
  1764. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1765. <limits.h> exists even on freestanding compilers. */
  1766. #ifdef __STDC__
  1767. # include <limits.h>
  1768. #else
  1769. # include <assert.h>
  1770. #endif
  1771. #undef $2
  1772. /* Override any GCC internal prototype to avoid an error.
  1773. Use char because int might match the return type of a GCC
  1774. builtin and then its argument prototype would still apply. */
  1775. #ifdef __cplusplus
  1776. extern "C"
  1777. #endif
  1778. char $2 ();
  1779. /* The GNU C library defines this for functions which it implements
  1780. to always fail with ENOSYS. Some functions are actually named
  1781. something starting with __ and the normal name is an alias. */
  1782. #if defined __stub_$2 || defined __stub___$2
  1783. choke me
  1784. #endif
  1785. int
  1786. main ()
  1787. {
  1788. return $2 ();
  1789. ;
  1790. return 0;
  1791. }
  1792. _ACEOF
  1793. if ac_fn_c_try_link "$LINENO"; then :
  1794. eval "$3=yes"
  1795. else
  1796. eval "$3=no"
  1797. fi
  1798. rm -f core conftest.err conftest.$ac_objext \
  1799. conftest$ac_exeext conftest.$ac_ext
  1800. fi
  1801. eval ac_res=\$$3
  1802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1803. $as_echo "$ac_res" >&6; }
  1804. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1805. } # ac_fn_c_check_func
  1806. # ac_fn_objc_try_compile LINENO
  1807. # -----------------------------
  1808. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1809. ac_fn_objc_try_compile ()
  1810. {
  1811. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1812. rm -f conftest.$ac_objext
  1813. if { { ac_try="$ac_compile"
  1814. case "(($ac_try" in
  1815. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1816. *) ac_try_echo=$ac_try;;
  1817. esac
  1818. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1819. $as_echo "$ac_try_echo"; } >&5
  1820. (eval "$ac_compile") 2>conftest.err
  1821. ac_status=$?
  1822. if test -s conftest.err; then
  1823. grep -v '^ *+' conftest.err >conftest.er1
  1824. cat conftest.er1 >&5
  1825. mv -f conftest.er1 conftest.err
  1826. fi
  1827. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1828. test $ac_status = 0; } && {
  1829. test -z "$ac_objc_werror_flag" ||
  1830. test ! -s conftest.err
  1831. } && test -s conftest.$ac_objext; then :
  1832. ac_retval=0
  1833. else
  1834. $as_echo "$as_me: failed program was:" >&5
  1835. sed 's/^/| /' conftest.$ac_ext >&5
  1836. ac_retval=1
  1837. fi
  1838. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1839. as_fn_set_status $ac_retval
  1840. } # ac_fn_objc_try_compile
  1841. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1842. # -------------------------------------------------------
  1843. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1844. # the include files in INCLUDES and setting the cache variable VAR
  1845. # accordingly.
  1846. ac_fn_c_check_header_mongrel ()
  1847. {
  1848. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1849. if eval \${$3+:} false; then :
  1850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1851. $as_echo_n "checking for $2... " >&6; }
  1852. if eval \${$3+:} false; then :
  1853. $as_echo_n "(cached) " >&6
  1854. fi
  1855. eval ac_res=\$$3
  1856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1857. $as_echo "$ac_res" >&6; }
  1858. else
  1859. # Is the header compilable?
  1860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1861. $as_echo_n "checking $2 usability... " >&6; }
  1862. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1863. /* end confdefs.h. */
  1864. $4
  1865. #include <$2>
  1866. _ACEOF
  1867. if ac_fn_c_try_compile "$LINENO"; then :
  1868. ac_header_compiler=yes
  1869. else
  1870. ac_header_compiler=no
  1871. fi
  1872. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1874. $as_echo "$ac_header_compiler" >&6; }
  1875. # Is the header present?
  1876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1877. $as_echo_n "checking $2 presence... " >&6; }
  1878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1879. /* end confdefs.h. */
  1880. #include <$2>
  1881. _ACEOF
  1882. if ac_fn_c_try_cpp "$LINENO"; then :
  1883. ac_header_preproc=yes
  1884. else
  1885. ac_header_preproc=no
  1886. fi
  1887. rm -f conftest.err conftest.i conftest.$ac_ext
  1888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1889. $as_echo "$ac_header_preproc" >&6; }
  1890. # So? What about this header?
  1891. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1892. yes:no: )
  1893. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1894. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1895. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1896. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1897. ;;
  1898. no:yes:* )
  1899. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1900. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1901. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1902. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1903. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1904. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1905. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1906. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1907. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1908. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1909. ;;
  1910. esac
  1911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1912. $as_echo_n "checking for $2... " >&6; }
  1913. if eval \${$3+:} false; then :
  1914. $as_echo_n "(cached) " >&6
  1915. else
  1916. eval "$3=\$ac_header_compiler"
  1917. fi
  1918. eval ac_res=\$$3
  1919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1920. $as_echo "$ac_res" >&6; }
  1921. fi
  1922. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1923. } # ac_fn_c_check_header_mongrel
  1924. cat >config.log <<_ACEOF
  1925. This file contains any messages produced by compilers while
  1926. running configure, to aid debugging if configure makes a mistake.
  1927. It was created by $as_me, which was
  1928. generated by GNU Autoconf 2.69. Invocation command line was
  1929. $ $0 $@
  1930. _ACEOF
  1931. exec 5>>config.log
  1932. {
  1933. cat <<_ASUNAME
  1934. ## --------- ##
  1935. ## Platform. ##
  1936. ## --------- ##
  1937. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1938. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1939. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1940. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1941. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1942. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1943. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1944. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1945. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1946. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1947. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1948. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1949. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1950. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1951. _ASUNAME
  1952. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1953. for as_dir in $PATH
  1954. do
  1955. IFS=$as_save_IFS
  1956. test -z "$as_dir" && as_dir=.
  1957. $as_echo "PATH: $as_dir"
  1958. done
  1959. IFS=$as_save_IFS
  1960. } >&5
  1961. cat >&5 <<_ACEOF
  1962. ## ----------- ##
  1963. ## Core tests. ##
  1964. ## ----------- ##
  1965. _ACEOF
  1966. # Keep a trace of the command line.
  1967. # Strip out --no-create and --no-recursion so they do not pile up.
  1968. # Strip out --silent because we don't want to record it for future runs.
  1969. # Also quote any args containing shell meta-characters.
  1970. # Make two passes to allow for proper duplicate-argument suppression.
  1971. ac_configure_args=
  1972. ac_configure_args0=
  1973. ac_configure_args1=
  1974. ac_must_keep_next=false
  1975. for ac_pass in 1 2
  1976. do
  1977. for ac_arg
  1978. do
  1979. case $ac_arg in
  1980. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1981. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1982. | -silent | --silent | --silen | --sile | --sil)
  1983. continue ;;
  1984. *\'*)
  1985. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1986. esac
  1987. case $ac_pass in
  1988. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1989. 2)
  1990. as_fn_append ac_configure_args1 " '$ac_arg'"
  1991. if test $ac_must_keep_next = true; then
  1992. ac_must_keep_next=false # Got value, back to normal.
  1993. else
  1994. case $ac_arg in
  1995. *=* | --config-cache | -C | -disable-* | --disable-* \
  1996. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1997. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1998. | -with-* | --with-* | -without-* | --without-* | --x)
  1999. case "$ac_configure_args0 " in
  2000. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2001. esac
  2002. ;;
  2003. -* ) ac_must_keep_next=true ;;
  2004. esac
  2005. fi
  2006. as_fn_append ac_configure_args " '$ac_arg'"
  2007. ;;
  2008. esac
  2009. done
  2010. done
  2011. { ac_configure_args0=; unset ac_configure_args0;}
  2012. { ac_configure_args1=; unset ac_configure_args1;}
  2013. # When interrupted or exit'd, cleanup temporary files, and complete
  2014. # config.log. We remove comments because anyway the quotes in there
  2015. # would cause problems or look ugly.
  2016. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2017. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2018. trap 'exit_status=$?
  2019. # Save into config.log some information that might help in debugging.
  2020. {
  2021. echo
  2022. $as_echo "## ---------------- ##
  2023. ## Cache variables. ##
  2024. ## ---------------- ##"
  2025. echo
  2026. # The following way of writing the cache mishandles newlines in values,
  2027. (
  2028. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2029. eval ac_val=\$$ac_var
  2030. case $ac_val in #(
  2031. *${as_nl}*)
  2032. case $ac_var in #(
  2033. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2034. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2035. esac
  2036. case $ac_var in #(
  2037. _ | IFS | as_nl) ;; #(
  2038. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2039. *) { eval $ac_var=; unset $ac_var;} ;;
  2040. esac ;;
  2041. esac
  2042. done
  2043. (set) 2>&1 |
  2044. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2045. *${as_nl}ac_space=\ *)
  2046. sed -n \
  2047. "s/'\''/'\''\\\\'\'''\''/g;
  2048. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2049. ;; #(
  2050. *)
  2051. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2052. ;;
  2053. esac |
  2054. sort
  2055. )
  2056. echo
  2057. $as_echo "## ----------------- ##
  2058. ## Output variables. ##
  2059. ## ----------------- ##"
  2060. echo
  2061. for ac_var in $ac_subst_vars
  2062. do
  2063. eval ac_val=\$$ac_var
  2064. case $ac_val in
  2065. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2066. esac
  2067. $as_echo "$ac_var='\''$ac_val'\''"
  2068. done | sort
  2069. echo
  2070. if test -n "$ac_subst_files"; then
  2071. $as_echo "## ------------------- ##
  2072. ## File substitutions. ##
  2073. ## ------------------- ##"
  2074. echo
  2075. for ac_var in $ac_subst_files
  2076. do
  2077. eval ac_val=\$$ac_var
  2078. case $ac_val in
  2079. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2080. esac
  2081. $as_echo "$ac_var='\''$ac_val'\''"
  2082. done | sort
  2083. echo
  2084. fi
  2085. if test -s confdefs.h; then
  2086. $as_echo "## ----------- ##
  2087. ## confdefs.h. ##
  2088. ## ----------- ##"
  2089. echo
  2090. cat confdefs.h
  2091. echo
  2092. fi
  2093. test "$ac_signal" != 0 &&
  2094. $as_echo "$as_me: caught signal $ac_signal"
  2095. $as_echo "$as_me: exit $exit_status"
  2096. } >&5
  2097. rm -f core *.core core.conftest.* &&
  2098. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2099. exit $exit_status
  2100. ' 0
  2101. for ac_signal in 1 2 13 15; do
  2102. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2103. done
  2104. ac_signal=0
  2105. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2106. rm -f -r conftest* confdefs.h
  2107. $as_echo "/* confdefs.h */" > confdefs.h
  2108. # Predefined preprocessor variables.
  2109. cat >>confdefs.h <<_ACEOF
  2110. #define PACKAGE_NAME "$PACKAGE_NAME"
  2111. _ACEOF
  2112. cat >>confdefs.h <<_ACEOF
  2113. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2114. _ACEOF
  2115. cat >>confdefs.h <<_ACEOF
  2116. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2117. _ACEOF
  2118. cat >>confdefs.h <<_ACEOF
  2119. #define PACKAGE_STRING "$PACKAGE_STRING"
  2120. _ACEOF
  2121. cat >>confdefs.h <<_ACEOF
  2122. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2123. _ACEOF
  2124. cat >>confdefs.h <<_ACEOF
  2125. #define PACKAGE_URL "$PACKAGE_URL"
  2126. _ACEOF
  2127. # Let the site file select an alternate cache file if it wants to.
  2128. # Prefer an explicitly selected file to automatically selected ones.
  2129. ac_site_file1=NONE
  2130. ac_site_file2=NONE
  2131. if test -n "$CONFIG_SITE"; then
  2132. # We do not want a PATH search for config.site.
  2133. case $CONFIG_SITE in #((
  2134. -*) ac_site_file1=./$CONFIG_SITE;;
  2135. */*) ac_site_file1=$CONFIG_SITE;;
  2136. *) ac_site_file1=./$CONFIG_SITE;;
  2137. esac
  2138. elif test "x$prefix" != xNONE; then
  2139. ac_site_file1=$prefix/share/config.site
  2140. ac_site_file2=$prefix/etc/config.site
  2141. else
  2142. ac_site_file1=$ac_default_prefix/share/config.site
  2143. ac_site_file2=$ac_default_prefix/etc/config.site
  2144. fi
  2145. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2146. do
  2147. test "x$ac_site_file" = xNONE && continue
  2148. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2149. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2150. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2151. sed 's/^/| /' "$ac_site_file" >&5
  2152. . "$ac_site_file" \
  2153. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2154. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2155. as_fn_error $? "failed to load site script $ac_site_file
  2156. See \`config.log' for more details" "$LINENO" 5; }
  2157. fi
  2158. done
  2159. if test -r "$cache_file"; then
  2160. # Some versions of bash will fail to source /dev/null (special files
  2161. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2162. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2163. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2164. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2165. case $cache_file in
  2166. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2167. *) . "./$cache_file";;
  2168. esac
  2169. fi
  2170. else
  2171. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2172. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2173. >$cache_file
  2174. fi
  2175. # Check that the precious variables saved in the cache have kept the same
  2176. # value.
  2177. ac_cache_corrupted=false
  2178. for ac_var in $ac_precious_vars; do
  2179. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2180. eval ac_new_set=\$ac_env_${ac_var}_set
  2181. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2182. eval ac_new_val=\$ac_env_${ac_var}_value
  2183. case $ac_old_set,$ac_new_set in
  2184. set,)
  2185. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2186. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2187. ac_cache_corrupted=: ;;
  2188. ,set)
  2189. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2190. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2191. ac_cache_corrupted=: ;;
  2192. ,);;
  2193. *)
  2194. if test "x$ac_old_val" != "x$ac_new_val"; then
  2195. # differences in whitespace do not lead to failure.
  2196. ac_old_val_w=`echo x $ac_old_val`
  2197. ac_new_val_w=`echo x $ac_new_val`
  2198. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2199. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2200. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2201. ac_cache_corrupted=:
  2202. else
  2203. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2204. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2205. eval $ac_var=\$ac_old_val
  2206. fi
  2207. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2208. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2209. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2210. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2211. fi;;
  2212. esac
  2213. # Pass precious variables to config.status.
  2214. if test "$ac_new_set" = set; then
  2215. case $ac_new_val in
  2216. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2217. *) ac_arg=$ac_var=$ac_new_val ;;
  2218. esac
  2219. case " $ac_configure_args " in
  2220. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2221. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2222. esac
  2223. fi
  2224. done
  2225. if $ac_cache_corrupted; then
  2226. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2227. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2228. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2229. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2230. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2231. fi
  2232. ## -------------------- ##
  2233. ## Main body of script. ##
  2234. ## -------------------- ##
  2235. ac_ext=c
  2236. ac_cpp='$CPP $CPPFLAGS'
  2237. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2238. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2239. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2240. # Making releases:
  2241. # MICRO_VERSION += 1;
  2242. # INTERFACE_AGE += 1;
  2243. # BINARY_AGE += 1;
  2244. # if any functions have been added, set INTERFACE_AGE to 0.
  2245. # if backwards compatibility has been broken,
  2246. # set BINARY_AGE and INTERFACE_AGE to 0.
  2247. MAJOR_VERSION=2
  2248. MINOR_VERSION=0
  2249. MICRO_VERSION=0
  2250. INTERFACE_AGE=0
  2251. BINARY_AGE=0
  2252. VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION
  2253. # libtool versioning
  2254. case `pwd` in
  2255. *\ * | *\ *)
  2256. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2257. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2258. esac
  2259. macro_version='2.2.6'
  2260. macro_revision='1.3012'
  2261. ltmain="$ac_aux_dir/ltmain.sh"
  2262. ac_aux_dir=
  2263. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2264. if test -f "$ac_dir/install-sh"; then
  2265. ac_aux_dir=$ac_dir
  2266. ac_install_sh="$ac_aux_dir/install-sh -c"
  2267. break
  2268. elif test -f "$ac_dir/install.sh"; then
  2269. ac_aux_dir=$ac_dir
  2270. ac_install_sh="$ac_aux_dir/install.sh -c"
  2271. break
  2272. elif test -f "$ac_dir/shtool"; then
  2273. ac_aux_dir=$ac_dir
  2274. ac_install_sh="$ac_aux_dir/shtool install -c"
  2275. break
  2276. fi
  2277. done
  2278. if test -z "$ac_aux_dir"; then
  2279. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2280. fi
  2281. # These three variables are undocumented and unsupported,
  2282. # and are intended to be withdrawn in a future Autoconf release.
  2283. # They can cause serious problems if a builder's source tree is in a directory
  2284. # whose full name contains unusual characters.
  2285. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2286. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2287. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2288. # Make sure we can run config.sub.
  2289. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2290. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2292. $as_echo_n "checking build system type... " >&6; }
  2293. if ${ac_cv_build+:} false; then :
  2294. $as_echo_n "(cached) " >&6
  2295. else
  2296. ac_build_alias=$build_alias
  2297. test "x$ac_build_alias" = x &&
  2298. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2299. test "x$ac_build_alias" = x &&
  2300. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2301. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2302. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2303. fi
  2304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2305. $as_echo "$ac_cv_build" >&6; }
  2306. case $ac_cv_build in
  2307. *-*-*) ;;
  2308. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2309. esac
  2310. build=$ac_cv_build
  2311. ac_save_IFS=$IFS; IFS='-'
  2312. set x $ac_cv_build
  2313. shift
  2314. build_cpu=$1
  2315. build_vendor=$2
  2316. shift; shift
  2317. # Remember, the first character of IFS is used to create $*,
  2318. # except with old shells:
  2319. build_os=$*
  2320. IFS=$ac_save_IFS
  2321. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2323. $as_echo_n "checking host system type... " >&6; }
  2324. if ${ac_cv_host+:} false; then :
  2325. $as_echo_n "(cached) " >&6
  2326. else
  2327. if test "x$host_alias" = x; then
  2328. ac_cv_host=$ac_cv_build
  2329. else
  2330. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2331. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2332. fi
  2333. fi
  2334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2335. $as_echo "$ac_cv_host" >&6; }
  2336. case $ac_cv_host in
  2337. *-*-*) ;;
  2338. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2339. esac
  2340. host=$ac_cv_host
  2341. ac_save_IFS=$IFS; IFS='-'
  2342. set x $ac_cv_host
  2343. shift
  2344. host_cpu=$1
  2345. host_vendor=$2
  2346. shift; shift
  2347. # Remember, the first character of IFS is used to create $*,
  2348. # except with old shells:
  2349. host_os=$*
  2350. IFS=$ac_save_IFS
  2351. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2352. ac_ext=c
  2353. ac_cpp='$CPP $CPPFLAGS'
  2354. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2355. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2356. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2357. if test -n "$ac_tool_prefix"; then
  2358. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2359. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2361. $as_echo_n "checking for $ac_word... " >&6; }
  2362. if ${ac_cv_prog_CC+:} false; then :
  2363. $as_echo_n "(cached) " >&6
  2364. else
  2365. if test -n "$CC"; then
  2366. ac_cv_prog_CC="$CC" # Let the user override the test.
  2367. else
  2368. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2369. for as_dir in $PATH
  2370. do
  2371. IFS=$as_save_IFS
  2372. test -z "$as_dir" && as_dir=.
  2373. for ac_exec_ext in '' $ac_executable_extensions; do
  2374. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2375. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2376. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2377. break 2
  2378. fi
  2379. done
  2380. done
  2381. IFS=$as_save_IFS
  2382. fi
  2383. fi
  2384. CC=$ac_cv_prog_CC
  2385. if test -n "$CC"; then
  2386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2387. $as_echo "$CC" >&6; }
  2388. else
  2389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2390. $as_echo "no" >&6; }
  2391. fi
  2392. fi
  2393. if test -z "$ac_cv_prog_CC"; then
  2394. ac_ct_CC=$CC
  2395. # Extract the first word of "gcc", so it can be a program name with args.
  2396. set dummy gcc; 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_ac_ct_CC+:} false; then :
  2400. $as_echo_n "(cached) " >&6
  2401. else
  2402. if test -n "$ac_ct_CC"; then
  2403. ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="gcc"
  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. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2422. if test -n "$ac_ct_CC"; then
  2423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2424. $as_echo "$ac_ct_CC" >&6; }
  2425. else
  2426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2427. $as_echo "no" >&6; }
  2428. fi
  2429. if test "x$ac_ct_CC" = x; then
  2430. CC=""
  2431. else
  2432. case $cross_compiling:$ac_tool_warned in
  2433. yes:)
  2434. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2435. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2436. ac_tool_warned=yes ;;
  2437. esac
  2438. CC=$ac_ct_CC
  2439. fi
  2440. else
  2441. CC="$ac_cv_prog_CC"
  2442. fi
  2443. if test -z "$CC"; then
  2444. if test -n "$ac_tool_prefix"; then
  2445. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2446. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2448. $as_echo_n "checking for $ac_word... " >&6; }
  2449. if ${ac_cv_prog_CC+:} false; then :
  2450. $as_echo_n "(cached) " >&6
  2451. else
  2452. if test -n "$CC"; then
  2453. ac_cv_prog_CC="$CC" # Let the user override the test.
  2454. else
  2455. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2456. for as_dir in $PATH
  2457. do
  2458. IFS=$as_save_IFS
  2459. test -z "$as_dir" && as_dir=.
  2460. for ac_exec_ext in '' $ac_executable_extensions; do
  2461. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2462. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2463. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2464. break 2
  2465. fi
  2466. done
  2467. done
  2468. IFS=$as_save_IFS
  2469. fi
  2470. fi
  2471. CC=$ac_cv_prog_CC
  2472. if test -n "$CC"; then
  2473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2474. $as_echo "$CC" >&6; }
  2475. else
  2476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2477. $as_echo "no" >&6; }
  2478. fi
  2479. fi
  2480. fi
  2481. if test -z "$CC"; then
  2482. # Extract the first word of "cc", so it can be a program name with args.
  2483. set dummy cc; ac_word=$2
  2484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2485. $as_echo_n "checking for $ac_word... " >&6; }
  2486. if ${ac_cv_prog_CC+:} false; then :
  2487. $as_echo_n "(cached) " >&6
  2488. else
  2489. if test -n "$CC"; then
  2490. ac_cv_prog_CC="$CC" # Let the user override the test.
  2491. else
  2492. ac_prog_rejected=no
  2493. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2494. for as_dir in $PATH
  2495. do
  2496. IFS=$as_save_IFS
  2497. test -z "$as_dir" && as_dir=.
  2498. for ac_exec_ext in '' $ac_executable_extensions; do
  2499. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2500. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2501. ac_prog_rejected=yes
  2502. continue
  2503. fi
  2504. ac_cv_prog_CC="cc"
  2505. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2506. break 2
  2507. fi
  2508. done
  2509. done
  2510. IFS=$as_save_IFS
  2511. if test $ac_prog_rejected = yes; then
  2512. # We found a bogon in the path, so make sure we never use it.
  2513. set dummy $ac_cv_prog_CC
  2514. shift
  2515. if test $# != 0; then
  2516. # We chose a different compiler from the bogus one.
  2517. # However, it has the same basename, so the bogon will be chosen
  2518. # first if we set CC to just the basename; use the full file name.
  2519. shift
  2520. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2521. fi
  2522. fi
  2523. fi
  2524. fi
  2525. CC=$ac_cv_prog_CC
  2526. if test -n "$CC"; then
  2527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2528. $as_echo "$CC" >&6; }
  2529. else
  2530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2531. $as_echo "no" >&6; }
  2532. fi
  2533. fi
  2534. if test -z "$CC"; then
  2535. if test -n "$ac_tool_prefix"; then
  2536. for ac_prog in cl.exe
  2537. do
  2538. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2539. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2541. $as_echo_n "checking for $ac_word... " >&6; }
  2542. if ${ac_cv_prog_CC+:} false; then :
  2543. $as_echo_n "(cached) " >&6
  2544. else
  2545. if test -n "$CC"; then
  2546. ac_cv_prog_CC="$CC" # Let the user override the test.
  2547. else
  2548. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2549. for as_dir in $PATH
  2550. do
  2551. IFS=$as_save_IFS
  2552. test -z "$as_dir" && as_dir=.
  2553. for ac_exec_ext in '' $ac_executable_extensions; do
  2554. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2555. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2556. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2557. break 2
  2558. fi
  2559. done
  2560. done
  2561. IFS=$as_save_IFS
  2562. fi
  2563. fi
  2564. CC=$ac_cv_prog_CC
  2565. if test -n "$CC"; then
  2566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2567. $as_echo "$CC" >&6; }
  2568. else
  2569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2570. $as_echo "no" >&6; }
  2571. fi
  2572. test -n "$CC" && break
  2573. done
  2574. fi
  2575. if test -z "$CC"; then
  2576. ac_ct_CC=$CC
  2577. for ac_prog in cl.exe
  2578. do
  2579. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2580. set dummy $ac_prog; ac_word=$2
  2581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2582. $as_echo_n "checking for $ac_word... " >&6; }
  2583. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2584. $as_echo_n "(cached) " >&6
  2585. else
  2586. if test -n "$ac_ct_CC"; then
  2587. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2588. else
  2589. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2590. for as_dir in $PATH
  2591. do
  2592. IFS=$as_save_IFS
  2593. test -z "$as_dir" && as_dir=.
  2594. for ac_exec_ext in '' $ac_executable_extensions; do
  2595. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2596. ac_cv_prog_ac_ct_CC="$ac_prog"
  2597. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2598. break 2
  2599. fi
  2600. done
  2601. done
  2602. IFS=$as_save_IFS
  2603. fi
  2604. fi
  2605. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2606. if test -n "$ac_ct_CC"; then
  2607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2608. $as_echo "$ac_ct_CC" >&6; }
  2609. else
  2610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2611. $as_echo "no" >&6; }
  2612. fi
  2613. test -n "$ac_ct_CC" && break
  2614. done
  2615. if test "x$ac_ct_CC" = x; then
  2616. CC=""
  2617. else
  2618. case $cross_compiling:$ac_tool_warned in
  2619. yes:)
  2620. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2621. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2622. ac_tool_warned=yes ;;
  2623. esac
  2624. CC=$ac_ct_CC
  2625. fi
  2626. fi
  2627. fi
  2628. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2629. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2630. as_fn_error $? "no acceptable C compiler found in \$PATH
  2631. See \`config.log' for more details" "$LINENO" 5; }
  2632. # Provide some information about the compiler.
  2633. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2634. set X $ac_compile
  2635. ac_compiler=$2
  2636. for ac_option in --version -v -V -qversion; do
  2637. { { ac_try="$ac_compiler $ac_option >&5"
  2638. case "(($ac_try" in
  2639. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2640. *) ac_try_echo=$ac_try;;
  2641. esac
  2642. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2643. $as_echo "$ac_try_echo"; } >&5
  2644. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2645. ac_status=$?
  2646. if test -s conftest.err; then
  2647. sed '10a\
  2648. ... rest of stderr output deleted ...
  2649. 10q' conftest.err >conftest.er1
  2650. cat conftest.er1 >&5
  2651. fi
  2652. rm -f conftest.er1 conftest.err
  2653. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2654. test $ac_status = 0; }
  2655. done
  2656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2657. /* end confdefs.h. */
  2658. int
  2659. main ()
  2660. {
  2661. ;
  2662. return 0;
  2663. }
  2664. _ACEOF
  2665. ac_clean_files_save=$ac_clean_files
  2666. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2667. # Try to create an executable without -o first, disregard a.out.
  2668. # It will help us diagnose broken compilers, and finding out an intuition
  2669. # of exeext.
  2670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2671. $as_echo_n "checking whether the C compiler works... " >&6; }
  2672. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2673. # The possible output files:
  2674. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2675. ac_rmfiles=
  2676. for ac_file in $ac_files
  2677. do
  2678. case $ac_file in
  2679. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2680. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2681. esac
  2682. done
  2683. rm -f $ac_rmfiles
  2684. if { { ac_try="$ac_link_default"
  2685. case "(($ac_try" in
  2686. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2687. *) ac_try_echo=$ac_try;;
  2688. esac
  2689. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2690. $as_echo "$ac_try_echo"; } >&5
  2691. (eval "$ac_link_default") 2>&5
  2692. ac_status=$?
  2693. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2694. test $ac_status = 0; }; then :
  2695. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2696. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2697. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2698. # so that the user can short-circuit this test for compilers unknown to
  2699. # Autoconf.
  2700. for ac_file in $ac_files ''
  2701. do
  2702. test -f "$ac_file" || continue
  2703. case $ac_file in
  2704. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2705. ;;
  2706. [ab].out )
  2707. # We found the default executable, but exeext='' is most
  2708. # certainly right.
  2709. break;;
  2710. *.* )
  2711. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2712. then :; else
  2713. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2714. fi
  2715. # We set ac_cv_exeext here because the later test for it is not
  2716. # safe: cross compilers may not add the suffix if given an `-o'
  2717. # argument, so we may need to know it at that point already.
  2718. # Even if this section looks crufty: it has the advantage of
  2719. # actually working.
  2720. break;;
  2721. * )
  2722. break;;
  2723. esac
  2724. done
  2725. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2726. else
  2727. ac_file=''
  2728. fi
  2729. if test -z "$ac_file"; then :
  2730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2731. $as_echo "no" >&6; }
  2732. $as_echo "$as_me: failed program was:" >&5
  2733. sed 's/^/| /' conftest.$ac_ext >&5
  2734. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2735. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2736. as_fn_error 77 "C compiler cannot create executables
  2737. See \`config.log' for more details" "$LINENO" 5; }
  2738. else
  2739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2740. $as_echo "yes" >&6; }
  2741. fi
  2742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2743. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2745. $as_echo "$ac_file" >&6; }
  2746. ac_exeext=$ac_cv_exeext
  2747. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2748. ac_clean_files=$ac_clean_files_save
  2749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2750. $as_echo_n "checking for suffix of executables... " >&6; }
  2751. if { { ac_try="$ac_link"
  2752. case "(($ac_try" in
  2753. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2754. *) ac_try_echo=$ac_try;;
  2755. esac
  2756. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2757. $as_echo "$ac_try_echo"; } >&5
  2758. (eval "$ac_link") 2>&5
  2759. ac_status=$?
  2760. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2761. test $ac_status = 0; }; then :
  2762. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2763. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2764. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2765. # `rm'.
  2766. for ac_file in conftest.exe conftest conftest.*; do
  2767. test -f "$ac_file" || continue
  2768. case $ac_file in
  2769. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2770. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2771. break;;
  2772. * ) break;;
  2773. esac
  2774. done
  2775. else
  2776. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2777. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2778. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2779. See \`config.log' for more details" "$LINENO" 5; }
  2780. fi
  2781. rm -f conftest conftest$ac_cv_exeext
  2782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2783. $as_echo "$ac_cv_exeext" >&6; }
  2784. rm -f conftest.$ac_ext
  2785. EXEEXT=$ac_cv_exeext
  2786. ac_exeext=$EXEEXT
  2787. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2788. /* end confdefs.h. */
  2789. #include <stdio.h>
  2790. int
  2791. main ()
  2792. {
  2793. FILE *f = fopen ("conftest.out", "w");
  2794. return ferror (f) || fclose (f) != 0;
  2795. ;
  2796. return 0;
  2797. }
  2798. _ACEOF
  2799. ac_clean_files="$ac_clean_files conftest.out"
  2800. # Check that the compiler produces executables we can run. If not, either
  2801. # the compiler is broken, or we cross compile.
  2802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2803. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2804. if test "$cross_compiling" != yes; then
  2805. { { ac_try="$ac_link"
  2806. case "(($ac_try" in
  2807. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2808. *) ac_try_echo=$ac_try;;
  2809. esac
  2810. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2811. $as_echo "$ac_try_echo"; } >&5
  2812. (eval "$ac_link") 2>&5
  2813. ac_status=$?
  2814. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2815. test $ac_status = 0; }
  2816. if { ac_try='./conftest$ac_cv_exeext'
  2817. { { case "(($ac_try" in
  2818. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2819. *) ac_try_echo=$ac_try;;
  2820. esac
  2821. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2822. $as_echo "$ac_try_echo"; } >&5
  2823. (eval "$ac_try") 2>&5
  2824. ac_status=$?
  2825. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2826. test $ac_status = 0; }; }; then
  2827. cross_compiling=no
  2828. else
  2829. if test "$cross_compiling" = maybe; then
  2830. cross_compiling=yes
  2831. else
  2832. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2833. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2834. as_fn_error $? "cannot run C compiled programs.
  2835. If you meant to cross compile, use \`--host'.
  2836. See \`config.log' for more details" "$LINENO" 5; }
  2837. fi
  2838. fi
  2839. fi
  2840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2841. $as_echo "$cross_compiling" >&6; }
  2842. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2843. ac_clean_files=$ac_clean_files_save
  2844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2845. $as_echo_n "checking for suffix of object files... " >&6; }
  2846. if ${ac_cv_objext+:} false; then :
  2847. $as_echo_n "(cached) " >&6
  2848. else
  2849. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2850. /* end confdefs.h. */
  2851. int
  2852. main ()
  2853. {
  2854. ;
  2855. return 0;
  2856. }
  2857. _ACEOF
  2858. rm -f conftest.o conftest.obj
  2859. if { { ac_try="$ac_compile"
  2860. case "(($ac_try" in
  2861. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2862. *) ac_try_echo=$ac_try;;
  2863. esac
  2864. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2865. $as_echo "$ac_try_echo"; } >&5
  2866. (eval "$ac_compile") 2>&5
  2867. ac_status=$?
  2868. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2869. test $ac_status = 0; }; then :
  2870. for ac_file in conftest.o conftest.obj conftest.*; do
  2871. test -f "$ac_file" || continue;
  2872. case $ac_file in
  2873. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2874. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2875. break;;
  2876. esac
  2877. done
  2878. else
  2879. $as_echo "$as_me: failed program was:" >&5
  2880. sed 's/^/| /' conftest.$ac_ext >&5
  2881. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2882. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2883. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2884. See \`config.log' for more details" "$LINENO" 5; }
  2885. fi
  2886. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2887. fi
  2888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2889. $as_echo "$ac_cv_objext" >&6; }
  2890. OBJEXT=$ac_cv_objext
  2891. ac_objext=$OBJEXT
  2892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2893. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2894. if ${ac_cv_c_compiler_gnu+:} false; then :
  2895. $as_echo_n "(cached) " >&6
  2896. else
  2897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2898. /* end confdefs.h. */
  2899. int
  2900. main ()
  2901. {
  2902. #ifndef __GNUC__
  2903. choke me
  2904. #endif
  2905. ;
  2906. return 0;
  2907. }
  2908. _ACEOF
  2909. if ac_fn_c_try_compile "$LINENO"; then :
  2910. ac_compiler_gnu=yes
  2911. else
  2912. ac_compiler_gnu=no
  2913. fi
  2914. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2915. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2916. fi
  2917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2918. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2919. if test $ac_compiler_gnu = yes; then
  2920. GCC=yes
  2921. else
  2922. GCC=
  2923. fi
  2924. ac_test_CFLAGS=${CFLAGS+set}
  2925. ac_save_CFLAGS=$CFLAGS
  2926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2927. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2928. if ${ac_cv_prog_cc_g+:} false; then :
  2929. $as_echo_n "(cached) " >&6
  2930. else
  2931. ac_save_c_werror_flag=$ac_c_werror_flag
  2932. ac_c_werror_flag=yes
  2933. ac_cv_prog_cc_g=no
  2934. CFLAGS="-g"
  2935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2936. /* end confdefs.h. */
  2937. int
  2938. main ()
  2939. {
  2940. ;
  2941. return 0;
  2942. }
  2943. _ACEOF
  2944. if ac_fn_c_try_compile "$LINENO"; then :
  2945. ac_cv_prog_cc_g=yes
  2946. else
  2947. CFLAGS=""
  2948. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2949. /* end confdefs.h. */
  2950. int
  2951. main ()
  2952. {
  2953. ;
  2954. return 0;
  2955. }
  2956. _ACEOF
  2957. if ac_fn_c_try_compile "$LINENO"; then :
  2958. else
  2959. ac_c_werror_flag=$ac_save_c_werror_flag
  2960. CFLAGS="-g"
  2961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2962. /* end confdefs.h. */
  2963. int
  2964. main ()
  2965. {
  2966. ;
  2967. return 0;
  2968. }
  2969. _ACEOF
  2970. if ac_fn_c_try_compile "$LINENO"; then :
  2971. ac_cv_prog_cc_g=yes
  2972. fi
  2973. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2974. fi
  2975. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2976. fi
  2977. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2978. ac_c_werror_flag=$ac_save_c_werror_flag
  2979. fi
  2980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2981. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2982. if test "$ac_test_CFLAGS" = set; then
  2983. CFLAGS=$ac_save_CFLAGS
  2984. elif test $ac_cv_prog_cc_g = yes; then
  2985. if test "$GCC" = yes; then
  2986. CFLAGS="-g -O2"
  2987. else
  2988. CFLAGS="-g"
  2989. fi
  2990. else
  2991. if test "$GCC" = yes; then
  2992. CFLAGS="-O2"
  2993. else
  2994. CFLAGS=
  2995. fi
  2996. fi
  2997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2998. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2999. if ${ac_cv_prog_cc_c89+:} false; then :
  3000. $as_echo_n "(cached) " >&6
  3001. else
  3002. ac_cv_prog_cc_c89=no
  3003. ac_save_CC=$CC
  3004. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3005. /* end confdefs.h. */
  3006. #include <stdarg.h>
  3007. #include <stdio.h>
  3008. struct stat;
  3009. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3010. struct buf { int x; };
  3011. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3012. static char *e (p, i)
  3013. char **p;
  3014. int i;
  3015. {
  3016. return p[i];
  3017. }
  3018. static char *f (char * (*g) (char **, int), char **p, ...)
  3019. {
  3020. char *s;
  3021. va_list v;
  3022. va_start (v,p);
  3023. s = g (p, va_arg (v,int));
  3024. va_end (v);
  3025. return s;
  3026. }
  3027. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3028. function prototypes and stuff, but not '\xHH' hex character constants.
  3029. These don't provoke an error unfortunately, instead are silently treated
  3030. as 'x'. The following induces an error, until -std is added to get
  3031. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3032. array size at least. It's necessary to write '\x00'==0 to get something
  3033. that's true only with -std. */
  3034. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3035. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3036. inside strings and character constants. */
  3037. #define FOO(x) 'x'
  3038. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3039. int test (int i, double x);
  3040. struct s1 {int (*f) (int a);};
  3041. struct s2 {int (*f) (double a);};
  3042. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3043. int argc;
  3044. char **argv;
  3045. int
  3046. main ()
  3047. {
  3048. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3049. ;
  3050. return 0;
  3051. }
  3052. _ACEOF
  3053. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3054. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3055. do
  3056. CC="$ac_save_CC $ac_arg"
  3057. if ac_fn_c_try_compile "$LINENO"; then :
  3058. ac_cv_prog_cc_c89=$ac_arg
  3059. fi
  3060. rm -f core conftest.err conftest.$ac_objext
  3061. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3062. done
  3063. rm -f conftest.$ac_ext
  3064. CC=$ac_save_CC
  3065. fi
  3066. # AC_CACHE_VAL
  3067. case "x$ac_cv_prog_cc_c89" in
  3068. x)
  3069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3070. $as_echo "none needed" >&6; } ;;
  3071. xno)
  3072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3073. $as_echo "unsupported" >&6; } ;;
  3074. *)
  3075. CC="$CC $ac_cv_prog_cc_c89"
  3076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3077. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3078. esac
  3079. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3080. fi
  3081. ac_ext=c
  3082. ac_cpp='$CPP $CPPFLAGS'
  3083. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3084. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3085. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3087. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3088. if ${ac_cv_path_SED+:} false; then :
  3089. $as_echo_n "(cached) " >&6
  3090. else
  3091. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3092. for ac_i in 1 2 3 4 5 6 7; do
  3093. ac_script="$ac_script$as_nl$ac_script"
  3094. done
  3095. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3096. { ac_script=; unset ac_script;}
  3097. if test -z "$SED"; then
  3098. ac_path_SED_found=false
  3099. # Loop through the user's path and test for each of PROGNAME-LIST
  3100. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3101. for as_dir in $PATH
  3102. do
  3103. IFS=$as_save_IFS
  3104. test -z "$as_dir" && as_dir=.
  3105. for ac_prog in sed gsed; do
  3106. for ac_exec_ext in '' $ac_executable_extensions; do
  3107. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3108. as_fn_executable_p "$ac_path_SED" || continue
  3109. # Check for GNU ac_path_SED and select it if it is found.
  3110. # Check for GNU $ac_path_SED
  3111. case `"$ac_path_SED" --version 2>&1` in
  3112. *GNU*)
  3113. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3114. *)
  3115. ac_count=0
  3116. $as_echo_n 0123456789 >"conftest.in"
  3117. while :
  3118. do
  3119. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3120. mv "conftest.tmp" "conftest.in"
  3121. cp "conftest.in" "conftest.nl"
  3122. $as_echo '' >> "conftest.nl"
  3123. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3124. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3125. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3126. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3127. # Best one so far, save it but keep looking for a better one
  3128. ac_cv_path_SED="$ac_path_SED"
  3129. ac_path_SED_max=$ac_count
  3130. fi
  3131. # 10*(2^10) chars as input seems more than enough
  3132. test $ac_count -gt 10 && break
  3133. done
  3134. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3135. esac
  3136. $ac_path_SED_found && break 3
  3137. done
  3138. done
  3139. done
  3140. IFS=$as_save_IFS
  3141. if test -z "$ac_cv_path_SED"; then
  3142. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3143. fi
  3144. else
  3145. ac_cv_path_SED=$SED
  3146. fi
  3147. fi
  3148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3149. $as_echo "$ac_cv_path_SED" >&6; }
  3150. SED="$ac_cv_path_SED"
  3151. rm -f conftest.sed
  3152. test -z "$SED" && SED=sed
  3153. Xsed="$SED -e 1s/^X//"
  3154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3155. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3156. if ${ac_cv_path_GREP+:} false; then :
  3157. $as_echo_n "(cached) " >&6
  3158. else
  3159. if test -z "$GREP"; then
  3160. ac_path_GREP_found=false
  3161. # Loop through the user's path and test for each of PROGNAME-LIST
  3162. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3163. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3164. do
  3165. IFS=$as_save_IFS
  3166. test -z "$as_dir" && as_dir=.
  3167. for ac_prog in grep ggrep; do
  3168. for ac_exec_ext in '' $ac_executable_extensions; do
  3169. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3170. as_fn_executable_p "$ac_path_GREP" || continue
  3171. # Check for GNU ac_path_GREP and select it if it is found.
  3172. # Check for GNU $ac_path_GREP
  3173. case `"$ac_path_GREP" --version 2>&1` in
  3174. *GNU*)
  3175. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3176. *)
  3177. ac_count=0
  3178. $as_echo_n 0123456789 >"conftest.in"
  3179. while :
  3180. do
  3181. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3182. mv "conftest.tmp" "conftest.in"
  3183. cp "conftest.in" "conftest.nl"
  3184. $as_echo 'GREP' >> "conftest.nl"
  3185. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3186. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3187. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3188. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3189. # Best one so far, save it but keep looking for a better one
  3190. ac_cv_path_GREP="$ac_path_GREP"
  3191. ac_path_GREP_max=$ac_count
  3192. fi
  3193. # 10*(2^10) chars as input seems more than enough
  3194. test $ac_count -gt 10 && break
  3195. done
  3196. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3197. esac
  3198. $ac_path_GREP_found && break 3
  3199. done
  3200. done
  3201. done
  3202. IFS=$as_save_IFS
  3203. if test -z "$ac_cv_path_GREP"; then
  3204. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3205. fi
  3206. else
  3207. ac_cv_path_GREP=$GREP
  3208. fi
  3209. fi
  3210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3211. $as_echo "$ac_cv_path_GREP" >&6; }
  3212. GREP="$ac_cv_path_GREP"
  3213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3214. $as_echo_n "checking for egrep... " >&6; }
  3215. if ${ac_cv_path_EGREP+:} false; then :
  3216. $as_echo_n "(cached) " >&6
  3217. else
  3218. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3219. then ac_cv_path_EGREP="$GREP -E"
  3220. else
  3221. if test -z "$EGREP"; then
  3222. ac_path_EGREP_found=false
  3223. # Loop through the user's path and test for each of PROGNAME-LIST
  3224. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3225. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3226. do
  3227. IFS=$as_save_IFS
  3228. test -z "$as_dir" && as_dir=.
  3229. for ac_prog in egrep; do
  3230. for ac_exec_ext in '' $ac_executable_extensions; do
  3231. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3232. as_fn_executable_p "$ac_path_EGREP" || continue
  3233. # Check for GNU ac_path_EGREP and select it if it is found.
  3234. # Check for GNU $ac_path_EGREP
  3235. case `"$ac_path_EGREP" --version 2>&1` in
  3236. *GNU*)
  3237. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3238. *)
  3239. ac_count=0
  3240. $as_echo_n 0123456789 >"conftest.in"
  3241. while :
  3242. do
  3243. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3244. mv "conftest.tmp" "conftest.in"
  3245. cp "conftest.in" "conftest.nl"
  3246. $as_echo 'EGREP' >> "conftest.nl"
  3247. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3248. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3249. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3250. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3251. # Best one so far, save it but keep looking for a better one
  3252. ac_cv_path_EGREP="$ac_path_EGREP"
  3253. ac_path_EGREP_max=$ac_count
  3254. fi
  3255. # 10*(2^10) chars as input seems more than enough
  3256. test $ac_count -gt 10 && break
  3257. done
  3258. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3259. esac
  3260. $ac_path_EGREP_found && break 3
  3261. done
  3262. done
  3263. done
  3264. IFS=$as_save_IFS
  3265. if test -z "$ac_cv_path_EGREP"; then
  3266. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3267. fi
  3268. else
  3269. ac_cv_path_EGREP=$EGREP
  3270. fi
  3271. fi
  3272. fi
  3273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3274. $as_echo "$ac_cv_path_EGREP" >&6; }
  3275. EGREP="$ac_cv_path_EGREP"
  3276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3277. $as_echo_n "checking for fgrep... " >&6; }
  3278. if ${ac_cv_path_FGREP+:} false; then :
  3279. $as_echo_n "(cached) " >&6
  3280. else
  3281. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3282. then ac_cv_path_FGREP="$GREP -F"
  3283. else
  3284. if test -z "$FGREP"; then
  3285. ac_path_FGREP_found=false
  3286. # Loop through the user's path and test for each of PROGNAME-LIST
  3287. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3288. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3289. do
  3290. IFS=$as_save_IFS
  3291. test -z "$as_dir" && as_dir=.
  3292. for ac_prog in fgrep; do
  3293. for ac_exec_ext in '' $ac_executable_extensions; do
  3294. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3295. as_fn_executable_p "$ac_path_FGREP" || continue
  3296. # Check for GNU ac_path_FGREP and select it if it is found.
  3297. # Check for GNU $ac_path_FGREP
  3298. case `"$ac_path_FGREP" --version 2>&1` in
  3299. *GNU*)
  3300. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3301. *)
  3302. ac_count=0
  3303. $as_echo_n 0123456789 >"conftest.in"
  3304. while :
  3305. do
  3306. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3307. mv "conftest.tmp" "conftest.in"
  3308. cp "conftest.in" "conftest.nl"
  3309. $as_echo 'FGREP' >> "conftest.nl"
  3310. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3311. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3312. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3313. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3314. # Best one so far, save it but keep looking for a better one
  3315. ac_cv_path_FGREP="$ac_path_FGREP"
  3316. ac_path_FGREP_max=$ac_count
  3317. fi
  3318. # 10*(2^10) chars as input seems more than enough
  3319. test $ac_count -gt 10 && break
  3320. done
  3321. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3322. esac
  3323. $ac_path_FGREP_found && break 3
  3324. done
  3325. done
  3326. done
  3327. IFS=$as_save_IFS
  3328. if test -z "$ac_cv_path_FGREP"; then
  3329. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3330. fi
  3331. else
  3332. ac_cv_path_FGREP=$FGREP
  3333. fi
  3334. fi
  3335. fi
  3336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3337. $as_echo "$ac_cv_path_FGREP" >&6; }
  3338. FGREP="$ac_cv_path_FGREP"
  3339. test -z "$GREP" && GREP=grep
  3340. # Check whether --with-gnu-ld was given.
  3341. if test "${with_gnu_ld+set}" = set; then :
  3342. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3343. else
  3344. with_gnu_ld=no
  3345. fi
  3346. ac_prog=ld
  3347. if test "$GCC" = yes; then
  3348. # Check if gcc -print-prog-name=ld gives a path.
  3349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3350. $as_echo_n "checking for ld used by $CC... " >&6; }
  3351. case $host in
  3352. *-*-mingw*)
  3353. # gcc leaves a trailing carriage return which upsets mingw
  3354. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3355. *)
  3356. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3357. esac
  3358. case $ac_prog in
  3359. # Accept absolute paths.
  3360. [\\/]* | ?:[\\/]*)
  3361. re_direlt='/[^/][^/]*/\.\./'
  3362. # Canonicalize the pathname of ld
  3363. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3364. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3365. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3366. done
  3367. test -z "$LD" && LD="$ac_prog"
  3368. ;;
  3369. "")
  3370. # If it fails, then pretend we aren't using GCC.
  3371. ac_prog=ld
  3372. ;;
  3373. *)
  3374. # If it is relative, then search for the first ld in PATH.
  3375. with_gnu_ld=unknown
  3376. ;;
  3377. esac
  3378. elif test "$with_gnu_ld" = yes; then
  3379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3380. $as_echo_n "checking for GNU ld... " >&6; }
  3381. else
  3382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3383. $as_echo_n "checking for non-GNU ld... " >&6; }
  3384. fi
  3385. if ${lt_cv_path_LD+:} false; then :
  3386. $as_echo_n "(cached) " >&6
  3387. else
  3388. if test -z "$LD"; then
  3389. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3390. for ac_dir in $PATH; do
  3391. IFS="$lt_save_ifs"
  3392. test -z "$ac_dir" && ac_dir=.
  3393. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3394. lt_cv_path_LD="$ac_dir/$ac_prog"
  3395. # Check to see if the program is GNU ld. I'd rather use --version,
  3396. # but apparently some variants of GNU ld only accept -v.
  3397. # Break only if it was the GNU/non-GNU ld that we prefer.
  3398. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3399. *GNU* | *'with BFD'*)
  3400. test "$with_gnu_ld" != no && break
  3401. ;;
  3402. *)
  3403. test "$with_gnu_ld" != yes && break
  3404. ;;
  3405. esac
  3406. fi
  3407. done
  3408. IFS="$lt_save_ifs"
  3409. else
  3410. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3411. fi
  3412. fi
  3413. LD="$lt_cv_path_LD"
  3414. if test -n "$LD"; then
  3415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3416. $as_echo "$LD" >&6; }
  3417. else
  3418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3419. $as_echo "no" >&6; }
  3420. fi
  3421. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3423. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3424. if ${lt_cv_prog_gnu_ld+:} false; then :
  3425. $as_echo_n "(cached) " >&6
  3426. else
  3427. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3428. case `$LD -v 2>&1 </dev/null` in
  3429. *GNU* | *'with BFD'*)
  3430. lt_cv_prog_gnu_ld=yes
  3431. ;;
  3432. *)
  3433. lt_cv_prog_gnu_ld=no
  3434. ;;
  3435. esac
  3436. fi
  3437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3438. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3439. with_gnu_ld=$lt_cv_prog_gnu_ld
  3440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3441. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3442. if ${lt_cv_path_NM+:} false; then :
  3443. $as_echo_n "(cached) " >&6
  3444. else
  3445. if test -n "$NM"; then
  3446. # Let the user override the test.
  3447. lt_cv_path_NM="$NM"
  3448. else
  3449. lt_nm_to_check="${ac_tool_prefix}nm"
  3450. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3451. lt_nm_to_check="$lt_nm_to_check nm"
  3452. fi
  3453. for lt_tmp_nm in $lt_nm_to_check; do
  3454. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3455. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3456. IFS="$lt_save_ifs"
  3457. test -z "$ac_dir" && ac_dir=.
  3458. tmp_nm="$ac_dir/$lt_tmp_nm"
  3459. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3460. # Check to see if the nm accepts a BSD-compat flag.
  3461. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3462. # nm: unknown option "B" ignored
  3463. # Tru64's nm complains that /dev/null is an invalid object file
  3464. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3465. */dev/null* | *'Invalid file or object type'*)
  3466. lt_cv_path_NM="$tmp_nm -B"
  3467. break
  3468. ;;
  3469. *)
  3470. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3471. */dev/null*)
  3472. lt_cv_path_NM="$tmp_nm -p"
  3473. break
  3474. ;;
  3475. *)
  3476. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3477. continue # so that we can try to find one that supports BSD flags
  3478. ;;
  3479. esac
  3480. ;;
  3481. esac
  3482. fi
  3483. done
  3484. IFS="$lt_save_ifs"
  3485. done
  3486. : ${lt_cv_path_NM=no}
  3487. fi
  3488. fi
  3489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3490. $as_echo "$lt_cv_path_NM" >&6; }
  3491. if test "$lt_cv_path_NM" != "no"; then
  3492. NM="$lt_cv_path_NM"
  3493. else
  3494. # Didn't find any BSD compatible name lister, look for dumpbin.
  3495. if test -n "$ac_tool_prefix"; then
  3496. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  3497. do
  3498. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3499. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3501. $as_echo_n "checking for $ac_word... " >&6; }
  3502. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3503. $as_echo_n "(cached) " >&6
  3504. else
  3505. if test -n "$DUMPBIN"; then
  3506. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3507. else
  3508. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3509. for as_dir in $PATH
  3510. do
  3511. IFS=$as_save_IFS
  3512. test -z "$as_dir" && as_dir=.
  3513. for ac_exec_ext in '' $ac_executable_extensions; do
  3514. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3515. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3516. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3517. break 2
  3518. fi
  3519. done
  3520. done
  3521. IFS=$as_save_IFS
  3522. fi
  3523. fi
  3524. DUMPBIN=$ac_cv_prog_DUMPBIN
  3525. if test -n "$DUMPBIN"; then
  3526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3527. $as_echo "$DUMPBIN" >&6; }
  3528. else
  3529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3530. $as_echo "no" >&6; }
  3531. fi
  3532. test -n "$DUMPBIN" && break
  3533. done
  3534. fi
  3535. if test -z "$DUMPBIN"; then
  3536. ac_ct_DUMPBIN=$DUMPBIN
  3537. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  3538. do
  3539. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3540. set dummy $ac_prog; ac_word=$2
  3541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3542. $as_echo_n "checking for $ac_word... " >&6; }
  3543. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3544. $as_echo_n "(cached) " >&6
  3545. else
  3546. if test -n "$ac_ct_DUMPBIN"; then
  3547. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3548. else
  3549. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3550. for as_dir in $PATH
  3551. do
  3552. IFS=$as_save_IFS
  3553. test -z "$as_dir" && as_dir=.
  3554. for ac_exec_ext in '' $ac_executable_extensions; do
  3555. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3556. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3557. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3558. break 2
  3559. fi
  3560. done
  3561. done
  3562. IFS=$as_save_IFS
  3563. fi
  3564. fi
  3565. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3566. if test -n "$ac_ct_DUMPBIN"; then
  3567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3568. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3569. else
  3570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3571. $as_echo "no" >&6; }
  3572. fi
  3573. test -n "$ac_ct_DUMPBIN" && break
  3574. done
  3575. if test "x$ac_ct_DUMPBIN" = x; then
  3576. DUMPBIN=":"
  3577. else
  3578. case $cross_compiling:$ac_tool_warned in
  3579. yes:)
  3580. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3581. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3582. ac_tool_warned=yes ;;
  3583. esac
  3584. DUMPBIN=$ac_ct_DUMPBIN
  3585. fi
  3586. fi
  3587. if test "$DUMPBIN" != ":"; then
  3588. NM="$DUMPBIN"
  3589. fi
  3590. fi
  3591. test -z "$NM" && NM=nm
  3592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3593. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3594. if ${lt_cv_nm_interface+:} false; then :
  3595. $as_echo_n "(cached) " >&6
  3596. else
  3597. lt_cv_nm_interface="BSD nm"
  3598. echo "int some_variable = 0;" > conftest.$ac_ext
  3599. (eval echo "\"\$as_me:3987: $ac_compile\"" >&5)
  3600. (eval "$ac_compile" 2>conftest.err)
  3601. cat conftest.err >&5
  3602. (eval echo "\"\$as_me:3990: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3603. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3604. cat conftest.err >&5
  3605. (eval echo "\"\$as_me:3993: output\"" >&5)
  3606. cat conftest.out >&5
  3607. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3608. lt_cv_nm_interface="MS dumpbin"
  3609. fi
  3610. rm -f conftest*
  3611. fi
  3612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  3613. $as_echo "$lt_cv_nm_interface" >&6; }
  3614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  3615. $as_echo_n "checking whether ln -s works... " >&6; }
  3616. LN_S=$as_ln_s
  3617. if test "$LN_S" = "ln -s"; then
  3618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3619. $as_echo "yes" >&6; }
  3620. else
  3621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  3622. $as_echo "no, using $LN_S" >&6; }
  3623. fi
  3624. # find the maximum length of command line arguments
  3625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  3626. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  3627. if ${lt_cv_sys_max_cmd_len+:} false; then :
  3628. $as_echo_n "(cached) " >&6
  3629. else
  3630. i=0
  3631. teststring="ABCD"
  3632. case $build_os in
  3633. msdosdjgpp*)
  3634. # On DJGPP, this test can blow up pretty badly due to problems in libc
  3635. # (any single argument exceeding 2000 bytes causes a buffer overrun
  3636. # during glob expansion). Even if it were fixed, the result of this
  3637. # check would be larger than it should be.
  3638. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  3639. ;;
  3640. gnu*)
  3641. # Under GNU Hurd, this test is not required because there is
  3642. # no limit to the length of command line arguments.
  3643. # Libtool will interpret -1 as no limit whatsoever
  3644. lt_cv_sys_max_cmd_len=-1;
  3645. ;;
  3646. cygwin* | mingw* | cegcc*)
  3647. # On Win9x/ME, this test blows up -- it succeeds, but takes
  3648. # about 5 minutes as the teststring grows exponentially.
  3649. # Worse, since 9x/ME are not pre-emptively multitasking,
  3650. # you end up with a "frozen" computer, even though with patience
  3651. # the test eventually succeeds (with a max line length of 256k).
  3652. # Instead, let's just punt: use the minimum linelength reported by
  3653. # all of the supported platforms: 8192 (on NT/2K/XP).
  3654. lt_cv_sys_max_cmd_len=8192;
  3655. ;;
  3656. beos*)
  3657. # On BeOS, this test takes a really really long time.
  3658. # So we just punt and use a minimum line length of 8192.
  3659. lt_cv_sys_max_cmd_len=8192;
  3660. ;;
  3661. amigaos*)
  3662. # On AmigaOS with pdksh, this test takes hours, literally.
  3663. # So we just punt and use a minimum line length of 8192.
  3664. lt_cv_sys_max_cmd_len=8192;
  3665. ;;
  3666. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  3667. # This has been around since 386BSD, at least. Likely further.
  3668. if test -x /sbin/sysctl; then
  3669. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  3670. elif test -x /usr/sbin/sysctl; then
  3671. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  3672. else
  3673. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  3674. fi
  3675. # And add a safety zone
  3676. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3677. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3678. ;;
  3679. interix*)
  3680. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  3681. lt_cv_sys_max_cmd_len=196608
  3682. ;;
  3683. osf*)
  3684. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  3685. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  3686. # nice to cause kernel panics so lets avoid the loop below.
  3687. # First set a reasonable default.
  3688. lt_cv_sys_max_cmd_len=16384
  3689. #
  3690. if test -x /sbin/sysconfig; then
  3691. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  3692. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  3693. esac
  3694. fi
  3695. ;;
  3696. sco3.2v5*)
  3697. lt_cv_sys_max_cmd_len=102400
  3698. ;;
  3699. sysv5* | sco5v6* | sysv4.2uw2*)
  3700. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  3701. if test -n "$kargmax"; then
  3702. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  3703. else
  3704. lt_cv_sys_max_cmd_len=32768
  3705. fi
  3706. ;;
  3707. *)
  3708. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  3709. if test -n "$lt_cv_sys_max_cmd_len"; then
  3710. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3711. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3712. else
  3713. # Make teststring a little bigger before we do anything with it.
  3714. # a 1K string should be a reasonable start.
  3715. for i in 1 2 3 4 5 6 7 8 ; do
  3716. teststring=$teststring$teststring
  3717. done
  3718. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  3719. # If test is not a shell built-in, we'll probably end up computing a
  3720. # maximum length that is only half of the actual maximum length, but
  3721. # we can't tell.
  3722. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  3723. = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  3724. test $i != 17 # 1/2 MB should be enough
  3725. do
  3726. i=`expr $i + 1`
  3727. teststring=$teststring$teststring
  3728. done
  3729. # Only check the string length outside the loop.
  3730. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  3731. teststring=
  3732. # Add a significant safety factor because C++ compilers can tack on
  3733. # massive amounts of additional arguments before passing them to the
  3734. # linker. It appears as though 1/2 is a usable value.
  3735. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  3736. fi
  3737. ;;
  3738. esac
  3739. fi
  3740. if test -n $lt_cv_sys_max_cmd_len ; then
  3741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  3742. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  3743. else
  3744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  3745. $as_echo "none" >&6; }
  3746. fi
  3747. max_cmd_len=$lt_cv_sys_max_cmd_len
  3748. : ${CP="cp -f"}
  3749. : ${MV="mv -f"}
  3750. : ${RM="rm -f"}
  3751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  3752. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  3753. # Try some XSI features
  3754. xsi_shell=no
  3755. ( _lt_dummy="a/b/c"
  3756. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  3757. = c,a/b,, \
  3758. && eval 'test $(( 1 + 1 )) -eq 2 \
  3759. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  3760. && xsi_shell=yes
  3761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  3762. $as_echo "$xsi_shell" >&6; }
  3763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  3764. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  3765. lt_shell_append=no
  3766. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  3767. >/dev/null 2>&1 \
  3768. && lt_shell_append=yes
  3769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  3770. $as_echo "$lt_shell_append" >&6; }
  3771. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  3772. lt_unset=unset
  3773. else
  3774. lt_unset=false
  3775. fi
  3776. # test EBCDIC or ASCII
  3777. case `echo X|tr X '\101'` in
  3778. A) # ASCII based system
  3779. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  3780. lt_SP2NL='tr \040 \012'
  3781. lt_NL2SP='tr \015\012 \040\040'
  3782. ;;
  3783. *) # EBCDIC based system
  3784. lt_SP2NL='tr \100 \n'
  3785. lt_NL2SP='tr \r\n \100\100'
  3786. ;;
  3787. esac
  3788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  3789. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  3790. if ${lt_cv_ld_reload_flag+:} false; then :
  3791. $as_echo_n "(cached) " >&6
  3792. else
  3793. lt_cv_ld_reload_flag='-r'
  3794. fi
  3795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  3796. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  3797. reload_flag=$lt_cv_ld_reload_flag
  3798. case $reload_flag in
  3799. "" | " "*) ;;
  3800. *) reload_flag=" $reload_flag" ;;
  3801. esac
  3802. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3803. case $host_os in
  3804. darwin*)
  3805. if test "$GCC" = yes; then
  3806. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  3807. else
  3808. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3809. fi
  3810. ;;
  3811. esac
  3812. if test -n "$ac_tool_prefix"; then
  3813. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  3814. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  3815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3816. $as_echo_n "checking for $ac_word... " >&6; }
  3817. if ${ac_cv_prog_OBJDUMP+:} false; then :
  3818. $as_echo_n "(cached) " >&6
  3819. else
  3820. if test -n "$OBJDUMP"; then
  3821. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  3822. else
  3823. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3824. for as_dir in $PATH
  3825. do
  3826. IFS=$as_save_IFS
  3827. test -z "$as_dir" && as_dir=.
  3828. for ac_exec_ext in '' $ac_executable_extensions; do
  3829. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3830. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  3831. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3832. break 2
  3833. fi
  3834. done
  3835. done
  3836. IFS=$as_save_IFS
  3837. fi
  3838. fi
  3839. OBJDUMP=$ac_cv_prog_OBJDUMP
  3840. if test -n "$OBJDUMP"; then
  3841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  3842. $as_echo "$OBJDUMP" >&6; }
  3843. else
  3844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3845. $as_echo "no" >&6; }
  3846. fi
  3847. fi
  3848. if test -z "$ac_cv_prog_OBJDUMP"; then
  3849. ac_ct_OBJDUMP=$OBJDUMP
  3850. # Extract the first word of "objdump", so it can be a program name with args.
  3851. set dummy objdump; ac_word=$2
  3852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3853. $as_echo_n "checking for $ac_word... " >&6; }
  3854. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  3855. $as_echo_n "(cached) " >&6
  3856. else
  3857. if test -n "$ac_ct_OBJDUMP"; then
  3858. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  3859. else
  3860. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3861. for as_dir in $PATH
  3862. do
  3863. IFS=$as_save_IFS
  3864. test -z "$as_dir" && as_dir=.
  3865. for ac_exec_ext in '' $ac_executable_extensions; do
  3866. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3867. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  3868. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3869. break 2
  3870. fi
  3871. done
  3872. done
  3873. IFS=$as_save_IFS
  3874. fi
  3875. fi
  3876. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  3877. if test -n "$ac_ct_OBJDUMP"; then
  3878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  3879. $as_echo "$ac_ct_OBJDUMP" >&6; }
  3880. else
  3881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3882. $as_echo "no" >&6; }
  3883. fi
  3884. if test "x$ac_ct_OBJDUMP" = x; then
  3885. OBJDUMP="false"
  3886. else
  3887. case $cross_compiling:$ac_tool_warned in
  3888. yes:)
  3889. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3890. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3891. ac_tool_warned=yes ;;
  3892. esac
  3893. OBJDUMP=$ac_ct_OBJDUMP
  3894. fi
  3895. else
  3896. OBJDUMP="$ac_cv_prog_OBJDUMP"
  3897. fi
  3898. test -z "$OBJDUMP" && OBJDUMP=objdump
  3899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  3900. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  3901. if ${lt_cv_deplibs_check_method+:} false; then :
  3902. $as_echo_n "(cached) " >&6
  3903. else
  3904. lt_cv_file_magic_cmd='$MAGIC_CMD'
  3905. lt_cv_file_magic_test_file=
  3906. lt_cv_deplibs_check_method='unknown'
  3907. # Need to set the preceding variable on all platforms that support
  3908. # interlibrary dependencies.
  3909. # 'none' -- dependencies not supported.
  3910. # `unknown' -- same as none, but documents that we really don't know.
  3911. # 'pass_all' -- all dependencies passed with no checks.
  3912. # 'test_compile' -- check by making test program.
  3913. # 'file_magic [[regex]]' -- check by looking for files in library path
  3914. # which responds to the $file_magic_cmd with a given extended regex.
  3915. # If you have `file' or equivalent on your system and you're not sure
  3916. # whether `pass_all' will *always* work, you probably want this one.
  3917. case $host_os in
  3918. aix[4-9]*)
  3919. lt_cv_deplibs_check_method=pass_all
  3920. ;;
  3921. beos*)
  3922. lt_cv_deplibs_check_method=pass_all
  3923. ;;
  3924. bsdi[45]*)
  3925. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  3926. lt_cv_file_magic_cmd='/usr/bin/file -L'
  3927. lt_cv_file_magic_test_file=/shlib/libc.so
  3928. ;;
  3929. cygwin*)
  3930. # func_win32_libid is a shell function defined in ltmain.sh
  3931. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3932. lt_cv_deplibs_check_method=pass_all
  3933. lt_cv_file_magic_cmd='func_win32_libid'
  3934. ;;
  3935. mingw* | pw32*)
  3936. # Base MSYS/MinGW do not provide the 'file' command needed by
  3937. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  3938. # unless we find 'file', for example because we are cross-compiling.
  3939. if ( file / ) >/dev/null 2>&1; then
  3940. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3941. lt_cv_file_magic_cmd='func_win32_libid'
  3942. else
  3943. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  3944. lt_cv_file_magic_cmd='$OBJDUMP -f'
  3945. fi
  3946. lt_cv_deplibs_check_method=pass_all
  3947. ;;
  3948. cegcc)
  3949. # use the weaker test based on 'objdump'. See mingw*.
  3950. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  3951. lt_cv_file_magic_cmd='$OBJDUMP -f'
  3952. ;;
  3953. darwin* | rhapsody*)
  3954. lt_cv_deplibs_check_method=pass_all
  3955. ;;
  3956. freebsd* | dragonfly*)
  3957. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  3958. case $host_cpu in
  3959. i*86 )
  3960. # Not sure whether the presence of OpenBSD here was a mistake.
  3961. # Let's accept both of them until this is cleared up.
  3962. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  3963. lt_cv_file_magic_cmd=/usr/bin/file
  3964. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3965. ;;
  3966. esac
  3967. else
  3968. lt_cv_deplibs_check_method=pass_all
  3969. fi
  3970. ;;
  3971. gnu*)
  3972. lt_cv_deplibs_check_method=pass_all
  3973. ;;
  3974. hpux10.20* | hpux11*)
  3975. lt_cv_file_magic_cmd=/usr/bin/file
  3976. case $host_cpu in
  3977. ia64*)
  3978. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  3979. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  3980. ;;
  3981. hppa*64*)
  3982. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
  3983. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  3984. ;;
  3985. *)
  3986. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  3987. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  3988. ;;
  3989. esac
  3990. ;;
  3991. interix[3-9]*)
  3992. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  3993. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  3994. ;;
  3995. irix5* | irix6* | nonstopux*)
  3996. case $LD in
  3997. *-32|*"-32 ") libmagic=32-bit;;
  3998. *-n32|*"-n32 ") libmagic=N32;;
  3999. *-64|*"-64 ") libmagic=64-bit;;
  4000. *) libmagic=never-match;;
  4001. esac
  4002. lt_cv_deplibs_check_method=pass_all
  4003. ;;
  4004. # This must be Linux ELF.
  4005. linux* | k*bsd*-gnu)
  4006. lt_cv_deplibs_check_method=pass_all
  4007. ;;
  4008. netbsd*)
  4009. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4010. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4011. else
  4012. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4013. fi
  4014. ;;
  4015. newos6*)
  4016. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4017. lt_cv_file_magic_cmd=/usr/bin/file
  4018. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4019. ;;
  4020. *nto* | *qnx*)
  4021. lt_cv_deplibs_check_method=pass_all
  4022. ;;
  4023. openbsd*)
  4024. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4025. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4026. else
  4027. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4028. fi
  4029. ;;
  4030. osf3* | osf4* | osf5*)
  4031. lt_cv_deplibs_check_method=pass_all
  4032. ;;
  4033. rdos*)
  4034. lt_cv_deplibs_check_method=pass_all
  4035. ;;
  4036. solaris*)
  4037. lt_cv_deplibs_check_method=pass_all
  4038. ;;
  4039. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4040. lt_cv_deplibs_check_method=pass_all
  4041. ;;
  4042. sysv4 | sysv4.3*)
  4043. case $host_vendor in
  4044. motorola)
  4045. 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]'
  4046. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4047. ;;
  4048. ncr)
  4049. lt_cv_deplibs_check_method=pass_all
  4050. ;;
  4051. sequent)
  4052. lt_cv_file_magic_cmd='/bin/file'
  4053. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4054. ;;
  4055. sni)
  4056. lt_cv_file_magic_cmd='/bin/file'
  4057. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4058. lt_cv_file_magic_test_file=/lib/libc.so
  4059. ;;
  4060. siemens)
  4061. lt_cv_deplibs_check_method=pass_all
  4062. ;;
  4063. pc)
  4064. lt_cv_deplibs_check_method=pass_all
  4065. ;;
  4066. esac
  4067. ;;
  4068. tpf*)
  4069. lt_cv_deplibs_check_method=pass_all
  4070. ;;
  4071. esac
  4072. fi
  4073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4074. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4075. file_magic_cmd=$lt_cv_file_magic_cmd
  4076. deplibs_check_method=$lt_cv_deplibs_check_method
  4077. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4078. if test -n "$ac_tool_prefix"; then
  4079. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  4080. set dummy ${ac_tool_prefix}ar; ac_word=$2
  4081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4082. $as_echo_n "checking for $ac_word... " >&6; }
  4083. if ${ac_cv_prog_AR+:} false; then :
  4084. $as_echo_n "(cached) " >&6
  4085. else
  4086. if test -n "$AR"; then
  4087. ac_cv_prog_AR="$AR" # Let the user override the test.
  4088. else
  4089. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4090. for as_dir in $PATH
  4091. do
  4092. IFS=$as_save_IFS
  4093. test -z "$as_dir" && as_dir=.
  4094. for ac_exec_ext in '' $ac_executable_extensions; do
  4095. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4096. ac_cv_prog_AR="${ac_tool_prefix}ar"
  4097. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4098. break 2
  4099. fi
  4100. done
  4101. done
  4102. IFS=$as_save_IFS
  4103. fi
  4104. fi
  4105. AR=$ac_cv_prog_AR
  4106. if test -n "$AR"; then
  4107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4108. $as_echo "$AR" >&6; }
  4109. else
  4110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4111. $as_echo "no" >&6; }
  4112. fi
  4113. fi
  4114. if test -z "$ac_cv_prog_AR"; then
  4115. ac_ct_AR=$AR
  4116. # Extract the first word of "ar", so it can be a program name with args.
  4117. set dummy ar; ac_word=$2
  4118. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4119. $as_echo_n "checking for $ac_word... " >&6; }
  4120. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4121. $as_echo_n "(cached) " >&6
  4122. else
  4123. if test -n "$ac_ct_AR"; then
  4124. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4125. else
  4126. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4127. for as_dir in $PATH
  4128. do
  4129. IFS=$as_save_IFS
  4130. test -z "$as_dir" && as_dir=.
  4131. for ac_exec_ext in '' $ac_executable_extensions; do
  4132. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4133. ac_cv_prog_ac_ct_AR="ar"
  4134. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4135. break 2
  4136. fi
  4137. done
  4138. done
  4139. IFS=$as_save_IFS
  4140. fi
  4141. fi
  4142. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4143. if test -n "$ac_ct_AR"; then
  4144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4145. $as_echo "$ac_ct_AR" >&6; }
  4146. else
  4147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4148. $as_echo "no" >&6; }
  4149. fi
  4150. if test "x$ac_ct_AR" = x; then
  4151. AR="false"
  4152. else
  4153. case $cross_compiling:$ac_tool_warned in
  4154. yes:)
  4155. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4156. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4157. ac_tool_warned=yes ;;
  4158. esac
  4159. AR=$ac_ct_AR
  4160. fi
  4161. else
  4162. AR="$ac_cv_prog_AR"
  4163. fi
  4164. test -z "$AR" && AR=ar
  4165. test -z "$AR_FLAGS" && AR_FLAGS=cru
  4166. if test -n "$ac_tool_prefix"; then
  4167. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4168. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4170. $as_echo_n "checking for $ac_word... " >&6; }
  4171. if ${ac_cv_prog_STRIP+:} false; then :
  4172. $as_echo_n "(cached) " >&6
  4173. else
  4174. if test -n "$STRIP"; then
  4175. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4176. else
  4177. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4178. for as_dir in $PATH
  4179. do
  4180. IFS=$as_save_IFS
  4181. test -z "$as_dir" && as_dir=.
  4182. for ac_exec_ext in '' $ac_executable_extensions; do
  4183. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4184. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4185. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4186. break 2
  4187. fi
  4188. done
  4189. done
  4190. IFS=$as_save_IFS
  4191. fi
  4192. fi
  4193. STRIP=$ac_cv_prog_STRIP
  4194. if test -n "$STRIP"; then
  4195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4196. $as_echo "$STRIP" >&6; }
  4197. else
  4198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4199. $as_echo "no" >&6; }
  4200. fi
  4201. fi
  4202. if test -z "$ac_cv_prog_STRIP"; then
  4203. ac_ct_STRIP=$STRIP
  4204. # Extract the first word of "strip", so it can be a program name with args.
  4205. set dummy strip; ac_word=$2
  4206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4207. $as_echo_n "checking for $ac_word... " >&6; }
  4208. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4209. $as_echo_n "(cached) " >&6
  4210. else
  4211. if test -n "$ac_ct_STRIP"; then
  4212. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4213. else
  4214. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4215. for as_dir in $PATH
  4216. do
  4217. IFS=$as_save_IFS
  4218. test -z "$as_dir" && as_dir=.
  4219. for ac_exec_ext in '' $ac_executable_extensions; do
  4220. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4221. ac_cv_prog_ac_ct_STRIP="strip"
  4222. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4223. break 2
  4224. fi
  4225. done
  4226. done
  4227. IFS=$as_save_IFS
  4228. fi
  4229. fi
  4230. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4231. if test -n "$ac_ct_STRIP"; then
  4232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4233. $as_echo "$ac_ct_STRIP" >&6; }
  4234. else
  4235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4236. $as_echo "no" >&6; }
  4237. fi
  4238. if test "x$ac_ct_STRIP" = x; then
  4239. STRIP=":"
  4240. else
  4241. case $cross_compiling:$ac_tool_warned in
  4242. yes:)
  4243. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4244. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4245. ac_tool_warned=yes ;;
  4246. esac
  4247. STRIP=$ac_ct_STRIP
  4248. fi
  4249. else
  4250. STRIP="$ac_cv_prog_STRIP"
  4251. fi
  4252. test -z "$STRIP" && STRIP=:
  4253. if test -n "$ac_tool_prefix"; then
  4254. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4255. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4257. $as_echo_n "checking for $ac_word... " >&6; }
  4258. if ${ac_cv_prog_RANLIB+:} false; then :
  4259. $as_echo_n "(cached) " >&6
  4260. else
  4261. if test -n "$RANLIB"; then
  4262. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4263. else
  4264. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4265. for as_dir in $PATH
  4266. do
  4267. IFS=$as_save_IFS
  4268. test -z "$as_dir" && as_dir=.
  4269. for ac_exec_ext in '' $ac_executable_extensions; do
  4270. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4271. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4272. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4273. break 2
  4274. fi
  4275. done
  4276. done
  4277. IFS=$as_save_IFS
  4278. fi
  4279. fi
  4280. RANLIB=$ac_cv_prog_RANLIB
  4281. if test -n "$RANLIB"; then
  4282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4283. $as_echo "$RANLIB" >&6; }
  4284. else
  4285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4286. $as_echo "no" >&6; }
  4287. fi
  4288. fi
  4289. if test -z "$ac_cv_prog_RANLIB"; then
  4290. ac_ct_RANLIB=$RANLIB
  4291. # Extract the first word of "ranlib", so it can be a program name with args.
  4292. set dummy ranlib; ac_word=$2
  4293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4294. $as_echo_n "checking for $ac_word... " >&6; }
  4295. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4296. $as_echo_n "(cached) " >&6
  4297. else
  4298. if test -n "$ac_ct_RANLIB"; then
  4299. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4300. else
  4301. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4302. for as_dir in $PATH
  4303. do
  4304. IFS=$as_save_IFS
  4305. test -z "$as_dir" && as_dir=.
  4306. for ac_exec_ext in '' $ac_executable_extensions; do
  4307. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4308. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4309. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4310. break 2
  4311. fi
  4312. done
  4313. done
  4314. IFS=$as_save_IFS
  4315. fi
  4316. fi
  4317. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4318. if test -n "$ac_ct_RANLIB"; then
  4319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4320. $as_echo "$ac_ct_RANLIB" >&6; }
  4321. else
  4322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4323. $as_echo "no" >&6; }
  4324. fi
  4325. if test "x$ac_ct_RANLIB" = x; then
  4326. RANLIB=":"
  4327. else
  4328. case $cross_compiling:$ac_tool_warned in
  4329. yes:)
  4330. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4331. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4332. ac_tool_warned=yes ;;
  4333. esac
  4334. RANLIB=$ac_ct_RANLIB
  4335. fi
  4336. else
  4337. RANLIB="$ac_cv_prog_RANLIB"
  4338. fi
  4339. test -z "$RANLIB" && RANLIB=:
  4340. # Determine commands to create old-style static archives.
  4341. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4342. old_postinstall_cmds='chmod 644 $oldlib'
  4343. old_postuninstall_cmds=
  4344. if test -n "$RANLIB"; then
  4345. case $host_os in
  4346. openbsd*)
  4347. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  4348. ;;
  4349. *)
  4350. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  4351. ;;
  4352. esac
  4353. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  4354. fi
  4355. # If no C compiler was specified, use CC.
  4356. LTCC=${LTCC-"$CC"}
  4357. # If no C compiler flags were specified, use CFLAGS.
  4358. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4359. # Allow CC to be a program name with arguments.
  4360. compiler=$CC
  4361. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  4363. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  4364. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  4365. $as_echo_n "(cached) " >&6
  4366. else
  4367. # These are sane defaults that work on at least a few old systems.
  4368. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4369. # Character class describing NM global symbol codes.
  4370. symcode='[BCDEGRST]'
  4371. # Regexp to match symbols that can be accessed directly from C.
  4372. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4373. # Define system-specific variables.
  4374. case $host_os in
  4375. aix*)
  4376. symcode='[BCDT]'
  4377. ;;
  4378. cygwin* | mingw* | pw32* | cegcc*)
  4379. symcode='[ABCDGISTW]'
  4380. ;;
  4381. hpux*)
  4382. if test "$host_cpu" = ia64; then
  4383. symcode='[ABCDEGRST]'
  4384. fi
  4385. ;;
  4386. irix* | nonstopux*)
  4387. symcode='[BCDEGRST]'
  4388. ;;
  4389. osf*)
  4390. symcode='[BCDEGQRST]'
  4391. ;;
  4392. solaris*)
  4393. symcode='[BDRT]'
  4394. ;;
  4395. sco3.2v5*)
  4396. symcode='[DT]'
  4397. ;;
  4398. sysv4.2uw2*)
  4399. symcode='[DT]'
  4400. ;;
  4401. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4402. symcode='[ABDT]'
  4403. ;;
  4404. sysv4)
  4405. symcode='[DFNSTU]'
  4406. ;;
  4407. esac
  4408. # If we're using GNU nm, then use its standard symbol codes.
  4409. case `$NM -V 2>&1` in
  4410. *GNU* | *'with BFD'*)
  4411. symcode='[ABCDGIRSTW]' ;;
  4412. esac
  4413. # Transform an extracted symbol line into a proper C declaration.
  4414. # Some systems (esp. on ia64) link data and code symbols differently,
  4415. # so use this general approach.
  4416. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4417. # Transform an extracted symbol line into symbol name and symbol address
  4418. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  4419. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  4420. # Handle CRLF in mingw tool chain
  4421. opt_cr=
  4422. case $build_os in
  4423. mingw*)
  4424. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4425. ;;
  4426. esac
  4427. # Try without a prefix underscore, then with it.
  4428. for ac_symprfx in "" "_"; do
  4429. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4430. symxfrm="\\1 $ac_symprfx\\2 \\2"
  4431. # Write the raw and C identifiers.
  4432. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  4433. # Fake it for dumpbin and say T for any non-static function
  4434. # and D for any global variable.
  4435. # Also find C++ and __fastcall symbols from MSVC++,
  4436. # which start with @ or ?.
  4437. lt_cv_sys_global_symbol_pipe="$AWK '"\
  4438. " {last_section=section; section=\$ 3};"\
  4439. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  4440. " \$ 0!~/External *\|/{next};"\
  4441. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  4442. " {if(hide[section]) next};"\
  4443. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  4444. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  4445. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  4446. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  4447. " ' prfx=^$ac_symprfx"
  4448. else
  4449. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  4450. fi
  4451. # Check to see that the pipe works correctly.
  4452. pipe_works=no
  4453. rm -f conftest*
  4454. cat > conftest.$ac_ext <<_LT_EOF
  4455. #ifdef __cplusplus
  4456. extern "C" {
  4457. #endif
  4458. char nm_test_var;
  4459. void nm_test_func(void);
  4460. void nm_test_func(void){}
  4461. #ifdef __cplusplus
  4462. }
  4463. #endif
  4464. int main(){nm_test_var='a';nm_test_func();return(0);}
  4465. _LT_EOF
  4466. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  4467. (eval $ac_compile) 2>&5
  4468. ac_status=$?
  4469. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4470. test $ac_status = 0; }; then
  4471. # Now try to grab the symbols.
  4472. nlist=conftest.nm
  4473. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  4474. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  4475. ac_status=$?
  4476. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4477. test $ac_status = 0; } && test -s "$nlist"; then
  4478. # Try sorting and uniquifying the output.
  4479. if sort "$nlist" | uniq > "$nlist"T; then
  4480. mv -f "$nlist"T "$nlist"
  4481. else
  4482. rm -f "$nlist"T
  4483. fi
  4484. # Make sure that we snagged all the symbols we need.
  4485. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  4486. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  4487. cat <<_LT_EOF > conftest.$ac_ext
  4488. #ifdef __cplusplus
  4489. extern "C" {
  4490. #endif
  4491. _LT_EOF
  4492. # Now generate the symbol file.
  4493. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  4494. cat <<_LT_EOF >> conftest.$ac_ext
  4495. /* The mapping between symbol names and symbols. */
  4496. const struct {
  4497. const char *name;
  4498. void *address;
  4499. }
  4500. lt__PROGRAM__LTX_preloaded_symbols[] =
  4501. {
  4502. { "@PROGRAM@", (void *) 0 },
  4503. _LT_EOF
  4504. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  4505. cat <<\_LT_EOF >> conftest.$ac_ext
  4506. {0, (void *) 0}
  4507. };
  4508. /* This works around a problem in FreeBSD linker */
  4509. #ifdef FREEBSD_WORKAROUND
  4510. static const void *lt_preloaded_setup() {
  4511. return lt__PROGRAM__LTX_preloaded_symbols;
  4512. }
  4513. #endif
  4514. #ifdef __cplusplus
  4515. }
  4516. #endif
  4517. _LT_EOF
  4518. # Now try linking the two files.
  4519. mv conftest.$ac_objext conftstm.$ac_objext
  4520. lt_save_LIBS="$LIBS"
  4521. lt_save_CFLAGS="$CFLAGS"
  4522. LIBS="conftstm.$ac_objext"
  4523. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  4524. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  4525. (eval $ac_link) 2>&5
  4526. ac_status=$?
  4527. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4528. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  4529. pipe_works=yes
  4530. fi
  4531. LIBS="$lt_save_LIBS"
  4532. CFLAGS="$lt_save_CFLAGS"
  4533. else
  4534. echo "cannot find nm_test_func in $nlist" >&5
  4535. fi
  4536. else
  4537. echo "cannot find nm_test_var in $nlist" >&5
  4538. fi
  4539. else
  4540. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  4541. fi
  4542. else
  4543. echo "$progname: failed program was:" >&5
  4544. cat conftest.$ac_ext >&5
  4545. fi
  4546. rm -rf conftest* conftst*
  4547. # Do not use the global_symbol_pipe unless it works.
  4548. if test "$pipe_works" = yes; then
  4549. break
  4550. else
  4551. lt_cv_sys_global_symbol_pipe=
  4552. fi
  4553. done
  4554. fi
  4555. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  4556. lt_cv_sys_global_symbol_to_cdecl=
  4557. fi
  4558. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  4559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  4560. $as_echo "failed" >&6; }
  4561. else
  4562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  4563. $as_echo "ok" >&6; }
  4564. fi
  4565. # Check whether --enable-libtool-lock was given.
  4566. if test "${enable_libtool_lock+set}" = set; then :
  4567. enableval=$enable_libtool_lock;
  4568. fi
  4569. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  4570. # Some flags need to be propagated to the compiler or linker for good
  4571. # libtool support.
  4572. case $host in
  4573. ia64-*-hpux*)
  4574. # Find out which ABI we are using.
  4575. echo 'int i;' > conftest.$ac_ext
  4576. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  4577. (eval $ac_compile) 2>&5
  4578. ac_status=$?
  4579. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4580. test $ac_status = 0; }; then
  4581. case `/usr/bin/file conftest.$ac_objext` in
  4582. *ELF-32*)
  4583. HPUX_IA64_MODE="32"
  4584. ;;
  4585. *ELF-64*)
  4586. HPUX_IA64_MODE="64"
  4587. ;;
  4588. esac
  4589. fi
  4590. rm -rf conftest*
  4591. ;;
  4592. *-*-irix6*)
  4593. # Find out which ABI we are using.
  4594. echo '#line 5204 "configure"' > conftest.$ac_ext
  4595. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  4596. (eval $ac_compile) 2>&5
  4597. ac_status=$?
  4598. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4599. test $ac_status = 0; }; then
  4600. if test "$lt_cv_prog_gnu_ld" = yes; then
  4601. case `/usr/bin/file conftest.$ac_objext` in
  4602. *32-bit*)
  4603. LD="${LD-ld} -melf32bsmip"
  4604. ;;
  4605. *N32*)
  4606. LD="${LD-ld} -melf32bmipn32"
  4607. ;;
  4608. *64-bit*)
  4609. LD="${LD-ld} -melf64bmip"
  4610. ;;
  4611. esac
  4612. else
  4613. case `/usr/bin/file conftest.$ac_objext` in
  4614. *32-bit*)
  4615. LD="${LD-ld} -32"
  4616. ;;
  4617. *N32*)
  4618. LD="${LD-ld} -n32"
  4619. ;;
  4620. *64-bit*)
  4621. LD="${LD-ld} -64"
  4622. ;;
  4623. esac
  4624. fi
  4625. fi
  4626. rm -rf conftest*
  4627. ;;
  4628. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  4629. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  4630. # Find out which ABI we are using.
  4631. echo 'int i;' > conftest.$ac_ext
  4632. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  4633. (eval $ac_compile) 2>&5
  4634. ac_status=$?
  4635. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4636. test $ac_status = 0; }; then
  4637. case `/usr/bin/file conftest.o` in
  4638. *32-bit*)
  4639. case $host in
  4640. x86_64-*kfreebsd*-gnu)
  4641. LD="${LD-ld} -m elf_i386_fbsd"
  4642. ;;
  4643. x86_64-*linux*)
  4644. LD="${LD-ld} -m elf_i386"
  4645. ;;
  4646. ppc64-*linux*|powerpc64-*linux*)
  4647. LD="${LD-ld} -m elf32ppclinux"
  4648. ;;
  4649. s390x-*linux*)
  4650. LD="${LD-ld} -m elf_s390"
  4651. ;;
  4652. sparc64-*linux*)
  4653. LD="${LD-ld} -m elf32_sparc"
  4654. ;;
  4655. esac
  4656. ;;
  4657. *64-bit*)
  4658. case $host in
  4659. x86_64-*kfreebsd*-gnu)
  4660. LD="${LD-ld} -m elf_x86_64_fbsd"
  4661. ;;
  4662. x86_64-*linux*)
  4663. LD="${LD-ld} -m elf_x86_64"
  4664. ;;
  4665. ppc*-*linux*|powerpc*-*linux*)
  4666. LD="${LD-ld} -m elf64ppc"
  4667. ;;
  4668. s390*-*linux*|s390*-*tpf*)
  4669. LD="${LD-ld} -m elf64_s390"
  4670. ;;
  4671. sparc*-*linux*)
  4672. LD="${LD-ld} -m elf64_sparc"
  4673. ;;
  4674. esac
  4675. ;;
  4676. esac
  4677. fi
  4678. rm -rf conftest*
  4679. ;;
  4680. *-*-sco3.2v5*)
  4681. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  4682. SAVE_CFLAGS="$CFLAGS"
  4683. CFLAGS="$CFLAGS -belf"
  4684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  4685. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  4686. if ${lt_cv_cc_needs_belf+:} false; then :
  4687. $as_echo_n "(cached) " >&6
  4688. else
  4689. ac_ext=c
  4690. ac_cpp='$CPP $CPPFLAGS'
  4691. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4692. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4693. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4694. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4695. /* end confdefs.h. */
  4696. int
  4697. main ()
  4698. {
  4699. ;
  4700. return 0;
  4701. }
  4702. _ACEOF
  4703. if ac_fn_c_try_link "$LINENO"; then :
  4704. lt_cv_cc_needs_belf=yes
  4705. else
  4706. lt_cv_cc_needs_belf=no
  4707. fi
  4708. rm -f core conftest.err conftest.$ac_objext \
  4709. conftest$ac_exeext conftest.$ac_ext
  4710. ac_ext=c
  4711. ac_cpp='$CPP $CPPFLAGS'
  4712. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4713. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4714. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4715. fi
  4716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  4717. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  4718. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  4719. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  4720. CFLAGS="$SAVE_CFLAGS"
  4721. fi
  4722. ;;
  4723. sparc*-*solaris*)
  4724. # Find out which ABI we are using.
  4725. echo 'int i;' > conftest.$ac_ext
  4726. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  4727. (eval $ac_compile) 2>&5
  4728. ac_status=$?
  4729. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4730. test $ac_status = 0; }; then
  4731. case `/usr/bin/file conftest.o` in
  4732. *64-bit*)
  4733. case $lt_cv_prog_gnu_ld in
  4734. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  4735. *)
  4736. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  4737. LD="${LD-ld} -64"
  4738. fi
  4739. ;;
  4740. esac
  4741. ;;
  4742. esac
  4743. fi
  4744. rm -rf conftest*
  4745. ;;
  4746. esac
  4747. need_locks="$enable_libtool_lock"
  4748. case $host_os in
  4749. rhapsody* | darwin*)
  4750. if test -n "$ac_tool_prefix"; then
  4751. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  4752. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  4753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4754. $as_echo_n "checking for $ac_word... " >&6; }
  4755. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  4756. $as_echo_n "(cached) " >&6
  4757. else
  4758. if test -n "$DSYMUTIL"; then
  4759. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  4760. else
  4761. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4762. for as_dir in $PATH
  4763. do
  4764. IFS=$as_save_IFS
  4765. test -z "$as_dir" && as_dir=.
  4766. for ac_exec_ext in '' $ac_executable_extensions; do
  4767. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4768. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  4769. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4770. break 2
  4771. fi
  4772. done
  4773. done
  4774. IFS=$as_save_IFS
  4775. fi
  4776. fi
  4777. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  4778. if test -n "$DSYMUTIL"; then
  4779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  4780. $as_echo "$DSYMUTIL" >&6; }
  4781. else
  4782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4783. $as_echo "no" >&6; }
  4784. fi
  4785. fi
  4786. if test -z "$ac_cv_prog_DSYMUTIL"; then
  4787. ac_ct_DSYMUTIL=$DSYMUTIL
  4788. # Extract the first word of "dsymutil", so it can be a program name with args.
  4789. set dummy dsymutil; ac_word=$2
  4790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4791. $as_echo_n "checking for $ac_word... " >&6; }
  4792. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  4793. $as_echo_n "(cached) " >&6
  4794. else
  4795. if test -n "$ac_ct_DSYMUTIL"; then
  4796. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  4797. else
  4798. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4799. for as_dir in $PATH
  4800. do
  4801. IFS=$as_save_IFS
  4802. test -z "$as_dir" && as_dir=.
  4803. for ac_exec_ext in '' $ac_executable_extensions; do
  4804. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4805. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  4806. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4807. break 2
  4808. fi
  4809. done
  4810. done
  4811. IFS=$as_save_IFS
  4812. fi
  4813. fi
  4814. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  4815. if test -n "$ac_ct_DSYMUTIL"; then
  4816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  4817. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  4818. else
  4819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4820. $as_echo "no" >&6; }
  4821. fi
  4822. if test "x$ac_ct_DSYMUTIL" = x; then
  4823. DSYMUTIL=":"
  4824. else
  4825. case $cross_compiling:$ac_tool_warned in
  4826. yes:)
  4827. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4828. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4829. ac_tool_warned=yes ;;
  4830. esac
  4831. DSYMUTIL=$ac_ct_DSYMUTIL
  4832. fi
  4833. else
  4834. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  4835. fi
  4836. if test -n "$ac_tool_prefix"; then
  4837. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  4838. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  4839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4840. $as_echo_n "checking for $ac_word... " >&6; }
  4841. if ${ac_cv_prog_NMEDIT+:} false; then :
  4842. $as_echo_n "(cached) " >&6
  4843. else
  4844. if test -n "$NMEDIT"; then
  4845. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  4846. else
  4847. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4848. for as_dir in $PATH
  4849. do
  4850. IFS=$as_save_IFS
  4851. test -z "$as_dir" && as_dir=.
  4852. for ac_exec_ext in '' $ac_executable_extensions; do
  4853. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4854. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  4855. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4856. break 2
  4857. fi
  4858. done
  4859. done
  4860. IFS=$as_save_IFS
  4861. fi
  4862. fi
  4863. NMEDIT=$ac_cv_prog_NMEDIT
  4864. if test -n "$NMEDIT"; then
  4865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  4866. $as_echo "$NMEDIT" >&6; }
  4867. else
  4868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4869. $as_echo "no" >&6; }
  4870. fi
  4871. fi
  4872. if test -z "$ac_cv_prog_NMEDIT"; then
  4873. ac_ct_NMEDIT=$NMEDIT
  4874. # Extract the first word of "nmedit", so it can be a program name with args.
  4875. set dummy nmedit; ac_word=$2
  4876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4877. $as_echo_n "checking for $ac_word... " >&6; }
  4878. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  4879. $as_echo_n "(cached) " >&6
  4880. else
  4881. if test -n "$ac_ct_NMEDIT"; then
  4882. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  4883. else
  4884. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4885. for as_dir in $PATH
  4886. do
  4887. IFS=$as_save_IFS
  4888. test -z "$as_dir" && as_dir=.
  4889. for ac_exec_ext in '' $ac_executable_extensions; do
  4890. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4891. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  4892. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4893. break 2
  4894. fi
  4895. done
  4896. done
  4897. IFS=$as_save_IFS
  4898. fi
  4899. fi
  4900. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  4901. if test -n "$ac_ct_NMEDIT"; then
  4902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  4903. $as_echo "$ac_ct_NMEDIT" >&6; }
  4904. else
  4905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4906. $as_echo "no" >&6; }
  4907. fi
  4908. if test "x$ac_ct_NMEDIT" = x; then
  4909. NMEDIT=":"
  4910. else
  4911. case $cross_compiling:$ac_tool_warned in
  4912. yes:)
  4913. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4914. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4915. ac_tool_warned=yes ;;
  4916. esac
  4917. NMEDIT=$ac_ct_NMEDIT
  4918. fi
  4919. else
  4920. NMEDIT="$ac_cv_prog_NMEDIT"
  4921. fi
  4922. if test -n "$ac_tool_prefix"; then
  4923. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  4924. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  4925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4926. $as_echo_n "checking for $ac_word... " >&6; }
  4927. if ${ac_cv_prog_LIPO+:} false; then :
  4928. $as_echo_n "(cached) " >&6
  4929. else
  4930. if test -n "$LIPO"; then
  4931. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  4932. else
  4933. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4934. for as_dir in $PATH
  4935. do
  4936. IFS=$as_save_IFS
  4937. test -z "$as_dir" && as_dir=.
  4938. for ac_exec_ext in '' $ac_executable_extensions; do
  4939. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4940. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  4941. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4942. break 2
  4943. fi
  4944. done
  4945. done
  4946. IFS=$as_save_IFS
  4947. fi
  4948. fi
  4949. LIPO=$ac_cv_prog_LIPO
  4950. if test -n "$LIPO"; then
  4951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  4952. $as_echo "$LIPO" >&6; }
  4953. else
  4954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4955. $as_echo "no" >&6; }
  4956. fi
  4957. fi
  4958. if test -z "$ac_cv_prog_LIPO"; then
  4959. ac_ct_LIPO=$LIPO
  4960. # Extract the first word of "lipo", so it can be a program name with args.
  4961. set dummy lipo; ac_word=$2
  4962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4963. $as_echo_n "checking for $ac_word... " >&6; }
  4964. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  4965. $as_echo_n "(cached) " >&6
  4966. else
  4967. if test -n "$ac_ct_LIPO"; then
  4968. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  4969. else
  4970. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4971. for as_dir in $PATH
  4972. do
  4973. IFS=$as_save_IFS
  4974. test -z "$as_dir" && as_dir=.
  4975. for ac_exec_ext in '' $ac_executable_extensions; do
  4976. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4977. ac_cv_prog_ac_ct_LIPO="lipo"
  4978. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4979. break 2
  4980. fi
  4981. done
  4982. done
  4983. IFS=$as_save_IFS
  4984. fi
  4985. fi
  4986. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  4987. if test -n "$ac_ct_LIPO"; then
  4988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  4989. $as_echo "$ac_ct_LIPO" >&6; }
  4990. else
  4991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4992. $as_echo "no" >&6; }
  4993. fi
  4994. if test "x$ac_ct_LIPO" = x; then
  4995. LIPO=":"
  4996. else
  4997. case $cross_compiling:$ac_tool_warned in
  4998. yes:)
  4999. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5000. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5001. ac_tool_warned=yes ;;
  5002. esac
  5003. LIPO=$ac_ct_LIPO
  5004. fi
  5005. else
  5006. LIPO="$ac_cv_prog_LIPO"
  5007. fi
  5008. if test -n "$ac_tool_prefix"; then
  5009. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5010. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5012. $as_echo_n "checking for $ac_word... " >&6; }
  5013. if ${ac_cv_prog_OTOOL+:} false; then :
  5014. $as_echo_n "(cached) " >&6
  5015. else
  5016. if test -n "$OTOOL"; then
  5017. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5018. else
  5019. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5020. for as_dir in $PATH
  5021. do
  5022. IFS=$as_save_IFS
  5023. test -z "$as_dir" && as_dir=.
  5024. for ac_exec_ext in '' $ac_executable_extensions; do
  5025. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5026. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5027. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5028. break 2
  5029. fi
  5030. done
  5031. done
  5032. IFS=$as_save_IFS
  5033. fi
  5034. fi
  5035. OTOOL=$ac_cv_prog_OTOOL
  5036. if test -n "$OTOOL"; then
  5037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5038. $as_echo "$OTOOL" >&6; }
  5039. else
  5040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5041. $as_echo "no" >&6; }
  5042. fi
  5043. fi
  5044. if test -z "$ac_cv_prog_OTOOL"; then
  5045. ac_ct_OTOOL=$OTOOL
  5046. # Extract the first word of "otool", so it can be a program name with args.
  5047. set dummy otool; ac_word=$2
  5048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5049. $as_echo_n "checking for $ac_word... " >&6; }
  5050. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5051. $as_echo_n "(cached) " >&6
  5052. else
  5053. if test -n "$ac_ct_OTOOL"; then
  5054. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5055. else
  5056. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5057. for as_dir in $PATH
  5058. do
  5059. IFS=$as_save_IFS
  5060. test -z "$as_dir" && as_dir=.
  5061. for ac_exec_ext in '' $ac_executable_extensions; do
  5062. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5063. ac_cv_prog_ac_ct_OTOOL="otool"
  5064. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5065. break 2
  5066. fi
  5067. done
  5068. done
  5069. IFS=$as_save_IFS
  5070. fi
  5071. fi
  5072. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5073. if test -n "$ac_ct_OTOOL"; then
  5074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5075. $as_echo "$ac_ct_OTOOL" >&6; }
  5076. else
  5077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5078. $as_echo "no" >&6; }
  5079. fi
  5080. if test "x$ac_ct_OTOOL" = x; then
  5081. OTOOL=":"
  5082. else
  5083. case $cross_compiling:$ac_tool_warned in
  5084. yes:)
  5085. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5086. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5087. ac_tool_warned=yes ;;
  5088. esac
  5089. OTOOL=$ac_ct_OTOOL
  5090. fi
  5091. else
  5092. OTOOL="$ac_cv_prog_OTOOL"
  5093. fi
  5094. if test -n "$ac_tool_prefix"; then
  5095. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5096. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5098. $as_echo_n "checking for $ac_word... " >&6; }
  5099. if ${ac_cv_prog_OTOOL64+:} false; then :
  5100. $as_echo_n "(cached) " >&6
  5101. else
  5102. if test -n "$OTOOL64"; then
  5103. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5104. else
  5105. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5106. for as_dir in $PATH
  5107. do
  5108. IFS=$as_save_IFS
  5109. test -z "$as_dir" && as_dir=.
  5110. for ac_exec_ext in '' $ac_executable_extensions; do
  5111. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5112. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5113. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5114. break 2
  5115. fi
  5116. done
  5117. done
  5118. IFS=$as_save_IFS
  5119. fi
  5120. fi
  5121. OTOOL64=$ac_cv_prog_OTOOL64
  5122. if test -n "$OTOOL64"; then
  5123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5124. $as_echo "$OTOOL64" >&6; }
  5125. else
  5126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5127. $as_echo "no" >&6; }
  5128. fi
  5129. fi
  5130. if test -z "$ac_cv_prog_OTOOL64"; then
  5131. ac_ct_OTOOL64=$OTOOL64
  5132. # Extract the first word of "otool64", so it can be a program name with args.
  5133. set dummy otool64; ac_word=$2
  5134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5135. $as_echo_n "checking for $ac_word... " >&6; }
  5136. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5137. $as_echo_n "(cached) " >&6
  5138. else
  5139. if test -n "$ac_ct_OTOOL64"; then
  5140. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5141. else
  5142. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5143. for as_dir in $PATH
  5144. do
  5145. IFS=$as_save_IFS
  5146. test -z "$as_dir" && as_dir=.
  5147. for ac_exec_ext in '' $ac_executable_extensions; do
  5148. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5149. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5150. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5151. break 2
  5152. fi
  5153. done
  5154. done
  5155. IFS=$as_save_IFS
  5156. fi
  5157. fi
  5158. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5159. if test -n "$ac_ct_OTOOL64"; then
  5160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  5161. $as_echo "$ac_ct_OTOOL64" >&6; }
  5162. else
  5163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5164. $as_echo "no" >&6; }
  5165. fi
  5166. if test "x$ac_ct_OTOOL64" = x; then
  5167. OTOOL64=":"
  5168. else
  5169. case $cross_compiling:$ac_tool_warned in
  5170. yes:)
  5171. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5172. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5173. ac_tool_warned=yes ;;
  5174. esac
  5175. OTOOL64=$ac_ct_OTOOL64
  5176. fi
  5177. else
  5178. OTOOL64="$ac_cv_prog_OTOOL64"
  5179. fi
  5180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  5181. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5182. if ${lt_cv_apple_cc_single_mod+:} false; then :
  5183. $as_echo_n "(cached) " >&6
  5184. else
  5185. lt_cv_apple_cc_single_mod=no
  5186. if test -z "${LT_MULTI_MODULE}"; then
  5187. # By default we will add the -single_module flag. You can override
  5188. # by either setting the environment variable LT_MULTI_MODULE
  5189. # non-empty at configure time, or by adding -multi_module to the
  5190. # link flags.
  5191. rm -rf libconftest.dylib*
  5192. echo "int foo(void){return 1;}" > conftest.c
  5193. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5194. -dynamiclib -Wl,-single_module conftest.c" >&5
  5195. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5196. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5197. _lt_result=$?
  5198. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  5199. lt_cv_apple_cc_single_mod=yes
  5200. else
  5201. cat conftest.err >&5
  5202. fi
  5203. rm -rf libconftest.dylib*
  5204. rm -f conftest.*
  5205. fi
  5206. fi
  5207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  5208. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  5210. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5211. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  5212. $as_echo_n "(cached) " >&6
  5213. else
  5214. lt_cv_ld_exported_symbols_list=no
  5215. save_LDFLAGS=$LDFLAGS
  5216. echo "_main" > conftest.sym
  5217. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  5218. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5219. /* end confdefs.h. */
  5220. int
  5221. main ()
  5222. {
  5223. ;
  5224. return 0;
  5225. }
  5226. _ACEOF
  5227. if ac_fn_c_try_link "$LINENO"; then :
  5228. lt_cv_ld_exported_symbols_list=yes
  5229. else
  5230. lt_cv_ld_exported_symbols_list=no
  5231. fi
  5232. rm -f core conftest.err conftest.$ac_objext \
  5233. conftest$ac_exeext conftest.$ac_ext
  5234. LDFLAGS="$save_LDFLAGS"
  5235. fi
  5236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  5237. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  5238. case $host_os in
  5239. rhapsody* | darwin1.[012])
  5240. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  5241. darwin1.*)
  5242. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5243. darwin*) # darwin 5.x on
  5244. # if running on 10.5 or later, the deployment target defaults
  5245. # to the OS version, if on x86, and 10.4, the deployment
  5246. # target defaults to 10.4. Don't you love it?
  5247. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  5248. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  5249. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5250. 10.[012]*)
  5251. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5252. 10.*)
  5253. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5254. esac
  5255. ;;
  5256. esac
  5257. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  5258. _lt_dar_single_mod='$single_module'
  5259. fi
  5260. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  5261. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  5262. else
  5263. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5264. fi
  5265. if test "$DSYMUTIL" != ":"; then
  5266. _lt_dsymutil='~$DSYMUTIL $lib || :'
  5267. else
  5268. _lt_dsymutil=
  5269. fi
  5270. ;;
  5271. esac
  5272. ac_ext=c
  5273. ac_cpp='$CPP $CPPFLAGS'
  5274. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5275. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5276. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  5278. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  5279. # On Suns, sometimes $CPP names a directory.
  5280. if test -n "$CPP" && test -d "$CPP"; then
  5281. CPP=
  5282. fi
  5283. if test -z "$CPP"; then
  5284. if ${ac_cv_prog_CPP+:} false; then :
  5285. $as_echo_n "(cached) " >&6
  5286. else
  5287. # Double quotes because CPP needs to be expanded
  5288. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5289. do
  5290. ac_preproc_ok=false
  5291. for ac_c_preproc_warn_flag in '' yes
  5292. do
  5293. # Use a header file that comes with gcc, so configuring glibc
  5294. # with a fresh cross-compiler works.
  5295. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5296. # <limits.h> exists even on freestanding compilers.
  5297. # On the NeXT, cc -E runs the code through the compiler's parser,
  5298. # not just through cpp. "Syntax error" is here to catch this case.
  5299. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5300. /* end confdefs.h. */
  5301. #ifdef __STDC__
  5302. # include <limits.h>
  5303. #else
  5304. # include <assert.h>
  5305. #endif
  5306. Syntax error
  5307. _ACEOF
  5308. if ac_fn_c_try_cpp "$LINENO"; then :
  5309. else
  5310. # Broken: fails on valid input.
  5311. continue
  5312. fi
  5313. rm -f conftest.err conftest.i conftest.$ac_ext
  5314. # OK, works on sane cases. Now check whether nonexistent headers
  5315. # can be detected and how.
  5316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5317. /* end confdefs.h. */
  5318. #include <ac_nonexistent.h>
  5319. _ACEOF
  5320. if ac_fn_c_try_cpp "$LINENO"; then :
  5321. # Broken: success on invalid input.
  5322. continue
  5323. else
  5324. # Passes both tests.
  5325. ac_preproc_ok=:
  5326. break
  5327. fi
  5328. rm -f conftest.err conftest.i conftest.$ac_ext
  5329. done
  5330. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5331. rm -f conftest.i conftest.err conftest.$ac_ext
  5332. if $ac_preproc_ok; then :
  5333. break
  5334. fi
  5335. done
  5336. ac_cv_prog_CPP=$CPP
  5337. fi
  5338. CPP=$ac_cv_prog_CPP
  5339. else
  5340. ac_cv_prog_CPP=$CPP
  5341. fi
  5342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  5343. $as_echo "$CPP" >&6; }
  5344. ac_preproc_ok=false
  5345. for ac_c_preproc_warn_flag in '' yes
  5346. do
  5347. # Use a header file that comes with gcc, so configuring glibc
  5348. # with a fresh cross-compiler works.
  5349. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5350. # <limits.h> exists even on freestanding compilers.
  5351. # On the NeXT, cc -E runs the code through the compiler's parser,
  5352. # not just through cpp. "Syntax error" is here to catch this case.
  5353. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5354. /* end confdefs.h. */
  5355. #ifdef __STDC__
  5356. # include <limits.h>
  5357. #else
  5358. # include <assert.h>
  5359. #endif
  5360. Syntax error
  5361. _ACEOF
  5362. if ac_fn_c_try_cpp "$LINENO"; then :
  5363. else
  5364. # Broken: fails on valid input.
  5365. continue
  5366. fi
  5367. rm -f conftest.err conftest.i conftest.$ac_ext
  5368. # OK, works on sane cases. Now check whether nonexistent headers
  5369. # can be detected and how.
  5370. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5371. /* end confdefs.h. */
  5372. #include <ac_nonexistent.h>
  5373. _ACEOF
  5374. if ac_fn_c_try_cpp "$LINENO"; then :
  5375. # Broken: success on invalid input.
  5376. continue
  5377. else
  5378. # Passes both tests.
  5379. ac_preproc_ok=:
  5380. break
  5381. fi
  5382. rm -f conftest.err conftest.i conftest.$ac_ext
  5383. done
  5384. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5385. rm -f conftest.i conftest.err conftest.$ac_ext
  5386. if $ac_preproc_ok; then :
  5387. else
  5388. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5389. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5390. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  5391. See \`config.log' for more details" "$LINENO" 5; }
  5392. fi
  5393. ac_ext=c
  5394. ac_cpp='$CPP $CPPFLAGS'
  5395. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5396. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5397. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  5399. $as_echo_n "checking for ANSI C header files... " >&6; }
  5400. if ${ac_cv_header_stdc+:} false; then :
  5401. $as_echo_n "(cached) " >&6
  5402. else
  5403. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5404. /* end confdefs.h. */
  5405. #include <stdlib.h>
  5406. #include <stdarg.h>
  5407. #include <string.h>
  5408. #include <float.h>
  5409. int
  5410. main ()
  5411. {
  5412. ;
  5413. return 0;
  5414. }
  5415. _ACEOF
  5416. if ac_fn_c_try_compile "$LINENO"; then :
  5417. ac_cv_header_stdc=yes
  5418. else
  5419. ac_cv_header_stdc=no
  5420. fi
  5421. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5422. if test $ac_cv_header_stdc = yes; then
  5423. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5424. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5425. /* end confdefs.h. */
  5426. #include <string.h>
  5427. _ACEOF
  5428. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5429. $EGREP "memchr" >/dev/null 2>&1; then :
  5430. else
  5431. ac_cv_header_stdc=no
  5432. fi
  5433. rm -f conftest*
  5434. fi
  5435. if test $ac_cv_header_stdc = yes; then
  5436. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5437. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5438. /* end confdefs.h. */
  5439. #include <stdlib.h>
  5440. _ACEOF
  5441. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5442. $EGREP "free" >/dev/null 2>&1; then :
  5443. else
  5444. ac_cv_header_stdc=no
  5445. fi
  5446. rm -f conftest*
  5447. fi
  5448. if test $ac_cv_header_stdc = yes; then
  5449. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5450. if test "$cross_compiling" = yes; then :
  5451. :
  5452. else
  5453. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5454. /* end confdefs.h. */
  5455. #include <ctype.h>
  5456. #include <stdlib.h>
  5457. #if ((' ' & 0x0FF) == 0x020)
  5458. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5459. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5460. #else
  5461. # define ISLOWER(c) \
  5462. (('a' <= (c) && (c) <= 'i') \
  5463. || ('j' <= (c) && (c) <= 'r') \
  5464. || ('s' <= (c) && (c) <= 'z'))
  5465. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5466. #endif
  5467. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5468. int
  5469. main ()
  5470. {
  5471. int i;
  5472. for (i = 0; i < 256; i++)
  5473. if (XOR (islower (i), ISLOWER (i))
  5474. || toupper (i) != TOUPPER (i))
  5475. return 2;
  5476. return 0;
  5477. }
  5478. _ACEOF
  5479. if ac_fn_c_try_run "$LINENO"; then :
  5480. else
  5481. ac_cv_header_stdc=no
  5482. fi
  5483. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5484. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5485. fi
  5486. fi
  5487. fi
  5488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  5489. $as_echo "$ac_cv_header_stdc" >&6; }
  5490. if test $ac_cv_header_stdc = yes; then
  5491. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  5492. fi
  5493. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5494. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5495. inttypes.h stdint.h unistd.h
  5496. do :
  5497. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5498. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  5499. "
  5500. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5501. cat >>confdefs.h <<_ACEOF
  5502. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5503. _ACEOF
  5504. fi
  5505. done
  5506. for ac_header in dlfcn.h
  5507. do :
  5508. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  5509. "
  5510. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  5511. cat >>confdefs.h <<_ACEOF
  5512. #define HAVE_DLFCN_H 1
  5513. _ACEOF
  5514. fi
  5515. done
  5516. # Set options
  5517. enable_win32_dll=yes
  5518. case $host in
  5519. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
  5520. if test -n "$ac_tool_prefix"; then
  5521. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  5522. set dummy ${ac_tool_prefix}as; ac_word=$2
  5523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5524. $as_echo_n "checking for $ac_word... " >&6; }
  5525. if ${ac_cv_prog_AS+:} false; then :
  5526. $as_echo_n "(cached) " >&6
  5527. else
  5528. if test -n "$AS"; then
  5529. ac_cv_prog_AS="$AS" # Let the user override the test.
  5530. else
  5531. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5532. for as_dir in $PATH
  5533. do
  5534. IFS=$as_save_IFS
  5535. test -z "$as_dir" && as_dir=.
  5536. for ac_exec_ext in '' $ac_executable_extensions; do
  5537. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5538. ac_cv_prog_AS="${ac_tool_prefix}as"
  5539. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5540. break 2
  5541. fi
  5542. done
  5543. done
  5544. IFS=$as_save_IFS
  5545. fi
  5546. fi
  5547. AS=$ac_cv_prog_AS
  5548. if test -n "$AS"; then
  5549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  5550. $as_echo "$AS" >&6; }
  5551. else
  5552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5553. $as_echo "no" >&6; }
  5554. fi
  5555. fi
  5556. if test -z "$ac_cv_prog_AS"; then
  5557. ac_ct_AS=$AS
  5558. # Extract the first word of "as", so it can be a program name with args.
  5559. set dummy as; ac_word=$2
  5560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5561. $as_echo_n "checking for $ac_word... " >&6; }
  5562. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  5563. $as_echo_n "(cached) " >&6
  5564. else
  5565. if test -n "$ac_ct_AS"; then
  5566. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  5567. else
  5568. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5569. for as_dir in $PATH
  5570. do
  5571. IFS=$as_save_IFS
  5572. test -z "$as_dir" && as_dir=.
  5573. for ac_exec_ext in '' $ac_executable_extensions; do
  5574. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5575. ac_cv_prog_ac_ct_AS="as"
  5576. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5577. break 2
  5578. fi
  5579. done
  5580. done
  5581. IFS=$as_save_IFS
  5582. fi
  5583. fi
  5584. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  5585. if test -n "$ac_ct_AS"; then
  5586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  5587. $as_echo "$ac_ct_AS" >&6; }
  5588. else
  5589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5590. $as_echo "no" >&6; }
  5591. fi
  5592. if test "x$ac_ct_AS" = x; then
  5593. AS="false"
  5594. else
  5595. case $cross_compiling:$ac_tool_warned in
  5596. yes:)
  5597. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5598. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5599. ac_tool_warned=yes ;;
  5600. esac
  5601. AS=$ac_ct_AS
  5602. fi
  5603. else
  5604. AS="$ac_cv_prog_AS"
  5605. fi
  5606. if test -n "$ac_tool_prefix"; then
  5607. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5608. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5610. $as_echo_n "checking for $ac_word... " >&6; }
  5611. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5612. $as_echo_n "(cached) " >&6
  5613. else
  5614. if test -n "$DLLTOOL"; then
  5615. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5616. else
  5617. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5618. for as_dir in $PATH
  5619. do
  5620. IFS=$as_save_IFS
  5621. test -z "$as_dir" && as_dir=.
  5622. for ac_exec_ext in '' $ac_executable_extensions; do
  5623. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5624. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5625. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5626. break 2
  5627. fi
  5628. done
  5629. done
  5630. IFS=$as_save_IFS
  5631. fi
  5632. fi
  5633. DLLTOOL=$ac_cv_prog_DLLTOOL
  5634. if test -n "$DLLTOOL"; then
  5635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5636. $as_echo "$DLLTOOL" >&6; }
  5637. else
  5638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5639. $as_echo "no" >&6; }
  5640. fi
  5641. fi
  5642. if test -z "$ac_cv_prog_DLLTOOL"; then
  5643. ac_ct_DLLTOOL=$DLLTOOL
  5644. # Extract the first word of "dlltool", so it can be a program name with args.
  5645. set dummy dlltool; ac_word=$2
  5646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5647. $as_echo_n "checking for $ac_word... " >&6; }
  5648. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5649. $as_echo_n "(cached) " >&6
  5650. else
  5651. if test -n "$ac_ct_DLLTOOL"; then
  5652. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5653. else
  5654. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5655. for as_dir in $PATH
  5656. do
  5657. IFS=$as_save_IFS
  5658. test -z "$as_dir" && as_dir=.
  5659. for ac_exec_ext in '' $ac_executable_extensions; do
  5660. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5661. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5662. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5663. break 2
  5664. fi
  5665. done
  5666. done
  5667. IFS=$as_save_IFS
  5668. fi
  5669. fi
  5670. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5671. if test -n "$ac_ct_DLLTOOL"; then
  5672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5673. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5674. else
  5675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5676. $as_echo "no" >&6; }
  5677. fi
  5678. if test "x$ac_ct_DLLTOOL" = x; then
  5679. DLLTOOL="false"
  5680. else
  5681. case $cross_compiling:$ac_tool_warned in
  5682. yes:)
  5683. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5684. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5685. ac_tool_warned=yes ;;
  5686. esac
  5687. DLLTOOL=$ac_ct_DLLTOOL
  5688. fi
  5689. else
  5690. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5691. fi
  5692. if test -n "$ac_tool_prefix"; then
  5693. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5694. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5696. $as_echo_n "checking for $ac_word... " >&6; }
  5697. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5698. $as_echo_n "(cached) " >&6
  5699. else
  5700. if test -n "$OBJDUMP"; then
  5701. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5702. else
  5703. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5704. for as_dir in $PATH
  5705. do
  5706. IFS=$as_save_IFS
  5707. test -z "$as_dir" && as_dir=.
  5708. for ac_exec_ext in '' $ac_executable_extensions; do
  5709. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5710. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5711. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5712. break 2
  5713. fi
  5714. done
  5715. done
  5716. IFS=$as_save_IFS
  5717. fi
  5718. fi
  5719. OBJDUMP=$ac_cv_prog_OBJDUMP
  5720. if test -n "$OBJDUMP"; then
  5721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5722. $as_echo "$OBJDUMP" >&6; }
  5723. else
  5724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5725. $as_echo "no" >&6; }
  5726. fi
  5727. fi
  5728. if test -z "$ac_cv_prog_OBJDUMP"; then
  5729. ac_ct_OBJDUMP=$OBJDUMP
  5730. # Extract the first word of "objdump", so it can be a program name with args.
  5731. set dummy objdump; ac_word=$2
  5732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5733. $as_echo_n "checking for $ac_word... " >&6; }
  5734. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5735. $as_echo_n "(cached) " >&6
  5736. else
  5737. if test -n "$ac_ct_OBJDUMP"; then
  5738. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5739. else
  5740. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5741. for as_dir in $PATH
  5742. do
  5743. IFS=$as_save_IFS
  5744. test -z "$as_dir" && as_dir=.
  5745. for ac_exec_ext in '' $ac_executable_extensions; do
  5746. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5747. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5748. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5749. break 2
  5750. fi
  5751. done
  5752. done
  5753. IFS=$as_save_IFS
  5754. fi
  5755. fi
  5756. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5757. if test -n "$ac_ct_OBJDUMP"; then
  5758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5759. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5760. else
  5761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5762. $as_echo "no" >&6; }
  5763. fi
  5764. if test "x$ac_ct_OBJDUMP" = x; then
  5765. OBJDUMP="false"
  5766. else
  5767. case $cross_compiling:$ac_tool_warned in
  5768. yes:)
  5769. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5770. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5771. ac_tool_warned=yes ;;
  5772. esac
  5773. OBJDUMP=$ac_ct_OBJDUMP
  5774. fi
  5775. else
  5776. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5777. fi
  5778. ;;
  5779. esac
  5780. test -z "$AS" && AS=as
  5781. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5782. test -z "$OBJDUMP" && OBJDUMP=objdump
  5783. enable_dlopen=no
  5784. # Check whether --enable-shared was given.
  5785. if test "${enable_shared+set}" = set; then :
  5786. enableval=$enable_shared; p=${PACKAGE-default}
  5787. case $enableval in
  5788. yes) enable_shared=yes ;;
  5789. no) enable_shared=no ;;
  5790. *)
  5791. enable_shared=no
  5792. # Look at the argument we got. We use all the common list separators.
  5793. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  5794. for pkg in $enableval; do
  5795. IFS="$lt_save_ifs"
  5796. if test "X$pkg" = "X$p"; then
  5797. enable_shared=yes
  5798. fi
  5799. done
  5800. IFS="$lt_save_ifs"
  5801. ;;
  5802. esac
  5803. else
  5804. enable_shared=yes
  5805. fi
  5806. # Check whether --enable-static was given.
  5807. if test "${enable_static+set}" = set; then :
  5808. enableval=$enable_static; p=${PACKAGE-default}
  5809. case $enableval in
  5810. yes) enable_static=yes ;;
  5811. no) enable_static=no ;;
  5812. *)
  5813. enable_static=no
  5814. # Look at the argument we got. We use all the common list separators.
  5815. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  5816. for pkg in $enableval; do
  5817. IFS="$lt_save_ifs"
  5818. if test "X$pkg" = "X$p"; then
  5819. enable_static=yes
  5820. fi
  5821. done
  5822. IFS="$lt_save_ifs"
  5823. ;;
  5824. esac
  5825. else
  5826. enable_static=yes
  5827. fi
  5828. # Check whether --with-pic was given.
  5829. if test "${with_pic+set}" = set; then :
  5830. withval=$with_pic; pic_mode="$withval"
  5831. else
  5832. pic_mode=default
  5833. fi
  5834. test -z "$pic_mode" && pic_mode=default
  5835. # Check whether --enable-fast-install was given.
  5836. if test "${enable_fast_install+set}" = set; then :
  5837. enableval=$enable_fast_install; p=${PACKAGE-default}
  5838. case $enableval in
  5839. yes) enable_fast_install=yes ;;
  5840. no) enable_fast_install=no ;;
  5841. *)
  5842. enable_fast_install=no
  5843. # Look at the argument we got. We use all the common list separators.
  5844. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  5845. for pkg in $enableval; do
  5846. IFS="$lt_save_ifs"
  5847. if test "X$pkg" = "X$p"; then
  5848. enable_fast_install=yes
  5849. fi
  5850. done
  5851. IFS="$lt_save_ifs"
  5852. ;;
  5853. esac
  5854. else
  5855. enable_fast_install=yes
  5856. fi
  5857. # This can be used to rebuild libtool when needed
  5858. LIBTOOL_DEPS="$ltmain"
  5859. # Always use our own libtool.
  5860. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  5861. test -z "$LN_S" && LN_S="ln -s"
  5862. if test -n "${ZSH_VERSION+set}" ; then
  5863. setopt NO_GLOB_SUBST
  5864. fi
  5865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  5866. $as_echo_n "checking for objdir... " >&6; }
  5867. if ${lt_cv_objdir+:} false; then :
  5868. $as_echo_n "(cached) " >&6
  5869. else
  5870. rm -f .libs 2>/dev/null
  5871. mkdir .libs 2>/dev/null
  5872. if test -d .libs; then
  5873. lt_cv_objdir=.libs
  5874. else
  5875. # MS-DOS does not allow filenames that begin with a dot.
  5876. lt_cv_objdir=_libs
  5877. fi
  5878. rmdir .libs 2>/dev/null
  5879. fi
  5880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  5881. $as_echo "$lt_cv_objdir" >&6; }
  5882. objdir=$lt_cv_objdir
  5883. cat >>confdefs.h <<_ACEOF
  5884. #define LT_OBJDIR "$lt_cv_objdir/"
  5885. _ACEOF
  5886. case $host_os in
  5887. aix3*)
  5888. # AIX sometimes has problems with the GCC collect2 program. For some
  5889. # reason, if we set the COLLECT_NAMES environment variable, the problems
  5890. # vanish in a puff of smoke.
  5891. if test "X${COLLECT_NAMES+set}" != Xset; then
  5892. COLLECT_NAMES=
  5893. export COLLECT_NAMES
  5894. fi
  5895. ;;
  5896. esac
  5897. # Sed substitution that helps us do robust quoting. It backslashifies
  5898. # metacharacters that are still active within double-quoted strings.
  5899. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  5900. # Same as above, but do not quote variable references.
  5901. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  5902. # Sed substitution to delay expansion of an escaped shell variable in a
  5903. # double_quote_subst'ed string.
  5904. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5905. # Sed substitution to delay expansion of an escaped single quote.
  5906. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  5907. # Sed substitution to avoid accidental globbing in evaled expressions
  5908. no_glob_subst='s/\*/\\\*/g'
  5909. # Global variables:
  5910. ofile=libtool
  5911. can_build_shared=yes
  5912. # All known linkers require a `.a' archive for static linking (except MSVC,
  5913. # which needs '.lib').
  5914. libext=a
  5915. with_gnu_ld="$lt_cv_prog_gnu_ld"
  5916. old_CC="$CC"
  5917. old_CFLAGS="$CFLAGS"
  5918. # Set sane defaults for various variables
  5919. test -z "$CC" && CC=cc
  5920. test -z "$LTCC" && LTCC=$CC
  5921. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  5922. test -z "$LD" && LD=ld
  5923. test -z "$ac_objext" && ac_objext=o
  5924. for cc_temp in $compiler""; do
  5925. case $cc_temp in
  5926. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  5927. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  5928. \-*) ;;
  5929. *) break;;
  5930. esac
  5931. done
  5932. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  5933. # Only perform the check for file, if the check method requires it
  5934. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  5935. case $deplibs_check_method in
  5936. file_magic*)
  5937. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  5938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  5939. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  5940. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  5941. $as_echo_n "(cached) " >&6
  5942. else
  5943. case $MAGIC_CMD in
  5944. [\\/*] | ?:[\\/]*)
  5945. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  5946. ;;
  5947. *)
  5948. lt_save_MAGIC_CMD="$MAGIC_CMD"
  5949. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5950. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  5951. for ac_dir in $ac_dummy; do
  5952. IFS="$lt_save_ifs"
  5953. test -z "$ac_dir" && ac_dir=.
  5954. if test -f $ac_dir/${ac_tool_prefix}file; then
  5955. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  5956. if test -n "$file_magic_test_file"; then
  5957. case $deplibs_check_method in
  5958. "file_magic "*)
  5959. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  5960. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5961. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  5962. $EGREP "$file_magic_regex" > /dev/null; then
  5963. :
  5964. else
  5965. cat <<_LT_EOF 1>&2
  5966. *** Warning: the command libtool uses to detect shared libraries,
  5967. *** $file_magic_cmd, produces output that libtool cannot recognize.
  5968. *** The result is that libtool may fail to recognize shared libraries
  5969. *** as such. This will affect the creation of libtool libraries that
  5970. *** depend on shared libraries, but programs linked with such libtool
  5971. *** libraries will work regardless of this problem. Nevertheless, you
  5972. *** may want to report the problem to your system manager and/or to
  5973. *** [email protected]
  5974. _LT_EOF
  5975. fi ;;
  5976. esac
  5977. fi
  5978. break
  5979. fi
  5980. done
  5981. IFS="$lt_save_ifs"
  5982. MAGIC_CMD="$lt_save_MAGIC_CMD"
  5983. ;;
  5984. esac
  5985. fi
  5986. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5987. if test -n "$MAGIC_CMD"; then
  5988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  5989. $as_echo "$MAGIC_CMD" >&6; }
  5990. else
  5991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5992. $as_echo "no" >&6; }
  5993. fi
  5994. if test -z "$lt_cv_path_MAGIC_CMD"; then
  5995. if test -n "$ac_tool_prefix"; then
  5996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  5997. $as_echo_n "checking for file... " >&6; }
  5998. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  5999. $as_echo_n "(cached) " >&6
  6000. else
  6001. case $MAGIC_CMD in
  6002. [\\/*] | ?:[\\/]*)
  6003. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6004. ;;
  6005. *)
  6006. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6007. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6008. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6009. for ac_dir in $ac_dummy; do
  6010. IFS="$lt_save_ifs"
  6011. test -z "$ac_dir" && ac_dir=.
  6012. if test -f $ac_dir/file; then
  6013. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6014. if test -n "$file_magic_test_file"; then
  6015. case $deplibs_check_method in
  6016. "file_magic "*)
  6017. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6018. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6019. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6020. $EGREP "$file_magic_regex" > /dev/null; then
  6021. :
  6022. else
  6023. cat <<_LT_EOF 1>&2
  6024. *** Warning: the command libtool uses to detect shared libraries,
  6025. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6026. *** The result is that libtool may fail to recognize shared libraries
  6027. *** as such. This will affect the creation of libtool libraries that
  6028. *** depend on shared libraries, but programs linked with such libtool
  6029. *** libraries will work regardless of this problem. Nevertheless, you
  6030. *** may want to report the problem to your system manager and/or to
  6031. *** [email protected]
  6032. _LT_EOF
  6033. fi ;;
  6034. esac
  6035. fi
  6036. break
  6037. fi
  6038. done
  6039. IFS="$lt_save_ifs"
  6040. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6041. ;;
  6042. esac
  6043. fi
  6044. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6045. if test -n "$MAGIC_CMD"; then
  6046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6047. $as_echo "$MAGIC_CMD" >&6; }
  6048. else
  6049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6050. $as_echo "no" >&6; }
  6051. fi
  6052. else
  6053. MAGIC_CMD=:
  6054. fi
  6055. fi
  6056. fi
  6057. ;;
  6058. esac
  6059. # Use C for the default configuration in the libtool script
  6060. lt_save_CC="$CC"
  6061. ac_ext=c
  6062. ac_cpp='$CPP $CPPFLAGS'
  6063. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6064. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6065. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6066. # Source file extension for C test sources.
  6067. ac_ext=c
  6068. # Object file extension for compiled C test sources.
  6069. objext=o
  6070. objext=$objext
  6071. # Code to be used in simple compile tests
  6072. lt_simple_compile_test_code="int some_variable = 0;"
  6073. # Code to be used in simple link tests
  6074. lt_simple_link_test_code='int main(){return(0);}'
  6075. # If no C compiler was specified, use CC.
  6076. LTCC=${LTCC-"$CC"}
  6077. # If no C compiler flags were specified, use CFLAGS.
  6078. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6079. # Allow CC to be a program name with arguments.
  6080. compiler=$CC
  6081. # Save the default compiler, since it gets overwritten when the other
  6082. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6083. compiler_DEFAULT=$CC
  6084. # save warnings/boilerplate of simple test code
  6085. ac_outfile=conftest.$ac_objext
  6086. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6087. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6088. _lt_compiler_boilerplate=`cat conftest.err`
  6089. $RM conftest*
  6090. ac_outfile=conftest.$ac_objext
  6091. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6092. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6093. _lt_linker_boilerplate=`cat conftest.err`
  6094. $RM -r conftest*
  6095. ## CAVEAT EMPTOR:
  6096. ## There is no encapsulation within the following macros, do not change
  6097. ## the running order or otherwise move them around unless you know exactly
  6098. ## what you are doing...
  6099. if test -n "$compiler"; then
  6100. lt_prog_compiler_no_builtin_flag=
  6101. if test "$GCC" = yes; then
  6102. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  6103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6104. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6105. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6106. $as_echo_n "(cached) " >&6
  6107. else
  6108. lt_cv_prog_compiler_rtti_exceptions=no
  6109. ac_outfile=conftest.$ac_objext
  6110. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6111. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6112. # Insert the option either (1) after the last *FLAGS variable, or
  6113. # (2) before a word containing "conftest.", or (3) at the end.
  6114. # Note that $ac_compile itself does not contain backslashes and begins
  6115. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6116. # The option is referenced via a variable to avoid confusing sed.
  6117. lt_compile=`echo "$ac_compile" | $SED \
  6118. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6119. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6120. -e 's:$: $lt_compiler_flag:'`
  6121. (eval echo "\"\$as_me:7031: $lt_compile\"" >&5)
  6122. (eval "$lt_compile" 2>conftest.err)
  6123. ac_status=$?
  6124. cat conftest.err >&5
  6125. echo "$as_me:7035: \$? = $ac_status" >&5
  6126. if (exit $ac_status) && test -s "$ac_outfile"; then
  6127. # The compiler can only warn and ignore the option if not recognized
  6128. # So say no if there are warnings other than the usual output.
  6129. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6130. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6131. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6132. lt_cv_prog_compiler_rtti_exceptions=yes
  6133. fi
  6134. fi
  6135. $RM conftest*
  6136. fi
  6137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6138. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6139. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6140. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6141. else
  6142. :
  6143. fi
  6144. fi
  6145. lt_prog_compiler_wl=
  6146. lt_prog_compiler_pic=
  6147. lt_prog_compiler_static=
  6148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  6149. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  6150. if test "$GCC" = yes; then
  6151. lt_prog_compiler_wl='-Wl,'
  6152. lt_prog_compiler_static='-static'
  6153. case $host_os in
  6154. aix*)
  6155. # All AIX code is PIC.
  6156. if test "$host_cpu" = ia64; then
  6157. # AIX 5 now supports IA64 processor
  6158. lt_prog_compiler_static='-Bstatic'
  6159. fi
  6160. ;;
  6161. amigaos*)
  6162. case $host_cpu in
  6163. powerpc)
  6164. # see comment about AmigaOS4 .so support
  6165. lt_prog_compiler_pic='-fPIC'
  6166. ;;
  6167. m68k)
  6168. # FIXME: we need at least 68020 code to build shared libraries, but
  6169. # adding the `-m68020' flag to GCC prevents building anything better,
  6170. # like `-m68040'.
  6171. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6172. ;;
  6173. esac
  6174. ;;
  6175. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6176. # PIC is the default for these OSes.
  6177. ;;
  6178. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6179. # This hack is so that the source file can tell whether it is being
  6180. # built for inclusion in a dll (and should export symbols for example).
  6181. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6182. # (--disable-auto-import) libraries
  6183. lt_prog_compiler_pic='-DDLL_EXPORT'
  6184. ;;
  6185. darwin* | rhapsody*)
  6186. # PIC is the default on this platform
  6187. # Common symbols not allowed in MH_DYLIB files
  6188. lt_prog_compiler_pic='-fno-common'
  6189. ;;
  6190. hpux*)
  6191. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6192. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6193. # sets the default TLS model and affects inlining.
  6194. case $host_cpu in
  6195. hppa*64*)
  6196. # +Z the default
  6197. ;;
  6198. *)
  6199. lt_prog_compiler_pic='-fPIC'
  6200. ;;
  6201. esac
  6202. ;;
  6203. interix[3-9]*)
  6204. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6205. # Instead, we relocate shared libraries at runtime.
  6206. ;;
  6207. msdosdjgpp*)
  6208. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6209. # on systems that don't support them.
  6210. lt_prog_compiler_can_build_shared=no
  6211. enable_shared=no
  6212. ;;
  6213. *nto* | *qnx*)
  6214. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6215. # it will coredump.
  6216. lt_prog_compiler_pic='-fPIC -shared'
  6217. ;;
  6218. sysv4*MP*)
  6219. if test -d /usr/nec; then
  6220. lt_prog_compiler_pic=-Kconform_pic
  6221. fi
  6222. ;;
  6223. *)
  6224. lt_prog_compiler_pic='-fPIC'
  6225. ;;
  6226. esac
  6227. else
  6228. # PORTME Check for flag to pass linker flags through the system compiler.
  6229. case $host_os in
  6230. aix*)
  6231. lt_prog_compiler_wl='-Wl,'
  6232. if test "$host_cpu" = ia64; then
  6233. # AIX 5 now supports IA64 processor
  6234. lt_prog_compiler_static='-Bstatic'
  6235. else
  6236. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6237. fi
  6238. ;;
  6239. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6240. # This hack is so that the source file can tell whether it is being
  6241. # built for inclusion in a dll (and should export symbols for example).
  6242. lt_prog_compiler_pic='-DDLL_EXPORT'
  6243. ;;
  6244. hpux9* | hpux10* | hpux11*)
  6245. lt_prog_compiler_wl='-Wl,'
  6246. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6247. # not for PA HP-UX.
  6248. case $host_cpu in
  6249. hppa*64*|ia64*)
  6250. # +Z the default
  6251. ;;
  6252. *)
  6253. lt_prog_compiler_pic='+Z'
  6254. ;;
  6255. esac
  6256. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6257. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6258. ;;
  6259. irix5* | irix6* | nonstopux*)
  6260. lt_prog_compiler_wl='-Wl,'
  6261. # PIC (with -KPIC) is the default.
  6262. lt_prog_compiler_static='-non_shared'
  6263. ;;
  6264. linux* | k*bsd*-gnu)
  6265. case $cc_basename in
  6266. # old Intel for x86_64 which still supported -KPIC.
  6267. ecc*)
  6268. lt_prog_compiler_wl='-Wl,'
  6269. lt_prog_compiler_pic='-KPIC'
  6270. lt_prog_compiler_static='-static'
  6271. ;;
  6272. # icc used to be incompatible with GCC.
  6273. # ICC 10 doesn't accept -KPIC any more.
  6274. icc* | ifort*)
  6275. lt_prog_compiler_wl='-Wl,'
  6276. lt_prog_compiler_pic='-fPIC'
  6277. lt_prog_compiler_static='-static'
  6278. ;;
  6279. # Lahey Fortran 8.1.
  6280. lf95*)
  6281. lt_prog_compiler_wl='-Wl,'
  6282. lt_prog_compiler_pic='--shared'
  6283. lt_prog_compiler_static='--static'
  6284. ;;
  6285. pgcc* | pgf77* | pgf90* | pgf95*)
  6286. # Portland Group compilers (*not* the Pentium gcc compiler,
  6287. # which looks to be a dead project)
  6288. lt_prog_compiler_wl='-Wl,'
  6289. lt_prog_compiler_pic='-fpic'
  6290. lt_prog_compiler_static='-Bstatic'
  6291. ;;
  6292. ccc*)
  6293. lt_prog_compiler_wl='-Wl,'
  6294. # All Alpha code is PIC.
  6295. lt_prog_compiler_static='-non_shared'
  6296. ;;
  6297. xl*)
  6298. # IBM XL C 8.0/Fortran 10.1 on PPC
  6299. lt_prog_compiler_wl='-Wl,'
  6300. lt_prog_compiler_pic='-qpic'
  6301. lt_prog_compiler_static='-qstaticlink'
  6302. ;;
  6303. *)
  6304. case `$CC -V 2>&1 | sed 5q` in
  6305. *Sun\ C*)
  6306. # Sun C 5.9
  6307. lt_prog_compiler_pic='-KPIC'
  6308. lt_prog_compiler_static='-Bstatic'
  6309. lt_prog_compiler_wl='-Wl,'
  6310. ;;
  6311. *Sun\ F*)
  6312. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  6313. lt_prog_compiler_pic='-KPIC'
  6314. lt_prog_compiler_static='-Bstatic'
  6315. lt_prog_compiler_wl=''
  6316. ;;
  6317. esac
  6318. ;;
  6319. esac
  6320. ;;
  6321. newsos6)
  6322. lt_prog_compiler_pic='-KPIC'
  6323. lt_prog_compiler_static='-Bstatic'
  6324. ;;
  6325. *nto* | *qnx*)
  6326. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6327. # it will coredump.
  6328. lt_prog_compiler_pic='-fPIC -shared'
  6329. ;;
  6330. osf3* | osf4* | osf5*)
  6331. lt_prog_compiler_wl='-Wl,'
  6332. # All OSF/1 code is PIC.
  6333. lt_prog_compiler_static='-non_shared'
  6334. ;;
  6335. rdos*)
  6336. lt_prog_compiler_static='-non_shared'
  6337. ;;
  6338. solaris*)
  6339. lt_prog_compiler_pic='-KPIC'
  6340. lt_prog_compiler_static='-Bstatic'
  6341. case $cc_basename in
  6342. f77* | f90* | f95*)
  6343. lt_prog_compiler_wl='-Qoption ld ';;
  6344. *)
  6345. lt_prog_compiler_wl='-Wl,';;
  6346. esac
  6347. ;;
  6348. sunos4*)
  6349. lt_prog_compiler_wl='-Qoption ld '
  6350. lt_prog_compiler_pic='-PIC'
  6351. lt_prog_compiler_static='-Bstatic'
  6352. ;;
  6353. sysv4 | sysv4.2uw2* | sysv4.3*)
  6354. lt_prog_compiler_wl='-Wl,'
  6355. lt_prog_compiler_pic='-KPIC'
  6356. lt_prog_compiler_static='-Bstatic'
  6357. ;;
  6358. sysv4*MP*)
  6359. if test -d /usr/nec ;then
  6360. lt_prog_compiler_pic='-Kconform_pic'
  6361. lt_prog_compiler_static='-Bstatic'
  6362. fi
  6363. ;;
  6364. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  6365. lt_prog_compiler_wl='-Wl,'
  6366. lt_prog_compiler_pic='-KPIC'
  6367. lt_prog_compiler_static='-Bstatic'
  6368. ;;
  6369. unicos*)
  6370. lt_prog_compiler_wl='-Wl,'
  6371. lt_prog_compiler_can_build_shared=no
  6372. ;;
  6373. uts4*)
  6374. lt_prog_compiler_pic='-pic'
  6375. lt_prog_compiler_static='-Bstatic'
  6376. ;;
  6377. *)
  6378. lt_prog_compiler_can_build_shared=no
  6379. ;;
  6380. esac
  6381. fi
  6382. case $host_os in
  6383. # For platforms which do not support PIC, -DPIC is meaningless:
  6384. *djgpp*)
  6385. lt_prog_compiler_pic=
  6386. ;;
  6387. *)
  6388. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  6389. ;;
  6390. esac
  6391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  6392. $as_echo "$lt_prog_compiler_pic" >&6; }
  6393. #
  6394. # Check to make sure the PIC flag actually works.
  6395. #
  6396. if test -n "$lt_prog_compiler_pic"; then
  6397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  6398. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  6399. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  6400. $as_echo_n "(cached) " >&6
  6401. else
  6402. lt_cv_prog_compiler_pic_works=no
  6403. ac_outfile=conftest.$ac_objext
  6404. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6405. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  6406. # Insert the option either (1) after the last *FLAGS variable, or
  6407. # (2) before a word containing "conftest.", or (3) at the end.
  6408. # Note that $ac_compile itself does not contain backslashes and begins
  6409. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6410. # The option is referenced via a variable to avoid confusing sed.
  6411. lt_compile=`echo "$ac_compile" | $SED \
  6412. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6413. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6414. -e 's:$: $lt_compiler_flag:'`
  6415. (eval echo "\"\$as_me:7370: $lt_compile\"" >&5)
  6416. (eval "$lt_compile" 2>conftest.err)
  6417. ac_status=$?
  6418. cat conftest.err >&5
  6419. echo "$as_me:7374: \$? = $ac_status" >&5
  6420. if (exit $ac_status) && test -s "$ac_outfile"; then
  6421. # The compiler can only warn and ignore the option if not recognized
  6422. # So say no if there are warnings other than the usual output.
  6423. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6424. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6425. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6426. lt_cv_prog_compiler_pic_works=yes
  6427. fi
  6428. fi
  6429. $RM conftest*
  6430. fi
  6431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  6432. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  6433. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  6434. case $lt_prog_compiler_pic in
  6435. "" | " "*) ;;
  6436. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  6437. esac
  6438. else
  6439. lt_prog_compiler_pic=
  6440. lt_prog_compiler_can_build_shared=no
  6441. fi
  6442. fi
  6443. #
  6444. # Check to make sure the static flag actually works.
  6445. #
  6446. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  6447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  6448. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  6449. if ${lt_cv_prog_compiler_static_works+:} false; then :
  6450. $as_echo_n "(cached) " >&6
  6451. else
  6452. lt_cv_prog_compiler_static_works=no
  6453. save_LDFLAGS="$LDFLAGS"
  6454. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  6455. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  6456. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  6457. # The linker can only warn and ignore the option if not recognized
  6458. # So say no if there are warnings
  6459. if test -s conftest.err; then
  6460. # Append any errors to the config.log.
  6461. cat conftest.err 1>&5
  6462. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  6463. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6464. if diff conftest.exp conftest.er2 >/dev/null; then
  6465. lt_cv_prog_compiler_static_works=yes
  6466. fi
  6467. else
  6468. lt_cv_prog_compiler_static_works=yes
  6469. fi
  6470. fi
  6471. $RM -r conftest*
  6472. LDFLAGS="$save_LDFLAGS"
  6473. fi
  6474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  6475. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  6476. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  6477. :
  6478. else
  6479. lt_prog_compiler_static=
  6480. fi
  6481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  6482. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  6483. if ${lt_cv_prog_compiler_c_o+:} false; then :
  6484. $as_echo_n "(cached) " >&6
  6485. else
  6486. lt_cv_prog_compiler_c_o=no
  6487. $RM -r conftest 2>/dev/null
  6488. mkdir conftest
  6489. cd conftest
  6490. mkdir out
  6491. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6492. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6493. # Insert the option either (1) after the last *FLAGS variable, or
  6494. # (2) before a word containing "conftest.", or (3) at the end.
  6495. # Note that $ac_compile itself does not contain backslashes and begins
  6496. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6497. lt_compile=`echo "$ac_compile" | $SED \
  6498. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6499. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6500. -e 's:$: $lt_compiler_flag:'`
  6501. (eval echo "\"\$as_me:7475: $lt_compile\"" >&5)
  6502. (eval "$lt_compile" 2>out/conftest.err)
  6503. ac_status=$?
  6504. cat out/conftest.err >&5
  6505. echo "$as_me:7479: \$? = $ac_status" >&5
  6506. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6507. then
  6508. # The compiler can only warn and ignore the option if not recognized
  6509. # So say no if there are warnings
  6510. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  6511. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  6512. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6513. lt_cv_prog_compiler_c_o=yes
  6514. fi
  6515. fi
  6516. chmod u+w . 2>&5
  6517. $RM conftest*
  6518. # SGI C++ compiler will create directory out/ii_files/ for
  6519. # template instantiation
  6520. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  6521. $RM out/* && rmdir out
  6522. cd ..
  6523. $RM -r conftest
  6524. $RM conftest*
  6525. fi
  6526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  6527. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  6528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  6529. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  6530. if ${lt_cv_prog_compiler_c_o+:} false; then :
  6531. $as_echo_n "(cached) " >&6
  6532. else
  6533. lt_cv_prog_compiler_c_o=no
  6534. $RM -r conftest 2>/dev/null
  6535. mkdir conftest
  6536. cd conftest
  6537. mkdir out
  6538. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6539. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6540. # Insert the option either (1) after the last *FLAGS variable, or
  6541. # (2) before a word containing "conftest.", or (3) at the end.
  6542. # Note that $ac_compile itself does not contain backslashes and begins
  6543. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6544. lt_compile=`echo "$ac_compile" | $SED \
  6545. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6546. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6547. -e 's:$: $lt_compiler_flag:'`
  6548. (eval echo "\"\$as_me:7530: $lt_compile\"" >&5)
  6549. (eval "$lt_compile" 2>out/conftest.err)
  6550. ac_status=$?
  6551. cat out/conftest.err >&5
  6552. echo "$as_me:7534: \$? = $ac_status" >&5
  6553. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6554. then
  6555. # The compiler can only warn and ignore the option if not recognized
  6556. # So say no if there are warnings
  6557. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  6558. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  6559. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6560. lt_cv_prog_compiler_c_o=yes
  6561. fi
  6562. fi
  6563. chmod u+w . 2>&5
  6564. $RM conftest*
  6565. # SGI C++ compiler will create directory out/ii_files/ for
  6566. # template instantiation
  6567. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  6568. $RM out/* && rmdir out
  6569. cd ..
  6570. $RM -r conftest
  6571. $RM conftest*
  6572. fi
  6573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  6574. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  6575. hard_links="nottested"
  6576. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  6577. # do not overwrite the value of need_locks provided by the user
  6578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  6579. $as_echo_n "checking if we can lock with hard links... " >&6; }
  6580. hard_links=yes
  6581. $RM conftest*
  6582. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6583. touch conftest.a
  6584. ln conftest.a conftest.b 2>&5 || hard_links=no
  6585. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  6587. $as_echo "$hard_links" >&6; }
  6588. if test "$hard_links" = no; then
  6589. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  6590. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  6591. need_locks=warn
  6592. fi
  6593. else
  6594. need_locks=no
  6595. fi
  6596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  6597. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  6598. runpath_var=
  6599. allow_undefined_flag=
  6600. always_export_symbols=no
  6601. archive_cmds=
  6602. archive_expsym_cmds=
  6603. compiler_needs_object=no
  6604. enable_shared_with_static_runtimes=no
  6605. export_dynamic_flag_spec=
  6606. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  6607. hardcode_automatic=no
  6608. hardcode_direct=no
  6609. hardcode_direct_absolute=no
  6610. hardcode_libdir_flag_spec=
  6611. hardcode_libdir_flag_spec_ld=
  6612. hardcode_libdir_separator=
  6613. hardcode_minus_L=no
  6614. hardcode_shlibpath_var=unsupported
  6615. inherit_rpath=no
  6616. link_all_deplibs=unknown
  6617. module_cmds=
  6618. module_expsym_cmds=
  6619. old_archive_from_new_cmds=
  6620. old_archive_from_expsyms_cmds=
  6621. thread_safe_flag_spec=
  6622. whole_archive_flag_spec=
  6623. # include_expsyms should be a list of space-separated symbols to be *always*
  6624. # included in the symbol list
  6625. include_expsyms=
  6626. # exclude_expsyms can be an extended regexp of symbols to exclude
  6627. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  6628. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  6629. # as well as any symbol that contains `d'.
  6630. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  6631. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  6632. # platforms (ab)use it in PIC code, but their linkers get confused if
  6633. # the symbol is explicitly referenced. Since portable code cannot
  6634. # rely on this symbol name, it's probably fine to never include it in
  6635. # preloaded symbol tables.
  6636. # Exclude shared library initialization/finalization symbols.
  6637. extract_expsyms_cmds=
  6638. case $host_os in
  6639. cygwin* | mingw* | pw32* | cegcc*)
  6640. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  6641. # When not using gcc, we currently assume that we are using
  6642. # Microsoft Visual C++.
  6643. if test "$GCC" != yes; then
  6644. with_gnu_ld=no
  6645. fi
  6646. ;;
  6647. interix*)
  6648. # we just hope/assume this is gcc and not c89 (= MSVC++)
  6649. with_gnu_ld=yes
  6650. ;;
  6651. openbsd*)
  6652. with_gnu_ld=no
  6653. ;;
  6654. esac
  6655. ld_shlibs=yes
  6656. if test "$with_gnu_ld" = yes; then
  6657. # If archive_cmds runs LD, not CC, wlarc should be empty
  6658. wlarc='${wl}'
  6659. # Set some defaults for GNU ld with shared library support. These
  6660. # are reset later if shared libraries are not supported. Putting them
  6661. # here allows them to be overridden if necessary.
  6662. runpath_var=LD_RUN_PATH
  6663. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6664. export_dynamic_flag_spec='${wl}--export-dynamic'
  6665. # ancient GNU ld didn't support --whole-archive et. al.
  6666. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  6667. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6668. else
  6669. whole_archive_flag_spec=
  6670. fi
  6671. supports_anon_versioning=no
  6672. case `$LD -v 2>&1` in
  6673. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  6674. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  6675. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  6676. *\ 2.11.*) ;; # other 2.11 versions
  6677. *) supports_anon_versioning=yes ;;
  6678. esac
  6679. # See if GNU ld supports shared libraries.
  6680. case $host_os in
  6681. aix[3-9]*)
  6682. # On AIX/PPC, the GNU linker is very broken
  6683. if test "$host_cpu" != ia64; then
  6684. ld_shlibs=no
  6685. cat <<_LT_EOF 1>&2
  6686. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  6687. *** to be unable to reliably create shared libraries on AIX.
  6688. *** Therefore, libtool is disabling shared libraries support. If you
  6689. *** really care for shared libraries, you may want to modify your PATH
  6690. *** so that a non-GNU linker is found, and then restart.
  6691. _LT_EOF
  6692. fi
  6693. ;;
  6694. amigaos*)
  6695. case $host_cpu in
  6696. powerpc)
  6697. # see comment about AmigaOS4 .so support
  6698. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6699. archive_expsym_cmds=''
  6700. ;;
  6701. m68k)
  6702. 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)'
  6703. hardcode_libdir_flag_spec='-L$libdir'
  6704. hardcode_minus_L=yes
  6705. ;;
  6706. esac
  6707. ;;
  6708. beos*)
  6709. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  6710. allow_undefined_flag=unsupported
  6711. # Joseph Beckenbach <[email protected]> says some releases of gcc
  6712. # support --undefined. This deserves some investigation. FIXME
  6713. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6714. else
  6715. ld_shlibs=no
  6716. fi
  6717. ;;
  6718. cygwin* | mingw* | pw32* | cegcc*)
  6719. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  6720. # as there is no search path for DLLs.
  6721. hardcode_libdir_flag_spec='-L$libdir'
  6722. allow_undefined_flag=unsupported
  6723. always_export_symbols=no
  6724. enable_shared_with_static_runtimes=yes
  6725. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  6726. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  6727. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  6728. # If the export-symbols file already is a .def file (1st line
  6729. # is EXPORTS), use it as is; otherwise, prepend...
  6730. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  6731. cp $export_symbols $output_objdir/$soname.def;
  6732. else
  6733. echo EXPORTS > $output_objdir/$soname.def;
  6734. cat $export_symbols >> $output_objdir/$soname.def;
  6735. fi~
  6736. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  6737. else
  6738. ld_shlibs=no
  6739. fi
  6740. ;;
  6741. interix[3-9]*)
  6742. hardcode_direct=no
  6743. hardcode_shlibpath_var=no
  6744. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6745. export_dynamic_flag_spec='${wl}-E'
  6746. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  6747. # Instead, shared libraries are loaded at an image base (0x10000000 by
  6748. # default) and relocated if they conflict, which is a slow very memory
  6749. # consuming and fragmenting process. To avoid this, we pick a random,
  6750. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  6751. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  6752. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  6753. 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'
  6754. ;;
  6755. gnu* | linux* | tpf* | k*bsd*-gnu)
  6756. tmp_diet=no
  6757. if test "$host_os" = linux-dietlibc; then
  6758. case $cc_basename in
  6759. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  6760. esac
  6761. fi
  6762. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  6763. && test "$tmp_diet" = no
  6764. then
  6765. tmp_addflag=
  6766. tmp_sharedflag='-shared'
  6767. case $cc_basename,$host_cpu in
  6768. pgcc*) # Portland Group C compiler
  6769. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  6770. tmp_addflag=' $pic_flag'
  6771. ;;
  6772. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  6773. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  6774. tmp_addflag=' $pic_flag -Mnomain' ;;
  6775. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  6776. tmp_addflag=' -i_dynamic' ;;
  6777. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  6778. tmp_addflag=' -i_dynamic -nofor_main' ;;
  6779. ifc* | ifort*) # Intel Fortran compiler
  6780. tmp_addflag=' -nofor_main' ;;
  6781. lf95*) # Lahey Fortran 8.1
  6782. whole_archive_flag_spec=
  6783. tmp_sharedflag='--shared' ;;
  6784. xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  6785. tmp_sharedflag='-qmkshrobj'
  6786. tmp_addflag= ;;
  6787. esac
  6788. case `$CC -V 2>&1 | sed 5q` in
  6789. *Sun\ C*) # Sun C 5.9
  6790. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  6791. compiler_needs_object=yes
  6792. tmp_sharedflag='-G' ;;
  6793. *Sun\ F*) # Sun Fortran 8.3
  6794. tmp_sharedflag='-G' ;;
  6795. esac
  6796. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6797. if test "x$supports_anon_versioning" = xyes; then
  6798. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  6799. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  6800. echo "local: *; };" >> $output_objdir/$libname.ver~
  6801. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  6802. fi
  6803. case $cc_basename in
  6804. xlf*)
  6805. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  6806. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  6807. hardcode_libdir_flag_spec=
  6808. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  6809. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  6810. if test "x$supports_anon_versioning" = xyes; then
  6811. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  6812. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  6813. echo "local: *; };" >> $output_objdir/$libname.ver~
  6814. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  6815. fi
  6816. ;;
  6817. esac
  6818. else
  6819. ld_shlibs=no
  6820. fi
  6821. ;;
  6822. netbsd*)
  6823. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  6824. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  6825. wlarc=
  6826. else
  6827. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6828. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6829. fi
  6830. ;;
  6831. solaris*)
  6832. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  6833. ld_shlibs=no
  6834. cat <<_LT_EOF 1>&2
  6835. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  6836. *** create shared libraries on Solaris systems. Therefore, libtool
  6837. *** is disabling shared libraries support. We urge you to upgrade GNU
  6838. *** binutils to release 2.9.1 or newer. Another option is to modify
  6839. *** your PATH or compiler configuration so that the native linker is
  6840. *** used, and then restart.
  6841. _LT_EOF
  6842. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  6843. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6844. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6845. else
  6846. ld_shlibs=no
  6847. fi
  6848. ;;
  6849. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  6850. case `$LD -v 2>&1` in
  6851. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  6852. ld_shlibs=no
  6853. cat <<_LT_EOF 1>&2
  6854. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  6855. *** reliably create shared libraries on SCO systems. Therefore, libtool
  6856. *** is disabling shared libraries support. We urge you to upgrade GNU
  6857. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  6858. *** your PATH or compiler configuration so that the native linker is
  6859. *** used, and then restart.
  6860. _LT_EOF
  6861. ;;
  6862. *)
  6863. # For security reasons, it is highly recommended that you always
  6864. # use absolute paths for naming shared libraries, and exclude the
  6865. # DT_RUNPATH tag from executables and libraries. But doing so
  6866. # requires that you compile everything twice, which is a pain.
  6867. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  6868. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6869. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6870. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6871. else
  6872. ld_shlibs=no
  6873. fi
  6874. ;;
  6875. esac
  6876. ;;
  6877. sunos4*)
  6878. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6879. wlarc=
  6880. hardcode_direct=yes
  6881. hardcode_shlibpath_var=no
  6882. ;;
  6883. *)
  6884. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  6885. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6886. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6887. else
  6888. ld_shlibs=no
  6889. fi
  6890. ;;
  6891. esac
  6892. if test "$ld_shlibs" = no; then
  6893. runpath_var=
  6894. hardcode_libdir_flag_spec=
  6895. export_dynamic_flag_spec=
  6896. whole_archive_flag_spec=
  6897. fi
  6898. else
  6899. # PORTME fill in a description of your system's linker (not GNU ld)
  6900. case $host_os in
  6901. aix3*)
  6902. allow_undefined_flag=unsupported
  6903. always_export_symbols=yes
  6904. 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'
  6905. # Note: this linker hardcodes the directories in LIBPATH if there
  6906. # are no directories specified by -L.
  6907. hardcode_minus_L=yes
  6908. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  6909. # Neither direct hardcoding nor static linking is supported with a
  6910. # broken collect2.
  6911. hardcode_direct=unsupported
  6912. fi
  6913. ;;
  6914. aix[4-9]*)
  6915. if test "$host_cpu" = ia64; then
  6916. # On IA64, the linker does run time linking by default, so we don't
  6917. # have to do anything special.
  6918. aix_use_runtimelinking=no
  6919. exp_sym_flag='-Bexport'
  6920. no_entry_flag=""
  6921. else
  6922. # If we're using GNU nm, then we don't want the "-C" option.
  6923. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  6924. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  6925. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  6926. else
  6927. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  6928. fi
  6929. aix_use_runtimelinking=no
  6930. # Test if we are trying to use run time linking or normal
  6931. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  6932. # need to do runtime linking.
  6933. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  6934. for ld_flag in $LDFLAGS; do
  6935. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  6936. aix_use_runtimelinking=yes
  6937. break
  6938. fi
  6939. done
  6940. ;;
  6941. esac
  6942. exp_sym_flag='-bexport'
  6943. no_entry_flag='-bnoentry'
  6944. fi
  6945. # When large executables or shared objects are built, AIX ld can
  6946. # have problems creating the table of contents. If linking a library
  6947. # or program results in "error TOC overflow" add -mminimal-toc to
  6948. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  6949. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  6950. archive_cmds=''
  6951. hardcode_direct=yes
  6952. hardcode_direct_absolute=yes
  6953. hardcode_libdir_separator=':'
  6954. link_all_deplibs=yes
  6955. file_list_spec='${wl}-f,'
  6956. if test "$GCC" = yes; then
  6957. case $host_os in aix4.[012]|aix4.[012].*)
  6958. # We only want to do this on AIX 4.2 and lower, the check
  6959. # below for broken collect2 doesn't work under 4.3+
  6960. collect2name=`${CC} -print-prog-name=collect2`
  6961. if test -f "$collect2name" &&
  6962. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  6963. then
  6964. # We have reworked collect2
  6965. :
  6966. else
  6967. # We have old collect2
  6968. hardcode_direct=unsupported
  6969. # It fails to find uninstalled libraries when the uninstalled
  6970. # path is not listed in the libpath. Setting hardcode_minus_L
  6971. # to unsupported forces relinking
  6972. hardcode_minus_L=yes
  6973. hardcode_libdir_flag_spec='-L$libdir'
  6974. hardcode_libdir_separator=
  6975. fi
  6976. ;;
  6977. esac
  6978. shared_flag='-shared'
  6979. if test "$aix_use_runtimelinking" = yes; then
  6980. shared_flag="$shared_flag "'${wl}-G'
  6981. fi
  6982. else
  6983. # not using gcc
  6984. if test "$host_cpu" = ia64; then
  6985. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  6986. # chokes on -Wl,-G. The following line is correct:
  6987. shared_flag='-G'
  6988. else
  6989. if test "$aix_use_runtimelinking" = yes; then
  6990. shared_flag='${wl}-G'
  6991. else
  6992. shared_flag='${wl}-bM:SRE'
  6993. fi
  6994. fi
  6995. fi
  6996. export_dynamic_flag_spec='${wl}-bexpall'
  6997. # It seems that -bexpall does not export symbols beginning with
  6998. # underscore (_), so it is better to generate a list of symbols to export.
  6999. always_export_symbols=yes
  7000. if test "$aix_use_runtimelinking" = yes; then
  7001. # Warning - without using the other runtime loading flags (-brtl),
  7002. # -berok will link without error, but may produce a broken library.
  7003. allow_undefined_flag='-berok'
  7004. # Determine the default libpath from the value encoded in an
  7005. # empty executable.
  7006. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7007. /* end confdefs.h. */
  7008. int
  7009. main ()
  7010. {
  7011. ;
  7012. return 0;
  7013. }
  7014. _ACEOF
  7015. if ac_fn_c_try_link "$LINENO"; then :
  7016. lt_aix_libpath_sed='
  7017. /Import File Strings/,/^$/ {
  7018. /^0/ {
  7019. s/^0 *\(.*\)$/\1/
  7020. p
  7021. }
  7022. }'
  7023. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7024. # Check for a 64-bit object if we didn't find anything.
  7025. if test -z "$aix_libpath"; then
  7026. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7027. fi
  7028. fi
  7029. rm -f core conftest.err conftest.$ac_objext \
  7030. conftest$ac_exeext conftest.$ac_ext
  7031. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7032. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7033. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  7034. else
  7035. if test "$host_cpu" = ia64; then
  7036. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7037. allow_undefined_flag="-z nodefs"
  7038. 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"
  7039. else
  7040. # Determine the default libpath from the value encoded in an
  7041. # empty executable.
  7042. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7043. /* end confdefs.h. */
  7044. int
  7045. main ()
  7046. {
  7047. ;
  7048. return 0;
  7049. }
  7050. _ACEOF
  7051. if ac_fn_c_try_link "$LINENO"; then :
  7052. lt_aix_libpath_sed='
  7053. /Import File Strings/,/^$/ {
  7054. /^0/ {
  7055. s/^0 *\(.*\)$/\1/
  7056. p
  7057. }
  7058. }'
  7059. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7060. # Check for a 64-bit object if we didn't find anything.
  7061. if test -z "$aix_libpath"; then
  7062. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7063. fi
  7064. fi
  7065. rm -f core conftest.err conftest.$ac_objext \
  7066. conftest$ac_exeext conftest.$ac_ext
  7067. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7068. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7069. # Warning - without using the other run time loading flags,
  7070. # -berok will link without error, but may produce a broken library.
  7071. no_undefined_flag=' ${wl}-bernotok'
  7072. allow_undefined_flag=' ${wl}-berok'
  7073. # Exported symbols can be pulled into shared objects from archives
  7074. whole_archive_flag_spec='$convenience'
  7075. archive_cmds_need_lc=yes
  7076. # This is similar to how AIX traditionally builds its shared libraries.
  7077. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  7078. fi
  7079. fi
  7080. ;;
  7081. amigaos*)
  7082. case $host_cpu in
  7083. powerpc)
  7084. # see comment about AmigaOS4 .so support
  7085. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7086. archive_expsym_cmds=''
  7087. ;;
  7088. m68k)
  7089. 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)'
  7090. hardcode_libdir_flag_spec='-L$libdir'
  7091. hardcode_minus_L=yes
  7092. ;;
  7093. esac
  7094. ;;
  7095. bsdi[45]*)
  7096. export_dynamic_flag_spec=-rdynamic
  7097. ;;
  7098. cygwin* | mingw* | pw32* | cegcc*)
  7099. # When not using gcc, we currently assume that we are using
  7100. # Microsoft Visual C++.
  7101. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7102. # no search path for DLLs.
  7103. hardcode_libdir_flag_spec=' '
  7104. allow_undefined_flag=unsupported
  7105. # Tell ltmain to make .lib files, not .a files.
  7106. libext=lib
  7107. # Tell ltmain to make .dll files, not .so files.
  7108. shrext_cmds=".dll"
  7109. # FIXME: Setting linknames here is a bad hack.
  7110. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  7111. # The linker will automatically build a .lib file if we build a DLL.
  7112. old_archive_from_new_cmds='true'
  7113. # FIXME: Should let the user specify the lib program.
  7114. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7115. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7116. enable_shared_with_static_runtimes=yes
  7117. ;;
  7118. darwin* | rhapsody*)
  7119. archive_cmds_need_lc=no
  7120. hardcode_direct=no
  7121. hardcode_automatic=yes
  7122. hardcode_shlibpath_var=unsupported
  7123. whole_archive_flag_spec=''
  7124. link_all_deplibs=yes
  7125. allow_undefined_flag="$_lt_dar_allow_undefined"
  7126. case $cc_basename in
  7127. ifort*) _lt_dar_can_shared=yes ;;
  7128. *) _lt_dar_can_shared=$GCC ;;
  7129. esac
  7130. if test "$_lt_dar_can_shared" = "yes"; then
  7131. output_verbose_link_cmd=echo
  7132. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  7133. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  7134. 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}"
  7135. 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}"
  7136. else
  7137. ld_shlibs=no
  7138. fi
  7139. ;;
  7140. dgux*)
  7141. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7142. hardcode_libdir_flag_spec='-L$libdir'
  7143. hardcode_shlibpath_var=no
  7144. ;;
  7145. freebsd1*)
  7146. ld_shlibs=no
  7147. ;;
  7148. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7149. # support. Future versions do this automatically, but an explicit c++rt0.o
  7150. # does not break anything, and helps significantly (at the cost of a little
  7151. # extra space).
  7152. freebsd2.2*)
  7153. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7154. hardcode_libdir_flag_spec='-R$libdir'
  7155. hardcode_direct=yes
  7156. hardcode_shlibpath_var=no
  7157. ;;
  7158. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7159. freebsd2*)
  7160. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7161. hardcode_direct=yes
  7162. hardcode_minus_L=yes
  7163. hardcode_shlibpath_var=no
  7164. ;;
  7165. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7166. freebsd* | dragonfly*)
  7167. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7168. hardcode_libdir_flag_spec='-R$libdir'
  7169. hardcode_direct=yes
  7170. hardcode_shlibpath_var=no
  7171. ;;
  7172. hpux9*)
  7173. if test "$GCC" = yes; then
  7174. archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  7175. else
  7176. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  7177. fi
  7178. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7179. hardcode_libdir_separator=:
  7180. hardcode_direct=yes
  7181. # hardcode_minus_L: Not really in the search PATH,
  7182. # but as the default location of the library.
  7183. hardcode_minus_L=yes
  7184. export_dynamic_flag_spec='${wl}-E'
  7185. ;;
  7186. hpux10*)
  7187. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7188. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7189. else
  7190. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7191. fi
  7192. if test "$with_gnu_ld" = no; then
  7193. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7194. hardcode_libdir_flag_spec_ld='+b $libdir'
  7195. hardcode_libdir_separator=:
  7196. hardcode_direct=yes
  7197. hardcode_direct_absolute=yes
  7198. export_dynamic_flag_spec='${wl}-E'
  7199. # hardcode_minus_L: Not really in the search PATH,
  7200. # but as the default location of the library.
  7201. hardcode_minus_L=yes
  7202. fi
  7203. ;;
  7204. hpux11*)
  7205. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7206. case $host_cpu in
  7207. hppa*64*)
  7208. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7209. ;;
  7210. ia64*)
  7211. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7212. ;;
  7213. *)
  7214. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7215. ;;
  7216. esac
  7217. else
  7218. case $host_cpu in
  7219. hppa*64*)
  7220. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7221. ;;
  7222. ia64*)
  7223. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7224. ;;
  7225. *)
  7226. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7227. ;;
  7228. esac
  7229. fi
  7230. if test "$with_gnu_ld" = no; then
  7231. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7232. hardcode_libdir_separator=:
  7233. case $host_cpu in
  7234. hppa*64*|ia64*)
  7235. hardcode_direct=no
  7236. hardcode_shlibpath_var=no
  7237. ;;
  7238. *)
  7239. hardcode_direct=yes
  7240. hardcode_direct_absolute=yes
  7241. export_dynamic_flag_spec='${wl}-E'
  7242. # hardcode_minus_L: Not really in the search PATH,
  7243. # but as the default location of the library.
  7244. hardcode_minus_L=yes
  7245. ;;
  7246. esac
  7247. fi
  7248. ;;
  7249. irix5* | irix6* | nonstopux*)
  7250. if test "$GCC" = yes; then
  7251. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7252. # Try to use the -exported_symbol ld option, if it does not
  7253. # work, assume that -exports_file does not work either and
  7254. # implicitly export all symbols.
  7255. save_LDFLAGS="$LDFLAGS"
  7256. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  7257. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7258. /* end confdefs.h. */
  7259. int foo(void) {}
  7260. _ACEOF
  7261. if ac_fn_c_try_link "$LINENO"; then :
  7262. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  7263. fi
  7264. rm -f core conftest.err conftest.$ac_objext \
  7265. conftest$ac_exeext conftest.$ac_ext
  7266. LDFLAGS="$save_LDFLAGS"
  7267. else
  7268. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  7269. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  7270. fi
  7271. archive_cmds_need_lc='no'
  7272. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7273. hardcode_libdir_separator=:
  7274. inherit_rpath=yes
  7275. link_all_deplibs=yes
  7276. ;;
  7277. netbsd*)
  7278. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7279. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  7280. else
  7281. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  7282. fi
  7283. hardcode_libdir_flag_spec='-R$libdir'
  7284. hardcode_direct=yes
  7285. hardcode_shlibpath_var=no
  7286. ;;
  7287. newsos6)
  7288. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7289. hardcode_direct=yes
  7290. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7291. hardcode_libdir_separator=:
  7292. hardcode_shlibpath_var=no
  7293. ;;
  7294. *nto* | *qnx*)
  7295. ;;
  7296. openbsd*)
  7297. if test -f /usr/libexec/ld.so; then
  7298. hardcode_direct=yes
  7299. hardcode_shlibpath_var=no
  7300. hardcode_direct_absolute=yes
  7301. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7302. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7303. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  7304. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7305. export_dynamic_flag_spec='${wl}-E'
  7306. else
  7307. case $host_os in
  7308. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  7309. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7310. hardcode_libdir_flag_spec='-R$libdir'
  7311. ;;
  7312. *)
  7313. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7314. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7315. ;;
  7316. esac
  7317. fi
  7318. else
  7319. ld_shlibs=no
  7320. fi
  7321. ;;
  7322. os2*)
  7323. hardcode_libdir_flag_spec='-L$libdir'
  7324. hardcode_minus_L=yes
  7325. allow_undefined_flag=unsupported
  7326. archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  7327. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  7328. ;;
  7329. osf3*)
  7330. if test "$GCC" = yes; then
  7331. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7332. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7333. else
  7334. allow_undefined_flag=' -expect_unresolved \*'
  7335. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  7336. fi
  7337. archive_cmds_need_lc='no'
  7338. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7339. hardcode_libdir_separator=:
  7340. ;;
  7341. osf4* | osf5*) # as osf3* with the addition of -msym flag
  7342. if test "$GCC" = yes; then
  7343. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7344. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7345. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7346. else
  7347. allow_undefined_flag=' -expect_unresolved \*'
  7348. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  7349. 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~
  7350. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  7351. # Both c and cxx compiler support -rpath directly
  7352. hardcode_libdir_flag_spec='-rpath $libdir'
  7353. fi
  7354. archive_cmds_need_lc='no'
  7355. hardcode_libdir_separator=:
  7356. ;;
  7357. solaris*)
  7358. no_undefined_flag=' -z defs'
  7359. if test "$GCC" = yes; then
  7360. wlarc='${wl}'
  7361. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7362. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7363. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  7364. else
  7365. case `$CC -V 2>&1` in
  7366. *"Compilers 5.0"*)
  7367. wlarc=''
  7368. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7369. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7370. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  7371. ;;
  7372. *)
  7373. wlarc='${wl}'
  7374. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7375. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7376. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  7377. ;;
  7378. esac
  7379. fi
  7380. hardcode_libdir_flag_spec='-R$libdir'
  7381. hardcode_shlibpath_var=no
  7382. case $host_os in
  7383. solaris2.[0-5] | solaris2.[0-5].*) ;;
  7384. *)
  7385. # The compiler driver will combine and reorder linker options,
  7386. # but understands `-z linker_flag'. GCC discards it without `$wl',
  7387. # but is careful enough not to reorder.
  7388. # Supported since Solaris 2.6 (maybe 2.5.1?)
  7389. if test "$GCC" = yes; then
  7390. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  7391. else
  7392. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  7393. fi
  7394. ;;
  7395. esac
  7396. link_all_deplibs=yes
  7397. ;;
  7398. sunos4*)
  7399. if test "x$host_vendor" = xsequent; then
  7400. # Use $CC to link under sequent, because it throws in some extra .o
  7401. # files that make .init and .fini sections work.
  7402. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7403. else
  7404. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  7405. fi
  7406. hardcode_libdir_flag_spec='-L$libdir'
  7407. hardcode_direct=yes
  7408. hardcode_minus_L=yes
  7409. hardcode_shlibpath_var=no
  7410. ;;
  7411. sysv4)
  7412. case $host_vendor in
  7413. sni)
  7414. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7415. hardcode_direct=yes # is this really true???
  7416. ;;
  7417. siemens)
  7418. ## LD is ld it makes a PLAMLIB
  7419. ## CC just makes a GrossModule.
  7420. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7421. reload_cmds='$CC -r -o $output$reload_objs'
  7422. hardcode_direct=no
  7423. ;;
  7424. motorola)
  7425. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7426. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  7427. ;;
  7428. esac
  7429. runpath_var='LD_RUN_PATH'
  7430. hardcode_shlibpath_var=no
  7431. ;;
  7432. sysv4.3*)
  7433. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7434. hardcode_shlibpath_var=no
  7435. export_dynamic_flag_spec='-Bexport'
  7436. ;;
  7437. sysv4*MP*)
  7438. if test -d /usr/nec; then
  7439. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7440. hardcode_shlibpath_var=no
  7441. runpath_var=LD_RUN_PATH
  7442. hardcode_runpath_var=yes
  7443. ld_shlibs=yes
  7444. fi
  7445. ;;
  7446. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  7447. no_undefined_flag='${wl}-z,text'
  7448. archive_cmds_need_lc=no
  7449. hardcode_shlibpath_var=no
  7450. runpath_var='LD_RUN_PATH'
  7451. if test "$GCC" = yes; then
  7452. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7453. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7454. else
  7455. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7456. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7457. fi
  7458. ;;
  7459. sysv5* | sco3.2v5* | sco5v6*)
  7460. # Note: We can NOT use -z defs as we might desire, because we do not
  7461. # link with -lc, and that would cause any symbols used from libc to
  7462. # always be unresolved, which means just about no library would
  7463. # ever link correctly. If we're not using GNU ld we use -z text
  7464. # though, which does catch some bad symbols but isn't as heavy-handed
  7465. # as -z defs.
  7466. no_undefined_flag='${wl}-z,text'
  7467. allow_undefined_flag='${wl}-z,nodefs'
  7468. archive_cmds_need_lc=no
  7469. hardcode_shlibpath_var=no
  7470. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  7471. hardcode_libdir_separator=':'
  7472. link_all_deplibs=yes
  7473. export_dynamic_flag_spec='${wl}-Bexport'
  7474. runpath_var='LD_RUN_PATH'
  7475. if test "$GCC" = yes; then
  7476. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7477. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7478. else
  7479. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7480. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7481. fi
  7482. ;;
  7483. uts4*)
  7484. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7485. hardcode_libdir_flag_spec='-L$libdir'
  7486. hardcode_shlibpath_var=no
  7487. ;;
  7488. *)
  7489. ld_shlibs=no
  7490. ;;
  7491. esac
  7492. if test x$host_vendor = xsni; then
  7493. case $host in
  7494. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  7495. export_dynamic_flag_spec='${wl}-Blargedynsym'
  7496. ;;
  7497. esac
  7498. fi
  7499. fi
  7500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  7501. $as_echo "$ld_shlibs" >&6; }
  7502. test "$ld_shlibs" = no && can_build_shared=no
  7503. with_gnu_ld=$with_gnu_ld
  7504. #
  7505. # Do we need to explicitly link libc?
  7506. #
  7507. case "x$archive_cmds_need_lc" in
  7508. x|xyes)
  7509. # Assume -lc should be added
  7510. archive_cmds_need_lc=yes
  7511. if test "$enable_shared" = yes && test "$GCC" = yes; then
  7512. case $archive_cmds in
  7513. *'~'*)
  7514. # FIXME: we may have to deal with multi-command sequences.
  7515. ;;
  7516. '$CC '*)
  7517. # Test whether the compiler implicitly links with -lc since on some
  7518. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  7519. # to ld, don't add -lc before -lgcc.
  7520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  7521. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  7522. $RM conftest*
  7523. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7524. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7525. (eval $ac_compile) 2>&5
  7526. ac_status=$?
  7527. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7528. test $ac_status = 0; } 2>conftest.err; then
  7529. soname=conftest
  7530. lib=conftest
  7531. libobjs=conftest.$ac_objext
  7532. deplibs=
  7533. wl=$lt_prog_compiler_wl
  7534. pic_flag=$lt_prog_compiler_pic
  7535. compiler_flags=-v
  7536. linker_flags=-v
  7537. verstring=
  7538. output_objdir=.
  7539. libname=conftest
  7540. lt_save_allow_undefined_flag=$allow_undefined_flag
  7541. allow_undefined_flag=
  7542. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  7543. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  7544. ac_status=$?
  7545. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7546. test $ac_status = 0; }
  7547. then
  7548. archive_cmds_need_lc=no
  7549. else
  7550. archive_cmds_need_lc=yes
  7551. fi
  7552. allow_undefined_flag=$lt_save_allow_undefined_flag
  7553. else
  7554. cat conftest.err 1>&5
  7555. fi
  7556. $RM conftest*
  7557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  7558. $as_echo "$archive_cmds_need_lc" >&6; }
  7559. ;;
  7560. esac
  7561. fi
  7562. ;;
  7563. esac
  7564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  7565. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  7566. if test "$GCC" = yes; then
  7567. case $host_os in
  7568. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  7569. *) lt_awk_arg="/^libraries:/" ;;
  7570. esac
  7571. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7572. if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  7573. # if the path contains ";" then we assume it to be the separator
  7574. # otherwise default to the standard path separator (i.e. ":") - it is
  7575. # assumed that no part of a normal pathname contains ";" but that should
  7576. # okay in the real world where ";" in dirpaths is itself problematic.
  7577. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  7578. else
  7579. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7580. fi
  7581. # Ok, now we have the path, separated by spaces, we can step through it
  7582. # and add multilib dir if necessary.
  7583. lt_tmp_lt_search_path_spec=
  7584. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  7585. for lt_sys_path in $lt_search_path_spec; do
  7586. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  7587. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  7588. else
  7589. test -d "$lt_sys_path" && \
  7590. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  7591. fi
  7592. done
  7593. lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  7594. BEGIN {RS=" "; FS="/|\n";} {
  7595. lt_foo="";
  7596. lt_count=0;
  7597. for (lt_i = NF; lt_i > 0; lt_i--) {
  7598. if ($lt_i != "" && $lt_i != ".") {
  7599. if ($lt_i == "..") {
  7600. lt_count++;
  7601. } else {
  7602. if (lt_count == 0) {
  7603. lt_foo="/" $lt_i lt_foo;
  7604. } else {
  7605. lt_count--;
  7606. }
  7607. }
  7608. }
  7609. }
  7610. if (lt_foo != "") { lt_freq[lt_foo]++; }
  7611. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  7612. }'`
  7613. sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  7614. else
  7615. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  7616. fi
  7617. library_names_spec=
  7618. libname_spec='lib$name'
  7619. soname_spec=
  7620. shrext_cmds=".so"
  7621. postinstall_cmds=
  7622. postuninstall_cmds=
  7623. finish_cmds=
  7624. finish_eval=
  7625. shlibpath_var=
  7626. shlibpath_overrides_runpath=unknown
  7627. version_type=none
  7628. dynamic_linker="$host_os ld.so"
  7629. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  7630. need_lib_prefix=unknown
  7631. hardcode_into_libs=no
  7632. # when you set need_version to no, make sure it does not cause -set_version
  7633. # flags to be left without arguments
  7634. need_version=unknown
  7635. case $host_os in
  7636. aix3*)
  7637. version_type=linux
  7638. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  7639. shlibpath_var=LIBPATH
  7640. # AIX 3 has no versioning support, so we append a major version to the name.
  7641. soname_spec='${libname}${release}${shared_ext}$major'
  7642. ;;
  7643. aix[4-9]*)
  7644. version_type=linux
  7645. need_lib_prefix=no
  7646. need_version=no
  7647. hardcode_into_libs=yes
  7648. if test "$host_cpu" = ia64; then
  7649. # AIX 5 supports IA64
  7650. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  7651. shlibpath_var=LD_LIBRARY_PATH
  7652. else
  7653. # With GCC up to 2.95.x, collect2 would create an import file
  7654. # for dependence libraries. The import file would start with
  7655. # the line `#! .'. This would cause the generated library to
  7656. # depend on `.', always an invalid library. This was fixed in
  7657. # development snapshots of GCC prior to 3.0.
  7658. case $host_os in
  7659. aix4 | aix4.[01] | aix4.[01].*)
  7660. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  7661. echo ' yes '
  7662. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  7663. :
  7664. else
  7665. can_build_shared=no
  7666. fi
  7667. ;;
  7668. esac
  7669. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  7670. # soname into executable. Probably we can add versioning support to
  7671. # collect2, so additional links can be useful in future.
  7672. if test "$aix_use_runtimelinking" = yes; then
  7673. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  7674. # instead of lib<name>.a to let people know that these are not
  7675. # typical AIX shared libraries.
  7676. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7677. else
  7678. # We preserve .a as extension for shared libraries through AIX4.2
  7679. # and later when we are not doing run time linking.
  7680. library_names_spec='${libname}${release}.a $libname.a'
  7681. soname_spec='${libname}${release}${shared_ext}$major'
  7682. fi
  7683. shlibpath_var=LIBPATH
  7684. fi
  7685. ;;
  7686. amigaos*)
  7687. case $host_cpu in
  7688. powerpc)
  7689. # Since July 2007 AmigaOS4 officially supports .so libraries.
  7690. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  7691. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7692. ;;
  7693. m68k)
  7694. library_names_spec='$libname.ixlibrary $libname.a'
  7695. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  7696. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  7697. ;;
  7698. esac
  7699. ;;
  7700. beos*)
  7701. library_names_spec='${libname}${shared_ext}'
  7702. dynamic_linker="$host_os ld.so"
  7703. shlibpath_var=LIBRARY_PATH
  7704. ;;
  7705. bsdi[45]*)
  7706. version_type=linux
  7707. need_version=no
  7708. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7709. soname_spec='${libname}${release}${shared_ext}$major'
  7710. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  7711. shlibpath_var=LD_LIBRARY_PATH
  7712. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  7713. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  7714. # the default ld.so.conf also contains /usr/contrib/lib and
  7715. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  7716. # libtool to hard-code these into programs
  7717. ;;
  7718. cygwin* | mingw* | pw32* | cegcc*)
  7719. version_type=windows
  7720. shrext_cmds=".dll"
  7721. need_version=no
  7722. need_lib_prefix=no
  7723. case $GCC,$host_os in
  7724. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  7725. library_names_spec='$libname.dll.a'
  7726. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  7727. postinstall_cmds='base_file=`basename \${file}`~
  7728. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  7729. dldir=$destdir/`dirname \$dlpath`~
  7730. test -d \$dldir || mkdir -p \$dldir~
  7731. $install_prog $dir/$dlname \$dldir/$dlname~
  7732. chmod a+x \$dldir/$dlname~
  7733. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  7734. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  7735. fi'
  7736. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  7737. dlpath=$dir/\$dldll~
  7738. $RM \$dlpath'
  7739. shlibpath_overrides_runpath=yes
  7740. case $host_os in
  7741. cygwin*)
  7742. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  7743. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  7744. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  7745. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  7746. ;;
  7747. mingw* | cegcc*)
  7748. # MinGW DLLs use traditional 'lib' prefix
  7749. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  7750. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  7751. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7752. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  7753. # It is most probably a Windows format PATH printed by
  7754. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  7755. # path with ; separators, and with drive letters. We can handle the
  7756. # drive letters (cygwin fileutils understands them), so leave them,
  7757. # especially as we might pass files found there to a mingw objdump,
  7758. # which wouldn't understand a cygwinified path. Ahh.
  7759. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  7760. else
  7761. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7762. fi
  7763. ;;
  7764. pw32*)
  7765. # pw32 DLLs use 'pw' prefix rather than 'lib'
  7766. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7767. ;;
  7768. esac
  7769. ;;
  7770. *)
  7771. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  7772. ;;
  7773. esac
  7774. dynamic_linker='Win32 ld.exe'
  7775. # FIXME: first we should search . and the directory the executable is in
  7776. shlibpath_var=PATH
  7777. ;;
  7778. darwin* | rhapsody*)
  7779. dynamic_linker="$host_os dyld"
  7780. version_type=darwin
  7781. need_lib_prefix=no
  7782. need_version=no
  7783. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  7784. soname_spec='${libname}${release}${major}$shared_ext'
  7785. shlibpath_overrides_runpath=yes
  7786. shlibpath_var=DYLD_LIBRARY_PATH
  7787. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  7788. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  7789. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  7790. ;;
  7791. dgux*)
  7792. version_type=linux
  7793. need_lib_prefix=no
  7794. need_version=no
  7795. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  7796. soname_spec='${libname}${release}${shared_ext}$major'
  7797. shlibpath_var=LD_LIBRARY_PATH
  7798. ;;
  7799. freebsd1*)
  7800. dynamic_linker=no
  7801. ;;
  7802. freebsd* | dragonfly*)
  7803. # DragonFly does not have aout. When/if they implement a new
  7804. # versioning mechanism, adjust this.
  7805. if test -x /usr/bin/objformat; then
  7806. objformat=`/usr/bin/objformat`
  7807. else
  7808. case $host_os in
  7809. freebsd[123]*) objformat=aout ;;
  7810. *) objformat=elf ;;
  7811. esac
  7812. fi
  7813. version_type=freebsd-$objformat
  7814. case $version_type in
  7815. freebsd-elf*)
  7816. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  7817. need_version=no
  7818. need_lib_prefix=no
  7819. ;;
  7820. freebsd-*)
  7821. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  7822. need_version=yes
  7823. ;;
  7824. esac
  7825. shlibpath_var=LD_LIBRARY_PATH
  7826. case $host_os in
  7827. freebsd2*)
  7828. shlibpath_overrides_runpath=yes
  7829. ;;
  7830. freebsd3.[01]* | freebsdelf3.[01]*)
  7831. shlibpath_overrides_runpath=yes
  7832. hardcode_into_libs=yes
  7833. ;;
  7834. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  7835. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  7836. shlibpath_overrides_runpath=no
  7837. hardcode_into_libs=yes
  7838. ;;
  7839. *) # from 4.6 on, and DragonFly
  7840. shlibpath_overrides_runpath=yes
  7841. hardcode_into_libs=yes
  7842. ;;
  7843. esac
  7844. ;;
  7845. gnu*)
  7846. version_type=linux
  7847. need_lib_prefix=no
  7848. need_version=no
  7849. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  7850. soname_spec='${libname}${release}${shared_ext}$major'
  7851. shlibpath_var=LD_LIBRARY_PATH
  7852. hardcode_into_libs=yes
  7853. ;;
  7854. hpux9* | hpux10* | hpux11*)
  7855. # Give a soname corresponding to the major version so that dld.sl refuses to
  7856. # link against other versions.
  7857. version_type=sunos
  7858. need_lib_prefix=no
  7859. need_version=no
  7860. case $host_cpu in
  7861. ia64*)
  7862. shrext_cmds='.so'
  7863. hardcode_into_libs=yes
  7864. dynamic_linker="$host_os dld.so"
  7865. shlibpath_var=LD_LIBRARY_PATH
  7866. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  7867. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7868. soname_spec='${libname}${release}${shared_ext}$major'
  7869. if test "X$HPUX_IA64_MODE" = X32; then
  7870. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  7871. else
  7872. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  7873. fi
  7874. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  7875. ;;
  7876. hppa*64*)
  7877. shrext_cmds='.sl'
  7878. hardcode_into_libs=yes
  7879. dynamic_linker="$host_os dld.sl"
  7880. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  7881. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  7882. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7883. soname_spec='${libname}${release}${shared_ext}$major'
  7884. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  7885. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  7886. ;;
  7887. *)
  7888. shrext_cmds='.sl'
  7889. dynamic_linker="$host_os dld.sl"
  7890. shlibpath_var=SHLIB_PATH
  7891. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  7892. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7893. soname_spec='${libname}${release}${shared_ext}$major'
  7894. ;;
  7895. esac
  7896. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  7897. postinstall_cmds='chmod 555 $lib'
  7898. ;;
  7899. interix[3-9]*)
  7900. version_type=linux
  7901. need_lib_prefix=no
  7902. need_version=no
  7903. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7904. soname_spec='${libname}${release}${shared_ext}$major'
  7905. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  7906. shlibpath_var=LD_LIBRARY_PATH
  7907. shlibpath_overrides_runpath=no
  7908. hardcode_into_libs=yes
  7909. ;;
  7910. irix5* | irix6* | nonstopux*)
  7911. case $host_os in
  7912. nonstopux*) version_type=nonstopux ;;
  7913. *)
  7914. if test "$lt_cv_prog_gnu_ld" = yes; then
  7915. version_type=linux
  7916. else
  7917. version_type=irix
  7918. fi ;;
  7919. esac
  7920. need_lib_prefix=no
  7921. need_version=no
  7922. soname_spec='${libname}${release}${shared_ext}$major'
  7923. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  7924. case $host_os in
  7925. irix5* | nonstopux*)
  7926. libsuff= shlibsuff=
  7927. ;;
  7928. *)
  7929. case $LD in # libtool.m4 will add one of these switches to LD
  7930. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  7931. libsuff= shlibsuff= libmagic=32-bit;;
  7932. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  7933. libsuff=32 shlibsuff=N32 libmagic=N32;;
  7934. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  7935. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  7936. *) libsuff= shlibsuff= libmagic=never-match;;
  7937. esac
  7938. ;;
  7939. esac
  7940. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  7941. shlibpath_overrides_runpath=no
  7942. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  7943. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  7944. hardcode_into_libs=yes
  7945. ;;
  7946. # No shared lib support for Linux oldld, aout, or coff.
  7947. linux*oldld* | linux*aout* | linux*coff*)
  7948. dynamic_linker=no
  7949. ;;
  7950. # This must be Linux ELF.
  7951. linux* | k*bsd*-gnu)
  7952. version_type=linux
  7953. need_lib_prefix=no
  7954. need_version=no
  7955. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7956. soname_spec='${libname}${release}${shared_ext}$major'
  7957. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  7958. shlibpath_var=LD_LIBRARY_PATH
  7959. shlibpath_overrides_runpath=no
  7960. # Some binutils ld are patched to set DT_RUNPATH
  7961. save_LDFLAGS=$LDFLAGS
  7962. save_libdir=$libdir
  7963. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  7964. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  7965. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7966. /* end confdefs.h. */
  7967. int
  7968. main ()
  7969. {
  7970. ;
  7971. return 0;
  7972. }
  7973. _ACEOF
  7974. if ac_fn_c_try_link "$LINENO"; then :
  7975. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  7976. shlibpath_overrides_runpath=yes
  7977. fi
  7978. fi
  7979. rm -f core conftest.err conftest.$ac_objext \
  7980. conftest$ac_exeext conftest.$ac_ext
  7981. LDFLAGS=$save_LDFLAGS
  7982. libdir=$save_libdir
  7983. # This implies no fast_install, which is unacceptable.
  7984. # Some rework will be needed to allow for fast_install
  7985. # before this can be enabled.
  7986. hardcode_into_libs=yes
  7987. # Append ld.so.conf contents to the search path
  7988. if test -f /etc/ld.so.conf; then
  7989. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  7990. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  7991. fi
  7992. # We used to test for /lib/ld.so.1 and disable shared libraries on
  7993. # powerpc, because MkLinux only supported shared libraries with the
  7994. # GNU dynamic linker. Since this was broken with cross compilers,
  7995. # most powerpc-linux boxes support dynamic linking these days and
  7996. # people can always --disable-shared, the test was removed, and we
  7997. # assume the GNU/Linux dynamic linker is in use.
  7998. dynamic_linker='GNU/Linux ld.so'
  7999. ;;
  8000. netbsd*)
  8001. version_type=sunos
  8002. need_lib_prefix=no
  8003. need_version=no
  8004. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8005. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8006. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8007. dynamic_linker='NetBSD (a.out) ld.so'
  8008. else
  8009. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8010. soname_spec='${libname}${release}${shared_ext}$major'
  8011. dynamic_linker='NetBSD ld.elf_so'
  8012. fi
  8013. shlibpath_var=LD_LIBRARY_PATH
  8014. shlibpath_overrides_runpath=yes
  8015. hardcode_into_libs=yes
  8016. ;;
  8017. newsos6)
  8018. version_type=linux
  8019. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8020. shlibpath_var=LD_LIBRARY_PATH
  8021. shlibpath_overrides_runpath=yes
  8022. ;;
  8023. *nto* | *qnx*)
  8024. version_type=qnx
  8025. need_lib_prefix=no
  8026. need_version=no
  8027. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8028. soname_spec='${libname}${release}${shared_ext}$major'
  8029. shlibpath_var=LD_LIBRARY_PATH
  8030. shlibpath_overrides_runpath=no
  8031. hardcode_into_libs=yes
  8032. dynamic_linker='ldqnx.so'
  8033. ;;
  8034. openbsd*)
  8035. version_type=sunos
  8036. sys_lib_dlsearch_path_spec="/usr/lib"
  8037. need_lib_prefix=no
  8038. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8039. case $host_os in
  8040. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8041. *) need_version=no ;;
  8042. esac
  8043. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8044. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8045. shlibpath_var=LD_LIBRARY_PATH
  8046. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8047. case $host_os in
  8048. openbsd2.[89] | openbsd2.[89].*)
  8049. shlibpath_overrides_runpath=no
  8050. ;;
  8051. *)
  8052. shlibpath_overrides_runpath=yes
  8053. ;;
  8054. esac
  8055. else
  8056. shlibpath_overrides_runpath=yes
  8057. fi
  8058. ;;
  8059. os2*)
  8060. libname_spec='$name'
  8061. shrext_cmds=".dll"
  8062. need_lib_prefix=no
  8063. library_names_spec='$libname${shared_ext} $libname.a'
  8064. dynamic_linker='OS/2 ld.exe'
  8065. shlibpath_var=LIBPATH
  8066. ;;
  8067. osf3* | osf4* | osf5*)
  8068. version_type=osf
  8069. need_lib_prefix=no
  8070. need_version=no
  8071. soname_spec='${libname}${release}${shared_ext}$major'
  8072. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8073. shlibpath_var=LD_LIBRARY_PATH
  8074. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8075. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8076. ;;
  8077. rdos*)
  8078. dynamic_linker=no
  8079. ;;
  8080. solaris*)
  8081. version_type=linux
  8082. need_lib_prefix=no
  8083. need_version=no
  8084. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8085. soname_spec='${libname}${release}${shared_ext}$major'
  8086. shlibpath_var=LD_LIBRARY_PATH
  8087. shlibpath_overrides_runpath=yes
  8088. hardcode_into_libs=yes
  8089. # ldd complains unless libraries are executable
  8090. postinstall_cmds='chmod +x $lib'
  8091. ;;
  8092. sunos4*)
  8093. version_type=sunos
  8094. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8095. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8096. shlibpath_var=LD_LIBRARY_PATH
  8097. shlibpath_overrides_runpath=yes
  8098. if test "$with_gnu_ld" = yes; then
  8099. need_lib_prefix=no
  8100. fi
  8101. need_version=yes
  8102. ;;
  8103. sysv4 | sysv4.3*)
  8104. version_type=linux
  8105. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8106. soname_spec='${libname}${release}${shared_ext}$major'
  8107. shlibpath_var=LD_LIBRARY_PATH
  8108. case $host_vendor in
  8109. sni)
  8110. shlibpath_overrides_runpath=no
  8111. need_lib_prefix=no
  8112. runpath_var=LD_RUN_PATH
  8113. ;;
  8114. siemens)
  8115. need_lib_prefix=no
  8116. ;;
  8117. motorola)
  8118. need_lib_prefix=no
  8119. need_version=no
  8120. shlibpath_overrides_runpath=no
  8121. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8122. ;;
  8123. esac
  8124. ;;
  8125. sysv4*MP*)
  8126. if test -d /usr/nec ;then
  8127. version_type=linux
  8128. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8129. soname_spec='$libname${shared_ext}.$major'
  8130. shlibpath_var=LD_LIBRARY_PATH
  8131. fi
  8132. ;;
  8133. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8134. version_type=freebsd-elf
  8135. need_lib_prefix=no
  8136. need_version=no
  8137. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8138. soname_spec='${libname}${release}${shared_ext}$major'
  8139. shlibpath_var=LD_LIBRARY_PATH
  8140. shlibpath_overrides_runpath=yes
  8141. hardcode_into_libs=yes
  8142. if test "$with_gnu_ld" = yes; then
  8143. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  8144. else
  8145. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  8146. case $host_os in
  8147. sco3.2v5*)
  8148. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  8149. ;;
  8150. esac
  8151. fi
  8152. sys_lib_dlsearch_path_spec='/usr/lib'
  8153. ;;
  8154. tpf*)
  8155. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  8156. version_type=linux
  8157. need_lib_prefix=no
  8158. need_version=no
  8159. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8160. shlibpath_var=LD_LIBRARY_PATH
  8161. shlibpath_overrides_runpath=no
  8162. hardcode_into_libs=yes
  8163. ;;
  8164. uts4*)
  8165. version_type=linux
  8166. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8167. soname_spec='${libname}${release}${shared_ext}$major'
  8168. shlibpath_var=LD_LIBRARY_PATH
  8169. ;;
  8170. *)
  8171. dynamic_linker=no
  8172. ;;
  8173. esac
  8174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  8175. $as_echo "$dynamic_linker" >&6; }
  8176. test "$dynamic_linker" = no && can_build_shared=no
  8177. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8178. if test "$GCC" = yes; then
  8179. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8180. fi
  8181. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  8182. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  8183. fi
  8184. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  8185. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  8186. fi
  8187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  8188. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  8189. hardcode_action=
  8190. if test -n "$hardcode_libdir_flag_spec" ||
  8191. test -n "$runpath_var" ||
  8192. test "X$hardcode_automatic" = "Xyes" ; then
  8193. # We can hardcode non-existent directories.
  8194. if test "$hardcode_direct" != no &&
  8195. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8196. # have to relink, otherwise we might link with an installed library
  8197. # when we should be linking with a yet-to-be-installed one
  8198. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8199. test "$hardcode_minus_L" != no; then
  8200. # Linking always hardcodes the temporary library directory.
  8201. hardcode_action=relink
  8202. else
  8203. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8204. hardcode_action=immediate
  8205. fi
  8206. else
  8207. # We cannot hardcode anything, or else we can only hardcode existing
  8208. # directories.
  8209. hardcode_action=unsupported
  8210. fi
  8211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  8212. $as_echo "$hardcode_action" >&6; }
  8213. if test "$hardcode_action" = relink ||
  8214. test "$inherit_rpath" = yes; then
  8215. # Fast installation is not supported
  8216. enable_fast_install=no
  8217. elif test "$shlibpath_overrides_runpath" = yes ||
  8218. test "$enable_shared" = no; then
  8219. # Fast installation is not necessary
  8220. enable_fast_install=needless
  8221. fi
  8222. if test "x$enable_dlopen" != xyes; then
  8223. enable_dlopen=unknown
  8224. enable_dlopen_self=unknown
  8225. enable_dlopen_self_static=unknown
  8226. else
  8227. lt_cv_dlopen=no
  8228. lt_cv_dlopen_libs=
  8229. case $host_os in
  8230. beos*)
  8231. lt_cv_dlopen="load_add_on"
  8232. lt_cv_dlopen_libs=
  8233. lt_cv_dlopen_self=yes
  8234. ;;
  8235. mingw* | pw32* | cegcc*)
  8236. lt_cv_dlopen="LoadLibrary"
  8237. lt_cv_dlopen_libs=
  8238. ;;
  8239. cygwin*)
  8240. lt_cv_dlopen="dlopen"
  8241. lt_cv_dlopen_libs=
  8242. ;;
  8243. darwin*)
  8244. # if libdl is installed we need to link against it
  8245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  8246. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  8247. if ${ac_cv_lib_dl_dlopen+:} false; then :
  8248. $as_echo_n "(cached) " >&6
  8249. else
  8250. ac_check_lib_save_LIBS=$LIBS
  8251. LIBS="-ldl $LIBS"
  8252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8253. /* end confdefs.h. */
  8254. /* Override any GCC internal prototype to avoid an error.
  8255. Use char because int might match the return type of a GCC
  8256. builtin and then its argument prototype would still apply. */
  8257. #ifdef __cplusplus
  8258. extern "C"
  8259. #endif
  8260. char dlopen ();
  8261. int
  8262. main ()
  8263. {
  8264. return dlopen ();
  8265. ;
  8266. return 0;
  8267. }
  8268. _ACEOF
  8269. if ac_fn_c_try_link "$LINENO"; then :
  8270. ac_cv_lib_dl_dlopen=yes
  8271. else
  8272. ac_cv_lib_dl_dlopen=no
  8273. fi
  8274. rm -f core conftest.err conftest.$ac_objext \
  8275. conftest$ac_exeext conftest.$ac_ext
  8276. LIBS=$ac_check_lib_save_LIBS
  8277. fi
  8278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  8279. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  8280. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  8281. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8282. else
  8283. lt_cv_dlopen="dyld"
  8284. lt_cv_dlopen_libs=
  8285. lt_cv_dlopen_self=yes
  8286. fi
  8287. ;;
  8288. *)
  8289. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  8290. if test "x$ac_cv_func_shl_load" = xyes; then :
  8291. lt_cv_dlopen="shl_load"
  8292. else
  8293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  8294. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  8295. if ${ac_cv_lib_dld_shl_load+:} false; then :
  8296. $as_echo_n "(cached) " >&6
  8297. else
  8298. ac_check_lib_save_LIBS=$LIBS
  8299. LIBS="-ldld $LIBS"
  8300. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8301. /* end confdefs.h. */
  8302. /* Override any GCC internal prototype to avoid an error.
  8303. Use char because int might match the return type of a GCC
  8304. builtin and then its argument prototype would still apply. */
  8305. #ifdef __cplusplus
  8306. extern "C"
  8307. #endif
  8308. char shl_load ();
  8309. int
  8310. main ()
  8311. {
  8312. return shl_load ();
  8313. ;
  8314. return 0;
  8315. }
  8316. _ACEOF
  8317. if ac_fn_c_try_link "$LINENO"; then :
  8318. ac_cv_lib_dld_shl_load=yes
  8319. else
  8320. ac_cv_lib_dld_shl_load=no
  8321. fi
  8322. rm -f core conftest.err conftest.$ac_objext \
  8323. conftest$ac_exeext conftest.$ac_ext
  8324. LIBS=$ac_check_lib_save_LIBS
  8325. fi
  8326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  8327. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  8328. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  8329. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  8330. else
  8331. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  8332. if test "x$ac_cv_func_dlopen" = xyes; then :
  8333. lt_cv_dlopen="dlopen"
  8334. else
  8335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  8336. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  8337. if ${ac_cv_lib_dl_dlopen+:} false; then :
  8338. $as_echo_n "(cached) " >&6
  8339. else
  8340. ac_check_lib_save_LIBS=$LIBS
  8341. LIBS="-ldl $LIBS"
  8342. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8343. /* end confdefs.h. */
  8344. /* Override any GCC internal prototype to avoid an error.
  8345. Use char because int might match the return type of a GCC
  8346. builtin and then its argument prototype would still apply. */
  8347. #ifdef __cplusplus
  8348. extern "C"
  8349. #endif
  8350. char dlopen ();
  8351. int
  8352. main ()
  8353. {
  8354. return dlopen ();
  8355. ;
  8356. return 0;
  8357. }
  8358. _ACEOF
  8359. if ac_fn_c_try_link "$LINENO"; then :
  8360. ac_cv_lib_dl_dlopen=yes
  8361. else
  8362. ac_cv_lib_dl_dlopen=no
  8363. fi
  8364. rm -f core conftest.err conftest.$ac_objext \
  8365. conftest$ac_exeext conftest.$ac_ext
  8366. LIBS=$ac_check_lib_save_LIBS
  8367. fi
  8368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  8369. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  8370. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  8371. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8372. else
  8373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  8374. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  8375. if ${ac_cv_lib_svld_dlopen+:} false; then :
  8376. $as_echo_n "(cached) " >&6
  8377. else
  8378. ac_check_lib_save_LIBS=$LIBS
  8379. LIBS="-lsvld $LIBS"
  8380. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8381. /* end confdefs.h. */
  8382. /* Override any GCC internal prototype to avoid an error.
  8383. Use char because int might match the return type of a GCC
  8384. builtin and then its argument prototype would still apply. */
  8385. #ifdef __cplusplus
  8386. extern "C"
  8387. #endif
  8388. char dlopen ();
  8389. int
  8390. main ()
  8391. {
  8392. return dlopen ();
  8393. ;
  8394. return 0;
  8395. }
  8396. _ACEOF
  8397. if ac_fn_c_try_link "$LINENO"; then :
  8398. ac_cv_lib_svld_dlopen=yes
  8399. else
  8400. ac_cv_lib_svld_dlopen=no
  8401. fi
  8402. rm -f core conftest.err conftest.$ac_objext \
  8403. conftest$ac_exeext conftest.$ac_ext
  8404. LIBS=$ac_check_lib_save_LIBS
  8405. fi
  8406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  8407. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  8408. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  8409. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  8410. else
  8411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  8412. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  8413. if ${ac_cv_lib_dld_dld_link+:} false; then :
  8414. $as_echo_n "(cached) " >&6
  8415. else
  8416. ac_check_lib_save_LIBS=$LIBS
  8417. LIBS="-ldld $LIBS"
  8418. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8419. /* end confdefs.h. */
  8420. /* Override any GCC internal prototype to avoid an error.
  8421. Use char because int might match the return type of a GCC
  8422. builtin and then its argument prototype would still apply. */
  8423. #ifdef __cplusplus
  8424. extern "C"
  8425. #endif
  8426. char dld_link ();
  8427. int
  8428. main ()
  8429. {
  8430. return dld_link ();
  8431. ;
  8432. return 0;
  8433. }
  8434. _ACEOF
  8435. if ac_fn_c_try_link "$LINENO"; then :
  8436. ac_cv_lib_dld_dld_link=yes
  8437. else
  8438. ac_cv_lib_dld_dld_link=no
  8439. fi
  8440. rm -f core conftest.err conftest.$ac_objext \
  8441. conftest$ac_exeext conftest.$ac_ext
  8442. LIBS=$ac_check_lib_save_LIBS
  8443. fi
  8444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  8445. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  8446. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  8447. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  8448. fi
  8449. fi
  8450. fi
  8451. fi
  8452. fi
  8453. fi
  8454. ;;
  8455. esac
  8456. if test "x$lt_cv_dlopen" != xno; then
  8457. enable_dlopen=yes
  8458. else
  8459. enable_dlopen=no
  8460. fi
  8461. case $lt_cv_dlopen in
  8462. dlopen)
  8463. save_CPPFLAGS="$CPPFLAGS"
  8464. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  8465. save_LDFLAGS="$LDFLAGS"
  8466. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  8467. save_LIBS="$LIBS"
  8468. LIBS="$lt_cv_dlopen_libs $LIBS"
  8469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  8470. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  8471. if ${lt_cv_dlopen_self+:} false; then :
  8472. $as_echo_n "(cached) " >&6
  8473. else
  8474. if test "$cross_compiling" = yes; then :
  8475. lt_cv_dlopen_self=cross
  8476. else
  8477. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8478. lt_status=$lt_dlunknown
  8479. cat > conftest.$ac_ext <<_LT_EOF
  8480. #line 9899 "configure"
  8481. #include "confdefs.h"
  8482. #if HAVE_DLFCN_H
  8483. #include <dlfcn.h>
  8484. #endif
  8485. #include <stdio.h>
  8486. #ifdef RTLD_GLOBAL
  8487. # define LT_DLGLOBAL RTLD_GLOBAL
  8488. #else
  8489. # ifdef DL_GLOBAL
  8490. # define LT_DLGLOBAL DL_GLOBAL
  8491. # else
  8492. # define LT_DLGLOBAL 0
  8493. # endif
  8494. #endif
  8495. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8496. find out it does not work in some platform. */
  8497. #ifndef LT_DLLAZY_OR_NOW
  8498. # ifdef RTLD_LAZY
  8499. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  8500. # else
  8501. # ifdef DL_LAZY
  8502. # define LT_DLLAZY_OR_NOW DL_LAZY
  8503. # else
  8504. # ifdef RTLD_NOW
  8505. # define LT_DLLAZY_OR_NOW RTLD_NOW
  8506. # else
  8507. # ifdef DL_NOW
  8508. # define LT_DLLAZY_OR_NOW DL_NOW
  8509. # else
  8510. # define LT_DLLAZY_OR_NOW 0
  8511. # endif
  8512. # endif
  8513. # endif
  8514. # endif
  8515. #endif
  8516. void fnord() { int i=42;}
  8517. int main ()
  8518. {
  8519. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  8520. int status = $lt_dlunknown;
  8521. if (self)
  8522. {
  8523. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  8524. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  8525. /* dlclose (self); */
  8526. }
  8527. else
  8528. puts (dlerror ());
  8529. return status;
  8530. }
  8531. _LT_EOF
  8532. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  8533. (eval $ac_link) 2>&5
  8534. ac_status=$?
  8535. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8536. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  8537. (./conftest; exit; ) >&5 2>/dev/null
  8538. lt_status=$?
  8539. case x$lt_status in
  8540. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  8541. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  8542. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  8543. esac
  8544. else :
  8545. # compilation failed
  8546. lt_cv_dlopen_self=no
  8547. fi
  8548. fi
  8549. rm -fr conftest*
  8550. fi
  8551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  8552. $as_echo "$lt_cv_dlopen_self" >&6; }
  8553. if test "x$lt_cv_dlopen_self" = xyes; then
  8554. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  8555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  8556. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  8557. if ${lt_cv_dlopen_self_static+:} false; then :
  8558. $as_echo_n "(cached) " >&6
  8559. else
  8560. if test "$cross_compiling" = yes; then :
  8561. lt_cv_dlopen_self_static=cross
  8562. else
  8563. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8564. lt_status=$lt_dlunknown
  8565. cat > conftest.$ac_ext <<_LT_EOF
  8566. #line 9995 "configure"
  8567. #include "confdefs.h"
  8568. #if HAVE_DLFCN_H
  8569. #include <dlfcn.h>
  8570. #endif
  8571. #include <stdio.h>
  8572. #ifdef RTLD_GLOBAL
  8573. # define LT_DLGLOBAL RTLD_GLOBAL
  8574. #else
  8575. # ifdef DL_GLOBAL
  8576. # define LT_DLGLOBAL DL_GLOBAL
  8577. # else
  8578. # define LT_DLGLOBAL 0
  8579. # endif
  8580. #endif
  8581. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8582. find out it does not work in some platform. */
  8583. #ifndef LT_DLLAZY_OR_NOW
  8584. # ifdef RTLD_LAZY
  8585. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  8586. # else
  8587. # ifdef DL_LAZY
  8588. # define LT_DLLAZY_OR_NOW DL_LAZY
  8589. # else
  8590. # ifdef RTLD_NOW
  8591. # define LT_DLLAZY_OR_NOW RTLD_NOW
  8592. # else
  8593. # ifdef DL_NOW
  8594. # define LT_DLLAZY_OR_NOW DL_NOW
  8595. # else
  8596. # define LT_DLLAZY_OR_NOW 0
  8597. # endif
  8598. # endif
  8599. # endif
  8600. # endif
  8601. #endif
  8602. void fnord() { int i=42;}
  8603. int main ()
  8604. {
  8605. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  8606. int status = $lt_dlunknown;
  8607. if (self)
  8608. {
  8609. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  8610. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  8611. /* dlclose (self); */
  8612. }
  8613. else
  8614. puts (dlerror ());
  8615. return status;
  8616. }
  8617. _LT_EOF
  8618. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  8619. (eval $ac_link) 2>&5
  8620. ac_status=$?
  8621. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8622. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  8623. (./conftest; exit; ) >&5 2>/dev/null
  8624. lt_status=$?
  8625. case x$lt_status in
  8626. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  8627. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  8628. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  8629. esac
  8630. else :
  8631. # compilation failed
  8632. lt_cv_dlopen_self_static=no
  8633. fi
  8634. fi
  8635. rm -fr conftest*
  8636. fi
  8637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  8638. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  8639. fi
  8640. CPPFLAGS="$save_CPPFLAGS"
  8641. LDFLAGS="$save_LDFLAGS"
  8642. LIBS="$save_LIBS"
  8643. ;;
  8644. esac
  8645. case $lt_cv_dlopen_self in
  8646. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  8647. *) enable_dlopen_self=unknown ;;
  8648. esac
  8649. case $lt_cv_dlopen_self_static in
  8650. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  8651. *) enable_dlopen_self_static=unknown ;;
  8652. esac
  8653. fi
  8654. striplib=
  8655. old_striplib=
  8656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  8657. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  8658. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  8659. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  8660. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  8661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8662. $as_echo "yes" >&6; }
  8663. else
  8664. # FIXME - insert some real tests, host_os isn't really good enough
  8665. case $host_os in
  8666. darwin*)
  8667. if test -n "$STRIP" ; then
  8668. striplib="$STRIP -x"
  8669. old_striplib="$STRIP -S"
  8670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8671. $as_echo "yes" >&6; }
  8672. else
  8673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8674. $as_echo "no" >&6; }
  8675. fi
  8676. ;;
  8677. *)
  8678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8679. $as_echo "no" >&6; }
  8680. ;;
  8681. esac
  8682. fi
  8683. # Report which library types will actually be built
  8684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  8685. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  8686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  8687. $as_echo "$can_build_shared" >&6; }
  8688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  8689. $as_echo_n "checking whether to build shared libraries... " >&6; }
  8690. test "$can_build_shared" = "no" && enable_shared=no
  8691. # On AIX, shared libraries and static libraries use the same namespace, and
  8692. # are all built from PIC.
  8693. case $host_os in
  8694. aix3*)
  8695. test "$enable_shared" = yes && enable_static=no
  8696. if test -n "$RANLIB"; then
  8697. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  8698. postinstall_cmds='$RANLIB $lib'
  8699. fi
  8700. ;;
  8701. aix[4-9]*)
  8702. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  8703. test "$enable_shared" = yes && enable_static=no
  8704. fi
  8705. ;;
  8706. esac
  8707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  8708. $as_echo "$enable_shared" >&6; }
  8709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  8710. $as_echo_n "checking whether to build static libraries... " >&6; }
  8711. # Make sure either enable_shared or enable_static is yes.
  8712. test "$enable_shared" = yes || enable_static=yes
  8713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  8714. $as_echo "$enable_static" >&6; }
  8715. fi
  8716. ac_ext=c
  8717. ac_cpp='$CPP $CPPFLAGS'
  8718. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8719. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8720. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8721. CC="$lt_save_CC"
  8722. ac_config_commands="$ac_config_commands libtool"
  8723. # Only expand once:
  8724. LT_RELEASE=$MAJOR_VERSION.$MINOR_VERSION
  8725. LT_CURRENT=`expr $MICRO_VERSION - $INTERFACE_AGE`
  8726. LT_REVISION=$INTERFACE_AGE
  8727. LT_AGE=`expr $BINARY_AGE - $INTERFACE_AGE`
  8728. am__api_version='1.13'
  8729. # Find a good install program. We prefer a C program (faster),
  8730. # so one script is as good as another. But avoid the broken or
  8731. # incompatible versions:
  8732. # SysV /etc/install, /usr/sbin/install
  8733. # SunOS /usr/etc/install
  8734. # IRIX /sbin/install
  8735. # AIX /bin/install
  8736. # AmigaOS /C/install, which installs bootblocks on floppy discs
  8737. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  8738. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  8739. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  8740. # OS/2's system install, which has a completely different semantic
  8741. # ./install, which can be erroneously created by make from ./install.sh.
  8742. # Reject install programs that cannot install multiple files.
  8743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  8744. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  8745. if test -z "$INSTALL"; then
  8746. if ${ac_cv_path_install+:} false; then :
  8747. $as_echo_n "(cached) " >&6
  8748. else
  8749. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8750. for as_dir in $PATH
  8751. do
  8752. IFS=$as_save_IFS
  8753. test -z "$as_dir" && as_dir=.
  8754. # Account for people who put trailing slashes in PATH elements.
  8755. case $as_dir/ in #((
  8756. ./ | .// | /[cC]/* | \
  8757. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  8758. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  8759. /usr/ucb/* ) ;;
  8760. *)
  8761. # OSF1 and SCO ODT 3.0 have their own names for install.
  8762. # Don't use installbsd from OSF since it installs stuff as root
  8763. # by default.
  8764. for ac_prog in ginstall scoinst install; do
  8765. for ac_exec_ext in '' $ac_executable_extensions; do
  8766. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  8767. if test $ac_prog = install &&
  8768. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  8769. # AIX install. It has an incompatible calling convention.
  8770. :
  8771. elif test $ac_prog = install &&
  8772. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  8773. # program-specific install script used by HP pwplus--don't use.
  8774. :
  8775. else
  8776. rm -rf conftest.one conftest.two conftest.dir
  8777. echo one > conftest.one
  8778. echo two > conftest.two
  8779. mkdir conftest.dir
  8780. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  8781. test -s conftest.one && test -s conftest.two &&
  8782. test -s conftest.dir/conftest.one &&
  8783. test -s conftest.dir/conftest.two
  8784. then
  8785. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  8786. break 3
  8787. fi
  8788. fi
  8789. fi
  8790. done
  8791. done
  8792. ;;
  8793. esac
  8794. done
  8795. IFS=$as_save_IFS
  8796. rm -rf conftest.one conftest.two conftest.dir
  8797. fi
  8798. if test "${ac_cv_path_install+set}" = set; then
  8799. INSTALL=$ac_cv_path_install
  8800. else
  8801. # As a last resort, use the slow shell script. Don't cache a
  8802. # value for INSTALL within a source directory, because that will
  8803. # break other packages using the cache if that directory is
  8804. # removed, or if the value is a relative name.
  8805. INSTALL=$ac_install_sh
  8806. fi
  8807. fi
  8808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  8809. $as_echo "$INSTALL" >&6; }
  8810. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  8811. # It thinks the first close brace ends the variable substitution.
  8812. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  8813. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  8814. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  8815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  8816. $as_echo_n "checking whether build environment is sane... " >&6; }
  8817. # Reject unsafe characters in $srcdir or the absolute working directory
  8818. # name. Accept space and tab only in the latter.
  8819. am_lf='
  8820. '
  8821. case `pwd` in
  8822. *[\\\"\#\$\&\'\`$am_lf]*)
  8823. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  8824. esac
  8825. case $srcdir in
  8826. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  8827. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  8828. esac
  8829. # Do 'set' in a subshell so we don't clobber the current shell's
  8830. # arguments. Must try -L first in case configure is actually a
  8831. # symlink; some systems play weird games with the mod time of symlinks
  8832. # (eg FreeBSD returns the mod time of the symlink's containing
  8833. # directory).
  8834. if (
  8835. am_has_slept=no
  8836. for am_try in 1 2; do
  8837. echo "timestamp, slept: $am_has_slept" > conftest.file
  8838. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  8839. if test "$*" = "X"; then
  8840. # -L didn't work.
  8841. set X `ls -t "$srcdir/configure" conftest.file`
  8842. fi
  8843. if test "$*" != "X $srcdir/configure conftest.file" \
  8844. && test "$*" != "X conftest.file $srcdir/configure"; then
  8845. # If neither matched, then we have a broken ls. This can happen
  8846. # if, for instance, CONFIG_SHELL is bash and it inherits a
  8847. # broken ls alias from the environment. This has actually
  8848. # happened. Such a system could not be considered "sane".
  8849. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  8850. alias in your environment" "$LINENO" 5
  8851. fi
  8852. if test "$2" = conftest.file || test $am_try -eq 2; then
  8853. break
  8854. fi
  8855. # Just in case.
  8856. sleep 1
  8857. am_has_slept=yes
  8858. done
  8859. test "$2" = conftest.file
  8860. )
  8861. then
  8862. # Ok.
  8863. :
  8864. else
  8865. as_fn_error $? "newly created file is older than distributed files!
  8866. Check your system clock" "$LINENO" 5
  8867. fi
  8868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8869. $as_echo "yes" >&6; }
  8870. # If we didn't sleep, we still need to ensure time stamps of config.status and
  8871. # generated files are strictly newer.
  8872. am_sleep_pid=
  8873. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  8874. ( sleep 1 ) &
  8875. am_sleep_pid=$!
  8876. fi
  8877. rm -f conftest.file
  8878. test "$program_prefix" != NONE &&
  8879. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  8880. # Use a double $ so make ignores it.
  8881. test "$program_suffix" != NONE &&
  8882. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  8883. # Double any \ or $.
  8884. # By default was `s,x,x', remove it if useless.
  8885. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  8886. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  8887. # expand $ac_aux_dir to an absolute path
  8888. am_aux_dir=`cd $ac_aux_dir && pwd`
  8889. if test x"${MISSING+set}" != xset; then
  8890. case $am_aux_dir in
  8891. *\ * | *\ *)
  8892. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  8893. *)
  8894. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  8895. esac
  8896. fi
  8897. # Use eval to expand $SHELL
  8898. if eval "$MISSING --is-lightweight"; then
  8899. am_missing_run="$MISSING "
  8900. else
  8901. am_missing_run=
  8902. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  8903. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  8904. fi
  8905. if test x"${install_sh}" != xset; then
  8906. case $am_aux_dir in
  8907. *\ * | *\ *)
  8908. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  8909. *)
  8910. install_sh="\${SHELL} $am_aux_dir/install-sh"
  8911. esac
  8912. fi
  8913. # Installed binaries are usually stripped using 'strip' when the user
  8914. # run "make install-strip". However 'strip' might not be the right
  8915. # tool to use in cross-compilation environments, therefore Automake
  8916. # will honor the 'STRIP' environment variable to overrule this program.
  8917. if test "$cross_compiling" != no; then
  8918. if test -n "$ac_tool_prefix"; then
  8919. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  8920. set dummy ${ac_tool_prefix}strip; ac_word=$2
  8921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8922. $as_echo_n "checking for $ac_word... " >&6; }
  8923. if ${ac_cv_prog_STRIP+:} false; then :
  8924. $as_echo_n "(cached) " >&6
  8925. else
  8926. if test -n "$STRIP"; then
  8927. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  8928. else
  8929. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8930. for as_dir in $PATH
  8931. do
  8932. IFS=$as_save_IFS
  8933. test -z "$as_dir" && as_dir=.
  8934. for ac_exec_ext in '' $ac_executable_extensions; do
  8935. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8936. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  8937. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8938. break 2
  8939. fi
  8940. done
  8941. done
  8942. IFS=$as_save_IFS
  8943. fi
  8944. fi
  8945. STRIP=$ac_cv_prog_STRIP
  8946. if test -n "$STRIP"; then
  8947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  8948. $as_echo "$STRIP" >&6; }
  8949. else
  8950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8951. $as_echo "no" >&6; }
  8952. fi
  8953. fi
  8954. if test -z "$ac_cv_prog_STRIP"; then
  8955. ac_ct_STRIP=$STRIP
  8956. # Extract the first word of "strip", so it can be a program name with args.
  8957. set dummy strip; ac_word=$2
  8958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8959. $as_echo_n "checking for $ac_word... " >&6; }
  8960. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  8961. $as_echo_n "(cached) " >&6
  8962. else
  8963. if test -n "$ac_ct_STRIP"; then
  8964. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  8965. else
  8966. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8967. for as_dir in $PATH
  8968. do
  8969. IFS=$as_save_IFS
  8970. test -z "$as_dir" && as_dir=.
  8971. for ac_exec_ext in '' $ac_executable_extensions; do
  8972. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8973. ac_cv_prog_ac_ct_STRIP="strip"
  8974. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8975. break 2
  8976. fi
  8977. done
  8978. done
  8979. IFS=$as_save_IFS
  8980. fi
  8981. fi
  8982. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  8983. if test -n "$ac_ct_STRIP"; then
  8984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  8985. $as_echo "$ac_ct_STRIP" >&6; }
  8986. else
  8987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8988. $as_echo "no" >&6; }
  8989. fi
  8990. if test "x$ac_ct_STRIP" = x; then
  8991. STRIP=":"
  8992. else
  8993. case $cross_compiling:$ac_tool_warned in
  8994. yes:)
  8995. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8996. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8997. ac_tool_warned=yes ;;
  8998. esac
  8999. STRIP=$ac_ct_STRIP
  9000. fi
  9001. else
  9002. STRIP="$ac_cv_prog_STRIP"
  9003. fi
  9004. fi
  9005. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  9006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  9007. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  9008. if test -z "$MKDIR_P"; then
  9009. if ${ac_cv_path_mkdir+:} false; then :
  9010. $as_echo_n "(cached) " >&6
  9011. else
  9012. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9013. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  9014. do
  9015. IFS=$as_save_IFS
  9016. test -z "$as_dir" && as_dir=.
  9017. for ac_prog in mkdir gmkdir; do
  9018. for ac_exec_ext in '' $ac_executable_extensions; do
  9019. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  9020. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  9021. 'mkdir (GNU coreutils) '* | \
  9022. 'mkdir (coreutils) '* | \
  9023. 'mkdir (fileutils) '4.1*)
  9024. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  9025. break 3;;
  9026. esac
  9027. done
  9028. done
  9029. done
  9030. IFS=$as_save_IFS
  9031. fi
  9032. test -d ./--version && rmdir ./--version
  9033. if test "${ac_cv_path_mkdir+set}" = set; then
  9034. MKDIR_P="$ac_cv_path_mkdir -p"
  9035. else
  9036. # As a last resort, use the slow shell script. Don't cache a
  9037. # value for MKDIR_P within a source directory, because that will
  9038. # break other packages using the cache if that directory is
  9039. # removed, or if the value is a relative name.
  9040. MKDIR_P="$ac_install_sh -d"
  9041. fi
  9042. fi
  9043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  9044. $as_echo "$MKDIR_P" >&6; }
  9045. for ac_prog in gawk mawk nawk awk
  9046. do
  9047. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9048. set dummy $ac_prog; ac_word=$2
  9049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9050. $as_echo_n "checking for $ac_word... " >&6; }
  9051. if ${ac_cv_prog_AWK+:} false; then :
  9052. $as_echo_n "(cached) " >&6
  9053. else
  9054. if test -n "$AWK"; then
  9055. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  9056. else
  9057. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9058. for as_dir in $PATH
  9059. do
  9060. IFS=$as_save_IFS
  9061. test -z "$as_dir" && as_dir=.
  9062. for ac_exec_ext in '' $ac_executable_extensions; do
  9063. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9064. ac_cv_prog_AWK="$ac_prog"
  9065. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9066. break 2
  9067. fi
  9068. done
  9069. done
  9070. IFS=$as_save_IFS
  9071. fi
  9072. fi
  9073. AWK=$ac_cv_prog_AWK
  9074. if test -n "$AWK"; then
  9075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  9076. $as_echo "$AWK" >&6; }
  9077. else
  9078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9079. $as_echo "no" >&6; }
  9080. fi
  9081. test -n "$AWK" && break
  9082. done
  9083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  9084. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  9085. set x ${MAKE-make}
  9086. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  9087. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  9088. $as_echo_n "(cached) " >&6
  9089. else
  9090. cat >conftest.make <<\_ACEOF
  9091. SHELL = /bin/sh
  9092. all:
  9093. @echo '@@@%%%=$(MAKE)=@@@%%%'
  9094. _ACEOF
  9095. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  9096. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  9097. *@@@%%%=?*=@@@%%%*)
  9098. eval ac_cv_prog_make_${ac_make}_set=yes;;
  9099. *)
  9100. eval ac_cv_prog_make_${ac_make}_set=no;;
  9101. esac
  9102. rm -f conftest.make
  9103. fi
  9104. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  9105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9106. $as_echo "yes" >&6; }
  9107. SET_MAKE=
  9108. else
  9109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9110. $as_echo "no" >&6; }
  9111. SET_MAKE="MAKE=${MAKE-make}"
  9112. fi
  9113. rm -rf .tst 2>/dev/null
  9114. mkdir .tst 2>/dev/null
  9115. if test -d .tst; then
  9116. am__leading_dot=.
  9117. else
  9118. am__leading_dot=_
  9119. fi
  9120. rmdir .tst 2>/dev/null
  9121. DEPDIR="${am__leading_dot}deps"
  9122. ac_config_commands="$ac_config_commands depfiles"
  9123. am_make=${MAKE-make}
  9124. cat > confinc << 'END'
  9125. am__doit:
  9126. @echo this is the am__doit target
  9127. .PHONY: am__doit
  9128. END
  9129. # If we don't find an include directive, just comment out the code.
  9130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  9131. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  9132. am__include="#"
  9133. am__quote=
  9134. _am_result=none
  9135. # First try GNU make style include.
  9136. echo "include confinc" > confmf
  9137. # Ignore all kinds of additional output from 'make'.
  9138. case `$am_make -s -f confmf 2> /dev/null` in #(
  9139. *the\ am__doit\ target*)
  9140. am__include=include
  9141. am__quote=
  9142. _am_result=GNU
  9143. ;;
  9144. esac
  9145. # Now try BSD make style include.
  9146. if test "$am__include" = "#"; then
  9147. echo '.include "confinc"' > confmf
  9148. case `$am_make -s -f confmf 2> /dev/null` in #(
  9149. *the\ am__doit\ target*)
  9150. am__include=.include
  9151. am__quote="\""
  9152. _am_result=BSD
  9153. ;;
  9154. esac
  9155. fi
  9156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  9157. $as_echo "$_am_result" >&6; }
  9158. rm -f confinc confmf
  9159. # Check whether --enable-dependency-tracking was given.
  9160. if test "${enable_dependency_tracking+set}" = set; then :
  9161. enableval=$enable_dependency_tracking;
  9162. fi
  9163. if test "x$enable_dependency_tracking" != xno; then
  9164. am_depcomp="$ac_aux_dir/depcomp"
  9165. AMDEPBACKSLASH='\'
  9166. am__nodep='_no'
  9167. fi
  9168. if test "x$enable_dependency_tracking" != xno; then
  9169. AMDEP_TRUE=
  9170. AMDEP_FALSE='#'
  9171. else
  9172. AMDEP_TRUE='#'
  9173. AMDEP_FALSE=
  9174. fi
  9175. # Check whether --enable-silent-rules was given.
  9176. if test "${enable_silent_rules+set}" = set; then :
  9177. enableval=$enable_silent_rules;
  9178. fi
  9179. case $enable_silent_rules in # (((
  9180. yes) AM_DEFAULT_VERBOSITY=0;;
  9181. no) AM_DEFAULT_VERBOSITY=1;;
  9182. *) AM_DEFAULT_VERBOSITY=1;;
  9183. esac
  9184. am_make=${MAKE-make}
  9185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  9186. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  9187. if ${am_cv_make_support_nested_variables+:} false; then :
  9188. $as_echo_n "(cached) " >&6
  9189. else
  9190. if $as_echo 'TRUE=$(BAR$(V))
  9191. BAR0=false
  9192. BAR1=true
  9193. V=1
  9194. am__doit:
  9195. @$(TRUE)
  9196. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  9197. am_cv_make_support_nested_variables=yes
  9198. else
  9199. am_cv_make_support_nested_variables=no
  9200. fi
  9201. fi
  9202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  9203. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  9204. if test $am_cv_make_support_nested_variables = yes; then
  9205. AM_V='$(V)'
  9206. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  9207. else
  9208. AM_V=$AM_DEFAULT_VERBOSITY
  9209. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  9210. fi
  9211. AM_BACKSLASH='\'
  9212. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  9213. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  9214. # is not polluted with repeated "-I."
  9215. am__isrc=' -I$(srcdir)'
  9216. # test to see if srcdir already configured
  9217. if test -f $srcdir/config.status; then
  9218. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  9219. fi
  9220. fi
  9221. # test whether we have cygpath
  9222. if test -z "$CYGPATH_W"; then
  9223. if (cygpath --version) >/dev/null 2>/dev/null; then
  9224. CYGPATH_W='cygpath -w'
  9225. else
  9226. CYGPATH_W=echo
  9227. fi
  9228. fi
  9229. # Define the identity of the package.
  9230. PACKAGE=SDL2_image
  9231. VERSION=$VERSION
  9232. cat >>confdefs.h <<_ACEOF
  9233. #define PACKAGE "$PACKAGE"
  9234. _ACEOF
  9235. cat >>confdefs.h <<_ACEOF
  9236. #define VERSION "$VERSION"
  9237. _ACEOF
  9238. # Some tools Automake needs.
  9239. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  9240. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  9241. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  9242. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  9243. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  9244. # For better backward compatibility. To be removed once Automake 1.9.x
  9245. # dies out for good. For more background, see:
  9246. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  9247. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  9248. mkdir_p='$(MKDIR_P)'
  9249. # We need awk for the "check" target. The system "awk" is bad on
  9250. # some platforms.
  9251. # Always define AMTAR for backward compatibility. Yes, it's still used
  9252. # in the wild :-( We should find a proper way to deprecate it ...
  9253. AMTAR='$${TAR-tar}'
  9254. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  9255. depcc="$CC" am_compiler_list=
  9256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  9257. $as_echo_n "checking dependency style of $depcc... " >&6; }
  9258. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  9259. $as_echo_n "(cached) " >&6
  9260. else
  9261. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  9262. # We make a subdir and do the tests there. Otherwise we can end up
  9263. # making bogus files that we don't know about and never remove. For
  9264. # instance it was reported that on HP-UX the gcc test will end up
  9265. # making a dummy file named 'D' -- because '-MD' means "put the output
  9266. # in D".
  9267. rm -rf conftest.dir
  9268. mkdir conftest.dir
  9269. # Copy depcomp to subdir because otherwise we won't find it if we're
  9270. # using a relative directory.
  9271. cp "$am_depcomp" conftest.dir
  9272. cd conftest.dir
  9273. # We will build objects and dependencies in a subdirectory because
  9274. # it helps to detect inapplicable dependency modes. For instance
  9275. # both Tru64's cc and ICC support -MD to output dependencies as a
  9276. # side effect of compilation, but ICC will put the dependencies in
  9277. # the current directory while Tru64 will put them in the object
  9278. # directory.
  9279. mkdir sub
  9280. am_cv_CC_dependencies_compiler_type=none
  9281. if test "$am_compiler_list" = ""; then
  9282. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  9283. fi
  9284. am__universal=false
  9285. case " $depcc " in #(
  9286. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  9287. esac
  9288. for depmode in $am_compiler_list; do
  9289. # Setup a source with many dependencies, because some compilers
  9290. # like to wrap large dependency lists on column 80 (with \), and
  9291. # we should not choose a depcomp mode which is confused by this.
  9292. #
  9293. # We need to recreate these files for each test, as the compiler may
  9294. # overwrite some of them when testing with obscure command lines.
  9295. # This happens at least with the AIX C compiler.
  9296. : > sub/conftest.c
  9297. for i in 1 2 3 4 5 6; do
  9298. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  9299. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  9300. # Solaris 10 /bin/sh.
  9301. echo '/* dummy */' > sub/conftst$i.h
  9302. done
  9303. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  9304. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  9305. # mode. It turns out that the SunPro C++ compiler does not properly
  9306. # handle '-M -o', and we need to detect this. Also, some Intel
  9307. # versions had trouble with output in subdirs.
  9308. am__obj=sub/conftest.${OBJEXT-o}
  9309. am__minus_obj="-o $am__obj"
  9310. case $depmode in
  9311. gcc)
  9312. # This depmode causes a compiler race in universal mode.
  9313. test "$am__universal" = false || continue
  9314. ;;
  9315. nosideeffect)
  9316. # After this tag, mechanisms are not by side-effect, so they'll
  9317. # only be used when explicitly requested.
  9318. if test "x$enable_dependency_tracking" = xyes; then
  9319. continue
  9320. else
  9321. break
  9322. fi
  9323. ;;
  9324. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  9325. # This compiler won't grok '-c -o', but also, the minuso test has
  9326. # not run yet. These depmodes are late enough in the game, and
  9327. # so weak that their functioning should not be impacted.
  9328. am__obj=conftest.${OBJEXT-o}
  9329. am__minus_obj=
  9330. ;;
  9331. none) break ;;
  9332. esac
  9333. if depmode=$depmode \
  9334. source=sub/conftest.c object=$am__obj \
  9335. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  9336. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  9337. >/dev/null 2>conftest.err &&
  9338. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  9339. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  9340. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  9341. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  9342. # icc doesn't choke on unknown options, it will just issue warnings
  9343. # or remarks (even with -Werror). So we grep stderr for any message
  9344. # that says an option was ignored or not supported.
  9345. # When given -MP, icc 7.0 and 7.1 complain thusly:
  9346. # icc: Command line warning: ignoring option '-M'; no argument required
  9347. # The diagnosis changed in icc 8.0:
  9348. # icc: Command line remark: option '-MP' not supported
  9349. if (grep 'ignoring option' conftest.err ||
  9350. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  9351. am_cv_CC_dependencies_compiler_type=$depmode
  9352. break
  9353. fi
  9354. fi
  9355. done
  9356. cd ..
  9357. rm -rf conftest.dir
  9358. else
  9359. am_cv_CC_dependencies_compiler_type=none
  9360. fi
  9361. fi
  9362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  9363. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  9364. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  9365. if
  9366. test "x$enable_dependency_tracking" != xno \
  9367. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  9368. am__fastdepCC_TRUE=
  9369. am__fastdepCC_FALSE='#'
  9370. else
  9371. am__fastdepCC_TRUE='#'
  9372. am__fastdepCC_FALSE=
  9373. fi
  9374. ac_ext=c
  9375. ac_cpp='$CPP $CPPFLAGS'
  9376. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9377. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9378. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9379. if test -n "$ac_tool_prefix"; then
  9380. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  9381. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  9382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9383. $as_echo_n "checking for $ac_word... " >&6; }
  9384. if ${ac_cv_prog_CC+:} false; then :
  9385. $as_echo_n "(cached) " >&6
  9386. else
  9387. if test -n "$CC"; then
  9388. ac_cv_prog_CC="$CC" # Let the user override the test.
  9389. else
  9390. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9391. for as_dir in $PATH
  9392. do
  9393. IFS=$as_save_IFS
  9394. test -z "$as_dir" && as_dir=.
  9395. for ac_exec_ext in '' $ac_executable_extensions; do
  9396. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9397. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  9398. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9399. break 2
  9400. fi
  9401. done
  9402. done
  9403. IFS=$as_save_IFS
  9404. fi
  9405. fi
  9406. CC=$ac_cv_prog_CC
  9407. if test -n "$CC"; then
  9408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9409. $as_echo "$CC" >&6; }
  9410. else
  9411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9412. $as_echo "no" >&6; }
  9413. fi
  9414. fi
  9415. if test -z "$ac_cv_prog_CC"; then
  9416. ac_ct_CC=$CC
  9417. # Extract the first word of "gcc", so it can be a program name with args.
  9418. set dummy gcc; ac_word=$2
  9419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9420. $as_echo_n "checking for $ac_word... " >&6; }
  9421. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  9422. $as_echo_n "(cached) " >&6
  9423. else
  9424. if test -n "$ac_ct_CC"; then
  9425. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9426. else
  9427. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9428. for as_dir in $PATH
  9429. do
  9430. IFS=$as_save_IFS
  9431. test -z "$as_dir" && as_dir=.
  9432. for ac_exec_ext in '' $ac_executable_extensions; do
  9433. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9434. ac_cv_prog_ac_ct_CC="gcc"
  9435. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9436. break 2
  9437. fi
  9438. done
  9439. done
  9440. IFS=$as_save_IFS
  9441. fi
  9442. fi
  9443. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  9444. if test -n "$ac_ct_CC"; then
  9445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  9446. $as_echo "$ac_ct_CC" >&6; }
  9447. else
  9448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9449. $as_echo "no" >&6; }
  9450. fi
  9451. if test "x$ac_ct_CC" = x; then
  9452. CC=""
  9453. else
  9454. case $cross_compiling:$ac_tool_warned in
  9455. yes:)
  9456. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9457. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9458. ac_tool_warned=yes ;;
  9459. esac
  9460. CC=$ac_ct_CC
  9461. fi
  9462. else
  9463. CC="$ac_cv_prog_CC"
  9464. fi
  9465. if test -z "$CC"; then
  9466. if test -n "$ac_tool_prefix"; then
  9467. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  9468. set dummy ${ac_tool_prefix}cc; ac_word=$2
  9469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9470. $as_echo_n "checking for $ac_word... " >&6; }
  9471. if ${ac_cv_prog_CC+:} false; then :
  9472. $as_echo_n "(cached) " >&6
  9473. else
  9474. if test -n "$CC"; then
  9475. ac_cv_prog_CC="$CC" # Let the user override the test.
  9476. else
  9477. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9478. for as_dir in $PATH
  9479. do
  9480. IFS=$as_save_IFS
  9481. test -z "$as_dir" && as_dir=.
  9482. for ac_exec_ext in '' $ac_executable_extensions; do
  9483. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9484. ac_cv_prog_CC="${ac_tool_prefix}cc"
  9485. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9486. break 2
  9487. fi
  9488. done
  9489. done
  9490. IFS=$as_save_IFS
  9491. fi
  9492. fi
  9493. CC=$ac_cv_prog_CC
  9494. if test -n "$CC"; then
  9495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9496. $as_echo "$CC" >&6; }
  9497. else
  9498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9499. $as_echo "no" >&6; }
  9500. fi
  9501. fi
  9502. fi
  9503. if test -z "$CC"; then
  9504. # Extract the first word of "cc", so it can be a program name with args.
  9505. set dummy cc; ac_word=$2
  9506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9507. $as_echo_n "checking for $ac_word... " >&6; }
  9508. if ${ac_cv_prog_CC+:} false; then :
  9509. $as_echo_n "(cached) " >&6
  9510. else
  9511. if test -n "$CC"; then
  9512. ac_cv_prog_CC="$CC" # Let the user override the test.
  9513. else
  9514. ac_prog_rejected=no
  9515. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9516. for as_dir in $PATH
  9517. do
  9518. IFS=$as_save_IFS
  9519. test -z "$as_dir" && as_dir=.
  9520. for ac_exec_ext in '' $ac_executable_extensions; do
  9521. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9522. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  9523. ac_prog_rejected=yes
  9524. continue
  9525. fi
  9526. ac_cv_prog_CC="cc"
  9527. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9528. break 2
  9529. fi
  9530. done
  9531. done
  9532. IFS=$as_save_IFS
  9533. if test $ac_prog_rejected = yes; then
  9534. # We found a bogon in the path, so make sure we never use it.
  9535. set dummy $ac_cv_prog_CC
  9536. shift
  9537. if test $# != 0; then
  9538. # We chose a different compiler from the bogus one.
  9539. # However, it has the same basename, so the bogon will be chosen
  9540. # first if we set CC to just the basename; use the full file name.
  9541. shift
  9542. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  9543. fi
  9544. fi
  9545. fi
  9546. fi
  9547. CC=$ac_cv_prog_CC
  9548. if test -n "$CC"; then
  9549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9550. $as_echo "$CC" >&6; }
  9551. else
  9552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9553. $as_echo "no" >&6; }
  9554. fi
  9555. fi
  9556. if test -z "$CC"; then
  9557. if test -n "$ac_tool_prefix"; then
  9558. for ac_prog in cl.exe
  9559. do
  9560. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  9561. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  9562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9563. $as_echo_n "checking for $ac_word... " >&6; }
  9564. if ${ac_cv_prog_CC+:} false; then :
  9565. $as_echo_n "(cached) " >&6
  9566. else
  9567. if test -n "$CC"; then
  9568. ac_cv_prog_CC="$CC" # Let the user override the test.
  9569. else
  9570. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9571. for as_dir in $PATH
  9572. do
  9573. IFS=$as_save_IFS
  9574. test -z "$as_dir" && as_dir=.
  9575. for ac_exec_ext in '' $ac_executable_extensions; do
  9576. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9577. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  9578. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9579. break 2
  9580. fi
  9581. done
  9582. done
  9583. IFS=$as_save_IFS
  9584. fi
  9585. fi
  9586. CC=$ac_cv_prog_CC
  9587. if test -n "$CC"; then
  9588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9589. $as_echo "$CC" >&6; }
  9590. else
  9591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9592. $as_echo "no" >&6; }
  9593. fi
  9594. test -n "$CC" && break
  9595. done
  9596. fi
  9597. if test -z "$CC"; then
  9598. ac_ct_CC=$CC
  9599. for ac_prog in cl.exe
  9600. do
  9601. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9602. set dummy $ac_prog; ac_word=$2
  9603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9604. $as_echo_n "checking for $ac_word... " >&6; }
  9605. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  9606. $as_echo_n "(cached) " >&6
  9607. else
  9608. if test -n "$ac_ct_CC"; then
  9609. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9610. else
  9611. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9612. for as_dir in $PATH
  9613. do
  9614. IFS=$as_save_IFS
  9615. test -z "$as_dir" && as_dir=.
  9616. for ac_exec_ext in '' $ac_executable_extensions; do
  9617. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9618. ac_cv_prog_ac_ct_CC="$ac_prog"
  9619. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9620. break 2
  9621. fi
  9622. done
  9623. done
  9624. IFS=$as_save_IFS
  9625. fi
  9626. fi
  9627. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  9628. if test -n "$ac_ct_CC"; then
  9629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  9630. $as_echo "$ac_ct_CC" >&6; }
  9631. else
  9632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9633. $as_echo "no" >&6; }
  9634. fi
  9635. test -n "$ac_ct_CC" && break
  9636. done
  9637. if test "x$ac_ct_CC" = x; then
  9638. CC=""
  9639. else
  9640. case $cross_compiling:$ac_tool_warned in
  9641. yes:)
  9642. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9643. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9644. ac_tool_warned=yes ;;
  9645. esac
  9646. CC=$ac_ct_CC
  9647. fi
  9648. fi
  9649. fi
  9650. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9651. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9652. as_fn_error $? "no acceptable C compiler found in \$PATH
  9653. See \`config.log' for more details" "$LINENO" 5; }
  9654. # Provide some information about the compiler.
  9655. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  9656. set X $ac_compile
  9657. ac_compiler=$2
  9658. for ac_option in --version -v -V -qversion; do
  9659. { { ac_try="$ac_compiler $ac_option >&5"
  9660. case "(($ac_try" in
  9661. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9662. *) ac_try_echo=$ac_try;;
  9663. esac
  9664. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  9665. $as_echo "$ac_try_echo"; } >&5
  9666. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  9667. ac_status=$?
  9668. if test -s conftest.err; then
  9669. sed '10a\
  9670. ... rest of stderr output deleted ...
  9671. 10q' conftest.err >conftest.er1
  9672. cat conftest.er1 >&5
  9673. fi
  9674. rm -f conftest.er1 conftest.err
  9675. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9676. test $ac_status = 0; }
  9677. done
  9678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  9679. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  9680. if ${ac_cv_c_compiler_gnu+:} false; then :
  9681. $as_echo_n "(cached) " >&6
  9682. else
  9683. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9684. /* end confdefs.h. */
  9685. int
  9686. main ()
  9687. {
  9688. #ifndef __GNUC__
  9689. choke me
  9690. #endif
  9691. ;
  9692. return 0;
  9693. }
  9694. _ACEOF
  9695. if ac_fn_c_try_compile "$LINENO"; then :
  9696. ac_compiler_gnu=yes
  9697. else
  9698. ac_compiler_gnu=no
  9699. fi
  9700. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9701. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  9702. fi
  9703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  9704. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  9705. if test $ac_compiler_gnu = yes; then
  9706. GCC=yes
  9707. else
  9708. GCC=
  9709. fi
  9710. ac_test_CFLAGS=${CFLAGS+set}
  9711. ac_save_CFLAGS=$CFLAGS
  9712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  9713. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  9714. if ${ac_cv_prog_cc_g+:} false; then :
  9715. $as_echo_n "(cached) " >&6
  9716. else
  9717. ac_save_c_werror_flag=$ac_c_werror_flag
  9718. ac_c_werror_flag=yes
  9719. ac_cv_prog_cc_g=no
  9720. CFLAGS="-g"
  9721. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9722. /* end confdefs.h. */
  9723. int
  9724. main ()
  9725. {
  9726. ;
  9727. return 0;
  9728. }
  9729. _ACEOF
  9730. if ac_fn_c_try_compile "$LINENO"; then :
  9731. ac_cv_prog_cc_g=yes
  9732. else
  9733. CFLAGS=""
  9734. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9735. /* end confdefs.h. */
  9736. int
  9737. main ()
  9738. {
  9739. ;
  9740. return 0;
  9741. }
  9742. _ACEOF
  9743. if ac_fn_c_try_compile "$LINENO"; then :
  9744. else
  9745. ac_c_werror_flag=$ac_save_c_werror_flag
  9746. CFLAGS="-g"
  9747. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9748. /* end confdefs.h. */
  9749. int
  9750. main ()
  9751. {
  9752. ;
  9753. return 0;
  9754. }
  9755. _ACEOF
  9756. if ac_fn_c_try_compile "$LINENO"; then :
  9757. ac_cv_prog_cc_g=yes
  9758. fi
  9759. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9760. fi
  9761. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9762. fi
  9763. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9764. ac_c_werror_flag=$ac_save_c_werror_flag
  9765. fi
  9766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  9767. $as_echo "$ac_cv_prog_cc_g" >&6; }
  9768. if test "$ac_test_CFLAGS" = set; then
  9769. CFLAGS=$ac_save_CFLAGS
  9770. elif test $ac_cv_prog_cc_g = yes; then
  9771. if test "$GCC" = yes; then
  9772. CFLAGS="-g -O2"
  9773. else
  9774. CFLAGS="-g"
  9775. fi
  9776. else
  9777. if test "$GCC" = yes; then
  9778. CFLAGS="-O2"
  9779. else
  9780. CFLAGS=
  9781. fi
  9782. fi
  9783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  9784. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  9785. if ${ac_cv_prog_cc_c89+:} false; then :
  9786. $as_echo_n "(cached) " >&6
  9787. else
  9788. ac_cv_prog_cc_c89=no
  9789. ac_save_CC=$CC
  9790. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9791. /* end confdefs.h. */
  9792. #include <stdarg.h>
  9793. #include <stdio.h>
  9794. struct stat;
  9795. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  9796. struct buf { int x; };
  9797. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  9798. static char *e (p, i)
  9799. char **p;
  9800. int i;
  9801. {
  9802. return p[i];
  9803. }
  9804. static char *f (char * (*g) (char **, int), char **p, ...)
  9805. {
  9806. char *s;
  9807. va_list v;
  9808. va_start (v,p);
  9809. s = g (p, va_arg (v,int));
  9810. va_end (v);
  9811. return s;
  9812. }
  9813. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  9814. function prototypes and stuff, but not '\xHH' hex character constants.
  9815. These don't provoke an error unfortunately, instead are silently treated
  9816. as 'x'. The following induces an error, until -std is added to get
  9817. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  9818. array size at least. It's necessary to write '\x00'==0 to get something
  9819. that's true only with -std. */
  9820. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  9821. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  9822. inside strings and character constants. */
  9823. #define FOO(x) 'x'
  9824. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  9825. int test (int i, double x);
  9826. struct s1 {int (*f) (int a);};
  9827. struct s2 {int (*f) (double a);};
  9828. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  9829. int argc;
  9830. char **argv;
  9831. int
  9832. main ()
  9833. {
  9834. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  9835. ;
  9836. return 0;
  9837. }
  9838. _ACEOF
  9839. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  9840. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  9841. do
  9842. CC="$ac_save_CC $ac_arg"
  9843. if ac_fn_c_try_compile "$LINENO"; then :
  9844. ac_cv_prog_cc_c89=$ac_arg
  9845. fi
  9846. rm -f core conftest.err conftest.$ac_objext
  9847. test "x$ac_cv_prog_cc_c89" != "xno" && break
  9848. done
  9849. rm -f conftest.$ac_ext
  9850. CC=$ac_save_CC
  9851. fi
  9852. # AC_CACHE_VAL
  9853. case "x$ac_cv_prog_cc_c89" in
  9854. x)
  9855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  9856. $as_echo "none needed" >&6; } ;;
  9857. xno)
  9858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  9859. $as_echo "unsupported" >&6; } ;;
  9860. *)
  9861. CC="$CC $ac_cv_prog_cc_c89"
  9862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  9863. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  9864. esac
  9865. if test "x$ac_cv_prog_cc_c89" != xno; then :
  9866. fi
  9867. ac_ext=c
  9868. ac_cpp='$CPP $CPPFLAGS'
  9869. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9870. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9871. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9872. ac_ext=m
  9873. ac_cpp='$OBJCPP $CPPFLAGS'
  9874. ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9875. ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9876. ac_compiler_gnu=$ac_cv_objc_compiler_gnu
  9877. if test -n "$ac_tool_prefix"; then
  9878. for ac_prog in gcc objcc objc cc CC
  9879. do
  9880. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  9881. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  9882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9883. $as_echo_n "checking for $ac_word... " >&6; }
  9884. if ${ac_cv_prog_OBJC+:} false; then :
  9885. $as_echo_n "(cached) " >&6
  9886. else
  9887. if test -n "$OBJC"; then
  9888. ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
  9889. else
  9890. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9891. for as_dir in $PATH
  9892. do
  9893. IFS=$as_save_IFS
  9894. test -z "$as_dir" && as_dir=.
  9895. for ac_exec_ext in '' $ac_executable_extensions; do
  9896. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9897. ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
  9898. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9899. break 2
  9900. fi
  9901. done
  9902. done
  9903. IFS=$as_save_IFS
  9904. fi
  9905. fi
  9906. OBJC=$ac_cv_prog_OBJC
  9907. if test -n "$OBJC"; then
  9908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5
  9909. $as_echo "$OBJC" >&6; }
  9910. else
  9911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9912. $as_echo "no" >&6; }
  9913. fi
  9914. test -n "$OBJC" && break
  9915. done
  9916. fi
  9917. if test -z "$OBJC"; then
  9918. ac_ct_OBJC=$OBJC
  9919. for ac_prog in gcc objcc objc cc CC
  9920. do
  9921. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9922. set dummy $ac_prog; ac_word=$2
  9923. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9924. $as_echo_n "checking for $ac_word... " >&6; }
  9925. if ${ac_cv_prog_ac_ct_OBJC+:} false; then :
  9926. $as_echo_n "(cached) " >&6
  9927. else
  9928. if test -n "$ac_ct_OBJC"; then
  9929. ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
  9930. else
  9931. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9932. for as_dir in $PATH
  9933. do
  9934. IFS=$as_save_IFS
  9935. test -z "$as_dir" && as_dir=.
  9936. for ac_exec_ext in '' $ac_executable_extensions; do
  9937. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9938. ac_cv_prog_ac_ct_OBJC="$ac_prog"
  9939. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9940. break 2
  9941. fi
  9942. done
  9943. done
  9944. IFS=$as_save_IFS
  9945. fi
  9946. fi
  9947. ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
  9948. if test -n "$ac_ct_OBJC"; then
  9949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJC" >&5
  9950. $as_echo "$ac_ct_OBJC" >&6; }
  9951. else
  9952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9953. $as_echo "no" >&6; }
  9954. fi
  9955. test -n "$ac_ct_OBJC" && break
  9956. done
  9957. if test "x$ac_ct_OBJC" = x; then
  9958. OBJC="gcc"
  9959. else
  9960. case $cross_compiling:$ac_tool_warned in
  9961. yes:)
  9962. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9963. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9964. ac_tool_warned=yes ;;
  9965. esac
  9966. OBJC=$ac_ct_OBJC
  9967. fi
  9968. fi
  9969. # Provide some information about the compiler.
  9970. $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C compiler version" >&5
  9971. set X $ac_compile
  9972. ac_compiler=$2
  9973. for ac_option in --version -v -V -qversion; do
  9974. { { ac_try="$ac_compiler $ac_option >&5"
  9975. case "(($ac_try" in
  9976. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9977. *) ac_try_echo=$ac_try;;
  9978. esac
  9979. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  9980. $as_echo "$ac_try_echo"; } >&5
  9981. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  9982. ac_status=$?
  9983. if test -s conftest.err; then
  9984. sed '10a\
  9985. ... rest of stderr output deleted ...
  9986. 10q' conftest.err >conftest.er1
  9987. cat conftest.er1 >&5
  9988. fi
  9989. rm -f conftest.er1 conftest.err
  9990. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9991. test $ac_status = 0; }
  9992. done
  9993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5
  9994. $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
  9995. if ${ac_cv_objc_compiler_gnu+:} false; then :
  9996. $as_echo_n "(cached) " >&6
  9997. else
  9998. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9999. /* end confdefs.h. */
  10000. int
  10001. main ()
  10002. {
  10003. #ifndef __GNUC__
  10004. choke me
  10005. #endif
  10006. ;
  10007. return 0;
  10008. }
  10009. _ACEOF
  10010. if ac_fn_objc_try_compile "$LINENO"; then :
  10011. ac_compiler_gnu=yes
  10012. else
  10013. ac_compiler_gnu=no
  10014. fi
  10015. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10016. ac_cv_objc_compiler_gnu=$ac_compiler_gnu
  10017. fi
  10018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5
  10019. $as_echo "$ac_cv_objc_compiler_gnu" >&6; }
  10020. if test $ac_compiler_gnu = yes; then
  10021. GOBJC=yes
  10022. else
  10023. GOBJC=
  10024. fi
  10025. ac_test_OBJCFLAGS=${OBJCFLAGS+set}
  10026. ac_save_OBJCFLAGS=$OBJCFLAGS
  10027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5
  10028. $as_echo_n "checking whether $OBJC accepts -g... " >&6; }
  10029. if ${ac_cv_prog_objc_g+:} false; then :
  10030. $as_echo_n "(cached) " >&6
  10031. else
  10032. ac_save_objc_werror_flag=$ac_objc_werror_flag
  10033. ac_objc_werror_flag=yes
  10034. ac_cv_prog_objc_g=no
  10035. OBJCFLAGS="-g"
  10036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10037. /* end confdefs.h. */
  10038. int
  10039. main ()
  10040. {
  10041. ;
  10042. return 0;
  10043. }
  10044. _ACEOF
  10045. if ac_fn_objc_try_compile "$LINENO"; then :
  10046. ac_cv_prog_objc_g=yes
  10047. else
  10048. OBJCFLAGS=""
  10049. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10050. /* end confdefs.h. */
  10051. int
  10052. main ()
  10053. {
  10054. ;
  10055. return 0;
  10056. }
  10057. _ACEOF
  10058. if ac_fn_objc_try_compile "$LINENO"; then :
  10059. else
  10060. ac_objc_werror_flag=$ac_save_objc_werror_flag
  10061. OBJCFLAGS="-g"
  10062. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10063. /* end confdefs.h. */
  10064. int
  10065. main ()
  10066. {
  10067. ;
  10068. return 0;
  10069. }
  10070. _ACEOF
  10071. if ac_fn_objc_try_compile "$LINENO"; then :
  10072. ac_cv_prog_objc_g=yes
  10073. fi
  10074. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10075. fi
  10076. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10077. fi
  10078. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10079. ac_objc_werror_flag=$ac_save_objc_werror_flag
  10080. fi
  10081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objc_g" >&5
  10082. $as_echo "$ac_cv_prog_objc_g" >&6; }
  10083. if test "$ac_test_OBJCFLAGS" = set; then
  10084. OBJCFLAGS=$ac_save_OBJCFLAGS
  10085. elif test $ac_cv_prog_objc_g = yes; then
  10086. if test "$GOBJC" = yes; then
  10087. OBJCFLAGS="-g -O2"
  10088. else
  10089. OBJCFLAGS="-g"
  10090. fi
  10091. else
  10092. if test "$GOBJC" = yes; then
  10093. OBJCFLAGS="-O2"
  10094. else
  10095. OBJCFLAGS=
  10096. fi
  10097. fi
  10098. ac_ext=c
  10099. ac_cpp='$CPP $CPPFLAGS'
  10100. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10101. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10102. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10103. depcc="$OBJC" am_compiler_list='gcc3 gcc'
  10104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  10105. $as_echo_n "checking dependency style of $depcc... " >&6; }
  10106. if ${am_cv_OBJC_dependencies_compiler_type+:} false; then :
  10107. $as_echo_n "(cached) " >&6
  10108. else
  10109. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  10110. # We make a subdir and do the tests there. Otherwise we can end up
  10111. # making bogus files that we don't know about and never remove. For
  10112. # instance it was reported that on HP-UX the gcc test will end up
  10113. # making a dummy file named 'D' -- because '-MD' means "put the output
  10114. # in D".
  10115. rm -rf conftest.dir
  10116. mkdir conftest.dir
  10117. # Copy depcomp to subdir because otherwise we won't find it if we're
  10118. # using a relative directory.
  10119. cp "$am_depcomp" conftest.dir
  10120. cd conftest.dir
  10121. # We will build objects and dependencies in a subdirectory because
  10122. # it helps to detect inapplicable dependency modes. For instance
  10123. # both Tru64's cc and ICC support -MD to output dependencies as a
  10124. # side effect of compilation, but ICC will put the dependencies in
  10125. # the current directory while Tru64 will put them in the object
  10126. # directory.
  10127. mkdir sub
  10128. am_cv_OBJC_dependencies_compiler_type=none
  10129. if test "$am_compiler_list" = ""; then
  10130. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  10131. fi
  10132. am__universal=false
  10133. for depmode in $am_compiler_list; do
  10134. # Setup a source with many dependencies, because some compilers
  10135. # like to wrap large dependency lists on column 80 (with \), and
  10136. # we should not choose a depcomp mode which is confused by this.
  10137. #
  10138. # We need to recreate these files for each test, as the compiler may
  10139. # overwrite some of them when testing with obscure command lines.
  10140. # This happens at least with the AIX C compiler.
  10141. : > sub/conftest.c
  10142. for i in 1 2 3 4 5 6; do
  10143. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  10144. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  10145. # Solaris 10 /bin/sh.
  10146. echo '/* dummy */' > sub/conftst$i.h
  10147. done
  10148. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  10149. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  10150. # mode. It turns out that the SunPro C++ compiler does not properly
  10151. # handle '-M -o', and we need to detect this. Also, some Intel
  10152. # versions had trouble with output in subdirs.
  10153. am__obj=sub/conftest.${OBJEXT-o}
  10154. am__minus_obj="-o $am__obj"
  10155. case $depmode in
  10156. gcc)
  10157. # This depmode causes a compiler race in universal mode.
  10158. test "$am__universal" = false || continue
  10159. ;;
  10160. nosideeffect)
  10161. # After this tag, mechanisms are not by side-effect, so they'll
  10162. # only be used when explicitly requested.
  10163. if test "x$enable_dependency_tracking" = xyes; then
  10164. continue
  10165. else
  10166. break
  10167. fi
  10168. ;;
  10169. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  10170. # This compiler won't grok '-c -o', but also, the minuso test has
  10171. # not run yet. These depmodes are late enough in the game, and
  10172. # so weak that their functioning should not be impacted.
  10173. am__obj=conftest.${OBJEXT-o}
  10174. am__minus_obj=
  10175. ;;
  10176. none) break ;;
  10177. esac
  10178. if depmode=$depmode \
  10179. source=sub/conftest.c object=$am__obj \
  10180. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  10181. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  10182. >/dev/null 2>conftest.err &&
  10183. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  10184. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  10185. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  10186. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  10187. # icc doesn't choke on unknown options, it will just issue warnings
  10188. # or remarks (even with -Werror). So we grep stderr for any message
  10189. # that says an option was ignored or not supported.
  10190. # When given -MP, icc 7.0 and 7.1 complain thusly:
  10191. # icc: Command line warning: ignoring option '-M'; no argument required
  10192. # The diagnosis changed in icc 8.0:
  10193. # icc: Command line remark: option '-MP' not supported
  10194. if (grep 'ignoring option' conftest.err ||
  10195. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  10196. am_cv_OBJC_dependencies_compiler_type=$depmode
  10197. break
  10198. fi
  10199. fi
  10200. done
  10201. cd ..
  10202. rm -rf conftest.dir
  10203. else
  10204. am_cv_OBJC_dependencies_compiler_type=none
  10205. fi
  10206. fi
  10207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJC_dependencies_compiler_type" >&5
  10208. $as_echo "$am_cv_OBJC_dependencies_compiler_type" >&6; }
  10209. OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
  10210. if
  10211. test "x$enable_dependency_tracking" != xno \
  10212. && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
  10213. am__fastdepOBJC_TRUE=
  10214. am__fastdepOBJC_FALSE='#'
  10215. else
  10216. am__fastdepOBJC_TRUE='#'
  10217. am__fastdepOBJC_FALSE=
  10218. fi
  10219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  10220. $as_echo_n "checking for inline... " >&6; }
  10221. if ${ac_cv_c_inline+:} false; then :
  10222. $as_echo_n "(cached) " >&6
  10223. else
  10224. ac_cv_c_inline=no
  10225. for ac_kw in inline __inline__ __inline; do
  10226. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10227. /* end confdefs.h. */
  10228. #ifndef __cplusplus
  10229. typedef int foo_t;
  10230. static $ac_kw foo_t static_foo () {return 0; }
  10231. $ac_kw foo_t foo () {return 0; }
  10232. #endif
  10233. _ACEOF
  10234. if ac_fn_c_try_compile "$LINENO"; then :
  10235. ac_cv_c_inline=$ac_kw
  10236. fi
  10237. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10238. test "$ac_cv_c_inline" != no && break
  10239. done
  10240. fi
  10241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  10242. $as_echo "$ac_cv_c_inline" >&6; }
  10243. case $ac_cv_c_inline in
  10244. inline | yes) ;;
  10245. *)
  10246. case $ac_cv_c_inline in
  10247. no) ac_val=;;
  10248. *) ac_val=$ac_cv_c_inline;;
  10249. esac
  10250. cat >>confdefs.h <<_ACEOF
  10251. #ifndef __cplusplus
  10252. #define inline $ac_val
  10253. #endif
  10254. _ACEOF
  10255. ;;
  10256. esac
  10257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  10258. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  10259. set x ${MAKE-make}
  10260. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  10261. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  10262. $as_echo_n "(cached) " >&6
  10263. else
  10264. cat >conftest.make <<\_ACEOF
  10265. SHELL = /bin/sh
  10266. all:
  10267. @echo '@@@%%%=$(MAKE)=@@@%%%'
  10268. _ACEOF
  10269. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  10270. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  10271. *@@@%%%=?*=@@@%%%*)
  10272. eval ac_cv_prog_make_${ac_make}_set=yes;;
  10273. *)
  10274. eval ac_cv_prog_make_${ac_make}_set=no;;
  10275. esac
  10276. rm -f conftest.make
  10277. fi
  10278. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  10279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10280. $as_echo "yes" >&6; }
  10281. SET_MAKE=
  10282. else
  10283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10284. $as_echo "no" >&6; }
  10285. SET_MAKE="MAKE=${MAKE-make}"
  10286. fi
  10287. if test -z "$host_alias"; then
  10288. hostaliaswindres=
  10289. else
  10290. hostaliaswindres="$host_alias-windres"
  10291. fi
  10292. for ac_prog in windres $hostaliaswindres $host_os-windres
  10293. do
  10294. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10295. set dummy $ac_prog; ac_word=$2
  10296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10297. $as_echo_n "checking for $ac_word... " >&6; }
  10298. if ${ac_cv_prog_WINDRES+:} false; then :
  10299. $as_echo_n "(cached) " >&6
  10300. else
  10301. if test -n "$WINDRES"; then
  10302. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  10303. else
  10304. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10305. for as_dir in $PATH
  10306. do
  10307. IFS=$as_save_IFS
  10308. test -z "$as_dir" && as_dir=.
  10309. for ac_exec_ext in '' $ac_executable_extensions; do
  10310. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10311. ac_cv_prog_WINDRES="$ac_prog"
  10312. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10313. break 2
  10314. fi
  10315. done
  10316. done
  10317. IFS=$as_save_IFS
  10318. fi
  10319. fi
  10320. WINDRES=$ac_cv_prog_WINDRES
  10321. if test -n "$WINDRES"; then
  10322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  10323. $as_echo "$WINDRES" >&6; }
  10324. else
  10325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10326. $as_echo "no" >&6; }
  10327. fi
  10328. test -n "$WINDRES" && break
  10329. done
  10330. case "$host" in
  10331. *-*-beos*)
  10332. ac_default_prefix=/boot/develop/tools/gnupro
  10333. ;;
  10334. *-*-cygwin* | *-*-mingw32*)
  10335. if test "$build" != "$host"; then # cross-compiling
  10336. # Default cross-compile location
  10337. ac_default_prefix=/usr/local/cross-tools/i386-mingw32
  10338. else
  10339. # Look for the location of the tools and install there
  10340. if test "$BUILD_PREFIX" != ""; then
  10341. ac_default_prefix=$BUILD_PREFIX
  10342. fi
  10343. fi
  10344. if test x$WINDRES != x; then
  10345. use_version_rc=true
  10346. fi
  10347. ;;
  10348. *-*-darwin*)
  10349. # Check whether --enable-imageio was given.
  10350. if test "${enable_imageio+set}" = set; then :
  10351. enableval=$enable_imageio;
  10352. else
  10353. enable_imageio=yes
  10354. fi
  10355. if test x$enable_imageio = xyes; then
  10356. IMG_LIBS="-Wl,-framework,ApplicationServices $IMG_LIBS"
  10357. else
  10358. CFLAGS="$CFLAGS -DSDL_IMAGE_USE_COMMON_BACKEND"
  10359. fi
  10360. ;;
  10361. esac
  10362. if test x$enable_imageio = xyes; then
  10363. USE_IMAGEIO_TRUE=
  10364. USE_IMAGEIO_FALSE='#'
  10365. else
  10366. USE_IMAGEIO_TRUE='#'
  10367. USE_IMAGEIO_FALSE=
  10368. fi
  10369. if test x$use_version_rc = xtrue; then
  10370. USE_VERSION_RC_TRUE=
  10371. USE_VERSION_RC_FALSE='#'
  10372. else
  10373. USE_VERSION_RC_TRUE='#'
  10374. USE_VERSION_RC_FALSE=
  10375. fi
  10376. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  10377. find_lib()
  10378. {
  10379. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  10380. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  10381. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  10382. if test "$cross_compiling" = yes; then
  10383. host_lib_path=""
  10384. else
  10385. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  10386. fi
  10387. for path in $gcc_bin_path $gcc_lib_path $env_lib_path $host_lib_path; do
  10388. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  10389. if test x$lib != x; then
  10390. echo $lib
  10391. return
  10392. fi
  10393. done
  10394. }
  10395. SDL_VERSION=2.0.0
  10396. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  10397. if test -n "$ac_tool_prefix"; then
  10398. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  10399. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  10400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10401. $as_echo_n "checking for $ac_word... " >&6; }
  10402. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  10403. $as_echo_n "(cached) " >&6
  10404. else
  10405. case $PKG_CONFIG in
  10406. [\\/]* | ?:[\\/]*)
  10407. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  10408. ;;
  10409. *)
  10410. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10411. for as_dir in $PATH
  10412. do
  10413. IFS=$as_save_IFS
  10414. test -z "$as_dir" && as_dir=.
  10415. for ac_exec_ext in '' $ac_executable_extensions; do
  10416. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10417. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  10418. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10419. break 2
  10420. fi
  10421. done
  10422. done
  10423. IFS=$as_save_IFS
  10424. ;;
  10425. esac
  10426. fi
  10427. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  10428. if test -n "$PKG_CONFIG"; then
  10429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  10430. $as_echo "$PKG_CONFIG" >&6; }
  10431. else
  10432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10433. $as_echo "no" >&6; }
  10434. fi
  10435. fi
  10436. if test -z "$ac_cv_path_PKG_CONFIG"; then
  10437. ac_pt_PKG_CONFIG=$PKG_CONFIG
  10438. # Extract the first word of "pkg-config", so it can be a program name with args.
  10439. set dummy pkg-config; ac_word=$2
  10440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10441. $as_echo_n "checking for $ac_word... " >&6; }
  10442. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  10443. $as_echo_n "(cached) " >&6
  10444. else
  10445. case $ac_pt_PKG_CONFIG in
  10446. [\\/]* | ?:[\\/]*)
  10447. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  10448. ;;
  10449. *)
  10450. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10451. for as_dir in $PATH
  10452. do
  10453. IFS=$as_save_IFS
  10454. test -z "$as_dir" && as_dir=.
  10455. for ac_exec_ext in '' $ac_executable_extensions; do
  10456. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10457. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  10458. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10459. break 2
  10460. fi
  10461. done
  10462. done
  10463. IFS=$as_save_IFS
  10464. ;;
  10465. esac
  10466. fi
  10467. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  10468. if test -n "$ac_pt_PKG_CONFIG"; then
  10469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  10470. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  10471. else
  10472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10473. $as_echo "no" >&6; }
  10474. fi
  10475. if test "x$ac_pt_PKG_CONFIG" = x; then
  10476. PKG_CONFIG=""
  10477. else
  10478. case $cross_compiling:$ac_tool_warned in
  10479. yes:)
  10480. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10481. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10482. ac_tool_warned=yes ;;
  10483. esac
  10484. PKG_CONFIG=$ac_pt_PKG_CONFIG
  10485. fi
  10486. else
  10487. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  10488. fi
  10489. fi
  10490. if test -n "$PKG_CONFIG"; then
  10491. _pkg_min_version=0.9.0
  10492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  10493. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  10494. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  10495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10496. $as_echo "yes" >&6; }
  10497. else
  10498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10499. $as_echo "no" >&6; }
  10500. PKG_CONFIG=""
  10501. fi
  10502. fi
  10503. # Check whether --with-sdl-prefix was given.
  10504. if test "${with_sdl_prefix+set}" = set; then :
  10505. withval=$with_sdl_prefix; sdl_prefix="$withval"
  10506. else
  10507. sdl_prefix=""
  10508. fi
  10509. # Check whether --with-sdl-exec-prefix was given.
  10510. if test "${with_sdl_exec_prefix+set}" = set; then :
  10511. withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
  10512. else
  10513. sdl_exec_prefix=""
  10514. fi
  10515. # Check whether --enable-sdltest was given.
  10516. if test "${enable_sdltest+set}" = set; then :
  10517. enableval=$enable_sdltest;
  10518. else
  10519. enable_sdltest=yes
  10520. fi
  10521. min_sdl_version=$SDL_VERSION
  10522. if test "x$sdl_prefix$sdl_exec_prefix" = x ; then
  10523. pkg_failed=no
  10524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL" >&5
  10525. $as_echo_n "checking for SDL... " >&6; }
  10526. if test -n "$PKG_CONFIG"; then
  10527. if test -n "$SDL_CFLAGS"; then
  10528. pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
  10529. else
  10530. if test -n "$PKG_CONFIG" && \
  10531. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2 >= \$min_sdl_version\""; } >&5
  10532. ($PKG_CONFIG --exists --print-errors "sdl2 >= $min_sdl_version") 2>&5
  10533. ac_status=$?
  10534. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10535. test $ac_status = 0; }; then
  10536. pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl2 >= $min_sdl_version" 2>/dev/null`
  10537. else
  10538. pkg_failed=yes
  10539. fi
  10540. fi
  10541. else
  10542. pkg_failed=untried
  10543. fi
  10544. if test -n "$PKG_CONFIG"; then
  10545. if test -n "$SDL_LIBS"; then
  10546. pkg_cv_SDL_LIBS="$SDL_LIBS"
  10547. else
  10548. if test -n "$PKG_CONFIG" && \
  10549. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2 >= \$min_sdl_version\""; } >&5
  10550. ($PKG_CONFIG --exists --print-errors "sdl2 >= $min_sdl_version") 2>&5
  10551. ac_status=$?
  10552. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10553. test $ac_status = 0; }; then
  10554. pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl2 >= $min_sdl_version" 2>/dev/null`
  10555. else
  10556. pkg_failed=yes
  10557. fi
  10558. fi
  10559. else
  10560. pkg_failed=untried
  10561. fi
  10562. if test $pkg_failed = yes; then
  10563. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  10564. _pkg_short_errors_supported=yes
  10565. else
  10566. _pkg_short_errors_supported=no
  10567. fi
  10568. if test $_pkg_short_errors_supported = yes; then
  10569. SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sdl2 >= $min_sdl_version"`
  10570. else
  10571. SDL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sdl2 >= $min_sdl_version"`
  10572. fi
  10573. # Put the nasty error message in config.log where it belongs
  10574. echo "$SDL_PKG_ERRORS" >&5
  10575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10576. $as_echo "no" >&6; }
  10577. sdl_pc=no
  10578. elif test $pkg_failed = untried; then
  10579. sdl_pc=no
  10580. else
  10581. SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
  10582. SDL_LIBS=$pkg_cv_SDL_LIBS
  10583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10584. $as_echo "yes" >&6; }
  10585. sdl_pc=yes
  10586. fi
  10587. else
  10588. sdl_pc=no
  10589. if test x$sdl_exec_prefix != x ; then
  10590. sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
  10591. if test x${SDL2_CONFIG+set} != xset ; then
  10592. SDL2_CONFIG=$sdl_exec_prefix/bin/sdl2-config
  10593. fi
  10594. fi
  10595. if test x$sdl_prefix != x ; then
  10596. sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
  10597. if test x${SDL2_CONFIG+set} != xset ; then
  10598. SDL2_CONFIG=$sdl_prefix/bin/sdl2-config
  10599. fi
  10600. fi
  10601. fi
  10602. if test "x$sdl_pc" = xyes ; then
  10603. no_sdl=""
  10604. SDL2_CONFIG="pkg-config sdl2"
  10605. else
  10606. as_save_PATH="$PATH"
  10607. if test "x$prefix" != xNONE && test "$cross_compiling" != yes; then
  10608. PATH="$prefix/bin:$prefix/usr/bin:$PATH"
  10609. fi
  10610. # Extract the first word of "sdl2-config", so it can be a program name with args.
  10611. set dummy sdl2-config; ac_word=$2
  10612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10613. $as_echo_n "checking for $ac_word... " >&6; }
  10614. if ${ac_cv_path_SDL2_CONFIG+:} false; then :
  10615. $as_echo_n "(cached) " >&6
  10616. else
  10617. case $SDL2_CONFIG in
  10618. [\\/]* | ?:[\\/]*)
  10619. ac_cv_path_SDL2_CONFIG="$SDL2_CONFIG" # Let the user override the test with a path.
  10620. ;;
  10621. *)
  10622. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10623. for as_dir in $PATH
  10624. do
  10625. IFS=$as_save_IFS
  10626. test -z "$as_dir" && as_dir=.
  10627. for ac_exec_ext in '' $ac_executable_extensions; do
  10628. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10629. ac_cv_path_SDL2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  10630. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10631. break 2
  10632. fi
  10633. done
  10634. done
  10635. IFS=$as_save_IFS
  10636. test -z "$ac_cv_path_SDL2_CONFIG" && ac_cv_path_SDL2_CONFIG="no"
  10637. ;;
  10638. esac
  10639. fi
  10640. SDL2_CONFIG=$ac_cv_path_SDL2_CONFIG
  10641. if test -n "$SDL2_CONFIG"; then
  10642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL2_CONFIG" >&5
  10643. $as_echo "$SDL2_CONFIG" >&6; }
  10644. else
  10645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10646. $as_echo "no" >&6; }
  10647. fi
  10648. PATH="$as_save_PATH"
  10649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
  10650. $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
  10651. no_sdl=""
  10652. if test "$SDL2_CONFIG" = "no" ; then
  10653. no_sdl=yes
  10654. else
  10655. SDL_CFLAGS=`$SDL2_CONFIG $sdl_config_args --cflags`
  10656. SDL_LIBS=`$SDL2_CONFIG $sdl_config_args --libs`
  10657. sdl_major_version=`$SDL2_CONFIG $sdl_config_args --version | \
  10658. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  10659. sdl_minor_version=`$SDL2_CONFIG $sdl_config_args --version | \
  10660. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  10661. sdl_micro_version=`$SDL2_CONFIG $sdl_config_args --version | \
  10662. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  10663. if test "x$enable_sdltest" = "xyes" ; then
  10664. ac_save_CFLAGS="$CFLAGS"
  10665. ac_save_CXXFLAGS="$CXXFLAGS"
  10666. ac_save_LIBS="$LIBS"
  10667. CFLAGS="$CFLAGS $SDL_CFLAGS"
  10668. CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
  10669. LIBS="$LIBS $SDL_LIBS"
  10670. rm -f conf.sdltest
  10671. if test "$cross_compiling" = yes; then :
  10672. echo $ac_n "cross compiling; assumed OK... $ac_c"
  10673. else
  10674. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10675. /* end confdefs.h. */
  10676. #include <stdio.h>
  10677. #include <stdlib.h>
  10678. #include <string.h>
  10679. #include "SDL.h"
  10680. char*
  10681. my_strdup (char *str)
  10682. {
  10683. char *new_str;
  10684. if (str)
  10685. {
  10686. new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
  10687. strcpy (new_str, str);
  10688. }
  10689. else
  10690. new_str = NULL;
  10691. return new_str;
  10692. }
  10693. int main (int argc, char *argv[])
  10694. {
  10695. int major, minor, micro;
  10696. char *tmp_version;
  10697. /* This hangs on some systems (?)
  10698. system ("touch conf.sdltest");
  10699. */
  10700. { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
  10701. /* HP/UX 9 (%@#!) writes to sscanf strings */
  10702. tmp_version = my_strdup("$min_sdl_version");
  10703. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  10704. printf("%s, bad version string\n", "$min_sdl_version");
  10705. exit(1);
  10706. }
  10707. if (($sdl_major_version > major) ||
  10708. (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
  10709. (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
  10710. {
  10711. return 0;
  10712. }
  10713. else
  10714. {
  10715. printf("\n*** 'sdl2-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
  10716. printf("*** of SDL required is %d.%d.%d. If sdl2-config is correct, then it is\n", major, minor, micro);
  10717. printf("*** best to upgrade to the required version.\n");
  10718. printf("*** If sdl2-config was wrong, set the environment variable SDL2_CONFIG\n");
  10719. printf("*** to point to the correct copy of sdl2-config, and remove the file\n");
  10720. printf("*** config.cache before re-running configure\n");
  10721. return 1;
  10722. }
  10723. }
  10724. _ACEOF
  10725. if ac_fn_c_try_run "$LINENO"; then :
  10726. else
  10727. no_sdl=yes
  10728. fi
  10729. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10730. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10731. fi
  10732. CFLAGS="$ac_save_CFLAGS"
  10733. CXXFLAGS="$ac_save_CXXFLAGS"
  10734. LIBS="$ac_save_LIBS"
  10735. fi
  10736. fi
  10737. if test "x$no_sdl" = x ; then
  10738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10739. $as_echo "yes" >&6; }
  10740. else
  10741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10742. $as_echo "no" >&6; }
  10743. fi
  10744. fi
  10745. if test "x$no_sdl" = x ; then
  10746. :
  10747. else
  10748. if test "$SDL2_CONFIG" = "no" ; then
  10749. echo "*** The sdl2-config script installed by SDL could not be found"
  10750. echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
  10751. echo "*** your path, or set the SDL2_CONFIG environment variable to the"
  10752. echo "*** full path to sdl2-config."
  10753. else
  10754. if test -f conf.sdltest ; then
  10755. :
  10756. else
  10757. echo "*** Could not run SDL test program, checking why..."
  10758. CFLAGS="$CFLAGS $SDL_CFLAGS"
  10759. CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
  10760. LIBS="$LIBS $SDL_LIBS"
  10761. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10762. /* end confdefs.h. */
  10763. #include <stdio.h>
  10764. #include "SDL.h"
  10765. int main(int argc, char *argv[])
  10766. { return 0; }
  10767. #undef main
  10768. #define main K_and_R_C_main
  10769. int
  10770. main ()
  10771. {
  10772. return 0;
  10773. ;
  10774. return 0;
  10775. }
  10776. _ACEOF
  10777. if ac_fn_c_try_link "$LINENO"; then :
  10778. echo "*** The test program compiled, but did not run. This usually means"
  10779. echo "*** that the run-time linker is not finding SDL or finding the wrong"
  10780. echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
  10781. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  10782. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  10783. echo "*** is required on your system"
  10784. echo "***"
  10785. echo "*** If you have an old version installed, it is best to remove it, although"
  10786. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  10787. else
  10788. echo "*** The test program failed to compile or link. See the file config.log for the"
  10789. echo "*** exact error that occured. This usually means SDL was incorrectly installed"
  10790. echo "*** or that you have moved SDL since it was installed. In the latter case, you"
  10791. echo "*** may want to edit the sdl2-config script: $SDL2_CONFIG"
  10792. fi
  10793. rm -f core conftest.err conftest.$ac_objext \
  10794. conftest$ac_exeext conftest.$ac_ext
  10795. CFLAGS="$ac_save_CFLAGS"
  10796. CXXFLAGS="$ac_save_CXXFLAGS"
  10797. LIBS="$ac_save_LIBS"
  10798. fi
  10799. fi
  10800. SDL_CFLAGS=""
  10801. SDL_LIBS=""
  10802. as_fn_error $? "*** SDL version $SDL_VERSION not found!" "$LINENO" 5
  10803. fi
  10804. rm -f conf.sdltest
  10805. CFLAGS="$CFLAGS $SDL_CFLAGS"
  10806. LIBS="$LIBS $SDL_LIBS"
  10807. saved_LIBS="$LIBS"
  10808. # Check whether --enable-bmp was given.
  10809. if test "${enable_bmp+set}" = set; then :
  10810. enableval=$enable_bmp;
  10811. else
  10812. enable_bmp=yes
  10813. fi
  10814. # Check whether --enable-gif was given.
  10815. if test "${enable_gif+set}" = set; then :
  10816. enableval=$enable_gif;
  10817. else
  10818. enable_gif=yes
  10819. fi
  10820. # Check whether --enable-jpg was given.
  10821. if test "${enable_jpg+set}" = set; then :
  10822. enableval=$enable_jpg;
  10823. else
  10824. enable_jpg=yes
  10825. fi
  10826. # Check whether --enable-jpg-shared was given.
  10827. if test "${enable_jpg_shared+set}" = set; then :
  10828. enableval=$enable_jpg_shared;
  10829. else
  10830. enable_jpg_shared=yes
  10831. fi
  10832. # Check whether --enable-lbm was given.
  10833. if test "${enable_lbm+set}" = set; then :
  10834. enableval=$enable_lbm;
  10835. else
  10836. enable_lbm=yes
  10837. fi
  10838. # Check whether --enable-pcx was given.
  10839. if test "${enable_pcx+set}" = set; then :
  10840. enableval=$enable_pcx;
  10841. else
  10842. enable_pcx=yes
  10843. fi
  10844. # Check whether --enable-png was given.
  10845. if test "${enable_png+set}" = set; then :
  10846. enableval=$enable_png;
  10847. else
  10848. enable_png=yes
  10849. fi
  10850. # Check whether --enable-png-shared was given.
  10851. if test "${enable_png_shared+set}" = set; then :
  10852. enableval=$enable_png_shared;
  10853. else
  10854. enable_png_shared=yes
  10855. fi
  10856. # Check whether --enable-pnm was given.
  10857. if test "${enable_pnm+set}" = set; then :
  10858. enableval=$enable_pnm;
  10859. else
  10860. enable_pnm=yes
  10861. fi
  10862. # Check whether --enable-tga was given.
  10863. if test "${enable_tga+set}" = set; then :
  10864. enableval=$enable_tga;
  10865. else
  10866. enable_tga=yes
  10867. fi
  10868. # Check whether --enable-tif was given.
  10869. if test "${enable_tif+set}" = set; then :
  10870. enableval=$enable_tif;
  10871. else
  10872. enable_tif=yes
  10873. fi
  10874. # Check whether --enable-tif-shared was given.
  10875. if test "${enable_tif_shared+set}" = set; then :
  10876. enableval=$enable_tif_shared;
  10877. else
  10878. enable_tif_shared=yes
  10879. fi
  10880. # Check whether --enable-xcf was given.
  10881. if test "${enable_xcf+set}" = set; then :
  10882. enableval=$enable_xcf;
  10883. else
  10884. enable_xcf=yes
  10885. fi
  10886. # Check whether --enable-xpm was given.
  10887. if test "${enable_xpm+set}" = set; then :
  10888. enableval=$enable_xpm;
  10889. else
  10890. enable_xpm=yes
  10891. fi
  10892. # Check whether --enable-xv was given.
  10893. if test "${enable_xv+set}" = set; then :
  10894. enableval=$enable_xv;
  10895. else
  10896. enable_xv=yes
  10897. fi
  10898. # Check whether --enable-webp was given.
  10899. if test "${enable_webp+set}" = set; then :
  10900. enableval=$enable_webp;
  10901. else
  10902. enable_webp=yes
  10903. fi
  10904. # Check whether --enable-webp-shared was given.
  10905. if test "${enable_webp_shared+set}" = set; then :
  10906. enableval=$enable_webp_shared;
  10907. else
  10908. enable_webp_shared=yes
  10909. fi
  10910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageIO support" >&5
  10911. $as_echo_n "checking for ImageIO support... " >&6; }
  10912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_imageio" >&5
  10913. $as_echo "$enable_imageio" >&6; }
  10914. if (test x$enable_jpg = xyes || test x$enable_tif = xyes) && test x$enable_imageio != xyes; then
  10915. ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
  10916. if test "x$ac_cv_header_jpeglib_h" = xyes; then :
  10917. have_jpg_hdr=yes
  10918. fi
  10919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_CreateDecompress in -ljpeg" >&5
  10920. $as_echo_n "checking for jpeg_CreateDecompress in -ljpeg... " >&6; }
  10921. if ${ac_cv_lib_jpeg_jpeg_CreateDecompress+:} false; then :
  10922. $as_echo_n "(cached) " >&6
  10923. else
  10924. ac_check_lib_save_LIBS=$LIBS
  10925. LIBS="-ljpeg $LIBS"
  10926. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10927. /* end confdefs.h. */
  10928. /* Override any GCC internal prototype to avoid an error.
  10929. Use char because int might match the return type of a GCC
  10930. builtin and then its argument prototype would still apply. */
  10931. #ifdef __cplusplus
  10932. extern "C"
  10933. #endif
  10934. char jpeg_CreateDecompress ();
  10935. int
  10936. main ()
  10937. {
  10938. return jpeg_CreateDecompress ();
  10939. ;
  10940. return 0;
  10941. }
  10942. _ACEOF
  10943. if ac_fn_c_try_link "$LINENO"; then :
  10944. ac_cv_lib_jpeg_jpeg_CreateDecompress=yes
  10945. else
  10946. ac_cv_lib_jpeg_jpeg_CreateDecompress=no
  10947. fi
  10948. rm -f core conftest.err conftest.$ac_objext \
  10949. conftest$ac_exeext conftest.$ac_ext
  10950. LIBS=$ac_check_lib_save_LIBS
  10951. fi
  10952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_CreateDecompress" >&5
  10953. $as_echo "$ac_cv_lib_jpeg_jpeg_CreateDecompress" >&6; }
  10954. if test "x$ac_cv_lib_jpeg_jpeg_CreateDecompress" = xyes; then :
  10955. have_jpg_lib=yes
  10956. fi
  10957. if test x$have_jpg_hdr = xyes -a x$have_jpg_lib = xyes; then
  10958. if test x$enable_jpg = xyes; then
  10959. $as_echo "#define LOAD_JPG 1" >>confdefs.h
  10960. fi
  10961. LIBS="-ljpeg $LIBS"
  10962. case "$host" in
  10963. *-*-darwin*)
  10964. jpg_lib=`find_lib libjpeg.dylib`
  10965. ;;
  10966. *-*-cygwin* | *-*-mingw32*)
  10967. jpg_lib=`find_lib "libjpeg*.dll"`
  10968. ;;
  10969. *)
  10970. jpg_lib=`find_lib "libjpeg[0-9]*.so.*"`
  10971. if test x$jpg_lib = x; then
  10972. jpg_lib=`find_lib "libjpeg.so.*"`
  10973. fi
  10974. ;;
  10975. esac
  10976. elif test x$enable_jpg = xyes; then
  10977. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Unable to find JPEG library (http://www.ijg.org/)" >&5
  10978. $as_echo "$as_me: WARNING: *** Unable to find JPEG library (http://www.ijg.org/)" >&2;}
  10979. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: JPG image loading disabled" >&5
  10980. $as_echo "$as_me: WARNING: JPG image loading disabled" >&2;}
  10981. fi
  10982. fi
  10983. if test x$enable_png = xyes -a x$enable_imageio != xyes; then
  10984. pkg_failed=no
  10985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG" >&5
  10986. $as_echo_n "checking for LIBPNG... " >&6; }
  10987. if test -n "$PKG_CONFIG"; then
  10988. if test -n "$LIBPNG_CFLAGS"; then
  10989. pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
  10990. else
  10991. if test -n "$PKG_CONFIG" && \
  10992. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5
  10993. ($PKG_CONFIG --exists --print-errors "libpng") 2>&5
  10994. ac_status=$?
  10995. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10996. test $ac_status = 0; }; then
  10997. pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null`
  10998. else
  10999. pkg_failed=yes
  11000. fi
  11001. fi
  11002. else
  11003. pkg_failed=untried
  11004. fi
  11005. if test -n "$PKG_CONFIG"; then
  11006. if test -n "$LIBPNG_LIBS"; then
  11007. pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
  11008. else
  11009. if test -n "$PKG_CONFIG" && \
  11010. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5
  11011. ($PKG_CONFIG --exists --print-errors "libpng") 2>&5
  11012. ac_status=$?
  11013. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11014. test $ac_status = 0; }; then
  11015. pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null`
  11016. else
  11017. pkg_failed=yes
  11018. fi
  11019. fi
  11020. else
  11021. pkg_failed=untried
  11022. fi
  11023. if test $pkg_failed = yes; then
  11024. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  11025. _pkg_short_errors_supported=yes
  11026. else
  11027. _pkg_short_errors_supported=no
  11028. fi
  11029. if test $_pkg_short_errors_supported = yes; then
  11030. LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpng"`
  11031. else
  11032. LIBPNG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpng"`
  11033. fi
  11034. # Put the nasty error message in config.log where it belongs
  11035. echo "$LIBPNG_PKG_ERRORS" >&5
  11036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11037. $as_echo "no" >&6; }
  11038. ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
  11039. if test "x$ac_cv_header_png_h" = xyes; then :
  11040. have_png_hdr=yes
  11041. fi
  11042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_create_read_struct in -lpng" >&5
  11043. $as_echo_n "checking for png_create_read_struct in -lpng... " >&6; }
  11044. if ${ac_cv_lib_png_png_create_read_struct+:} false; then :
  11045. $as_echo_n "(cached) " >&6
  11046. else
  11047. ac_check_lib_save_LIBS=$LIBS
  11048. LIBS="-lpng -lz $LIBS"
  11049. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11050. /* end confdefs.h. */
  11051. /* Override any GCC internal prototype to avoid an error.
  11052. Use char because int might match the return type of a GCC
  11053. builtin and then its argument prototype would still apply. */
  11054. #ifdef __cplusplus
  11055. extern "C"
  11056. #endif
  11057. char png_create_read_struct ();
  11058. int
  11059. main ()
  11060. {
  11061. return png_create_read_struct ();
  11062. ;
  11063. return 0;
  11064. }
  11065. _ACEOF
  11066. if ac_fn_c_try_link "$LINENO"; then :
  11067. ac_cv_lib_png_png_create_read_struct=yes
  11068. else
  11069. ac_cv_lib_png_png_create_read_struct=no
  11070. fi
  11071. rm -f core conftest.err conftest.$ac_objext \
  11072. conftest$ac_exeext conftest.$ac_ext
  11073. LIBS=$ac_check_lib_save_LIBS
  11074. fi
  11075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_create_read_struct" >&5
  11076. $as_echo "$ac_cv_lib_png_png_create_read_struct" >&6; }
  11077. if test "x$ac_cv_lib_png_png_create_read_struct" = xyes; then :
  11078. have_png_lib=yes
  11079. fi
  11080. elif test $pkg_failed = untried; then
  11081. ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
  11082. if test "x$ac_cv_header_png_h" = xyes; then :
  11083. have_png_hdr=yes
  11084. fi
  11085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_create_read_struct in -lpng" >&5
  11086. $as_echo_n "checking for png_create_read_struct in -lpng... " >&6; }
  11087. if ${ac_cv_lib_png_png_create_read_struct+:} false; then :
  11088. $as_echo_n "(cached) " >&6
  11089. else
  11090. ac_check_lib_save_LIBS=$LIBS
  11091. LIBS="-lpng -lz $LIBS"
  11092. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11093. /* end confdefs.h. */
  11094. /* Override any GCC internal prototype to avoid an error.
  11095. Use char because int might match the return type of a GCC
  11096. builtin and then its argument prototype would still apply. */
  11097. #ifdef __cplusplus
  11098. extern "C"
  11099. #endif
  11100. char png_create_read_struct ();
  11101. int
  11102. main ()
  11103. {
  11104. return png_create_read_struct ();
  11105. ;
  11106. return 0;
  11107. }
  11108. _ACEOF
  11109. if ac_fn_c_try_link "$LINENO"; then :
  11110. ac_cv_lib_png_png_create_read_struct=yes
  11111. else
  11112. ac_cv_lib_png_png_create_read_struct=no
  11113. fi
  11114. rm -f core conftest.err conftest.$ac_objext \
  11115. conftest$ac_exeext conftest.$ac_ext
  11116. LIBS=$ac_check_lib_save_LIBS
  11117. fi
  11118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_create_read_struct" >&5
  11119. $as_echo "$ac_cv_lib_png_png_create_read_struct" >&6; }
  11120. if test "x$ac_cv_lib_png_png_create_read_struct" = xyes; then :
  11121. have_png_lib=yes
  11122. fi
  11123. else
  11124. LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
  11125. LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
  11126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11127. $as_echo "yes" >&6; }
  11128. have_png_hdr=yes
  11129. CFLAGS="$LIBPNG_CFLAGS $CFLAGS"
  11130. have_png_lib=yes
  11131. fi
  11132. if test x$have_png_hdr = xyes -a x$have_png_lib = xyes; then
  11133. $as_echo "#define LOAD_PNG 1" >>confdefs.h
  11134. case "$host" in
  11135. *-*-darwin*)
  11136. png_lib=`find_lib libpng.dylib`
  11137. ;;
  11138. *-*-cygwin* | *-*-mingw32*)
  11139. png_lib=`find_lib "libpng*.dll"`
  11140. ;;
  11141. *)
  11142. png_lib=`find_lib "libpng[0-9]*.so.*"`
  11143. if test x$png_lib = x; then
  11144. png_lib=`find_lib "libpng.so.*"`
  11145. fi
  11146. ;;
  11147. esac
  11148. else
  11149. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Unable to find PNG library (http://www.libpng.org/pub/png/libpng.html)" >&5
  11150. $as_echo "$as_me: WARNING: *** Unable to find PNG library (http://www.libpng.org/pub/png/libpng.html)" >&2;}
  11151. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PNG image loading disabled" >&5
  11152. $as_echo "$as_me: WARNING: PNG image loading disabled" >&2;}
  11153. fi
  11154. fi
  11155. if test x$enable_tif = xyes -a x$enable_imageio != xyes; then
  11156. ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
  11157. if test "x$ac_cv_header_tiffio_h" = xyes; then :
  11158. have_tif_hdr=yes
  11159. fi
  11160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
  11161. $as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
  11162. if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
  11163. $as_echo_n "(cached) " >&6
  11164. else
  11165. ac_check_lib_save_LIBS=$LIBS
  11166. LIBS="-ltiff -lz $LIBS"
  11167. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11168. /* end confdefs.h. */
  11169. /* Override any GCC internal prototype to avoid an error.
  11170. Use char because int might match the return type of a GCC
  11171. builtin and then its argument prototype would still apply. */
  11172. #ifdef __cplusplus
  11173. extern "C"
  11174. #endif
  11175. char TIFFClientOpen ();
  11176. int
  11177. main ()
  11178. {
  11179. return TIFFClientOpen ();
  11180. ;
  11181. return 0;
  11182. }
  11183. _ACEOF
  11184. if ac_fn_c_try_link "$LINENO"; then :
  11185. ac_cv_lib_tiff_TIFFClientOpen=yes
  11186. else
  11187. ac_cv_lib_tiff_TIFFClientOpen=no
  11188. fi
  11189. rm -f core conftest.err conftest.$ac_objext \
  11190. conftest$ac_exeext conftest.$ac_ext
  11191. LIBS=$ac_check_lib_save_LIBS
  11192. fi
  11193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
  11194. $as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
  11195. if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
  11196. have_tif_lib=yes
  11197. fi
  11198. if test x$have_tif_hdr = xyes -a x$have_tif_lib = xyes; then
  11199. $as_echo "#define LOAD_TIF 1" >>confdefs.h
  11200. case "$host" in
  11201. *-*-darwin*)
  11202. tif_lib=`find_lib libtiff.dylib`
  11203. ;;
  11204. *-*-cygwin* | *-*-mingw32*)
  11205. tif_lib=`find_lib "libtiff-*.dll"`
  11206. ;;
  11207. *)
  11208. tif_lib=`find_lib "libtiff[0-9]*.so.*"`
  11209. if test x$tif_lib = x; then
  11210. tif_lib=`find_lib "libtiff.so.*"`
  11211. fi
  11212. ;;
  11213. esac
  11214. else
  11215. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Unable to find Tiff library (http://www.remotesensing.org/libtiff/)" >&5
  11216. $as_echo "$as_me: WARNING: *** Unable to find Tiff library (http://www.remotesensing.org/libtiff/)" >&2;}
  11217. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TIF image loading disabled" >&5
  11218. $as_echo "$as_me: WARNING: TIF image loading disabled" >&2;}
  11219. fi
  11220. fi
  11221. if test x$enable_webp = xyes; then
  11222. pkg_failed=no
  11223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBWEBP" >&5
  11224. $as_echo_n "checking for LIBWEBP... " >&6; }
  11225. if test -n "$PKG_CONFIG"; then
  11226. if test -n "$LIBWEBP_CFLAGS"; then
  11227. pkg_cv_LIBWEBP_CFLAGS="$LIBWEBP_CFLAGS"
  11228. else
  11229. if test -n "$PKG_CONFIG" && \
  11230. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libwebp\""; } >&5
  11231. ($PKG_CONFIG --exists --print-errors "libwebp") 2>&5
  11232. ac_status=$?
  11233. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11234. test $ac_status = 0; }; then
  11235. pkg_cv_LIBWEBP_CFLAGS=`$PKG_CONFIG --cflags "libwebp" 2>/dev/null`
  11236. else
  11237. pkg_failed=yes
  11238. fi
  11239. fi
  11240. else
  11241. pkg_failed=untried
  11242. fi
  11243. if test -n "$PKG_CONFIG"; then
  11244. if test -n "$LIBWEBP_LIBS"; then
  11245. pkg_cv_LIBWEBP_LIBS="$LIBWEBP_LIBS"
  11246. else
  11247. if test -n "$PKG_CONFIG" && \
  11248. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libwebp\""; } >&5
  11249. ($PKG_CONFIG --exists --print-errors "libwebp") 2>&5
  11250. ac_status=$?
  11251. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11252. test $ac_status = 0; }; then
  11253. pkg_cv_LIBWEBP_LIBS=`$PKG_CONFIG --libs "libwebp" 2>/dev/null`
  11254. else
  11255. pkg_failed=yes
  11256. fi
  11257. fi
  11258. else
  11259. pkg_failed=untried
  11260. fi
  11261. if test $pkg_failed = yes; then
  11262. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  11263. _pkg_short_errors_supported=yes
  11264. else
  11265. _pkg_short_errors_supported=no
  11266. fi
  11267. if test $_pkg_short_errors_supported = yes; then
  11268. LIBWEBP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libwebp"`
  11269. else
  11270. LIBWEBP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libwebp"`
  11271. fi
  11272. # Put the nasty error message in config.log where it belongs
  11273. echo "$LIBWEBP_PKG_ERRORS" >&5
  11274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11275. $as_echo "no" >&6; }
  11276. ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
  11277. if test "x$ac_cv_header_webp_decode_h" = xyes; then :
  11278. have_webp_hdr=yes
  11279. fi
  11280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPGetDecoderVersion in -lwebp" >&5
  11281. $as_echo_n "checking for WebPGetDecoderVersion in -lwebp... " >&6; }
  11282. if ${ac_cv_lib_webp_WebPGetDecoderVersion+:} false; then :
  11283. $as_echo_n "(cached) " >&6
  11284. else
  11285. ac_check_lib_save_LIBS=$LIBS
  11286. LIBS="-lwebp -lm $LIBS"
  11287. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11288. /* end confdefs.h. */
  11289. /* Override any GCC internal prototype to avoid an error.
  11290. Use char because int might match the return type of a GCC
  11291. builtin and then its argument prototype would still apply. */
  11292. #ifdef __cplusplus
  11293. extern "C"
  11294. #endif
  11295. char WebPGetDecoderVersion ();
  11296. int
  11297. main ()
  11298. {
  11299. return WebPGetDecoderVersion ();
  11300. ;
  11301. return 0;
  11302. }
  11303. _ACEOF
  11304. if ac_fn_c_try_link "$LINENO"; then :
  11305. ac_cv_lib_webp_WebPGetDecoderVersion=yes
  11306. else
  11307. ac_cv_lib_webp_WebPGetDecoderVersion=no
  11308. fi
  11309. rm -f core conftest.err conftest.$ac_objext \
  11310. conftest$ac_exeext conftest.$ac_ext
  11311. LIBS=$ac_check_lib_save_LIBS
  11312. fi
  11313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPGetDecoderVersion" >&5
  11314. $as_echo "$ac_cv_lib_webp_WebPGetDecoderVersion" >&6; }
  11315. if test "x$ac_cv_lib_webp_WebPGetDecoderVersion" = xyes; then :
  11316. have_webp_lib=yes
  11317. fi
  11318. elif test $pkg_failed = untried; then
  11319. ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
  11320. if test "x$ac_cv_header_webp_decode_h" = xyes; then :
  11321. have_webp_hdr=yes
  11322. fi
  11323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPGetDecoderVersion in -lwebp" >&5
  11324. $as_echo_n "checking for WebPGetDecoderVersion in -lwebp... " >&6; }
  11325. if ${ac_cv_lib_webp_WebPGetDecoderVersion+:} false; then :
  11326. $as_echo_n "(cached) " >&6
  11327. else
  11328. ac_check_lib_save_LIBS=$LIBS
  11329. LIBS="-lwebp -lm $LIBS"
  11330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11331. /* end confdefs.h. */
  11332. /* Override any GCC internal prototype to avoid an error.
  11333. Use char because int might match the return type of a GCC
  11334. builtin and then its argument prototype would still apply. */
  11335. #ifdef __cplusplus
  11336. extern "C"
  11337. #endif
  11338. char WebPGetDecoderVersion ();
  11339. int
  11340. main ()
  11341. {
  11342. return WebPGetDecoderVersion ();
  11343. ;
  11344. return 0;
  11345. }
  11346. _ACEOF
  11347. if ac_fn_c_try_link "$LINENO"; then :
  11348. ac_cv_lib_webp_WebPGetDecoderVersion=yes
  11349. else
  11350. ac_cv_lib_webp_WebPGetDecoderVersion=no
  11351. fi
  11352. rm -f core conftest.err conftest.$ac_objext \
  11353. conftest$ac_exeext conftest.$ac_ext
  11354. LIBS=$ac_check_lib_save_LIBS
  11355. fi
  11356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPGetDecoderVersion" >&5
  11357. $as_echo "$ac_cv_lib_webp_WebPGetDecoderVersion" >&6; }
  11358. if test "x$ac_cv_lib_webp_WebPGetDecoderVersion" = xyes; then :
  11359. have_webp_lib=yes
  11360. fi
  11361. else
  11362. LIBWEBP_CFLAGS=$pkg_cv_LIBWEBP_CFLAGS
  11363. LIBWEBP_LIBS=$pkg_cv_LIBWEBP_LIBS
  11364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11365. $as_echo "yes" >&6; }
  11366. have_webp_hdr=yes
  11367. CFLAGS="$LIBWEBP_CFLAGS $CFLAGS"
  11368. have_webp_lib=yes
  11369. fi
  11370. if test x$have_webp_hdr = xyes -a x$have_webp_lib = xyes; then
  11371. $as_echo "#define LOAD_WEBP 1" >>confdefs.h
  11372. case "$host" in
  11373. *-*-darwin*)
  11374. webp_lib=`find_lib libwebp.dylib`
  11375. ;;
  11376. *-*-cygwin* | *-*-mingw32*)
  11377. webp_lib=`find_lib "libwebp*.dll"`
  11378. ;;
  11379. *)
  11380. webp_lib=`find_lib "libwebp[0-9]*.so.*"`
  11381. if test x$webp_lib = x; then
  11382. webp_lib=`find_lib "libwebp.so.*"`
  11383. fi
  11384. ;;
  11385. esac
  11386. else
  11387. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Unable to find WEBP library (http://code.google.com/intl/en-US/speed/webp/index.html)" >&5
  11388. $as_echo "$as_me: WARNING: *** Unable to find WEBP library (http://code.google.com/intl/en-US/speed/webp/index.html)" >&2;}
  11389. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: WEBP Pimage loading disabled" >&5
  11390. $as_echo "$as_me: WARNING: WEBP Pimage loading disabled" >&2;}
  11391. fi
  11392. fi
  11393. if test x$enable_bmp = xyes; then
  11394. $as_echo "#define LOAD_BMP 1" >>confdefs.h
  11395. fi
  11396. if test x$enable_gif = xyes; then
  11397. $as_echo "#define LOAD_GIF 1" >>confdefs.h
  11398. fi
  11399. if test x$enable_lbm = xyes; then
  11400. $as_echo "#define LOAD_LBM 1" >>confdefs.h
  11401. fi
  11402. if test x$enable_pcx = xyes; then
  11403. $as_echo "#define LOAD_PCX 1" >>confdefs.h
  11404. fi
  11405. if test x$enable_pnm = xyes; then
  11406. $as_echo "#define LOAD_PNM 1" >>confdefs.h
  11407. fi
  11408. if test x$enable_tga = xyes; then
  11409. $as_echo "#define LOAD_TGA 1" >>confdefs.h
  11410. fi
  11411. if test x$enable_xcf = xyes; then
  11412. $as_echo "#define LOAD_XCF 1" >>confdefs.h
  11413. fi
  11414. if test x$enable_xpm = xyes; then
  11415. $as_echo "#define LOAD_XPM 1" >>confdefs.h
  11416. fi
  11417. if test x$enable_xv = xyes; then
  11418. $as_echo "#define LOAD_XV 1" >>confdefs.h
  11419. fi
  11420. if test x$enable_webp = xyes -a x$have_webp_hdr = xyes -a x$have_webp_lib = xyes; then
  11421. if test x$enable_webp_shared = xyes && test x$webp_lib != x; then
  11422. echo "-- dynamic libwebp -> $webp_lib"
  11423. cat >>confdefs.h <<_ACEOF
  11424. #define LOAD_WEBP_DYNAMIC "$webp_lib"
  11425. _ACEOF
  11426. else
  11427. IMG_LIBS="-lwebp $IMG_LIBS"
  11428. fi
  11429. fi
  11430. if test x$enable_tif = xyes -a x$have_tif_hdr = xyes -a x$have_tif_lib = xyes; then
  11431. if test x$enable_tif_shared = xyes && test x$tif_lib != x; then
  11432. echo "-- dynamic libtiff -> $tif_lib"
  11433. cat >>confdefs.h <<_ACEOF
  11434. #define LOAD_TIF_DYNAMIC "$tif_lib"
  11435. _ACEOF
  11436. else
  11437. if test x$have_libjpeg = xyes; then
  11438. # Disable dynamic jpeg since we're linking it explicitly
  11439. jpg_lib=''
  11440. fi
  11441. IMG_LIBS="-ltiff -lz $IMG_LIBS"
  11442. fi
  11443. fi
  11444. if test x$enable_jpg = xyes -a x$have_jpg_hdr = xyes -a x$have_jpg_lib = xyes; then
  11445. if test x$enable_jpg_shared = xyes && test x$jpg_lib != x; then
  11446. echo "-- dynamic libjpeg -> $jpg_lib"
  11447. cat >>confdefs.h <<_ACEOF
  11448. #define LOAD_JPG_DYNAMIC "$jpg_lib"
  11449. _ACEOF
  11450. else
  11451. IMG_LIBS="-ljpeg $IMG_LIBS"
  11452. fi
  11453. fi
  11454. if test x$enable_png = xyes -a x$have_png_hdr = xyes -a x$have_png_lib = xyes; then
  11455. if test x$enable_png_shared = xyes && test x$png_lib != x; then
  11456. echo "-- dynamic libpng -> $png_lib"
  11457. cat >>confdefs.h <<_ACEOF
  11458. #define LOAD_PNG_DYNAMIC "$png_lib"
  11459. _ACEOF
  11460. else
  11461. IMG_LIBS="-lpng -lz $IMG_LIBS"
  11462. fi
  11463. fi
  11464. LIBS="$saved_LIBS"
  11465. OBJCFLAGS=$CFLAGS
  11466. # Finally create all the generated files
  11467. ac_config_files="$ac_config_files Makefile SDL2_image.spec SDL2_image.pc"
  11468. cat >confcache <<\_ACEOF
  11469. # This file is a shell script that caches the results of configure
  11470. # tests run on this system so they can be shared between configure
  11471. # scripts and configure runs, see configure's option --config-cache.
  11472. # It is not useful on other systems. If it contains results you don't
  11473. # want to keep, you may remove or edit it.
  11474. #
  11475. # config.status only pays attention to the cache file if you give it
  11476. # the --recheck option to rerun configure.
  11477. #
  11478. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11479. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11480. # following values.
  11481. _ACEOF
  11482. # The following way of writing the cache mishandles newlines in values,
  11483. # but we know of no workaround that is simple, portable, and efficient.
  11484. # So, we kill variables containing newlines.
  11485. # Ultrix sh set writes to stderr and can't be redirected directly,
  11486. # and sets the high bit in the cache file unless we assign to the vars.
  11487. (
  11488. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11489. eval ac_val=\$$ac_var
  11490. case $ac_val in #(
  11491. *${as_nl}*)
  11492. case $ac_var in #(
  11493. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  11494. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  11495. esac
  11496. case $ac_var in #(
  11497. _ | IFS | as_nl) ;; #(
  11498. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  11499. *) { eval $ac_var=; unset $ac_var;} ;;
  11500. esac ;;
  11501. esac
  11502. done
  11503. (set) 2>&1 |
  11504. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11505. *${as_nl}ac_space=\ *)
  11506. # `set' does not quote correctly, so add quotes: double-quote
  11507. # substitution turns \\\\ into \\, and sed turns \\ into \.
  11508. sed -n \
  11509. "s/'/'\\\\''/g;
  11510. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11511. ;; #(
  11512. *)
  11513. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11514. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11515. ;;
  11516. esac |
  11517. sort
  11518. ) |
  11519. sed '
  11520. /^ac_cv_env_/b end
  11521. t clear
  11522. :clear
  11523. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11524. t end
  11525. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11526. :end' >>confcache
  11527. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11528. if test -w "$cache_file"; then
  11529. if test "x$cache_file" != "x/dev/null"; then
  11530. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  11531. $as_echo "$as_me: updating cache $cache_file" >&6;}
  11532. if test ! -f "$cache_file" || test -h "$cache_file"; then
  11533. cat confcache >"$cache_file"
  11534. else
  11535. case $cache_file in #(
  11536. */* | ?:*)
  11537. mv -f confcache "$cache_file"$$ &&
  11538. mv -f "$cache_file"$$ "$cache_file" ;; #(
  11539. *)
  11540. mv -f confcache "$cache_file" ;;
  11541. esac
  11542. fi
  11543. fi
  11544. else
  11545. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  11546. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11547. fi
  11548. fi
  11549. rm -f confcache
  11550. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11551. # Let make expand exec_prefix.
  11552. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11553. # Transform confdefs.h into DEFS.
  11554. # Protect against shell expansion while executing Makefile rules.
  11555. # Protect against Makefile macro expansion.
  11556. #
  11557. # If the first sed substitution is executed (which looks for macros that
  11558. # take arguments), then branch to the quote section. Otherwise,
  11559. # look for a macro that doesn't take arguments.
  11560. ac_script='
  11561. :mline
  11562. /\\$/{
  11563. N
  11564. s,\\\n,,
  11565. b mline
  11566. }
  11567. t clear
  11568. :clear
  11569. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  11570. t quote
  11571. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  11572. t quote
  11573. b any
  11574. :quote
  11575. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  11576. s/\[/\\&/g
  11577. s/\]/\\&/g
  11578. s/\$/$$/g
  11579. H
  11580. :any
  11581. ${
  11582. g
  11583. s/^\n//
  11584. s/\n/ /g
  11585. p
  11586. }
  11587. '
  11588. DEFS=`sed -n "$ac_script" confdefs.h`
  11589. ac_libobjs=
  11590. ac_ltlibobjs=
  11591. U=
  11592. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  11593. # 1. Remove the extension, and $U if already installed.
  11594. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  11595. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  11596. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  11597. # will be set to the directory where LIBOBJS objects are built.
  11598. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  11599. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  11600. done
  11601. LIBOBJS=$ac_libobjs
  11602. LTLIBOBJS=$ac_ltlibobjs
  11603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  11604. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  11605. if test -n "$am_sleep_pid"; then
  11606. # Hide warnings about reused PIDs.
  11607. wait $am_sleep_pid 2>/dev/null
  11608. fi
  11609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  11610. $as_echo "done" >&6; }
  11611. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  11612. as_fn_error $? "conditional \"AMDEP\" was never defined.
  11613. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11614. fi
  11615. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  11616. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  11617. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11618. fi
  11619. if test -n "$EXEEXT"; then
  11620. am__EXEEXT_TRUE=
  11621. am__EXEEXT_FALSE='#'
  11622. else
  11623. am__EXEEXT_TRUE='#'
  11624. am__EXEEXT_FALSE=
  11625. fi
  11626. if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
  11627. as_fn_error $? "conditional \"am__fastdepOBJC\" was never defined.
  11628. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11629. fi
  11630. if test -z "${USE_IMAGEIO_TRUE}" && test -z "${USE_IMAGEIO_FALSE}"; then
  11631. as_fn_error $? "conditional \"USE_IMAGEIO\" was never defined.
  11632. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11633. fi
  11634. if test -z "${USE_VERSION_RC_TRUE}" && test -z "${USE_VERSION_RC_FALSE}"; then
  11635. as_fn_error $? "conditional \"USE_VERSION_RC\" was never defined.
  11636. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11637. fi
  11638. : "${CONFIG_STATUS=./config.status}"
  11639. ac_write_fail=0
  11640. ac_clean_files_save=$ac_clean_files
  11641. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  11642. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  11643. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11644. as_write_fail=0
  11645. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  11646. #! $SHELL
  11647. # Generated by $as_me.
  11648. # Run this file to recreate the current configuration.
  11649. # Compiler output produced by configure, useful for debugging
  11650. # configure, is in config.log if it exists.
  11651. debug=false
  11652. ac_cs_recheck=false
  11653. ac_cs_silent=false
  11654. SHELL=\${CONFIG_SHELL-$SHELL}
  11655. export SHELL
  11656. _ASEOF
  11657. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  11658. ## -------------------- ##
  11659. ## M4sh Initialization. ##
  11660. ## -------------------- ##
  11661. # Be more Bourne compatible
  11662. DUALCASE=1; export DUALCASE # for MKS sh
  11663. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  11664. emulate sh
  11665. NULLCMD=:
  11666. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  11667. # is contrary to our usage. Disable this feature.
  11668. alias -g '${1+"$@"}'='"$@"'
  11669. setopt NO_GLOB_SUBST
  11670. else
  11671. case `(set -o) 2>/dev/null` in #(
  11672. *posix*) :
  11673. set -o posix ;; #(
  11674. *) :
  11675. ;;
  11676. esac
  11677. fi
  11678. as_nl='
  11679. '
  11680. export as_nl
  11681. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  11682. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  11683. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  11684. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  11685. # Prefer a ksh shell builtin over an external printf program on Solaris,
  11686. # but without wasting forks for bash or zsh.
  11687. if test -z "$BASH_VERSION$ZSH_VERSION" \
  11688. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  11689. as_echo='print -r --'
  11690. as_echo_n='print -rn --'
  11691. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  11692. as_echo='printf %s\n'
  11693. as_echo_n='printf %s'
  11694. else
  11695. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  11696. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  11697. as_echo_n='/usr/ucb/echo -n'
  11698. else
  11699. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  11700. as_echo_n_body='eval
  11701. arg=$1;
  11702. case $arg in #(
  11703. *"$as_nl"*)
  11704. expr "X$arg" : "X\\(.*\\)$as_nl";
  11705. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  11706. esac;
  11707. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  11708. '
  11709. export as_echo_n_body
  11710. as_echo_n='sh -c $as_echo_n_body as_echo'
  11711. fi
  11712. export as_echo_body
  11713. as_echo='sh -c $as_echo_body as_echo'
  11714. fi
  11715. # The user is always right.
  11716. if test "${PATH_SEPARATOR+set}" != set; then
  11717. PATH_SEPARATOR=:
  11718. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  11719. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  11720. PATH_SEPARATOR=';'
  11721. }
  11722. fi
  11723. # IFS
  11724. # We need space, tab and new line, in precisely that order. Quoting is
  11725. # there to prevent editors from complaining about space-tab.
  11726. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  11727. # splitting by setting IFS to empty value.)
  11728. IFS=" "" $as_nl"
  11729. # Find who we are. Look in the path if we contain no directory separator.
  11730. as_myself=
  11731. case $0 in #((
  11732. *[\\/]* ) as_myself=$0 ;;
  11733. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11734. for as_dir in $PATH
  11735. do
  11736. IFS=$as_save_IFS
  11737. test -z "$as_dir" && as_dir=.
  11738. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11739. done
  11740. IFS=$as_save_IFS
  11741. ;;
  11742. esac
  11743. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11744. # in which case we are not to be found in the path.
  11745. if test "x$as_myself" = x; then
  11746. as_myself=$0
  11747. fi
  11748. if test ! -f "$as_myself"; then
  11749. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  11750. exit 1
  11751. fi
  11752. # Unset variables that we do not need and which cause bugs (e.g. in
  11753. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  11754. # suppresses any "Segmentation fault" message there. '((' could
  11755. # trigger a bug in pdksh 5.2.14.
  11756. for as_var in BASH_ENV ENV MAIL MAILPATH
  11757. do eval test x\${$as_var+set} = xset \
  11758. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  11759. done
  11760. PS1='$ '
  11761. PS2='> '
  11762. PS4='+ '
  11763. # NLS nuisances.
  11764. LC_ALL=C
  11765. export LC_ALL
  11766. LANGUAGE=C
  11767. export LANGUAGE
  11768. # CDPATH.
  11769. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11770. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  11771. # ----------------------------------------
  11772. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  11773. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  11774. # script with STATUS, using 1 if that was 0.
  11775. as_fn_error ()
  11776. {
  11777. as_status=$1; test $as_status -eq 0 && as_status=1
  11778. if test "$4"; then
  11779. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  11780. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  11781. fi
  11782. $as_echo "$as_me: error: $2" >&2
  11783. as_fn_exit $as_status
  11784. } # as_fn_error
  11785. # as_fn_set_status STATUS
  11786. # -----------------------
  11787. # Set $? to STATUS, without forking.
  11788. as_fn_set_status ()
  11789. {
  11790. return $1
  11791. } # as_fn_set_status
  11792. # as_fn_exit STATUS
  11793. # -----------------
  11794. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  11795. as_fn_exit ()
  11796. {
  11797. set +e
  11798. as_fn_set_status $1
  11799. exit $1
  11800. } # as_fn_exit
  11801. # as_fn_unset VAR
  11802. # ---------------
  11803. # Portably unset VAR.
  11804. as_fn_unset ()
  11805. {
  11806. { eval $1=; unset $1;}
  11807. }
  11808. as_unset=as_fn_unset
  11809. # as_fn_append VAR VALUE
  11810. # ----------------------
  11811. # Append the text in VALUE to the end of the definition contained in VAR. Take
  11812. # advantage of any shell optimizations that allow amortized linear growth over
  11813. # repeated appends, instead of the typical quadratic growth present in naive
  11814. # implementations.
  11815. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  11816. eval 'as_fn_append ()
  11817. {
  11818. eval $1+=\$2
  11819. }'
  11820. else
  11821. as_fn_append ()
  11822. {
  11823. eval $1=\$$1\$2
  11824. }
  11825. fi # as_fn_append
  11826. # as_fn_arith ARG...
  11827. # ------------------
  11828. # Perform arithmetic evaluation on the ARGs, and store the result in the
  11829. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  11830. # must be portable across $(()) and expr.
  11831. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  11832. eval 'as_fn_arith ()
  11833. {
  11834. as_val=$(( $* ))
  11835. }'
  11836. else
  11837. as_fn_arith ()
  11838. {
  11839. as_val=`expr "$@" || test $? -eq 1`
  11840. }
  11841. fi # as_fn_arith
  11842. if expr a : '\(a\)' >/dev/null 2>&1 &&
  11843. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  11844. as_expr=expr
  11845. else
  11846. as_expr=false
  11847. fi
  11848. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  11849. as_basename=basename
  11850. else
  11851. as_basename=false
  11852. fi
  11853. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  11854. as_dirname=dirname
  11855. else
  11856. as_dirname=false
  11857. fi
  11858. as_me=`$as_basename -- "$0" ||
  11859. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11860. X"$0" : 'X\(//\)$' \| \
  11861. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  11862. $as_echo X/"$0" |
  11863. sed '/^.*\/\([^/][^/]*\)\/*$/{
  11864. s//\1/
  11865. q
  11866. }
  11867. /^X\/\(\/\/\)$/{
  11868. s//\1/
  11869. q
  11870. }
  11871. /^X\/\(\/\).*/{
  11872. s//\1/
  11873. q
  11874. }
  11875. s/.*/./; q'`
  11876. # Avoid depending upon Character Ranges.
  11877. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11878. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11879. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11880. as_cr_digits='0123456789'
  11881. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11882. ECHO_C= ECHO_N= ECHO_T=
  11883. case `echo -n x` in #(((((
  11884. -n*)
  11885. case `echo 'xy\c'` in
  11886. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  11887. xy) ECHO_C='\c';;
  11888. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  11889. ECHO_T=' ';;
  11890. esac;;
  11891. *)
  11892. ECHO_N='-n';;
  11893. esac
  11894. rm -f conf$$ conf$$.exe conf$$.file
  11895. if test -d conf$$.dir; then
  11896. rm -f conf$$.dir/conf$$.file
  11897. else
  11898. rm -f conf$$.dir
  11899. mkdir conf$$.dir 2>/dev/null
  11900. fi
  11901. if (echo >conf$$.file) 2>/dev/null; then
  11902. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11903. as_ln_s='ln -s'
  11904. # ... but there are two gotchas:
  11905. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  11906. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  11907. # In both cases, we have to default to `cp -pR'.
  11908. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  11909. as_ln_s='cp -pR'
  11910. elif ln conf$$.file conf$$ 2>/dev/null; then
  11911. as_ln_s=ln
  11912. else
  11913. as_ln_s='cp -pR'
  11914. fi
  11915. else
  11916. as_ln_s='cp -pR'
  11917. fi
  11918. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  11919. rmdir conf$$.dir 2>/dev/null
  11920. # as_fn_mkdir_p
  11921. # -------------
  11922. # Create "$as_dir" as a directory, including parents if necessary.
  11923. as_fn_mkdir_p ()
  11924. {
  11925. case $as_dir in #(
  11926. -*) as_dir=./$as_dir;;
  11927. esac
  11928. test -d "$as_dir" || eval $as_mkdir_p || {
  11929. as_dirs=
  11930. while :; do
  11931. case $as_dir in #(
  11932. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  11933. *) as_qdir=$as_dir;;
  11934. esac
  11935. as_dirs="'$as_qdir' $as_dirs"
  11936. as_dir=`$as_dirname -- "$as_dir" ||
  11937. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11938. X"$as_dir" : 'X\(//\)[^/]' \| \
  11939. X"$as_dir" : 'X\(//\)$' \| \
  11940. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  11941. $as_echo X"$as_dir" |
  11942. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11943. s//\1/
  11944. q
  11945. }
  11946. /^X\(\/\/\)[^/].*/{
  11947. s//\1/
  11948. q
  11949. }
  11950. /^X\(\/\/\)$/{
  11951. s//\1/
  11952. q
  11953. }
  11954. /^X\(\/\).*/{
  11955. s//\1/
  11956. q
  11957. }
  11958. s/.*/./; q'`
  11959. test -d "$as_dir" && break
  11960. done
  11961. test -z "$as_dirs" || eval "mkdir $as_dirs"
  11962. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  11963. } # as_fn_mkdir_p
  11964. if mkdir -p . 2>/dev/null; then
  11965. as_mkdir_p='mkdir -p "$as_dir"'
  11966. else
  11967. test -d ./-p && rmdir ./-p
  11968. as_mkdir_p=false
  11969. fi
  11970. # as_fn_executable_p FILE
  11971. # -----------------------
  11972. # Test if FILE is an executable regular file.
  11973. as_fn_executable_p ()
  11974. {
  11975. test -f "$1" && test -x "$1"
  11976. } # as_fn_executable_p
  11977. as_test_x='test -x'
  11978. as_executable_p=as_fn_executable_p
  11979. # Sed expression to map a string onto a valid CPP name.
  11980. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11981. # Sed expression to map a string onto a valid variable name.
  11982. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11983. exec 6>&1
  11984. ## ----------------------------------- ##
  11985. ## Main body of $CONFIG_STATUS script. ##
  11986. ## ----------------------------------- ##
  11987. _ASEOF
  11988. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  11989. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11990. # Save the log message, to keep $0 and so on meaningful, and to
  11991. # report actual input values of CONFIG_FILES etc. instead of their
  11992. # values after options handling.
  11993. ac_log="
  11994. This file was extended by $as_me, which was
  11995. generated by GNU Autoconf 2.69. Invocation command line was
  11996. CONFIG_FILES = $CONFIG_FILES
  11997. CONFIG_HEADERS = $CONFIG_HEADERS
  11998. CONFIG_LINKS = $CONFIG_LINKS
  11999. CONFIG_COMMANDS = $CONFIG_COMMANDS
  12000. $ $0 $@
  12001. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  12002. "
  12003. _ACEOF
  12004. case $ac_config_files in *"
  12005. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  12006. esac
  12007. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12008. # Files that config.status was made for.
  12009. config_files="$ac_config_files"
  12010. config_commands="$ac_config_commands"
  12011. _ACEOF
  12012. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12013. ac_cs_usage="\
  12014. \`$as_me' instantiates files and other configuration actions
  12015. from templates according to the current configuration. Unless the files
  12016. and actions are specified as TAGs, all are instantiated by default.
  12017. Usage: $0 [OPTION]... [TAG]...
  12018. -h, --help print this help, then exit
  12019. -V, --version print version number and configuration settings, then exit
  12020. --config print configuration, then exit
  12021. -q, --quiet, --silent
  12022. do not print progress messages
  12023. -d, --debug don't remove temporary files
  12024. --recheck update $as_me by reconfiguring in the same conditions
  12025. --file=FILE[:TEMPLATE]
  12026. instantiate the configuration file FILE
  12027. Configuration files:
  12028. $config_files
  12029. Configuration commands:
  12030. $config_commands
  12031. Report bugs to the package provider."
  12032. _ACEOF
  12033. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12034. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  12035. ac_cs_version="\\
  12036. config.status
  12037. configured by $0, generated by GNU Autoconf 2.69,
  12038. with options \\"\$ac_cs_config\\"
  12039. Copyright (C) 2012 Free Software Foundation, Inc.
  12040. This config.status script is free software; the Free Software Foundation
  12041. gives unlimited permission to copy, distribute and modify it."
  12042. ac_pwd='$ac_pwd'
  12043. srcdir='$srcdir'
  12044. INSTALL='$INSTALL'
  12045. MKDIR_P='$MKDIR_P'
  12046. AWK='$AWK'
  12047. test -n "\$AWK" || AWK=awk
  12048. _ACEOF
  12049. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12050. # The default lists apply if the user does not specify any file.
  12051. ac_need_defaults=:
  12052. while test $# != 0
  12053. do
  12054. case $1 in
  12055. --*=?*)
  12056. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12057. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  12058. ac_shift=:
  12059. ;;
  12060. --*=)
  12061. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12062. ac_optarg=
  12063. ac_shift=:
  12064. ;;
  12065. *)
  12066. ac_option=$1
  12067. ac_optarg=$2
  12068. ac_shift=shift
  12069. ;;
  12070. esac
  12071. case $ac_option in
  12072. # Handling of the options.
  12073. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  12074. ac_cs_recheck=: ;;
  12075. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  12076. $as_echo "$ac_cs_version"; exit ;;
  12077. --config | --confi | --conf | --con | --co | --c )
  12078. $as_echo "$ac_cs_config"; exit ;;
  12079. --debug | --debu | --deb | --de | --d | -d )
  12080. debug=: ;;
  12081. --file | --fil | --fi | --f )
  12082. $ac_shift
  12083. case $ac_optarg in
  12084. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12085. '') as_fn_error $? "missing file argument" ;;
  12086. esac
  12087. as_fn_append CONFIG_FILES " '$ac_optarg'"
  12088. ac_need_defaults=false;;
  12089. --he | --h | --help | --hel | -h )
  12090. $as_echo "$ac_cs_usage"; exit ;;
  12091. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  12092. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  12093. ac_cs_silent=: ;;
  12094. # This is an error.
  12095. -*) as_fn_error $? "unrecognized option: \`$1'
  12096. Try \`$0 --help' for more information." ;;
  12097. *) as_fn_append ac_config_targets " $1"
  12098. ac_need_defaults=false ;;
  12099. esac
  12100. shift
  12101. done
  12102. ac_configure_extra_args=
  12103. if $ac_cs_silent; then
  12104. exec 6>/dev/null
  12105. ac_configure_extra_args="$ac_configure_extra_args --silent"
  12106. fi
  12107. _ACEOF
  12108. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12109. if \$ac_cs_recheck; then
  12110. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  12111. shift
  12112. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  12113. CONFIG_SHELL='$SHELL'
  12114. export CONFIG_SHELL
  12115. exec "\$@"
  12116. fi
  12117. _ACEOF
  12118. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12119. exec 5>>config.log
  12120. {
  12121. echo
  12122. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  12123. ## Running $as_me. ##
  12124. _ASBOX
  12125. $as_echo "$ac_log"
  12126. } >&5
  12127. _ACEOF
  12128. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12129. #
  12130. # INIT-COMMANDS
  12131. #
  12132. # The HP-UX ksh and POSIX shell print the target directory to stdout
  12133. # if CDPATH is set.
  12134. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  12135. sed_quote_subst='$sed_quote_subst'
  12136. double_quote_subst='$double_quote_subst'
  12137. delay_variable_subst='$delay_variable_subst'
  12138. macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  12139. macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  12140. AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
  12141. DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  12142. OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  12143. enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  12144. enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  12145. pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  12146. enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  12147. host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  12148. host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  12149. host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  12150. build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  12151. build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  12152. build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  12153. SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  12154. Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  12155. GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  12156. EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  12157. FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  12158. LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  12159. NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  12160. LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  12161. max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  12162. ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  12163. exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  12164. lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  12165. lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  12166. lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  12167. reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  12168. reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12169. deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  12170. file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  12171. AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  12172. AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  12173. STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  12174. RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  12175. old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12176. old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12177. old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12178. CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  12179. CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  12180. compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  12181. GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  12182. lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  12183. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  12184. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
  12185. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  12186. objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  12187. SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  12188. ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  12189. MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  12190. lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  12191. lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  12192. lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  12193. lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  12194. lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  12195. need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  12196. DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  12197. NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  12198. LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  12199. OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  12200. OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  12201. libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  12202. shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12203. extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12204. archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  12205. enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  12206. export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12207. whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12208. compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  12209. old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12210. old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12211. archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12212. archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12213. module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12214. module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12215. with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  12216. allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  12217. no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  12218. hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12219. hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  12220. hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  12221. hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  12222. hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  12223. hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  12224. hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  12225. hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  12226. inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  12227. link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  12228. fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  12229. always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  12230. export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12231. exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  12232. include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  12233. prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12234. file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12235. variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  12236. need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  12237. need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  12238. version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  12239. runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  12240. shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  12241. shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  12242. libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12243. library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12244. soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12245. postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12246. postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12247. finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  12248. finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  12249. hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  12250. sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12251. sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  12252. hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  12253. enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  12254. enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  12255. enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  12256. old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  12257. striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  12258. LTCC='$LTCC'
  12259. LTCFLAGS='$LTCFLAGS'
  12260. compiler='$compiler_DEFAULT'
  12261. # Quote evaled strings.
  12262. for var in SED \
  12263. GREP \
  12264. EGREP \
  12265. FGREP \
  12266. LD \
  12267. NM \
  12268. LN_S \
  12269. lt_SP2NL \
  12270. lt_NL2SP \
  12271. reload_flag \
  12272. deplibs_check_method \
  12273. file_magic_cmd \
  12274. AR \
  12275. AR_FLAGS \
  12276. STRIP \
  12277. RANLIB \
  12278. CC \
  12279. CFLAGS \
  12280. compiler \
  12281. lt_cv_sys_global_symbol_pipe \
  12282. lt_cv_sys_global_symbol_to_cdecl \
  12283. lt_cv_sys_global_symbol_to_c_name_address \
  12284. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  12285. SHELL \
  12286. ECHO \
  12287. lt_prog_compiler_no_builtin_flag \
  12288. lt_prog_compiler_wl \
  12289. lt_prog_compiler_pic \
  12290. lt_prog_compiler_static \
  12291. lt_cv_prog_compiler_c_o \
  12292. need_locks \
  12293. DSYMUTIL \
  12294. NMEDIT \
  12295. LIPO \
  12296. OTOOL \
  12297. OTOOL64 \
  12298. shrext_cmds \
  12299. export_dynamic_flag_spec \
  12300. whole_archive_flag_spec \
  12301. compiler_needs_object \
  12302. with_gnu_ld \
  12303. allow_undefined_flag \
  12304. no_undefined_flag \
  12305. hardcode_libdir_flag_spec \
  12306. hardcode_libdir_flag_spec_ld \
  12307. hardcode_libdir_separator \
  12308. fix_srcfile_path \
  12309. exclude_expsyms \
  12310. include_expsyms \
  12311. file_list_spec \
  12312. variables_saved_for_relink \
  12313. libname_spec \
  12314. library_names_spec \
  12315. soname_spec \
  12316. finish_eval \
  12317. old_striplib \
  12318. striplib; do
  12319. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  12320. *[\\\\\\\`\\"\\\$]*)
  12321. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  12322. ;;
  12323. *)
  12324. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  12325. ;;
  12326. esac
  12327. done
  12328. # Double-quote double-evaled strings.
  12329. for var in reload_cmds \
  12330. old_postinstall_cmds \
  12331. old_postuninstall_cmds \
  12332. old_archive_cmds \
  12333. extract_expsyms_cmds \
  12334. old_archive_from_new_cmds \
  12335. old_archive_from_expsyms_cmds \
  12336. archive_cmds \
  12337. archive_expsym_cmds \
  12338. module_cmds \
  12339. module_expsym_cmds \
  12340. export_symbols_cmds \
  12341. prelink_cmds \
  12342. postinstall_cmds \
  12343. postuninstall_cmds \
  12344. finish_cmds \
  12345. sys_lib_search_path_spec \
  12346. sys_lib_dlsearch_path_spec; do
  12347. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  12348. *[\\\\\\\`\\"\\\$]*)
  12349. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  12350. ;;
  12351. *)
  12352. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  12353. ;;
  12354. esac
  12355. done
  12356. # Fix-up fallback echo if it was mangled by the above quoting rules.
  12357. case \$lt_ECHO in
  12358. *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  12359. ;;
  12360. esac
  12361. ac_aux_dir='$ac_aux_dir'
  12362. xsi_shell='$xsi_shell'
  12363. lt_shell_append='$lt_shell_append'
  12364. # See if we are running on zsh, and set the options which allow our
  12365. # commands through without removal of \ escapes INIT.
  12366. if test -n "\${ZSH_VERSION+set}" ; then
  12367. setopt NO_GLOB_SUBST
  12368. fi
  12369. PACKAGE='$PACKAGE'
  12370. VERSION='$VERSION'
  12371. TIMESTAMP='$TIMESTAMP'
  12372. RM='$RM'
  12373. ofile='$ofile'
  12374. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  12375. _ACEOF
  12376. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12377. # Handling of arguments.
  12378. for ac_config_target in $ac_config_targets
  12379. do
  12380. case $ac_config_target in
  12381. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  12382. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  12383. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  12384. "SDL2_image.spec") CONFIG_FILES="$CONFIG_FILES SDL2_image.spec" ;;
  12385. "SDL2_image.pc") CONFIG_FILES="$CONFIG_FILES SDL2_image.pc" ;;
  12386. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  12387. esac
  12388. done
  12389. # If the user did not use the arguments to specify the items to instantiate,
  12390. # then the envvar interface is used. Set only those that are not.
  12391. # We use the long form for the default assignment because of an extremely
  12392. # bizarre bug on SunOS 4.1.3.
  12393. if $ac_need_defaults; then
  12394. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  12395. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  12396. fi
  12397. # Have a temporary directory for convenience. Make it in the build tree
  12398. # simply because there is no reason against having it here, and in addition,
  12399. # creating and moving files from /tmp can sometimes cause problems.
  12400. # Hook for its removal unless debugging.
  12401. # Note that there is a small window in which the directory will not be cleaned:
  12402. # after its creation but before its name has been assigned to `$tmp'.
  12403. $debug ||
  12404. {
  12405. tmp= ac_tmp=
  12406. trap 'exit_status=$?
  12407. : "${ac_tmp:=$tmp}"
  12408. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  12409. ' 0
  12410. trap 'as_fn_exit 1' 1 2 13 15
  12411. }
  12412. # Create a (secure) tmp directory for tmp files.
  12413. {
  12414. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  12415. test -d "$tmp"
  12416. } ||
  12417. {
  12418. tmp=./conf$$-$RANDOM
  12419. (umask 077 && mkdir "$tmp")
  12420. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  12421. ac_tmp=$tmp
  12422. # Set up the scripts for CONFIG_FILES section.
  12423. # No need to generate them if there are no CONFIG_FILES.
  12424. # This happens for instance with `./config.status config.h'.
  12425. if test -n "$CONFIG_FILES"; then
  12426. ac_cr=`echo X | tr X '\015'`
  12427. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  12428. # But we know of no other shell where ac_cr would be empty at this
  12429. # point, so we can use a bashism as a fallback.
  12430. if test "x$ac_cr" = x; then
  12431. eval ac_cr=\$\'\\r\'
  12432. fi
  12433. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  12434. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  12435. ac_cs_awk_cr='\\r'
  12436. else
  12437. ac_cs_awk_cr=$ac_cr
  12438. fi
  12439. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  12440. _ACEOF
  12441. {
  12442. echo "cat >conf$$subs.awk <<_ACEOF" &&
  12443. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  12444. echo "_ACEOF"
  12445. } >conf$$subs.sh ||
  12446. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12447. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  12448. ac_delim='%!_!# '
  12449. for ac_last_try in false false false false false :; do
  12450. . ./conf$$subs.sh ||
  12451. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12452. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  12453. if test $ac_delim_n = $ac_delim_num; then
  12454. break
  12455. elif $ac_last_try; then
  12456. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12457. else
  12458. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12459. fi
  12460. done
  12461. rm -f conf$$subs.sh
  12462. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12463. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  12464. _ACEOF
  12465. sed -n '
  12466. h
  12467. s/^/S["/; s/!.*/"]=/
  12468. p
  12469. g
  12470. s/^[^!]*!//
  12471. :repl
  12472. t repl
  12473. s/'"$ac_delim"'$//
  12474. t delim
  12475. :nl
  12476. h
  12477. s/\(.\{148\}\)..*/\1/
  12478. t more1
  12479. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  12480. p
  12481. n
  12482. b repl
  12483. :more1
  12484. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12485. p
  12486. g
  12487. s/.\{148\}//
  12488. t nl
  12489. :delim
  12490. h
  12491. s/\(.\{148\}\)..*/\1/
  12492. t more2
  12493. s/["\\]/\\&/g; s/^/"/; s/$/"/
  12494. p
  12495. b
  12496. :more2
  12497. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12498. p
  12499. g
  12500. s/.\{148\}//
  12501. t delim
  12502. ' <conf$$subs.awk | sed '
  12503. /^[^""]/{
  12504. N
  12505. s/\n//
  12506. }
  12507. ' >>$CONFIG_STATUS || ac_write_fail=1
  12508. rm -f conf$$subs.awk
  12509. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12510. _ACAWK
  12511. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  12512. for (key in S) S_is_set[key] = 1
  12513. FS = ""
  12514. }
  12515. {
  12516. line = $ 0
  12517. nfields = split(line, field, "@")
  12518. substed = 0
  12519. len = length(field[1])
  12520. for (i = 2; i < nfields; i++) {
  12521. key = field[i]
  12522. keylen = length(key)
  12523. if (S_is_set[key]) {
  12524. value = S[key]
  12525. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  12526. len += length(value) + length(field[++i])
  12527. substed = 1
  12528. } else
  12529. len += 1 + keylen
  12530. }
  12531. print line
  12532. }
  12533. _ACAWK
  12534. _ACEOF
  12535. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12536. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  12537. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  12538. else
  12539. cat
  12540. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  12541. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  12542. _ACEOF
  12543. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  12544. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  12545. # trailing colons and then remove the whole line if VPATH becomes empty
  12546. # (actually we leave an empty line to preserve line numbers).
  12547. if test "x$srcdir" = x.; then
  12548. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  12549. h
  12550. s///
  12551. s/^/:/
  12552. s/[ ]*$/:/
  12553. s/:\$(srcdir):/:/g
  12554. s/:\${srcdir}:/:/g
  12555. s/:@srcdir@:/:/g
  12556. s/^:*//
  12557. s/:*$//
  12558. x
  12559. s/\(=[ ]*\).*/\1/
  12560. G
  12561. s/\n//
  12562. s/^[^=]*=[ ]*$//
  12563. }'
  12564. fi
  12565. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12566. fi # test -n "$CONFIG_FILES"
  12567. eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
  12568. shift
  12569. for ac_tag
  12570. do
  12571. case $ac_tag in
  12572. :[FHLC]) ac_mode=$ac_tag; continue;;
  12573. esac
  12574. case $ac_mode$ac_tag in
  12575. :[FHL]*:*);;
  12576. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  12577. :[FH]-) ac_tag=-:-;;
  12578. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  12579. esac
  12580. ac_save_IFS=$IFS
  12581. IFS=:
  12582. set x $ac_tag
  12583. IFS=$ac_save_IFS
  12584. shift
  12585. ac_file=$1
  12586. shift
  12587. case $ac_mode in
  12588. :L) ac_source=$1;;
  12589. :[FH])
  12590. ac_file_inputs=
  12591. for ac_f
  12592. do
  12593. case $ac_f in
  12594. -) ac_f="$ac_tmp/stdin";;
  12595. *) # Look for the file first in the build tree, then in the source tree
  12596. # (if the path is not absolute). The absolute path cannot be DOS-style,
  12597. # because $ac_f cannot contain `:'.
  12598. test -f "$ac_f" ||
  12599. case $ac_f in
  12600. [\\/$]*) false;;
  12601. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  12602. esac ||
  12603. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  12604. esac
  12605. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  12606. as_fn_append ac_file_inputs " '$ac_f'"
  12607. done
  12608. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12609. # use $as_me), people would be surprised to read:
  12610. # /* config.h. Generated by config.status. */
  12611. configure_input='Generated from '`
  12612. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  12613. `' by configure.'
  12614. if test x"$ac_file" != x-; then
  12615. configure_input="$ac_file. $configure_input"
  12616. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  12617. $as_echo "$as_me: creating $ac_file" >&6;}
  12618. fi
  12619. # Neutralize special characters interpreted by sed in replacement strings.
  12620. case $configure_input in #(
  12621. *\&* | *\|* | *\\* )
  12622. ac_sed_conf_input=`$as_echo "$configure_input" |
  12623. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  12624. *) ac_sed_conf_input=$configure_input;;
  12625. esac
  12626. case $ac_tag in
  12627. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  12628. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  12629. esac
  12630. ;;
  12631. esac
  12632. ac_dir=`$as_dirname -- "$ac_file" ||
  12633. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12634. X"$ac_file" : 'X\(//\)[^/]' \| \
  12635. X"$ac_file" : 'X\(//\)$' \| \
  12636. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  12637. $as_echo X"$ac_file" |
  12638. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12639. s//\1/
  12640. q
  12641. }
  12642. /^X\(\/\/\)[^/].*/{
  12643. s//\1/
  12644. q
  12645. }
  12646. /^X\(\/\/\)$/{
  12647. s//\1/
  12648. q
  12649. }
  12650. /^X\(\/\).*/{
  12651. s//\1/
  12652. q
  12653. }
  12654. s/.*/./; q'`
  12655. as_dir="$ac_dir"; as_fn_mkdir_p
  12656. ac_builddir=.
  12657. case "$ac_dir" in
  12658. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12659. *)
  12660. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  12661. # A ".." for each directory in $ac_dir_suffix.
  12662. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  12663. case $ac_top_builddir_sub in
  12664. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12665. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  12666. esac ;;
  12667. esac
  12668. ac_abs_top_builddir=$ac_pwd
  12669. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  12670. # for backward compatibility:
  12671. ac_top_builddir=$ac_top_build_prefix
  12672. case $srcdir in
  12673. .) # We are building in place.
  12674. ac_srcdir=.
  12675. ac_top_srcdir=$ac_top_builddir_sub
  12676. ac_abs_top_srcdir=$ac_pwd ;;
  12677. [\\/]* | ?:[\\/]* ) # Absolute name.
  12678. ac_srcdir=$srcdir$ac_dir_suffix;
  12679. ac_top_srcdir=$srcdir
  12680. ac_abs_top_srcdir=$srcdir ;;
  12681. *) # Relative name.
  12682. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  12683. ac_top_srcdir=$ac_top_build_prefix$srcdir
  12684. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  12685. esac
  12686. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  12687. case $ac_mode in
  12688. :F)
  12689. #
  12690. # CONFIG_FILE
  12691. #
  12692. case $INSTALL in
  12693. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  12694. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  12695. esac
  12696. ac_MKDIR_P=$MKDIR_P
  12697. case $MKDIR_P in
  12698. [\\/$]* | ?:[\\/]* ) ;;
  12699. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  12700. esac
  12701. _ACEOF
  12702. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12703. # If the template does not know about datarootdir, expand it.
  12704. # FIXME: This hack should be removed a few years after 2.60.
  12705. ac_datarootdir_hack=; ac_datarootdir_seen=
  12706. ac_sed_dataroot='
  12707. /datarootdir/ {
  12708. p
  12709. q
  12710. }
  12711. /@datadir@/p
  12712. /@docdir@/p
  12713. /@infodir@/p
  12714. /@localedir@/p
  12715. /@mandir@/p'
  12716. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  12717. *datarootdir*) ac_datarootdir_seen=yes;;
  12718. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  12719. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  12720. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  12721. _ACEOF
  12722. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12723. ac_datarootdir_hack='
  12724. s&@datadir@&$datadir&g
  12725. s&@docdir@&$docdir&g
  12726. s&@infodir@&$infodir&g
  12727. s&@localedir@&$localedir&g
  12728. s&@mandir@&$mandir&g
  12729. s&\\\${datarootdir}&$datarootdir&g' ;;
  12730. esac
  12731. _ACEOF
  12732. # Neutralize VPATH when `$srcdir' = `.'.
  12733. # Shell code in configure.ac might set extrasub.
  12734. # FIXME: do we really want to maintain this feature?
  12735. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12736. ac_sed_extra="$ac_vpsub
  12737. $extrasub
  12738. _ACEOF
  12739. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12740. :t
  12741. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12742. s|@configure_input@|$ac_sed_conf_input|;t t
  12743. s&@top_builddir@&$ac_top_builddir_sub&;t t
  12744. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  12745. s&@srcdir@&$ac_srcdir&;t t
  12746. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  12747. s&@top_srcdir@&$ac_top_srcdir&;t t
  12748. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  12749. s&@builddir@&$ac_builddir&;t t
  12750. s&@abs_builddir@&$ac_abs_builddir&;t t
  12751. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  12752. s&@INSTALL@&$ac_INSTALL&;t t
  12753. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  12754. $ac_datarootdir_hack
  12755. "
  12756. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  12757. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12758. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  12759. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  12760. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  12761. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  12762. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12763. which seems to be undefined. Please make sure it is defined" >&5
  12764. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12765. which seems to be undefined. Please make sure it is defined" >&2;}
  12766. rm -f "$ac_tmp/stdin"
  12767. case $ac_file in
  12768. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  12769. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  12770. esac \
  12771. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12772. ;;
  12773. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  12774. $as_echo "$as_me: executing $ac_file commands" >&6;}
  12775. ;;
  12776. esac
  12777. case $ac_file$ac_mode in
  12778. "libtool":C)
  12779. # See if we are running on zsh, and set the options which allow our
  12780. # commands through without removal of \ escapes.
  12781. if test -n "${ZSH_VERSION+set}" ; then
  12782. setopt NO_GLOB_SUBST
  12783. fi
  12784. cfgfile="${ofile}T"
  12785. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  12786. $RM "$cfgfile"
  12787. cat <<_LT_EOF >> "$cfgfile"
  12788. #! $SHELL
  12789. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  12790. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  12791. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  12792. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  12793. #
  12794. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  12795. # 2006, 2007, 2008 Free Software Foundation, Inc.
  12796. # Written by Gordon Matzigkeit, 1996
  12797. #
  12798. # This file is part of GNU Libtool.
  12799. #
  12800. # GNU Libtool is free software; you can redistribute it and/or
  12801. # modify it under the terms of the GNU General Public License as
  12802. # published by the Free Software Foundation; either version 2 of
  12803. # the License, or (at your option) any later version.
  12804. #
  12805. # As a special exception to the GNU General Public License,
  12806. # if you distribute this file as part of a program or library that
  12807. # is built using GNU Libtool, you may include this file under the
  12808. # same distribution terms that you use for the rest of that program.
  12809. #
  12810. # GNU Libtool is distributed in the hope that it will be useful,
  12811. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12812. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12813. # GNU General Public License for more details.
  12814. #
  12815. # You should have received a copy of the GNU General Public License
  12816. # along with GNU Libtool; see the file COPYING. If not, a copy
  12817. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  12818. # obtained by writing to the Free Software Foundation, Inc.,
  12819. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  12820. # The names of the tagged configurations supported by this script.
  12821. available_tags=""
  12822. # ### BEGIN LIBTOOL CONFIG
  12823. # Which release of libtool.m4 was used?
  12824. macro_version=$macro_version
  12825. macro_revision=$macro_revision
  12826. # Assembler program.
  12827. AS=$AS
  12828. # DLL creation program.
  12829. DLLTOOL=$DLLTOOL
  12830. # Object dumper program.
  12831. OBJDUMP=$OBJDUMP
  12832. # Whether or not to build shared libraries.
  12833. build_libtool_libs=$enable_shared
  12834. # Whether or not to build static libraries.
  12835. build_old_libs=$enable_static
  12836. # What type of objects to build.
  12837. pic_mode=$pic_mode
  12838. # Whether or not to optimize for fast installation.
  12839. fast_install=$enable_fast_install
  12840. # The host system.
  12841. host_alias=$host_alias
  12842. host=$host
  12843. host_os=$host_os
  12844. # The build system.
  12845. build_alias=$build_alias
  12846. build=$build
  12847. build_os=$build_os
  12848. # A sed program that does not truncate output.
  12849. SED=$lt_SED
  12850. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  12851. Xsed="\$SED -e 1s/^X//"
  12852. # A grep program that handles long lines.
  12853. GREP=$lt_GREP
  12854. # An ERE matcher.
  12855. EGREP=$lt_EGREP
  12856. # A literal string matcher.
  12857. FGREP=$lt_FGREP
  12858. # A BSD- or MS-compatible name lister.
  12859. NM=$lt_NM
  12860. # Whether we need soft or hard links.
  12861. LN_S=$lt_LN_S
  12862. # What is the maximum length of a command?
  12863. max_cmd_len=$max_cmd_len
  12864. # Object file suffix (normally "o").
  12865. objext=$ac_objext
  12866. # Executable file suffix (normally "").
  12867. exeext=$exeext
  12868. # whether the shell understands "unset".
  12869. lt_unset=$lt_unset
  12870. # turn spaces into newlines.
  12871. SP2NL=$lt_lt_SP2NL
  12872. # turn newlines into spaces.
  12873. NL2SP=$lt_lt_NL2SP
  12874. # How to create reloadable object files.
  12875. reload_flag=$lt_reload_flag
  12876. reload_cmds=$lt_reload_cmds
  12877. # Method to check whether dependent libraries are shared objects.
  12878. deplibs_check_method=$lt_deplibs_check_method
  12879. # Command to use when deplibs_check_method == "file_magic".
  12880. file_magic_cmd=$lt_file_magic_cmd
  12881. # The archiver.
  12882. AR=$lt_AR
  12883. AR_FLAGS=$lt_AR_FLAGS
  12884. # A symbol stripping program.
  12885. STRIP=$lt_STRIP
  12886. # Commands used to install an old-style archive.
  12887. RANLIB=$lt_RANLIB
  12888. old_postinstall_cmds=$lt_old_postinstall_cmds
  12889. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  12890. # A C compiler.
  12891. LTCC=$lt_CC
  12892. # LTCC compiler flags.
  12893. LTCFLAGS=$lt_CFLAGS
  12894. # Take the output of nm and produce a listing of raw symbols and C names.
  12895. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  12896. # Transform the output of nm in a proper C declaration.
  12897. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  12898. # Transform the output of nm in a C name address pair.
  12899. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  12900. # Transform the output of nm in a C name address pair when lib prefix is needed.
  12901. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  12902. # The name of the directory that contains temporary libtool files.
  12903. objdir=$objdir
  12904. # Shell to use when invoking shell scripts.
  12905. SHELL=$lt_SHELL
  12906. # An echo program that does not interpret backslashes.
  12907. ECHO=$lt_ECHO
  12908. # Used to examine libraries when file_magic_cmd begins with "file".
  12909. MAGIC_CMD=$MAGIC_CMD
  12910. # Must we lock files when doing compilation?
  12911. need_locks=$lt_need_locks
  12912. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  12913. DSYMUTIL=$lt_DSYMUTIL
  12914. # Tool to change global to local symbols on Mac OS X.
  12915. NMEDIT=$lt_NMEDIT
  12916. # Tool to manipulate fat objects and archives on Mac OS X.
  12917. LIPO=$lt_LIPO
  12918. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  12919. OTOOL=$lt_OTOOL
  12920. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  12921. OTOOL64=$lt_OTOOL64
  12922. # Old archive suffix (normally "a").
  12923. libext=$libext
  12924. # Shared library suffix (normally ".so").
  12925. shrext_cmds=$lt_shrext_cmds
  12926. # The commands to extract the exported symbol list from a shared archive.
  12927. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  12928. # Variables whose values should be saved in libtool wrapper scripts and
  12929. # restored at link time.
  12930. variables_saved_for_relink=$lt_variables_saved_for_relink
  12931. # Do we need the "lib" prefix for modules?
  12932. need_lib_prefix=$need_lib_prefix
  12933. # Do we need a version for libraries?
  12934. need_version=$need_version
  12935. # Library versioning type.
  12936. version_type=$version_type
  12937. # Shared library runtime path variable.
  12938. runpath_var=$runpath_var
  12939. # Shared library path variable.
  12940. shlibpath_var=$shlibpath_var
  12941. # Is shlibpath searched before the hard-coded library search path?
  12942. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  12943. # Format of library name prefix.
  12944. libname_spec=$lt_libname_spec
  12945. # List of archive names. First name is the real one, the rest are links.
  12946. # The last name is the one that the linker finds with -lNAME
  12947. library_names_spec=$lt_library_names_spec
  12948. # The coded name of the library, if different from the real name.
  12949. soname_spec=$lt_soname_spec
  12950. # Command to use after installation of a shared archive.
  12951. postinstall_cmds=$lt_postinstall_cmds
  12952. # Command to use after uninstallation of a shared archive.
  12953. postuninstall_cmds=$lt_postuninstall_cmds
  12954. # Commands used to finish a libtool library installation in a directory.
  12955. finish_cmds=$lt_finish_cmds
  12956. # As "finish_cmds", except a single script fragment to be evaled but
  12957. # not shown.
  12958. finish_eval=$lt_finish_eval
  12959. # Whether we should hardcode library paths into libraries.
  12960. hardcode_into_libs=$hardcode_into_libs
  12961. # Compile-time system search path for libraries.
  12962. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  12963. # Run-time system search path for libraries.
  12964. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  12965. # Whether dlopen is supported.
  12966. dlopen_support=$enable_dlopen
  12967. # Whether dlopen of programs is supported.
  12968. dlopen_self=$enable_dlopen_self
  12969. # Whether dlopen of statically linked programs is supported.
  12970. dlopen_self_static=$enable_dlopen_self_static
  12971. # Commands to strip libraries.
  12972. old_striplib=$lt_old_striplib
  12973. striplib=$lt_striplib
  12974. # The linker used to build libraries.
  12975. LD=$lt_LD
  12976. # Commands used to build an old-style archive.
  12977. old_archive_cmds=$lt_old_archive_cmds
  12978. # A language specific compiler.
  12979. CC=$lt_compiler
  12980. # Is the compiler the GNU compiler?
  12981. with_gcc=$GCC
  12982. # Compiler flag to turn off builtin functions.
  12983. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  12984. # How to pass a linker flag through the compiler.
  12985. wl=$lt_lt_prog_compiler_wl
  12986. # Additional compiler flags for building library objects.
  12987. pic_flag=$lt_lt_prog_compiler_pic
  12988. # Compiler flag to prevent dynamic linking.
  12989. link_static_flag=$lt_lt_prog_compiler_static
  12990. # Does compiler simultaneously support -c and -o options?
  12991. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  12992. # Whether or not to add -lc for building shared libraries.
  12993. build_libtool_need_lc=$archive_cmds_need_lc
  12994. # Whether or not to disallow shared libs when runtime libs are static.
  12995. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  12996. # Compiler flag to allow reflexive dlopens.
  12997. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  12998. # Compiler flag to generate shared objects directly from archives.
  12999. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  13000. # Whether the compiler copes with passing no objects directly.
  13001. compiler_needs_object=$lt_compiler_needs_object
  13002. # Create an old-style archive from a shared archive.
  13003. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  13004. # Create a temporary old-style archive to link instead of a shared archive.
  13005. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  13006. # Commands used to build a shared archive.
  13007. archive_cmds=$lt_archive_cmds
  13008. archive_expsym_cmds=$lt_archive_expsym_cmds
  13009. # Commands used to build a loadable module if different from building
  13010. # a shared archive.
  13011. module_cmds=$lt_module_cmds
  13012. module_expsym_cmds=$lt_module_expsym_cmds
  13013. # Whether we are building with GNU ld or not.
  13014. with_gnu_ld=$lt_with_gnu_ld
  13015. # Flag that allows shared libraries with undefined symbols to be built.
  13016. allow_undefined_flag=$lt_allow_undefined_flag
  13017. # Flag that enforces no undefined symbols.
  13018. no_undefined_flag=$lt_no_undefined_flag
  13019. # Flag to hardcode \$libdir into a binary during linking.
  13020. # This must work even if \$libdir does not exist
  13021. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  13022. # If ld is used when linking, flag to hardcode \$libdir into a binary
  13023. # during linking. This must work even if \$libdir does not exist.
  13024. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  13025. # Whether we need a single "-rpath" flag with a separated argument.
  13026. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  13027. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  13028. # DIR into the resulting binary.
  13029. hardcode_direct=$hardcode_direct
  13030. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  13031. # DIR into the resulting binary and the resulting library dependency is
  13032. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  13033. # library is relocated.
  13034. hardcode_direct_absolute=$hardcode_direct_absolute
  13035. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  13036. # into the resulting binary.
  13037. hardcode_minus_L=$hardcode_minus_L
  13038. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  13039. # into the resulting binary.
  13040. hardcode_shlibpath_var=$hardcode_shlibpath_var
  13041. # Set to "yes" if building a shared library automatically hardcodes DIR
  13042. # into the library and all subsequent libraries and executables linked
  13043. # against it.
  13044. hardcode_automatic=$hardcode_automatic
  13045. # Set to yes if linker adds runtime paths of dependent libraries
  13046. # to runtime path list.
  13047. inherit_rpath=$inherit_rpath
  13048. # Whether libtool must link a program against all its dependency libraries.
  13049. link_all_deplibs=$link_all_deplibs
  13050. # Fix the shell variable \$srcfile for the compiler.
  13051. fix_srcfile_path=$lt_fix_srcfile_path
  13052. # Set to "yes" if exported symbols are required.
  13053. always_export_symbols=$always_export_symbols
  13054. # The commands to list exported symbols.
  13055. export_symbols_cmds=$lt_export_symbols_cmds
  13056. # Symbols that should not be listed in the preloaded symbols.
  13057. exclude_expsyms=$lt_exclude_expsyms
  13058. # Symbols that must always be exported.
  13059. include_expsyms=$lt_include_expsyms
  13060. # Commands necessary for linking programs (against libraries) with templates.
  13061. prelink_cmds=$lt_prelink_cmds
  13062. # Specify filename containing input files.
  13063. file_list_spec=$lt_file_list_spec
  13064. # How to hardcode a shared library path into an executable.
  13065. hardcode_action=$hardcode_action
  13066. # ### END LIBTOOL CONFIG
  13067. _LT_EOF
  13068. case $host_os in
  13069. aix3*)
  13070. cat <<\_LT_EOF >> "$cfgfile"
  13071. # AIX sometimes has problems with the GCC collect2 program. For some
  13072. # reason, if we set the COLLECT_NAMES environment variable, the problems
  13073. # vanish in a puff of smoke.
  13074. if test "X${COLLECT_NAMES+set}" != Xset; then
  13075. COLLECT_NAMES=
  13076. export COLLECT_NAMES
  13077. fi
  13078. _LT_EOF
  13079. ;;
  13080. esac
  13081. ltmain="$ac_aux_dir/ltmain.sh"
  13082. # We use sed instead of cat because bash on DJGPP gets confused if
  13083. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  13084. # text mode, it properly converts lines to CR/LF. This bash problem
  13085. # is reportedly fixed, but why not run on old versions too?
  13086. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  13087. || (rm -f "$cfgfile"; exit 1)
  13088. case $xsi_shell in
  13089. yes)
  13090. cat << \_LT_EOF >> "$cfgfile"
  13091. # func_dirname file append nondir_replacement
  13092. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  13093. # otherwise set result to NONDIR_REPLACEMENT.
  13094. func_dirname ()
  13095. {
  13096. case ${1} in
  13097. */*) func_dirname_result="${1%/*}${2}" ;;
  13098. * ) func_dirname_result="${3}" ;;
  13099. esac
  13100. }
  13101. # func_basename file
  13102. func_basename ()
  13103. {
  13104. func_basename_result="${1##*/}"
  13105. }
  13106. # func_dirname_and_basename file append nondir_replacement
  13107. # perform func_basename and func_dirname in a single function
  13108. # call:
  13109. # dirname: Compute the dirname of FILE. If nonempty,
  13110. # add APPEND to the result, otherwise set result
  13111. # to NONDIR_REPLACEMENT.
  13112. # value returned in "$func_dirname_result"
  13113. # basename: Compute filename of FILE.
  13114. # value retuned in "$func_basename_result"
  13115. # Implementation must be kept synchronized with func_dirname
  13116. # and func_basename. For efficiency, we do not delegate to
  13117. # those functions but instead duplicate the functionality here.
  13118. func_dirname_and_basename ()
  13119. {
  13120. case ${1} in
  13121. */*) func_dirname_result="${1%/*}${2}" ;;
  13122. * ) func_dirname_result="${3}" ;;
  13123. esac
  13124. func_basename_result="${1##*/}"
  13125. }
  13126. # func_stripname prefix suffix name
  13127. # strip PREFIX and SUFFIX off of NAME.
  13128. # PREFIX and SUFFIX must not contain globbing or regex special
  13129. # characters, hashes, percent signs, but SUFFIX may contain a leading
  13130. # dot (in which case that matches only a dot).
  13131. func_stripname ()
  13132. {
  13133. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  13134. # positional parameters, so assign one to ordinary parameter first.
  13135. func_stripname_result=${3}
  13136. func_stripname_result=${func_stripname_result#"${1}"}
  13137. func_stripname_result=${func_stripname_result%"${2}"}
  13138. }
  13139. # func_opt_split
  13140. func_opt_split ()
  13141. {
  13142. func_opt_split_opt=${1%%=*}
  13143. func_opt_split_arg=${1#*=}
  13144. }
  13145. # func_lo2o object
  13146. func_lo2o ()
  13147. {
  13148. case ${1} in
  13149. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  13150. *) func_lo2o_result=${1} ;;
  13151. esac
  13152. }
  13153. # func_xform libobj-or-source
  13154. func_xform ()
  13155. {
  13156. func_xform_result=${1%.*}.lo
  13157. }
  13158. # func_arith arithmetic-term...
  13159. func_arith ()
  13160. {
  13161. func_arith_result=$(( $* ))
  13162. }
  13163. # func_len string
  13164. # STRING may not start with a hyphen.
  13165. func_len ()
  13166. {
  13167. func_len_result=${#1}
  13168. }
  13169. _LT_EOF
  13170. ;;
  13171. *) # Bourne compatible functions.
  13172. cat << \_LT_EOF >> "$cfgfile"
  13173. # func_dirname file append nondir_replacement
  13174. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  13175. # otherwise set result to NONDIR_REPLACEMENT.
  13176. func_dirname ()
  13177. {
  13178. # Extract subdirectory from the argument.
  13179. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  13180. if test "X$func_dirname_result" = "X${1}"; then
  13181. func_dirname_result="${3}"
  13182. else
  13183. func_dirname_result="$func_dirname_result${2}"
  13184. fi
  13185. }
  13186. # func_basename file
  13187. func_basename ()
  13188. {
  13189. func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  13190. }
  13191. # func_stripname prefix suffix name
  13192. # strip PREFIX and SUFFIX off of NAME.
  13193. # PREFIX and SUFFIX must not contain globbing or regex special
  13194. # characters, hashes, percent signs, but SUFFIX may contain a leading
  13195. # dot (in which case that matches only a dot).
  13196. # func_strip_suffix prefix name
  13197. func_stripname ()
  13198. {
  13199. case ${2} in
  13200. .*) func_stripname_result=`$ECHO "X${3}" \
  13201. | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  13202. *) func_stripname_result=`$ECHO "X${3}" \
  13203. | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  13204. esac
  13205. }
  13206. # sed scripts:
  13207. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  13208. my_sed_long_arg='1s/^-[^=]*=//'
  13209. # func_opt_split
  13210. func_opt_split ()
  13211. {
  13212. func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  13213. func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  13214. }
  13215. # func_lo2o object
  13216. func_lo2o ()
  13217. {
  13218. func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  13219. }
  13220. # func_xform libobj-or-source
  13221. func_xform ()
  13222. {
  13223. func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  13224. }
  13225. # func_arith arithmetic-term...
  13226. func_arith ()
  13227. {
  13228. func_arith_result=`expr "$@"`
  13229. }
  13230. # func_len string
  13231. # STRING may not start with a hyphen.
  13232. func_len ()
  13233. {
  13234. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  13235. }
  13236. _LT_EOF
  13237. esac
  13238. case $lt_shell_append in
  13239. yes)
  13240. cat << \_LT_EOF >> "$cfgfile"
  13241. # func_append var value
  13242. # Append VALUE to the end of shell variable VAR.
  13243. func_append ()
  13244. {
  13245. eval "$1+=\$2"
  13246. }
  13247. _LT_EOF
  13248. ;;
  13249. *)
  13250. cat << \_LT_EOF >> "$cfgfile"
  13251. # func_append var value
  13252. # Append VALUE to the end of shell variable VAR.
  13253. func_append ()
  13254. {
  13255. eval "$1=\$$1\$2"
  13256. }
  13257. _LT_EOF
  13258. ;;
  13259. esac
  13260. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  13261. || (rm -f "$cfgfile"; exit 1)
  13262. mv -f "$cfgfile" "$ofile" ||
  13263. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  13264. chmod +x "$ofile"
  13265. ;;
  13266. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  13267. # Older Autoconf quotes --file arguments for eval, but not when files
  13268. # are listed without --file. Let's play safe and only enable the eval
  13269. # if we detect the quoting.
  13270. case $CONFIG_FILES in
  13271. *\'*) eval set x "$CONFIG_FILES" ;;
  13272. *) set x $CONFIG_FILES ;;
  13273. esac
  13274. shift
  13275. for mf
  13276. do
  13277. # Strip MF so we end up with the name of the file.
  13278. mf=`echo "$mf" | sed -e 's/:.*$//'`
  13279. # Check whether this is an Automake generated Makefile or not.
  13280. # We used to match only the files named 'Makefile.in', but
  13281. # some people rename them; so instead we look at the file content.
  13282. # Grep'ing the first line is not enough: some people post-process
  13283. # each Makefile.in and add a new line on top of each file to say so.
  13284. # Grep'ing the whole file is not good either: AIX grep has a line
  13285. # limit of 2048, but all sed's we know have understand at least 4000.
  13286. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  13287. dirpart=`$as_dirname -- "$mf" ||
  13288. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13289. X"$mf" : 'X\(//\)[^/]' \| \
  13290. X"$mf" : 'X\(//\)$' \| \
  13291. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  13292. $as_echo X"$mf" |
  13293. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13294. s//\1/
  13295. q
  13296. }
  13297. /^X\(\/\/\)[^/].*/{
  13298. s//\1/
  13299. q
  13300. }
  13301. /^X\(\/\/\)$/{
  13302. s//\1/
  13303. q
  13304. }
  13305. /^X\(\/\).*/{
  13306. s//\1/
  13307. q
  13308. }
  13309. s/.*/./; q'`
  13310. else
  13311. continue
  13312. fi
  13313. # Extract the definition of DEPDIR, am__include, and am__quote
  13314. # from the Makefile without running 'make'.
  13315. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  13316. test -z "$DEPDIR" && continue
  13317. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  13318. test -z "am__include" && continue
  13319. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  13320. # Find all dependency output files, they are included files with
  13321. # $(DEPDIR) in their names. We invoke sed twice because it is the
  13322. # simplest approach to changing $(DEPDIR) to its actual value in the
  13323. # expansion.
  13324. for file in `sed -n "
  13325. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  13326. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  13327. # Make sure the directory exists.
  13328. test -f "$dirpart/$file" && continue
  13329. fdir=`$as_dirname -- "$file" ||
  13330. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13331. X"$file" : 'X\(//\)[^/]' \| \
  13332. X"$file" : 'X\(//\)$' \| \
  13333. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  13334. $as_echo X"$file" |
  13335. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13336. s//\1/
  13337. q
  13338. }
  13339. /^X\(\/\/\)[^/].*/{
  13340. s//\1/
  13341. q
  13342. }
  13343. /^X\(\/\/\)$/{
  13344. s//\1/
  13345. q
  13346. }
  13347. /^X\(\/\).*/{
  13348. s//\1/
  13349. q
  13350. }
  13351. s/.*/./; q'`
  13352. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  13353. # echo "creating $dirpart/$file"
  13354. echo '# dummy' > "$dirpart/$file"
  13355. done
  13356. done
  13357. }
  13358. ;;
  13359. esac
  13360. done # for ac_tag
  13361. as_fn_exit 0
  13362. _ACEOF
  13363. ac_clean_files=$ac_clean_files_save
  13364. test $ac_write_fail = 0 ||
  13365. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  13366. # configure is writing to config.log, and then calls config.status.
  13367. # config.status does its own redirection, appending to config.log.
  13368. # Unfortunately, on DOS this fails, as config.log is still kept open
  13369. # by configure, so config.status won't be able to write to it; its
  13370. # output is simply discarded. So we exec the FD to /dev/null,
  13371. # effectively closing config.log, so it can be properly (re)opened and
  13372. # appended to by config.status. When coming back to configure, we
  13373. # need to make the FD available again.
  13374. if test "$no_create" != yes; then
  13375. ac_cs_success=:
  13376. ac_config_status_args=
  13377. test "$silent" = yes &&
  13378. ac_config_status_args="$ac_config_status_args --quiet"
  13379. exec 5>/dev/null
  13380. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  13381. exec 5>>config.log
  13382. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  13383. # would make configure fail if this is the last instruction.
  13384. $ac_cs_success || as_fn_exit 1
  13385. fi
  13386. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  13387. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  13388. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  13389. fi