configure 472 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for libpng 1.6.37.
  4. #
  5. # Report bugs to <png-mng-implement@lists.sourceforge.net>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test \$(( 1 + 1 )) = 2 || exit 1
  188. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  189. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  190. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  191. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  192. PATH=/empty FPATH=/empty; export PATH FPATH
  193. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  194. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  195. if (eval "$as_required") 2>/dev/null; then :
  196. as_have_required=yes
  197. else
  198. as_have_required=no
  199. fi
  200. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  201. else
  202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  203. as_found=false
  204. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  205. do
  206. IFS=$as_save_IFS
  207. test -z "$as_dir" && as_dir=.
  208. as_found=:
  209. case $as_dir in #(
  210. /*)
  211. for as_base in sh bash ksh sh5; do
  212. # Try only shells that exist, to save several forks.
  213. as_shell=$as_dir/$as_base
  214. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  215. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. CONFIG_SHELL=$as_shell as_have_required=yes
  217. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  218. break 2
  219. fi
  220. fi
  221. done;;
  222. esac
  223. as_found=false
  224. done
  225. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  226. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  227. CONFIG_SHELL=$SHELL as_have_required=yes
  228. fi; }
  229. IFS=$as_save_IFS
  230. if test "x$CONFIG_SHELL" != x; then :
  231. export CONFIG_SHELL
  232. # We cannot yet assume a decent shell, so we have to provide a
  233. # neutralization value for shells without unset; and this also
  234. # works around shells that cannot unset nonexistent variables.
  235. # Preserve -v and -x to the replacement shell.
  236. BASH_ENV=/dev/null
  237. ENV=/dev/null
  238. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  239. case $- in # ((((
  240. *v*x* | *x*v* ) as_opts=-vx ;;
  241. *v* ) as_opts=-v ;;
  242. *x* ) as_opts=-x ;;
  243. * ) as_opts= ;;
  244. esac
  245. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  246. # Admittedly, this is quite paranoid, since all the known shells bail
  247. # out after a failed `exec'.
  248. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  249. exit 255
  250. fi
  251. if test x$as_have_required = xno; then :
  252. $as_echo "$0: This script requires a shell more modern than all"
  253. $as_echo "$0: the shells that I found on your system."
  254. if test x${ZSH_VERSION+set} = xset ; then
  255. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  256. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  257. else
  258. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  259. $0: png-mng-implement@lists.sourceforge.net about your
  260. $0: system, including any error possibly output before this
  261. $0: message. Then install a modern shell, or manually run
  262. $0: the script under such a shell if you do have one."
  263. fi
  264. exit 1
  265. fi
  266. fi
  267. fi
  268. SHELL=${CONFIG_SHELL-/bin/sh}
  269. export SHELL
  270. # Unset more variables known to interfere with behavior of common tools.
  271. CLICOLOR_FORCE= GREP_OPTIONS=
  272. unset CLICOLOR_FORCE GREP_OPTIONS
  273. ## --------------------- ##
  274. ## M4sh Shell Functions. ##
  275. ## --------------------- ##
  276. # as_fn_unset VAR
  277. # ---------------
  278. # Portably unset VAR.
  279. as_fn_unset ()
  280. {
  281. { eval $1=; unset $1;}
  282. }
  283. as_unset=as_fn_unset
  284. # as_fn_set_status STATUS
  285. # -----------------------
  286. # Set $? to STATUS, without forking.
  287. as_fn_set_status ()
  288. {
  289. return $1
  290. } # as_fn_set_status
  291. # as_fn_exit STATUS
  292. # -----------------
  293. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  294. as_fn_exit ()
  295. {
  296. set +e
  297. as_fn_set_status $1
  298. exit $1
  299. } # as_fn_exit
  300. # as_fn_mkdir_p
  301. # -------------
  302. # Create "$as_dir" as a directory, including parents if necessary.
  303. as_fn_mkdir_p ()
  304. {
  305. case $as_dir in #(
  306. -*) as_dir=./$as_dir;;
  307. esac
  308. test -d "$as_dir" || eval $as_mkdir_p || {
  309. as_dirs=
  310. while :; do
  311. case $as_dir in #(
  312. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  313. *) as_qdir=$as_dir;;
  314. esac
  315. as_dirs="'$as_qdir' $as_dirs"
  316. as_dir=`$as_dirname -- "$as_dir" ||
  317. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  318. X"$as_dir" : 'X\(//\)[^/]' \| \
  319. X"$as_dir" : 'X\(//\)$' \| \
  320. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  321. $as_echo X"$as_dir" |
  322. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  323. s//\1/
  324. q
  325. }
  326. /^X\(\/\/\)[^/].*/{
  327. s//\1/
  328. q
  329. }
  330. /^X\(\/\/\)$/{
  331. s//\1/
  332. q
  333. }
  334. /^X\(\/\).*/{
  335. s//\1/
  336. q
  337. }
  338. s/.*/./; q'`
  339. test -d "$as_dir" && break
  340. done
  341. test -z "$as_dirs" || eval "mkdir $as_dirs"
  342. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  343. } # as_fn_mkdir_p
  344. # as_fn_executable_p FILE
  345. # -----------------------
  346. # Test if FILE is an executable regular file.
  347. as_fn_executable_p ()
  348. {
  349. test -f "$1" && test -x "$1"
  350. } # as_fn_executable_p
  351. # as_fn_append VAR VALUE
  352. # ----------------------
  353. # Append the text in VALUE to the end of the definition contained in VAR. Take
  354. # advantage of any shell optimizations that allow amortized linear growth over
  355. # repeated appends, instead of the typical quadratic growth present in naive
  356. # implementations.
  357. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  358. eval 'as_fn_append ()
  359. {
  360. eval $1+=\$2
  361. }'
  362. else
  363. as_fn_append ()
  364. {
  365. eval $1=\$$1\$2
  366. }
  367. fi # as_fn_append
  368. # as_fn_arith ARG...
  369. # ------------------
  370. # Perform arithmetic evaluation on the ARGs, and store the result in the
  371. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  372. # must be portable across $(()) and expr.
  373. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  374. eval 'as_fn_arith ()
  375. {
  376. as_val=$(( $* ))
  377. }'
  378. else
  379. as_fn_arith ()
  380. {
  381. as_val=`expr "$@" || test $? -eq 1`
  382. }
  383. fi # as_fn_arith
  384. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  385. # ----------------------------------------
  386. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  387. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  388. # script with STATUS, using 1 if that was 0.
  389. as_fn_error ()
  390. {
  391. as_status=$1; test $as_status -eq 0 && as_status=1
  392. if test "$4"; then
  393. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  394. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  395. fi
  396. $as_echo "$as_me: error: $2" >&2
  397. as_fn_exit $as_status
  398. } # as_fn_error
  399. if expr a : '\(a\)' >/dev/null 2>&1 &&
  400. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  401. as_expr=expr
  402. else
  403. as_expr=false
  404. fi
  405. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  406. as_basename=basename
  407. else
  408. as_basename=false
  409. fi
  410. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  411. as_dirname=dirname
  412. else
  413. as_dirname=false
  414. fi
  415. as_me=`$as_basename -- "$0" ||
  416. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  417. X"$0" : 'X\(//\)$' \| \
  418. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  419. $as_echo X/"$0" |
  420. sed '/^.*\/\([^/][^/]*\)\/*$/{
  421. s//\1/
  422. q
  423. }
  424. /^X\/\(\/\/\)$/{
  425. s//\1/
  426. q
  427. }
  428. /^X\/\(\/\).*/{
  429. s//\1/
  430. q
  431. }
  432. s/.*/./; q'`
  433. # Avoid depending upon Character Ranges.
  434. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  435. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  436. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  437. as_cr_digits='0123456789'
  438. as_cr_alnum=$as_cr_Letters$as_cr_digits
  439. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  440. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  441. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  442. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  443. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  444. sed -n '
  445. p
  446. /[$]LINENO/=
  447. ' <$as_myself |
  448. sed '
  449. s/[$]LINENO.*/&-/
  450. t lineno
  451. b
  452. :lineno
  453. N
  454. :loop
  455. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  456. t loop
  457. s/-\n.*//
  458. ' >$as_me.lineno &&
  459. chmod +x "$as_me.lineno" ||
  460. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  461. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  462. # already done that, so ensure we don't try to do so again and fall
  463. # in an infinite loop. This has already happened in practice.
  464. _as_can_reexec=no; export _as_can_reexec
  465. # Don't try to exec as it changes $[0], causing all sort of problems
  466. # (the dirname of $[0] is not the place where we might find the
  467. # original and so on. Autoconf is especially sensitive to this).
  468. . "./$as_me.lineno"
  469. # Exit status is that of the last command.
  470. exit
  471. }
  472. ECHO_C= ECHO_N= ECHO_T=
  473. case `echo -n x` in #(((((
  474. -n*)
  475. case `echo 'xy\c'` in
  476. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  477. xy) ECHO_C='\c';;
  478. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  479. ECHO_T=' ';;
  480. esac;;
  481. *)
  482. ECHO_N='-n';;
  483. esac
  484. rm -f conf$$ conf$$.exe conf$$.file
  485. if test -d conf$$.dir; then
  486. rm -f conf$$.dir/conf$$.file
  487. else
  488. rm -f conf$$.dir
  489. mkdir conf$$.dir 2>/dev/null
  490. fi
  491. if (echo >conf$$.file) 2>/dev/null; then
  492. if ln -s conf$$.file conf$$ 2>/dev/null; then
  493. as_ln_s='ln -s'
  494. # ... but there are two gotchas:
  495. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  496. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  497. # In both cases, we have to default to `cp -pR'.
  498. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  499. as_ln_s='cp -pR'
  500. elif ln conf$$.file conf$$ 2>/dev/null; then
  501. as_ln_s=ln
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. else
  506. as_ln_s='cp -pR'
  507. fi
  508. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  509. rmdir conf$$.dir 2>/dev/null
  510. if mkdir -p . 2>/dev/null; then
  511. as_mkdir_p='mkdir -p "$as_dir"'
  512. else
  513. test -d ./-p && rmdir ./-p
  514. as_mkdir_p=false
  515. fi
  516. as_test_x='test -x'
  517. as_executable_p=as_fn_executable_p
  518. # Sed expression to map a string onto a valid CPP name.
  519. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  520. # Sed expression to map a string onto a valid variable name.
  521. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  522. SHELL=${CONFIG_SHELL-/bin/sh}
  523. test -n "$DJDIR" || exec 7<&0 </dev/null
  524. exec 6>&1
  525. # Name of the host.
  526. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  527. # so uname gets run too.
  528. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  529. #
  530. # Initializations.
  531. #
  532. ac_default_prefix=/usr/local
  533. ac_clean_files=
  534. ac_config_libobj_dir=.
  535. LIBOBJS=
  536. cross_compiling=no
  537. subdirs=
  538. MFLAGS=
  539. MAKEFLAGS=
  540. # Identity of this package.
  541. PACKAGE_NAME='libpng'
  542. PACKAGE_TARNAME='libpng'
  543. PACKAGE_VERSION='1.6.37'
  544. PACKAGE_STRING='libpng 1.6.37'
  545. PACKAGE_BUGREPORT='png-mng-implement@lists.sourceforge.net'
  546. PACKAGE_URL=''
  547. ac_unique_file="pngget.c"
  548. # Factoring default headers for most tests.
  549. ac_includes_default="\
  550. #include <stdio.h>
  551. #ifdef HAVE_SYS_TYPES_H
  552. # include <sys/types.h>
  553. #endif
  554. #ifdef HAVE_SYS_STAT_H
  555. # include <sys/stat.h>
  556. #endif
  557. #ifdef STDC_HEADERS
  558. # include <stdlib.h>
  559. # include <stddef.h>
  560. #else
  561. # ifdef HAVE_STDLIB_H
  562. # include <stdlib.h>
  563. # endif
  564. #endif
  565. #ifdef HAVE_STRING_H
  566. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  567. # include <memory.h>
  568. # endif
  569. # include <string.h>
  570. #endif
  571. #ifdef HAVE_STRINGS_H
  572. # include <strings.h>
  573. #endif
  574. #ifdef HAVE_INTTYPES_H
  575. # include <inttypes.h>
  576. #endif
  577. #ifdef HAVE_STDINT_H
  578. # include <stdint.h>
  579. #endif
  580. #ifdef HAVE_UNISTD_H
  581. # include <unistd.h>
  582. #endif"
  583. ac_subst_vars='am__EXEEXT_FALSE
  584. am__EXEEXT_TRUE
  585. LTLIBOBJS
  586. PNG_POWERPC_VSX_FALSE
  587. PNG_POWERPC_VSX_TRUE
  588. PNG_INTEL_SSE_FALSE
  589. PNG_INTEL_SSE_TRUE
  590. PNG_MIPS_MSA_FALSE
  591. PNG_MIPS_MSA_TRUE
  592. PNG_ARM_NEON_FALSE
  593. PNG_ARM_NEON_TRUE
  594. DO_INSTALL_LIBPNG_CONFIG_FALSE
  595. DO_INSTALL_LIBPNG_CONFIG_TRUE
  596. DO_INSTALL_LIBPNG_PC_FALSE
  597. DO_INSTALL_LIBPNG_PC_TRUE
  598. DO_INSTALL_LINKS_FALSE
  599. DO_INSTALL_LINKS_TRUE
  600. DO_PNG_PREFIX_FALSE
  601. DO_PNG_PREFIX_TRUE
  602. PNG_PREFIX
  603. binconfigs
  604. pkgconfigdir
  605. PNGLIB_RELEASE
  606. PNGLIB_MINOR
  607. PNGLIB_MAJOR
  608. PNGLIB_VERSION
  609. SYMBOL_PREFIX
  610. HAVE_LD_VERSION_SCRIPT_FALSE
  611. HAVE_LD_VERSION_SCRIPT_TRUE
  612. HAVE_SOLARIS_LD_FALSE
  613. HAVE_SOLARIS_LD_TRUE
  614. HAVE_CLOCK_GETTIME_FALSE
  615. HAVE_CLOCK_GETTIME_TRUE
  616. LIBOBJS
  617. POW_LIB
  618. PNG_COPTS
  619. DFNCPP
  620. LT_SYS_LIBRARY_PATH
  621. OTOOL64
  622. OTOOL
  623. LIPO
  624. NMEDIT
  625. DSYMUTIL
  626. MANIFEST_TOOL
  627. RANLIB
  628. ac_ct_AR
  629. AR
  630. NM
  631. ac_ct_DUMPBIN
  632. DUMPBIN
  633. LIBTOOL
  634. OBJDUMP
  635. DLLTOOL
  636. AS
  637. LN_S
  638. CPP
  639. LD
  640. FGREP
  641. EGREP
  642. GREP
  643. SED
  644. host_os
  645. host_vendor
  646. host_cpu
  647. host
  648. build_os
  649. build_vendor
  650. build_cpu
  651. build
  652. am__fastdepCCAS_FALSE
  653. am__fastdepCCAS_TRUE
  654. CCASDEPMODE
  655. CCASFLAGS
  656. CCAS
  657. am__fastdepCC_FALSE
  658. am__fastdepCC_TRUE
  659. CCDEPMODE
  660. am__nodep
  661. AMDEPBACKSLASH
  662. AMDEP_FALSE
  663. AMDEP_TRUE
  664. am__include
  665. DEPDIR
  666. OBJEXT
  667. EXEEXT
  668. ac_ct_CC
  669. CPPFLAGS
  670. LDFLAGS
  671. CFLAGS
  672. CC
  673. MAINT
  674. MAINTAINER_MODE_FALSE
  675. MAINTAINER_MODE_TRUE
  676. AM_BACKSLASH
  677. AM_DEFAULT_VERBOSITY
  678. AM_DEFAULT_V
  679. AM_V
  680. am__untar
  681. am__tar
  682. AMTAR
  683. am__leading_dot
  684. SET_MAKE
  685. AWK
  686. mkdir_p
  687. MKDIR_P
  688. INSTALL_STRIP_PROGRAM
  689. STRIP
  690. install_sh
  691. MAKEINFO
  692. AUTOHEADER
  693. AUTOMAKE
  694. AUTOCONF
  695. ACLOCAL
  696. VERSION
  697. PACKAGE
  698. CYGPATH_W
  699. am__isrc
  700. INSTALL_DATA
  701. INSTALL_SCRIPT
  702. INSTALL_PROGRAM
  703. target_alias
  704. host_alias
  705. build_alias
  706. LIBS
  707. ECHO_T
  708. ECHO_N
  709. ECHO_C
  710. DEFS
  711. mandir
  712. localedir
  713. libdir
  714. psdir
  715. pdfdir
  716. dvidir
  717. htmldir
  718. infodir
  719. docdir
  720. oldincludedir
  721. includedir
  722. localstatedir
  723. sharedstatedir
  724. sysconfdir
  725. datadir
  726. datarootdir
  727. libexecdir
  728. sbindir
  729. bindir
  730. program_transform_name
  731. prefix
  732. exec_prefix
  733. PACKAGE_URL
  734. PACKAGE_BUGREPORT
  735. PACKAGE_STRING
  736. PACKAGE_VERSION
  737. PACKAGE_TARNAME
  738. PACKAGE_NAME
  739. PATH_SEPARATOR
  740. SHELL
  741. am__quote'
  742. ac_subst_files=''
  743. ac_user_opts='
  744. enable_option_checking
  745. enable_silent_rules
  746. enable_maintainer_mode
  747. enable_dependency_tracking
  748. with_gnu_ld
  749. enable_shared
  750. enable_static
  751. with_pic
  752. enable_fast_install
  753. with_aix_soname
  754. with_sysroot
  755. enable_libtool_lock
  756. enable_werror
  757. with_zlib_prefix
  758. with_pkgconfigdir
  759. with_binconfigs
  760. with_libpng_prefix
  761. enable_unversioned_links
  762. enable_unversioned_libpng_pc
  763. enable_unversioned_libpng_config
  764. enable_hardware_optimizations
  765. enable_arm_neon
  766. enable_mips_msa
  767. enable_intel_sse
  768. enable_powerpc_vsx
  769. '
  770. ac_precious_vars='build_alias
  771. host_alias
  772. target_alias
  773. CC
  774. CFLAGS
  775. LDFLAGS
  776. LIBS
  777. CPPFLAGS
  778. CCAS
  779. CCASFLAGS
  780. CPP
  781. LT_SYS_LIBRARY_PATH
  782. PNG_COPTS'
  783. # Initialize some variables set by options.
  784. ac_init_help=
  785. ac_init_version=false
  786. ac_unrecognized_opts=
  787. ac_unrecognized_sep=
  788. # The variables have the same names as the options, with
  789. # dashes changed to underlines.
  790. cache_file=/dev/null
  791. exec_prefix=NONE
  792. no_create=
  793. no_recursion=
  794. prefix=NONE
  795. program_prefix=NONE
  796. program_suffix=NONE
  797. program_transform_name=s,x,x,
  798. silent=
  799. site=
  800. srcdir=
  801. verbose=
  802. x_includes=NONE
  803. x_libraries=NONE
  804. # Installation directory options.
  805. # These are left unexpanded so users can "make install exec_prefix=/foo"
  806. # and all the variables that are supposed to be based on exec_prefix
  807. # by default will actually change.
  808. # Use braces instead of parens because sh, perl, etc. also accept them.
  809. # (The list follows the same order as the GNU Coding Standards.)
  810. bindir='${exec_prefix}/bin'
  811. sbindir='${exec_prefix}/sbin'
  812. libexecdir='${exec_prefix}/libexec'
  813. datarootdir='${prefix}/share'
  814. datadir='${datarootdir}'
  815. sysconfdir='${prefix}/etc'
  816. sharedstatedir='${prefix}/com'
  817. localstatedir='${prefix}/var'
  818. includedir='${prefix}/include'
  819. oldincludedir='/usr/include'
  820. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  821. infodir='${datarootdir}/info'
  822. htmldir='${docdir}'
  823. dvidir='${docdir}'
  824. pdfdir='${docdir}'
  825. psdir='${docdir}'
  826. libdir='${exec_prefix}/lib'
  827. localedir='${datarootdir}/locale'
  828. mandir='${datarootdir}/man'
  829. ac_prev=
  830. ac_dashdash=
  831. for ac_option
  832. do
  833. # If the previous option needs an argument, assign it.
  834. if test -n "$ac_prev"; then
  835. eval $ac_prev=\$ac_option
  836. ac_prev=
  837. continue
  838. fi
  839. case $ac_option in
  840. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  841. *=) ac_optarg= ;;
  842. *) ac_optarg=yes ;;
  843. esac
  844. # Accept the important Cygnus configure options, so we can diagnose typos.
  845. case $ac_dashdash$ac_option in
  846. --)
  847. ac_dashdash=yes ;;
  848. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  849. ac_prev=bindir ;;
  850. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  851. bindir=$ac_optarg ;;
  852. -build | --build | --buil | --bui | --bu)
  853. ac_prev=build_alias ;;
  854. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  855. build_alias=$ac_optarg ;;
  856. -cache-file | --cache-file | --cache-fil | --cache-fi \
  857. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  858. ac_prev=cache_file ;;
  859. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  860. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  861. cache_file=$ac_optarg ;;
  862. --config-cache | -C)
  863. cache_file=config.cache ;;
  864. -datadir | --datadir | --datadi | --datad)
  865. ac_prev=datadir ;;
  866. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  867. datadir=$ac_optarg ;;
  868. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  869. | --dataroo | --dataro | --datar)
  870. ac_prev=datarootdir ;;
  871. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  872. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  873. datarootdir=$ac_optarg ;;
  874. -disable-* | --disable-*)
  875. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  876. # Reject names that are not valid shell variable names.
  877. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  878. as_fn_error $? "invalid feature name: $ac_useropt"
  879. ac_useropt_orig=$ac_useropt
  880. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  881. case $ac_user_opts in
  882. *"
  883. "enable_$ac_useropt"
  884. "*) ;;
  885. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  886. ac_unrecognized_sep=', ';;
  887. esac
  888. eval enable_$ac_useropt=no ;;
  889. -docdir | --docdir | --docdi | --doc | --do)
  890. ac_prev=docdir ;;
  891. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  892. docdir=$ac_optarg ;;
  893. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  894. ac_prev=dvidir ;;
  895. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  896. dvidir=$ac_optarg ;;
  897. -enable-* | --enable-*)
  898. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  899. # Reject names that are not valid shell variable names.
  900. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  901. as_fn_error $? "invalid feature name: $ac_useropt"
  902. ac_useropt_orig=$ac_useropt
  903. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  904. case $ac_user_opts in
  905. *"
  906. "enable_$ac_useropt"
  907. "*) ;;
  908. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  909. ac_unrecognized_sep=', ';;
  910. esac
  911. eval enable_$ac_useropt=\$ac_optarg ;;
  912. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  913. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  914. | --exec | --exe | --ex)
  915. ac_prev=exec_prefix ;;
  916. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  917. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  918. | --exec=* | --exe=* | --ex=*)
  919. exec_prefix=$ac_optarg ;;
  920. -gas | --gas | --ga | --g)
  921. # Obsolete; use --with-gas.
  922. with_gas=yes ;;
  923. -help | --help | --hel | --he | -h)
  924. ac_init_help=long ;;
  925. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  926. ac_init_help=recursive ;;
  927. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  928. ac_init_help=short ;;
  929. -host | --host | --hos | --ho)
  930. ac_prev=host_alias ;;
  931. -host=* | --host=* | --hos=* | --ho=*)
  932. host_alias=$ac_optarg ;;
  933. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  934. ac_prev=htmldir ;;
  935. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  936. | --ht=*)
  937. htmldir=$ac_optarg ;;
  938. -includedir | --includedir | --includedi | --included | --include \
  939. | --includ | --inclu | --incl | --inc)
  940. ac_prev=includedir ;;
  941. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  942. | --includ=* | --inclu=* | --incl=* | --inc=*)
  943. includedir=$ac_optarg ;;
  944. -infodir | --infodir | --infodi | --infod | --info | --inf)
  945. ac_prev=infodir ;;
  946. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  947. infodir=$ac_optarg ;;
  948. -libdir | --libdir | --libdi | --libd)
  949. ac_prev=libdir ;;
  950. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  951. libdir=$ac_optarg ;;
  952. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  953. | --libexe | --libex | --libe)
  954. ac_prev=libexecdir ;;
  955. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  956. | --libexe=* | --libex=* | --libe=*)
  957. libexecdir=$ac_optarg ;;
  958. -localedir | --localedir | --localedi | --localed | --locale)
  959. ac_prev=localedir ;;
  960. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  961. localedir=$ac_optarg ;;
  962. -localstatedir | --localstatedir | --localstatedi | --localstated \
  963. | --localstate | --localstat | --localsta | --localst | --locals)
  964. ac_prev=localstatedir ;;
  965. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  966. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  967. localstatedir=$ac_optarg ;;
  968. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  969. ac_prev=mandir ;;
  970. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  971. mandir=$ac_optarg ;;
  972. -nfp | --nfp | --nf)
  973. # Obsolete; use --without-fp.
  974. with_fp=no ;;
  975. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  976. | --no-cr | --no-c | -n)
  977. no_create=yes ;;
  978. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  979. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  980. no_recursion=yes ;;
  981. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  982. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  983. | --oldin | --oldi | --old | --ol | --o)
  984. ac_prev=oldincludedir ;;
  985. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  986. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  987. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  988. oldincludedir=$ac_optarg ;;
  989. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  990. ac_prev=prefix ;;
  991. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  992. prefix=$ac_optarg ;;
  993. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  994. | --program-pre | --program-pr | --program-p)
  995. ac_prev=program_prefix ;;
  996. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  997. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  998. program_prefix=$ac_optarg ;;
  999. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1000. | --program-suf | --program-su | --program-s)
  1001. ac_prev=program_suffix ;;
  1002. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1003. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1004. program_suffix=$ac_optarg ;;
  1005. -program-transform-name | --program-transform-name \
  1006. | --program-transform-nam | --program-transform-na \
  1007. | --program-transform-n | --program-transform- \
  1008. | --program-transform | --program-transfor \
  1009. | --program-transfo | --program-transf \
  1010. | --program-trans | --program-tran \
  1011. | --progr-tra | --program-tr | --program-t)
  1012. ac_prev=program_transform_name ;;
  1013. -program-transform-name=* | --program-transform-name=* \
  1014. | --program-transform-nam=* | --program-transform-na=* \
  1015. | --program-transform-n=* | --program-transform-=* \
  1016. | --program-transform=* | --program-transfor=* \
  1017. | --program-transfo=* | --program-transf=* \
  1018. | --program-trans=* | --program-tran=* \
  1019. | --progr-tra=* | --program-tr=* | --program-t=*)
  1020. program_transform_name=$ac_optarg ;;
  1021. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1022. ac_prev=pdfdir ;;
  1023. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1024. pdfdir=$ac_optarg ;;
  1025. -psdir | --psdir | --psdi | --psd | --ps)
  1026. ac_prev=psdir ;;
  1027. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1028. psdir=$ac_optarg ;;
  1029. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1030. | -silent | --silent | --silen | --sile | --sil)
  1031. silent=yes ;;
  1032. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1033. ac_prev=sbindir ;;
  1034. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1035. | --sbi=* | --sb=*)
  1036. sbindir=$ac_optarg ;;
  1037. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1038. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1039. | --sharedst | --shareds | --shared | --share | --shar \
  1040. | --sha | --sh)
  1041. ac_prev=sharedstatedir ;;
  1042. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1043. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1044. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1045. | --sha=* | --sh=*)
  1046. sharedstatedir=$ac_optarg ;;
  1047. -site | --site | --sit)
  1048. ac_prev=site ;;
  1049. -site=* | --site=* | --sit=*)
  1050. site=$ac_optarg ;;
  1051. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1052. ac_prev=srcdir ;;
  1053. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1054. srcdir=$ac_optarg ;;
  1055. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1056. | --syscon | --sysco | --sysc | --sys | --sy)
  1057. ac_prev=sysconfdir ;;
  1058. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1059. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1060. sysconfdir=$ac_optarg ;;
  1061. -target | --target | --targe | --targ | --tar | --ta | --t)
  1062. ac_prev=target_alias ;;
  1063. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1064. target_alias=$ac_optarg ;;
  1065. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1066. verbose=yes ;;
  1067. -version | --version | --versio | --versi | --vers | -V)
  1068. ac_init_version=: ;;
  1069. -with-* | --with-*)
  1070. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1071. # Reject names that are not valid shell variable names.
  1072. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1073. as_fn_error $? "invalid package name: $ac_useropt"
  1074. ac_useropt_orig=$ac_useropt
  1075. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1076. case $ac_user_opts in
  1077. *"
  1078. "with_$ac_useropt"
  1079. "*) ;;
  1080. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1081. ac_unrecognized_sep=', ';;
  1082. esac
  1083. eval with_$ac_useropt=\$ac_optarg ;;
  1084. -without-* | --without-*)
  1085. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1086. # Reject names that are not valid shell variable names.
  1087. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1088. as_fn_error $? "invalid package name: $ac_useropt"
  1089. ac_useropt_orig=$ac_useropt
  1090. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1091. case $ac_user_opts in
  1092. *"
  1093. "with_$ac_useropt"
  1094. "*) ;;
  1095. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1096. ac_unrecognized_sep=', ';;
  1097. esac
  1098. eval with_$ac_useropt=no ;;
  1099. --x)
  1100. # Obsolete; use --with-x.
  1101. with_x=yes ;;
  1102. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1103. | --x-incl | --x-inc | --x-in | --x-i)
  1104. ac_prev=x_includes ;;
  1105. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1106. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1107. x_includes=$ac_optarg ;;
  1108. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1109. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1110. ac_prev=x_libraries ;;
  1111. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1112. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1113. x_libraries=$ac_optarg ;;
  1114. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1115. Try \`$0 --help' for more information"
  1116. ;;
  1117. *=*)
  1118. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1119. # Reject names that are not valid shell variable names.
  1120. case $ac_envvar in #(
  1121. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1122. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1123. esac
  1124. eval $ac_envvar=\$ac_optarg
  1125. export $ac_envvar ;;
  1126. *)
  1127. # FIXME: should be removed in autoconf 3.0.
  1128. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1129. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1130. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1131. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1132. ;;
  1133. esac
  1134. done
  1135. if test -n "$ac_prev"; then
  1136. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1137. as_fn_error $? "missing argument to $ac_option"
  1138. fi
  1139. if test -n "$ac_unrecognized_opts"; then
  1140. case $enable_option_checking in
  1141. no) ;;
  1142. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1143. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1144. esac
  1145. fi
  1146. # Check all directory arguments for consistency.
  1147. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1148. datadir sysconfdir sharedstatedir localstatedir includedir \
  1149. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1150. libdir localedir mandir
  1151. do
  1152. eval ac_val=\$$ac_var
  1153. # Remove trailing slashes.
  1154. case $ac_val in
  1155. */ )
  1156. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1157. eval $ac_var=\$ac_val;;
  1158. esac
  1159. # Be sure to have absolute directory names.
  1160. case $ac_val in
  1161. [\\/$]* | ?:[\\/]* ) continue;;
  1162. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1163. esac
  1164. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1165. done
  1166. # There might be people who depend on the old broken behavior: `$host'
  1167. # used to hold the argument of --host etc.
  1168. # FIXME: To remove some day.
  1169. build=$build_alias
  1170. host=$host_alias
  1171. target=$target_alias
  1172. # FIXME: To remove some day.
  1173. if test "x$host_alias" != x; then
  1174. if test "x$build_alias" = x; then
  1175. cross_compiling=maybe
  1176. elif test "x$build_alias" != "x$host_alias"; then
  1177. cross_compiling=yes
  1178. fi
  1179. fi
  1180. ac_tool_prefix=
  1181. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1182. test "$silent" = yes && exec 6>/dev/null
  1183. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1184. ac_ls_di=`ls -di .` &&
  1185. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1186. as_fn_error $? "working directory cannot be determined"
  1187. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1188. as_fn_error $? "pwd does not report name of working directory"
  1189. # Find the source files, if location was not specified.
  1190. if test -z "$srcdir"; then
  1191. ac_srcdir_defaulted=yes
  1192. # Try the directory containing this script, then the parent directory.
  1193. ac_confdir=`$as_dirname -- "$as_myself" ||
  1194. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1195. X"$as_myself" : 'X\(//\)[^/]' \| \
  1196. X"$as_myself" : 'X\(//\)$' \| \
  1197. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1198. $as_echo X"$as_myself" |
  1199. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1200. s//\1/
  1201. q
  1202. }
  1203. /^X\(\/\/\)[^/].*/{
  1204. s//\1/
  1205. q
  1206. }
  1207. /^X\(\/\/\)$/{
  1208. s//\1/
  1209. q
  1210. }
  1211. /^X\(\/\).*/{
  1212. s//\1/
  1213. q
  1214. }
  1215. s/.*/./; q'`
  1216. srcdir=$ac_confdir
  1217. if test ! -r "$srcdir/$ac_unique_file"; then
  1218. srcdir=..
  1219. fi
  1220. else
  1221. ac_srcdir_defaulted=no
  1222. fi
  1223. if test ! -r "$srcdir/$ac_unique_file"; then
  1224. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1225. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1226. fi
  1227. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1228. ac_abs_confdir=`(
  1229. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1230. pwd)`
  1231. # When building in place, set srcdir=.
  1232. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1233. srcdir=.
  1234. fi
  1235. # Remove unnecessary trailing slashes from srcdir.
  1236. # Double slashes in file names in object file debugging info
  1237. # mess up M-x gdb in Emacs.
  1238. case $srcdir in
  1239. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1240. esac
  1241. for ac_var in $ac_precious_vars; do
  1242. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1243. eval ac_env_${ac_var}_value=\$${ac_var}
  1244. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1245. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1246. done
  1247. #
  1248. # Report the --help message.
  1249. #
  1250. if test "$ac_init_help" = "long"; then
  1251. # Omit some internal or obsolete options to make the list less imposing.
  1252. # This message is too long to be a string in the A/UX 3.1 sh.
  1253. cat <<_ACEOF
  1254. \`configure' configures libpng 1.6.37 to adapt to many kinds of systems.
  1255. Usage: $0 [OPTION]... [VAR=VALUE]...
  1256. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1257. VAR=VALUE. See below for descriptions of some of the useful variables.
  1258. Defaults for the options are specified in brackets.
  1259. Configuration:
  1260. -h, --help display this help and exit
  1261. --help=short display options specific to this package
  1262. --help=recursive display the short help of all the included packages
  1263. -V, --version display version information and exit
  1264. -q, --quiet, --silent do not print \`checking ...' messages
  1265. --cache-file=FILE cache test results in FILE [disabled]
  1266. -C, --config-cache alias for \`--cache-file=config.cache'
  1267. -n, --no-create do not create output files
  1268. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1269. Installation directories:
  1270. --prefix=PREFIX install architecture-independent files in PREFIX
  1271. [$ac_default_prefix]
  1272. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1273. [PREFIX]
  1274. By default, \`make install' will install all the files in
  1275. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1276. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1277. for instance \`--prefix=\$HOME'.
  1278. For better control, use the options below.
  1279. Fine tuning of the installation directories:
  1280. --bindir=DIR user executables [EPREFIX/bin]
  1281. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1282. --libexecdir=DIR program executables [EPREFIX/libexec]
  1283. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1284. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1285. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1286. --libdir=DIR object code libraries [EPREFIX/lib]
  1287. --includedir=DIR C header files [PREFIX/include]
  1288. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1289. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1290. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1291. --infodir=DIR info documentation [DATAROOTDIR/info]
  1292. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1293. --mandir=DIR man documentation [DATAROOTDIR/man]
  1294. --docdir=DIR documentation root [DATAROOTDIR/doc/libpng]
  1295. --htmldir=DIR html documentation [DOCDIR]
  1296. --dvidir=DIR dvi documentation [DOCDIR]
  1297. --pdfdir=DIR pdf documentation [DOCDIR]
  1298. --psdir=DIR ps documentation [DOCDIR]
  1299. _ACEOF
  1300. cat <<\_ACEOF
  1301. Program names:
  1302. --program-prefix=PREFIX prepend PREFIX to installed program names
  1303. --program-suffix=SUFFIX append SUFFIX to installed program names
  1304. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1305. System types:
  1306. --build=BUILD configure for building on BUILD [guessed]
  1307. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1308. _ACEOF
  1309. fi
  1310. if test -n "$ac_init_help"; then
  1311. case $ac_init_help in
  1312. short | recursive ) echo "Configuration of libpng 1.6.37:";;
  1313. esac
  1314. cat <<\_ACEOF
  1315. Optional Features:
  1316. --disable-option-checking ignore unrecognized --enable/--with options
  1317. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1318. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1319. --enable-silent-rules less verbose build output (undo: "make V=1")
  1320. --disable-silent-rules verbose build output (undo: "make V=0")
  1321. --enable-maintainer-mode
  1322. enable make rules and dependencies not useful (and
  1323. sometimes confusing) to the casual installer
  1324. --enable-dependency-tracking
  1325. do not reject slow dependency extractors
  1326. --disable-dependency-tracking
  1327. speeds up one-time build
  1328. --enable-shared[=PKGS] build shared libraries [default=yes]
  1329. --enable-static[=PKGS] build static libraries [default=yes]
  1330. --enable-fast-install[=PKGS]
  1331. optimize for fast installation [default=yes]
  1332. --disable-libtool-lock avoid locking (might break parallel builds)
  1333. --enable-werror[=OPT] Pass -Werror or the given argument to the compiler
  1334. if it is supported
  1335. --enable-unversioned-links
  1336. Installed libpng header files are placed in a
  1337. versioned subdirectory and installed libpng library
  1338. (including DLL) files are versioned. If this option
  1339. is enabled unversioned links will be created
  1340. pointing to the corresponding installed files. If
  1341. you use libpng.pc or libpng-config for all builds
  1342. you do not need these links, but if you compile
  1343. programs directly they will typically #include
  1344. <png.h> and link with -lpng; in that case you need
  1345. the links. The links can be installed manually using
  1346. 'make install-header-links' and 'make
  1347. install-library-links' and can be removed using the
  1348. corresponding uninstall- targets. If you do enable
  1349. this option every libpng 'make install' will
  1350. recreate the links to point to the just installed
  1351. version of libpng. The default is to create the
  1352. links; use --disable-unversioned-links to change
  1353. this
  1354. --enable-unversioned-libpng-pc
  1355. Install the configuration file 'libpng.pc' as a link
  1356. to the versioned version. This is done by default -
  1357. use --disable-unversioned-libpng-pc to change this.
  1358. --enable-unversioned-libpng-config
  1359. Install the configuration file 'libpng-config' as a
  1360. link to the versioned version. This is done by
  1361. default - use --disable-unversioned-libpng-config to
  1362. change this.
  1363. --enable-hardware-optimizations
  1364. Enable hardware optimizations: =no/off, yes/on:
  1365. --enable-arm-neon Enable ARM NEON optimizations: =no/off, check, api,
  1366. yes/on: no/off: disable the optimizations; check:
  1367. use internal checking code (deprecated and poorly
  1368. supported); api: disable by default, enable by a
  1369. call to png_set_option; yes/on: turn on
  1370. unconditionally. If not specified: determined by the
  1371. compiler.
  1372. --enable-mips-msa Enable MIPS MSA optimizations: =no/off, check, api,
  1373. yes/on: no/off: disable the optimizations; check:
  1374. use internal checking code (deprecated and poorly
  1375. supported); api: disable by default, enable by a
  1376. call to png_set_option; yes/on: turn on
  1377. unconditionally. If not specified: determined by the
  1378. compiler.
  1379. --enable-intel-sse Enable Intel SSE optimizations: =no/off, yes/on:
  1380. no/off: disable the optimizations; yes/on: enable
  1381. the optimizations. If not specified: determined by
  1382. the compiler.
  1383. --enable-powerpc-vsx Enable POWERPC VSX optimizations: =no/off, check,
  1384. api, yes/on: no/off: disable the optimizations;
  1385. check: use internal checking code api: disable by
  1386. default, enable by a call to png_set_option yes/on:
  1387. turn on unconditionally. If not specified:
  1388. determined by the compiler.
  1389. Optional Packages:
  1390. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1391. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1392. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1393. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1394. both]
  1395. --with-aix-soname=aix|svr4|both
  1396. shared library versioning (aka "SONAME") variant to
  1397. provide on AIX, [default=aix].
  1398. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1399. compiler's sysroot if not specified).
  1400. --with-zlib-prefix prefix that may have been used in installed zlib
  1401. --with-pkgconfigdir Use the specified pkgconfig dir (default is
  1402. libdir/pkgconfig)
  1403. --with-binconfigs Generate shell libpng-config scripts as well as
  1404. pkg-config data [default=yes]
  1405. --with-libpng-prefix prefix libpng exported function (API) names with the
  1406. given value
  1407. Some influential environment variables:
  1408. CC C compiler command
  1409. CFLAGS C compiler flags
  1410. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1411. nonstandard directory <lib dir>
  1412. LIBS libraries to pass to the linker, e.g. -l<library>
  1413. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1414. you have headers in a nonstandard directory <include dir>
  1415. CCAS assembler compiler command (defaults to CC)
  1416. CCASFLAGS assembler compiler flags (defaults to CFLAGS)
  1417. CPP C preprocessor
  1418. LT_SYS_LIBRARY_PATH
  1419. User-defined run-time library search path.
  1420. PNG_COPTS additional flags for the C compiler, use this for options that
  1421. would cause configure itself to fail
  1422. Use these variables to override the choices made by `configure' or to help
  1423. it to find libraries and programs with nonstandard names/locations.
  1424. Report bugs to <png-mng-implement@lists.sourceforge.net>.
  1425. _ACEOF
  1426. ac_status=$?
  1427. fi
  1428. if test "$ac_init_help" = "recursive"; then
  1429. # If there are subdirs, report their specific --help.
  1430. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1431. test -d "$ac_dir" ||
  1432. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1433. continue
  1434. ac_builddir=.
  1435. case "$ac_dir" in
  1436. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1437. *)
  1438. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1439. # A ".." for each directory in $ac_dir_suffix.
  1440. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1441. case $ac_top_builddir_sub in
  1442. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1443. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1444. esac ;;
  1445. esac
  1446. ac_abs_top_builddir=$ac_pwd
  1447. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1448. # for backward compatibility:
  1449. ac_top_builddir=$ac_top_build_prefix
  1450. case $srcdir in
  1451. .) # We are building in place.
  1452. ac_srcdir=.
  1453. ac_top_srcdir=$ac_top_builddir_sub
  1454. ac_abs_top_srcdir=$ac_pwd ;;
  1455. [\\/]* | ?:[\\/]* ) # Absolute name.
  1456. ac_srcdir=$srcdir$ac_dir_suffix;
  1457. ac_top_srcdir=$srcdir
  1458. ac_abs_top_srcdir=$srcdir ;;
  1459. *) # Relative name.
  1460. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1461. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1462. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1463. esac
  1464. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1465. cd "$ac_dir" || { ac_status=$?; continue; }
  1466. # Check for guested configure.
  1467. if test -f "$ac_srcdir/configure.gnu"; then
  1468. echo &&
  1469. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1470. elif test -f "$ac_srcdir/configure"; then
  1471. echo &&
  1472. $SHELL "$ac_srcdir/configure" --help=recursive
  1473. else
  1474. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1475. fi || ac_status=$?
  1476. cd "$ac_pwd" || { ac_status=$?; break; }
  1477. done
  1478. fi
  1479. test -n "$ac_init_help" && exit $ac_status
  1480. if $ac_init_version; then
  1481. cat <<\_ACEOF
  1482. libpng configure 1.6.37
  1483. generated by GNU Autoconf 2.69
  1484. Copyright (C) 2012 Free Software Foundation, Inc.
  1485. This configure script is free software; the Free Software Foundation
  1486. gives unlimited permission to copy, distribute and modify it.
  1487. _ACEOF
  1488. exit
  1489. fi
  1490. ## ------------------------ ##
  1491. ## Autoconf initialization. ##
  1492. ## ------------------------ ##
  1493. # ac_fn_c_try_compile LINENO
  1494. # --------------------------
  1495. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1496. ac_fn_c_try_compile ()
  1497. {
  1498. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1499. rm -f conftest.$ac_objext
  1500. if { { ac_try="$ac_compile"
  1501. case "(($ac_try" in
  1502. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1503. *) ac_try_echo=$ac_try;;
  1504. esac
  1505. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1506. $as_echo "$ac_try_echo"; } >&5
  1507. (eval "$ac_compile") 2>conftest.err
  1508. ac_status=$?
  1509. if test -s conftest.err; then
  1510. grep -v '^ *+' conftest.err >conftest.er1
  1511. cat conftest.er1 >&5
  1512. mv -f conftest.er1 conftest.err
  1513. fi
  1514. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1515. test $ac_status = 0; } && {
  1516. test -z "$ac_c_werror_flag" ||
  1517. test ! -s conftest.err
  1518. } && test -s conftest.$ac_objext; then :
  1519. ac_retval=0
  1520. else
  1521. $as_echo "$as_me: failed program was:" >&5
  1522. sed 's/^/| /' conftest.$ac_ext >&5
  1523. ac_retval=1
  1524. fi
  1525. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1526. as_fn_set_status $ac_retval
  1527. } # ac_fn_c_try_compile
  1528. # ac_fn_c_try_cpp LINENO
  1529. # ----------------------
  1530. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1531. ac_fn_c_try_cpp ()
  1532. {
  1533. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1534. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1535. case "(($ac_try" in
  1536. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1537. *) ac_try_echo=$ac_try;;
  1538. esac
  1539. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1540. $as_echo "$ac_try_echo"; } >&5
  1541. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1542. ac_status=$?
  1543. if test -s conftest.err; then
  1544. grep -v '^ *+' conftest.err >conftest.er1
  1545. cat conftest.er1 >&5
  1546. mv -f conftest.er1 conftest.err
  1547. fi
  1548. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1549. test $ac_status = 0; } > conftest.i && {
  1550. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1551. test ! -s conftest.err
  1552. }; then :
  1553. ac_retval=0
  1554. else
  1555. $as_echo "$as_me: failed program was:" >&5
  1556. sed 's/^/| /' conftest.$ac_ext >&5
  1557. ac_retval=1
  1558. fi
  1559. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1560. as_fn_set_status $ac_retval
  1561. } # ac_fn_c_try_cpp
  1562. # ac_fn_c_try_link LINENO
  1563. # -----------------------
  1564. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1565. ac_fn_c_try_link ()
  1566. {
  1567. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1568. rm -f conftest.$ac_objext conftest$ac_exeext
  1569. if { { ac_try="$ac_link"
  1570. case "(($ac_try" in
  1571. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1572. *) ac_try_echo=$ac_try;;
  1573. esac
  1574. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1575. $as_echo "$ac_try_echo"; } >&5
  1576. (eval "$ac_link") 2>conftest.err
  1577. ac_status=$?
  1578. if test -s conftest.err; then
  1579. grep -v '^ *+' conftest.err >conftest.er1
  1580. cat conftest.er1 >&5
  1581. mv -f conftest.er1 conftest.err
  1582. fi
  1583. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1584. test $ac_status = 0; } && {
  1585. test -z "$ac_c_werror_flag" ||
  1586. test ! -s conftest.err
  1587. } && test -s conftest$ac_exeext && {
  1588. test "$cross_compiling" = yes ||
  1589. test -x conftest$ac_exeext
  1590. }; then :
  1591. ac_retval=0
  1592. else
  1593. $as_echo "$as_me: failed program was:" >&5
  1594. sed 's/^/| /' conftest.$ac_ext >&5
  1595. ac_retval=1
  1596. fi
  1597. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1598. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1599. # interfere with the next link command; also delete a directory that is
  1600. # left behind by Apple's compiler. We do this before executing the actions.
  1601. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1602. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1603. as_fn_set_status $ac_retval
  1604. } # ac_fn_c_try_link
  1605. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1606. # -------------------------------------------------------
  1607. # Tests whether HEADER exists and can be compiled using the include files in
  1608. # INCLUDES, setting the cache variable VAR accordingly.
  1609. ac_fn_c_check_header_compile ()
  1610. {
  1611. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1613. $as_echo_n "checking for $2... " >&6; }
  1614. if eval \${$3+:} false; then :
  1615. $as_echo_n "(cached) " >&6
  1616. else
  1617. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1618. /* end confdefs.h. */
  1619. $4
  1620. #include <$2>
  1621. _ACEOF
  1622. if ac_fn_c_try_compile "$LINENO"; then :
  1623. eval "$3=yes"
  1624. else
  1625. eval "$3=no"
  1626. fi
  1627. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1628. fi
  1629. eval ac_res=\$$3
  1630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1631. $as_echo "$ac_res" >&6; }
  1632. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1633. } # ac_fn_c_check_header_compile
  1634. # ac_fn_c_try_run LINENO
  1635. # ----------------------
  1636. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1637. # that executables *can* be run.
  1638. ac_fn_c_try_run ()
  1639. {
  1640. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1641. if { { ac_try="$ac_link"
  1642. case "(($ac_try" in
  1643. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1644. *) ac_try_echo=$ac_try;;
  1645. esac
  1646. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1647. $as_echo "$ac_try_echo"; } >&5
  1648. (eval "$ac_link") 2>&5
  1649. ac_status=$?
  1650. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1651. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1652. { { case "(($ac_try" in
  1653. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1654. *) ac_try_echo=$ac_try;;
  1655. esac
  1656. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1657. $as_echo "$ac_try_echo"; } >&5
  1658. (eval "$ac_try") 2>&5
  1659. ac_status=$?
  1660. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1661. test $ac_status = 0; }; }; then :
  1662. ac_retval=0
  1663. else
  1664. $as_echo "$as_me: program exited with status $ac_status" >&5
  1665. $as_echo "$as_me: failed program was:" >&5
  1666. sed 's/^/| /' conftest.$ac_ext >&5
  1667. ac_retval=$ac_status
  1668. fi
  1669. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1670. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1671. as_fn_set_status $ac_retval
  1672. } # ac_fn_c_try_run
  1673. # ac_fn_c_check_func LINENO FUNC VAR
  1674. # ----------------------------------
  1675. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1676. ac_fn_c_check_func ()
  1677. {
  1678. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1680. $as_echo_n "checking for $2... " >&6; }
  1681. if eval \${$3+:} false; then :
  1682. $as_echo_n "(cached) " >&6
  1683. else
  1684. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1685. /* end confdefs.h. */
  1686. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1687. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1688. #define $2 innocuous_$2
  1689. /* System header to define __stub macros and hopefully few prototypes,
  1690. which can conflict with char $2 (); below.
  1691. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1692. <limits.h> exists even on freestanding compilers. */
  1693. #ifdef __STDC__
  1694. # include <limits.h>
  1695. #else
  1696. # include <assert.h>
  1697. #endif
  1698. #undef $2
  1699. /* Override any GCC internal prototype to avoid an error.
  1700. Use char because int might match the return type of a GCC
  1701. builtin and then its argument prototype would still apply. */
  1702. #ifdef __cplusplus
  1703. extern "C"
  1704. #endif
  1705. char $2 ();
  1706. /* The GNU C library defines this for functions which it implements
  1707. to always fail with ENOSYS. Some functions are actually named
  1708. something starting with __ and the normal name is an alias. */
  1709. #if defined __stub_$2 || defined __stub___$2
  1710. choke me
  1711. #endif
  1712. int
  1713. main ()
  1714. {
  1715. return $2 ();
  1716. ;
  1717. return 0;
  1718. }
  1719. _ACEOF
  1720. if ac_fn_c_try_link "$LINENO"; then :
  1721. eval "$3=yes"
  1722. else
  1723. eval "$3=no"
  1724. fi
  1725. rm -f core conftest.err conftest.$ac_objext \
  1726. conftest$ac_exeext conftest.$ac_ext
  1727. fi
  1728. eval ac_res=\$$3
  1729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1730. $as_echo "$ac_res" >&6; }
  1731. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1732. } # ac_fn_c_check_func
  1733. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1734. # -------------------------------------------
  1735. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1736. # variable VAR accordingly.
  1737. ac_fn_c_check_type ()
  1738. {
  1739. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1741. $as_echo_n "checking for $2... " >&6; }
  1742. if eval \${$3+:} false; then :
  1743. $as_echo_n "(cached) " >&6
  1744. else
  1745. eval "$3=no"
  1746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1747. /* end confdefs.h. */
  1748. $4
  1749. int
  1750. main ()
  1751. {
  1752. if (sizeof ($2))
  1753. return 0;
  1754. ;
  1755. return 0;
  1756. }
  1757. _ACEOF
  1758. if ac_fn_c_try_compile "$LINENO"; then :
  1759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1760. /* end confdefs.h. */
  1761. $4
  1762. int
  1763. main ()
  1764. {
  1765. if (sizeof (($2)))
  1766. return 0;
  1767. ;
  1768. return 0;
  1769. }
  1770. _ACEOF
  1771. if ac_fn_c_try_compile "$LINENO"; then :
  1772. else
  1773. eval "$3=yes"
  1774. fi
  1775. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1776. fi
  1777. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1778. fi
  1779. eval ac_res=\$$3
  1780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1781. $as_echo "$ac_res" >&6; }
  1782. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1783. } # ac_fn_c_check_type
  1784. cat >config.log <<_ACEOF
  1785. This file contains any messages produced by compilers while
  1786. running configure, to aid debugging if configure makes a mistake.
  1787. It was created by libpng $as_me 1.6.37, which was
  1788. generated by GNU Autoconf 2.69. Invocation command line was
  1789. $ $0 $@
  1790. _ACEOF
  1791. exec 5>>config.log
  1792. {
  1793. cat <<_ASUNAME
  1794. ## --------- ##
  1795. ## Platform. ##
  1796. ## --------- ##
  1797. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1798. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1799. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1800. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1801. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1802. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1803. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1804. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1805. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1806. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1807. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1808. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1809. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1810. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1811. _ASUNAME
  1812. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1813. for as_dir in $PATH
  1814. do
  1815. IFS=$as_save_IFS
  1816. test -z "$as_dir" && as_dir=.
  1817. $as_echo "PATH: $as_dir"
  1818. done
  1819. IFS=$as_save_IFS
  1820. } >&5
  1821. cat >&5 <<_ACEOF
  1822. ## ----------- ##
  1823. ## Core tests. ##
  1824. ## ----------- ##
  1825. _ACEOF
  1826. # Keep a trace of the command line.
  1827. # Strip out --no-create and --no-recursion so they do not pile up.
  1828. # Strip out --silent because we don't want to record it for future runs.
  1829. # Also quote any args containing shell meta-characters.
  1830. # Make two passes to allow for proper duplicate-argument suppression.
  1831. ac_configure_args=
  1832. ac_configure_args0=
  1833. ac_configure_args1=
  1834. ac_must_keep_next=false
  1835. for ac_pass in 1 2
  1836. do
  1837. for ac_arg
  1838. do
  1839. case $ac_arg in
  1840. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1841. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1842. | -silent | --silent | --silen | --sile | --sil)
  1843. continue ;;
  1844. *\'*)
  1845. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1846. esac
  1847. case $ac_pass in
  1848. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1849. 2)
  1850. as_fn_append ac_configure_args1 " '$ac_arg'"
  1851. if test $ac_must_keep_next = true; then
  1852. ac_must_keep_next=false # Got value, back to normal.
  1853. else
  1854. case $ac_arg in
  1855. *=* | --config-cache | -C | -disable-* | --disable-* \
  1856. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1857. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1858. | -with-* | --with-* | -without-* | --without-* | --x)
  1859. case "$ac_configure_args0 " in
  1860. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1861. esac
  1862. ;;
  1863. -* ) ac_must_keep_next=true ;;
  1864. esac
  1865. fi
  1866. as_fn_append ac_configure_args " '$ac_arg'"
  1867. ;;
  1868. esac
  1869. done
  1870. done
  1871. { ac_configure_args0=; unset ac_configure_args0;}
  1872. { ac_configure_args1=; unset ac_configure_args1;}
  1873. # When interrupted or exit'd, cleanup temporary files, and complete
  1874. # config.log. We remove comments because anyway the quotes in there
  1875. # would cause problems or look ugly.
  1876. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1877. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1878. trap 'exit_status=$?
  1879. # Save into config.log some information that might help in debugging.
  1880. {
  1881. echo
  1882. $as_echo "## ---------------- ##
  1883. ## Cache variables. ##
  1884. ## ---------------- ##"
  1885. echo
  1886. # The following way of writing the cache mishandles newlines in values,
  1887. (
  1888. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1889. eval ac_val=\$$ac_var
  1890. case $ac_val in #(
  1891. *${as_nl}*)
  1892. case $ac_var in #(
  1893. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1894. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1895. esac
  1896. case $ac_var in #(
  1897. _ | IFS | as_nl) ;; #(
  1898. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1899. *) { eval $ac_var=; unset $ac_var;} ;;
  1900. esac ;;
  1901. esac
  1902. done
  1903. (set) 2>&1 |
  1904. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1905. *${as_nl}ac_space=\ *)
  1906. sed -n \
  1907. "s/'\''/'\''\\\\'\'''\''/g;
  1908. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1909. ;; #(
  1910. *)
  1911. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1912. ;;
  1913. esac |
  1914. sort
  1915. )
  1916. echo
  1917. $as_echo "## ----------------- ##
  1918. ## Output variables. ##
  1919. ## ----------------- ##"
  1920. echo
  1921. for ac_var in $ac_subst_vars
  1922. do
  1923. eval ac_val=\$$ac_var
  1924. case $ac_val in
  1925. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1926. esac
  1927. $as_echo "$ac_var='\''$ac_val'\''"
  1928. done | sort
  1929. echo
  1930. if test -n "$ac_subst_files"; then
  1931. $as_echo "## ------------------- ##
  1932. ## File substitutions. ##
  1933. ## ------------------- ##"
  1934. echo
  1935. for ac_var in $ac_subst_files
  1936. do
  1937. eval ac_val=\$$ac_var
  1938. case $ac_val in
  1939. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1940. esac
  1941. $as_echo "$ac_var='\''$ac_val'\''"
  1942. done | sort
  1943. echo
  1944. fi
  1945. if test -s confdefs.h; then
  1946. $as_echo "## ----------- ##
  1947. ## confdefs.h. ##
  1948. ## ----------- ##"
  1949. echo
  1950. cat confdefs.h
  1951. echo
  1952. fi
  1953. test "$ac_signal" != 0 &&
  1954. $as_echo "$as_me: caught signal $ac_signal"
  1955. $as_echo "$as_me: exit $exit_status"
  1956. } >&5
  1957. rm -f core *.core core.conftest.* &&
  1958. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1959. exit $exit_status
  1960. ' 0
  1961. for ac_signal in 1 2 13 15; do
  1962. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1963. done
  1964. ac_signal=0
  1965. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1966. rm -f -r conftest* confdefs.h
  1967. $as_echo "/* confdefs.h */" > confdefs.h
  1968. # Predefined preprocessor variables.
  1969. cat >>confdefs.h <<_ACEOF
  1970. #define PACKAGE_NAME "$PACKAGE_NAME"
  1971. _ACEOF
  1972. cat >>confdefs.h <<_ACEOF
  1973. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1974. _ACEOF
  1975. cat >>confdefs.h <<_ACEOF
  1976. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1977. _ACEOF
  1978. cat >>confdefs.h <<_ACEOF
  1979. #define PACKAGE_STRING "$PACKAGE_STRING"
  1980. _ACEOF
  1981. cat >>confdefs.h <<_ACEOF
  1982. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1983. _ACEOF
  1984. cat >>confdefs.h <<_ACEOF
  1985. #define PACKAGE_URL "$PACKAGE_URL"
  1986. _ACEOF
  1987. # Let the site file select an alternate cache file if it wants to.
  1988. # Prefer an explicitly selected file to automatically selected ones.
  1989. ac_site_file1=NONE
  1990. ac_site_file2=NONE
  1991. if test -n "$CONFIG_SITE"; then
  1992. # We do not want a PATH search for config.site.
  1993. case $CONFIG_SITE in #((
  1994. -*) ac_site_file1=./$CONFIG_SITE;;
  1995. */*) ac_site_file1=$CONFIG_SITE;;
  1996. *) ac_site_file1=./$CONFIG_SITE;;
  1997. esac
  1998. elif test "x$prefix" != xNONE; then
  1999. ac_site_file1=$prefix/share/config.site
  2000. ac_site_file2=$prefix/etc/config.site
  2001. else
  2002. ac_site_file1=$ac_default_prefix/share/config.site
  2003. ac_site_file2=$ac_default_prefix/etc/config.site
  2004. fi
  2005. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2006. do
  2007. test "x$ac_site_file" = xNONE && continue
  2008. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2009. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2010. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2011. sed 's/^/| /' "$ac_site_file" >&5
  2012. . "$ac_site_file" \
  2013. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2014. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2015. as_fn_error $? "failed to load site script $ac_site_file
  2016. See \`config.log' for more details" "$LINENO" 5; }
  2017. fi
  2018. done
  2019. if test -r "$cache_file"; then
  2020. # Some versions of bash will fail to source /dev/null (special files
  2021. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2022. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2023. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2024. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2025. case $cache_file in
  2026. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2027. *) . "./$cache_file";;
  2028. esac
  2029. fi
  2030. else
  2031. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2032. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2033. >$cache_file
  2034. fi
  2035. # Check that the precious variables saved in the cache have kept the same
  2036. # value.
  2037. ac_cache_corrupted=false
  2038. for ac_var in $ac_precious_vars; do
  2039. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2040. eval ac_new_set=\$ac_env_${ac_var}_set
  2041. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2042. eval ac_new_val=\$ac_env_${ac_var}_value
  2043. case $ac_old_set,$ac_new_set in
  2044. set,)
  2045. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2046. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2047. ac_cache_corrupted=: ;;
  2048. ,set)
  2049. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2050. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2051. ac_cache_corrupted=: ;;
  2052. ,);;
  2053. *)
  2054. if test "x$ac_old_val" != "x$ac_new_val"; then
  2055. # differences in whitespace do not lead to failure.
  2056. ac_old_val_w=`echo x $ac_old_val`
  2057. ac_new_val_w=`echo x $ac_new_val`
  2058. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2059. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2060. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2061. ac_cache_corrupted=:
  2062. else
  2063. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2064. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2065. eval $ac_var=\$ac_old_val
  2066. fi
  2067. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2068. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2069. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2070. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2071. fi;;
  2072. esac
  2073. # Pass precious variables to config.status.
  2074. if test "$ac_new_set" = set; then
  2075. case $ac_new_val in
  2076. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2077. *) ac_arg=$ac_var=$ac_new_val ;;
  2078. esac
  2079. case " $ac_configure_args " in
  2080. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2081. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2082. esac
  2083. fi
  2084. done
  2085. if $ac_cache_corrupted; then
  2086. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2087. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2088. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2089. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2090. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2091. fi
  2092. ## -------------------- ##
  2093. ## Main body of script. ##
  2094. ## -------------------- ##
  2095. ac_ext=c
  2096. ac_cpp='$CPP $CPPFLAGS'
  2097. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2098. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2099. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2100. # libpng does not follow GNU file name conventions (hence 'foreign')
  2101. # color-tests requires automake 1.11 or later
  2102. # silent-rules requires automake 1.11 or later
  2103. # dist-xz requires automake 1.11 or later
  2104. # 1.12.2 fixes a security issue in 1.11.2 and 1.12.1
  2105. # 1.13 is required for parallel tests
  2106. am__api_version='1.16'
  2107. ac_aux_dir=
  2108. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2109. if test -f "$ac_dir/install-sh"; then
  2110. ac_aux_dir=$ac_dir
  2111. ac_install_sh="$ac_aux_dir/install-sh -c"
  2112. break
  2113. elif test -f "$ac_dir/install.sh"; then
  2114. ac_aux_dir=$ac_dir
  2115. ac_install_sh="$ac_aux_dir/install.sh -c"
  2116. break
  2117. elif test -f "$ac_dir/shtool"; then
  2118. ac_aux_dir=$ac_dir
  2119. ac_install_sh="$ac_aux_dir/shtool install -c"
  2120. break
  2121. fi
  2122. done
  2123. if test -z "$ac_aux_dir"; then
  2124. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2125. fi
  2126. # These three variables are undocumented and unsupported,
  2127. # and are intended to be withdrawn in a future Autoconf release.
  2128. # They can cause serious problems if a builder's source tree is in a directory
  2129. # whose full name contains unusual characters.
  2130. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2131. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2132. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2133. # Find a good install program. We prefer a C program (faster),
  2134. # so one script is as good as another. But avoid the broken or
  2135. # incompatible versions:
  2136. # SysV /etc/install, /usr/sbin/install
  2137. # SunOS /usr/etc/install
  2138. # IRIX /sbin/install
  2139. # AIX /bin/install
  2140. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2141. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2142. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2143. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2144. # OS/2's system install, which has a completely different semantic
  2145. # ./install, which can be erroneously created by make from ./install.sh.
  2146. # Reject install programs that cannot install multiple files.
  2147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2148. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2149. if test -z "$INSTALL"; then
  2150. if ${ac_cv_path_install+:} false; then :
  2151. $as_echo_n "(cached) " >&6
  2152. else
  2153. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2154. for as_dir in $PATH
  2155. do
  2156. IFS=$as_save_IFS
  2157. test -z "$as_dir" && as_dir=.
  2158. # Account for people who put trailing slashes in PATH elements.
  2159. case $as_dir/ in #((
  2160. ./ | .// | /[cC]/* | \
  2161. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2162. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2163. /usr/ucb/* ) ;;
  2164. *)
  2165. # OSF1 and SCO ODT 3.0 have their own names for install.
  2166. # Don't use installbsd from OSF since it installs stuff as root
  2167. # by default.
  2168. for ac_prog in ginstall scoinst install; do
  2169. for ac_exec_ext in '' $ac_executable_extensions; do
  2170. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2171. if test $ac_prog = install &&
  2172. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2173. # AIX install. It has an incompatible calling convention.
  2174. :
  2175. elif test $ac_prog = install &&
  2176. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2177. # program-specific install script used by HP pwplus--don't use.
  2178. :
  2179. else
  2180. rm -rf conftest.one conftest.two conftest.dir
  2181. echo one > conftest.one
  2182. echo two > conftest.two
  2183. mkdir conftest.dir
  2184. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2185. test -s conftest.one && test -s conftest.two &&
  2186. test -s conftest.dir/conftest.one &&
  2187. test -s conftest.dir/conftest.two
  2188. then
  2189. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2190. break 3
  2191. fi
  2192. fi
  2193. fi
  2194. done
  2195. done
  2196. ;;
  2197. esac
  2198. done
  2199. IFS=$as_save_IFS
  2200. rm -rf conftest.one conftest.two conftest.dir
  2201. fi
  2202. if test "${ac_cv_path_install+set}" = set; then
  2203. INSTALL=$ac_cv_path_install
  2204. else
  2205. # As a last resort, use the slow shell script. Don't cache a
  2206. # value for INSTALL within a source directory, because that will
  2207. # break other packages using the cache if that directory is
  2208. # removed, or if the value is a relative name.
  2209. INSTALL=$ac_install_sh
  2210. fi
  2211. fi
  2212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2213. $as_echo "$INSTALL" >&6; }
  2214. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2215. # It thinks the first close brace ends the variable substitution.
  2216. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2217. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2218. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2220. $as_echo_n "checking whether build environment is sane... " >&6; }
  2221. # Reject unsafe characters in $srcdir or the absolute working directory
  2222. # name. Accept space and tab only in the latter.
  2223. am_lf='
  2224. '
  2225. case `pwd` in
  2226. *[\\\"\#\$\&\'\`$am_lf]*)
  2227. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2228. esac
  2229. case $srcdir in
  2230. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2231. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2232. esac
  2233. # Do 'set' in a subshell so we don't clobber the current shell's
  2234. # arguments. Must try -L first in case configure is actually a
  2235. # symlink; some systems play weird games with the mod time of symlinks
  2236. # (eg FreeBSD returns the mod time of the symlink's containing
  2237. # directory).
  2238. if (
  2239. am_has_slept=no
  2240. for am_try in 1 2; do
  2241. echo "timestamp, slept: $am_has_slept" > conftest.file
  2242. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2243. if test "$*" = "X"; then
  2244. # -L didn't work.
  2245. set X `ls -t "$srcdir/configure" conftest.file`
  2246. fi
  2247. if test "$*" != "X $srcdir/configure conftest.file" \
  2248. && test "$*" != "X conftest.file $srcdir/configure"; then
  2249. # If neither matched, then we have a broken ls. This can happen
  2250. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2251. # broken ls alias from the environment. This has actually
  2252. # happened. Such a system could not be considered "sane".
  2253. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2254. alias in your environment" "$LINENO" 5
  2255. fi
  2256. if test "$2" = conftest.file || test $am_try -eq 2; then
  2257. break
  2258. fi
  2259. # Just in case.
  2260. sleep 1
  2261. am_has_slept=yes
  2262. done
  2263. test "$2" = conftest.file
  2264. )
  2265. then
  2266. # Ok.
  2267. :
  2268. else
  2269. as_fn_error $? "newly created file is older than distributed files!
  2270. Check your system clock" "$LINENO" 5
  2271. fi
  2272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2273. $as_echo "yes" >&6; }
  2274. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2275. # generated files are strictly newer.
  2276. am_sleep_pid=
  2277. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2278. ( sleep 1 ) &
  2279. am_sleep_pid=$!
  2280. fi
  2281. rm -f conftest.file
  2282. test "$program_prefix" != NONE &&
  2283. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2284. # Use a double $ so make ignores it.
  2285. test "$program_suffix" != NONE &&
  2286. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2287. # Double any \ or $.
  2288. # By default was `s,x,x', remove it if useless.
  2289. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2290. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2291. # Expand $ac_aux_dir to an absolute path.
  2292. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2293. if test x"${MISSING+set}" != xset; then
  2294. case $am_aux_dir in
  2295. *\ * | *\ *)
  2296. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2297. *)
  2298. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2299. esac
  2300. fi
  2301. # Use eval to expand $SHELL
  2302. if eval "$MISSING --is-lightweight"; then
  2303. am_missing_run="$MISSING "
  2304. else
  2305. am_missing_run=
  2306. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2307. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2308. fi
  2309. if test x"${install_sh+set}" != xset; then
  2310. case $am_aux_dir in
  2311. *\ * | *\ *)
  2312. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2313. *)
  2314. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2315. esac
  2316. fi
  2317. # Installed binaries are usually stripped using 'strip' when the user
  2318. # run "make install-strip". However 'strip' might not be the right
  2319. # tool to use in cross-compilation environments, therefore Automake
  2320. # will honor the 'STRIP' environment variable to overrule this program.
  2321. if test "$cross_compiling" != no; then
  2322. if test -n "$ac_tool_prefix"; then
  2323. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2324. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2326. $as_echo_n "checking for $ac_word... " >&6; }
  2327. if ${ac_cv_prog_STRIP+:} false; then :
  2328. $as_echo_n "(cached) " >&6
  2329. else
  2330. if test -n "$STRIP"; then
  2331. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2332. else
  2333. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2334. for as_dir in $PATH
  2335. do
  2336. IFS=$as_save_IFS
  2337. test -z "$as_dir" && as_dir=.
  2338. for ac_exec_ext in '' $ac_executable_extensions; do
  2339. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2340. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2341. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2342. break 2
  2343. fi
  2344. done
  2345. done
  2346. IFS=$as_save_IFS
  2347. fi
  2348. fi
  2349. STRIP=$ac_cv_prog_STRIP
  2350. if test -n "$STRIP"; then
  2351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2352. $as_echo "$STRIP" >&6; }
  2353. else
  2354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2355. $as_echo "no" >&6; }
  2356. fi
  2357. fi
  2358. if test -z "$ac_cv_prog_STRIP"; then
  2359. ac_ct_STRIP=$STRIP
  2360. # Extract the first word of "strip", so it can be a program name with args.
  2361. set dummy strip; ac_word=$2
  2362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2363. $as_echo_n "checking for $ac_word... " >&6; }
  2364. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2365. $as_echo_n "(cached) " >&6
  2366. else
  2367. if test -n "$ac_ct_STRIP"; then
  2368. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2369. else
  2370. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2371. for as_dir in $PATH
  2372. do
  2373. IFS=$as_save_IFS
  2374. test -z "$as_dir" && as_dir=.
  2375. for ac_exec_ext in '' $ac_executable_extensions; do
  2376. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2377. ac_cv_prog_ac_ct_STRIP="strip"
  2378. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2379. break 2
  2380. fi
  2381. done
  2382. done
  2383. IFS=$as_save_IFS
  2384. fi
  2385. fi
  2386. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2387. if test -n "$ac_ct_STRIP"; then
  2388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2389. $as_echo "$ac_ct_STRIP" >&6; }
  2390. else
  2391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2392. $as_echo "no" >&6; }
  2393. fi
  2394. if test "x$ac_ct_STRIP" = x; then
  2395. STRIP=":"
  2396. else
  2397. case $cross_compiling:$ac_tool_warned in
  2398. yes:)
  2399. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2400. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2401. ac_tool_warned=yes ;;
  2402. esac
  2403. STRIP=$ac_ct_STRIP
  2404. fi
  2405. else
  2406. STRIP="$ac_cv_prog_STRIP"
  2407. fi
  2408. fi
  2409. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2411. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2412. if test -z "$MKDIR_P"; then
  2413. if ${ac_cv_path_mkdir+:} false; then :
  2414. $as_echo_n "(cached) " >&6
  2415. else
  2416. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2417. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2418. do
  2419. IFS=$as_save_IFS
  2420. test -z "$as_dir" && as_dir=.
  2421. for ac_prog in mkdir gmkdir; do
  2422. for ac_exec_ext in '' $ac_executable_extensions; do
  2423. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2424. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2425. 'mkdir (GNU coreutils) '* | \
  2426. 'mkdir (coreutils) '* | \
  2427. 'mkdir (fileutils) '4.1*)
  2428. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2429. break 3;;
  2430. esac
  2431. done
  2432. done
  2433. done
  2434. IFS=$as_save_IFS
  2435. fi
  2436. test -d ./--version && rmdir ./--version
  2437. if test "${ac_cv_path_mkdir+set}" = set; then
  2438. MKDIR_P="$ac_cv_path_mkdir -p"
  2439. else
  2440. # As a last resort, use the slow shell script. Don't cache a
  2441. # value for MKDIR_P within a source directory, because that will
  2442. # break other packages using the cache if that directory is
  2443. # removed, or if the value is a relative name.
  2444. MKDIR_P="$ac_install_sh -d"
  2445. fi
  2446. fi
  2447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2448. $as_echo "$MKDIR_P" >&6; }
  2449. for ac_prog in gawk mawk nawk awk
  2450. do
  2451. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2452. set dummy $ac_prog; ac_word=$2
  2453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2454. $as_echo_n "checking for $ac_word... " >&6; }
  2455. if ${ac_cv_prog_AWK+:} false; then :
  2456. $as_echo_n "(cached) " >&6
  2457. else
  2458. if test -n "$AWK"; then
  2459. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2460. else
  2461. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2462. for as_dir in $PATH
  2463. do
  2464. IFS=$as_save_IFS
  2465. test -z "$as_dir" && as_dir=.
  2466. for ac_exec_ext in '' $ac_executable_extensions; do
  2467. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2468. ac_cv_prog_AWK="$ac_prog"
  2469. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2470. break 2
  2471. fi
  2472. done
  2473. done
  2474. IFS=$as_save_IFS
  2475. fi
  2476. fi
  2477. AWK=$ac_cv_prog_AWK
  2478. if test -n "$AWK"; then
  2479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2480. $as_echo "$AWK" >&6; }
  2481. else
  2482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2483. $as_echo "no" >&6; }
  2484. fi
  2485. test -n "$AWK" && break
  2486. done
  2487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2488. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2489. set x ${MAKE-make}
  2490. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2491. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2492. $as_echo_n "(cached) " >&6
  2493. else
  2494. cat >conftest.make <<\_ACEOF
  2495. SHELL = /bin/sh
  2496. all:
  2497. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2498. _ACEOF
  2499. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2500. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2501. *@@@%%%=?*=@@@%%%*)
  2502. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2503. *)
  2504. eval ac_cv_prog_make_${ac_make}_set=no;;
  2505. esac
  2506. rm -f conftest.make
  2507. fi
  2508. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2510. $as_echo "yes" >&6; }
  2511. SET_MAKE=
  2512. else
  2513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2514. $as_echo "no" >&6; }
  2515. SET_MAKE="MAKE=${MAKE-make}"
  2516. fi
  2517. rm -rf .tst 2>/dev/null
  2518. mkdir .tst 2>/dev/null
  2519. if test -d .tst; then
  2520. am__leading_dot=.
  2521. else
  2522. am__leading_dot=_
  2523. fi
  2524. rmdir .tst 2>/dev/null
  2525. # Check whether --enable-silent-rules was given.
  2526. if test "${enable_silent_rules+set}" = set; then :
  2527. enableval=$enable_silent_rules;
  2528. fi
  2529. case $enable_silent_rules in # (((
  2530. yes) AM_DEFAULT_VERBOSITY=0;;
  2531. no) AM_DEFAULT_VERBOSITY=1;;
  2532. *) AM_DEFAULT_VERBOSITY=1;;
  2533. esac
  2534. am_make=${MAKE-make}
  2535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2536. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2537. if ${am_cv_make_support_nested_variables+:} false; then :
  2538. $as_echo_n "(cached) " >&6
  2539. else
  2540. if $as_echo 'TRUE=$(BAR$(V))
  2541. BAR0=false
  2542. BAR1=true
  2543. V=1
  2544. am__doit:
  2545. @$(TRUE)
  2546. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2547. am_cv_make_support_nested_variables=yes
  2548. else
  2549. am_cv_make_support_nested_variables=no
  2550. fi
  2551. fi
  2552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2553. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2554. if test $am_cv_make_support_nested_variables = yes; then
  2555. AM_V='$(V)'
  2556. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2557. else
  2558. AM_V=$AM_DEFAULT_VERBOSITY
  2559. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2560. fi
  2561. AM_BACKSLASH='\'
  2562. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2563. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2564. # is not polluted with repeated "-I."
  2565. am__isrc=' -I$(srcdir)'
  2566. # test to see if srcdir already configured
  2567. if test -f $srcdir/config.status; then
  2568. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2569. fi
  2570. fi
  2571. # test whether we have cygpath
  2572. if test -z "$CYGPATH_W"; then
  2573. if (cygpath --version) >/dev/null 2>/dev/null; then
  2574. CYGPATH_W='cygpath -w'
  2575. else
  2576. CYGPATH_W=echo
  2577. fi
  2578. fi
  2579. # Define the identity of the package.
  2580. PACKAGE='libpng'
  2581. VERSION='1.6.37'
  2582. cat >>confdefs.h <<_ACEOF
  2583. #define PACKAGE "$PACKAGE"
  2584. _ACEOF
  2585. cat >>confdefs.h <<_ACEOF
  2586. #define VERSION "$VERSION"
  2587. _ACEOF
  2588. # Some tools Automake needs.
  2589. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2590. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2591. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2592. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2593. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2594. # For better backward compatibility. To be removed once Automake 1.9.x
  2595. # dies out for good. For more background, see:
  2596. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2597. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2598. mkdir_p='$(MKDIR_P)'
  2599. # We need awk for the "check" target (and possibly the TAP driver). The
  2600. # system "awk" is bad on some platforms.
  2601. # Always define AMTAR for backward compatibility. Yes, it's still used
  2602. # in the wild :-( We should find a proper way to deprecate it ...
  2603. AMTAR='$${TAR-tar}'
  2604. # We'll loop over all known methods to create a tar archive until one works.
  2605. _am_tools='gnutar pax cpio none'
  2606. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2607. # POSIX will say in a future version that running "rm -f" with no argument
  2608. # is OK; and we want to be able to make that assumption in our Makefile
  2609. # recipes. So use an aggressive probe to check that the usage we want is
  2610. # actually supported "in the wild" to an acceptable degree.
  2611. # See automake bug#10828.
  2612. # To make any issue more visible, cause the running configure to be aborted
  2613. # by default if the 'rm' program in use doesn't match our expectations; the
  2614. # user can still override this though.
  2615. if rm -f && rm -fr && rm -rf; then : OK; else
  2616. cat >&2 <<'END'
  2617. Oops!
  2618. Your 'rm' program seems unable to run without file operands specified
  2619. on the command line, even when the '-f' option is present. This is contrary
  2620. to the behaviour of most rm programs out there, and not conforming with
  2621. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  2622. Please tell bug-automake@gnu.org about your system, including the value
  2623. of your $PATH and any error possibly output before this message. This
  2624. can help us improve future automake versions.
  2625. END
  2626. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  2627. echo 'Configuration will proceed anyway, since you have set the' >&2
  2628. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  2629. echo >&2
  2630. else
  2631. cat >&2 <<'END'
  2632. Aborting the configuration process, to ensure you take notice of the issue.
  2633. You can download and install GNU coreutils to get an 'rm' implementation
  2634. that behaves properly: <https://www.gnu.org/software/coreutils/>.
  2635. If you want to complete the configuration process using your problematic
  2636. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  2637. to "yes", and re-run configure.
  2638. END
  2639. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  2640. fi
  2641. fi
  2642. # The following line causes --disable-maintainer-mode to be the default to
  2643. # configure. This is necessary because libpng distributions cannot rely on the
  2644. # time stamps of the autotools generated files being correct
  2645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2646. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2647. # Check whether --enable-maintainer-mode was given.
  2648. if test "${enable_maintainer_mode+set}" = set; then :
  2649. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2650. else
  2651. USE_MAINTAINER_MODE=no
  2652. fi
  2653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2654. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2655. if test $USE_MAINTAINER_MODE = yes; then
  2656. MAINTAINER_MODE_TRUE=
  2657. MAINTAINER_MODE_FALSE='#'
  2658. else
  2659. MAINTAINER_MODE_TRUE='#'
  2660. MAINTAINER_MODE_FALSE=
  2661. fi
  2662. MAINT=$MAINTAINER_MODE_TRUE
  2663. PNGLIB_VERSION=1.6.37
  2664. PNGLIB_MAJOR=1
  2665. PNGLIB_MINOR=6
  2666. PNGLIB_RELEASE=37
  2667. ac_config_headers="$ac_config_headers config.h"
  2668. # Checks for programs.
  2669. ac_ext=c
  2670. ac_cpp='$CPP $CPPFLAGS'
  2671. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2672. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2673. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2674. ac_ext=c
  2675. ac_cpp='$CPP $CPPFLAGS'
  2676. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2677. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2678. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2679. if test -n "$ac_tool_prefix"; then
  2680. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2681. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2683. $as_echo_n "checking for $ac_word... " >&6; }
  2684. if ${ac_cv_prog_CC+:} false; then :
  2685. $as_echo_n "(cached) " >&6
  2686. else
  2687. if test -n "$CC"; then
  2688. ac_cv_prog_CC="$CC" # Let the user override the test.
  2689. else
  2690. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2691. for as_dir in $PATH
  2692. do
  2693. IFS=$as_save_IFS
  2694. test -z "$as_dir" && as_dir=.
  2695. for ac_exec_ext in '' $ac_executable_extensions; do
  2696. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2697. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2698. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2699. break 2
  2700. fi
  2701. done
  2702. done
  2703. IFS=$as_save_IFS
  2704. fi
  2705. fi
  2706. CC=$ac_cv_prog_CC
  2707. if test -n "$CC"; then
  2708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2709. $as_echo "$CC" >&6; }
  2710. else
  2711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2712. $as_echo "no" >&6; }
  2713. fi
  2714. fi
  2715. if test -z "$ac_cv_prog_CC"; then
  2716. ac_ct_CC=$CC
  2717. # Extract the first word of "gcc", so it can be a program name with args.
  2718. set dummy gcc; ac_word=$2
  2719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2720. $as_echo_n "checking for $ac_word... " >&6; }
  2721. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2722. $as_echo_n "(cached) " >&6
  2723. else
  2724. if test -n "$ac_ct_CC"; then
  2725. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2726. else
  2727. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2728. for as_dir in $PATH
  2729. do
  2730. IFS=$as_save_IFS
  2731. test -z "$as_dir" && as_dir=.
  2732. for ac_exec_ext in '' $ac_executable_extensions; do
  2733. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2734. ac_cv_prog_ac_ct_CC="gcc"
  2735. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2736. break 2
  2737. fi
  2738. done
  2739. done
  2740. IFS=$as_save_IFS
  2741. fi
  2742. fi
  2743. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2744. if test -n "$ac_ct_CC"; then
  2745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2746. $as_echo "$ac_ct_CC" >&6; }
  2747. else
  2748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2749. $as_echo "no" >&6; }
  2750. fi
  2751. if test "x$ac_ct_CC" = x; then
  2752. CC=""
  2753. else
  2754. case $cross_compiling:$ac_tool_warned in
  2755. yes:)
  2756. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2757. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2758. ac_tool_warned=yes ;;
  2759. esac
  2760. CC=$ac_ct_CC
  2761. fi
  2762. else
  2763. CC="$ac_cv_prog_CC"
  2764. fi
  2765. if test -z "$CC"; then
  2766. if test -n "$ac_tool_prefix"; then
  2767. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2768. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2770. $as_echo_n "checking for $ac_word... " >&6; }
  2771. if ${ac_cv_prog_CC+:} false; then :
  2772. $as_echo_n "(cached) " >&6
  2773. else
  2774. if test -n "$CC"; then
  2775. ac_cv_prog_CC="$CC" # Let the user override the test.
  2776. else
  2777. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2778. for as_dir in $PATH
  2779. do
  2780. IFS=$as_save_IFS
  2781. test -z "$as_dir" && as_dir=.
  2782. for ac_exec_ext in '' $ac_executable_extensions; do
  2783. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2784. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2785. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2786. break 2
  2787. fi
  2788. done
  2789. done
  2790. IFS=$as_save_IFS
  2791. fi
  2792. fi
  2793. CC=$ac_cv_prog_CC
  2794. if test -n "$CC"; then
  2795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2796. $as_echo "$CC" >&6; }
  2797. else
  2798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2799. $as_echo "no" >&6; }
  2800. fi
  2801. fi
  2802. fi
  2803. if test -z "$CC"; then
  2804. # Extract the first word of "cc", so it can be a program name with args.
  2805. set dummy cc; ac_word=$2
  2806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2807. $as_echo_n "checking for $ac_word... " >&6; }
  2808. if ${ac_cv_prog_CC+:} false; then :
  2809. $as_echo_n "(cached) " >&6
  2810. else
  2811. if test -n "$CC"; then
  2812. ac_cv_prog_CC="$CC" # Let the user override the test.
  2813. else
  2814. ac_prog_rejected=no
  2815. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2816. for as_dir in $PATH
  2817. do
  2818. IFS=$as_save_IFS
  2819. test -z "$as_dir" && as_dir=.
  2820. for ac_exec_ext in '' $ac_executable_extensions; do
  2821. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2822. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2823. ac_prog_rejected=yes
  2824. continue
  2825. fi
  2826. ac_cv_prog_CC="cc"
  2827. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2828. break 2
  2829. fi
  2830. done
  2831. done
  2832. IFS=$as_save_IFS
  2833. if test $ac_prog_rejected = yes; then
  2834. # We found a bogon in the path, so make sure we never use it.
  2835. set dummy $ac_cv_prog_CC
  2836. shift
  2837. if test $# != 0; then
  2838. # We chose a different compiler from the bogus one.
  2839. # However, it has the same basename, so the bogon will be chosen
  2840. # first if we set CC to just the basename; use the full file name.
  2841. shift
  2842. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2843. fi
  2844. fi
  2845. fi
  2846. fi
  2847. CC=$ac_cv_prog_CC
  2848. if test -n "$CC"; then
  2849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2850. $as_echo "$CC" >&6; }
  2851. else
  2852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2853. $as_echo "no" >&6; }
  2854. fi
  2855. fi
  2856. if test -z "$CC"; then
  2857. if test -n "$ac_tool_prefix"; then
  2858. for ac_prog in cl.exe
  2859. do
  2860. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2861. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2863. $as_echo_n "checking for $ac_word... " >&6; }
  2864. if ${ac_cv_prog_CC+:} false; then :
  2865. $as_echo_n "(cached) " >&6
  2866. else
  2867. if test -n "$CC"; then
  2868. ac_cv_prog_CC="$CC" # Let the user override the test.
  2869. else
  2870. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2871. for as_dir in $PATH
  2872. do
  2873. IFS=$as_save_IFS
  2874. test -z "$as_dir" && as_dir=.
  2875. for ac_exec_ext in '' $ac_executable_extensions; do
  2876. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2877. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2878. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2879. break 2
  2880. fi
  2881. done
  2882. done
  2883. IFS=$as_save_IFS
  2884. fi
  2885. fi
  2886. CC=$ac_cv_prog_CC
  2887. if test -n "$CC"; then
  2888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2889. $as_echo "$CC" >&6; }
  2890. else
  2891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2892. $as_echo "no" >&6; }
  2893. fi
  2894. test -n "$CC" && break
  2895. done
  2896. fi
  2897. if test -z "$CC"; then
  2898. ac_ct_CC=$CC
  2899. for ac_prog in cl.exe
  2900. do
  2901. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2902. set dummy $ac_prog; ac_word=$2
  2903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2904. $as_echo_n "checking for $ac_word... " >&6; }
  2905. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2906. $as_echo_n "(cached) " >&6
  2907. else
  2908. if test -n "$ac_ct_CC"; then
  2909. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2910. else
  2911. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2912. for as_dir in $PATH
  2913. do
  2914. IFS=$as_save_IFS
  2915. test -z "$as_dir" && as_dir=.
  2916. for ac_exec_ext in '' $ac_executable_extensions; do
  2917. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2918. ac_cv_prog_ac_ct_CC="$ac_prog"
  2919. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2920. break 2
  2921. fi
  2922. done
  2923. done
  2924. IFS=$as_save_IFS
  2925. fi
  2926. fi
  2927. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2928. if test -n "$ac_ct_CC"; then
  2929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2930. $as_echo "$ac_ct_CC" >&6; }
  2931. else
  2932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2933. $as_echo "no" >&6; }
  2934. fi
  2935. test -n "$ac_ct_CC" && break
  2936. done
  2937. if test "x$ac_ct_CC" = x; then
  2938. CC=""
  2939. else
  2940. case $cross_compiling:$ac_tool_warned in
  2941. yes:)
  2942. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2943. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2944. ac_tool_warned=yes ;;
  2945. esac
  2946. CC=$ac_ct_CC
  2947. fi
  2948. fi
  2949. fi
  2950. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2951. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2952. as_fn_error $? "no acceptable C compiler found in \$PATH
  2953. See \`config.log' for more details" "$LINENO" 5; }
  2954. # Provide some information about the compiler.
  2955. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2956. set X $ac_compile
  2957. ac_compiler=$2
  2958. for ac_option in --version -v -V -qversion; do
  2959. { { ac_try="$ac_compiler $ac_option >&5"
  2960. case "(($ac_try" in
  2961. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2962. *) ac_try_echo=$ac_try;;
  2963. esac
  2964. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2965. $as_echo "$ac_try_echo"; } >&5
  2966. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2967. ac_status=$?
  2968. if test -s conftest.err; then
  2969. sed '10a\
  2970. ... rest of stderr output deleted ...
  2971. 10q' conftest.err >conftest.er1
  2972. cat conftest.er1 >&5
  2973. fi
  2974. rm -f conftest.er1 conftest.err
  2975. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2976. test $ac_status = 0; }
  2977. done
  2978. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2979. /* end confdefs.h. */
  2980. int
  2981. main ()
  2982. {
  2983. ;
  2984. return 0;
  2985. }
  2986. _ACEOF
  2987. ac_clean_files_save=$ac_clean_files
  2988. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2989. # Try to create an executable without -o first, disregard a.out.
  2990. # It will help us diagnose broken compilers, and finding out an intuition
  2991. # of exeext.
  2992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2993. $as_echo_n "checking whether the C compiler works... " >&6; }
  2994. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2995. # The possible output files:
  2996. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2997. ac_rmfiles=
  2998. for ac_file in $ac_files
  2999. do
  3000. case $ac_file in
  3001. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3002. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3003. esac
  3004. done
  3005. rm -f $ac_rmfiles
  3006. if { { ac_try="$ac_link_default"
  3007. case "(($ac_try" in
  3008. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3009. *) ac_try_echo=$ac_try;;
  3010. esac
  3011. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3012. $as_echo "$ac_try_echo"; } >&5
  3013. (eval "$ac_link_default") 2>&5
  3014. ac_status=$?
  3015. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3016. test $ac_status = 0; }; then :
  3017. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3018. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3019. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3020. # so that the user can short-circuit this test for compilers unknown to
  3021. # Autoconf.
  3022. for ac_file in $ac_files ''
  3023. do
  3024. test -f "$ac_file" || continue
  3025. case $ac_file in
  3026. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3027. ;;
  3028. [ab].out )
  3029. # We found the default executable, but exeext='' is most
  3030. # certainly right.
  3031. break;;
  3032. *.* )
  3033. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3034. then :; else
  3035. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3036. fi
  3037. # We set ac_cv_exeext here because the later test for it is not
  3038. # safe: cross compilers may not add the suffix if given an `-o'
  3039. # argument, so we may need to know it at that point already.
  3040. # Even if this section looks crufty: it has the advantage of
  3041. # actually working.
  3042. break;;
  3043. * )
  3044. break;;
  3045. esac
  3046. done
  3047. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3048. else
  3049. ac_file=''
  3050. fi
  3051. if test -z "$ac_file"; then :
  3052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3053. $as_echo "no" >&6; }
  3054. $as_echo "$as_me: failed program was:" >&5
  3055. sed 's/^/| /' conftest.$ac_ext >&5
  3056. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3057. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3058. as_fn_error 77 "C compiler cannot create executables
  3059. See \`config.log' for more details" "$LINENO" 5; }
  3060. else
  3061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3062. $as_echo "yes" >&6; }
  3063. fi
  3064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3065. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3067. $as_echo "$ac_file" >&6; }
  3068. ac_exeext=$ac_cv_exeext
  3069. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3070. ac_clean_files=$ac_clean_files_save
  3071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3072. $as_echo_n "checking for suffix of executables... " >&6; }
  3073. if { { ac_try="$ac_link"
  3074. case "(($ac_try" in
  3075. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3076. *) ac_try_echo=$ac_try;;
  3077. esac
  3078. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3079. $as_echo "$ac_try_echo"; } >&5
  3080. (eval "$ac_link") 2>&5
  3081. ac_status=$?
  3082. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3083. test $ac_status = 0; }; then :
  3084. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3085. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3086. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3087. # `rm'.
  3088. for ac_file in conftest.exe conftest conftest.*; do
  3089. test -f "$ac_file" || continue
  3090. case $ac_file in
  3091. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3092. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3093. break;;
  3094. * ) break;;
  3095. esac
  3096. done
  3097. else
  3098. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3099. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3100. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3101. See \`config.log' for more details" "$LINENO" 5; }
  3102. fi
  3103. rm -f conftest conftest$ac_cv_exeext
  3104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3105. $as_echo "$ac_cv_exeext" >&6; }
  3106. rm -f conftest.$ac_ext
  3107. EXEEXT=$ac_cv_exeext
  3108. ac_exeext=$EXEEXT
  3109. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3110. /* end confdefs.h. */
  3111. #include <stdio.h>
  3112. int
  3113. main ()
  3114. {
  3115. FILE *f = fopen ("conftest.out", "w");
  3116. return ferror (f) || fclose (f) != 0;
  3117. ;
  3118. return 0;
  3119. }
  3120. _ACEOF
  3121. ac_clean_files="$ac_clean_files conftest.out"
  3122. # Check that the compiler produces executables we can run. If not, either
  3123. # the compiler is broken, or we cross compile.
  3124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3125. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3126. if test "$cross_compiling" != yes; then
  3127. { { ac_try="$ac_link"
  3128. case "(($ac_try" in
  3129. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3130. *) ac_try_echo=$ac_try;;
  3131. esac
  3132. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3133. $as_echo "$ac_try_echo"; } >&5
  3134. (eval "$ac_link") 2>&5
  3135. ac_status=$?
  3136. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3137. test $ac_status = 0; }
  3138. if { ac_try='./conftest$ac_cv_exeext'
  3139. { { case "(($ac_try" in
  3140. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3141. *) ac_try_echo=$ac_try;;
  3142. esac
  3143. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3144. $as_echo "$ac_try_echo"; } >&5
  3145. (eval "$ac_try") 2>&5
  3146. ac_status=$?
  3147. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3148. test $ac_status = 0; }; }; then
  3149. cross_compiling=no
  3150. else
  3151. if test "$cross_compiling" = maybe; then
  3152. cross_compiling=yes
  3153. else
  3154. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3155. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3156. as_fn_error $? "cannot run C compiled programs.
  3157. If you meant to cross compile, use \`--host'.
  3158. See \`config.log' for more details" "$LINENO" 5; }
  3159. fi
  3160. fi
  3161. fi
  3162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3163. $as_echo "$cross_compiling" >&6; }
  3164. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3165. ac_clean_files=$ac_clean_files_save
  3166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3167. $as_echo_n "checking for suffix of object files... " >&6; }
  3168. if ${ac_cv_objext+:} false; then :
  3169. $as_echo_n "(cached) " >&6
  3170. else
  3171. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3172. /* end confdefs.h. */
  3173. int
  3174. main ()
  3175. {
  3176. ;
  3177. return 0;
  3178. }
  3179. _ACEOF
  3180. rm -f conftest.o conftest.obj
  3181. if { { ac_try="$ac_compile"
  3182. case "(($ac_try" in
  3183. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3184. *) ac_try_echo=$ac_try;;
  3185. esac
  3186. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3187. $as_echo "$ac_try_echo"; } >&5
  3188. (eval "$ac_compile") 2>&5
  3189. ac_status=$?
  3190. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3191. test $ac_status = 0; }; then :
  3192. for ac_file in conftest.o conftest.obj conftest.*; do
  3193. test -f "$ac_file" || continue;
  3194. case $ac_file in
  3195. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3196. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3197. break;;
  3198. esac
  3199. done
  3200. else
  3201. $as_echo "$as_me: failed program was:" >&5
  3202. sed 's/^/| /' conftest.$ac_ext >&5
  3203. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3204. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3205. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3206. See \`config.log' for more details" "$LINENO" 5; }
  3207. fi
  3208. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3209. fi
  3210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3211. $as_echo "$ac_cv_objext" >&6; }
  3212. OBJEXT=$ac_cv_objext
  3213. ac_objext=$OBJEXT
  3214. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3215. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3216. if ${ac_cv_c_compiler_gnu+:} false; then :
  3217. $as_echo_n "(cached) " >&6
  3218. else
  3219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3220. /* end confdefs.h. */
  3221. int
  3222. main ()
  3223. {
  3224. #ifndef __GNUC__
  3225. choke me
  3226. #endif
  3227. ;
  3228. return 0;
  3229. }
  3230. _ACEOF
  3231. if ac_fn_c_try_compile "$LINENO"; then :
  3232. ac_compiler_gnu=yes
  3233. else
  3234. ac_compiler_gnu=no
  3235. fi
  3236. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3237. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3238. fi
  3239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3240. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3241. if test $ac_compiler_gnu = yes; then
  3242. GCC=yes
  3243. else
  3244. GCC=
  3245. fi
  3246. ac_test_CFLAGS=${CFLAGS+set}
  3247. ac_save_CFLAGS=$CFLAGS
  3248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3249. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3250. if ${ac_cv_prog_cc_g+:} false; then :
  3251. $as_echo_n "(cached) " >&6
  3252. else
  3253. ac_save_c_werror_flag=$ac_c_werror_flag
  3254. ac_c_werror_flag=yes
  3255. ac_cv_prog_cc_g=no
  3256. CFLAGS="-g"
  3257. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3258. /* end confdefs.h. */
  3259. int
  3260. main ()
  3261. {
  3262. ;
  3263. return 0;
  3264. }
  3265. _ACEOF
  3266. if ac_fn_c_try_compile "$LINENO"; then :
  3267. ac_cv_prog_cc_g=yes
  3268. else
  3269. CFLAGS=""
  3270. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3271. /* end confdefs.h. */
  3272. int
  3273. main ()
  3274. {
  3275. ;
  3276. return 0;
  3277. }
  3278. _ACEOF
  3279. if ac_fn_c_try_compile "$LINENO"; then :
  3280. else
  3281. ac_c_werror_flag=$ac_save_c_werror_flag
  3282. CFLAGS="-g"
  3283. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3284. /* end confdefs.h. */
  3285. int
  3286. main ()
  3287. {
  3288. ;
  3289. return 0;
  3290. }
  3291. _ACEOF
  3292. if ac_fn_c_try_compile "$LINENO"; then :
  3293. ac_cv_prog_cc_g=yes
  3294. fi
  3295. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3296. fi
  3297. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3298. fi
  3299. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3300. ac_c_werror_flag=$ac_save_c_werror_flag
  3301. fi
  3302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3303. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3304. if test "$ac_test_CFLAGS" = set; then
  3305. CFLAGS=$ac_save_CFLAGS
  3306. elif test $ac_cv_prog_cc_g = yes; then
  3307. if test "$GCC" = yes; then
  3308. CFLAGS="-g -O2"
  3309. else
  3310. CFLAGS="-g"
  3311. fi
  3312. else
  3313. if test "$GCC" = yes; then
  3314. CFLAGS="-O2"
  3315. else
  3316. CFLAGS=
  3317. fi
  3318. fi
  3319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3320. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3321. if ${ac_cv_prog_cc_c89+:} false; then :
  3322. $as_echo_n "(cached) " >&6
  3323. else
  3324. ac_cv_prog_cc_c89=no
  3325. ac_save_CC=$CC
  3326. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3327. /* end confdefs.h. */
  3328. #include <stdarg.h>
  3329. #include <stdio.h>
  3330. struct stat;
  3331. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3332. struct buf { int x; };
  3333. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3334. static char *e (p, i)
  3335. char **p;
  3336. int i;
  3337. {
  3338. return p[i];
  3339. }
  3340. static char *f (char * (*g) (char **, int), char **p, ...)
  3341. {
  3342. char *s;
  3343. va_list v;
  3344. va_start (v,p);
  3345. s = g (p, va_arg (v,int));
  3346. va_end (v);
  3347. return s;
  3348. }
  3349. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3350. function prototypes and stuff, but not '\xHH' hex character constants.
  3351. These don't provoke an error unfortunately, instead are silently treated
  3352. as 'x'. The following induces an error, until -std is added to get
  3353. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3354. array size at least. It's necessary to write '\x00'==0 to get something
  3355. that's true only with -std. */
  3356. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3357. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3358. inside strings and character constants. */
  3359. #define FOO(x) 'x'
  3360. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3361. int test (int i, double x);
  3362. struct s1 {int (*f) (int a);};
  3363. struct s2 {int (*f) (double a);};
  3364. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3365. int argc;
  3366. char **argv;
  3367. int
  3368. main ()
  3369. {
  3370. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3371. ;
  3372. return 0;
  3373. }
  3374. _ACEOF
  3375. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3376. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3377. do
  3378. CC="$ac_save_CC $ac_arg"
  3379. if ac_fn_c_try_compile "$LINENO"; then :
  3380. ac_cv_prog_cc_c89=$ac_arg
  3381. fi
  3382. rm -f core conftest.err conftest.$ac_objext
  3383. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3384. done
  3385. rm -f conftest.$ac_ext
  3386. CC=$ac_save_CC
  3387. fi
  3388. # AC_CACHE_VAL
  3389. case "x$ac_cv_prog_cc_c89" in
  3390. x)
  3391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3392. $as_echo "none needed" >&6; } ;;
  3393. xno)
  3394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3395. $as_echo "unsupported" >&6; } ;;
  3396. *)
  3397. CC="$CC $ac_cv_prog_cc_c89"
  3398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3399. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3400. esac
  3401. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3402. fi
  3403. ac_ext=c
  3404. ac_cpp='$CPP $CPPFLAGS'
  3405. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3406. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3407. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3408. ac_ext=c
  3409. ac_cpp='$CPP $CPPFLAGS'
  3410. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3411. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3412. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3414. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3415. if ${am_cv_prog_cc_c_o+:} false; then :
  3416. $as_echo_n "(cached) " >&6
  3417. else
  3418. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3419. /* end confdefs.h. */
  3420. int
  3421. main ()
  3422. {
  3423. ;
  3424. return 0;
  3425. }
  3426. _ACEOF
  3427. # Make sure it works both with $CC and with simple cc.
  3428. # Following AC_PROG_CC_C_O, we do the test twice because some
  3429. # compilers refuse to overwrite an existing .o file with -o,
  3430. # though they will create one.
  3431. am_cv_prog_cc_c_o=yes
  3432. for am_i in 1 2; do
  3433. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3434. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3435. ac_status=$?
  3436. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3437. (exit $ac_status); } \
  3438. && test -f conftest2.$ac_objext; then
  3439. : OK
  3440. else
  3441. am_cv_prog_cc_c_o=no
  3442. break
  3443. fi
  3444. done
  3445. rm -f core conftest*
  3446. unset am_i
  3447. fi
  3448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3449. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3450. if test "$am_cv_prog_cc_c_o" != yes; then
  3451. # Losing compiler, so override with the script.
  3452. # FIXME: It is wrong to rewrite CC.
  3453. # But if we don't then we get into trouble of one sort or another.
  3454. # A longer-term fix would be to have automake use am__CC in this case,
  3455. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3456. CC="$am_aux_dir/compile $CC"
  3457. fi
  3458. ac_ext=c
  3459. ac_cpp='$CPP $CPPFLAGS'
  3460. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3461. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3462. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3463. DEPDIR="${am__leading_dot}deps"
  3464. ac_config_commands="$ac_config_commands depfiles"
  3465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
  3466. $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
  3467. cat > confinc.mk << 'END'
  3468. am__doit:
  3469. @echo this is the am__doit target >confinc.out
  3470. .PHONY: am__doit
  3471. END
  3472. am__include="#"
  3473. am__quote=
  3474. # BSD make does it like this.
  3475. echo '.include "confinc.mk" # ignored' > confmf.BSD
  3476. # Other make implementations (GNU, Solaris 10, AIX) do it like this.
  3477. echo 'include confinc.mk # ignored' > confmf.GNU
  3478. _am_result=no
  3479. for s in GNU BSD; do
  3480. { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
  3481. (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
  3482. ac_status=$?
  3483. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3484. (exit $ac_status); }
  3485. case $?:`cat confinc.out 2>/dev/null` in #(
  3486. '0:this is the am__doit target') :
  3487. case $s in #(
  3488. BSD) :
  3489. am__include='.include' am__quote='"' ;; #(
  3490. *) :
  3491. am__include='include' am__quote='' ;;
  3492. esac ;; #(
  3493. *) :
  3494. ;;
  3495. esac
  3496. if test "$am__include" != "#"; then
  3497. _am_result="yes ($s style)"
  3498. break
  3499. fi
  3500. done
  3501. rm -f confinc.* confmf.*
  3502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
  3503. $as_echo "${_am_result}" >&6; }
  3504. # Check whether --enable-dependency-tracking was given.
  3505. if test "${enable_dependency_tracking+set}" = set; then :
  3506. enableval=$enable_dependency_tracking;
  3507. fi
  3508. if test "x$enable_dependency_tracking" != xno; then
  3509. am_depcomp="$ac_aux_dir/depcomp"
  3510. AMDEPBACKSLASH='\'
  3511. am__nodep='_no'
  3512. fi
  3513. if test "x$enable_dependency_tracking" != xno; then
  3514. AMDEP_TRUE=
  3515. AMDEP_FALSE='#'
  3516. else
  3517. AMDEP_TRUE='#'
  3518. AMDEP_FALSE=
  3519. fi
  3520. depcc="$CC" am_compiler_list=
  3521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3522. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3523. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3524. $as_echo_n "(cached) " >&6
  3525. else
  3526. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3527. # We make a subdir and do the tests there. Otherwise we can end up
  3528. # making bogus files that we don't know about and never remove. For
  3529. # instance it was reported that on HP-UX the gcc test will end up
  3530. # making a dummy file named 'D' -- because '-MD' means "put the output
  3531. # in D".
  3532. rm -rf conftest.dir
  3533. mkdir conftest.dir
  3534. # Copy depcomp to subdir because otherwise we won't find it if we're
  3535. # using a relative directory.
  3536. cp "$am_depcomp" conftest.dir
  3537. cd conftest.dir
  3538. # We will build objects and dependencies in a subdirectory because
  3539. # it helps to detect inapplicable dependency modes. For instance
  3540. # both Tru64's cc and ICC support -MD to output dependencies as a
  3541. # side effect of compilation, but ICC will put the dependencies in
  3542. # the current directory while Tru64 will put them in the object
  3543. # directory.
  3544. mkdir sub
  3545. am_cv_CC_dependencies_compiler_type=none
  3546. if test "$am_compiler_list" = ""; then
  3547. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3548. fi
  3549. am__universal=false
  3550. case " $depcc " in #(
  3551. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3552. esac
  3553. for depmode in $am_compiler_list; do
  3554. # Setup a source with many dependencies, because some compilers
  3555. # like to wrap large dependency lists on column 80 (with \), and
  3556. # we should not choose a depcomp mode which is confused by this.
  3557. #
  3558. # We need to recreate these files for each test, as the compiler may
  3559. # overwrite some of them when testing with obscure command lines.
  3560. # This happens at least with the AIX C compiler.
  3561. : > sub/conftest.c
  3562. for i in 1 2 3 4 5 6; do
  3563. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3564. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3565. # Solaris 10 /bin/sh.
  3566. echo '/* dummy */' > sub/conftst$i.h
  3567. done
  3568. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3569. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3570. # mode. It turns out that the SunPro C++ compiler does not properly
  3571. # handle '-M -o', and we need to detect this. Also, some Intel
  3572. # versions had trouble with output in subdirs.
  3573. am__obj=sub/conftest.${OBJEXT-o}
  3574. am__minus_obj="-o $am__obj"
  3575. case $depmode in
  3576. gcc)
  3577. # This depmode causes a compiler race in universal mode.
  3578. test "$am__universal" = false || continue
  3579. ;;
  3580. nosideeffect)
  3581. # After this tag, mechanisms are not by side-effect, so they'll
  3582. # only be used when explicitly requested.
  3583. if test "x$enable_dependency_tracking" = xyes; then
  3584. continue
  3585. else
  3586. break
  3587. fi
  3588. ;;
  3589. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3590. # This compiler won't grok '-c -o', but also, the minuso test has
  3591. # not run yet. These depmodes are late enough in the game, and
  3592. # so weak that their functioning should not be impacted.
  3593. am__obj=conftest.${OBJEXT-o}
  3594. am__minus_obj=
  3595. ;;
  3596. none) break ;;
  3597. esac
  3598. if depmode=$depmode \
  3599. source=sub/conftest.c object=$am__obj \
  3600. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3601. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3602. >/dev/null 2>conftest.err &&
  3603. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3604. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3605. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3606. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3607. # icc doesn't choke on unknown options, it will just issue warnings
  3608. # or remarks (even with -Werror). So we grep stderr for any message
  3609. # that says an option was ignored or not supported.
  3610. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3611. # icc: Command line warning: ignoring option '-M'; no argument required
  3612. # The diagnosis changed in icc 8.0:
  3613. # icc: Command line remark: option '-MP' not supported
  3614. if (grep 'ignoring option' conftest.err ||
  3615. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3616. am_cv_CC_dependencies_compiler_type=$depmode
  3617. break
  3618. fi
  3619. fi
  3620. done
  3621. cd ..
  3622. rm -rf conftest.dir
  3623. else
  3624. am_cv_CC_dependencies_compiler_type=none
  3625. fi
  3626. fi
  3627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3628. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3629. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3630. if
  3631. test "x$enable_dependency_tracking" != xno \
  3632. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3633. am__fastdepCC_TRUE=
  3634. am__fastdepCC_FALSE='#'
  3635. else
  3636. am__fastdepCC_TRUE='#'
  3637. am__fastdepCC_FALSE=
  3638. fi
  3639. # By default we simply use the C compiler to build assembly code.
  3640. test "${CCAS+set}" = set || CCAS=$CC
  3641. test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  3642. depcc="$CCAS" am_compiler_list=
  3643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3644. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3645. if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
  3646. $as_echo_n "(cached) " >&6
  3647. else
  3648. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3649. # We make a subdir and do the tests there. Otherwise we can end up
  3650. # making bogus files that we don't know about and never remove. For
  3651. # instance it was reported that on HP-UX the gcc test will end up
  3652. # making a dummy file named 'D' -- because '-MD' means "put the output
  3653. # in D".
  3654. rm -rf conftest.dir
  3655. mkdir conftest.dir
  3656. # Copy depcomp to subdir because otherwise we won't find it if we're
  3657. # using a relative directory.
  3658. cp "$am_depcomp" conftest.dir
  3659. cd conftest.dir
  3660. # We will build objects and dependencies in a subdirectory because
  3661. # it helps to detect inapplicable dependency modes. For instance
  3662. # both Tru64's cc and ICC support -MD to output dependencies as a
  3663. # side effect of compilation, but ICC will put the dependencies in
  3664. # the current directory while Tru64 will put them in the object
  3665. # directory.
  3666. mkdir sub
  3667. am_cv_CCAS_dependencies_compiler_type=none
  3668. if test "$am_compiler_list" = ""; then
  3669. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3670. fi
  3671. am__universal=false
  3672. for depmode in $am_compiler_list; do
  3673. # Setup a source with many dependencies, because some compilers
  3674. # like to wrap large dependency lists on column 80 (with \), and
  3675. # we should not choose a depcomp mode which is confused by this.
  3676. #
  3677. # We need to recreate these files for each test, as the compiler may
  3678. # overwrite some of them when testing with obscure command lines.
  3679. # This happens at least with the AIX C compiler.
  3680. : > sub/conftest.c
  3681. for i in 1 2 3 4 5 6; do
  3682. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3683. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3684. # Solaris 10 /bin/sh.
  3685. echo '/* dummy */' > sub/conftst$i.h
  3686. done
  3687. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3688. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3689. # mode. It turns out that the SunPro C++ compiler does not properly
  3690. # handle '-M -o', and we need to detect this. Also, some Intel
  3691. # versions had trouble with output in subdirs.
  3692. am__obj=sub/conftest.${OBJEXT-o}
  3693. am__minus_obj="-o $am__obj"
  3694. case $depmode in
  3695. gcc)
  3696. # This depmode causes a compiler race in universal mode.
  3697. test "$am__universal" = false || continue
  3698. ;;
  3699. nosideeffect)
  3700. # After this tag, mechanisms are not by side-effect, so they'll
  3701. # only be used when explicitly requested.
  3702. if test "x$enable_dependency_tracking" = xyes; then
  3703. continue
  3704. else
  3705. break
  3706. fi
  3707. ;;
  3708. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3709. # This compiler won't grok '-c -o', but also, the minuso test has
  3710. # not run yet. These depmodes are late enough in the game, and
  3711. # so weak that their functioning should not be impacted.
  3712. am__obj=conftest.${OBJEXT-o}
  3713. am__minus_obj=
  3714. ;;
  3715. none) break ;;
  3716. esac
  3717. if depmode=$depmode \
  3718. source=sub/conftest.c object=$am__obj \
  3719. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3720. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3721. >/dev/null 2>conftest.err &&
  3722. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3723. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3724. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3725. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3726. # icc doesn't choke on unknown options, it will just issue warnings
  3727. # or remarks (even with -Werror). So we grep stderr for any message
  3728. # that says an option was ignored or not supported.
  3729. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3730. # icc: Command line warning: ignoring option '-M'; no argument required
  3731. # The diagnosis changed in icc 8.0:
  3732. # icc: Command line remark: option '-MP' not supported
  3733. if (grep 'ignoring option' conftest.err ||
  3734. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3735. am_cv_CCAS_dependencies_compiler_type=$depmode
  3736. break
  3737. fi
  3738. fi
  3739. done
  3740. cd ..
  3741. rm -rf conftest.dir
  3742. else
  3743. am_cv_CCAS_dependencies_compiler_type=none
  3744. fi
  3745. fi
  3746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
  3747. $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
  3748. CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
  3749. if
  3750. test "x$enable_dependency_tracking" != xno \
  3751. && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
  3752. am__fastdepCCAS_TRUE=
  3753. am__fastdepCCAS_FALSE='#'
  3754. else
  3755. am__fastdepCCAS_TRUE='#'
  3756. am__fastdepCCAS_FALSE=
  3757. fi
  3758. # Make sure we can run config.sub.
  3759. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3760. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3762. $as_echo_n "checking build system type... " >&6; }
  3763. if ${ac_cv_build+:} false; then :
  3764. $as_echo_n "(cached) " >&6
  3765. else
  3766. ac_build_alias=$build_alias
  3767. test "x$ac_build_alias" = x &&
  3768. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3769. test "x$ac_build_alias" = x &&
  3770. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3771. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3772. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3773. fi
  3774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3775. $as_echo "$ac_cv_build" >&6; }
  3776. case $ac_cv_build in
  3777. *-*-*) ;;
  3778. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3779. esac
  3780. build=$ac_cv_build
  3781. ac_save_IFS=$IFS; IFS='-'
  3782. set x $ac_cv_build
  3783. shift
  3784. build_cpu=$1
  3785. build_vendor=$2
  3786. shift; shift
  3787. # Remember, the first character of IFS is used to create $*,
  3788. # except with old shells:
  3789. build_os=$*
  3790. IFS=$ac_save_IFS
  3791. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3793. $as_echo_n "checking host system type... " >&6; }
  3794. if ${ac_cv_host+:} false; then :
  3795. $as_echo_n "(cached) " >&6
  3796. else
  3797. if test "x$host_alias" = x; then
  3798. ac_cv_host=$ac_cv_build
  3799. else
  3800. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3801. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3802. fi
  3803. fi
  3804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3805. $as_echo "$ac_cv_host" >&6; }
  3806. case $ac_cv_host in
  3807. *-*-*) ;;
  3808. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3809. esac
  3810. host=$ac_cv_host
  3811. ac_save_IFS=$IFS; IFS='-'
  3812. set x $ac_cv_host
  3813. shift
  3814. host_cpu=$1
  3815. host_vendor=$2
  3816. shift; shift
  3817. # Remember, the first character of IFS is used to create $*,
  3818. # except with old shells:
  3819. host_os=$*
  3820. IFS=$ac_save_IFS
  3821. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3823. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3824. if ${ac_cv_path_SED+:} false; then :
  3825. $as_echo_n "(cached) " >&6
  3826. else
  3827. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3828. for ac_i in 1 2 3 4 5 6 7; do
  3829. ac_script="$ac_script$as_nl$ac_script"
  3830. done
  3831. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3832. { ac_script=; unset ac_script;}
  3833. if test -z "$SED"; then
  3834. ac_path_SED_found=false
  3835. # Loop through the user's path and test for each of PROGNAME-LIST
  3836. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3837. for as_dir in $PATH
  3838. do
  3839. IFS=$as_save_IFS
  3840. test -z "$as_dir" && as_dir=.
  3841. for ac_prog in sed gsed; do
  3842. for ac_exec_ext in '' $ac_executable_extensions; do
  3843. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3844. as_fn_executable_p "$ac_path_SED" || continue
  3845. # Check for GNU ac_path_SED and select it if it is found.
  3846. # Check for GNU $ac_path_SED
  3847. case `"$ac_path_SED" --version 2>&1` in
  3848. *GNU*)
  3849. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3850. *)
  3851. ac_count=0
  3852. $as_echo_n 0123456789 >"conftest.in"
  3853. while :
  3854. do
  3855. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3856. mv "conftest.tmp" "conftest.in"
  3857. cp "conftest.in" "conftest.nl"
  3858. $as_echo '' >> "conftest.nl"
  3859. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3860. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3861. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3862. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3863. # Best one so far, save it but keep looking for a better one
  3864. ac_cv_path_SED="$ac_path_SED"
  3865. ac_path_SED_max=$ac_count
  3866. fi
  3867. # 10*(2^10) chars as input seems more than enough
  3868. test $ac_count -gt 10 && break
  3869. done
  3870. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3871. esac
  3872. $ac_path_SED_found && break 3
  3873. done
  3874. done
  3875. done
  3876. IFS=$as_save_IFS
  3877. if test -z "$ac_cv_path_SED"; then
  3878. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3879. fi
  3880. else
  3881. ac_cv_path_SED=$SED
  3882. fi
  3883. fi
  3884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3885. $as_echo "$ac_cv_path_SED" >&6; }
  3886. SED="$ac_cv_path_SED"
  3887. rm -f conftest.sed
  3888. test -z "$SED" && SED=sed
  3889. Xsed="$SED -e 1s/^X//"
  3890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3891. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3892. if ${ac_cv_path_GREP+:} false; then :
  3893. $as_echo_n "(cached) " >&6
  3894. else
  3895. if test -z "$GREP"; then
  3896. ac_path_GREP_found=false
  3897. # Loop through the user's path and test for each of PROGNAME-LIST
  3898. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3899. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3900. do
  3901. IFS=$as_save_IFS
  3902. test -z "$as_dir" && as_dir=.
  3903. for ac_prog in grep ggrep; do
  3904. for ac_exec_ext in '' $ac_executable_extensions; do
  3905. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3906. as_fn_executable_p "$ac_path_GREP" || continue
  3907. # Check for GNU ac_path_GREP and select it if it is found.
  3908. # Check for GNU $ac_path_GREP
  3909. case `"$ac_path_GREP" --version 2>&1` in
  3910. *GNU*)
  3911. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3912. *)
  3913. ac_count=0
  3914. $as_echo_n 0123456789 >"conftest.in"
  3915. while :
  3916. do
  3917. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3918. mv "conftest.tmp" "conftest.in"
  3919. cp "conftest.in" "conftest.nl"
  3920. $as_echo 'GREP' >> "conftest.nl"
  3921. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3922. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3923. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3924. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3925. # Best one so far, save it but keep looking for a better one
  3926. ac_cv_path_GREP="$ac_path_GREP"
  3927. ac_path_GREP_max=$ac_count
  3928. fi
  3929. # 10*(2^10) chars as input seems more than enough
  3930. test $ac_count -gt 10 && break
  3931. done
  3932. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3933. esac
  3934. $ac_path_GREP_found && break 3
  3935. done
  3936. done
  3937. done
  3938. IFS=$as_save_IFS
  3939. if test -z "$ac_cv_path_GREP"; then
  3940. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3941. fi
  3942. else
  3943. ac_cv_path_GREP=$GREP
  3944. fi
  3945. fi
  3946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3947. $as_echo "$ac_cv_path_GREP" >&6; }
  3948. GREP="$ac_cv_path_GREP"
  3949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3950. $as_echo_n "checking for egrep... " >&6; }
  3951. if ${ac_cv_path_EGREP+:} false; then :
  3952. $as_echo_n "(cached) " >&6
  3953. else
  3954. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3955. then ac_cv_path_EGREP="$GREP -E"
  3956. else
  3957. if test -z "$EGREP"; then
  3958. ac_path_EGREP_found=false
  3959. # Loop through the user's path and test for each of PROGNAME-LIST
  3960. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3961. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3962. do
  3963. IFS=$as_save_IFS
  3964. test -z "$as_dir" && as_dir=.
  3965. for ac_prog in egrep; do
  3966. for ac_exec_ext in '' $ac_executable_extensions; do
  3967. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3968. as_fn_executable_p "$ac_path_EGREP" || continue
  3969. # Check for GNU ac_path_EGREP and select it if it is found.
  3970. # Check for GNU $ac_path_EGREP
  3971. case `"$ac_path_EGREP" --version 2>&1` in
  3972. *GNU*)
  3973. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3974. *)
  3975. ac_count=0
  3976. $as_echo_n 0123456789 >"conftest.in"
  3977. while :
  3978. do
  3979. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3980. mv "conftest.tmp" "conftest.in"
  3981. cp "conftest.in" "conftest.nl"
  3982. $as_echo 'EGREP' >> "conftest.nl"
  3983. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3984. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3985. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3986. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3987. # Best one so far, save it but keep looking for a better one
  3988. ac_cv_path_EGREP="$ac_path_EGREP"
  3989. ac_path_EGREP_max=$ac_count
  3990. fi
  3991. # 10*(2^10) chars as input seems more than enough
  3992. test $ac_count -gt 10 && break
  3993. done
  3994. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3995. esac
  3996. $ac_path_EGREP_found && break 3
  3997. done
  3998. done
  3999. done
  4000. IFS=$as_save_IFS
  4001. if test -z "$ac_cv_path_EGREP"; then
  4002. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4003. fi
  4004. else
  4005. ac_cv_path_EGREP=$EGREP
  4006. fi
  4007. fi
  4008. fi
  4009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4010. $as_echo "$ac_cv_path_EGREP" >&6; }
  4011. EGREP="$ac_cv_path_EGREP"
  4012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4013. $as_echo_n "checking for fgrep... " >&6; }
  4014. if ${ac_cv_path_FGREP+:} false; then :
  4015. $as_echo_n "(cached) " >&6
  4016. else
  4017. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4018. then ac_cv_path_FGREP="$GREP -F"
  4019. else
  4020. if test -z "$FGREP"; then
  4021. ac_path_FGREP_found=false
  4022. # Loop through the user's path and test for each of PROGNAME-LIST
  4023. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4024. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4025. do
  4026. IFS=$as_save_IFS
  4027. test -z "$as_dir" && as_dir=.
  4028. for ac_prog in fgrep; do
  4029. for ac_exec_ext in '' $ac_executable_extensions; do
  4030. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4031. as_fn_executable_p "$ac_path_FGREP" || continue
  4032. # Check for GNU ac_path_FGREP and select it if it is found.
  4033. # Check for GNU $ac_path_FGREP
  4034. case `"$ac_path_FGREP" --version 2>&1` in
  4035. *GNU*)
  4036. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4037. *)
  4038. ac_count=0
  4039. $as_echo_n 0123456789 >"conftest.in"
  4040. while :
  4041. do
  4042. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4043. mv "conftest.tmp" "conftest.in"
  4044. cp "conftest.in" "conftest.nl"
  4045. $as_echo 'FGREP' >> "conftest.nl"
  4046. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4047. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4048. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4049. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4050. # Best one so far, save it but keep looking for a better one
  4051. ac_cv_path_FGREP="$ac_path_FGREP"
  4052. ac_path_FGREP_max=$ac_count
  4053. fi
  4054. # 10*(2^10) chars as input seems more than enough
  4055. test $ac_count -gt 10 && break
  4056. done
  4057. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4058. esac
  4059. $ac_path_FGREP_found && break 3
  4060. done
  4061. done
  4062. done
  4063. IFS=$as_save_IFS
  4064. if test -z "$ac_cv_path_FGREP"; then
  4065. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4066. fi
  4067. else
  4068. ac_cv_path_FGREP=$FGREP
  4069. fi
  4070. fi
  4071. fi
  4072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4073. $as_echo "$ac_cv_path_FGREP" >&6; }
  4074. FGREP="$ac_cv_path_FGREP"
  4075. test -z "$GREP" && GREP=grep
  4076. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4077. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4078. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4080. $as_echo_n "checking how to print strings... " >&6; }
  4081. # Test print first, because it will be a builtin if present.
  4082. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4083. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4084. ECHO='print -r --'
  4085. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4086. ECHO='printf %s\n'
  4087. else
  4088. # Use this function as a fallback that always works.
  4089. func_fallback_echo ()
  4090. {
  4091. eval 'cat <<_LTECHO_EOF
  4092. $1
  4093. _LTECHO_EOF'
  4094. }
  4095. ECHO='func_fallback_echo'
  4096. fi
  4097. # func_echo_all arg...
  4098. # Invoke $ECHO with all args, space-separated.
  4099. func_echo_all ()
  4100. {
  4101. $ECHO ""
  4102. }
  4103. case $ECHO in
  4104. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4105. $as_echo "printf" >&6; } ;;
  4106. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4107. $as_echo "print -r" >&6; } ;;
  4108. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4109. $as_echo "cat" >&6; } ;;
  4110. esac
  4111. # Check whether --with-gnu-ld was given.
  4112. if test "${with_gnu_ld+set}" = set; then :
  4113. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4114. else
  4115. with_gnu_ld=no
  4116. fi
  4117. ac_prog=ld
  4118. if test yes = "$GCC"; then
  4119. # Check if gcc -print-prog-name=ld gives a path.
  4120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4121. $as_echo_n "checking for ld used by $CC... " >&6; }
  4122. case $host in
  4123. *-*-mingw*)
  4124. # gcc leaves a trailing carriage return, which upsets mingw
  4125. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4126. *)
  4127. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4128. esac
  4129. case $ac_prog in
  4130. # Accept absolute paths.
  4131. [\\/]* | ?:[\\/]*)
  4132. re_direlt='/[^/][^/]*/\.\./'
  4133. # Canonicalize the pathname of ld
  4134. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4135. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4136. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4137. done
  4138. test -z "$LD" && LD=$ac_prog
  4139. ;;
  4140. "")
  4141. # If it fails, then pretend we aren't using GCC.
  4142. ac_prog=ld
  4143. ;;
  4144. *)
  4145. # If it is relative, then search for the first ld in PATH.
  4146. with_gnu_ld=unknown
  4147. ;;
  4148. esac
  4149. elif test yes = "$with_gnu_ld"; then
  4150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4151. $as_echo_n "checking for GNU ld... " >&6; }
  4152. else
  4153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4154. $as_echo_n "checking for non-GNU ld... " >&6; }
  4155. fi
  4156. if ${lt_cv_path_LD+:} false; then :
  4157. $as_echo_n "(cached) " >&6
  4158. else
  4159. if test -z "$LD"; then
  4160. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4161. for ac_dir in $PATH; do
  4162. IFS=$lt_save_ifs
  4163. test -z "$ac_dir" && ac_dir=.
  4164. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4165. lt_cv_path_LD=$ac_dir/$ac_prog
  4166. # Check to see if the program is GNU ld. I'd rather use --version,
  4167. # but apparently some variants of GNU ld only accept -v.
  4168. # Break only if it was the GNU/non-GNU ld that we prefer.
  4169. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4170. *GNU* | *'with BFD'*)
  4171. test no != "$with_gnu_ld" && break
  4172. ;;
  4173. *)
  4174. test yes != "$with_gnu_ld" && break
  4175. ;;
  4176. esac
  4177. fi
  4178. done
  4179. IFS=$lt_save_ifs
  4180. else
  4181. lt_cv_path_LD=$LD # Let the user override the test with a path.
  4182. fi
  4183. fi
  4184. LD=$lt_cv_path_LD
  4185. if test -n "$LD"; then
  4186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4187. $as_echo "$LD" >&6; }
  4188. else
  4189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4190. $as_echo "no" >&6; }
  4191. fi
  4192. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4194. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4195. if ${lt_cv_prog_gnu_ld+:} false; then :
  4196. $as_echo_n "(cached) " >&6
  4197. else
  4198. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4199. case `$LD -v 2>&1 </dev/null` in
  4200. *GNU* | *'with BFD'*)
  4201. lt_cv_prog_gnu_ld=yes
  4202. ;;
  4203. *)
  4204. lt_cv_prog_gnu_ld=no
  4205. ;;
  4206. esac
  4207. fi
  4208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4209. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4210. with_gnu_ld=$lt_cv_prog_gnu_ld
  4211. ac_ext=c
  4212. ac_cpp='$CPP $CPPFLAGS'
  4213. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4214. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4215. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4217. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4218. # On Suns, sometimes $CPP names a directory.
  4219. if test -n "$CPP" && test -d "$CPP"; then
  4220. CPP=
  4221. fi
  4222. if test -z "$CPP"; then
  4223. if ${ac_cv_prog_CPP+:} false; then :
  4224. $as_echo_n "(cached) " >&6
  4225. else
  4226. # Double quotes because CPP needs to be expanded
  4227. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4228. do
  4229. ac_preproc_ok=false
  4230. for ac_c_preproc_warn_flag in '' yes
  4231. do
  4232. # Use a header file that comes with gcc, so configuring glibc
  4233. # with a fresh cross-compiler works.
  4234. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4235. # <limits.h> exists even on freestanding compilers.
  4236. # On the NeXT, cc -E runs the code through the compiler's parser,
  4237. # not just through cpp. "Syntax error" is here to catch this case.
  4238. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4239. /* end confdefs.h. */
  4240. #ifdef __STDC__
  4241. # include <limits.h>
  4242. #else
  4243. # include <assert.h>
  4244. #endif
  4245. Syntax error
  4246. _ACEOF
  4247. if ac_fn_c_try_cpp "$LINENO"; then :
  4248. else
  4249. # Broken: fails on valid input.
  4250. continue
  4251. fi
  4252. rm -f conftest.err conftest.i conftest.$ac_ext
  4253. # OK, works on sane cases. Now check whether nonexistent headers
  4254. # can be detected and how.
  4255. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4256. /* end confdefs.h. */
  4257. #include <ac_nonexistent.h>
  4258. _ACEOF
  4259. if ac_fn_c_try_cpp "$LINENO"; then :
  4260. # Broken: success on invalid input.
  4261. continue
  4262. else
  4263. # Passes both tests.
  4264. ac_preproc_ok=:
  4265. break
  4266. fi
  4267. rm -f conftest.err conftest.i conftest.$ac_ext
  4268. done
  4269. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4270. rm -f conftest.i conftest.err conftest.$ac_ext
  4271. if $ac_preproc_ok; then :
  4272. break
  4273. fi
  4274. done
  4275. ac_cv_prog_CPP=$CPP
  4276. fi
  4277. CPP=$ac_cv_prog_CPP
  4278. else
  4279. ac_cv_prog_CPP=$CPP
  4280. fi
  4281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4282. $as_echo "$CPP" >&6; }
  4283. ac_preproc_ok=false
  4284. for ac_c_preproc_warn_flag in '' yes
  4285. do
  4286. # Use a header file that comes with gcc, so configuring glibc
  4287. # with a fresh cross-compiler works.
  4288. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4289. # <limits.h> exists even on freestanding compilers.
  4290. # On the NeXT, cc -E runs the code through the compiler's parser,
  4291. # not just through cpp. "Syntax error" is here to catch this case.
  4292. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4293. /* end confdefs.h. */
  4294. #ifdef __STDC__
  4295. # include <limits.h>
  4296. #else
  4297. # include <assert.h>
  4298. #endif
  4299. Syntax error
  4300. _ACEOF
  4301. if ac_fn_c_try_cpp "$LINENO"; then :
  4302. else
  4303. # Broken: fails on valid input.
  4304. continue
  4305. fi
  4306. rm -f conftest.err conftest.i conftest.$ac_ext
  4307. # OK, works on sane cases. Now check whether nonexistent headers
  4308. # can be detected and how.
  4309. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4310. /* end confdefs.h. */
  4311. #include <ac_nonexistent.h>
  4312. _ACEOF
  4313. if ac_fn_c_try_cpp "$LINENO"; then :
  4314. # Broken: success on invalid input.
  4315. continue
  4316. else
  4317. # Passes both tests.
  4318. ac_preproc_ok=:
  4319. break
  4320. fi
  4321. rm -f conftest.err conftest.i conftest.$ac_ext
  4322. done
  4323. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4324. rm -f conftest.i conftest.err conftest.$ac_ext
  4325. if $ac_preproc_ok; then :
  4326. else
  4327. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4328. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4329. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4330. See \`config.log' for more details" "$LINENO" 5; }
  4331. fi
  4332. ac_ext=c
  4333. ac_cpp='$CPP $CPPFLAGS'
  4334. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4335. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4336. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4337. for ac_prog in gawk mawk nawk awk
  4338. do
  4339. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4340. set dummy $ac_prog; ac_word=$2
  4341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4342. $as_echo_n "checking for $ac_word... " >&6; }
  4343. if ${ac_cv_prog_AWK+:} false; then :
  4344. $as_echo_n "(cached) " >&6
  4345. else
  4346. if test -n "$AWK"; then
  4347. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4348. else
  4349. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4350. for as_dir in $PATH
  4351. do
  4352. IFS=$as_save_IFS
  4353. test -z "$as_dir" && as_dir=.
  4354. for ac_exec_ext in '' $ac_executable_extensions; do
  4355. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4356. ac_cv_prog_AWK="$ac_prog"
  4357. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4358. break 2
  4359. fi
  4360. done
  4361. done
  4362. IFS=$as_save_IFS
  4363. fi
  4364. fi
  4365. AWK=$ac_cv_prog_AWK
  4366. if test -n "$AWK"; then
  4367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4368. $as_echo "$AWK" >&6; }
  4369. else
  4370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4371. $as_echo "no" >&6; }
  4372. fi
  4373. test -n "$AWK" && break
  4374. done
  4375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4376. $as_echo_n "checking whether ln -s works... " >&6; }
  4377. LN_S=$as_ln_s
  4378. if test "$LN_S" = "ln -s"; then
  4379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4380. $as_echo "yes" >&6; }
  4381. else
  4382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4383. $as_echo "no, using $LN_S" >&6; }
  4384. fi
  4385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  4386. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  4387. set x ${MAKE-make}
  4388. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  4389. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  4390. $as_echo_n "(cached) " >&6
  4391. else
  4392. cat >conftest.make <<\_ACEOF
  4393. SHELL = /bin/sh
  4394. all:
  4395. @echo '@@@%%%=$(MAKE)=@@@%%%'
  4396. _ACEOF
  4397. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  4398. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  4399. *@@@%%%=?*=@@@%%%*)
  4400. eval ac_cv_prog_make_${ac_make}_set=yes;;
  4401. *)
  4402. eval ac_cv_prog_make_${ac_make}_set=no;;
  4403. esac
  4404. rm -f conftest.make
  4405. fi
  4406. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  4407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4408. $as_echo "yes" >&6; }
  4409. SET_MAKE=
  4410. else
  4411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4412. $as_echo "no" >&6; }
  4413. SET_MAKE="MAKE=${MAKE-make}"
  4414. fi
  4415. case `pwd` in
  4416. *\ * | *\ *)
  4417. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4418. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4419. esac
  4420. macro_version='2.4.6'
  4421. macro_revision='2.4.6'
  4422. ltmain=$ac_aux_dir/ltmain.sh
  4423. # Backslashify metacharacters that are still active within
  4424. # double-quoted strings.
  4425. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4426. # Same as above, but do not quote variable references.
  4427. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4428. # Sed substitution to delay expansion of an escaped shell variable in a
  4429. # double_quote_subst'ed string.
  4430. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4431. # Sed substitution to delay expansion of an escaped single quote.
  4432. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4433. # Sed substitution to avoid accidental globbing in evaled expressions
  4434. no_glob_subst='s/\*/\\\*/g'
  4435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4436. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4437. if ${lt_cv_path_NM+:} false; then :
  4438. $as_echo_n "(cached) " >&6
  4439. else
  4440. if test -n "$NM"; then
  4441. # Let the user override the test.
  4442. lt_cv_path_NM=$NM
  4443. else
  4444. lt_nm_to_check=${ac_tool_prefix}nm
  4445. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4446. lt_nm_to_check="$lt_nm_to_check nm"
  4447. fi
  4448. for lt_tmp_nm in $lt_nm_to_check; do
  4449. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4450. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4451. IFS=$lt_save_ifs
  4452. test -z "$ac_dir" && ac_dir=.
  4453. tmp_nm=$ac_dir/$lt_tmp_nm
  4454. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  4455. # Check to see if the nm accepts a BSD-compat flag.
  4456. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  4457. # nm: unknown option "B" ignored
  4458. # Tru64's nm complains that /dev/null is an invalid object file
  4459. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  4460. case $build_os in
  4461. mingw*) lt_bad_file=conftest.nm/nofile ;;
  4462. *) lt_bad_file=/dev/null ;;
  4463. esac
  4464. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  4465. *$lt_bad_file* | *'Invalid file or object type'*)
  4466. lt_cv_path_NM="$tmp_nm -B"
  4467. break 2
  4468. ;;
  4469. *)
  4470. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4471. */dev/null*)
  4472. lt_cv_path_NM="$tmp_nm -p"
  4473. break 2
  4474. ;;
  4475. *)
  4476. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4477. continue # so that we can try to find one that supports BSD flags
  4478. ;;
  4479. esac
  4480. ;;
  4481. esac
  4482. fi
  4483. done
  4484. IFS=$lt_save_ifs
  4485. done
  4486. : ${lt_cv_path_NM=no}
  4487. fi
  4488. fi
  4489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4490. $as_echo "$lt_cv_path_NM" >&6; }
  4491. if test no != "$lt_cv_path_NM"; then
  4492. NM=$lt_cv_path_NM
  4493. else
  4494. # Didn't find any BSD compatible name lister, look for dumpbin.
  4495. if test -n "$DUMPBIN"; then :
  4496. # Let the user override the test.
  4497. else
  4498. if test -n "$ac_tool_prefix"; then
  4499. for ac_prog in dumpbin "link -dump"
  4500. do
  4501. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4502. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4504. $as_echo_n "checking for $ac_word... " >&6; }
  4505. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4506. $as_echo_n "(cached) " >&6
  4507. else
  4508. if test -n "$DUMPBIN"; then
  4509. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4510. else
  4511. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4512. for as_dir in $PATH
  4513. do
  4514. IFS=$as_save_IFS
  4515. test -z "$as_dir" && as_dir=.
  4516. for ac_exec_ext in '' $ac_executable_extensions; do
  4517. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4518. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4519. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4520. break 2
  4521. fi
  4522. done
  4523. done
  4524. IFS=$as_save_IFS
  4525. fi
  4526. fi
  4527. DUMPBIN=$ac_cv_prog_DUMPBIN
  4528. if test -n "$DUMPBIN"; then
  4529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4530. $as_echo "$DUMPBIN" >&6; }
  4531. else
  4532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4533. $as_echo "no" >&6; }
  4534. fi
  4535. test -n "$DUMPBIN" && break
  4536. done
  4537. fi
  4538. if test -z "$DUMPBIN"; then
  4539. ac_ct_DUMPBIN=$DUMPBIN
  4540. for ac_prog in dumpbin "link -dump"
  4541. do
  4542. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4543. set dummy $ac_prog; ac_word=$2
  4544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4545. $as_echo_n "checking for $ac_word... " >&6; }
  4546. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4547. $as_echo_n "(cached) " >&6
  4548. else
  4549. if test -n "$ac_ct_DUMPBIN"; then
  4550. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4551. else
  4552. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4553. for as_dir in $PATH
  4554. do
  4555. IFS=$as_save_IFS
  4556. test -z "$as_dir" && as_dir=.
  4557. for ac_exec_ext in '' $ac_executable_extensions; do
  4558. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4559. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4560. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4561. break 2
  4562. fi
  4563. done
  4564. done
  4565. IFS=$as_save_IFS
  4566. fi
  4567. fi
  4568. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4569. if test -n "$ac_ct_DUMPBIN"; then
  4570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4571. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4572. else
  4573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4574. $as_echo "no" >&6; }
  4575. fi
  4576. test -n "$ac_ct_DUMPBIN" && break
  4577. done
  4578. if test "x$ac_ct_DUMPBIN" = x; then
  4579. DUMPBIN=":"
  4580. else
  4581. case $cross_compiling:$ac_tool_warned in
  4582. yes:)
  4583. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4584. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4585. ac_tool_warned=yes ;;
  4586. esac
  4587. DUMPBIN=$ac_ct_DUMPBIN
  4588. fi
  4589. fi
  4590. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4591. *COFF*)
  4592. DUMPBIN="$DUMPBIN -symbols -headers"
  4593. ;;
  4594. *)
  4595. DUMPBIN=:
  4596. ;;
  4597. esac
  4598. fi
  4599. if test : != "$DUMPBIN"; then
  4600. NM=$DUMPBIN
  4601. fi
  4602. fi
  4603. test -z "$NM" && NM=nm
  4604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4605. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4606. if ${lt_cv_nm_interface+:} false; then :
  4607. $as_echo_n "(cached) " >&6
  4608. else
  4609. lt_cv_nm_interface="BSD nm"
  4610. echo "int some_variable = 0;" > conftest.$ac_ext
  4611. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4612. (eval "$ac_compile" 2>conftest.err)
  4613. cat conftest.err >&5
  4614. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4615. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4616. cat conftest.err >&5
  4617. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4618. cat conftest.out >&5
  4619. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4620. lt_cv_nm_interface="MS dumpbin"
  4621. fi
  4622. rm -f conftest*
  4623. fi
  4624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4625. $as_echo "$lt_cv_nm_interface" >&6; }
  4626. # find the maximum length of command line arguments
  4627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4628. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4629. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4630. $as_echo_n "(cached) " >&6
  4631. else
  4632. i=0
  4633. teststring=ABCD
  4634. case $build_os in
  4635. msdosdjgpp*)
  4636. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4637. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4638. # during glob expansion). Even if it were fixed, the result of this
  4639. # check would be larger than it should be.
  4640. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4641. ;;
  4642. gnu*)
  4643. # Under GNU Hurd, this test is not required because there is
  4644. # no limit to the length of command line arguments.
  4645. # Libtool will interpret -1 as no limit whatsoever
  4646. lt_cv_sys_max_cmd_len=-1;
  4647. ;;
  4648. cygwin* | mingw* | cegcc*)
  4649. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4650. # about 5 minutes as the teststring grows exponentially.
  4651. # Worse, since 9x/ME are not pre-emptively multitasking,
  4652. # you end up with a "frozen" computer, even though with patience
  4653. # the test eventually succeeds (with a max line length of 256k).
  4654. # Instead, let's just punt: use the minimum linelength reported by
  4655. # all of the supported platforms: 8192 (on NT/2K/XP).
  4656. lt_cv_sys_max_cmd_len=8192;
  4657. ;;
  4658. mint*)
  4659. # On MiNT this can take a long time and run out of memory.
  4660. lt_cv_sys_max_cmd_len=8192;
  4661. ;;
  4662. amigaos*)
  4663. # On AmigaOS with pdksh, this test takes hours, literally.
  4664. # So we just punt and use a minimum line length of 8192.
  4665. lt_cv_sys_max_cmd_len=8192;
  4666. ;;
  4667. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  4668. # This has been around since 386BSD, at least. Likely further.
  4669. if test -x /sbin/sysctl; then
  4670. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4671. elif test -x /usr/sbin/sysctl; then
  4672. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4673. else
  4674. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4675. fi
  4676. # And add a safety zone
  4677. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4678. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4679. ;;
  4680. interix*)
  4681. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4682. lt_cv_sys_max_cmd_len=196608
  4683. ;;
  4684. os2*)
  4685. # The test takes a long time on OS/2.
  4686. lt_cv_sys_max_cmd_len=8192
  4687. ;;
  4688. osf*)
  4689. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4690. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4691. # nice to cause kernel panics so lets avoid the loop below.
  4692. # First set a reasonable default.
  4693. lt_cv_sys_max_cmd_len=16384
  4694. #
  4695. if test -x /sbin/sysconfig; then
  4696. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4697. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4698. esac
  4699. fi
  4700. ;;
  4701. sco3.2v5*)
  4702. lt_cv_sys_max_cmd_len=102400
  4703. ;;
  4704. sysv5* | sco5v6* | sysv4.2uw2*)
  4705. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4706. if test -n "$kargmax"; then
  4707. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4708. else
  4709. lt_cv_sys_max_cmd_len=32768
  4710. fi
  4711. ;;
  4712. *)
  4713. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4714. if test -n "$lt_cv_sys_max_cmd_len" && \
  4715. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4716. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4717. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4718. else
  4719. # Make teststring a little bigger before we do anything with it.
  4720. # a 1K string should be a reasonable start.
  4721. for i in 1 2 3 4 5 6 7 8; do
  4722. teststring=$teststring$teststring
  4723. done
  4724. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4725. # If test is not a shell built-in, we'll probably end up computing a
  4726. # maximum length that is only half of the actual maximum length, but
  4727. # we can't tell.
  4728. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4729. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4730. test 17 != "$i" # 1/2 MB should be enough
  4731. do
  4732. i=`expr $i + 1`
  4733. teststring=$teststring$teststring
  4734. done
  4735. # Only check the string length outside the loop.
  4736. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4737. teststring=
  4738. # Add a significant safety factor because C++ compilers can tack on
  4739. # massive amounts of additional arguments before passing them to the
  4740. # linker. It appears as though 1/2 is a usable value.
  4741. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4742. fi
  4743. ;;
  4744. esac
  4745. fi
  4746. if test -n "$lt_cv_sys_max_cmd_len"; then
  4747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4748. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4749. else
  4750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4751. $as_echo "none" >&6; }
  4752. fi
  4753. max_cmd_len=$lt_cv_sys_max_cmd_len
  4754. : ${CP="cp -f"}
  4755. : ${MV="mv -f"}
  4756. : ${RM="rm -f"}
  4757. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4758. lt_unset=unset
  4759. else
  4760. lt_unset=false
  4761. fi
  4762. # test EBCDIC or ASCII
  4763. case `echo X|tr X '\101'` in
  4764. A) # ASCII based system
  4765. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4766. lt_SP2NL='tr \040 \012'
  4767. lt_NL2SP='tr \015\012 \040\040'
  4768. ;;
  4769. *) # EBCDIC based system
  4770. lt_SP2NL='tr \100 \n'
  4771. lt_NL2SP='tr \r\n \100\100'
  4772. ;;
  4773. esac
  4774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4775. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4776. if ${lt_cv_to_host_file_cmd+:} false; then :
  4777. $as_echo_n "(cached) " >&6
  4778. else
  4779. case $host in
  4780. *-*-mingw* )
  4781. case $build in
  4782. *-*-mingw* ) # actually msys
  4783. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4784. ;;
  4785. *-*-cygwin* )
  4786. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4787. ;;
  4788. * ) # otherwise, assume *nix
  4789. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4790. ;;
  4791. esac
  4792. ;;
  4793. *-*-cygwin* )
  4794. case $build in
  4795. *-*-mingw* ) # actually msys
  4796. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4797. ;;
  4798. *-*-cygwin* )
  4799. lt_cv_to_host_file_cmd=func_convert_file_noop
  4800. ;;
  4801. * ) # otherwise, assume *nix
  4802. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4803. ;;
  4804. esac
  4805. ;;
  4806. * ) # unhandled hosts (and "normal" native builds)
  4807. lt_cv_to_host_file_cmd=func_convert_file_noop
  4808. ;;
  4809. esac
  4810. fi
  4811. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4813. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4815. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4816. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4817. $as_echo_n "(cached) " >&6
  4818. else
  4819. #assume ordinary cross tools, or native build.
  4820. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4821. case $host in
  4822. *-*-mingw* )
  4823. case $build in
  4824. *-*-mingw* ) # actually msys
  4825. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4826. ;;
  4827. esac
  4828. ;;
  4829. esac
  4830. fi
  4831. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4833. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4835. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4836. if ${lt_cv_ld_reload_flag+:} false; then :
  4837. $as_echo_n "(cached) " >&6
  4838. else
  4839. lt_cv_ld_reload_flag='-r'
  4840. fi
  4841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4842. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4843. reload_flag=$lt_cv_ld_reload_flag
  4844. case $reload_flag in
  4845. "" | " "*) ;;
  4846. *) reload_flag=" $reload_flag" ;;
  4847. esac
  4848. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4849. case $host_os in
  4850. cygwin* | mingw* | pw32* | cegcc*)
  4851. if test yes != "$GCC"; then
  4852. reload_cmds=false
  4853. fi
  4854. ;;
  4855. darwin*)
  4856. if test yes = "$GCC"; then
  4857. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  4858. else
  4859. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4860. fi
  4861. ;;
  4862. esac
  4863. if test -n "$ac_tool_prefix"; then
  4864. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4865. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4867. $as_echo_n "checking for $ac_word... " >&6; }
  4868. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4869. $as_echo_n "(cached) " >&6
  4870. else
  4871. if test -n "$OBJDUMP"; then
  4872. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4873. else
  4874. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4875. for as_dir in $PATH
  4876. do
  4877. IFS=$as_save_IFS
  4878. test -z "$as_dir" && as_dir=.
  4879. for ac_exec_ext in '' $ac_executable_extensions; do
  4880. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4881. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4882. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4883. break 2
  4884. fi
  4885. done
  4886. done
  4887. IFS=$as_save_IFS
  4888. fi
  4889. fi
  4890. OBJDUMP=$ac_cv_prog_OBJDUMP
  4891. if test -n "$OBJDUMP"; then
  4892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4893. $as_echo "$OBJDUMP" >&6; }
  4894. else
  4895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4896. $as_echo "no" >&6; }
  4897. fi
  4898. fi
  4899. if test -z "$ac_cv_prog_OBJDUMP"; then
  4900. ac_ct_OBJDUMP=$OBJDUMP
  4901. # Extract the first word of "objdump", so it can be a program name with args.
  4902. set dummy objdump; ac_word=$2
  4903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4904. $as_echo_n "checking for $ac_word... " >&6; }
  4905. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4906. $as_echo_n "(cached) " >&6
  4907. else
  4908. if test -n "$ac_ct_OBJDUMP"; then
  4909. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4910. else
  4911. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4912. for as_dir in $PATH
  4913. do
  4914. IFS=$as_save_IFS
  4915. test -z "$as_dir" && as_dir=.
  4916. for ac_exec_ext in '' $ac_executable_extensions; do
  4917. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4918. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4919. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4920. break 2
  4921. fi
  4922. done
  4923. done
  4924. IFS=$as_save_IFS
  4925. fi
  4926. fi
  4927. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4928. if test -n "$ac_ct_OBJDUMP"; then
  4929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4930. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4931. else
  4932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4933. $as_echo "no" >&6; }
  4934. fi
  4935. if test "x$ac_ct_OBJDUMP" = x; then
  4936. OBJDUMP="false"
  4937. else
  4938. case $cross_compiling:$ac_tool_warned in
  4939. yes:)
  4940. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4941. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4942. ac_tool_warned=yes ;;
  4943. esac
  4944. OBJDUMP=$ac_ct_OBJDUMP
  4945. fi
  4946. else
  4947. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4948. fi
  4949. test -z "$OBJDUMP" && OBJDUMP=objdump
  4950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4951. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4952. if ${lt_cv_deplibs_check_method+:} false; then :
  4953. $as_echo_n "(cached) " >&6
  4954. else
  4955. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4956. lt_cv_file_magic_test_file=
  4957. lt_cv_deplibs_check_method='unknown'
  4958. # Need to set the preceding variable on all platforms that support
  4959. # interlibrary dependencies.
  4960. # 'none' -- dependencies not supported.
  4961. # 'unknown' -- same as none, but documents that we really don't know.
  4962. # 'pass_all' -- all dependencies passed with no checks.
  4963. # 'test_compile' -- check by making test program.
  4964. # 'file_magic [[regex]]' -- check by looking for files in library path
  4965. # that responds to the $file_magic_cmd with a given extended regex.
  4966. # If you have 'file' or equivalent on your system and you're not sure
  4967. # whether 'pass_all' will *always* work, you probably want this one.
  4968. case $host_os in
  4969. aix[4-9]*)
  4970. lt_cv_deplibs_check_method=pass_all
  4971. ;;
  4972. beos*)
  4973. lt_cv_deplibs_check_method=pass_all
  4974. ;;
  4975. bsdi[45]*)
  4976. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4977. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4978. lt_cv_file_magic_test_file=/shlib/libc.so
  4979. ;;
  4980. cygwin*)
  4981. # func_win32_libid is a shell function defined in ltmain.sh
  4982. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4983. lt_cv_file_magic_cmd='func_win32_libid'
  4984. ;;
  4985. mingw* | pw32*)
  4986. # Base MSYS/MinGW do not provide the 'file' command needed by
  4987. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4988. # unless we find 'file', for example because we are cross-compiling.
  4989. if ( file / ) >/dev/null 2>&1; then
  4990. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4991. lt_cv_file_magic_cmd='func_win32_libid'
  4992. else
  4993. # Keep this pattern in sync with the one in func_win32_libid.
  4994. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4995. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4996. fi
  4997. ;;
  4998. cegcc*)
  4999. # use the weaker test based on 'objdump'. See mingw*.
  5000. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5001. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5002. ;;
  5003. darwin* | rhapsody*)
  5004. lt_cv_deplibs_check_method=pass_all
  5005. ;;
  5006. freebsd* | dragonfly*)
  5007. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5008. case $host_cpu in
  5009. i*86 )
  5010. # Not sure whether the presence of OpenBSD here was a mistake.
  5011. # Let's accept both of them until this is cleared up.
  5012. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5013. lt_cv_file_magic_cmd=/usr/bin/file
  5014. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5015. ;;
  5016. esac
  5017. else
  5018. lt_cv_deplibs_check_method=pass_all
  5019. fi
  5020. ;;
  5021. haiku*)
  5022. lt_cv_deplibs_check_method=pass_all
  5023. ;;
  5024. hpux10.20* | hpux11*)
  5025. lt_cv_file_magic_cmd=/usr/bin/file
  5026. case $host_cpu in
  5027. ia64*)
  5028. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5029. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5030. ;;
  5031. hppa*64*)
  5032. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  5033. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5034. ;;
  5035. *)
  5036. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5037. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5038. ;;
  5039. esac
  5040. ;;
  5041. interix[3-9]*)
  5042. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5043. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5044. ;;
  5045. irix5* | irix6* | nonstopux*)
  5046. case $LD in
  5047. *-32|*"-32 ") libmagic=32-bit;;
  5048. *-n32|*"-n32 ") libmagic=N32;;
  5049. *-64|*"-64 ") libmagic=64-bit;;
  5050. *) libmagic=never-match;;
  5051. esac
  5052. lt_cv_deplibs_check_method=pass_all
  5053. ;;
  5054. # This must be glibc/ELF.
  5055. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5056. lt_cv_deplibs_check_method=pass_all
  5057. ;;
  5058. netbsd*)
  5059. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5060. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5061. else
  5062. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5063. fi
  5064. ;;
  5065. newos6*)
  5066. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5067. lt_cv_file_magic_cmd=/usr/bin/file
  5068. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5069. ;;
  5070. *nto* | *qnx*)
  5071. lt_cv_deplibs_check_method=pass_all
  5072. ;;
  5073. openbsd* | bitrig*)
  5074. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5075. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5076. else
  5077. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5078. fi
  5079. ;;
  5080. osf3* | osf4* | osf5*)
  5081. lt_cv_deplibs_check_method=pass_all
  5082. ;;
  5083. rdos*)
  5084. lt_cv_deplibs_check_method=pass_all
  5085. ;;
  5086. solaris*)
  5087. lt_cv_deplibs_check_method=pass_all
  5088. ;;
  5089. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5090. lt_cv_deplibs_check_method=pass_all
  5091. ;;
  5092. sysv4 | sysv4.3*)
  5093. case $host_vendor in
  5094. motorola)
  5095. 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]'
  5096. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5097. ;;
  5098. ncr)
  5099. lt_cv_deplibs_check_method=pass_all
  5100. ;;
  5101. sequent)
  5102. lt_cv_file_magic_cmd='/bin/file'
  5103. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5104. ;;
  5105. sni)
  5106. lt_cv_file_magic_cmd='/bin/file'
  5107. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5108. lt_cv_file_magic_test_file=/lib/libc.so
  5109. ;;
  5110. siemens)
  5111. lt_cv_deplibs_check_method=pass_all
  5112. ;;
  5113. pc)
  5114. lt_cv_deplibs_check_method=pass_all
  5115. ;;
  5116. esac
  5117. ;;
  5118. tpf*)
  5119. lt_cv_deplibs_check_method=pass_all
  5120. ;;
  5121. os2*)
  5122. lt_cv_deplibs_check_method=pass_all
  5123. ;;
  5124. esac
  5125. fi
  5126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5127. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5128. file_magic_glob=
  5129. want_nocaseglob=no
  5130. if test "$build" = "$host"; then
  5131. case $host_os in
  5132. mingw* | pw32*)
  5133. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5134. want_nocaseglob=yes
  5135. else
  5136. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5137. fi
  5138. ;;
  5139. esac
  5140. fi
  5141. file_magic_cmd=$lt_cv_file_magic_cmd
  5142. deplibs_check_method=$lt_cv_deplibs_check_method
  5143. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5144. if test -n "$ac_tool_prefix"; then
  5145. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5146. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5148. $as_echo_n "checking for $ac_word... " >&6; }
  5149. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5150. $as_echo_n "(cached) " >&6
  5151. else
  5152. if test -n "$DLLTOOL"; then
  5153. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5154. else
  5155. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5156. for as_dir in $PATH
  5157. do
  5158. IFS=$as_save_IFS
  5159. test -z "$as_dir" && as_dir=.
  5160. for ac_exec_ext in '' $ac_executable_extensions; do
  5161. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5162. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5163. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5164. break 2
  5165. fi
  5166. done
  5167. done
  5168. IFS=$as_save_IFS
  5169. fi
  5170. fi
  5171. DLLTOOL=$ac_cv_prog_DLLTOOL
  5172. if test -n "$DLLTOOL"; then
  5173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5174. $as_echo "$DLLTOOL" >&6; }
  5175. else
  5176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5177. $as_echo "no" >&6; }
  5178. fi
  5179. fi
  5180. if test -z "$ac_cv_prog_DLLTOOL"; then
  5181. ac_ct_DLLTOOL=$DLLTOOL
  5182. # Extract the first word of "dlltool", so it can be a program name with args.
  5183. set dummy dlltool; ac_word=$2
  5184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5185. $as_echo_n "checking for $ac_word... " >&6; }
  5186. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5187. $as_echo_n "(cached) " >&6
  5188. else
  5189. if test -n "$ac_ct_DLLTOOL"; then
  5190. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5191. else
  5192. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5193. for as_dir in $PATH
  5194. do
  5195. IFS=$as_save_IFS
  5196. test -z "$as_dir" && as_dir=.
  5197. for ac_exec_ext in '' $ac_executable_extensions; do
  5198. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5199. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5200. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5201. break 2
  5202. fi
  5203. done
  5204. done
  5205. IFS=$as_save_IFS
  5206. fi
  5207. fi
  5208. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5209. if test -n "$ac_ct_DLLTOOL"; then
  5210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5211. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5212. else
  5213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5214. $as_echo "no" >&6; }
  5215. fi
  5216. if test "x$ac_ct_DLLTOOL" = x; then
  5217. DLLTOOL="false"
  5218. else
  5219. case $cross_compiling:$ac_tool_warned in
  5220. yes:)
  5221. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5222. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5223. ac_tool_warned=yes ;;
  5224. esac
  5225. DLLTOOL=$ac_ct_DLLTOOL
  5226. fi
  5227. else
  5228. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5229. fi
  5230. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5232. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5233. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5234. $as_echo_n "(cached) " >&6
  5235. else
  5236. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5237. case $host_os in
  5238. cygwin* | mingw* | pw32* | cegcc*)
  5239. # two different shell functions defined in ltmain.sh;
  5240. # decide which one to use based on capabilities of $DLLTOOL
  5241. case `$DLLTOOL --help 2>&1` in
  5242. *--identify-strict*)
  5243. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5244. ;;
  5245. *)
  5246. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5247. ;;
  5248. esac
  5249. ;;
  5250. *)
  5251. # fallback: assume linklib IS sharedlib
  5252. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  5253. ;;
  5254. esac
  5255. fi
  5256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5257. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5258. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5259. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5260. if test -n "$ac_tool_prefix"; then
  5261. for ac_prog in ar
  5262. do
  5263. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5264. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5266. $as_echo_n "checking for $ac_word... " >&6; }
  5267. if ${ac_cv_prog_AR+:} false; then :
  5268. $as_echo_n "(cached) " >&6
  5269. else
  5270. if test -n "$AR"; then
  5271. ac_cv_prog_AR="$AR" # Let the user override the test.
  5272. else
  5273. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5274. for as_dir in $PATH
  5275. do
  5276. IFS=$as_save_IFS
  5277. test -z "$as_dir" && as_dir=.
  5278. for ac_exec_ext in '' $ac_executable_extensions; do
  5279. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5280. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5281. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5282. break 2
  5283. fi
  5284. done
  5285. done
  5286. IFS=$as_save_IFS
  5287. fi
  5288. fi
  5289. AR=$ac_cv_prog_AR
  5290. if test -n "$AR"; then
  5291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5292. $as_echo "$AR" >&6; }
  5293. else
  5294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5295. $as_echo "no" >&6; }
  5296. fi
  5297. test -n "$AR" && break
  5298. done
  5299. fi
  5300. if test -z "$AR"; then
  5301. ac_ct_AR=$AR
  5302. for ac_prog in ar
  5303. do
  5304. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5305. set dummy $ac_prog; ac_word=$2
  5306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5307. $as_echo_n "checking for $ac_word... " >&6; }
  5308. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5309. $as_echo_n "(cached) " >&6
  5310. else
  5311. if test -n "$ac_ct_AR"; then
  5312. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5313. else
  5314. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5315. for as_dir in $PATH
  5316. do
  5317. IFS=$as_save_IFS
  5318. test -z "$as_dir" && as_dir=.
  5319. for ac_exec_ext in '' $ac_executable_extensions; do
  5320. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5321. ac_cv_prog_ac_ct_AR="$ac_prog"
  5322. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5323. break 2
  5324. fi
  5325. done
  5326. done
  5327. IFS=$as_save_IFS
  5328. fi
  5329. fi
  5330. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5331. if test -n "$ac_ct_AR"; then
  5332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5333. $as_echo "$ac_ct_AR" >&6; }
  5334. else
  5335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5336. $as_echo "no" >&6; }
  5337. fi
  5338. test -n "$ac_ct_AR" && break
  5339. done
  5340. if test "x$ac_ct_AR" = x; then
  5341. AR="false"
  5342. else
  5343. case $cross_compiling:$ac_tool_warned in
  5344. yes:)
  5345. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5346. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5347. ac_tool_warned=yes ;;
  5348. esac
  5349. AR=$ac_ct_AR
  5350. fi
  5351. fi
  5352. : ${AR=ar}
  5353. : ${AR_FLAGS=cru}
  5354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5355. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5356. if ${lt_cv_ar_at_file+:} false; then :
  5357. $as_echo_n "(cached) " >&6
  5358. else
  5359. lt_cv_ar_at_file=no
  5360. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5361. /* end confdefs.h. */
  5362. int
  5363. main ()
  5364. {
  5365. ;
  5366. return 0;
  5367. }
  5368. _ACEOF
  5369. if ac_fn_c_try_compile "$LINENO"; then :
  5370. echo conftest.$ac_objext > conftest.lst
  5371. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5372. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5373. (eval $lt_ar_try) 2>&5
  5374. ac_status=$?
  5375. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5376. test $ac_status = 0; }
  5377. if test 0 -eq "$ac_status"; then
  5378. # Ensure the archiver fails upon bogus file names.
  5379. rm -f conftest.$ac_objext libconftest.a
  5380. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5381. (eval $lt_ar_try) 2>&5
  5382. ac_status=$?
  5383. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5384. test $ac_status = 0; }
  5385. if test 0 -ne "$ac_status"; then
  5386. lt_cv_ar_at_file=@
  5387. fi
  5388. fi
  5389. rm -f conftest.* libconftest.a
  5390. fi
  5391. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5392. fi
  5393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5394. $as_echo "$lt_cv_ar_at_file" >&6; }
  5395. if test no = "$lt_cv_ar_at_file"; then
  5396. archiver_list_spec=
  5397. else
  5398. archiver_list_spec=$lt_cv_ar_at_file
  5399. fi
  5400. if test -n "$ac_tool_prefix"; then
  5401. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5402. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5404. $as_echo_n "checking for $ac_word... " >&6; }
  5405. if ${ac_cv_prog_STRIP+:} false; then :
  5406. $as_echo_n "(cached) " >&6
  5407. else
  5408. if test -n "$STRIP"; then
  5409. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5410. else
  5411. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5412. for as_dir in $PATH
  5413. do
  5414. IFS=$as_save_IFS
  5415. test -z "$as_dir" && as_dir=.
  5416. for ac_exec_ext in '' $ac_executable_extensions; do
  5417. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5418. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5419. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5420. break 2
  5421. fi
  5422. done
  5423. done
  5424. IFS=$as_save_IFS
  5425. fi
  5426. fi
  5427. STRIP=$ac_cv_prog_STRIP
  5428. if test -n "$STRIP"; then
  5429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5430. $as_echo "$STRIP" >&6; }
  5431. else
  5432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5433. $as_echo "no" >&6; }
  5434. fi
  5435. fi
  5436. if test -z "$ac_cv_prog_STRIP"; then
  5437. ac_ct_STRIP=$STRIP
  5438. # Extract the first word of "strip", so it can be a program name with args.
  5439. set dummy strip; ac_word=$2
  5440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5441. $as_echo_n "checking for $ac_word... " >&6; }
  5442. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5443. $as_echo_n "(cached) " >&6
  5444. else
  5445. if test -n "$ac_ct_STRIP"; then
  5446. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5447. else
  5448. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5449. for as_dir in $PATH
  5450. do
  5451. IFS=$as_save_IFS
  5452. test -z "$as_dir" && as_dir=.
  5453. for ac_exec_ext in '' $ac_executable_extensions; do
  5454. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5455. ac_cv_prog_ac_ct_STRIP="strip"
  5456. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5457. break 2
  5458. fi
  5459. done
  5460. done
  5461. IFS=$as_save_IFS
  5462. fi
  5463. fi
  5464. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5465. if test -n "$ac_ct_STRIP"; then
  5466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5467. $as_echo "$ac_ct_STRIP" >&6; }
  5468. else
  5469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5470. $as_echo "no" >&6; }
  5471. fi
  5472. if test "x$ac_ct_STRIP" = x; then
  5473. STRIP=":"
  5474. else
  5475. case $cross_compiling:$ac_tool_warned in
  5476. yes:)
  5477. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5478. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5479. ac_tool_warned=yes ;;
  5480. esac
  5481. STRIP=$ac_ct_STRIP
  5482. fi
  5483. else
  5484. STRIP="$ac_cv_prog_STRIP"
  5485. fi
  5486. test -z "$STRIP" && STRIP=:
  5487. if test -n "$ac_tool_prefix"; then
  5488. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5489. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5491. $as_echo_n "checking for $ac_word... " >&6; }
  5492. if ${ac_cv_prog_RANLIB+:} false; then :
  5493. $as_echo_n "(cached) " >&6
  5494. else
  5495. if test -n "$RANLIB"; then
  5496. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5497. else
  5498. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5499. for as_dir in $PATH
  5500. do
  5501. IFS=$as_save_IFS
  5502. test -z "$as_dir" && as_dir=.
  5503. for ac_exec_ext in '' $ac_executable_extensions; do
  5504. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5505. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5506. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5507. break 2
  5508. fi
  5509. done
  5510. done
  5511. IFS=$as_save_IFS
  5512. fi
  5513. fi
  5514. RANLIB=$ac_cv_prog_RANLIB
  5515. if test -n "$RANLIB"; then
  5516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5517. $as_echo "$RANLIB" >&6; }
  5518. else
  5519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5520. $as_echo "no" >&6; }
  5521. fi
  5522. fi
  5523. if test -z "$ac_cv_prog_RANLIB"; then
  5524. ac_ct_RANLIB=$RANLIB
  5525. # Extract the first word of "ranlib", so it can be a program name with args.
  5526. set dummy ranlib; ac_word=$2
  5527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5528. $as_echo_n "checking for $ac_word... " >&6; }
  5529. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5530. $as_echo_n "(cached) " >&6
  5531. else
  5532. if test -n "$ac_ct_RANLIB"; then
  5533. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5534. else
  5535. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5536. for as_dir in $PATH
  5537. do
  5538. IFS=$as_save_IFS
  5539. test -z "$as_dir" && as_dir=.
  5540. for ac_exec_ext in '' $ac_executable_extensions; do
  5541. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5542. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5543. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5544. break 2
  5545. fi
  5546. done
  5547. done
  5548. IFS=$as_save_IFS
  5549. fi
  5550. fi
  5551. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5552. if test -n "$ac_ct_RANLIB"; then
  5553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5554. $as_echo "$ac_ct_RANLIB" >&6; }
  5555. else
  5556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5557. $as_echo "no" >&6; }
  5558. fi
  5559. if test "x$ac_ct_RANLIB" = x; then
  5560. RANLIB=":"
  5561. else
  5562. case $cross_compiling:$ac_tool_warned in
  5563. yes:)
  5564. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5565. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5566. ac_tool_warned=yes ;;
  5567. esac
  5568. RANLIB=$ac_ct_RANLIB
  5569. fi
  5570. else
  5571. RANLIB="$ac_cv_prog_RANLIB"
  5572. fi
  5573. test -z "$RANLIB" && RANLIB=:
  5574. # Determine commands to create old-style static archives.
  5575. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5576. old_postinstall_cmds='chmod 644 $oldlib'
  5577. old_postuninstall_cmds=
  5578. if test -n "$RANLIB"; then
  5579. case $host_os in
  5580. bitrig* | openbsd*)
  5581. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5582. ;;
  5583. *)
  5584. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5585. ;;
  5586. esac
  5587. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5588. fi
  5589. case $host_os in
  5590. darwin*)
  5591. lock_old_archive_extraction=yes ;;
  5592. *)
  5593. lock_old_archive_extraction=no ;;
  5594. esac
  5595. # If no C compiler was specified, use CC.
  5596. LTCC=${LTCC-"$CC"}
  5597. # If no C compiler flags were specified, use CFLAGS.
  5598. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5599. # Allow CC to be a program name with arguments.
  5600. compiler=$CC
  5601. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5603. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5604. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5605. $as_echo_n "(cached) " >&6
  5606. else
  5607. # These are sane defaults that work on at least a few old systems.
  5608. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5609. # Character class describing NM global symbol codes.
  5610. symcode='[BCDEGRST]'
  5611. # Regexp to match symbols that can be accessed directly from C.
  5612. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5613. # Define system-specific variables.
  5614. case $host_os in
  5615. aix*)
  5616. symcode='[BCDT]'
  5617. ;;
  5618. cygwin* | mingw* | pw32* | cegcc*)
  5619. symcode='[ABCDGISTW]'
  5620. ;;
  5621. hpux*)
  5622. if test ia64 = "$host_cpu"; then
  5623. symcode='[ABCDEGRST]'
  5624. fi
  5625. ;;
  5626. irix* | nonstopux*)
  5627. symcode='[BCDEGRST]'
  5628. ;;
  5629. osf*)
  5630. symcode='[BCDEGQRST]'
  5631. ;;
  5632. solaris*)
  5633. symcode='[BDRT]'
  5634. ;;
  5635. sco3.2v5*)
  5636. symcode='[DT]'
  5637. ;;
  5638. sysv4.2uw2*)
  5639. symcode='[DT]'
  5640. ;;
  5641. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5642. symcode='[ABDT]'
  5643. ;;
  5644. sysv4)
  5645. symcode='[DFNSTU]'
  5646. ;;
  5647. esac
  5648. # If we're using GNU nm, then use its standard symbol codes.
  5649. case `$NM -V 2>&1` in
  5650. *GNU* | *'with BFD'*)
  5651. symcode='[ABCDGIRSTW]' ;;
  5652. esac
  5653. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5654. # Gets list of data symbols to import.
  5655. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5656. # Adjust the below global symbol transforms to fixup imported variables.
  5657. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5658. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5659. lt_c_name_lib_hook="\
  5660. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5661. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5662. else
  5663. # Disable hooks by default.
  5664. lt_cv_sys_global_symbol_to_import=
  5665. lt_cdecl_hook=
  5666. lt_c_name_hook=
  5667. lt_c_name_lib_hook=
  5668. fi
  5669. # Transform an extracted symbol line into a proper C declaration.
  5670. # Some systems (esp. on ia64) link data and code symbols differently,
  5671. # so use this general approach.
  5672. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  5673. $lt_cdecl_hook\
  5674. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  5675. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  5676. # Transform an extracted symbol line into symbol name and symbol address
  5677. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  5678. $lt_c_name_hook\
  5679. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5680. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  5681. # Transform an extracted symbol line into symbol name with lib prefix and
  5682. # symbol address.
  5683. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  5684. $lt_c_name_lib_hook\
  5685. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5686. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  5687. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  5688. # Handle CRLF in mingw tool chain
  5689. opt_cr=
  5690. case $build_os in
  5691. mingw*)
  5692. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5693. ;;
  5694. esac
  5695. # Try without a prefix underscore, then with it.
  5696. for ac_symprfx in "" "_"; do
  5697. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5698. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5699. # Write the raw and C identifiers.
  5700. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5701. # Fake it for dumpbin and say T for any non-static function,
  5702. # D for any global variable and I for any imported variable.
  5703. # Also find C++ and __fastcall symbols from MSVC++,
  5704. # which start with @ or ?.
  5705. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5706. " {last_section=section; section=\$ 3};"\
  5707. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5708. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5709. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  5710. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  5711. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  5712. " \$ 0!~/External *\|/{next};"\
  5713. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5714. " {if(hide[section]) next};"\
  5715. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  5716. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  5717. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  5718. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  5719. " ' prfx=^$ac_symprfx"
  5720. else
  5721. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5722. fi
  5723. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5724. # Check to see that the pipe works correctly.
  5725. pipe_works=no
  5726. rm -f conftest*
  5727. cat > conftest.$ac_ext <<_LT_EOF
  5728. #ifdef __cplusplus
  5729. extern "C" {
  5730. #endif
  5731. char nm_test_var;
  5732. void nm_test_func(void);
  5733. void nm_test_func(void){}
  5734. #ifdef __cplusplus
  5735. }
  5736. #endif
  5737. int main(){nm_test_var='a';nm_test_func();return(0);}
  5738. _LT_EOF
  5739. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5740. (eval $ac_compile) 2>&5
  5741. ac_status=$?
  5742. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5743. test $ac_status = 0; }; then
  5744. # Now try to grab the symbols.
  5745. nlist=conftest.nm
  5746. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5747. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5748. ac_status=$?
  5749. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5750. test $ac_status = 0; } && test -s "$nlist"; then
  5751. # Try sorting and uniquifying the output.
  5752. if sort "$nlist" | uniq > "$nlist"T; then
  5753. mv -f "$nlist"T "$nlist"
  5754. else
  5755. rm -f "$nlist"T
  5756. fi
  5757. # Make sure that we snagged all the symbols we need.
  5758. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5759. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5760. cat <<_LT_EOF > conftest.$ac_ext
  5761. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5762. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  5763. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  5764. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5765. # define LT_DLSYM_CONST
  5766. #elif defined __osf__
  5767. /* This system does not cope well with relocations in const data. */
  5768. # define LT_DLSYM_CONST
  5769. #else
  5770. # define LT_DLSYM_CONST const
  5771. #endif
  5772. #ifdef __cplusplus
  5773. extern "C" {
  5774. #endif
  5775. _LT_EOF
  5776. # Now generate the symbol file.
  5777. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5778. cat <<_LT_EOF >> conftest.$ac_ext
  5779. /* The mapping between symbol names and symbols. */
  5780. LT_DLSYM_CONST struct {
  5781. const char *name;
  5782. void *address;
  5783. }
  5784. lt__PROGRAM__LTX_preloaded_symbols[] =
  5785. {
  5786. { "@PROGRAM@", (void *) 0 },
  5787. _LT_EOF
  5788. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5789. cat <<\_LT_EOF >> conftest.$ac_ext
  5790. {0, (void *) 0}
  5791. };
  5792. /* This works around a problem in FreeBSD linker */
  5793. #ifdef FREEBSD_WORKAROUND
  5794. static const void *lt_preloaded_setup() {
  5795. return lt__PROGRAM__LTX_preloaded_symbols;
  5796. }
  5797. #endif
  5798. #ifdef __cplusplus
  5799. }
  5800. #endif
  5801. _LT_EOF
  5802. # Now try linking the two files.
  5803. mv conftest.$ac_objext conftstm.$ac_objext
  5804. lt_globsym_save_LIBS=$LIBS
  5805. lt_globsym_save_CFLAGS=$CFLAGS
  5806. LIBS=conftstm.$ac_objext
  5807. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5808. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5809. (eval $ac_link) 2>&5
  5810. ac_status=$?
  5811. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5812. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  5813. pipe_works=yes
  5814. fi
  5815. LIBS=$lt_globsym_save_LIBS
  5816. CFLAGS=$lt_globsym_save_CFLAGS
  5817. else
  5818. echo "cannot find nm_test_func in $nlist" >&5
  5819. fi
  5820. else
  5821. echo "cannot find nm_test_var in $nlist" >&5
  5822. fi
  5823. else
  5824. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5825. fi
  5826. else
  5827. echo "$progname: failed program was:" >&5
  5828. cat conftest.$ac_ext >&5
  5829. fi
  5830. rm -rf conftest* conftst*
  5831. # Do not use the global_symbol_pipe unless it works.
  5832. if test yes = "$pipe_works"; then
  5833. break
  5834. else
  5835. lt_cv_sys_global_symbol_pipe=
  5836. fi
  5837. done
  5838. fi
  5839. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5840. lt_cv_sys_global_symbol_to_cdecl=
  5841. fi
  5842. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5844. $as_echo "failed" >&6; }
  5845. else
  5846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5847. $as_echo "ok" >&6; }
  5848. fi
  5849. # Response file support.
  5850. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5851. nm_file_list_spec='@'
  5852. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5853. nm_file_list_spec='@'
  5854. fi
  5855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5856. $as_echo_n "checking for sysroot... " >&6; }
  5857. # Check whether --with-sysroot was given.
  5858. if test "${with_sysroot+set}" = set; then :
  5859. withval=$with_sysroot;
  5860. else
  5861. with_sysroot=no
  5862. fi
  5863. lt_sysroot=
  5864. case $with_sysroot in #(
  5865. yes)
  5866. if test yes = "$GCC"; then
  5867. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5868. fi
  5869. ;; #(
  5870. /*)
  5871. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5872. ;; #(
  5873. no|'')
  5874. ;; #(
  5875. *)
  5876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  5877. $as_echo "$with_sysroot" >&6; }
  5878. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5879. ;;
  5880. esac
  5881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5882. $as_echo "${lt_sysroot:-no}" >&6; }
  5883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  5884. $as_echo_n "checking for a working dd... " >&6; }
  5885. if ${ac_cv_path_lt_DD+:} false; then :
  5886. $as_echo_n "(cached) " >&6
  5887. else
  5888. printf 0123456789abcdef0123456789abcdef >conftest.i
  5889. cat conftest.i conftest.i >conftest2.i
  5890. : ${lt_DD:=$DD}
  5891. if test -z "$lt_DD"; then
  5892. ac_path_lt_DD_found=false
  5893. # Loop through the user's path and test for each of PROGNAME-LIST
  5894. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5895. for as_dir in $PATH
  5896. do
  5897. IFS=$as_save_IFS
  5898. test -z "$as_dir" && as_dir=.
  5899. for ac_prog in dd; do
  5900. for ac_exec_ext in '' $ac_executable_extensions; do
  5901. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  5902. as_fn_executable_p "$ac_path_lt_DD" || continue
  5903. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  5904. cmp -s conftest.i conftest.out \
  5905. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  5906. fi
  5907. $ac_path_lt_DD_found && break 3
  5908. done
  5909. done
  5910. done
  5911. IFS=$as_save_IFS
  5912. if test -z "$ac_cv_path_lt_DD"; then
  5913. :
  5914. fi
  5915. else
  5916. ac_cv_path_lt_DD=$lt_DD
  5917. fi
  5918. rm -f conftest.i conftest2.i conftest.out
  5919. fi
  5920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  5921. $as_echo "$ac_cv_path_lt_DD" >&6; }
  5922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  5923. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  5924. if ${lt_cv_truncate_bin+:} false; then :
  5925. $as_echo_n "(cached) " >&6
  5926. else
  5927. printf 0123456789abcdef0123456789abcdef >conftest.i
  5928. cat conftest.i conftest.i >conftest2.i
  5929. lt_cv_truncate_bin=
  5930. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  5931. cmp -s conftest.i conftest.out \
  5932. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  5933. fi
  5934. rm -f conftest.i conftest2.i conftest.out
  5935. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  5936. fi
  5937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  5938. $as_echo "$lt_cv_truncate_bin" >&6; }
  5939. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  5940. func_cc_basename ()
  5941. {
  5942. for cc_temp in $*""; do
  5943. case $cc_temp in
  5944. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  5945. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  5946. \-*) ;;
  5947. *) break;;
  5948. esac
  5949. done
  5950. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  5951. }
  5952. # Check whether --enable-libtool-lock was given.
  5953. if test "${enable_libtool_lock+set}" = set; then :
  5954. enableval=$enable_libtool_lock;
  5955. fi
  5956. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  5957. # Some flags need to be propagated to the compiler or linker for good
  5958. # libtool support.
  5959. case $host in
  5960. ia64-*-hpux*)
  5961. # Find out what ABI is being produced by ac_compile, and set mode
  5962. # options accordingly.
  5963. echo 'int i;' > conftest.$ac_ext
  5964. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5965. (eval $ac_compile) 2>&5
  5966. ac_status=$?
  5967. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5968. test $ac_status = 0; }; then
  5969. case `/usr/bin/file conftest.$ac_objext` in
  5970. *ELF-32*)
  5971. HPUX_IA64_MODE=32
  5972. ;;
  5973. *ELF-64*)
  5974. HPUX_IA64_MODE=64
  5975. ;;
  5976. esac
  5977. fi
  5978. rm -rf conftest*
  5979. ;;
  5980. *-*-irix6*)
  5981. # Find out what ABI is being produced by ac_compile, and set linker
  5982. # options accordingly.
  5983. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5984. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5985. (eval $ac_compile) 2>&5
  5986. ac_status=$?
  5987. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5988. test $ac_status = 0; }; then
  5989. if test yes = "$lt_cv_prog_gnu_ld"; then
  5990. case `/usr/bin/file conftest.$ac_objext` in
  5991. *32-bit*)
  5992. LD="${LD-ld} -melf32bsmip"
  5993. ;;
  5994. *N32*)
  5995. LD="${LD-ld} -melf32bmipn32"
  5996. ;;
  5997. *64-bit*)
  5998. LD="${LD-ld} -melf64bmip"
  5999. ;;
  6000. esac
  6001. else
  6002. case `/usr/bin/file conftest.$ac_objext` in
  6003. *32-bit*)
  6004. LD="${LD-ld} -32"
  6005. ;;
  6006. *N32*)
  6007. LD="${LD-ld} -n32"
  6008. ;;
  6009. *64-bit*)
  6010. LD="${LD-ld} -64"
  6011. ;;
  6012. esac
  6013. fi
  6014. fi
  6015. rm -rf conftest*
  6016. ;;
  6017. mips64*-*linux*)
  6018. # Find out what ABI is being produced by ac_compile, and set linker
  6019. # options accordingly.
  6020. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6021. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6022. (eval $ac_compile) 2>&5
  6023. ac_status=$?
  6024. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6025. test $ac_status = 0; }; then
  6026. emul=elf
  6027. case `/usr/bin/file conftest.$ac_objext` in
  6028. *32-bit*)
  6029. emul="${emul}32"
  6030. ;;
  6031. *64-bit*)
  6032. emul="${emul}64"
  6033. ;;
  6034. esac
  6035. case `/usr/bin/file conftest.$ac_objext` in
  6036. *MSB*)
  6037. emul="${emul}btsmip"
  6038. ;;
  6039. *LSB*)
  6040. emul="${emul}ltsmip"
  6041. ;;
  6042. esac
  6043. case `/usr/bin/file conftest.$ac_objext` in
  6044. *N32*)
  6045. emul="${emul}n32"
  6046. ;;
  6047. esac
  6048. LD="${LD-ld} -m $emul"
  6049. fi
  6050. rm -rf conftest*
  6051. ;;
  6052. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6053. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6054. # Find out what ABI is being produced by ac_compile, and set linker
  6055. # options accordingly. Note that the listed cases only cover the
  6056. # situations where additional linker options are needed (such as when
  6057. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6058. # vice versa); the common cases where no linker options are needed do
  6059. # not appear in the list.
  6060. echo 'int i;' > conftest.$ac_ext
  6061. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6062. (eval $ac_compile) 2>&5
  6063. ac_status=$?
  6064. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6065. test $ac_status = 0; }; then
  6066. case `/usr/bin/file conftest.o` in
  6067. *32-bit*)
  6068. case $host in
  6069. x86_64-*kfreebsd*-gnu)
  6070. LD="${LD-ld} -m elf_i386_fbsd"
  6071. ;;
  6072. x86_64-*linux*)
  6073. case `/usr/bin/file conftest.o` in
  6074. *x86-64*)
  6075. LD="${LD-ld} -m elf32_x86_64"
  6076. ;;
  6077. *)
  6078. LD="${LD-ld} -m elf_i386"
  6079. ;;
  6080. esac
  6081. ;;
  6082. powerpc64le-*linux*)
  6083. LD="${LD-ld} -m elf32lppclinux"
  6084. ;;
  6085. powerpc64-*linux*)
  6086. LD="${LD-ld} -m elf32ppclinux"
  6087. ;;
  6088. s390x-*linux*)
  6089. LD="${LD-ld} -m elf_s390"
  6090. ;;
  6091. sparc64-*linux*)
  6092. LD="${LD-ld} -m elf32_sparc"
  6093. ;;
  6094. esac
  6095. ;;
  6096. *64-bit*)
  6097. case $host in
  6098. x86_64-*kfreebsd*-gnu)
  6099. LD="${LD-ld} -m elf_x86_64_fbsd"
  6100. ;;
  6101. x86_64-*linux*)
  6102. LD="${LD-ld} -m elf_x86_64"
  6103. ;;
  6104. powerpcle-*linux*)
  6105. LD="${LD-ld} -m elf64lppc"
  6106. ;;
  6107. powerpc-*linux*)
  6108. LD="${LD-ld} -m elf64ppc"
  6109. ;;
  6110. s390*-*linux*|s390*-*tpf*)
  6111. LD="${LD-ld} -m elf64_s390"
  6112. ;;
  6113. sparc*-*linux*)
  6114. LD="${LD-ld} -m elf64_sparc"
  6115. ;;
  6116. esac
  6117. ;;
  6118. esac
  6119. fi
  6120. rm -rf conftest*
  6121. ;;
  6122. *-*-sco3.2v5*)
  6123. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6124. SAVE_CFLAGS=$CFLAGS
  6125. CFLAGS="$CFLAGS -belf"
  6126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6127. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6128. if ${lt_cv_cc_needs_belf+:} false; then :
  6129. $as_echo_n "(cached) " >&6
  6130. else
  6131. ac_ext=c
  6132. ac_cpp='$CPP $CPPFLAGS'
  6133. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6134. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6135. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6136. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6137. /* end confdefs.h. */
  6138. int
  6139. main ()
  6140. {
  6141. ;
  6142. return 0;
  6143. }
  6144. _ACEOF
  6145. if ac_fn_c_try_link "$LINENO"; then :
  6146. lt_cv_cc_needs_belf=yes
  6147. else
  6148. lt_cv_cc_needs_belf=no
  6149. fi
  6150. rm -f core conftest.err conftest.$ac_objext \
  6151. conftest$ac_exeext conftest.$ac_ext
  6152. ac_ext=c
  6153. ac_cpp='$CPP $CPPFLAGS'
  6154. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6155. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6156. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6157. fi
  6158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6159. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6160. if test yes != "$lt_cv_cc_needs_belf"; then
  6161. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6162. CFLAGS=$SAVE_CFLAGS
  6163. fi
  6164. ;;
  6165. *-*solaris*)
  6166. # Find out what ABI is being produced by ac_compile, and set linker
  6167. # options accordingly.
  6168. echo 'int i;' > conftest.$ac_ext
  6169. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6170. (eval $ac_compile) 2>&5
  6171. ac_status=$?
  6172. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6173. test $ac_status = 0; }; then
  6174. case `/usr/bin/file conftest.o` in
  6175. *64-bit*)
  6176. case $lt_cv_prog_gnu_ld in
  6177. yes*)
  6178. case $host in
  6179. i?86-*-solaris*|x86_64-*-solaris*)
  6180. LD="${LD-ld} -m elf_x86_64"
  6181. ;;
  6182. sparc*-*-solaris*)
  6183. LD="${LD-ld} -m elf64_sparc"
  6184. ;;
  6185. esac
  6186. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6187. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6188. LD=${LD-ld}_sol2
  6189. fi
  6190. ;;
  6191. *)
  6192. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6193. LD="${LD-ld} -64"
  6194. fi
  6195. ;;
  6196. esac
  6197. ;;
  6198. esac
  6199. fi
  6200. rm -rf conftest*
  6201. ;;
  6202. esac
  6203. need_locks=$enable_libtool_lock
  6204. if test -n "$ac_tool_prefix"; then
  6205. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6206. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6208. $as_echo_n "checking for $ac_word... " >&6; }
  6209. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6210. $as_echo_n "(cached) " >&6
  6211. else
  6212. if test -n "$MANIFEST_TOOL"; then
  6213. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6214. else
  6215. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6216. for as_dir in $PATH
  6217. do
  6218. IFS=$as_save_IFS
  6219. test -z "$as_dir" && as_dir=.
  6220. for ac_exec_ext in '' $ac_executable_extensions; do
  6221. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6222. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6223. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6224. break 2
  6225. fi
  6226. done
  6227. done
  6228. IFS=$as_save_IFS
  6229. fi
  6230. fi
  6231. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6232. if test -n "$MANIFEST_TOOL"; then
  6233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6234. $as_echo "$MANIFEST_TOOL" >&6; }
  6235. else
  6236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6237. $as_echo "no" >&6; }
  6238. fi
  6239. fi
  6240. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6241. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6242. # Extract the first word of "mt", so it can be a program name with args.
  6243. set dummy mt; ac_word=$2
  6244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6245. $as_echo_n "checking for $ac_word... " >&6; }
  6246. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6247. $as_echo_n "(cached) " >&6
  6248. else
  6249. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6250. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6251. else
  6252. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6253. for as_dir in $PATH
  6254. do
  6255. IFS=$as_save_IFS
  6256. test -z "$as_dir" && as_dir=.
  6257. for ac_exec_ext in '' $ac_executable_extensions; do
  6258. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6259. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6260. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6261. break 2
  6262. fi
  6263. done
  6264. done
  6265. IFS=$as_save_IFS
  6266. fi
  6267. fi
  6268. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6269. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6271. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6272. else
  6273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6274. $as_echo "no" >&6; }
  6275. fi
  6276. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6277. MANIFEST_TOOL=":"
  6278. else
  6279. case $cross_compiling:$ac_tool_warned in
  6280. yes:)
  6281. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6282. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6283. ac_tool_warned=yes ;;
  6284. esac
  6285. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6286. fi
  6287. else
  6288. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6289. fi
  6290. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6292. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6293. if ${lt_cv_path_mainfest_tool+:} false; then :
  6294. $as_echo_n "(cached) " >&6
  6295. else
  6296. lt_cv_path_mainfest_tool=no
  6297. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6298. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6299. cat conftest.err >&5
  6300. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6301. lt_cv_path_mainfest_tool=yes
  6302. fi
  6303. rm -f conftest*
  6304. fi
  6305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6306. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6307. if test yes != "$lt_cv_path_mainfest_tool"; then
  6308. MANIFEST_TOOL=:
  6309. fi
  6310. case $host_os in
  6311. rhapsody* | darwin*)
  6312. if test -n "$ac_tool_prefix"; then
  6313. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6314. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6316. $as_echo_n "checking for $ac_word... " >&6; }
  6317. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6318. $as_echo_n "(cached) " >&6
  6319. else
  6320. if test -n "$DSYMUTIL"; then
  6321. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6322. else
  6323. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6324. for as_dir in $PATH
  6325. do
  6326. IFS=$as_save_IFS
  6327. test -z "$as_dir" && as_dir=.
  6328. for ac_exec_ext in '' $ac_executable_extensions; do
  6329. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6330. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6331. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6332. break 2
  6333. fi
  6334. done
  6335. done
  6336. IFS=$as_save_IFS
  6337. fi
  6338. fi
  6339. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6340. if test -n "$DSYMUTIL"; then
  6341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6342. $as_echo "$DSYMUTIL" >&6; }
  6343. else
  6344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6345. $as_echo "no" >&6; }
  6346. fi
  6347. fi
  6348. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6349. ac_ct_DSYMUTIL=$DSYMUTIL
  6350. # Extract the first word of "dsymutil", so it can be a program name with args.
  6351. set dummy dsymutil; ac_word=$2
  6352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6353. $as_echo_n "checking for $ac_word... " >&6; }
  6354. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6355. $as_echo_n "(cached) " >&6
  6356. else
  6357. if test -n "$ac_ct_DSYMUTIL"; then
  6358. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6359. else
  6360. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6361. for as_dir in $PATH
  6362. do
  6363. IFS=$as_save_IFS
  6364. test -z "$as_dir" && as_dir=.
  6365. for ac_exec_ext in '' $ac_executable_extensions; do
  6366. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6367. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6368. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6369. break 2
  6370. fi
  6371. done
  6372. done
  6373. IFS=$as_save_IFS
  6374. fi
  6375. fi
  6376. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6377. if test -n "$ac_ct_DSYMUTIL"; then
  6378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6379. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6380. else
  6381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6382. $as_echo "no" >&6; }
  6383. fi
  6384. if test "x$ac_ct_DSYMUTIL" = x; then
  6385. DSYMUTIL=":"
  6386. else
  6387. case $cross_compiling:$ac_tool_warned in
  6388. yes:)
  6389. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6390. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6391. ac_tool_warned=yes ;;
  6392. esac
  6393. DSYMUTIL=$ac_ct_DSYMUTIL
  6394. fi
  6395. else
  6396. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6397. fi
  6398. if test -n "$ac_tool_prefix"; then
  6399. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6400. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6402. $as_echo_n "checking for $ac_word... " >&6; }
  6403. if ${ac_cv_prog_NMEDIT+:} false; then :
  6404. $as_echo_n "(cached) " >&6
  6405. else
  6406. if test -n "$NMEDIT"; then
  6407. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6408. else
  6409. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6410. for as_dir in $PATH
  6411. do
  6412. IFS=$as_save_IFS
  6413. test -z "$as_dir" && as_dir=.
  6414. for ac_exec_ext in '' $ac_executable_extensions; do
  6415. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6416. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6417. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6418. break 2
  6419. fi
  6420. done
  6421. done
  6422. IFS=$as_save_IFS
  6423. fi
  6424. fi
  6425. NMEDIT=$ac_cv_prog_NMEDIT
  6426. if test -n "$NMEDIT"; then
  6427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6428. $as_echo "$NMEDIT" >&6; }
  6429. else
  6430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6431. $as_echo "no" >&6; }
  6432. fi
  6433. fi
  6434. if test -z "$ac_cv_prog_NMEDIT"; then
  6435. ac_ct_NMEDIT=$NMEDIT
  6436. # Extract the first word of "nmedit", so it can be a program name with args.
  6437. set dummy nmedit; ac_word=$2
  6438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6439. $as_echo_n "checking for $ac_word... " >&6; }
  6440. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6441. $as_echo_n "(cached) " >&6
  6442. else
  6443. if test -n "$ac_ct_NMEDIT"; then
  6444. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6445. else
  6446. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6447. for as_dir in $PATH
  6448. do
  6449. IFS=$as_save_IFS
  6450. test -z "$as_dir" && as_dir=.
  6451. for ac_exec_ext in '' $ac_executable_extensions; do
  6452. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6453. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6454. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6455. break 2
  6456. fi
  6457. done
  6458. done
  6459. IFS=$as_save_IFS
  6460. fi
  6461. fi
  6462. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6463. if test -n "$ac_ct_NMEDIT"; then
  6464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6465. $as_echo "$ac_ct_NMEDIT" >&6; }
  6466. else
  6467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6468. $as_echo "no" >&6; }
  6469. fi
  6470. if test "x$ac_ct_NMEDIT" = x; then
  6471. NMEDIT=":"
  6472. else
  6473. case $cross_compiling:$ac_tool_warned in
  6474. yes:)
  6475. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6476. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6477. ac_tool_warned=yes ;;
  6478. esac
  6479. NMEDIT=$ac_ct_NMEDIT
  6480. fi
  6481. else
  6482. NMEDIT="$ac_cv_prog_NMEDIT"
  6483. fi
  6484. if test -n "$ac_tool_prefix"; then
  6485. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6486. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6488. $as_echo_n "checking for $ac_word... " >&6; }
  6489. if ${ac_cv_prog_LIPO+:} false; then :
  6490. $as_echo_n "(cached) " >&6
  6491. else
  6492. if test -n "$LIPO"; then
  6493. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6494. else
  6495. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6496. for as_dir in $PATH
  6497. do
  6498. IFS=$as_save_IFS
  6499. test -z "$as_dir" && as_dir=.
  6500. for ac_exec_ext in '' $ac_executable_extensions; do
  6501. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6502. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6503. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6504. break 2
  6505. fi
  6506. done
  6507. done
  6508. IFS=$as_save_IFS
  6509. fi
  6510. fi
  6511. LIPO=$ac_cv_prog_LIPO
  6512. if test -n "$LIPO"; then
  6513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6514. $as_echo "$LIPO" >&6; }
  6515. else
  6516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6517. $as_echo "no" >&6; }
  6518. fi
  6519. fi
  6520. if test -z "$ac_cv_prog_LIPO"; then
  6521. ac_ct_LIPO=$LIPO
  6522. # Extract the first word of "lipo", so it can be a program name with args.
  6523. set dummy lipo; ac_word=$2
  6524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6525. $as_echo_n "checking for $ac_word... " >&6; }
  6526. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6527. $as_echo_n "(cached) " >&6
  6528. else
  6529. if test -n "$ac_ct_LIPO"; then
  6530. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6531. else
  6532. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6533. for as_dir in $PATH
  6534. do
  6535. IFS=$as_save_IFS
  6536. test -z "$as_dir" && as_dir=.
  6537. for ac_exec_ext in '' $ac_executable_extensions; do
  6538. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6539. ac_cv_prog_ac_ct_LIPO="lipo"
  6540. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6541. break 2
  6542. fi
  6543. done
  6544. done
  6545. IFS=$as_save_IFS
  6546. fi
  6547. fi
  6548. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6549. if test -n "$ac_ct_LIPO"; then
  6550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6551. $as_echo "$ac_ct_LIPO" >&6; }
  6552. else
  6553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6554. $as_echo "no" >&6; }
  6555. fi
  6556. if test "x$ac_ct_LIPO" = x; then
  6557. LIPO=":"
  6558. else
  6559. case $cross_compiling:$ac_tool_warned in
  6560. yes:)
  6561. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6562. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6563. ac_tool_warned=yes ;;
  6564. esac
  6565. LIPO=$ac_ct_LIPO
  6566. fi
  6567. else
  6568. LIPO="$ac_cv_prog_LIPO"
  6569. fi
  6570. if test -n "$ac_tool_prefix"; then
  6571. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6572. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6574. $as_echo_n "checking for $ac_word... " >&6; }
  6575. if ${ac_cv_prog_OTOOL+:} false; then :
  6576. $as_echo_n "(cached) " >&6
  6577. else
  6578. if test -n "$OTOOL"; then
  6579. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6580. else
  6581. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6582. for as_dir in $PATH
  6583. do
  6584. IFS=$as_save_IFS
  6585. test -z "$as_dir" && as_dir=.
  6586. for ac_exec_ext in '' $ac_executable_extensions; do
  6587. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6588. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6589. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6590. break 2
  6591. fi
  6592. done
  6593. done
  6594. IFS=$as_save_IFS
  6595. fi
  6596. fi
  6597. OTOOL=$ac_cv_prog_OTOOL
  6598. if test -n "$OTOOL"; then
  6599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6600. $as_echo "$OTOOL" >&6; }
  6601. else
  6602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6603. $as_echo "no" >&6; }
  6604. fi
  6605. fi
  6606. if test -z "$ac_cv_prog_OTOOL"; then
  6607. ac_ct_OTOOL=$OTOOL
  6608. # Extract the first word of "otool", so it can be a program name with args.
  6609. set dummy otool; ac_word=$2
  6610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6611. $as_echo_n "checking for $ac_word... " >&6; }
  6612. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6613. $as_echo_n "(cached) " >&6
  6614. else
  6615. if test -n "$ac_ct_OTOOL"; then
  6616. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6617. else
  6618. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6619. for as_dir in $PATH
  6620. do
  6621. IFS=$as_save_IFS
  6622. test -z "$as_dir" && as_dir=.
  6623. for ac_exec_ext in '' $ac_executable_extensions; do
  6624. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6625. ac_cv_prog_ac_ct_OTOOL="otool"
  6626. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6627. break 2
  6628. fi
  6629. done
  6630. done
  6631. IFS=$as_save_IFS
  6632. fi
  6633. fi
  6634. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6635. if test -n "$ac_ct_OTOOL"; then
  6636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6637. $as_echo "$ac_ct_OTOOL" >&6; }
  6638. else
  6639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6640. $as_echo "no" >&6; }
  6641. fi
  6642. if test "x$ac_ct_OTOOL" = x; then
  6643. OTOOL=":"
  6644. else
  6645. case $cross_compiling:$ac_tool_warned in
  6646. yes:)
  6647. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6648. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6649. ac_tool_warned=yes ;;
  6650. esac
  6651. OTOOL=$ac_ct_OTOOL
  6652. fi
  6653. else
  6654. OTOOL="$ac_cv_prog_OTOOL"
  6655. fi
  6656. if test -n "$ac_tool_prefix"; then
  6657. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6658. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6660. $as_echo_n "checking for $ac_word... " >&6; }
  6661. if ${ac_cv_prog_OTOOL64+:} false; then :
  6662. $as_echo_n "(cached) " >&6
  6663. else
  6664. if test -n "$OTOOL64"; then
  6665. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6666. else
  6667. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6668. for as_dir in $PATH
  6669. do
  6670. IFS=$as_save_IFS
  6671. test -z "$as_dir" && as_dir=.
  6672. for ac_exec_ext in '' $ac_executable_extensions; do
  6673. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6674. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6675. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6676. break 2
  6677. fi
  6678. done
  6679. done
  6680. IFS=$as_save_IFS
  6681. fi
  6682. fi
  6683. OTOOL64=$ac_cv_prog_OTOOL64
  6684. if test -n "$OTOOL64"; then
  6685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6686. $as_echo "$OTOOL64" >&6; }
  6687. else
  6688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6689. $as_echo "no" >&6; }
  6690. fi
  6691. fi
  6692. if test -z "$ac_cv_prog_OTOOL64"; then
  6693. ac_ct_OTOOL64=$OTOOL64
  6694. # Extract the first word of "otool64", so it can be a program name with args.
  6695. set dummy otool64; ac_word=$2
  6696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6697. $as_echo_n "checking for $ac_word... " >&6; }
  6698. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6699. $as_echo_n "(cached) " >&6
  6700. else
  6701. if test -n "$ac_ct_OTOOL64"; then
  6702. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6703. else
  6704. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6705. for as_dir in $PATH
  6706. do
  6707. IFS=$as_save_IFS
  6708. test -z "$as_dir" && as_dir=.
  6709. for ac_exec_ext in '' $ac_executable_extensions; do
  6710. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6711. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6712. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6713. break 2
  6714. fi
  6715. done
  6716. done
  6717. IFS=$as_save_IFS
  6718. fi
  6719. fi
  6720. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6721. if test -n "$ac_ct_OTOOL64"; then
  6722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6723. $as_echo "$ac_ct_OTOOL64" >&6; }
  6724. else
  6725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6726. $as_echo "no" >&6; }
  6727. fi
  6728. if test "x$ac_ct_OTOOL64" = x; then
  6729. OTOOL64=":"
  6730. else
  6731. case $cross_compiling:$ac_tool_warned in
  6732. yes:)
  6733. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6734. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6735. ac_tool_warned=yes ;;
  6736. esac
  6737. OTOOL64=$ac_ct_OTOOL64
  6738. fi
  6739. else
  6740. OTOOL64="$ac_cv_prog_OTOOL64"
  6741. fi
  6742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6743. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6744. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6745. $as_echo_n "(cached) " >&6
  6746. else
  6747. lt_cv_apple_cc_single_mod=no
  6748. if test -z "$LT_MULTI_MODULE"; then
  6749. # By default we will add the -single_module flag. You can override
  6750. # by either setting the environment variable LT_MULTI_MODULE
  6751. # non-empty at configure time, or by adding -multi_module to the
  6752. # link flags.
  6753. rm -rf libconftest.dylib*
  6754. echo "int foo(void){return 1;}" > conftest.c
  6755. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6756. -dynamiclib -Wl,-single_module conftest.c" >&5
  6757. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6758. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6759. _lt_result=$?
  6760. # If there is a non-empty error log, and "single_module"
  6761. # appears in it, assume the flag caused a linker warning
  6762. if test -s conftest.err && $GREP single_module conftest.err; then
  6763. cat conftest.err >&5
  6764. # Otherwise, if the output was created with a 0 exit code from
  6765. # the compiler, it worked.
  6766. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  6767. lt_cv_apple_cc_single_mod=yes
  6768. else
  6769. cat conftest.err >&5
  6770. fi
  6771. rm -rf libconftest.dylib*
  6772. rm -f conftest.*
  6773. fi
  6774. fi
  6775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6776. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6778. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6779. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6780. $as_echo_n "(cached) " >&6
  6781. else
  6782. lt_cv_ld_exported_symbols_list=no
  6783. save_LDFLAGS=$LDFLAGS
  6784. echo "_main" > conftest.sym
  6785. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6786. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6787. /* end confdefs.h. */
  6788. int
  6789. main ()
  6790. {
  6791. ;
  6792. return 0;
  6793. }
  6794. _ACEOF
  6795. if ac_fn_c_try_link "$LINENO"; then :
  6796. lt_cv_ld_exported_symbols_list=yes
  6797. else
  6798. lt_cv_ld_exported_symbols_list=no
  6799. fi
  6800. rm -f core conftest.err conftest.$ac_objext \
  6801. conftest$ac_exeext conftest.$ac_ext
  6802. LDFLAGS=$save_LDFLAGS
  6803. fi
  6804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6805. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6807. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6808. if ${lt_cv_ld_force_load+:} false; then :
  6809. $as_echo_n "(cached) " >&6
  6810. else
  6811. lt_cv_ld_force_load=no
  6812. cat > conftest.c << _LT_EOF
  6813. int forced_loaded() { return 2;}
  6814. _LT_EOF
  6815. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6816. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6817. echo "$AR cru libconftest.a conftest.o" >&5
  6818. $AR cru libconftest.a conftest.o 2>&5
  6819. echo "$RANLIB libconftest.a" >&5
  6820. $RANLIB libconftest.a 2>&5
  6821. cat > conftest.c << _LT_EOF
  6822. int main() { return 0;}
  6823. _LT_EOF
  6824. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6825. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6826. _lt_result=$?
  6827. if test -s conftest.err && $GREP force_load conftest.err; then
  6828. cat conftest.err >&5
  6829. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  6830. lt_cv_ld_force_load=yes
  6831. else
  6832. cat conftest.err >&5
  6833. fi
  6834. rm -f conftest.err libconftest.a conftest conftest.c
  6835. rm -rf conftest.dSYM
  6836. fi
  6837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6838. $as_echo "$lt_cv_ld_force_load" >&6; }
  6839. case $host_os in
  6840. rhapsody* | darwin1.[012])
  6841. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  6842. darwin1.*)
  6843. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6844. darwin*) # darwin 5.x on
  6845. # if running on 10.5 or later, the deployment target defaults
  6846. # to the OS version, if on x86, and 10.4, the deployment
  6847. # target defaults to 10.4. Don't you love it?
  6848. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6849. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6850. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  6851. 10.[012][,.]*)
  6852. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6853. 10.*)
  6854. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  6855. esac
  6856. ;;
  6857. esac
  6858. if test yes = "$lt_cv_apple_cc_single_mod"; then
  6859. _lt_dar_single_mod='$single_module'
  6860. fi
  6861. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  6862. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  6863. else
  6864. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  6865. fi
  6866. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  6867. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6868. else
  6869. _lt_dsymutil=
  6870. fi
  6871. ;;
  6872. esac
  6873. # func_munge_path_list VARIABLE PATH
  6874. # -----------------------------------
  6875. # VARIABLE is name of variable containing _space_ separated list of
  6876. # directories to be munged by the contents of PATH, which is string
  6877. # having a format:
  6878. # "DIR[:DIR]:"
  6879. # string "DIR[ DIR]" will be prepended to VARIABLE
  6880. # ":DIR[:DIR]"
  6881. # string "DIR[ DIR]" will be appended to VARIABLE
  6882. # "DIRP[:DIRP]::[DIRA:]DIRA"
  6883. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  6884. # "DIRA[ DIRA]" will be appended to VARIABLE
  6885. # "DIR[:DIR]"
  6886. # VARIABLE will be replaced by "DIR[ DIR]"
  6887. func_munge_path_list ()
  6888. {
  6889. case x$2 in
  6890. x)
  6891. ;;
  6892. *:)
  6893. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  6894. ;;
  6895. x:*)
  6896. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  6897. ;;
  6898. *::*)
  6899. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  6900. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  6901. ;;
  6902. *)
  6903. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  6904. ;;
  6905. esac
  6906. }
  6907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6908. $as_echo_n "checking for ANSI C header files... " >&6; }
  6909. if ${ac_cv_header_stdc+:} false; then :
  6910. $as_echo_n "(cached) " >&6
  6911. else
  6912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6913. /* end confdefs.h. */
  6914. #include <stdlib.h>
  6915. #include <stdarg.h>
  6916. #include <string.h>
  6917. #include <float.h>
  6918. int
  6919. main ()
  6920. {
  6921. ;
  6922. return 0;
  6923. }
  6924. _ACEOF
  6925. if ac_fn_c_try_compile "$LINENO"; then :
  6926. ac_cv_header_stdc=yes
  6927. else
  6928. ac_cv_header_stdc=no
  6929. fi
  6930. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6931. if test $ac_cv_header_stdc = yes; then
  6932. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6933. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6934. /* end confdefs.h. */
  6935. #include <string.h>
  6936. _ACEOF
  6937. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6938. $EGREP "memchr" >/dev/null 2>&1; then :
  6939. else
  6940. ac_cv_header_stdc=no
  6941. fi
  6942. rm -f conftest*
  6943. fi
  6944. if test $ac_cv_header_stdc = yes; then
  6945. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6946. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6947. /* end confdefs.h. */
  6948. #include <stdlib.h>
  6949. _ACEOF
  6950. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6951. $EGREP "free" >/dev/null 2>&1; then :
  6952. else
  6953. ac_cv_header_stdc=no
  6954. fi
  6955. rm -f conftest*
  6956. fi
  6957. if test $ac_cv_header_stdc = yes; then
  6958. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6959. if test "$cross_compiling" = yes; then :
  6960. :
  6961. else
  6962. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6963. /* end confdefs.h. */
  6964. #include <ctype.h>
  6965. #include <stdlib.h>
  6966. #if ((' ' & 0x0FF) == 0x020)
  6967. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6968. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6969. #else
  6970. # define ISLOWER(c) \
  6971. (('a' <= (c) && (c) <= 'i') \
  6972. || ('j' <= (c) && (c) <= 'r') \
  6973. || ('s' <= (c) && (c) <= 'z'))
  6974. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6975. #endif
  6976. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6977. int
  6978. main ()
  6979. {
  6980. int i;
  6981. for (i = 0; i < 256; i++)
  6982. if (XOR (islower (i), ISLOWER (i))
  6983. || toupper (i) != TOUPPER (i))
  6984. return 2;
  6985. return 0;
  6986. }
  6987. _ACEOF
  6988. if ac_fn_c_try_run "$LINENO"; then :
  6989. else
  6990. ac_cv_header_stdc=no
  6991. fi
  6992. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6993. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6994. fi
  6995. fi
  6996. fi
  6997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6998. $as_echo "$ac_cv_header_stdc" >&6; }
  6999. if test $ac_cv_header_stdc = yes; then
  7000. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  7001. fi
  7002. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7003. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7004. inttypes.h stdint.h unistd.h
  7005. do :
  7006. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7007. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  7008. "
  7009. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7010. cat >>confdefs.h <<_ACEOF
  7011. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7012. _ACEOF
  7013. fi
  7014. done
  7015. for ac_header in dlfcn.h
  7016. do :
  7017. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7018. "
  7019. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7020. cat >>confdefs.h <<_ACEOF
  7021. #define HAVE_DLFCN_H 1
  7022. _ACEOF
  7023. fi
  7024. done
  7025. # Set options
  7026. enable_win32_dll=yes
  7027. case $host in
  7028. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  7029. if test -n "$ac_tool_prefix"; then
  7030. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  7031. set dummy ${ac_tool_prefix}as; ac_word=$2
  7032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7033. $as_echo_n "checking for $ac_word... " >&6; }
  7034. if ${ac_cv_prog_AS+:} false; then :
  7035. $as_echo_n "(cached) " >&6
  7036. else
  7037. if test -n "$AS"; then
  7038. ac_cv_prog_AS="$AS" # Let the user override the test.
  7039. else
  7040. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7041. for as_dir in $PATH
  7042. do
  7043. IFS=$as_save_IFS
  7044. test -z "$as_dir" && as_dir=.
  7045. for ac_exec_ext in '' $ac_executable_extensions; do
  7046. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7047. ac_cv_prog_AS="${ac_tool_prefix}as"
  7048. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7049. break 2
  7050. fi
  7051. done
  7052. done
  7053. IFS=$as_save_IFS
  7054. fi
  7055. fi
  7056. AS=$ac_cv_prog_AS
  7057. if test -n "$AS"; then
  7058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  7059. $as_echo "$AS" >&6; }
  7060. else
  7061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7062. $as_echo "no" >&6; }
  7063. fi
  7064. fi
  7065. if test -z "$ac_cv_prog_AS"; then
  7066. ac_ct_AS=$AS
  7067. # Extract the first word of "as", so it can be a program name with args.
  7068. set dummy as; ac_word=$2
  7069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7070. $as_echo_n "checking for $ac_word... " >&6; }
  7071. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  7072. $as_echo_n "(cached) " >&6
  7073. else
  7074. if test -n "$ac_ct_AS"; then
  7075. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  7076. else
  7077. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7078. for as_dir in $PATH
  7079. do
  7080. IFS=$as_save_IFS
  7081. test -z "$as_dir" && as_dir=.
  7082. for ac_exec_ext in '' $ac_executable_extensions; do
  7083. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7084. ac_cv_prog_ac_ct_AS="as"
  7085. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7086. break 2
  7087. fi
  7088. done
  7089. done
  7090. IFS=$as_save_IFS
  7091. fi
  7092. fi
  7093. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  7094. if test -n "$ac_ct_AS"; then
  7095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  7096. $as_echo "$ac_ct_AS" >&6; }
  7097. else
  7098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7099. $as_echo "no" >&6; }
  7100. fi
  7101. if test "x$ac_ct_AS" = x; then
  7102. AS="false"
  7103. else
  7104. case $cross_compiling:$ac_tool_warned in
  7105. yes:)
  7106. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7107. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7108. ac_tool_warned=yes ;;
  7109. esac
  7110. AS=$ac_ct_AS
  7111. fi
  7112. else
  7113. AS="$ac_cv_prog_AS"
  7114. fi
  7115. if test -n "$ac_tool_prefix"; then
  7116. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  7117. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  7118. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7119. $as_echo_n "checking for $ac_word... " >&6; }
  7120. if ${ac_cv_prog_DLLTOOL+:} false; then :
  7121. $as_echo_n "(cached) " >&6
  7122. else
  7123. if test -n "$DLLTOOL"; then
  7124. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7125. else
  7126. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7127. for as_dir in $PATH
  7128. do
  7129. IFS=$as_save_IFS
  7130. test -z "$as_dir" && as_dir=.
  7131. for ac_exec_ext in '' $ac_executable_extensions; do
  7132. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7133. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  7134. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7135. break 2
  7136. fi
  7137. done
  7138. done
  7139. IFS=$as_save_IFS
  7140. fi
  7141. fi
  7142. DLLTOOL=$ac_cv_prog_DLLTOOL
  7143. if test -n "$DLLTOOL"; then
  7144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7145. $as_echo "$DLLTOOL" >&6; }
  7146. else
  7147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7148. $as_echo "no" >&6; }
  7149. fi
  7150. fi
  7151. if test -z "$ac_cv_prog_DLLTOOL"; then
  7152. ac_ct_DLLTOOL=$DLLTOOL
  7153. # Extract the first word of "dlltool", so it can be a program name with args.
  7154. set dummy dlltool; ac_word=$2
  7155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7156. $as_echo_n "checking for $ac_word... " >&6; }
  7157. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  7158. $as_echo_n "(cached) " >&6
  7159. else
  7160. if test -n "$ac_ct_DLLTOOL"; then
  7161. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  7162. else
  7163. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7164. for as_dir in $PATH
  7165. do
  7166. IFS=$as_save_IFS
  7167. test -z "$as_dir" && as_dir=.
  7168. for ac_exec_ext in '' $ac_executable_extensions; do
  7169. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7170. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  7171. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7172. break 2
  7173. fi
  7174. done
  7175. done
  7176. IFS=$as_save_IFS
  7177. fi
  7178. fi
  7179. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  7180. if test -n "$ac_ct_DLLTOOL"; then
  7181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  7182. $as_echo "$ac_ct_DLLTOOL" >&6; }
  7183. else
  7184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7185. $as_echo "no" >&6; }
  7186. fi
  7187. if test "x$ac_ct_DLLTOOL" = x; then
  7188. DLLTOOL="false"
  7189. else
  7190. case $cross_compiling:$ac_tool_warned in
  7191. yes:)
  7192. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7193. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7194. ac_tool_warned=yes ;;
  7195. esac
  7196. DLLTOOL=$ac_ct_DLLTOOL
  7197. fi
  7198. else
  7199. DLLTOOL="$ac_cv_prog_DLLTOOL"
  7200. fi
  7201. if test -n "$ac_tool_prefix"; then
  7202. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  7203. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  7204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7205. $as_echo_n "checking for $ac_word... " >&6; }
  7206. if ${ac_cv_prog_OBJDUMP+:} false; then :
  7207. $as_echo_n "(cached) " >&6
  7208. else
  7209. if test -n "$OBJDUMP"; then
  7210. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  7211. else
  7212. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7213. for as_dir in $PATH
  7214. do
  7215. IFS=$as_save_IFS
  7216. test -z "$as_dir" && as_dir=.
  7217. for ac_exec_ext in '' $ac_executable_extensions; do
  7218. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7219. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  7220. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7221. break 2
  7222. fi
  7223. done
  7224. done
  7225. IFS=$as_save_IFS
  7226. fi
  7227. fi
  7228. OBJDUMP=$ac_cv_prog_OBJDUMP
  7229. if test -n "$OBJDUMP"; then
  7230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  7231. $as_echo "$OBJDUMP" >&6; }
  7232. else
  7233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7234. $as_echo "no" >&6; }
  7235. fi
  7236. fi
  7237. if test -z "$ac_cv_prog_OBJDUMP"; then
  7238. ac_ct_OBJDUMP=$OBJDUMP
  7239. # Extract the first word of "objdump", so it can be a program name with args.
  7240. set dummy objdump; ac_word=$2
  7241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7242. $as_echo_n "checking for $ac_word... " >&6; }
  7243. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  7244. $as_echo_n "(cached) " >&6
  7245. else
  7246. if test -n "$ac_ct_OBJDUMP"; then
  7247. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  7248. else
  7249. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7250. for as_dir in $PATH
  7251. do
  7252. IFS=$as_save_IFS
  7253. test -z "$as_dir" && as_dir=.
  7254. for ac_exec_ext in '' $ac_executable_extensions; do
  7255. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7256. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  7257. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7258. break 2
  7259. fi
  7260. done
  7261. done
  7262. IFS=$as_save_IFS
  7263. fi
  7264. fi
  7265. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  7266. if test -n "$ac_ct_OBJDUMP"; then
  7267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  7268. $as_echo "$ac_ct_OBJDUMP" >&6; }
  7269. else
  7270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7271. $as_echo "no" >&6; }
  7272. fi
  7273. if test "x$ac_ct_OBJDUMP" = x; then
  7274. OBJDUMP="false"
  7275. else
  7276. case $cross_compiling:$ac_tool_warned in
  7277. yes:)
  7278. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7279. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7280. ac_tool_warned=yes ;;
  7281. esac
  7282. OBJDUMP=$ac_ct_OBJDUMP
  7283. fi
  7284. else
  7285. OBJDUMP="$ac_cv_prog_OBJDUMP"
  7286. fi
  7287. ;;
  7288. esac
  7289. test -z "$AS" && AS=as
  7290. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7291. test -z "$OBJDUMP" && OBJDUMP=objdump
  7292. enable_dlopen=no
  7293. # Check whether --enable-shared was given.
  7294. if test "${enable_shared+set}" = set; then :
  7295. enableval=$enable_shared; p=${PACKAGE-default}
  7296. case $enableval in
  7297. yes) enable_shared=yes ;;
  7298. no) enable_shared=no ;;
  7299. *)
  7300. enable_shared=no
  7301. # Look at the argument we got. We use all the common list separators.
  7302. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7303. for pkg in $enableval; do
  7304. IFS=$lt_save_ifs
  7305. if test "X$pkg" = "X$p"; then
  7306. enable_shared=yes
  7307. fi
  7308. done
  7309. IFS=$lt_save_ifs
  7310. ;;
  7311. esac
  7312. else
  7313. enable_shared=yes
  7314. fi
  7315. # Check whether --enable-static was given.
  7316. if test "${enable_static+set}" = set; then :
  7317. enableval=$enable_static; p=${PACKAGE-default}
  7318. case $enableval in
  7319. yes) enable_static=yes ;;
  7320. no) enable_static=no ;;
  7321. *)
  7322. enable_static=no
  7323. # Look at the argument we got. We use all the common list separators.
  7324. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7325. for pkg in $enableval; do
  7326. IFS=$lt_save_ifs
  7327. if test "X$pkg" = "X$p"; then
  7328. enable_static=yes
  7329. fi
  7330. done
  7331. IFS=$lt_save_ifs
  7332. ;;
  7333. esac
  7334. else
  7335. enable_static=yes
  7336. fi
  7337. # Check whether --with-pic was given.
  7338. if test "${with_pic+set}" = set; then :
  7339. withval=$with_pic; lt_p=${PACKAGE-default}
  7340. case $withval in
  7341. yes|no) pic_mode=$withval ;;
  7342. *)
  7343. pic_mode=default
  7344. # Look at the argument we got. We use all the common list separators.
  7345. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7346. for lt_pkg in $withval; do
  7347. IFS=$lt_save_ifs
  7348. if test "X$lt_pkg" = "X$lt_p"; then
  7349. pic_mode=yes
  7350. fi
  7351. done
  7352. IFS=$lt_save_ifs
  7353. ;;
  7354. esac
  7355. else
  7356. pic_mode=default
  7357. fi
  7358. # Check whether --enable-fast-install was given.
  7359. if test "${enable_fast_install+set}" = set; then :
  7360. enableval=$enable_fast_install; p=${PACKAGE-default}
  7361. case $enableval in
  7362. yes) enable_fast_install=yes ;;
  7363. no) enable_fast_install=no ;;
  7364. *)
  7365. enable_fast_install=no
  7366. # Look at the argument we got. We use all the common list separators.
  7367. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7368. for pkg in $enableval; do
  7369. IFS=$lt_save_ifs
  7370. if test "X$pkg" = "X$p"; then
  7371. enable_fast_install=yes
  7372. fi
  7373. done
  7374. IFS=$lt_save_ifs
  7375. ;;
  7376. esac
  7377. else
  7378. enable_fast_install=yes
  7379. fi
  7380. shared_archive_member_spec=
  7381. case $host,$enable_shared in
  7382. power*-*-aix[5-9]*,yes)
  7383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7384. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  7385. # Check whether --with-aix-soname was given.
  7386. if test "${with_aix_soname+set}" = set; then :
  7387. withval=$with_aix_soname; case $withval in
  7388. aix|svr4|both)
  7389. ;;
  7390. *)
  7391. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7392. ;;
  7393. esac
  7394. lt_cv_with_aix_soname=$with_aix_soname
  7395. else
  7396. if ${lt_cv_with_aix_soname+:} false; then :
  7397. $as_echo_n "(cached) " >&6
  7398. else
  7399. lt_cv_with_aix_soname=aix
  7400. fi
  7401. with_aix_soname=$lt_cv_with_aix_soname
  7402. fi
  7403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7404. $as_echo "$with_aix_soname" >&6; }
  7405. if test aix != "$with_aix_soname"; then
  7406. # For the AIX way of multilib, we name the shared archive member
  7407. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7408. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7409. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7410. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7411. if test 64 = "${OBJECT_MODE-32}"; then
  7412. shared_archive_member_spec=shr_64
  7413. else
  7414. shared_archive_member_spec=shr
  7415. fi
  7416. fi
  7417. ;;
  7418. *)
  7419. with_aix_soname=aix
  7420. ;;
  7421. esac
  7422. # This can be used to rebuild libtool when needed
  7423. LIBTOOL_DEPS=$ltmain
  7424. # Always use our own libtool.
  7425. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7426. test -z "$LN_S" && LN_S="ln -s"
  7427. if test -n "${ZSH_VERSION+set}"; then
  7428. setopt NO_GLOB_SUBST
  7429. fi
  7430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7431. $as_echo_n "checking for objdir... " >&6; }
  7432. if ${lt_cv_objdir+:} false; then :
  7433. $as_echo_n "(cached) " >&6
  7434. else
  7435. rm -f .libs 2>/dev/null
  7436. mkdir .libs 2>/dev/null
  7437. if test -d .libs; then
  7438. lt_cv_objdir=.libs
  7439. else
  7440. # MS-DOS does not allow filenames that begin with a dot.
  7441. lt_cv_objdir=_libs
  7442. fi
  7443. rmdir .libs 2>/dev/null
  7444. fi
  7445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7446. $as_echo "$lt_cv_objdir" >&6; }
  7447. objdir=$lt_cv_objdir
  7448. cat >>confdefs.h <<_ACEOF
  7449. #define LT_OBJDIR "$lt_cv_objdir/"
  7450. _ACEOF
  7451. case $host_os in
  7452. aix3*)
  7453. # AIX sometimes has problems with the GCC collect2 program. For some
  7454. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7455. # vanish in a puff of smoke.
  7456. if test set != "${COLLECT_NAMES+set}"; then
  7457. COLLECT_NAMES=
  7458. export COLLECT_NAMES
  7459. fi
  7460. ;;
  7461. esac
  7462. # Global variables:
  7463. ofile=libtool
  7464. can_build_shared=yes
  7465. # All known linkers require a '.a' archive for static linking (except MSVC,
  7466. # which needs '.lib').
  7467. libext=a
  7468. with_gnu_ld=$lt_cv_prog_gnu_ld
  7469. old_CC=$CC
  7470. old_CFLAGS=$CFLAGS
  7471. # Set sane defaults for various variables
  7472. test -z "$CC" && CC=cc
  7473. test -z "$LTCC" && LTCC=$CC
  7474. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7475. test -z "$LD" && LD=ld
  7476. test -z "$ac_objext" && ac_objext=o
  7477. func_cc_basename $compiler
  7478. cc_basename=$func_cc_basename_result
  7479. # Only perform the check for file, if the check method requires it
  7480. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7481. case $deplibs_check_method in
  7482. file_magic*)
  7483. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7485. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7486. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7487. $as_echo_n "(cached) " >&6
  7488. else
  7489. case $MAGIC_CMD in
  7490. [\\/*] | ?:[\\/]*)
  7491. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7492. ;;
  7493. *)
  7494. lt_save_MAGIC_CMD=$MAGIC_CMD
  7495. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7496. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7497. for ac_dir in $ac_dummy; do
  7498. IFS=$lt_save_ifs
  7499. test -z "$ac_dir" && ac_dir=.
  7500. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7501. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7502. if test -n "$file_magic_test_file"; then
  7503. case $deplibs_check_method in
  7504. "file_magic "*)
  7505. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7506. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7507. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7508. $EGREP "$file_magic_regex" > /dev/null; then
  7509. :
  7510. else
  7511. cat <<_LT_EOF 1>&2
  7512. *** Warning: the command libtool uses to detect shared libraries,
  7513. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7514. *** The result is that libtool may fail to recognize shared libraries
  7515. *** as such. This will affect the creation of libtool libraries that
  7516. *** depend on shared libraries, but programs linked with such libtool
  7517. *** libraries will work regardless of this problem. Nevertheless, you
  7518. *** may want to report the problem to your system manager and/or to
  7519. *** bug-libtool@gnu.org
  7520. _LT_EOF
  7521. fi ;;
  7522. esac
  7523. fi
  7524. break
  7525. fi
  7526. done
  7527. IFS=$lt_save_ifs
  7528. MAGIC_CMD=$lt_save_MAGIC_CMD
  7529. ;;
  7530. esac
  7531. fi
  7532. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7533. if test -n "$MAGIC_CMD"; then
  7534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7535. $as_echo "$MAGIC_CMD" >&6; }
  7536. else
  7537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7538. $as_echo "no" >&6; }
  7539. fi
  7540. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7541. if test -n "$ac_tool_prefix"; then
  7542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7543. $as_echo_n "checking for file... " >&6; }
  7544. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7545. $as_echo_n "(cached) " >&6
  7546. else
  7547. case $MAGIC_CMD in
  7548. [\\/*] | ?:[\\/]*)
  7549. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7550. ;;
  7551. *)
  7552. lt_save_MAGIC_CMD=$MAGIC_CMD
  7553. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7554. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7555. for ac_dir in $ac_dummy; do
  7556. IFS=$lt_save_ifs
  7557. test -z "$ac_dir" && ac_dir=.
  7558. if test -f "$ac_dir/file"; then
  7559. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7560. if test -n "$file_magic_test_file"; then
  7561. case $deplibs_check_method in
  7562. "file_magic "*)
  7563. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7564. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7565. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7566. $EGREP "$file_magic_regex" > /dev/null; then
  7567. :
  7568. else
  7569. cat <<_LT_EOF 1>&2
  7570. *** Warning: the command libtool uses to detect shared libraries,
  7571. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7572. *** The result is that libtool may fail to recognize shared libraries
  7573. *** as such. This will affect the creation of libtool libraries that
  7574. *** depend on shared libraries, but programs linked with such libtool
  7575. *** libraries will work regardless of this problem. Nevertheless, you
  7576. *** may want to report the problem to your system manager and/or to
  7577. *** bug-libtool@gnu.org
  7578. _LT_EOF
  7579. fi ;;
  7580. esac
  7581. fi
  7582. break
  7583. fi
  7584. done
  7585. IFS=$lt_save_ifs
  7586. MAGIC_CMD=$lt_save_MAGIC_CMD
  7587. ;;
  7588. esac
  7589. fi
  7590. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7591. if test -n "$MAGIC_CMD"; then
  7592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7593. $as_echo "$MAGIC_CMD" >&6; }
  7594. else
  7595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7596. $as_echo "no" >&6; }
  7597. fi
  7598. else
  7599. MAGIC_CMD=:
  7600. fi
  7601. fi
  7602. fi
  7603. ;;
  7604. esac
  7605. # Use C for the default configuration in the libtool script
  7606. lt_save_CC=$CC
  7607. ac_ext=c
  7608. ac_cpp='$CPP $CPPFLAGS'
  7609. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7610. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7611. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7612. # Source file extension for C test sources.
  7613. ac_ext=c
  7614. # Object file extension for compiled C test sources.
  7615. objext=o
  7616. objext=$objext
  7617. # Code to be used in simple compile tests
  7618. lt_simple_compile_test_code="int some_variable = 0;"
  7619. # Code to be used in simple link tests
  7620. lt_simple_link_test_code='int main(){return(0);}'
  7621. # If no C compiler was specified, use CC.
  7622. LTCC=${LTCC-"$CC"}
  7623. # If no C compiler flags were specified, use CFLAGS.
  7624. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7625. # Allow CC to be a program name with arguments.
  7626. compiler=$CC
  7627. # Save the default compiler, since it gets overwritten when the other
  7628. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7629. compiler_DEFAULT=$CC
  7630. # save warnings/boilerplate of simple test code
  7631. ac_outfile=conftest.$ac_objext
  7632. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7633. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7634. _lt_compiler_boilerplate=`cat conftest.err`
  7635. $RM conftest*
  7636. ac_outfile=conftest.$ac_objext
  7637. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7638. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7639. _lt_linker_boilerplate=`cat conftest.err`
  7640. $RM -r conftest*
  7641. ## CAVEAT EMPTOR:
  7642. ## There is no encapsulation within the following macros, do not change
  7643. ## the running order or otherwise move them around unless you know exactly
  7644. ## what you are doing...
  7645. if test -n "$compiler"; then
  7646. lt_prog_compiler_no_builtin_flag=
  7647. if test yes = "$GCC"; then
  7648. case $cc_basename in
  7649. nvcc*)
  7650. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7651. *)
  7652. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7653. esac
  7654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7655. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7656. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7657. $as_echo_n "(cached) " >&6
  7658. else
  7659. lt_cv_prog_compiler_rtti_exceptions=no
  7660. ac_outfile=conftest.$ac_objext
  7661. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7662. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7663. # Insert the option either (1) after the last *FLAGS variable, or
  7664. # (2) before a word containing "conftest.", or (3) at the end.
  7665. # Note that $ac_compile itself does not contain backslashes and begins
  7666. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7667. # The option is referenced via a variable to avoid confusing sed.
  7668. lt_compile=`echo "$ac_compile" | $SED \
  7669. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7670. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7671. -e 's:$: $lt_compiler_flag:'`
  7672. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7673. (eval "$lt_compile" 2>conftest.err)
  7674. ac_status=$?
  7675. cat conftest.err >&5
  7676. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7677. if (exit $ac_status) && test -s "$ac_outfile"; then
  7678. # The compiler can only warn and ignore the option if not recognized
  7679. # So say no if there are warnings other than the usual output.
  7680. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7681. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7682. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7683. lt_cv_prog_compiler_rtti_exceptions=yes
  7684. fi
  7685. fi
  7686. $RM conftest*
  7687. fi
  7688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7689. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7690. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  7691. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7692. else
  7693. :
  7694. fi
  7695. fi
  7696. lt_prog_compiler_wl=
  7697. lt_prog_compiler_pic=
  7698. lt_prog_compiler_static=
  7699. if test yes = "$GCC"; then
  7700. lt_prog_compiler_wl='-Wl,'
  7701. lt_prog_compiler_static='-static'
  7702. case $host_os in
  7703. aix*)
  7704. # All AIX code is PIC.
  7705. if test ia64 = "$host_cpu"; then
  7706. # AIX 5 now supports IA64 processor
  7707. lt_prog_compiler_static='-Bstatic'
  7708. fi
  7709. lt_prog_compiler_pic='-fPIC'
  7710. ;;
  7711. amigaos*)
  7712. case $host_cpu in
  7713. powerpc)
  7714. # see comment about AmigaOS4 .so support
  7715. lt_prog_compiler_pic='-fPIC'
  7716. ;;
  7717. m68k)
  7718. # FIXME: we need at least 68020 code to build shared libraries, but
  7719. # adding the '-m68020' flag to GCC prevents building anything better,
  7720. # like '-m68040'.
  7721. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7722. ;;
  7723. esac
  7724. ;;
  7725. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7726. # PIC is the default for these OSes.
  7727. ;;
  7728. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7729. # This hack is so that the source file can tell whether it is being
  7730. # built for inclusion in a dll (and should export symbols for example).
  7731. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7732. # (--disable-auto-import) libraries
  7733. lt_prog_compiler_pic='-DDLL_EXPORT'
  7734. case $host_os in
  7735. os2*)
  7736. lt_prog_compiler_static='$wl-static'
  7737. ;;
  7738. esac
  7739. ;;
  7740. darwin* | rhapsody*)
  7741. # PIC is the default on this platform
  7742. # Common symbols not allowed in MH_DYLIB files
  7743. lt_prog_compiler_pic='-fno-common'
  7744. ;;
  7745. haiku*)
  7746. # PIC is the default for Haiku.
  7747. # The "-static" flag exists, but is broken.
  7748. lt_prog_compiler_static=
  7749. ;;
  7750. hpux*)
  7751. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7752. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7753. # sets the default TLS model and affects inlining.
  7754. case $host_cpu in
  7755. hppa*64*)
  7756. # +Z the default
  7757. ;;
  7758. *)
  7759. lt_prog_compiler_pic='-fPIC'
  7760. ;;
  7761. esac
  7762. ;;
  7763. interix[3-9]*)
  7764. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7765. # Instead, we relocate shared libraries at runtime.
  7766. ;;
  7767. msdosdjgpp*)
  7768. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7769. # on systems that don't support them.
  7770. lt_prog_compiler_can_build_shared=no
  7771. enable_shared=no
  7772. ;;
  7773. *nto* | *qnx*)
  7774. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7775. # it will coredump.
  7776. lt_prog_compiler_pic='-fPIC -shared'
  7777. ;;
  7778. sysv4*MP*)
  7779. if test -d /usr/nec; then
  7780. lt_prog_compiler_pic=-Kconform_pic
  7781. fi
  7782. ;;
  7783. *)
  7784. lt_prog_compiler_pic='-fPIC'
  7785. ;;
  7786. esac
  7787. case $cc_basename in
  7788. nvcc*) # Cuda Compiler Driver 2.2
  7789. lt_prog_compiler_wl='-Xlinker '
  7790. if test -n "$lt_prog_compiler_pic"; then
  7791. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7792. fi
  7793. ;;
  7794. esac
  7795. else
  7796. # PORTME Check for flag to pass linker flags through the system compiler.
  7797. case $host_os in
  7798. aix*)
  7799. lt_prog_compiler_wl='-Wl,'
  7800. if test ia64 = "$host_cpu"; then
  7801. # AIX 5 now supports IA64 processor
  7802. lt_prog_compiler_static='-Bstatic'
  7803. else
  7804. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7805. fi
  7806. ;;
  7807. darwin* | rhapsody*)
  7808. # PIC is the default on this platform
  7809. # Common symbols not allowed in MH_DYLIB files
  7810. lt_prog_compiler_pic='-fno-common'
  7811. case $cc_basename in
  7812. nagfor*)
  7813. # NAG Fortran compiler
  7814. lt_prog_compiler_wl='-Wl,-Wl,,'
  7815. lt_prog_compiler_pic='-PIC'
  7816. lt_prog_compiler_static='-Bstatic'
  7817. ;;
  7818. esac
  7819. ;;
  7820. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7821. # This hack is so that the source file can tell whether it is being
  7822. # built for inclusion in a dll (and should export symbols for example).
  7823. lt_prog_compiler_pic='-DDLL_EXPORT'
  7824. case $host_os in
  7825. os2*)
  7826. lt_prog_compiler_static='$wl-static'
  7827. ;;
  7828. esac
  7829. ;;
  7830. hpux9* | hpux10* | hpux11*)
  7831. lt_prog_compiler_wl='-Wl,'
  7832. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7833. # not for PA HP-UX.
  7834. case $host_cpu in
  7835. hppa*64*|ia64*)
  7836. # +Z the default
  7837. ;;
  7838. *)
  7839. lt_prog_compiler_pic='+Z'
  7840. ;;
  7841. esac
  7842. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7843. lt_prog_compiler_static='$wl-a ${wl}archive'
  7844. ;;
  7845. irix5* | irix6* | nonstopux*)
  7846. lt_prog_compiler_wl='-Wl,'
  7847. # PIC (with -KPIC) is the default.
  7848. lt_prog_compiler_static='-non_shared'
  7849. ;;
  7850. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  7851. case $cc_basename in
  7852. # old Intel for x86_64, which still supported -KPIC.
  7853. ecc*)
  7854. lt_prog_compiler_wl='-Wl,'
  7855. lt_prog_compiler_pic='-KPIC'
  7856. lt_prog_compiler_static='-static'
  7857. ;;
  7858. # icc used to be incompatible with GCC.
  7859. # ICC 10 doesn't accept -KPIC any more.
  7860. icc* | ifort*)
  7861. lt_prog_compiler_wl='-Wl,'
  7862. lt_prog_compiler_pic='-fPIC'
  7863. lt_prog_compiler_static='-static'
  7864. ;;
  7865. # Lahey Fortran 8.1.
  7866. lf95*)
  7867. lt_prog_compiler_wl='-Wl,'
  7868. lt_prog_compiler_pic='--shared'
  7869. lt_prog_compiler_static='--static'
  7870. ;;
  7871. nagfor*)
  7872. # NAG Fortran compiler
  7873. lt_prog_compiler_wl='-Wl,-Wl,,'
  7874. lt_prog_compiler_pic='-PIC'
  7875. lt_prog_compiler_static='-Bstatic'
  7876. ;;
  7877. tcc*)
  7878. # Fabrice Bellard et al's Tiny C Compiler
  7879. lt_prog_compiler_wl='-Wl,'
  7880. lt_prog_compiler_pic='-fPIC'
  7881. lt_prog_compiler_static='-static'
  7882. ;;
  7883. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7884. # Portland Group compilers (*not* the Pentium gcc compiler,
  7885. # which looks to be a dead project)
  7886. lt_prog_compiler_wl='-Wl,'
  7887. lt_prog_compiler_pic='-fpic'
  7888. lt_prog_compiler_static='-Bstatic'
  7889. ;;
  7890. ccc*)
  7891. lt_prog_compiler_wl='-Wl,'
  7892. # All Alpha code is PIC.
  7893. lt_prog_compiler_static='-non_shared'
  7894. ;;
  7895. xl* | bgxl* | bgf* | mpixl*)
  7896. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7897. lt_prog_compiler_wl='-Wl,'
  7898. lt_prog_compiler_pic='-qpic'
  7899. lt_prog_compiler_static='-qstaticlink'
  7900. ;;
  7901. *)
  7902. case `$CC -V 2>&1 | sed 5q` in
  7903. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7904. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7905. lt_prog_compiler_pic='-KPIC'
  7906. lt_prog_compiler_static='-Bstatic'
  7907. lt_prog_compiler_wl=''
  7908. ;;
  7909. *Sun\ F* | *Sun*Fortran*)
  7910. lt_prog_compiler_pic='-KPIC'
  7911. lt_prog_compiler_static='-Bstatic'
  7912. lt_prog_compiler_wl='-Qoption ld '
  7913. ;;
  7914. *Sun\ C*)
  7915. # Sun C 5.9
  7916. lt_prog_compiler_pic='-KPIC'
  7917. lt_prog_compiler_static='-Bstatic'
  7918. lt_prog_compiler_wl='-Wl,'
  7919. ;;
  7920. *Intel*\ [CF]*Compiler*)
  7921. lt_prog_compiler_wl='-Wl,'
  7922. lt_prog_compiler_pic='-fPIC'
  7923. lt_prog_compiler_static='-static'
  7924. ;;
  7925. *Portland\ Group*)
  7926. lt_prog_compiler_wl='-Wl,'
  7927. lt_prog_compiler_pic='-fpic'
  7928. lt_prog_compiler_static='-Bstatic'
  7929. ;;
  7930. esac
  7931. ;;
  7932. esac
  7933. ;;
  7934. newsos6)
  7935. lt_prog_compiler_pic='-KPIC'
  7936. lt_prog_compiler_static='-Bstatic'
  7937. ;;
  7938. *nto* | *qnx*)
  7939. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7940. # it will coredump.
  7941. lt_prog_compiler_pic='-fPIC -shared'
  7942. ;;
  7943. osf3* | osf4* | osf5*)
  7944. lt_prog_compiler_wl='-Wl,'
  7945. # All OSF/1 code is PIC.
  7946. lt_prog_compiler_static='-non_shared'
  7947. ;;
  7948. rdos*)
  7949. lt_prog_compiler_static='-non_shared'
  7950. ;;
  7951. solaris*)
  7952. lt_prog_compiler_pic='-KPIC'
  7953. lt_prog_compiler_static='-Bstatic'
  7954. case $cc_basename in
  7955. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7956. lt_prog_compiler_wl='-Qoption ld ';;
  7957. *)
  7958. lt_prog_compiler_wl='-Wl,';;
  7959. esac
  7960. ;;
  7961. sunos4*)
  7962. lt_prog_compiler_wl='-Qoption ld '
  7963. lt_prog_compiler_pic='-PIC'
  7964. lt_prog_compiler_static='-Bstatic'
  7965. ;;
  7966. sysv4 | sysv4.2uw2* | sysv4.3*)
  7967. lt_prog_compiler_wl='-Wl,'
  7968. lt_prog_compiler_pic='-KPIC'
  7969. lt_prog_compiler_static='-Bstatic'
  7970. ;;
  7971. sysv4*MP*)
  7972. if test -d /usr/nec; then
  7973. lt_prog_compiler_pic='-Kconform_pic'
  7974. lt_prog_compiler_static='-Bstatic'
  7975. fi
  7976. ;;
  7977. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7978. lt_prog_compiler_wl='-Wl,'
  7979. lt_prog_compiler_pic='-KPIC'
  7980. lt_prog_compiler_static='-Bstatic'
  7981. ;;
  7982. unicos*)
  7983. lt_prog_compiler_wl='-Wl,'
  7984. lt_prog_compiler_can_build_shared=no
  7985. ;;
  7986. uts4*)
  7987. lt_prog_compiler_pic='-pic'
  7988. lt_prog_compiler_static='-Bstatic'
  7989. ;;
  7990. *)
  7991. lt_prog_compiler_can_build_shared=no
  7992. ;;
  7993. esac
  7994. fi
  7995. case $host_os in
  7996. # For platforms that do not support PIC, -DPIC is meaningless:
  7997. *djgpp*)
  7998. lt_prog_compiler_pic=
  7999. ;;
  8000. *)
  8001. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8002. ;;
  8003. esac
  8004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8005. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8006. if ${lt_cv_prog_compiler_pic+:} false; then :
  8007. $as_echo_n "(cached) " >&6
  8008. else
  8009. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8010. fi
  8011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8012. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  8013. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8014. #
  8015. # Check to make sure the PIC flag actually works.
  8016. #
  8017. if test -n "$lt_prog_compiler_pic"; then
  8018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8019. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8020. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8021. $as_echo_n "(cached) " >&6
  8022. else
  8023. lt_cv_prog_compiler_pic_works=no
  8024. ac_outfile=conftest.$ac_objext
  8025. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8026. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8027. # Insert the option either (1) after the last *FLAGS variable, or
  8028. # (2) before a word containing "conftest.", or (3) at the end.
  8029. # Note that $ac_compile itself does not contain backslashes and begins
  8030. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8031. # The option is referenced via a variable to avoid confusing sed.
  8032. lt_compile=`echo "$ac_compile" | $SED \
  8033. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8034. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8035. -e 's:$: $lt_compiler_flag:'`
  8036. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8037. (eval "$lt_compile" 2>conftest.err)
  8038. ac_status=$?
  8039. cat conftest.err >&5
  8040. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8041. if (exit $ac_status) && test -s "$ac_outfile"; then
  8042. # The compiler can only warn and ignore the option if not recognized
  8043. # So say no if there are warnings other than the usual output.
  8044. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8045. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8046. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8047. lt_cv_prog_compiler_pic_works=yes
  8048. fi
  8049. fi
  8050. $RM conftest*
  8051. fi
  8052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8053. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8054. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8055. case $lt_prog_compiler_pic in
  8056. "" | " "*) ;;
  8057. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8058. esac
  8059. else
  8060. lt_prog_compiler_pic=
  8061. lt_prog_compiler_can_build_shared=no
  8062. fi
  8063. fi
  8064. #
  8065. # Check to make sure the static flag actually works.
  8066. #
  8067. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8069. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8070. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8071. $as_echo_n "(cached) " >&6
  8072. else
  8073. lt_cv_prog_compiler_static_works=no
  8074. save_LDFLAGS=$LDFLAGS
  8075. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8076. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8077. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8078. # The linker can only warn and ignore the option if not recognized
  8079. # So say no if there are warnings
  8080. if test -s conftest.err; then
  8081. # Append any errors to the config.log.
  8082. cat conftest.err 1>&5
  8083. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8084. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8085. if diff conftest.exp conftest.er2 >/dev/null; then
  8086. lt_cv_prog_compiler_static_works=yes
  8087. fi
  8088. else
  8089. lt_cv_prog_compiler_static_works=yes
  8090. fi
  8091. fi
  8092. $RM -r conftest*
  8093. LDFLAGS=$save_LDFLAGS
  8094. fi
  8095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8096. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8097. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8098. :
  8099. else
  8100. lt_prog_compiler_static=
  8101. fi
  8102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8103. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8104. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8105. $as_echo_n "(cached) " >&6
  8106. else
  8107. lt_cv_prog_compiler_c_o=no
  8108. $RM -r conftest 2>/dev/null
  8109. mkdir conftest
  8110. cd conftest
  8111. mkdir out
  8112. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8113. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8114. # Insert the option either (1) after the last *FLAGS variable, or
  8115. # (2) before a word containing "conftest.", or (3) at the end.
  8116. # Note that $ac_compile itself does not contain backslashes and begins
  8117. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8118. lt_compile=`echo "$ac_compile" | $SED \
  8119. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8120. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8121. -e 's:$: $lt_compiler_flag:'`
  8122. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8123. (eval "$lt_compile" 2>out/conftest.err)
  8124. ac_status=$?
  8125. cat out/conftest.err >&5
  8126. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8127. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8128. then
  8129. # The compiler can only warn and ignore the option if not recognized
  8130. # So say no if there are warnings
  8131. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8132. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8133. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8134. lt_cv_prog_compiler_c_o=yes
  8135. fi
  8136. fi
  8137. chmod u+w . 2>&5
  8138. $RM conftest*
  8139. # SGI C++ compiler will create directory out/ii_files/ for
  8140. # template instantiation
  8141. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8142. $RM out/* && rmdir out
  8143. cd ..
  8144. $RM -r conftest
  8145. $RM conftest*
  8146. fi
  8147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8148. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8150. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8151. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8152. $as_echo_n "(cached) " >&6
  8153. else
  8154. lt_cv_prog_compiler_c_o=no
  8155. $RM -r conftest 2>/dev/null
  8156. mkdir conftest
  8157. cd conftest
  8158. mkdir out
  8159. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8160. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8161. # Insert the option either (1) after the last *FLAGS variable, or
  8162. # (2) before a word containing "conftest.", or (3) at the end.
  8163. # Note that $ac_compile itself does not contain backslashes and begins
  8164. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8165. lt_compile=`echo "$ac_compile" | $SED \
  8166. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8167. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8168. -e 's:$: $lt_compiler_flag:'`
  8169. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8170. (eval "$lt_compile" 2>out/conftest.err)
  8171. ac_status=$?
  8172. cat out/conftest.err >&5
  8173. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8174. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8175. then
  8176. # The compiler can only warn and ignore the option if not recognized
  8177. # So say no if there are warnings
  8178. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8179. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8180. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8181. lt_cv_prog_compiler_c_o=yes
  8182. fi
  8183. fi
  8184. chmod u+w . 2>&5
  8185. $RM conftest*
  8186. # SGI C++ compiler will create directory out/ii_files/ for
  8187. # template instantiation
  8188. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8189. $RM out/* && rmdir out
  8190. cd ..
  8191. $RM -r conftest
  8192. $RM conftest*
  8193. fi
  8194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8195. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8196. hard_links=nottested
  8197. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8198. # do not overwrite the value of need_locks provided by the user
  8199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8200. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8201. hard_links=yes
  8202. $RM conftest*
  8203. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8204. touch conftest.a
  8205. ln conftest.a conftest.b 2>&5 || hard_links=no
  8206. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8208. $as_echo "$hard_links" >&6; }
  8209. if test no = "$hard_links"; then
  8210. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8211. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8212. need_locks=warn
  8213. fi
  8214. else
  8215. need_locks=no
  8216. fi
  8217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8218. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8219. runpath_var=
  8220. allow_undefined_flag=
  8221. always_export_symbols=no
  8222. archive_cmds=
  8223. archive_expsym_cmds=
  8224. compiler_needs_object=no
  8225. enable_shared_with_static_runtimes=no
  8226. export_dynamic_flag_spec=
  8227. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8228. hardcode_automatic=no
  8229. hardcode_direct=no
  8230. hardcode_direct_absolute=no
  8231. hardcode_libdir_flag_spec=
  8232. hardcode_libdir_separator=
  8233. hardcode_minus_L=no
  8234. hardcode_shlibpath_var=unsupported
  8235. inherit_rpath=no
  8236. link_all_deplibs=unknown
  8237. module_cmds=
  8238. module_expsym_cmds=
  8239. old_archive_from_new_cmds=
  8240. old_archive_from_expsyms_cmds=
  8241. thread_safe_flag_spec=
  8242. whole_archive_flag_spec=
  8243. # include_expsyms should be a list of space-separated symbols to be *always*
  8244. # included in the symbol list
  8245. include_expsyms=
  8246. # exclude_expsyms can be an extended regexp of symbols to exclude
  8247. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8248. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8249. # as well as any symbol that contains 'd'.
  8250. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8251. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8252. # platforms (ab)use it in PIC code, but their linkers get confused if
  8253. # the symbol is explicitly referenced. Since portable code cannot
  8254. # rely on this symbol name, it's probably fine to never include it in
  8255. # preloaded symbol tables.
  8256. # Exclude shared library initialization/finalization symbols.
  8257. extract_expsyms_cmds=
  8258. case $host_os in
  8259. cygwin* | mingw* | pw32* | cegcc*)
  8260. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8261. # When not using gcc, we currently assume that we are using
  8262. # Microsoft Visual C++.
  8263. if test yes != "$GCC"; then
  8264. with_gnu_ld=no
  8265. fi
  8266. ;;
  8267. interix*)
  8268. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8269. with_gnu_ld=yes
  8270. ;;
  8271. openbsd* | bitrig*)
  8272. with_gnu_ld=no
  8273. ;;
  8274. esac
  8275. ld_shlibs=yes
  8276. # On some targets, GNU ld is compatible enough with the native linker
  8277. # that we're better off using the native interface for both.
  8278. lt_use_gnu_ld_interface=no
  8279. if test yes = "$with_gnu_ld"; then
  8280. case $host_os in
  8281. aix*)
  8282. # The AIX port of GNU ld has always aspired to compatibility
  8283. # with the native linker. However, as the warning in the GNU ld
  8284. # block says, versions before 2.19.5* couldn't really create working
  8285. # shared libraries, regardless of the interface used.
  8286. case `$LD -v 2>&1` in
  8287. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8288. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8289. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8290. *)
  8291. lt_use_gnu_ld_interface=yes
  8292. ;;
  8293. esac
  8294. ;;
  8295. *)
  8296. lt_use_gnu_ld_interface=yes
  8297. ;;
  8298. esac
  8299. fi
  8300. if test yes = "$lt_use_gnu_ld_interface"; then
  8301. # If archive_cmds runs LD, not CC, wlarc should be empty
  8302. wlarc='$wl'
  8303. # Set some defaults for GNU ld with shared library support. These
  8304. # are reset later if shared libraries are not supported. Putting them
  8305. # here allows them to be overridden if necessary.
  8306. runpath_var=LD_RUN_PATH
  8307. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8308. export_dynamic_flag_spec='$wl--export-dynamic'
  8309. # ancient GNU ld didn't support --whole-archive et. al.
  8310. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8311. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  8312. else
  8313. whole_archive_flag_spec=
  8314. fi
  8315. supports_anon_versioning=no
  8316. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  8317. *GNU\ gold*) supports_anon_versioning=yes ;;
  8318. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8319. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8320. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8321. *\ 2.11.*) ;; # other 2.11 versions
  8322. *) supports_anon_versioning=yes ;;
  8323. esac
  8324. # See if GNU ld supports shared libraries.
  8325. case $host_os in
  8326. aix[3-9]*)
  8327. # On AIX/PPC, the GNU linker is very broken
  8328. if test ia64 != "$host_cpu"; then
  8329. ld_shlibs=no
  8330. cat <<_LT_EOF 1>&2
  8331. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8332. *** to be unable to reliably create shared libraries on AIX.
  8333. *** Therefore, libtool is disabling shared libraries support. If you
  8334. *** really care for shared libraries, you may want to install binutils
  8335. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8336. *** You will then need to restart the configuration process.
  8337. _LT_EOF
  8338. fi
  8339. ;;
  8340. amigaos*)
  8341. case $host_cpu in
  8342. powerpc)
  8343. # see comment about AmigaOS4 .so support
  8344. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8345. archive_expsym_cmds=''
  8346. ;;
  8347. m68k)
  8348. archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  8349. hardcode_libdir_flag_spec='-L$libdir'
  8350. hardcode_minus_L=yes
  8351. ;;
  8352. esac
  8353. ;;
  8354. beos*)
  8355. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8356. allow_undefined_flag=unsupported
  8357. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8358. # support --undefined. This deserves some investigation. FIXME
  8359. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8360. else
  8361. ld_shlibs=no
  8362. fi
  8363. ;;
  8364. cygwin* | mingw* | pw32* | cegcc*)
  8365. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8366. # as there is no search path for DLLs.
  8367. hardcode_libdir_flag_spec='-L$libdir'
  8368. export_dynamic_flag_spec='$wl--export-all-symbols'
  8369. allow_undefined_flag=unsupported
  8370. always_export_symbols=no
  8371. enable_shared_with_static_runtimes=yes
  8372. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  8373. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8374. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8375. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8376. # If the export-symbols file already is a .def file, use it as
  8377. # is; otherwise, prepend EXPORTS...
  8378. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8379. cp $export_symbols $output_objdir/$soname.def;
  8380. else
  8381. echo EXPORTS > $output_objdir/$soname.def;
  8382. cat $export_symbols >> $output_objdir/$soname.def;
  8383. fi~
  8384. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8385. else
  8386. ld_shlibs=no
  8387. fi
  8388. ;;
  8389. haiku*)
  8390. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8391. link_all_deplibs=yes
  8392. ;;
  8393. os2*)
  8394. hardcode_libdir_flag_spec='-L$libdir'
  8395. hardcode_minus_L=yes
  8396. allow_undefined_flag=unsupported
  8397. shrext_cmds=.dll
  8398. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8399. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8400. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8401. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8402. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8403. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8404. emximp -o $lib $output_objdir/$libname.def'
  8405. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8406. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8407. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8408. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8409. prefix_cmds="$SED"~
  8410. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8411. prefix_cmds="$prefix_cmds -e 1d";
  8412. fi~
  8413. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8414. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8415. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8416. emximp -o $lib $output_objdir/$libname.def'
  8417. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8418. enable_shared_with_static_runtimes=yes
  8419. ;;
  8420. interix[3-9]*)
  8421. hardcode_direct=no
  8422. hardcode_shlibpath_var=no
  8423. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8424. export_dynamic_flag_spec='$wl-E'
  8425. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8426. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8427. # default) and relocated if they conflict, which is a slow very memory
  8428. # consuming and fragmenting process. To avoid this, we pick a random,
  8429. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8430. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8431. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8432. 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'
  8433. ;;
  8434. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8435. tmp_diet=no
  8436. if test linux-dietlibc = "$host_os"; then
  8437. case $cc_basename in
  8438. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8439. esac
  8440. fi
  8441. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8442. && test no = "$tmp_diet"
  8443. then
  8444. tmp_addflag=' $pic_flag'
  8445. tmp_sharedflag='-shared'
  8446. case $cc_basename,$host_cpu in
  8447. pgcc*) # Portland Group C compiler
  8448. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8449. tmp_addflag=' $pic_flag'
  8450. ;;
  8451. pgf77* | pgf90* | pgf95* | pgfortran*)
  8452. # Portland Group f77 and f90 compilers
  8453. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8454. tmp_addflag=' $pic_flag -Mnomain' ;;
  8455. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8456. tmp_addflag=' -i_dynamic' ;;
  8457. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8458. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8459. ifc* | ifort*) # Intel Fortran compiler
  8460. tmp_addflag=' -nofor_main' ;;
  8461. lf95*) # Lahey Fortran 8.1
  8462. whole_archive_flag_spec=
  8463. tmp_sharedflag='--shared' ;;
  8464. nagfor*) # NAGFOR 5.3
  8465. tmp_sharedflag='-Wl,-shared' ;;
  8466. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8467. tmp_sharedflag='-qmkshrobj'
  8468. tmp_addflag= ;;
  8469. nvcc*) # Cuda Compiler Driver 2.2
  8470. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8471. compiler_needs_object=yes
  8472. ;;
  8473. esac
  8474. case `$CC -V 2>&1 | sed 5q` in
  8475. *Sun\ C*) # Sun C 5.9
  8476. whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8477. compiler_needs_object=yes
  8478. tmp_sharedflag='-G' ;;
  8479. *Sun\ F*) # Sun Fortran 8.3
  8480. tmp_sharedflag='-G' ;;
  8481. esac
  8482. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8483. if test yes = "$supports_anon_versioning"; then
  8484. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8485. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8486. echo "local: *; };" >> $output_objdir/$libname.ver~
  8487. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8488. fi
  8489. case $cc_basename in
  8490. tcc*)
  8491. export_dynamic_flag_spec='-rdynamic'
  8492. ;;
  8493. xlf* | bgf* | bgxlf* | mpixlf*)
  8494. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8495. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8496. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8497. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8498. if test yes = "$supports_anon_versioning"; then
  8499. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8500. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8501. echo "local: *; };" >> $output_objdir/$libname.ver~
  8502. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8503. fi
  8504. ;;
  8505. esac
  8506. else
  8507. ld_shlibs=no
  8508. fi
  8509. ;;
  8510. netbsd*)
  8511. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8512. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8513. wlarc=
  8514. else
  8515. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8516. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8517. fi
  8518. ;;
  8519. solaris*)
  8520. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8521. ld_shlibs=no
  8522. cat <<_LT_EOF 1>&2
  8523. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8524. *** create shared libraries on Solaris systems. Therefore, libtool
  8525. *** is disabling shared libraries support. We urge you to upgrade GNU
  8526. *** binutils to release 2.9.1 or newer. Another option is to modify
  8527. *** your PATH or compiler configuration so that the native linker is
  8528. *** used, and then restart.
  8529. _LT_EOF
  8530. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8531. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8532. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8533. else
  8534. ld_shlibs=no
  8535. fi
  8536. ;;
  8537. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8538. case `$LD -v 2>&1` in
  8539. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8540. ld_shlibs=no
  8541. cat <<_LT_EOF 1>&2
  8542. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8543. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8544. *** is disabling shared libraries support. We urge you to upgrade GNU
  8545. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8546. *** your PATH or compiler configuration so that the native linker is
  8547. *** used, and then restart.
  8548. _LT_EOF
  8549. ;;
  8550. *)
  8551. # For security reasons, it is highly recommended that you always
  8552. # use absolute paths for naming shared libraries, and exclude the
  8553. # DT_RUNPATH tag from executables and libraries. But doing so
  8554. # requires that you compile everything twice, which is a pain.
  8555. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8556. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8557. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8558. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8559. else
  8560. ld_shlibs=no
  8561. fi
  8562. ;;
  8563. esac
  8564. ;;
  8565. sunos4*)
  8566. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8567. wlarc=
  8568. hardcode_direct=yes
  8569. hardcode_shlibpath_var=no
  8570. ;;
  8571. *)
  8572. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8573. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8574. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8575. else
  8576. ld_shlibs=no
  8577. fi
  8578. ;;
  8579. esac
  8580. if test no = "$ld_shlibs"; then
  8581. runpath_var=
  8582. hardcode_libdir_flag_spec=
  8583. export_dynamic_flag_spec=
  8584. whole_archive_flag_spec=
  8585. fi
  8586. else
  8587. # PORTME fill in a description of your system's linker (not GNU ld)
  8588. case $host_os in
  8589. aix3*)
  8590. allow_undefined_flag=unsupported
  8591. always_export_symbols=yes
  8592. 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'
  8593. # Note: this linker hardcodes the directories in LIBPATH if there
  8594. # are no directories specified by -L.
  8595. hardcode_minus_L=yes
  8596. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8597. # Neither direct hardcoding nor static linking is supported with a
  8598. # broken collect2.
  8599. hardcode_direct=unsupported
  8600. fi
  8601. ;;
  8602. aix[4-9]*)
  8603. if test ia64 = "$host_cpu"; then
  8604. # On IA64, the linker does run time linking by default, so we don't
  8605. # have to do anything special.
  8606. aix_use_runtimelinking=no
  8607. exp_sym_flag='-Bexport'
  8608. no_entry_flag=
  8609. else
  8610. # If we're using GNU nm, then we don't want the "-C" option.
  8611. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8612. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8613. # weak defined symbols like other global defined symbols, whereas
  8614. # GNU nm marks them as "W".
  8615. # While the 'weak' keyword is ignored in the Export File, we need
  8616. # it in the Import File for the 'aix-soname' feature, so we have
  8617. # to replace the "-B" option with "-P" for AIX nm.
  8618. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8619. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  8620. else
  8621. export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  8622. fi
  8623. aix_use_runtimelinking=no
  8624. # Test if we are trying to use run time linking or normal
  8625. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8626. # have runtime linking enabled, and use it for executables.
  8627. # For shared libraries, we enable/disable runtime linking
  8628. # depending on the kind of the shared library created -
  8629. # when "with_aix_soname,aix_use_runtimelinking" is:
  8630. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8631. # "aix,yes" lib.so shared, rtl:yes, for executables
  8632. # lib.a static archive
  8633. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8634. # lib.a(lib.so.V) shared, rtl:no, for executables
  8635. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8636. # lib.a(lib.so.V) shared, rtl:no
  8637. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8638. # lib.a static archive
  8639. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8640. for ld_flag in $LDFLAGS; do
  8641. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8642. aix_use_runtimelinking=yes
  8643. break
  8644. fi
  8645. done
  8646. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8647. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8648. # so we don't have lib.a shared libs to link our executables.
  8649. # We have to force runtime linking in this case.
  8650. aix_use_runtimelinking=yes
  8651. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8652. fi
  8653. ;;
  8654. esac
  8655. exp_sym_flag='-bexport'
  8656. no_entry_flag='-bnoentry'
  8657. fi
  8658. # When large executables or shared objects are built, AIX ld can
  8659. # have problems creating the table of contents. If linking a library
  8660. # or program results in "error TOC overflow" add -mminimal-toc to
  8661. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8662. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8663. archive_cmds=''
  8664. hardcode_direct=yes
  8665. hardcode_direct_absolute=yes
  8666. hardcode_libdir_separator=':'
  8667. link_all_deplibs=yes
  8668. file_list_spec='$wl-f,'
  8669. case $with_aix_soname,$aix_use_runtimelinking in
  8670. aix,*) ;; # traditional, no import file
  8671. svr4,* | *,yes) # use import file
  8672. # The Import File defines what to hardcode.
  8673. hardcode_direct=no
  8674. hardcode_direct_absolute=no
  8675. ;;
  8676. esac
  8677. if test yes = "$GCC"; then
  8678. case $host_os in aix4.[012]|aix4.[012].*)
  8679. # We only want to do this on AIX 4.2 and lower, the check
  8680. # below for broken collect2 doesn't work under 4.3+
  8681. collect2name=`$CC -print-prog-name=collect2`
  8682. if test -f "$collect2name" &&
  8683. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8684. then
  8685. # We have reworked collect2
  8686. :
  8687. else
  8688. # We have old collect2
  8689. hardcode_direct=unsupported
  8690. # It fails to find uninstalled libraries when the uninstalled
  8691. # path is not listed in the libpath. Setting hardcode_minus_L
  8692. # to unsupported forces relinking
  8693. hardcode_minus_L=yes
  8694. hardcode_libdir_flag_spec='-L$libdir'
  8695. hardcode_libdir_separator=
  8696. fi
  8697. ;;
  8698. esac
  8699. shared_flag='-shared'
  8700. if test yes = "$aix_use_runtimelinking"; then
  8701. shared_flag="$shared_flag "'$wl-G'
  8702. fi
  8703. # Need to ensure runtime linking is disabled for the traditional
  8704. # shared library, or the linker may eventually find shared libraries
  8705. # /with/ Import File - we do not want to mix them.
  8706. shared_flag_aix='-shared'
  8707. shared_flag_svr4='-shared $wl-G'
  8708. else
  8709. # not using gcc
  8710. if test ia64 = "$host_cpu"; then
  8711. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8712. # chokes on -Wl,-G. The following line is correct:
  8713. shared_flag='-G'
  8714. else
  8715. if test yes = "$aix_use_runtimelinking"; then
  8716. shared_flag='$wl-G'
  8717. else
  8718. shared_flag='$wl-bM:SRE'
  8719. fi
  8720. shared_flag_aix='$wl-bM:SRE'
  8721. shared_flag_svr4='$wl-G'
  8722. fi
  8723. fi
  8724. export_dynamic_flag_spec='$wl-bexpall'
  8725. # It seems that -bexpall does not export symbols beginning with
  8726. # underscore (_), so it is better to generate a list of symbols to export.
  8727. always_export_symbols=yes
  8728. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  8729. # Warning - without using the other runtime loading flags (-brtl),
  8730. # -berok will link without error, but may produce a broken library.
  8731. allow_undefined_flag='-berok'
  8732. # Determine the default libpath from the value encoded in an
  8733. # empty executable.
  8734. if test set = "${lt_cv_aix_libpath+set}"; then
  8735. aix_libpath=$lt_cv_aix_libpath
  8736. else
  8737. if ${lt_cv_aix_libpath_+:} false; then :
  8738. $as_echo_n "(cached) " >&6
  8739. else
  8740. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8741. /* end confdefs.h. */
  8742. int
  8743. main ()
  8744. {
  8745. ;
  8746. return 0;
  8747. }
  8748. _ACEOF
  8749. if ac_fn_c_try_link "$LINENO"; then :
  8750. lt_aix_libpath_sed='
  8751. /Import File Strings/,/^$/ {
  8752. /^0/ {
  8753. s/^0 *\([^ ]*\) *$/\1/
  8754. p
  8755. }
  8756. }'
  8757. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8758. # Check for a 64-bit object if we didn't find anything.
  8759. if test -z "$lt_cv_aix_libpath_"; then
  8760. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8761. fi
  8762. fi
  8763. rm -f core conftest.err conftest.$ac_objext \
  8764. conftest$ac_exeext conftest.$ac_ext
  8765. if test -z "$lt_cv_aix_libpath_"; then
  8766. lt_cv_aix_libpath_=/usr/lib:/lib
  8767. fi
  8768. fi
  8769. aix_libpath=$lt_cv_aix_libpath_
  8770. fi
  8771. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8772. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  8773. else
  8774. if test ia64 = "$host_cpu"; then
  8775. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  8776. allow_undefined_flag="-z nodefs"
  8777. 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"
  8778. else
  8779. # Determine the default libpath from the value encoded in an
  8780. # empty executable.
  8781. if test set = "${lt_cv_aix_libpath+set}"; then
  8782. aix_libpath=$lt_cv_aix_libpath
  8783. else
  8784. if ${lt_cv_aix_libpath_+:} false; then :
  8785. $as_echo_n "(cached) " >&6
  8786. else
  8787. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8788. /* end confdefs.h. */
  8789. int
  8790. main ()
  8791. {
  8792. ;
  8793. return 0;
  8794. }
  8795. _ACEOF
  8796. if ac_fn_c_try_link "$LINENO"; then :
  8797. lt_aix_libpath_sed='
  8798. /Import File Strings/,/^$/ {
  8799. /^0/ {
  8800. s/^0 *\([^ ]*\) *$/\1/
  8801. p
  8802. }
  8803. }'
  8804. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8805. # Check for a 64-bit object if we didn't find anything.
  8806. if test -z "$lt_cv_aix_libpath_"; then
  8807. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8808. fi
  8809. fi
  8810. rm -f core conftest.err conftest.$ac_objext \
  8811. conftest$ac_exeext conftest.$ac_ext
  8812. if test -z "$lt_cv_aix_libpath_"; then
  8813. lt_cv_aix_libpath_=/usr/lib:/lib
  8814. fi
  8815. fi
  8816. aix_libpath=$lt_cv_aix_libpath_
  8817. fi
  8818. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8819. # Warning - without using the other run time loading flags,
  8820. # -berok will link without error, but may produce a broken library.
  8821. no_undefined_flag=' $wl-bernotok'
  8822. allow_undefined_flag=' $wl-berok'
  8823. if test yes = "$with_gnu_ld"; then
  8824. # We only use this code for GNU lds that support --whole-archive.
  8825. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  8826. else
  8827. # Exported symbols can be pulled into shared objects from archives
  8828. whole_archive_flag_spec='$convenience'
  8829. fi
  8830. archive_cmds_need_lc=yes
  8831. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  8832. # -brtl affects multiple linker settings, -berok does not and is overridden later
  8833. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  8834. if test svr4 != "$with_aix_soname"; then
  8835. # This is similar to how AIX traditionally builds its shared libraries.
  8836. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  8837. fi
  8838. if test aix != "$with_aix_soname"; then
  8839. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  8840. else
  8841. # used by -dlpreopen to get the symbols
  8842. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  8843. fi
  8844. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  8845. fi
  8846. fi
  8847. ;;
  8848. amigaos*)
  8849. case $host_cpu in
  8850. powerpc)
  8851. # see comment about AmigaOS4 .so support
  8852. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8853. archive_expsym_cmds=''
  8854. ;;
  8855. m68k)
  8856. 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)'
  8857. hardcode_libdir_flag_spec='-L$libdir'
  8858. hardcode_minus_L=yes
  8859. ;;
  8860. esac
  8861. ;;
  8862. bsdi[45]*)
  8863. export_dynamic_flag_spec=-rdynamic
  8864. ;;
  8865. cygwin* | mingw* | pw32* | cegcc*)
  8866. # When not using gcc, we currently assume that we are using
  8867. # Microsoft Visual C++.
  8868. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8869. # no search path for DLLs.
  8870. case $cc_basename in
  8871. cl*)
  8872. # Native MSVC
  8873. hardcode_libdir_flag_spec=' '
  8874. allow_undefined_flag=unsupported
  8875. always_export_symbols=yes
  8876. file_list_spec='@'
  8877. # Tell ltmain to make .lib files, not .a files.
  8878. libext=lib
  8879. # Tell ltmain to make .dll files, not .so files.
  8880. shrext_cmds=.dll
  8881. # FIXME: Setting linknames here is a bad hack.
  8882. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  8883. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8884. cp "$export_symbols" "$output_objdir/$soname.def";
  8885. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  8886. else
  8887. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  8888. fi~
  8889. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8890. linknames='
  8891. # The linker will not automatically build a static lib if we build a DLL.
  8892. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8893. enable_shared_with_static_runtimes=yes
  8894. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8895. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8896. # Don't use ranlib
  8897. old_postinstall_cmds='chmod 644 $oldlib'
  8898. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8899. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8900. case $lt_outputfile in
  8901. *.exe|*.EXE) ;;
  8902. *)
  8903. lt_outputfile=$lt_outputfile.exe
  8904. lt_tool_outputfile=$lt_tool_outputfile.exe
  8905. ;;
  8906. esac~
  8907. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  8908. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8909. $RM "$lt_outputfile.manifest";
  8910. fi'
  8911. ;;
  8912. *)
  8913. # Assume MSVC wrapper
  8914. hardcode_libdir_flag_spec=' '
  8915. allow_undefined_flag=unsupported
  8916. # Tell ltmain to make .lib files, not .a files.
  8917. libext=lib
  8918. # Tell ltmain to make .dll files, not .so files.
  8919. shrext_cmds=.dll
  8920. # FIXME: Setting linknames here is a bad hack.
  8921. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8922. # The linker will automatically build a .lib file if we build a DLL.
  8923. old_archive_from_new_cmds='true'
  8924. # FIXME: Should let the user specify the lib program.
  8925. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8926. enable_shared_with_static_runtimes=yes
  8927. ;;
  8928. esac
  8929. ;;
  8930. darwin* | rhapsody*)
  8931. archive_cmds_need_lc=no
  8932. hardcode_direct=no
  8933. hardcode_automatic=yes
  8934. hardcode_shlibpath_var=unsupported
  8935. if test yes = "$lt_cv_ld_force_load"; then
  8936. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  8937. else
  8938. whole_archive_flag_spec=''
  8939. fi
  8940. link_all_deplibs=yes
  8941. allow_undefined_flag=$_lt_dar_allow_undefined
  8942. case $cc_basename in
  8943. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  8944. *) _lt_dar_can_shared=$GCC ;;
  8945. esac
  8946. if test yes = "$_lt_dar_can_shared"; then
  8947. output_verbose_link_cmd=func_echo_all
  8948. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  8949. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  8950. 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"
  8951. 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"
  8952. else
  8953. ld_shlibs=no
  8954. fi
  8955. ;;
  8956. dgux*)
  8957. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8958. hardcode_libdir_flag_spec='-L$libdir'
  8959. hardcode_shlibpath_var=no
  8960. ;;
  8961. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8962. # support. Future versions do this automatically, but an explicit c++rt0.o
  8963. # does not break anything, and helps significantly (at the cost of a little
  8964. # extra space).
  8965. freebsd2.2*)
  8966. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8967. hardcode_libdir_flag_spec='-R$libdir'
  8968. hardcode_direct=yes
  8969. hardcode_shlibpath_var=no
  8970. ;;
  8971. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8972. freebsd2.*)
  8973. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8974. hardcode_direct=yes
  8975. hardcode_minus_L=yes
  8976. hardcode_shlibpath_var=no
  8977. ;;
  8978. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8979. freebsd* | dragonfly*)
  8980. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8981. hardcode_libdir_flag_spec='-R$libdir'
  8982. hardcode_direct=yes
  8983. hardcode_shlibpath_var=no
  8984. ;;
  8985. hpux9*)
  8986. if test yes = "$GCC"; then
  8987. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  8988. else
  8989. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  8990. fi
  8991. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8992. hardcode_libdir_separator=:
  8993. hardcode_direct=yes
  8994. # hardcode_minus_L: Not really in the search PATH,
  8995. # but as the default location of the library.
  8996. hardcode_minus_L=yes
  8997. export_dynamic_flag_spec='$wl-E'
  8998. ;;
  8999. hpux10*)
  9000. if test yes,no = "$GCC,$with_gnu_ld"; then
  9001. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9002. else
  9003. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9004. fi
  9005. if test no = "$with_gnu_ld"; then
  9006. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9007. hardcode_libdir_separator=:
  9008. hardcode_direct=yes
  9009. hardcode_direct_absolute=yes
  9010. export_dynamic_flag_spec='$wl-E'
  9011. # hardcode_minus_L: Not really in the search PATH,
  9012. # but as the default location of the library.
  9013. hardcode_minus_L=yes
  9014. fi
  9015. ;;
  9016. hpux11*)
  9017. if test yes,no = "$GCC,$with_gnu_ld"; then
  9018. case $host_cpu in
  9019. hppa*64*)
  9020. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9021. ;;
  9022. ia64*)
  9023. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9024. ;;
  9025. *)
  9026. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9027. ;;
  9028. esac
  9029. else
  9030. case $host_cpu in
  9031. hppa*64*)
  9032. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9033. ;;
  9034. ia64*)
  9035. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9036. ;;
  9037. *)
  9038. # Older versions of the 11.00 compiler do not understand -b yet
  9039. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9041. $as_echo_n "checking if $CC understands -b... " >&6; }
  9042. if ${lt_cv_prog_compiler__b+:} false; then :
  9043. $as_echo_n "(cached) " >&6
  9044. else
  9045. lt_cv_prog_compiler__b=no
  9046. save_LDFLAGS=$LDFLAGS
  9047. LDFLAGS="$LDFLAGS -b"
  9048. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9049. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9050. # The linker can only warn and ignore the option if not recognized
  9051. # So say no if there are warnings
  9052. if test -s conftest.err; then
  9053. # Append any errors to the config.log.
  9054. cat conftest.err 1>&5
  9055. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9056. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9057. if diff conftest.exp conftest.er2 >/dev/null; then
  9058. lt_cv_prog_compiler__b=yes
  9059. fi
  9060. else
  9061. lt_cv_prog_compiler__b=yes
  9062. fi
  9063. fi
  9064. $RM -r conftest*
  9065. LDFLAGS=$save_LDFLAGS
  9066. fi
  9067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9068. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9069. if test yes = "$lt_cv_prog_compiler__b"; then
  9070. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9071. else
  9072. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9073. fi
  9074. ;;
  9075. esac
  9076. fi
  9077. if test no = "$with_gnu_ld"; then
  9078. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9079. hardcode_libdir_separator=:
  9080. case $host_cpu in
  9081. hppa*64*|ia64*)
  9082. hardcode_direct=no
  9083. hardcode_shlibpath_var=no
  9084. ;;
  9085. *)
  9086. hardcode_direct=yes
  9087. hardcode_direct_absolute=yes
  9088. export_dynamic_flag_spec='$wl-E'
  9089. # hardcode_minus_L: Not really in the search PATH,
  9090. # but as the default location of the library.
  9091. hardcode_minus_L=yes
  9092. ;;
  9093. esac
  9094. fi
  9095. ;;
  9096. irix5* | irix6* | nonstopux*)
  9097. if test yes = "$GCC"; then
  9098. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  9099. # Try to use the -exported_symbol ld option, if it does not
  9100. # work, assume that -exports_file does not work either and
  9101. # implicitly export all symbols.
  9102. # This should be the same for all languages, so no per-tag cache variable.
  9103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9104. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9105. if ${lt_cv_irix_exported_symbol+:} false; then :
  9106. $as_echo_n "(cached) " >&6
  9107. else
  9108. save_LDFLAGS=$LDFLAGS
  9109. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9110. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9111. /* end confdefs.h. */
  9112. int foo (void) { return 0; }
  9113. _ACEOF
  9114. if ac_fn_c_try_link "$LINENO"; then :
  9115. lt_cv_irix_exported_symbol=yes
  9116. else
  9117. lt_cv_irix_exported_symbol=no
  9118. fi
  9119. rm -f core conftest.err conftest.$ac_objext \
  9120. conftest$ac_exeext conftest.$ac_ext
  9121. LDFLAGS=$save_LDFLAGS
  9122. fi
  9123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9124. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9125. if test yes = "$lt_cv_irix_exported_symbol"; then
  9126. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
  9127. fi
  9128. else
  9129. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  9130. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
  9131. fi
  9132. archive_cmds_need_lc='no'
  9133. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9134. hardcode_libdir_separator=:
  9135. inherit_rpath=yes
  9136. link_all_deplibs=yes
  9137. ;;
  9138. linux*)
  9139. case $cc_basename in
  9140. tcc*)
  9141. # Fabrice Bellard et al's Tiny C Compiler
  9142. ld_shlibs=yes
  9143. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9144. ;;
  9145. esac
  9146. ;;
  9147. netbsd*)
  9148. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9149. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9150. else
  9151. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9152. fi
  9153. hardcode_libdir_flag_spec='-R$libdir'
  9154. hardcode_direct=yes
  9155. hardcode_shlibpath_var=no
  9156. ;;
  9157. newsos6)
  9158. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9159. hardcode_direct=yes
  9160. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9161. hardcode_libdir_separator=:
  9162. hardcode_shlibpath_var=no
  9163. ;;
  9164. *nto* | *qnx*)
  9165. ;;
  9166. openbsd* | bitrig*)
  9167. if test -f /usr/libexec/ld.so; then
  9168. hardcode_direct=yes
  9169. hardcode_shlibpath_var=no
  9170. hardcode_direct_absolute=yes
  9171. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9172. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9173. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9174. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9175. export_dynamic_flag_spec='$wl-E'
  9176. else
  9177. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9178. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9179. fi
  9180. else
  9181. ld_shlibs=no
  9182. fi
  9183. ;;
  9184. os2*)
  9185. hardcode_libdir_flag_spec='-L$libdir'
  9186. hardcode_minus_L=yes
  9187. allow_undefined_flag=unsupported
  9188. shrext_cmds=.dll
  9189. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9190. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9191. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9192. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9193. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9194. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9195. emximp -o $lib $output_objdir/$libname.def'
  9196. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9197. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9198. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9199. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9200. prefix_cmds="$SED"~
  9201. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9202. prefix_cmds="$prefix_cmds -e 1d";
  9203. fi~
  9204. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9205. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9206. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9207. emximp -o $lib $output_objdir/$libname.def'
  9208. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9209. enable_shared_with_static_runtimes=yes
  9210. ;;
  9211. osf3*)
  9212. if test yes = "$GCC"; then
  9213. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9214. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  9215. else
  9216. allow_undefined_flag=' -expect_unresolved \*'
  9217. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  9218. fi
  9219. archive_cmds_need_lc='no'
  9220. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9221. hardcode_libdir_separator=:
  9222. ;;
  9223. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9224. if test yes = "$GCC"; then
  9225. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9226. archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  9227. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9228. else
  9229. allow_undefined_flag=' -expect_unresolved \*'
  9230. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  9231. 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~
  9232. $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
  9233. # Both c and cxx compiler support -rpath directly
  9234. hardcode_libdir_flag_spec='-rpath $libdir'
  9235. fi
  9236. archive_cmds_need_lc='no'
  9237. hardcode_libdir_separator=:
  9238. ;;
  9239. solaris*)
  9240. no_undefined_flag=' -z defs'
  9241. if test yes = "$GCC"; then
  9242. wlarc='$wl'
  9243. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9244. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9245. $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9246. else
  9247. case `$CC -V 2>&1` in
  9248. *"Compilers 5.0"*)
  9249. wlarc=''
  9250. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9251. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9252. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9253. ;;
  9254. *)
  9255. wlarc='$wl'
  9256. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9257. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9258. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9259. ;;
  9260. esac
  9261. fi
  9262. hardcode_libdir_flag_spec='-R$libdir'
  9263. hardcode_shlibpath_var=no
  9264. case $host_os in
  9265. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9266. *)
  9267. # The compiler driver will combine and reorder linker options,
  9268. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9269. # but is careful enough not to reorder.
  9270. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9271. if test yes = "$GCC"; then
  9272. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9273. else
  9274. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9275. fi
  9276. ;;
  9277. esac
  9278. link_all_deplibs=yes
  9279. ;;
  9280. sunos4*)
  9281. if test sequent = "$host_vendor"; then
  9282. # Use $CC to link under sequent, because it throws in some extra .o
  9283. # files that make .init and .fini sections work.
  9284. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9285. else
  9286. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9287. fi
  9288. hardcode_libdir_flag_spec='-L$libdir'
  9289. hardcode_direct=yes
  9290. hardcode_minus_L=yes
  9291. hardcode_shlibpath_var=no
  9292. ;;
  9293. sysv4)
  9294. case $host_vendor in
  9295. sni)
  9296. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9297. hardcode_direct=yes # is this really true???
  9298. ;;
  9299. siemens)
  9300. ## LD is ld it makes a PLAMLIB
  9301. ## CC just makes a GrossModule.
  9302. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9303. reload_cmds='$CC -r -o $output$reload_objs'
  9304. hardcode_direct=no
  9305. ;;
  9306. motorola)
  9307. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9308. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9309. ;;
  9310. esac
  9311. runpath_var='LD_RUN_PATH'
  9312. hardcode_shlibpath_var=no
  9313. ;;
  9314. sysv4.3*)
  9315. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9316. hardcode_shlibpath_var=no
  9317. export_dynamic_flag_spec='-Bexport'
  9318. ;;
  9319. sysv4*MP*)
  9320. if test -d /usr/nec; then
  9321. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9322. hardcode_shlibpath_var=no
  9323. runpath_var=LD_RUN_PATH
  9324. hardcode_runpath_var=yes
  9325. ld_shlibs=yes
  9326. fi
  9327. ;;
  9328. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9329. no_undefined_flag='$wl-z,text'
  9330. archive_cmds_need_lc=no
  9331. hardcode_shlibpath_var=no
  9332. runpath_var='LD_RUN_PATH'
  9333. if test yes = "$GCC"; then
  9334. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9335. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9336. else
  9337. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9338. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9339. fi
  9340. ;;
  9341. sysv5* | sco3.2v5* | sco5v6*)
  9342. # Note: We CANNOT use -z defs as we might desire, because we do not
  9343. # link with -lc, and that would cause any symbols used from libc to
  9344. # always be unresolved, which means just about no library would
  9345. # ever link correctly. If we're not using GNU ld we use -z text
  9346. # though, which does catch some bad symbols but isn't as heavy-handed
  9347. # as -z defs.
  9348. no_undefined_flag='$wl-z,text'
  9349. allow_undefined_flag='$wl-z,nodefs'
  9350. archive_cmds_need_lc=no
  9351. hardcode_shlibpath_var=no
  9352. hardcode_libdir_flag_spec='$wl-R,$libdir'
  9353. hardcode_libdir_separator=':'
  9354. link_all_deplibs=yes
  9355. export_dynamic_flag_spec='$wl-Bexport'
  9356. runpath_var='LD_RUN_PATH'
  9357. if test yes = "$GCC"; then
  9358. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9359. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9360. else
  9361. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9362. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9363. fi
  9364. ;;
  9365. uts4*)
  9366. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9367. hardcode_libdir_flag_spec='-L$libdir'
  9368. hardcode_shlibpath_var=no
  9369. ;;
  9370. *)
  9371. ld_shlibs=no
  9372. ;;
  9373. esac
  9374. if test sni = "$host_vendor"; then
  9375. case $host in
  9376. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9377. export_dynamic_flag_spec='$wl-Blargedynsym'
  9378. ;;
  9379. esac
  9380. fi
  9381. fi
  9382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9383. $as_echo "$ld_shlibs" >&6; }
  9384. test no = "$ld_shlibs" && can_build_shared=no
  9385. with_gnu_ld=$with_gnu_ld
  9386. #
  9387. # Do we need to explicitly link libc?
  9388. #
  9389. case "x$archive_cmds_need_lc" in
  9390. x|xyes)
  9391. # Assume -lc should be added
  9392. archive_cmds_need_lc=yes
  9393. if test yes,yes = "$GCC,$enable_shared"; then
  9394. case $archive_cmds in
  9395. *'~'*)
  9396. # FIXME: we may have to deal with multi-command sequences.
  9397. ;;
  9398. '$CC '*)
  9399. # Test whether the compiler implicitly links with -lc since on some
  9400. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9401. # to ld, don't add -lc before -lgcc.
  9402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9403. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9404. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9405. $as_echo_n "(cached) " >&6
  9406. else
  9407. $RM conftest*
  9408. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9409. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9410. (eval $ac_compile) 2>&5
  9411. ac_status=$?
  9412. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9413. test $ac_status = 0; } 2>conftest.err; then
  9414. soname=conftest
  9415. lib=conftest
  9416. libobjs=conftest.$ac_objext
  9417. deplibs=
  9418. wl=$lt_prog_compiler_wl
  9419. pic_flag=$lt_prog_compiler_pic
  9420. compiler_flags=-v
  9421. linker_flags=-v
  9422. verstring=
  9423. output_objdir=.
  9424. libname=conftest
  9425. lt_save_allow_undefined_flag=$allow_undefined_flag
  9426. allow_undefined_flag=
  9427. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9428. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9429. ac_status=$?
  9430. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9431. test $ac_status = 0; }
  9432. then
  9433. lt_cv_archive_cmds_need_lc=no
  9434. else
  9435. lt_cv_archive_cmds_need_lc=yes
  9436. fi
  9437. allow_undefined_flag=$lt_save_allow_undefined_flag
  9438. else
  9439. cat conftest.err 1>&5
  9440. fi
  9441. $RM conftest*
  9442. fi
  9443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9444. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9445. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9446. ;;
  9447. esac
  9448. fi
  9449. ;;
  9450. esac
  9451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9452. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9453. if test yes = "$GCC"; then
  9454. case $host_os in
  9455. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9456. *) lt_awk_arg='/^libraries:/' ;;
  9457. esac
  9458. case $host_os in
  9459. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9460. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9461. esac
  9462. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9463. case $lt_search_path_spec in
  9464. *\;*)
  9465. # if the path contains ";" then we assume it to be the separator
  9466. # otherwise default to the standard path separator (i.e. ":") - it is
  9467. # assumed that no part of a normal pathname contains ";" but that should
  9468. # okay in the real world where ";" in dirpaths is itself problematic.
  9469. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9470. ;;
  9471. *)
  9472. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9473. ;;
  9474. esac
  9475. # Ok, now we have the path, separated by spaces, we can step through it
  9476. # and add multilib dir if necessary...
  9477. lt_tmp_lt_search_path_spec=
  9478. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9479. # ...but if some path component already ends with the multilib dir we assume
  9480. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9481. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9482. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9483. lt_multi_os_dir=
  9484. ;;
  9485. esac
  9486. for lt_sys_path in $lt_search_path_spec; do
  9487. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9488. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9489. elif test -n "$lt_multi_os_dir"; then
  9490. test -d "$lt_sys_path" && \
  9491. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9492. fi
  9493. done
  9494. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9495. BEGIN {RS = " "; FS = "/|\n";} {
  9496. lt_foo = "";
  9497. lt_count = 0;
  9498. for (lt_i = NF; lt_i > 0; lt_i--) {
  9499. if ($lt_i != "" && $lt_i != ".") {
  9500. if ($lt_i == "..") {
  9501. lt_count++;
  9502. } else {
  9503. if (lt_count == 0) {
  9504. lt_foo = "/" $lt_i lt_foo;
  9505. } else {
  9506. lt_count--;
  9507. }
  9508. }
  9509. }
  9510. }
  9511. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9512. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9513. }'`
  9514. # AWK program above erroneously prepends '/' to C:/dos/paths
  9515. # for these hosts.
  9516. case $host_os in
  9517. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9518. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9519. esac
  9520. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9521. else
  9522. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9523. fi
  9524. library_names_spec=
  9525. libname_spec='lib$name'
  9526. soname_spec=
  9527. shrext_cmds=.so
  9528. postinstall_cmds=
  9529. postuninstall_cmds=
  9530. finish_cmds=
  9531. finish_eval=
  9532. shlibpath_var=
  9533. shlibpath_overrides_runpath=unknown
  9534. version_type=none
  9535. dynamic_linker="$host_os ld.so"
  9536. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9537. need_lib_prefix=unknown
  9538. hardcode_into_libs=no
  9539. # when you set need_version to no, make sure it does not cause -set_version
  9540. # flags to be left without arguments
  9541. need_version=unknown
  9542. case $host_os in
  9543. aix3*)
  9544. version_type=linux # correct to gnu/linux during the next big refactor
  9545. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9546. shlibpath_var=LIBPATH
  9547. # AIX 3 has no versioning support, so we append a major version to the name.
  9548. soname_spec='$libname$release$shared_ext$major'
  9549. ;;
  9550. aix[4-9]*)
  9551. version_type=linux # correct to gnu/linux during the next big refactor
  9552. need_lib_prefix=no
  9553. need_version=no
  9554. hardcode_into_libs=yes
  9555. if test ia64 = "$host_cpu"; then
  9556. # AIX 5 supports IA64
  9557. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9558. shlibpath_var=LD_LIBRARY_PATH
  9559. else
  9560. # With GCC up to 2.95.x, collect2 would create an import file
  9561. # for dependence libraries. The import file would start with
  9562. # the line '#! .'. This would cause the generated library to
  9563. # depend on '.', always an invalid library. This was fixed in
  9564. # development snapshots of GCC prior to 3.0.
  9565. case $host_os in
  9566. aix4 | aix4.[01] | aix4.[01].*)
  9567. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9568. echo ' yes '
  9569. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9570. :
  9571. else
  9572. can_build_shared=no
  9573. fi
  9574. ;;
  9575. esac
  9576. # Using Import Files as archive members, it is possible to support
  9577. # filename-based versioning of shared library archives on AIX. While
  9578. # this would work for both with and without runtime linking, it will
  9579. # prevent static linking of such archives. So we do filename-based
  9580. # shared library versioning with .so extension only, which is used
  9581. # when both runtime linking and shared linking is enabled.
  9582. # Unfortunately, runtime linking may impact performance, so we do
  9583. # not want this to be the default eventually. Also, we use the
  9584. # versioned .so libs for executables only if there is the -brtl
  9585. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9586. # To allow for filename-based versioning support, we need to create
  9587. # libNAME.so.V as an archive file, containing:
  9588. # *) an Import File, referring to the versioned filename of the
  9589. # archive as well as the shared archive member, telling the
  9590. # bitwidth (32 or 64) of that shared object, and providing the
  9591. # list of exported symbols of that shared object, eventually
  9592. # decorated with the 'weak' keyword
  9593. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9594. # it being seen by the linker.
  9595. # At run time we better use the real file rather than another symlink,
  9596. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9597. case $with_aix_soname,$aix_use_runtimelinking in
  9598. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9599. # soname into executable. Probably we can add versioning support to
  9600. # collect2, so additional links can be useful in future.
  9601. aix,yes) # traditional libtool
  9602. dynamic_linker='AIX unversionable lib.so'
  9603. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9604. # instead of lib<name>.a to let people know that these are not
  9605. # typical AIX shared libraries.
  9606. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9607. ;;
  9608. aix,no) # traditional AIX only
  9609. dynamic_linker='AIX lib.a(lib.so.V)'
  9610. # We preserve .a as extension for shared libraries through AIX4.2
  9611. # and later when we are not doing run time linking.
  9612. library_names_spec='$libname$release.a $libname.a'
  9613. soname_spec='$libname$release$shared_ext$major'
  9614. ;;
  9615. svr4,*) # full svr4 only
  9616. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9617. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9618. # We do not specify a path in Import Files, so LIBPATH fires.
  9619. shlibpath_overrides_runpath=yes
  9620. ;;
  9621. *,yes) # both, prefer svr4
  9622. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9623. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9624. # unpreferred sharedlib libNAME.a needs extra handling
  9625. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  9626. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  9627. # We do not specify a path in Import Files, so LIBPATH fires.
  9628. shlibpath_overrides_runpath=yes
  9629. ;;
  9630. *,no) # both, prefer aix
  9631. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9632. library_names_spec='$libname$release.a $libname.a'
  9633. soname_spec='$libname$release$shared_ext$major'
  9634. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9635. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  9636. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  9637. ;;
  9638. esac
  9639. shlibpath_var=LIBPATH
  9640. fi
  9641. ;;
  9642. amigaos*)
  9643. case $host_cpu in
  9644. powerpc)
  9645. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9646. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9647. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9648. ;;
  9649. m68k)
  9650. library_names_spec='$libname.ixlibrary $libname.a'
  9651. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9652. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  9653. ;;
  9654. esac
  9655. ;;
  9656. beos*)
  9657. library_names_spec='$libname$shared_ext'
  9658. dynamic_linker="$host_os ld.so"
  9659. shlibpath_var=LIBRARY_PATH
  9660. ;;
  9661. bsdi[45]*)
  9662. version_type=linux # correct to gnu/linux during the next big refactor
  9663. need_version=no
  9664. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9665. soname_spec='$libname$release$shared_ext$major'
  9666. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9667. shlibpath_var=LD_LIBRARY_PATH
  9668. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9669. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9670. # the default ld.so.conf also contains /usr/contrib/lib and
  9671. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9672. # libtool to hard-code these into programs
  9673. ;;
  9674. cygwin* | mingw* | pw32* | cegcc*)
  9675. version_type=windows
  9676. shrext_cmds=.dll
  9677. need_version=no
  9678. need_lib_prefix=no
  9679. case $GCC,$cc_basename in
  9680. yes,*)
  9681. # gcc
  9682. library_names_spec='$libname.dll.a'
  9683. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9684. postinstall_cmds='base_file=`basename \$file`~
  9685. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9686. dldir=$destdir/`dirname \$dlpath`~
  9687. test -d \$dldir || mkdir -p \$dldir~
  9688. $install_prog $dir/$dlname \$dldir/$dlname~
  9689. chmod a+x \$dldir/$dlname~
  9690. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9691. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9692. fi'
  9693. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9694. dlpath=$dir/\$dldll~
  9695. $RM \$dlpath'
  9696. shlibpath_overrides_runpath=yes
  9697. case $host_os in
  9698. cygwin*)
  9699. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9700. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9701. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9702. ;;
  9703. mingw* | cegcc*)
  9704. # MinGW DLLs use traditional 'lib' prefix
  9705. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9706. ;;
  9707. pw32*)
  9708. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9709. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9710. ;;
  9711. esac
  9712. dynamic_linker='Win32 ld.exe'
  9713. ;;
  9714. *,cl*)
  9715. # Native MSVC
  9716. libname_spec='$name'
  9717. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9718. library_names_spec='$libname.dll.lib'
  9719. case $build_os in
  9720. mingw*)
  9721. sys_lib_search_path_spec=
  9722. lt_save_ifs=$IFS
  9723. IFS=';'
  9724. for lt_path in $LIB
  9725. do
  9726. IFS=$lt_save_ifs
  9727. # Let DOS variable expansion print the short 8.3 style file name.
  9728. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9729. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9730. done
  9731. IFS=$lt_save_ifs
  9732. # Convert to MSYS style.
  9733. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9734. ;;
  9735. cygwin*)
  9736. # Convert to unix form, then to dos form, then back to unix form
  9737. # but this time dos style (no spaces!) so that the unix form looks
  9738. # like /cygdrive/c/PROGRA~1:/cygdr...
  9739. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9740. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9741. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9742. ;;
  9743. *)
  9744. sys_lib_search_path_spec=$LIB
  9745. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9746. # It is most probably a Windows format PATH.
  9747. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9748. else
  9749. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9750. fi
  9751. # FIXME: find the short name or the path components, as spaces are
  9752. # common. (e.g. "Program Files" -> "PROGRA~1")
  9753. ;;
  9754. esac
  9755. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9756. postinstall_cmds='base_file=`basename \$file`~
  9757. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9758. dldir=$destdir/`dirname \$dlpath`~
  9759. test -d \$dldir || mkdir -p \$dldir~
  9760. $install_prog $dir/$dlname \$dldir/$dlname'
  9761. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9762. dlpath=$dir/\$dldll~
  9763. $RM \$dlpath'
  9764. shlibpath_overrides_runpath=yes
  9765. dynamic_linker='Win32 link.exe'
  9766. ;;
  9767. *)
  9768. # Assume MSVC wrapper
  9769. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  9770. dynamic_linker='Win32 ld.exe'
  9771. ;;
  9772. esac
  9773. # FIXME: first we should search . and the directory the executable is in
  9774. shlibpath_var=PATH
  9775. ;;
  9776. darwin* | rhapsody*)
  9777. dynamic_linker="$host_os dyld"
  9778. version_type=darwin
  9779. need_lib_prefix=no
  9780. need_version=no
  9781. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  9782. soname_spec='$libname$release$major$shared_ext'
  9783. shlibpath_overrides_runpath=yes
  9784. shlibpath_var=DYLD_LIBRARY_PATH
  9785. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9786. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9787. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9788. ;;
  9789. dgux*)
  9790. version_type=linux # correct to gnu/linux during the next big refactor
  9791. need_lib_prefix=no
  9792. need_version=no
  9793. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9794. soname_spec='$libname$release$shared_ext$major'
  9795. shlibpath_var=LD_LIBRARY_PATH
  9796. ;;
  9797. freebsd* | dragonfly*)
  9798. # DragonFly does not have aout. When/if they implement a new
  9799. # versioning mechanism, adjust this.
  9800. if test -x /usr/bin/objformat; then
  9801. objformat=`/usr/bin/objformat`
  9802. else
  9803. case $host_os in
  9804. freebsd[23].*) objformat=aout ;;
  9805. *) objformat=elf ;;
  9806. esac
  9807. fi
  9808. version_type=freebsd-$objformat
  9809. case $version_type in
  9810. freebsd-elf*)
  9811. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9812. soname_spec='$libname$release$shared_ext$major'
  9813. need_version=no
  9814. need_lib_prefix=no
  9815. ;;
  9816. freebsd-*)
  9817. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9818. need_version=yes
  9819. ;;
  9820. esac
  9821. shlibpath_var=LD_LIBRARY_PATH
  9822. case $host_os in
  9823. freebsd2.*)
  9824. shlibpath_overrides_runpath=yes
  9825. ;;
  9826. freebsd3.[01]* | freebsdelf3.[01]*)
  9827. shlibpath_overrides_runpath=yes
  9828. hardcode_into_libs=yes
  9829. ;;
  9830. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9831. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9832. shlibpath_overrides_runpath=no
  9833. hardcode_into_libs=yes
  9834. ;;
  9835. *) # from 4.6 on, and DragonFly
  9836. shlibpath_overrides_runpath=yes
  9837. hardcode_into_libs=yes
  9838. ;;
  9839. esac
  9840. ;;
  9841. haiku*)
  9842. version_type=linux # correct to gnu/linux during the next big refactor
  9843. need_lib_prefix=no
  9844. need_version=no
  9845. dynamic_linker="$host_os runtime_loader"
  9846. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9847. soname_spec='$libname$release$shared_ext$major'
  9848. shlibpath_var=LIBRARY_PATH
  9849. shlibpath_overrides_runpath=no
  9850. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9851. hardcode_into_libs=yes
  9852. ;;
  9853. hpux9* | hpux10* | hpux11*)
  9854. # Give a soname corresponding to the major version so that dld.sl refuses to
  9855. # link against other versions.
  9856. version_type=sunos
  9857. need_lib_prefix=no
  9858. need_version=no
  9859. case $host_cpu in
  9860. ia64*)
  9861. shrext_cmds='.so'
  9862. hardcode_into_libs=yes
  9863. dynamic_linker="$host_os dld.so"
  9864. shlibpath_var=LD_LIBRARY_PATH
  9865. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9866. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9867. soname_spec='$libname$release$shared_ext$major'
  9868. if test 32 = "$HPUX_IA64_MODE"; then
  9869. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9870. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  9871. else
  9872. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9873. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  9874. fi
  9875. ;;
  9876. hppa*64*)
  9877. shrext_cmds='.sl'
  9878. hardcode_into_libs=yes
  9879. dynamic_linker="$host_os dld.sl"
  9880. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9881. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9882. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9883. soname_spec='$libname$release$shared_ext$major'
  9884. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9885. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9886. ;;
  9887. *)
  9888. shrext_cmds='.sl'
  9889. dynamic_linker="$host_os dld.sl"
  9890. shlibpath_var=SHLIB_PATH
  9891. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9892. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9893. soname_spec='$libname$release$shared_ext$major'
  9894. ;;
  9895. esac
  9896. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9897. postinstall_cmds='chmod 555 $lib'
  9898. # or fails outright, so override atomically:
  9899. install_override_mode=555
  9900. ;;
  9901. interix[3-9]*)
  9902. version_type=linux # correct to gnu/linux during the next big refactor
  9903. need_lib_prefix=no
  9904. need_version=no
  9905. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9906. soname_spec='$libname$release$shared_ext$major'
  9907. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9908. shlibpath_var=LD_LIBRARY_PATH
  9909. shlibpath_overrides_runpath=no
  9910. hardcode_into_libs=yes
  9911. ;;
  9912. irix5* | irix6* | nonstopux*)
  9913. case $host_os in
  9914. nonstopux*) version_type=nonstopux ;;
  9915. *)
  9916. if test yes = "$lt_cv_prog_gnu_ld"; then
  9917. version_type=linux # correct to gnu/linux during the next big refactor
  9918. else
  9919. version_type=irix
  9920. fi ;;
  9921. esac
  9922. need_lib_prefix=no
  9923. need_version=no
  9924. soname_spec='$libname$release$shared_ext$major'
  9925. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  9926. case $host_os in
  9927. irix5* | nonstopux*)
  9928. libsuff= shlibsuff=
  9929. ;;
  9930. *)
  9931. case $LD in # libtool.m4 will add one of these switches to LD
  9932. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9933. libsuff= shlibsuff= libmagic=32-bit;;
  9934. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9935. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9936. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9937. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9938. *) libsuff= shlibsuff= libmagic=never-match;;
  9939. esac
  9940. ;;
  9941. esac
  9942. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9943. shlibpath_overrides_runpath=no
  9944. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  9945. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  9946. hardcode_into_libs=yes
  9947. ;;
  9948. # No shared lib support for Linux oldld, aout, or coff.
  9949. linux*oldld* | linux*aout* | linux*coff*)
  9950. dynamic_linker=no
  9951. ;;
  9952. linux*android*)
  9953. version_type=none # Android doesn't support versioned libraries.
  9954. need_lib_prefix=no
  9955. need_version=no
  9956. library_names_spec='$libname$release$shared_ext'
  9957. soname_spec='$libname$release$shared_ext'
  9958. finish_cmds=
  9959. shlibpath_var=LD_LIBRARY_PATH
  9960. shlibpath_overrides_runpath=yes
  9961. # This implies no fast_install, which is unacceptable.
  9962. # Some rework will be needed to allow for fast_install
  9963. # before this can be enabled.
  9964. hardcode_into_libs=yes
  9965. dynamic_linker='Android linker'
  9966. # Don't embed -rpath directories since the linker doesn't support them.
  9967. hardcode_libdir_flag_spec='-L$libdir'
  9968. ;;
  9969. # This must be glibc/ELF.
  9970. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9971. version_type=linux # correct to gnu/linux during the next big refactor
  9972. need_lib_prefix=no
  9973. need_version=no
  9974. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9975. soname_spec='$libname$release$shared_ext$major'
  9976. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9977. shlibpath_var=LD_LIBRARY_PATH
  9978. shlibpath_overrides_runpath=no
  9979. # Some binutils ld are patched to set DT_RUNPATH
  9980. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9981. $as_echo_n "(cached) " >&6
  9982. else
  9983. lt_cv_shlibpath_overrides_runpath=no
  9984. save_LDFLAGS=$LDFLAGS
  9985. save_libdir=$libdir
  9986. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9987. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9988. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9989. /* end confdefs.h. */
  9990. int
  9991. main ()
  9992. {
  9993. ;
  9994. return 0;
  9995. }
  9996. _ACEOF
  9997. if ac_fn_c_try_link "$LINENO"; then :
  9998. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9999. lt_cv_shlibpath_overrides_runpath=yes
  10000. fi
  10001. fi
  10002. rm -f core conftest.err conftest.$ac_objext \
  10003. conftest$ac_exeext conftest.$ac_ext
  10004. LDFLAGS=$save_LDFLAGS
  10005. libdir=$save_libdir
  10006. fi
  10007. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10008. # This implies no fast_install, which is unacceptable.
  10009. # Some rework will be needed to allow for fast_install
  10010. # before this can be enabled.
  10011. hardcode_into_libs=yes
  10012. # Ideally, we could use ldconfig to report *all* directores which are
  10013. # searched for libraries, however this is still not possible. Aside from not
  10014. # being certain /sbin/ldconfig is available, command
  10015. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  10016. # even though it is searched at run-time. Try to do the best guess by
  10017. # appending ld.so.conf contents (and includes) to the search path.
  10018. if test -f /etc/ld.so.conf; then
  10019. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  10020. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  10021. fi
  10022. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10023. # powerpc, because MkLinux only supported shared libraries with the
  10024. # GNU dynamic linker. Since this was broken with cross compilers,
  10025. # most powerpc-linux boxes support dynamic linking these days and
  10026. # people can always --disable-shared, the test was removed, and we
  10027. # assume the GNU/Linux dynamic linker is in use.
  10028. dynamic_linker='GNU/Linux ld.so'
  10029. ;;
  10030. netbsd*)
  10031. version_type=sunos
  10032. need_lib_prefix=no
  10033. need_version=no
  10034. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10035. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10036. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10037. dynamic_linker='NetBSD (a.out) ld.so'
  10038. else
  10039. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10040. soname_spec='$libname$release$shared_ext$major'
  10041. dynamic_linker='NetBSD ld.elf_so'
  10042. fi
  10043. shlibpath_var=LD_LIBRARY_PATH
  10044. shlibpath_overrides_runpath=yes
  10045. hardcode_into_libs=yes
  10046. ;;
  10047. newsos6)
  10048. version_type=linux # correct to gnu/linux during the next big refactor
  10049. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10050. shlibpath_var=LD_LIBRARY_PATH
  10051. shlibpath_overrides_runpath=yes
  10052. ;;
  10053. *nto* | *qnx*)
  10054. version_type=qnx
  10055. need_lib_prefix=no
  10056. need_version=no
  10057. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10058. soname_spec='$libname$release$shared_ext$major'
  10059. shlibpath_var=LD_LIBRARY_PATH
  10060. shlibpath_overrides_runpath=no
  10061. hardcode_into_libs=yes
  10062. dynamic_linker='ldqnx.so'
  10063. ;;
  10064. openbsd* | bitrig*)
  10065. version_type=sunos
  10066. sys_lib_dlsearch_path_spec=/usr/lib
  10067. need_lib_prefix=no
  10068. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10069. need_version=no
  10070. else
  10071. need_version=yes
  10072. fi
  10073. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10074. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10075. shlibpath_var=LD_LIBRARY_PATH
  10076. shlibpath_overrides_runpath=yes
  10077. ;;
  10078. os2*)
  10079. libname_spec='$name'
  10080. version_type=windows
  10081. shrext_cmds=.dll
  10082. need_version=no
  10083. need_lib_prefix=no
  10084. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10085. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10086. v=$($ECHO $release$versuffix | tr -d .-);
  10087. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10088. $ECHO $n$v`$shared_ext'
  10089. library_names_spec='${libname}_dll.$libext'
  10090. dynamic_linker='OS/2 ld.exe'
  10091. shlibpath_var=BEGINLIBPATH
  10092. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10093. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10094. postinstall_cmds='base_file=`basename \$file`~
  10095. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10096. dldir=$destdir/`dirname \$dlpath`~
  10097. test -d \$dldir || mkdir -p \$dldir~
  10098. $install_prog $dir/$dlname \$dldir/$dlname~
  10099. chmod a+x \$dldir/$dlname~
  10100. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10101. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10102. fi'
  10103. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10104. dlpath=$dir/\$dldll~
  10105. $RM \$dlpath'
  10106. ;;
  10107. osf3* | osf4* | osf5*)
  10108. version_type=osf
  10109. need_lib_prefix=no
  10110. need_version=no
  10111. soname_spec='$libname$release$shared_ext$major'
  10112. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10113. shlibpath_var=LD_LIBRARY_PATH
  10114. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10115. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10116. ;;
  10117. rdos*)
  10118. dynamic_linker=no
  10119. ;;
  10120. solaris*)
  10121. version_type=linux # correct to gnu/linux during the next big refactor
  10122. need_lib_prefix=no
  10123. need_version=no
  10124. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10125. soname_spec='$libname$release$shared_ext$major'
  10126. shlibpath_var=LD_LIBRARY_PATH
  10127. shlibpath_overrides_runpath=yes
  10128. hardcode_into_libs=yes
  10129. # ldd complains unless libraries are executable
  10130. postinstall_cmds='chmod +x $lib'
  10131. ;;
  10132. sunos4*)
  10133. version_type=sunos
  10134. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10135. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10136. shlibpath_var=LD_LIBRARY_PATH
  10137. shlibpath_overrides_runpath=yes
  10138. if test yes = "$with_gnu_ld"; then
  10139. need_lib_prefix=no
  10140. fi
  10141. need_version=yes
  10142. ;;
  10143. sysv4 | sysv4.3*)
  10144. version_type=linux # correct to gnu/linux during the next big refactor
  10145. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10146. soname_spec='$libname$release$shared_ext$major'
  10147. shlibpath_var=LD_LIBRARY_PATH
  10148. case $host_vendor in
  10149. sni)
  10150. shlibpath_overrides_runpath=no
  10151. need_lib_prefix=no
  10152. runpath_var=LD_RUN_PATH
  10153. ;;
  10154. siemens)
  10155. need_lib_prefix=no
  10156. ;;
  10157. motorola)
  10158. need_lib_prefix=no
  10159. need_version=no
  10160. shlibpath_overrides_runpath=no
  10161. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10162. ;;
  10163. esac
  10164. ;;
  10165. sysv4*MP*)
  10166. if test -d /usr/nec; then
  10167. version_type=linux # correct to gnu/linux during the next big refactor
  10168. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10169. soname_spec='$libname$shared_ext.$major'
  10170. shlibpath_var=LD_LIBRARY_PATH
  10171. fi
  10172. ;;
  10173. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10174. version_type=sco
  10175. need_lib_prefix=no
  10176. need_version=no
  10177. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10178. soname_spec='$libname$release$shared_ext$major'
  10179. shlibpath_var=LD_LIBRARY_PATH
  10180. shlibpath_overrides_runpath=yes
  10181. hardcode_into_libs=yes
  10182. if test yes = "$with_gnu_ld"; then
  10183. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10184. else
  10185. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10186. case $host_os in
  10187. sco3.2v5*)
  10188. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10189. ;;
  10190. esac
  10191. fi
  10192. sys_lib_dlsearch_path_spec='/usr/lib'
  10193. ;;
  10194. tpf*)
  10195. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10196. version_type=linux # correct to gnu/linux during the next big refactor
  10197. need_lib_prefix=no
  10198. need_version=no
  10199. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10200. shlibpath_var=LD_LIBRARY_PATH
  10201. shlibpath_overrides_runpath=no
  10202. hardcode_into_libs=yes
  10203. ;;
  10204. uts4*)
  10205. version_type=linux # correct to gnu/linux during the next big refactor
  10206. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10207. soname_spec='$libname$release$shared_ext$major'
  10208. shlibpath_var=LD_LIBRARY_PATH
  10209. ;;
  10210. *)
  10211. dynamic_linker=no
  10212. ;;
  10213. esac
  10214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10215. $as_echo "$dynamic_linker" >&6; }
  10216. test no = "$dynamic_linker" && can_build_shared=no
  10217. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10218. if test yes = "$GCC"; then
  10219. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10220. fi
  10221. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10222. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10223. fi
  10224. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10225. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10226. fi
  10227. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10228. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10229. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10230. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10231. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10232. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10234. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10235. hardcode_action=
  10236. if test -n "$hardcode_libdir_flag_spec" ||
  10237. test -n "$runpath_var" ||
  10238. test yes = "$hardcode_automatic"; then
  10239. # We can hardcode non-existent directories.
  10240. if test no != "$hardcode_direct" &&
  10241. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10242. # have to relink, otherwise we might link with an installed library
  10243. # when we should be linking with a yet-to-be-installed one
  10244. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10245. test no != "$hardcode_minus_L"; then
  10246. # Linking always hardcodes the temporary library directory.
  10247. hardcode_action=relink
  10248. else
  10249. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10250. hardcode_action=immediate
  10251. fi
  10252. else
  10253. # We cannot hardcode anything, or else we can only hardcode existing
  10254. # directories.
  10255. hardcode_action=unsupported
  10256. fi
  10257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10258. $as_echo "$hardcode_action" >&6; }
  10259. if test relink = "$hardcode_action" ||
  10260. test yes = "$inherit_rpath"; then
  10261. # Fast installation is not supported
  10262. enable_fast_install=no
  10263. elif test yes = "$shlibpath_overrides_runpath" ||
  10264. test no = "$enable_shared"; then
  10265. # Fast installation is not necessary
  10266. enable_fast_install=needless
  10267. fi
  10268. if test yes != "$enable_dlopen"; then
  10269. enable_dlopen=unknown
  10270. enable_dlopen_self=unknown
  10271. enable_dlopen_self_static=unknown
  10272. else
  10273. lt_cv_dlopen=no
  10274. lt_cv_dlopen_libs=
  10275. case $host_os in
  10276. beos*)
  10277. lt_cv_dlopen=load_add_on
  10278. lt_cv_dlopen_libs=
  10279. lt_cv_dlopen_self=yes
  10280. ;;
  10281. mingw* | pw32* | cegcc*)
  10282. lt_cv_dlopen=LoadLibrary
  10283. lt_cv_dlopen_libs=
  10284. ;;
  10285. cygwin*)
  10286. lt_cv_dlopen=dlopen
  10287. lt_cv_dlopen_libs=
  10288. ;;
  10289. darwin*)
  10290. # if libdl is installed we need to link against it
  10291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10292. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10293. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10294. $as_echo_n "(cached) " >&6
  10295. else
  10296. ac_check_lib_save_LIBS=$LIBS
  10297. LIBS="-ldl $LIBS"
  10298. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10299. /* end confdefs.h. */
  10300. /* Override any GCC internal prototype to avoid an error.
  10301. Use char because int might match the return type of a GCC
  10302. builtin and then its argument prototype would still apply. */
  10303. #ifdef __cplusplus
  10304. extern "C"
  10305. #endif
  10306. char dlopen ();
  10307. int
  10308. main ()
  10309. {
  10310. return dlopen ();
  10311. ;
  10312. return 0;
  10313. }
  10314. _ACEOF
  10315. if ac_fn_c_try_link "$LINENO"; then :
  10316. ac_cv_lib_dl_dlopen=yes
  10317. else
  10318. ac_cv_lib_dl_dlopen=no
  10319. fi
  10320. rm -f core conftest.err conftest.$ac_objext \
  10321. conftest$ac_exeext conftest.$ac_ext
  10322. LIBS=$ac_check_lib_save_LIBS
  10323. fi
  10324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10325. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10326. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10327. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10328. else
  10329. lt_cv_dlopen=dyld
  10330. lt_cv_dlopen_libs=
  10331. lt_cv_dlopen_self=yes
  10332. fi
  10333. ;;
  10334. tpf*)
  10335. # Don't try to run any link tests for TPF. We know it's impossible
  10336. # because TPF is a cross-compiler, and we know how we open DSOs.
  10337. lt_cv_dlopen=dlopen
  10338. lt_cv_dlopen_libs=
  10339. lt_cv_dlopen_self=no
  10340. ;;
  10341. *)
  10342. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10343. if test "x$ac_cv_func_shl_load" = xyes; then :
  10344. lt_cv_dlopen=shl_load
  10345. else
  10346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10347. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10348. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10349. $as_echo_n "(cached) " >&6
  10350. else
  10351. ac_check_lib_save_LIBS=$LIBS
  10352. LIBS="-ldld $LIBS"
  10353. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10354. /* end confdefs.h. */
  10355. /* Override any GCC internal prototype to avoid an error.
  10356. Use char because int might match the return type of a GCC
  10357. builtin and then its argument prototype would still apply. */
  10358. #ifdef __cplusplus
  10359. extern "C"
  10360. #endif
  10361. char shl_load ();
  10362. int
  10363. main ()
  10364. {
  10365. return shl_load ();
  10366. ;
  10367. return 0;
  10368. }
  10369. _ACEOF
  10370. if ac_fn_c_try_link "$LINENO"; then :
  10371. ac_cv_lib_dld_shl_load=yes
  10372. else
  10373. ac_cv_lib_dld_shl_load=no
  10374. fi
  10375. rm -f core conftest.err conftest.$ac_objext \
  10376. conftest$ac_exeext conftest.$ac_ext
  10377. LIBS=$ac_check_lib_save_LIBS
  10378. fi
  10379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10380. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10381. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10382. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10383. else
  10384. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10385. if test "x$ac_cv_func_dlopen" = xyes; then :
  10386. lt_cv_dlopen=dlopen
  10387. else
  10388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10389. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10390. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10391. $as_echo_n "(cached) " >&6
  10392. else
  10393. ac_check_lib_save_LIBS=$LIBS
  10394. LIBS="-ldl $LIBS"
  10395. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10396. /* end confdefs.h. */
  10397. /* Override any GCC internal prototype to avoid an error.
  10398. Use char because int might match the return type of a GCC
  10399. builtin and then its argument prototype would still apply. */
  10400. #ifdef __cplusplus
  10401. extern "C"
  10402. #endif
  10403. char dlopen ();
  10404. int
  10405. main ()
  10406. {
  10407. return dlopen ();
  10408. ;
  10409. return 0;
  10410. }
  10411. _ACEOF
  10412. if ac_fn_c_try_link "$LINENO"; then :
  10413. ac_cv_lib_dl_dlopen=yes
  10414. else
  10415. ac_cv_lib_dl_dlopen=no
  10416. fi
  10417. rm -f core conftest.err conftest.$ac_objext \
  10418. conftest$ac_exeext conftest.$ac_ext
  10419. LIBS=$ac_check_lib_save_LIBS
  10420. fi
  10421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10422. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10423. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10424. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10425. else
  10426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10427. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10428. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10429. $as_echo_n "(cached) " >&6
  10430. else
  10431. ac_check_lib_save_LIBS=$LIBS
  10432. LIBS="-lsvld $LIBS"
  10433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10434. /* end confdefs.h. */
  10435. /* Override any GCC internal prototype to avoid an error.
  10436. Use char because int might match the return type of a GCC
  10437. builtin and then its argument prototype would still apply. */
  10438. #ifdef __cplusplus
  10439. extern "C"
  10440. #endif
  10441. char dlopen ();
  10442. int
  10443. main ()
  10444. {
  10445. return dlopen ();
  10446. ;
  10447. return 0;
  10448. }
  10449. _ACEOF
  10450. if ac_fn_c_try_link "$LINENO"; then :
  10451. ac_cv_lib_svld_dlopen=yes
  10452. else
  10453. ac_cv_lib_svld_dlopen=no
  10454. fi
  10455. rm -f core conftest.err conftest.$ac_objext \
  10456. conftest$ac_exeext conftest.$ac_ext
  10457. LIBS=$ac_check_lib_save_LIBS
  10458. fi
  10459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10460. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10461. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10462. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10463. else
  10464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10465. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10466. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10467. $as_echo_n "(cached) " >&6
  10468. else
  10469. ac_check_lib_save_LIBS=$LIBS
  10470. LIBS="-ldld $LIBS"
  10471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10472. /* end confdefs.h. */
  10473. /* Override any GCC internal prototype to avoid an error.
  10474. Use char because int might match the return type of a GCC
  10475. builtin and then its argument prototype would still apply. */
  10476. #ifdef __cplusplus
  10477. extern "C"
  10478. #endif
  10479. char dld_link ();
  10480. int
  10481. main ()
  10482. {
  10483. return dld_link ();
  10484. ;
  10485. return 0;
  10486. }
  10487. _ACEOF
  10488. if ac_fn_c_try_link "$LINENO"; then :
  10489. ac_cv_lib_dld_dld_link=yes
  10490. else
  10491. ac_cv_lib_dld_dld_link=no
  10492. fi
  10493. rm -f core conftest.err conftest.$ac_objext \
  10494. conftest$ac_exeext conftest.$ac_ext
  10495. LIBS=$ac_check_lib_save_LIBS
  10496. fi
  10497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10498. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10499. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10500. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10501. fi
  10502. fi
  10503. fi
  10504. fi
  10505. fi
  10506. fi
  10507. ;;
  10508. esac
  10509. if test no = "$lt_cv_dlopen"; then
  10510. enable_dlopen=no
  10511. else
  10512. enable_dlopen=yes
  10513. fi
  10514. case $lt_cv_dlopen in
  10515. dlopen)
  10516. save_CPPFLAGS=$CPPFLAGS
  10517. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10518. save_LDFLAGS=$LDFLAGS
  10519. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10520. save_LIBS=$LIBS
  10521. LIBS="$lt_cv_dlopen_libs $LIBS"
  10522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10523. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10524. if ${lt_cv_dlopen_self+:} false; then :
  10525. $as_echo_n "(cached) " >&6
  10526. else
  10527. if test yes = "$cross_compiling"; then :
  10528. lt_cv_dlopen_self=cross
  10529. else
  10530. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10531. lt_status=$lt_dlunknown
  10532. cat > conftest.$ac_ext <<_LT_EOF
  10533. #line $LINENO "configure"
  10534. #include "confdefs.h"
  10535. #if HAVE_DLFCN_H
  10536. #include <dlfcn.h>
  10537. #endif
  10538. #include <stdio.h>
  10539. #ifdef RTLD_GLOBAL
  10540. # define LT_DLGLOBAL RTLD_GLOBAL
  10541. #else
  10542. # ifdef DL_GLOBAL
  10543. # define LT_DLGLOBAL DL_GLOBAL
  10544. # else
  10545. # define LT_DLGLOBAL 0
  10546. # endif
  10547. #endif
  10548. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10549. find out it does not work in some platform. */
  10550. #ifndef LT_DLLAZY_OR_NOW
  10551. # ifdef RTLD_LAZY
  10552. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10553. # else
  10554. # ifdef DL_LAZY
  10555. # define LT_DLLAZY_OR_NOW DL_LAZY
  10556. # else
  10557. # ifdef RTLD_NOW
  10558. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10559. # else
  10560. # ifdef DL_NOW
  10561. # define LT_DLLAZY_OR_NOW DL_NOW
  10562. # else
  10563. # define LT_DLLAZY_OR_NOW 0
  10564. # endif
  10565. # endif
  10566. # endif
  10567. # endif
  10568. #endif
  10569. /* When -fvisibility=hidden is used, assume the code has been annotated
  10570. correspondingly for the symbols needed. */
  10571. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10572. int fnord () __attribute__((visibility("default")));
  10573. #endif
  10574. int fnord () { return 42; }
  10575. int main ()
  10576. {
  10577. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10578. int status = $lt_dlunknown;
  10579. if (self)
  10580. {
  10581. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10582. else
  10583. {
  10584. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10585. else puts (dlerror ());
  10586. }
  10587. /* dlclose (self); */
  10588. }
  10589. else
  10590. puts (dlerror ());
  10591. return status;
  10592. }
  10593. _LT_EOF
  10594. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10595. (eval $ac_link) 2>&5
  10596. ac_status=$?
  10597. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10598. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10599. (./conftest; exit; ) >&5 2>/dev/null
  10600. lt_status=$?
  10601. case x$lt_status in
  10602. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10603. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10604. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10605. esac
  10606. else :
  10607. # compilation failed
  10608. lt_cv_dlopen_self=no
  10609. fi
  10610. fi
  10611. rm -fr conftest*
  10612. fi
  10613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10614. $as_echo "$lt_cv_dlopen_self" >&6; }
  10615. if test yes = "$lt_cv_dlopen_self"; then
  10616. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10618. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10619. if ${lt_cv_dlopen_self_static+:} false; then :
  10620. $as_echo_n "(cached) " >&6
  10621. else
  10622. if test yes = "$cross_compiling"; then :
  10623. lt_cv_dlopen_self_static=cross
  10624. else
  10625. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10626. lt_status=$lt_dlunknown
  10627. cat > conftest.$ac_ext <<_LT_EOF
  10628. #line $LINENO "configure"
  10629. #include "confdefs.h"
  10630. #if HAVE_DLFCN_H
  10631. #include <dlfcn.h>
  10632. #endif
  10633. #include <stdio.h>
  10634. #ifdef RTLD_GLOBAL
  10635. # define LT_DLGLOBAL RTLD_GLOBAL
  10636. #else
  10637. # ifdef DL_GLOBAL
  10638. # define LT_DLGLOBAL DL_GLOBAL
  10639. # else
  10640. # define LT_DLGLOBAL 0
  10641. # endif
  10642. #endif
  10643. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10644. find out it does not work in some platform. */
  10645. #ifndef LT_DLLAZY_OR_NOW
  10646. # ifdef RTLD_LAZY
  10647. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10648. # else
  10649. # ifdef DL_LAZY
  10650. # define LT_DLLAZY_OR_NOW DL_LAZY
  10651. # else
  10652. # ifdef RTLD_NOW
  10653. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10654. # else
  10655. # ifdef DL_NOW
  10656. # define LT_DLLAZY_OR_NOW DL_NOW
  10657. # else
  10658. # define LT_DLLAZY_OR_NOW 0
  10659. # endif
  10660. # endif
  10661. # endif
  10662. # endif
  10663. #endif
  10664. /* When -fvisibility=hidden is used, assume the code has been annotated
  10665. correspondingly for the symbols needed. */
  10666. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10667. int fnord () __attribute__((visibility("default")));
  10668. #endif
  10669. int fnord () { return 42; }
  10670. int main ()
  10671. {
  10672. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10673. int status = $lt_dlunknown;
  10674. if (self)
  10675. {
  10676. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10677. else
  10678. {
  10679. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10680. else puts (dlerror ());
  10681. }
  10682. /* dlclose (self); */
  10683. }
  10684. else
  10685. puts (dlerror ());
  10686. return status;
  10687. }
  10688. _LT_EOF
  10689. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10690. (eval $ac_link) 2>&5
  10691. ac_status=$?
  10692. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10693. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10694. (./conftest; exit; ) >&5 2>/dev/null
  10695. lt_status=$?
  10696. case x$lt_status in
  10697. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10698. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10699. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10700. esac
  10701. else :
  10702. # compilation failed
  10703. lt_cv_dlopen_self_static=no
  10704. fi
  10705. fi
  10706. rm -fr conftest*
  10707. fi
  10708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10709. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10710. fi
  10711. CPPFLAGS=$save_CPPFLAGS
  10712. LDFLAGS=$save_LDFLAGS
  10713. LIBS=$save_LIBS
  10714. ;;
  10715. esac
  10716. case $lt_cv_dlopen_self in
  10717. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10718. *) enable_dlopen_self=unknown ;;
  10719. esac
  10720. case $lt_cv_dlopen_self_static in
  10721. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10722. *) enable_dlopen_self_static=unknown ;;
  10723. esac
  10724. fi
  10725. striplib=
  10726. old_striplib=
  10727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10728. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10729. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10730. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10731. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10733. $as_echo "yes" >&6; }
  10734. else
  10735. # FIXME - insert some real tests, host_os isn't really good enough
  10736. case $host_os in
  10737. darwin*)
  10738. if test -n "$STRIP"; then
  10739. striplib="$STRIP -x"
  10740. old_striplib="$STRIP -S"
  10741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10742. $as_echo "yes" >&6; }
  10743. else
  10744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10745. $as_echo "no" >&6; }
  10746. fi
  10747. ;;
  10748. *)
  10749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10750. $as_echo "no" >&6; }
  10751. ;;
  10752. esac
  10753. fi
  10754. # Report what library types will actually be built
  10755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10756. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10758. $as_echo "$can_build_shared" >&6; }
  10759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10760. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10761. test no = "$can_build_shared" && enable_shared=no
  10762. # On AIX, shared libraries and static libraries use the same namespace, and
  10763. # are all built from PIC.
  10764. case $host_os in
  10765. aix3*)
  10766. test yes = "$enable_shared" && enable_static=no
  10767. if test -n "$RANLIB"; then
  10768. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10769. postinstall_cmds='$RANLIB $lib'
  10770. fi
  10771. ;;
  10772. aix[4-9]*)
  10773. if test ia64 != "$host_cpu"; then
  10774. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  10775. yes,aix,yes) ;; # shared object as lib.so file only
  10776. yes,svr4,*) ;; # shared object as lib.so archive member only
  10777. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  10778. esac
  10779. fi
  10780. ;;
  10781. esac
  10782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10783. $as_echo "$enable_shared" >&6; }
  10784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10785. $as_echo_n "checking whether to build static libraries... " >&6; }
  10786. # Make sure either enable_shared or enable_static is yes.
  10787. test yes = "$enable_shared" || enable_static=yes
  10788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10789. $as_echo "$enable_static" >&6; }
  10790. fi
  10791. ac_ext=c
  10792. ac_cpp='$CPP $CPPFLAGS'
  10793. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10794. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10795. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10796. CC=$lt_save_CC
  10797. ac_config_commands="$ac_config_commands libtool"
  10798. # Only expand once:
  10799. # Some awks crash when confronted with pnglibconf.dfa, do a test run now
  10800. # to make sure this doesn't happen
  10801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that AWK works" >&5
  10802. $as_echo_n "checking that AWK works... " >&6; }
  10803. if ${AWK} -f ${srcdir}/scripts/options.awk out="/dev/null" version=search\
  10804. ${srcdir}/pngconf.h ${srcdir}/scripts/pnglibconf.dfa\
  10805. ${srcdir}/pngusr.dfa 1>&2
  10806. then
  10807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  10808. $as_echo "ok" >&6; }
  10809. else
  10810. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10811. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10812. as_fn_error 1 "failed
  10813. See \`config.log' for more details" "$LINENO" 5; }
  10814. fi
  10815. # This is a remnant of the old cc -E validation, where it may have been
  10816. # necessary to use a different preprocessor for .dfn files
  10817. DFNCPP="$CPP"
  10818. # -Werror cannot be passed to GCC in CFLAGS because configure will fail (it
  10819. # checks the compiler with a program that generates a warning), add the
  10820. # following option to deal with this
  10821. # Check whether --enable-werror was given.
  10822. if test "${enable_werror+set}" = set; then :
  10823. enableval=$enable_werror; test "$enable_werror" = "yes" && enable_werror="-Werror"
  10824. if test "$enable_werror" != "no"; then
  10825. sav_CFLAGS="$CFLAGS"
  10826. CFLAGS="$enable_werror $CFLAGS"
  10827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler allows $enable_werror" >&5
  10828. $as_echo_n "checking if the compiler allows $enable_werror... " >&6; }
  10829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10830. /* end confdefs.h. */
  10831. int main(int argc, char **argv){
  10832. return argv[argc-1][0];
  10833. }
  10834. _ACEOF
  10835. if ac_fn_c_try_compile "$LINENO"; then :
  10836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10837. $as_echo "yes" >&6; }
  10838. PNG_COPTS="$PNG_COPTS $enable_werror"
  10839. else
  10840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10841. $as_echo "no" >&6; }
  10842. fi
  10843. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10844. CFLAGS="$sav_CFLAGS"
  10845. fi
  10846. fi
  10847. # For GCC 5 the default mode for C is -std=gnu11 instead of -std=gnu89
  10848. # In pngpriv.h we request just the POSIX 1003.1 and C89 APIs by defining _POSIX_SOURCE to 1
  10849. # This is incompatible with the new default mode, so we test for that and force the
  10850. # "-std=c89" compiler option:
  10851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to force back C standard to C89" >&5
  10852. $as_echo_n "checking if we need to force back C standard to C89... " >&6; }
  10853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10854. /* end confdefs.h. */
  10855. #define _POSIX_SOURCE 1
  10856. #include <stdio.h>
  10857. int
  10858. main ()
  10859. {
  10860. ;
  10861. return 0;
  10862. }
  10863. _ACEOF
  10864. if ac_fn_c_try_compile "$LINENO"; then :
  10865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10866. $as_echo "no" >&6; }
  10867. else
  10868. if test "x$GCC" != "xyes"; then
  10869. as_fn_error $? "Forcing back to C89 is required but the flags are only known for GCC" "$LINENO" 5
  10870. fi
  10871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10872. $as_echo "yes" >&6; }
  10873. CFLAGS="$CFLAGS -std=c89"
  10874. fi
  10875. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10876. # Checks for header files.
  10877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  10878. $as_echo_n "checking for ANSI C header files... " >&6; }
  10879. if ${ac_cv_header_stdc+:} false; then :
  10880. $as_echo_n "(cached) " >&6
  10881. else
  10882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10883. /* end confdefs.h. */
  10884. #include <stdlib.h>
  10885. #include <stdarg.h>
  10886. #include <string.h>
  10887. #include <float.h>
  10888. int
  10889. main ()
  10890. {
  10891. ;
  10892. return 0;
  10893. }
  10894. _ACEOF
  10895. if ac_fn_c_try_compile "$LINENO"; then :
  10896. ac_cv_header_stdc=yes
  10897. else
  10898. ac_cv_header_stdc=no
  10899. fi
  10900. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10901. if test $ac_cv_header_stdc = yes; then
  10902. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  10903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10904. /* end confdefs.h. */
  10905. #include <string.h>
  10906. _ACEOF
  10907. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10908. $EGREP "memchr" >/dev/null 2>&1; then :
  10909. else
  10910. ac_cv_header_stdc=no
  10911. fi
  10912. rm -f conftest*
  10913. fi
  10914. if test $ac_cv_header_stdc = yes; then
  10915. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  10916. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10917. /* end confdefs.h. */
  10918. #include <stdlib.h>
  10919. _ACEOF
  10920. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10921. $EGREP "free" >/dev/null 2>&1; then :
  10922. else
  10923. ac_cv_header_stdc=no
  10924. fi
  10925. rm -f conftest*
  10926. fi
  10927. if test $ac_cv_header_stdc = yes; then
  10928. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  10929. if test "$cross_compiling" = yes; then :
  10930. :
  10931. else
  10932. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10933. /* end confdefs.h. */
  10934. #include <ctype.h>
  10935. #include <stdlib.h>
  10936. #if ((' ' & 0x0FF) == 0x020)
  10937. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  10938. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  10939. #else
  10940. # define ISLOWER(c) \
  10941. (('a' <= (c) && (c) <= 'i') \
  10942. || ('j' <= (c) && (c) <= 'r') \
  10943. || ('s' <= (c) && (c) <= 'z'))
  10944. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  10945. #endif
  10946. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  10947. int
  10948. main ()
  10949. {
  10950. int i;
  10951. for (i = 0; i < 256; i++)
  10952. if (XOR (islower (i), ISLOWER (i))
  10953. || toupper (i) != TOUPPER (i))
  10954. return 2;
  10955. return 0;
  10956. }
  10957. _ACEOF
  10958. if ac_fn_c_try_run "$LINENO"; then :
  10959. else
  10960. ac_cv_header_stdc=no
  10961. fi
  10962. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10963. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10964. fi
  10965. fi
  10966. fi
  10967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  10968. $as_echo "$ac_cv_header_stdc" >&6; }
  10969. if test $ac_cv_header_stdc = yes; then
  10970. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  10971. fi
  10972. # Checks for typedefs, structures, and compiler characteristics.
  10973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  10974. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  10975. if ${ac_cv_c_const+:} false; then :
  10976. $as_echo_n "(cached) " >&6
  10977. else
  10978. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10979. /* end confdefs.h. */
  10980. int
  10981. main ()
  10982. {
  10983. #ifndef __cplusplus
  10984. /* Ultrix mips cc rejects this sort of thing. */
  10985. typedef int charset[2];
  10986. const charset cs = { 0, 0 };
  10987. /* SunOS 4.1.1 cc rejects this. */
  10988. char const *const *pcpcc;
  10989. char **ppc;
  10990. /* NEC SVR4.0.2 mips cc rejects this. */
  10991. struct point {int x, y;};
  10992. static struct point const zero = {0,0};
  10993. /* AIX XL C 1.02.0.0 rejects this.
  10994. It does not let you subtract one const X* pointer from another in
  10995. an arm of an if-expression whose if-part is not a constant
  10996. expression */
  10997. const char *g = "string";
  10998. pcpcc = &g + (g ? g-g : 0);
  10999. /* HPUX 7.0 cc rejects these. */
  11000. ++pcpcc;
  11001. ppc = (char**) pcpcc;
  11002. pcpcc = (char const *const *) ppc;
  11003. { /* SCO 3.2v4 cc rejects this sort of thing. */
  11004. char tx;
  11005. char *t = &tx;
  11006. char const *s = 0 ? (char *) 0 : (char const *) 0;
  11007. *t++ = 0;
  11008. if (s) return 0;
  11009. }
  11010. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  11011. int x[] = {25, 17};
  11012. const int *foo = &x[0];
  11013. ++foo;
  11014. }
  11015. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  11016. typedef const int *iptr;
  11017. iptr p = 0;
  11018. ++p;
  11019. }
  11020. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  11021. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  11022. struct s { int j; const int *ap[3]; } bx;
  11023. struct s *b = &bx; b->j = 5;
  11024. }
  11025. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  11026. const int foo = 10;
  11027. if (!foo) return 0;
  11028. }
  11029. return !cs[0] && !zero.x;
  11030. #endif
  11031. ;
  11032. return 0;
  11033. }
  11034. _ACEOF
  11035. if ac_fn_c_try_compile "$LINENO"; then :
  11036. ac_cv_c_const=yes
  11037. else
  11038. ac_cv_c_const=no
  11039. fi
  11040. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11041. fi
  11042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  11043. $as_echo "$ac_cv_c_const" >&6; }
  11044. if test $ac_cv_c_const = no; then
  11045. $as_echo "#define const /**/" >>confdefs.h
  11046. fi
  11047. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  11048. if test "x$ac_cv_type_size_t" = xyes; then :
  11049. else
  11050. cat >>confdefs.h <<_ACEOF
  11051. #define size_t unsigned int
  11052. _ACEOF
  11053. fi
  11054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  11055. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  11056. if ${ac_cv_struct_tm+:} false; then :
  11057. $as_echo_n "(cached) " >&6
  11058. else
  11059. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11060. /* end confdefs.h. */
  11061. #include <sys/types.h>
  11062. #include <time.h>
  11063. int
  11064. main ()
  11065. {
  11066. struct tm tm;
  11067. int *p = &tm.tm_sec;
  11068. return !p;
  11069. ;
  11070. return 0;
  11071. }
  11072. _ACEOF
  11073. if ac_fn_c_try_compile "$LINENO"; then :
  11074. ac_cv_struct_tm=time.h
  11075. else
  11076. ac_cv_struct_tm=sys/time.h
  11077. fi
  11078. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11079. fi
  11080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  11081. $as_echo "$ac_cv_struct_tm" >&6; }
  11082. if test $ac_cv_struct_tm = sys/time.h; then
  11083. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  11084. fi
  11085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
  11086. $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
  11087. if ${ac_cv_c_restrict+:} false; then :
  11088. $as_echo_n "(cached) " >&6
  11089. else
  11090. ac_cv_c_restrict=no
  11091. # The order here caters to the fact that C++ does not require restrict.
  11092. for ac_kw in __restrict __restrict__ _Restrict restrict; do
  11093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11094. /* end confdefs.h. */
  11095. typedef int * int_ptr;
  11096. int foo (int_ptr $ac_kw ip) {
  11097. return ip[0];
  11098. }
  11099. int
  11100. main ()
  11101. {
  11102. int s[1];
  11103. int * $ac_kw t = s;
  11104. t[0] = 0;
  11105. return foo(t)
  11106. ;
  11107. return 0;
  11108. }
  11109. _ACEOF
  11110. if ac_fn_c_try_compile "$LINENO"; then :
  11111. ac_cv_c_restrict=$ac_kw
  11112. fi
  11113. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11114. test "$ac_cv_c_restrict" != no && break
  11115. done
  11116. fi
  11117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
  11118. $as_echo "$ac_cv_c_restrict" >&6; }
  11119. case $ac_cv_c_restrict in
  11120. restrict) ;;
  11121. no) $as_echo "#define restrict /**/" >>confdefs.h
  11122. ;;
  11123. *) cat >>confdefs.h <<_ACEOF
  11124. #define restrict $ac_cv_c_restrict
  11125. _ACEOF
  11126. ;;
  11127. esac
  11128. # Checks for library functions.
  11129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  11130. $as_echo_n "checking for working strtod... " >&6; }
  11131. if ${ac_cv_func_strtod+:} false; then :
  11132. $as_echo_n "(cached) " >&6
  11133. else
  11134. if test "$cross_compiling" = yes; then :
  11135. ac_cv_func_strtod=no
  11136. else
  11137. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11138. /* end confdefs.h. */
  11139. $ac_includes_default
  11140. #ifndef strtod
  11141. double strtod ();
  11142. #endif
  11143. int
  11144. main()
  11145. {
  11146. {
  11147. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  11148. char *string = " +69";
  11149. char *term;
  11150. double value;
  11151. value = strtod (string, &term);
  11152. if (value != 69 || term != (string + 4))
  11153. return 1;
  11154. }
  11155. {
  11156. /* Under Solaris 2.4, strtod returns the wrong value for the
  11157. terminating character under some conditions. */
  11158. char *string = "NaN";
  11159. char *term;
  11160. strtod (string, &term);
  11161. if (term != string && *(term - 1) == 0)
  11162. return 1;
  11163. }
  11164. return 0;
  11165. }
  11166. _ACEOF
  11167. if ac_fn_c_try_run "$LINENO"; then :
  11168. ac_cv_func_strtod=yes
  11169. else
  11170. ac_cv_func_strtod=no
  11171. fi
  11172. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11173. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11174. fi
  11175. fi
  11176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  11177. $as_echo "$ac_cv_func_strtod" >&6; }
  11178. if test $ac_cv_func_strtod = no; then
  11179. case " $LIBOBJS " in
  11180. *" strtod.$ac_objext "* ) ;;
  11181. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  11182. ;;
  11183. esac
  11184. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  11185. if test "x$ac_cv_func_pow" = xyes; then :
  11186. fi
  11187. if test $ac_cv_func_pow = no; then
  11188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  11189. $as_echo_n "checking for pow in -lm... " >&6; }
  11190. if ${ac_cv_lib_m_pow+:} false; then :
  11191. $as_echo_n "(cached) " >&6
  11192. else
  11193. ac_check_lib_save_LIBS=$LIBS
  11194. LIBS="-lm $LIBS"
  11195. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11196. /* end confdefs.h. */
  11197. /* Override any GCC internal prototype to avoid an error.
  11198. Use char because int might match the return type of a GCC
  11199. builtin and then its argument prototype would still apply. */
  11200. #ifdef __cplusplus
  11201. extern "C"
  11202. #endif
  11203. char pow ();
  11204. int
  11205. main ()
  11206. {
  11207. return pow ();
  11208. ;
  11209. return 0;
  11210. }
  11211. _ACEOF
  11212. if ac_fn_c_try_link "$LINENO"; then :
  11213. ac_cv_lib_m_pow=yes
  11214. else
  11215. ac_cv_lib_m_pow=no
  11216. fi
  11217. rm -f core conftest.err conftest.$ac_objext \
  11218. conftest$ac_exeext conftest.$ac_ext
  11219. LIBS=$ac_check_lib_save_LIBS
  11220. fi
  11221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  11222. $as_echo "$ac_cv_lib_m_pow" >&6; }
  11223. if test "x$ac_cv_lib_m_pow" = xyes; then :
  11224. POW_LIB=-lm
  11225. else
  11226. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  11227. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  11228. fi
  11229. fi
  11230. fi
  11231. for ac_func in pow
  11232. do :
  11233. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  11234. if test "x$ac_cv_func_pow" = xyes; then :
  11235. cat >>confdefs.h <<_ACEOF
  11236. #define HAVE_POW 1
  11237. _ACEOF
  11238. else
  11239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  11240. $as_echo_n "checking for pow in -lm... " >&6; }
  11241. if ${ac_cv_lib_m_pow+:} false; then :
  11242. $as_echo_n "(cached) " >&6
  11243. else
  11244. ac_check_lib_save_LIBS=$LIBS
  11245. LIBS="-lm $LIBS"
  11246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11247. /* end confdefs.h. */
  11248. /* Override any GCC internal prototype to avoid an error.
  11249. Use char because int might match the return type of a GCC
  11250. builtin and then its argument prototype would still apply. */
  11251. #ifdef __cplusplus
  11252. extern "C"
  11253. #endif
  11254. char pow ();
  11255. int
  11256. main ()
  11257. {
  11258. return pow ();
  11259. ;
  11260. return 0;
  11261. }
  11262. _ACEOF
  11263. if ac_fn_c_try_link "$LINENO"; then :
  11264. ac_cv_lib_m_pow=yes
  11265. else
  11266. ac_cv_lib_m_pow=no
  11267. fi
  11268. rm -f core conftest.err conftest.$ac_objext \
  11269. conftest$ac_exeext conftest.$ac_ext
  11270. LIBS=$ac_check_lib_save_LIBS
  11271. fi
  11272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  11273. $as_echo "$ac_cv_lib_m_pow" >&6; }
  11274. if test "x$ac_cv_lib_m_pow" = xyes; then :
  11275. cat >>confdefs.h <<_ACEOF
  11276. #define HAVE_LIBM 1
  11277. _ACEOF
  11278. LIBS="-lm $LIBS"
  11279. else
  11280. as_fn_error $? "cannot find pow" "$LINENO" 5
  11281. fi
  11282. fi
  11283. done
  11284. # Some later POSIX 1003.1 functions are required for test programs, failure here
  11285. # is soft (the corresponding test program is not built).
  11286. ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
  11287. if test "x$ac_cv_func_clock_gettime" = xyes; then :
  11288. else
  11289. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: not building timepng" >&5
  11290. $as_echo "$as_me: WARNING: not building timepng" >&2;}
  11291. fi
  11292. if test "$ac_cv_func_clock_gettime" = "yes"; then
  11293. HAVE_CLOCK_GETTIME_TRUE=
  11294. HAVE_CLOCK_GETTIME_FALSE='#'
  11295. else
  11296. HAVE_CLOCK_GETTIME_TRUE='#'
  11297. HAVE_CLOCK_GETTIME_FALSE=
  11298. fi
  11299. # Check whether --with-zlib-prefix was given.
  11300. if test "${with_zlib_prefix+set}" = set; then :
  11301. withval=$with_zlib_prefix; ZPREFIX=${withval}
  11302. else
  11303. ZPREFIX='z_'
  11304. fi
  11305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
  11306. $as_echo_n "checking for zlibVersion in -lz... " >&6; }
  11307. if ${ac_cv_lib_z_zlibVersion+:} false; then :
  11308. $as_echo_n "(cached) " >&6
  11309. else
  11310. ac_check_lib_save_LIBS=$LIBS
  11311. LIBS="-lz $LIBS"
  11312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11313. /* end confdefs.h. */
  11314. /* Override any GCC internal prototype to avoid an error.
  11315. Use char because int might match the return type of a GCC
  11316. builtin and then its argument prototype would still apply. */
  11317. #ifdef __cplusplus
  11318. extern "C"
  11319. #endif
  11320. char zlibVersion ();
  11321. int
  11322. main ()
  11323. {
  11324. return zlibVersion ();
  11325. ;
  11326. return 0;
  11327. }
  11328. _ACEOF
  11329. if ac_fn_c_try_link "$LINENO"; then :
  11330. ac_cv_lib_z_zlibVersion=yes
  11331. else
  11332. ac_cv_lib_z_zlibVersion=no
  11333. fi
  11334. rm -f core conftest.err conftest.$ac_objext \
  11335. conftest$ac_exeext conftest.$ac_ext
  11336. LIBS=$ac_check_lib_save_LIBS
  11337. fi
  11338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
  11339. $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
  11340. if test "x$ac_cv_lib_z_zlibVersion" = xyes; then :
  11341. cat >>confdefs.h <<_ACEOF
  11342. #define HAVE_LIBZ 1
  11343. _ACEOF
  11344. LIBS="-lz $LIBS"
  11345. else
  11346. as_ac_Lib=`$as_echo "ac_cv_lib_z_${ZPREFIX}zlibVersion" | $as_tr_sh`
  11347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ZPREFIX}zlibVersion in -lz" >&5
  11348. $as_echo_n "checking for ${ZPREFIX}zlibVersion in -lz... " >&6; }
  11349. if eval \${$as_ac_Lib+:} false; then :
  11350. $as_echo_n "(cached) " >&6
  11351. else
  11352. ac_check_lib_save_LIBS=$LIBS
  11353. LIBS="-lz $LIBS"
  11354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11355. /* end confdefs.h. */
  11356. /* Override any GCC internal prototype to avoid an error.
  11357. Use char because int might match the return type of a GCC
  11358. builtin and then its argument prototype would still apply. */
  11359. #ifdef __cplusplus
  11360. extern "C"
  11361. #endif
  11362. char ${ZPREFIX}zlibVersion ();
  11363. int
  11364. main ()
  11365. {
  11366. return ${ZPREFIX}zlibVersion ();
  11367. ;
  11368. return 0;
  11369. }
  11370. _ACEOF
  11371. if ac_fn_c_try_link "$LINENO"; then :
  11372. eval "$as_ac_Lib=yes"
  11373. else
  11374. eval "$as_ac_Lib=no"
  11375. fi
  11376. rm -f core conftest.err conftest.$ac_objext \
  11377. conftest$ac_exeext conftest.$ac_ext
  11378. LIBS=$ac_check_lib_save_LIBS
  11379. fi
  11380. eval ac_res=\$$as_ac_Lib
  11381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11382. $as_echo "$ac_res" >&6; }
  11383. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  11384. cat >>confdefs.h <<_ACEOF
  11385. #define HAVE_LIBZ 1
  11386. _ACEOF
  11387. LIBS="-lz $LIBS"
  11388. else
  11389. as_fn_error $? "zlib not installed" "$LINENO" 5
  11390. fi
  11391. fi
  11392. # The following is for pngvalid, to ensure it catches FP errors even on
  11393. # platforms that don't enable FP exceptions, the function appears in the math
  11394. # library (typically), it's not an error if it is not found.
  11395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5
  11396. $as_echo_n "checking for feenableexcept in -lm... " >&6; }
  11397. if ${ac_cv_lib_m_feenableexcept+:} false; then :
  11398. $as_echo_n "(cached) " >&6
  11399. else
  11400. ac_check_lib_save_LIBS=$LIBS
  11401. LIBS="-lm $LIBS"
  11402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11403. /* end confdefs.h. */
  11404. /* Override any GCC internal prototype to avoid an error.
  11405. Use char because int might match the return type of a GCC
  11406. builtin and then its argument prototype would still apply. */
  11407. #ifdef __cplusplus
  11408. extern "C"
  11409. #endif
  11410. char feenableexcept ();
  11411. int
  11412. main ()
  11413. {
  11414. return feenableexcept ();
  11415. ;
  11416. return 0;
  11417. }
  11418. _ACEOF
  11419. if ac_fn_c_try_link "$LINENO"; then :
  11420. ac_cv_lib_m_feenableexcept=yes
  11421. else
  11422. ac_cv_lib_m_feenableexcept=no
  11423. fi
  11424. rm -f core conftest.err conftest.$ac_objext \
  11425. conftest$ac_exeext conftest.$ac_ext
  11426. LIBS=$ac_check_lib_save_LIBS
  11427. fi
  11428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5
  11429. $as_echo "$ac_cv_lib_m_feenableexcept" >&6; }
  11430. if test "x$ac_cv_lib_m_feenableexcept" = xyes; then :
  11431. cat >>confdefs.h <<_ACEOF
  11432. #define HAVE_LIBM 1
  11433. _ACEOF
  11434. LIBS="-lm $LIBS"
  11435. fi
  11436. for ac_func in feenableexcept
  11437. do :
  11438. ac_fn_c_check_func "$LINENO" "feenableexcept" "ac_cv_func_feenableexcept"
  11439. if test "x$ac_cv_func_feenableexcept" = xyes; then :
  11440. cat >>confdefs.h <<_ACEOF
  11441. #define HAVE_FEENABLEEXCEPT 1
  11442. _ACEOF
  11443. fi
  11444. done
  11445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if using Solaris linker" >&5
  11446. $as_echo_n "checking if using Solaris linker... " >&6; }
  11447. SLD=`$LD --version 2>&1 | grep Solaris`
  11448. if test "$SLD"; then
  11449. have_solaris_ld=yes
  11450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11451. $as_echo "yes" >&6; }
  11452. else
  11453. have_solaris_ld=no
  11454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11455. $as_echo "no" >&6; }
  11456. fi
  11457. if test "$have_solaris_ld" = "yes"; then
  11458. HAVE_SOLARIS_LD_TRUE=
  11459. HAVE_SOLARIS_LD_FALSE='#'
  11460. else
  11461. HAVE_SOLARIS_LD_TRUE='#'
  11462. HAVE_SOLARIS_LD_FALSE=
  11463. fi
  11464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
  11465. $as_echo_n "checking if libraries can be versioned... " >&6; }
  11466. # Special case for PE/COFF platforms: ld reports
  11467. # support for version-script, but doesn't actually
  11468. # DO anything with it.
  11469. case $host in
  11470. *cygwin* | *mingw32* | *interix* )
  11471. have_ld_version_script=no
  11472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11473. $as_echo "no" >&6; }
  11474. ;;
  11475. * )
  11476. if test "$have_solaris_ld" = "yes"; then
  11477. GLD=`$LD --help < /dev/null 2>&1 | grep 'M mapfile'`
  11478. else
  11479. GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
  11480. fi
  11481. if test "$GLD"; then
  11482. have_ld_version_script=yes
  11483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11484. $as_echo "yes" >&6; }
  11485. else
  11486. have_ld_version_script=no
  11487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11488. $as_echo "no" >&6; }
  11489. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** You have not enabled versioned symbols." >&5
  11490. $as_echo "$as_me: WARNING: *** You have not enabled versioned symbols." >&2;}
  11491. fi
  11492. ;;
  11493. esac
  11494. if test "$have_ld_version_script" = "yes"; then
  11495. HAVE_LD_VERSION_SCRIPT_TRUE=
  11496. HAVE_LD_VERSION_SCRIPT_FALSE='#'
  11497. else
  11498. HAVE_LD_VERSION_SCRIPT_TRUE='#'
  11499. HAVE_LD_VERSION_SCRIPT_FALSE=
  11500. fi
  11501. if test "$have_ld_version_script" = "yes"; then
  11502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symbol prefix" >&5
  11503. $as_echo_n "checking for symbol prefix... " >&6; }
  11504. SYMBOL_PREFIX=`echo "PREFIX=__USER_LABEL_PREFIX__" \
  11505. | ${CPP-${CC-gcc} -E} - 2>&1 \
  11506. | ${EGREP-grep} "^PREFIX=" \
  11507. | ${SED-sed} -e "s:^PREFIX=::" -e "s:__USER_LABEL_PREFIX__::"`
  11508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMBOL_PREFIX" >&5
  11509. $as_echo "$SYMBOL_PREFIX" >&6; }
  11510. fi
  11511. # Substitutions for .in files
  11512. # Additional arguments (and substitutions)
  11513. # Allow the pkg-config directory to be set
  11514. # Check whether --with-pkgconfigdir was given.
  11515. if test "${with_pkgconfigdir+set}" = set; then :
  11516. withval=$with_pkgconfigdir; pkgconfigdir=${withval}
  11517. else
  11518. pkgconfigdir='${libdir}/pkgconfig'
  11519. fi
  11520. { $as_echo "$as_me:${as_lineno-$LINENO}: pkgconfig directory is ${pkgconfigdir}" >&5
  11521. $as_echo "$as_me: pkgconfig directory is ${pkgconfigdir}" >&6;}
  11522. # Make the *-config binary config scripts optional
  11523. # Check whether --with-binconfigs was given.
  11524. if test "${with_binconfigs+set}" = set; then :
  11525. withval=$with_binconfigs; if test "${withval}" = no; then
  11526. binconfigs=
  11527. { $as_echo "$as_me:${as_lineno-$LINENO}: libpng-config scripts will not be built" >&5
  11528. $as_echo "$as_me: libpng-config scripts will not be built" >&6;}
  11529. else
  11530. binconfigs='${binconfigs}'
  11531. fi
  11532. else
  11533. binconfigs='${binconfigs}'
  11534. fi
  11535. # Support for prefixes to the API function names; this will generate defines
  11536. # at the start of the build to rename exported library functions
  11537. # Check whether --with-libpng-prefix was given.
  11538. if test "${with_libpng_prefix+set}" = set; then :
  11539. withval=$with_libpng_prefix; if test "${withval:-no}" != "no"; then
  11540. PNG_PREFIX=${withval}
  11541. fi
  11542. fi
  11543. if test "${with_libpng_prefix:-no}" != "no"; then
  11544. DO_PNG_PREFIX_TRUE=
  11545. DO_PNG_PREFIX_FALSE='#'
  11546. else
  11547. DO_PNG_PREFIX_TRUE='#'
  11548. DO_PNG_PREFIX_FALSE=
  11549. fi
  11550. # Control over what links are made for installed files. Versioned files are
  11551. # always installed, when the following options are turned on corresponding
  11552. # unversioned links are also created (normally as symbolic links):
  11553. # Check whether --enable-unversioned-links was given.
  11554. if test "${enable_unversioned_links+set}" = set; then :
  11555. enableval=$enable_unversioned_links;
  11556. fi
  11557. # The AM_CONDITIONAL test is written so that the default is enabled;
  11558. # --disable-unversioned-links must be given to turn the option off.
  11559. if test "$enable_unversioned_links" != "no"; then
  11560. DO_INSTALL_LINKS_TRUE=
  11561. DO_INSTALL_LINKS_FALSE='#'
  11562. else
  11563. DO_INSTALL_LINKS_TRUE='#'
  11564. DO_INSTALL_LINKS_FALSE=
  11565. fi
  11566. # Check whether --enable-unversioned-libpng-pc was given.
  11567. if test "${enable_unversioned_libpng_pc+set}" = set; then :
  11568. enableval=$enable_unversioned_libpng_pc;
  11569. fi
  11570. if test "$enable_unversioned_libpng_pc" != "no"; then
  11571. DO_INSTALL_LIBPNG_PC_TRUE=
  11572. DO_INSTALL_LIBPNG_PC_FALSE='#'
  11573. else
  11574. DO_INSTALL_LIBPNG_PC_TRUE='#'
  11575. DO_INSTALL_LIBPNG_PC_FALSE=
  11576. fi
  11577. # Check whether --enable-unversioned-libpng-config was given.
  11578. if test "${enable_unversioned_libpng_config+set}" = set; then :
  11579. enableval=$enable_unversioned_libpng_config;
  11580. fi
  11581. if test "$enable_unversioned_libpng_config" != "no"; then
  11582. DO_INSTALL_LIBPNG_CONFIG_TRUE=
  11583. DO_INSTALL_LIBPNG_CONFIG_FALSE='#'
  11584. else
  11585. DO_INSTALL_LIBPNG_CONFIG_TRUE='#'
  11586. DO_INSTALL_LIBPNG_CONFIG_FALSE=
  11587. fi
  11588. # HOST SPECIFIC OPTIONS
  11589. # =====================
  11590. #
  11591. # DEFAULT
  11592. # =======
  11593. #
  11594. # Check whether --enable-hardware-optimizations was given.
  11595. if test "${enable_hardware_optimizations+set}" = set; then :
  11596. enableval=$enable_hardware_optimizations; case "$enableval" in
  11597. no|off)
  11598. # disable hardware optimization on all systems:
  11599. enable_arm_neon=no
  11600. $as_echo "#define PNG_ARM_NEON_OPT 0" >>confdefs.h
  11601. enable_mips_msa=no
  11602. $as_echo "#define PNG_MIPS_MSA_OPT 0" >>confdefs.h
  11603. enable_powerpc_vsx=no
  11604. $as_echo "#define PNG_POWERPC_VSX_OPT 0" >>confdefs.h
  11605. enable_intel_sse=no
  11606. $as_echo "#define PNG_INTEL_SSE_OPT 0" >>confdefs.h
  11607. ;;
  11608. *)
  11609. # allow enabling hardware optimization on any system:
  11610. case "$host_cpu" in
  11611. arm*|aarch64*)
  11612. enable_arm_neon=yes
  11613. $as_echo "#define PNG_ARM_NEON_OPT 0" >>confdefs.h
  11614. ;;
  11615. mipsel*|mips64el*)
  11616. enable_mips_msa=yes
  11617. $as_echo "#define PNG_MIPS_MSA_OPT 0" >>confdefs.h
  11618. ;;
  11619. i?86|x86_64)
  11620. enable_intel_sse=yes
  11621. $as_echo "#define PNG_INTEL_SSE_OPT 1" >>confdefs.h
  11622. ;;
  11623. powerpc*|ppc64*)
  11624. enable_powerpc_vsx=yes
  11625. $as_echo "#define PNG_POWERPC_VSX_OPT 2" >>confdefs.h
  11626. ;;
  11627. esac
  11628. ;;
  11629. esac
  11630. fi
  11631. # ARM
  11632. # ===
  11633. #
  11634. # ARM NEON (SIMD) support.
  11635. # Check whether --enable-arm-neon was given.
  11636. if test "${enable_arm_neon+set}" = set; then :
  11637. enableval=$enable_arm_neon; case "$enableval" in
  11638. no|off)
  11639. # disable the default enabling on __ARM_NEON__ systems:
  11640. $as_echo "#define PNG_ARM_NEON_OPT 0" >>confdefs.h
  11641. # Prevent inclusion of the assembler files below:
  11642. enable_arm_neon=no;;
  11643. check)
  11644. $as_echo "#define PNG_ARM_NEON_CHECK_SUPPORTED /**/" >>confdefs.h
  11645. ;;
  11646. api)
  11647. $as_echo "#define PNG_ARM_NEON_API_SUPPORTED /**/" >>confdefs.h
  11648. ;;
  11649. yes|on)
  11650. $as_echo "#define PNG_ARM_NEON_OPT 2" >>confdefs.h
  11651. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-arm-neon: please specify 'check' or 'api', if
  11652. you want the optimizations unconditionally pass -mfpu=neon
  11653. to the compiler." >&5
  11654. $as_echo "$as_me: WARNING: --enable-arm-neon: please specify 'check' or 'api', if
  11655. you want the optimizations unconditionally pass -mfpu=neon
  11656. to the compiler." >&2;};;
  11657. *)
  11658. as_fn_error $? "--enable-arm-neon=${enable_arm_neon}: invalid value" "$LINENO" 5
  11659. esac
  11660. fi
  11661. # Add ARM specific files to all builds where the host_cpu is arm ('arm*') or
  11662. # where ARM optimizations were explicitly requested (this allows a fallback if a
  11663. # future host CPU does not match 'arm*')
  11664. if test "$enable_arm_neon" != 'no' &&
  11665. case "$host_cpu" in
  11666. arm*|aarch64*) :;;
  11667. *) test "$enable_arm_neon" != '';;
  11668. esac; then
  11669. PNG_ARM_NEON_TRUE=
  11670. PNG_ARM_NEON_FALSE='#'
  11671. else
  11672. PNG_ARM_NEON_TRUE='#'
  11673. PNG_ARM_NEON_FALSE=
  11674. fi
  11675. # MIPS
  11676. # ===
  11677. #
  11678. # MIPS MSA (SIMD) support.
  11679. # Check whether --enable-mips-msa was given.
  11680. if test "${enable_mips_msa+set}" = set; then :
  11681. enableval=$enable_mips_msa; case "$enableval" in
  11682. no|off)
  11683. # disable the default enabling on __mips_msa systems:
  11684. $as_echo "#define PNG_MIPS_MSA_OPT 0" >>confdefs.h
  11685. # Prevent inclusion of the assembler files below:
  11686. enable_mips_msa=no;;
  11687. check)
  11688. $as_echo "#define PNG_MIPS_MSA_CHECK_SUPPORTED /**/" >>confdefs.h
  11689. ;;
  11690. api)
  11691. $as_echo "#define PNG_MIPS_MSA_API_SUPPORTED /**/" >>confdefs.h
  11692. ;;
  11693. yes|on)
  11694. $as_echo "#define PNG_MIPS_MSA_OPT 2" >>confdefs.h
  11695. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-mips-msa: please specify 'check' or 'api', if
  11696. you want the optimizations unconditionally pass '-mmsa -mfp64'
  11697. to the compiler." >&5
  11698. $as_echo "$as_me: WARNING: --enable-mips-msa: please specify 'check' or 'api', if
  11699. you want the optimizations unconditionally pass '-mmsa -mfp64'
  11700. to the compiler." >&2;};;
  11701. *)
  11702. as_fn_error $? "--enable-mips-msa=${enable_mips_msa}: invalid value" "$LINENO" 5
  11703. esac
  11704. fi
  11705. # Add MIPS specific files to all builds where the host_cpu is mips ('mips*') or
  11706. # where MIPS optimizations were explicitly requested (this allows a fallback if a
  11707. # future host CPU does not match 'mips*')
  11708. if test "$enable_mips_msa" != 'no' &&
  11709. case "$host_cpu" in
  11710. mipsel*|mips64el*) :;;
  11711. esac; then
  11712. PNG_MIPS_MSA_TRUE=
  11713. PNG_MIPS_MSA_FALSE='#'
  11714. else
  11715. PNG_MIPS_MSA_TRUE='#'
  11716. PNG_MIPS_MSA_FALSE=
  11717. fi
  11718. # INTEL
  11719. # =====
  11720. #
  11721. # INTEL SSE (SIMD) support.
  11722. # Check whether --enable-intel-sse was given.
  11723. if test "${enable_intel_sse+set}" = set; then :
  11724. enableval=$enable_intel_sse; case "$enableval" in
  11725. no|off)
  11726. # disable the default enabling:
  11727. $as_echo "#define PNG_INTEL_SSE_OPT 0" >>confdefs.h
  11728. # Prevent inclusion of the assembler files below:
  11729. enable_intel_sse=no;;
  11730. yes|on)
  11731. $as_echo "#define PNG_INTEL_SSE_OPT 1" >>confdefs.h
  11732. ;;
  11733. *)
  11734. as_fn_error $? "--enable-intel-sse=${enable_intel_sse}: invalid value" "$LINENO" 5
  11735. esac
  11736. fi
  11737. # Add Intel specific files to all builds where the host_cpu is Intel ('x86*')
  11738. # or where Intel optimizations were explicitly requested (this allows a
  11739. # fallback if a future host CPU does not match 'x86*')
  11740. if test "$enable_intel_sse" != 'no' &&
  11741. case "$host_cpu" in
  11742. i?86|x86_64) :;;
  11743. *) test "$enable_intel_sse" != '';;
  11744. esac; then
  11745. PNG_INTEL_SSE_TRUE=
  11746. PNG_INTEL_SSE_FALSE='#'
  11747. else
  11748. PNG_INTEL_SSE_TRUE='#'
  11749. PNG_INTEL_SSE_FALSE=
  11750. fi
  11751. # PowerPC
  11752. # ===
  11753. #
  11754. # PowerPC VSX (SIMD) support.
  11755. # Check whether --enable-powerpc-vsx was given.
  11756. if test "${enable_powerpc_vsx+set}" = set; then :
  11757. enableval=$enable_powerpc_vsx; case "$enableval" in
  11758. no|off)
  11759. # disable the default enabling on __ppc64__ systems:
  11760. $as_echo "#define PNG_POWERPC_VSX_OPT 0" >>confdefs.h
  11761. # Prevent inclusion of the platform specific files below:
  11762. enable_powerpc_vsx=no;;
  11763. check)
  11764. $as_echo "#define PNG_POWERPC_VSX_CHECK_SUPPORTED /**/" >>confdefs.h
  11765. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-powerpc-vsx Please check contrib/powerpc/README file
  11766. for the list of supported OSes." >&5
  11767. $as_echo "$as_me: WARNING: --enable-powerpc-vsx Please check contrib/powerpc/README file
  11768. for the list of supported OSes." >&2;};;
  11769. api)
  11770. $as_echo "#define PNG_POWERPC_VSX_API_SUPPORTED /**/" >>confdefs.h
  11771. ;;
  11772. yes|on)
  11773. $as_echo "#define PNG_POWERPC_VSX_OPT 2" >>confdefs.h
  11774. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-powerpc-vsx: please specify 'check' or 'api', if
  11775. you want the optimizations unconditionally pass '-maltivec -mvsx'
  11776. or '-mcpu=power8'to the compiler." >&5
  11777. $as_echo "$as_me: WARNING: --enable-powerpc-vsx: please specify 'check' or 'api', if
  11778. you want the optimizations unconditionally pass '-maltivec -mvsx'
  11779. or '-mcpu=power8'to the compiler." >&2;};;
  11780. *)
  11781. as_fn_error $? "--enable-powerpc-vsx=${enable_powerpc_vsx}: invalid value" "$LINENO" 5
  11782. esac
  11783. fi
  11784. # Add PowerPC specific files to all builds where the host_cpu is powerpc('powerpc*') or
  11785. # where POWERPC optimizations were explicitly requested (this allows a fallback if a
  11786. # future host CPU does not match 'powerpc*')
  11787. if test "$enable_powerpc_vsx" != 'no' &&
  11788. case "$host_cpu" in
  11789. powerpc*|ppc64*) :;;
  11790. esac; then
  11791. PNG_POWERPC_VSX_TRUE=
  11792. PNG_POWERPC_VSX_FALSE='#'
  11793. else
  11794. PNG_POWERPC_VSX_TRUE='#'
  11795. PNG_POWERPC_VSX_FALSE=
  11796. fi
  11797. { $as_echo "$as_me:${as_lineno-$LINENO}: Extra options for compiler: $PNG_COPTS" >&5
  11798. $as_echo "$as_me: Extra options for compiler: $PNG_COPTS" >&6;}
  11799. # Config files, substituting as above
  11800. ac_config_files="$ac_config_files Makefile libpng.pc:libpng.pc.in"
  11801. ac_config_files="$ac_config_files libpng-config:libpng-config.in"
  11802. cat >confcache <<\_ACEOF
  11803. # This file is a shell script that caches the results of configure
  11804. # tests run on this system so they can be shared between configure
  11805. # scripts and configure runs, see configure's option --config-cache.
  11806. # It is not useful on other systems. If it contains results you don't
  11807. # want to keep, you may remove or edit it.
  11808. #
  11809. # config.status only pays attention to the cache file if you give it
  11810. # the --recheck option to rerun configure.
  11811. #
  11812. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11813. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11814. # following values.
  11815. _ACEOF
  11816. # The following way of writing the cache mishandles newlines in values,
  11817. # but we know of no workaround that is simple, portable, and efficient.
  11818. # So, we kill variables containing newlines.
  11819. # Ultrix sh set writes to stderr and can't be redirected directly,
  11820. # and sets the high bit in the cache file unless we assign to the vars.
  11821. (
  11822. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11823. eval ac_val=\$$ac_var
  11824. case $ac_val in #(
  11825. *${as_nl}*)
  11826. case $ac_var in #(
  11827. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  11828. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  11829. esac
  11830. case $ac_var in #(
  11831. _ | IFS | as_nl) ;; #(
  11832. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  11833. *) { eval $ac_var=; unset $ac_var;} ;;
  11834. esac ;;
  11835. esac
  11836. done
  11837. (set) 2>&1 |
  11838. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11839. *${as_nl}ac_space=\ *)
  11840. # `set' does not quote correctly, so add quotes: double-quote
  11841. # substitution turns \\\\ into \\, and sed turns \\ into \.
  11842. sed -n \
  11843. "s/'/'\\\\''/g;
  11844. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11845. ;; #(
  11846. *)
  11847. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11848. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11849. ;;
  11850. esac |
  11851. sort
  11852. ) |
  11853. sed '
  11854. /^ac_cv_env_/b end
  11855. t clear
  11856. :clear
  11857. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11858. t end
  11859. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11860. :end' >>confcache
  11861. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11862. if test -w "$cache_file"; then
  11863. if test "x$cache_file" != "x/dev/null"; then
  11864. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  11865. $as_echo "$as_me: updating cache $cache_file" >&6;}
  11866. if test ! -f "$cache_file" || test -h "$cache_file"; then
  11867. cat confcache >"$cache_file"
  11868. else
  11869. case $cache_file in #(
  11870. */* | ?:*)
  11871. mv -f confcache "$cache_file"$$ &&
  11872. mv -f "$cache_file"$$ "$cache_file" ;; #(
  11873. *)
  11874. mv -f confcache "$cache_file" ;;
  11875. esac
  11876. fi
  11877. fi
  11878. else
  11879. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  11880. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11881. fi
  11882. fi
  11883. rm -f confcache
  11884. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11885. # Let make expand exec_prefix.
  11886. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11887. DEFS=-DHAVE_CONFIG_H
  11888. ac_libobjs=
  11889. ac_ltlibobjs=
  11890. U=
  11891. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  11892. # 1. Remove the extension, and $U if already installed.
  11893. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  11894. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  11895. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  11896. # will be set to the directory where LIBOBJS objects are built.
  11897. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  11898. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  11899. done
  11900. LIBOBJS=$ac_libobjs
  11901. LTLIBOBJS=$ac_ltlibobjs
  11902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  11903. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  11904. if test -n "$am_sleep_pid"; then
  11905. # Hide warnings about reused PIDs.
  11906. wait $am_sleep_pid 2>/dev/null
  11907. fi
  11908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  11909. $as_echo "done" >&6; }
  11910. if test -n "$EXEEXT"; then
  11911. am__EXEEXT_TRUE=
  11912. am__EXEEXT_FALSE='#'
  11913. else
  11914. am__EXEEXT_TRUE='#'
  11915. am__EXEEXT_FALSE=
  11916. fi
  11917. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  11918. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  11919. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11920. fi
  11921. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  11922. as_fn_error $? "conditional \"AMDEP\" was never defined.
  11923. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11924. fi
  11925. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  11926. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  11927. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11928. fi
  11929. if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
  11930. as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
  11931. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11932. fi
  11933. if test -z "${HAVE_CLOCK_GETTIME_TRUE}" && test -z "${HAVE_CLOCK_GETTIME_FALSE}"; then
  11934. as_fn_error $? "conditional \"HAVE_CLOCK_GETTIME\" was never defined.
  11935. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11936. fi
  11937. if test -z "${HAVE_SOLARIS_LD_TRUE}" && test -z "${HAVE_SOLARIS_LD_FALSE}"; then
  11938. as_fn_error $? "conditional \"HAVE_SOLARIS_LD\" was never defined.
  11939. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11940. fi
  11941. if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
  11942. as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
  11943. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11944. fi
  11945. if test -z "${DO_PNG_PREFIX_TRUE}" && test -z "${DO_PNG_PREFIX_FALSE}"; then
  11946. as_fn_error $? "conditional \"DO_PNG_PREFIX\" was never defined.
  11947. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11948. fi
  11949. if test -z "${DO_INSTALL_LINKS_TRUE}" && test -z "${DO_INSTALL_LINKS_FALSE}"; then
  11950. as_fn_error $? "conditional \"DO_INSTALL_LINKS\" was never defined.
  11951. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11952. fi
  11953. if test -z "${DO_INSTALL_LIBPNG_PC_TRUE}" && test -z "${DO_INSTALL_LIBPNG_PC_FALSE}"; then
  11954. as_fn_error $? "conditional \"DO_INSTALL_LIBPNG_PC\" was never defined.
  11955. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11956. fi
  11957. if test -z "${DO_INSTALL_LIBPNG_CONFIG_TRUE}" && test -z "${DO_INSTALL_LIBPNG_CONFIG_FALSE}"; then
  11958. as_fn_error $? "conditional \"DO_INSTALL_LIBPNG_CONFIG\" was never defined.
  11959. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11960. fi
  11961. if test -z "${PNG_ARM_NEON_TRUE}" && test -z "${PNG_ARM_NEON_FALSE}"; then
  11962. as_fn_error $? "conditional \"PNG_ARM_NEON\" was never defined.
  11963. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11964. fi
  11965. if test -z "${PNG_MIPS_MSA_TRUE}" && test -z "${PNG_MIPS_MSA_FALSE}"; then
  11966. as_fn_error $? "conditional \"PNG_MIPS_MSA\" was never defined.
  11967. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11968. fi
  11969. if test -z "${PNG_INTEL_SSE_TRUE}" && test -z "${PNG_INTEL_SSE_FALSE}"; then
  11970. as_fn_error $? "conditional \"PNG_INTEL_SSE\" was never defined.
  11971. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11972. fi
  11973. if test -z "${PNG_POWERPC_VSX_TRUE}" && test -z "${PNG_POWERPC_VSX_FALSE}"; then
  11974. as_fn_error $? "conditional \"PNG_POWERPC_VSX\" was never defined.
  11975. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11976. fi
  11977. : "${CONFIG_STATUS=./config.status}"
  11978. ac_write_fail=0
  11979. ac_clean_files_save=$ac_clean_files
  11980. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  11981. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  11982. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11983. as_write_fail=0
  11984. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  11985. #! $SHELL
  11986. # Generated by $as_me.
  11987. # Run this file to recreate the current configuration.
  11988. # Compiler output produced by configure, useful for debugging
  11989. # configure, is in config.log if it exists.
  11990. debug=false
  11991. ac_cs_recheck=false
  11992. ac_cs_silent=false
  11993. SHELL=\${CONFIG_SHELL-$SHELL}
  11994. export SHELL
  11995. _ASEOF
  11996. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  11997. ## -------------------- ##
  11998. ## M4sh Initialization. ##
  11999. ## -------------------- ##
  12000. # Be more Bourne compatible
  12001. DUALCASE=1; export DUALCASE # for MKS sh
  12002. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  12003. emulate sh
  12004. NULLCMD=:
  12005. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  12006. # is contrary to our usage. Disable this feature.
  12007. alias -g '${1+"$@"}'='"$@"'
  12008. setopt NO_GLOB_SUBST
  12009. else
  12010. case `(set -o) 2>/dev/null` in #(
  12011. *posix*) :
  12012. set -o posix ;; #(
  12013. *) :
  12014. ;;
  12015. esac
  12016. fi
  12017. as_nl='
  12018. '
  12019. export as_nl
  12020. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  12021. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  12022. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  12023. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  12024. # Prefer a ksh shell builtin over an external printf program on Solaris,
  12025. # but without wasting forks for bash or zsh.
  12026. if test -z "$BASH_VERSION$ZSH_VERSION" \
  12027. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  12028. as_echo='print -r --'
  12029. as_echo_n='print -rn --'
  12030. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  12031. as_echo='printf %s\n'
  12032. as_echo_n='printf %s'
  12033. else
  12034. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  12035. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  12036. as_echo_n='/usr/ucb/echo -n'
  12037. else
  12038. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  12039. as_echo_n_body='eval
  12040. arg=$1;
  12041. case $arg in #(
  12042. *"$as_nl"*)
  12043. expr "X$arg" : "X\\(.*\\)$as_nl";
  12044. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  12045. esac;
  12046. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  12047. '
  12048. export as_echo_n_body
  12049. as_echo_n='sh -c $as_echo_n_body as_echo'
  12050. fi
  12051. export as_echo_body
  12052. as_echo='sh -c $as_echo_body as_echo'
  12053. fi
  12054. # The user is always right.
  12055. if test "${PATH_SEPARATOR+set}" != set; then
  12056. PATH_SEPARATOR=:
  12057. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  12058. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  12059. PATH_SEPARATOR=';'
  12060. }
  12061. fi
  12062. # IFS
  12063. # We need space, tab and new line, in precisely that order. Quoting is
  12064. # there to prevent editors from complaining about space-tab.
  12065. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  12066. # splitting by setting IFS to empty value.)
  12067. IFS=" "" $as_nl"
  12068. # Find who we are. Look in the path if we contain no directory separator.
  12069. as_myself=
  12070. case $0 in #((
  12071. *[\\/]* ) as_myself=$0 ;;
  12072. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12073. for as_dir in $PATH
  12074. do
  12075. IFS=$as_save_IFS
  12076. test -z "$as_dir" && as_dir=.
  12077. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12078. done
  12079. IFS=$as_save_IFS
  12080. ;;
  12081. esac
  12082. # We did not find ourselves, most probably we were run as `sh COMMAND'
  12083. # in which case we are not to be found in the path.
  12084. if test "x$as_myself" = x; then
  12085. as_myself=$0
  12086. fi
  12087. if test ! -f "$as_myself"; then
  12088. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  12089. exit 1
  12090. fi
  12091. # Unset variables that we do not need and which cause bugs (e.g. in
  12092. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  12093. # suppresses any "Segmentation fault" message there. '((' could
  12094. # trigger a bug in pdksh 5.2.14.
  12095. for as_var in BASH_ENV ENV MAIL MAILPATH
  12096. do eval test x\${$as_var+set} = xset \
  12097. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  12098. done
  12099. PS1='$ '
  12100. PS2='> '
  12101. PS4='+ '
  12102. # NLS nuisances.
  12103. LC_ALL=C
  12104. export LC_ALL
  12105. LANGUAGE=C
  12106. export LANGUAGE
  12107. # CDPATH.
  12108. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  12109. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  12110. # ----------------------------------------
  12111. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  12112. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  12113. # script with STATUS, using 1 if that was 0.
  12114. as_fn_error ()
  12115. {
  12116. as_status=$1; test $as_status -eq 0 && as_status=1
  12117. if test "$4"; then
  12118. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  12119. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  12120. fi
  12121. $as_echo "$as_me: error: $2" >&2
  12122. as_fn_exit $as_status
  12123. } # as_fn_error
  12124. # as_fn_set_status STATUS
  12125. # -----------------------
  12126. # Set $? to STATUS, without forking.
  12127. as_fn_set_status ()
  12128. {
  12129. return $1
  12130. } # as_fn_set_status
  12131. # as_fn_exit STATUS
  12132. # -----------------
  12133. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  12134. as_fn_exit ()
  12135. {
  12136. set +e
  12137. as_fn_set_status $1
  12138. exit $1
  12139. } # as_fn_exit
  12140. # as_fn_unset VAR
  12141. # ---------------
  12142. # Portably unset VAR.
  12143. as_fn_unset ()
  12144. {
  12145. { eval $1=; unset $1;}
  12146. }
  12147. as_unset=as_fn_unset
  12148. # as_fn_append VAR VALUE
  12149. # ----------------------
  12150. # Append the text in VALUE to the end of the definition contained in VAR. Take
  12151. # advantage of any shell optimizations that allow amortized linear growth over
  12152. # repeated appends, instead of the typical quadratic growth present in naive
  12153. # implementations.
  12154. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  12155. eval 'as_fn_append ()
  12156. {
  12157. eval $1+=\$2
  12158. }'
  12159. else
  12160. as_fn_append ()
  12161. {
  12162. eval $1=\$$1\$2
  12163. }
  12164. fi # as_fn_append
  12165. # as_fn_arith ARG...
  12166. # ------------------
  12167. # Perform arithmetic evaluation on the ARGs, and store the result in the
  12168. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  12169. # must be portable across $(()) and expr.
  12170. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  12171. eval 'as_fn_arith ()
  12172. {
  12173. as_val=$(( $* ))
  12174. }'
  12175. else
  12176. as_fn_arith ()
  12177. {
  12178. as_val=`expr "$@" || test $? -eq 1`
  12179. }
  12180. fi # as_fn_arith
  12181. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12182. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12183. as_expr=expr
  12184. else
  12185. as_expr=false
  12186. fi
  12187. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  12188. as_basename=basename
  12189. else
  12190. as_basename=false
  12191. fi
  12192. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  12193. as_dirname=dirname
  12194. else
  12195. as_dirname=false
  12196. fi
  12197. as_me=`$as_basename -- "$0" ||
  12198. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  12199. X"$0" : 'X\(//\)$' \| \
  12200. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  12201. $as_echo X/"$0" |
  12202. sed '/^.*\/\([^/][^/]*\)\/*$/{
  12203. s//\1/
  12204. q
  12205. }
  12206. /^X\/\(\/\/\)$/{
  12207. s//\1/
  12208. q
  12209. }
  12210. /^X\/\(\/\).*/{
  12211. s//\1/
  12212. q
  12213. }
  12214. s/.*/./; q'`
  12215. # Avoid depending upon Character Ranges.
  12216. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12217. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12218. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12219. as_cr_digits='0123456789'
  12220. as_cr_alnum=$as_cr_Letters$as_cr_digits
  12221. ECHO_C= ECHO_N= ECHO_T=
  12222. case `echo -n x` in #(((((
  12223. -n*)
  12224. case `echo 'xy\c'` in
  12225. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  12226. xy) ECHO_C='\c';;
  12227. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  12228. ECHO_T=' ';;
  12229. esac;;
  12230. *)
  12231. ECHO_N='-n';;
  12232. esac
  12233. rm -f conf$$ conf$$.exe conf$$.file
  12234. if test -d conf$$.dir; then
  12235. rm -f conf$$.dir/conf$$.file
  12236. else
  12237. rm -f conf$$.dir
  12238. mkdir conf$$.dir 2>/dev/null
  12239. fi
  12240. if (echo >conf$$.file) 2>/dev/null; then
  12241. if ln -s conf$$.file conf$$ 2>/dev/null; then
  12242. as_ln_s='ln -s'
  12243. # ... but there are two gotchas:
  12244. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  12245. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  12246. # In both cases, we have to default to `cp -pR'.
  12247. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  12248. as_ln_s='cp -pR'
  12249. elif ln conf$$.file conf$$ 2>/dev/null; then
  12250. as_ln_s=ln
  12251. else
  12252. as_ln_s='cp -pR'
  12253. fi
  12254. else
  12255. as_ln_s='cp -pR'
  12256. fi
  12257. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  12258. rmdir conf$$.dir 2>/dev/null
  12259. # as_fn_mkdir_p
  12260. # -------------
  12261. # Create "$as_dir" as a directory, including parents if necessary.
  12262. as_fn_mkdir_p ()
  12263. {
  12264. case $as_dir in #(
  12265. -*) as_dir=./$as_dir;;
  12266. esac
  12267. test -d "$as_dir" || eval $as_mkdir_p || {
  12268. as_dirs=
  12269. while :; do
  12270. case $as_dir in #(
  12271. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  12272. *) as_qdir=$as_dir;;
  12273. esac
  12274. as_dirs="'$as_qdir' $as_dirs"
  12275. as_dir=`$as_dirname -- "$as_dir" ||
  12276. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12277. X"$as_dir" : 'X\(//\)[^/]' \| \
  12278. X"$as_dir" : 'X\(//\)$' \| \
  12279. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  12280. $as_echo X"$as_dir" |
  12281. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12282. s//\1/
  12283. q
  12284. }
  12285. /^X\(\/\/\)[^/].*/{
  12286. s//\1/
  12287. q
  12288. }
  12289. /^X\(\/\/\)$/{
  12290. s//\1/
  12291. q
  12292. }
  12293. /^X\(\/\).*/{
  12294. s//\1/
  12295. q
  12296. }
  12297. s/.*/./; q'`
  12298. test -d "$as_dir" && break
  12299. done
  12300. test -z "$as_dirs" || eval "mkdir $as_dirs"
  12301. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  12302. } # as_fn_mkdir_p
  12303. if mkdir -p . 2>/dev/null; then
  12304. as_mkdir_p='mkdir -p "$as_dir"'
  12305. else
  12306. test -d ./-p && rmdir ./-p
  12307. as_mkdir_p=false
  12308. fi
  12309. # as_fn_executable_p FILE
  12310. # -----------------------
  12311. # Test if FILE is an executable regular file.
  12312. as_fn_executable_p ()
  12313. {
  12314. test -f "$1" && test -x "$1"
  12315. } # as_fn_executable_p
  12316. as_test_x='test -x'
  12317. as_executable_p=as_fn_executable_p
  12318. # Sed expression to map a string onto a valid CPP name.
  12319. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  12320. # Sed expression to map a string onto a valid variable name.
  12321. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  12322. exec 6>&1
  12323. ## ----------------------------------- ##
  12324. ## Main body of $CONFIG_STATUS script. ##
  12325. ## ----------------------------------- ##
  12326. _ASEOF
  12327. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  12328. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12329. # Save the log message, to keep $0 and so on meaningful, and to
  12330. # report actual input values of CONFIG_FILES etc. instead of their
  12331. # values after options handling.
  12332. ac_log="
  12333. This file was extended by libpng $as_me 1.6.37, which was
  12334. generated by GNU Autoconf 2.69. Invocation command line was
  12335. CONFIG_FILES = $CONFIG_FILES
  12336. CONFIG_HEADERS = $CONFIG_HEADERS
  12337. CONFIG_LINKS = $CONFIG_LINKS
  12338. CONFIG_COMMANDS = $CONFIG_COMMANDS
  12339. $ $0 $@
  12340. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  12341. "
  12342. _ACEOF
  12343. case $ac_config_files in *"
  12344. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  12345. esac
  12346. case $ac_config_headers in *"
  12347. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  12348. esac
  12349. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12350. # Files that config.status was made for.
  12351. config_files="$ac_config_files"
  12352. config_headers="$ac_config_headers"
  12353. config_commands="$ac_config_commands"
  12354. _ACEOF
  12355. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12356. ac_cs_usage="\
  12357. \`$as_me' instantiates files and other configuration actions
  12358. from templates according to the current configuration. Unless the files
  12359. and actions are specified as TAGs, all are instantiated by default.
  12360. Usage: $0 [OPTION]... [TAG]...
  12361. -h, --help print this help, then exit
  12362. -V, --version print version number and configuration settings, then exit
  12363. --config print configuration, then exit
  12364. -q, --quiet, --silent
  12365. do not print progress messages
  12366. -d, --debug don't remove temporary files
  12367. --recheck update $as_me by reconfiguring in the same conditions
  12368. --file=FILE[:TEMPLATE]
  12369. instantiate the configuration file FILE
  12370. --header=FILE[:TEMPLATE]
  12371. instantiate the configuration header FILE
  12372. Configuration files:
  12373. $config_files
  12374. Configuration headers:
  12375. $config_headers
  12376. Configuration commands:
  12377. $config_commands
  12378. Report bugs to <png-mng-implement@lists.sourceforge.net>."
  12379. _ACEOF
  12380. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12381. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  12382. ac_cs_version="\\
  12383. libpng config.status 1.6.37
  12384. configured by $0, generated by GNU Autoconf 2.69,
  12385. with options \\"\$ac_cs_config\\"
  12386. Copyright (C) 2012 Free Software Foundation, Inc.
  12387. This config.status script is free software; the Free Software Foundation
  12388. gives unlimited permission to copy, distribute and modify it."
  12389. ac_pwd='$ac_pwd'
  12390. srcdir='$srcdir'
  12391. INSTALL='$INSTALL'
  12392. MKDIR_P='$MKDIR_P'
  12393. AWK='$AWK'
  12394. test -n "\$AWK" || AWK=awk
  12395. _ACEOF
  12396. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12397. # The default lists apply if the user does not specify any file.
  12398. ac_need_defaults=:
  12399. while test $# != 0
  12400. do
  12401. case $1 in
  12402. --*=?*)
  12403. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12404. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  12405. ac_shift=:
  12406. ;;
  12407. --*=)
  12408. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12409. ac_optarg=
  12410. ac_shift=:
  12411. ;;
  12412. *)
  12413. ac_option=$1
  12414. ac_optarg=$2
  12415. ac_shift=shift
  12416. ;;
  12417. esac
  12418. case $ac_option in
  12419. # Handling of the options.
  12420. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  12421. ac_cs_recheck=: ;;
  12422. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  12423. $as_echo "$ac_cs_version"; exit ;;
  12424. --config | --confi | --conf | --con | --co | --c )
  12425. $as_echo "$ac_cs_config"; exit ;;
  12426. --debug | --debu | --deb | --de | --d | -d )
  12427. debug=: ;;
  12428. --file | --fil | --fi | --f )
  12429. $ac_shift
  12430. case $ac_optarg in
  12431. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12432. '') as_fn_error $? "missing file argument" ;;
  12433. esac
  12434. as_fn_append CONFIG_FILES " '$ac_optarg'"
  12435. ac_need_defaults=false;;
  12436. --header | --heade | --head | --hea )
  12437. $ac_shift
  12438. case $ac_optarg in
  12439. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12440. esac
  12441. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  12442. ac_need_defaults=false;;
  12443. --he | --h)
  12444. # Conflict between --help and --header
  12445. as_fn_error $? "ambiguous option: \`$1'
  12446. Try \`$0 --help' for more information.";;
  12447. --help | --hel | -h )
  12448. $as_echo "$ac_cs_usage"; exit ;;
  12449. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  12450. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  12451. ac_cs_silent=: ;;
  12452. # This is an error.
  12453. -*) as_fn_error $? "unrecognized option: \`$1'
  12454. Try \`$0 --help' for more information." ;;
  12455. *) as_fn_append ac_config_targets " $1"
  12456. ac_need_defaults=false ;;
  12457. esac
  12458. shift
  12459. done
  12460. ac_configure_extra_args=
  12461. if $ac_cs_silent; then
  12462. exec 6>/dev/null
  12463. ac_configure_extra_args="$ac_configure_extra_args --silent"
  12464. fi
  12465. _ACEOF
  12466. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12467. if \$ac_cs_recheck; then
  12468. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  12469. shift
  12470. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  12471. CONFIG_SHELL='$SHELL'
  12472. export CONFIG_SHELL
  12473. exec "\$@"
  12474. fi
  12475. _ACEOF
  12476. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12477. exec 5>>config.log
  12478. {
  12479. echo
  12480. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  12481. ## Running $as_me. ##
  12482. _ASBOX
  12483. $as_echo "$ac_log"
  12484. } >&5
  12485. _ACEOF
  12486. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12487. #
  12488. # INIT-COMMANDS
  12489. #
  12490. AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
  12491. # The HP-UX ksh and POSIX shell print the target directory to stdout
  12492. # if CDPATH is set.
  12493. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  12494. sed_quote_subst='$sed_quote_subst'
  12495. double_quote_subst='$double_quote_subst'
  12496. delay_variable_subst='$delay_variable_subst'
  12497. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  12498. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  12499. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  12500. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  12501. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  12502. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  12503. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  12504. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  12505. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  12506. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  12507. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  12508. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  12509. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  12510. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  12511. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  12512. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  12513. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  12514. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  12515. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  12516. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  12517. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  12518. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  12519. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  12520. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  12521. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  12522. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  12523. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  12524. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  12525. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  12526. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  12527. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  12528. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  12529. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  12530. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  12531. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  12532. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  12533. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  12534. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  12535. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  12536. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  12537. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  12538. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  12539. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  12540. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  12541. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  12542. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  12543. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  12544. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  12545. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  12546. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  12547. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  12548. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  12549. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  12550. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  12551. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  12552. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  12553. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  12554. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  12555. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  12556. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  12557. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  12558. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  12559. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  12560. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  12561. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  12562. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  12563. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  12564. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  12565. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  12566. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  12567. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  12568. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  12569. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  12570. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  12571. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  12572. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  12573. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  12574. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  12575. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  12576. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  12577. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  12578. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  12579. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  12580. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  12581. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  12582. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  12583. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  12584. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  12585. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  12586. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  12587. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  12588. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  12589. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  12590. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  12591. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  12592. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  12593. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  12594. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  12595. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  12596. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  12597. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  12598. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  12599. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  12600. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  12601. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  12602. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  12603. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  12604. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  12605. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  12606. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  12607. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  12608. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  12609. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  12610. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  12611. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  12612. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  12613. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  12614. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  12615. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  12616. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  12617. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  12618. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  12619. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  12620. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  12621. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  12622. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  12623. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  12624. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  12625. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  12626. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  12627. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  12628. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  12629. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  12630. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  12631. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  12632. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  12633. LTCC='$LTCC'
  12634. LTCFLAGS='$LTCFLAGS'
  12635. compiler='$compiler_DEFAULT'
  12636. # A function that is used when there is no print builtin or printf.
  12637. func_fallback_echo ()
  12638. {
  12639. eval 'cat <<_LTECHO_EOF
  12640. \$1
  12641. _LTECHO_EOF'
  12642. }
  12643. # Quote evaled strings.
  12644. for var in SED \
  12645. GREP \
  12646. EGREP \
  12647. FGREP \
  12648. SHELL \
  12649. ECHO \
  12650. LD \
  12651. AS \
  12652. DLLTOOL \
  12653. OBJDUMP \
  12654. PATH_SEPARATOR \
  12655. NM \
  12656. LN_S \
  12657. lt_SP2NL \
  12658. lt_NL2SP \
  12659. reload_flag \
  12660. deplibs_check_method \
  12661. file_magic_cmd \
  12662. file_magic_glob \
  12663. want_nocaseglob \
  12664. sharedlib_from_linklib_cmd \
  12665. AR \
  12666. AR_FLAGS \
  12667. archiver_list_spec \
  12668. STRIP \
  12669. RANLIB \
  12670. CC \
  12671. CFLAGS \
  12672. compiler \
  12673. lt_cv_sys_global_symbol_pipe \
  12674. lt_cv_sys_global_symbol_to_cdecl \
  12675. lt_cv_sys_global_symbol_to_import \
  12676. lt_cv_sys_global_symbol_to_c_name_address \
  12677. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  12678. lt_cv_nm_interface \
  12679. nm_file_list_spec \
  12680. lt_cv_truncate_bin \
  12681. lt_prog_compiler_no_builtin_flag \
  12682. lt_prog_compiler_pic \
  12683. lt_prog_compiler_wl \
  12684. lt_prog_compiler_static \
  12685. lt_cv_prog_compiler_c_o \
  12686. need_locks \
  12687. MANIFEST_TOOL \
  12688. DSYMUTIL \
  12689. NMEDIT \
  12690. LIPO \
  12691. OTOOL \
  12692. OTOOL64 \
  12693. shrext_cmds \
  12694. export_dynamic_flag_spec \
  12695. whole_archive_flag_spec \
  12696. compiler_needs_object \
  12697. with_gnu_ld \
  12698. allow_undefined_flag \
  12699. no_undefined_flag \
  12700. hardcode_libdir_flag_spec \
  12701. hardcode_libdir_separator \
  12702. exclude_expsyms \
  12703. include_expsyms \
  12704. file_list_spec \
  12705. variables_saved_for_relink \
  12706. libname_spec \
  12707. library_names_spec \
  12708. soname_spec \
  12709. install_override_mode \
  12710. finish_eval \
  12711. old_striplib \
  12712. striplib; do
  12713. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  12714. *[\\\\\\\`\\"\\\$]*)
  12715. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  12716. ;;
  12717. *)
  12718. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  12719. ;;
  12720. esac
  12721. done
  12722. # Double-quote double-evaled strings.
  12723. for var in reload_cmds \
  12724. old_postinstall_cmds \
  12725. old_postuninstall_cmds \
  12726. old_archive_cmds \
  12727. extract_expsyms_cmds \
  12728. old_archive_from_new_cmds \
  12729. old_archive_from_expsyms_cmds \
  12730. archive_cmds \
  12731. archive_expsym_cmds \
  12732. module_cmds \
  12733. module_expsym_cmds \
  12734. export_symbols_cmds \
  12735. prelink_cmds \
  12736. postlink_cmds \
  12737. postinstall_cmds \
  12738. postuninstall_cmds \
  12739. finish_cmds \
  12740. sys_lib_search_path_spec \
  12741. configure_time_dlsearch_path \
  12742. configure_time_lt_sys_library_path; do
  12743. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  12744. *[\\\\\\\`\\"\\\$]*)
  12745. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  12746. ;;
  12747. *)
  12748. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  12749. ;;
  12750. esac
  12751. done
  12752. ac_aux_dir='$ac_aux_dir'
  12753. # See if we are running on zsh, and set the options that allow our
  12754. # commands through without removal of \ escapes INIT.
  12755. if test -n "\${ZSH_VERSION+set}"; then
  12756. setopt NO_GLOB_SUBST
  12757. fi
  12758. PACKAGE='$PACKAGE'
  12759. VERSION='$VERSION'
  12760. RM='$RM'
  12761. ofile='$ofile'
  12762. _ACEOF
  12763. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12764. # Handling of arguments.
  12765. for ac_config_target in $ac_config_targets
  12766. do
  12767. case $ac_config_target in
  12768. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  12769. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  12770. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  12771. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  12772. "libpng.pc") CONFIG_FILES="$CONFIG_FILES libpng.pc:libpng.pc.in" ;;
  12773. "libpng-config") CONFIG_FILES="$CONFIG_FILES libpng-config:libpng-config.in" ;;
  12774. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  12775. esac
  12776. done
  12777. # If the user did not use the arguments to specify the items to instantiate,
  12778. # then the envvar interface is used. Set only those that are not.
  12779. # We use the long form for the default assignment because of an extremely
  12780. # bizarre bug on SunOS 4.1.3.
  12781. if $ac_need_defaults; then
  12782. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  12783. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  12784. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  12785. fi
  12786. # Have a temporary directory for convenience. Make it in the build tree
  12787. # simply because there is no reason against having it here, and in addition,
  12788. # creating and moving files from /tmp can sometimes cause problems.
  12789. # Hook for its removal unless debugging.
  12790. # Note that there is a small window in which the directory will not be cleaned:
  12791. # after its creation but before its name has been assigned to `$tmp'.
  12792. $debug ||
  12793. {
  12794. tmp= ac_tmp=
  12795. trap 'exit_status=$?
  12796. : "${ac_tmp:=$tmp}"
  12797. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  12798. ' 0
  12799. trap 'as_fn_exit 1' 1 2 13 15
  12800. }
  12801. # Create a (secure) tmp directory for tmp files.
  12802. {
  12803. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  12804. test -d "$tmp"
  12805. } ||
  12806. {
  12807. tmp=./conf$$-$RANDOM
  12808. (umask 077 && mkdir "$tmp")
  12809. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  12810. ac_tmp=$tmp
  12811. # Set up the scripts for CONFIG_FILES section.
  12812. # No need to generate them if there are no CONFIG_FILES.
  12813. # This happens for instance with `./config.status config.h'.
  12814. if test -n "$CONFIG_FILES"; then
  12815. ac_cr=`echo X | tr X '\015'`
  12816. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  12817. # But we know of no other shell where ac_cr would be empty at this
  12818. # point, so we can use a bashism as a fallback.
  12819. if test "x$ac_cr" = x; then
  12820. eval ac_cr=\$\'\\r\'
  12821. fi
  12822. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  12823. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  12824. ac_cs_awk_cr='\\r'
  12825. else
  12826. ac_cs_awk_cr=$ac_cr
  12827. fi
  12828. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  12829. _ACEOF
  12830. {
  12831. echo "cat >conf$$subs.awk <<_ACEOF" &&
  12832. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  12833. echo "_ACEOF"
  12834. } >conf$$subs.sh ||
  12835. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12836. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  12837. ac_delim='%!_!# '
  12838. for ac_last_try in false false false false false :; do
  12839. . ./conf$$subs.sh ||
  12840. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12841. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  12842. if test $ac_delim_n = $ac_delim_num; then
  12843. break
  12844. elif $ac_last_try; then
  12845. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12846. else
  12847. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12848. fi
  12849. done
  12850. rm -f conf$$subs.sh
  12851. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12852. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  12853. _ACEOF
  12854. sed -n '
  12855. h
  12856. s/^/S["/; s/!.*/"]=/
  12857. p
  12858. g
  12859. s/^[^!]*!//
  12860. :repl
  12861. t repl
  12862. s/'"$ac_delim"'$//
  12863. t delim
  12864. :nl
  12865. h
  12866. s/\(.\{148\}\)..*/\1/
  12867. t more1
  12868. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  12869. p
  12870. n
  12871. b repl
  12872. :more1
  12873. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12874. p
  12875. g
  12876. s/.\{148\}//
  12877. t nl
  12878. :delim
  12879. h
  12880. s/\(.\{148\}\)..*/\1/
  12881. t more2
  12882. s/["\\]/\\&/g; s/^/"/; s/$/"/
  12883. p
  12884. b
  12885. :more2
  12886. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12887. p
  12888. g
  12889. s/.\{148\}//
  12890. t delim
  12891. ' <conf$$subs.awk | sed '
  12892. /^[^""]/{
  12893. N
  12894. s/\n//
  12895. }
  12896. ' >>$CONFIG_STATUS || ac_write_fail=1
  12897. rm -f conf$$subs.awk
  12898. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12899. _ACAWK
  12900. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  12901. for (key in S) S_is_set[key] = 1
  12902. FS = ""
  12903. }
  12904. {
  12905. line = $ 0
  12906. nfields = split(line, field, "@")
  12907. substed = 0
  12908. len = length(field[1])
  12909. for (i = 2; i < nfields; i++) {
  12910. key = field[i]
  12911. keylen = length(key)
  12912. if (S_is_set[key]) {
  12913. value = S[key]
  12914. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  12915. len += length(value) + length(field[++i])
  12916. substed = 1
  12917. } else
  12918. len += 1 + keylen
  12919. }
  12920. print line
  12921. }
  12922. _ACAWK
  12923. _ACEOF
  12924. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12925. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  12926. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  12927. else
  12928. cat
  12929. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  12930. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  12931. _ACEOF
  12932. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  12933. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  12934. # trailing colons and then remove the whole line if VPATH becomes empty
  12935. # (actually we leave an empty line to preserve line numbers).
  12936. if test "x$srcdir" = x.; then
  12937. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  12938. h
  12939. s///
  12940. s/^/:/
  12941. s/[ ]*$/:/
  12942. s/:\$(srcdir):/:/g
  12943. s/:\${srcdir}:/:/g
  12944. s/:@srcdir@:/:/g
  12945. s/^:*//
  12946. s/:*$//
  12947. x
  12948. s/\(=[ ]*\).*/\1/
  12949. G
  12950. s/\n//
  12951. s/^[^=]*=[ ]*$//
  12952. }'
  12953. fi
  12954. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12955. fi # test -n "$CONFIG_FILES"
  12956. # Set up the scripts for CONFIG_HEADERS section.
  12957. # No need to generate them if there are no CONFIG_HEADERS.
  12958. # This happens for instance with `./config.status Makefile'.
  12959. if test -n "$CONFIG_HEADERS"; then
  12960. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  12961. BEGIN {
  12962. _ACEOF
  12963. # Transform confdefs.h into an awk script `defines.awk', embedded as
  12964. # here-document in config.status, that substitutes the proper values into
  12965. # config.h.in to produce config.h.
  12966. # Create a delimiter string that does not exist in confdefs.h, to ease
  12967. # handling of long lines.
  12968. ac_delim='%!_!# '
  12969. for ac_last_try in false false :; do
  12970. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  12971. if test -z "$ac_tt"; then
  12972. break
  12973. elif $ac_last_try; then
  12974. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  12975. else
  12976. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12977. fi
  12978. done
  12979. # For the awk script, D is an array of macro values keyed by name,
  12980. # likewise P contains macro parameters if any. Preserve backslash
  12981. # newline sequences.
  12982. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  12983. sed -n '
  12984. s/.\{148\}/&'"$ac_delim"'/g
  12985. t rset
  12986. :rset
  12987. s/^[ ]*#[ ]*define[ ][ ]*/ /
  12988. t def
  12989. d
  12990. :def
  12991. s/\\$//
  12992. t bsnl
  12993. s/["\\]/\\&/g
  12994. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12995. D["\1"]=" \3"/p
  12996. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  12997. d
  12998. :bsnl
  12999. s/["\\]/\\&/g
  13000. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13001. D["\1"]=" \3\\\\\\n"\\/p
  13002. t cont
  13003. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  13004. t cont
  13005. d
  13006. :cont
  13007. n
  13008. s/.\{148\}/&'"$ac_delim"'/g
  13009. t clear
  13010. :clear
  13011. s/\\$//
  13012. t bsnlc
  13013. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  13014. d
  13015. :bsnlc
  13016. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  13017. b cont
  13018. ' <confdefs.h | sed '
  13019. s/'"$ac_delim"'/"\\\
  13020. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  13021. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13022. for (key in D) D_is_set[key] = 1
  13023. FS = ""
  13024. }
  13025. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  13026. line = \$ 0
  13027. split(line, arg, " ")
  13028. if (arg[1] == "#") {
  13029. defundef = arg[2]
  13030. mac1 = arg[3]
  13031. } else {
  13032. defundef = substr(arg[1], 2)
  13033. mac1 = arg[2]
  13034. }
  13035. split(mac1, mac2, "(") #)
  13036. macro = mac2[1]
  13037. prefix = substr(line, 1, index(line, defundef) - 1)
  13038. if (D_is_set[macro]) {
  13039. # Preserve the white space surrounding the "#".
  13040. print prefix "define", macro P[macro] D[macro]
  13041. next
  13042. } else {
  13043. # Replace #undef with comments. This is necessary, for example,
  13044. # in the case of _POSIX_SOURCE, which is predefined and required
  13045. # on some systems where configure will not decide to define it.
  13046. if (defundef == "undef") {
  13047. print "/*", prefix defundef, macro, "*/"
  13048. next
  13049. }
  13050. }
  13051. }
  13052. { print }
  13053. _ACAWK
  13054. _ACEOF
  13055. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13056. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  13057. fi # test -n "$CONFIG_HEADERS"
  13058. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  13059. shift
  13060. for ac_tag
  13061. do
  13062. case $ac_tag in
  13063. :[FHLC]) ac_mode=$ac_tag; continue;;
  13064. esac
  13065. case $ac_mode$ac_tag in
  13066. :[FHL]*:*);;
  13067. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  13068. :[FH]-) ac_tag=-:-;;
  13069. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  13070. esac
  13071. ac_save_IFS=$IFS
  13072. IFS=:
  13073. set x $ac_tag
  13074. IFS=$ac_save_IFS
  13075. shift
  13076. ac_file=$1
  13077. shift
  13078. case $ac_mode in
  13079. :L) ac_source=$1;;
  13080. :[FH])
  13081. ac_file_inputs=
  13082. for ac_f
  13083. do
  13084. case $ac_f in
  13085. -) ac_f="$ac_tmp/stdin";;
  13086. *) # Look for the file first in the build tree, then in the source tree
  13087. # (if the path is not absolute). The absolute path cannot be DOS-style,
  13088. # because $ac_f cannot contain `:'.
  13089. test -f "$ac_f" ||
  13090. case $ac_f in
  13091. [\\/$]*) false;;
  13092. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  13093. esac ||
  13094. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  13095. esac
  13096. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  13097. as_fn_append ac_file_inputs " '$ac_f'"
  13098. done
  13099. # Let's still pretend it is `configure' which instantiates (i.e., don't
  13100. # use $as_me), people would be surprised to read:
  13101. # /* config.h. Generated by config.status. */
  13102. configure_input='Generated from '`
  13103. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  13104. `' by configure.'
  13105. if test x"$ac_file" != x-; then
  13106. configure_input="$ac_file. $configure_input"
  13107. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  13108. $as_echo "$as_me: creating $ac_file" >&6;}
  13109. fi
  13110. # Neutralize special characters interpreted by sed in replacement strings.
  13111. case $configure_input in #(
  13112. *\&* | *\|* | *\\* )
  13113. ac_sed_conf_input=`$as_echo "$configure_input" |
  13114. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  13115. *) ac_sed_conf_input=$configure_input;;
  13116. esac
  13117. case $ac_tag in
  13118. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  13119. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  13120. esac
  13121. ;;
  13122. esac
  13123. ac_dir=`$as_dirname -- "$ac_file" ||
  13124. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13125. X"$ac_file" : 'X\(//\)[^/]' \| \
  13126. X"$ac_file" : 'X\(//\)$' \| \
  13127. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  13128. $as_echo X"$ac_file" |
  13129. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13130. s//\1/
  13131. q
  13132. }
  13133. /^X\(\/\/\)[^/].*/{
  13134. s//\1/
  13135. q
  13136. }
  13137. /^X\(\/\/\)$/{
  13138. s//\1/
  13139. q
  13140. }
  13141. /^X\(\/\).*/{
  13142. s//\1/
  13143. q
  13144. }
  13145. s/.*/./; q'`
  13146. as_dir="$ac_dir"; as_fn_mkdir_p
  13147. ac_builddir=.
  13148. case "$ac_dir" in
  13149. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13150. *)
  13151. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  13152. # A ".." for each directory in $ac_dir_suffix.
  13153. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  13154. case $ac_top_builddir_sub in
  13155. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13156. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  13157. esac ;;
  13158. esac
  13159. ac_abs_top_builddir=$ac_pwd
  13160. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  13161. # for backward compatibility:
  13162. ac_top_builddir=$ac_top_build_prefix
  13163. case $srcdir in
  13164. .) # We are building in place.
  13165. ac_srcdir=.
  13166. ac_top_srcdir=$ac_top_builddir_sub
  13167. ac_abs_top_srcdir=$ac_pwd ;;
  13168. [\\/]* | ?:[\\/]* ) # Absolute name.
  13169. ac_srcdir=$srcdir$ac_dir_suffix;
  13170. ac_top_srcdir=$srcdir
  13171. ac_abs_top_srcdir=$srcdir ;;
  13172. *) # Relative name.
  13173. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  13174. ac_top_srcdir=$ac_top_build_prefix$srcdir
  13175. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  13176. esac
  13177. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  13178. case $ac_mode in
  13179. :F)
  13180. #
  13181. # CONFIG_FILE
  13182. #
  13183. case $INSTALL in
  13184. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  13185. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  13186. esac
  13187. ac_MKDIR_P=$MKDIR_P
  13188. case $MKDIR_P in
  13189. [\\/$]* | ?:[\\/]* ) ;;
  13190. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  13191. esac
  13192. _ACEOF
  13193. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13194. # If the template does not know about datarootdir, expand it.
  13195. # FIXME: This hack should be removed a few years after 2.60.
  13196. ac_datarootdir_hack=; ac_datarootdir_seen=
  13197. ac_sed_dataroot='
  13198. /datarootdir/ {
  13199. p
  13200. q
  13201. }
  13202. /@datadir@/p
  13203. /@docdir@/p
  13204. /@infodir@/p
  13205. /@localedir@/p
  13206. /@mandir@/p'
  13207. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  13208. *datarootdir*) ac_datarootdir_seen=yes;;
  13209. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  13210. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  13211. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  13212. _ACEOF
  13213. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13214. ac_datarootdir_hack='
  13215. s&@datadir@&$datadir&g
  13216. s&@docdir@&$docdir&g
  13217. s&@infodir@&$infodir&g
  13218. s&@localedir@&$localedir&g
  13219. s&@mandir@&$mandir&g
  13220. s&\\\${datarootdir}&$datarootdir&g' ;;
  13221. esac
  13222. _ACEOF
  13223. # Neutralize VPATH when `$srcdir' = `.'.
  13224. # Shell code in configure.ac might set extrasub.
  13225. # FIXME: do we really want to maintain this feature?
  13226. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13227. ac_sed_extra="$ac_vpsub
  13228. $extrasub
  13229. _ACEOF
  13230. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13231. :t
  13232. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  13233. s|@configure_input@|$ac_sed_conf_input|;t t
  13234. s&@top_builddir@&$ac_top_builddir_sub&;t t
  13235. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  13236. s&@srcdir@&$ac_srcdir&;t t
  13237. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  13238. s&@top_srcdir@&$ac_top_srcdir&;t t
  13239. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  13240. s&@builddir@&$ac_builddir&;t t
  13241. s&@abs_builddir@&$ac_abs_builddir&;t t
  13242. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  13243. s&@INSTALL@&$ac_INSTALL&;t t
  13244. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  13245. $ac_datarootdir_hack
  13246. "
  13247. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  13248. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13249. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  13250. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  13251. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  13252. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  13253. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13254. which seems to be undefined. Please make sure it is defined" >&5
  13255. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13256. which seems to be undefined. Please make sure it is defined" >&2;}
  13257. rm -f "$ac_tmp/stdin"
  13258. case $ac_file in
  13259. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  13260. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  13261. esac \
  13262. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13263. ;;
  13264. :H)
  13265. #
  13266. # CONFIG_HEADER
  13267. #
  13268. if test x"$ac_file" != x-; then
  13269. {
  13270. $as_echo "/* $configure_input */" \
  13271. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  13272. } >"$ac_tmp/config.h" \
  13273. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13274. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  13275. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  13276. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  13277. else
  13278. rm -f "$ac_file"
  13279. mv "$ac_tmp/config.h" "$ac_file" \
  13280. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13281. fi
  13282. else
  13283. $as_echo "/* $configure_input */" \
  13284. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  13285. || as_fn_error $? "could not create -" "$LINENO" 5
  13286. fi
  13287. # Compute "$ac_file"'s index in $config_headers.
  13288. _am_arg="$ac_file"
  13289. _am_stamp_count=1
  13290. for _am_header in $config_headers :; do
  13291. case $_am_header in
  13292. $_am_arg | $_am_arg:* )
  13293. break ;;
  13294. * )
  13295. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  13296. esac
  13297. done
  13298. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  13299. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13300. X"$_am_arg" : 'X\(//\)[^/]' \| \
  13301. X"$_am_arg" : 'X\(//\)$' \| \
  13302. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  13303. $as_echo X"$_am_arg" |
  13304. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13305. s//\1/
  13306. q
  13307. }
  13308. /^X\(\/\/\)[^/].*/{
  13309. s//\1/
  13310. q
  13311. }
  13312. /^X\(\/\/\)$/{
  13313. s//\1/
  13314. q
  13315. }
  13316. /^X\(\/\).*/{
  13317. s//\1/
  13318. q
  13319. }
  13320. s/.*/./; q'`/stamp-h$_am_stamp_count
  13321. ;;
  13322. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  13323. $as_echo "$as_me: executing $ac_file commands" >&6;}
  13324. ;;
  13325. esac
  13326. case $ac_file$ac_mode in
  13327. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  13328. # Older Autoconf quotes --file arguments for eval, but not when files
  13329. # are listed without --file. Let's play safe and only enable the eval
  13330. # if we detect the quoting.
  13331. # TODO: see whether this extra hack can be removed once we start
  13332. # requiring Autoconf 2.70 or later.
  13333. case $CONFIG_FILES in #(
  13334. *\'*) :
  13335. eval set x "$CONFIG_FILES" ;; #(
  13336. *) :
  13337. set x $CONFIG_FILES ;; #(
  13338. *) :
  13339. ;;
  13340. esac
  13341. shift
  13342. # Used to flag and report bootstrapping failures.
  13343. am_rc=0
  13344. for am_mf
  13345. do
  13346. # Strip MF so we end up with the name of the file.
  13347. am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
  13348. # Check whether this is an Automake generated Makefile which includes
  13349. # dependency-tracking related rules and includes.
  13350. # Grep'ing the whole file directly is not great: AIX grep has a line
  13351. # limit of 2048, but all sed's we know have understand at least 4000.
  13352. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
  13353. || continue
  13354. am_dirpart=`$as_dirname -- "$am_mf" ||
  13355. $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13356. X"$am_mf" : 'X\(//\)[^/]' \| \
  13357. X"$am_mf" : 'X\(//\)$' \| \
  13358. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  13359. $as_echo X"$am_mf" |
  13360. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13361. s//\1/
  13362. q
  13363. }
  13364. /^X\(\/\/\)[^/].*/{
  13365. s//\1/
  13366. q
  13367. }
  13368. /^X\(\/\/\)$/{
  13369. s//\1/
  13370. q
  13371. }
  13372. /^X\(\/\).*/{
  13373. s//\1/
  13374. q
  13375. }
  13376. s/.*/./; q'`
  13377. am_filepart=`$as_basename -- "$am_mf" ||
  13378. $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
  13379. X"$am_mf" : 'X\(//\)$' \| \
  13380. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  13381. $as_echo X/"$am_mf" |
  13382. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13383. s//\1/
  13384. q
  13385. }
  13386. /^X\/\(\/\/\)$/{
  13387. s//\1/
  13388. q
  13389. }
  13390. /^X\/\(\/\).*/{
  13391. s//\1/
  13392. q
  13393. }
  13394. s/.*/./; q'`
  13395. { echo "$as_me:$LINENO: cd "$am_dirpart" \
  13396. && sed -e '/# am--include-marker/d' "$am_filepart" \
  13397. | $MAKE -f - am--depfiles" >&5
  13398. (cd "$am_dirpart" \
  13399. && sed -e '/# am--include-marker/d' "$am_filepart" \
  13400. | $MAKE -f - am--depfiles) >&5 2>&5
  13401. ac_status=$?
  13402. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13403. (exit $ac_status); } || am_rc=$?
  13404. done
  13405. if test $am_rc -ne 0; then
  13406. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13407. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13408. as_fn_error $? "Something went wrong bootstrapping makefile fragments
  13409. for automatic dependency tracking. Try re-running configure with the
  13410. '--disable-dependency-tracking' option to at least be able to build
  13411. the package (albeit without support for automatic dependency tracking).
  13412. See \`config.log' for more details" "$LINENO" 5; }
  13413. fi
  13414. { am_dirpart=; unset am_dirpart;}
  13415. { am_filepart=; unset am_filepart;}
  13416. { am_mf=; unset am_mf;}
  13417. { am_rc=; unset am_rc;}
  13418. rm -f conftest-deps.mk
  13419. }
  13420. ;;
  13421. "libtool":C)
  13422. # See if we are running on zsh, and set the options that allow our
  13423. # commands through without removal of \ escapes.
  13424. if test -n "${ZSH_VERSION+set}"; then
  13425. setopt NO_GLOB_SUBST
  13426. fi
  13427. cfgfile=${ofile}T
  13428. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  13429. $RM "$cfgfile"
  13430. cat <<_LT_EOF >> "$cfgfile"
  13431. #! $SHELL
  13432. # Generated automatically by $as_me ($PACKAGE) $VERSION
  13433. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  13434. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  13435. # Provide generalized library-building support services.
  13436. # Written by Gordon Matzigkeit, 1996
  13437. # Copyright (C) 2014 Free Software Foundation, Inc.
  13438. # This is free software; see the source for copying conditions. There is NO
  13439. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  13440. # GNU Libtool is free software; you can redistribute it and/or modify
  13441. # it under the terms of the GNU General Public License as published by
  13442. # the Free Software Foundation; either version 2 of of the License, or
  13443. # (at your option) any later version.
  13444. #
  13445. # As a special exception to the GNU General Public License, if you
  13446. # distribute this file as part of a program or library that is built
  13447. # using GNU Libtool, you may include this file under the same
  13448. # distribution terms that you use for the rest of that program.
  13449. #
  13450. # GNU Libtool is distributed in the hope that it will be useful, but
  13451. # WITHOUT ANY WARRANTY; without even the implied warranty of
  13452. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13453. # GNU General Public License for more details.
  13454. #
  13455. # You should have received a copy of the GNU General Public License
  13456. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  13457. # The names of the tagged configurations supported by this script.
  13458. available_tags=''
  13459. # Configured defaults for sys_lib_dlsearch_path munging.
  13460. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  13461. # ### BEGIN LIBTOOL CONFIG
  13462. # A sed program that does not truncate output.
  13463. SED=$lt_SED
  13464. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  13465. Xsed="\$SED -e 1s/^X//"
  13466. # A grep program that handles long lines.
  13467. GREP=$lt_GREP
  13468. # An ERE matcher.
  13469. EGREP=$lt_EGREP
  13470. # A literal string matcher.
  13471. FGREP=$lt_FGREP
  13472. # Shell to use when invoking shell scripts.
  13473. SHELL=$lt_SHELL
  13474. # An echo program that protects backslashes.
  13475. ECHO=$lt_ECHO
  13476. # Which release of libtool.m4 was used?
  13477. macro_version=$macro_version
  13478. macro_revision=$macro_revision
  13479. # Assembler program.
  13480. AS=$lt_AS
  13481. # DLL creation program.
  13482. DLLTOOL=$lt_DLLTOOL
  13483. # Object dumper program.
  13484. OBJDUMP=$lt_OBJDUMP
  13485. # Whether or not to build shared libraries.
  13486. build_libtool_libs=$enable_shared
  13487. # Whether or not to build static libraries.
  13488. build_old_libs=$enable_static
  13489. # What type of objects to build.
  13490. pic_mode=$pic_mode
  13491. # Whether or not to optimize for fast installation.
  13492. fast_install=$enable_fast_install
  13493. # Shared archive member basename,for filename based shared library versioning on AIX.
  13494. shared_archive_member_spec=$shared_archive_member_spec
  13495. # The PATH separator for the build system.
  13496. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  13497. # The host system.
  13498. host_alias=$host_alias
  13499. host=$host
  13500. host_os=$host_os
  13501. # The build system.
  13502. build_alias=$build_alias
  13503. build=$build
  13504. build_os=$build_os
  13505. # A BSD- or MS-compatible name lister.
  13506. NM=$lt_NM
  13507. # Whether we need soft or hard links.
  13508. LN_S=$lt_LN_S
  13509. # What is the maximum length of a command?
  13510. max_cmd_len=$max_cmd_len
  13511. # Object file suffix (normally "o").
  13512. objext=$ac_objext
  13513. # Executable file suffix (normally "").
  13514. exeext=$exeext
  13515. # whether the shell understands "unset".
  13516. lt_unset=$lt_unset
  13517. # turn spaces into newlines.
  13518. SP2NL=$lt_lt_SP2NL
  13519. # turn newlines into spaces.
  13520. NL2SP=$lt_lt_NL2SP
  13521. # convert \$build file names to \$host format.
  13522. to_host_file_cmd=$lt_cv_to_host_file_cmd
  13523. # convert \$build files to toolchain format.
  13524. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  13525. # Method to check whether dependent libraries are shared objects.
  13526. deplibs_check_method=$lt_deplibs_check_method
  13527. # Command to use when deplibs_check_method = "file_magic".
  13528. file_magic_cmd=$lt_file_magic_cmd
  13529. # How to find potential files when deplibs_check_method = "file_magic".
  13530. file_magic_glob=$lt_file_magic_glob
  13531. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  13532. want_nocaseglob=$lt_want_nocaseglob
  13533. # Command to associate shared and link libraries.
  13534. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  13535. # The archiver.
  13536. AR=$lt_AR
  13537. # Flags to create an archive.
  13538. AR_FLAGS=$lt_AR_FLAGS
  13539. # How to feed a file listing to the archiver.
  13540. archiver_list_spec=$lt_archiver_list_spec
  13541. # A symbol stripping program.
  13542. STRIP=$lt_STRIP
  13543. # Commands used to install an old-style archive.
  13544. RANLIB=$lt_RANLIB
  13545. old_postinstall_cmds=$lt_old_postinstall_cmds
  13546. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  13547. # Whether to use a lock for old archive extraction.
  13548. lock_old_archive_extraction=$lock_old_archive_extraction
  13549. # A C compiler.
  13550. LTCC=$lt_CC
  13551. # LTCC compiler flags.
  13552. LTCFLAGS=$lt_CFLAGS
  13553. # Take the output of nm and produce a listing of raw symbols and C names.
  13554. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  13555. # Transform the output of nm in a proper C declaration.
  13556. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  13557. # Transform the output of nm into a list of symbols to manually relocate.
  13558. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  13559. # Transform the output of nm in a C name address pair.
  13560. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  13561. # Transform the output of nm in a C name address pair when lib prefix is needed.
  13562. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  13563. # The name lister interface.
  13564. nm_interface=$lt_lt_cv_nm_interface
  13565. # Specify filename containing input files for \$NM.
  13566. nm_file_list_spec=$lt_nm_file_list_spec
  13567. # The root where to search for dependent libraries,and where our libraries should be installed.
  13568. lt_sysroot=$lt_sysroot
  13569. # Command to truncate a binary pipe.
  13570. lt_truncate_bin=$lt_lt_cv_truncate_bin
  13571. # The name of the directory that contains temporary libtool files.
  13572. objdir=$objdir
  13573. # Used to examine libraries when file_magic_cmd begins with "file".
  13574. MAGIC_CMD=$MAGIC_CMD
  13575. # Must we lock files when doing compilation?
  13576. need_locks=$lt_need_locks
  13577. # Manifest tool.
  13578. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  13579. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  13580. DSYMUTIL=$lt_DSYMUTIL
  13581. # Tool to change global to local symbols on Mac OS X.
  13582. NMEDIT=$lt_NMEDIT
  13583. # Tool to manipulate fat objects and archives on Mac OS X.
  13584. LIPO=$lt_LIPO
  13585. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  13586. OTOOL=$lt_OTOOL
  13587. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  13588. OTOOL64=$lt_OTOOL64
  13589. # Old archive suffix (normally "a").
  13590. libext=$libext
  13591. # Shared library suffix (normally ".so").
  13592. shrext_cmds=$lt_shrext_cmds
  13593. # The commands to extract the exported symbol list from a shared archive.
  13594. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  13595. # Variables whose values should be saved in libtool wrapper scripts and
  13596. # restored at link time.
  13597. variables_saved_for_relink=$lt_variables_saved_for_relink
  13598. # Do we need the "lib" prefix for modules?
  13599. need_lib_prefix=$need_lib_prefix
  13600. # Do we need a version for libraries?
  13601. need_version=$need_version
  13602. # Library versioning type.
  13603. version_type=$version_type
  13604. # Shared library runtime path variable.
  13605. runpath_var=$runpath_var
  13606. # Shared library path variable.
  13607. shlibpath_var=$shlibpath_var
  13608. # Is shlibpath searched before the hard-coded library search path?
  13609. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  13610. # Format of library name prefix.
  13611. libname_spec=$lt_libname_spec
  13612. # List of archive names. First name is the real one, the rest are links.
  13613. # The last name is the one that the linker finds with -lNAME
  13614. library_names_spec=$lt_library_names_spec
  13615. # The coded name of the library, if different from the real name.
  13616. soname_spec=$lt_soname_spec
  13617. # Permission mode override for installation of shared libraries.
  13618. install_override_mode=$lt_install_override_mode
  13619. # Command to use after installation of a shared archive.
  13620. postinstall_cmds=$lt_postinstall_cmds
  13621. # Command to use after uninstallation of a shared archive.
  13622. postuninstall_cmds=$lt_postuninstall_cmds
  13623. # Commands used to finish a libtool library installation in a directory.
  13624. finish_cmds=$lt_finish_cmds
  13625. # As "finish_cmds", except a single script fragment to be evaled but
  13626. # not shown.
  13627. finish_eval=$lt_finish_eval
  13628. # Whether we should hardcode library paths into libraries.
  13629. hardcode_into_libs=$hardcode_into_libs
  13630. # Compile-time system search path for libraries.
  13631. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  13632. # Detected run-time system search path for libraries.
  13633. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  13634. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  13635. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  13636. # Whether dlopen is supported.
  13637. dlopen_support=$enable_dlopen
  13638. # Whether dlopen of programs is supported.
  13639. dlopen_self=$enable_dlopen_self
  13640. # Whether dlopen of statically linked programs is supported.
  13641. dlopen_self_static=$enable_dlopen_self_static
  13642. # Commands to strip libraries.
  13643. old_striplib=$lt_old_striplib
  13644. striplib=$lt_striplib
  13645. # The linker used to build libraries.
  13646. LD=$lt_LD
  13647. # How to create reloadable object files.
  13648. reload_flag=$lt_reload_flag
  13649. reload_cmds=$lt_reload_cmds
  13650. # Commands used to build an old-style archive.
  13651. old_archive_cmds=$lt_old_archive_cmds
  13652. # A language specific compiler.
  13653. CC=$lt_compiler
  13654. # Is the compiler the GNU compiler?
  13655. with_gcc=$GCC
  13656. # Compiler flag to turn off builtin functions.
  13657. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  13658. # Additional compiler flags for building library objects.
  13659. pic_flag=$lt_lt_prog_compiler_pic
  13660. # How to pass a linker flag through the compiler.
  13661. wl=$lt_lt_prog_compiler_wl
  13662. # Compiler flag to prevent dynamic linking.
  13663. link_static_flag=$lt_lt_prog_compiler_static
  13664. # Does compiler simultaneously support -c and -o options?
  13665. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  13666. # Whether or not to add -lc for building shared libraries.
  13667. build_libtool_need_lc=$archive_cmds_need_lc
  13668. # Whether or not to disallow shared libs when runtime libs are static.
  13669. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  13670. # Compiler flag to allow reflexive dlopens.
  13671. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  13672. # Compiler flag to generate shared objects directly from archives.
  13673. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  13674. # Whether the compiler copes with passing no objects directly.
  13675. compiler_needs_object=$lt_compiler_needs_object
  13676. # Create an old-style archive from a shared archive.
  13677. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  13678. # Create a temporary old-style archive to link instead of a shared archive.
  13679. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  13680. # Commands used to build a shared archive.
  13681. archive_cmds=$lt_archive_cmds
  13682. archive_expsym_cmds=$lt_archive_expsym_cmds
  13683. # Commands used to build a loadable module if different from building
  13684. # a shared archive.
  13685. module_cmds=$lt_module_cmds
  13686. module_expsym_cmds=$lt_module_expsym_cmds
  13687. # Whether we are building with GNU ld or not.
  13688. with_gnu_ld=$lt_with_gnu_ld
  13689. # Flag that allows shared libraries with undefined symbols to be built.
  13690. allow_undefined_flag=$lt_allow_undefined_flag
  13691. # Flag that enforces no undefined symbols.
  13692. no_undefined_flag=$lt_no_undefined_flag
  13693. # Flag to hardcode \$libdir into a binary during linking.
  13694. # This must work even if \$libdir does not exist
  13695. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  13696. # Whether we need a single "-rpath" flag with a separated argument.
  13697. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  13698. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  13699. # DIR into the resulting binary.
  13700. hardcode_direct=$hardcode_direct
  13701. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  13702. # DIR into the resulting binary and the resulting library dependency is
  13703. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  13704. # library is relocated.
  13705. hardcode_direct_absolute=$hardcode_direct_absolute
  13706. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  13707. # into the resulting binary.
  13708. hardcode_minus_L=$hardcode_minus_L
  13709. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  13710. # into the resulting binary.
  13711. hardcode_shlibpath_var=$hardcode_shlibpath_var
  13712. # Set to "yes" if building a shared library automatically hardcodes DIR
  13713. # into the library and all subsequent libraries and executables linked
  13714. # against it.
  13715. hardcode_automatic=$hardcode_automatic
  13716. # Set to yes if linker adds runtime paths of dependent libraries
  13717. # to runtime path list.
  13718. inherit_rpath=$inherit_rpath
  13719. # Whether libtool must link a program against all its dependency libraries.
  13720. link_all_deplibs=$link_all_deplibs
  13721. # Set to "yes" if exported symbols are required.
  13722. always_export_symbols=$always_export_symbols
  13723. # The commands to list exported symbols.
  13724. export_symbols_cmds=$lt_export_symbols_cmds
  13725. # Symbols that should not be listed in the preloaded symbols.
  13726. exclude_expsyms=$lt_exclude_expsyms
  13727. # Symbols that must always be exported.
  13728. include_expsyms=$lt_include_expsyms
  13729. # Commands necessary for linking programs (against libraries) with templates.
  13730. prelink_cmds=$lt_prelink_cmds
  13731. # Commands necessary for finishing linking programs.
  13732. postlink_cmds=$lt_postlink_cmds
  13733. # Specify filename containing input files.
  13734. file_list_spec=$lt_file_list_spec
  13735. # How to hardcode a shared library path into an executable.
  13736. hardcode_action=$hardcode_action
  13737. # ### END LIBTOOL CONFIG
  13738. _LT_EOF
  13739. cat <<'_LT_EOF' >> "$cfgfile"
  13740. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  13741. # func_munge_path_list VARIABLE PATH
  13742. # -----------------------------------
  13743. # VARIABLE is name of variable containing _space_ separated list of
  13744. # directories to be munged by the contents of PATH, which is string
  13745. # having a format:
  13746. # "DIR[:DIR]:"
  13747. # string "DIR[ DIR]" will be prepended to VARIABLE
  13748. # ":DIR[:DIR]"
  13749. # string "DIR[ DIR]" will be appended to VARIABLE
  13750. # "DIRP[:DIRP]::[DIRA:]DIRA"
  13751. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  13752. # "DIRA[ DIRA]" will be appended to VARIABLE
  13753. # "DIR[:DIR]"
  13754. # VARIABLE will be replaced by "DIR[ DIR]"
  13755. func_munge_path_list ()
  13756. {
  13757. case x$2 in
  13758. x)
  13759. ;;
  13760. *:)
  13761. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  13762. ;;
  13763. x:*)
  13764. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  13765. ;;
  13766. *::*)
  13767. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  13768. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  13769. ;;
  13770. *)
  13771. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  13772. ;;
  13773. esac
  13774. }
  13775. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  13776. func_cc_basename ()
  13777. {
  13778. for cc_temp in $*""; do
  13779. case $cc_temp in
  13780. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  13781. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  13782. \-*) ;;
  13783. *) break;;
  13784. esac
  13785. done
  13786. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  13787. }
  13788. # ### END FUNCTIONS SHARED WITH CONFIGURE
  13789. _LT_EOF
  13790. case $host_os in
  13791. aix3*)
  13792. cat <<\_LT_EOF >> "$cfgfile"
  13793. # AIX sometimes has problems with the GCC collect2 program. For some
  13794. # reason, if we set the COLLECT_NAMES environment variable, the problems
  13795. # vanish in a puff of smoke.
  13796. if test set != "${COLLECT_NAMES+set}"; then
  13797. COLLECT_NAMES=
  13798. export COLLECT_NAMES
  13799. fi
  13800. _LT_EOF
  13801. ;;
  13802. esac
  13803. ltmain=$ac_aux_dir/ltmain.sh
  13804. # We use sed instead of cat because bash on DJGPP gets confused if
  13805. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  13806. # text mode, it properly converts lines to CR/LF. This bash problem
  13807. # is reportedly fixed, but why not run on old versions too?
  13808. sed '$q' "$ltmain" >> "$cfgfile" \
  13809. || (rm -f "$cfgfile"; exit 1)
  13810. mv -f "$cfgfile" "$ofile" ||
  13811. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  13812. chmod +x "$ofile"
  13813. ;;
  13814. "libpng-config":F) chmod +x libpng-config ;;
  13815. esac
  13816. done # for ac_tag
  13817. as_fn_exit 0
  13818. _ACEOF
  13819. ac_clean_files=$ac_clean_files_save
  13820. test $ac_write_fail = 0 ||
  13821. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  13822. # configure is writing to config.log, and then calls config.status.
  13823. # config.status does its own redirection, appending to config.log.
  13824. # Unfortunately, on DOS this fails, as config.log is still kept open
  13825. # by configure, so config.status won't be able to write to it; its
  13826. # output is simply discarded. So we exec the FD to /dev/null,
  13827. # effectively closing config.log, so it can be properly (re)opened and
  13828. # appended to by config.status. When coming back to configure, we
  13829. # need to make the FD available again.
  13830. if test "$no_create" != yes; then
  13831. ac_cs_success=:
  13832. ac_config_status_args=
  13833. test "$silent" = yes &&
  13834. ac_config_status_args="$ac_config_status_args --quiet"
  13835. exec 5>/dev/null
  13836. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  13837. exec 5>>config.log
  13838. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  13839. # would make configure fail if this is the last instruction.
  13840. $ac_cs_success || as_fn_exit 1
  13841. fi
  13842. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  13843. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  13844. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  13845. fi