configure 855 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880
  1. #! /bin/sh
  2. # From configure.ac Revision: 1.48 .
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated by GNU Autoconf 2.61 for DevIL 1.7.8.
  5. #
  6. # Report bugs to <bubla@users.sourceforge.net>.
  7. #
  8. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  9. # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  10. # This configure script is free software; the Free Software Foundation
  11. # gives unlimited permission to copy, distribute and modify it.
  12. ## --------------------- ##
  13. ## M4sh Initialization. ##
  14. ## --------------------- ##
  15. # Be more Bourne compatible
  16. DUALCASE=1; export DUALCASE # for MKS sh
  17. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  18. emulate sh
  19. NULLCMD=:
  20. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  21. # is contrary to our usage. Disable this feature.
  22. alias -g '${1+"$@"}'='"$@"'
  23. setopt NO_GLOB_SUBST
  24. else
  25. case `(set -o) 2>/dev/null` in
  26. *posix*) set -o posix ;;
  27. esac
  28. fi
  29. # PATH needs CR
  30. # Avoid depending upon Character Ranges.
  31. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  32. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  33. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  34. as_cr_digits='0123456789'
  35. as_cr_alnum=$as_cr_Letters$as_cr_digits
  36. # The user is always right.
  37. if test "${PATH_SEPARATOR+set}" != set; then
  38. echo "#! /bin/sh" >conf$$.sh
  39. echo "exit 0" >>conf$$.sh
  40. chmod +x conf$$.sh
  41. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  42. PATH_SEPARATOR=';'
  43. else
  44. PATH_SEPARATOR=:
  45. fi
  46. rm -f conf$$.sh
  47. fi
  48. # Support unset when possible.
  49. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  50. as_unset=unset
  51. else
  52. as_unset=false
  53. fi
  54. # IFS
  55. # We need space, tab and new line, in precisely that order. Quoting is
  56. # there to prevent editors from complaining about space-tab.
  57. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  58. # splitting by setting IFS to empty value.)
  59. as_nl='
  60. '
  61. IFS=" "" $as_nl"
  62. # Find who we are. Look in the path if we contain no directory separator.
  63. case $0 in
  64. *[\\/]* ) as_myself=$0 ;;
  65. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  66. for as_dir in $PATH
  67. do
  68. IFS=$as_save_IFS
  69. test -z "$as_dir" && as_dir=.
  70. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  71. done
  72. IFS=$as_save_IFS
  73. ;;
  74. esac
  75. # We did not find ourselves, most probably we were run as `sh COMMAND'
  76. # in which case we are not to be found in the path.
  77. if test "x$as_myself" = x; then
  78. as_myself=$0
  79. fi
  80. if test ! -f "$as_myself"; then
  81. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  82. { (exit 1); exit 1; }
  83. fi
  84. # Work around bugs in pre-3.0 UWIN ksh.
  85. for as_var in ENV MAIL MAILPATH
  86. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  87. done
  88. PS1='$ '
  89. PS2='> '
  90. PS4='+ '
  91. # NLS nuisances.
  92. for as_var in \
  93. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  94. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  95. LC_TELEPHONE LC_TIME
  96. do
  97. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  98. eval $as_var=C; export $as_var
  99. else
  100. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  101. fi
  102. done
  103. # Required to use basename.
  104. if expr a : '\(a\)' >/dev/null 2>&1 &&
  105. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  106. as_expr=expr
  107. else
  108. as_expr=false
  109. fi
  110. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  111. as_basename=basename
  112. else
  113. as_basename=false
  114. fi
  115. # Name of the executable.
  116. as_me=`$as_basename -- "$0" ||
  117. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  118. X"$0" : 'X\(//\)$' \| \
  119. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  120. echo X/"$0" |
  121. sed '/^.*\/\([^/][^/]*\)\/*$/{
  122. s//\1/
  123. q
  124. }
  125. /^X\/\(\/\/\)$/{
  126. s//\1/
  127. q
  128. }
  129. /^X\/\(\/\).*/{
  130. s//\1/
  131. q
  132. }
  133. s/.*/./; q'`
  134. # CDPATH.
  135. $as_unset CDPATH
  136. if test "x$CONFIG_SHELL" = x; then
  137. if (eval ":") 2>/dev/null; then
  138. as_have_required=yes
  139. else
  140. as_have_required=no
  141. fi
  142. if test $as_have_required = yes && (eval ":
  143. (as_func_return () {
  144. (exit \$1)
  145. }
  146. as_func_success () {
  147. as_func_return 0
  148. }
  149. as_func_failure () {
  150. as_func_return 1
  151. }
  152. as_func_ret_success () {
  153. return 0
  154. }
  155. as_func_ret_failure () {
  156. return 1
  157. }
  158. exitcode=0
  159. if as_func_success; then
  160. :
  161. else
  162. exitcode=1
  163. echo as_func_success failed.
  164. fi
  165. if as_func_failure; then
  166. exitcode=1
  167. echo as_func_failure succeeded.
  168. fi
  169. if as_func_ret_success; then
  170. :
  171. else
  172. exitcode=1
  173. echo as_func_ret_success failed.
  174. fi
  175. if as_func_ret_failure; then
  176. exitcode=1
  177. echo as_func_ret_failure succeeded.
  178. fi
  179. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  180. :
  181. else
  182. exitcode=1
  183. echo positional parameters were not saved.
  184. fi
  185. test \$exitcode = 0) || { (exit 1); exit 1; }
  186. (
  187. as_lineno_1=\$LINENO
  188. as_lineno_2=\$LINENO
  189. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  190. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  191. ") 2> /dev/null; then
  192. :
  193. else
  194. as_candidate_shells=
  195. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  196. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  197. do
  198. IFS=$as_save_IFS
  199. test -z "$as_dir" && as_dir=.
  200. case $as_dir in
  201. /*)
  202. for as_base in sh bash ksh sh5; do
  203. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  204. done;;
  205. esac
  206. done
  207. IFS=$as_save_IFS
  208. for as_shell in $as_candidate_shells $SHELL; do
  209. # Try only shells that exist, to save several forks.
  210. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  211. { ("$as_shell") 2> /dev/null <<\_ASEOF
  212. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  213. emulate sh
  214. NULLCMD=:
  215. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  216. # is contrary to our usage. Disable this feature.
  217. alias -g '${1+"$@"}'='"$@"'
  218. setopt NO_GLOB_SUBST
  219. else
  220. case `(set -o) 2>/dev/null` in
  221. *posix*) set -o posix ;;
  222. esac
  223. fi
  224. :
  225. _ASEOF
  226. }; then
  227. CONFIG_SHELL=$as_shell
  228. as_have_required=yes
  229. if { "$as_shell" 2> /dev/null <<\_ASEOF
  230. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  231. emulate sh
  232. NULLCMD=:
  233. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  234. # is contrary to our usage. Disable this feature.
  235. alias -g '${1+"$@"}'='"$@"'
  236. setopt NO_GLOB_SUBST
  237. else
  238. case `(set -o) 2>/dev/null` in
  239. *posix*) set -o posix ;;
  240. esac
  241. fi
  242. :
  243. (as_func_return () {
  244. (exit $1)
  245. }
  246. as_func_success () {
  247. as_func_return 0
  248. }
  249. as_func_failure () {
  250. as_func_return 1
  251. }
  252. as_func_ret_success () {
  253. return 0
  254. }
  255. as_func_ret_failure () {
  256. return 1
  257. }
  258. exitcode=0
  259. if as_func_success; then
  260. :
  261. else
  262. exitcode=1
  263. echo as_func_success failed.
  264. fi
  265. if as_func_failure; then
  266. exitcode=1
  267. echo as_func_failure succeeded.
  268. fi
  269. if as_func_ret_success; then
  270. :
  271. else
  272. exitcode=1
  273. echo as_func_ret_success failed.
  274. fi
  275. if as_func_ret_failure; then
  276. exitcode=1
  277. echo as_func_ret_failure succeeded.
  278. fi
  279. if ( set x; as_func_ret_success y && test x = "$1" ); then
  280. :
  281. else
  282. exitcode=1
  283. echo positional parameters were not saved.
  284. fi
  285. test $exitcode = 0) || { (exit 1); exit 1; }
  286. (
  287. as_lineno_1=$LINENO
  288. as_lineno_2=$LINENO
  289. test "x$as_lineno_1" != "x$as_lineno_2" &&
  290. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  291. _ASEOF
  292. }; then
  293. break
  294. fi
  295. fi
  296. done
  297. if test "x$CONFIG_SHELL" != x; then
  298. for as_var in BASH_ENV ENV
  299. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  300. done
  301. export CONFIG_SHELL
  302. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  303. fi
  304. if test $as_have_required = no; then
  305. echo This script requires a shell more modern than all the
  306. echo shells that I found on your system. Please install a
  307. echo modern shell, or manually run the script under such a
  308. echo shell if you do have one.
  309. { (exit 1); exit 1; }
  310. fi
  311. fi
  312. fi
  313. (eval "as_func_return () {
  314. (exit \$1)
  315. }
  316. as_func_success () {
  317. as_func_return 0
  318. }
  319. as_func_failure () {
  320. as_func_return 1
  321. }
  322. as_func_ret_success () {
  323. return 0
  324. }
  325. as_func_ret_failure () {
  326. return 1
  327. }
  328. exitcode=0
  329. if as_func_success; then
  330. :
  331. else
  332. exitcode=1
  333. echo as_func_success failed.
  334. fi
  335. if as_func_failure; then
  336. exitcode=1
  337. echo as_func_failure succeeded.
  338. fi
  339. if as_func_ret_success; then
  340. :
  341. else
  342. exitcode=1
  343. echo as_func_ret_success failed.
  344. fi
  345. if as_func_ret_failure; then
  346. exitcode=1
  347. echo as_func_ret_failure succeeded.
  348. fi
  349. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  350. :
  351. else
  352. exitcode=1
  353. echo positional parameters were not saved.
  354. fi
  355. test \$exitcode = 0") || {
  356. echo No shell found that supports shell functions.
  357. echo Please tell autoconf@gnu.org about your system,
  358. echo including any error possibly output before this
  359. echo message
  360. }
  361. as_lineno_1=$LINENO
  362. as_lineno_2=$LINENO
  363. test "x$as_lineno_1" != "x$as_lineno_2" &&
  364. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  365. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  366. # uniformly replaced by the line number. The first 'sed' inserts a
  367. # line-number line after each line using $LINENO; the second 'sed'
  368. # does the real work. The second script uses 'N' to pair each
  369. # line-number line with the line containing $LINENO, and appends
  370. # trailing '-' during substitution so that $LINENO is not a special
  371. # case at line end.
  372. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  373. # scripts with optimization help from Paolo Bonzini. Blame Lee
  374. # E. McMahon (1931-1989) for sed's syntax. :-)
  375. sed -n '
  376. p
  377. /[$]LINENO/=
  378. ' <$as_myself |
  379. sed '
  380. s/[$]LINENO.*/&-/
  381. t lineno
  382. b
  383. :lineno
  384. N
  385. :loop
  386. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  387. t loop
  388. s/-\n.*//
  389. ' >$as_me.lineno &&
  390. chmod +x "$as_me.lineno" ||
  391. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  392. { (exit 1); exit 1; }; }
  393. # Don't try to exec as it changes $[0], causing all sort of problems
  394. # (the dirname of $[0] is not the place where we might find the
  395. # original and so on. Autoconf is especially sensitive to this).
  396. . "./$as_me.lineno"
  397. # Exit status is that of the last command.
  398. exit
  399. }
  400. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  401. as_dirname=dirname
  402. else
  403. as_dirname=false
  404. fi
  405. ECHO_C= ECHO_N= ECHO_T=
  406. case `echo -n x` in
  407. -n*)
  408. case `echo 'x\c'` in
  409. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  410. *) ECHO_C='\c';;
  411. esac;;
  412. *)
  413. ECHO_N='-n';;
  414. esac
  415. if expr a : '\(a\)' >/dev/null 2>&1 &&
  416. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  417. as_expr=expr
  418. else
  419. as_expr=false
  420. fi
  421. rm -f conf$$ conf$$.exe conf$$.file
  422. if test -d conf$$.dir; then
  423. rm -f conf$$.dir/conf$$.file
  424. else
  425. rm -f conf$$.dir
  426. mkdir conf$$.dir
  427. fi
  428. echo >conf$$.file
  429. if ln -s conf$$.file conf$$ 2>/dev/null; then
  430. as_ln_s='ln -s'
  431. # ... but there are two gotchas:
  432. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  433. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  434. # In both cases, we have to default to `cp -p'.
  435. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  436. as_ln_s='cp -p'
  437. elif ln conf$$.file conf$$ 2>/dev/null; then
  438. as_ln_s=ln
  439. else
  440. as_ln_s='cp -p'
  441. fi
  442. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  443. rmdir conf$$.dir 2>/dev/null
  444. if mkdir -p . 2>/dev/null; then
  445. as_mkdir_p=:
  446. else
  447. test -d ./-p && rmdir ./-p
  448. as_mkdir_p=false
  449. fi
  450. if test -x / >/dev/null 2>&1; then
  451. as_test_x='test -x'
  452. else
  453. if ls -dL / >/dev/null 2>&1; then
  454. as_ls_L_option=L
  455. else
  456. as_ls_L_option=
  457. fi
  458. as_test_x='
  459. eval sh -c '\''
  460. if test -d "$1"; then
  461. test -d "$1/.";
  462. else
  463. case $1 in
  464. -*)set "./$1";;
  465. esac;
  466. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  467. ???[sx]*):;;*)false;;esac;fi
  468. '\'' sh
  469. '
  470. fi
  471. as_executable_p=$as_test_x
  472. # Sed expression to map a string onto a valid CPP name.
  473. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  474. # Sed expression to map a string onto a valid variable name.
  475. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  476. # Check that we are running under the correct shell.
  477. SHELL=${CONFIG_SHELL-/bin/sh}
  478. case X$lt_ECHO in
  479. X*--fallback-echo)
  480. # Remove one level of quotation (which was required for Make).
  481. ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  482. ;;
  483. esac
  484. ECHO=${lt_ECHO-echo}
  485. if test "X$1" = X--no-reexec; then
  486. # Discard the --no-reexec flag, and continue.
  487. shift
  488. elif test "X$1" = X--fallback-echo; then
  489. # Avoid inline document here, it may be left over
  490. :
  491. elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  492. # Yippee, $ECHO works!
  493. :
  494. else
  495. # Restart under the correct shell.
  496. exec $SHELL "$0" --no-reexec ${1+"$@"}
  497. fi
  498. if test "X$1" = X--fallback-echo; then
  499. # used as fallback echo
  500. shift
  501. cat <<_LT_EOF
  502. $*
  503. _LT_EOF
  504. exit 0
  505. fi
  506. # The HP-UX ksh and POSIX shell print the target directory to stdout
  507. # if CDPATH is set.
  508. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  509. if test -z "$lt_ECHO"; then
  510. if test "X${echo_test_string+set}" != Xset; then
  511. # find a string as large as possible, as long as the shell can cope with it
  512. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  513. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  514. if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  515. { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  516. then
  517. break
  518. fi
  519. done
  520. fi
  521. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  522. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  523. test "X$echo_testing_string" = "X$echo_test_string"; then
  524. :
  525. else
  526. # The Solaris, AIX, and Digital Unix default echo programs unquote
  527. # backslashes. This makes it impossible to quote backslashes using
  528. # echo "$something" | sed 's/\\/\\\\/g'
  529. #
  530. # So, first we look for a working echo in the user's PATH.
  531. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  532. for dir in $PATH /usr/ucb; do
  533. IFS="$lt_save_ifs"
  534. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  535. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  536. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  537. test "X$echo_testing_string" = "X$echo_test_string"; then
  538. ECHO="$dir/echo"
  539. break
  540. fi
  541. done
  542. IFS="$lt_save_ifs"
  543. if test "X$ECHO" = Xecho; then
  544. # We didn't find a better echo, so look for alternatives.
  545. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  546. echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  547. test "X$echo_testing_string" = "X$echo_test_string"; then
  548. # This shell has a builtin print -r that does the trick.
  549. ECHO='print -r'
  550. elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  551. test "X$CONFIG_SHELL" != X/bin/ksh; then
  552. # If we have ksh, try running configure again with it.
  553. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  554. export ORIGINAL_CONFIG_SHELL
  555. CONFIG_SHELL=/bin/ksh
  556. export CONFIG_SHELL
  557. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  558. else
  559. # Try using printf.
  560. ECHO='printf %s\n'
  561. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  562. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  563. test "X$echo_testing_string" = "X$echo_test_string"; then
  564. # Cool, printf works
  565. :
  566. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  567. test "X$echo_testing_string" = 'X\t' &&
  568. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  569. test "X$echo_testing_string" = "X$echo_test_string"; then
  570. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  571. export CONFIG_SHELL
  572. SHELL="$CONFIG_SHELL"
  573. export SHELL
  574. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  575. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  576. test "X$echo_testing_string" = 'X\t' &&
  577. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  578. test "X$echo_testing_string" = "X$echo_test_string"; then
  579. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  580. else
  581. # maybe with a smaller string...
  582. prev=:
  583. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  584. if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  585. then
  586. break
  587. fi
  588. prev="$cmd"
  589. done
  590. if test "$prev" != 'sed 50q "$0"'; then
  591. echo_test_string=`eval $prev`
  592. export echo_test_string
  593. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  594. else
  595. # Oops. We lost completely, so just stick with echo.
  596. ECHO=echo
  597. fi
  598. fi
  599. fi
  600. fi
  601. fi
  602. fi
  603. # Copy echo and quote the copy suitably for passing to libtool from
  604. # the Makefile, instead of quoting the original, which is used later.
  605. lt_ECHO=$ECHO
  606. if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  607. lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  608. fi
  609. exec 7<&0 </dev/null 6>&1
  610. # Name of the host.
  611. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  612. # so uname gets run too.
  613. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  614. #
  615. # Initializations.
  616. #
  617. ac_default_prefix=/usr/local
  618. ac_clean_files=
  619. ac_config_libobj_dir=.
  620. LIBOBJS=
  621. cross_compiling=no
  622. subdirs=
  623. MFLAGS=
  624. MAKEFLAGS=
  625. SHELL=${CONFIG_SHELL-/bin/sh}
  626. # Identity of this package.
  627. PACKAGE_NAME='DevIL'
  628. PACKAGE_TARNAME='devil'
  629. PACKAGE_VERSION='1.7.8'
  630. PACKAGE_STRING='DevIL 1.7.8'
  631. PACKAGE_BUGREPORT='bubla@users.sourceforge.net'
  632. ac_unique_file="src-IL/src/il_main.c"
  633. # Factoring default headers for most tests.
  634. ac_includes_default="\
  635. #include <stdio.h>
  636. #ifdef HAVE_SYS_TYPES_H
  637. # include <sys/types.h>
  638. #endif
  639. #ifdef HAVE_SYS_STAT_H
  640. # include <sys/stat.h>
  641. #endif
  642. #ifdef STDC_HEADERS
  643. # include <stdlib.h>
  644. # include <stddef.h>
  645. #else
  646. # ifdef HAVE_STDLIB_H
  647. # include <stdlib.h>
  648. # endif
  649. #endif
  650. #ifdef HAVE_STRING_H
  651. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  652. # include <memory.h>
  653. # endif
  654. # include <string.h>
  655. #endif
  656. #ifdef HAVE_STRINGS_H
  657. # include <strings.h>
  658. #endif
  659. #ifdef HAVE_INTTYPES_H
  660. # include <inttypes.h>
  661. #endif
  662. #ifdef HAVE_STDINT_H
  663. # include <stdint.h>
  664. #endif
  665. #ifdef HAVE_UNISTD_H
  666. # include <unistd.h>
  667. #endif"
  668. ac_subst_vars='SHELL
  669. PATH_SEPARATOR
  670. PACKAGE_NAME
  671. PACKAGE_TARNAME
  672. PACKAGE_VERSION
  673. PACKAGE_STRING
  674. PACKAGE_BUGREPORT
  675. exec_prefix
  676. prefix
  677. program_transform_name
  678. bindir
  679. sbindir
  680. libexecdir
  681. datarootdir
  682. datadir
  683. sysconfdir
  684. sharedstatedir
  685. localstatedir
  686. includedir
  687. oldincludedir
  688. docdir
  689. infodir
  690. htmldir
  691. dvidir
  692. pdfdir
  693. psdir
  694. libdir
  695. localedir
  696. mandir
  697. DEFS
  698. ECHO_C
  699. ECHO_N
  700. ECHO_T
  701. LIBS
  702. build_alias
  703. host_alias
  704. target_alias
  705. LIBTOOL
  706. build
  707. build_cpu
  708. build_vendor
  709. build_os
  710. host
  711. host_cpu
  712. host_vendor
  713. host_os
  714. CC
  715. CFLAGS
  716. LDFLAGS
  717. CPPFLAGS
  718. ac_ct_CC
  719. EXEEXT
  720. OBJEXT
  721. SED
  722. GREP
  723. EGREP
  724. FGREP
  725. LD
  726. DUMPBIN
  727. ac_ct_DUMPBIN
  728. NM
  729. LN_S
  730. AR
  731. STRIP
  732. RANLIB
  733. lt_ECHO
  734. DSYMUTIL
  735. NMEDIT
  736. LIPO
  737. OTOOL
  738. OTOOL64
  739. CPP
  740. AS
  741. DLLTOOL
  742. OBJDUMP
  743. INSTALL_PROGRAM
  744. INSTALL_SCRIPT
  745. INSTALL_DATA
  746. am__isrc
  747. CYGPATH_W
  748. PACKAGE
  749. VERSION
  750. ACLOCAL
  751. AUTOCONF
  752. AUTOMAKE
  753. AUTOHEADER
  754. MAKEINFO
  755. install_sh
  756. INSTALL_STRIP_PROGRAM
  757. mkdir_p
  758. AWK
  759. SET_MAKE
  760. am__leading_dot
  761. AMTAR
  762. am__tar
  763. am__untar
  764. DEPDIR
  765. am__include
  766. am__quote
  767. AMDEP_TRUE
  768. AMDEP_FALSE
  769. AMDEPBACKSLASH
  770. CCDEPMODE
  771. am__fastdepCC_TRUE
  772. am__fastdepCC_FALSE
  773. DEVIL_LTVERSION
  774. CXX
  775. CXXFLAGS
  776. ac_ct_CXX
  777. CXXDEPMODE
  778. am__fastdepCXX_TRUE
  779. am__fastdepCXX_FALSE
  780. CXXCPP
  781. BUILD_EXAMPLES_TRUE
  782. BUILD_EXAMPLES_FALSE
  783. BUILD_IL_TRUE
  784. BUILD_IL_FALSE
  785. BUILD_ILU_TRUE
  786. BUILD_ILU_FALSE
  787. BUILD_ILUT_TRUE
  788. BUILD_ILUT_FALSE
  789. PKG_CONFIG
  790. OPENEXR_CFLAGS
  791. OPENEXR_LIBS
  792. ALLEGRO_CONFIG
  793. allegro_CFLAGS
  794. allegro_LIBS
  795. XMKMF
  796. acx_pthread_config
  797. PTHREAD_CC
  798. PTHREAD_LIBS
  799. PTHREAD_CFLAGS
  800. GL_CFLAGS
  801. GL_LIBS
  802. GLU_CFLAGS
  803. GLU_LIBS
  804. X_CFLAGS
  805. X_PRE_LIBS
  806. X_LIBS
  807. X_EXTRA_LIBS
  808. GLUT_CFLAGS
  809. GLUT_LIBS
  810. SDL_CONFIG
  811. SDL_CFLAGS
  812. SDL_LIBS
  813. USE_ALLEGRO_TRUE
  814. USE_ALLEGRO_FALSE
  815. USE_DIRECTX8_TRUE
  816. USE_DIRECTX8_FALSE
  817. USE_DIRECTX9_TRUE
  818. USE_DIRECTX9_FALSE
  819. USE_DIRECTX_TRUE
  820. USE_DIRECTX_FALSE
  821. USE_OPENGL_TRUE
  822. USE_OPENGL_FALSE
  823. HAVE_GLUT_TRUE
  824. HAVE_GLUT_FALSE
  825. USE_SDL_TRUE
  826. USE_SDL_FALSE
  827. USE_W32_TRUE
  828. USE_W32_FALSE
  829. USE_X11_TRUE
  830. USE_X11_FALSE
  831. PLATFORM
  832. WINDOWS_BUILD_TRUE
  833. WINDOWS_BUILD_FALSE
  834. GENERAL_CFLAGS
  835. IL_CFLAGS
  836. IL_LIBS
  837. ILU_CFLAGS
  838. ILU_LIBS
  839. ILUT_CFLAGS
  840. ILUT_LIBS
  841. LIBILUT_WIN32LIBPATH
  842. SUPPORTED_FORMATS
  843. LIBOBJS
  844. LTLIBOBJS'
  845. ac_subst_files=''
  846. ac_precious_vars='build_alias
  847. host_alias
  848. target_alias
  849. CC
  850. CFLAGS
  851. LDFLAGS
  852. LIBS
  853. CPPFLAGS
  854. CPP
  855. CXX
  856. CXXFLAGS
  857. CCC
  858. CXXCPP
  859. PKG_CONFIG
  860. OPENEXR_CFLAGS
  861. OPENEXR_LIBS
  862. XMKMF'
  863. # Initialize some variables set by options.
  864. ac_init_help=
  865. ac_init_version=false
  866. # The variables have the same names as the options, with
  867. # dashes changed to underlines.
  868. cache_file=/dev/null
  869. exec_prefix=NONE
  870. no_create=
  871. no_recursion=
  872. prefix=NONE
  873. program_prefix=NONE
  874. program_suffix=NONE
  875. program_transform_name=s,x,x,
  876. silent=
  877. site=
  878. srcdir=
  879. verbose=
  880. x_includes=NONE
  881. x_libraries=NONE
  882. # Installation directory options.
  883. # These are left unexpanded so users can "make install exec_prefix=/foo"
  884. # and all the variables that are supposed to be based on exec_prefix
  885. # by default will actually change.
  886. # Use braces instead of parens because sh, perl, etc. also accept them.
  887. # (The list follows the same order as the GNU Coding Standards.)
  888. bindir='${exec_prefix}/bin'
  889. sbindir='${exec_prefix}/sbin'
  890. libexecdir='${exec_prefix}/libexec'
  891. datarootdir='${prefix}/share'
  892. datadir='${datarootdir}'
  893. sysconfdir='${prefix}/etc'
  894. sharedstatedir='${prefix}/com'
  895. localstatedir='${prefix}/var'
  896. includedir='${prefix}/include'
  897. oldincludedir='/usr/include'
  898. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  899. infodir='${datarootdir}/info'
  900. htmldir='${docdir}'
  901. dvidir='${docdir}'
  902. pdfdir='${docdir}'
  903. psdir='${docdir}'
  904. libdir='${exec_prefix}/lib'
  905. localedir='${datarootdir}/locale'
  906. mandir='${datarootdir}/man'
  907. ac_prev=
  908. ac_dashdash=
  909. for ac_option
  910. do
  911. # If the previous option needs an argument, assign it.
  912. if test -n "$ac_prev"; then
  913. eval $ac_prev=\$ac_option
  914. ac_prev=
  915. continue
  916. fi
  917. case $ac_option in
  918. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  919. *) ac_optarg=yes ;;
  920. esac
  921. # Accept the important Cygnus configure options, so we can diagnose typos.
  922. case $ac_dashdash$ac_option in
  923. --)
  924. ac_dashdash=yes ;;
  925. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  926. ac_prev=bindir ;;
  927. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  928. bindir=$ac_optarg ;;
  929. -build | --build | --buil | --bui | --bu)
  930. ac_prev=build_alias ;;
  931. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  932. build_alias=$ac_optarg ;;
  933. -cache-file | --cache-file | --cache-fil | --cache-fi \
  934. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  935. ac_prev=cache_file ;;
  936. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  937. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  938. cache_file=$ac_optarg ;;
  939. --config-cache | -C)
  940. cache_file=config.cache ;;
  941. -datadir | --datadir | --datadi | --datad)
  942. ac_prev=datadir ;;
  943. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  944. datadir=$ac_optarg ;;
  945. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  946. | --dataroo | --dataro | --datar)
  947. ac_prev=datarootdir ;;
  948. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  949. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  950. datarootdir=$ac_optarg ;;
  951. -disable-* | --disable-*)
  952. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  953. # Reject names that are not valid shell variable names.
  954. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  955. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  956. { (exit 1); exit 1; }; }
  957. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  958. eval enable_$ac_feature=no ;;
  959. -docdir | --docdir | --docdi | --doc | --do)
  960. ac_prev=docdir ;;
  961. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  962. docdir=$ac_optarg ;;
  963. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  964. ac_prev=dvidir ;;
  965. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  966. dvidir=$ac_optarg ;;
  967. -enable-* | --enable-*)
  968. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  969. # Reject names that are not valid shell variable names.
  970. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  971. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  972. { (exit 1); exit 1; }; }
  973. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  974. eval enable_$ac_feature=\$ac_optarg ;;
  975. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  976. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  977. | --exec | --exe | --ex)
  978. ac_prev=exec_prefix ;;
  979. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  980. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  981. | --exec=* | --exe=* | --ex=*)
  982. exec_prefix=$ac_optarg ;;
  983. -gas | --gas | --ga | --g)
  984. # Obsolete; use --with-gas.
  985. with_gas=yes ;;
  986. -help | --help | --hel | --he | -h)
  987. ac_init_help=long ;;
  988. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  989. ac_init_help=recursive ;;
  990. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  991. ac_init_help=short ;;
  992. -host | --host | --hos | --ho)
  993. ac_prev=host_alias ;;
  994. -host=* | --host=* | --hos=* | --ho=*)
  995. host_alias=$ac_optarg ;;
  996. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  997. ac_prev=htmldir ;;
  998. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  999. | --ht=*)
  1000. htmldir=$ac_optarg ;;
  1001. -includedir | --includedir | --includedi | --included | --include \
  1002. | --includ | --inclu | --incl | --inc)
  1003. ac_prev=includedir ;;
  1004. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1005. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1006. includedir=$ac_optarg ;;
  1007. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1008. ac_prev=infodir ;;
  1009. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1010. infodir=$ac_optarg ;;
  1011. -libdir | --libdir | --libdi | --libd)
  1012. ac_prev=libdir ;;
  1013. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1014. libdir=$ac_optarg ;;
  1015. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1016. | --libexe | --libex | --libe)
  1017. ac_prev=libexecdir ;;
  1018. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1019. | --libexe=* | --libex=* | --libe=*)
  1020. libexecdir=$ac_optarg ;;
  1021. -localedir | --localedir | --localedi | --localed | --locale)
  1022. ac_prev=localedir ;;
  1023. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1024. localedir=$ac_optarg ;;
  1025. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1026. | --localstate | --localstat | --localsta | --localst | --locals)
  1027. ac_prev=localstatedir ;;
  1028. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1029. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1030. localstatedir=$ac_optarg ;;
  1031. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1032. ac_prev=mandir ;;
  1033. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1034. mandir=$ac_optarg ;;
  1035. -nfp | --nfp | --nf)
  1036. # Obsolete; use --without-fp.
  1037. with_fp=no ;;
  1038. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1039. | --no-cr | --no-c | -n)
  1040. no_create=yes ;;
  1041. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1042. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1043. no_recursion=yes ;;
  1044. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1045. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1046. | --oldin | --oldi | --old | --ol | --o)
  1047. ac_prev=oldincludedir ;;
  1048. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1049. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1050. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1051. oldincludedir=$ac_optarg ;;
  1052. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1053. ac_prev=prefix ;;
  1054. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1055. prefix=$ac_optarg ;;
  1056. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1057. | --program-pre | --program-pr | --program-p)
  1058. ac_prev=program_prefix ;;
  1059. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1060. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1061. program_prefix=$ac_optarg ;;
  1062. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1063. | --program-suf | --program-su | --program-s)
  1064. ac_prev=program_suffix ;;
  1065. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1066. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1067. program_suffix=$ac_optarg ;;
  1068. -program-transform-name | --program-transform-name \
  1069. | --program-transform-nam | --program-transform-na \
  1070. | --program-transform-n | --program-transform- \
  1071. | --program-transform | --program-transfor \
  1072. | --program-transfo | --program-transf \
  1073. | --program-trans | --program-tran \
  1074. | --progr-tra | --program-tr | --program-t)
  1075. ac_prev=program_transform_name ;;
  1076. -program-transform-name=* | --program-transform-name=* \
  1077. | --program-transform-nam=* | --program-transform-na=* \
  1078. | --program-transform-n=* | --program-transform-=* \
  1079. | --program-transform=* | --program-transfor=* \
  1080. | --program-transfo=* | --program-transf=* \
  1081. | --program-trans=* | --program-tran=* \
  1082. | --progr-tra=* | --program-tr=* | --program-t=*)
  1083. program_transform_name=$ac_optarg ;;
  1084. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1085. ac_prev=pdfdir ;;
  1086. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1087. pdfdir=$ac_optarg ;;
  1088. -psdir | --psdir | --psdi | --psd | --ps)
  1089. ac_prev=psdir ;;
  1090. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1091. psdir=$ac_optarg ;;
  1092. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1093. | -silent | --silent | --silen | --sile | --sil)
  1094. silent=yes ;;
  1095. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1096. ac_prev=sbindir ;;
  1097. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1098. | --sbi=* | --sb=*)
  1099. sbindir=$ac_optarg ;;
  1100. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1101. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1102. | --sharedst | --shareds | --shared | --share | --shar \
  1103. | --sha | --sh)
  1104. ac_prev=sharedstatedir ;;
  1105. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1106. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1107. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1108. | --sha=* | --sh=*)
  1109. sharedstatedir=$ac_optarg ;;
  1110. -site | --site | --sit)
  1111. ac_prev=site ;;
  1112. -site=* | --site=* | --sit=*)
  1113. site=$ac_optarg ;;
  1114. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1115. ac_prev=srcdir ;;
  1116. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1117. srcdir=$ac_optarg ;;
  1118. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1119. | --syscon | --sysco | --sysc | --sys | --sy)
  1120. ac_prev=sysconfdir ;;
  1121. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1122. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1123. sysconfdir=$ac_optarg ;;
  1124. -target | --target | --targe | --targ | --tar | --ta | --t)
  1125. ac_prev=target_alias ;;
  1126. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1127. target_alias=$ac_optarg ;;
  1128. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1129. verbose=yes ;;
  1130. -version | --version | --versio | --versi | --vers | -V)
  1131. ac_init_version=: ;;
  1132. -with-* | --with-*)
  1133. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1134. # Reject names that are not valid shell variable names.
  1135. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1136. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1137. { (exit 1); exit 1; }; }
  1138. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1139. eval with_$ac_package=\$ac_optarg ;;
  1140. -without-* | --without-*)
  1141. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1142. # Reject names that are not valid shell variable names.
  1143. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1144. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1145. { (exit 1); exit 1; }; }
  1146. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1147. eval with_$ac_package=no ;;
  1148. --x)
  1149. # Obsolete; use --with-x.
  1150. with_x=yes ;;
  1151. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1152. | --x-incl | --x-inc | --x-in | --x-i)
  1153. ac_prev=x_includes ;;
  1154. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1155. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1156. x_includes=$ac_optarg ;;
  1157. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1158. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1159. ac_prev=x_libraries ;;
  1160. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1161. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1162. x_libraries=$ac_optarg ;;
  1163. -*) { echo "$as_me: error: unrecognized option: $ac_option
  1164. Try \`$0 --help' for more information." >&2
  1165. { (exit 1); exit 1; }; }
  1166. ;;
  1167. *=*)
  1168. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1169. # Reject names that are not valid shell variable names.
  1170. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1171. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1172. { (exit 1); exit 1; }; }
  1173. eval $ac_envvar=\$ac_optarg
  1174. export $ac_envvar ;;
  1175. *)
  1176. # FIXME: should be removed in autoconf 3.0.
  1177. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1178. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1179. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1180. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1181. ;;
  1182. esac
  1183. done
  1184. if test -n "$ac_prev"; then
  1185. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1186. { echo "$as_me: error: missing argument to $ac_option" >&2
  1187. { (exit 1); exit 1; }; }
  1188. fi
  1189. # Be sure to have absolute directory names.
  1190. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1191. datadir sysconfdir sharedstatedir localstatedir includedir \
  1192. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1193. libdir localedir mandir
  1194. do
  1195. eval ac_val=\$$ac_var
  1196. case $ac_val in
  1197. [\\/$]* | ?:[\\/]* ) continue;;
  1198. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1199. esac
  1200. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1201. { (exit 1); exit 1; }; }
  1202. done
  1203. # There might be people who depend on the old broken behavior: `$host'
  1204. # used to hold the argument of --host etc.
  1205. # FIXME: To remove some day.
  1206. build=$build_alias
  1207. host=$host_alias
  1208. target=$target_alias
  1209. # FIXME: To remove some day.
  1210. if test "x$host_alias" != x; then
  1211. if test "x$build_alias" = x; then
  1212. cross_compiling=maybe
  1213. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1214. If a cross compiler is detected then cross compile mode will be used." >&2
  1215. elif test "x$build_alias" != "x$host_alias"; then
  1216. cross_compiling=yes
  1217. fi
  1218. fi
  1219. ac_tool_prefix=
  1220. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1221. test "$silent" = yes && exec 6>/dev/null
  1222. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1223. ac_ls_di=`ls -di .` &&
  1224. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1225. { echo "$as_me: error: Working directory cannot be determined" >&2
  1226. { (exit 1); exit 1; }; }
  1227. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1228. { echo "$as_me: error: pwd does not report name of working directory" >&2
  1229. { (exit 1); exit 1; }; }
  1230. # Find the source files, if location was not specified.
  1231. if test -z "$srcdir"; then
  1232. ac_srcdir_defaulted=yes
  1233. # Try the directory containing this script, then the parent directory.
  1234. ac_confdir=`$as_dirname -- "$0" ||
  1235. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1236. X"$0" : 'X\(//\)[^/]' \| \
  1237. X"$0" : 'X\(//\)$' \| \
  1238. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1239. echo X"$0" |
  1240. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1241. s//\1/
  1242. q
  1243. }
  1244. /^X\(\/\/\)[^/].*/{
  1245. s//\1/
  1246. q
  1247. }
  1248. /^X\(\/\/\)$/{
  1249. s//\1/
  1250. q
  1251. }
  1252. /^X\(\/\).*/{
  1253. s//\1/
  1254. q
  1255. }
  1256. s/.*/./; q'`
  1257. srcdir=$ac_confdir
  1258. if test ! -r "$srcdir/$ac_unique_file"; then
  1259. srcdir=..
  1260. fi
  1261. else
  1262. ac_srcdir_defaulted=no
  1263. fi
  1264. if test ! -r "$srcdir/$ac_unique_file"; then
  1265. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1266. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1267. { (exit 1); exit 1; }; }
  1268. fi
  1269. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1270. ac_abs_confdir=`(
  1271. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1272. { (exit 1); exit 1; }; }
  1273. pwd)`
  1274. # When building in place, set srcdir=.
  1275. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1276. srcdir=.
  1277. fi
  1278. # Remove unnecessary trailing slashes from srcdir.
  1279. # Double slashes in file names in object file debugging info
  1280. # mess up M-x gdb in Emacs.
  1281. case $srcdir in
  1282. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1283. esac
  1284. for ac_var in $ac_precious_vars; do
  1285. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1286. eval ac_env_${ac_var}_value=\$${ac_var}
  1287. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1288. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1289. done
  1290. #
  1291. # Report the --help message.
  1292. #
  1293. if test "$ac_init_help" = "long"; then
  1294. # Omit some internal or obsolete options to make the list less imposing.
  1295. # This message is too long to be a string in the A/UX 3.1 sh.
  1296. cat <<_ACEOF
  1297. \`configure' configures DevIL 1.7.8 to adapt to many kinds of systems.
  1298. Usage: $0 [OPTION]... [VAR=VALUE]...
  1299. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1300. VAR=VALUE. See below for descriptions of some of the useful variables.
  1301. Defaults for the options are specified in brackets.
  1302. Configuration:
  1303. -h, --help display this help and exit
  1304. --help=short display options specific to this package
  1305. --help=recursive display the short help of all the included packages
  1306. -V, --version display version information and exit
  1307. -q, --quiet, --silent do not print \`checking...' messages
  1308. --cache-file=FILE cache test results in FILE [disabled]
  1309. -C, --config-cache alias for \`--cache-file=config.cache'
  1310. -n, --no-create do not create output files
  1311. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1312. Installation directories:
  1313. --prefix=PREFIX install architecture-independent files in PREFIX
  1314. [$ac_default_prefix]
  1315. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1316. [PREFIX]
  1317. By default, \`make install' will install all the files in
  1318. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1319. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1320. for instance \`--prefix=\$HOME'.
  1321. For better control, use the options below.
  1322. Fine tuning of the installation directories:
  1323. --bindir=DIR user executables [EPREFIX/bin]
  1324. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1325. --libexecdir=DIR program executables [EPREFIX/libexec]
  1326. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1327. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1328. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1329. --libdir=DIR object code libraries [EPREFIX/lib]
  1330. --includedir=DIR C header files [PREFIX/include]
  1331. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1332. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1333. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1334. --infodir=DIR info documentation [DATAROOTDIR/info]
  1335. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1336. --mandir=DIR man documentation [DATAROOTDIR/man]
  1337. --docdir=DIR documentation root [DATAROOTDIR/doc/devil]
  1338. --htmldir=DIR html documentation [DOCDIR]
  1339. --dvidir=DIR dvi documentation [DOCDIR]
  1340. --pdfdir=DIR pdf documentation [DOCDIR]
  1341. --psdir=DIR ps documentation [DOCDIR]
  1342. _ACEOF
  1343. cat <<\_ACEOF
  1344. Program names:
  1345. --program-prefix=PREFIX prepend PREFIX to installed program names
  1346. --program-suffix=SUFFIX append SUFFIX to installed program names
  1347. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1348. X features:
  1349. --x-includes=DIR X include files are in DIR
  1350. --x-libraries=DIR X library files are in DIR
  1351. System types:
  1352. --build=BUILD configure for building on BUILD [guessed]
  1353. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1354. _ACEOF
  1355. fi
  1356. if test -n "$ac_init_help"; then
  1357. case $ac_init_help in
  1358. short | recursive ) echo "Configuration of DevIL 1.7.8:";;
  1359. esac
  1360. cat <<\_ACEOF
  1361. Optional Features:
  1362. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1363. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1364. --enable-shared[=PKGS] build shared libraries [default=yes]
  1365. --enable-static[=PKGS] build static libraries [default=yes]
  1366. --enable-fast-install[=PKGS]
  1367. optimize for fast installation [default=yes]
  1368. --disable-libtool-lock avoid locking (might break parallel builds)
  1369. --disable-dependency-tracking speeds up one-time build
  1370. --enable-dependency-tracking do not reject slow dependency extractors
  1371. --enable-debug Compile a debug version of the library
  1372. --disable-release Compile a debug version of the library, default
  1373. enabled if not building debug version
  1374. --disable-asm Use assembler routines if possible, default enable
  1375. if not building debug version
  1376. --enable-ILU=yes/no Build ILU part of DevIL. Default set to no
  1377. --enable-ILUT=yes/no Build ILUT part of DevIL. Default set to no. ILU
  1378. will be built along whether you want it or not since
  1379. ILUT depends upon it.
  1380. --enable-altivec Doesn't compile Altivec support. Overrides general
  1381. enable of ASM
  1382. --enable-sse Doesn't compile SSE support. Overrides general
  1383. enable of ASM
  1384. --enable-sse2 Doesn't compile SSE2 support. Overrides general
  1385. enable of ASM
  1386. --enable-sse3 Doesn't compile SSE3 support. Overrides general
  1387. enable of ASM
  1388. --enable-x86 Compile with x86 support
  1389. --enable-x86_64 Compile with x86_64 support
  1390. --enable-ppc Compile with ppc support
  1391. --enable-warning Compile breaks on warnings
  1392. --enable-game-formats=yes/no
  1393. Enable support for various game formats. Some people
  1394. may consider that redundant. (default=yes)
  1395. --enable-blp Compile blp support. BLP is the texture format for
  1396. Blizzard games. (default=yes)
  1397. --enable-bmp Compile bmp support. BMP is a standard Windows
  1398. bitmap. (default=yes)
  1399. --enable-dcx Compile dcx support. DCX is a multi-page PCX file.
  1400. (default=yes)
  1401. --enable-dds Compile dds support. DDS (DirectDraw Surface) is
  1402. used by DirectX to load images (usually DXTC).
  1403. (default=yes)
  1404. --enable-dicom Compile dicom support. DICOM (Digital Imaging and
  1405. Communications in Medicine) is used extensively in
  1406. medical imaging. (default=yes)
  1407. --enable-doom Compile doom support. WAD is the format for graphics
  1408. in the original DooM I/II. (default=yes)
  1409. --enable-exr Compile exr support. EXR is a HDR image file format
  1410. standardized by Industrial Light and Magic. OpenEXR
  1411. powered (default=yes)
  1412. --enable-fits Compile fits support. FITS (Flexible Image Transport
  1413. System) is used for storing scientific images and is
  1414. used extensively in astronomy. (default=yes)
  1415. --enable-gif Compile gif support. GIF is lossy and proprietary
  1416. format used mainly to make animations (default=yes)
  1417. --enable-hdr Compile hdr support. HDR is the Radiance High
  1418. Dynamic Range format, using more bits per channel
  1419. than normal. (default=yes)
  1420. --enable-icns Compile icns support. ICNS is the icon format for
  1421. the Mac OS X operation system. (default=yes)
  1422. --enable-icon Compile icon support. ICO is the icon format for the
  1423. Windows operating system. (default=yes)
  1424. --enable-iff Compile iff support. IFF (Interchange File Format)
  1425. is used to transfer images between software from
  1426. different companies. (default=yes)
  1427. --enable-ilbm Compile ilbm support. ILBM (Amiga Interleaved BitMap
  1428. Format). (default=yes)
  1429. --enable-iwi Compile iwi support. IWI is the Infinity Ward Image
  1430. format used in the Call of Duty games. (default=yes)
  1431. --enable-jpeg Compile jpeg support. JPEG is most common lossy
  1432. format. libjpeg powered (default=yes)
  1433. --enable-jp2 Compile jp2 support. JP2 (JPEG 2000) is a better,
  1434. but not so widespread, alternative to JPEG. JasPer
  1435. powered (default=yes)
  1436. --enable-lcms Compile lcms support. (default=yes)
  1437. --enable-lif Compile lif support. LIF is the image format of the
  1438. game Homeworld. (default=yes)
  1439. --enable-mdl Compile mdl support. MDL is the format for models in
  1440. the game Half-Life. (default=yes)
  1441. --enable-mng Compile mng support. MNG is basically the animated
  1442. version of PNG but is not widespread. (default=yes)
  1443. --enable-mp3 Compile mp3 support. MP3 (MPEG-1 Audio Layer 3)
  1444. sometimes have images in them, such as cover art.
  1445. (default=yes)
  1446. --enable-pcx Compile pcx support. PCX is one of the first widely
  1447. accepted DOS imaging standards (default=yes)
  1448. --enable-pcd Compile pcd support. PCD is the Kodak PhotoCD
  1449. format. (default=yes)
  1450. --enable-pic Compile pic support. PIC is used by SoftImage
  1451. software. (default=yes)
  1452. --enable-pix Compile pix support. (default=yes)
  1453. --enable-png Compile png support. PNG is a smart, loseless and
  1454. even open format. libpng powered. (default=yes)
  1455. --enable-pnm Compile pnm support. PNM (Portable aNy Map format)
  1456. is considered the least-common-denominator for
  1457. converting pixmap, graymap, or bitmap files between
  1458. different platforms. (default=yes)
  1459. --enable-psd Compile psd support. PSD is the PhotoShop native
  1460. file format. (default=yes)
  1461. --enable-psp Compile psp support. PSP is the Paint Shop Pro
  1462. native file format. (default=yes)
  1463. --enable-pxr Compile pxr support. PXR is used by Pixar.
  1464. (default=yes)
  1465. --enable-raw Compile raw support. RAW is simply raw data.
  1466. (default=yes)
  1467. --enable-rot Compile rot support. ROT is the image format for the
  1468. game Homeworld 2. (default=yes)
  1469. --enable-sgi Compile sgi support. SGI is the native raster
  1470. graphics file format for Silicon Graphics
  1471. workstations (default=yes)
  1472. --enable-sun Compile sun support. SUN is the image format used on
  1473. Sun's operating systems. (default=yes)
  1474. --enable-texture Compile texture support. TEXTURE is the format used
  1475. in Medieval II: Total War (similar to DDS).
  1476. (default=yes)
  1477. --enable-tga Compile tga support. TGA (aka TARGA file format) has
  1478. been used mainly in games. It is open and simple.
  1479. (default=yes)
  1480. --enable-tiff Compile tiff support. TIFF is a lossless format
  1481. supporting greater color depths. libtiff powered
  1482. (default=yes)
  1483. --enable-tpl Compile tpl support. TPL is the format used by many
  1484. GameCube and Wii games. (default=yes)
  1485. --enable-utx Compile utx support. UTX is the format used in the
  1486. Unreal Tournament game series. (default=yes)
  1487. --enable-vtf Compile vtf support. VTF (Valve Texture Format) is
  1488. used by games based on Valve's Source engine.
  1489. (default=yes)
  1490. --enable-wal Compile wal support. WAL is the image format used
  1491. for the game Quake 2. (default=yes)
  1492. --enable-wbmp Compile wbmp support. WBMP (Wireless Application
  1493. Protocol Bitmap) is a monochrome graphics file
  1494. format optimized for mobile computing devices
  1495. (default=yes)
  1496. --enable-wdp Compile wdp support. WDP is Microsoft's successor to
  1497. JPEG, able to store many different image types
  1498. either lossy or losslessly, also known as HD Photo.
  1499. (default=yes)
  1500. --enable-xpm Compile xpm support. XPM (X PixMap) is an
  1501. ASCII-based image used in X Windows. (default=yes)
  1502. --enable-allegro Compiles allegro support for ILUT (default=yes)
  1503. --disable-allegrotest Do not try to compile and run a test LIBallegro program
  1504. --enable-directx8 Compiles directx8 support for ILUT (default=yes)
  1505. --enable-directx9 Compiles directx9 support for ILUT (default=yes)
  1506. --enable-opengl Compiles opengl support for ILUT (default=yes)
  1507. --enable-sdl Compiles sdl support for ILUT (default=yes)
  1508. --disable-sdltest Do not try to compile and run a test SDL program
  1509. --enable-w32 Compiles w32 support for ILUT (default=yes)
  1510. --enable-x11 Compiles x11 support for ILUT (default=yes)
  1511. --enable-shm Compiles shm support for ILUT (default=yes)
  1512. --enable-render Compiles render support for ILUT (default=yes)
  1513. Optional Packages:
  1514. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1515. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1516. --with-pic try to use only PIC/non-PIC objects [default=use
  1517. both]
  1518. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1519. --with-examples=yes/no Whether to build and install examples as well.
  1520. Default is without examples
  1521. --with-zlib=yes/no Do wou want to use zlib?
  1522. --with-squish=yes/no Do you want to use the squish library if possible?
  1523. (enables HW accelerated DXT compression,
  1524. default="yes")
  1525. --with-nvtt=yes/no Do you want to use the Nvidia texture tools if
  1526. possible? (enables GPU accelerated image
  1527. manipulation, default="yes")
  1528. --with-allegro-prefix=PFX Prefix where liballegro is installed (optional)
  1529. --with-allegro-exec-prefix=PFX Exec prefix where liballegro is installed (optional)
  1530. --with-x use the X Window System
  1531. --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
  1532. --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
  1533. Some influential environment variables:
  1534. CC C compiler command
  1535. CFLAGS C compiler flags
  1536. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1537. nonstandard directory <lib dir>
  1538. LIBS libraries to pass to the linker, e.g. -l<library>
  1539. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1540. you have headers in a nonstandard directory <include dir>
  1541. CPP C preprocessor
  1542. CXX C++ compiler command
  1543. CXXFLAGS C++ compiler flags
  1544. CXXCPP C++ preprocessor
  1545. PKG_CONFIG path to pkg-config utility
  1546. OPENEXR_CFLAGS
  1547. C compiler flags for OPENEXR, overriding pkg-config
  1548. OPENEXR_LIBS
  1549. linker flags for OPENEXR, overriding pkg-config
  1550. XMKMF Path to xmkmf, Makefile generator for X Window System
  1551. Use these variables to override the choices made by `configure' or to help
  1552. it to find libraries and programs with nonstandard names/locations.
  1553. Report bugs to <bubla@users.sourceforge.net>.
  1554. _ACEOF
  1555. ac_status=$?
  1556. fi
  1557. if test "$ac_init_help" = "recursive"; then
  1558. # If there are subdirs, report their specific --help.
  1559. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1560. test -d "$ac_dir" || continue
  1561. ac_builddir=.
  1562. case "$ac_dir" in
  1563. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1564. *)
  1565. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1566. # A ".." for each directory in $ac_dir_suffix.
  1567. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1568. case $ac_top_builddir_sub in
  1569. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1570. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1571. esac ;;
  1572. esac
  1573. ac_abs_top_builddir=$ac_pwd
  1574. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1575. # for backward compatibility:
  1576. ac_top_builddir=$ac_top_build_prefix
  1577. case $srcdir in
  1578. .) # We are building in place.
  1579. ac_srcdir=.
  1580. ac_top_srcdir=$ac_top_builddir_sub
  1581. ac_abs_top_srcdir=$ac_pwd ;;
  1582. [\\/]* | ?:[\\/]* ) # Absolute name.
  1583. ac_srcdir=$srcdir$ac_dir_suffix;
  1584. ac_top_srcdir=$srcdir
  1585. ac_abs_top_srcdir=$srcdir ;;
  1586. *) # Relative name.
  1587. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1588. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1589. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1590. esac
  1591. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1592. cd "$ac_dir" || { ac_status=$?; continue; }
  1593. # Check for guested configure.
  1594. if test -f "$ac_srcdir/configure.gnu"; then
  1595. echo &&
  1596. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1597. elif test -f "$ac_srcdir/configure"; then
  1598. echo &&
  1599. $SHELL "$ac_srcdir/configure" --help=recursive
  1600. else
  1601. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1602. fi || ac_status=$?
  1603. cd "$ac_pwd" || { ac_status=$?; break; }
  1604. done
  1605. fi
  1606. test -n "$ac_init_help" && exit $ac_status
  1607. if $ac_init_version; then
  1608. cat <<\_ACEOF
  1609. DevIL configure 1.7.8
  1610. generated by GNU Autoconf 2.61
  1611. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1612. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1613. This configure script is free software; the Free Software Foundation
  1614. gives unlimited permission to copy, distribute and modify it.
  1615. _ACEOF
  1616. exit
  1617. fi
  1618. cat >config.log <<_ACEOF
  1619. This file contains any messages produced by compilers while
  1620. running configure, to aid debugging if configure makes a mistake.
  1621. It was created by DevIL $as_me 1.7.8, which was
  1622. generated by GNU Autoconf 2.61. Invocation command line was
  1623. $ $0 $@
  1624. _ACEOF
  1625. exec 5>>config.log
  1626. {
  1627. cat <<_ASUNAME
  1628. ## --------- ##
  1629. ## Platform. ##
  1630. ## --------- ##
  1631. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1632. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1633. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1634. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1635. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1636. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1637. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1638. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1639. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1640. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1641. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1642. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1643. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1644. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1645. _ASUNAME
  1646. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1647. for as_dir in $PATH
  1648. do
  1649. IFS=$as_save_IFS
  1650. test -z "$as_dir" && as_dir=.
  1651. echo "PATH: $as_dir"
  1652. done
  1653. IFS=$as_save_IFS
  1654. } >&5
  1655. cat >&5 <<_ACEOF
  1656. ## ----------- ##
  1657. ## Core tests. ##
  1658. ## ----------- ##
  1659. _ACEOF
  1660. # Keep a trace of the command line.
  1661. # Strip out --no-create and --no-recursion so they do not pile up.
  1662. # Strip out --silent because we don't want to record it for future runs.
  1663. # Also quote any args containing shell meta-characters.
  1664. # Make two passes to allow for proper duplicate-argument suppression.
  1665. ac_configure_args=
  1666. ac_configure_args0=
  1667. ac_configure_args1=
  1668. ac_must_keep_next=false
  1669. for ac_pass in 1 2
  1670. do
  1671. for ac_arg
  1672. do
  1673. case $ac_arg in
  1674. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1675. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1676. | -silent | --silent | --silen | --sile | --sil)
  1677. continue ;;
  1678. *\'*)
  1679. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1680. esac
  1681. case $ac_pass in
  1682. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1683. 2)
  1684. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1685. if test $ac_must_keep_next = true; then
  1686. ac_must_keep_next=false # Got value, back to normal.
  1687. else
  1688. case $ac_arg in
  1689. *=* | --config-cache | -C | -disable-* | --disable-* \
  1690. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1691. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1692. | -with-* | --with-* | -without-* | --without-* | --x)
  1693. case "$ac_configure_args0 " in
  1694. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1695. esac
  1696. ;;
  1697. -* ) ac_must_keep_next=true ;;
  1698. esac
  1699. fi
  1700. ac_configure_args="$ac_configure_args '$ac_arg'"
  1701. ;;
  1702. esac
  1703. done
  1704. done
  1705. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1706. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1707. # When interrupted or exit'd, cleanup temporary files, and complete
  1708. # config.log. We remove comments because anyway the quotes in there
  1709. # would cause problems or look ugly.
  1710. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1711. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1712. trap 'exit_status=$?
  1713. # Save into config.log some information that might help in debugging.
  1714. {
  1715. echo
  1716. cat <<\_ASBOX
  1717. ## ---------------- ##
  1718. ## Cache variables. ##
  1719. ## ---------------- ##
  1720. _ASBOX
  1721. echo
  1722. # The following way of writing the cache mishandles newlines in values,
  1723. (
  1724. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1725. eval ac_val=\$$ac_var
  1726. case $ac_val in #(
  1727. *${as_nl}*)
  1728. case $ac_var in #(
  1729. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1730. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1731. esac
  1732. case $ac_var in #(
  1733. _ | IFS | as_nl) ;; #(
  1734. *) $as_unset $ac_var ;;
  1735. esac ;;
  1736. esac
  1737. done
  1738. (set) 2>&1 |
  1739. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1740. *${as_nl}ac_space=\ *)
  1741. sed -n \
  1742. "s/'\''/'\''\\\\'\'''\''/g;
  1743. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1744. ;; #(
  1745. *)
  1746. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1747. ;;
  1748. esac |
  1749. sort
  1750. )
  1751. echo
  1752. cat <<\_ASBOX
  1753. ## ----------------- ##
  1754. ## Output variables. ##
  1755. ## ----------------- ##
  1756. _ASBOX
  1757. echo
  1758. for ac_var in $ac_subst_vars
  1759. do
  1760. eval ac_val=\$$ac_var
  1761. case $ac_val in
  1762. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1763. esac
  1764. echo "$ac_var='\''$ac_val'\''"
  1765. done | sort
  1766. echo
  1767. if test -n "$ac_subst_files"; then
  1768. cat <<\_ASBOX
  1769. ## ------------------- ##
  1770. ## File substitutions. ##
  1771. ## ------------------- ##
  1772. _ASBOX
  1773. echo
  1774. for ac_var in $ac_subst_files
  1775. do
  1776. eval ac_val=\$$ac_var
  1777. case $ac_val in
  1778. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1779. esac
  1780. echo "$ac_var='\''$ac_val'\''"
  1781. done | sort
  1782. echo
  1783. fi
  1784. if test -s confdefs.h; then
  1785. cat <<\_ASBOX
  1786. ## ----------- ##
  1787. ## confdefs.h. ##
  1788. ## ----------- ##
  1789. _ASBOX
  1790. echo
  1791. cat confdefs.h
  1792. echo
  1793. fi
  1794. test "$ac_signal" != 0 &&
  1795. echo "$as_me: caught signal $ac_signal"
  1796. echo "$as_me: exit $exit_status"
  1797. } >&5
  1798. rm -f core *.core core.conftest.* &&
  1799. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1800. exit $exit_status
  1801. ' 0
  1802. for ac_signal in 1 2 13 15; do
  1803. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1804. done
  1805. ac_signal=0
  1806. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1807. rm -f -r conftest* confdefs.h
  1808. # Predefined preprocessor variables.
  1809. cat >>confdefs.h <<_ACEOF
  1810. #define PACKAGE_NAME "$PACKAGE_NAME"
  1811. _ACEOF
  1812. cat >>confdefs.h <<_ACEOF
  1813. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1814. _ACEOF
  1815. cat >>confdefs.h <<_ACEOF
  1816. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1817. _ACEOF
  1818. cat >>confdefs.h <<_ACEOF
  1819. #define PACKAGE_STRING "$PACKAGE_STRING"
  1820. _ACEOF
  1821. cat >>confdefs.h <<_ACEOF
  1822. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1823. _ACEOF
  1824. # Let the site file select an alternate cache file if it wants to.
  1825. # Prefer explicitly selected file to automatically selected ones.
  1826. if test -n "$CONFIG_SITE"; then
  1827. set x "$CONFIG_SITE"
  1828. elif test "x$prefix" != xNONE; then
  1829. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1830. else
  1831. set x "$ac_default_prefix/share/config.site" \
  1832. "$ac_default_prefix/etc/config.site"
  1833. fi
  1834. shift
  1835. for ac_site_file
  1836. do
  1837. if test -r "$ac_site_file"; then
  1838. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1839. echo "$as_me: loading site script $ac_site_file" >&6;}
  1840. sed 's/^/| /' "$ac_site_file" >&5
  1841. . "$ac_site_file"
  1842. fi
  1843. done
  1844. if test -r "$cache_file"; then
  1845. # Some versions of bash will fail to source /dev/null (special
  1846. # files actually), so we avoid doing that.
  1847. if test -f "$cache_file"; then
  1848. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1849. echo "$as_me: loading cache $cache_file" >&6;}
  1850. case $cache_file in
  1851. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1852. *) . "./$cache_file";;
  1853. esac
  1854. fi
  1855. else
  1856. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1857. echo "$as_me: creating cache $cache_file" >&6;}
  1858. >$cache_file
  1859. fi
  1860. # Check that the precious variables saved in the cache have kept the same
  1861. # value.
  1862. ac_cache_corrupted=false
  1863. for ac_var in $ac_precious_vars; do
  1864. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1865. eval ac_new_set=\$ac_env_${ac_var}_set
  1866. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1867. eval ac_new_val=\$ac_env_${ac_var}_value
  1868. case $ac_old_set,$ac_new_set in
  1869. set,)
  1870. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1871. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1872. ac_cache_corrupted=: ;;
  1873. ,set)
  1874. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1875. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1876. ac_cache_corrupted=: ;;
  1877. ,);;
  1878. *)
  1879. if test "x$ac_old_val" != "x$ac_new_val"; then
  1880. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1881. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1882. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1883. echo "$as_me: former value: $ac_old_val" >&2;}
  1884. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1885. echo "$as_me: current value: $ac_new_val" >&2;}
  1886. ac_cache_corrupted=:
  1887. fi;;
  1888. esac
  1889. # Pass precious variables to config.status.
  1890. if test "$ac_new_set" = set; then
  1891. case $ac_new_val in
  1892. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1893. *) ac_arg=$ac_var=$ac_new_val ;;
  1894. esac
  1895. case " $ac_configure_args " in
  1896. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1897. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1898. esac
  1899. fi
  1900. done
  1901. if $ac_cache_corrupted; then
  1902. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1903. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1904. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1905. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1906. { (exit 1); exit 1; }; }
  1907. fi
  1908. ac_ext=c
  1909. ac_cpp='$CPP $CPPFLAGS'
  1910. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1911. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1912. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1913. ac_config_headers="$ac_config_headers include/IL/config.h"
  1914. ac_aux_dir=
  1915. for ac_dir in build-aux "$srcdir"/build-aux; do
  1916. if test -f "$ac_dir/install-sh"; then
  1917. ac_aux_dir=$ac_dir
  1918. ac_install_sh="$ac_aux_dir/install-sh -c"
  1919. break
  1920. elif test -f "$ac_dir/install.sh"; then
  1921. ac_aux_dir=$ac_dir
  1922. ac_install_sh="$ac_aux_dir/install.sh -c"
  1923. break
  1924. elif test -f "$ac_dir/shtool"; then
  1925. ac_aux_dir=$ac_dir
  1926. ac_install_sh="$ac_aux_dir/shtool install -c"
  1927. break
  1928. fi
  1929. done
  1930. if test -z "$ac_aux_dir"; then
  1931. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&5
  1932. echo "$as_me: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&2;}
  1933. { (exit 1); exit 1; }; }
  1934. fi
  1935. # These three variables are undocumented and unsupported,
  1936. # and are intended to be withdrawn in a future Autoconf release.
  1937. # They can cause serious problems if a builder's source tree is in a directory
  1938. # whose full name contains unusual characters.
  1939. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1940. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1941. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1942. case `pwd` in
  1943. *\ * | *\ *)
  1944. { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  1945. echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  1946. esac
  1947. macro_version='2.2.4'
  1948. macro_revision='1.2976'
  1949. ltmain="$ac_aux_dir/ltmain.sh"
  1950. # Make sure we can run config.sub.
  1951. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1952. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  1953. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  1954. { (exit 1); exit 1; }; }
  1955. { echo "$as_me:$LINENO: checking build system type" >&5
  1956. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  1957. if test "${ac_cv_build+set}" = set; then
  1958. echo $ECHO_N "(cached) $ECHO_C" >&6
  1959. else
  1960. ac_build_alias=$build_alias
  1961. test "x$ac_build_alias" = x &&
  1962. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1963. test "x$ac_build_alias" = x &&
  1964. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1965. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1966. { (exit 1); exit 1; }; }
  1967. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1968. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  1969. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  1970. { (exit 1); exit 1; }; }
  1971. fi
  1972. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1973. echo "${ECHO_T}$ac_cv_build" >&6; }
  1974. case $ac_cv_build in
  1975. *-*-*) ;;
  1976. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  1977. echo "$as_me: error: invalid value of canonical build" >&2;}
  1978. { (exit 1); exit 1; }; };;
  1979. esac
  1980. build=$ac_cv_build
  1981. ac_save_IFS=$IFS; IFS='-'
  1982. set x $ac_cv_build
  1983. shift
  1984. build_cpu=$1
  1985. build_vendor=$2
  1986. shift; shift
  1987. # Remember, the first character of IFS is used to create $*,
  1988. # except with old shells:
  1989. build_os=$*
  1990. IFS=$ac_save_IFS
  1991. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  1992. { echo "$as_me:$LINENO: checking host system type" >&5
  1993. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  1994. if test "${ac_cv_host+set}" = set; then
  1995. echo $ECHO_N "(cached) $ECHO_C" >&6
  1996. else
  1997. if test "x$host_alias" = x; then
  1998. ac_cv_host=$ac_cv_build
  1999. else
  2000. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2001. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  2002. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  2003. { (exit 1); exit 1; }; }
  2004. fi
  2005. fi
  2006. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  2007. echo "${ECHO_T}$ac_cv_host" >&6; }
  2008. case $ac_cv_host in
  2009. *-*-*) ;;
  2010. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  2011. echo "$as_me: error: invalid value of canonical host" >&2;}
  2012. { (exit 1); exit 1; }; };;
  2013. esac
  2014. host=$ac_cv_host
  2015. ac_save_IFS=$IFS; IFS='-'
  2016. set x $ac_cv_host
  2017. shift
  2018. host_cpu=$1
  2019. host_vendor=$2
  2020. shift; shift
  2021. # Remember, the first character of IFS is used to create $*,
  2022. # except with old shells:
  2023. host_os=$*
  2024. IFS=$ac_save_IFS
  2025. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2026. ac_ext=c
  2027. ac_cpp='$CPP $CPPFLAGS'
  2028. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2029. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2030. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2031. if test -n "$ac_tool_prefix"; then
  2032. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2033. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2034. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2035. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2036. if test "${ac_cv_prog_CC+set}" = set; then
  2037. echo $ECHO_N "(cached) $ECHO_C" >&6
  2038. else
  2039. if test -n "$CC"; then
  2040. ac_cv_prog_CC="$CC" # Let the user override the test.
  2041. else
  2042. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2043. for as_dir in $PATH
  2044. do
  2045. IFS=$as_save_IFS
  2046. test -z "$as_dir" && as_dir=.
  2047. for ac_exec_ext in '' $ac_executable_extensions; do
  2048. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2049. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2050. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2051. break 2
  2052. fi
  2053. done
  2054. done
  2055. IFS=$as_save_IFS
  2056. fi
  2057. fi
  2058. CC=$ac_cv_prog_CC
  2059. if test -n "$CC"; then
  2060. { echo "$as_me:$LINENO: result: $CC" >&5
  2061. echo "${ECHO_T}$CC" >&6; }
  2062. else
  2063. { echo "$as_me:$LINENO: result: no" >&5
  2064. echo "${ECHO_T}no" >&6; }
  2065. fi
  2066. fi
  2067. if test -z "$ac_cv_prog_CC"; then
  2068. ac_ct_CC=$CC
  2069. # Extract the first word of "gcc", so it can be a program name with args.
  2070. set dummy gcc; ac_word=$2
  2071. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2072. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2073. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2074. echo $ECHO_N "(cached) $ECHO_C" >&6
  2075. else
  2076. if test -n "$ac_ct_CC"; then
  2077. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2078. else
  2079. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2080. for as_dir in $PATH
  2081. do
  2082. IFS=$as_save_IFS
  2083. test -z "$as_dir" && as_dir=.
  2084. for ac_exec_ext in '' $ac_executable_extensions; do
  2085. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2086. ac_cv_prog_ac_ct_CC="gcc"
  2087. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2088. break 2
  2089. fi
  2090. done
  2091. done
  2092. IFS=$as_save_IFS
  2093. fi
  2094. fi
  2095. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2096. if test -n "$ac_ct_CC"; then
  2097. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2098. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2099. else
  2100. { echo "$as_me:$LINENO: result: no" >&5
  2101. echo "${ECHO_T}no" >&6; }
  2102. fi
  2103. if test "x$ac_ct_CC" = x; then
  2104. CC=""
  2105. else
  2106. case $cross_compiling:$ac_tool_warned in
  2107. yes:)
  2108. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2109. whose name does not start with the host triplet. If you think this
  2110. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2111. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2112. whose name does not start with the host triplet. If you think this
  2113. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2114. ac_tool_warned=yes ;;
  2115. esac
  2116. CC=$ac_ct_CC
  2117. fi
  2118. else
  2119. CC="$ac_cv_prog_CC"
  2120. fi
  2121. if test -z "$CC"; then
  2122. if test -n "$ac_tool_prefix"; then
  2123. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2124. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2125. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2126. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2127. if test "${ac_cv_prog_CC+set}" = set; then
  2128. echo $ECHO_N "(cached) $ECHO_C" >&6
  2129. else
  2130. if test -n "$CC"; then
  2131. ac_cv_prog_CC="$CC" # Let the user override the test.
  2132. else
  2133. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2134. for as_dir in $PATH
  2135. do
  2136. IFS=$as_save_IFS
  2137. test -z "$as_dir" && as_dir=.
  2138. for ac_exec_ext in '' $ac_executable_extensions; do
  2139. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2140. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2141. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2142. break 2
  2143. fi
  2144. done
  2145. done
  2146. IFS=$as_save_IFS
  2147. fi
  2148. fi
  2149. CC=$ac_cv_prog_CC
  2150. if test -n "$CC"; then
  2151. { echo "$as_me:$LINENO: result: $CC" >&5
  2152. echo "${ECHO_T}$CC" >&6; }
  2153. else
  2154. { echo "$as_me:$LINENO: result: no" >&5
  2155. echo "${ECHO_T}no" >&6; }
  2156. fi
  2157. fi
  2158. fi
  2159. if test -z "$CC"; then
  2160. # Extract the first word of "cc", so it can be a program name with args.
  2161. set dummy cc; ac_word=$2
  2162. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2163. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2164. if test "${ac_cv_prog_CC+set}" = set; then
  2165. echo $ECHO_N "(cached) $ECHO_C" >&6
  2166. else
  2167. if test -n "$CC"; then
  2168. ac_cv_prog_CC="$CC" # Let the user override the test.
  2169. else
  2170. ac_prog_rejected=no
  2171. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2172. for as_dir in $PATH
  2173. do
  2174. IFS=$as_save_IFS
  2175. test -z "$as_dir" && as_dir=.
  2176. for ac_exec_ext in '' $ac_executable_extensions; do
  2177. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2178. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2179. ac_prog_rejected=yes
  2180. continue
  2181. fi
  2182. ac_cv_prog_CC="cc"
  2183. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2184. break 2
  2185. fi
  2186. done
  2187. done
  2188. IFS=$as_save_IFS
  2189. if test $ac_prog_rejected = yes; then
  2190. # We found a bogon in the path, so make sure we never use it.
  2191. set dummy $ac_cv_prog_CC
  2192. shift
  2193. if test $# != 0; then
  2194. # We chose a different compiler from the bogus one.
  2195. # However, it has the same basename, so the bogon will be chosen
  2196. # first if we set CC to just the basename; use the full file name.
  2197. shift
  2198. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2199. fi
  2200. fi
  2201. fi
  2202. fi
  2203. CC=$ac_cv_prog_CC
  2204. if test -n "$CC"; then
  2205. { echo "$as_me:$LINENO: result: $CC" >&5
  2206. echo "${ECHO_T}$CC" >&6; }
  2207. else
  2208. { echo "$as_me:$LINENO: result: no" >&5
  2209. echo "${ECHO_T}no" >&6; }
  2210. fi
  2211. fi
  2212. if test -z "$CC"; then
  2213. if test -n "$ac_tool_prefix"; then
  2214. for ac_prog in cl.exe
  2215. do
  2216. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2217. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2218. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2219. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2220. if test "${ac_cv_prog_CC+set}" = set; then
  2221. echo $ECHO_N "(cached) $ECHO_C" >&6
  2222. else
  2223. if test -n "$CC"; then
  2224. ac_cv_prog_CC="$CC" # Let the user override the test.
  2225. else
  2226. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2227. for as_dir in $PATH
  2228. do
  2229. IFS=$as_save_IFS
  2230. test -z "$as_dir" && as_dir=.
  2231. for ac_exec_ext in '' $ac_executable_extensions; do
  2232. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2233. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2234. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2235. break 2
  2236. fi
  2237. done
  2238. done
  2239. IFS=$as_save_IFS
  2240. fi
  2241. fi
  2242. CC=$ac_cv_prog_CC
  2243. if test -n "$CC"; then
  2244. { echo "$as_me:$LINENO: result: $CC" >&5
  2245. echo "${ECHO_T}$CC" >&6; }
  2246. else
  2247. { echo "$as_me:$LINENO: result: no" >&5
  2248. echo "${ECHO_T}no" >&6; }
  2249. fi
  2250. test -n "$CC" && break
  2251. done
  2252. fi
  2253. if test -z "$CC"; then
  2254. ac_ct_CC=$CC
  2255. for ac_prog in cl.exe
  2256. do
  2257. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2258. set dummy $ac_prog; ac_word=$2
  2259. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2260. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2261. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2262. echo $ECHO_N "(cached) $ECHO_C" >&6
  2263. else
  2264. if test -n "$ac_ct_CC"; then
  2265. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2266. else
  2267. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2268. for as_dir in $PATH
  2269. do
  2270. IFS=$as_save_IFS
  2271. test -z "$as_dir" && as_dir=.
  2272. for ac_exec_ext in '' $ac_executable_extensions; do
  2273. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2274. ac_cv_prog_ac_ct_CC="$ac_prog"
  2275. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2276. break 2
  2277. fi
  2278. done
  2279. done
  2280. IFS=$as_save_IFS
  2281. fi
  2282. fi
  2283. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2284. if test -n "$ac_ct_CC"; then
  2285. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2286. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2287. else
  2288. { echo "$as_me:$LINENO: result: no" >&5
  2289. echo "${ECHO_T}no" >&6; }
  2290. fi
  2291. test -n "$ac_ct_CC" && break
  2292. done
  2293. if test "x$ac_ct_CC" = x; then
  2294. CC=""
  2295. else
  2296. case $cross_compiling:$ac_tool_warned in
  2297. yes:)
  2298. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2299. whose name does not start with the host triplet. If you think this
  2300. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2301. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2302. whose name does not start with the host triplet. If you think this
  2303. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2304. ac_tool_warned=yes ;;
  2305. esac
  2306. CC=$ac_ct_CC
  2307. fi
  2308. fi
  2309. fi
  2310. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2311. See \`config.log' for more details." >&5
  2312. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2313. See \`config.log' for more details." >&2;}
  2314. { (exit 1); exit 1; }; }
  2315. # Provide some information about the compiler.
  2316. echo "$as_me:$LINENO: checking for C compiler version" >&5
  2317. ac_compiler=`set X $ac_compile; echo $2`
  2318. { (ac_try="$ac_compiler --version >&5"
  2319. case "(($ac_try" in
  2320. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2321. *) ac_try_echo=$ac_try;;
  2322. esac
  2323. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2324. (eval "$ac_compiler --version >&5") 2>&5
  2325. ac_status=$?
  2326. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2327. (exit $ac_status); }
  2328. { (ac_try="$ac_compiler -v >&5"
  2329. case "(($ac_try" in
  2330. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2331. *) ac_try_echo=$ac_try;;
  2332. esac
  2333. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2334. (eval "$ac_compiler -v >&5") 2>&5
  2335. ac_status=$?
  2336. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2337. (exit $ac_status); }
  2338. { (ac_try="$ac_compiler -V >&5"
  2339. case "(($ac_try" in
  2340. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2341. *) ac_try_echo=$ac_try;;
  2342. esac
  2343. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2344. (eval "$ac_compiler -V >&5") 2>&5
  2345. ac_status=$?
  2346. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2347. (exit $ac_status); }
  2348. cat >conftest.$ac_ext <<_ACEOF
  2349. /* confdefs.h. */
  2350. _ACEOF
  2351. cat confdefs.h >>conftest.$ac_ext
  2352. cat >>conftest.$ac_ext <<_ACEOF
  2353. /* end confdefs.h. */
  2354. int
  2355. main ()
  2356. {
  2357. ;
  2358. return 0;
  2359. }
  2360. _ACEOF
  2361. ac_clean_files_save=$ac_clean_files
  2362. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2363. # Try to create an executable without -o first, disregard a.out.
  2364. # It will help us diagnose broken compilers, and finding out an intuition
  2365. # of exeext.
  2366. { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2367. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  2368. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2369. #
  2370. # List of possible output files, starting from the most likely.
  2371. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2372. # only as a last resort. b.out is created by i960 compilers.
  2373. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2374. #
  2375. # The IRIX 6 linker writes into existing files which may not be
  2376. # executable, retaining their permissions. Remove them first so a
  2377. # subsequent execution test works.
  2378. ac_rmfiles=
  2379. for ac_file in $ac_files
  2380. do
  2381. case $ac_file in
  2382. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2383. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2384. esac
  2385. done
  2386. rm -f $ac_rmfiles
  2387. if { (ac_try="$ac_link_default"
  2388. case "(($ac_try" in
  2389. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2390. *) ac_try_echo=$ac_try;;
  2391. esac
  2392. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2393. (eval "$ac_link_default") 2>&5
  2394. ac_status=$?
  2395. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2396. (exit $ac_status); }; then
  2397. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2398. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2399. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2400. # so that the user can short-circuit this test for compilers unknown to
  2401. # Autoconf.
  2402. for ac_file in $ac_files ''
  2403. do
  2404. test -f "$ac_file" || continue
  2405. case $ac_file in
  2406. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2407. ;;
  2408. [ab].out )
  2409. # We found the default executable, but exeext='' is most
  2410. # certainly right.
  2411. break;;
  2412. *.* )
  2413. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2414. then :; else
  2415. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2416. fi
  2417. # We set ac_cv_exeext here because the later test for it is not
  2418. # safe: cross compilers may not add the suffix if given an `-o'
  2419. # argument, so we may need to know it at that point already.
  2420. # Even if this section looks crufty: it has the advantage of
  2421. # actually working.
  2422. break;;
  2423. * )
  2424. break;;
  2425. esac
  2426. done
  2427. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2428. else
  2429. ac_file=''
  2430. fi
  2431. { echo "$as_me:$LINENO: result: $ac_file" >&5
  2432. echo "${ECHO_T}$ac_file" >&6; }
  2433. if test -z "$ac_file"; then
  2434. echo "$as_me: failed program was:" >&5
  2435. sed 's/^/| /' conftest.$ac_ext >&5
  2436. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2437. See \`config.log' for more details." >&5
  2438. echo "$as_me: error: C compiler cannot create executables
  2439. See \`config.log' for more details." >&2;}
  2440. { (exit 77); exit 77; }; }
  2441. fi
  2442. ac_exeext=$ac_cv_exeext
  2443. # Check that the compiler produces executables we can run. If not, either
  2444. # the compiler is broken, or we cross compile.
  2445. { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2446. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  2447. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2448. # If not cross compiling, check that we can run a simple program.
  2449. if test "$cross_compiling" != yes; then
  2450. if { ac_try='./$ac_file'
  2451. { (case "(($ac_try" in
  2452. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2453. *) ac_try_echo=$ac_try;;
  2454. esac
  2455. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2456. (eval "$ac_try") 2>&5
  2457. ac_status=$?
  2458. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2459. (exit $ac_status); }; }; then
  2460. cross_compiling=no
  2461. else
  2462. if test "$cross_compiling" = maybe; then
  2463. cross_compiling=yes
  2464. else
  2465. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2466. If you meant to cross compile, use \`--host'.
  2467. See \`config.log' for more details." >&5
  2468. echo "$as_me: error: cannot run C compiled programs.
  2469. If you meant to cross compile, use \`--host'.
  2470. See \`config.log' for more details." >&2;}
  2471. { (exit 1); exit 1; }; }
  2472. fi
  2473. fi
  2474. fi
  2475. { echo "$as_me:$LINENO: result: yes" >&5
  2476. echo "${ECHO_T}yes" >&6; }
  2477. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2478. ac_clean_files=$ac_clean_files_save
  2479. # Check that the compiler produces executables we can run. If not, either
  2480. # the compiler is broken, or we cross compile.
  2481. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2482. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2483. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2484. echo "${ECHO_T}$cross_compiling" >&6; }
  2485. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2486. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2487. if { (ac_try="$ac_link"
  2488. case "(($ac_try" in
  2489. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2490. *) ac_try_echo=$ac_try;;
  2491. esac
  2492. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2493. (eval "$ac_link") 2>&5
  2494. ac_status=$?
  2495. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2496. (exit $ac_status); }; then
  2497. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2498. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2499. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2500. # `rm'.
  2501. for ac_file in conftest.exe conftest conftest.*; do
  2502. test -f "$ac_file" || continue
  2503. case $ac_file in
  2504. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2505. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2506. break;;
  2507. * ) break;;
  2508. esac
  2509. done
  2510. else
  2511. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2512. See \`config.log' for more details." >&5
  2513. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2514. See \`config.log' for more details." >&2;}
  2515. { (exit 1); exit 1; }; }
  2516. fi
  2517. rm -f conftest$ac_cv_exeext
  2518. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2519. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2520. rm -f conftest.$ac_ext
  2521. EXEEXT=$ac_cv_exeext
  2522. ac_exeext=$EXEEXT
  2523. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2524. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2525. if test "${ac_cv_objext+set}" = set; then
  2526. echo $ECHO_N "(cached) $ECHO_C" >&6
  2527. else
  2528. cat >conftest.$ac_ext <<_ACEOF
  2529. /* confdefs.h. */
  2530. _ACEOF
  2531. cat confdefs.h >>conftest.$ac_ext
  2532. cat >>conftest.$ac_ext <<_ACEOF
  2533. /* end confdefs.h. */
  2534. int
  2535. main ()
  2536. {
  2537. ;
  2538. return 0;
  2539. }
  2540. _ACEOF
  2541. rm -f conftest.o conftest.obj
  2542. if { (ac_try="$ac_compile"
  2543. case "(($ac_try" in
  2544. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2545. *) ac_try_echo=$ac_try;;
  2546. esac
  2547. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2548. (eval "$ac_compile") 2>&5
  2549. ac_status=$?
  2550. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2551. (exit $ac_status); }; then
  2552. for ac_file in conftest.o conftest.obj conftest.*; do
  2553. test -f "$ac_file" || continue;
  2554. case $ac_file in
  2555. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2556. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2557. break;;
  2558. esac
  2559. done
  2560. else
  2561. echo "$as_me: failed program was:" >&5
  2562. sed 's/^/| /' conftest.$ac_ext >&5
  2563. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2564. See \`config.log' for more details." >&5
  2565. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2566. See \`config.log' for more details." >&2;}
  2567. { (exit 1); exit 1; }; }
  2568. fi
  2569. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2570. fi
  2571. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2572. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2573. OBJEXT=$ac_cv_objext
  2574. ac_objext=$OBJEXT
  2575. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2576. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  2577. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2578. echo $ECHO_N "(cached) $ECHO_C" >&6
  2579. else
  2580. cat >conftest.$ac_ext <<_ACEOF
  2581. /* confdefs.h. */
  2582. _ACEOF
  2583. cat confdefs.h >>conftest.$ac_ext
  2584. cat >>conftest.$ac_ext <<_ACEOF
  2585. /* end confdefs.h. */
  2586. int
  2587. main ()
  2588. {
  2589. #ifndef __GNUC__
  2590. choke me
  2591. #endif
  2592. ;
  2593. return 0;
  2594. }
  2595. _ACEOF
  2596. rm -f conftest.$ac_objext
  2597. if { (ac_try="$ac_compile"
  2598. case "(($ac_try" in
  2599. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2600. *) ac_try_echo=$ac_try;;
  2601. esac
  2602. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2603. (eval "$ac_compile") 2>conftest.er1
  2604. ac_status=$?
  2605. grep -v '^ *+' conftest.er1 >conftest.err
  2606. rm -f conftest.er1
  2607. cat conftest.err >&5
  2608. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2609. (exit $ac_status); } && {
  2610. test -z "$ac_c_werror_flag" ||
  2611. test ! -s conftest.err
  2612. } && test -s conftest.$ac_objext; then
  2613. ac_compiler_gnu=yes
  2614. else
  2615. echo "$as_me: failed program was:" >&5
  2616. sed 's/^/| /' conftest.$ac_ext >&5
  2617. ac_compiler_gnu=no
  2618. fi
  2619. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2620. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2621. fi
  2622. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2623. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  2624. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2625. ac_test_CFLAGS=${CFLAGS+set}
  2626. ac_save_CFLAGS=$CFLAGS
  2627. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2628. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  2629. if test "${ac_cv_prog_cc_g+set}" = set; then
  2630. echo $ECHO_N "(cached) $ECHO_C" >&6
  2631. else
  2632. ac_save_c_werror_flag=$ac_c_werror_flag
  2633. ac_c_werror_flag=yes
  2634. ac_cv_prog_cc_g=no
  2635. CFLAGS="-g"
  2636. cat >conftest.$ac_ext <<_ACEOF
  2637. /* confdefs.h. */
  2638. _ACEOF
  2639. cat confdefs.h >>conftest.$ac_ext
  2640. cat >>conftest.$ac_ext <<_ACEOF
  2641. /* end confdefs.h. */
  2642. int
  2643. main ()
  2644. {
  2645. ;
  2646. return 0;
  2647. }
  2648. _ACEOF
  2649. rm -f conftest.$ac_objext
  2650. if { (ac_try="$ac_compile"
  2651. case "(($ac_try" in
  2652. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2653. *) ac_try_echo=$ac_try;;
  2654. esac
  2655. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2656. (eval "$ac_compile") 2>conftest.er1
  2657. ac_status=$?
  2658. grep -v '^ *+' conftest.er1 >conftest.err
  2659. rm -f conftest.er1
  2660. cat conftest.err >&5
  2661. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2662. (exit $ac_status); } && {
  2663. test -z "$ac_c_werror_flag" ||
  2664. test ! -s conftest.err
  2665. } && test -s conftest.$ac_objext; then
  2666. ac_cv_prog_cc_g=yes
  2667. else
  2668. echo "$as_me: failed program was:" >&5
  2669. sed 's/^/| /' conftest.$ac_ext >&5
  2670. CFLAGS=""
  2671. cat >conftest.$ac_ext <<_ACEOF
  2672. /* confdefs.h. */
  2673. _ACEOF
  2674. cat confdefs.h >>conftest.$ac_ext
  2675. cat >>conftest.$ac_ext <<_ACEOF
  2676. /* end confdefs.h. */
  2677. int
  2678. main ()
  2679. {
  2680. ;
  2681. return 0;
  2682. }
  2683. _ACEOF
  2684. rm -f conftest.$ac_objext
  2685. if { (ac_try="$ac_compile"
  2686. case "(($ac_try" in
  2687. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2688. *) ac_try_echo=$ac_try;;
  2689. esac
  2690. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2691. (eval "$ac_compile") 2>conftest.er1
  2692. ac_status=$?
  2693. grep -v '^ *+' conftest.er1 >conftest.err
  2694. rm -f conftest.er1
  2695. cat conftest.err >&5
  2696. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2697. (exit $ac_status); } && {
  2698. test -z "$ac_c_werror_flag" ||
  2699. test ! -s conftest.err
  2700. } && test -s conftest.$ac_objext; then
  2701. :
  2702. else
  2703. echo "$as_me: failed program was:" >&5
  2704. sed 's/^/| /' conftest.$ac_ext >&5
  2705. ac_c_werror_flag=$ac_save_c_werror_flag
  2706. CFLAGS="-g"
  2707. cat >conftest.$ac_ext <<_ACEOF
  2708. /* confdefs.h. */
  2709. _ACEOF
  2710. cat confdefs.h >>conftest.$ac_ext
  2711. cat >>conftest.$ac_ext <<_ACEOF
  2712. /* end confdefs.h. */
  2713. int
  2714. main ()
  2715. {
  2716. ;
  2717. return 0;
  2718. }
  2719. _ACEOF
  2720. rm -f conftest.$ac_objext
  2721. if { (ac_try="$ac_compile"
  2722. case "(($ac_try" in
  2723. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2724. *) ac_try_echo=$ac_try;;
  2725. esac
  2726. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2727. (eval "$ac_compile") 2>conftest.er1
  2728. ac_status=$?
  2729. grep -v '^ *+' conftest.er1 >conftest.err
  2730. rm -f conftest.er1
  2731. cat conftest.err >&5
  2732. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2733. (exit $ac_status); } && {
  2734. test -z "$ac_c_werror_flag" ||
  2735. test ! -s conftest.err
  2736. } && test -s conftest.$ac_objext; then
  2737. ac_cv_prog_cc_g=yes
  2738. else
  2739. echo "$as_me: failed program was:" >&5
  2740. sed 's/^/| /' conftest.$ac_ext >&5
  2741. fi
  2742. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2743. fi
  2744. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2745. fi
  2746. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2747. ac_c_werror_flag=$ac_save_c_werror_flag
  2748. fi
  2749. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2750. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  2751. if test "$ac_test_CFLAGS" = set; then
  2752. CFLAGS=$ac_save_CFLAGS
  2753. elif test $ac_cv_prog_cc_g = yes; then
  2754. if test "$GCC" = yes; then
  2755. CFLAGS="-g -O2"
  2756. else
  2757. CFLAGS="-g"
  2758. fi
  2759. else
  2760. if test "$GCC" = yes; then
  2761. CFLAGS="-O2"
  2762. else
  2763. CFLAGS=
  2764. fi
  2765. fi
  2766. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  2767. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  2768. if test "${ac_cv_prog_cc_c89+set}" = set; then
  2769. echo $ECHO_N "(cached) $ECHO_C" >&6
  2770. else
  2771. ac_cv_prog_cc_c89=no
  2772. ac_save_CC=$CC
  2773. cat >conftest.$ac_ext <<_ACEOF
  2774. /* confdefs.h. */
  2775. _ACEOF
  2776. cat confdefs.h >>conftest.$ac_ext
  2777. cat >>conftest.$ac_ext <<_ACEOF
  2778. /* end confdefs.h. */
  2779. #include <stdarg.h>
  2780. #include <stdio.h>
  2781. #include <sys/types.h>
  2782. #include <sys/stat.h>
  2783. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2784. struct buf { int x; };
  2785. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2786. static char *e (p, i)
  2787. char **p;
  2788. int i;
  2789. {
  2790. return p[i];
  2791. }
  2792. static char *f (char * (*g) (char **, int), char **p, ...)
  2793. {
  2794. char *s;
  2795. va_list v;
  2796. va_start (v,p);
  2797. s = g (p, va_arg (v,int));
  2798. va_end (v);
  2799. return s;
  2800. }
  2801. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2802. function prototypes and stuff, but not '\xHH' hex character constants.
  2803. These don't provoke an error unfortunately, instead are silently treated
  2804. as 'x'. The following induces an error, until -std is added to get
  2805. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2806. array size at least. It's necessary to write '\x00'==0 to get something
  2807. that's true only with -std. */
  2808. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2809. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2810. inside strings and character constants. */
  2811. #define FOO(x) 'x'
  2812. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2813. int test (int i, double x);
  2814. struct s1 {int (*f) (int a);};
  2815. struct s2 {int (*f) (double a);};
  2816. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2817. int argc;
  2818. char **argv;
  2819. int
  2820. main ()
  2821. {
  2822. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2823. ;
  2824. return 0;
  2825. }
  2826. _ACEOF
  2827. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2828. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2829. do
  2830. CC="$ac_save_CC $ac_arg"
  2831. rm -f conftest.$ac_objext
  2832. if { (ac_try="$ac_compile"
  2833. case "(($ac_try" in
  2834. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2835. *) ac_try_echo=$ac_try;;
  2836. esac
  2837. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2838. (eval "$ac_compile") 2>conftest.er1
  2839. ac_status=$?
  2840. grep -v '^ *+' conftest.er1 >conftest.err
  2841. rm -f conftest.er1
  2842. cat conftest.err >&5
  2843. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2844. (exit $ac_status); } && {
  2845. test -z "$ac_c_werror_flag" ||
  2846. test ! -s conftest.err
  2847. } && test -s conftest.$ac_objext; then
  2848. ac_cv_prog_cc_c89=$ac_arg
  2849. else
  2850. echo "$as_me: failed program was:" >&5
  2851. sed 's/^/| /' conftest.$ac_ext >&5
  2852. fi
  2853. rm -f core conftest.err conftest.$ac_objext
  2854. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2855. done
  2856. rm -f conftest.$ac_ext
  2857. CC=$ac_save_CC
  2858. fi
  2859. # AC_CACHE_VAL
  2860. case "x$ac_cv_prog_cc_c89" in
  2861. x)
  2862. { echo "$as_me:$LINENO: result: none needed" >&5
  2863. echo "${ECHO_T}none needed" >&6; } ;;
  2864. xno)
  2865. { echo "$as_me:$LINENO: result: unsupported" >&5
  2866. echo "${ECHO_T}unsupported" >&6; } ;;
  2867. *)
  2868. CC="$CC $ac_cv_prog_cc_c89"
  2869. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  2870. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  2871. esac
  2872. ac_ext=c
  2873. ac_cpp='$CPP $CPPFLAGS'
  2874. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2875. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2876. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2877. { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  2878. echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
  2879. if test "${ac_cv_path_SED+set}" = set; then
  2880. echo $ECHO_N "(cached) $ECHO_C" >&6
  2881. else
  2882. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  2883. for ac_i in 1 2 3 4 5 6 7; do
  2884. ac_script="$ac_script$as_nl$ac_script"
  2885. done
  2886. echo "$ac_script" | sed 99q >conftest.sed
  2887. $as_unset ac_script || ac_script=
  2888. # Extract the first word of "sed gsed" to use in msg output
  2889. if test -z "$SED"; then
  2890. set dummy sed gsed; ac_prog_name=$2
  2891. if test "${ac_cv_path_SED+set}" = set; then
  2892. echo $ECHO_N "(cached) $ECHO_C" >&6
  2893. else
  2894. ac_path_SED_found=false
  2895. # Loop through the user's path and test for each of PROGNAME-LIST
  2896. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2897. for as_dir in $PATH
  2898. do
  2899. IFS=$as_save_IFS
  2900. test -z "$as_dir" && as_dir=.
  2901. for ac_prog in sed gsed; do
  2902. for ac_exec_ext in '' $ac_executable_extensions; do
  2903. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  2904. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  2905. # Check for GNU ac_path_SED and select it if it is found.
  2906. # Check for GNU $ac_path_SED
  2907. case `"$ac_path_SED" --version 2>&1` in
  2908. *GNU*)
  2909. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  2910. *)
  2911. ac_count=0
  2912. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  2913. while :
  2914. do
  2915. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2916. mv "conftest.tmp" "conftest.in"
  2917. cp "conftest.in" "conftest.nl"
  2918. echo '' >> "conftest.nl"
  2919. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2920. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2921. ac_count=`expr $ac_count + 1`
  2922. if test $ac_count -gt ${ac_path_SED_max-0}; then
  2923. # Best one so far, save it but keep looking for a better one
  2924. ac_cv_path_SED="$ac_path_SED"
  2925. ac_path_SED_max=$ac_count
  2926. fi
  2927. # 10*(2^10) chars as input seems more than enough
  2928. test $ac_count -gt 10 && break
  2929. done
  2930. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2931. esac
  2932. $ac_path_SED_found && break 3
  2933. done
  2934. done
  2935. done
  2936. IFS=$as_save_IFS
  2937. fi
  2938. SED="$ac_cv_path_SED"
  2939. if test -z "$SED"; then
  2940. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
  2941. echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
  2942. { (exit 1); exit 1; }; }
  2943. fi
  2944. else
  2945. ac_cv_path_SED=$SED
  2946. fi
  2947. fi
  2948. { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
  2949. echo "${ECHO_T}$ac_cv_path_SED" >&6; }
  2950. SED="$ac_cv_path_SED"
  2951. rm -f conftest.sed
  2952. test -z "$SED" && SED=sed
  2953. Xsed="$SED -e 1s/^X//"
  2954. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  2955. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  2956. if test "${ac_cv_path_GREP+set}" = set; then
  2957. echo $ECHO_N "(cached) $ECHO_C" >&6
  2958. else
  2959. # Extract the first word of "grep ggrep" to use in msg output
  2960. if test -z "$GREP"; then
  2961. set dummy grep ggrep; ac_prog_name=$2
  2962. if test "${ac_cv_path_GREP+set}" = set; then
  2963. echo $ECHO_N "(cached) $ECHO_C" >&6
  2964. else
  2965. ac_path_GREP_found=false
  2966. # Loop through the user's path and test for each of PROGNAME-LIST
  2967. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2968. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2969. do
  2970. IFS=$as_save_IFS
  2971. test -z "$as_dir" && as_dir=.
  2972. for ac_prog in grep ggrep; do
  2973. for ac_exec_ext in '' $ac_executable_extensions; do
  2974. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  2975. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  2976. # Check for GNU ac_path_GREP and select it if it is found.
  2977. # Check for GNU $ac_path_GREP
  2978. case `"$ac_path_GREP" --version 2>&1` in
  2979. *GNU*)
  2980. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  2981. *)
  2982. ac_count=0
  2983. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  2984. while :
  2985. do
  2986. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2987. mv "conftest.tmp" "conftest.in"
  2988. cp "conftest.in" "conftest.nl"
  2989. echo 'GREP' >> "conftest.nl"
  2990. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2991. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2992. ac_count=`expr $ac_count + 1`
  2993. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  2994. # Best one so far, save it but keep looking for a better one
  2995. ac_cv_path_GREP="$ac_path_GREP"
  2996. ac_path_GREP_max=$ac_count
  2997. fi
  2998. # 10*(2^10) chars as input seems more than enough
  2999. test $ac_count -gt 10 && break
  3000. done
  3001. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3002. esac
  3003. $ac_path_GREP_found && break 3
  3004. done
  3005. done
  3006. done
  3007. IFS=$as_save_IFS
  3008. fi
  3009. GREP="$ac_cv_path_GREP"
  3010. if test -z "$GREP"; then
  3011. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3012. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3013. { (exit 1); exit 1; }; }
  3014. fi
  3015. else
  3016. ac_cv_path_GREP=$GREP
  3017. fi
  3018. fi
  3019. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  3020. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  3021. GREP="$ac_cv_path_GREP"
  3022. { echo "$as_me:$LINENO: checking for egrep" >&5
  3023. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  3024. if test "${ac_cv_path_EGREP+set}" = set; then
  3025. echo $ECHO_N "(cached) $ECHO_C" >&6
  3026. else
  3027. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3028. then ac_cv_path_EGREP="$GREP -E"
  3029. else
  3030. # Extract the first word of "egrep" to use in msg output
  3031. if test -z "$EGREP"; then
  3032. set dummy egrep; ac_prog_name=$2
  3033. if test "${ac_cv_path_EGREP+set}" = set; then
  3034. echo $ECHO_N "(cached) $ECHO_C" >&6
  3035. else
  3036. ac_path_EGREP_found=false
  3037. # Loop through the user's path and test for each of PROGNAME-LIST
  3038. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3039. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3040. do
  3041. IFS=$as_save_IFS
  3042. test -z "$as_dir" && as_dir=.
  3043. for ac_prog in egrep; do
  3044. for ac_exec_ext in '' $ac_executable_extensions; do
  3045. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3046. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3047. # Check for GNU ac_path_EGREP and select it if it is found.
  3048. # Check for GNU $ac_path_EGREP
  3049. case `"$ac_path_EGREP" --version 2>&1` in
  3050. *GNU*)
  3051. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3052. *)
  3053. ac_count=0
  3054. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  3055. while :
  3056. do
  3057. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3058. mv "conftest.tmp" "conftest.in"
  3059. cp "conftest.in" "conftest.nl"
  3060. echo 'EGREP' >> "conftest.nl"
  3061. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3062. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3063. ac_count=`expr $ac_count + 1`
  3064. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3065. # Best one so far, save it but keep looking for a better one
  3066. ac_cv_path_EGREP="$ac_path_EGREP"
  3067. ac_path_EGREP_max=$ac_count
  3068. fi
  3069. # 10*(2^10) chars as input seems more than enough
  3070. test $ac_count -gt 10 && break
  3071. done
  3072. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3073. esac
  3074. $ac_path_EGREP_found && break 3
  3075. done
  3076. done
  3077. done
  3078. IFS=$as_save_IFS
  3079. fi
  3080. EGREP="$ac_cv_path_EGREP"
  3081. if test -z "$EGREP"; then
  3082. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3083. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3084. { (exit 1); exit 1; }; }
  3085. fi
  3086. else
  3087. ac_cv_path_EGREP=$EGREP
  3088. fi
  3089. fi
  3090. fi
  3091. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  3092. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  3093. EGREP="$ac_cv_path_EGREP"
  3094. { echo "$as_me:$LINENO: checking for fgrep" >&5
  3095. echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
  3096. if test "${ac_cv_path_FGREP+set}" = set; then
  3097. echo $ECHO_N "(cached) $ECHO_C" >&6
  3098. else
  3099. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3100. then ac_cv_path_FGREP="$GREP -F"
  3101. else
  3102. # Extract the first word of "fgrep" to use in msg output
  3103. if test -z "$FGREP"; then
  3104. set dummy fgrep; ac_prog_name=$2
  3105. if test "${ac_cv_path_FGREP+set}" = set; then
  3106. echo $ECHO_N "(cached) $ECHO_C" >&6
  3107. else
  3108. ac_path_FGREP_found=false
  3109. # Loop through the user's path and test for each of PROGNAME-LIST
  3110. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3111. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3112. do
  3113. IFS=$as_save_IFS
  3114. test -z "$as_dir" && as_dir=.
  3115. for ac_prog in fgrep; do
  3116. for ac_exec_ext in '' $ac_executable_extensions; do
  3117. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3118. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  3119. # Check for GNU ac_path_FGREP and select it if it is found.
  3120. # Check for GNU $ac_path_FGREP
  3121. case `"$ac_path_FGREP" --version 2>&1` in
  3122. *GNU*)
  3123. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3124. *)
  3125. ac_count=0
  3126. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  3127. while :
  3128. do
  3129. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3130. mv "conftest.tmp" "conftest.in"
  3131. cp "conftest.in" "conftest.nl"
  3132. echo 'FGREP' >> "conftest.nl"
  3133. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3134. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3135. ac_count=`expr $ac_count + 1`
  3136. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3137. # Best one so far, save it but keep looking for a better one
  3138. ac_cv_path_FGREP="$ac_path_FGREP"
  3139. ac_path_FGREP_max=$ac_count
  3140. fi
  3141. # 10*(2^10) chars as input seems more than enough
  3142. test $ac_count -gt 10 && break
  3143. done
  3144. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3145. esac
  3146. $ac_path_FGREP_found && break 3
  3147. done
  3148. done
  3149. done
  3150. IFS=$as_save_IFS
  3151. fi
  3152. FGREP="$ac_cv_path_FGREP"
  3153. if test -z "$FGREP"; then
  3154. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3155. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3156. { (exit 1); exit 1; }; }
  3157. fi
  3158. else
  3159. ac_cv_path_FGREP=$FGREP
  3160. fi
  3161. fi
  3162. fi
  3163. { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
  3164. echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
  3165. FGREP="$ac_cv_path_FGREP"
  3166. test -z "$GREP" && GREP=grep
  3167. # Check whether --with-gnu-ld was given.
  3168. if test "${with_gnu_ld+set}" = set; then
  3169. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3170. else
  3171. with_gnu_ld=no
  3172. fi
  3173. ac_prog=ld
  3174. if test "$GCC" = yes; then
  3175. # Check if gcc -print-prog-name=ld gives a path.
  3176. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  3177. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  3178. case $host in
  3179. *-*-mingw*)
  3180. # gcc leaves a trailing carriage return which upsets mingw
  3181. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3182. *)
  3183. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3184. esac
  3185. case $ac_prog in
  3186. # Accept absolute paths.
  3187. [\\/]* | ?:[\\/]*)
  3188. re_direlt='/[^/][^/]*/\.\./'
  3189. # Canonicalize the pathname of ld
  3190. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3191. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3192. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3193. done
  3194. test -z "$LD" && LD="$ac_prog"
  3195. ;;
  3196. "")
  3197. # If it fails, then pretend we aren't using GCC.
  3198. ac_prog=ld
  3199. ;;
  3200. *)
  3201. # If it is relative, then search for the first ld in PATH.
  3202. with_gnu_ld=unknown
  3203. ;;
  3204. esac
  3205. elif test "$with_gnu_ld" = yes; then
  3206. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  3207. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  3208. else
  3209. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  3210. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  3211. fi
  3212. if test "${lt_cv_path_LD+set}" = set; then
  3213. echo $ECHO_N "(cached) $ECHO_C" >&6
  3214. else
  3215. if test -z "$LD"; then
  3216. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3217. for ac_dir in $PATH; do
  3218. IFS="$lt_save_ifs"
  3219. test -z "$ac_dir" && ac_dir=.
  3220. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3221. lt_cv_path_LD="$ac_dir/$ac_prog"
  3222. # Check to see if the program is GNU ld. I'd rather use --version,
  3223. # but apparently some variants of GNU ld only accept -v.
  3224. # Break only if it was the GNU/non-GNU ld that we prefer.
  3225. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3226. *GNU* | *'with BFD'*)
  3227. test "$with_gnu_ld" != no && break
  3228. ;;
  3229. *)
  3230. test "$with_gnu_ld" != yes && break
  3231. ;;
  3232. esac
  3233. fi
  3234. done
  3235. IFS="$lt_save_ifs"
  3236. else
  3237. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3238. fi
  3239. fi
  3240. LD="$lt_cv_path_LD"
  3241. if test -n "$LD"; then
  3242. { echo "$as_me:$LINENO: result: $LD" >&5
  3243. echo "${ECHO_T}$LD" >&6; }
  3244. else
  3245. { echo "$as_me:$LINENO: result: no" >&5
  3246. echo "${ECHO_T}no" >&6; }
  3247. fi
  3248. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  3249. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  3250. { (exit 1); exit 1; }; }
  3251. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  3252. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  3253. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  3254. echo $ECHO_N "(cached) $ECHO_C" >&6
  3255. else
  3256. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3257. case `$LD -v 2>&1 </dev/null` in
  3258. *GNU* | *'with BFD'*)
  3259. lt_cv_prog_gnu_ld=yes
  3260. ;;
  3261. *)
  3262. lt_cv_prog_gnu_ld=no
  3263. ;;
  3264. esac
  3265. fi
  3266. { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  3267. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  3268. with_gnu_ld=$lt_cv_prog_gnu_ld
  3269. { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
  3270. echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
  3271. if test "${lt_cv_path_NM+set}" = set; then
  3272. echo $ECHO_N "(cached) $ECHO_C" >&6
  3273. else
  3274. if test -n "$NM"; then
  3275. # Let the user override the test.
  3276. lt_cv_path_NM="$NM"
  3277. else
  3278. lt_nm_to_check="${ac_tool_prefix}nm"
  3279. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3280. lt_nm_to_check="$lt_nm_to_check nm"
  3281. fi
  3282. for lt_tmp_nm in $lt_nm_to_check; do
  3283. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3284. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3285. IFS="$lt_save_ifs"
  3286. test -z "$ac_dir" && ac_dir=.
  3287. tmp_nm="$ac_dir/$lt_tmp_nm"
  3288. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3289. # Check to see if the nm accepts a BSD-compat flag.
  3290. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3291. # nm: unknown option "B" ignored
  3292. # Tru64's nm complains that /dev/null is an invalid object file
  3293. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3294. */dev/null* | *'Invalid file or object type'*)
  3295. lt_cv_path_NM="$tmp_nm -B"
  3296. break
  3297. ;;
  3298. *)
  3299. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3300. */dev/null*)
  3301. lt_cv_path_NM="$tmp_nm -p"
  3302. break
  3303. ;;
  3304. *)
  3305. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3306. continue # so that we can try to find one that supports BSD flags
  3307. ;;
  3308. esac
  3309. ;;
  3310. esac
  3311. fi
  3312. done
  3313. IFS="$lt_save_ifs"
  3314. done
  3315. : ${lt_cv_path_NM=no}
  3316. fi
  3317. fi
  3318. { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  3319. echo "${ECHO_T}$lt_cv_path_NM" >&6; }
  3320. if test "$lt_cv_path_NM" != "no"; then
  3321. NM="$lt_cv_path_NM"
  3322. else
  3323. # Didn't find any BSD compatible name lister, look for dumpbin.
  3324. if test -n "$ac_tool_prefix"; then
  3325. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  3326. do
  3327. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3328. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3329. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3330. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3331. if test "${ac_cv_prog_DUMPBIN+set}" = set; then
  3332. echo $ECHO_N "(cached) $ECHO_C" >&6
  3333. else
  3334. if test -n "$DUMPBIN"; then
  3335. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3336. else
  3337. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3338. for as_dir in $PATH
  3339. do
  3340. IFS=$as_save_IFS
  3341. test -z "$as_dir" && as_dir=.
  3342. for ac_exec_ext in '' $ac_executable_extensions; do
  3343. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3344. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3345. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3346. break 2
  3347. fi
  3348. done
  3349. done
  3350. IFS=$as_save_IFS
  3351. fi
  3352. fi
  3353. DUMPBIN=$ac_cv_prog_DUMPBIN
  3354. if test -n "$DUMPBIN"; then
  3355. { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
  3356. echo "${ECHO_T}$DUMPBIN" >&6; }
  3357. else
  3358. { echo "$as_me:$LINENO: result: no" >&5
  3359. echo "${ECHO_T}no" >&6; }
  3360. fi
  3361. test -n "$DUMPBIN" && break
  3362. done
  3363. fi
  3364. if test -z "$DUMPBIN"; then
  3365. ac_ct_DUMPBIN=$DUMPBIN
  3366. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  3367. do
  3368. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3369. set dummy $ac_prog; ac_word=$2
  3370. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3371. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3372. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
  3373. echo $ECHO_N "(cached) $ECHO_C" >&6
  3374. else
  3375. if test -n "$ac_ct_DUMPBIN"; then
  3376. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3377. else
  3378. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3379. for as_dir in $PATH
  3380. do
  3381. IFS=$as_save_IFS
  3382. test -z "$as_dir" && as_dir=.
  3383. for ac_exec_ext in '' $ac_executable_extensions; do
  3384. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3385. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3386. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3387. break 2
  3388. fi
  3389. done
  3390. done
  3391. IFS=$as_save_IFS
  3392. fi
  3393. fi
  3394. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3395. if test -n "$ac_ct_DUMPBIN"; then
  3396. { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
  3397. echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
  3398. else
  3399. { echo "$as_me:$LINENO: result: no" >&5
  3400. echo "${ECHO_T}no" >&6; }
  3401. fi
  3402. test -n "$ac_ct_DUMPBIN" && break
  3403. done
  3404. if test "x$ac_ct_DUMPBIN" = x; then
  3405. DUMPBIN=":"
  3406. else
  3407. case $cross_compiling:$ac_tool_warned in
  3408. yes:)
  3409. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3410. whose name does not start with the host triplet. If you think this
  3411. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3412. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3413. whose name does not start with the host triplet. If you think this
  3414. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3415. ac_tool_warned=yes ;;
  3416. esac
  3417. DUMPBIN=$ac_ct_DUMPBIN
  3418. fi
  3419. fi
  3420. if test "$DUMPBIN" != ":"; then
  3421. NM="$DUMPBIN"
  3422. fi
  3423. fi
  3424. test -z "$NM" && NM=nm
  3425. { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
  3426. echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
  3427. if test "${lt_cv_nm_interface+set}" = set; then
  3428. echo $ECHO_N "(cached) $ECHO_C" >&6
  3429. else
  3430. lt_cv_nm_interface="BSD nm"
  3431. echo "int some_variable = 0;" > conftest.$ac_ext
  3432. (eval echo "\"\$as_me:3883: $ac_compile\"" >&5)
  3433. (eval "$ac_compile" 2>conftest.err)
  3434. cat conftest.err >&5
  3435. (eval echo "\"\$as_me:3886: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3436. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3437. cat conftest.err >&5
  3438. (eval echo "\"\$as_me:3889: output\"" >&5)
  3439. cat conftest.out >&5
  3440. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3441. lt_cv_nm_interface="MS dumpbin"
  3442. fi
  3443. rm -f conftest*
  3444. fi
  3445. { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
  3446. echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
  3447. { echo "$as_me:$LINENO: checking whether ln -s works" >&5
  3448. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
  3449. LN_S=$as_ln_s
  3450. if test "$LN_S" = "ln -s"; then
  3451. { echo "$as_me:$LINENO: result: yes" >&5
  3452. echo "${ECHO_T}yes" >&6; }
  3453. else
  3454. { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  3455. echo "${ECHO_T}no, using $LN_S" >&6; }
  3456. fi
  3457. # find the maximum length of command line arguments
  3458. { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  3459. echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
  3460. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  3461. echo $ECHO_N "(cached) $ECHO_C" >&6
  3462. else
  3463. i=0
  3464. teststring="ABCD"
  3465. case $build_os in
  3466. msdosdjgpp*)
  3467. # On DJGPP, this test can blow up pretty badly due to problems in libc
  3468. # (any single argument exceeding 2000 bytes causes a buffer overrun
  3469. # during glob expansion). Even if it were fixed, the result of this
  3470. # check would be larger than it should be.
  3471. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  3472. ;;
  3473. gnu*)
  3474. # Under GNU Hurd, this test is not required because there is
  3475. # no limit to the length of command line arguments.
  3476. # Libtool will interpret -1 as no limit whatsoever
  3477. lt_cv_sys_max_cmd_len=-1;
  3478. ;;
  3479. cygwin* | mingw*)
  3480. # On Win9x/ME, this test blows up -- it succeeds, but takes
  3481. # about 5 minutes as the teststring grows exponentially.
  3482. # Worse, since 9x/ME are not pre-emptively multitasking,
  3483. # you end up with a "frozen" computer, even though with patience
  3484. # the test eventually succeeds (with a max line length of 256k).
  3485. # Instead, let's just punt: use the minimum linelength reported by
  3486. # all of the supported platforms: 8192 (on NT/2K/XP).
  3487. lt_cv_sys_max_cmd_len=8192;
  3488. ;;
  3489. amigaos*)
  3490. # On AmigaOS with pdksh, this test takes hours, literally.
  3491. # So we just punt and use a minimum line length of 8192.
  3492. lt_cv_sys_max_cmd_len=8192;
  3493. ;;
  3494. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  3495. # This has been around since 386BSD, at least. Likely further.
  3496. if test -x /sbin/sysctl; then
  3497. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  3498. elif test -x /usr/sbin/sysctl; then
  3499. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  3500. else
  3501. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  3502. fi
  3503. # And add a safety zone
  3504. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3505. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3506. ;;
  3507. interix*)
  3508. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  3509. lt_cv_sys_max_cmd_len=196608
  3510. ;;
  3511. osf*)
  3512. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  3513. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  3514. # nice to cause kernel panics so lets avoid the loop below.
  3515. # First set a reasonable default.
  3516. lt_cv_sys_max_cmd_len=16384
  3517. #
  3518. if test -x /sbin/sysconfig; then
  3519. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  3520. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  3521. esac
  3522. fi
  3523. ;;
  3524. sco3.2v5*)
  3525. lt_cv_sys_max_cmd_len=102400
  3526. ;;
  3527. sysv5* | sco5v6* | sysv4.2uw2*)
  3528. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  3529. if test -n "$kargmax"; then
  3530. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  3531. else
  3532. lt_cv_sys_max_cmd_len=32768
  3533. fi
  3534. ;;
  3535. *)
  3536. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  3537. if test -n "$lt_cv_sys_max_cmd_len"; then
  3538. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3539. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3540. else
  3541. # Make teststring a little bigger before we do anything with it.
  3542. # a 1K string should be a reasonable start.
  3543. for i in 1 2 3 4 5 6 7 8 ; do
  3544. teststring=$teststring$teststring
  3545. done
  3546. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  3547. # If test is not a shell built-in, we'll probably end up computing a
  3548. # maximum length that is only half of the actual maximum length, but
  3549. # we can't tell.
  3550. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  3551. = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  3552. test $i != 17 # 1/2 MB should be enough
  3553. do
  3554. i=`expr $i + 1`
  3555. teststring=$teststring$teststring
  3556. done
  3557. # Only check the string length outside the loop.
  3558. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  3559. teststring=
  3560. # Add a significant safety factor because C++ compilers can tack on
  3561. # massive amounts of additional arguments before passing them to the
  3562. # linker. It appears as though 1/2 is a usable value.
  3563. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  3564. fi
  3565. ;;
  3566. esac
  3567. fi
  3568. if test -n $lt_cv_sys_max_cmd_len ; then
  3569. { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  3570. echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
  3571. else
  3572. { echo "$as_me:$LINENO: result: none" >&5
  3573. echo "${ECHO_T}none" >&6; }
  3574. fi
  3575. max_cmd_len=$lt_cv_sys_max_cmd_len
  3576. : ${CP="cp -f"}
  3577. : ${MV="mv -f"}
  3578. : ${RM="rm -f"}
  3579. { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
  3580. echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
  3581. # Try some XSI features
  3582. xsi_shell=no
  3583. ( _lt_dummy="a/b/c"
  3584. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  3585. = c,a/b,, \
  3586. && eval 'test $(( 1 + 1 )) -eq 2 \
  3587. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  3588. && xsi_shell=yes
  3589. { echo "$as_me:$LINENO: result: $xsi_shell" >&5
  3590. echo "${ECHO_T}$xsi_shell" >&6; }
  3591. { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
  3592. echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
  3593. lt_shell_append=no
  3594. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  3595. >/dev/null 2>&1 \
  3596. && lt_shell_append=yes
  3597. { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
  3598. echo "${ECHO_T}$lt_shell_append" >&6; }
  3599. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  3600. lt_unset=unset
  3601. else
  3602. lt_unset=false
  3603. fi
  3604. # test EBCDIC or ASCII
  3605. case `echo X|tr X '\101'` in
  3606. A) # ASCII based system
  3607. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  3608. lt_SP2NL='tr \040 \012'
  3609. lt_NL2SP='tr \015\012 \040\040'
  3610. ;;
  3611. *) # EBCDIC based system
  3612. lt_SP2NL='tr \100 \n'
  3613. lt_NL2SP='tr \r\n \100\100'
  3614. ;;
  3615. esac
  3616. { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  3617. echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
  3618. if test "${lt_cv_ld_reload_flag+set}" = set; then
  3619. echo $ECHO_N "(cached) $ECHO_C" >&6
  3620. else
  3621. lt_cv_ld_reload_flag='-r'
  3622. fi
  3623. { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  3624. echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
  3625. reload_flag=$lt_cv_ld_reload_flag
  3626. case $reload_flag in
  3627. "" | " "*) ;;
  3628. *) reload_flag=" $reload_flag" ;;
  3629. esac
  3630. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3631. case $host_os in
  3632. darwin*)
  3633. if test "$GCC" = yes; then
  3634. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  3635. else
  3636. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3637. fi
  3638. ;;
  3639. esac
  3640. { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
  3641. echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
  3642. if test "${lt_cv_deplibs_check_method+set}" = set; then
  3643. echo $ECHO_N "(cached) $ECHO_C" >&6
  3644. else
  3645. lt_cv_file_magic_cmd='$MAGIC_CMD'
  3646. lt_cv_file_magic_test_file=
  3647. lt_cv_deplibs_check_method='unknown'
  3648. # Need to set the preceding variable on all platforms that support
  3649. # interlibrary dependencies.
  3650. # 'none' -- dependencies not supported.
  3651. # `unknown' -- same as none, but documents that we really don't know.
  3652. # 'pass_all' -- all dependencies passed with no checks.
  3653. # 'test_compile' -- check by making test program.
  3654. # 'file_magic [[regex]]' -- check by looking for files in library path
  3655. # which responds to the $file_magic_cmd with a given extended regex.
  3656. # If you have `file' or equivalent on your system and you're not sure
  3657. # whether `pass_all' will *always* work, you probably want this one.
  3658. case $host_os in
  3659. aix[4-9]*)
  3660. lt_cv_deplibs_check_method=pass_all
  3661. ;;
  3662. beos*)
  3663. lt_cv_deplibs_check_method=pass_all
  3664. ;;
  3665. bsdi[45]*)
  3666. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  3667. lt_cv_file_magic_cmd='/usr/bin/file -L'
  3668. lt_cv_file_magic_test_file=/shlib/libc.so
  3669. ;;
  3670. cygwin*)
  3671. # func_win32_libid is a shell function defined in ltmain.sh
  3672. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3673. lt_cv_file_magic_cmd='func_win32_libid'
  3674. ;;
  3675. mingw* | pw32*)
  3676. # Base MSYS/MinGW do not provide the 'file' command needed by
  3677. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  3678. # unless we find 'file', for example because we are cross-compiling.
  3679. if ( file / ) >/dev/null 2>&1; then
  3680. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3681. lt_cv_file_magic_cmd='func_win32_libid'
  3682. else
  3683. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  3684. lt_cv_file_magic_cmd='$OBJDUMP -f'
  3685. fi
  3686. ;;
  3687. darwin* | rhapsody*)
  3688. lt_cv_deplibs_check_method=pass_all
  3689. ;;
  3690. freebsd* | dragonfly*)
  3691. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  3692. case $host_cpu in
  3693. i*86 )
  3694. # Not sure whether the presence of OpenBSD here was a mistake.
  3695. # Let's accept both of them until this is cleared up.
  3696. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  3697. lt_cv_file_magic_cmd=/usr/bin/file
  3698. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3699. ;;
  3700. esac
  3701. else
  3702. lt_cv_deplibs_check_method=pass_all
  3703. fi
  3704. ;;
  3705. gnu*)
  3706. lt_cv_deplibs_check_method=pass_all
  3707. ;;
  3708. hpux10.20* | hpux11*)
  3709. lt_cv_file_magic_cmd=/usr/bin/file
  3710. case $host_cpu in
  3711. ia64*)
  3712. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  3713. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  3714. ;;
  3715. hppa*64*)
  3716. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
  3717. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  3718. ;;
  3719. *)
  3720. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  3721. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  3722. ;;
  3723. esac
  3724. ;;
  3725. interix[3-9]*)
  3726. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  3727. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  3728. ;;
  3729. irix5* | irix6* | nonstopux*)
  3730. case $LD in
  3731. *-32|*"-32 ") libmagic=32-bit;;
  3732. *-n32|*"-n32 ") libmagic=N32;;
  3733. *-64|*"-64 ") libmagic=64-bit;;
  3734. *) libmagic=never-match;;
  3735. esac
  3736. lt_cv_deplibs_check_method=pass_all
  3737. ;;
  3738. # This must be Linux ELF.
  3739. linux* | k*bsd*-gnu)
  3740. lt_cv_deplibs_check_method=pass_all
  3741. ;;
  3742. netbsd* | netbsdelf*-gnu)
  3743. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  3744. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  3745. else
  3746. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  3747. fi
  3748. ;;
  3749. newos6*)
  3750. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  3751. lt_cv_file_magic_cmd=/usr/bin/file
  3752. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  3753. ;;
  3754. *nto* | *qnx*)
  3755. lt_cv_deplibs_check_method=pass_all
  3756. ;;
  3757. openbsd*)
  3758. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3759. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  3760. else
  3761. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  3762. fi
  3763. ;;
  3764. osf3* | osf4* | osf5*)
  3765. lt_cv_deplibs_check_method=pass_all
  3766. ;;
  3767. rdos*)
  3768. lt_cv_deplibs_check_method=pass_all
  3769. ;;
  3770. solaris*)
  3771. lt_cv_deplibs_check_method=pass_all
  3772. ;;
  3773. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3774. lt_cv_deplibs_check_method=pass_all
  3775. ;;
  3776. sysv4 | sysv4.3*)
  3777. case $host_vendor in
  3778. motorola)
  3779. 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]'
  3780. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  3781. ;;
  3782. ncr)
  3783. lt_cv_deplibs_check_method=pass_all
  3784. ;;
  3785. sequent)
  3786. lt_cv_file_magic_cmd='/bin/file'
  3787. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  3788. ;;
  3789. sni)
  3790. lt_cv_file_magic_cmd='/bin/file'
  3791. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  3792. lt_cv_file_magic_test_file=/lib/libc.so
  3793. ;;
  3794. siemens)
  3795. lt_cv_deplibs_check_method=pass_all
  3796. ;;
  3797. pc)
  3798. lt_cv_deplibs_check_method=pass_all
  3799. ;;
  3800. esac
  3801. ;;
  3802. tpf*)
  3803. lt_cv_deplibs_check_method=pass_all
  3804. ;;
  3805. esac
  3806. fi
  3807. { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  3808. echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
  3809. file_magic_cmd=$lt_cv_file_magic_cmd
  3810. deplibs_check_method=$lt_cv_deplibs_check_method
  3811. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  3812. if test -n "$ac_tool_prefix"; then
  3813. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  3814. set dummy ${ac_tool_prefix}ar; ac_word=$2
  3815. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3816. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3817. if test "${ac_cv_prog_AR+set}" = set; then
  3818. echo $ECHO_N "(cached) $ECHO_C" >&6
  3819. else
  3820. if test -n "$AR"; then
  3821. ac_cv_prog_AR="$AR" # Let the user override the test.
  3822. else
  3823. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3824. for as_dir in $PATH
  3825. do
  3826. IFS=$as_save_IFS
  3827. test -z "$as_dir" && as_dir=.
  3828. for ac_exec_ext in '' $ac_executable_extensions; do
  3829. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3830. ac_cv_prog_AR="${ac_tool_prefix}ar"
  3831. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3832. break 2
  3833. fi
  3834. done
  3835. done
  3836. IFS=$as_save_IFS
  3837. fi
  3838. fi
  3839. AR=$ac_cv_prog_AR
  3840. if test -n "$AR"; then
  3841. { echo "$as_me:$LINENO: result: $AR" >&5
  3842. echo "${ECHO_T}$AR" >&6; }
  3843. else
  3844. { echo "$as_me:$LINENO: result: no" >&5
  3845. echo "${ECHO_T}no" >&6; }
  3846. fi
  3847. fi
  3848. if test -z "$ac_cv_prog_AR"; then
  3849. ac_ct_AR=$AR
  3850. # Extract the first word of "ar", so it can be a program name with args.
  3851. set dummy ar; ac_word=$2
  3852. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3853. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3854. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  3855. echo $ECHO_N "(cached) $ECHO_C" >&6
  3856. else
  3857. if test -n "$ac_ct_AR"; then
  3858. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  3859. else
  3860. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3861. for as_dir in $PATH
  3862. do
  3863. IFS=$as_save_IFS
  3864. test -z "$as_dir" && as_dir=.
  3865. for ac_exec_ext in '' $ac_executable_extensions; do
  3866. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3867. ac_cv_prog_ac_ct_AR="ar"
  3868. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3869. break 2
  3870. fi
  3871. done
  3872. done
  3873. IFS=$as_save_IFS
  3874. fi
  3875. fi
  3876. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  3877. if test -n "$ac_ct_AR"; then
  3878. { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  3879. echo "${ECHO_T}$ac_ct_AR" >&6; }
  3880. else
  3881. { echo "$as_me:$LINENO: result: no" >&5
  3882. echo "${ECHO_T}no" >&6; }
  3883. fi
  3884. if test "x$ac_ct_AR" = x; then
  3885. AR="false"
  3886. else
  3887. case $cross_compiling:$ac_tool_warned in
  3888. yes:)
  3889. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3890. whose name does not start with the host triplet. If you think this
  3891. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3892. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3893. whose name does not start with the host triplet. If you think this
  3894. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3895. ac_tool_warned=yes ;;
  3896. esac
  3897. AR=$ac_ct_AR
  3898. fi
  3899. else
  3900. AR="$ac_cv_prog_AR"
  3901. fi
  3902. test -z "$AR" && AR=ar
  3903. test -z "$AR_FLAGS" && AR_FLAGS=cru
  3904. if test -n "$ac_tool_prefix"; then
  3905. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  3906. set dummy ${ac_tool_prefix}strip; ac_word=$2
  3907. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3908. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3909. if test "${ac_cv_prog_STRIP+set}" = set; then
  3910. echo $ECHO_N "(cached) $ECHO_C" >&6
  3911. else
  3912. if test -n "$STRIP"; then
  3913. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3914. else
  3915. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3916. for as_dir in $PATH
  3917. do
  3918. IFS=$as_save_IFS
  3919. test -z "$as_dir" && as_dir=.
  3920. for ac_exec_ext in '' $ac_executable_extensions; do
  3921. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3922. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  3923. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3924. break 2
  3925. fi
  3926. done
  3927. done
  3928. IFS=$as_save_IFS
  3929. fi
  3930. fi
  3931. STRIP=$ac_cv_prog_STRIP
  3932. if test -n "$STRIP"; then
  3933. { echo "$as_me:$LINENO: result: $STRIP" >&5
  3934. echo "${ECHO_T}$STRIP" >&6; }
  3935. else
  3936. { echo "$as_me:$LINENO: result: no" >&5
  3937. echo "${ECHO_T}no" >&6; }
  3938. fi
  3939. fi
  3940. if test -z "$ac_cv_prog_STRIP"; then
  3941. ac_ct_STRIP=$STRIP
  3942. # Extract the first word of "strip", so it can be a program name with args.
  3943. set dummy strip; ac_word=$2
  3944. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3945. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3946. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  3947. echo $ECHO_N "(cached) $ECHO_C" >&6
  3948. else
  3949. if test -n "$ac_ct_STRIP"; then
  3950. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  3951. else
  3952. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3953. for as_dir in $PATH
  3954. do
  3955. IFS=$as_save_IFS
  3956. test -z "$as_dir" && as_dir=.
  3957. for ac_exec_ext in '' $ac_executable_extensions; do
  3958. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3959. ac_cv_prog_ac_ct_STRIP="strip"
  3960. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3961. break 2
  3962. fi
  3963. done
  3964. done
  3965. IFS=$as_save_IFS
  3966. fi
  3967. fi
  3968. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  3969. if test -n "$ac_ct_STRIP"; then
  3970. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  3971. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  3972. else
  3973. { echo "$as_me:$LINENO: result: no" >&5
  3974. echo "${ECHO_T}no" >&6; }
  3975. fi
  3976. if test "x$ac_ct_STRIP" = x; then
  3977. STRIP=":"
  3978. else
  3979. case $cross_compiling:$ac_tool_warned in
  3980. yes:)
  3981. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3982. whose name does not start with the host triplet. If you think this
  3983. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3984. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3985. whose name does not start with the host triplet. If you think this
  3986. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3987. ac_tool_warned=yes ;;
  3988. esac
  3989. STRIP=$ac_ct_STRIP
  3990. fi
  3991. else
  3992. STRIP="$ac_cv_prog_STRIP"
  3993. fi
  3994. test -z "$STRIP" && STRIP=:
  3995. if test -n "$ac_tool_prefix"; then
  3996. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3997. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3998. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3999. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4000. if test "${ac_cv_prog_RANLIB+set}" = set; then
  4001. echo $ECHO_N "(cached) $ECHO_C" >&6
  4002. else
  4003. if test -n "$RANLIB"; then
  4004. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4005. else
  4006. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4007. for as_dir in $PATH
  4008. do
  4009. IFS=$as_save_IFS
  4010. test -z "$as_dir" && as_dir=.
  4011. for ac_exec_ext in '' $ac_executable_extensions; do
  4012. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4013. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4014. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4015. break 2
  4016. fi
  4017. done
  4018. done
  4019. IFS=$as_save_IFS
  4020. fi
  4021. fi
  4022. RANLIB=$ac_cv_prog_RANLIB
  4023. if test -n "$RANLIB"; then
  4024. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  4025. echo "${ECHO_T}$RANLIB" >&6; }
  4026. else
  4027. { echo "$as_me:$LINENO: result: no" >&5
  4028. echo "${ECHO_T}no" >&6; }
  4029. fi
  4030. fi
  4031. if test -z "$ac_cv_prog_RANLIB"; then
  4032. ac_ct_RANLIB=$RANLIB
  4033. # Extract the first word of "ranlib", so it can be a program name with args.
  4034. set dummy ranlib; ac_word=$2
  4035. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4036. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4037. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  4038. echo $ECHO_N "(cached) $ECHO_C" >&6
  4039. else
  4040. if test -n "$ac_ct_RANLIB"; then
  4041. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4042. else
  4043. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4044. for as_dir in $PATH
  4045. do
  4046. IFS=$as_save_IFS
  4047. test -z "$as_dir" && as_dir=.
  4048. for ac_exec_ext in '' $ac_executable_extensions; do
  4049. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4050. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4051. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4052. break 2
  4053. fi
  4054. done
  4055. done
  4056. IFS=$as_save_IFS
  4057. fi
  4058. fi
  4059. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4060. if test -n "$ac_ct_RANLIB"; then
  4061. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  4062. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  4063. else
  4064. { echo "$as_me:$LINENO: result: no" >&5
  4065. echo "${ECHO_T}no" >&6; }
  4066. fi
  4067. if test "x$ac_ct_RANLIB" = x; then
  4068. RANLIB=":"
  4069. else
  4070. case $cross_compiling:$ac_tool_warned in
  4071. yes:)
  4072. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4073. whose name does not start with the host triplet. If you think this
  4074. configuration is useful to you, please write to autoconf@gnu.org." >&5
  4075. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4076. whose name does not start with the host triplet. If you think this
  4077. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4078. ac_tool_warned=yes ;;
  4079. esac
  4080. RANLIB=$ac_ct_RANLIB
  4081. fi
  4082. else
  4083. RANLIB="$ac_cv_prog_RANLIB"
  4084. fi
  4085. test -z "$RANLIB" && RANLIB=:
  4086. # Determine commands to create old-style static archives.
  4087. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4088. old_postinstall_cmds='chmod 644 $oldlib'
  4089. old_postuninstall_cmds=
  4090. if test -n "$RANLIB"; then
  4091. case $host_os in
  4092. openbsd*)
  4093. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  4094. ;;
  4095. *)
  4096. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  4097. ;;
  4098. esac
  4099. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  4100. fi
  4101. # If no C compiler was specified, use CC.
  4102. LTCC=${LTCC-"$CC"}
  4103. # If no C compiler flags were specified, use CFLAGS.
  4104. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4105. # Allow CC to be a program name with arguments.
  4106. compiler=$CC
  4107. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4108. { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  4109. echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
  4110. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  4111. echo $ECHO_N "(cached) $ECHO_C" >&6
  4112. else
  4113. # These are sane defaults that work on at least a few old systems.
  4114. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4115. # Character class describing NM global symbol codes.
  4116. symcode='[BCDEGRST]'
  4117. # Regexp to match symbols that can be accessed directly from C.
  4118. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4119. # Define system-specific variables.
  4120. case $host_os in
  4121. aix*)
  4122. symcode='[BCDT]'
  4123. ;;
  4124. cygwin* | mingw* | pw32*)
  4125. symcode='[ABCDGISTW]'
  4126. ;;
  4127. hpux*)
  4128. if test "$host_cpu" = ia64; then
  4129. symcode='[ABCDEGRST]'
  4130. fi
  4131. ;;
  4132. irix* | nonstopux*)
  4133. symcode='[BCDEGRST]'
  4134. ;;
  4135. osf*)
  4136. symcode='[BCDEGQRST]'
  4137. ;;
  4138. solaris*)
  4139. symcode='[BDRT]'
  4140. ;;
  4141. sco3.2v5*)
  4142. symcode='[DT]'
  4143. ;;
  4144. sysv4.2uw2*)
  4145. symcode='[DT]'
  4146. ;;
  4147. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4148. symcode='[ABDT]'
  4149. ;;
  4150. sysv4)
  4151. symcode='[DFNSTU]'
  4152. ;;
  4153. esac
  4154. # If we're using GNU nm, then use its standard symbol codes.
  4155. case `$NM -V 2>&1` in
  4156. *GNU* | *'with BFD'*)
  4157. symcode='[ABCDGIRSTW]' ;;
  4158. esac
  4159. # Transform an extracted symbol line into a proper C declaration.
  4160. # Some systems (esp. on ia64) link data and code symbols differently,
  4161. # so use this general approach.
  4162. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4163. # Transform an extracted symbol line into symbol name and symbol address
  4164. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  4165. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  4166. # Handle CRLF in mingw tool chain
  4167. opt_cr=
  4168. case $build_os in
  4169. mingw*)
  4170. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4171. ;;
  4172. esac
  4173. # Try without a prefix underscore, then with it.
  4174. for ac_symprfx in "" "_"; do
  4175. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4176. symxfrm="\\1 $ac_symprfx\\2 \\2"
  4177. # Write the raw and C identifiers.
  4178. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  4179. # Fake it for dumpbin and say T for any non-static function
  4180. # and D for any global variable.
  4181. # Also find C++ and __fastcall symbols from MSVC++,
  4182. # which start with @ or ?.
  4183. lt_cv_sys_global_symbol_pipe="$AWK '"\
  4184. " {last_section=section; section=\$ 3};"\
  4185. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  4186. " \$ 0!~/External *\|/{next};"\
  4187. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  4188. " {if(hide[section]) next};"\
  4189. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  4190. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  4191. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  4192. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  4193. " ' prfx=^$ac_symprfx"
  4194. else
  4195. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  4196. fi
  4197. # Check to see that the pipe works correctly.
  4198. pipe_works=no
  4199. rm -f conftest*
  4200. cat > conftest.$ac_ext <<_LT_EOF
  4201. #ifdef __cplusplus
  4202. extern "C" {
  4203. #endif
  4204. char nm_test_var;
  4205. void nm_test_func(void);
  4206. void nm_test_func(void){}
  4207. #ifdef __cplusplus
  4208. }
  4209. #endif
  4210. int main(){nm_test_var='a';nm_test_func();return(0);}
  4211. _LT_EOF
  4212. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4213. (eval $ac_compile) 2>&5
  4214. ac_status=$?
  4215. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4216. (exit $ac_status); }; then
  4217. # Now try to grab the symbols.
  4218. nlist=conftest.nm
  4219. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  4220. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  4221. ac_status=$?
  4222. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4223. (exit $ac_status); } && test -s "$nlist"; then
  4224. # Try sorting and uniquifying the output.
  4225. if sort "$nlist" | uniq > "$nlist"T; then
  4226. mv -f "$nlist"T "$nlist"
  4227. else
  4228. rm -f "$nlist"T
  4229. fi
  4230. # Make sure that we snagged all the symbols we need.
  4231. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  4232. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  4233. cat <<_LT_EOF > conftest.$ac_ext
  4234. #ifdef __cplusplus
  4235. extern "C" {
  4236. #endif
  4237. _LT_EOF
  4238. # Now generate the symbol file.
  4239. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  4240. cat <<_LT_EOF >> conftest.$ac_ext
  4241. /* The mapping between symbol names and symbols. */
  4242. const struct {
  4243. const char *name;
  4244. void *address;
  4245. }
  4246. lt__PROGRAM__LTX_preloaded_symbols[] =
  4247. {
  4248. { "@PROGRAM@", (void *) 0 },
  4249. _LT_EOF
  4250. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  4251. cat <<\_LT_EOF >> conftest.$ac_ext
  4252. {0, (void *) 0}
  4253. };
  4254. /* This works around a problem in FreeBSD linker */
  4255. #ifdef FREEBSD_WORKAROUND
  4256. static const void *lt_preloaded_setup() {
  4257. return lt__PROGRAM__LTX_preloaded_symbols;
  4258. }
  4259. #endif
  4260. #ifdef __cplusplus
  4261. }
  4262. #endif
  4263. _LT_EOF
  4264. # Now try linking the two files.
  4265. mv conftest.$ac_objext conftstm.$ac_objext
  4266. lt_save_LIBS="$LIBS"
  4267. lt_save_CFLAGS="$CFLAGS"
  4268. LIBS="conftstm.$ac_objext"
  4269. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  4270. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4271. (eval $ac_link) 2>&5
  4272. ac_status=$?
  4273. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4274. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  4275. pipe_works=yes
  4276. fi
  4277. LIBS="$lt_save_LIBS"
  4278. CFLAGS="$lt_save_CFLAGS"
  4279. else
  4280. echo "cannot find nm_test_func in $nlist" >&5
  4281. fi
  4282. else
  4283. echo "cannot find nm_test_var in $nlist" >&5
  4284. fi
  4285. else
  4286. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  4287. fi
  4288. else
  4289. echo "$progname: failed program was:" >&5
  4290. cat conftest.$ac_ext >&5
  4291. fi
  4292. rm -rf conftest* conftst*
  4293. # Do not use the global_symbol_pipe unless it works.
  4294. if test "$pipe_works" = yes; then
  4295. break
  4296. else
  4297. lt_cv_sys_global_symbol_pipe=
  4298. fi
  4299. done
  4300. fi
  4301. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  4302. lt_cv_sys_global_symbol_to_cdecl=
  4303. fi
  4304. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  4305. { echo "$as_me:$LINENO: result: failed" >&5
  4306. echo "${ECHO_T}failed" >&6; }
  4307. else
  4308. { echo "$as_me:$LINENO: result: ok" >&5
  4309. echo "${ECHO_T}ok" >&6; }
  4310. fi
  4311. # Check whether --enable-libtool-lock was given.
  4312. if test "${enable_libtool_lock+set}" = set; then
  4313. enableval=$enable_libtool_lock;
  4314. fi
  4315. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  4316. # Some flags need to be propagated to the compiler or linker for good
  4317. # libtool support.
  4318. case $host in
  4319. ia64-*-hpux*)
  4320. # Find out which ABI we are using.
  4321. echo 'int i;' > conftest.$ac_ext
  4322. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4323. (eval $ac_compile) 2>&5
  4324. ac_status=$?
  4325. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4326. (exit $ac_status); }; then
  4327. case `/usr/bin/file conftest.$ac_objext` in
  4328. *ELF-32*)
  4329. HPUX_IA64_MODE="32"
  4330. ;;
  4331. *ELF-64*)
  4332. HPUX_IA64_MODE="64"
  4333. ;;
  4334. esac
  4335. fi
  4336. rm -rf conftest*
  4337. ;;
  4338. *-*-irix6*)
  4339. # Find out which ABI we are using.
  4340. echo '#line 5000 "configure"' > conftest.$ac_ext
  4341. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4342. (eval $ac_compile) 2>&5
  4343. ac_status=$?
  4344. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4345. (exit $ac_status); }; then
  4346. if test "$lt_cv_prog_gnu_ld" = yes; then
  4347. case `/usr/bin/file conftest.$ac_objext` in
  4348. *32-bit*)
  4349. LD="${LD-ld} -melf32bsmip"
  4350. ;;
  4351. *N32*)
  4352. LD="${LD-ld} -melf32bmipn32"
  4353. ;;
  4354. *64-bit*)
  4355. LD="${LD-ld} -melf64bmip"
  4356. ;;
  4357. esac
  4358. else
  4359. case `/usr/bin/file conftest.$ac_objext` in
  4360. *32-bit*)
  4361. LD="${LD-ld} -32"
  4362. ;;
  4363. *N32*)
  4364. LD="${LD-ld} -n32"
  4365. ;;
  4366. *64-bit*)
  4367. LD="${LD-ld} -64"
  4368. ;;
  4369. esac
  4370. fi
  4371. fi
  4372. rm -rf conftest*
  4373. ;;
  4374. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  4375. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  4376. # Find out which ABI we are using.
  4377. echo 'int i;' > conftest.$ac_ext
  4378. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4379. (eval $ac_compile) 2>&5
  4380. ac_status=$?
  4381. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4382. (exit $ac_status); }; then
  4383. case `/usr/bin/file conftest.o` in
  4384. *32-bit*)
  4385. case $host in
  4386. x86_64-*kfreebsd*-gnu)
  4387. LD="${LD-ld} -m elf_i386_fbsd"
  4388. ;;
  4389. x86_64-*linux*)
  4390. LD="${LD-ld} -m elf_i386"
  4391. ;;
  4392. ppc64-*linux*|powerpc64-*linux*)
  4393. LD="${LD-ld} -m elf32ppclinux"
  4394. ;;
  4395. s390x-*linux*)
  4396. LD="${LD-ld} -m elf_s390"
  4397. ;;
  4398. sparc64-*linux*)
  4399. LD="${LD-ld} -m elf32_sparc"
  4400. ;;
  4401. esac
  4402. ;;
  4403. *64-bit*)
  4404. case $host in
  4405. x86_64-*kfreebsd*-gnu)
  4406. LD="${LD-ld} -m elf_x86_64_fbsd"
  4407. ;;
  4408. x86_64-*linux*)
  4409. LD="${LD-ld} -m elf_x86_64"
  4410. ;;
  4411. ppc*-*linux*|powerpc*-*linux*)
  4412. LD="${LD-ld} -m elf64ppc"
  4413. ;;
  4414. s390*-*linux*|s390*-*tpf*)
  4415. LD="${LD-ld} -m elf64_s390"
  4416. ;;
  4417. sparc*-*linux*)
  4418. LD="${LD-ld} -m elf64_sparc"
  4419. ;;
  4420. esac
  4421. ;;
  4422. esac
  4423. fi
  4424. rm -rf conftest*
  4425. ;;
  4426. *-*-sco3.2v5*)
  4427. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  4428. SAVE_CFLAGS="$CFLAGS"
  4429. CFLAGS="$CFLAGS -belf"
  4430. { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  4431. echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
  4432. if test "${lt_cv_cc_needs_belf+set}" = set; then
  4433. echo $ECHO_N "(cached) $ECHO_C" >&6
  4434. else
  4435. ac_ext=c
  4436. ac_cpp='$CPP $CPPFLAGS'
  4437. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4438. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4439. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4440. cat >conftest.$ac_ext <<_ACEOF
  4441. /* confdefs.h. */
  4442. _ACEOF
  4443. cat confdefs.h >>conftest.$ac_ext
  4444. cat >>conftest.$ac_ext <<_ACEOF
  4445. /* end confdefs.h. */
  4446. int
  4447. main ()
  4448. {
  4449. ;
  4450. return 0;
  4451. }
  4452. _ACEOF
  4453. rm -f conftest.$ac_objext conftest$ac_exeext
  4454. if { (ac_try="$ac_link"
  4455. case "(($ac_try" in
  4456. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4457. *) ac_try_echo=$ac_try;;
  4458. esac
  4459. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4460. (eval "$ac_link") 2>conftest.er1
  4461. ac_status=$?
  4462. grep -v '^ *+' conftest.er1 >conftest.err
  4463. rm -f conftest.er1
  4464. cat conftest.err >&5
  4465. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4466. (exit $ac_status); } && {
  4467. test -z "$ac_c_werror_flag" ||
  4468. test ! -s conftest.err
  4469. } && test -s conftest$ac_exeext &&
  4470. $as_test_x conftest$ac_exeext; then
  4471. lt_cv_cc_needs_belf=yes
  4472. else
  4473. echo "$as_me: failed program was:" >&5
  4474. sed 's/^/| /' conftest.$ac_ext >&5
  4475. lt_cv_cc_needs_belf=no
  4476. fi
  4477. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4478. conftest$ac_exeext conftest.$ac_ext
  4479. ac_ext=c
  4480. ac_cpp='$CPP $CPPFLAGS'
  4481. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4482. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4483. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4484. fi
  4485. { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  4486. echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
  4487. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  4488. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  4489. CFLAGS="$SAVE_CFLAGS"
  4490. fi
  4491. ;;
  4492. sparc*-*solaris*)
  4493. # Find out which ABI we are using.
  4494. echo 'int i;' > conftest.$ac_ext
  4495. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4496. (eval $ac_compile) 2>&5
  4497. ac_status=$?
  4498. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4499. (exit $ac_status); }; then
  4500. case `/usr/bin/file conftest.o` in
  4501. *64-bit*)
  4502. case $lt_cv_prog_gnu_ld in
  4503. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  4504. *)
  4505. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  4506. LD="${LD-ld} -64"
  4507. fi
  4508. ;;
  4509. esac
  4510. ;;
  4511. esac
  4512. fi
  4513. rm -rf conftest*
  4514. ;;
  4515. esac
  4516. need_locks="$enable_libtool_lock"
  4517. case $host_os in
  4518. rhapsody* | darwin*)
  4519. if test -n "$ac_tool_prefix"; then
  4520. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  4521. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  4522. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4523. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4524. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
  4525. echo $ECHO_N "(cached) $ECHO_C" >&6
  4526. else
  4527. if test -n "$DSYMUTIL"; then
  4528. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  4529. else
  4530. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4531. for as_dir in $PATH
  4532. do
  4533. IFS=$as_save_IFS
  4534. test -z "$as_dir" && as_dir=.
  4535. for ac_exec_ext in '' $ac_executable_extensions; do
  4536. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4537. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  4538. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4539. break 2
  4540. fi
  4541. done
  4542. done
  4543. IFS=$as_save_IFS
  4544. fi
  4545. fi
  4546. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  4547. if test -n "$DSYMUTIL"; then
  4548. { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
  4549. echo "${ECHO_T}$DSYMUTIL" >&6; }
  4550. else
  4551. { echo "$as_me:$LINENO: result: no" >&5
  4552. echo "${ECHO_T}no" >&6; }
  4553. fi
  4554. fi
  4555. if test -z "$ac_cv_prog_DSYMUTIL"; then
  4556. ac_ct_DSYMUTIL=$DSYMUTIL
  4557. # Extract the first word of "dsymutil", so it can be a program name with args.
  4558. set dummy dsymutil; ac_word=$2
  4559. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4560. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4561. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
  4562. echo $ECHO_N "(cached) $ECHO_C" >&6
  4563. else
  4564. if test -n "$ac_ct_DSYMUTIL"; then
  4565. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  4566. else
  4567. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4568. for as_dir in $PATH
  4569. do
  4570. IFS=$as_save_IFS
  4571. test -z "$as_dir" && as_dir=.
  4572. for ac_exec_ext in '' $ac_executable_extensions; do
  4573. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4574. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  4575. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4576. break 2
  4577. fi
  4578. done
  4579. done
  4580. IFS=$as_save_IFS
  4581. fi
  4582. fi
  4583. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  4584. if test -n "$ac_ct_DSYMUTIL"; then
  4585. { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
  4586. echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
  4587. else
  4588. { echo "$as_me:$LINENO: result: no" >&5
  4589. echo "${ECHO_T}no" >&6; }
  4590. fi
  4591. if test "x$ac_ct_DSYMUTIL" = x; then
  4592. DSYMUTIL=":"
  4593. else
  4594. case $cross_compiling:$ac_tool_warned in
  4595. yes:)
  4596. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4597. whose name does not start with the host triplet. If you think this
  4598. configuration is useful to you, please write to autoconf@gnu.org." >&5
  4599. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4600. whose name does not start with the host triplet. If you think this
  4601. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4602. ac_tool_warned=yes ;;
  4603. esac
  4604. DSYMUTIL=$ac_ct_DSYMUTIL
  4605. fi
  4606. else
  4607. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  4608. fi
  4609. if test -n "$ac_tool_prefix"; then
  4610. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  4611. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  4612. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4613. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4614. if test "${ac_cv_prog_NMEDIT+set}" = set; then
  4615. echo $ECHO_N "(cached) $ECHO_C" >&6
  4616. else
  4617. if test -n "$NMEDIT"; then
  4618. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  4619. else
  4620. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4621. for as_dir in $PATH
  4622. do
  4623. IFS=$as_save_IFS
  4624. test -z "$as_dir" && as_dir=.
  4625. for ac_exec_ext in '' $ac_executable_extensions; do
  4626. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4627. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  4628. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4629. break 2
  4630. fi
  4631. done
  4632. done
  4633. IFS=$as_save_IFS
  4634. fi
  4635. fi
  4636. NMEDIT=$ac_cv_prog_NMEDIT
  4637. if test -n "$NMEDIT"; then
  4638. { echo "$as_me:$LINENO: result: $NMEDIT" >&5
  4639. echo "${ECHO_T}$NMEDIT" >&6; }
  4640. else
  4641. { echo "$as_me:$LINENO: result: no" >&5
  4642. echo "${ECHO_T}no" >&6; }
  4643. fi
  4644. fi
  4645. if test -z "$ac_cv_prog_NMEDIT"; then
  4646. ac_ct_NMEDIT=$NMEDIT
  4647. # Extract the first word of "nmedit", so it can be a program name with args.
  4648. set dummy nmedit; ac_word=$2
  4649. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4650. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4651. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
  4652. echo $ECHO_N "(cached) $ECHO_C" >&6
  4653. else
  4654. if test -n "$ac_ct_NMEDIT"; then
  4655. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  4656. else
  4657. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4658. for as_dir in $PATH
  4659. do
  4660. IFS=$as_save_IFS
  4661. test -z "$as_dir" && as_dir=.
  4662. for ac_exec_ext in '' $ac_executable_extensions; do
  4663. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4664. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  4665. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4666. break 2
  4667. fi
  4668. done
  4669. done
  4670. IFS=$as_save_IFS
  4671. fi
  4672. fi
  4673. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  4674. if test -n "$ac_ct_NMEDIT"; then
  4675. { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
  4676. echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
  4677. else
  4678. { echo "$as_me:$LINENO: result: no" >&5
  4679. echo "${ECHO_T}no" >&6; }
  4680. fi
  4681. if test "x$ac_ct_NMEDIT" = x; then
  4682. NMEDIT=":"
  4683. else
  4684. case $cross_compiling:$ac_tool_warned in
  4685. yes:)
  4686. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4687. whose name does not start with the host triplet. If you think this
  4688. configuration is useful to you, please write to autoconf@gnu.org." >&5
  4689. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4690. whose name does not start with the host triplet. If you think this
  4691. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4692. ac_tool_warned=yes ;;
  4693. esac
  4694. NMEDIT=$ac_ct_NMEDIT
  4695. fi
  4696. else
  4697. NMEDIT="$ac_cv_prog_NMEDIT"
  4698. fi
  4699. if test -n "$ac_tool_prefix"; then
  4700. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  4701. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  4702. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4703. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4704. if test "${ac_cv_prog_LIPO+set}" = set; then
  4705. echo $ECHO_N "(cached) $ECHO_C" >&6
  4706. else
  4707. if test -n "$LIPO"; then
  4708. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  4709. else
  4710. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4711. for as_dir in $PATH
  4712. do
  4713. IFS=$as_save_IFS
  4714. test -z "$as_dir" && as_dir=.
  4715. for ac_exec_ext in '' $ac_executable_extensions; do
  4716. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4717. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  4718. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4719. break 2
  4720. fi
  4721. done
  4722. done
  4723. IFS=$as_save_IFS
  4724. fi
  4725. fi
  4726. LIPO=$ac_cv_prog_LIPO
  4727. if test -n "$LIPO"; then
  4728. { echo "$as_me:$LINENO: result: $LIPO" >&5
  4729. echo "${ECHO_T}$LIPO" >&6; }
  4730. else
  4731. { echo "$as_me:$LINENO: result: no" >&5
  4732. echo "${ECHO_T}no" >&6; }
  4733. fi
  4734. fi
  4735. if test -z "$ac_cv_prog_LIPO"; then
  4736. ac_ct_LIPO=$LIPO
  4737. # Extract the first word of "lipo", so it can be a program name with args.
  4738. set dummy lipo; ac_word=$2
  4739. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4740. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4741. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
  4742. echo $ECHO_N "(cached) $ECHO_C" >&6
  4743. else
  4744. if test -n "$ac_ct_LIPO"; then
  4745. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  4746. else
  4747. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4748. for as_dir in $PATH
  4749. do
  4750. IFS=$as_save_IFS
  4751. test -z "$as_dir" && as_dir=.
  4752. for ac_exec_ext in '' $ac_executable_extensions; do
  4753. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4754. ac_cv_prog_ac_ct_LIPO="lipo"
  4755. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4756. break 2
  4757. fi
  4758. done
  4759. done
  4760. IFS=$as_save_IFS
  4761. fi
  4762. fi
  4763. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  4764. if test -n "$ac_ct_LIPO"; then
  4765. { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
  4766. echo "${ECHO_T}$ac_ct_LIPO" >&6; }
  4767. else
  4768. { echo "$as_me:$LINENO: result: no" >&5
  4769. echo "${ECHO_T}no" >&6; }
  4770. fi
  4771. if test "x$ac_ct_LIPO" = x; then
  4772. LIPO=":"
  4773. else
  4774. case $cross_compiling:$ac_tool_warned in
  4775. yes:)
  4776. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4777. whose name does not start with the host triplet. If you think this
  4778. configuration is useful to you, please write to autoconf@gnu.org." >&5
  4779. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4780. whose name does not start with the host triplet. If you think this
  4781. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4782. ac_tool_warned=yes ;;
  4783. esac
  4784. LIPO=$ac_ct_LIPO
  4785. fi
  4786. else
  4787. LIPO="$ac_cv_prog_LIPO"
  4788. fi
  4789. if test -n "$ac_tool_prefix"; then
  4790. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  4791. set dummy ${ac_tool_prefix}otool; ac_word=$2
  4792. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4793. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4794. if test "${ac_cv_prog_OTOOL+set}" = set; then
  4795. echo $ECHO_N "(cached) $ECHO_C" >&6
  4796. else
  4797. if test -n "$OTOOL"; then
  4798. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  4799. else
  4800. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4801. for as_dir in $PATH
  4802. do
  4803. IFS=$as_save_IFS
  4804. test -z "$as_dir" && as_dir=.
  4805. for ac_exec_ext in '' $ac_executable_extensions; do
  4806. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4807. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  4808. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4809. break 2
  4810. fi
  4811. done
  4812. done
  4813. IFS=$as_save_IFS
  4814. fi
  4815. fi
  4816. OTOOL=$ac_cv_prog_OTOOL
  4817. if test -n "$OTOOL"; then
  4818. { echo "$as_me:$LINENO: result: $OTOOL" >&5
  4819. echo "${ECHO_T}$OTOOL" >&6; }
  4820. else
  4821. { echo "$as_me:$LINENO: result: no" >&5
  4822. echo "${ECHO_T}no" >&6; }
  4823. fi
  4824. fi
  4825. if test -z "$ac_cv_prog_OTOOL"; then
  4826. ac_ct_OTOOL=$OTOOL
  4827. # Extract the first word of "otool", so it can be a program name with args.
  4828. set dummy otool; ac_word=$2
  4829. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4830. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4831. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
  4832. echo $ECHO_N "(cached) $ECHO_C" >&6
  4833. else
  4834. if test -n "$ac_ct_OTOOL"; then
  4835. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  4836. else
  4837. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4838. for as_dir in $PATH
  4839. do
  4840. IFS=$as_save_IFS
  4841. test -z "$as_dir" && as_dir=.
  4842. for ac_exec_ext in '' $ac_executable_extensions; do
  4843. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4844. ac_cv_prog_ac_ct_OTOOL="otool"
  4845. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4846. break 2
  4847. fi
  4848. done
  4849. done
  4850. IFS=$as_save_IFS
  4851. fi
  4852. fi
  4853. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  4854. if test -n "$ac_ct_OTOOL"; then
  4855. { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
  4856. echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
  4857. else
  4858. { echo "$as_me:$LINENO: result: no" >&5
  4859. echo "${ECHO_T}no" >&6; }
  4860. fi
  4861. if test "x$ac_ct_OTOOL" = x; then
  4862. OTOOL=":"
  4863. else
  4864. case $cross_compiling:$ac_tool_warned in
  4865. yes:)
  4866. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4867. whose name does not start with the host triplet. If you think this
  4868. configuration is useful to you, please write to autoconf@gnu.org." >&5
  4869. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4870. whose name does not start with the host triplet. If you think this
  4871. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4872. ac_tool_warned=yes ;;
  4873. esac
  4874. OTOOL=$ac_ct_OTOOL
  4875. fi
  4876. else
  4877. OTOOL="$ac_cv_prog_OTOOL"
  4878. fi
  4879. if test -n "$ac_tool_prefix"; then
  4880. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  4881. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  4882. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4883. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4884. if test "${ac_cv_prog_OTOOL64+set}" = set; then
  4885. echo $ECHO_N "(cached) $ECHO_C" >&6
  4886. else
  4887. if test -n "$OTOOL64"; then
  4888. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  4889. else
  4890. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4891. for as_dir in $PATH
  4892. do
  4893. IFS=$as_save_IFS
  4894. test -z "$as_dir" && as_dir=.
  4895. for ac_exec_ext in '' $ac_executable_extensions; do
  4896. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4897. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  4898. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4899. break 2
  4900. fi
  4901. done
  4902. done
  4903. IFS=$as_save_IFS
  4904. fi
  4905. fi
  4906. OTOOL64=$ac_cv_prog_OTOOL64
  4907. if test -n "$OTOOL64"; then
  4908. { echo "$as_me:$LINENO: result: $OTOOL64" >&5
  4909. echo "${ECHO_T}$OTOOL64" >&6; }
  4910. else
  4911. { echo "$as_me:$LINENO: result: no" >&5
  4912. echo "${ECHO_T}no" >&6; }
  4913. fi
  4914. fi
  4915. if test -z "$ac_cv_prog_OTOOL64"; then
  4916. ac_ct_OTOOL64=$OTOOL64
  4917. # Extract the first word of "otool64", so it can be a program name with args.
  4918. set dummy otool64; ac_word=$2
  4919. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4920. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4921. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
  4922. echo $ECHO_N "(cached) $ECHO_C" >&6
  4923. else
  4924. if test -n "$ac_ct_OTOOL64"; then
  4925. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  4926. else
  4927. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4928. for as_dir in $PATH
  4929. do
  4930. IFS=$as_save_IFS
  4931. test -z "$as_dir" && as_dir=.
  4932. for ac_exec_ext in '' $ac_executable_extensions; do
  4933. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4934. ac_cv_prog_ac_ct_OTOOL64="otool64"
  4935. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4936. break 2
  4937. fi
  4938. done
  4939. done
  4940. IFS=$as_save_IFS
  4941. fi
  4942. fi
  4943. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  4944. if test -n "$ac_ct_OTOOL64"; then
  4945. { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
  4946. echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
  4947. else
  4948. { echo "$as_me:$LINENO: result: no" >&5
  4949. echo "${ECHO_T}no" >&6; }
  4950. fi
  4951. if test "x$ac_ct_OTOOL64" = x; then
  4952. OTOOL64=":"
  4953. else
  4954. case $cross_compiling:$ac_tool_warned in
  4955. yes:)
  4956. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4957. whose name does not start with the host triplet. If you think this
  4958. configuration is useful to you, please write to autoconf@gnu.org." >&5
  4959. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4960. whose name does not start with the host triplet. If you think this
  4961. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4962. ac_tool_warned=yes ;;
  4963. esac
  4964. OTOOL64=$ac_ct_OTOOL64
  4965. fi
  4966. else
  4967. OTOOL64="$ac_cv_prog_OTOOL64"
  4968. fi
  4969. { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
  4970. echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
  4971. if test "${lt_cv_apple_cc_single_mod+set}" = set; then
  4972. echo $ECHO_N "(cached) $ECHO_C" >&6
  4973. else
  4974. lt_cv_apple_cc_single_mod=no
  4975. if test -z "${LT_MULTI_MODULE}"; then
  4976. # By default we will add the -single_module flag. You can override
  4977. # by either setting the environment variable LT_MULTI_MODULE
  4978. # non-empty at configure time, or by adding -multi_module to the
  4979. # link flags.
  4980. rm -rf libconftest.dylib*
  4981. echo "int foo(void){return 1;}" > conftest.c
  4982. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  4983. -dynamiclib -Wl,-single_module conftest.c" >&5
  4984. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  4985. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  4986. _lt_result=$?
  4987. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  4988. lt_cv_apple_cc_single_mod=yes
  4989. else
  4990. cat conftest.err >&5
  4991. fi
  4992. rm -rf libconftest.dylib*
  4993. rm -f conftest.*
  4994. fi
  4995. fi
  4996. { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
  4997. echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
  4998. { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
  4999. echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
  5000. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
  5001. echo $ECHO_N "(cached) $ECHO_C" >&6
  5002. else
  5003. lt_cv_ld_exported_symbols_list=no
  5004. save_LDFLAGS=$LDFLAGS
  5005. echo "_main" > conftest.sym
  5006. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  5007. cat >conftest.$ac_ext <<_ACEOF
  5008. /* confdefs.h. */
  5009. _ACEOF
  5010. cat confdefs.h >>conftest.$ac_ext
  5011. cat >>conftest.$ac_ext <<_ACEOF
  5012. /* end confdefs.h. */
  5013. int
  5014. main ()
  5015. {
  5016. ;
  5017. return 0;
  5018. }
  5019. _ACEOF
  5020. rm -f conftest.$ac_objext conftest$ac_exeext
  5021. if { (ac_try="$ac_link"
  5022. case "(($ac_try" in
  5023. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5024. *) ac_try_echo=$ac_try;;
  5025. esac
  5026. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5027. (eval "$ac_link") 2>conftest.er1
  5028. ac_status=$?
  5029. grep -v '^ *+' conftest.er1 >conftest.err
  5030. rm -f conftest.er1
  5031. cat conftest.err >&5
  5032. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5033. (exit $ac_status); } && {
  5034. test -z "$ac_c_werror_flag" ||
  5035. test ! -s conftest.err
  5036. } && test -s conftest$ac_exeext &&
  5037. $as_test_x conftest$ac_exeext; then
  5038. lt_cv_ld_exported_symbols_list=yes
  5039. else
  5040. echo "$as_me: failed program was:" >&5
  5041. sed 's/^/| /' conftest.$ac_ext >&5
  5042. lt_cv_ld_exported_symbols_list=no
  5043. fi
  5044. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5045. conftest$ac_exeext conftest.$ac_ext
  5046. LDFLAGS="$save_LDFLAGS"
  5047. fi
  5048. { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
  5049. echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
  5050. case $host_os in
  5051. rhapsody* | darwin1.[012])
  5052. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  5053. darwin1.*)
  5054. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5055. darwin*) # darwin 5.x on
  5056. # if running on 10.5 or later, the deployment target defaults
  5057. # to the OS version, if on x86, and 10.4, the deployment
  5058. # target defaults to 10.4. Don't you love it?
  5059. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  5060. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  5061. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5062. 10.[012]*)
  5063. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5064. 10.*)
  5065. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5066. esac
  5067. ;;
  5068. esac
  5069. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  5070. _lt_dar_single_mod='$single_module'
  5071. fi
  5072. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  5073. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  5074. else
  5075. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5076. fi
  5077. if test "$DSYMUTIL" != ":"; then
  5078. _lt_dsymutil='~$DSYMUTIL $lib || :'
  5079. else
  5080. _lt_dsymutil=
  5081. fi
  5082. ;;
  5083. esac
  5084. ac_ext=c
  5085. ac_cpp='$CPP $CPPFLAGS'
  5086. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5087. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5088. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5089. { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  5090. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  5091. # On Suns, sometimes $CPP names a directory.
  5092. if test -n "$CPP" && test -d "$CPP"; then
  5093. CPP=
  5094. fi
  5095. if test -z "$CPP"; then
  5096. if test "${ac_cv_prog_CPP+set}" = set; then
  5097. echo $ECHO_N "(cached) $ECHO_C" >&6
  5098. else
  5099. # Double quotes because CPP needs to be expanded
  5100. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5101. do
  5102. ac_preproc_ok=false
  5103. for ac_c_preproc_warn_flag in '' yes
  5104. do
  5105. # Use a header file that comes with gcc, so configuring glibc
  5106. # with a fresh cross-compiler works.
  5107. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5108. # <limits.h> exists even on freestanding compilers.
  5109. # On the NeXT, cc -E runs the code through the compiler's parser,
  5110. # not just through cpp. "Syntax error" is here to catch this case.
  5111. cat >conftest.$ac_ext <<_ACEOF
  5112. /* confdefs.h. */
  5113. _ACEOF
  5114. cat confdefs.h >>conftest.$ac_ext
  5115. cat >>conftest.$ac_ext <<_ACEOF
  5116. /* end confdefs.h. */
  5117. #ifdef __STDC__
  5118. # include <limits.h>
  5119. #else
  5120. # include <assert.h>
  5121. #endif
  5122. Syntax error
  5123. _ACEOF
  5124. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5125. case "(($ac_try" in
  5126. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5127. *) ac_try_echo=$ac_try;;
  5128. esac
  5129. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5130. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5131. ac_status=$?
  5132. grep -v '^ *+' conftest.er1 >conftest.err
  5133. rm -f conftest.er1
  5134. cat conftest.err >&5
  5135. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5136. (exit $ac_status); } >/dev/null && {
  5137. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5138. test ! -s conftest.err
  5139. }; then
  5140. :
  5141. else
  5142. echo "$as_me: failed program was:" >&5
  5143. sed 's/^/| /' conftest.$ac_ext >&5
  5144. # Broken: fails on valid input.
  5145. continue
  5146. fi
  5147. rm -f conftest.err conftest.$ac_ext
  5148. # OK, works on sane cases. Now check whether nonexistent headers
  5149. # can be detected and how.
  5150. cat >conftest.$ac_ext <<_ACEOF
  5151. /* confdefs.h. */
  5152. _ACEOF
  5153. cat confdefs.h >>conftest.$ac_ext
  5154. cat >>conftest.$ac_ext <<_ACEOF
  5155. /* end confdefs.h. */
  5156. #include <ac_nonexistent.h>
  5157. _ACEOF
  5158. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5159. case "(($ac_try" in
  5160. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5161. *) ac_try_echo=$ac_try;;
  5162. esac
  5163. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5164. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5165. ac_status=$?
  5166. grep -v '^ *+' conftest.er1 >conftest.err
  5167. rm -f conftest.er1
  5168. cat conftest.err >&5
  5169. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5170. (exit $ac_status); } >/dev/null && {
  5171. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5172. test ! -s conftest.err
  5173. }; then
  5174. # Broken: success on invalid input.
  5175. continue
  5176. else
  5177. echo "$as_me: failed program was:" >&5
  5178. sed 's/^/| /' conftest.$ac_ext >&5
  5179. # Passes both tests.
  5180. ac_preproc_ok=:
  5181. break
  5182. fi
  5183. rm -f conftest.err conftest.$ac_ext
  5184. done
  5185. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5186. rm -f conftest.err conftest.$ac_ext
  5187. if $ac_preproc_ok; then
  5188. break
  5189. fi
  5190. done
  5191. ac_cv_prog_CPP=$CPP
  5192. fi
  5193. CPP=$ac_cv_prog_CPP
  5194. else
  5195. ac_cv_prog_CPP=$CPP
  5196. fi
  5197. { echo "$as_me:$LINENO: result: $CPP" >&5
  5198. echo "${ECHO_T}$CPP" >&6; }
  5199. ac_preproc_ok=false
  5200. for ac_c_preproc_warn_flag in '' yes
  5201. do
  5202. # Use a header file that comes with gcc, so configuring glibc
  5203. # with a fresh cross-compiler works.
  5204. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5205. # <limits.h> exists even on freestanding compilers.
  5206. # On the NeXT, cc -E runs the code through the compiler's parser,
  5207. # not just through cpp. "Syntax error" is here to catch this case.
  5208. cat >conftest.$ac_ext <<_ACEOF
  5209. /* confdefs.h. */
  5210. _ACEOF
  5211. cat confdefs.h >>conftest.$ac_ext
  5212. cat >>conftest.$ac_ext <<_ACEOF
  5213. /* end confdefs.h. */
  5214. #ifdef __STDC__
  5215. # include <limits.h>
  5216. #else
  5217. # include <assert.h>
  5218. #endif
  5219. Syntax error
  5220. _ACEOF
  5221. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5222. case "(($ac_try" in
  5223. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5224. *) ac_try_echo=$ac_try;;
  5225. esac
  5226. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5227. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5228. ac_status=$?
  5229. grep -v '^ *+' conftest.er1 >conftest.err
  5230. rm -f conftest.er1
  5231. cat conftest.err >&5
  5232. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5233. (exit $ac_status); } >/dev/null && {
  5234. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5235. test ! -s conftest.err
  5236. }; then
  5237. :
  5238. else
  5239. echo "$as_me: failed program was:" >&5
  5240. sed 's/^/| /' conftest.$ac_ext >&5
  5241. # Broken: fails on valid input.
  5242. continue
  5243. fi
  5244. rm -f conftest.err conftest.$ac_ext
  5245. # OK, works on sane cases. Now check whether nonexistent headers
  5246. # can be detected and how.
  5247. cat >conftest.$ac_ext <<_ACEOF
  5248. /* confdefs.h. */
  5249. _ACEOF
  5250. cat confdefs.h >>conftest.$ac_ext
  5251. cat >>conftest.$ac_ext <<_ACEOF
  5252. /* end confdefs.h. */
  5253. #include <ac_nonexistent.h>
  5254. _ACEOF
  5255. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5256. case "(($ac_try" in
  5257. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5258. *) ac_try_echo=$ac_try;;
  5259. esac
  5260. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5261. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5262. ac_status=$?
  5263. grep -v '^ *+' conftest.er1 >conftest.err
  5264. rm -f conftest.er1
  5265. cat conftest.err >&5
  5266. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5267. (exit $ac_status); } >/dev/null && {
  5268. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5269. test ! -s conftest.err
  5270. }; then
  5271. # Broken: success on invalid input.
  5272. continue
  5273. else
  5274. echo "$as_me: failed program was:" >&5
  5275. sed 's/^/| /' conftest.$ac_ext >&5
  5276. # Passes both tests.
  5277. ac_preproc_ok=:
  5278. break
  5279. fi
  5280. rm -f conftest.err conftest.$ac_ext
  5281. done
  5282. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5283. rm -f conftest.err conftest.$ac_ext
  5284. if $ac_preproc_ok; then
  5285. :
  5286. else
  5287. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  5288. See \`config.log' for more details." >&5
  5289. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  5290. See \`config.log' for more details." >&2;}
  5291. { (exit 1); exit 1; }; }
  5292. fi
  5293. ac_ext=c
  5294. ac_cpp='$CPP $CPPFLAGS'
  5295. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5296. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5297. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5298. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  5299. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  5300. if test "${ac_cv_header_stdc+set}" = set; then
  5301. echo $ECHO_N "(cached) $ECHO_C" >&6
  5302. else
  5303. cat >conftest.$ac_ext <<_ACEOF
  5304. /* confdefs.h. */
  5305. _ACEOF
  5306. cat confdefs.h >>conftest.$ac_ext
  5307. cat >>conftest.$ac_ext <<_ACEOF
  5308. /* end confdefs.h. */
  5309. #include <stdlib.h>
  5310. #include <stdarg.h>
  5311. #include <string.h>
  5312. #include <float.h>
  5313. int
  5314. main ()
  5315. {
  5316. ;
  5317. return 0;
  5318. }
  5319. _ACEOF
  5320. rm -f conftest.$ac_objext
  5321. if { (ac_try="$ac_compile"
  5322. case "(($ac_try" in
  5323. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5324. *) ac_try_echo=$ac_try;;
  5325. esac
  5326. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5327. (eval "$ac_compile") 2>conftest.er1
  5328. ac_status=$?
  5329. grep -v '^ *+' conftest.er1 >conftest.err
  5330. rm -f conftest.er1
  5331. cat conftest.err >&5
  5332. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5333. (exit $ac_status); } && {
  5334. test -z "$ac_c_werror_flag" ||
  5335. test ! -s conftest.err
  5336. } && test -s conftest.$ac_objext; then
  5337. ac_cv_header_stdc=yes
  5338. else
  5339. echo "$as_me: failed program was:" >&5
  5340. sed 's/^/| /' conftest.$ac_ext >&5
  5341. ac_cv_header_stdc=no
  5342. fi
  5343. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5344. if test $ac_cv_header_stdc = yes; then
  5345. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5346. cat >conftest.$ac_ext <<_ACEOF
  5347. /* confdefs.h. */
  5348. _ACEOF
  5349. cat confdefs.h >>conftest.$ac_ext
  5350. cat >>conftest.$ac_ext <<_ACEOF
  5351. /* end confdefs.h. */
  5352. #include <string.h>
  5353. _ACEOF
  5354. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5355. $EGREP "memchr" >/dev/null 2>&1; then
  5356. :
  5357. else
  5358. ac_cv_header_stdc=no
  5359. fi
  5360. rm -f conftest*
  5361. fi
  5362. if test $ac_cv_header_stdc = yes; then
  5363. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5364. cat >conftest.$ac_ext <<_ACEOF
  5365. /* confdefs.h. */
  5366. _ACEOF
  5367. cat confdefs.h >>conftest.$ac_ext
  5368. cat >>conftest.$ac_ext <<_ACEOF
  5369. /* end confdefs.h. */
  5370. #include <stdlib.h>
  5371. _ACEOF
  5372. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5373. $EGREP "free" >/dev/null 2>&1; then
  5374. :
  5375. else
  5376. ac_cv_header_stdc=no
  5377. fi
  5378. rm -f conftest*
  5379. fi
  5380. if test $ac_cv_header_stdc = yes; then
  5381. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5382. if test "$cross_compiling" = yes; then
  5383. :
  5384. else
  5385. cat >conftest.$ac_ext <<_ACEOF
  5386. /* confdefs.h. */
  5387. _ACEOF
  5388. cat confdefs.h >>conftest.$ac_ext
  5389. cat >>conftest.$ac_ext <<_ACEOF
  5390. /* end confdefs.h. */
  5391. #include <ctype.h>
  5392. #include <stdlib.h>
  5393. #if ((' ' & 0x0FF) == 0x020)
  5394. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5395. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5396. #else
  5397. # define ISLOWER(c) \
  5398. (('a' <= (c) && (c) <= 'i') \
  5399. || ('j' <= (c) && (c) <= 'r') \
  5400. || ('s' <= (c) && (c) <= 'z'))
  5401. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5402. #endif
  5403. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5404. int
  5405. main ()
  5406. {
  5407. int i;
  5408. for (i = 0; i < 256; i++)
  5409. if (XOR (islower (i), ISLOWER (i))
  5410. || toupper (i) != TOUPPER (i))
  5411. return 2;
  5412. return 0;
  5413. }
  5414. _ACEOF
  5415. rm -f conftest$ac_exeext
  5416. if { (ac_try="$ac_link"
  5417. case "(($ac_try" in
  5418. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5419. *) ac_try_echo=$ac_try;;
  5420. esac
  5421. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5422. (eval "$ac_link") 2>&5
  5423. ac_status=$?
  5424. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5425. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5426. { (case "(($ac_try" in
  5427. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5428. *) ac_try_echo=$ac_try;;
  5429. esac
  5430. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5431. (eval "$ac_try") 2>&5
  5432. ac_status=$?
  5433. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5434. (exit $ac_status); }; }; then
  5435. :
  5436. else
  5437. echo "$as_me: program exited with status $ac_status" >&5
  5438. echo "$as_me: failed program was:" >&5
  5439. sed 's/^/| /' conftest.$ac_ext >&5
  5440. ( exit $ac_status )
  5441. ac_cv_header_stdc=no
  5442. fi
  5443. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5444. fi
  5445. fi
  5446. fi
  5447. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  5448. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  5449. if test $ac_cv_header_stdc = yes; then
  5450. cat >>confdefs.h <<\_ACEOF
  5451. #define STDC_HEADERS 1
  5452. _ACEOF
  5453. fi
  5454. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5455. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5456. inttypes.h stdint.h unistd.h
  5457. do
  5458. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5459. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  5460. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  5461. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5462. echo $ECHO_N "(cached) $ECHO_C" >&6
  5463. else
  5464. cat >conftest.$ac_ext <<_ACEOF
  5465. /* confdefs.h. */
  5466. _ACEOF
  5467. cat confdefs.h >>conftest.$ac_ext
  5468. cat >>conftest.$ac_ext <<_ACEOF
  5469. /* end confdefs.h. */
  5470. $ac_includes_default
  5471. #include <$ac_header>
  5472. _ACEOF
  5473. rm -f conftest.$ac_objext
  5474. if { (ac_try="$ac_compile"
  5475. case "(($ac_try" in
  5476. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5477. *) ac_try_echo=$ac_try;;
  5478. esac
  5479. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5480. (eval "$ac_compile") 2>conftest.er1
  5481. ac_status=$?
  5482. grep -v '^ *+' conftest.er1 >conftest.err
  5483. rm -f conftest.er1
  5484. cat conftest.err >&5
  5485. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5486. (exit $ac_status); } && {
  5487. test -z "$ac_c_werror_flag" ||
  5488. test ! -s conftest.err
  5489. } && test -s conftest.$ac_objext; then
  5490. eval "$as_ac_Header=yes"
  5491. else
  5492. echo "$as_me: failed program was:" >&5
  5493. sed 's/^/| /' conftest.$ac_ext >&5
  5494. eval "$as_ac_Header=no"
  5495. fi
  5496. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5497. fi
  5498. ac_res=`eval echo '${'$as_ac_Header'}'`
  5499. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5500. echo "${ECHO_T}$ac_res" >&6; }
  5501. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5502. cat >>confdefs.h <<_ACEOF
  5503. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5504. _ACEOF
  5505. fi
  5506. done
  5507. for ac_header in dlfcn.h
  5508. do
  5509. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5510. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  5511. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  5512. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5513. echo $ECHO_N "(cached) $ECHO_C" >&6
  5514. else
  5515. cat >conftest.$ac_ext <<_ACEOF
  5516. /* confdefs.h. */
  5517. _ACEOF
  5518. cat confdefs.h >>conftest.$ac_ext
  5519. cat >>conftest.$ac_ext <<_ACEOF
  5520. /* end confdefs.h. */
  5521. $ac_includes_default
  5522. #include <$ac_header>
  5523. _ACEOF
  5524. rm -f conftest.$ac_objext
  5525. if { (ac_try="$ac_compile"
  5526. case "(($ac_try" in
  5527. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5528. *) ac_try_echo=$ac_try;;
  5529. esac
  5530. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5531. (eval "$ac_compile") 2>conftest.er1
  5532. ac_status=$?
  5533. grep -v '^ *+' conftest.er1 >conftest.err
  5534. rm -f conftest.er1
  5535. cat conftest.err >&5
  5536. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5537. (exit $ac_status); } && {
  5538. test -z "$ac_c_werror_flag" ||
  5539. test ! -s conftest.err
  5540. } && test -s conftest.$ac_objext; then
  5541. eval "$as_ac_Header=yes"
  5542. else
  5543. echo "$as_me: failed program was:" >&5
  5544. sed 's/^/| /' conftest.$ac_ext >&5
  5545. eval "$as_ac_Header=no"
  5546. fi
  5547. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5548. fi
  5549. ac_res=`eval echo '${'$as_ac_Header'}'`
  5550. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5551. echo "${ECHO_T}$ac_res" >&6; }
  5552. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5553. cat >>confdefs.h <<_ACEOF
  5554. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5555. _ACEOF
  5556. fi
  5557. done
  5558. # Set options
  5559. enable_dlopen=no
  5560. enable_win32_dll=no
  5561. # Check whether --enable-shared was given.
  5562. if test "${enable_shared+set}" = set; then
  5563. enableval=$enable_shared; p=${PACKAGE-default}
  5564. case $enableval in
  5565. yes) enable_shared=yes ;;
  5566. no) enable_shared=no ;;
  5567. *)
  5568. enable_shared=no
  5569. # Look at the argument we got. We use all the common list separators.
  5570. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  5571. for pkg in $enableval; do
  5572. IFS="$lt_save_ifs"
  5573. if test "X$pkg" = "X$p"; then
  5574. enable_shared=yes
  5575. fi
  5576. done
  5577. IFS="$lt_save_ifs"
  5578. ;;
  5579. esac
  5580. else
  5581. enable_shared=yes
  5582. fi
  5583. # Check whether --enable-static was given.
  5584. if test "${enable_static+set}" = set; then
  5585. enableval=$enable_static; p=${PACKAGE-default}
  5586. case $enableval in
  5587. yes) enable_static=yes ;;
  5588. no) enable_static=no ;;
  5589. *)
  5590. enable_static=no
  5591. # Look at the argument we got. We use all the common list separators.
  5592. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  5593. for pkg in $enableval; do
  5594. IFS="$lt_save_ifs"
  5595. if test "X$pkg" = "X$p"; then
  5596. enable_static=yes
  5597. fi
  5598. done
  5599. IFS="$lt_save_ifs"
  5600. ;;
  5601. esac
  5602. else
  5603. enable_static=yes
  5604. fi
  5605. # Check whether --with-pic was given.
  5606. if test "${with_pic+set}" = set; then
  5607. withval=$with_pic; pic_mode="$withval"
  5608. else
  5609. pic_mode=default
  5610. fi
  5611. test -z "$pic_mode" && pic_mode=default
  5612. # Check whether --enable-fast-install was given.
  5613. if test "${enable_fast_install+set}" = set; then
  5614. enableval=$enable_fast_install; p=${PACKAGE-default}
  5615. case $enableval in
  5616. yes) enable_fast_install=yes ;;
  5617. no) enable_fast_install=no ;;
  5618. *)
  5619. enable_fast_install=no
  5620. # Look at the argument we got. We use all the common list separators.
  5621. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  5622. for pkg in $enableval; do
  5623. IFS="$lt_save_ifs"
  5624. if test "X$pkg" = "X$p"; then
  5625. enable_fast_install=yes
  5626. fi
  5627. done
  5628. IFS="$lt_save_ifs"
  5629. ;;
  5630. esac
  5631. else
  5632. enable_fast_install=yes
  5633. fi
  5634. # This can be used to rebuild libtool when needed
  5635. LIBTOOL_DEPS="$ltmain"
  5636. # Always use our own libtool.
  5637. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  5638. test -z "$LN_S" && LN_S="ln -s"
  5639. if test -n "${ZSH_VERSION+set}" ; then
  5640. setopt NO_GLOB_SUBST
  5641. fi
  5642. { echo "$as_me:$LINENO: checking for objdir" >&5
  5643. echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
  5644. if test "${lt_cv_objdir+set}" = set; then
  5645. echo $ECHO_N "(cached) $ECHO_C" >&6
  5646. else
  5647. rm -f .libs 2>/dev/null
  5648. mkdir .libs 2>/dev/null
  5649. if test -d .libs; then
  5650. lt_cv_objdir=.libs
  5651. else
  5652. # MS-DOS does not allow filenames that begin with a dot.
  5653. lt_cv_objdir=_libs
  5654. fi
  5655. rmdir .libs 2>/dev/null
  5656. fi
  5657. { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  5658. echo "${ECHO_T}$lt_cv_objdir" >&6; }
  5659. objdir=$lt_cv_objdir
  5660. cat >>confdefs.h <<_ACEOF
  5661. #define LT_OBJDIR "$lt_cv_objdir/"
  5662. _ACEOF
  5663. case $host_os in
  5664. aix3*)
  5665. # AIX sometimes has problems with the GCC collect2 program. For some
  5666. # reason, if we set the COLLECT_NAMES environment variable, the problems
  5667. # vanish in a puff of smoke.
  5668. if test "X${COLLECT_NAMES+set}" != Xset; then
  5669. COLLECT_NAMES=
  5670. export COLLECT_NAMES
  5671. fi
  5672. ;;
  5673. esac
  5674. # Sed substitution that helps us do robust quoting. It backslashifies
  5675. # metacharacters that are still active within double-quoted strings.
  5676. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  5677. # Same as above, but do not quote variable references.
  5678. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  5679. # Sed substitution to delay expansion of an escaped shell variable in a
  5680. # double_quote_subst'ed string.
  5681. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5682. # Sed substitution to delay expansion of an escaped single quote.
  5683. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  5684. # Sed substitution to avoid accidental globbing in evaled expressions
  5685. no_glob_subst='s/\*/\\\*/g'
  5686. # Global variables:
  5687. ofile=libtool
  5688. can_build_shared=yes
  5689. # All known linkers require a `.a' archive for static linking (except MSVC,
  5690. # which needs '.lib').
  5691. libext=a
  5692. with_gnu_ld="$lt_cv_prog_gnu_ld"
  5693. old_CC="$CC"
  5694. old_CFLAGS="$CFLAGS"
  5695. # Set sane defaults for various variables
  5696. test -z "$CC" && CC=cc
  5697. test -z "$LTCC" && LTCC=$CC
  5698. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  5699. test -z "$LD" && LD=ld
  5700. test -z "$ac_objext" && ac_objext=o
  5701. for cc_temp in $compiler""; do
  5702. case $cc_temp in
  5703. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  5704. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  5705. \-*) ;;
  5706. *) break;;
  5707. esac
  5708. done
  5709. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  5710. # Only perform the check for file, if the check method requires it
  5711. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  5712. case $deplibs_check_method in
  5713. file_magic*)
  5714. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  5715. { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  5716. echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
  5717. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  5718. echo $ECHO_N "(cached) $ECHO_C" >&6
  5719. else
  5720. case $MAGIC_CMD in
  5721. [\\/*] | ?:[\\/]*)
  5722. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  5723. ;;
  5724. *)
  5725. lt_save_MAGIC_CMD="$MAGIC_CMD"
  5726. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5727. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  5728. for ac_dir in $ac_dummy; do
  5729. IFS="$lt_save_ifs"
  5730. test -z "$ac_dir" && ac_dir=.
  5731. if test -f $ac_dir/${ac_tool_prefix}file; then
  5732. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  5733. if test -n "$file_magic_test_file"; then
  5734. case $deplibs_check_method in
  5735. "file_magic "*)
  5736. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  5737. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5738. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  5739. $EGREP "$file_magic_regex" > /dev/null; then
  5740. :
  5741. else
  5742. cat <<_LT_EOF 1>&2
  5743. *** Warning: the command libtool uses to detect shared libraries,
  5744. *** $file_magic_cmd, produces output that libtool cannot recognize.
  5745. *** The result is that libtool may fail to recognize shared libraries
  5746. *** as such. This will affect the creation of libtool libraries that
  5747. *** depend on shared libraries, but programs linked with such libtool
  5748. *** libraries will work regardless of this problem. Nevertheless, you
  5749. *** may want to report the problem to your system manager and/or to
  5750. *** bug-libtool@gnu.org
  5751. _LT_EOF
  5752. fi ;;
  5753. esac
  5754. fi
  5755. break
  5756. fi
  5757. done
  5758. IFS="$lt_save_ifs"
  5759. MAGIC_CMD="$lt_save_MAGIC_CMD"
  5760. ;;
  5761. esac
  5762. fi
  5763. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5764. if test -n "$MAGIC_CMD"; then
  5765. { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  5766. echo "${ECHO_T}$MAGIC_CMD" >&6; }
  5767. else
  5768. { echo "$as_me:$LINENO: result: no" >&5
  5769. echo "${ECHO_T}no" >&6; }
  5770. fi
  5771. if test -z "$lt_cv_path_MAGIC_CMD"; then
  5772. if test -n "$ac_tool_prefix"; then
  5773. { echo "$as_me:$LINENO: checking for file" >&5
  5774. echo $ECHO_N "checking for file... $ECHO_C" >&6; }
  5775. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  5776. echo $ECHO_N "(cached) $ECHO_C" >&6
  5777. else
  5778. case $MAGIC_CMD in
  5779. [\\/*] | ?:[\\/]*)
  5780. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  5781. ;;
  5782. *)
  5783. lt_save_MAGIC_CMD="$MAGIC_CMD"
  5784. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5785. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  5786. for ac_dir in $ac_dummy; do
  5787. IFS="$lt_save_ifs"
  5788. test -z "$ac_dir" && ac_dir=.
  5789. if test -f $ac_dir/file; then
  5790. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  5791. if test -n "$file_magic_test_file"; then
  5792. case $deplibs_check_method in
  5793. "file_magic "*)
  5794. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  5795. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5796. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  5797. $EGREP "$file_magic_regex" > /dev/null; then
  5798. :
  5799. else
  5800. cat <<_LT_EOF 1>&2
  5801. *** Warning: the command libtool uses to detect shared libraries,
  5802. *** $file_magic_cmd, produces output that libtool cannot recognize.
  5803. *** The result is that libtool may fail to recognize shared libraries
  5804. *** as such. This will affect the creation of libtool libraries that
  5805. *** depend on shared libraries, but programs linked with such libtool
  5806. *** libraries will work regardless of this problem. Nevertheless, you
  5807. *** may want to report the problem to your system manager and/or to
  5808. *** bug-libtool@gnu.org
  5809. _LT_EOF
  5810. fi ;;
  5811. esac
  5812. fi
  5813. break
  5814. fi
  5815. done
  5816. IFS="$lt_save_ifs"
  5817. MAGIC_CMD="$lt_save_MAGIC_CMD"
  5818. ;;
  5819. esac
  5820. fi
  5821. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5822. if test -n "$MAGIC_CMD"; then
  5823. { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  5824. echo "${ECHO_T}$MAGIC_CMD" >&6; }
  5825. else
  5826. { echo "$as_me:$LINENO: result: no" >&5
  5827. echo "${ECHO_T}no" >&6; }
  5828. fi
  5829. else
  5830. MAGIC_CMD=:
  5831. fi
  5832. fi
  5833. fi
  5834. ;;
  5835. esac
  5836. # Use C for the default configuration in the libtool script
  5837. lt_save_CC="$CC"
  5838. ac_ext=c
  5839. ac_cpp='$CPP $CPPFLAGS'
  5840. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5841. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5842. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5843. # Source file extension for C test sources.
  5844. ac_ext=c
  5845. # Object file extension for compiled C test sources.
  5846. objext=o
  5847. objext=$objext
  5848. # Code to be used in simple compile tests
  5849. lt_simple_compile_test_code="int some_variable = 0;"
  5850. # Code to be used in simple link tests
  5851. lt_simple_link_test_code='int main(){return(0);}'
  5852. # If no C compiler was specified, use CC.
  5853. LTCC=${LTCC-"$CC"}
  5854. # If no C compiler flags were specified, use CFLAGS.
  5855. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5856. # Allow CC to be a program name with arguments.
  5857. compiler=$CC
  5858. # Save the default compiler, since it gets overwritten when the other
  5859. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  5860. compiler_DEFAULT=$CC
  5861. # save warnings/boilerplate of simple test code
  5862. ac_outfile=conftest.$ac_objext
  5863. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  5864. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  5865. _lt_compiler_boilerplate=`cat conftest.err`
  5866. $RM conftest*
  5867. ac_outfile=conftest.$ac_objext
  5868. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  5869. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  5870. _lt_linker_boilerplate=`cat conftest.err`
  5871. $RM -r conftest*
  5872. ## CAVEAT EMPTOR:
  5873. ## There is no encapsulation within the following macros, do not change
  5874. ## the running order or otherwise move them around unless you know exactly
  5875. ## what you are doing...
  5876. if test -n "$compiler"; then
  5877. lt_prog_compiler_no_builtin_flag=
  5878. if test "$GCC" = yes; then
  5879. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  5880. { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  5881. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  5882. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  5883. echo $ECHO_N "(cached) $ECHO_C" >&6
  5884. else
  5885. lt_cv_prog_compiler_rtti_exceptions=no
  5886. ac_outfile=conftest.$ac_objext
  5887. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  5888. lt_compiler_flag="-fno-rtti -fno-exceptions"
  5889. # Insert the option either (1) after the last *FLAGS variable, or
  5890. # (2) before a word containing "conftest.", or (3) at the end.
  5891. # Note that $ac_compile itself does not contain backslashes and begins
  5892. # with a dollar sign (not a hyphen), so the echo should work correctly.
  5893. # The option is referenced via a variable to avoid confusing sed.
  5894. lt_compile=`echo "$ac_compile" | $SED \
  5895. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  5896. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  5897. -e 's:$: $lt_compiler_flag:'`
  5898. (eval echo "\"\$as_me:6851: $lt_compile\"" >&5)
  5899. (eval "$lt_compile" 2>conftest.err)
  5900. ac_status=$?
  5901. cat conftest.err >&5
  5902. echo "$as_me:6855: \$? = $ac_status" >&5
  5903. if (exit $ac_status) && test -s "$ac_outfile"; then
  5904. # The compiler can only warn and ignore the option if not recognized
  5905. # So say no if there are warnings other than the usual output.
  5906. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  5907. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  5908. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  5909. lt_cv_prog_compiler_rtti_exceptions=yes
  5910. fi
  5911. fi
  5912. $RM conftest*
  5913. fi
  5914. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  5915. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  5916. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  5917. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  5918. else
  5919. :
  5920. fi
  5921. fi
  5922. lt_prog_compiler_wl=
  5923. lt_prog_compiler_pic=
  5924. lt_prog_compiler_static=
  5925. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  5926. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  5927. if test "$GCC" = yes; then
  5928. lt_prog_compiler_wl='-Wl,'
  5929. lt_prog_compiler_static='-static'
  5930. case $host_os in
  5931. aix*)
  5932. # All AIX code is PIC.
  5933. if test "$host_cpu" = ia64; then
  5934. # AIX 5 now supports IA64 processor
  5935. lt_prog_compiler_static='-Bstatic'
  5936. fi
  5937. ;;
  5938. amigaos*)
  5939. case $host_cpu in
  5940. powerpc)
  5941. # see comment about AmigaOS4 .so support
  5942. lt_prog_compiler_pic='-fPIC'
  5943. ;;
  5944. m68k)
  5945. # FIXME: we need at least 68020 code to build shared libraries, but
  5946. # adding the `-m68020' flag to GCC prevents building anything better,
  5947. # like `-m68040'.
  5948. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  5949. ;;
  5950. esac
  5951. ;;
  5952. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  5953. # PIC is the default for these OSes.
  5954. ;;
  5955. mingw* | cygwin* | pw32* | os2*)
  5956. # This hack is so that the source file can tell whether it is being
  5957. # built for inclusion in a dll (and should export symbols for example).
  5958. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  5959. # (--disable-auto-import) libraries
  5960. lt_prog_compiler_pic='-DDLL_EXPORT'
  5961. ;;
  5962. darwin* | rhapsody*)
  5963. # PIC is the default on this platform
  5964. # Common symbols not allowed in MH_DYLIB files
  5965. lt_prog_compiler_pic='-fno-common'
  5966. ;;
  5967. hpux*)
  5968. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  5969. # not for PA HP-UX.
  5970. case $host_cpu in
  5971. hppa*64*|ia64*)
  5972. # +Z the default
  5973. ;;
  5974. *)
  5975. lt_prog_compiler_pic='-fPIC'
  5976. ;;
  5977. esac
  5978. ;;
  5979. interix[3-9]*)
  5980. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  5981. # Instead, we relocate shared libraries at runtime.
  5982. ;;
  5983. msdosdjgpp*)
  5984. # Just because we use GCC doesn't mean we suddenly get shared libraries
  5985. # on systems that don't support them.
  5986. lt_prog_compiler_can_build_shared=no
  5987. enable_shared=no
  5988. ;;
  5989. *nto* | *qnx*)
  5990. # QNX uses GNU C++, but need to define -shared option too, otherwise
  5991. # it will coredump.
  5992. lt_prog_compiler_pic='-fPIC -shared'
  5993. ;;
  5994. sysv4*MP*)
  5995. if test -d /usr/nec; then
  5996. lt_prog_compiler_pic=-Kconform_pic
  5997. fi
  5998. ;;
  5999. *)
  6000. lt_prog_compiler_pic='-fPIC'
  6001. ;;
  6002. esac
  6003. else
  6004. # PORTME Check for flag to pass linker flags through the system compiler.
  6005. case $host_os in
  6006. aix*)
  6007. lt_prog_compiler_wl='-Wl,'
  6008. if test "$host_cpu" = ia64; then
  6009. # AIX 5 now supports IA64 processor
  6010. lt_prog_compiler_static='-Bstatic'
  6011. else
  6012. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6013. fi
  6014. ;;
  6015. mingw* | cygwin* | pw32* | os2*)
  6016. # This hack is so that the source file can tell whether it is being
  6017. # built for inclusion in a dll (and should export symbols for example).
  6018. lt_prog_compiler_pic='-DDLL_EXPORT'
  6019. ;;
  6020. hpux9* | hpux10* | hpux11*)
  6021. lt_prog_compiler_wl='-Wl,'
  6022. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6023. # not for PA HP-UX.
  6024. case $host_cpu in
  6025. hppa*64*|ia64*)
  6026. # +Z the default
  6027. ;;
  6028. *)
  6029. lt_prog_compiler_pic='+Z'
  6030. ;;
  6031. esac
  6032. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6033. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6034. ;;
  6035. irix5* | irix6* | nonstopux*)
  6036. lt_prog_compiler_wl='-Wl,'
  6037. # PIC (with -KPIC) is the default.
  6038. lt_prog_compiler_static='-non_shared'
  6039. ;;
  6040. linux* | k*bsd*-gnu)
  6041. case $cc_basename in
  6042. icc* | ecc* | ifort*)
  6043. lt_prog_compiler_wl='-Wl,'
  6044. lt_prog_compiler_pic='-KPIC'
  6045. lt_prog_compiler_static='-static'
  6046. ;;
  6047. pgcc* | pgf77* | pgf90* | pgf95*)
  6048. # Portland Group compilers (*not* the Pentium gcc compiler,
  6049. # which looks to be a dead project)
  6050. lt_prog_compiler_wl='-Wl,'
  6051. lt_prog_compiler_pic='-fpic'
  6052. lt_prog_compiler_static='-Bstatic'
  6053. ;;
  6054. ccc*)
  6055. lt_prog_compiler_wl='-Wl,'
  6056. # All Alpha code is PIC.
  6057. lt_prog_compiler_static='-non_shared'
  6058. ;;
  6059. xl*)
  6060. # IBM XL C 8.0/Fortran 10.1 on PPC
  6061. lt_prog_compiler_wl='-Wl,'
  6062. lt_prog_compiler_pic='-qpic'
  6063. lt_prog_compiler_static='-qstaticlink'
  6064. ;;
  6065. *)
  6066. case `$CC -V 2>&1 | sed 5q` in
  6067. *Sun\ C*)
  6068. # Sun C 5.9
  6069. lt_prog_compiler_pic='-KPIC'
  6070. lt_prog_compiler_static='-Bstatic'
  6071. lt_prog_compiler_wl='-Wl,'
  6072. ;;
  6073. *Sun\ F*)
  6074. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  6075. lt_prog_compiler_pic='-KPIC'
  6076. lt_prog_compiler_static='-Bstatic'
  6077. lt_prog_compiler_wl=''
  6078. ;;
  6079. esac
  6080. ;;
  6081. esac
  6082. ;;
  6083. newsos6)
  6084. lt_prog_compiler_pic='-KPIC'
  6085. lt_prog_compiler_static='-Bstatic'
  6086. ;;
  6087. *nto* | *qnx*)
  6088. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6089. # it will coredump.
  6090. lt_prog_compiler_pic='-fPIC -shared'
  6091. ;;
  6092. osf3* | osf4* | osf5*)
  6093. lt_prog_compiler_wl='-Wl,'
  6094. # All OSF/1 code is PIC.
  6095. lt_prog_compiler_static='-non_shared'
  6096. ;;
  6097. rdos*)
  6098. lt_prog_compiler_static='-non_shared'
  6099. ;;
  6100. solaris*)
  6101. lt_prog_compiler_pic='-KPIC'
  6102. lt_prog_compiler_static='-Bstatic'
  6103. case $cc_basename in
  6104. f77* | f90* | f95*)
  6105. lt_prog_compiler_wl='-Qoption ld ';;
  6106. *)
  6107. lt_prog_compiler_wl='-Wl,';;
  6108. esac
  6109. ;;
  6110. sunos4*)
  6111. lt_prog_compiler_wl='-Qoption ld '
  6112. lt_prog_compiler_pic='-PIC'
  6113. lt_prog_compiler_static='-Bstatic'
  6114. ;;
  6115. sysv4 | sysv4.2uw2* | sysv4.3*)
  6116. lt_prog_compiler_wl='-Wl,'
  6117. lt_prog_compiler_pic='-KPIC'
  6118. lt_prog_compiler_static='-Bstatic'
  6119. ;;
  6120. sysv4*MP*)
  6121. if test -d /usr/nec ;then
  6122. lt_prog_compiler_pic='-Kconform_pic'
  6123. lt_prog_compiler_static='-Bstatic'
  6124. fi
  6125. ;;
  6126. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  6127. lt_prog_compiler_wl='-Wl,'
  6128. lt_prog_compiler_pic='-KPIC'
  6129. lt_prog_compiler_static='-Bstatic'
  6130. ;;
  6131. unicos*)
  6132. lt_prog_compiler_wl='-Wl,'
  6133. lt_prog_compiler_can_build_shared=no
  6134. ;;
  6135. uts4*)
  6136. lt_prog_compiler_pic='-pic'
  6137. lt_prog_compiler_static='-Bstatic'
  6138. ;;
  6139. *)
  6140. lt_prog_compiler_can_build_shared=no
  6141. ;;
  6142. esac
  6143. fi
  6144. case $host_os in
  6145. # For platforms which do not support PIC, -DPIC is meaningless:
  6146. *djgpp*)
  6147. lt_prog_compiler_pic=
  6148. ;;
  6149. *)
  6150. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  6151. ;;
  6152. esac
  6153. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  6154. echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
  6155. #
  6156. # Check to make sure the PIC flag actually works.
  6157. #
  6158. if test -n "$lt_prog_compiler_pic"; then
  6159. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  6160. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
  6161. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
  6162. echo $ECHO_N "(cached) $ECHO_C" >&6
  6163. else
  6164. lt_cv_prog_compiler_pic_works=no
  6165. ac_outfile=conftest.$ac_objext
  6166. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6167. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  6168. # Insert the option either (1) after the last *FLAGS variable, or
  6169. # (2) before a word containing "conftest.", or (3) at the end.
  6170. # Note that $ac_compile itself does not contain backslashes and begins
  6171. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6172. # The option is referenced via a variable to avoid confusing sed.
  6173. lt_compile=`echo "$ac_compile" | $SED \
  6174. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6175. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6176. -e 's:$: $lt_compiler_flag:'`
  6177. (eval echo "\"\$as_me:7175: $lt_compile\"" >&5)
  6178. (eval "$lt_compile" 2>conftest.err)
  6179. ac_status=$?
  6180. cat conftest.err >&5
  6181. echo "$as_me:7179: \$? = $ac_status" >&5
  6182. if (exit $ac_status) && test -s "$ac_outfile"; then
  6183. # The compiler can only warn and ignore the option if not recognized
  6184. # So say no if there are warnings other than the usual output.
  6185. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6186. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6187. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6188. lt_cv_prog_compiler_pic_works=yes
  6189. fi
  6190. fi
  6191. $RM conftest*
  6192. fi
  6193. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
  6194. echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
  6195. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  6196. case $lt_prog_compiler_pic in
  6197. "" | " "*) ;;
  6198. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  6199. esac
  6200. else
  6201. lt_prog_compiler_pic=
  6202. lt_prog_compiler_can_build_shared=no
  6203. fi
  6204. fi
  6205. #
  6206. # Check to make sure the static flag actually works.
  6207. #
  6208. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  6209. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  6210. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  6211. if test "${lt_cv_prog_compiler_static_works+set}" = set; then
  6212. echo $ECHO_N "(cached) $ECHO_C" >&6
  6213. else
  6214. lt_cv_prog_compiler_static_works=no
  6215. save_LDFLAGS="$LDFLAGS"
  6216. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  6217. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  6218. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  6219. # The linker can only warn and ignore the option if not recognized
  6220. # So say no if there are warnings
  6221. if test -s conftest.err; then
  6222. # Append any errors to the config.log.
  6223. cat conftest.err 1>&5
  6224. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  6225. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6226. if diff conftest.exp conftest.er2 >/dev/null; then
  6227. lt_cv_prog_compiler_static_works=yes
  6228. fi
  6229. else
  6230. lt_cv_prog_compiler_static_works=yes
  6231. fi
  6232. fi
  6233. $RM -r conftest*
  6234. LDFLAGS="$save_LDFLAGS"
  6235. fi
  6236. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
  6237. echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
  6238. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  6239. :
  6240. else
  6241. lt_prog_compiler_static=
  6242. fi
  6243. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  6244. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  6245. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  6246. echo $ECHO_N "(cached) $ECHO_C" >&6
  6247. else
  6248. lt_cv_prog_compiler_c_o=no
  6249. $RM -r conftest 2>/dev/null
  6250. mkdir conftest
  6251. cd conftest
  6252. mkdir out
  6253. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6254. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6255. # Insert the option either (1) after the last *FLAGS variable, or
  6256. # (2) before a word containing "conftest.", or (3) at the end.
  6257. # Note that $ac_compile itself does not contain backslashes and begins
  6258. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6259. lt_compile=`echo "$ac_compile" | $SED \
  6260. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6261. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6262. -e 's:$: $lt_compiler_flag:'`
  6263. (eval echo "\"\$as_me:7280: $lt_compile\"" >&5)
  6264. (eval "$lt_compile" 2>out/conftest.err)
  6265. ac_status=$?
  6266. cat out/conftest.err >&5
  6267. echo "$as_me:7284: \$? = $ac_status" >&5
  6268. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6269. then
  6270. # The compiler can only warn and ignore the option if not recognized
  6271. # So say no if there are warnings
  6272. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  6273. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  6274. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6275. lt_cv_prog_compiler_c_o=yes
  6276. fi
  6277. fi
  6278. chmod u+w . 2>&5
  6279. $RM conftest*
  6280. # SGI C++ compiler will create directory out/ii_files/ for
  6281. # template instantiation
  6282. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  6283. $RM out/* && rmdir out
  6284. cd ..
  6285. $RM -r conftest
  6286. $RM conftest*
  6287. fi
  6288. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  6289. echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
  6290. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  6291. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  6292. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  6293. echo $ECHO_N "(cached) $ECHO_C" >&6
  6294. else
  6295. lt_cv_prog_compiler_c_o=no
  6296. $RM -r conftest 2>/dev/null
  6297. mkdir conftest
  6298. cd conftest
  6299. mkdir out
  6300. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6301. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6302. # Insert the option either (1) after the last *FLAGS variable, or
  6303. # (2) before a word containing "conftest.", or (3) at the end.
  6304. # Note that $ac_compile itself does not contain backslashes and begins
  6305. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6306. lt_compile=`echo "$ac_compile" | $SED \
  6307. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6308. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6309. -e 's:$: $lt_compiler_flag:'`
  6310. (eval echo "\"\$as_me:7335: $lt_compile\"" >&5)
  6311. (eval "$lt_compile" 2>out/conftest.err)
  6312. ac_status=$?
  6313. cat out/conftest.err >&5
  6314. echo "$as_me:7339: \$? = $ac_status" >&5
  6315. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6316. then
  6317. # The compiler can only warn and ignore the option if not recognized
  6318. # So say no if there are warnings
  6319. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  6320. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  6321. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6322. lt_cv_prog_compiler_c_o=yes
  6323. fi
  6324. fi
  6325. chmod u+w . 2>&5
  6326. $RM conftest*
  6327. # SGI C++ compiler will create directory out/ii_files/ for
  6328. # template instantiation
  6329. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  6330. $RM out/* && rmdir out
  6331. cd ..
  6332. $RM -r conftest
  6333. $RM conftest*
  6334. fi
  6335. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  6336. echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
  6337. hard_links="nottested"
  6338. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  6339. # do not overwrite the value of need_locks provided by the user
  6340. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  6341. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  6342. hard_links=yes
  6343. $RM conftest*
  6344. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6345. touch conftest.a
  6346. ln conftest.a conftest.b 2>&5 || hard_links=no
  6347. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6348. { echo "$as_me:$LINENO: result: $hard_links" >&5
  6349. echo "${ECHO_T}$hard_links" >&6; }
  6350. if test "$hard_links" = no; then
  6351. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  6352. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  6353. need_locks=warn
  6354. fi
  6355. else
  6356. need_locks=no
  6357. fi
  6358. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  6359. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  6360. runpath_var=
  6361. allow_undefined_flag=
  6362. always_export_symbols=no
  6363. archive_cmds=
  6364. archive_expsym_cmds=
  6365. compiler_needs_object=no
  6366. enable_shared_with_static_runtimes=no
  6367. export_dynamic_flag_spec=
  6368. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  6369. hardcode_automatic=no
  6370. hardcode_direct=no
  6371. hardcode_direct_absolute=no
  6372. hardcode_libdir_flag_spec=
  6373. hardcode_libdir_flag_spec_ld=
  6374. hardcode_libdir_separator=
  6375. hardcode_minus_L=no
  6376. hardcode_shlibpath_var=unsupported
  6377. inherit_rpath=no
  6378. link_all_deplibs=unknown
  6379. module_cmds=
  6380. module_expsym_cmds=
  6381. old_archive_from_new_cmds=
  6382. old_archive_from_expsyms_cmds=
  6383. thread_safe_flag_spec=
  6384. whole_archive_flag_spec=
  6385. # include_expsyms should be a list of space-separated symbols to be *always*
  6386. # included in the symbol list
  6387. include_expsyms=
  6388. # exclude_expsyms can be an extended regexp of symbols to exclude
  6389. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  6390. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  6391. # as well as any symbol that contains `d'.
  6392. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  6393. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  6394. # platforms (ab)use it in PIC code, but their linkers get confused if
  6395. # the symbol is explicitly referenced. Since portable code cannot
  6396. # rely on this symbol name, it's probably fine to never include it in
  6397. # preloaded symbol tables.
  6398. # Exclude shared library initialization/finalization symbols.
  6399. extract_expsyms_cmds=
  6400. case $host_os in
  6401. cygwin* | mingw* | pw32*)
  6402. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  6403. # When not using gcc, we currently assume that we are using
  6404. # Microsoft Visual C++.
  6405. if test "$GCC" != yes; then
  6406. with_gnu_ld=no
  6407. fi
  6408. ;;
  6409. interix*)
  6410. # we just hope/assume this is gcc and not c89 (= MSVC++)
  6411. with_gnu_ld=yes
  6412. ;;
  6413. openbsd*)
  6414. with_gnu_ld=no
  6415. ;;
  6416. esac
  6417. ld_shlibs=yes
  6418. if test "$with_gnu_ld" = yes; then
  6419. # If archive_cmds runs LD, not CC, wlarc should be empty
  6420. wlarc='${wl}'
  6421. # Set some defaults for GNU ld with shared library support. These
  6422. # are reset later if shared libraries are not supported. Putting them
  6423. # here allows them to be overridden if necessary.
  6424. runpath_var=LD_RUN_PATH
  6425. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6426. export_dynamic_flag_spec='${wl}--export-dynamic'
  6427. # ancient GNU ld didn't support --whole-archive et. al.
  6428. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  6429. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6430. else
  6431. whole_archive_flag_spec=
  6432. fi
  6433. supports_anon_versioning=no
  6434. case `$LD -v 2>&1` in
  6435. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  6436. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  6437. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  6438. *\ 2.11.*) ;; # other 2.11 versions
  6439. *) supports_anon_versioning=yes ;;
  6440. esac
  6441. # See if GNU ld supports shared libraries.
  6442. case $host_os in
  6443. aix[3-9]*)
  6444. # On AIX/PPC, the GNU linker is very broken
  6445. if test "$host_cpu" != ia64; then
  6446. ld_shlibs=no
  6447. cat <<_LT_EOF 1>&2
  6448. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  6449. *** to be unable to reliably create shared libraries on AIX.
  6450. *** Therefore, libtool is disabling shared libraries support. If you
  6451. *** really care for shared libraries, you may want to modify your PATH
  6452. *** so that a non-GNU linker is found, and then restart.
  6453. _LT_EOF
  6454. fi
  6455. ;;
  6456. amigaos*)
  6457. case $host_cpu in
  6458. powerpc)
  6459. # see comment about AmigaOS4 .so support
  6460. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6461. archive_expsym_cmds=''
  6462. ;;
  6463. m68k)
  6464. 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)'
  6465. hardcode_libdir_flag_spec='-L$libdir'
  6466. hardcode_minus_L=yes
  6467. ;;
  6468. esac
  6469. ;;
  6470. beos*)
  6471. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  6472. allow_undefined_flag=unsupported
  6473. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  6474. # support --undefined. This deserves some investigation. FIXME
  6475. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6476. else
  6477. ld_shlibs=no
  6478. fi
  6479. ;;
  6480. cygwin* | mingw* | pw32*)
  6481. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  6482. # as there is no search path for DLLs.
  6483. hardcode_libdir_flag_spec='-L$libdir'
  6484. allow_undefined_flag=unsupported
  6485. always_export_symbols=no
  6486. enable_shared_with_static_runtimes=yes
  6487. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  6488. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  6489. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  6490. # If the export-symbols file already is a .def file (1st line
  6491. # is EXPORTS), use it as is; otherwise, prepend...
  6492. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  6493. cp $export_symbols $output_objdir/$soname.def;
  6494. else
  6495. echo EXPORTS > $output_objdir/$soname.def;
  6496. cat $export_symbols >> $output_objdir/$soname.def;
  6497. fi~
  6498. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  6499. else
  6500. ld_shlibs=no
  6501. fi
  6502. ;;
  6503. interix[3-9]*)
  6504. hardcode_direct=no
  6505. hardcode_shlibpath_var=no
  6506. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6507. export_dynamic_flag_spec='${wl}-E'
  6508. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  6509. # Instead, shared libraries are loaded at an image base (0x10000000 by
  6510. # default) and relocated if they conflict, which is a slow very memory
  6511. # consuming and fragmenting process. To avoid this, we pick a random,
  6512. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  6513. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  6514. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  6515. 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'
  6516. ;;
  6517. gnu* | linux* | tpf* | k*bsd*-gnu)
  6518. tmp_diet=no
  6519. if test "$host_os" = linux-dietlibc; then
  6520. case $cc_basename in
  6521. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  6522. esac
  6523. fi
  6524. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  6525. && test "$tmp_diet" = no
  6526. then
  6527. tmp_addflag=
  6528. tmp_sharedflag='-shared'
  6529. case $cc_basename,$host_cpu in
  6530. pgcc*) # Portland Group C compiler
  6531. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  6532. tmp_addflag=' $pic_flag'
  6533. ;;
  6534. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  6535. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  6536. tmp_addflag=' $pic_flag -Mnomain' ;;
  6537. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  6538. tmp_addflag=' -i_dynamic' ;;
  6539. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  6540. tmp_addflag=' -i_dynamic -nofor_main' ;;
  6541. ifc* | ifort*) # Intel Fortran compiler
  6542. tmp_addflag=' -nofor_main' ;;
  6543. xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  6544. tmp_sharedflag='-qmkshrobj'
  6545. tmp_addflag= ;;
  6546. esac
  6547. case `$CC -V 2>&1 | sed 5q` in
  6548. *Sun\ C*) # Sun C 5.9
  6549. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  6550. compiler_needs_object=yes
  6551. tmp_sharedflag='-G' ;;
  6552. *Sun\ F*) # Sun Fortran 8.3
  6553. tmp_sharedflag='-G' ;;
  6554. esac
  6555. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6556. if test "x$supports_anon_versioning" = xyes; then
  6557. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  6558. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  6559. echo "local: *; };" >> $output_objdir/$libname.ver~
  6560. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  6561. fi
  6562. case $cc_basename in
  6563. xlf*)
  6564. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  6565. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  6566. hardcode_libdir_flag_spec=
  6567. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  6568. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  6569. if test "x$supports_anon_versioning" = xyes; then
  6570. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  6571. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  6572. echo "local: *; };" >> $output_objdir/$libname.ver~
  6573. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  6574. fi
  6575. ;;
  6576. esac
  6577. else
  6578. ld_shlibs=no
  6579. fi
  6580. ;;
  6581. netbsd* | netbsdelf*-gnu)
  6582. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  6583. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  6584. wlarc=
  6585. else
  6586. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6587. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6588. fi
  6589. ;;
  6590. solaris*)
  6591. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  6592. ld_shlibs=no
  6593. cat <<_LT_EOF 1>&2
  6594. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  6595. *** create shared libraries on Solaris systems. Therefore, libtool
  6596. *** is disabling shared libraries support. We urge you to upgrade GNU
  6597. *** binutils to release 2.9.1 or newer. Another option is to modify
  6598. *** your PATH or compiler configuration so that the native linker is
  6599. *** used, and then restart.
  6600. _LT_EOF
  6601. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  6602. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6603. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6604. else
  6605. ld_shlibs=no
  6606. fi
  6607. ;;
  6608. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  6609. case `$LD -v 2>&1` in
  6610. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  6611. ld_shlibs=no
  6612. cat <<_LT_EOF 1>&2
  6613. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  6614. *** reliably create shared libraries on SCO systems. Therefore, libtool
  6615. *** is disabling shared libraries support. We urge you to upgrade GNU
  6616. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  6617. *** your PATH or compiler configuration so that the native linker is
  6618. *** used, and then restart.
  6619. _LT_EOF
  6620. ;;
  6621. *)
  6622. # For security reasons, it is highly recommended that you always
  6623. # use absolute paths for naming shared libraries, and exclude the
  6624. # DT_RUNPATH tag from executables and libraries. But doing so
  6625. # requires that you compile everything twice, which is a pain.
  6626. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  6627. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6628. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6629. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6630. else
  6631. ld_shlibs=no
  6632. fi
  6633. ;;
  6634. esac
  6635. ;;
  6636. sunos4*)
  6637. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6638. wlarc=
  6639. hardcode_direct=yes
  6640. hardcode_shlibpath_var=no
  6641. ;;
  6642. *)
  6643. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  6644. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6645. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6646. else
  6647. ld_shlibs=no
  6648. fi
  6649. ;;
  6650. esac
  6651. if test "$ld_shlibs" = no; then
  6652. runpath_var=
  6653. hardcode_libdir_flag_spec=
  6654. export_dynamic_flag_spec=
  6655. whole_archive_flag_spec=
  6656. fi
  6657. else
  6658. # PORTME fill in a description of your system's linker (not GNU ld)
  6659. case $host_os in
  6660. aix3*)
  6661. allow_undefined_flag=unsupported
  6662. always_export_symbols=yes
  6663. 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'
  6664. # Note: this linker hardcodes the directories in LIBPATH if there
  6665. # are no directories specified by -L.
  6666. hardcode_minus_L=yes
  6667. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  6668. # Neither direct hardcoding nor static linking is supported with a
  6669. # broken collect2.
  6670. hardcode_direct=unsupported
  6671. fi
  6672. ;;
  6673. aix[4-9]*)
  6674. if test "$host_cpu" = ia64; then
  6675. # On IA64, the linker does run time linking by default, so we don't
  6676. # have to do anything special.
  6677. aix_use_runtimelinking=no
  6678. exp_sym_flag='-Bexport'
  6679. no_entry_flag=""
  6680. else
  6681. # If we're using GNU nm, then we don't want the "-C" option.
  6682. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  6683. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  6684. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  6685. else
  6686. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  6687. fi
  6688. aix_use_runtimelinking=no
  6689. # Test if we are trying to use run time linking or normal
  6690. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  6691. # need to do runtime linking.
  6692. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  6693. for ld_flag in $LDFLAGS; do
  6694. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  6695. aix_use_runtimelinking=yes
  6696. break
  6697. fi
  6698. done
  6699. ;;
  6700. esac
  6701. exp_sym_flag='-bexport'
  6702. no_entry_flag='-bnoentry'
  6703. fi
  6704. # When large executables or shared objects are built, AIX ld can
  6705. # have problems creating the table of contents. If linking a library
  6706. # or program results in "error TOC overflow" add -mminimal-toc to
  6707. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  6708. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  6709. archive_cmds=''
  6710. hardcode_direct=yes
  6711. hardcode_direct_absolute=yes
  6712. hardcode_libdir_separator=':'
  6713. link_all_deplibs=yes
  6714. file_list_spec='${wl}-f,'
  6715. if test "$GCC" = yes; then
  6716. case $host_os in aix4.[012]|aix4.[012].*)
  6717. # We only want to do this on AIX 4.2 and lower, the check
  6718. # below for broken collect2 doesn't work under 4.3+
  6719. collect2name=`${CC} -print-prog-name=collect2`
  6720. if test -f "$collect2name" &&
  6721. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  6722. then
  6723. # We have reworked collect2
  6724. :
  6725. else
  6726. # We have old collect2
  6727. hardcode_direct=unsupported
  6728. # It fails to find uninstalled libraries when the uninstalled
  6729. # path is not listed in the libpath. Setting hardcode_minus_L
  6730. # to unsupported forces relinking
  6731. hardcode_minus_L=yes
  6732. hardcode_libdir_flag_spec='-L$libdir'
  6733. hardcode_libdir_separator=
  6734. fi
  6735. ;;
  6736. esac
  6737. shared_flag='-shared'
  6738. if test "$aix_use_runtimelinking" = yes; then
  6739. shared_flag="$shared_flag "'${wl}-G'
  6740. fi
  6741. link_all_deplibs=no
  6742. else
  6743. # not using gcc
  6744. if test "$host_cpu" = ia64; then
  6745. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  6746. # chokes on -Wl,-G. The following line is correct:
  6747. shared_flag='-G'
  6748. else
  6749. if test "$aix_use_runtimelinking" = yes; then
  6750. shared_flag='${wl}-G'
  6751. else
  6752. shared_flag='${wl}-bM:SRE'
  6753. fi
  6754. fi
  6755. fi
  6756. # It seems that -bexpall does not export symbols beginning with
  6757. # underscore (_), so it is better to generate a list of symbols to export.
  6758. always_export_symbols=yes
  6759. if test "$aix_use_runtimelinking" = yes; then
  6760. # Warning - without using the other runtime loading flags (-brtl),
  6761. # -berok will link without error, but may produce a broken library.
  6762. allow_undefined_flag='-berok'
  6763. # Determine the default libpath from the value encoded in an
  6764. # empty executable.
  6765. cat >conftest.$ac_ext <<_ACEOF
  6766. /* confdefs.h. */
  6767. _ACEOF
  6768. cat confdefs.h >>conftest.$ac_ext
  6769. cat >>conftest.$ac_ext <<_ACEOF
  6770. /* end confdefs.h. */
  6771. int
  6772. main ()
  6773. {
  6774. ;
  6775. return 0;
  6776. }
  6777. _ACEOF
  6778. rm -f conftest.$ac_objext conftest$ac_exeext
  6779. if { (ac_try="$ac_link"
  6780. case "(($ac_try" in
  6781. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6782. *) ac_try_echo=$ac_try;;
  6783. esac
  6784. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6785. (eval "$ac_link") 2>conftest.er1
  6786. ac_status=$?
  6787. grep -v '^ *+' conftest.er1 >conftest.err
  6788. rm -f conftest.er1
  6789. cat conftest.err >&5
  6790. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6791. (exit $ac_status); } && {
  6792. test -z "$ac_c_werror_flag" ||
  6793. test ! -s conftest.err
  6794. } && test -s conftest$ac_exeext &&
  6795. $as_test_x conftest$ac_exeext; then
  6796. lt_aix_libpath_sed='
  6797. /Import File Strings/,/^$/ {
  6798. /^0/ {
  6799. s/^0 *\(.*\)$/\1/
  6800. p
  6801. }
  6802. }'
  6803. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  6804. # Check for a 64-bit object if we didn't find anything.
  6805. if test -z "$aix_libpath"; then
  6806. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  6807. fi
  6808. else
  6809. echo "$as_me: failed program was:" >&5
  6810. sed 's/^/| /' conftest.$ac_ext >&5
  6811. fi
  6812. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6813. conftest$ac_exeext conftest.$ac_ext
  6814. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  6815. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  6816. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  6817. else
  6818. if test "$host_cpu" = ia64; then
  6819. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  6820. allow_undefined_flag="-z nodefs"
  6821. 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"
  6822. else
  6823. # Determine the default libpath from the value encoded in an
  6824. # empty executable.
  6825. cat >conftest.$ac_ext <<_ACEOF
  6826. /* confdefs.h. */
  6827. _ACEOF
  6828. cat confdefs.h >>conftest.$ac_ext
  6829. cat >>conftest.$ac_ext <<_ACEOF
  6830. /* end confdefs.h. */
  6831. int
  6832. main ()
  6833. {
  6834. ;
  6835. return 0;
  6836. }
  6837. _ACEOF
  6838. rm -f conftest.$ac_objext conftest$ac_exeext
  6839. if { (ac_try="$ac_link"
  6840. case "(($ac_try" in
  6841. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6842. *) ac_try_echo=$ac_try;;
  6843. esac
  6844. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6845. (eval "$ac_link") 2>conftest.er1
  6846. ac_status=$?
  6847. grep -v '^ *+' conftest.er1 >conftest.err
  6848. rm -f conftest.er1
  6849. cat conftest.err >&5
  6850. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6851. (exit $ac_status); } && {
  6852. test -z "$ac_c_werror_flag" ||
  6853. test ! -s conftest.err
  6854. } && test -s conftest$ac_exeext &&
  6855. $as_test_x conftest$ac_exeext; then
  6856. lt_aix_libpath_sed='
  6857. /Import File Strings/,/^$/ {
  6858. /^0/ {
  6859. s/^0 *\(.*\)$/\1/
  6860. p
  6861. }
  6862. }'
  6863. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  6864. # Check for a 64-bit object if we didn't find anything.
  6865. if test -z "$aix_libpath"; then
  6866. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  6867. fi
  6868. else
  6869. echo "$as_me: failed program was:" >&5
  6870. sed 's/^/| /' conftest.$ac_ext >&5
  6871. fi
  6872. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6873. conftest$ac_exeext conftest.$ac_ext
  6874. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  6875. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  6876. # Warning - without using the other run time loading flags,
  6877. # -berok will link without error, but may produce a broken library.
  6878. no_undefined_flag=' ${wl}-bernotok'
  6879. allow_undefined_flag=' ${wl}-berok'
  6880. # Exported symbols can be pulled into shared objects from archives
  6881. whole_archive_flag_spec='$convenience'
  6882. archive_cmds_need_lc=yes
  6883. # This is similar to how AIX traditionally builds its shared libraries.
  6884. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  6885. fi
  6886. fi
  6887. ;;
  6888. amigaos*)
  6889. case $host_cpu in
  6890. powerpc)
  6891. # see comment about AmigaOS4 .so support
  6892. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6893. archive_expsym_cmds=''
  6894. ;;
  6895. m68k)
  6896. 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)'
  6897. hardcode_libdir_flag_spec='-L$libdir'
  6898. hardcode_minus_L=yes
  6899. ;;
  6900. esac
  6901. ;;
  6902. bsdi[45]*)
  6903. export_dynamic_flag_spec=-rdynamic
  6904. ;;
  6905. cygwin* | mingw* | pw32*)
  6906. # When not using gcc, we currently assume that we are using
  6907. # Microsoft Visual C++.
  6908. # hardcode_libdir_flag_spec is actually meaningless, as there is
  6909. # no search path for DLLs.
  6910. hardcode_libdir_flag_spec=' '
  6911. allow_undefined_flag=unsupported
  6912. # Tell ltmain to make .lib files, not .a files.
  6913. libext=lib
  6914. # Tell ltmain to make .dll files, not .so files.
  6915. shrext_cmds=".dll"
  6916. # FIXME: Setting linknames here is a bad hack.
  6917. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  6918. # The linker will automatically build a .lib file if we build a DLL.
  6919. old_archive_from_new_cmds='true'
  6920. # FIXME: Should let the user specify the lib program.
  6921. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  6922. fix_srcfile_path='`cygpath -w "$srcfile"`'
  6923. enable_shared_with_static_runtimes=yes
  6924. ;;
  6925. darwin* | rhapsody*)
  6926. archive_cmds_need_lc=no
  6927. hardcode_direct=no
  6928. hardcode_automatic=yes
  6929. hardcode_shlibpath_var=unsupported
  6930. whole_archive_flag_spec=''
  6931. link_all_deplibs=yes
  6932. allow_undefined_flag="$_lt_dar_allow_undefined"
  6933. if test "$GCC" = "yes"; then
  6934. output_verbose_link_cmd=echo
  6935. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  6936. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  6937. 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}"
  6938. 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}"
  6939. else
  6940. ld_shlibs=no
  6941. fi
  6942. ;;
  6943. dgux*)
  6944. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6945. hardcode_libdir_flag_spec='-L$libdir'
  6946. hardcode_shlibpath_var=no
  6947. ;;
  6948. freebsd1*)
  6949. ld_shlibs=no
  6950. ;;
  6951. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  6952. # support. Future versions do this automatically, but an explicit c++rt0.o
  6953. # does not break anything, and helps significantly (at the cost of a little
  6954. # extra space).
  6955. freebsd2.2*)
  6956. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  6957. hardcode_libdir_flag_spec='-R$libdir'
  6958. hardcode_direct=yes
  6959. hardcode_shlibpath_var=no
  6960. ;;
  6961. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  6962. freebsd2*)
  6963. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6964. hardcode_direct=yes
  6965. hardcode_minus_L=yes
  6966. hardcode_shlibpath_var=no
  6967. ;;
  6968. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  6969. freebsd* | dragonfly*)
  6970. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  6971. hardcode_libdir_flag_spec='-R$libdir'
  6972. hardcode_direct=yes
  6973. hardcode_shlibpath_var=no
  6974. ;;
  6975. hpux9*)
  6976. if test "$GCC" = yes; then
  6977. archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  6978. else
  6979. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  6980. fi
  6981. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6982. hardcode_libdir_separator=:
  6983. hardcode_direct=yes
  6984. # hardcode_minus_L: Not really in the search PATH,
  6985. # but as the default location of the library.
  6986. hardcode_minus_L=yes
  6987. export_dynamic_flag_spec='${wl}-E'
  6988. ;;
  6989. hpux10*)
  6990. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  6991. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6992. else
  6993. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  6994. fi
  6995. if test "$with_gnu_ld" = no; then
  6996. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6997. hardcode_libdir_flag_spec_ld='+b $libdir'
  6998. hardcode_libdir_separator=:
  6999. hardcode_direct=yes
  7000. hardcode_direct_absolute=yes
  7001. export_dynamic_flag_spec='${wl}-E'
  7002. # hardcode_minus_L: Not really in the search PATH,
  7003. # but as the default location of the library.
  7004. hardcode_minus_L=yes
  7005. fi
  7006. ;;
  7007. hpux11*)
  7008. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7009. case $host_cpu in
  7010. hppa*64*)
  7011. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7012. ;;
  7013. ia64*)
  7014. archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7015. ;;
  7016. *)
  7017. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7018. ;;
  7019. esac
  7020. else
  7021. case $host_cpu in
  7022. hppa*64*)
  7023. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7024. ;;
  7025. ia64*)
  7026. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7027. ;;
  7028. *)
  7029. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7030. ;;
  7031. esac
  7032. fi
  7033. if test "$with_gnu_ld" = no; then
  7034. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7035. hardcode_libdir_separator=:
  7036. case $host_cpu in
  7037. hppa*64*|ia64*)
  7038. hardcode_direct=no
  7039. hardcode_shlibpath_var=no
  7040. ;;
  7041. *)
  7042. hardcode_direct=yes
  7043. hardcode_direct_absolute=yes
  7044. export_dynamic_flag_spec='${wl}-E'
  7045. # hardcode_minus_L: Not really in the search PATH,
  7046. # but as the default location of the library.
  7047. hardcode_minus_L=yes
  7048. ;;
  7049. esac
  7050. fi
  7051. ;;
  7052. irix5* | irix6* | nonstopux*)
  7053. if test "$GCC" = yes; then
  7054. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7055. # Try to use the -exported_symbol ld option, if it does not
  7056. # work, assume that -exports_file does not work either and
  7057. # implicitly export all symbols.
  7058. save_LDFLAGS="$LDFLAGS"
  7059. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  7060. cat >conftest.$ac_ext <<_ACEOF
  7061. int foo(void) {}
  7062. _ACEOF
  7063. rm -f conftest.$ac_objext conftest$ac_exeext
  7064. if { (ac_try="$ac_link"
  7065. case "(($ac_try" in
  7066. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7067. *) ac_try_echo=$ac_try;;
  7068. esac
  7069. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7070. (eval "$ac_link") 2>conftest.er1
  7071. ac_status=$?
  7072. grep -v '^ *+' conftest.er1 >conftest.err
  7073. rm -f conftest.er1
  7074. cat conftest.err >&5
  7075. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7076. (exit $ac_status); } && {
  7077. test -z "$ac_c_werror_flag" ||
  7078. test ! -s conftest.err
  7079. } && test -s conftest$ac_exeext &&
  7080. $as_test_x conftest$ac_exeext; then
  7081. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  7082. else
  7083. echo "$as_me: failed program was:" >&5
  7084. sed 's/^/| /' conftest.$ac_ext >&5
  7085. fi
  7086. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7087. conftest$ac_exeext conftest.$ac_ext
  7088. LDFLAGS="$save_LDFLAGS"
  7089. else
  7090. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  7091. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  7092. fi
  7093. archive_cmds_need_lc='no'
  7094. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7095. hardcode_libdir_separator=:
  7096. inherit_rpath=yes
  7097. link_all_deplibs=yes
  7098. ;;
  7099. netbsd* | netbsdelf*-gnu)
  7100. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7101. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  7102. else
  7103. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  7104. fi
  7105. hardcode_libdir_flag_spec='-R$libdir'
  7106. hardcode_direct=yes
  7107. hardcode_shlibpath_var=no
  7108. ;;
  7109. newsos6)
  7110. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7111. hardcode_direct=yes
  7112. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7113. hardcode_libdir_separator=:
  7114. hardcode_shlibpath_var=no
  7115. ;;
  7116. *nto* | *qnx*)
  7117. ;;
  7118. openbsd*)
  7119. if test -f /usr/libexec/ld.so; then
  7120. hardcode_direct=yes
  7121. hardcode_shlibpath_var=no
  7122. hardcode_direct_absolute=yes
  7123. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7124. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7125. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  7126. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7127. export_dynamic_flag_spec='${wl}-E'
  7128. else
  7129. case $host_os in
  7130. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  7131. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7132. hardcode_libdir_flag_spec='-R$libdir'
  7133. ;;
  7134. *)
  7135. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7136. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7137. ;;
  7138. esac
  7139. fi
  7140. else
  7141. ld_shlibs=no
  7142. fi
  7143. ;;
  7144. os2*)
  7145. hardcode_libdir_flag_spec='-L$libdir'
  7146. hardcode_minus_L=yes
  7147. allow_undefined_flag=unsupported
  7148. archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  7149. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  7150. ;;
  7151. osf3*)
  7152. if test "$GCC" = yes; then
  7153. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7154. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7155. else
  7156. allow_undefined_flag=' -expect_unresolved \*'
  7157. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  7158. fi
  7159. archive_cmds_need_lc='no'
  7160. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7161. hardcode_libdir_separator=:
  7162. ;;
  7163. osf4* | osf5*) # as osf3* with the addition of -msym flag
  7164. if test "$GCC" = yes; then
  7165. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7166. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7167. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7168. else
  7169. allow_undefined_flag=' -expect_unresolved \*'
  7170. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  7171. 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~
  7172. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  7173. # Both c and cxx compiler support -rpath directly
  7174. hardcode_libdir_flag_spec='-rpath $libdir'
  7175. fi
  7176. archive_cmds_need_lc='no'
  7177. hardcode_libdir_separator=:
  7178. ;;
  7179. solaris*)
  7180. no_undefined_flag=' -z defs'
  7181. if test "$GCC" = yes; then
  7182. wlarc='${wl}'
  7183. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7184. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7185. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  7186. else
  7187. case `$CC -V 2>&1` in
  7188. *"Compilers 5.0"*)
  7189. wlarc=''
  7190. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7191. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7192. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  7193. ;;
  7194. *)
  7195. wlarc='${wl}'
  7196. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7197. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7198. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  7199. ;;
  7200. esac
  7201. fi
  7202. hardcode_libdir_flag_spec='-R$libdir'
  7203. hardcode_shlibpath_var=no
  7204. case $host_os in
  7205. solaris2.[0-5] | solaris2.[0-5].*) ;;
  7206. *)
  7207. # The compiler driver will combine and reorder linker options,
  7208. # but understands `-z linker_flag'. GCC discards it without `$wl',
  7209. # but is careful enough not to reorder.
  7210. # Supported since Solaris 2.6 (maybe 2.5.1?)
  7211. if test "$GCC" = yes; then
  7212. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  7213. else
  7214. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  7215. fi
  7216. ;;
  7217. esac
  7218. link_all_deplibs=yes
  7219. ;;
  7220. sunos4*)
  7221. if test "x$host_vendor" = xsequent; then
  7222. # Use $CC to link under sequent, because it throws in some extra .o
  7223. # files that make .init and .fini sections work.
  7224. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7225. else
  7226. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  7227. fi
  7228. hardcode_libdir_flag_spec='-L$libdir'
  7229. hardcode_direct=yes
  7230. hardcode_minus_L=yes
  7231. hardcode_shlibpath_var=no
  7232. ;;
  7233. sysv4)
  7234. case $host_vendor in
  7235. sni)
  7236. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7237. hardcode_direct=yes # is this really true???
  7238. ;;
  7239. siemens)
  7240. ## LD is ld it makes a PLAMLIB
  7241. ## CC just makes a GrossModule.
  7242. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7243. reload_cmds='$CC -r -o $output$reload_objs'
  7244. hardcode_direct=no
  7245. ;;
  7246. motorola)
  7247. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7248. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  7249. ;;
  7250. esac
  7251. runpath_var='LD_RUN_PATH'
  7252. hardcode_shlibpath_var=no
  7253. ;;
  7254. sysv4.3*)
  7255. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7256. hardcode_shlibpath_var=no
  7257. export_dynamic_flag_spec='-Bexport'
  7258. ;;
  7259. sysv4*MP*)
  7260. if test -d /usr/nec; then
  7261. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7262. hardcode_shlibpath_var=no
  7263. runpath_var=LD_RUN_PATH
  7264. hardcode_runpath_var=yes
  7265. ld_shlibs=yes
  7266. fi
  7267. ;;
  7268. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  7269. no_undefined_flag='${wl}-z,text'
  7270. archive_cmds_need_lc=no
  7271. hardcode_shlibpath_var=no
  7272. runpath_var='LD_RUN_PATH'
  7273. if test "$GCC" = yes; then
  7274. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7275. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7276. else
  7277. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7278. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7279. fi
  7280. ;;
  7281. sysv5* | sco3.2v5* | sco5v6*)
  7282. # Note: We can NOT use -z defs as we might desire, because we do not
  7283. # link with -lc, and that would cause any symbols used from libc to
  7284. # always be unresolved, which means just about no library would
  7285. # ever link correctly. If we're not using GNU ld we use -z text
  7286. # though, which does catch some bad symbols but isn't as heavy-handed
  7287. # as -z defs.
  7288. no_undefined_flag='${wl}-z,text'
  7289. allow_undefined_flag='${wl}-z,nodefs'
  7290. archive_cmds_need_lc=no
  7291. hardcode_shlibpath_var=no
  7292. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  7293. hardcode_libdir_separator=':'
  7294. link_all_deplibs=yes
  7295. export_dynamic_flag_spec='${wl}-Bexport'
  7296. runpath_var='LD_RUN_PATH'
  7297. if test "$GCC" = yes; then
  7298. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7299. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7300. else
  7301. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7302. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7303. fi
  7304. ;;
  7305. uts4*)
  7306. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7307. hardcode_libdir_flag_spec='-L$libdir'
  7308. hardcode_shlibpath_var=no
  7309. ;;
  7310. *)
  7311. ld_shlibs=no
  7312. ;;
  7313. esac
  7314. if test x$host_vendor = xsni; then
  7315. case $host in
  7316. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  7317. export_dynamic_flag_spec='${wl}-Blargedynsym'
  7318. ;;
  7319. esac
  7320. fi
  7321. fi
  7322. { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  7323. echo "${ECHO_T}$ld_shlibs" >&6; }
  7324. test "$ld_shlibs" = no && can_build_shared=no
  7325. with_gnu_ld=$with_gnu_ld
  7326. #
  7327. # Do we need to explicitly link libc?
  7328. #
  7329. case "x$archive_cmds_need_lc" in
  7330. x|xyes)
  7331. # Assume -lc should be added
  7332. archive_cmds_need_lc=yes
  7333. if test "$enable_shared" = yes && test "$GCC" = yes; then
  7334. case $archive_cmds in
  7335. *'~'*)
  7336. # FIXME: we may have to deal with multi-command sequences.
  7337. ;;
  7338. '$CC '*)
  7339. # Test whether the compiler implicitly links with -lc since on some
  7340. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  7341. # to ld, don't add -lc before -lgcc.
  7342. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  7343. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  7344. $RM conftest*
  7345. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7346. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7347. (eval $ac_compile) 2>&5
  7348. ac_status=$?
  7349. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7350. (exit $ac_status); } 2>conftest.err; then
  7351. soname=conftest
  7352. lib=conftest
  7353. libobjs=conftest.$ac_objext
  7354. deplibs=
  7355. wl=$lt_prog_compiler_wl
  7356. pic_flag=$lt_prog_compiler_pic
  7357. compiler_flags=-v
  7358. linker_flags=-v
  7359. verstring=
  7360. output_objdir=.
  7361. libname=conftest
  7362. lt_save_allow_undefined_flag=$allow_undefined_flag
  7363. allow_undefined_flag=
  7364. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
  7365. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  7366. ac_status=$?
  7367. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7368. (exit $ac_status); }
  7369. then
  7370. archive_cmds_need_lc=no
  7371. else
  7372. archive_cmds_need_lc=yes
  7373. fi
  7374. allow_undefined_flag=$lt_save_allow_undefined_flag
  7375. else
  7376. cat conftest.err 1>&5
  7377. fi
  7378. $RM conftest*
  7379. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  7380. echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
  7381. ;;
  7382. esac
  7383. fi
  7384. ;;
  7385. esac
  7386. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  7387. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  7388. if test "$GCC" = yes; then
  7389. case $host_os in
  7390. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  7391. *) lt_awk_arg="/^libraries:/" ;;
  7392. esac
  7393. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7394. if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  7395. # if the path contains ";" then we assume it to be the separator
  7396. # otherwise default to the standard path separator (i.e. ":") - it is
  7397. # assumed that no part of a normal pathname contains ";" but that should
  7398. # okay in the real world where ";" in dirpaths is itself problematic.
  7399. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  7400. else
  7401. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7402. fi
  7403. # Ok, now we have the path, separated by spaces, we can step through it
  7404. # and add multilib dir if necessary.
  7405. lt_tmp_lt_search_path_spec=
  7406. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  7407. for lt_sys_path in $lt_search_path_spec; do
  7408. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  7409. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  7410. else
  7411. test -d "$lt_sys_path" && \
  7412. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  7413. fi
  7414. done
  7415. lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  7416. BEGIN {RS=" "; FS="/|\n";} {
  7417. lt_foo="";
  7418. lt_count=0;
  7419. for (lt_i = NF; lt_i > 0; lt_i--) {
  7420. if ($lt_i != "" && $lt_i != ".") {
  7421. if ($lt_i == "..") {
  7422. lt_count++;
  7423. } else {
  7424. if (lt_count == 0) {
  7425. lt_foo="/" $lt_i lt_foo;
  7426. } else {
  7427. lt_count--;
  7428. }
  7429. }
  7430. }
  7431. }
  7432. if (lt_foo != "") { lt_freq[lt_foo]++; }
  7433. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  7434. }'`
  7435. sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  7436. else
  7437. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  7438. fi
  7439. library_names_spec=
  7440. libname_spec='lib$name'
  7441. soname_spec=
  7442. shrext_cmds=".so"
  7443. postinstall_cmds=
  7444. postuninstall_cmds=
  7445. finish_cmds=
  7446. finish_eval=
  7447. shlibpath_var=
  7448. shlibpath_overrides_runpath=unknown
  7449. version_type=none
  7450. dynamic_linker="$host_os ld.so"
  7451. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  7452. need_lib_prefix=unknown
  7453. hardcode_into_libs=no
  7454. # when you set need_version to no, make sure it does not cause -set_version
  7455. # flags to be left without arguments
  7456. need_version=unknown
  7457. case $host_os in
  7458. aix3*)
  7459. version_type=linux
  7460. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  7461. shlibpath_var=LIBPATH
  7462. # AIX 3 has no versioning support, so we append a major version to the name.
  7463. soname_spec='${libname}${release}${shared_ext}$major'
  7464. ;;
  7465. aix[4-9]*)
  7466. version_type=linux
  7467. need_lib_prefix=no
  7468. need_version=no
  7469. hardcode_into_libs=yes
  7470. if test "$host_cpu" = ia64; then
  7471. # AIX 5 supports IA64
  7472. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  7473. shlibpath_var=LD_LIBRARY_PATH
  7474. else
  7475. # With GCC up to 2.95.x, collect2 would create an import file
  7476. # for dependence libraries. The import file would start with
  7477. # the line `#! .'. This would cause the generated library to
  7478. # depend on `.', always an invalid library. This was fixed in
  7479. # development snapshots of GCC prior to 3.0.
  7480. case $host_os in
  7481. aix4 | aix4.[01] | aix4.[01].*)
  7482. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  7483. echo ' yes '
  7484. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  7485. :
  7486. else
  7487. can_build_shared=no
  7488. fi
  7489. ;;
  7490. esac
  7491. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  7492. # soname into executable. Probably we can add versioning support to
  7493. # collect2, so additional links can be useful in future.
  7494. if test "$aix_use_runtimelinking" = yes; then
  7495. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  7496. # instead of lib<name>.a to let people know that these are not
  7497. # typical AIX shared libraries.
  7498. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7499. else
  7500. # We preserve .a as extension for shared libraries through AIX4.2
  7501. # and later when we are not doing run time linking.
  7502. library_names_spec='${libname}${release}.a $libname.a'
  7503. soname_spec='${libname}${release}${shared_ext}$major'
  7504. fi
  7505. shlibpath_var=LIBPATH
  7506. fi
  7507. ;;
  7508. amigaos*)
  7509. case $host_cpu in
  7510. powerpc)
  7511. # Since July 2007 AmigaOS4 officially supports .so libraries.
  7512. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  7513. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7514. ;;
  7515. m68k)
  7516. library_names_spec='$libname.ixlibrary $libname.a'
  7517. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  7518. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  7519. ;;
  7520. esac
  7521. ;;
  7522. beos*)
  7523. library_names_spec='${libname}${shared_ext}'
  7524. dynamic_linker="$host_os ld.so"
  7525. shlibpath_var=LIBRARY_PATH
  7526. ;;
  7527. bsdi[45]*)
  7528. version_type=linux
  7529. need_version=no
  7530. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7531. soname_spec='${libname}${release}${shared_ext}$major'
  7532. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  7533. shlibpath_var=LD_LIBRARY_PATH
  7534. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  7535. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  7536. # the default ld.so.conf also contains /usr/contrib/lib and
  7537. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  7538. # libtool to hard-code these into programs
  7539. ;;
  7540. cygwin* | mingw* | pw32*)
  7541. version_type=windows
  7542. shrext_cmds=".dll"
  7543. need_version=no
  7544. need_lib_prefix=no
  7545. case $GCC,$host_os in
  7546. yes,cygwin* | yes,mingw* | yes,pw32*)
  7547. library_names_spec='$libname.dll.a'
  7548. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  7549. postinstall_cmds='base_file=`basename \${file}`~
  7550. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  7551. dldir=$destdir/`dirname \$dlpath`~
  7552. test -d \$dldir || mkdir -p \$dldir~
  7553. $install_prog $dir/$dlname \$dldir/$dlname~
  7554. chmod a+x \$dldir/$dlname~
  7555. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  7556. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  7557. fi'
  7558. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  7559. dlpath=$dir/\$dldll~
  7560. $RM \$dlpath'
  7561. shlibpath_overrides_runpath=yes
  7562. case $host_os in
  7563. cygwin*)
  7564. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  7565. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7566. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  7567. ;;
  7568. mingw*)
  7569. # MinGW DLLs use traditional 'lib' prefix
  7570. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7571. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7572. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  7573. # It is most probably a Windows format PATH printed by
  7574. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  7575. # path with ; separators, and with drive letters. We can handle the
  7576. # drive letters (cygwin fileutils understands them), so leave them,
  7577. # especially as we might pass files found there to a mingw objdump,
  7578. # which wouldn't understand a cygwinified path. Ahh.
  7579. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  7580. else
  7581. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7582. fi
  7583. ;;
  7584. pw32*)
  7585. # pw32 DLLs use 'pw' prefix rather than 'lib'
  7586. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7587. ;;
  7588. esac
  7589. ;;
  7590. *)
  7591. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  7592. ;;
  7593. esac
  7594. dynamic_linker='Win32 ld.exe'
  7595. # FIXME: first we should search . and the directory the executable is in
  7596. shlibpath_var=PATH
  7597. ;;
  7598. darwin* | rhapsody*)
  7599. dynamic_linker="$host_os dyld"
  7600. version_type=darwin
  7601. need_lib_prefix=no
  7602. need_version=no
  7603. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  7604. soname_spec='${libname}${release}${major}$shared_ext'
  7605. shlibpath_overrides_runpath=yes
  7606. shlibpath_var=DYLD_LIBRARY_PATH
  7607. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  7608. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  7609. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  7610. ;;
  7611. dgux*)
  7612. version_type=linux
  7613. need_lib_prefix=no
  7614. need_version=no
  7615. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  7616. soname_spec='${libname}${release}${shared_ext}$major'
  7617. shlibpath_var=LD_LIBRARY_PATH
  7618. ;;
  7619. freebsd1*)
  7620. dynamic_linker=no
  7621. ;;
  7622. freebsd* | dragonfly*)
  7623. # DragonFly does not have aout. When/if they implement a new
  7624. # versioning mechanism, adjust this.
  7625. if test -x /usr/bin/objformat; then
  7626. objformat=`/usr/bin/objformat`
  7627. else
  7628. case $host_os in
  7629. freebsd[123]*) objformat=aout ;;
  7630. *) objformat=elf ;;
  7631. esac
  7632. fi
  7633. version_type=freebsd-$objformat
  7634. case $version_type in
  7635. freebsd-elf*)
  7636. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  7637. need_version=no
  7638. need_lib_prefix=no
  7639. ;;
  7640. freebsd-*)
  7641. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  7642. need_version=yes
  7643. ;;
  7644. esac
  7645. shlibpath_var=LD_LIBRARY_PATH
  7646. case $host_os in
  7647. freebsd2*)
  7648. shlibpath_overrides_runpath=yes
  7649. ;;
  7650. freebsd3.[01]* | freebsdelf3.[01]*)
  7651. shlibpath_overrides_runpath=yes
  7652. hardcode_into_libs=yes
  7653. ;;
  7654. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  7655. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  7656. shlibpath_overrides_runpath=no
  7657. hardcode_into_libs=yes
  7658. ;;
  7659. *) # from 4.6 on, and DragonFly
  7660. shlibpath_overrides_runpath=yes
  7661. hardcode_into_libs=yes
  7662. ;;
  7663. esac
  7664. ;;
  7665. gnu*)
  7666. version_type=linux
  7667. need_lib_prefix=no
  7668. need_version=no
  7669. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  7670. soname_spec='${libname}${release}${shared_ext}$major'
  7671. shlibpath_var=LD_LIBRARY_PATH
  7672. hardcode_into_libs=yes
  7673. ;;
  7674. hpux9* | hpux10* | hpux11*)
  7675. # Give a soname corresponding to the major version so that dld.sl refuses to
  7676. # link against other versions.
  7677. version_type=sunos
  7678. need_lib_prefix=no
  7679. need_version=no
  7680. case $host_cpu in
  7681. ia64*)
  7682. shrext_cmds='.so'
  7683. hardcode_into_libs=yes
  7684. dynamic_linker="$host_os dld.so"
  7685. shlibpath_var=LD_LIBRARY_PATH
  7686. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  7687. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7688. soname_spec='${libname}${release}${shared_ext}$major'
  7689. if test "X$HPUX_IA64_MODE" = X32; then
  7690. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  7691. else
  7692. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  7693. fi
  7694. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  7695. ;;
  7696. hppa*64*)
  7697. shrext_cmds='.sl'
  7698. hardcode_into_libs=yes
  7699. dynamic_linker="$host_os dld.sl"
  7700. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  7701. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  7702. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7703. soname_spec='${libname}${release}${shared_ext}$major'
  7704. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  7705. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  7706. ;;
  7707. *)
  7708. shrext_cmds='.sl'
  7709. dynamic_linker="$host_os dld.sl"
  7710. shlibpath_var=SHLIB_PATH
  7711. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  7712. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7713. soname_spec='${libname}${release}${shared_ext}$major'
  7714. ;;
  7715. esac
  7716. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  7717. postinstall_cmds='chmod 555 $lib'
  7718. ;;
  7719. interix[3-9]*)
  7720. version_type=linux
  7721. need_lib_prefix=no
  7722. need_version=no
  7723. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7724. soname_spec='${libname}${release}${shared_ext}$major'
  7725. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  7726. shlibpath_var=LD_LIBRARY_PATH
  7727. shlibpath_overrides_runpath=no
  7728. hardcode_into_libs=yes
  7729. ;;
  7730. irix5* | irix6* | nonstopux*)
  7731. case $host_os in
  7732. nonstopux*) version_type=nonstopux ;;
  7733. *)
  7734. if test "$lt_cv_prog_gnu_ld" = yes; then
  7735. version_type=linux
  7736. else
  7737. version_type=irix
  7738. fi ;;
  7739. esac
  7740. need_lib_prefix=no
  7741. need_version=no
  7742. soname_spec='${libname}${release}${shared_ext}$major'
  7743. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  7744. case $host_os in
  7745. irix5* | nonstopux*)
  7746. libsuff= shlibsuff=
  7747. ;;
  7748. *)
  7749. case $LD in # libtool.m4 will add one of these switches to LD
  7750. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  7751. libsuff= shlibsuff= libmagic=32-bit;;
  7752. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  7753. libsuff=32 shlibsuff=N32 libmagic=N32;;
  7754. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  7755. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  7756. *) libsuff= shlibsuff= libmagic=never-match;;
  7757. esac
  7758. ;;
  7759. esac
  7760. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  7761. shlibpath_overrides_runpath=no
  7762. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  7763. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  7764. hardcode_into_libs=yes
  7765. ;;
  7766. # No shared lib support for Linux oldld, aout, or coff.
  7767. linux*oldld* | linux*aout* | linux*coff*)
  7768. dynamic_linker=no
  7769. ;;
  7770. # This must be Linux ELF.
  7771. linux* | k*bsd*-gnu)
  7772. version_type=linux
  7773. need_lib_prefix=no
  7774. need_version=no
  7775. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7776. soname_spec='${libname}${release}${shared_ext}$major'
  7777. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  7778. shlibpath_var=LD_LIBRARY_PATH
  7779. shlibpath_overrides_runpath=no
  7780. # Some binutils ld are patched to set DT_RUNPATH
  7781. save_LDFLAGS=$LDFLAGS
  7782. save_libdir=$libdir
  7783. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  7784. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  7785. cat >conftest.$ac_ext <<_ACEOF
  7786. /* confdefs.h. */
  7787. _ACEOF
  7788. cat confdefs.h >>conftest.$ac_ext
  7789. cat >>conftest.$ac_ext <<_ACEOF
  7790. /* end confdefs.h. */
  7791. int
  7792. main ()
  7793. {
  7794. ;
  7795. return 0;
  7796. }
  7797. _ACEOF
  7798. rm -f conftest.$ac_objext conftest$ac_exeext
  7799. if { (ac_try="$ac_link"
  7800. case "(($ac_try" in
  7801. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7802. *) ac_try_echo=$ac_try;;
  7803. esac
  7804. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7805. (eval "$ac_link") 2>conftest.er1
  7806. ac_status=$?
  7807. grep -v '^ *+' conftest.er1 >conftest.err
  7808. rm -f conftest.er1
  7809. cat conftest.err >&5
  7810. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7811. (exit $ac_status); } && {
  7812. test -z "$ac_c_werror_flag" ||
  7813. test ! -s conftest.err
  7814. } && test -s conftest$ac_exeext &&
  7815. $as_test_x conftest$ac_exeext; then
  7816. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
  7817. shlibpath_overrides_runpath=yes
  7818. fi
  7819. else
  7820. echo "$as_me: failed program was:" >&5
  7821. sed 's/^/| /' conftest.$ac_ext >&5
  7822. fi
  7823. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7824. conftest$ac_exeext conftest.$ac_ext
  7825. LDFLAGS=$save_LDFLAGS
  7826. libdir=$save_libdir
  7827. # This implies no fast_install, which is unacceptable.
  7828. # Some rework will be needed to allow for fast_install
  7829. # before this can be enabled.
  7830. hardcode_into_libs=yes
  7831. # Append ld.so.conf contents to the search path
  7832. if test -f /etc/ld.so.conf; then
  7833. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  7834. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  7835. fi
  7836. # We used to test for /lib/ld.so.1 and disable shared libraries on
  7837. # powerpc, because MkLinux only supported shared libraries with the
  7838. # GNU dynamic linker. Since this was broken with cross compilers,
  7839. # most powerpc-linux boxes support dynamic linking these days and
  7840. # people can always --disable-shared, the test was removed, and we
  7841. # assume the GNU/Linux dynamic linker is in use.
  7842. dynamic_linker='GNU/Linux ld.so'
  7843. ;;
  7844. netbsdelf*-gnu)
  7845. version_type=linux
  7846. need_lib_prefix=no
  7847. need_version=no
  7848. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7849. soname_spec='${libname}${release}${shared_ext}$major'
  7850. shlibpath_var=LD_LIBRARY_PATH
  7851. shlibpath_overrides_runpath=no
  7852. hardcode_into_libs=yes
  7853. dynamic_linker='NetBSD ld.elf_so'
  7854. ;;
  7855. netbsd*)
  7856. version_type=sunos
  7857. need_lib_prefix=no
  7858. need_version=no
  7859. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7860. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7861. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  7862. dynamic_linker='NetBSD (a.out) ld.so'
  7863. else
  7864. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7865. soname_spec='${libname}${release}${shared_ext}$major'
  7866. dynamic_linker='NetBSD ld.elf_so'
  7867. fi
  7868. shlibpath_var=LD_LIBRARY_PATH
  7869. shlibpath_overrides_runpath=yes
  7870. hardcode_into_libs=yes
  7871. ;;
  7872. newsos6)
  7873. version_type=linux
  7874. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7875. shlibpath_var=LD_LIBRARY_PATH
  7876. shlibpath_overrides_runpath=yes
  7877. ;;
  7878. *nto* | *qnx*)
  7879. version_type=qnx
  7880. need_lib_prefix=no
  7881. need_version=no
  7882. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7883. soname_spec='${libname}${release}${shared_ext}$major'
  7884. shlibpath_var=LD_LIBRARY_PATH
  7885. shlibpath_overrides_runpath=no
  7886. hardcode_into_libs=yes
  7887. dynamic_linker='ldqnx.so'
  7888. ;;
  7889. openbsd*)
  7890. version_type=sunos
  7891. sys_lib_dlsearch_path_spec="/usr/lib"
  7892. need_lib_prefix=no
  7893. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  7894. case $host_os in
  7895. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  7896. *) need_version=no ;;
  7897. esac
  7898. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7899. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  7900. shlibpath_var=LD_LIBRARY_PATH
  7901. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7902. case $host_os in
  7903. openbsd2.[89] | openbsd2.[89].*)
  7904. shlibpath_overrides_runpath=no
  7905. ;;
  7906. *)
  7907. shlibpath_overrides_runpath=yes
  7908. ;;
  7909. esac
  7910. else
  7911. shlibpath_overrides_runpath=yes
  7912. fi
  7913. ;;
  7914. os2*)
  7915. libname_spec='$name'
  7916. shrext_cmds=".dll"
  7917. need_lib_prefix=no
  7918. library_names_spec='$libname${shared_ext} $libname.a'
  7919. dynamic_linker='OS/2 ld.exe'
  7920. shlibpath_var=LIBPATH
  7921. ;;
  7922. osf3* | osf4* | osf5*)
  7923. version_type=osf
  7924. need_lib_prefix=no
  7925. need_version=no
  7926. soname_spec='${libname}${release}${shared_ext}$major'
  7927. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7928. shlibpath_var=LD_LIBRARY_PATH
  7929. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  7930. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  7931. ;;
  7932. rdos*)
  7933. dynamic_linker=no
  7934. ;;
  7935. solaris*)
  7936. version_type=linux
  7937. need_lib_prefix=no
  7938. need_version=no
  7939. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7940. soname_spec='${libname}${release}${shared_ext}$major'
  7941. shlibpath_var=LD_LIBRARY_PATH
  7942. shlibpath_overrides_runpath=yes
  7943. hardcode_into_libs=yes
  7944. # ldd complains unless libraries are executable
  7945. postinstall_cmds='chmod +x $lib'
  7946. ;;
  7947. sunos4*)
  7948. version_type=sunos
  7949. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7950. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  7951. shlibpath_var=LD_LIBRARY_PATH
  7952. shlibpath_overrides_runpath=yes
  7953. if test "$with_gnu_ld" = yes; then
  7954. need_lib_prefix=no
  7955. fi
  7956. need_version=yes
  7957. ;;
  7958. sysv4 | sysv4.3*)
  7959. version_type=linux
  7960. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7961. soname_spec='${libname}${release}${shared_ext}$major'
  7962. shlibpath_var=LD_LIBRARY_PATH
  7963. case $host_vendor in
  7964. sni)
  7965. shlibpath_overrides_runpath=no
  7966. need_lib_prefix=no
  7967. runpath_var=LD_RUN_PATH
  7968. ;;
  7969. siemens)
  7970. need_lib_prefix=no
  7971. ;;
  7972. motorola)
  7973. need_lib_prefix=no
  7974. need_version=no
  7975. shlibpath_overrides_runpath=no
  7976. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  7977. ;;
  7978. esac
  7979. ;;
  7980. sysv4*MP*)
  7981. if test -d /usr/nec ;then
  7982. version_type=linux
  7983. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  7984. soname_spec='$libname${shared_ext}.$major'
  7985. shlibpath_var=LD_LIBRARY_PATH
  7986. fi
  7987. ;;
  7988. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  7989. version_type=freebsd-elf
  7990. need_lib_prefix=no
  7991. need_version=no
  7992. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  7993. soname_spec='${libname}${release}${shared_ext}$major'
  7994. shlibpath_var=LD_LIBRARY_PATH
  7995. shlibpath_overrides_runpath=yes
  7996. hardcode_into_libs=yes
  7997. if test "$with_gnu_ld" = yes; then
  7998. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  7999. else
  8000. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  8001. case $host_os in
  8002. sco3.2v5*)
  8003. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  8004. ;;
  8005. esac
  8006. fi
  8007. sys_lib_dlsearch_path_spec='/usr/lib'
  8008. ;;
  8009. tpf*)
  8010. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  8011. version_type=linux
  8012. need_lib_prefix=no
  8013. need_version=no
  8014. library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8015. shlibpath_var=LD_LIBRARY_PATH
  8016. shlibpath_overrides_runpath=no
  8017. hardcode_into_libs=yes
  8018. ;;
  8019. uts4*)
  8020. version_type=linux
  8021. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8022. soname_spec='${libname}${release}${shared_ext}$major'
  8023. shlibpath_var=LD_LIBRARY_PATH
  8024. ;;
  8025. *)
  8026. dynamic_linker=no
  8027. ;;
  8028. esac
  8029. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  8030. echo "${ECHO_T}$dynamic_linker" >&6; }
  8031. test "$dynamic_linker" = no && can_build_shared=no
  8032. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8033. if test "$GCC" = yes; then
  8034. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8035. fi
  8036. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  8037. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  8038. fi
  8039. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  8040. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  8041. fi
  8042. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  8043. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  8044. hardcode_action=
  8045. if test -n "$hardcode_libdir_flag_spec" ||
  8046. test -n "$runpath_var" ||
  8047. test "X$hardcode_automatic" = "Xyes" ; then
  8048. # We can hardcode non-existent directories.
  8049. if test "$hardcode_direct" != no &&
  8050. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8051. # have to relink, otherwise we might link with an installed library
  8052. # when we should be linking with a yet-to-be-installed one
  8053. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8054. test "$hardcode_minus_L" != no; then
  8055. # Linking always hardcodes the temporary library directory.
  8056. hardcode_action=relink
  8057. else
  8058. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8059. hardcode_action=immediate
  8060. fi
  8061. else
  8062. # We cannot hardcode anything, or else we can only hardcode existing
  8063. # directories.
  8064. hardcode_action=unsupported
  8065. fi
  8066. { echo "$as_me:$LINENO: result: $hardcode_action" >&5
  8067. echo "${ECHO_T}$hardcode_action" >&6; }
  8068. if test "$hardcode_action" = relink ||
  8069. test "$inherit_rpath" = yes; then
  8070. # Fast installation is not supported
  8071. enable_fast_install=no
  8072. elif test "$shlibpath_overrides_runpath" = yes ||
  8073. test "$enable_shared" = no; then
  8074. # Fast installation is not necessary
  8075. enable_fast_install=needless
  8076. fi
  8077. if test "x$enable_dlopen" != xyes; then
  8078. enable_dlopen=unknown
  8079. enable_dlopen_self=unknown
  8080. enable_dlopen_self_static=unknown
  8081. else
  8082. lt_cv_dlopen=no
  8083. lt_cv_dlopen_libs=
  8084. case $host_os in
  8085. beos*)
  8086. lt_cv_dlopen="load_add_on"
  8087. lt_cv_dlopen_libs=
  8088. lt_cv_dlopen_self=yes
  8089. ;;
  8090. mingw* | pw32*)
  8091. lt_cv_dlopen="LoadLibrary"
  8092. lt_cv_dlopen_libs=
  8093. ;;
  8094. cygwin*)
  8095. lt_cv_dlopen="dlopen"
  8096. lt_cv_dlopen_libs=
  8097. ;;
  8098. darwin*)
  8099. # if libdl is installed we need to link against it
  8100. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8101. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  8102. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8103. echo $ECHO_N "(cached) $ECHO_C" >&6
  8104. else
  8105. ac_check_lib_save_LIBS=$LIBS
  8106. LIBS="-ldl $LIBS"
  8107. cat >conftest.$ac_ext <<_ACEOF
  8108. /* confdefs.h. */
  8109. _ACEOF
  8110. cat confdefs.h >>conftest.$ac_ext
  8111. cat >>conftest.$ac_ext <<_ACEOF
  8112. /* end confdefs.h. */
  8113. /* Override any GCC internal prototype to avoid an error.
  8114. Use char because int might match the return type of a GCC
  8115. builtin and then its argument prototype would still apply. */
  8116. #ifdef __cplusplus
  8117. extern "C"
  8118. #endif
  8119. char dlopen ();
  8120. int
  8121. main ()
  8122. {
  8123. return dlopen ();
  8124. ;
  8125. return 0;
  8126. }
  8127. _ACEOF
  8128. rm -f conftest.$ac_objext conftest$ac_exeext
  8129. if { (ac_try="$ac_link"
  8130. case "(($ac_try" in
  8131. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8132. *) ac_try_echo=$ac_try;;
  8133. esac
  8134. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8135. (eval "$ac_link") 2>conftest.er1
  8136. ac_status=$?
  8137. grep -v '^ *+' conftest.er1 >conftest.err
  8138. rm -f conftest.er1
  8139. cat conftest.err >&5
  8140. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8141. (exit $ac_status); } && {
  8142. test -z "$ac_c_werror_flag" ||
  8143. test ! -s conftest.err
  8144. } && test -s conftest$ac_exeext &&
  8145. $as_test_x conftest$ac_exeext; then
  8146. ac_cv_lib_dl_dlopen=yes
  8147. else
  8148. echo "$as_me: failed program was:" >&5
  8149. sed 's/^/| /' conftest.$ac_ext >&5
  8150. ac_cv_lib_dl_dlopen=no
  8151. fi
  8152. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8153. conftest$ac_exeext conftest.$ac_ext
  8154. LIBS=$ac_check_lib_save_LIBS
  8155. fi
  8156. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8157. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  8158. if test $ac_cv_lib_dl_dlopen = yes; then
  8159. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8160. else
  8161. lt_cv_dlopen="dyld"
  8162. lt_cv_dlopen_libs=
  8163. lt_cv_dlopen_self=yes
  8164. fi
  8165. ;;
  8166. *)
  8167. { echo "$as_me:$LINENO: checking for shl_load" >&5
  8168. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
  8169. if test "${ac_cv_func_shl_load+set}" = set; then
  8170. echo $ECHO_N "(cached) $ECHO_C" >&6
  8171. else
  8172. cat >conftest.$ac_ext <<_ACEOF
  8173. /* confdefs.h. */
  8174. _ACEOF
  8175. cat confdefs.h >>conftest.$ac_ext
  8176. cat >>conftest.$ac_ext <<_ACEOF
  8177. /* end confdefs.h. */
  8178. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  8179. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8180. #define shl_load innocuous_shl_load
  8181. /* System header to define __stub macros and hopefully few prototypes,
  8182. which can conflict with char shl_load (); below.
  8183. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8184. <limits.h> exists even on freestanding compilers. */
  8185. #ifdef __STDC__
  8186. # include <limits.h>
  8187. #else
  8188. # include <assert.h>
  8189. #endif
  8190. #undef shl_load
  8191. /* Override any GCC internal prototype to avoid an error.
  8192. Use char because int might match the return type of a GCC
  8193. builtin and then its argument prototype would still apply. */
  8194. #ifdef __cplusplus
  8195. extern "C"
  8196. #endif
  8197. char shl_load ();
  8198. /* The GNU C library defines this for functions which it implements
  8199. to always fail with ENOSYS. Some functions are actually named
  8200. something starting with __ and the normal name is an alias. */
  8201. #if defined __stub_shl_load || defined __stub___shl_load
  8202. choke me
  8203. #endif
  8204. int
  8205. main ()
  8206. {
  8207. return shl_load ();
  8208. ;
  8209. return 0;
  8210. }
  8211. _ACEOF
  8212. rm -f conftest.$ac_objext conftest$ac_exeext
  8213. if { (ac_try="$ac_link"
  8214. case "(($ac_try" in
  8215. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8216. *) ac_try_echo=$ac_try;;
  8217. esac
  8218. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8219. (eval "$ac_link") 2>conftest.er1
  8220. ac_status=$?
  8221. grep -v '^ *+' conftest.er1 >conftest.err
  8222. rm -f conftest.er1
  8223. cat conftest.err >&5
  8224. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8225. (exit $ac_status); } && {
  8226. test -z "$ac_c_werror_flag" ||
  8227. test ! -s conftest.err
  8228. } && test -s conftest$ac_exeext &&
  8229. $as_test_x conftest$ac_exeext; then
  8230. ac_cv_func_shl_load=yes
  8231. else
  8232. echo "$as_me: failed program was:" >&5
  8233. sed 's/^/| /' conftest.$ac_ext >&5
  8234. ac_cv_func_shl_load=no
  8235. fi
  8236. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8237. conftest$ac_exeext conftest.$ac_ext
  8238. fi
  8239. { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  8240. echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
  8241. if test $ac_cv_func_shl_load = yes; then
  8242. lt_cv_dlopen="shl_load"
  8243. else
  8244. { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  8245. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
  8246. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  8247. echo $ECHO_N "(cached) $ECHO_C" >&6
  8248. else
  8249. ac_check_lib_save_LIBS=$LIBS
  8250. LIBS="-ldld $LIBS"
  8251. cat >conftest.$ac_ext <<_ACEOF
  8252. /* confdefs.h. */
  8253. _ACEOF
  8254. cat confdefs.h >>conftest.$ac_ext
  8255. cat >>conftest.$ac_ext <<_ACEOF
  8256. /* end confdefs.h. */
  8257. /* Override any GCC internal prototype to avoid an error.
  8258. Use char because int might match the return type of a GCC
  8259. builtin and then its argument prototype would still apply. */
  8260. #ifdef __cplusplus
  8261. extern "C"
  8262. #endif
  8263. char shl_load ();
  8264. int
  8265. main ()
  8266. {
  8267. return shl_load ();
  8268. ;
  8269. return 0;
  8270. }
  8271. _ACEOF
  8272. rm -f conftest.$ac_objext conftest$ac_exeext
  8273. if { (ac_try="$ac_link"
  8274. case "(($ac_try" in
  8275. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8276. *) ac_try_echo=$ac_try;;
  8277. esac
  8278. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8279. (eval "$ac_link") 2>conftest.er1
  8280. ac_status=$?
  8281. grep -v '^ *+' conftest.er1 >conftest.err
  8282. rm -f conftest.er1
  8283. cat conftest.err >&5
  8284. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8285. (exit $ac_status); } && {
  8286. test -z "$ac_c_werror_flag" ||
  8287. test ! -s conftest.err
  8288. } && test -s conftest$ac_exeext &&
  8289. $as_test_x conftest$ac_exeext; then
  8290. ac_cv_lib_dld_shl_load=yes
  8291. else
  8292. echo "$as_me: failed program was:" >&5
  8293. sed 's/^/| /' conftest.$ac_ext >&5
  8294. ac_cv_lib_dld_shl_load=no
  8295. fi
  8296. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8297. conftest$ac_exeext conftest.$ac_ext
  8298. LIBS=$ac_check_lib_save_LIBS
  8299. fi
  8300. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  8301. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
  8302. if test $ac_cv_lib_dld_shl_load = yes; then
  8303. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  8304. else
  8305. { echo "$as_me:$LINENO: checking for dlopen" >&5
  8306. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
  8307. if test "${ac_cv_func_dlopen+set}" = set; then
  8308. echo $ECHO_N "(cached) $ECHO_C" >&6
  8309. else
  8310. cat >conftest.$ac_ext <<_ACEOF
  8311. /* confdefs.h. */
  8312. _ACEOF
  8313. cat confdefs.h >>conftest.$ac_ext
  8314. cat >>conftest.$ac_ext <<_ACEOF
  8315. /* end confdefs.h. */
  8316. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  8317. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8318. #define dlopen innocuous_dlopen
  8319. /* System header to define __stub macros and hopefully few prototypes,
  8320. which can conflict with char dlopen (); below.
  8321. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8322. <limits.h> exists even on freestanding compilers. */
  8323. #ifdef __STDC__
  8324. # include <limits.h>
  8325. #else
  8326. # include <assert.h>
  8327. #endif
  8328. #undef dlopen
  8329. /* Override any GCC internal prototype to avoid an error.
  8330. Use char because int might match the return type of a GCC
  8331. builtin and then its argument prototype would still apply. */
  8332. #ifdef __cplusplus
  8333. extern "C"
  8334. #endif
  8335. char dlopen ();
  8336. /* The GNU C library defines this for functions which it implements
  8337. to always fail with ENOSYS. Some functions are actually named
  8338. something starting with __ and the normal name is an alias. */
  8339. #if defined __stub_dlopen || defined __stub___dlopen
  8340. choke me
  8341. #endif
  8342. int
  8343. main ()
  8344. {
  8345. return dlopen ();
  8346. ;
  8347. return 0;
  8348. }
  8349. _ACEOF
  8350. rm -f conftest.$ac_objext conftest$ac_exeext
  8351. if { (ac_try="$ac_link"
  8352. case "(($ac_try" in
  8353. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8354. *) ac_try_echo=$ac_try;;
  8355. esac
  8356. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8357. (eval "$ac_link") 2>conftest.er1
  8358. ac_status=$?
  8359. grep -v '^ *+' conftest.er1 >conftest.err
  8360. rm -f conftest.er1
  8361. cat conftest.err >&5
  8362. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8363. (exit $ac_status); } && {
  8364. test -z "$ac_c_werror_flag" ||
  8365. test ! -s conftest.err
  8366. } && test -s conftest$ac_exeext &&
  8367. $as_test_x conftest$ac_exeext; then
  8368. ac_cv_func_dlopen=yes
  8369. else
  8370. echo "$as_me: failed program was:" >&5
  8371. sed 's/^/| /' conftest.$ac_ext >&5
  8372. ac_cv_func_dlopen=no
  8373. fi
  8374. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8375. conftest$ac_exeext conftest.$ac_ext
  8376. fi
  8377. { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  8378. echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
  8379. if test $ac_cv_func_dlopen = yes; then
  8380. lt_cv_dlopen="dlopen"
  8381. else
  8382. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8383. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  8384. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8385. echo $ECHO_N "(cached) $ECHO_C" >&6
  8386. else
  8387. ac_check_lib_save_LIBS=$LIBS
  8388. LIBS="-ldl $LIBS"
  8389. cat >conftest.$ac_ext <<_ACEOF
  8390. /* confdefs.h. */
  8391. _ACEOF
  8392. cat confdefs.h >>conftest.$ac_ext
  8393. cat >>conftest.$ac_ext <<_ACEOF
  8394. /* end confdefs.h. */
  8395. /* Override any GCC internal prototype to avoid an error.
  8396. Use char because int might match the return type of a GCC
  8397. builtin and then its argument prototype would still apply. */
  8398. #ifdef __cplusplus
  8399. extern "C"
  8400. #endif
  8401. char dlopen ();
  8402. int
  8403. main ()
  8404. {
  8405. return dlopen ();
  8406. ;
  8407. return 0;
  8408. }
  8409. _ACEOF
  8410. rm -f conftest.$ac_objext conftest$ac_exeext
  8411. if { (ac_try="$ac_link"
  8412. case "(($ac_try" in
  8413. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8414. *) ac_try_echo=$ac_try;;
  8415. esac
  8416. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8417. (eval "$ac_link") 2>conftest.er1
  8418. ac_status=$?
  8419. grep -v '^ *+' conftest.er1 >conftest.err
  8420. rm -f conftest.er1
  8421. cat conftest.err >&5
  8422. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8423. (exit $ac_status); } && {
  8424. test -z "$ac_c_werror_flag" ||
  8425. test ! -s conftest.err
  8426. } && test -s conftest$ac_exeext &&
  8427. $as_test_x conftest$ac_exeext; then
  8428. ac_cv_lib_dl_dlopen=yes
  8429. else
  8430. echo "$as_me: failed program was:" >&5
  8431. sed 's/^/| /' conftest.$ac_ext >&5
  8432. ac_cv_lib_dl_dlopen=no
  8433. fi
  8434. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8435. conftest$ac_exeext conftest.$ac_ext
  8436. LIBS=$ac_check_lib_save_LIBS
  8437. fi
  8438. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8439. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  8440. if test $ac_cv_lib_dl_dlopen = yes; then
  8441. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8442. else
  8443. { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  8444. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
  8445. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  8446. echo $ECHO_N "(cached) $ECHO_C" >&6
  8447. else
  8448. ac_check_lib_save_LIBS=$LIBS
  8449. LIBS="-lsvld $LIBS"
  8450. cat >conftest.$ac_ext <<_ACEOF
  8451. /* confdefs.h. */
  8452. _ACEOF
  8453. cat confdefs.h >>conftest.$ac_ext
  8454. cat >>conftest.$ac_ext <<_ACEOF
  8455. /* end confdefs.h. */
  8456. /* Override any GCC internal prototype to avoid an error.
  8457. Use char because int might match the return type of a GCC
  8458. builtin and then its argument prototype would still apply. */
  8459. #ifdef __cplusplus
  8460. extern "C"
  8461. #endif
  8462. char dlopen ();
  8463. int
  8464. main ()
  8465. {
  8466. return dlopen ();
  8467. ;
  8468. return 0;
  8469. }
  8470. _ACEOF
  8471. rm -f conftest.$ac_objext conftest$ac_exeext
  8472. if { (ac_try="$ac_link"
  8473. case "(($ac_try" in
  8474. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8475. *) ac_try_echo=$ac_try;;
  8476. esac
  8477. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8478. (eval "$ac_link") 2>conftest.er1
  8479. ac_status=$?
  8480. grep -v '^ *+' conftest.er1 >conftest.err
  8481. rm -f conftest.er1
  8482. cat conftest.err >&5
  8483. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8484. (exit $ac_status); } && {
  8485. test -z "$ac_c_werror_flag" ||
  8486. test ! -s conftest.err
  8487. } && test -s conftest$ac_exeext &&
  8488. $as_test_x conftest$ac_exeext; then
  8489. ac_cv_lib_svld_dlopen=yes
  8490. else
  8491. echo "$as_me: failed program was:" >&5
  8492. sed 's/^/| /' conftest.$ac_ext >&5
  8493. ac_cv_lib_svld_dlopen=no
  8494. fi
  8495. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8496. conftest$ac_exeext conftest.$ac_ext
  8497. LIBS=$ac_check_lib_save_LIBS
  8498. fi
  8499. { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  8500. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
  8501. if test $ac_cv_lib_svld_dlopen = yes; then
  8502. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  8503. else
  8504. { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  8505. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
  8506. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  8507. echo $ECHO_N "(cached) $ECHO_C" >&6
  8508. else
  8509. ac_check_lib_save_LIBS=$LIBS
  8510. LIBS="-ldld $LIBS"
  8511. cat >conftest.$ac_ext <<_ACEOF
  8512. /* confdefs.h. */
  8513. _ACEOF
  8514. cat confdefs.h >>conftest.$ac_ext
  8515. cat >>conftest.$ac_ext <<_ACEOF
  8516. /* end confdefs.h. */
  8517. /* Override any GCC internal prototype to avoid an error.
  8518. Use char because int might match the return type of a GCC
  8519. builtin and then its argument prototype would still apply. */
  8520. #ifdef __cplusplus
  8521. extern "C"
  8522. #endif
  8523. char dld_link ();
  8524. int
  8525. main ()
  8526. {
  8527. return dld_link ();
  8528. ;
  8529. return 0;
  8530. }
  8531. _ACEOF
  8532. rm -f conftest.$ac_objext conftest$ac_exeext
  8533. if { (ac_try="$ac_link"
  8534. case "(($ac_try" in
  8535. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8536. *) ac_try_echo=$ac_try;;
  8537. esac
  8538. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8539. (eval "$ac_link") 2>conftest.er1
  8540. ac_status=$?
  8541. grep -v '^ *+' conftest.er1 >conftest.err
  8542. rm -f conftest.er1
  8543. cat conftest.err >&5
  8544. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8545. (exit $ac_status); } && {
  8546. test -z "$ac_c_werror_flag" ||
  8547. test ! -s conftest.err
  8548. } && test -s conftest$ac_exeext &&
  8549. $as_test_x conftest$ac_exeext; then
  8550. ac_cv_lib_dld_dld_link=yes
  8551. else
  8552. echo "$as_me: failed program was:" >&5
  8553. sed 's/^/| /' conftest.$ac_ext >&5
  8554. ac_cv_lib_dld_dld_link=no
  8555. fi
  8556. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8557. conftest$ac_exeext conftest.$ac_ext
  8558. LIBS=$ac_check_lib_save_LIBS
  8559. fi
  8560. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  8561. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
  8562. if test $ac_cv_lib_dld_dld_link = yes; then
  8563. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  8564. fi
  8565. fi
  8566. fi
  8567. fi
  8568. fi
  8569. fi
  8570. ;;
  8571. esac
  8572. if test "x$lt_cv_dlopen" != xno; then
  8573. enable_dlopen=yes
  8574. else
  8575. enable_dlopen=no
  8576. fi
  8577. case $lt_cv_dlopen in
  8578. dlopen)
  8579. save_CPPFLAGS="$CPPFLAGS"
  8580. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  8581. save_LDFLAGS="$LDFLAGS"
  8582. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  8583. save_LIBS="$LIBS"
  8584. LIBS="$lt_cv_dlopen_libs $LIBS"
  8585. { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  8586. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
  8587. if test "${lt_cv_dlopen_self+set}" = set; then
  8588. echo $ECHO_N "(cached) $ECHO_C" >&6
  8589. else
  8590. if test "$cross_compiling" = yes; then :
  8591. lt_cv_dlopen_self=cross
  8592. else
  8593. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8594. lt_status=$lt_dlunknown
  8595. cat > conftest.$ac_ext <<_LT_EOF
  8596. #line 10096 "configure"
  8597. #include "confdefs.h"
  8598. #if HAVE_DLFCN_H
  8599. #include <dlfcn.h>
  8600. #endif
  8601. #include <stdio.h>
  8602. #ifdef RTLD_GLOBAL
  8603. # define LT_DLGLOBAL RTLD_GLOBAL
  8604. #else
  8605. # ifdef DL_GLOBAL
  8606. # define LT_DLGLOBAL DL_GLOBAL
  8607. # else
  8608. # define LT_DLGLOBAL 0
  8609. # endif
  8610. #endif
  8611. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8612. find out it does not work in some platform. */
  8613. #ifndef LT_DLLAZY_OR_NOW
  8614. # ifdef RTLD_LAZY
  8615. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  8616. # else
  8617. # ifdef DL_LAZY
  8618. # define LT_DLLAZY_OR_NOW DL_LAZY
  8619. # else
  8620. # ifdef RTLD_NOW
  8621. # define LT_DLLAZY_OR_NOW RTLD_NOW
  8622. # else
  8623. # ifdef DL_NOW
  8624. # define LT_DLLAZY_OR_NOW DL_NOW
  8625. # else
  8626. # define LT_DLLAZY_OR_NOW 0
  8627. # endif
  8628. # endif
  8629. # endif
  8630. # endif
  8631. #endif
  8632. #ifdef __cplusplus
  8633. extern "C" void exit (int);
  8634. #endif
  8635. void fnord() { int i=42;}
  8636. int main ()
  8637. {
  8638. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  8639. int status = $lt_dlunknown;
  8640. if (self)
  8641. {
  8642. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  8643. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  8644. /* dlclose (self); */
  8645. }
  8646. else
  8647. puts (dlerror ());
  8648. exit (status);
  8649. }
  8650. _LT_EOF
  8651. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8652. (eval $ac_link) 2>&5
  8653. ac_status=$?
  8654. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8655. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  8656. (./conftest; exit; ) >&5 2>/dev/null
  8657. lt_status=$?
  8658. case x$lt_status in
  8659. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  8660. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  8661. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  8662. esac
  8663. else :
  8664. # compilation failed
  8665. lt_cv_dlopen_self=no
  8666. fi
  8667. fi
  8668. rm -fr conftest*
  8669. fi
  8670. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  8671. echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
  8672. if test "x$lt_cv_dlopen_self" = xyes; then
  8673. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  8674. { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  8675. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
  8676. if test "${lt_cv_dlopen_self_static+set}" = set; then
  8677. echo $ECHO_N "(cached) $ECHO_C" >&6
  8678. else
  8679. if test "$cross_compiling" = yes; then :
  8680. lt_cv_dlopen_self_static=cross
  8681. else
  8682. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8683. lt_status=$lt_dlunknown
  8684. cat > conftest.$ac_ext <<_LT_EOF
  8685. #line 10196 "configure"
  8686. #include "confdefs.h"
  8687. #if HAVE_DLFCN_H
  8688. #include <dlfcn.h>
  8689. #endif
  8690. #include <stdio.h>
  8691. #ifdef RTLD_GLOBAL
  8692. # define LT_DLGLOBAL RTLD_GLOBAL
  8693. #else
  8694. # ifdef DL_GLOBAL
  8695. # define LT_DLGLOBAL DL_GLOBAL
  8696. # else
  8697. # define LT_DLGLOBAL 0
  8698. # endif
  8699. #endif
  8700. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8701. find out it does not work in some platform. */
  8702. #ifndef LT_DLLAZY_OR_NOW
  8703. # ifdef RTLD_LAZY
  8704. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  8705. # else
  8706. # ifdef DL_LAZY
  8707. # define LT_DLLAZY_OR_NOW DL_LAZY
  8708. # else
  8709. # ifdef RTLD_NOW
  8710. # define LT_DLLAZY_OR_NOW RTLD_NOW
  8711. # else
  8712. # ifdef DL_NOW
  8713. # define LT_DLLAZY_OR_NOW DL_NOW
  8714. # else
  8715. # define LT_DLLAZY_OR_NOW 0
  8716. # endif
  8717. # endif
  8718. # endif
  8719. # endif
  8720. #endif
  8721. #ifdef __cplusplus
  8722. extern "C" void exit (int);
  8723. #endif
  8724. void fnord() { int i=42;}
  8725. int main ()
  8726. {
  8727. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  8728. int status = $lt_dlunknown;
  8729. if (self)
  8730. {
  8731. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  8732. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  8733. /* dlclose (self); */
  8734. }
  8735. else
  8736. puts (dlerror ());
  8737. exit (status);
  8738. }
  8739. _LT_EOF
  8740. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8741. (eval $ac_link) 2>&5
  8742. ac_status=$?
  8743. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8744. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  8745. (./conftest; exit; ) >&5 2>/dev/null
  8746. lt_status=$?
  8747. case x$lt_status in
  8748. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  8749. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  8750. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  8751. esac
  8752. else :
  8753. # compilation failed
  8754. lt_cv_dlopen_self_static=no
  8755. fi
  8756. fi
  8757. rm -fr conftest*
  8758. fi
  8759. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  8760. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
  8761. fi
  8762. CPPFLAGS="$save_CPPFLAGS"
  8763. LDFLAGS="$save_LDFLAGS"
  8764. LIBS="$save_LIBS"
  8765. ;;
  8766. esac
  8767. case $lt_cv_dlopen_self in
  8768. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  8769. *) enable_dlopen_self=unknown ;;
  8770. esac
  8771. case $lt_cv_dlopen_self_static in
  8772. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  8773. *) enable_dlopen_self_static=unknown ;;
  8774. esac
  8775. fi
  8776. striplib=
  8777. old_striplib=
  8778. { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  8779. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
  8780. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  8781. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  8782. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  8783. { echo "$as_me:$LINENO: result: yes" >&5
  8784. echo "${ECHO_T}yes" >&6; }
  8785. else
  8786. # FIXME - insert some real tests, host_os isn't really good enough
  8787. case $host_os in
  8788. darwin*)
  8789. if test -n "$STRIP" ; then
  8790. striplib="$STRIP -x"
  8791. old_striplib="$STRIP -S"
  8792. { echo "$as_me:$LINENO: result: yes" >&5
  8793. echo "${ECHO_T}yes" >&6; }
  8794. else
  8795. { echo "$as_me:$LINENO: result: no" >&5
  8796. echo "${ECHO_T}no" >&6; }
  8797. fi
  8798. ;;
  8799. *)
  8800. { echo "$as_me:$LINENO: result: no" >&5
  8801. echo "${ECHO_T}no" >&6; }
  8802. ;;
  8803. esac
  8804. fi
  8805. # Report which library types will actually be built
  8806. { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  8807. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  8808. { echo "$as_me:$LINENO: result: $can_build_shared" >&5
  8809. echo "${ECHO_T}$can_build_shared" >&6; }
  8810. { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  8811. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  8812. test "$can_build_shared" = "no" && enable_shared=no
  8813. # On AIX, shared libraries and static libraries use the same namespace, and
  8814. # are all built from PIC.
  8815. case $host_os in
  8816. aix3*)
  8817. test "$enable_shared" = yes && enable_static=no
  8818. if test -n "$RANLIB"; then
  8819. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  8820. postinstall_cmds='$RANLIB $lib'
  8821. fi
  8822. ;;
  8823. aix[4-9]*)
  8824. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  8825. test "$enable_shared" = yes && enable_static=no
  8826. fi
  8827. ;;
  8828. esac
  8829. { echo "$as_me:$LINENO: result: $enable_shared" >&5
  8830. echo "${ECHO_T}$enable_shared" >&6; }
  8831. { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  8832. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  8833. # Make sure either enable_shared or enable_static is yes.
  8834. test "$enable_shared" = yes || enable_static=yes
  8835. { echo "$as_me:$LINENO: result: $enable_static" >&5
  8836. echo "${ECHO_T}$enable_static" >&6; }
  8837. fi
  8838. ac_ext=c
  8839. ac_cpp='$CPP $CPPFLAGS'
  8840. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8841. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8842. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8843. CC="$lt_save_CC"
  8844. ac_config_commands="$ac_config_commands libtool"
  8845. # Only expand once:
  8846. enable_win32_dll=yes
  8847. case $host in
  8848. *-*-cygwin* | *-*-mingw* | *-*-pw32*)
  8849. if test -n "$ac_tool_prefix"; then
  8850. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  8851. set dummy ${ac_tool_prefix}as; ac_word=$2
  8852. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8853. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8854. if test "${ac_cv_prog_AS+set}" = set; then
  8855. echo $ECHO_N "(cached) $ECHO_C" >&6
  8856. else
  8857. if test -n "$AS"; then
  8858. ac_cv_prog_AS="$AS" # Let the user override the test.
  8859. else
  8860. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8861. for as_dir in $PATH
  8862. do
  8863. IFS=$as_save_IFS
  8864. test -z "$as_dir" && as_dir=.
  8865. for ac_exec_ext in '' $ac_executable_extensions; do
  8866. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8867. ac_cv_prog_AS="${ac_tool_prefix}as"
  8868. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8869. break 2
  8870. fi
  8871. done
  8872. done
  8873. IFS=$as_save_IFS
  8874. fi
  8875. fi
  8876. AS=$ac_cv_prog_AS
  8877. if test -n "$AS"; then
  8878. { echo "$as_me:$LINENO: result: $AS" >&5
  8879. echo "${ECHO_T}$AS" >&6; }
  8880. else
  8881. { echo "$as_me:$LINENO: result: no" >&5
  8882. echo "${ECHO_T}no" >&6; }
  8883. fi
  8884. fi
  8885. if test -z "$ac_cv_prog_AS"; then
  8886. ac_ct_AS=$AS
  8887. # Extract the first word of "as", so it can be a program name with args.
  8888. set dummy as; ac_word=$2
  8889. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8890. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8891. if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
  8892. echo $ECHO_N "(cached) $ECHO_C" >&6
  8893. else
  8894. if test -n "$ac_ct_AS"; then
  8895. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  8896. else
  8897. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8898. for as_dir in $PATH
  8899. do
  8900. IFS=$as_save_IFS
  8901. test -z "$as_dir" && as_dir=.
  8902. for ac_exec_ext in '' $ac_executable_extensions; do
  8903. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8904. ac_cv_prog_ac_ct_AS="as"
  8905. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8906. break 2
  8907. fi
  8908. done
  8909. done
  8910. IFS=$as_save_IFS
  8911. fi
  8912. fi
  8913. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  8914. if test -n "$ac_ct_AS"; then
  8915. { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
  8916. echo "${ECHO_T}$ac_ct_AS" >&6; }
  8917. else
  8918. { echo "$as_me:$LINENO: result: no" >&5
  8919. echo "${ECHO_T}no" >&6; }
  8920. fi
  8921. if test "x$ac_ct_AS" = x; then
  8922. AS="false"
  8923. else
  8924. case $cross_compiling:$ac_tool_warned in
  8925. yes:)
  8926. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  8927. whose name does not start with the host triplet. If you think this
  8928. configuration is useful to you, please write to autoconf@gnu.org." >&5
  8929. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  8930. whose name does not start with the host triplet. If you think this
  8931. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  8932. ac_tool_warned=yes ;;
  8933. esac
  8934. AS=$ac_ct_AS
  8935. fi
  8936. else
  8937. AS="$ac_cv_prog_AS"
  8938. fi
  8939. if test -n "$ac_tool_prefix"; then
  8940. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  8941. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  8942. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8943. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8944. if test "${ac_cv_prog_DLLTOOL+set}" = set; then
  8945. echo $ECHO_N "(cached) $ECHO_C" >&6
  8946. else
  8947. if test -n "$DLLTOOL"; then
  8948. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  8949. else
  8950. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8951. for as_dir in $PATH
  8952. do
  8953. IFS=$as_save_IFS
  8954. test -z "$as_dir" && as_dir=.
  8955. for ac_exec_ext in '' $ac_executable_extensions; do
  8956. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8957. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  8958. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8959. break 2
  8960. fi
  8961. done
  8962. done
  8963. IFS=$as_save_IFS
  8964. fi
  8965. fi
  8966. DLLTOOL=$ac_cv_prog_DLLTOOL
  8967. if test -n "$DLLTOOL"; then
  8968. { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
  8969. echo "${ECHO_T}$DLLTOOL" >&6; }
  8970. else
  8971. { echo "$as_me:$LINENO: result: no" >&5
  8972. echo "${ECHO_T}no" >&6; }
  8973. fi
  8974. fi
  8975. if test -z "$ac_cv_prog_DLLTOOL"; then
  8976. ac_ct_DLLTOOL=$DLLTOOL
  8977. # Extract the first word of "dlltool", so it can be a program name with args.
  8978. set dummy dlltool; ac_word=$2
  8979. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8980. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8981. if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
  8982. echo $ECHO_N "(cached) $ECHO_C" >&6
  8983. else
  8984. if test -n "$ac_ct_DLLTOOL"; then
  8985. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  8986. else
  8987. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8988. for as_dir in $PATH
  8989. do
  8990. IFS=$as_save_IFS
  8991. test -z "$as_dir" && as_dir=.
  8992. for ac_exec_ext in '' $ac_executable_extensions; do
  8993. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8994. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  8995. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8996. break 2
  8997. fi
  8998. done
  8999. done
  9000. IFS=$as_save_IFS
  9001. fi
  9002. fi
  9003. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  9004. if test -n "$ac_ct_DLLTOOL"; then
  9005. { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
  9006. echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
  9007. else
  9008. { echo "$as_me:$LINENO: result: no" >&5
  9009. echo "${ECHO_T}no" >&6; }
  9010. fi
  9011. if test "x$ac_ct_DLLTOOL" = x; then
  9012. DLLTOOL="false"
  9013. else
  9014. case $cross_compiling:$ac_tool_warned in
  9015. yes:)
  9016. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  9017. whose name does not start with the host triplet. If you think this
  9018. configuration is useful to you, please write to autoconf@gnu.org." >&5
  9019. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  9020. whose name does not start with the host triplet. If you think this
  9021. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  9022. ac_tool_warned=yes ;;
  9023. esac
  9024. DLLTOOL=$ac_ct_DLLTOOL
  9025. fi
  9026. else
  9027. DLLTOOL="$ac_cv_prog_DLLTOOL"
  9028. fi
  9029. if test -n "$ac_tool_prefix"; then
  9030. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  9031. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  9032. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9033. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9034. if test "${ac_cv_prog_OBJDUMP+set}" = set; then
  9035. echo $ECHO_N "(cached) $ECHO_C" >&6
  9036. else
  9037. if test -n "$OBJDUMP"; then
  9038. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  9039. else
  9040. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9041. for as_dir in $PATH
  9042. do
  9043. IFS=$as_save_IFS
  9044. test -z "$as_dir" && as_dir=.
  9045. for ac_exec_ext in '' $ac_executable_extensions; do
  9046. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9047. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  9048. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9049. break 2
  9050. fi
  9051. done
  9052. done
  9053. IFS=$as_save_IFS
  9054. fi
  9055. fi
  9056. OBJDUMP=$ac_cv_prog_OBJDUMP
  9057. if test -n "$OBJDUMP"; then
  9058. { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
  9059. echo "${ECHO_T}$OBJDUMP" >&6; }
  9060. else
  9061. { echo "$as_me:$LINENO: result: no" >&5
  9062. echo "${ECHO_T}no" >&6; }
  9063. fi
  9064. fi
  9065. if test -z "$ac_cv_prog_OBJDUMP"; then
  9066. ac_ct_OBJDUMP=$OBJDUMP
  9067. # Extract the first word of "objdump", so it can be a program name with args.
  9068. set dummy objdump; ac_word=$2
  9069. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9070. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9071. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
  9072. echo $ECHO_N "(cached) $ECHO_C" >&6
  9073. else
  9074. if test -n "$ac_ct_OBJDUMP"; then
  9075. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  9076. else
  9077. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9078. for as_dir in $PATH
  9079. do
  9080. IFS=$as_save_IFS
  9081. test -z "$as_dir" && as_dir=.
  9082. for ac_exec_ext in '' $ac_executable_extensions; do
  9083. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9084. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  9085. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9086. break 2
  9087. fi
  9088. done
  9089. done
  9090. IFS=$as_save_IFS
  9091. fi
  9092. fi
  9093. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  9094. if test -n "$ac_ct_OBJDUMP"; then
  9095. { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
  9096. echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
  9097. else
  9098. { echo "$as_me:$LINENO: result: no" >&5
  9099. echo "${ECHO_T}no" >&6; }
  9100. fi
  9101. if test "x$ac_ct_OBJDUMP" = x; then
  9102. OBJDUMP="false"
  9103. else
  9104. case $cross_compiling:$ac_tool_warned in
  9105. yes:)
  9106. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  9107. whose name does not start with the host triplet. If you think this
  9108. configuration is useful to you, please write to autoconf@gnu.org." >&5
  9109. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  9110. whose name does not start with the host triplet. If you think this
  9111. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  9112. ac_tool_warned=yes ;;
  9113. esac
  9114. OBJDUMP=$ac_ct_OBJDUMP
  9115. fi
  9116. else
  9117. OBJDUMP="$ac_cv_prog_OBJDUMP"
  9118. fi
  9119. ;;
  9120. esac
  9121. test -z "$AS" && AS=as
  9122. test -z "$DLLTOOL" && DLLTOOL=dlltool
  9123. test -z "$OBJDUMP" && OBJDUMP=objdump
  9124. am__api_version='1.10'
  9125. # Find a good install program. We prefer a C program (faster),
  9126. # so one script is as good as another. But avoid the broken or
  9127. # incompatible versions:
  9128. # SysV /etc/install, /usr/sbin/install
  9129. # SunOS /usr/etc/install
  9130. # IRIX /sbin/install
  9131. # AIX /bin/install
  9132. # AmigaOS /C/install, which installs bootblocks on floppy discs
  9133. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  9134. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  9135. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  9136. # OS/2's system install, which has a completely different semantic
  9137. # ./install, which can be erroneously created by make from ./install.sh.
  9138. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  9139. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  9140. if test -z "$INSTALL"; then
  9141. if test "${ac_cv_path_install+set}" = set; then
  9142. echo $ECHO_N "(cached) $ECHO_C" >&6
  9143. else
  9144. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9145. for as_dir in $PATH
  9146. do
  9147. IFS=$as_save_IFS
  9148. test -z "$as_dir" && as_dir=.
  9149. # Account for people who put trailing slashes in PATH elements.
  9150. case $as_dir/ in
  9151. ./ | .// | /cC/* | \
  9152. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  9153. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  9154. /usr/ucb/* ) ;;
  9155. *)
  9156. # OSF1 and SCO ODT 3.0 have their own names for install.
  9157. # Don't use installbsd from OSF since it installs stuff as root
  9158. # by default.
  9159. for ac_prog in ginstall scoinst install; do
  9160. for ac_exec_ext in '' $ac_executable_extensions; do
  9161. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  9162. if test $ac_prog = install &&
  9163. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  9164. # AIX install. It has an incompatible calling convention.
  9165. :
  9166. elif test $ac_prog = install &&
  9167. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  9168. # program-specific install script used by HP pwplus--don't use.
  9169. :
  9170. else
  9171. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  9172. break 3
  9173. fi
  9174. fi
  9175. done
  9176. done
  9177. ;;
  9178. esac
  9179. done
  9180. IFS=$as_save_IFS
  9181. fi
  9182. if test "${ac_cv_path_install+set}" = set; then
  9183. INSTALL=$ac_cv_path_install
  9184. else
  9185. # As a last resort, use the slow shell script. Don't cache a
  9186. # value for INSTALL within a source directory, because that will
  9187. # break other packages using the cache if that directory is
  9188. # removed, or if the value is a relative name.
  9189. INSTALL=$ac_install_sh
  9190. fi
  9191. fi
  9192. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  9193. echo "${ECHO_T}$INSTALL" >&6; }
  9194. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  9195. # It thinks the first close brace ends the variable substitution.
  9196. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  9197. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  9198. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  9199. { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  9200. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  9201. # Just in case
  9202. sleep 1
  9203. echo timestamp > conftest.file
  9204. # Do `set' in a subshell so we don't clobber the current shell's
  9205. # arguments. Must try -L first in case configure is actually a
  9206. # symlink; some systems play weird games with the mod time of symlinks
  9207. # (eg FreeBSD returns the mod time of the symlink's containing
  9208. # directory).
  9209. if (
  9210. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  9211. if test "$*" = "X"; then
  9212. # -L didn't work.
  9213. set X `ls -t $srcdir/configure conftest.file`
  9214. fi
  9215. rm -f conftest.file
  9216. if test "$*" != "X $srcdir/configure conftest.file" \
  9217. && test "$*" != "X conftest.file $srcdir/configure"; then
  9218. # If neither matched, then we have a broken ls. This can happen
  9219. # if, for instance, CONFIG_SHELL is bash and it inherits a
  9220. # broken ls alias from the environment. This has actually
  9221. # happened. Such a system could not be considered "sane".
  9222. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  9223. alias in your environment" >&5
  9224. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  9225. alias in your environment" >&2;}
  9226. { (exit 1); exit 1; }; }
  9227. fi
  9228. test "$2" = conftest.file
  9229. )
  9230. then
  9231. # Ok.
  9232. :
  9233. else
  9234. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  9235. Check your system clock" >&5
  9236. echo "$as_me: error: newly created file is older than distributed files!
  9237. Check your system clock" >&2;}
  9238. { (exit 1); exit 1; }; }
  9239. fi
  9240. { echo "$as_me:$LINENO: result: yes" >&5
  9241. echo "${ECHO_T}yes" >&6; }
  9242. test "$program_prefix" != NONE &&
  9243. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  9244. # Use a double $ so make ignores it.
  9245. test "$program_suffix" != NONE &&
  9246. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  9247. # Double any \ or $. echo might interpret backslashes.
  9248. # By default was `s,x,x', remove it if useless.
  9249. cat <<\_ACEOF >conftest.sed
  9250. s/[\\$]/&&/g;s/;s,x,x,$//
  9251. _ACEOF
  9252. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  9253. rm -f conftest.sed
  9254. # expand $ac_aux_dir to an absolute path
  9255. am_aux_dir=`cd $ac_aux_dir && pwd`
  9256. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  9257. # Use eval to expand $SHELL
  9258. if eval "$MISSING --run true"; then
  9259. am_missing_run="$MISSING --run "
  9260. else
  9261. am_missing_run=
  9262. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  9263. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  9264. fi
  9265. { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  9266. echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
  9267. if test -z "$MKDIR_P"; then
  9268. if test "${ac_cv_path_mkdir+set}" = set; then
  9269. echo $ECHO_N "(cached) $ECHO_C" >&6
  9270. else
  9271. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9272. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  9273. do
  9274. IFS=$as_save_IFS
  9275. test -z "$as_dir" && as_dir=.
  9276. for ac_prog in mkdir gmkdir; do
  9277. for ac_exec_ext in '' $ac_executable_extensions; do
  9278. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  9279. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  9280. 'mkdir (GNU coreutils) '* | \
  9281. 'mkdir (coreutils) '* | \
  9282. 'mkdir (fileutils) '4.1*)
  9283. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  9284. break 3;;
  9285. esac
  9286. done
  9287. done
  9288. done
  9289. IFS=$as_save_IFS
  9290. fi
  9291. if test "${ac_cv_path_mkdir+set}" = set; then
  9292. MKDIR_P="$ac_cv_path_mkdir -p"
  9293. else
  9294. # As a last resort, use the slow shell script. Don't cache a
  9295. # value for MKDIR_P within a source directory, because that will
  9296. # break other packages using the cache if that directory is
  9297. # removed, or if the value is a relative name.
  9298. test -d ./--version && rmdir ./--version
  9299. MKDIR_P="$ac_install_sh -d"
  9300. fi
  9301. fi
  9302. { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  9303. echo "${ECHO_T}$MKDIR_P" >&6; }
  9304. mkdir_p="$MKDIR_P"
  9305. case $mkdir_p in
  9306. [\\/$]* | ?:[\\/]*) ;;
  9307. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  9308. esac
  9309. for ac_prog in gawk mawk nawk awk
  9310. do
  9311. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9312. set dummy $ac_prog; ac_word=$2
  9313. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9314. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9315. if test "${ac_cv_prog_AWK+set}" = set; then
  9316. echo $ECHO_N "(cached) $ECHO_C" >&6
  9317. else
  9318. if test -n "$AWK"; then
  9319. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  9320. else
  9321. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9322. for as_dir in $PATH
  9323. do
  9324. IFS=$as_save_IFS
  9325. test -z "$as_dir" && as_dir=.
  9326. for ac_exec_ext in '' $ac_executable_extensions; do
  9327. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9328. ac_cv_prog_AWK="$ac_prog"
  9329. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9330. break 2
  9331. fi
  9332. done
  9333. done
  9334. IFS=$as_save_IFS
  9335. fi
  9336. fi
  9337. AWK=$ac_cv_prog_AWK
  9338. if test -n "$AWK"; then
  9339. { echo "$as_me:$LINENO: result: $AWK" >&5
  9340. echo "${ECHO_T}$AWK" >&6; }
  9341. else
  9342. { echo "$as_me:$LINENO: result: no" >&5
  9343. echo "${ECHO_T}no" >&6; }
  9344. fi
  9345. test -n "$AWK" && break
  9346. done
  9347. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  9348. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  9349. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  9350. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  9351. echo $ECHO_N "(cached) $ECHO_C" >&6
  9352. else
  9353. cat >conftest.make <<\_ACEOF
  9354. SHELL = /bin/sh
  9355. all:
  9356. @echo '@@@%%%=$(MAKE)=@@@%%%'
  9357. _ACEOF
  9358. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  9359. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  9360. *@@@%%%=?*=@@@%%%*)
  9361. eval ac_cv_prog_make_${ac_make}_set=yes;;
  9362. *)
  9363. eval ac_cv_prog_make_${ac_make}_set=no;;
  9364. esac
  9365. rm -f conftest.make
  9366. fi
  9367. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  9368. { echo "$as_me:$LINENO: result: yes" >&5
  9369. echo "${ECHO_T}yes" >&6; }
  9370. SET_MAKE=
  9371. else
  9372. { echo "$as_me:$LINENO: result: no" >&5
  9373. echo "${ECHO_T}no" >&6; }
  9374. SET_MAKE="MAKE=${MAKE-make}"
  9375. fi
  9376. rm -rf .tst 2>/dev/null
  9377. mkdir .tst 2>/dev/null
  9378. if test -d .tst; then
  9379. am__leading_dot=.
  9380. else
  9381. am__leading_dot=_
  9382. fi
  9383. rmdir .tst 2>/dev/null
  9384. DEPDIR="${am__leading_dot}deps"
  9385. ac_config_commands="$ac_config_commands depfiles"
  9386. am_make=${MAKE-make}
  9387. cat > confinc << 'END'
  9388. am__doit:
  9389. @echo done
  9390. .PHONY: am__doit
  9391. END
  9392. # If we don't find an include directive, just comment out the code.
  9393. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  9394. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  9395. am__include="#"
  9396. am__quote=
  9397. _am_result=none
  9398. # First try GNU make style include.
  9399. echo "include confinc" > confmf
  9400. # We grep out `Entering directory' and `Leaving directory'
  9401. # messages which can occur if `w' ends up in MAKEFLAGS.
  9402. # In particular we don't look at `^make:' because GNU make might
  9403. # be invoked under some other name (usually "gmake"), in which
  9404. # case it prints its new name instead of `make'.
  9405. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  9406. am__include=include
  9407. am__quote=
  9408. _am_result=GNU
  9409. fi
  9410. # Now try BSD make style include.
  9411. if test "$am__include" = "#"; then
  9412. echo '.include "confinc"' > confmf
  9413. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  9414. am__include=.include
  9415. am__quote="\""
  9416. _am_result=BSD
  9417. fi
  9418. fi
  9419. { echo "$as_me:$LINENO: result: $_am_result" >&5
  9420. echo "${ECHO_T}$_am_result" >&6; }
  9421. rm -f confinc confmf
  9422. # Check whether --enable-dependency-tracking was given.
  9423. if test "${enable_dependency_tracking+set}" = set; then
  9424. enableval=$enable_dependency_tracking;
  9425. fi
  9426. if test "x$enable_dependency_tracking" != xno; then
  9427. am_depcomp="$ac_aux_dir/depcomp"
  9428. AMDEPBACKSLASH='\'
  9429. fi
  9430. if test "x$enable_dependency_tracking" != xno; then
  9431. AMDEP_TRUE=
  9432. AMDEP_FALSE='#'
  9433. else
  9434. AMDEP_TRUE='#'
  9435. AMDEP_FALSE=
  9436. fi
  9437. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  9438. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  9439. # is not polluted with repeated "-I."
  9440. am__isrc=' -I$(srcdir)'
  9441. # test to see if srcdir already configured
  9442. if test -f $srcdir/config.status; then
  9443. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  9444. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  9445. { (exit 1); exit 1; }; }
  9446. fi
  9447. fi
  9448. # test whether we have cygpath
  9449. if test -z "$CYGPATH_W"; then
  9450. if (cygpath --version) >/dev/null 2>/dev/null; then
  9451. CYGPATH_W='cygpath -w'
  9452. else
  9453. CYGPATH_W=echo
  9454. fi
  9455. fi
  9456. # Define the identity of the package.
  9457. PACKAGE='devil'
  9458. VERSION='1.7.8'
  9459. cat >>confdefs.h <<_ACEOF
  9460. #define PACKAGE "$PACKAGE"
  9461. _ACEOF
  9462. cat >>confdefs.h <<_ACEOF
  9463. #define VERSION "$VERSION"
  9464. _ACEOF
  9465. # Some tools Automake needs.
  9466. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  9467. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  9468. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  9469. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  9470. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  9471. install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  9472. # Installed binaries are usually stripped using `strip' when the user
  9473. # run `make install-strip'. However `strip' might not be the right
  9474. # tool to use in cross-compilation environments, therefore Automake
  9475. # will honor the `STRIP' environment variable to overrule this program.
  9476. if test "$cross_compiling" != no; then
  9477. if test -n "$ac_tool_prefix"; then
  9478. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  9479. set dummy ${ac_tool_prefix}strip; ac_word=$2
  9480. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9481. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9482. if test "${ac_cv_prog_STRIP+set}" = set; then
  9483. echo $ECHO_N "(cached) $ECHO_C" >&6
  9484. else
  9485. if test -n "$STRIP"; then
  9486. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  9487. else
  9488. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9489. for as_dir in $PATH
  9490. do
  9491. IFS=$as_save_IFS
  9492. test -z "$as_dir" && as_dir=.
  9493. for ac_exec_ext in '' $ac_executable_extensions; do
  9494. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9495. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  9496. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9497. break 2
  9498. fi
  9499. done
  9500. done
  9501. IFS=$as_save_IFS
  9502. fi
  9503. fi
  9504. STRIP=$ac_cv_prog_STRIP
  9505. if test -n "$STRIP"; then
  9506. { echo "$as_me:$LINENO: result: $STRIP" >&5
  9507. echo "${ECHO_T}$STRIP" >&6; }
  9508. else
  9509. { echo "$as_me:$LINENO: result: no" >&5
  9510. echo "${ECHO_T}no" >&6; }
  9511. fi
  9512. fi
  9513. if test -z "$ac_cv_prog_STRIP"; then
  9514. ac_ct_STRIP=$STRIP
  9515. # Extract the first word of "strip", so it can be a program name with args.
  9516. set dummy strip; ac_word=$2
  9517. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9518. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9519. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  9520. echo $ECHO_N "(cached) $ECHO_C" >&6
  9521. else
  9522. if test -n "$ac_ct_STRIP"; then
  9523. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  9524. else
  9525. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9526. for as_dir in $PATH
  9527. do
  9528. IFS=$as_save_IFS
  9529. test -z "$as_dir" && as_dir=.
  9530. for ac_exec_ext in '' $ac_executable_extensions; do
  9531. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9532. ac_cv_prog_ac_ct_STRIP="strip"
  9533. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9534. break 2
  9535. fi
  9536. done
  9537. done
  9538. IFS=$as_save_IFS
  9539. fi
  9540. fi
  9541. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  9542. if test -n "$ac_ct_STRIP"; then
  9543. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  9544. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  9545. else
  9546. { echo "$as_me:$LINENO: result: no" >&5
  9547. echo "${ECHO_T}no" >&6; }
  9548. fi
  9549. if test "x$ac_ct_STRIP" = x; then
  9550. STRIP=":"
  9551. else
  9552. case $cross_compiling:$ac_tool_warned in
  9553. yes:)
  9554. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  9555. whose name does not start with the host triplet. If you think this
  9556. configuration is useful to you, please write to autoconf@gnu.org." >&5
  9557. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  9558. whose name does not start with the host triplet. If you think this
  9559. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  9560. ac_tool_warned=yes ;;
  9561. esac
  9562. STRIP=$ac_ct_STRIP
  9563. fi
  9564. else
  9565. STRIP="$ac_cv_prog_STRIP"
  9566. fi
  9567. fi
  9568. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  9569. # We need awk for the "check" target. The system "awk" is bad on
  9570. # some platforms.
  9571. # Always define AMTAR for backward compatibility.
  9572. AMTAR=${AMTAR-"${am_missing_run}tar"}
  9573. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  9574. depcc="$CC" am_compiler_list=
  9575. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  9576. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  9577. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  9578. echo $ECHO_N "(cached) $ECHO_C" >&6
  9579. else
  9580. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  9581. # We make a subdir and do the tests there. Otherwise we can end up
  9582. # making bogus files that we don't know about and never remove. For
  9583. # instance it was reported that on HP-UX the gcc test will end up
  9584. # making a dummy file named `D' -- because `-MD' means `put the output
  9585. # in D'.
  9586. mkdir conftest.dir
  9587. # Copy depcomp to subdir because otherwise we won't find it if we're
  9588. # using a relative directory.
  9589. cp "$am_depcomp" conftest.dir
  9590. cd conftest.dir
  9591. # We will build objects and dependencies in a subdirectory because
  9592. # it helps to detect inapplicable dependency modes. For instance
  9593. # both Tru64's cc and ICC support -MD to output dependencies as a
  9594. # side effect of compilation, but ICC will put the dependencies in
  9595. # the current directory while Tru64 will put them in the object
  9596. # directory.
  9597. mkdir sub
  9598. am_cv_CC_dependencies_compiler_type=none
  9599. if test "$am_compiler_list" = ""; then
  9600. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  9601. fi
  9602. for depmode in $am_compiler_list; do
  9603. # Setup a source with many dependencies, because some compilers
  9604. # like to wrap large dependency lists on column 80 (with \), and
  9605. # we should not choose a depcomp mode which is confused by this.
  9606. #
  9607. # We need to recreate these files for each test, as the compiler may
  9608. # overwrite some of them when testing with obscure command lines.
  9609. # This happens at least with the AIX C compiler.
  9610. : > sub/conftest.c
  9611. for i in 1 2 3 4 5 6; do
  9612. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  9613. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  9614. # Solaris 8's {/usr,}/bin/sh.
  9615. touch sub/conftst$i.h
  9616. done
  9617. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  9618. case $depmode in
  9619. nosideeffect)
  9620. # after this tag, mechanisms are not by side-effect, so they'll
  9621. # only be used when explicitly requested
  9622. if test "x$enable_dependency_tracking" = xyes; then
  9623. continue
  9624. else
  9625. break
  9626. fi
  9627. ;;
  9628. none) break ;;
  9629. esac
  9630. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  9631. # mode. It turns out that the SunPro C++ compiler does not properly
  9632. # handle `-M -o', and we need to detect this.
  9633. if depmode=$depmode \
  9634. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  9635. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  9636. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  9637. >/dev/null 2>conftest.err &&
  9638. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  9639. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  9640. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  9641. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  9642. # icc doesn't choke on unknown options, it will just issue warnings
  9643. # or remarks (even with -Werror). So we grep stderr for any message
  9644. # that says an option was ignored or not supported.
  9645. # When given -MP, icc 7.0 and 7.1 complain thusly:
  9646. # icc: Command line warning: ignoring option '-M'; no argument required
  9647. # The diagnosis changed in icc 8.0:
  9648. # icc: Command line remark: option '-MP' not supported
  9649. if (grep 'ignoring option' conftest.err ||
  9650. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  9651. am_cv_CC_dependencies_compiler_type=$depmode
  9652. break
  9653. fi
  9654. fi
  9655. done
  9656. cd ..
  9657. rm -rf conftest.dir
  9658. else
  9659. am_cv_CC_dependencies_compiler_type=none
  9660. fi
  9661. fi
  9662. { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  9663. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  9664. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  9665. if
  9666. test "x$enable_dependency_tracking" != xno \
  9667. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  9668. am__fastdepCC_TRUE=
  9669. am__fastdepCC_FALSE='#'
  9670. else
  9671. am__fastdepCC_TRUE='#'
  9672. am__fastdepCC_FALSE=
  9673. fi
  9674. DEVIL_LTVERSION=2:0:1
  9675. # Check whether --enable-debug was given.
  9676. if test "${enable_debug+set}" = set; then
  9677. enableval=$enable_debug;
  9678. else
  9679. enable_debug="no"
  9680. fi
  9681. # Check whether --enable-release was given.
  9682. if test "${enable_release+set}" = set; then
  9683. enableval=$enable_release;
  9684. else
  9685. enable_release="yes"
  9686. test "x$enable_debug" = "xyes" && enable_release="no"
  9687. fi
  9688. # Check whether --enable-asm was given.
  9689. if test "${enable_asm+set}" = set; then
  9690. enableval=$enable_asm;
  9691. else
  9692. enable_asm="yes"
  9693. test "x$enable_debug" = "xyes" && enable_asm="no"
  9694. fi
  9695. if test "x$enable_release" = "xyes"; then
  9696. if test "x$CFLAGS" = "x"; then
  9697. CFLAGS="-O3"
  9698. fi
  9699. if test "x$CXXFLAGS" = "x"; then
  9700. CXXFLAGS="-O3"
  9701. fi
  9702. elif test "x$enable_debug" = "xyes"; then
  9703. CFLAGS="-DNOINLINE -Wall -g -O0"
  9704. CXXFLAGS="-DNOINLINE -Wall -g -O0"
  9705. cat >>confdefs.h <<\_ACEOF
  9706. #define DEBUG
  9707. _ACEOF
  9708. fi
  9709. SUPPORTED_FORMATS=""
  9710. SUPPORTED_API=""
  9711. SUPPORTED_EXTENSION=""
  9712. # Make sure we can run config.sub.
  9713. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  9714. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  9715. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  9716. { (exit 1); exit 1; }; }
  9717. { echo "$as_me:$LINENO: checking build system type" >&5
  9718. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  9719. if test "${ac_cv_build+set}" = set; then
  9720. echo $ECHO_N "(cached) $ECHO_C" >&6
  9721. else
  9722. ac_build_alias=$build_alias
  9723. test "x$ac_build_alias" = x &&
  9724. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  9725. test "x$ac_build_alias" = x &&
  9726. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  9727. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  9728. { (exit 1); exit 1; }; }
  9729. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  9730. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  9731. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  9732. { (exit 1); exit 1; }; }
  9733. fi
  9734. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  9735. echo "${ECHO_T}$ac_cv_build" >&6; }
  9736. case $ac_cv_build in
  9737. *-*-*) ;;
  9738. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  9739. echo "$as_me: error: invalid value of canonical build" >&2;}
  9740. { (exit 1); exit 1; }; };;
  9741. esac
  9742. build=$ac_cv_build
  9743. ac_save_IFS=$IFS; IFS='-'
  9744. set x $ac_cv_build
  9745. shift
  9746. build_cpu=$1
  9747. build_vendor=$2
  9748. shift; shift
  9749. # Remember, the first character of IFS is used to create $*,
  9750. # except with old shells:
  9751. build_os=$*
  9752. IFS=$ac_save_IFS
  9753. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  9754. { echo "$as_me:$LINENO: checking host system type" >&5
  9755. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  9756. if test "${ac_cv_host+set}" = set; then
  9757. echo $ECHO_N "(cached) $ECHO_C" >&6
  9758. else
  9759. if test "x$host_alias" = x; then
  9760. ac_cv_host=$ac_cv_build
  9761. else
  9762. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  9763. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  9764. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  9765. { (exit 1); exit 1; }; }
  9766. fi
  9767. fi
  9768. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  9769. echo "${ECHO_T}$ac_cv_host" >&6; }
  9770. case $ac_cv_host in
  9771. *-*-*) ;;
  9772. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  9773. echo "$as_me: error: invalid value of canonical host" >&2;}
  9774. { (exit 1); exit 1; }; };;
  9775. esac
  9776. host=$ac_cv_host
  9777. ac_save_IFS=$IFS; IFS='-'
  9778. set x $ac_cv_host
  9779. shift
  9780. host_cpu=$1
  9781. host_vendor=$2
  9782. shift; shift
  9783. # Remember, the first character of IFS is used to create $*,
  9784. # except with old shells:
  9785. host_os=$*
  9786. IFS=$ac_save_IFS
  9787. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  9788. ac_ext=c
  9789. ac_cpp='$CPP $CPPFLAGS'
  9790. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9791. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9792. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9793. if test "x$CC" != xcc; then
  9794. { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
  9795. echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
  9796. else
  9797. { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
  9798. echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
  9799. fi
  9800. set dummy $CC; ac_cc=`echo $2 |
  9801. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  9802. if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
  9803. echo $ECHO_N "(cached) $ECHO_C" >&6
  9804. else
  9805. cat >conftest.$ac_ext <<_ACEOF
  9806. /* confdefs.h. */
  9807. _ACEOF
  9808. cat confdefs.h >>conftest.$ac_ext
  9809. cat >>conftest.$ac_ext <<_ACEOF
  9810. /* end confdefs.h. */
  9811. int
  9812. main ()
  9813. {
  9814. ;
  9815. return 0;
  9816. }
  9817. _ACEOF
  9818. # Make sure it works both with $CC and with simple cc.
  9819. # We do the test twice because some compilers refuse to overwrite an
  9820. # existing .o file with -o, though they will create one.
  9821. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  9822. rm -f conftest2.*
  9823. if { (case "(($ac_try" in
  9824. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9825. *) ac_try_echo=$ac_try;;
  9826. esac
  9827. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9828. (eval "$ac_try") 2>&5
  9829. ac_status=$?
  9830. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9831. (exit $ac_status); } &&
  9832. test -f conftest2.$ac_objext && { (case "(($ac_try" in
  9833. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9834. *) ac_try_echo=$ac_try;;
  9835. esac
  9836. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9837. (eval "$ac_try") 2>&5
  9838. ac_status=$?
  9839. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9840. (exit $ac_status); };
  9841. then
  9842. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  9843. if test "x$CC" != xcc; then
  9844. # Test first that cc exists at all.
  9845. if { ac_try='cc -c conftest.$ac_ext >&5'
  9846. { (case "(($ac_try" in
  9847. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9848. *) ac_try_echo=$ac_try;;
  9849. esac
  9850. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9851. (eval "$ac_try") 2>&5
  9852. ac_status=$?
  9853. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9854. (exit $ac_status); }; }; then
  9855. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  9856. rm -f conftest2.*
  9857. if { (case "(($ac_try" in
  9858. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9859. *) ac_try_echo=$ac_try;;
  9860. esac
  9861. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9862. (eval "$ac_try") 2>&5
  9863. ac_status=$?
  9864. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9865. (exit $ac_status); } &&
  9866. test -f conftest2.$ac_objext && { (case "(($ac_try" in
  9867. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9868. *) ac_try_echo=$ac_try;;
  9869. esac
  9870. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9871. (eval "$ac_try") 2>&5
  9872. ac_status=$?
  9873. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9874. (exit $ac_status); };
  9875. then
  9876. # cc works too.
  9877. :
  9878. else
  9879. # cc exists but doesn't like -o.
  9880. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  9881. fi
  9882. fi
  9883. fi
  9884. else
  9885. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  9886. fi
  9887. rm -f core conftest*
  9888. fi
  9889. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  9890. { echo "$as_me:$LINENO: result: yes" >&5
  9891. echo "${ECHO_T}yes" >&6; }
  9892. else
  9893. { echo "$as_me:$LINENO: result: no" >&5
  9894. echo "${ECHO_T}no" >&6; }
  9895. cat >>confdefs.h <<\_ACEOF
  9896. #define NO_MINUS_C_MINUS_O 1
  9897. _ACEOF
  9898. fi
  9899. # FIXME: we rely on the cache variable name because
  9900. # there is no other way.
  9901. set dummy $CC
  9902. ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  9903. if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
  9904. # Losing compiler, so override with the script.
  9905. # FIXME: It is wrong to rewrite CC.
  9906. # But if we don't then we get into trouble of one sort or another.
  9907. # A longer-term fix would be to have automake use am__CC in this case,
  9908. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  9909. CC="$am_aux_dir/compile $CC"
  9910. fi
  9911. ac_ext=cpp
  9912. ac_cpp='$CXXCPP $CPPFLAGS'
  9913. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9914. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9915. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9916. if test -z "$CXX"; then
  9917. if test -n "$CCC"; then
  9918. CXX=$CCC
  9919. else
  9920. if test -n "$ac_tool_prefix"; then
  9921. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  9922. do
  9923. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  9924. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  9925. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9926. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9927. if test "${ac_cv_prog_CXX+set}" = set; then
  9928. echo $ECHO_N "(cached) $ECHO_C" >&6
  9929. else
  9930. if test -n "$CXX"; then
  9931. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  9932. else
  9933. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9934. for as_dir in $PATH
  9935. do
  9936. IFS=$as_save_IFS
  9937. test -z "$as_dir" && as_dir=.
  9938. for ac_exec_ext in '' $ac_executable_extensions; do
  9939. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9940. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  9941. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9942. break 2
  9943. fi
  9944. done
  9945. done
  9946. IFS=$as_save_IFS
  9947. fi
  9948. fi
  9949. CXX=$ac_cv_prog_CXX
  9950. if test -n "$CXX"; then
  9951. { echo "$as_me:$LINENO: result: $CXX" >&5
  9952. echo "${ECHO_T}$CXX" >&6; }
  9953. else
  9954. { echo "$as_me:$LINENO: result: no" >&5
  9955. echo "${ECHO_T}no" >&6; }
  9956. fi
  9957. test -n "$CXX" && break
  9958. done
  9959. fi
  9960. if test -z "$CXX"; then
  9961. ac_ct_CXX=$CXX
  9962. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  9963. do
  9964. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9965. set dummy $ac_prog; ac_word=$2
  9966. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9967. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9968. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  9969. echo $ECHO_N "(cached) $ECHO_C" >&6
  9970. else
  9971. if test -n "$ac_ct_CXX"; then
  9972. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  9973. else
  9974. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9975. for as_dir in $PATH
  9976. do
  9977. IFS=$as_save_IFS
  9978. test -z "$as_dir" && as_dir=.
  9979. for ac_exec_ext in '' $ac_executable_extensions; do
  9980. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9981. ac_cv_prog_ac_ct_CXX="$ac_prog"
  9982. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9983. break 2
  9984. fi
  9985. done
  9986. done
  9987. IFS=$as_save_IFS
  9988. fi
  9989. fi
  9990. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  9991. if test -n "$ac_ct_CXX"; then
  9992. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  9993. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  9994. else
  9995. { echo "$as_me:$LINENO: result: no" >&5
  9996. echo "${ECHO_T}no" >&6; }
  9997. fi
  9998. test -n "$ac_ct_CXX" && break
  9999. done
  10000. if test "x$ac_ct_CXX" = x; then
  10001. CXX="g++"
  10002. else
  10003. case $cross_compiling:$ac_tool_warned in
  10004. yes:)
  10005. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  10006. whose name does not start with the host triplet. If you think this
  10007. configuration is useful to you, please write to autoconf@gnu.org." >&5
  10008. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  10009. whose name does not start with the host triplet. If you think this
  10010. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  10011. ac_tool_warned=yes ;;
  10012. esac
  10013. CXX=$ac_ct_CXX
  10014. fi
  10015. fi
  10016. fi
  10017. fi
  10018. # Provide some information about the compiler.
  10019. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  10020. ac_compiler=`set X $ac_compile; echo $2`
  10021. { (ac_try="$ac_compiler --version >&5"
  10022. case "(($ac_try" in
  10023. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10024. *) ac_try_echo=$ac_try;;
  10025. esac
  10026. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10027. (eval "$ac_compiler --version >&5") 2>&5
  10028. ac_status=$?
  10029. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10030. (exit $ac_status); }
  10031. { (ac_try="$ac_compiler -v >&5"
  10032. case "(($ac_try" in
  10033. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10034. *) ac_try_echo=$ac_try;;
  10035. esac
  10036. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10037. (eval "$ac_compiler -v >&5") 2>&5
  10038. ac_status=$?
  10039. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10040. (exit $ac_status); }
  10041. { (ac_try="$ac_compiler -V >&5"
  10042. case "(($ac_try" in
  10043. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10044. *) ac_try_echo=$ac_try;;
  10045. esac
  10046. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10047. (eval "$ac_compiler -V >&5") 2>&5
  10048. ac_status=$?
  10049. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10050. (exit $ac_status); }
  10051. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  10052. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  10053. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  10054. echo $ECHO_N "(cached) $ECHO_C" >&6
  10055. else
  10056. cat >conftest.$ac_ext <<_ACEOF
  10057. /* confdefs.h. */
  10058. _ACEOF
  10059. cat confdefs.h >>conftest.$ac_ext
  10060. cat >>conftest.$ac_ext <<_ACEOF
  10061. /* end confdefs.h. */
  10062. int
  10063. main ()
  10064. {
  10065. #ifndef __GNUC__
  10066. choke me
  10067. #endif
  10068. ;
  10069. return 0;
  10070. }
  10071. _ACEOF
  10072. rm -f conftest.$ac_objext
  10073. if { (ac_try="$ac_compile"
  10074. case "(($ac_try" in
  10075. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10076. *) ac_try_echo=$ac_try;;
  10077. esac
  10078. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10079. (eval "$ac_compile") 2>conftest.er1
  10080. ac_status=$?
  10081. grep -v '^ *+' conftest.er1 >conftest.err
  10082. rm -f conftest.er1
  10083. cat conftest.err >&5
  10084. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10085. (exit $ac_status); } && {
  10086. test -z "$ac_cxx_werror_flag" ||
  10087. test ! -s conftest.err
  10088. } && test -s conftest.$ac_objext; then
  10089. ac_compiler_gnu=yes
  10090. else
  10091. echo "$as_me: failed program was:" >&5
  10092. sed 's/^/| /' conftest.$ac_ext >&5
  10093. ac_compiler_gnu=no
  10094. fi
  10095. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10096. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10097. fi
  10098. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  10099. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  10100. GXX=`test $ac_compiler_gnu = yes && echo yes`
  10101. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10102. ac_save_CXXFLAGS=$CXXFLAGS
  10103. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  10104. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  10105. if test "${ac_cv_prog_cxx_g+set}" = set; then
  10106. echo $ECHO_N "(cached) $ECHO_C" >&6
  10107. else
  10108. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10109. ac_cxx_werror_flag=yes
  10110. ac_cv_prog_cxx_g=no
  10111. CXXFLAGS="-g"
  10112. cat >conftest.$ac_ext <<_ACEOF
  10113. /* confdefs.h. */
  10114. _ACEOF
  10115. cat confdefs.h >>conftest.$ac_ext
  10116. cat >>conftest.$ac_ext <<_ACEOF
  10117. /* end confdefs.h. */
  10118. int
  10119. main ()
  10120. {
  10121. ;
  10122. return 0;
  10123. }
  10124. _ACEOF
  10125. rm -f conftest.$ac_objext
  10126. if { (ac_try="$ac_compile"
  10127. case "(($ac_try" in
  10128. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10129. *) ac_try_echo=$ac_try;;
  10130. esac
  10131. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10132. (eval "$ac_compile") 2>conftest.er1
  10133. ac_status=$?
  10134. grep -v '^ *+' conftest.er1 >conftest.err
  10135. rm -f conftest.er1
  10136. cat conftest.err >&5
  10137. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10138. (exit $ac_status); } && {
  10139. test -z "$ac_cxx_werror_flag" ||
  10140. test ! -s conftest.err
  10141. } && test -s conftest.$ac_objext; then
  10142. ac_cv_prog_cxx_g=yes
  10143. else
  10144. echo "$as_me: failed program was:" >&5
  10145. sed 's/^/| /' conftest.$ac_ext >&5
  10146. CXXFLAGS=""
  10147. cat >conftest.$ac_ext <<_ACEOF
  10148. /* confdefs.h. */
  10149. _ACEOF
  10150. cat confdefs.h >>conftest.$ac_ext
  10151. cat >>conftest.$ac_ext <<_ACEOF
  10152. /* end confdefs.h. */
  10153. int
  10154. main ()
  10155. {
  10156. ;
  10157. return 0;
  10158. }
  10159. _ACEOF
  10160. rm -f conftest.$ac_objext
  10161. if { (ac_try="$ac_compile"
  10162. case "(($ac_try" in
  10163. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10164. *) ac_try_echo=$ac_try;;
  10165. esac
  10166. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10167. (eval "$ac_compile") 2>conftest.er1
  10168. ac_status=$?
  10169. grep -v '^ *+' conftest.er1 >conftest.err
  10170. rm -f conftest.er1
  10171. cat conftest.err >&5
  10172. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10173. (exit $ac_status); } && {
  10174. test -z "$ac_cxx_werror_flag" ||
  10175. test ! -s conftest.err
  10176. } && test -s conftest.$ac_objext; then
  10177. :
  10178. else
  10179. echo "$as_me: failed program was:" >&5
  10180. sed 's/^/| /' conftest.$ac_ext >&5
  10181. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10182. CXXFLAGS="-g"
  10183. cat >conftest.$ac_ext <<_ACEOF
  10184. /* confdefs.h. */
  10185. _ACEOF
  10186. cat confdefs.h >>conftest.$ac_ext
  10187. cat >>conftest.$ac_ext <<_ACEOF
  10188. /* end confdefs.h. */
  10189. int
  10190. main ()
  10191. {
  10192. ;
  10193. return 0;
  10194. }
  10195. _ACEOF
  10196. rm -f conftest.$ac_objext
  10197. if { (ac_try="$ac_compile"
  10198. case "(($ac_try" in
  10199. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10200. *) ac_try_echo=$ac_try;;
  10201. esac
  10202. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10203. (eval "$ac_compile") 2>conftest.er1
  10204. ac_status=$?
  10205. grep -v '^ *+' conftest.er1 >conftest.err
  10206. rm -f conftest.er1
  10207. cat conftest.err >&5
  10208. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10209. (exit $ac_status); } && {
  10210. test -z "$ac_cxx_werror_flag" ||
  10211. test ! -s conftest.err
  10212. } && test -s conftest.$ac_objext; then
  10213. ac_cv_prog_cxx_g=yes
  10214. else
  10215. echo "$as_me: failed program was:" >&5
  10216. sed 's/^/| /' conftest.$ac_ext >&5
  10217. fi
  10218. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10219. fi
  10220. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10221. fi
  10222. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10223. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10224. fi
  10225. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  10226. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  10227. if test "$ac_test_CXXFLAGS" = set; then
  10228. CXXFLAGS=$ac_save_CXXFLAGS
  10229. elif test $ac_cv_prog_cxx_g = yes; then
  10230. if test "$GXX" = yes; then
  10231. CXXFLAGS="-g -O2"
  10232. else
  10233. CXXFLAGS="-g"
  10234. fi
  10235. else
  10236. if test "$GXX" = yes; then
  10237. CXXFLAGS="-O2"
  10238. else
  10239. CXXFLAGS=
  10240. fi
  10241. fi
  10242. ac_ext=c
  10243. ac_cpp='$CPP $CPPFLAGS'
  10244. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10245. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10246. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10247. ac_ext=cpp
  10248. ac_cpp='$CXXCPP $CPPFLAGS'
  10249. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10250. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10251. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10252. if test -z "$CXX"; then
  10253. if test -n "$CCC"; then
  10254. CXX=$CCC
  10255. else
  10256. if test -n "$ac_tool_prefix"; then
  10257. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10258. do
  10259. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10260. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10261. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  10262. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  10263. if test "${ac_cv_prog_CXX+set}" = set; then
  10264. echo $ECHO_N "(cached) $ECHO_C" >&6
  10265. else
  10266. if test -n "$CXX"; then
  10267. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10268. else
  10269. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10270. for as_dir in $PATH
  10271. do
  10272. IFS=$as_save_IFS
  10273. test -z "$as_dir" && as_dir=.
  10274. for ac_exec_ext in '' $ac_executable_extensions; do
  10275. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10276. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10277. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  10278. break 2
  10279. fi
  10280. done
  10281. done
  10282. IFS=$as_save_IFS
  10283. fi
  10284. fi
  10285. CXX=$ac_cv_prog_CXX
  10286. if test -n "$CXX"; then
  10287. { echo "$as_me:$LINENO: result: $CXX" >&5
  10288. echo "${ECHO_T}$CXX" >&6; }
  10289. else
  10290. { echo "$as_me:$LINENO: result: no" >&5
  10291. echo "${ECHO_T}no" >&6; }
  10292. fi
  10293. test -n "$CXX" && break
  10294. done
  10295. fi
  10296. if test -z "$CXX"; then
  10297. ac_ct_CXX=$CXX
  10298. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10299. do
  10300. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10301. set dummy $ac_prog; ac_word=$2
  10302. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  10303. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  10304. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  10305. echo $ECHO_N "(cached) $ECHO_C" >&6
  10306. else
  10307. if test -n "$ac_ct_CXX"; then
  10308. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10309. else
  10310. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10311. for as_dir in $PATH
  10312. do
  10313. IFS=$as_save_IFS
  10314. test -z "$as_dir" && as_dir=.
  10315. for ac_exec_ext in '' $ac_executable_extensions; do
  10316. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10317. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10318. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  10319. break 2
  10320. fi
  10321. done
  10322. done
  10323. IFS=$as_save_IFS
  10324. fi
  10325. fi
  10326. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10327. if test -n "$ac_ct_CXX"; then
  10328. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  10329. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  10330. else
  10331. { echo "$as_me:$LINENO: result: no" >&5
  10332. echo "${ECHO_T}no" >&6; }
  10333. fi
  10334. test -n "$ac_ct_CXX" && break
  10335. done
  10336. if test "x$ac_ct_CXX" = x; then
  10337. CXX="g++"
  10338. else
  10339. case $cross_compiling:$ac_tool_warned in
  10340. yes:)
  10341. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  10342. whose name does not start with the host triplet. If you think this
  10343. configuration is useful to you, please write to autoconf@gnu.org." >&5
  10344. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  10345. whose name does not start with the host triplet. If you think this
  10346. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  10347. ac_tool_warned=yes ;;
  10348. esac
  10349. CXX=$ac_ct_CXX
  10350. fi
  10351. fi
  10352. fi
  10353. fi
  10354. # Provide some information about the compiler.
  10355. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  10356. ac_compiler=`set X $ac_compile; echo $2`
  10357. { (ac_try="$ac_compiler --version >&5"
  10358. case "(($ac_try" in
  10359. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10360. *) ac_try_echo=$ac_try;;
  10361. esac
  10362. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10363. (eval "$ac_compiler --version >&5") 2>&5
  10364. ac_status=$?
  10365. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10366. (exit $ac_status); }
  10367. { (ac_try="$ac_compiler -v >&5"
  10368. case "(($ac_try" in
  10369. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10370. *) ac_try_echo=$ac_try;;
  10371. esac
  10372. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10373. (eval "$ac_compiler -v >&5") 2>&5
  10374. ac_status=$?
  10375. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10376. (exit $ac_status); }
  10377. { (ac_try="$ac_compiler -V >&5"
  10378. case "(($ac_try" in
  10379. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10380. *) ac_try_echo=$ac_try;;
  10381. esac
  10382. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10383. (eval "$ac_compiler -V >&5") 2>&5
  10384. ac_status=$?
  10385. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10386. (exit $ac_status); }
  10387. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  10388. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  10389. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  10390. echo $ECHO_N "(cached) $ECHO_C" >&6
  10391. else
  10392. cat >conftest.$ac_ext <<_ACEOF
  10393. /* confdefs.h. */
  10394. _ACEOF
  10395. cat confdefs.h >>conftest.$ac_ext
  10396. cat >>conftest.$ac_ext <<_ACEOF
  10397. /* end confdefs.h. */
  10398. int
  10399. main ()
  10400. {
  10401. #ifndef __GNUC__
  10402. choke me
  10403. #endif
  10404. ;
  10405. return 0;
  10406. }
  10407. _ACEOF
  10408. rm -f conftest.$ac_objext
  10409. if { (ac_try="$ac_compile"
  10410. case "(($ac_try" in
  10411. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10412. *) ac_try_echo=$ac_try;;
  10413. esac
  10414. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10415. (eval "$ac_compile") 2>conftest.er1
  10416. ac_status=$?
  10417. grep -v '^ *+' conftest.er1 >conftest.err
  10418. rm -f conftest.er1
  10419. cat conftest.err >&5
  10420. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10421. (exit $ac_status); } && {
  10422. test -z "$ac_cxx_werror_flag" ||
  10423. test ! -s conftest.err
  10424. } && test -s conftest.$ac_objext; then
  10425. ac_compiler_gnu=yes
  10426. else
  10427. echo "$as_me: failed program was:" >&5
  10428. sed 's/^/| /' conftest.$ac_ext >&5
  10429. ac_compiler_gnu=no
  10430. fi
  10431. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10432. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10433. fi
  10434. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  10435. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  10436. GXX=`test $ac_compiler_gnu = yes && echo yes`
  10437. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10438. ac_save_CXXFLAGS=$CXXFLAGS
  10439. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  10440. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  10441. if test "${ac_cv_prog_cxx_g+set}" = set; then
  10442. echo $ECHO_N "(cached) $ECHO_C" >&6
  10443. else
  10444. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10445. ac_cxx_werror_flag=yes
  10446. ac_cv_prog_cxx_g=no
  10447. CXXFLAGS="-g"
  10448. cat >conftest.$ac_ext <<_ACEOF
  10449. /* confdefs.h. */
  10450. _ACEOF
  10451. cat confdefs.h >>conftest.$ac_ext
  10452. cat >>conftest.$ac_ext <<_ACEOF
  10453. /* end confdefs.h. */
  10454. int
  10455. main ()
  10456. {
  10457. ;
  10458. return 0;
  10459. }
  10460. _ACEOF
  10461. rm -f conftest.$ac_objext
  10462. if { (ac_try="$ac_compile"
  10463. case "(($ac_try" in
  10464. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10465. *) ac_try_echo=$ac_try;;
  10466. esac
  10467. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10468. (eval "$ac_compile") 2>conftest.er1
  10469. ac_status=$?
  10470. grep -v '^ *+' conftest.er1 >conftest.err
  10471. rm -f conftest.er1
  10472. cat conftest.err >&5
  10473. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10474. (exit $ac_status); } && {
  10475. test -z "$ac_cxx_werror_flag" ||
  10476. test ! -s conftest.err
  10477. } && test -s conftest.$ac_objext; then
  10478. ac_cv_prog_cxx_g=yes
  10479. else
  10480. echo "$as_me: failed program was:" >&5
  10481. sed 's/^/| /' conftest.$ac_ext >&5
  10482. CXXFLAGS=""
  10483. cat >conftest.$ac_ext <<_ACEOF
  10484. /* confdefs.h. */
  10485. _ACEOF
  10486. cat confdefs.h >>conftest.$ac_ext
  10487. cat >>conftest.$ac_ext <<_ACEOF
  10488. /* end confdefs.h. */
  10489. int
  10490. main ()
  10491. {
  10492. ;
  10493. return 0;
  10494. }
  10495. _ACEOF
  10496. rm -f conftest.$ac_objext
  10497. if { (ac_try="$ac_compile"
  10498. case "(($ac_try" in
  10499. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10500. *) ac_try_echo=$ac_try;;
  10501. esac
  10502. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10503. (eval "$ac_compile") 2>conftest.er1
  10504. ac_status=$?
  10505. grep -v '^ *+' conftest.er1 >conftest.err
  10506. rm -f conftest.er1
  10507. cat conftest.err >&5
  10508. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10509. (exit $ac_status); } && {
  10510. test -z "$ac_cxx_werror_flag" ||
  10511. test ! -s conftest.err
  10512. } && test -s conftest.$ac_objext; then
  10513. :
  10514. else
  10515. echo "$as_me: failed program was:" >&5
  10516. sed 's/^/| /' conftest.$ac_ext >&5
  10517. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10518. CXXFLAGS="-g"
  10519. cat >conftest.$ac_ext <<_ACEOF
  10520. /* confdefs.h. */
  10521. _ACEOF
  10522. cat confdefs.h >>conftest.$ac_ext
  10523. cat >>conftest.$ac_ext <<_ACEOF
  10524. /* end confdefs.h. */
  10525. int
  10526. main ()
  10527. {
  10528. ;
  10529. return 0;
  10530. }
  10531. _ACEOF
  10532. rm -f conftest.$ac_objext
  10533. if { (ac_try="$ac_compile"
  10534. case "(($ac_try" in
  10535. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10536. *) ac_try_echo=$ac_try;;
  10537. esac
  10538. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10539. (eval "$ac_compile") 2>conftest.er1
  10540. ac_status=$?
  10541. grep -v '^ *+' conftest.er1 >conftest.err
  10542. rm -f conftest.er1
  10543. cat conftest.err >&5
  10544. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10545. (exit $ac_status); } && {
  10546. test -z "$ac_cxx_werror_flag" ||
  10547. test ! -s conftest.err
  10548. } && test -s conftest.$ac_objext; then
  10549. ac_cv_prog_cxx_g=yes
  10550. else
  10551. echo "$as_me: failed program was:" >&5
  10552. sed 's/^/| /' conftest.$ac_ext >&5
  10553. fi
  10554. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10555. fi
  10556. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10557. fi
  10558. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10559. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10560. fi
  10561. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  10562. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  10563. if test "$ac_test_CXXFLAGS" = set; then
  10564. CXXFLAGS=$ac_save_CXXFLAGS
  10565. elif test $ac_cv_prog_cxx_g = yes; then
  10566. if test "$GXX" = yes; then
  10567. CXXFLAGS="-g -O2"
  10568. else
  10569. CXXFLAGS="-g"
  10570. fi
  10571. else
  10572. if test "$GXX" = yes; then
  10573. CXXFLAGS="-O2"
  10574. else
  10575. CXXFLAGS=
  10576. fi
  10577. fi
  10578. ac_ext=c
  10579. ac_cpp='$CPP $CPPFLAGS'
  10580. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10581. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10582. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10583. depcc="$CXX" am_compiler_list=
  10584. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  10585. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  10586. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  10587. echo $ECHO_N "(cached) $ECHO_C" >&6
  10588. else
  10589. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  10590. # We make a subdir and do the tests there. Otherwise we can end up
  10591. # making bogus files that we don't know about and never remove. For
  10592. # instance it was reported that on HP-UX the gcc test will end up
  10593. # making a dummy file named `D' -- because `-MD' means `put the output
  10594. # in D'.
  10595. mkdir conftest.dir
  10596. # Copy depcomp to subdir because otherwise we won't find it if we're
  10597. # using a relative directory.
  10598. cp "$am_depcomp" conftest.dir
  10599. cd conftest.dir
  10600. # We will build objects and dependencies in a subdirectory because
  10601. # it helps to detect inapplicable dependency modes. For instance
  10602. # both Tru64's cc and ICC support -MD to output dependencies as a
  10603. # side effect of compilation, but ICC will put the dependencies in
  10604. # the current directory while Tru64 will put them in the object
  10605. # directory.
  10606. mkdir sub
  10607. am_cv_CXX_dependencies_compiler_type=none
  10608. if test "$am_compiler_list" = ""; then
  10609. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  10610. fi
  10611. for depmode in $am_compiler_list; do
  10612. # Setup a source with many dependencies, because some compilers
  10613. # like to wrap large dependency lists on column 80 (with \), and
  10614. # we should not choose a depcomp mode which is confused by this.
  10615. #
  10616. # We need to recreate these files for each test, as the compiler may
  10617. # overwrite some of them when testing with obscure command lines.
  10618. # This happens at least with the AIX C compiler.
  10619. : > sub/conftest.c
  10620. for i in 1 2 3 4 5 6; do
  10621. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  10622. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  10623. # Solaris 8's {/usr,}/bin/sh.
  10624. touch sub/conftst$i.h
  10625. done
  10626. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  10627. case $depmode in
  10628. nosideeffect)
  10629. # after this tag, mechanisms are not by side-effect, so they'll
  10630. # only be used when explicitly requested
  10631. if test "x$enable_dependency_tracking" = xyes; then
  10632. continue
  10633. else
  10634. break
  10635. fi
  10636. ;;
  10637. none) break ;;
  10638. esac
  10639. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  10640. # mode. It turns out that the SunPro C++ compiler does not properly
  10641. # handle `-M -o', and we need to detect this.
  10642. if depmode=$depmode \
  10643. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  10644. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  10645. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  10646. >/dev/null 2>conftest.err &&
  10647. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  10648. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  10649. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  10650. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  10651. # icc doesn't choke on unknown options, it will just issue warnings
  10652. # or remarks (even with -Werror). So we grep stderr for any message
  10653. # that says an option was ignored or not supported.
  10654. # When given -MP, icc 7.0 and 7.1 complain thusly:
  10655. # icc: Command line warning: ignoring option '-M'; no argument required
  10656. # The diagnosis changed in icc 8.0:
  10657. # icc: Command line remark: option '-MP' not supported
  10658. if (grep 'ignoring option' conftest.err ||
  10659. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  10660. am_cv_CXX_dependencies_compiler_type=$depmode
  10661. break
  10662. fi
  10663. fi
  10664. done
  10665. cd ..
  10666. rm -rf conftest.dir
  10667. else
  10668. am_cv_CXX_dependencies_compiler_type=none
  10669. fi
  10670. fi
  10671. { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  10672. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  10673. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  10674. if
  10675. test "x$enable_dependency_tracking" != xno \
  10676. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  10677. am__fastdepCXX_TRUE=
  10678. am__fastdepCXX_FALSE='#'
  10679. else
  10680. am__fastdepCXX_TRUE='#'
  10681. am__fastdepCXX_FALSE=
  10682. fi
  10683. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10684. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10685. (test "X$CXX" != "Xg++"))) ; then
  10686. ac_ext=cpp
  10687. ac_cpp='$CXXCPP $CPPFLAGS'
  10688. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10689. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10690. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10691. { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  10692. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  10693. if test -z "$CXXCPP"; then
  10694. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  10695. echo $ECHO_N "(cached) $ECHO_C" >&6
  10696. else
  10697. # Double quotes because CXXCPP needs to be expanded
  10698. for CXXCPP in "$CXX -E" "/lib/cpp"
  10699. do
  10700. ac_preproc_ok=false
  10701. for ac_cxx_preproc_warn_flag in '' yes
  10702. do
  10703. # Use a header file that comes with gcc, so configuring glibc
  10704. # with a fresh cross-compiler works.
  10705. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10706. # <limits.h> exists even on freestanding compilers.
  10707. # On the NeXT, cc -E runs the code through the compiler's parser,
  10708. # not just through cpp. "Syntax error" is here to catch this case.
  10709. cat >conftest.$ac_ext <<_ACEOF
  10710. /* confdefs.h. */
  10711. _ACEOF
  10712. cat confdefs.h >>conftest.$ac_ext
  10713. cat >>conftest.$ac_ext <<_ACEOF
  10714. /* end confdefs.h. */
  10715. #ifdef __STDC__
  10716. # include <limits.h>
  10717. #else
  10718. # include <assert.h>
  10719. #endif
  10720. Syntax error
  10721. _ACEOF
  10722. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10723. case "(($ac_try" in
  10724. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10725. *) ac_try_echo=$ac_try;;
  10726. esac
  10727. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10728. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10729. ac_status=$?
  10730. grep -v '^ *+' conftest.er1 >conftest.err
  10731. rm -f conftest.er1
  10732. cat conftest.err >&5
  10733. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10734. (exit $ac_status); } >/dev/null && {
  10735. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10736. test ! -s conftest.err
  10737. }; then
  10738. :
  10739. else
  10740. echo "$as_me: failed program was:" >&5
  10741. sed 's/^/| /' conftest.$ac_ext >&5
  10742. # Broken: fails on valid input.
  10743. continue
  10744. fi
  10745. rm -f conftest.err conftest.$ac_ext
  10746. # OK, works on sane cases. Now check whether nonexistent headers
  10747. # can be detected and how.
  10748. cat >conftest.$ac_ext <<_ACEOF
  10749. /* confdefs.h. */
  10750. _ACEOF
  10751. cat confdefs.h >>conftest.$ac_ext
  10752. cat >>conftest.$ac_ext <<_ACEOF
  10753. /* end confdefs.h. */
  10754. #include <ac_nonexistent.h>
  10755. _ACEOF
  10756. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10757. case "(($ac_try" in
  10758. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10759. *) ac_try_echo=$ac_try;;
  10760. esac
  10761. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10762. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10763. ac_status=$?
  10764. grep -v '^ *+' conftest.er1 >conftest.err
  10765. rm -f conftest.er1
  10766. cat conftest.err >&5
  10767. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10768. (exit $ac_status); } >/dev/null && {
  10769. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10770. test ! -s conftest.err
  10771. }; then
  10772. # Broken: success on invalid input.
  10773. continue
  10774. else
  10775. echo "$as_me: failed program was:" >&5
  10776. sed 's/^/| /' conftest.$ac_ext >&5
  10777. # Passes both tests.
  10778. ac_preproc_ok=:
  10779. break
  10780. fi
  10781. rm -f conftest.err conftest.$ac_ext
  10782. done
  10783. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10784. rm -f conftest.err conftest.$ac_ext
  10785. if $ac_preproc_ok; then
  10786. break
  10787. fi
  10788. done
  10789. ac_cv_prog_CXXCPP=$CXXCPP
  10790. fi
  10791. CXXCPP=$ac_cv_prog_CXXCPP
  10792. else
  10793. ac_cv_prog_CXXCPP=$CXXCPP
  10794. fi
  10795. { echo "$as_me:$LINENO: result: $CXXCPP" >&5
  10796. echo "${ECHO_T}$CXXCPP" >&6; }
  10797. ac_preproc_ok=false
  10798. for ac_cxx_preproc_warn_flag in '' yes
  10799. do
  10800. # Use a header file that comes with gcc, so configuring glibc
  10801. # with a fresh cross-compiler works.
  10802. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10803. # <limits.h> exists even on freestanding compilers.
  10804. # On the NeXT, cc -E runs the code through the compiler's parser,
  10805. # not just through cpp. "Syntax error" is here to catch this case.
  10806. cat >conftest.$ac_ext <<_ACEOF
  10807. /* confdefs.h. */
  10808. _ACEOF
  10809. cat confdefs.h >>conftest.$ac_ext
  10810. cat >>conftest.$ac_ext <<_ACEOF
  10811. /* end confdefs.h. */
  10812. #ifdef __STDC__
  10813. # include <limits.h>
  10814. #else
  10815. # include <assert.h>
  10816. #endif
  10817. Syntax error
  10818. _ACEOF
  10819. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10820. case "(($ac_try" in
  10821. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10822. *) ac_try_echo=$ac_try;;
  10823. esac
  10824. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10825. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10826. ac_status=$?
  10827. grep -v '^ *+' conftest.er1 >conftest.err
  10828. rm -f conftest.er1
  10829. cat conftest.err >&5
  10830. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10831. (exit $ac_status); } >/dev/null && {
  10832. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10833. test ! -s conftest.err
  10834. }; then
  10835. :
  10836. else
  10837. echo "$as_me: failed program was:" >&5
  10838. sed 's/^/| /' conftest.$ac_ext >&5
  10839. # Broken: fails on valid input.
  10840. continue
  10841. fi
  10842. rm -f conftest.err conftest.$ac_ext
  10843. # OK, works on sane cases. Now check whether nonexistent headers
  10844. # can be detected and how.
  10845. cat >conftest.$ac_ext <<_ACEOF
  10846. /* confdefs.h. */
  10847. _ACEOF
  10848. cat confdefs.h >>conftest.$ac_ext
  10849. cat >>conftest.$ac_ext <<_ACEOF
  10850. /* end confdefs.h. */
  10851. #include <ac_nonexistent.h>
  10852. _ACEOF
  10853. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10854. case "(($ac_try" in
  10855. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10856. *) ac_try_echo=$ac_try;;
  10857. esac
  10858. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10859. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10860. ac_status=$?
  10861. grep -v '^ *+' conftest.er1 >conftest.err
  10862. rm -f conftest.er1
  10863. cat conftest.err >&5
  10864. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10865. (exit $ac_status); } >/dev/null && {
  10866. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10867. test ! -s conftest.err
  10868. }; then
  10869. # Broken: success on invalid input.
  10870. continue
  10871. else
  10872. echo "$as_me: failed program was:" >&5
  10873. sed 's/^/| /' conftest.$ac_ext >&5
  10874. # Passes both tests.
  10875. ac_preproc_ok=:
  10876. break
  10877. fi
  10878. rm -f conftest.err conftest.$ac_ext
  10879. done
  10880. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10881. rm -f conftest.err conftest.$ac_ext
  10882. if $ac_preproc_ok; then
  10883. :
  10884. else
  10885. _lt_caught_CXX_error=yes
  10886. fi
  10887. ac_ext=c
  10888. ac_cpp='$CPP $CPPFLAGS'
  10889. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10890. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10891. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10892. else
  10893. _lt_caught_CXX_error=yes
  10894. fi
  10895. ac_ext=cpp
  10896. ac_cpp='$CXXCPP $CPPFLAGS'
  10897. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10898. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10899. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10900. archive_cmds_need_lc_CXX=no
  10901. allow_undefined_flag_CXX=
  10902. always_export_symbols_CXX=no
  10903. archive_expsym_cmds_CXX=
  10904. compiler_needs_object_CXX=no
  10905. export_dynamic_flag_spec_CXX=
  10906. hardcode_direct_CXX=no
  10907. hardcode_direct_absolute_CXX=no
  10908. hardcode_libdir_flag_spec_CXX=
  10909. hardcode_libdir_flag_spec_ld_CXX=
  10910. hardcode_libdir_separator_CXX=
  10911. hardcode_minus_L_CXX=no
  10912. hardcode_shlibpath_var_CXX=unsupported
  10913. hardcode_automatic_CXX=no
  10914. inherit_rpath_CXX=no
  10915. module_cmds_CXX=
  10916. module_expsym_cmds_CXX=
  10917. link_all_deplibs_CXX=unknown
  10918. old_archive_cmds_CXX=$old_archive_cmds
  10919. no_undefined_flag_CXX=
  10920. whole_archive_flag_spec_CXX=
  10921. enable_shared_with_static_runtimes_CXX=no
  10922. # Source file extension for C++ test sources.
  10923. ac_ext=cpp
  10924. # Object file extension for compiled C++ test sources.
  10925. objext=o
  10926. objext_CXX=$objext
  10927. # No sense in running all these tests if we already determined that
  10928. # the CXX compiler isn't working. Some variables (like enable_shared)
  10929. # are currently assumed to apply to all compilers on this platform,
  10930. # and will be corrupted by setting them based on a non-working compiler.
  10931. if test "$_lt_caught_CXX_error" != yes; then
  10932. # Code to be used in simple compile tests
  10933. lt_simple_compile_test_code="int some_variable = 0;"
  10934. # Code to be used in simple link tests
  10935. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10936. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10937. # If no C compiler was specified, use CC.
  10938. LTCC=${LTCC-"$CC"}
  10939. # If no C compiler flags were specified, use CFLAGS.
  10940. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10941. # Allow CC to be a program name with arguments.
  10942. compiler=$CC
  10943. # save warnings/boilerplate of simple test code
  10944. ac_outfile=conftest.$ac_objext
  10945. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10946. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10947. _lt_compiler_boilerplate=`cat conftest.err`
  10948. $RM conftest*
  10949. ac_outfile=conftest.$ac_objext
  10950. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10951. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10952. _lt_linker_boilerplate=`cat conftest.err`
  10953. $RM -r conftest*
  10954. # Allow CC to be a program name with arguments.
  10955. lt_save_CC=$CC
  10956. lt_save_LD=$LD
  10957. lt_save_GCC=$GCC
  10958. GCC=$GXX
  10959. lt_save_with_gnu_ld=$with_gnu_ld
  10960. lt_save_path_LD=$lt_cv_path_LD
  10961. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10962. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10963. else
  10964. $as_unset lt_cv_prog_gnu_ld
  10965. fi
  10966. if test -n "${lt_cv_path_LDCXX+set}"; then
  10967. lt_cv_path_LD=$lt_cv_path_LDCXX
  10968. else
  10969. $as_unset lt_cv_path_LD
  10970. fi
  10971. test -z "${LDCXX+set}" || LD=$LDCXX
  10972. CC=${CXX-"c++"}
  10973. compiler=$CC
  10974. compiler_CXX=$CC
  10975. for cc_temp in $compiler""; do
  10976. case $cc_temp in
  10977. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10978. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10979. \-*) ;;
  10980. *) break;;
  10981. esac
  10982. done
  10983. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  10984. if test -n "$compiler"; then
  10985. # We don't want -fno-exception when compiling C++ code, so set the
  10986. # no_builtin_flag separately
  10987. if test "$GXX" = yes; then
  10988. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10989. else
  10990. lt_prog_compiler_no_builtin_flag_CXX=
  10991. fi
  10992. if test "$GXX" = yes; then
  10993. # Set up default GNU C++ configuration
  10994. # Check whether --with-gnu-ld was given.
  10995. if test "${with_gnu_ld+set}" = set; then
  10996. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10997. else
  10998. with_gnu_ld=no
  10999. fi
  11000. ac_prog=ld
  11001. if test "$GCC" = yes; then
  11002. # Check if gcc -print-prog-name=ld gives a path.
  11003. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  11004. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  11005. case $host in
  11006. *-*-mingw*)
  11007. # gcc leaves a trailing carriage return which upsets mingw
  11008. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11009. *)
  11010. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11011. esac
  11012. case $ac_prog in
  11013. # Accept absolute paths.
  11014. [\\/]* | ?:[\\/]*)
  11015. re_direlt='/[^/][^/]*/\.\./'
  11016. # Canonicalize the pathname of ld
  11017. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11018. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11019. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11020. done
  11021. test -z "$LD" && LD="$ac_prog"
  11022. ;;
  11023. "")
  11024. # If it fails, then pretend we aren't using GCC.
  11025. ac_prog=ld
  11026. ;;
  11027. *)
  11028. # If it is relative, then search for the first ld in PATH.
  11029. with_gnu_ld=unknown
  11030. ;;
  11031. esac
  11032. elif test "$with_gnu_ld" = yes; then
  11033. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  11034. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  11035. else
  11036. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  11037. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  11038. fi
  11039. if test "${lt_cv_path_LD+set}" = set; then
  11040. echo $ECHO_N "(cached) $ECHO_C" >&6
  11041. else
  11042. if test -z "$LD"; then
  11043. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  11044. for ac_dir in $PATH; do
  11045. IFS="$lt_save_ifs"
  11046. test -z "$ac_dir" && ac_dir=.
  11047. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11048. lt_cv_path_LD="$ac_dir/$ac_prog"
  11049. # Check to see if the program is GNU ld. I'd rather use --version,
  11050. # but apparently some variants of GNU ld only accept -v.
  11051. # Break only if it was the GNU/non-GNU ld that we prefer.
  11052. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11053. *GNU* | *'with BFD'*)
  11054. test "$with_gnu_ld" != no && break
  11055. ;;
  11056. *)
  11057. test "$with_gnu_ld" != yes && break
  11058. ;;
  11059. esac
  11060. fi
  11061. done
  11062. IFS="$lt_save_ifs"
  11063. else
  11064. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  11065. fi
  11066. fi
  11067. LD="$lt_cv_path_LD"
  11068. if test -n "$LD"; then
  11069. { echo "$as_me:$LINENO: result: $LD" >&5
  11070. echo "${ECHO_T}$LD" >&6; }
  11071. else
  11072. { echo "$as_me:$LINENO: result: no" >&5
  11073. echo "${ECHO_T}no" >&6; }
  11074. fi
  11075. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  11076. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  11077. { (exit 1); exit 1; }; }
  11078. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  11079. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  11080. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  11081. echo $ECHO_N "(cached) $ECHO_C" >&6
  11082. else
  11083. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11084. case `$LD -v 2>&1 </dev/null` in
  11085. *GNU* | *'with BFD'*)
  11086. lt_cv_prog_gnu_ld=yes
  11087. ;;
  11088. *)
  11089. lt_cv_prog_gnu_ld=no
  11090. ;;
  11091. esac
  11092. fi
  11093. { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  11094. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  11095. with_gnu_ld=$lt_cv_prog_gnu_ld
  11096. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11097. # archiving commands below assume that GNU ld is being used.
  11098. if test "$with_gnu_ld" = yes; then
  11099. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11100. archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11101. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11102. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11103. # If archive_cmds runs LD, not CC, wlarc should be empty
  11104. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11105. # investigate it a little bit more. (MM)
  11106. wlarc='${wl}'
  11107. # ancient GNU ld didn't support --whole-archive et. al.
  11108. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11109. $GREP 'no-whole-archive' > /dev/null; then
  11110. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11111. else
  11112. whole_archive_flag_spec_CXX=
  11113. fi
  11114. else
  11115. with_gnu_ld=no
  11116. wlarc=
  11117. # A generic and very simple default shared library creation
  11118. # command for GNU C++ for the case where it uses the native
  11119. # linker, instead of GNU ld. If possible, this setting should
  11120. # overridden to take advantage of the native linker features on
  11121. # the platform it is being used on.
  11122. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11123. fi
  11124. # Commands to make compiler produce verbose output that lists
  11125. # what "hidden" libraries, object files and flags are used when
  11126. # linking a shared library.
  11127. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  11128. else
  11129. GXX=no
  11130. with_gnu_ld=no
  11131. wlarc=
  11132. fi
  11133. # PORTME: fill in a description of your system's C++ link characteristics
  11134. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11135. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  11136. ld_shlibs_CXX=yes
  11137. case $host_os in
  11138. aix3*)
  11139. # FIXME: insert proper C++ library support
  11140. ld_shlibs_CXX=no
  11141. ;;
  11142. aix[4-9]*)
  11143. if test "$host_cpu" = ia64; then
  11144. # On IA64, the linker does run time linking by default, so we don't
  11145. # have to do anything special.
  11146. aix_use_runtimelinking=no
  11147. exp_sym_flag='-Bexport'
  11148. no_entry_flag=""
  11149. else
  11150. aix_use_runtimelinking=no
  11151. # Test if we are trying to use run time linking or normal
  11152. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11153. # need to do runtime linking.
  11154. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11155. for ld_flag in $LDFLAGS; do
  11156. case $ld_flag in
  11157. *-brtl*)
  11158. aix_use_runtimelinking=yes
  11159. break
  11160. ;;
  11161. esac
  11162. done
  11163. ;;
  11164. esac
  11165. exp_sym_flag='-bexport'
  11166. no_entry_flag='-bnoentry'
  11167. fi
  11168. # When large executables or shared objects are built, AIX ld can
  11169. # have problems creating the table of contents. If linking a library
  11170. # or program results in "error TOC overflow" add -mminimal-toc to
  11171. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11172. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11173. archive_cmds_CXX=''
  11174. hardcode_direct_CXX=yes
  11175. hardcode_direct_absolute_CXX=yes
  11176. hardcode_libdir_separator_CXX=':'
  11177. link_all_deplibs_CXX=yes
  11178. file_list_spec_CXX='${wl}-f,'
  11179. if test "$GXX" = yes; then
  11180. case $host_os in aix4.[012]|aix4.[012].*)
  11181. # We only want to do this on AIX 4.2 and lower, the check
  11182. # below for broken collect2 doesn't work under 4.3+
  11183. collect2name=`${CC} -print-prog-name=collect2`
  11184. if test -f "$collect2name" &&
  11185. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11186. then
  11187. # We have reworked collect2
  11188. :
  11189. else
  11190. # We have old collect2
  11191. hardcode_direct_CXX=unsupported
  11192. # It fails to find uninstalled libraries when the uninstalled
  11193. # path is not listed in the libpath. Setting hardcode_minus_L
  11194. # to unsupported forces relinking
  11195. hardcode_minus_L_CXX=yes
  11196. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11197. hardcode_libdir_separator_CXX=
  11198. fi
  11199. esac
  11200. shared_flag='-shared'
  11201. if test "$aix_use_runtimelinking" = yes; then
  11202. shared_flag="$shared_flag "'${wl}-G'
  11203. fi
  11204. else
  11205. # not using gcc
  11206. if test "$host_cpu" = ia64; then
  11207. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11208. # chokes on -Wl,-G. The following line is correct:
  11209. shared_flag='-G'
  11210. else
  11211. if test "$aix_use_runtimelinking" = yes; then
  11212. shared_flag='${wl}-G'
  11213. else
  11214. shared_flag='${wl}-bM:SRE'
  11215. fi
  11216. fi
  11217. fi
  11218. # It seems that -bexpall does not export symbols beginning with
  11219. # underscore (_), so it is better to generate a list of symbols to
  11220. # export.
  11221. always_export_symbols_CXX=yes
  11222. if test "$aix_use_runtimelinking" = yes; then
  11223. # Warning - without using the other runtime loading flags (-brtl),
  11224. # -berok will link without error, but may produce a broken library.
  11225. allow_undefined_flag_CXX='-berok'
  11226. # Determine the default libpath from the value encoded in an empty
  11227. # executable.
  11228. cat >conftest.$ac_ext <<_ACEOF
  11229. /* confdefs.h. */
  11230. _ACEOF
  11231. cat confdefs.h >>conftest.$ac_ext
  11232. cat >>conftest.$ac_ext <<_ACEOF
  11233. /* end confdefs.h. */
  11234. int
  11235. main ()
  11236. {
  11237. ;
  11238. return 0;
  11239. }
  11240. _ACEOF
  11241. rm -f conftest.$ac_objext conftest$ac_exeext
  11242. if { (ac_try="$ac_link"
  11243. case "(($ac_try" in
  11244. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11245. *) ac_try_echo=$ac_try;;
  11246. esac
  11247. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11248. (eval "$ac_link") 2>conftest.er1
  11249. ac_status=$?
  11250. grep -v '^ *+' conftest.er1 >conftest.err
  11251. rm -f conftest.er1
  11252. cat conftest.err >&5
  11253. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11254. (exit $ac_status); } && {
  11255. test -z "$ac_cxx_werror_flag" ||
  11256. test ! -s conftest.err
  11257. } && test -s conftest$ac_exeext &&
  11258. $as_test_x conftest$ac_exeext; then
  11259. lt_aix_libpath_sed='
  11260. /Import File Strings/,/^$/ {
  11261. /^0/ {
  11262. s/^0 *\(.*\)$/\1/
  11263. p
  11264. }
  11265. }'
  11266. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11267. # Check for a 64-bit object if we didn't find anything.
  11268. if test -z "$aix_libpath"; then
  11269. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11270. fi
  11271. else
  11272. echo "$as_me: failed program was:" >&5
  11273. sed 's/^/| /' conftest.$ac_ext >&5
  11274. fi
  11275. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11276. conftest$ac_exeext conftest.$ac_ext
  11277. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  11278. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11279. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  11280. else
  11281. if test "$host_cpu" = ia64; then
  11282. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11283. allow_undefined_flag_CXX="-z nodefs"
  11284. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  11285. else
  11286. # Determine the default libpath from the value encoded in an
  11287. # empty executable.
  11288. cat >conftest.$ac_ext <<_ACEOF
  11289. /* confdefs.h. */
  11290. _ACEOF
  11291. cat confdefs.h >>conftest.$ac_ext
  11292. cat >>conftest.$ac_ext <<_ACEOF
  11293. /* end confdefs.h. */
  11294. int
  11295. main ()
  11296. {
  11297. ;
  11298. return 0;
  11299. }
  11300. _ACEOF
  11301. rm -f conftest.$ac_objext conftest$ac_exeext
  11302. if { (ac_try="$ac_link"
  11303. case "(($ac_try" in
  11304. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11305. *) ac_try_echo=$ac_try;;
  11306. esac
  11307. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11308. (eval "$ac_link") 2>conftest.er1
  11309. ac_status=$?
  11310. grep -v '^ *+' conftest.er1 >conftest.err
  11311. rm -f conftest.er1
  11312. cat conftest.err >&5
  11313. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11314. (exit $ac_status); } && {
  11315. test -z "$ac_cxx_werror_flag" ||
  11316. test ! -s conftest.err
  11317. } && test -s conftest$ac_exeext &&
  11318. $as_test_x conftest$ac_exeext; then
  11319. lt_aix_libpath_sed='
  11320. /Import File Strings/,/^$/ {
  11321. /^0/ {
  11322. s/^0 *\(.*\)$/\1/
  11323. p
  11324. }
  11325. }'
  11326. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11327. # Check for a 64-bit object if we didn't find anything.
  11328. if test -z "$aix_libpath"; then
  11329. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11330. fi
  11331. else
  11332. echo "$as_me: failed program was:" >&5
  11333. sed 's/^/| /' conftest.$ac_ext >&5
  11334. fi
  11335. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11336. conftest$ac_exeext conftest.$ac_ext
  11337. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  11338. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11339. # Warning - without using the other run time loading flags,
  11340. # -berok will link without error, but may produce a broken library.
  11341. no_undefined_flag_CXX=' ${wl}-bernotok'
  11342. allow_undefined_flag_CXX=' ${wl}-berok'
  11343. # Exported symbols can be pulled into shared objects from archives
  11344. whole_archive_flag_spec_CXX='$convenience'
  11345. archive_cmds_need_lc_CXX=yes
  11346. # This is similar to how AIX traditionally builds its shared
  11347. # libraries.
  11348. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  11349. fi
  11350. fi
  11351. ;;
  11352. beos*)
  11353. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11354. allow_undefined_flag_CXX=unsupported
  11355. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11356. # support --undefined. This deserves some investigation. FIXME
  11357. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11358. else
  11359. ld_shlibs_CXX=no
  11360. fi
  11361. ;;
  11362. chorus*)
  11363. case $cc_basename in
  11364. *)
  11365. # FIXME: insert proper C++ library support
  11366. ld_shlibs_CXX=no
  11367. ;;
  11368. esac
  11369. ;;
  11370. cygwin* | mingw* | pw32*)
  11371. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11372. # as there is no search path for DLLs.
  11373. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11374. allow_undefined_flag_CXX=unsupported
  11375. always_export_symbols_CXX=no
  11376. enable_shared_with_static_runtimes_CXX=yes
  11377. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11378. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11379. # If the export-symbols file already is a .def file (1st line
  11380. # is EXPORTS), use it as is; otherwise, prepend...
  11381. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11382. cp $export_symbols $output_objdir/$soname.def;
  11383. else
  11384. echo EXPORTS > $output_objdir/$soname.def;
  11385. cat $export_symbols >> $output_objdir/$soname.def;
  11386. fi~
  11387. $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11388. else
  11389. ld_shlibs_CXX=no
  11390. fi
  11391. ;;
  11392. darwin* | rhapsody*)
  11393. archive_cmds_need_lc_CXX=no
  11394. hardcode_direct_CXX=no
  11395. hardcode_automatic_CXX=yes
  11396. hardcode_shlibpath_var_CXX=unsupported
  11397. whole_archive_flag_spec_CXX=''
  11398. link_all_deplibs_CXX=yes
  11399. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11400. if test "$GCC" = "yes"; then
  11401. output_verbose_link_cmd=echo
  11402. archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  11403. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11404. archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  11405. module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  11406. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11407. archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
  11408. archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
  11409. fi
  11410. else
  11411. ld_shlibs_CXX=no
  11412. fi
  11413. ;;
  11414. dgux*)
  11415. case $cc_basename in
  11416. ec++*)
  11417. # FIXME: insert proper C++ library support
  11418. ld_shlibs_CXX=no
  11419. ;;
  11420. ghcx*)
  11421. # Green Hills C++ Compiler
  11422. # FIXME: insert proper C++ library support
  11423. ld_shlibs_CXX=no
  11424. ;;
  11425. *)
  11426. # FIXME: insert proper C++ library support
  11427. ld_shlibs_CXX=no
  11428. ;;
  11429. esac
  11430. ;;
  11431. freebsd[12]*)
  11432. # C++ shared libraries reported to be fairly broken before
  11433. # switch to ELF
  11434. ld_shlibs_CXX=no
  11435. ;;
  11436. freebsd-elf*)
  11437. archive_cmds_need_lc_CXX=no
  11438. ;;
  11439. freebsd* | dragonfly*)
  11440. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11441. # conventions
  11442. ld_shlibs_CXX=yes
  11443. ;;
  11444. gnu*)
  11445. ;;
  11446. hpux9*)
  11447. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11448. hardcode_libdir_separator_CXX=:
  11449. export_dynamic_flag_spec_CXX='${wl}-E'
  11450. hardcode_direct_CXX=yes
  11451. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11452. # but as the default
  11453. # location of the library.
  11454. case $cc_basename in
  11455. CC*)
  11456. # FIXME: insert proper C++ library support
  11457. ld_shlibs_CXX=no
  11458. ;;
  11459. aCC*)
  11460. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  11461. # Commands to make compiler produce verbose output that lists
  11462. # what "hidden" libraries, object files and flags are used when
  11463. # linking a shared library.
  11464. #
  11465. # There doesn't appear to be a way to prevent this compiler from
  11466. # explicitly linking system object files so we need to strip them
  11467. # from the output so that they don't get included in the library
  11468. # dependencies.
  11469. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  11470. ;;
  11471. *)
  11472. if test "$GXX" = yes; then
  11473. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  11474. else
  11475. # FIXME: insert proper C++ library support
  11476. ld_shlibs_CXX=no
  11477. fi
  11478. ;;
  11479. esac
  11480. ;;
  11481. hpux10*|hpux11*)
  11482. if test $with_gnu_ld = no; then
  11483. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11484. hardcode_libdir_separator_CXX=:
  11485. case $host_cpu in
  11486. hppa*64*|ia64*)
  11487. ;;
  11488. *)
  11489. export_dynamic_flag_spec_CXX='${wl}-E'
  11490. ;;
  11491. esac
  11492. fi
  11493. case $host_cpu in
  11494. hppa*64*|ia64*)
  11495. hardcode_direct_CXX=no
  11496. hardcode_shlibpath_var_CXX=no
  11497. ;;
  11498. *)
  11499. hardcode_direct_CXX=yes
  11500. hardcode_direct_absolute_CXX=yes
  11501. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11502. # but as the default
  11503. # location of the library.
  11504. ;;
  11505. esac
  11506. case $cc_basename in
  11507. CC*)
  11508. # FIXME: insert proper C++ library support
  11509. ld_shlibs_CXX=no
  11510. ;;
  11511. aCC*)
  11512. case $host_cpu in
  11513. hppa*64*)
  11514. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11515. ;;
  11516. ia64*)
  11517. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11518. ;;
  11519. *)
  11520. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11521. ;;
  11522. esac
  11523. # Commands to make compiler produce verbose output that lists
  11524. # what "hidden" libraries, object files and flags are used when
  11525. # linking a shared library.
  11526. #
  11527. # There doesn't appear to be a way to prevent this compiler from
  11528. # explicitly linking system object files so we need to strip them
  11529. # from the output so that they don't get included in the library
  11530. # dependencies.
  11531. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  11532. ;;
  11533. *)
  11534. if test "$GXX" = yes; then
  11535. if test $with_gnu_ld = no; then
  11536. case $host_cpu in
  11537. hppa*64*)
  11538. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11539. ;;
  11540. ia64*)
  11541. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11542. ;;
  11543. *)
  11544. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11545. ;;
  11546. esac
  11547. fi
  11548. else
  11549. # FIXME: insert proper C++ library support
  11550. ld_shlibs_CXX=no
  11551. fi
  11552. ;;
  11553. esac
  11554. ;;
  11555. interix[3-9]*)
  11556. hardcode_direct_CXX=no
  11557. hardcode_shlibpath_var_CXX=no
  11558. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11559. export_dynamic_flag_spec_CXX='${wl}-E'
  11560. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11561. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11562. # default) and relocated if they conflict, which is a slow very memory
  11563. # consuming and fragmenting process. To avoid this, we pick a random,
  11564. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11565. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11566. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  11567. archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  11568. ;;
  11569. irix5* | irix6*)
  11570. case $cc_basename in
  11571. CC*)
  11572. # SGI C++
  11573. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  11574. # Archives containing C++ object files must be created using
  11575. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11576. # necessary to make sure instantiated templates are included
  11577. # in the archive.
  11578. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11579. ;;
  11580. *)
  11581. if test "$GXX" = yes; then
  11582. if test "$with_gnu_ld" = no; then
  11583. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11584. else
  11585. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
  11586. fi
  11587. fi
  11588. link_all_deplibs_CXX=yes
  11589. ;;
  11590. esac
  11591. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11592. hardcode_libdir_separator_CXX=:
  11593. inherit_rpath_CXX=yes
  11594. ;;
  11595. linux* | k*bsd*-gnu)
  11596. case $cc_basename in
  11597. KCC*)
  11598. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11599. # KCC will only create a shared library if the output file
  11600. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11601. # to its proper name (with version) after linking.
  11602. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  11603. archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  11604. # Commands to make compiler produce verbose output that lists
  11605. # what "hidden" libraries, object files and flags are used when
  11606. # linking a shared library.
  11607. #
  11608. # There doesn't appear to be a way to prevent this compiler from
  11609. # explicitly linking system object files so we need to strip them
  11610. # from the output so that they don't get included in the library
  11611. # dependencies.
  11612. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  11613. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11614. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11615. # Archives containing C++ object files must be created using
  11616. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11617. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11618. ;;
  11619. icpc* | ecpc* )
  11620. # Intel C++
  11621. with_gnu_ld=yes
  11622. # version 8.0 and above of icpc choke on multiply defined symbols
  11623. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11624. # earlier do not add the objects themselves.
  11625. case `$CC -V 2>&1` in
  11626. *"Version 7."*)
  11627. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11628. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11629. ;;
  11630. *) # Version 8.0 or newer
  11631. tmp_idyn=
  11632. case $host_cpu in
  11633. ia64*) tmp_idyn=' -i_dynamic';;
  11634. esac
  11635. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11636. archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11637. ;;
  11638. esac
  11639. archive_cmds_need_lc_CXX=no
  11640. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11641. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11642. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11643. ;;
  11644. pgCC* | pgcpp*)
  11645. # Portland Group C++ compiler
  11646. case `$CC -V` in
  11647. *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
  11648. prelink_cmds_CXX='tpldir=Template.dir~
  11649. rm -rf $tpldir~
  11650. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11651. compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  11652. old_archive_cmds_CXX='tpldir=Template.dir~
  11653. rm -rf $tpldir~
  11654. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11655. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  11656. $RANLIB $oldlib'
  11657. archive_cmds_CXX='tpldir=Template.dir~
  11658. rm -rf $tpldir~
  11659. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11660. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11661. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11662. rm -rf $tpldir~
  11663. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11664. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  11665. ;;
  11666. *) # Version 6 will use weak symbols
  11667. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11668. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  11669. ;;
  11670. esac
  11671. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11672. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11673. whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  11674. ;;
  11675. cxx*)
  11676. # Compaq C++
  11677. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11678. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  11679. runpath_var=LD_RUN_PATH
  11680. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11681. hardcode_libdir_separator_CXX=:
  11682. # Commands to make compiler produce verbose output that lists
  11683. # what "hidden" libraries, object files and flags are used when
  11684. # linking a shared library.
  11685. #
  11686. # There doesn't appear to be a way to prevent this compiler from
  11687. # explicitly linking system object files so we need to strip them
  11688. # from the output so that they don't get included in the library
  11689. # dependencies.
  11690. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  11691. ;;
  11692. xl*)
  11693. # IBM XL 8.0 on PPC, with GNU ld
  11694. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11695. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11696. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11697. if test "x$supports_anon_versioning" = xyes; then
  11698. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11699. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11700. echo "local: *; };" >> $output_objdir/$libname.ver~
  11701. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11702. fi
  11703. ;;
  11704. *)
  11705. case `$CC -V 2>&1 | sed 5q` in
  11706. *Sun\ C*)
  11707. # Sun C++ 5.9
  11708. no_undefined_flag_CXX=' -zdefs'
  11709. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11710. archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  11711. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11712. whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  11713. compiler_needs_object_CXX=yes
  11714. # Not sure whether something based on
  11715. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11716. # would be better.
  11717. output_verbose_link_cmd='echo'
  11718. # Archives containing C++ object files must be created using
  11719. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11720. # necessary to make sure instantiated templates are included
  11721. # in the archive.
  11722. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11723. ;;
  11724. esac
  11725. ;;
  11726. esac
  11727. ;;
  11728. lynxos*)
  11729. # FIXME: insert proper C++ library support
  11730. ld_shlibs_CXX=no
  11731. ;;
  11732. m88k*)
  11733. # FIXME: insert proper C++ library support
  11734. ld_shlibs_CXX=no
  11735. ;;
  11736. mvs*)
  11737. case $cc_basename in
  11738. cxx*)
  11739. # FIXME: insert proper C++ library support
  11740. ld_shlibs_CXX=no
  11741. ;;
  11742. *)
  11743. # FIXME: insert proper C++ library support
  11744. ld_shlibs_CXX=no
  11745. ;;
  11746. esac
  11747. ;;
  11748. netbsd*)
  11749. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11750. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11751. wlarc=
  11752. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11753. hardcode_direct_CXX=yes
  11754. hardcode_shlibpath_var_CXX=no
  11755. fi
  11756. # Workaround some broken pre-1.5 toolchains
  11757. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11758. ;;
  11759. *nto* | *qnx*)
  11760. ld_shlibs_CXX=yes
  11761. ;;
  11762. openbsd2*)
  11763. # C++ shared libraries are fairly broken
  11764. ld_shlibs_CXX=no
  11765. ;;
  11766. openbsd*)
  11767. if test -f /usr/libexec/ld.so; then
  11768. hardcode_direct_CXX=yes
  11769. hardcode_shlibpath_var_CXX=no
  11770. hardcode_direct_absolute_CXX=yes
  11771. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11772. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11773. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11774. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11775. export_dynamic_flag_spec_CXX='${wl}-E'
  11776. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11777. fi
  11778. output_verbose_link_cmd=echo
  11779. else
  11780. ld_shlibs_CXX=no
  11781. fi
  11782. ;;
  11783. osf3* | osf4* | osf5*)
  11784. case $cc_basename in
  11785. KCC*)
  11786. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11787. # KCC will only create a shared library if the output file
  11788. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11789. # to its proper name (with version) after linking.
  11790. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  11791. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11792. hardcode_libdir_separator_CXX=:
  11793. # Archives containing C++ object files must be created using
  11794. # the KAI C++ compiler.
  11795. case $host in
  11796. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11797. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11798. esac
  11799. ;;
  11800. RCC*)
  11801. # Rational C++ 2.4.1
  11802. # FIXME: insert proper C++ library support
  11803. ld_shlibs_CXX=no
  11804. ;;
  11805. cxx*)
  11806. case $host in
  11807. osf3*)
  11808. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11809. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  11810. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11811. ;;
  11812. *)
  11813. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11814. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  11815. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11816. echo "-hidden">> $lib.exp~
  11817. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
  11818. $RM $lib.exp'
  11819. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11820. ;;
  11821. esac
  11822. hardcode_libdir_separator_CXX=:
  11823. # Commands to make compiler produce verbose output that lists
  11824. # what "hidden" libraries, object files and flags are used when
  11825. # linking a shared library.
  11826. #
  11827. # There doesn't appear to be a way to prevent this compiler from
  11828. # explicitly linking system object files so we need to strip them
  11829. # from the output so that they don't get included in the library
  11830. # dependencies.
  11831. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  11832. ;;
  11833. *)
  11834. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11835. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11836. case $host in
  11837. osf3*)
  11838. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11839. ;;
  11840. *)
  11841. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11842. ;;
  11843. esac
  11844. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11845. hardcode_libdir_separator_CXX=:
  11846. # Commands to make compiler produce verbose output that lists
  11847. # what "hidden" libraries, object files and flags are used when
  11848. # linking a shared library.
  11849. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  11850. else
  11851. # FIXME: insert proper C++ library support
  11852. ld_shlibs_CXX=no
  11853. fi
  11854. ;;
  11855. esac
  11856. ;;
  11857. psos*)
  11858. # FIXME: insert proper C++ library support
  11859. ld_shlibs_CXX=no
  11860. ;;
  11861. sunos4*)
  11862. case $cc_basename in
  11863. CC*)
  11864. # Sun C++ 4.x
  11865. # FIXME: insert proper C++ library support
  11866. ld_shlibs_CXX=no
  11867. ;;
  11868. lcc*)
  11869. # Lucid
  11870. # FIXME: insert proper C++ library support
  11871. ld_shlibs_CXX=no
  11872. ;;
  11873. *)
  11874. # FIXME: insert proper C++ library support
  11875. ld_shlibs_CXX=no
  11876. ;;
  11877. esac
  11878. ;;
  11879. solaris*)
  11880. case $cc_basename in
  11881. CC*)
  11882. # Sun C++ 4.2, 5.x and Centerline C++
  11883. archive_cmds_need_lc_CXX=yes
  11884. no_undefined_flag_CXX=' -zdefs'
  11885. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11886. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11887. $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11888. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11889. hardcode_shlibpath_var_CXX=no
  11890. case $host_os in
  11891. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11892. *)
  11893. # The compiler driver will combine and reorder linker options,
  11894. # but understands `-z linker_flag'.
  11895. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11896. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11897. ;;
  11898. esac
  11899. link_all_deplibs_CXX=yes
  11900. output_verbose_link_cmd='echo'
  11901. # Archives containing C++ object files must be created using
  11902. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11903. # necessary to make sure instantiated templates are included
  11904. # in the archive.
  11905. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11906. ;;
  11907. gcx*)
  11908. # Green Hills C++ Compiler
  11909. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11910. # The C++ compiler must be used to create the archive.
  11911. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11912. ;;
  11913. *)
  11914. # GNU C++ compiler with Solaris linker
  11915. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11916. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11917. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11918. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11919. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11920. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11921. # Commands to make compiler produce verbose output that lists
  11922. # what "hidden" libraries, object files and flags are used when
  11923. # linking a shared library.
  11924. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  11925. else
  11926. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11927. # platform.
  11928. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11929. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11930. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11931. # Commands to make compiler produce verbose output that lists
  11932. # what "hidden" libraries, object files and flags are used when
  11933. # linking a shared library.
  11934. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  11935. fi
  11936. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11937. case $host_os in
  11938. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11939. *)
  11940. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11941. ;;
  11942. esac
  11943. fi
  11944. ;;
  11945. esac
  11946. ;;
  11947. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11948. no_undefined_flag_CXX='${wl}-z,text'
  11949. archive_cmds_need_lc_CXX=no
  11950. hardcode_shlibpath_var_CXX=no
  11951. runpath_var='LD_RUN_PATH'
  11952. case $cc_basename in
  11953. CC*)
  11954. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11955. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11956. ;;
  11957. *)
  11958. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11959. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11960. ;;
  11961. esac
  11962. ;;
  11963. sysv5* | sco3.2v5* | sco5v6*)
  11964. # Note: We can NOT use -z defs as we might desire, because we do not
  11965. # link with -lc, and that would cause any symbols used from libc to
  11966. # always be unresolved, which means just about no library would
  11967. # ever link correctly. If we're not using GNU ld we use -z text
  11968. # though, which does catch some bad symbols but isn't as heavy-handed
  11969. # as -z defs.
  11970. no_undefined_flag_CXX='${wl}-z,text'
  11971. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11972. archive_cmds_need_lc_CXX=no
  11973. hardcode_shlibpath_var_CXX=no
  11974. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11975. hardcode_libdir_separator_CXX=':'
  11976. link_all_deplibs_CXX=yes
  11977. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11978. runpath_var='LD_RUN_PATH'
  11979. case $cc_basename in
  11980. CC*)
  11981. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11982. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11983. ;;
  11984. *)
  11985. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11986. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11987. ;;
  11988. esac
  11989. ;;
  11990. tandem*)
  11991. case $cc_basename in
  11992. NCC*)
  11993. # NonStop-UX NCC 3.20
  11994. # FIXME: insert proper C++ library support
  11995. ld_shlibs_CXX=no
  11996. ;;
  11997. *)
  11998. # FIXME: insert proper C++ library support
  11999. ld_shlibs_CXX=no
  12000. ;;
  12001. esac
  12002. ;;
  12003. vxworks*)
  12004. # FIXME: insert proper C++ library support
  12005. ld_shlibs_CXX=no
  12006. ;;
  12007. *)
  12008. # FIXME: insert proper C++ library support
  12009. ld_shlibs_CXX=no
  12010. ;;
  12011. esac
  12012. { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  12013. echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  12014. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12015. GCC_CXX="$GXX"
  12016. LD_CXX="$LD"
  12017. ## CAVEAT EMPTOR:
  12018. ## There is no encapsulation within the following macros, do not change
  12019. ## the running order or otherwise move them around unless you know exactly
  12020. ## what you are doing...
  12021. # Dependencies to place before and after the object being linked:
  12022. predep_objects_CXX=
  12023. postdep_objects_CXX=
  12024. predeps_CXX=
  12025. postdeps_CXX=
  12026. compiler_lib_search_path_CXX=
  12027. cat > conftest.$ac_ext <<_LT_EOF
  12028. class Foo
  12029. {
  12030. public:
  12031. Foo (void) { a = 0; }
  12032. private:
  12033. int a;
  12034. };
  12035. _LT_EOF
  12036. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12037. (eval $ac_compile) 2>&5
  12038. ac_status=$?
  12039. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12040. (exit $ac_status); }; then
  12041. # Parse the compiler output and extract the necessary
  12042. # objects, libraries and library flags.
  12043. # Sentinel used to keep track of whether or not we are before
  12044. # the conftest object file.
  12045. pre_test_object_deps_done=no
  12046. for p in `eval "$output_verbose_link_cmd"`; do
  12047. case $p in
  12048. -L* | -R* | -l*)
  12049. # Some compilers place space between "-{L,R}" and the path.
  12050. # Remove the space.
  12051. if test $p = "-L" ||
  12052. test $p = "-R"; then
  12053. prev=$p
  12054. continue
  12055. else
  12056. prev=
  12057. fi
  12058. if test "$pre_test_object_deps_done" = no; then
  12059. case $p in
  12060. -L* | -R*)
  12061. # Internal compiler library paths should come after those
  12062. # provided the user. The postdeps already come after the
  12063. # user supplied libs so there is no need to process them.
  12064. if test -z "$compiler_lib_search_path_CXX"; then
  12065. compiler_lib_search_path_CXX="${prev}${p}"
  12066. else
  12067. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  12068. fi
  12069. ;;
  12070. # The "-l" case would never come before the object being
  12071. # linked, so don't bother handling this case.
  12072. esac
  12073. else
  12074. if test -z "$postdeps_CXX"; then
  12075. postdeps_CXX="${prev}${p}"
  12076. else
  12077. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  12078. fi
  12079. fi
  12080. ;;
  12081. *.$objext)
  12082. # This assumes that the test object file only shows up
  12083. # once in the compiler output.
  12084. if test "$p" = "conftest.$objext"; then
  12085. pre_test_object_deps_done=yes
  12086. continue
  12087. fi
  12088. if test "$pre_test_object_deps_done" = no; then
  12089. if test -z "$predep_objects_CXX"; then
  12090. predep_objects_CXX="$p"
  12091. else
  12092. predep_objects_CXX="$predep_objects_CXX $p"
  12093. fi
  12094. else
  12095. if test -z "$postdep_objects_CXX"; then
  12096. postdep_objects_CXX="$p"
  12097. else
  12098. postdep_objects_CXX="$postdep_objects_CXX $p"
  12099. fi
  12100. fi
  12101. ;;
  12102. *) ;; # Ignore the rest.
  12103. esac
  12104. done
  12105. # Clean up.
  12106. rm -f a.out a.exe
  12107. else
  12108. echo "libtool.m4: error: problem compiling CXX test program"
  12109. fi
  12110. $RM -f confest.$objext
  12111. # PORTME: override above test on systems where it is broken
  12112. case $host_os in
  12113. interix[3-9]*)
  12114. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12115. # hack all around it, let's just trust "g++" to DTRT.
  12116. predep_objects_CXX=
  12117. postdep_objects_CXX=
  12118. postdeps_CXX=
  12119. ;;
  12120. linux*)
  12121. case `$CC -V 2>&1 | sed 5q` in
  12122. *Sun\ C*)
  12123. # Sun C++ 5.9
  12124. # The more standards-conforming stlport4 library is
  12125. # incompatible with the Cstd library. Avoid specifying
  12126. # it if it's in CXXFLAGS. Ignore libCrun as
  12127. # -library=stlport4 depends on it.
  12128. case " $CXX $CXXFLAGS " in
  12129. *" -library=stlport4 "*)
  12130. solaris_use_stlport4=yes
  12131. ;;
  12132. esac
  12133. if test "$solaris_use_stlport4" != yes; then
  12134. postdeps_CXX='-library=Cstd -library=Crun'
  12135. fi
  12136. ;;
  12137. esac
  12138. ;;
  12139. solaris*)
  12140. case $cc_basename in
  12141. CC*)
  12142. # The more standards-conforming stlport4 library is
  12143. # incompatible with the Cstd library. Avoid specifying
  12144. # it if it's in CXXFLAGS. Ignore libCrun as
  12145. # -library=stlport4 depends on it.
  12146. case " $CXX $CXXFLAGS " in
  12147. *" -library=stlport4 "*)
  12148. solaris_use_stlport4=yes
  12149. ;;
  12150. esac
  12151. # Adding this requires a known-good setup of shared libraries for
  12152. # Sun compiler versions before 5.6, else PIC objects from an old
  12153. # archive will be linked into the output, leading to subtle bugs.
  12154. if test "$solaris_use_stlport4" != yes; then
  12155. postdeps_CXX='-library=Cstd -library=Crun'
  12156. fi
  12157. ;;
  12158. esac
  12159. ;;
  12160. esac
  12161. case " $postdeps_CXX " in
  12162. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12163. esac
  12164. compiler_lib_search_dirs_CXX=
  12165. if test -n "${compiler_lib_search_path_CXX}"; then
  12166. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12167. fi
  12168. lt_prog_compiler_wl_CXX=
  12169. lt_prog_compiler_pic_CXX=
  12170. lt_prog_compiler_static_CXX=
  12171. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  12172. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  12173. # C++ specific cases for pic, static, wl, etc.
  12174. if test "$GXX" = yes; then
  12175. lt_prog_compiler_wl_CXX='-Wl,'
  12176. lt_prog_compiler_static_CXX='-static'
  12177. case $host_os in
  12178. aix*)
  12179. # All AIX code is PIC.
  12180. if test "$host_cpu" = ia64; then
  12181. # AIX 5 now supports IA64 processor
  12182. lt_prog_compiler_static_CXX='-Bstatic'
  12183. fi
  12184. ;;
  12185. amigaos*)
  12186. case $host_cpu in
  12187. powerpc)
  12188. # see comment about AmigaOS4 .so support
  12189. lt_prog_compiler_pic_CXX='-fPIC'
  12190. ;;
  12191. m68k)
  12192. # FIXME: we need at least 68020 code to build shared libraries, but
  12193. # adding the `-m68020' flag to GCC prevents building anything better,
  12194. # like `-m68040'.
  12195. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12196. ;;
  12197. esac
  12198. ;;
  12199. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12200. # PIC is the default for these OSes.
  12201. ;;
  12202. mingw* | cygwin* | os2* | pw32*)
  12203. # This hack is so that the source file can tell whether it is being
  12204. # built for inclusion in a dll (and should export symbols for example).
  12205. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12206. # (--disable-auto-import) libraries
  12207. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12208. ;;
  12209. darwin* | rhapsody*)
  12210. # PIC is the default on this platform
  12211. # Common symbols not allowed in MH_DYLIB files
  12212. lt_prog_compiler_pic_CXX='-fno-common'
  12213. ;;
  12214. *djgpp*)
  12215. # DJGPP does not support shared libraries at all
  12216. lt_prog_compiler_pic_CXX=
  12217. ;;
  12218. interix[3-9]*)
  12219. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12220. # Instead, we relocate shared libraries at runtime.
  12221. ;;
  12222. sysv4*MP*)
  12223. if test -d /usr/nec; then
  12224. lt_prog_compiler_pic_CXX=-Kconform_pic
  12225. fi
  12226. ;;
  12227. hpux*)
  12228. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  12229. # not for PA HP-UX.
  12230. case $host_cpu in
  12231. hppa*64*|ia64*)
  12232. ;;
  12233. *)
  12234. lt_prog_compiler_pic_CXX='-fPIC'
  12235. ;;
  12236. esac
  12237. ;;
  12238. *qnx* | *nto*)
  12239. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12240. # it will coredump.
  12241. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12242. ;;
  12243. *)
  12244. lt_prog_compiler_pic_CXX='-fPIC'
  12245. ;;
  12246. esac
  12247. else
  12248. case $host_os in
  12249. aix[4-9]*)
  12250. # All AIX code is PIC.
  12251. if test "$host_cpu" = ia64; then
  12252. # AIX 5 now supports IA64 processor
  12253. lt_prog_compiler_static_CXX='-Bstatic'
  12254. else
  12255. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12256. fi
  12257. ;;
  12258. chorus*)
  12259. case $cc_basename in
  12260. cxch68*)
  12261. # Green Hills C++ Compiler
  12262. # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  12263. ;;
  12264. esac
  12265. ;;
  12266. dgux*)
  12267. case $cc_basename in
  12268. ec++*)
  12269. lt_prog_compiler_pic_CXX='-KPIC'
  12270. ;;
  12271. ghcx*)
  12272. # Green Hills C++ Compiler
  12273. lt_prog_compiler_pic_CXX='-pic'
  12274. ;;
  12275. *)
  12276. ;;
  12277. esac
  12278. ;;
  12279. freebsd* | dragonfly*)
  12280. # FreeBSD uses GNU C++
  12281. ;;
  12282. hpux9* | hpux10* | hpux11*)
  12283. case $cc_basename in
  12284. CC*)
  12285. lt_prog_compiler_wl_CXX='-Wl,'
  12286. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12287. if test "$host_cpu" != ia64; then
  12288. lt_prog_compiler_pic_CXX='+Z'
  12289. fi
  12290. ;;
  12291. aCC*)
  12292. lt_prog_compiler_wl_CXX='-Wl,'
  12293. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12294. case $host_cpu in
  12295. hppa*64*|ia64*)
  12296. # +Z the default
  12297. ;;
  12298. *)
  12299. lt_prog_compiler_pic_CXX='+Z'
  12300. ;;
  12301. esac
  12302. ;;
  12303. *)
  12304. ;;
  12305. esac
  12306. ;;
  12307. interix*)
  12308. # This is c89, which is MS Visual C++ (no shared libs)
  12309. # Anyone wants to do a port?
  12310. ;;
  12311. irix5* | irix6* | nonstopux*)
  12312. case $cc_basename in
  12313. CC*)
  12314. lt_prog_compiler_wl_CXX='-Wl,'
  12315. lt_prog_compiler_static_CXX='-non_shared'
  12316. # CC pic flag -KPIC is the default.
  12317. ;;
  12318. *)
  12319. ;;
  12320. esac
  12321. ;;
  12322. linux* | k*bsd*-gnu)
  12323. case $cc_basename in
  12324. KCC*)
  12325. # KAI C++ Compiler
  12326. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12327. lt_prog_compiler_pic_CXX='-fPIC'
  12328. ;;
  12329. icpc* | ecpc* )
  12330. # Intel C++
  12331. lt_prog_compiler_wl_CXX='-Wl,'
  12332. lt_prog_compiler_pic_CXX='-KPIC'
  12333. lt_prog_compiler_static_CXX='-static'
  12334. ;;
  12335. pgCC* | pgcpp*)
  12336. # Portland Group C++ compiler
  12337. lt_prog_compiler_wl_CXX='-Wl,'
  12338. lt_prog_compiler_pic_CXX='-fpic'
  12339. lt_prog_compiler_static_CXX='-Bstatic'
  12340. ;;
  12341. cxx*)
  12342. # Compaq C++
  12343. # Make sure the PIC flag is empty. It appears that all Alpha
  12344. # Linux and Compaq Tru64 Unix objects are PIC.
  12345. lt_prog_compiler_pic_CXX=
  12346. lt_prog_compiler_static_CXX='-non_shared'
  12347. ;;
  12348. xlc* | xlC*)
  12349. # IBM XL 8.0 on PPC
  12350. lt_prog_compiler_wl_CXX='-Wl,'
  12351. lt_prog_compiler_pic_CXX='-qpic'
  12352. lt_prog_compiler_static_CXX='-qstaticlink'
  12353. ;;
  12354. *)
  12355. case `$CC -V 2>&1 | sed 5q` in
  12356. *Sun\ C*)
  12357. # Sun C++ 5.9
  12358. lt_prog_compiler_pic_CXX='-KPIC'
  12359. lt_prog_compiler_static_CXX='-Bstatic'
  12360. lt_prog_compiler_wl_CXX='-Qoption ld '
  12361. ;;
  12362. esac
  12363. ;;
  12364. esac
  12365. ;;
  12366. lynxos*)
  12367. ;;
  12368. m88k*)
  12369. ;;
  12370. mvs*)
  12371. case $cc_basename in
  12372. cxx*)
  12373. lt_prog_compiler_pic_CXX='-W c,exportall'
  12374. ;;
  12375. *)
  12376. ;;
  12377. esac
  12378. ;;
  12379. netbsd* | netbsdelf*-gnu)
  12380. ;;
  12381. *qnx* | *nto*)
  12382. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12383. # it will coredump.
  12384. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12385. ;;
  12386. osf3* | osf4* | osf5*)
  12387. case $cc_basename in
  12388. KCC*)
  12389. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12390. ;;
  12391. RCC*)
  12392. # Rational C++ 2.4.1
  12393. lt_prog_compiler_pic_CXX='-pic'
  12394. ;;
  12395. cxx*)
  12396. # Digital/Compaq C++
  12397. lt_prog_compiler_wl_CXX='-Wl,'
  12398. # Make sure the PIC flag is empty. It appears that all Alpha
  12399. # Linux and Compaq Tru64 Unix objects are PIC.
  12400. lt_prog_compiler_pic_CXX=
  12401. lt_prog_compiler_static_CXX='-non_shared'
  12402. ;;
  12403. *)
  12404. ;;
  12405. esac
  12406. ;;
  12407. psos*)
  12408. ;;
  12409. solaris*)
  12410. case $cc_basename in
  12411. CC*)
  12412. # Sun C++ 4.2, 5.x and Centerline C++
  12413. lt_prog_compiler_pic_CXX='-KPIC'
  12414. lt_prog_compiler_static_CXX='-Bstatic'
  12415. lt_prog_compiler_wl_CXX='-Qoption ld '
  12416. ;;
  12417. gcx*)
  12418. # Green Hills C++ Compiler
  12419. lt_prog_compiler_pic_CXX='-PIC'
  12420. ;;
  12421. *)
  12422. ;;
  12423. esac
  12424. ;;
  12425. sunos4*)
  12426. case $cc_basename in
  12427. CC*)
  12428. # Sun C++ 4.x
  12429. lt_prog_compiler_pic_CXX='-pic'
  12430. lt_prog_compiler_static_CXX='-Bstatic'
  12431. ;;
  12432. lcc*)
  12433. # Lucid
  12434. lt_prog_compiler_pic_CXX='-pic'
  12435. ;;
  12436. *)
  12437. ;;
  12438. esac
  12439. ;;
  12440. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12441. case $cc_basename in
  12442. CC*)
  12443. lt_prog_compiler_wl_CXX='-Wl,'
  12444. lt_prog_compiler_pic_CXX='-KPIC'
  12445. lt_prog_compiler_static_CXX='-Bstatic'
  12446. ;;
  12447. esac
  12448. ;;
  12449. tandem*)
  12450. case $cc_basename in
  12451. NCC*)
  12452. # NonStop-UX NCC 3.20
  12453. lt_prog_compiler_pic_CXX='-KPIC'
  12454. ;;
  12455. *)
  12456. ;;
  12457. esac
  12458. ;;
  12459. vxworks*)
  12460. ;;
  12461. *)
  12462. lt_prog_compiler_can_build_shared_CXX=no
  12463. ;;
  12464. esac
  12465. fi
  12466. case $host_os in
  12467. # For platforms which do not support PIC, -DPIC is meaningless:
  12468. *djgpp*)
  12469. lt_prog_compiler_pic_CXX=
  12470. ;;
  12471. *)
  12472. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12473. ;;
  12474. esac
  12475. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  12476. echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
  12477. #
  12478. # Check to make sure the PIC flag actually works.
  12479. #
  12480. if test -n "$lt_prog_compiler_pic_CXX"; then
  12481. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12482. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
  12483. if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
  12484. echo $ECHO_N "(cached) $ECHO_C" >&6
  12485. else
  12486. lt_cv_prog_compiler_pic_works_CXX=no
  12487. ac_outfile=conftest.$ac_objext
  12488. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12489. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12490. # Insert the option either (1) after the last *FLAGS variable, or
  12491. # (2) before a word containing "conftest.", or (3) at the end.
  12492. # Note that $ac_compile itself does not contain backslashes and begins
  12493. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12494. # The option is referenced via a variable to avoid confusing sed.
  12495. lt_compile=`echo "$ac_compile" | $SED \
  12496. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12497. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12498. -e 's:$: $lt_compiler_flag:'`
  12499. (eval echo "\"\$as_me:14493: $lt_compile\"" >&5)
  12500. (eval "$lt_compile" 2>conftest.err)
  12501. ac_status=$?
  12502. cat conftest.err >&5
  12503. echo "$as_me:14497: \$? = $ac_status" >&5
  12504. if (exit $ac_status) && test -s "$ac_outfile"; then
  12505. # The compiler can only warn and ignore the option if not recognized
  12506. # So say no if there are warnings other than the usual output.
  12507. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  12508. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12509. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12510. lt_cv_prog_compiler_pic_works_CXX=yes
  12511. fi
  12512. fi
  12513. $RM conftest*
  12514. fi
  12515. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12516. echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12517. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12518. case $lt_prog_compiler_pic_CXX in
  12519. "" | " "*) ;;
  12520. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12521. esac
  12522. else
  12523. lt_prog_compiler_pic_CXX=
  12524. lt_prog_compiler_can_build_shared_CXX=no
  12525. fi
  12526. fi
  12527. #
  12528. # Check to make sure the static flag actually works.
  12529. #
  12530. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12531. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12532. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  12533. if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
  12534. echo $ECHO_N "(cached) $ECHO_C" >&6
  12535. else
  12536. lt_cv_prog_compiler_static_works_CXX=no
  12537. save_LDFLAGS="$LDFLAGS"
  12538. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12539. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12540. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12541. # The linker can only warn and ignore the option if not recognized
  12542. # So say no if there are warnings
  12543. if test -s conftest.err; then
  12544. # Append any errors to the config.log.
  12545. cat conftest.err 1>&5
  12546. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  12547. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12548. if diff conftest.exp conftest.er2 >/dev/null; then
  12549. lt_cv_prog_compiler_static_works_CXX=yes
  12550. fi
  12551. else
  12552. lt_cv_prog_compiler_static_works_CXX=yes
  12553. fi
  12554. fi
  12555. $RM -r conftest*
  12556. LDFLAGS="$save_LDFLAGS"
  12557. fi
  12558. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12559. echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12560. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12561. :
  12562. else
  12563. lt_prog_compiler_static_CXX=
  12564. fi
  12565. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  12566. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  12567. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  12568. echo $ECHO_N "(cached) $ECHO_C" >&6
  12569. else
  12570. lt_cv_prog_compiler_c_o_CXX=no
  12571. $RM -r conftest 2>/dev/null
  12572. mkdir conftest
  12573. cd conftest
  12574. mkdir out
  12575. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12576. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12577. # Insert the option either (1) after the last *FLAGS variable, or
  12578. # (2) before a word containing "conftest.", or (3) at the end.
  12579. # Note that $ac_compile itself does not contain backslashes and begins
  12580. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12581. lt_compile=`echo "$ac_compile" | $SED \
  12582. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12583. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12584. -e 's:$: $lt_compiler_flag:'`
  12585. (eval echo "\"\$as_me:14592: $lt_compile\"" >&5)
  12586. (eval "$lt_compile" 2>out/conftest.err)
  12587. ac_status=$?
  12588. cat out/conftest.err >&5
  12589. echo "$as_me:14596: \$? = $ac_status" >&5
  12590. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12591. then
  12592. # The compiler can only warn and ignore the option if not recognized
  12593. # So say no if there are warnings
  12594. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  12595. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12596. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12597. lt_cv_prog_compiler_c_o_CXX=yes
  12598. fi
  12599. fi
  12600. chmod u+w . 2>&5
  12601. $RM conftest*
  12602. # SGI C++ compiler will create directory out/ii_files/ for
  12603. # template instantiation
  12604. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12605. $RM out/* && rmdir out
  12606. cd ..
  12607. $RM -r conftest
  12608. $RM conftest*
  12609. fi
  12610. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12611. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12612. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  12613. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  12614. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  12615. echo $ECHO_N "(cached) $ECHO_C" >&6
  12616. else
  12617. lt_cv_prog_compiler_c_o_CXX=no
  12618. $RM -r conftest 2>/dev/null
  12619. mkdir conftest
  12620. cd conftest
  12621. mkdir out
  12622. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12623. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12624. # Insert the option either (1) after the last *FLAGS variable, or
  12625. # (2) before a word containing "conftest.", or (3) at the end.
  12626. # Note that $ac_compile itself does not contain backslashes and begins
  12627. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12628. lt_compile=`echo "$ac_compile" | $SED \
  12629. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12630. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12631. -e 's:$: $lt_compiler_flag:'`
  12632. (eval echo "\"\$as_me:14644: $lt_compile\"" >&5)
  12633. (eval "$lt_compile" 2>out/conftest.err)
  12634. ac_status=$?
  12635. cat out/conftest.err >&5
  12636. echo "$as_me:14648: \$? = $ac_status" >&5
  12637. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12638. then
  12639. # The compiler can only warn and ignore the option if not recognized
  12640. # So say no if there are warnings
  12641. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  12642. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12643. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12644. lt_cv_prog_compiler_c_o_CXX=yes
  12645. fi
  12646. fi
  12647. chmod u+w . 2>&5
  12648. $RM conftest*
  12649. # SGI C++ compiler will create directory out/ii_files/ for
  12650. # template instantiation
  12651. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12652. $RM out/* && rmdir out
  12653. cd ..
  12654. $RM -r conftest
  12655. $RM conftest*
  12656. fi
  12657. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12658. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12659. hard_links="nottested"
  12660. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12661. # do not overwrite the value of need_locks provided by the user
  12662. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  12663. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  12664. hard_links=yes
  12665. $RM conftest*
  12666. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12667. touch conftest.a
  12668. ln conftest.a conftest.b 2>&5 || hard_links=no
  12669. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12670. { echo "$as_me:$LINENO: result: $hard_links" >&5
  12671. echo "${ECHO_T}$hard_links" >&6; }
  12672. if test "$hard_links" = no; then
  12673. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12674. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12675. need_locks=warn
  12676. fi
  12677. else
  12678. need_locks=no
  12679. fi
  12680. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12681. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  12682. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12683. case $host_os in
  12684. aix[4-9]*)
  12685. # If we're using GNU nm, then we don't want the "-C" option.
  12686. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12687. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12688. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12689. else
  12690. export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12691. fi
  12692. ;;
  12693. pw32*)
  12694. export_symbols_cmds_CXX="$ltdll_cmds"
  12695. ;;
  12696. cygwin* | mingw*)
  12697. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  12698. ;;
  12699. linux* | k*bsd*-gnu)
  12700. link_all_deplibs_CXX=no
  12701. ;;
  12702. *)
  12703. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12704. ;;
  12705. esac
  12706. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12707. { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  12708. echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  12709. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12710. with_gnu_ld_CXX=$with_gnu_ld
  12711. #
  12712. # Do we need to explicitly link libc?
  12713. #
  12714. case "x$archive_cmds_need_lc_CXX" in
  12715. x|xyes)
  12716. # Assume -lc should be added
  12717. archive_cmds_need_lc_CXX=yes
  12718. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12719. case $archive_cmds_CXX in
  12720. *'~'*)
  12721. # FIXME: we may have to deal with multi-command sequences.
  12722. ;;
  12723. '$CC '*)
  12724. # Test whether the compiler implicitly links with -lc since on some
  12725. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12726. # to ld, don't add -lc before -lgcc.
  12727. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  12728. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  12729. $RM conftest*
  12730. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12731. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12732. (eval $ac_compile) 2>&5
  12733. ac_status=$?
  12734. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12735. (exit $ac_status); } 2>conftest.err; then
  12736. soname=conftest
  12737. lib=conftest
  12738. libobjs=conftest.$ac_objext
  12739. deplibs=
  12740. wl=$lt_prog_compiler_wl_CXX
  12741. pic_flag=$lt_prog_compiler_pic_CXX
  12742. compiler_flags=-v
  12743. linker_flags=-v
  12744. verstring=
  12745. output_objdir=.
  12746. libname=conftest
  12747. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12748. allow_undefined_flag_CXX=
  12749. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
  12750. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12751. ac_status=$?
  12752. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12753. (exit $ac_status); }
  12754. then
  12755. archive_cmds_need_lc_CXX=no
  12756. else
  12757. archive_cmds_need_lc_CXX=yes
  12758. fi
  12759. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12760. else
  12761. cat conftest.err 1>&5
  12762. fi
  12763. $RM conftest*
  12764. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  12765. echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
  12766. ;;
  12767. esac
  12768. fi
  12769. ;;
  12770. esac
  12771. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  12772. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  12773. library_names_spec=
  12774. libname_spec='lib$name'
  12775. soname_spec=
  12776. shrext_cmds=".so"
  12777. postinstall_cmds=
  12778. postuninstall_cmds=
  12779. finish_cmds=
  12780. finish_eval=
  12781. shlibpath_var=
  12782. shlibpath_overrides_runpath=unknown
  12783. version_type=none
  12784. dynamic_linker="$host_os ld.so"
  12785. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12786. need_lib_prefix=unknown
  12787. hardcode_into_libs=no
  12788. # when you set need_version to no, make sure it does not cause -set_version
  12789. # flags to be left without arguments
  12790. need_version=unknown
  12791. case $host_os in
  12792. aix3*)
  12793. version_type=linux
  12794. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12795. shlibpath_var=LIBPATH
  12796. # AIX 3 has no versioning support, so we append a major version to the name.
  12797. soname_spec='${libname}${release}${shared_ext}$major'
  12798. ;;
  12799. aix[4-9]*)
  12800. version_type=linux
  12801. need_lib_prefix=no
  12802. need_version=no
  12803. hardcode_into_libs=yes
  12804. if test "$host_cpu" = ia64; then
  12805. # AIX 5 supports IA64
  12806. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12807. shlibpath_var=LD_LIBRARY_PATH
  12808. else
  12809. # With GCC up to 2.95.x, collect2 would create an import file
  12810. # for dependence libraries. The import file would start with
  12811. # the line `#! .'. This would cause the generated library to
  12812. # depend on `.', always an invalid library. This was fixed in
  12813. # development snapshots of GCC prior to 3.0.
  12814. case $host_os in
  12815. aix4 | aix4.[01] | aix4.[01].*)
  12816. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12817. echo ' yes '
  12818. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12819. :
  12820. else
  12821. can_build_shared=no
  12822. fi
  12823. ;;
  12824. esac
  12825. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12826. # soname into executable. Probably we can add versioning support to
  12827. # collect2, so additional links can be useful in future.
  12828. if test "$aix_use_runtimelinking" = yes; then
  12829. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12830. # instead of lib<name>.a to let people know that these are not
  12831. # typical AIX shared libraries.
  12832. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12833. else
  12834. # We preserve .a as extension for shared libraries through AIX4.2
  12835. # and later when we are not doing run time linking.
  12836. library_names_spec='${libname}${release}.a $libname.a'
  12837. soname_spec='${libname}${release}${shared_ext}$major'
  12838. fi
  12839. shlibpath_var=LIBPATH
  12840. fi
  12841. ;;
  12842. amigaos*)
  12843. case $host_cpu in
  12844. powerpc)
  12845. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12846. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12847. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12848. ;;
  12849. m68k)
  12850. library_names_spec='$libname.ixlibrary $libname.a'
  12851. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12852. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  12853. ;;
  12854. esac
  12855. ;;
  12856. beos*)
  12857. library_names_spec='${libname}${shared_ext}'
  12858. dynamic_linker="$host_os ld.so"
  12859. shlibpath_var=LIBRARY_PATH
  12860. ;;
  12861. bsdi[45]*)
  12862. version_type=linux
  12863. need_version=no
  12864. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12865. soname_spec='${libname}${release}${shared_ext}$major'
  12866. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12867. shlibpath_var=LD_LIBRARY_PATH
  12868. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12869. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12870. # the default ld.so.conf also contains /usr/contrib/lib and
  12871. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12872. # libtool to hard-code these into programs
  12873. ;;
  12874. cygwin* | mingw* | pw32*)
  12875. version_type=windows
  12876. shrext_cmds=".dll"
  12877. need_version=no
  12878. need_lib_prefix=no
  12879. case $GCC,$host_os in
  12880. yes,cygwin* | yes,mingw* | yes,pw32*)
  12881. library_names_spec='$libname.dll.a'
  12882. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12883. postinstall_cmds='base_file=`basename \${file}`~
  12884. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12885. dldir=$destdir/`dirname \$dlpath`~
  12886. test -d \$dldir || mkdir -p \$dldir~
  12887. $install_prog $dir/$dlname \$dldir/$dlname~
  12888. chmod a+x \$dldir/$dlname~
  12889. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12890. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12891. fi'
  12892. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12893. dlpath=$dir/\$dldll~
  12894. $RM \$dlpath'
  12895. shlibpath_overrides_runpath=yes
  12896. case $host_os in
  12897. cygwin*)
  12898. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12899. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12900. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  12901. ;;
  12902. mingw*)
  12903. # MinGW DLLs use traditional 'lib' prefix
  12904. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12905. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  12906. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12907. # It is most probably a Windows format PATH printed by
  12908. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  12909. # path with ; separators, and with drive letters. We can handle the
  12910. # drive letters (cygwin fileutils understands them), so leave them,
  12911. # especially as we might pass files found there to a mingw objdump,
  12912. # which wouldn't understand a cygwinified path. Ahh.
  12913. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12914. else
  12915. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12916. fi
  12917. ;;
  12918. pw32*)
  12919. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12920. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12921. ;;
  12922. esac
  12923. ;;
  12924. *)
  12925. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12926. ;;
  12927. esac
  12928. dynamic_linker='Win32 ld.exe'
  12929. # FIXME: first we should search . and the directory the executable is in
  12930. shlibpath_var=PATH
  12931. ;;
  12932. darwin* | rhapsody*)
  12933. dynamic_linker="$host_os dyld"
  12934. version_type=darwin
  12935. need_lib_prefix=no
  12936. need_version=no
  12937. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12938. soname_spec='${libname}${release}${major}$shared_ext'
  12939. shlibpath_overrides_runpath=yes
  12940. shlibpath_var=DYLD_LIBRARY_PATH
  12941. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12942. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12943. ;;
  12944. dgux*)
  12945. version_type=linux
  12946. need_lib_prefix=no
  12947. need_version=no
  12948. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12949. soname_spec='${libname}${release}${shared_ext}$major'
  12950. shlibpath_var=LD_LIBRARY_PATH
  12951. ;;
  12952. freebsd1*)
  12953. dynamic_linker=no
  12954. ;;
  12955. freebsd* | dragonfly*)
  12956. # DragonFly does not have aout. When/if they implement a new
  12957. # versioning mechanism, adjust this.
  12958. if test -x /usr/bin/objformat; then
  12959. objformat=`/usr/bin/objformat`
  12960. else
  12961. case $host_os in
  12962. freebsd[123]*) objformat=aout ;;
  12963. *) objformat=elf ;;
  12964. esac
  12965. fi
  12966. version_type=freebsd-$objformat
  12967. case $version_type in
  12968. freebsd-elf*)
  12969. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12970. need_version=no
  12971. need_lib_prefix=no
  12972. ;;
  12973. freebsd-*)
  12974. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12975. need_version=yes
  12976. ;;
  12977. esac
  12978. shlibpath_var=LD_LIBRARY_PATH
  12979. case $host_os in
  12980. freebsd2*)
  12981. shlibpath_overrides_runpath=yes
  12982. ;;
  12983. freebsd3.[01]* | freebsdelf3.[01]*)
  12984. shlibpath_overrides_runpath=yes
  12985. hardcode_into_libs=yes
  12986. ;;
  12987. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12988. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12989. shlibpath_overrides_runpath=no
  12990. hardcode_into_libs=yes
  12991. ;;
  12992. *) # from 4.6 on, and DragonFly
  12993. shlibpath_overrides_runpath=yes
  12994. hardcode_into_libs=yes
  12995. ;;
  12996. esac
  12997. ;;
  12998. gnu*)
  12999. version_type=linux
  13000. need_lib_prefix=no
  13001. need_version=no
  13002. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13003. soname_spec='${libname}${release}${shared_ext}$major'
  13004. shlibpath_var=LD_LIBRARY_PATH
  13005. hardcode_into_libs=yes
  13006. ;;
  13007. hpux9* | hpux10* | hpux11*)
  13008. # Give a soname corresponding to the major version so that dld.sl refuses to
  13009. # link against other versions.
  13010. version_type=sunos
  13011. need_lib_prefix=no
  13012. need_version=no
  13013. case $host_cpu in
  13014. ia64*)
  13015. shrext_cmds='.so'
  13016. hardcode_into_libs=yes
  13017. dynamic_linker="$host_os dld.so"
  13018. shlibpath_var=LD_LIBRARY_PATH
  13019. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13020. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13021. soname_spec='${libname}${release}${shared_ext}$major'
  13022. if test "X$HPUX_IA64_MODE" = X32; then
  13023. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13024. else
  13025. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13026. fi
  13027. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13028. ;;
  13029. hppa*64*)
  13030. shrext_cmds='.sl'
  13031. hardcode_into_libs=yes
  13032. dynamic_linker="$host_os dld.sl"
  13033. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13034. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13035. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13036. soname_spec='${libname}${release}${shared_ext}$major'
  13037. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13038. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13039. ;;
  13040. *)
  13041. shrext_cmds='.sl'
  13042. dynamic_linker="$host_os dld.sl"
  13043. shlibpath_var=SHLIB_PATH
  13044. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13045. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13046. soname_spec='${libname}${release}${shared_ext}$major'
  13047. ;;
  13048. esac
  13049. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  13050. postinstall_cmds='chmod 555 $lib'
  13051. ;;
  13052. interix[3-9]*)
  13053. version_type=linux
  13054. need_lib_prefix=no
  13055. need_version=no
  13056. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13057. soname_spec='${libname}${release}${shared_ext}$major'
  13058. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13059. shlibpath_var=LD_LIBRARY_PATH
  13060. shlibpath_overrides_runpath=no
  13061. hardcode_into_libs=yes
  13062. ;;
  13063. irix5* | irix6* | nonstopux*)
  13064. case $host_os in
  13065. nonstopux*) version_type=nonstopux ;;
  13066. *)
  13067. if test "$lt_cv_prog_gnu_ld" = yes; then
  13068. version_type=linux
  13069. else
  13070. version_type=irix
  13071. fi ;;
  13072. esac
  13073. need_lib_prefix=no
  13074. need_version=no
  13075. soname_spec='${libname}${release}${shared_ext}$major'
  13076. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13077. case $host_os in
  13078. irix5* | nonstopux*)
  13079. libsuff= shlibsuff=
  13080. ;;
  13081. *)
  13082. case $LD in # libtool.m4 will add one of these switches to LD
  13083. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13084. libsuff= shlibsuff= libmagic=32-bit;;
  13085. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13086. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13087. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13088. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13089. *) libsuff= shlibsuff= libmagic=never-match;;
  13090. esac
  13091. ;;
  13092. esac
  13093. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13094. shlibpath_overrides_runpath=no
  13095. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13096. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13097. hardcode_into_libs=yes
  13098. ;;
  13099. # No shared lib support for Linux oldld, aout, or coff.
  13100. linux*oldld* | linux*aout* | linux*coff*)
  13101. dynamic_linker=no
  13102. ;;
  13103. # This must be Linux ELF.
  13104. linux* | k*bsd*-gnu)
  13105. version_type=linux
  13106. need_lib_prefix=no
  13107. need_version=no
  13108. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13109. soname_spec='${libname}${release}${shared_ext}$major'
  13110. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13111. shlibpath_var=LD_LIBRARY_PATH
  13112. shlibpath_overrides_runpath=no
  13113. # Some binutils ld are patched to set DT_RUNPATH
  13114. save_LDFLAGS=$LDFLAGS
  13115. save_libdir=$libdir
  13116. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13117. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13118. cat >conftest.$ac_ext <<_ACEOF
  13119. /* confdefs.h. */
  13120. _ACEOF
  13121. cat confdefs.h >>conftest.$ac_ext
  13122. cat >>conftest.$ac_ext <<_ACEOF
  13123. /* end confdefs.h. */
  13124. int
  13125. main ()
  13126. {
  13127. ;
  13128. return 0;
  13129. }
  13130. _ACEOF
  13131. rm -f conftest.$ac_objext conftest$ac_exeext
  13132. if { (ac_try="$ac_link"
  13133. case "(($ac_try" in
  13134. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13135. *) ac_try_echo=$ac_try;;
  13136. esac
  13137. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13138. (eval "$ac_link") 2>conftest.er1
  13139. ac_status=$?
  13140. grep -v '^ *+' conftest.er1 >conftest.err
  13141. rm -f conftest.er1
  13142. cat conftest.err >&5
  13143. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13144. (exit $ac_status); } && {
  13145. test -z "$ac_cxx_werror_flag" ||
  13146. test ! -s conftest.err
  13147. } && test -s conftest$ac_exeext &&
  13148. $as_test_x conftest$ac_exeext; then
  13149. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
  13150. shlibpath_overrides_runpath=yes
  13151. fi
  13152. else
  13153. echo "$as_me: failed program was:" >&5
  13154. sed 's/^/| /' conftest.$ac_ext >&5
  13155. fi
  13156. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13157. conftest$ac_exeext conftest.$ac_ext
  13158. LDFLAGS=$save_LDFLAGS
  13159. libdir=$save_libdir
  13160. # This implies no fast_install, which is unacceptable.
  13161. # Some rework will be needed to allow for fast_install
  13162. # before this can be enabled.
  13163. hardcode_into_libs=yes
  13164. # Append ld.so.conf contents to the search path
  13165. if test -f /etc/ld.so.conf; then
  13166. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  13167. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13168. fi
  13169. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13170. # powerpc, because MkLinux only supported shared libraries with the
  13171. # GNU dynamic linker. Since this was broken with cross compilers,
  13172. # most powerpc-linux boxes support dynamic linking these days and
  13173. # people can always --disable-shared, the test was removed, and we
  13174. # assume the GNU/Linux dynamic linker is in use.
  13175. dynamic_linker='GNU/Linux ld.so'
  13176. ;;
  13177. netbsdelf*-gnu)
  13178. version_type=linux
  13179. need_lib_prefix=no
  13180. need_version=no
  13181. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13182. soname_spec='${libname}${release}${shared_ext}$major'
  13183. shlibpath_var=LD_LIBRARY_PATH
  13184. shlibpath_overrides_runpath=no
  13185. hardcode_into_libs=yes
  13186. dynamic_linker='NetBSD ld.elf_so'
  13187. ;;
  13188. netbsd*)
  13189. version_type=sunos
  13190. need_lib_prefix=no
  13191. need_version=no
  13192. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13193. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13194. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13195. dynamic_linker='NetBSD (a.out) ld.so'
  13196. else
  13197. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13198. soname_spec='${libname}${release}${shared_ext}$major'
  13199. dynamic_linker='NetBSD ld.elf_so'
  13200. fi
  13201. shlibpath_var=LD_LIBRARY_PATH
  13202. shlibpath_overrides_runpath=yes
  13203. hardcode_into_libs=yes
  13204. ;;
  13205. newsos6)
  13206. version_type=linux
  13207. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13208. shlibpath_var=LD_LIBRARY_PATH
  13209. shlibpath_overrides_runpath=yes
  13210. ;;
  13211. *nto* | *qnx*)
  13212. version_type=qnx
  13213. need_lib_prefix=no
  13214. need_version=no
  13215. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13216. soname_spec='${libname}${release}${shared_ext}$major'
  13217. shlibpath_var=LD_LIBRARY_PATH
  13218. shlibpath_overrides_runpath=no
  13219. hardcode_into_libs=yes
  13220. dynamic_linker='ldqnx.so'
  13221. ;;
  13222. openbsd*)
  13223. version_type=sunos
  13224. sys_lib_dlsearch_path_spec="/usr/lib"
  13225. need_lib_prefix=no
  13226. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13227. case $host_os in
  13228. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13229. *) need_version=no ;;
  13230. esac
  13231. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13232. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13233. shlibpath_var=LD_LIBRARY_PATH
  13234. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13235. case $host_os in
  13236. openbsd2.[89] | openbsd2.[89].*)
  13237. shlibpath_overrides_runpath=no
  13238. ;;
  13239. *)
  13240. shlibpath_overrides_runpath=yes
  13241. ;;
  13242. esac
  13243. else
  13244. shlibpath_overrides_runpath=yes
  13245. fi
  13246. ;;
  13247. os2*)
  13248. libname_spec='$name'
  13249. shrext_cmds=".dll"
  13250. need_lib_prefix=no
  13251. library_names_spec='$libname${shared_ext} $libname.a'
  13252. dynamic_linker='OS/2 ld.exe'
  13253. shlibpath_var=LIBPATH
  13254. ;;
  13255. osf3* | osf4* | osf5*)
  13256. version_type=osf
  13257. need_lib_prefix=no
  13258. need_version=no
  13259. soname_spec='${libname}${release}${shared_ext}$major'
  13260. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13261. shlibpath_var=LD_LIBRARY_PATH
  13262. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13263. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13264. ;;
  13265. rdos*)
  13266. dynamic_linker=no
  13267. ;;
  13268. solaris*)
  13269. version_type=linux
  13270. need_lib_prefix=no
  13271. need_version=no
  13272. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13273. soname_spec='${libname}${release}${shared_ext}$major'
  13274. shlibpath_var=LD_LIBRARY_PATH
  13275. shlibpath_overrides_runpath=yes
  13276. hardcode_into_libs=yes
  13277. # ldd complains unless libraries are executable
  13278. postinstall_cmds='chmod +x $lib'
  13279. ;;
  13280. sunos4*)
  13281. version_type=sunos
  13282. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13283. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13284. shlibpath_var=LD_LIBRARY_PATH
  13285. shlibpath_overrides_runpath=yes
  13286. if test "$with_gnu_ld" = yes; then
  13287. need_lib_prefix=no
  13288. fi
  13289. need_version=yes
  13290. ;;
  13291. sysv4 | sysv4.3*)
  13292. version_type=linux
  13293. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13294. soname_spec='${libname}${release}${shared_ext}$major'
  13295. shlibpath_var=LD_LIBRARY_PATH
  13296. case $host_vendor in
  13297. sni)
  13298. shlibpath_overrides_runpath=no
  13299. need_lib_prefix=no
  13300. runpath_var=LD_RUN_PATH
  13301. ;;
  13302. siemens)
  13303. need_lib_prefix=no
  13304. ;;
  13305. motorola)
  13306. need_lib_prefix=no
  13307. need_version=no
  13308. shlibpath_overrides_runpath=no
  13309. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13310. ;;
  13311. esac
  13312. ;;
  13313. sysv4*MP*)
  13314. if test -d /usr/nec ;then
  13315. version_type=linux
  13316. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13317. soname_spec='$libname${shared_ext}.$major'
  13318. shlibpath_var=LD_LIBRARY_PATH
  13319. fi
  13320. ;;
  13321. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13322. version_type=freebsd-elf
  13323. need_lib_prefix=no
  13324. need_version=no
  13325. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13326. soname_spec='${libname}${release}${shared_ext}$major'
  13327. shlibpath_var=LD_LIBRARY_PATH
  13328. shlibpath_overrides_runpath=yes
  13329. hardcode_into_libs=yes
  13330. if test "$with_gnu_ld" = yes; then
  13331. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13332. else
  13333. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13334. case $host_os in
  13335. sco3.2v5*)
  13336. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13337. ;;
  13338. esac
  13339. fi
  13340. sys_lib_dlsearch_path_spec='/usr/lib'
  13341. ;;
  13342. tpf*)
  13343. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13344. version_type=linux
  13345. need_lib_prefix=no
  13346. need_version=no
  13347. library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13348. shlibpath_var=LD_LIBRARY_PATH
  13349. shlibpath_overrides_runpath=no
  13350. hardcode_into_libs=yes
  13351. ;;
  13352. uts4*)
  13353. version_type=linux
  13354. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13355. soname_spec='${libname}${release}${shared_ext}$major'
  13356. shlibpath_var=LD_LIBRARY_PATH
  13357. ;;
  13358. *)
  13359. dynamic_linker=no
  13360. ;;
  13361. esac
  13362. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  13363. echo "${ECHO_T}$dynamic_linker" >&6; }
  13364. test "$dynamic_linker" = no && can_build_shared=no
  13365. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13366. if test "$GCC" = yes; then
  13367. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13368. fi
  13369. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13370. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13371. fi
  13372. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13373. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13374. fi
  13375. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  13376. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  13377. hardcode_action_CXX=
  13378. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13379. test -n "$runpath_var_CXX" ||
  13380. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13381. # We can hardcode non-existent directories.
  13382. if test "$hardcode_direct_CXX" != no &&
  13383. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13384. # have to relink, otherwise we might link with an installed library
  13385. # when we should be linking with a yet-to-be-installed one
  13386. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13387. test "$hardcode_minus_L_CXX" != no; then
  13388. # Linking always hardcodes the temporary library directory.
  13389. hardcode_action_CXX=relink
  13390. else
  13391. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13392. hardcode_action_CXX=immediate
  13393. fi
  13394. else
  13395. # We cannot hardcode anything, or else we can only hardcode existing
  13396. # directories.
  13397. hardcode_action_CXX=unsupported
  13398. fi
  13399. { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  13400. echo "${ECHO_T}$hardcode_action_CXX" >&6; }
  13401. if test "$hardcode_action_CXX" = relink ||
  13402. test "$inherit_rpath_CXX" = yes; then
  13403. # Fast installation is not supported
  13404. enable_fast_install=no
  13405. elif test "$shlibpath_overrides_runpath" = yes ||
  13406. test "$enable_shared" = no; then
  13407. # Fast installation is not necessary
  13408. enable_fast_install=needless
  13409. fi
  13410. fi # test -n "$compiler"
  13411. CC=$lt_save_CC
  13412. LDCXX=$LD
  13413. LD=$lt_save_LD
  13414. GCC=$lt_save_GCC
  13415. with_gnu_ld=$lt_save_with_gnu_ld
  13416. lt_cv_path_LDCXX=$lt_cv_path_LD
  13417. lt_cv_path_LD=$lt_save_path_LD
  13418. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13419. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13420. fi # test "$_lt_caught_CXX_error" != yes
  13421. ac_ext=c
  13422. ac_cpp='$CPP $CPPFLAGS'
  13423. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13424. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13425. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13426. depcc="$CXX" am_compiler_list=
  13427. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  13428. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  13429. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  13430. echo $ECHO_N "(cached) $ECHO_C" >&6
  13431. else
  13432. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  13433. # We make a subdir and do the tests there. Otherwise we can end up
  13434. # making bogus files that we don't know about and never remove. For
  13435. # instance it was reported that on HP-UX the gcc test will end up
  13436. # making a dummy file named `D' -- because `-MD' means `put the output
  13437. # in D'.
  13438. mkdir conftest.dir
  13439. # Copy depcomp to subdir because otherwise we won't find it if we're
  13440. # using a relative directory.
  13441. cp "$am_depcomp" conftest.dir
  13442. cd conftest.dir
  13443. # We will build objects and dependencies in a subdirectory because
  13444. # it helps to detect inapplicable dependency modes. For instance
  13445. # both Tru64's cc and ICC support -MD to output dependencies as a
  13446. # side effect of compilation, but ICC will put the dependencies in
  13447. # the current directory while Tru64 will put them in the object
  13448. # directory.
  13449. mkdir sub
  13450. am_cv_CXX_dependencies_compiler_type=none
  13451. if test "$am_compiler_list" = ""; then
  13452. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  13453. fi
  13454. for depmode in $am_compiler_list; do
  13455. # Setup a source with many dependencies, because some compilers
  13456. # like to wrap large dependency lists on column 80 (with \), and
  13457. # we should not choose a depcomp mode which is confused by this.
  13458. #
  13459. # We need to recreate these files for each test, as the compiler may
  13460. # overwrite some of them when testing with obscure command lines.
  13461. # This happens at least with the AIX C compiler.
  13462. : > sub/conftest.c
  13463. for i in 1 2 3 4 5 6; do
  13464. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  13465. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  13466. # Solaris 8's {/usr,}/bin/sh.
  13467. touch sub/conftst$i.h
  13468. done
  13469. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  13470. case $depmode in
  13471. nosideeffect)
  13472. # after this tag, mechanisms are not by side-effect, so they'll
  13473. # only be used when explicitly requested
  13474. if test "x$enable_dependency_tracking" = xyes; then
  13475. continue
  13476. else
  13477. break
  13478. fi
  13479. ;;
  13480. none) break ;;
  13481. esac
  13482. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  13483. # mode. It turns out that the SunPro C++ compiler does not properly
  13484. # handle `-M -o', and we need to detect this.
  13485. if depmode=$depmode \
  13486. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  13487. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  13488. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  13489. >/dev/null 2>conftest.err &&
  13490. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  13491. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  13492. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  13493. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  13494. # icc doesn't choke on unknown options, it will just issue warnings
  13495. # or remarks (even with -Werror). So we grep stderr for any message
  13496. # that says an option was ignored or not supported.
  13497. # When given -MP, icc 7.0 and 7.1 complain thusly:
  13498. # icc: Command line warning: ignoring option '-M'; no argument required
  13499. # The diagnosis changed in icc 8.0:
  13500. # icc: Command line remark: option '-MP' not supported
  13501. if (grep 'ignoring option' conftest.err ||
  13502. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  13503. am_cv_CXX_dependencies_compiler_type=$depmode
  13504. break
  13505. fi
  13506. fi
  13507. done
  13508. cd ..
  13509. rm -rf conftest.dir
  13510. else
  13511. am_cv_CXX_dependencies_compiler_type=none
  13512. fi
  13513. fi
  13514. { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  13515. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  13516. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  13517. if
  13518. test "x$enable_dependency_tracking" != xno \
  13519. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  13520. am__fastdepCXX_TRUE=
  13521. am__fastdepCXX_FALSE='#'
  13522. else
  13523. am__fastdepCXX_TRUE='#'
  13524. am__fastdepCXX_FALSE=
  13525. fi
  13526. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13527. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  13528. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13529. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  13530. echo $ECHO_N "(cached) $ECHO_C" >&6
  13531. else
  13532. cat >conftest.make <<\_ACEOF
  13533. SHELL = /bin/sh
  13534. all:
  13535. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13536. _ACEOF
  13537. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  13538. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13539. *@@@%%%=?*=@@@%%%*)
  13540. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13541. *)
  13542. eval ac_cv_prog_make_${ac_make}_set=no;;
  13543. esac
  13544. rm -f conftest.make
  13545. fi
  13546. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13547. { echo "$as_me:$LINENO: result: yes" >&5
  13548. echo "${ECHO_T}yes" >&6; }
  13549. SET_MAKE=
  13550. else
  13551. { echo "$as_me:$LINENO: result: no" >&5
  13552. echo "${ECHO_T}no" >&6; }
  13553. SET_MAKE="MAKE=${MAKE-make}"
  13554. fi
  13555. { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  13556. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
  13557. if test "${ac_cv_c_bigendian+set}" = set; then
  13558. echo $ECHO_N "(cached) $ECHO_C" >&6
  13559. else
  13560. # See if sys/param.h defines the BYTE_ORDER macro.
  13561. cat >conftest.$ac_ext <<_ACEOF
  13562. /* confdefs.h. */
  13563. _ACEOF
  13564. cat confdefs.h >>conftest.$ac_ext
  13565. cat >>conftest.$ac_ext <<_ACEOF
  13566. /* end confdefs.h. */
  13567. #include <sys/types.h>
  13568. #include <sys/param.h>
  13569. int
  13570. main ()
  13571. {
  13572. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
  13573. && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
  13574. bogus endian macros
  13575. #endif
  13576. ;
  13577. return 0;
  13578. }
  13579. _ACEOF
  13580. rm -f conftest.$ac_objext
  13581. if { (ac_try="$ac_compile"
  13582. case "(($ac_try" in
  13583. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13584. *) ac_try_echo=$ac_try;;
  13585. esac
  13586. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13587. (eval "$ac_compile") 2>conftest.er1
  13588. ac_status=$?
  13589. grep -v '^ *+' conftest.er1 >conftest.err
  13590. rm -f conftest.er1
  13591. cat conftest.err >&5
  13592. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13593. (exit $ac_status); } && {
  13594. test -z "$ac_c_werror_flag" ||
  13595. test ! -s conftest.err
  13596. } && test -s conftest.$ac_objext; then
  13597. # It does; now see whether it defined to BIG_ENDIAN or not.
  13598. cat >conftest.$ac_ext <<_ACEOF
  13599. /* confdefs.h. */
  13600. _ACEOF
  13601. cat confdefs.h >>conftest.$ac_ext
  13602. cat >>conftest.$ac_ext <<_ACEOF
  13603. /* end confdefs.h. */
  13604. #include <sys/types.h>
  13605. #include <sys/param.h>
  13606. int
  13607. main ()
  13608. {
  13609. #if BYTE_ORDER != BIG_ENDIAN
  13610. not big endian
  13611. #endif
  13612. ;
  13613. return 0;
  13614. }
  13615. _ACEOF
  13616. rm -f conftest.$ac_objext
  13617. if { (ac_try="$ac_compile"
  13618. case "(($ac_try" in
  13619. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13620. *) ac_try_echo=$ac_try;;
  13621. esac
  13622. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13623. (eval "$ac_compile") 2>conftest.er1
  13624. ac_status=$?
  13625. grep -v '^ *+' conftest.er1 >conftest.err
  13626. rm -f conftest.er1
  13627. cat conftest.err >&5
  13628. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13629. (exit $ac_status); } && {
  13630. test -z "$ac_c_werror_flag" ||
  13631. test ! -s conftest.err
  13632. } && test -s conftest.$ac_objext; then
  13633. ac_cv_c_bigendian=yes
  13634. else
  13635. echo "$as_me: failed program was:" >&5
  13636. sed 's/^/| /' conftest.$ac_ext >&5
  13637. ac_cv_c_bigendian=no
  13638. fi
  13639. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13640. else
  13641. echo "$as_me: failed program was:" >&5
  13642. sed 's/^/| /' conftest.$ac_ext >&5
  13643. # It does not; compile a test program.
  13644. if test "$cross_compiling" = yes; then
  13645. # try to guess the endianness by grepping values into an object file
  13646. ac_cv_c_bigendian=unknown
  13647. cat >conftest.$ac_ext <<_ACEOF
  13648. /* confdefs.h. */
  13649. _ACEOF
  13650. cat confdefs.h >>conftest.$ac_ext
  13651. cat >>conftest.$ac_ext <<_ACEOF
  13652. /* end confdefs.h. */
  13653. short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  13654. short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  13655. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  13656. short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  13657. short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  13658. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  13659. int
  13660. main ()
  13661. {
  13662. _ascii (); _ebcdic ();
  13663. ;
  13664. return 0;
  13665. }
  13666. _ACEOF
  13667. rm -f conftest.$ac_objext
  13668. if { (ac_try="$ac_compile"
  13669. case "(($ac_try" in
  13670. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13671. *) ac_try_echo=$ac_try;;
  13672. esac
  13673. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13674. (eval "$ac_compile") 2>conftest.er1
  13675. ac_status=$?
  13676. grep -v '^ *+' conftest.er1 >conftest.err
  13677. rm -f conftest.er1
  13678. cat conftest.err >&5
  13679. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13680. (exit $ac_status); } && {
  13681. test -z "$ac_c_werror_flag" ||
  13682. test ! -s conftest.err
  13683. } && test -s conftest.$ac_objext; then
  13684. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  13685. ac_cv_c_bigendian=yes
  13686. fi
  13687. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  13688. if test "$ac_cv_c_bigendian" = unknown; then
  13689. ac_cv_c_bigendian=no
  13690. else
  13691. # finding both strings is unlikely to happen, but who knows?
  13692. ac_cv_c_bigendian=unknown
  13693. fi
  13694. fi
  13695. else
  13696. echo "$as_me: failed program was:" >&5
  13697. sed 's/^/| /' conftest.$ac_ext >&5
  13698. fi
  13699. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13700. else
  13701. cat >conftest.$ac_ext <<_ACEOF
  13702. /* confdefs.h. */
  13703. _ACEOF
  13704. cat confdefs.h >>conftest.$ac_ext
  13705. cat >>conftest.$ac_ext <<_ACEOF
  13706. /* end confdefs.h. */
  13707. $ac_includes_default
  13708. int
  13709. main ()
  13710. {
  13711. /* Are we little or big endian? From Harbison&Steele. */
  13712. union
  13713. {
  13714. long int l;
  13715. char c[sizeof (long int)];
  13716. } u;
  13717. u.l = 1;
  13718. return u.c[sizeof (long int) - 1] == 1;
  13719. ;
  13720. return 0;
  13721. }
  13722. _ACEOF
  13723. rm -f conftest$ac_exeext
  13724. if { (ac_try="$ac_link"
  13725. case "(($ac_try" in
  13726. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13727. *) ac_try_echo=$ac_try;;
  13728. esac
  13729. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13730. (eval "$ac_link") 2>&5
  13731. ac_status=$?
  13732. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13733. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13734. { (case "(($ac_try" in
  13735. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13736. *) ac_try_echo=$ac_try;;
  13737. esac
  13738. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13739. (eval "$ac_try") 2>&5
  13740. ac_status=$?
  13741. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13742. (exit $ac_status); }; }; then
  13743. ac_cv_c_bigendian=no
  13744. else
  13745. echo "$as_me: program exited with status $ac_status" >&5
  13746. echo "$as_me: failed program was:" >&5
  13747. sed 's/^/| /' conftest.$ac_ext >&5
  13748. ( exit $ac_status )
  13749. ac_cv_c_bigendian=yes
  13750. fi
  13751. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13752. fi
  13753. fi
  13754. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13755. fi
  13756. { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  13757. echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
  13758. case $ac_cv_c_bigendian in
  13759. yes)
  13760. cat >>confdefs.h <<\_ACEOF
  13761. #define WORDS_BIGENDIAN 1
  13762. _ACEOF
  13763. ;;
  13764. no)
  13765. ;;
  13766. *)
  13767. { { echo "$as_me:$LINENO: error: unknown endianness
  13768. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  13769. echo "$as_me: error: unknown endianness
  13770. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  13771. { (exit 1); exit 1; }; } ;;
  13772. esac
  13773. # Check whether --with-examples was given.
  13774. if test "${with_examples+set}" = set; then
  13775. withval=$with_examples;
  13776. else
  13777. with_examples="no"
  13778. fi
  13779. if test "x$with_examples" = "xyes"; then
  13780. BUILD_EXAMPLES_TRUE=
  13781. BUILD_EXAMPLES_FALSE='#'
  13782. else
  13783. BUILD_EXAMPLES_TRUE='#'
  13784. BUILD_EXAMPLES_FALSE=
  13785. fi
  13786. enable_IL="yes"
  13787. if test "x$enable_IL" = "xyes"; then
  13788. BUILD_IL_TRUE=
  13789. BUILD_IL_FALSE='#'
  13790. else
  13791. BUILD_IL_TRUE='#'
  13792. BUILD_IL_FALSE=
  13793. fi
  13794. # Check whether --enable-ILU was given.
  13795. if test "${enable_ILU+set}" = set; then
  13796. enableval=$enable_ILU;
  13797. else
  13798. enable_ILU="no"
  13799. fi
  13800. # Check whether --enable-ILUT was given.
  13801. if test "${enable_ILUT+set}" = set; then
  13802. enableval=$enable_ILUT;
  13803. else
  13804. enable_ILUT="no"
  13805. fi
  13806. if test "x$enable_ILU" = "xyes" -o "x$enable_ILUT" = "xyes"; then
  13807. BUILD_ILU_TRUE=
  13808. BUILD_ILU_FALSE='#'
  13809. else
  13810. BUILD_ILU_TRUE='#'
  13811. BUILD_ILU_FALSE=
  13812. fi
  13813. if test "x$enable_ILUT" = "xyes"; then
  13814. BUILD_ILUT_TRUE=
  13815. BUILD_ILUT_FALSE='#'
  13816. else
  13817. BUILD_ILUT_TRUE='#'
  13818. BUILD_ILUT_FALSE=
  13819. fi
  13820. if test "x$enable_ILU" = "xyes" -o "x$enable_ILUT" = "xyes"; then
  13821. cat >>confdefs.h <<\_ACEOF
  13822. #define ILU_ENABLED
  13823. _ACEOF
  13824. fi
  13825. { echo "$as_me:$LINENO: checking restrict keyword" >&5
  13826. echo $ECHO_N "checking restrict keyword... $ECHO_C" >&6; }
  13827. cat >conftest.$ac_ext <<_ACEOF
  13828. void foo(void * restrict test){}
  13829. _ACEOF
  13830. rm -f conftest.$ac_objext
  13831. if { (ac_try="$ac_compile"
  13832. case "(($ac_try" in
  13833. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13834. *) ac_try_echo=$ac_try;;
  13835. esac
  13836. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13837. (eval "$ac_compile") 2>conftest.er1
  13838. ac_status=$?
  13839. grep -v '^ *+' conftest.er1 >conftest.err
  13840. rm -f conftest.er1
  13841. cat conftest.err >&5
  13842. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13843. (exit $ac_status); } && {
  13844. test -z "$ac_c_werror_flag" ||
  13845. test ! -s conftest.err
  13846. } && test -s conftest.$ac_objext; then
  13847. cat >>confdefs.h <<\_ACEOF
  13848. #define RESTRICT_KEYWORD
  13849. _ACEOF
  13850. restrict_keyword="found"
  13851. { echo "$as_me:$LINENO: result: yes" >&5
  13852. echo "${ECHO_T}yes" >&6; }
  13853. else
  13854. echo "$as_me: failed program was:" >&5
  13855. sed 's/^/| /' conftest.$ac_ext >&5
  13856. { echo "$as_me:$LINENO: result: no" >&5
  13857. echo "${ECHO_T}no" >&6; }
  13858. fi
  13859. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13860. if test "x$restrict_keyword" = "xfound"; then
  13861. TMP_CFLAGS="$CFLAGS"
  13862. CFLAGS="$CFLAGS -std=gnu99 -fgnu89-inline"
  13863. { echo "$as_me:$LINENO: checking restrict gnu99 keyword" >&5
  13864. echo $ECHO_N "checking restrict gnu99 keyword... $ECHO_C" >&6; }
  13865. cat >conftest.$ac_ext <<_ACEOF
  13866. void foo(void * restrict test){}
  13867. _ACEOF
  13868. rm -f conftest.$ac_objext
  13869. if { (ac_try="$ac_compile"
  13870. case "(($ac_try" in
  13871. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13872. *) ac_try_echo=$ac_try;;
  13873. esac
  13874. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13875. (eval "$ac_compile") 2>conftest.er1
  13876. ac_status=$?
  13877. grep -v '^ *+' conftest.er1 >conftest.err
  13878. rm -f conftest.er1
  13879. cat conftest.err >&5
  13880. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13881. (exit $ac_status); } && {
  13882. test -z "$ac_c_werror_flag" ||
  13883. test ! -s conftest.err
  13884. } && test -s conftest.$ac_objext; then
  13885. cat >>confdefs.h <<\_ACEOF
  13886. #define RESTRICT_KEYWORD 1
  13887. _ACEOF
  13888. { echo "$as_me:$LINENO: result: yes" >&5
  13889. echo "${ECHO_T}yes" >&6; }
  13890. CFLAGS="$TMP_CFLAGS"
  13891. GENERAL_CFLAGS="$GENERAL_CFLAGS -std=gnu99 -fgnu89-inline"
  13892. else
  13893. echo "$as_me: failed program was:" >&5
  13894. sed 's/^/| /' conftest.$ac_ext >&5
  13895. { echo "$as_me:$LINENO: result: no" >&5
  13896. echo "${ECHO_T}no" >&6; }
  13897. CFLAGS="$TMP_CFLAGS"
  13898. fi
  13899. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13900. fi
  13901. # Check whether --enable-altivec was given.
  13902. if test "${enable_altivec+set}" = set; then
  13903. enableval=$enable_altivec; use_Altivec=$enable_altivec
  13904. test "x$enable_altivec" = "xyes" && enable_asm="yes"
  13905. else
  13906. use_Altivec=test
  13907. fi
  13908. { echo "$as_me:$LINENO: checking Altivec" >&5
  13909. echo $ECHO_N "checking Altivec... $ECHO_C" >&6; }
  13910. if test "$use_Altivec" = "yes"; then
  13911. cat >>confdefs.h <<\_ACEOF
  13912. #define ALTIVEC_GCC 1
  13913. _ACEOF
  13914. cat >>confdefs.h <<\_ACEOF
  13915. #define VECTORMEM 1
  13916. _ACEOF
  13917. GENERAL_CFLAGS="$GENERAL_CFLAGS -faltivec -maltivec"
  13918. { echo "$as_me:$LINENO: result: yes" >&5
  13919. echo "${ECHO_T}yes" >&6; }
  13920. SUPPORTED_EXTENSION=$SUPPORTED_EXTENSION"Altivec "
  13921. elif test "$use_Altivec" = "test" -a "x$enable_asm" = "xyes"; then
  13922. CFLAGS_TMP=$CFLAGS
  13923. CFLAGS="$CFLAGS -faltivec -maltivec"
  13924. cat >conftest.$ac_ext <<_ACEOF
  13925. int main()
  13926. {vector int vec;vec=vec_splat_u32(0);;return 0;}
  13927. _ACEOF
  13928. rm -f conftest.$ac_objext
  13929. if { (ac_try="$ac_compile"
  13930. case "(($ac_try" in
  13931. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13932. *) ac_try_echo=$ac_try;;
  13933. esac
  13934. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13935. (eval "$ac_compile") 2>conftest.er1
  13936. ac_status=$?
  13937. grep -v '^ *+' conftest.er1 >conftest.err
  13938. rm -f conftest.er1
  13939. cat conftest.err >&5
  13940. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13941. (exit $ac_status); } && {
  13942. test -z "$ac_c_werror_flag" ||
  13943. test ! -s conftest.err
  13944. } && test -s conftest.$ac_objext; then
  13945. cat >>confdefs.h <<\_ACEOF
  13946. #define ALTIVEC_GCC
  13947. _ACEOF
  13948. cat >>confdefs.h <<\_ACEOF
  13949. #define VECTORMEM
  13950. _ACEOF
  13951. GENERAL_CFLAGS="$GENERAL_CFLAGS -faltivec -maltivec"
  13952. { echo "$as_me:$LINENO: result: yes" >&5
  13953. echo "${ECHO_T}yes" >&6; }
  13954. SUPPORTED_EXTENSION=$SUPPORTED_EXTENSION"Altivec "
  13955. else
  13956. echo "$as_me: failed program was:" >&5
  13957. sed 's/^/| /' conftest.$ac_ext >&5
  13958. { echo "$as_me:$LINENO: result: no" >&5
  13959. echo "${ECHO_T}no" >&6; }
  13960. fi
  13961. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13962. CFLAGS="$CFLAGS_TMP"
  13963. else
  13964. { echo "$as_me:$LINENO: result: disabled" >&5
  13965. echo "${ECHO_T}disabled" >&6; }
  13966. fi
  13967. # Check whether --enable-sse was given.
  13968. if test "${enable_sse+set}" = set; then
  13969. enableval=$enable_sse; use_SSE=$enable_sse
  13970. test "x$enable_sse" = "xyes" && enable_asm="yes"
  13971. else
  13972. use_SSE=test
  13973. fi
  13974. { echo "$as_me:$LINENO: checking SSE" >&5
  13975. echo $ECHO_N "checking SSE... $ECHO_C" >&6; }
  13976. if test "$use_SSE" = "yes"; then
  13977. cat >>confdefs.h <<\_ACEOF
  13978. #define SSE 1
  13979. _ACEOF
  13980. cat >>confdefs.h <<\_ACEOF
  13981. #define VECTORMEM 1
  13982. _ACEOF
  13983. GENERAL_CFLAGS="$GENERAL_CFLAGS -msse"
  13984. { echo "$as_me:$LINENO: result: yes" >&5
  13985. echo "${ECHO_T}yes" >&6; }
  13986. SUPPORTED_EXTENSION=$SUPPORTED_EXTENSION"SSE "
  13987. elif test "$use_SSE" = "test" -a "x$enable_asm" = "xyes"; then
  13988. CFLAGS_TMP=$CFLAGS
  13989. CFLAGS="$CFLAGS -msse"
  13990. cat >conftest.$ac_ext <<_ACEOF
  13991. #include <xmmintrin.h>
  13992. int main()
  13993. {__m128 v;v=_mm_sub_ss(v,v);;return 0;}
  13994. _ACEOF
  13995. rm -f conftest.$ac_objext
  13996. if { (ac_try="$ac_compile"
  13997. case "(($ac_try" in
  13998. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13999. *) ac_try_echo=$ac_try;;
  14000. esac
  14001. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14002. (eval "$ac_compile") 2>conftest.er1
  14003. ac_status=$?
  14004. grep -v '^ *+' conftest.er1 >conftest.err
  14005. rm -f conftest.er1
  14006. cat conftest.err >&5
  14007. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14008. (exit $ac_status); } && {
  14009. test -z "$ac_c_werror_flag" ||
  14010. test ! -s conftest.err
  14011. } && test -s conftest.$ac_objext; then
  14012. cat >>confdefs.h <<\_ACEOF
  14013. #define SSE
  14014. _ACEOF
  14015. cat >>confdefs.h <<\_ACEOF
  14016. #define VECTORMEM
  14017. _ACEOF
  14018. GENERAL_CFLAGS="$GENERAL_CFLAGS -msse"
  14019. { echo "$as_me:$LINENO: result: yes" >&5
  14020. echo "${ECHO_T}yes" >&6; }
  14021. SUPPORTED_EXTENSION=$SUPPORTED_EXTENSION"SSE "
  14022. else
  14023. echo "$as_me: failed program was:" >&5
  14024. sed 's/^/| /' conftest.$ac_ext >&5
  14025. { echo "$as_me:$LINENO: result: no" >&5
  14026. echo "${ECHO_T}no" >&6; }
  14027. fi
  14028. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14029. CFLAGS="$CFLAGS_TMP"
  14030. else
  14031. { echo "$as_me:$LINENO: result: disabled" >&5
  14032. echo "${ECHO_T}disabled" >&6; }
  14033. fi
  14034. # Check whether --enable-sse2 was given.
  14035. if test "${enable_sse2+set}" = set; then
  14036. enableval=$enable_sse2; use_SSE2=$enable_sse2
  14037. test "x$enable_sse2" = "xyes" && enable_asm="yes"
  14038. else
  14039. use_SSE2=test
  14040. fi
  14041. { echo "$as_me:$LINENO: checking SSE2" >&5
  14042. echo $ECHO_N "checking SSE2... $ECHO_C" >&6; }
  14043. if test "$use_SSE2" = "yes"; then
  14044. cat >>confdefs.h <<\_ACEOF
  14045. #define SSE2 1
  14046. _ACEOF
  14047. cat >>confdefs.h <<\_ACEOF
  14048. #define VECTORMEM 1
  14049. _ACEOF
  14050. GENERAL_CFLAGS="$GENERAL_CFLAGS -msse2"
  14051. { echo "$as_me:$LINENO: result: yes" >&5
  14052. echo "${ECHO_T}yes" >&6; }
  14053. SUPPORTED_EXTENSION=$SUPPORTED_EXTENSION"SSE2 "
  14054. elif test "$use_SSE2" = "test" -a "x$enable_asm" = "xyes"; then
  14055. CFLAGS_TMP=$CFLAGS
  14056. CFLAGS="$CFLAGS -msse2"
  14057. cat >conftest.$ac_ext <<_ACEOF
  14058. #include <emmintrin.h>
  14059. int main()
  14060. {__m128i v;v=_mm_add_epi32(v,v);;return 0;}
  14061. _ACEOF
  14062. rm -f conftest.$ac_objext
  14063. if { (ac_try="$ac_compile"
  14064. case "(($ac_try" in
  14065. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14066. *) ac_try_echo=$ac_try;;
  14067. esac
  14068. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14069. (eval "$ac_compile") 2>conftest.er1
  14070. ac_status=$?
  14071. grep -v '^ *+' conftest.er1 >conftest.err
  14072. rm -f conftest.er1
  14073. cat conftest.err >&5
  14074. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14075. (exit $ac_status); } && {
  14076. test -z "$ac_c_werror_flag" ||
  14077. test ! -s conftest.err
  14078. } && test -s conftest.$ac_objext; then
  14079. cat >>confdefs.h <<\_ACEOF
  14080. #define SSE2
  14081. _ACEOF
  14082. cat >>confdefs.h <<\_ACEOF
  14083. #define VECTORMEM
  14084. _ACEOF
  14085. GENERAL_CFLAGS="$GENERAL_CFLAGS -msse2"
  14086. { echo "$as_me:$LINENO: result: yes" >&5
  14087. echo "${ECHO_T}yes" >&6; }
  14088. SUPPORTED_EXTENSION=$SUPPORTED_EXTENSION"SSE2 "
  14089. else
  14090. echo "$as_me: failed program was:" >&5
  14091. sed 's/^/| /' conftest.$ac_ext >&5
  14092. { echo "$as_me:$LINENO: result: no" >&5
  14093. echo "${ECHO_T}no" >&6; }
  14094. fi
  14095. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14096. CFLAGS="$CFLAGS_TMP"
  14097. else
  14098. { echo "$as_me:$LINENO: result: disabled" >&5
  14099. echo "${ECHO_T}disabled" >&6; }
  14100. fi
  14101. # Check whether --enable-sse3 was given.
  14102. if test "${enable_sse3+set}" = set; then
  14103. enableval=$enable_sse3; use_SSE3=$enable_sse3
  14104. test "x$enable_sse3" = "xyes" && enable_asm="yes"
  14105. else
  14106. use_SSE3=test
  14107. fi
  14108. { echo "$as_me:$LINENO: checking SSE3" >&5
  14109. echo $ECHO_N "checking SSE3... $ECHO_C" >&6; }
  14110. if test "$use_SSE3" = "yes"; then
  14111. cat >>confdefs.h <<\_ACEOF
  14112. #define SSE3 1
  14113. _ACEOF
  14114. cat >>confdefs.h <<\_ACEOF
  14115. #define VECTORMEM 1
  14116. _ACEOF
  14117. GENERAL_CFLAGS="$GENERAL_CFLAGS -msse3"
  14118. { echo "$as_me:$LINENO: result: yes" >&5
  14119. echo "${ECHO_T}yes" >&6; }
  14120. SUPPORTED_EXTENSION=$SUPPORTED_EXTENSION"SSE3 "
  14121. elif test "$use_SSE3" = "test" -a "x$enable_asm" = "xyes"; then
  14122. CFLAGS_TMP=$CFLAGS
  14123. CFLAGS="$CFLAGS -msse3"
  14124. cat >conftest.$ac_ext <<_ACEOF
  14125. #include <pmmintrin.h>
  14126. int main()
  14127. {__m128d v;v=_mm_addsub_pd(v,v);;return 0;}
  14128. _ACEOF
  14129. rm -f conftest.$ac_objext
  14130. if { (ac_try="$ac_compile"
  14131. case "(($ac_try" in
  14132. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14133. *) ac_try_echo=$ac_try;;
  14134. esac
  14135. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14136. (eval "$ac_compile") 2>conftest.er1
  14137. ac_status=$?
  14138. grep -v '^ *+' conftest.er1 >conftest.err
  14139. rm -f conftest.er1
  14140. cat conftest.err >&5
  14141. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14142. (exit $ac_status); } && {
  14143. test -z "$ac_c_werror_flag" ||
  14144. test ! -s conftest.err
  14145. } && test -s conftest.$ac_objext; then
  14146. cat >>confdefs.h <<\_ACEOF
  14147. #define SSE3
  14148. _ACEOF
  14149. cat >>confdefs.h <<\_ACEOF
  14150. #define VECTORMEM
  14151. _ACEOF
  14152. GENERAL_CFLAGS="$GENERAL_CFLAGS -msse3"
  14153. { echo "$as_me:$LINENO: result: yes" >&5
  14154. echo "${ECHO_T}yes" >&6; }
  14155. SUPPORTED_EXTENSION=$SUPPORTED_EXTENSION"SSE3 "
  14156. else
  14157. echo "$as_me: failed program was:" >&5
  14158. sed 's/^/| /' conftest.$ac_ext >&5
  14159. { echo "$as_me:$LINENO: result: no" >&5
  14160. echo "${ECHO_T}no" >&6; }
  14161. fi
  14162. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14163. CFLAGS="$CFLAGS_TMP"
  14164. else
  14165. { echo "$as_me:$LINENO: result: disabled" >&5
  14166. echo "${ECHO_T}disabled" >&6; }
  14167. fi
  14168. if test "x$enable_asm" = "xyes"; then
  14169. # Check whether --enable-x86 was given.
  14170. if test "${enable_x86+set}" = set; then
  14171. enableval=$enable_x86; use_x86=$enable_x86
  14172. else
  14173. use_x86=test
  14174. fi
  14175. { echo "$as_me:$LINENO: checking x86" >&5
  14176. echo $ECHO_N "checking x86... $ECHO_C" >&6; }
  14177. if test "$use_x86" = "yes"; then
  14178. SUPPORTED_EXTENSION=$SUPPORTED_EXTENSION"X86_ASM "
  14179. cat >>confdefs.h <<\_ACEOF
  14180. #define GCC_X86_ASM
  14181. _ACEOF
  14182. { echo "$as_me:$LINENO: result: yes" >&5
  14183. echo "${ECHO_T}yes" >&6; }
  14184. elif test "$use_x86" = "no"; then
  14185. { echo "$as_me:$LINENO: result: no" >&5
  14186. echo "${ECHO_T}no" >&6; }
  14187. else
  14188. case $host_cpu in
  14189. i[3456]86*) SUPPORTED_EXTENSION=$SUPPORTED_EXTENSION"X86_ASM "
  14190. cat >>confdefs.h <<\_ACEOF
  14191. #define GCC_X86_ASM
  14192. _ACEOF
  14193. { echo "$as_me:$LINENO: result: yes" >&5
  14194. echo "${ECHO_T}yes" >&6; } ;;
  14195. *) { echo "$as_me:$LINENO: result: no" >&5
  14196. echo "${ECHO_T}no" >&6; } ;;
  14197. esac
  14198. fi
  14199. # Check whether --enable-x86_64 was given.
  14200. if test "${enable_x86_64+set}" = set; then
  14201. enableval=$enable_x86_64; use_x86_64=$enable_x86_64
  14202. else
  14203. use_x86_64=test
  14204. fi
  14205. { echo "$as_me:$LINENO: checking x86_64" >&5
  14206. echo $ECHO_N "checking x86_64... $ECHO_C" >&6; }
  14207. if test "$use_x86_64" = "yes"; then
  14208. SUPPORTED_EXTENSION=$SUPPORTED_EXTENSION"X86_64_ASM "
  14209. cat >>confdefs.h <<\_ACEOF
  14210. #define GCC_X86_64_ASM
  14211. _ACEOF
  14212. { echo "$as_me:$LINENO: result: yes" >&5
  14213. echo "${ECHO_T}yes" >&6; }
  14214. elif test "$use_x86_64" = "no"; then
  14215. { echo "$as_me:$LINENO: result: no" >&5
  14216. echo "${ECHO_T}no" >&6; }
  14217. else
  14218. case $host_cpu in
  14219. x86_64*) SUPPORTED_EXTENSION=$SUPPORTED_EXTENSION"X86_64_ASM "
  14220. cat >>confdefs.h <<\_ACEOF
  14221. #define GCC_X86_64_ASM
  14222. _ACEOF
  14223. { echo "$as_me:$LINENO: result: yes" >&5
  14224. echo "${ECHO_T}yes" >&6; } ;;
  14225. *) { echo "$as_me:$LINENO: result: no" >&5
  14226. echo "${ECHO_T}no" >&6; } ;;
  14227. esac
  14228. fi
  14229. # Check whether --enable-ppc was given.
  14230. if test "${enable_ppc+set}" = set; then
  14231. enableval=$enable_ppc; use_ppc=$enable_ppc
  14232. else
  14233. use_ppc=test
  14234. fi
  14235. { echo "$as_me:$LINENO: checking ppc" >&5
  14236. echo $ECHO_N "checking ppc... $ECHO_C" >&6; }
  14237. if test "$use_ppc" = "yes"; then
  14238. SUPPORTED_EXTENSION=$SUPPORTED_EXTENSION"PPC_ASM "
  14239. cat >>confdefs.h <<\_ACEOF
  14240. #define GCC_PCC_ASM
  14241. _ACEOF
  14242. { echo "$as_me:$LINENO: result: yes" >&5
  14243. echo "${ECHO_T}yes" >&6; }
  14244. elif test "$use_ppc" = "no"; then
  14245. { echo "$as_me:$LINENO: result: no" >&5
  14246. echo "${ECHO_T}no" >&6; }
  14247. else
  14248. case $host_cpu in
  14249. powerpc*) SUPPORTED_EXTENSION=$SUPPORTED_EXTENSION"PPC_ASM "
  14250. cat >>confdefs.h <<\_ACEOF
  14251. #define GCC_PCC_ASM
  14252. _ACEOF
  14253. { echo "$as_me:$LINENO: result: yes" >&5
  14254. echo "${ECHO_T}yes" >&6; } ;;
  14255. *) { echo "$as_me:$LINENO: result: no" >&5
  14256. echo "${ECHO_T}no" >&6; } ;;
  14257. esac
  14258. fi
  14259. if test -n "$SUPPORTED_EXTENSION"; then
  14260. cat >>confdefs.h <<\_ACEOF
  14261. #define IL_INLINE_ASM 1
  14262. _ACEOF
  14263. fi
  14264. fi
  14265. # Check whether --enable-warning was given.
  14266. if test "${enable_warning+set}" = set; then
  14267. enableval=$enable_warning; build_warning="$enable_warning"
  14268. else
  14269. build_warning="no"
  14270. fi
  14271. if test "$build_warning" = "yes"; then
  14272. GENERAL_CFLAGS="$GENERAL_CFLAGS -Wall -Werror"
  14273. fi
  14274. { echo "$as_me:$LINENO: checking for valloc" >&5
  14275. echo $ECHO_N "checking for valloc... $ECHO_C" >&6; }
  14276. if test "${ac_cv_func_valloc+set}" = set; then
  14277. echo $ECHO_N "(cached) $ECHO_C" >&6
  14278. else
  14279. cat >conftest.$ac_ext <<_ACEOF
  14280. /* confdefs.h. */
  14281. _ACEOF
  14282. cat confdefs.h >>conftest.$ac_ext
  14283. cat >>conftest.$ac_ext <<_ACEOF
  14284. /* end confdefs.h. */
  14285. /* Define valloc to an innocuous variant, in case <limits.h> declares valloc.
  14286. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  14287. #define valloc innocuous_valloc
  14288. /* System header to define __stub macros and hopefully few prototypes,
  14289. which can conflict with char valloc (); below.
  14290. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  14291. <limits.h> exists even on freestanding compilers. */
  14292. #ifdef __STDC__
  14293. # include <limits.h>
  14294. #else
  14295. # include <assert.h>
  14296. #endif
  14297. #undef valloc
  14298. /* Override any GCC internal prototype to avoid an error.
  14299. Use char because int might match the return type of a GCC
  14300. builtin and then its argument prototype would still apply. */
  14301. #ifdef __cplusplus
  14302. extern "C"
  14303. #endif
  14304. char valloc ();
  14305. /* The GNU C library defines this for functions which it implements
  14306. to always fail with ENOSYS. Some functions are actually named
  14307. something starting with __ and the normal name is an alias. */
  14308. #if defined __stub_valloc || defined __stub___valloc
  14309. choke me
  14310. #endif
  14311. int
  14312. main ()
  14313. {
  14314. return valloc ();
  14315. ;
  14316. return 0;
  14317. }
  14318. _ACEOF
  14319. rm -f conftest.$ac_objext conftest$ac_exeext
  14320. if { (ac_try="$ac_link"
  14321. case "(($ac_try" in
  14322. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14323. *) ac_try_echo=$ac_try;;
  14324. esac
  14325. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14326. (eval "$ac_link") 2>conftest.er1
  14327. ac_status=$?
  14328. grep -v '^ *+' conftest.er1 >conftest.err
  14329. rm -f conftest.er1
  14330. cat conftest.err >&5
  14331. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14332. (exit $ac_status); } && {
  14333. test -z "$ac_c_werror_flag" ||
  14334. test ! -s conftest.err
  14335. } && test -s conftest$ac_exeext &&
  14336. $as_test_x conftest$ac_exeext; then
  14337. ac_cv_func_valloc=yes
  14338. else
  14339. echo "$as_me: failed program was:" >&5
  14340. sed 's/^/| /' conftest.$ac_ext >&5
  14341. ac_cv_func_valloc=no
  14342. fi
  14343. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14344. conftest$ac_exeext conftest.$ac_ext
  14345. fi
  14346. { echo "$as_me:$LINENO: result: $ac_cv_func_valloc" >&5
  14347. echo "${ECHO_T}$ac_cv_func_valloc" >&6; }
  14348. if test $ac_cv_func_valloc = yes; then
  14349. cat >>confdefs.h <<\_ACEOF
  14350. #define VALLOC 1
  14351. _ACEOF
  14352. fi
  14353. { echo "$as_me:$LINENO: checking for posix_memalign" >&5
  14354. echo $ECHO_N "checking for posix_memalign... $ECHO_C" >&6; }
  14355. if test "${ac_cv_func_posix_memalign+set}" = set; then
  14356. echo $ECHO_N "(cached) $ECHO_C" >&6
  14357. else
  14358. cat >conftest.$ac_ext <<_ACEOF
  14359. /* confdefs.h. */
  14360. _ACEOF
  14361. cat confdefs.h >>conftest.$ac_ext
  14362. cat >>conftest.$ac_ext <<_ACEOF
  14363. /* end confdefs.h. */
  14364. /* Define posix_memalign to an innocuous variant, in case <limits.h> declares posix_memalign.
  14365. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  14366. #define posix_memalign innocuous_posix_memalign
  14367. /* System header to define __stub macros and hopefully few prototypes,
  14368. which can conflict with char posix_memalign (); below.
  14369. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  14370. <limits.h> exists even on freestanding compilers. */
  14371. #ifdef __STDC__
  14372. # include <limits.h>
  14373. #else
  14374. # include <assert.h>
  14375. #endif
  14376. #undef posix_memalign
  14377. /* Override any GCC internal prototype to avoid an error.
  14378. Use char because int might match the return type of a GCC
  14379. builtin and then its argument prototype would still apply. */
  14380. #ifdef __cplusplus
  14381. extern "C"
  14382. #endif
  14383. char posix_memalign ();
  14384. /* The GNU C library defines this for functions which it implements
  14385. to always fail with ENOSYS. Some functions are actually named
  14386. something starting with __ and the normal name is an alias. */
  14387. #if defined __stub_posix_memalign || defined __stub___posix_memalign
  14388. choke me
  14389. #endif
  14390. int
  14391. main ()
  14392. {
  14393. return posix_memalign ();
  14394. ;
  14395. return 0;
  14396. }
  14397. _ACEOF
  14398. rm -f conftest.$ac_objext conftest$ac_exeext
  14399. if { (ac_try="$ac_link"
  14400. case "(($ac_try" in
  14401. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14402. *) ac_try_echo=$ac_try;;
  14403. esac
  14404. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14405. (eval "$ac_link") 2>conftest.er1
  14406. ac_status=$?
  14407. grep -v '^ *+' conftest.er1 >conftest.err
  14408. rm -f conftest.er1
  14409. cat conftest.err >&5
  14410. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14411. (exit $ac_status); } && {
  14412. test -z "$ac_c_werror_flag" ||
  14413. test ! -s conftest.err
  14414. } && test -s conftest$ac_exeext &&
  14415. $as_test_x conftest$ac_exeext; then
  14416. ac_cv_func_posix_memalign=yes
  14417. else
  14418. echo "$as_me: failed program was:" >&5
  14419. sed 's/^/| /' conftest.$ac_ext >&5
  14420. ac_cv_func_posix_memalign=no
  14421. fi
  14422. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14423. conftest$ac_exeext conftest.$ac_ext
  14424. fi
  14425. { echo "$as_me:$LINENO: result: $ac_cv_func_posix_memalign" >&5
  14426. echo "${ECHO_T}$ac_cv_func_posix_memalign" >&6; }
  14427. if test $ac_cv_func_posix_memalign = yes; then
  14428. cat >>confdefs.h <<\_ACEOF
  14429. #define POSIX_MEMALIGN 1
  14430. _ACEOF
  14431. fi
  14432. { echo "$as_me:$LINENO: checking for memalign" >&5
  14433. echo $ECHO_N "checking for memalign... $ECHO_C" >&6; }
  14434. if test "${ac_cv_func_memalign+set}" = set; then
  14435. echo $ECHO_N "(cached) $ECHO_C" >&6
  14436. else
  14437. cat >conftest.$ac_ext <<_ACEOF
  14438. /* confdefs.h. */
  14439. _ACEOF
  14440. cat confdefs.h >>conftest.$ac_ext
  14441. cat >>conftest.$ac_ext <<_ACEOF
  14442. /* end confdefs.h. */
  14443. /* Define memalign to an innocuous variant, in case <limits.h> declares memalign.
  14444. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  14445. #define memalign innocuous_memalign
  14446. /* System header to define __stub macros and hopefully few prototypes,
  14447. which can conflict with char memalign (); below.
  14448. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  14449. <limits.h> exists even on freestanding compilers. */
  14450. #ifdef __STDC__
  14451. # include <limits.h>
  14452. #else
  14453. # include <assert.h>
  14454. #endif
  14455. #undef memalign
  14456. /* Override any GCC internal prototype to avoid an error.
  14457. Use char because int might match the return type of a GCC
  14458. builtin and then its argument prototype would still apply. */
  14459. #ifdef __cplusplus
  14460. extern "C"
  14461. #endif
  14462. char memalign ();
  14463. /* The GNU C library defines this for functions which it implements
  14464. to always fail with ENOSYS. Some functions are actually named
  14465. something starting with __ and the normal name is an alias. */
  14466. #if defined __stub_memalign || defined __stub___memalign
  14467. choke me
  14468. #endif
  14469. int
  14470. main ()
  14471. {
  14472. return memalign ();
  14473. ;
  14474. return 0;
  14475. }
  14476. _ACEOF
  14477. rm -f conftest.$ac_objext conftest$ac_exeext
  14478. if { (ac_try="$ac_link"
  14479. case "(($ac_try" in
  14480. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14481. *) ac_try_echo=$ac_try;;
  14482. esac
  14483. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14484. (eval "$ac_link") 2>conftest.er1
  14485. ac_status=$?
  14486. grep -v '^ *+' conftest.er1 >conftest.err
  14487. rm -f conftest.er1
  14488. cat conftest.err >&5
  14489. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14490. (exit $ac_status); } && {
  14491. test -z "$ac_c_werror_flag" ||
  14492. test ! -s conftest.err
  14493. } && test -s conftest$ac_exeext &&
  14494. $as_test_x conftest$ac_exeext; then
  14495. ac_cv_func_memalign=yes
  14496. else
  14497. echo "$as_me: failed program was:" >&5
  14498. sed 's/^/| /' conftest.$ac_ext >&5
  14499. ac_cv_func_memalign=no
  14500. fi
  14501. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14502. conftest$ac_exeext conftest.$ac_ext
  14503. fi
  14504. { echo "$as_me:$LINENO: result: $ac_cv_func_memalign" >&5
  14505. echo "${ECHO_T}$ac_cv_func_memalign" >&6; }
  14506. if test $ac_cv_func_memalign = yes; then
  14507. cat >>confdefs.h <<\_ACEOF
  14508. #define MEMALIGN 1
  14509. _ACEOF
  14510. fi
  14511. if test "${ac_cv_header_mm_malloc_h+set}" = set; then
  14512. { echo "$as_me:$LINENO: checking for mm_malloc.h" >&5
  14513. echo $ECHO_N "checking for mm_malloc.h... $ECHO_C" >&6; }
  14514. if test "${ac_cv_header_mm_malloc_h+set}" = set; then
  14515. echo $ECHO_N "(cached) $ECHO_C" >&6
  14516. fi
  14517. { echo "$as_me:$LINENO: result: $ac_cv_header_mm_malloc_h" >&5
  14518. echo "${ECHO_T}$ac_cv_header_mm_malloc_h" >&6; }
  14519. else
  14520. # Is the header compilable?
  14521. { echo "$as_me:$LINENO: checking mm_malloc.h usability" >&5
  14522. echo $ECHO_N "checking mm_malloc.h usability... $ECHO_C" >&6; }
  14523. cat >conftest.$ac_ext <<_ACEOF
  14524. /* confdefs.h. */
  14525. _ACEOF
  14526. cat confdefs.h >>conftest.$ac_ext
  14527. cat >>conftest.$ac_ext <<_ACEOF
  14528. /* end confdefs.h. */
  14529. $ac_includes_default
  14530. #include <mm_malloc.h>
  14531. _ACEOF
  14532. rm -f conftest.$ac_objext
  14533. if { (ac_try="$ac_compile"
  14534. case "(($ac_try" in
  14535. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14536. *) ac_try_echo=$ac_try;;
  14537. esac
  14538. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14539. (eval "$ac_compile") 2>conftest.er1
  14540. ac_status=$?
  14541. grep -v '^ *+' conftest.er1 >conftest.err
  14542. rm -f conftest.er1
  14543. cat conftest.err >&5
  14544. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14545. (exit $ac_status); } && {
  14546. test -z "$ac_c_werror_flag" ||
  14547. test ! -s conftest.err
  14548. } && test -s conftest.$ac_objext; then
  14549. ac_header_compiler=yes
  14550. else
  14551. echo "$as_me: failed program was:" >&5
  14552. sed 's/^/| /' conftest.$ac_ext >&5
  14553. ac_header_compiler=no
  14554. fi
  14555. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14556. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14557. echo "${ECHO_T}$ac_header_compiler" >&6; }
  14558. # Is the header present?
  14559. { echo "$as_me:$LINENO: checking mm_malloc.h presence" >&5
  14560. echo $ECHO_N "checking mm_malloc.h presence... $ECHO_C" >&6; }
  14561. cat >conftest.$ac_ext <<_ACEOF
  14562. /* confdefs.h. */
  14563. _ACEOF
  14564. cat confdefs.h >>conftest.$ac_ext
  14565. cat >>conftest.$ac_ext <<_ACEOF
  14566. /* end confdefs.h. */
  14567. #include <mm_malloc.h>
  14568. _ACEOF
  14569. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14570. case "(($ac_try" in
  14571. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14572. *) ac_try_echo=$ac_try;;
  14573. esac
  14574. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14575. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14576. ac_status=$?
  14577. grep -v '^ *+' conftest.er1 >conftest.err
  14578. rm -f conftest.er1
  14579. cat conftest.err >&5
  14580. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14581. (exit $ac_status); } >/dev/null && {
  14582. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  14583. test ! -s conftest.err
  14584. }; then
  14585. ac_header_preproc=yes
  14586. else
  14587. echo "$as_me: failed program was:" >&5
  14588. sed 's/^/| /' conftest.$ac_ext >&5
  14589. ac_header_preproc=no
  14590. fi
  14591. rm -f conftest.err conftest.$ac_ext
  14592. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14593. echo "${ECHO_T}$ac_header_preproc" >&6; }
  14594. # So? What about this header?
  14595. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  14596. yes:no: )
  14597. { echo "$as_me:$LINENO: WARNING: mm_malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
  14598. echo "$as_me: WARNING: mm_malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14599. { echo "$as_me:$LINENO: WARNING: mm_malloc.h: proceeding with the compiler's result" >&5
  14600. echo "$as_me: WARNING: mm_malloc.h: proceeding with the compiler's result" >&2;}
  14601. ac_header_preproc=yes
  14602. ;;
  14603. no:yes:* )
  14604. { echo "$as_me:$LINENO: WARNING: mm_malloc.h: present but cannot be compiled" >&5
  14605. echo "$as_me: WARNING: mm_malloc.h: present but cannot be compiled" >&2;}
  14606. { echo "$as_me:$LINENO: WARNING: mm_malloc.h: check for missing prerequisite headers?" >&5
  14607. echo "$as_me: WARNING: mm_malloc.h: check for missing prerequisite headers?" >&2;}
  14608. { echo "$as_me:$LINENO: WARNING: mm_malloc.h: see the Autoconf documentation" >&5
  14609. echo "$as_me: WARNING: mm_malloc.h: see the Autoconf documentation" >&2;}
  14610. { echo "$as_me:$LINENO: WARNING: mm_malloc.h: section \"Present But Cannot Be Compiled\"" >&5
  14611. echo "$as_me: WARNING: mm_malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
  14612. { echo "$as_me:$LINENO: WARNING: mm_malloc.h: proceeding with the preprocessor's result" >&5
  14613. echo "$as_me: WARNING: mm_malloc.h: proceeding with the preprocessor's result" >&2;}
  14614. { echo "$as_me:$LINENO: WARNING: mm_malloc.h: in the future, the compiler will take precedence" >&5
  14615. echo "$as_me: WARNING: mm_malloc.h: in the future, the compiler will take precedence" >&2;}
  14616. ( cat <<\_ASBOX
  14617. ## ------------------------------------------ ##
  14618. ## Report this to bubla@users.sourceforge.net ##
  14619. ## ------------------------------------------ ##
  14620. _ASBOX
  14621. ) | sed "s/^/$as_me: WARNING: /" >&2
  14622. ;;
  14623. esac
  14624. { echo "$as_me:$LINENO: checking for mm_malloc.h" >&5
  14625. echo $ECHO_N "checking for mm_malloc.h... $ECHO_C" >&6; }
  14626. if test "${ac_cv_header_mm_malloc_h+set}" = set; then
  14627. echo $ECHO_N "(cached) $ECHO_C" >&6
  14628. else
  14629. ac_cv_header_mm_malloc_h=$ac_header_preproc
  14630. fi
  14631. { echo "$as_me:$LINENO: result: $ac_cv_header_mm_malloc_h" >&5
  14632. echo "${ECHO_T}$ac_cv_header_mm_malloc_h" >&6; }
  14633. fi
  14634. if test $ac_cv_header_mm_malloc_h = yes; then
  14635. cat >>confdefs.h <<\_ACEOF
  14636. #define MM_MALLOC 1
  14637. _ACEOF
  14638. fi
  14639. # Check whether --with-zlib was given.
  14640. if test "${with_zlib+set}" = set; then
  14641. withval=$with_zlib;
  14642. else
  14643. enable_zlib="yes"
  14644. fi
  14645. if test "x$enable_zlib" = "xyes"; then
  14646. if test "${ac_cv_header_zlib_h+set}" = set; then
  14647. { echo "$as_me:$LINENO: checking for zlib.h" >&5
  14648. echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
  14649. if test "${ac_cv_header_zlib_h+set}" = set; then
  14650. echo $ECHO_N "(cached) $ECHO_C" >&6
  14651. fi
  14652. { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
  14653. echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
  14654. else
  14655. # Is the header compilable?
  14656. { echo "$as_me:$LINENO: checking zlib.h usability" >&5
  14657. echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
  14658. cat >conftest.$ac_ext <<_ACEOF
  14659. /* confdefs.h. */
  14660. _ACEOF
  14661. cat confdefs.h >>conftest.$ac_ext
  14662. cat >>conftest.$ac_ext <<_ACEOF
  14663. /* end confdefs.h. */
  14664. $ac_includes_default
  14665. #include <zlib.h>
  14666. _ACEOF
  14667. rm -f conftest.$ac_objext
  14668. if { (ac_try="$ac_compile"
  14669. case "(($ac_try" in
  14670. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14671. *) ac_try_echo=$ac_try;;
  14672. esac
  14673. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14674. (eval "$ac_compile") 2>conftest.er1
  14675. ac_status=$?
  14676. grep -v '^ *+' conftest.er1 >conftest.err
  14677. rm -f conftest.er1
  14678. cat conftest.err >&5
  14679. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14680. (exit $ac_status); } && {
  14681. test -z "$ac_c_werror_flag" ||
  14682. test ! -s conftest.err
  14683. } && test -s conftest.$ac_objext; then
  14684. ac_header_compiler=yes
  14685. else
  14686. echo "$as_me: failed program was:" >&5
  14687. sed 's/^/| /' conftest.$ac_ext >&5
  14688. ac_header_compiler=no
  14689. fi
  14690. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14691. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14692. echo "${ECHO_T}$ac_header_compiler" >&6; }
  14693. # Is the header present?
  14694. { echo "$as_me:$LINENO: checking zlib.h presence" >&5
  14695. echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
  14696. cat >conftest.$ac_ext <<_ACEOF
  14697. /* confdefs.h. */
  14698. _ACEOF
  14699. cat confdefs.h >>conftest.$ac_ext
  14700. cat >>conftest.$ac_ext <<_ACEOF
  14701. /* end confdefs.h. */
  14702. #include <zlib.h>
  14703. _ACEOF
  14704. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14705. case "(($ac_try" in
  14706. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14707. *) ac_try_echo=$ac_try;;
  14708. esac
  14709. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14710. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14711. ac_status=$?
  14712. grep -v '^ *+' conftest.er1 >conftest.err
  14713. rm -f conftest.er1
  14714. cat conftest.err >&5
  14715. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14716. (exit $ac_status); } >/dev/null && {
  14717. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  14718. test ! -s conftest.err
  14719. }; then
  14720. ac_header_preproc=yes
  14721. else
  14722. echo "$as_me: failed program was:" >&5
  14723. sed 's/^/| /' conftest.$ac_ext >&5
  14724. ac_header_preproc=no
  14725. fi
  14726. rm -f conftest.err conftest.$ac_ext
  14727. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14728. echo "${ECHO_T}$ac_header_preproc" >&6; }
  14729. # So? What about this header?
  14730. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  14731. yes:no: )
  14732. { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
  14733. echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14734. { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
  14735. echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
  14736. ac_header_preproc=yes
  14737. ;;
  14738. no:yes:* )
  14739. { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
  14740. echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
  14741. { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
  14742. echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
  14743. { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
  14744. echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
  14745. { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
  14746. echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
  14747. { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
  14748. echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
  14749. { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
  14750. echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
  14751. ( cat <<\_ASBOX
  14752. ## ------------------------------------------ ##
  14753. ## Report this to bubla@users.sourceforge.net ##
  14754. ## ------------------------------------------ ##
  14755. _ASBOX
  14756. ) | sed "s/^/$as_me: WARNING: /" >&2
  14757. ;;
  14758. esac
  14759. { echo "$as_me:$LINENO: checking for zlib.h" >&5
  14760. echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
  14761. if test "${ac_cv_header_zlib_h+set}" = set; then
  14762. echo $ECHO_N "(cached) $ECHO_C" >&6
  14763. else
  14764. ac_cv_header_zlib_h=$ac_header_preproc
  14765. fi
  14766. { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
  14767. echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
  14768. fi
  14769. if test $ac_cv_header_zlib_h = yes; then
  14770. use_z="yes"
  14771. else
  14772. use_z="no"
  14773. fi
  14774. if test "$enable_zlib" = "yes"; then
  14775. { echo "$as_me:$LINENO: checking for main in -lz" >&5
  14776. echo $ECHO_N "checking for main in -lz... $ECHO_C" >&6; }
  14777. if test "${ac_cv_lib_z_main+set}" = set; then
  14778. echo $ECHO_N "(cached) $ECHO_C" >&6
  14779. else
  14780. ac_check_lib_save_LIBS=$LIBS
  14781. LIBS="-lz $LIBS"
  14782. cat >conftest.$ac_ext <<_ACEOF
  14783. /* confdefs.h. */
  14784. _ACEOF
  14785. cat confdefs.h >>conftest.$ac_ext
  14786. cat >>conftest.$ac_ext <<_ACEOF
  14787. /* end confdefs.h. */
  14788. int
  14789. main ()
  14790. {
  14791. return main ();
  14792. ;
  14793. return 0;
  14794. }
  14795. _ACEOF
  14796. rm -f conftest.$ac_objext conftest$ac_exeext
  14797. if { (ac_try="$ac_link"
  14798. case "(($ac_try" in
  14799. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14800. *) ac_try_echo=$ac_try;;
  14801. esac
  14802. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14803. (eval "$ac_link") 2>conftest.er1
  14804. ac_status=$?
  14805. grep -v '^ *+' conftest.er1 >conftest.err
  14806. rm -f conftest.er1
  14807. cat conftest.err >&5
  14808. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14809. (exit $ac_status); } && {
  14810. test -z "$ac_c_werror_flag" ||
  14811. test ! -s conftest.err
  14812. } && test -s conftest$ac_exeext &&
  14813. $as_test_x conftest$ac_exeext; then
  14814. ac_cv_lib_z_main=yes
  14815. else
  14816. echo "$as_me: failed program was:" >&5
  14817. sed 's/^/| /' conftest.$ac_ext >&5
  14818. ac_cv_lib_z_main=no
  14819. fi
  14820. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14821. conftest$ac_exeext conftest.$ac_ext
  14822. LIBS=$ac_check_lib_save_LIBS
  14823. fi
  14824. { echo "$as_me:$LINENO: result: $ac_cv_lib_z_main" >&5
  14825. echo "${ECHO_T}$ac_cv_lib_z_main" >&6; }
  14826. if test $ac_cv_lib_z_main = yes; then
  14827. cat >>confdefs.h <<_ACEOF
  14828. #define HAVE_LIBZ 1
  14829. _ACEOF
  14830. LIBS="-lz $LIBS"
  14831. fi
  14832. fi
  14833. fi
  14834. { echo "$as_me:$LINENO: checking for main in -lm" >&5
  14835. echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
  14836. if test "${ac_cv_lib_m_main+set}" = set; then
  14837. echo $ECHO_N "(cached) $ECHO_C" >&6
  14838. else
  14839. ac_check_lib_save_LIBS=$LIBS
  14840. LIBS="-lm $LIBS"
  14841. cat >conftest.$ac_ext <<_ACEOF
  14842. /* confdefs.h. */
  14843. _ACEOF
  14844. cat confdefs.h >>conftest.$ac_ext
  14845. cat >>conftest.$ac_ext <<_ACEOF
  14846. /* end confdefs.h. */
  14847. int
  14848. main ()
  14849. {
  14850. return main ();
  14851. ;
  14852. return 0;
  14853. }
  14854. _ACEOF
  14855. rm -f conftest.$ac_objext conftest$ac_exeext
  14856. if { (ac_try="$ac_link"
  14857. case "(($ac_try" in
  14858. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14859. *) ac_try_echo=$ac_try;;
  14860. esac
  14861. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14862. (eval "$ac_link") 2>conftest.er1
  14863. ac_status=$?
  14864. grep -v '^ *+' conftest.er1 >conftest.err
  14865. rm -f conftest.er1
  14866. cat conftest.err >&5
  14867. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14868. (exit $ac_status); } && {
  14869. test -z "$ac_c_werror_flag" ||
  14870. test ! -s conftest.err
  14871. } && test -s conftest$ac_exeext &&
  14872. $as_test_x conftest$ac_exeext; then
  14873. ac_cv_lib_m_main=yes
  14874. else
  14875. echo "$as_me: failed program was:" >&5
  14876. sed 's/^/| /' conftest.$ac_ext >&5
  14877. ac_cv_lib_m_main=no
  14878. fi
  14879. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14880. conftest$ac_exeext conftest.$ac_ext
  14881. LIBS=$ac_check_lib_save_LIBS
  14882. fi
  14883. { echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
  14884. echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
  14885. if test $ac_cv_lib_m_main = yes; then
  14886. cat >>confdefs.h <<_ACEOF
  14887. #define HAVE_LIBM 1
  14888. _ACEOF
  14889. LIBS="-lm $LIBS"
  14890. fi
  14891. # Check whether --enable-game-formats was given.
  14892. if test "${enable_game_formats+set}" = set; then
  14893. enableval=$enable_game_formats;
  14894. else
  14895. enable_game_formats="yes"
  14896. fi
  14897. if test "x$enable_game_formats" = "xno"; then
  14898. cat >>confdefs.h <<\_ACEOF
  14899. #define IL_NO_GAMES
  14900. _ACEOF
  14901. fi
  14902. # Check whether --enable-blp was given.
  14903. if test "${enable_blp+set}" = set; then
  14904. enableval=$enable_blp;
  14905. else
  14906. enable_blp="yes"
  14907. fi
  14908. { echo "$as_me:$LINENO: checking whether we would like to have support for blp format" >&5
  14909. echo $ECHO_N "checking whether we would like to have support for blp format... $ECHO_C" >&6; }
  14910. if test "x$enable_blp" = "xno" -o "x$lib_test_result" = "xno"; then
  14911. { echo "$as_me:$LINENO: result: no" >&5
  14912. echo "${ECHO_T}no" >&6; }
  14913. cat >>confdefs.h <<\_ACEOF
  14914. #define IL_NO_BLP
  14915. _ACEOF
  14916. else
  14917. { echo "$as_me:$LINENO: result: yes" >&5
  14918. echo "${ECHO_T}yes" >&6; }
  14919. SUPPORTED_FORMATS="$SUPPORTED_FORMATS BLP"
  14920. fi
  14921. lib_test_result=""
  14922. # Check whether --enable-bmp was given.
  14923. if test "${enable_bmp+set}" = set; then
  14924. enableval=$enable_bmp;
  14925. else
  14926. enable_bmp="yes"
  14927. fi
  14928. { echo "$as_me:$LINENO: checking whether we would like to have support for bmp format" >&5
  14929. echo $ECHO_N "checking whether we would like to have support for bmp format... $ECHO_C" >&6; }
  14930. if test "x$enable_bmp" = "xno" -o "x$lib_test_result" = "xno"; then
  14931. { echo "$as_me:$LINENO: result: no" >&5
  14932. echo "${ECHO_T}no" >&6; }
  14933. cat >>confdefs.h <<\_ACEOF
  14934. #define IL_NO_BMP
  14935. _ACEOF
  14936. else
  14937. { echo "$as_me:$LINENO: result: yes" >&5
  14938. echo "${ECHO_T}yes" >&6; }
  14939. SUPPORTED_FORMATS="$SUPPORTED_FORMATS BMP"
  14940. fi
  14941. lib_test_result=""
  14942. # Check whether --enable-dcx was given.
  14943. if test "${enable_dcx+set}" = set; then
  14944. enableval=$enable_dcx;
  14945. else
  14946. enable_dcx="yes"
  14947. fi
  14948. { echo "$as_me:$LINENO: checking whether we would like to have support for dcx format" >&5
  14949. echo $ECHO_N "checking whether we would like to have support for dcx format... $ECHO_C" >&6; }
  14950. if test "x$enable_dcx" = "xno" -o "x$lib_test_result" = "xno"; then
  14951. { echo "$as_me:$LINENO: result: no" >&5
  14952. echo "${ECHO_T}no" >&6; }
  14953. cat >>confdefs.h <<\_ACEOF
  14954. #define IL_NO_DCX
  14955. _ACEOF
  14956. else
  14957. { echo "$as_me:$LINENO: result: yes" >&5
  14958. echo "${ECHO_T}yes" >&6; }
  14959. SUPPORTED_FORMATS="$SUPPORTED_FORMATS DCX"
  14960. fi
  14961. lib_test_result=""
  14962. # Check whether --enable-dds was given.
  14963. if test "${enable_dds+set}" = set; then
  14964. enableval=$enable_dds;
  14965. else
  14966. enable_dds="yes"
  14967. fi
  14968. { echo "$as_me:$LINENO: checking whether we would like to have support for dds format" >&5
  14969. echo $ECHO_N "checking whether we would like to have support for dds format... $ECHO_C" >&6; }
  14970. if test "x$enable_dds" = "xno" -o "x$lib_test_result" = "xno"; then
  14971. { echo "$as_me:$LINENO: result: no" >&5
  14972. echo "${ECHO_T}no" >&6; }
  14973. cat >>confdefs.h <<\_ACEOF
  14974. #define IL_NO_DDS
  14975. _ACEOF
  14976. else
  14977. { echo "$as_me:$LINENO: result: yes" >&5
  14978. echo "${ECHO_T}yes" >&6; }
  14979. SUPPORTED_FORMATS="$SUPPORTED_FORMATS DDS"
  14980. fi
  14981. lib_test_result=""
  14982. # Check whether --enable-dicom was given.
  14983. if test "${enable_dicom+set}" = set; then
  14984. enableval=$enable_dicom;
  14985. else
  14986. enable_dicom="yes"
  14987. fi
  14988. { echo "$as_me:$LINENO: checking whether we would like to have support for dicom format" >&5
  14989. echo $ECHO_N "checking whether we would like to have support for dicom format... $ECHO_C" >&6; }
  14990. if test "x$enable_dicom" = "xno" -o "x$lib_test_result" = "xno"; then
  14991. { echo "$as_me:$LINENO: result: no" >&5
  14992. echo "${ECHO_T}no" >&6; }
  14993. cat >>confdefs.h <<\_ACEOF
  14994. #define IL_NO_DICOM
  14995. _ACEOF
  14996. else
  14997. { echo "$as_me:$LINENO: result: yes" >&5
  14998. echo "${ECHO_T}yes" >&6; }
  14999. SUPPORTED_FORMATS="$SUPPORTED_FORMATS DICOM"
  15000. fi
  15001. lib_test_result=""
  15002. # Check whether --enable-doom was given.
  15003. if test "${enable_doom+set}" = set; then
  15004. enableval=$enable_doom;
  15005. else
  15006. enable_doom="yes"
  15007. fi
  15008. { echo "$as_me:$LINENO: checking whether we would like to have support for doom format" >&5
  15009. echo $ECHO_N "checking whether we would like to have support for doom format... $ECHO_C" >&6; }
  15010. if test "x$enable_doom" = "xno" -o "x$lib_test_result" = "xno"; then
  15011. { echo "$as_me:$LINENO: result: no" >&5
  15012. echo "${ECHO_T}no" >&6; }
  15013. cat >>confdefs.h <<\_ACEOF
  15014. #define IL_NO_WAD
  15015. _ACEOF
  15016. else
  15017. { echo "$as_me:$LINENO: result: yes" >&5
  15018. echo "${ECHO_T}yes" >&6; }
  15019. SUPPORTED_FORMATS="$SUPPORTED_FORMATS WAD"
  15020. fi
  15021. lib_test_result=""
  15022. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  15023. if test -n "$ac_tool_prefix"; then
  15024. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  15025. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  15026. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  15027. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  15028. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  15029. echo $ECHO_N "(cached) $ECHO_C" >&6
  15030. else
  15031. case $PKG_CONFIG in
  15032. [\\/]* | ?:[\\/]*)
  15033. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15034. ;;
  15035. *)
  15036. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15037. for as_dir in $PATH
  15038. do
  15039. IFS=$as_save_IFS
  15040. test -z "$as_dir" && as_dir=.
  15041. for ac_exec_ext in '' $ac_executable_extensions; do
  15042. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15043. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15044. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  15045. break 2
  15046. fi
  15047. done
  15048. done
  15049. IFS=$as_save_IFS
  15050. ;;
  15051. esac
  15052. fi
  15053. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15054. if test -n "$PKG_CONFIG"; then
  15055. { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  15056. echo "${ECHO_T}$PKG_CONFIG" >&6; }
  15057. else
  15058. { echo "$as_me:$LINENO: result: no" >&5
  15059. echo "${ECHO_T}no" >&6; }
  15060. fi
  15061. fi
  15062. if test -z "$ac_cv_path_PKG_CONFIG"; then
  15063. ac_pt_PKG_CONFIG=$PKG_CONFIG
  15064. # Extract the first word of "pkg-config", so it can be a program name with args.
  15065. set dummy pkg-config; ac_word=$2
  15066. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  15067. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  15068. if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
  15069. echo $ECHO_N "(cached) $ECHO_C" >&6
  15070. else
  15071. case $ac_pt_PKG_CONFIG in
  15072. [\\/]* | ?:[\\/]*)
  15073. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  15074. ;;
  15075. *)
  15076. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15077. for as_dir in $PATH
  15078. do
  15079. IFS=$as_save_IFS
  15080. test -z "$as_dir" && as_dir=.
  15081. for ac_exec_ext in '' $ac_executable_extensions; do
  15082. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15083. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15084. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  15085. break 2
  15086. fi
  15087. done
  15088. done
  15089. IFS=$as_save_IFS
  15090. ;;
  15091. esac
  15092. fi
  15093. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  15094. if test -n "$ac_pt_PKG_CONFIG"; then
  15095. { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
  15096. echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
  15097. else
  15098. { echo "$as_me:$LINENO: result: no" >&5
  15099. echo "${ECHO_T}no" >&6; }
  15100. fi
  15101. if test "x$ac_pt_PKG_CONFIG" = x; then
  15102. PKG_CONFIG=""
  15103. else
  15104. case $cross_compiling:$ac_tool_warned in
  15105. yes:)
  15106. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  15107. whose name does not start with the host triplet. If you think this
  15108. configuration is useful to you, please write to autoconf@gnu.org." >&5
  15109. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  15110. whose name does not start with the host triplet. If you think this
  15111. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  15112. ac_tool_warned=yes ;;
  15113. esac
  15114. PKG_CONFIG=$ac_pt_PKG_CONFIG
  15115. fi
  15116. else
  15117. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  15118. fi
  15119. fi
  15120. if test -n "$PKG_CONFIG"; then
  15121. _pkg_min_version=0.9.0
  15122. { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
  15123. echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
  15124. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  15125. { echo "$as_me:$LINENO: result: yes" >&5
  15126. echo "${ECHO_T}yes" >&6; }
  15127. else
  15128. { echo "$as_me:$LINENO: result: no" >&5
  15129. echo "${ECHO_T}no" >&6; }
  15130. PKG_CONFIG=""
  15131. fi
  15132. fi
  15133. # Check whether --enable-exr was given.
  15134. if test "${enable_exr+set}" = set; then
  15135. enableval=$enable_exr;
  15136. else
  15137. enable_exr="yes"
  15138. fi
  15139. if test 4 -eq 4 -a "x$enable_exr" = "xyes"; then
  15140. pkg_failed=no
  15141. { echo "$as_me:$LINENO: checking for OPENEXR" >&5
  15142. echo $ECHO_N "checking for OPENEXR... $ECHO_C" >&6; }
  15143. if test -n "$OPENEXR_CFLAGS"; then
  15144. pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
  15145. elif test -n "$PKG_CONFIG"; then
  15146. if test -n "$PKG_CONFIG" && \
  15147. { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"OpenEXR\"") >&5
  15148. ($PKG_CONFIG --exists --print-errors "OpenEXR") 2>&5
  15149. ac_status=$?
  15150. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15151. (exit $ac_status); }; then
  15152. pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR" 2>/dev/null`
  15153. else
  15154. pkg_failed=yes
  15155. fi
  15156. else
  15157. pkg_failed=untried
  15158. fi
  15159. if test -n "$OPENEXR_LIBS"; then
  15160. pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
  15161. elif test -n "$PKG_CONFIG"; then
  15162. if test -n "$PKG_CONFIG" && \
  15163. { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"OpenEXR\"") >&5
  15164. ($PKG_CONFIG --exists --print-errors "OpenEXR") 2>&5
  15165. ac_status=$?
  15166. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15167. (exit $ac_status); }; then
  15168. pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR" 2>/dev/null`
  15169. else
  15170. pkg_failed=yes
  15171. fi
  15172. else
  15173. pkg_failed=untried
  15174. fi
  15175. if test $pkg_failed = yes; then
  15176. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  15177. _pkg_short_errors_supported=yes
  15178. else
  15179. _pkg_short_errors_supported=no
  15180. fi
  15181. if test $_pkg_short_errors_supported = yes; then
  15182. OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR" 2>&1`
  15183. else
  15184. OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR" 2>&1`
  15185. fi
  15186. # Put the nasty error message in config.log where it belongs
  15187. echo "$OPENEXR_PKG_ERRORS" >&5
  15188. { echo "$as_me:$LINENO: result: no" >&5
  15189. echo "${ECHO_T}no" >&6; }
  15190. have_openexr="no"
  15191. elif test $pkg_failed = untried; then
  15192. have_openexr="no"
  15193. else
  15194. OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
  15195. OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
  15196. { echo "$as_me:$LINENO: result: yes" >&5
  15197. echo "${ECHO_T}yes" >&6; }
  15198. have_openexr="yes"
  15199. fi
  15200. if test "x$enable_modules" = "xyes"; then
  15201. IL_LIBS_OPTIONAL="${IL_LIBS_OPTIONAL} OpenEXR"
  15202. else
  15203. IL_LIBS_REQUIRED="${IL_LIBS_REQUIRED} OpenEXR"
  15204. fi
  15205. IL_LIBS="$OPENEXR_LIBS $IL_LIBS"
  15206. IL_CFLAGS="$OPENEXR_CFLAGS $IL_CFLAGS"
  15207. lib_test_result="$have_openexr"
  15208. fi
  15209. { echo "$as_me:$LINENO: checking whether we would like to have support for exr format" >&5
  15210. echo $ECHO_N "checking whether we would like to have support for exr format... $ECHO_C" >&6; }
  15211. if test "x$enable_exr" = "xno" -o "x$lib_test_result" = "xno"; then
  15212. { echo "$as_me:$LINENO: result: no" >&5
  15213. echo "${ECHO_T}no" >&6; }
  15214. cat >>confdefs.h <<\_ACEOF
  15215. #define IL_NO_EXR
  15216. _ACEOF
  15217. else
  15218. { echo "$as_me:$LINENO: result: yes" >&5
  15219. echo "${ECHO_T}yes" >&6; }
  15220. SUPPORTED_FORMATS="$SUPPORTED_FORMATS EXR"
  15221. fi
  15222. lib_test_result=""
  15223. # Check whether --enable-fits was given.
  15224. if test "${enable_fits+set}" = set; then
  15225. enableval=$enable_fits;
  15226. else
  15227. enable_fits="yes"
  15228. fi
  15229. { echo "$as_me:$LINENO: checking whether we would like to have support for fits format" >&5
  15230. echo $ECHO_N "checking whether we would like to have support for fits format... $ECHO_C" >&6; }
  15231. if test "x$enable_fits" = "xno" -o "x$lib_test_result" = "xno"; then
  15232. { echo "$as_me:$LINENO: result: no" >&5
  15233. echo "${ECHO_T}no" >&6; }
  15234. cat >>confdefs.h <<\_ACEOF
  15235. #define IL_NO_FITS
  15236. _ACEOF
  15237. else
  15238. { echo "$as_me:$LINENO: result: yes" >&5
  15239. echo "${ECHO_T}yes" >&6; }
  15240. SUPPORTED_FORMATS="$SUPPORTED_FORMATS FITS"
  15241. fi
  15242. lib_test_result=""
  15243. # Check whether --enable-gif was given.
  15244. if test "${enable_gif+set}" = set; then
  15245. enableval=$enable_gif;
  15246. else
  15247. enable_gif="yes"
  15248. fi
  15249. { echo "$as_me:$LINENO: checking whether we would like to have support for gif format" >&5
  15250. echo $ECHO_N "checking whether we would like to have support for gif format... $ECHO_C" >&6; }
  15251. if test "x$enable_gif" = "xno" -o "x$lib_test_result" = "xno"; then
  15252. { echo "$as_me:$LINENO: result: no" >&5
  15253. echo "${ECHO_T}no" >&6; }
  15254. cat >>confdefs.h <<\_ACEOF
  15255. #define IL_NO_GIF
  15256. _ACEOF
  15257. else
  15258. { echo "$as_me:$LINENO: result: yes" >&5
  15259. echo "${ECHO_T}yes" >&6; }
  15260. SUPPORTED_FORMATS="$SUPPORTED_FORMATS GIF"
  15261. fi
  15262. lib_test_result=""
  15263. # Check whether --enable-hdr was given.
  15264. if test "${enable_hdr+set}" = set; then
  15265. enableval=$enable_hdr;
  15266. else
  15267. enable_hdr="yes"
  15268. fi
  15269. { echo "$as_me:$LINENO: checking whether we would like to have support for hdr format" >&5
  15270. echo $ECHO_N "checking whether we would like to have support for hdr format... $ECHO_C" >&6; }
  15271. if test "x$enable_hdr" = "xno" -o "x$lib_test_result" = "xno"; then
  15272. { echo "$as_me:$LINENO: result: no" >&5
  15273. echo "${ECHO_T}no" >&6; }
  15274. cat >>confdefs.h <<\_ACEOF
  15275. #define IL_NO_HDR
  15276. _ACEOF
  15277. else
  15278. { echo "$as_me:$LINENO: result: yes" >&5
  15279. echo "${ECHO_T}yes" >&6; }
  15280. SUPPORTED_FORMATS="$SUPPORTED_FORMATS HDR"
  15281. fi
  15282. lib_test_result=""
  15283. # Check whether --enable-icns was given.
  15284. if test "${enable_icns+set}" = set; then
  15285. enableval=$enable_icns;
  15286. else
  15287. enable_icns="yes"
  15288. fi
  15289. { echo "$as_me:$LINENO: checking whether we would like to have support for icns format" >&5
  15290. echo $ECHO_N "checking whether we would like to have support for icns format... $ECHO_C" >&6; }
  15291. if test "x$enable_icns" = "xno" -o "x$lib_test_result" = "xno"; then
  15292. { echo "$as_me:$LINENO: result: no" >&5
  15293. echo "${ECHO_T}no" >&6; }
  15294. cat >>confdefs.h <<\_ACEOF
  15295. #define IL_NO_ICNS
  15296. _ACEOF
  15297. else
  15298. { echo "$as_me:$LINENO: result: yes" >&5
  15299. echo "${ECHO_T}yes" >&6; }
  15300. SUPPORTED_FORMATS="$SUPPORTED_FORMATS ICNS"
  15301. fi
  15302. lib_test_result=""
  15303. # Check whether --enable-icon was given.
  15304. if test "${enable_icon+set}" = set; then
  15305. enableval=$enable_icon;
  15306. else
  15307. enable_icon="yes"
  15308. fi
  15309. { echo "$as_me:$LINENO: checking whether we would like to have support for icon format" >&5
  15310. echo $ECHO_N "checking whether we would like to have support for icon format... $ECHO_C" >&6; }
  15311. if test "x$enable_icon" = "xno" -o "x$lib_test_result" = "xno"; then
  15312. { echo "$as_me:$LINENO: result: no" >&5
  15313. echo "${ECHO_T}no" >&6; }
  15314. cat >>confdefs.h <<\_ACEOF
  15315. #define IL_NO_ICON
  15316. _ACEOF
  15317. else
  15318. { echo "$as_me:$LINENO: result: yes" >&5
  15319. echo "${ECHO_T}yes" >&6; }
  15320. SUPPORTED_FORMATS="$SUPPORTED_FORMATS ICON"
  15321. fi
  15322. lib_test_result=""
  15323. # Check whether --enable-iff was given.
  15324. if test "${enable_iff+set}" = set; then
  15325. enableval=$enable_iff;
  15326. else
  15327. enable_iff="yes"
  15328. fi
  15329. { echo "$as_me:$LINENO: checking whether we would like to have support for iff format" >&5
  15330. echo $ECHO_N "checking whether we would like to have support for iff format... $ECHO_C" >&6; }
  15331. if test "x$enable_iff" = "xno" -o "x$lib_test_result" = "xno"; then
  15332. { echo "$as_me:$LINENO: result: no" >&5
  15333. echo "${ECHO_T}no" >&6; }
  15334. cat >>confdefs.h <<\_ACEOF
  15335. #define IL_NO_IFF
  15336. _ACEOF
  15337. else
  15338. { echo "$as_me:$LINENO: result: yes" >&5
  15339. echo "${ECHO_T}yes" >&6; }
  15340. SUPPORTED_FORMATS="$SUPPORTED_FORMATS IFF"
  15341. fi
  15342. lib_test_result=""
  15343. # Check whether --enable-ilbm was given.
  15344. if test "${enable_ilbm+set}" = set; then
  15345. enableval=$enable_ilbm;
  15346. else
  15347. enable_ilbm="yes"
  15348. fi
  15349. { echo "$as_me:$LINENO: checking whether we would like to have support for ilbm format" >&5
  15350. echo $ECHO_N "checking whether we would like to have support for ilbm format... $ECHO_C" >&6; }
  15351. if test "x$enable_ilbm" = "xno" -o "x$lib_test_result" = "xno"; then
  15352. { echo "$as_me:$LINENO: result: no" >&5
  15353. echo "${ECHO_T}no" >&6; }
  15354. cat >>confdefs.h <<\_ACEOF
  15355. #define IL_NO_ILBM
  15356. _ACEOF
  15357. else
  15358. { echo "$as_me:$LINENO: result: yes" >&5
  15359. echo "${ECHO_T}yes" >&6; }
  15360. SUPPORTED_FORMATS="$SUPPORTED_FORMATS ILBM"
  15361. fi
  15362. lib_test_result=""
  15363. # Check whether --enable-iwi was given.
  15364. if test "${enable_iwi+set}" = set; then
  15365. enableval=$enable_iwi;
  15366. else
  15367. enable_iwi="yes"
  15368. fi
  15369. { echo "$as_me:$LINENO: checking whether we would like to have support for iwi format" >&5
  15370. echo $ECHO_N "checking whether we would like to have support for iwi format... $ECHO_C" >&6; }
  15371. if test "x$enable_iwi" = "xno" -o "x$lib_test_result" = "xno"; then
  15372. { echo "$as_me:$LINENO: result: no" >&5
  15373. echo "${ECHO_T}no" >&6; }
  15374. cat >>confdefs.h <<\_ACEOF
  15375. #define IL_NO_IWI
  15376. _ACEOF
  15377. else
  15378. { echo "$as_me:$LINENO: result: yes" >&5
  15379. echo "${ECHO_T}yes" >&6; }
  15380. SUPPORTED_FORMATS="$SUPPORTED_FORMATS IWI"
  15381. fi
  15382. lib_test_result=""
  15383. # Check whether --enable-jpeg was given.
  15384. if test "${enable_jpeg+set}" = set; then
  15385. enableval=$enable_jpeg;
  15386. else
  15387. enable_jpeg="yes"
  15388. fi
  15389. if test 4 -eq 4 -a "x$enable_jpeg" = "xyes"; then
  15390. if test "${ac_cv_header_jpeglib_h+set}" = set; then
  15391. { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
  15392. echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
  15393. if test "${ac_cv_header_jpeglib_h+set}" = set; then
  15394. echo $ECHO_N "(cached) $ECHO_C" >&6
  15395. fi
  15396. { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
  15397. echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
  15398. else
  15399. # Is the header compilable?
  15400. { echo "$as_me:$LINENO: checking jpeglib.h usability" >&5
  15401. echo $ECHO_N "checking jpeglib.h usability... $ECHO_C" >&6; }
  15402. cat >conftest.$ac_ext <<_ACEOF
  15403. /* confdefs.h. */
  15404. _ACEOF
  15405. cat confdefs.h >>conftest.$ac_ext
  15406. cat >>conftest.$ac_ext <<_ACEOF
  15407. /* end confdefs.h. */
  15408. $ac_includes_default
  15409. #include <jpeglib.h>
  15410. _ACEOF
  15411. rm -f conftest.$ac_objext
  15412. if { (ac_try="$ac_compile"
  15413. case "(($ac_try" in
  15414. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15415. *) ac_try_echo=$ac_try;;
  15416. esac
  15417. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15418. (eval "$ac_compile") 2>conftest.er1
  15419. ac_status=$?
  15420. grep -v '^ *+' conftest.er1 >conftest.err
  15421. rm -f conftest.er1
  15422. cat conftest.err >&5
  15423. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15424. (exit $ac_status); } && {
  15425. test -z "$ac_c_werror_flag" ||
  15426. test ! -s conftest.err
  15427. } && test -s conftest.$ac_objext; then
  15428. ac_header_compiler=yes
  15429. else
  15430. echo "$as_me: failed program was:" >&5
  15431. sed 's/^/| /' conftest.$ac_ext >&5
  15432. ac_header_compiler=no
  15433. fi
  15434. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15435. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  15436. echo "${ECHO_T}$ac_header_compiler" >&6; }
  15437. # Is the header present?
  15438. { echo "$as_me:$LINENO: checking jpeglib.h presence" >&5
  15439. echo $ECHO_N "checking jpeglib.h presence... $ECHO_C" >&6; }
  15440. cat >conftest.$ac_ext <<_ACEOF
  15441. /* confdefs.h. */
  15442. _ACEOF
  15443. cat confdefs.h >>conftest.$ac_ext
  15444. cat >>conftest.$ac_ext <<_ACEOF
  15445. /* end confdefs.h. */
  15446. #include <jpeglib.h>
  15447. _ACEOF
  15448. if { (ac_try="$ac_cpp conftest.$ac_ext"
  15449. case "(($ac_try" in
  15450. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15451. *) ac_try_echo=$ac_try;;
  15452. esac
  15453. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15454. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15455. ac_status=$?
  15456. grep -v '^ *+' conftest.er1 >conftest.err
  15457. rm -f conftest.er1
  15458. cat conftest.err >&5
  15459. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15460. (exit $ac_status); } >/dev/null && {
  15461. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  15462. test ! -s conftest.err
  15463. }; then
  15464. ac_header_preproc=yes
  15465. else
  15466. echo "$as_me: failed program was:" >&5
  15467. sed 's/^/| /' conftest.$ac_ext >&5
  15468. ac_header_preproc=no
  15469. fi
  15470. rm -f conftest.err conftest.$ac_ext
  15471. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  15472. echo "${ECHO_T}$ac_header_preproc" >&6; }
  15473. # So? What about this header?
  15474. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  15475. yes:no: )
  15476. { echo "$as_me:$LINENO: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&5
  15477. echo "$as_me: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  15478. { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the compiler's result" >&5
  15479. echo "$as_me: WARNING: jpeglib.h: proceeding with the compiler's result" >&2;}
  15480. ac_header_preproc=yes
  15481. ;;
  15482. no:yes:* )
  15483. { echo "$as_me:$LINENO: WARNING: jpeglib.h: present but cannot be compiled" >&5
  15484. echo "$as_me: WARNING: jpeglib.h: present but cannot be compiled" >&2;}
  15485. { echo "$as_me:$LINENO: WARNING: jpeglib.h: check for missing prerequisite headers?" >&5
  15486. echo "$as_me: WARNING: jpeglib.h: check for missing prerequisite headers?" >&2;}
  15487. { echo "$as_me:$LINENO: WARNING: jpeglib.h: see the Autoconf documentation" >&5
  15488. echo "$as_me: WARNING: jpeglib.h: see the Autoconf documentation" >&2;}
  15489. { echo "$as_me:$LINENO: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&5
  15490. echo "$as_me: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&2;}
  15491. { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&5
  15492. echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&2;}
  15493. { echo "$as_me:$LINENO: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&5
  15494. echo "$as_me: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&2;}
  15495. ( cat <<\_ASBOX
  15496. ## ------------------------------------------ ##
  15497. ## Report this to bubla@users.sourceforge.net ##
  15498. ## ------------------------------------------ ##
  15499. _ASBOX
  15500. ) | sed "s/^/$as_me: WARNING: /" >&2
  15501. ;;
  15502. esac
  15503. { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
  15504. echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
  15505. if test "${ac_cv_header_jpeglib_h+set}" = set; then
  15506. echo $ECHO_N "(cached) $ECHO_C" >&6
  15507. else
  15508. ac_cv_header_jpeglib_h=$ac_header_preproc
  15509. fi
  15510. { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
  15511. echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
  15512. fi
  15513. if test $ac_cv_header_jpeglib_h = yes; then
  15514. { echo "$as_me:$LINENO: checking for main in -ljpeg" >&5
  15515. echo $ECHO_N "checking for main in -ljpeg... $ECHO_C" >&6; }
  15516. if test "${ac_cv_lib_jpeg_main+set}" = set; then
  15517. echo $ECHO_N "(cached) $ECHO_C" >&6
  15518. else
  15519. ac_check_lib_save_LIBS=$LIBS
  15520. LIBS="-ljpeg $LIBS"
  15521. cat >conftest.$ac_ext <<_ACEOF
  15522. /* confdefs.h. */
  15523. _ACEOF
  15524. cat confdefs.h >>conftest.$ac_ext
  15525. cat >>conftest.$ac_ext <<_ACEOF
  15526. /* end confdefs.h. */
  15527. int
  15528. main ()
  15529. {
  15530. return main ();
  15531. ;
  15532. return 0;
  15533. }
  15534. _ACEOF
  15535. rm -f conftest.$ac_objext conftest$ac_exeext
  15536. if { (ac_try="$ac_link"
  15537. case "(($ac_try" in
  15538. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15539. *) ac_try_echo=$ac_try;;
  15540. esac
  15541. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15542. (eval "$ac_link") 2>conftest.er1
  15543. ac_status=$?
  15544. grep -v '^ *+' conftest.er1 >conftest.err
  15545. rm -f conftest.er1
  15546. cat conftest.err >&5
  15547. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15548. (exit $ac_status); } && {
  15549. test -z "$ac_c_werror_flag" ||
  15550. test ! -s conftest.err
  15551. } && test -s conftest$ac_exeext &&
  15552. $as_test_x conftest$ac_exeext; then
  15553. ac_cv_lib_jpeg_main=yes
  15554. else
  15555. echo "$as_me: failed program was:" >&5
  15556. sed 's/^/| /' conftest.$ac_ext >&5
  15557. ac_cv_lib_jpeg_main=no
  15558. fi
  15559. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15560. conftest$ac_exeext conftest.$ac_ext
  15561. LIBS=$ac_check_lib_save_LIBS
  15562. fi
  15563. { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_main" >&5
  15564. echo "${ECHO_T}$ac_cv_lib_jpeg_main" >&6; }
  15565. if test $ac_cv_lib_jpeg_main = yes; then
  15566. IL_LIBS="-ljpeg $IL_LIBS"
  15567. have_jpeg="yes"
  15568. else
  15569. have_jpeg="no"
  15570. fi
  15571. else
  15572. have_jpeg="no"
  15573. fi
  15574. cat >>confdefs.h <<\_ACEOF
  15575. #define IL_USE_JPEGLIB_UNMODIFIED 1
  15576. _ACEOF
  15577. lib_test_result="$have_jpeg"
  15578. if test "x$lib_test_result" = "xyes"; then
  15579. if test "x$enable_modules" = "xyes"; then
  15580. IL_LIBS_OPTIONAL="${IL_LIBS_OPTIONAL} libjpeg"
  15581. else
  15582. IL_LIBS_REQUIRED="${IL_LIBS_REQUIRED} libjpeg"
  15583. fi
  15584. fi
  15585. fi
  15586. { echo "$as_me:$LINENO: checking whether we would like to have support for jpeg format" >&5
  15587. echo $ECHO_N "checking whether we would like to have support for jpeg format... $ECHO_C" >&6; }
  15588. if test "x$enable_jpeg" = "xno" -o "x$lib_test_result" = "xno"; then
  15589. { echo "$as_me:$LINENO: result: no" >&5
  15590. echo "${ECHO_T}no" >&6; }
  15591. cat >>confdefs.h <<\_ACEOF
  15592. #define IL_NO_JPG
  15593. _ACEOF
  15594. else
  15595. { echo "$as_me:$LINENO: result: yes" >&5
  15596. echo "${ECHO_T}yes" >&6; }
  15597. SUPPORTED_FORMATS="$SUPPORTED_FORMATS JPG"
  15598. fi
  15599. lib_test_result=""
  15600. # Check whether --enable-jp2 was given.
  15601. if test "${enable_jp2+set}" = set; then
  15602. enableval=$enable_jp2;
  15603. else
  15604. enable_jp2="yes"
  15605. fi
  15606. if test 4 -eq 4 -a "x$enable_jp2" = "xyes"; then
  15607. if test "${ac_cv_header_jasper_jasper_h+set}" = set; then
  15608. { echo "$as_me:$LINENO: checking for jasper/jasper.h" >&5
  15609. echo $ECHO_N "checking for jasper/jasper.h... $ECHO_C" >&6; }
  15610. if test "${ac_cv_header_jasper_jasper_h+set}" = set; then
  15611. echo $ECHO_N "(cached) $ECHO_C" >&6
  15612. fi
  15613. { echo "$as_me:$LINENO: result: $ac_cv_header_jasper_jasper_h" >&5
  15614. echo "${ECHO_T}$ac_cv_header_jasper_jasper_h" >&6; }
  15615. else
  15616. # Is the header compilable?
  15617. { echo "$as_me:$LINENO: checking jasper/jasper.h usability" >&5
  15618. echo $ECHO_N "checking jasper/jasper.h usability... $ECHO_C" >&6; }
  15619. cat >conftest.$ac_ext <<_ACEOF
  15620. /* confdefs.h. */
  15621. _ACEOF
  15622. cat confdefs.h >>conftest.$ac_ext
  15623. cat >>conftest.$ac_ext <<_ACEOF
  15624. /* end confdefs.h. */
  15625. $ac_includes_default
  15626. #include <jasper/jasper.h>
  15627. _ACEOF
  15628. rm -f conftest.$ac_objext
  15629. if { (ac_try="$ac_compile"
  15630. case "(($ac_try" in
  15631. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15632. *) ac_try_echo=$ac_try;;
  15633. esac
  15634. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15635. (eval "$ac_compile") 2>conftest.er1
  15636. ac_status=$?
  15637. grep -v '^ *+' conftest.er1 >conftest.err
  15638. rm -f conftest.er1
  15639. cat conftest.err >&5
  15640. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15641. (exit $ac_status); } && {
  15642. test -z "$ac_c_werror_flag" ||
  15643. test ! -s conftest.err
  15644. } && test -s conftest.$ac_objext; then
  15645. ac_header_compiler=yes
  15646. else
  15647. echo "$as_me: failed program was:" >&5
  15648. sed 's/^/| /' conftest.$ac_ext >&5
  15649. ac_header_compiler=no
  15650. fi
  15651. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15652. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  15653. echo "${ECHO_T}$ac_header_compiler" >&6; }
  15654. # Is the header present?
  15655. { echo "$as_me:$LINENO: checking jasper/jasper.h presence" >&5
  15656. echo $ECHO_N "checking jasper/jasper.h presence... $ECHO_C" >&6; }
  15657. cat >conftest.$ac_ext <<_ACEOF
  15658. /* confdefs.h. */
  15659. _ACEOF
  15660. cat confdefs.h >>conftest.$ac_ext
  15661. cat >>conftest.$ac_ext <<_ACEOF
  15662. /* end confdefs.h. */
  15663. #include <jasper/jasper.h>
  15664. _ACEOF
  15665. if { (ac_try="$ac_cpp conftest.$ac_ext"
  15666. case "(($ac_try" in
  15667. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15668. *) ac_try_echo=$ac_try;;
  15669. esac
  15670. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15671. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15672. ac_status=$?
  15673. grep -v '^ *+' conftest.er1 >conftest.err
  15674. rm -f conftest.er1
  15675. cat conftest.err >&5
  15676. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15677. (exit $ac_status); } >/dev/null && {
  15678. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  15679. test ! -s conftest.err
  15680. }; then
  15681. ac_header_preproc=yes
  15682. else
  15683. echo "$as_me: failed program was:" >&5
  15684. sed 's/^/| /' conftest.$ac_ext >&5
  15685. ac_header_preproc=no
  15686. fi
  15687. rm -f conftest.err conftest.$ac_ext
  15688. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  15689. echo "${ECHO_T}$ac_header_preproc" >&6; }
  15690. # So? What about this header?
  15691. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  15692. yes:no: )
  15693. { echo "$as_me:$LINENO: WARNING: jasper/jasper.h: accepted by the compiler, rejected by the preprocessor!" >&5
  15694. echo "$as_me: WARNING: jasper/jasper.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  15695. { echo "$as_me:$LINENO: WARNING: jasper/jasper.h: proceeding with the compiler's result" >&5
  15696. echo "$as_me: WARNING: jasper/jasper.h: proceeding with the compiler's result" >&2;}
  15697. ac_header_preproc=yes
  15698. ;;
  15699. no:yes:* )
  15700. { echo "$as_me:$LINENO: WARNING: jasper/jasper.h: present but cannot be compiled" >&5
  15701. echo "$as_me: WARNING: jasper/jasper.h: present but cannot be compiled" >&2;}
  15702. { echo "$as_me:$LINENO: WARNING: jasper/jasper.h: check for missing prerequisite headers?" >&5
  15703. echo "$as_me: WARNING: jasper/jasper.h: check for missing prerequisite headers?" >&2;}
  15704. { echo "$as_me:$LINENO: WARNING: jasper/jasper.h: see the Autoconf documentation" >&5
  15705. echo "$as_me: WARNING: jasper/jasper.h: see the Autoconf documentation" >&2;}
  15706. { echo "$as_me:$LINENO: WARNING: jasper/jasper.h: section \"Present But Cannot Be Compiled\"" >&5
  15707. echo "$as_me: WARNING: jasper/jasper.h: section \"Present But Cannot Be Compiled\"" >&2;}
  15708. { echo "$as_me:$LINENO: WARNING: jasper/jasper.h: proceeding with the preprocessor's result" >&5
  15709. echo "$as_me: WARNING: jasper/jasper.h: proceeding with the preprocessor's result" >&2;}
  15710. { echo "$as_me:$LINENO: WARNING: jasper/jasper.h: in the future, the compiler will take precedence" >&5
  15711. echo "$as_me: WARNING: jasper/jasper.h: in the future, the compiler will take precedence" >&2;}
  15712. ( cat <<\_ASBOX
  15713. ## ------------------------------------------ ##
  15714. ## Report this to bubla@users.sourceforge.net ##
  15715. ## ------------------------------------------ ##
  15716. _ASBOX
  15717. ) | sed "s/^/$as_me: WARNING: /" >&2
  15718. ;;
  15719. esac
  15720. { echo "$as_me:$LINENO: checking for jasper/jasper.h" >&5
  15721. echo $ECHO_N "checking for jasper/jasper.h... $ECHO_C" >&6; }
  15722. if test "${ac_cv_header_jasper_jasper_h+set}" = set; then
  15723. echo $ECHO_N "(cached) $ECHO_C" >&6
  15724. else
  15725. ac_cv_header_jasper_jasper_h=$ac_header_preproc
  15726. fi
  15727. { echo "$as_me:$LINENO: result: $ac_cv_header_jasper_jasper_h" >&5
  15728. echo "${ECHO_T}$ac_cv_header_jasper_jasper_h" >&6; }
  15729. fi
  15730. if test $ac_cv_header_jasper_jasper_h = yes; then
  15731. { echo "$as_me:$LINENO: checking for main in -ljasper" >&5
  15732. echo $ECHO_N "checking for main in -ljasper... $ECHO_C" >&6; }
  15733. if test "${ac_cv_lib_jasper_main+set}" = set; then
  15734. echo $ECHO_N "(cached) $ECHO_C" >&6
  15735. else
  15736. ac_check_lib_save_LIBS=$LIBS
  15737. LIBS="-ljasper $LIBS"
  15738. cat >conftest.$ac_ext <<_ACEOF
  15739. /* confdefs.h. */
  15740. _ACEOF
  15741. cat confdefs.h >>conftest.$ac_ext
  15742. cat >>conftest.$ac_ext <<_ACEOF
  15743. /* end confdefs.h. */
  15744. int
  15745. main ()
  15746. {
  15747. return main ();
  15748. ;
  15749. return 0;
  15750. }
  15751. _ACEOF
  15752. rm -f conftest.$ac_objext conftest$ac_exeext
  15753. if { (ac_try="$ac_link"
  15754. case "(($ac_try" in
  15755. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15756. *) ac_try_echo=$ac_try;;
  15757. esac
  15758. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15759. (eval "$ac_link") 2>conftest.er1
  15760. ac_status=$?
  15761. grep -v '^ *+' conftest.er1 >conftest.err
  15762. rm -f conftest.er1
  15763. cat conftest.err >&5
  15764. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15765. (exit $ac_status); } && {
  15766. test -z "$ac_c_werror_flag" ||
  15767. test ! -s conftest.err
  15768. } && test -s conftest$ac_exeext &&
  15769. $as_test_x conftest$ac_exeext; then
  15770. ac_cv_lib_jasper_main=yes
  15771. else
  15772. echo "$as_me: failed program was:" >&5
  15773. sed 's/^/| /' conftest.$ac_ext >&5
  15774. ac_cv_lib_jasper_main=no
  15775. fi
  15776. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15777. conftest$ac_exeext conftest.$ac_ext
  15778. LIBS=$ac_check_lib_save_LIBS
  15779. fi
  15780. { echo "$as_me:$LINENO: result: $ac_cv_lib_jasper_main" >&5
  15781. echo "${ECHO_T}$ac_cv_lib_jasper_main" >&6; }
  15782. if test $ac_cv_lib_jasper_main = yes; then
  15783. IL_LIBS="-ljasper $IL_LIBS"
  15784. have_jasper="yes"
  15785. else
  15786. have_jasper="no"
  15787. fi
  15788. else
  15789. have_jasper="no"
  15790. fi
  15791. if test "x$have_jasper" != "xyes"; then
  15792. if test "${ac_cv_header_jasper_jasper_h+set}" = set; then
  15793. { echo "$as_me:$LINENO: checking for jasper/jasper.h" >&5
  15794. echo $ECHO_N "checking for jasper/jasper.h... $ECHO_C" >&6; }
  15795. if test "${ac_cv_header_jasper_jasper_h+set}" = set; then
  15796. echo $ECHO_N "(cached) $ECHO_C" >&6
  15797. fi
  15798. { echo "$as_me:$LINENO: result: $ac_cv_header_jasper_jasper_h" >&5
  15799. echo "${ECHO_T}$ac_cv_header_jasper_jasper_h" >&6; }
  15800. else
  15801. # Is the header compilable?
  15802. { echo "$as_me:$LINENO: checking jasper/jasper.h usability" >&5
  15803. echo $ECHO_N "checking jasper/jasper.h usability... $ECHO_C" >&6; }
  15804. cat >conftest.$ac_ext <<_ACEOF
  15805. /* confdefs.h. */
  15806. _ACEOF
  15807. cat confdefs.h >>conftest.$ac_ext
  15808. cat >>conftest.$ac_ext <<_ACEOF
  15809. /* end confdefs.h. */
  15810. $ac_includes_default
  15811. #include <jasper/jasper.h>
  15812. _ACEOF
  15813. rm -f conftest.$ac_objext
  15814. if { (ac_try="$ac_compile"
  15815. case "(($ac_try" in
  15816. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15817. *) ac_try_echo=$ac_try;;
  15818. esac
  15819. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15820. (eval "$ac_compile") 2>conftest.er1
  15821. ac_status=$?
  15822. grep -v '^ *+' conftest.er1 >conftest.err
  15823. rm -f conftest.er1
  15824. cat conftest.err >&5
  15825. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15826. (exit $ac_status); } && {
  15827. test -z "$ac_c_werror_flag" ||
  15828. test ! -s conftest.err
  15829. } && test -s conftest.$ac_objext; then
  15830. ac_header_compiler=yes
  15831. else
  15832. echo "$as_me: failed program was:" >&5
  15833. sed 's/^/| /' conftest.$ac_ext >&5
  15834. ac_header_compiler=no
  15835. fi
  15836. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15837. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  15838. echo "${ECHO_T}$ac_header_compiler" >&6; }
  15839. # Is the header present?
  15840. { echo "$as_me:$LINENO: checking jasper/jasper.h presence" >&5
  15841. echo $ECHO_N "checking jasper/jasper.h presence... $ECHO_C" >&6; }
  15842. cat >conftest.$ac_ext <<_ACEOF
  15843. /* confdefs.h. */
  15844. _ACEOF
  15845. cat confdefs.h >>conftest.$ac_ext
  15846. cat >>conftest.$ac_ext <<_ACEOF
  15847. /* end confdefs.h. */
  15848. #include <jasper/jasper.h>
  15849. _ACEOF
  15850. if { (ac_try="$ac_cpp conftest.$ac_ext"
  15851. case "(($ac_try" in
  15852. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15853. *) ac_try_echo=$ac_try;;
  15854. esac
  15855. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15856. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15857. ac_status=$?
  15858. grep -v '^ *+' conftest.er1 >conftest.err
  15859. rm -f conftest.er1
  15860. cat conftest.err >&5
  15861. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15862. (exit $ac_status); } >/dev/null && {
  15863. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  15864. test ! -s conftest.err
  15865. }; then
  15866. ac_header_preproc=yes
  15867. else
  15868. echo "$as_me: failed program was:" >&5
  15869. sed 's/^/| /' conftest.$ac_ext >&5
  15870. ac_header_preproc=no
  15871. fi
  15872. rm -f conftest.err conftest.$ac_ext
  15873. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  15874. echo "${ECHO_T}$ac_header_preproc" >&6; }
  15875. # So? What about this header?
  15876. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  15877. yes:no: )
  15878. { echo "$as_me:$LINENO: WARNING: jasper/jasper.h: accepted by the compiler, rejected by the preprocessor!" >&5
  15879. echo "$as_me: WARNING: jasper/jasper.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  15880. { echo "$as_me:$LINENO: WARNING: jasper/jasper.h: proceeding with the compiler's result" >&5
  15881. echo "$as_me: WARNING: jasper/jasper.h: proceeding with the compiler's result" >&2;}
  15882. ac_header_preproc=yes
  15883. ;;
  15884. no:yes:* )
  15885. { echo "$as_me:$LINENO: WARNING: jasper/jasper.h: present but cannot be compiled" >&5
  15886. echo "$as_me: WARNING: jasper/jasper.h: present but cannot be compiled" >&2;}
  15887. { echo "$as_me:$LINENO: WARNING: jasper/jasper.h: check for missing prerequisite headers?" >&5
  15888. echo "$as_me: WARNING: jasper/jasper.h: check for missing prerequisite headers?" >&2;}
  15889. { echo "$as_me:$LINENO: WARNING: jasper/jasper.h: see the Autoconf documentation" >&5
  15890. echo "$as_me: WARNING: jasper/jasper.h: see the Autoconf documentation" >&2;}
  15891. { echo "$as_me:$LINENO: WARNING: jasper/jasper.h: section \"Present But Cannot Be Compiled\"" >&5
  15892. echo "$as_me: WARNING: jasper/jasper.h: section \"Present But Cannot Be Compiled\"" >&2;}
  15893. { echo "$as_me:$LINENO: WARNING: jasper/jasper.h: proceeding with the preprocessor's result" >&5
  15894. echo "$as_me: WARNING: jasper/jasper.h: proceeding with the preprocessor's result" >&2;}
  15895. { echo "$as_me:$LINENO: WARNING: jasper/jasper.h: in the future, the compiler will take precedence" >&5
  15896. echo "$as_me: WARNING: jasper/jasper.h: in the future, the compiler will take precedence" >&2;}
  15897. ( cat <<\_ASBOX
  15898. ## ------------------------------------------ ##
  15899. ## Report this to bubla@users.sourceforge.net ##
  15900. ## ------------------------------------------ ##
  15901. _ASBOX
  15902. ) | sed "s/^/$as_me: WARNING: /" >&2
  15903. ;;
  15904. esac
  15905. { echo "$as_me:$LINENO: checking for jasper/jasper.h" >&5
  15906. echo $ECHO_N "checking for jasper/jasper.h... $ECHO_C" >&6; }
  15907. if test "${ac_cv_header_jasper_jasper_h+set}" = set; then
  15908. echo $ECHO_N "(cached) $ECHO_C" >&6
  15909. else
  15910. ac_cv_header_jasper_jasper_h=$ac_header_preproc
  15911. fi
  15912. { echo "$as_me:$LINENO: result: $ac_cv_header_jasper_jasper_h" >&5
  15913. echo "${ECHO_T}$ac_cv_header_jasper_jasper_h" >&6; }
  15914. fi
  15915. if test $ac_cv_header_jasper_jasper_h = yes; then
  15916. { echo "$as_me:$LINENO: checking for main in -ljp2" >&5
  15917. echo $ECHO_N "checking for main in -ljp2... $ECHO_C" >&6; }
  15918. if test "${ac_cv_lib_jp2_main+set}" = set; then
  15919. echo $ECHO_N "(cached) $ECHO_C" >&6
  15920. else
  15921. ac_check_lib_save_LIBS=$LIBS
  15922. LIBS="-ljp2 $LIBS"
  15923. cat >conftest.$ac_ext <<_ACEOF
  15924. /* confdefs.h. */
  15925. _ACEOF
  15926. cat confdefs.h >>conftest.$ac_ext
  15927. cat >>conftest.$ac_ext <<_ACEOF
  15928. /* end confdefs.h. */
  15929. int
  15930. main ()
  15931. {
  15932. return main ();
  15933. ;
  15934. return 0;
  15935. }
  15936. _ACEOF
  15937. rm -f conftest.$ac_objext conftest$ac_exeext
  15938. if { (ac_try="$ac_link"
  15939. case "(($ac_try" in
  15940. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15941. *) ac_try_echo=$ac_try;;
  15942. esac
  15943. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15944. (eval "$ac_link") 2>conftest.er1
  15945. ac_status=$?
  15946. grep -v '^ *+' conftest.er1 >conftest.err
  15947. rm -f conftest.er1
  15948. cat conftest.err >&5
  15949. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15950. (exit $ac_status); } && {
  15951. test -z "$ac_c_werror_flag" ||
  15952. test ! -s conftest.err
  15953. } && test -s conftest$ac_exeext &&
  15954. $as_test_x conftest$ac_exeext; then
  15955. ac_cv_lib_jp2_main=yes
  15956. else
  15957. echo "$as_me: failed program was:" >&5
  15958. sed 's/^/| /' conftest.$ac_ext >&5
  15959. ac_cv_lib_jp2_main=no
  15960. fi
  15961. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15962. conftest$ac_exeext conftest.$ac_ext
  15963. LIBS=$ac_check_lib_save_LIBS
  15964. fi
  15965. { echo "$as_me:$LINENO: result: $ac_cv_lib_jp2_main" >&5
  15966. echo "${ECHO_T}$ac_cv_lib_jp2_main" >&6; }
  15967. if test $ac_cv_lib_jp2_main = yes; then
  15968. IL_LIBS="-ljp2 $IL_LIBS"
  15969. have_jp2="yes"
  15970. else
  15971. have_jp2="no"
  15972. fi
  15973. else
  15974. have_jp2="no"
  15975. fi
  15976. lib_test_result="$have_jp2"
  15977. else
  15978. lib_test_result="yes"
  15979. fi
  15980. if test "x$lib_test_result" = "xyes"; then
  15981. if test "x$enable_modules" = "xyes"; then
  15982. IL_LIBS_OPTIONAL="${IL_LIBS_OPTIONAL} JasPer"
  15983. else
  15984. IL_LIBS_REQUIRED="${IL_LIBS_REQUIRED} JasPer"
  15985. fi
  15986. fi
  15987. fi
  15988. { echo "$as_me:$LINENO: checking whether we would like to have support for jp2 format" >&5
  15989. echo $ECHO_N "checking whether we would like to have support for jp2 format... $ECHO_C" >&6; }
  15990. if test "x$enable_jp2" = "xno" -o "x$lib_test_result" = "xno"; then
  15991. { echo "$as_me:$LINENO: result: no" >&5
  15992. echo "${ECHO_T}no" >&6; }
  15993. cat >>confdefs.h <<\_ACEOF
  15994. #define IL_NO_JP2
  15995. _ACEOF
  15996. else
  15997. { echo "$as_me:$LINENO: result: yes" >&5
  15998. echo "${ECHO_T}yes" >&6; }
  15999. SUPPORTED_FORMATS="$SUPPORTED_FORMATS JP2"
  16000. fi
  16001. lib_test_result=""
  16002. # Check whether --enable-lcms was given.
  16003. if test "${enable_lcms+set}" = set; then
  16004. enableval=$enable_lcms;
  16005. else
  16006. enable_lcms="yes"
  16007. fi
  16008. if test 4 -eq 4 -a "x$enable_lcms" = "xyes"; then
  16009. { echo "$as_me:$LINENO: checking for main in -llcms" >&5
  16010. echo $ECHO_N "checking for main in -llcms... $ECHO_C" >&6; }
  16011. if test "${ac_cv_lib_lcms_main+set}" = set; then
  16012. echo $ECHO_N "(cached) $ECHO_C" >&6
  16013. else
  16014. ac_check_lib_save_LIBS=$LIBS
  16015. LIBS="-llcms $LIBS"
  16016. cat >conftest.$ac_ext <<_ACEOF
  16017. /* confdefs.h. */
  16018. _ACEOF
  16019. cat confdefs.h >>conftest.$ac_ext
  16020. cat >>conftest.$ac_ext <<_ACEOF
  16021. /* end confdefs.h. */
  16022. int
  16023. main ()
  16024. {
  16025. return main ();
  16026. ;
  16027. return 0;
  16028. }
  16029. _ACEOF
  16030. rm -f conftest.$ac_objext conftest$ac_exeext
  16031. if { (ac_try="$ac_link"
  16032. case "(($ac_try" in
  16033. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16034. *) ac_try_echo=$ac_try;;
  16035. esac
  16036. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16037. (eval "$ac_link") 2>conftest.er1
  16038. ac_status=$?
  16039. grep -v '^ *+' conftest.er1 >conftest.err
  16040. rm -f conftest.er1
  16041. cat conftest.err >&5
  16042. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16043. (exit $ac_status); } && {
  16044. test -z "$ac_c_werror_flag" ||
  16045. test ! -s conftest.err
  16046. } && test -s conftest$ac_exeext &&
  16047. $as_test_x conftest$ac_exeext; then
  16048. ac_cv_lib_lcms_main=yes
  16049. else
  16050. echo "$as_me: failed program was:" >&5
  16051. sed 's/^/| /' conftest.$ac_ext >&5
  16052. ac_cv_lib_lcms_main=no
  16053. fi
  16054. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16055. conftest$ac_exeext conftest.$ac_ext
  16056. LIBS=$ac_check_lib_save_LIBS
  16057. fi
  16058. { echo "$as_me:$LINENO: result: $ac_cv_lib_lcms_main" >&5
  16059. echo "${ECHO_T}$ac_cv_lib_lcms_main" >&6; }
  16060. if test $ac_cv_lib_lcms_main = yes; then
  16061. have_lcms_lib="yes"
  16062. IL_LIBS="-llcms $IL_LIBS"
  16063. fi
  16064. if test "${ac_cv_header_lcms_lcms_h+set}" = set; then
  16065. { echo "$as_me:$LINENO: checking for lcms/lcms.h" >&5
  16066. echo $ECHO_N "checking for lcms/lcms.h... $ECHO_C" >&6; }
  16067. if test "${ac_cv_header_lcms_lcms_h+set}" = set; then
  16068. echo $ECHO_N "(cached) $ECHO_C" >&6
  16069. fi
  16070. { echo "$as_me:$LINENO: result: $ac_cv_header_lcms_lcms_h" >&5
  16071. echo "${ECHO_T}$ac_cv_header_lcms_lcms_h" >&6; }
  16072. else
  16073. # Is the header compilable?
  16074. { echo "$as_me:$LINENO: checking lcms/lcms.h usability" >&5
  16075. echo $ECHO_N "checking lcms/lcms.h usability... $ECHO_C" >&6; }
  16076. cat >conftest.$ac_ext <<_ACEOF
  16077. /* confdefs.h. */
  16078. _ACEOF
  16079. cat confdefs.h >>conftest.$ac_ext
  16080. cat >>conftest.$ac_ext <<_ACEOF
  16081. /* end confdefs.h. */
  16082. $ac_includes_default
  16083. #include <lcms/lcms.h>
  16084. _ACEOF
  16085. rm -f conftest.$ac_objext
  16086. if { (ac_try="$ac_compile"
  16087. case "(($ac_try" in
  16088. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16089. *) ac_try_echo=$ac_try;;
  16090. esac
  16091. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16092. (eval "$ac_compile") 2>conftest.er1
  16093. ac_status=$?
  16094. grep -v '^ *+' conftest.er1 >conftest.err
  16095. rm -f conftest.er1
  16096. cat conftest.err >&5
  16097. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16098. (exit $ac_status); } && {
  16099. test -z "$ac_c_werror_flag" ||
  16100. test ! -s conftest.err
  16101. } && test -s conftest.$ac_objext; then
  16102. ac_header_compiler=yes
  16103. else
  16104. echo "$as_me: failed program was:" >&5
  16105. sed 's/^/| /' conftest.$ac_ext >&5
  16106. ac_header_compiler=no
  16107. fi
  16108. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16109. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16110. echo "${ECHO_T}$ac_header_compiler" >&6; }
  16111. # Is the header present?
  16112. { echo "$as_me:$LINENO: checking lcms/lcms.h presence" >&5
  16113. echo $ECHO_N "checking lcms/lcms.h presence... $ECHO_C" >&6; }
  16114. cat >conftest.$ac_ext <<_ACEOF
  16115. /* confdefs.h. */
  16116. _ACEOF
  16117. cat confdefs.h >>conftest.$ac_ext
  16118. cat >>conftest.$ac_ext <<_ACEOF
  16119. /* end confdefs.h. */
  16120. #include <lcms/lcms.h>
  16121. _ACEOF
  16122. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16123. case "(($ac_try" in
  16124. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16125. *) ac_try_echo=$ac_try;;
  16126. esac
  16127. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16128. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16129. ac_status=$?
  16130. grep -v '^ *+' conftest.er1 >conftest.err
  16131. rm -f conftest.er1
  16132. cat conftest.err >&5
  16133. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16134. (exit $ac_status); } >/dev/null && {
  16135. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  16136. test ! -s conftest.err
  16137. }; then
  16138. ac_header_preproc=yes
  16139. else
  16140. echo "$as_me: failed program was:" >&5
  16141. sed 's/^/| /' conftest.$ac_ext >&5
  16142. ac_header_preproc=no
  16143. fi
  16144. rm -f conftest.err conftest.$ac_ext
  16145. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16146. echo "${ECHO_T}$ac_header_preproc" >&6; }
  16147. # So? What about this header?
  16148. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  16149. yes:no: )
  16150. { echo "$as_me:$LINENO: WARNING: lcms/lcms.h: accepted by the compiler, rejected by the preprocessor!" >&5
  16151. echo "$as_me: WARNING: lcms/lcms.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16152. { echo "$as_me:$LINENO: WARNING: lcms/lcms.h: proceeding with the compiler's result" >&5
  16153. echo "$as_me: WARNING: lcms/lcms.h: proceeding with the compiler's result" >&2;}
  16154. ac_header_preproc=yes
  16155. ;;
  16156. no:yes:* )
  16157. { echo "$as_me:$LINENO: WARNING: lcms/lcms.h: present but cannot be compiled" >&5
  16158. echo "$as_me: WARNING: lcms/lcms.h: present but cannot be compiled" >&2;}
  16159. { echo "$as_me:$LINENO: WARNING: lcms/lcms.h: check for missing prerequisite headers?" >&5
  16160. echo "$as_me: WARNING: lcms/lcms.h: check for missing prerequisite headers?" >&2;}
  16161. { echo "$as_me:$LINENO: WARNING: lcms/lcms.h: see the Autoconf documentation" >&5
  16162. echo "$as_me: WARNING: lcms/lcms.h: see the Autoconf documentation" >&2;}
  16163. { echo "$as_me:$LINENO: WARNING: lcms/lcms.h: section \"Present But Cannot Be Compiled\"" >&5
  16164. echo "$as_me: WARNING: lcms/lcms.h: section \"Present But Cannot Be Compiled\"" >&2;}
  16165. { echo "$as_me:$LINENO: WARNING: lcms/lcms.h: proceeding with the preprocessor's result" >&5
  16166. echo "$as_me: WARNING: lcms/lcms.h: proceeding with the preprocessor's result" >&2;}
  16167. { echo "$as_me:$LINENO: WARNING: lcms/lcms.h: in the future, the compiler will take precedence" >&5
  16168. echo "$as_me: WARNING: lcms/lcms.h: in the future, the compiler will take precedence" >&2;}
  16169. ( cat <<\_ASBOX
  16170. ## ------------------------------------------ ##
  16171. ## Report this to bubla@users.sourceforge.net ##
  16172. ## ------------------------------------------ ##
  16173. _ASBOX
  16174. ) | sed "s/^/$as_me: WARNING: /" >&2
  16175. ;;
  16176. esac
  16177. { echo "$as_me:$LINENO: checking for lcms/lcms.h" >&5
  16178. echo $ECHO_N "checking for lcms/lcms.h... $ECHO_C" >&6; }
  16179. if test "${ac_cv_header_lcms_lcms_h+set}" = set; then
  16180. echo $ECHO_N "(cached) $ECHO_C" >&6
  16181. else
  16182. ac_cv_header_lcms_lcms_h=$ac_header_preproc
  16183. fi
  16184. { echo "$as_me:$LINENO: result: $ac_cv_header_lcms_lcms_h" >&5
  16185. echo "${ECHO_T}$ac_cv_header_lcms_lcms_h" >&6; }
  16186. fi
  16187. if test $ac_cv_header_lcms_lcms_h = yes; then
  16188. have_lcms_h="yes"
  16189. fi
  16190. if test "${ac_cv_header_lcms_h+set}" = set; then
  16191. { echo "$as_me:$LINENO: checking for lcms.h" >&5
  16192. echo $ECHO_N "checking for lcms.h... $ECHO_C" >&6; }
  16193. if test "${ac_cv_header_lcms_h+set}" = set; then
  16194. echo $ECHO_N "(cached) $ECHO_C" >&6
  16195. fi
  16196. { echo "$as_me:$LINENO: result: $ac_cv_header_lcms_h" >&5
  16197. echo "${ECHO_T}$ac_cv_header_lcms_h" >&6; }
  16198. else
  16199. # Is the header compilable?
  16200. { echo "$as_me:$LINENO: checking lcms.h usability" >&5
  16201. echo $ECHO_N "checking lcms.h usability... $ECHO_C" >&6; }
  16202. cat >conftest.$ac_ext <<_ACEOF
  16203. /* confdefs.h. */
  16204. _ACEOF
  16205. cat confdefs.h >>conftest.$ac_ext
  16206. cat >>conftest.$ac_ext <<_ACEOF
  16207. /* end confdefs.h. */
  16208. $ac_includes_default
  16209. #include <lcms.h>
  16210. _ACEOF
  16211. rm -f conftest.$ac_objext
  16212. if { (ac_try="$ac_compile"
  16213. case "(($ac_try" in
  16214. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16215. *) ac_try_echo=$ac_try;;
  16216. esac
  16217. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16218. (eval "$ac_compile") 2>conftest.er1
  16219. ac_status=$?
  16220. grep -v '^ *+' conftest.er1 >conftest.err
  16221. rm -f conftest.er1
  16222. cat conftest.err >&5
  16223. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16224. (exit $ac_status); } && {
  16225. test -z "$ac_c_werror_flag" ||
  16226. test ! -s conftest.err
  16227. } && test -s conftest.$ac_objext; then
  16228. ac_header_compiler=yes
  16229. else
  16230. echo "$as_me: failed program was:" >&5
  16231. sed 's/^/| /' conftest.$ac_ext >&5
  16232. ac_header_compiler=no
  16233. fi
  16234. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16235. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16236. echo "${ECHO_T}$ac_header_compiler" >&6; }
  16237. # Is the header present?
  16238. { echo "$as_me:$LINENO: checking lcms.h presence" >&5
  16239. echo $ECHO_N "checking lcms.h presence... $ECHO_C" >&6; }
  16240. cat >conftest.$ac_ext <<_ACEOF
  16241. /* confdefs.h. */
  16242. _ACEOF
  16243. cat confdefs.h >>conftest.$ac_ext
  16244. cat >>conftest.$ac_ext <<_ACEOF
  16245. /* end confdefs.h. */
  16246. #include <lcms.h>
  16247. _ACEOF
  16248. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16249. case "(($ac_try" in
  16250. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16251. *) ac_try_echo=$ac_try;;
  16252. esac
  16253. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16254. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16255. ac_status=$?
  16256. grep -v '^ *+' conftest.er1 >conftest.err
  16257. rm -f conftest.er1
  16258. cat conftest.err >&5
  16259. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16260. (exit $ac_status); } >/dev/null && {
  16261. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  16262. test ! -s conftest.err
  16263. }; then
  16264. ac_header_preproc=yes
  16265. else
  16266. echo "$as_me: failed program was:" >&5
  16267. sed 's/^/| /' conftest.$ac_ext >&5
  16268. ac_header_preproc=no
  16269. fi
  16270. rm -f conftest.err conftest.$ac_ext
  16271. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16272. echo "${ECHO_T}$ac_header_preproc" >&6; }
  16273. # So? What about this header?
  16274. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  16275. yes:no: )
  16276. { echo "$as_me:$LINENO: WARNING: lcms.h: accepted by the compiler, rejected by the preprocessor!" >&5
  16277. echo "$as_me: WARNING: lcms.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16278. { echo "$as_me:$LINENO: WARNING: lcms.h: proceeding with the compiler's result" >&5
  16279. echo "$as_me: WARNING: lcms.h: proceeding with the compiler's result" >&2;}
  16280. ac_header_preproc=yes
  16281. ;;
  16282. no:yes:* )
  16283. { echo "$as_me:$LINENO: WARNING: lcms.h: present but cannot be compiled" >&5
  16284. echo "$as_me: WARNING: lcms.h: present but cannot be compiled" >&2;}
  16285. { echo "$as_me:$LINENO: WARNING: lcms.h: check for missing prerequisite headers?" >&5
  16286. echo "$as_me: WARNING: lcms.h: check for missing prerequisite headers?" >&2;}
  16287. { echo "$as_me:$LINENO: WARNING: lcms.h: see the Autoconf documentation" >&5
  16288. echo "$as_me: WARNING: lcms.h: see the Autoconf documentation" >&2;}
  16289. { echo "$as_me:$LINENO: WARNING: lcms.h: section \"Present But Cannot Be Compiled\"" >&5
  16290. echo "$as_me: WARNING: lcms.h: section \"Present But Cannot Be Compiled\"" >&2;}
  16291. { echo "$as_me:$LINENO: WARNING: lcms.h: proceeding with the preprocessor's result" >&5
  16292. echo "$as_me: WARNING: lcms.h: proceeding with the preprocessor's result" >&2;}
  16293. { echo "$as_me:$LINENO: WARNING: lcms.h: in the future, the compiler will take precedence" >&5
  16294. echo "$as_me: WARNING: lcms.h: in the future, the compiler will take precedence" >&2;}
  16295. ( cat <<\_ASBOX
  16296. ## ------------------------------------------ ##
  16297. ## Report this to bubla@users.sourceforge.net ##
  16298. ## ------------------------------------------ ##
  16299. _ASBOX
  16300. ) | sed "s/^/$as_me: WARNING: /" >&2
  16301. ;;
  16302. esac
  16303. { echo "$as_me:$LINENO: checking for lcms.h" >&5
  16304. echo $ECHO_N "checking for lcms.h... $ECHO_C" >&6; }
  16305. if test "${ac_cv_header_lcms_h+set}" = set; then
  16306. echo $ECHO_N "(cached) $ECHO_C" >&6
  16307. else
  16308. ac_cv_header_lcms_h=$ac_header_preproc
  16309. fi
  16310. { echo "$as_me:$LINENO: result: $ac_cv_header_lcms_h" >&5
  16311. echo "${ECHO_T}$ac_cv_header_lcms_h" >&6; }
  16312. fi
  16313. if test $ac_cv_header_lcms_h = yes; then
  16314. have_lcms_h="yes"
  16315. lcms_nodirinclude="yes"
  16316. fi
  16317. if test "x$lcms_nodirinclude" = "xyes"; then
  16318. cat >>confdefs.h <<\_ACEOF
  16319. #define LCMS_NODIRINCLUDE 1
  16320. _ACEOF
  16321. fi
  16322. if test "x$have_lcms_lib" = "xyes" -a "x$have_lcms_h" = "xyes"; then
  16323. have_lcms="yes"
  16324. IL_LIBS_REQUIRED="$IL_LIBS_REQUIRED lcms"
  16325. lib_test_result="yes"
  16326. else
  16327. lib_test_result="no"
  16328. fi
  16329. fi
  16330. { echo "$as_me:$LINENO: checking whether we would like to have support for lcms format" >&5
  16331. echo $ECHO_N "checking whether we would like to have support for lcms format... $ECHO_C" >&6; }
  16332. if test "x$enable_lcms" = "xno" -o "x$lib_test_result" = "xno"; then
  16333. { echo "$as_me:$LINENO: result: no" >&5
  16334. echo "${ECHO_T}no" >&6; }
  16335. cat >>confdefs.h <<\_ACEOF
  16336. #define IL_NO_LCMS
  16337. _ACEOF
  16338. else
  16339. { echo "$as_me:$LINENO: result: yes" >&5
  16340. echo "${ECHO_T}yes" >&6; }
  16341. SUPPORTED_FORMATS="$SUPPORTED_FORMATS LCMS"
  16342. fi
  16343. lib_test_result=""
  16344. # Check whether --enable-lif was given.
  16345. if test "${enable_lif+set}" = set; then
  16346. enableval=$enable_lif;
  16347. else
  16348. enable_lif="yes"
  16349. fi
  16350. { echo "$as_me:$LINENO: checking whether we would like to have support for lif format" >&5
  16351. echo $ECHO_N "checking whether we would like to have support for lif format... $ECHO_C" >&6; }
  16352. if test "x$enable_lif" = "xno" -o "x$lib_test_result" = "xno"; then
  16353. { echo "$as_me:$LINENO: result: no" >&5
  16354. echo "${ECHO_T}no" >&6; }
  16355. cat >>confdefs.h <<\_ACEOF
  16356. #define IL_NO_LIF
  16357. _ACEOF
  16358. else
  16359. { echo "$as_me:$LINENO: result: yes" >&5
  16360. echo "${ECHO_T}yes" >&6; }
  16361. SUPPORTED_FORMATS="$SUPPORTED_FORMATS LIF"
  16362. fi
  16363. lib_test_result=""
  16364. # Check whether --enable-mdl was given.
  16365. if test "${enable_mdl+set}" = set; then
  16366. enableval=$enable_mdl;
  16367. else
  16368. enable_mdl="yes"
  16369. fi
  16370. { echo "$as_me:$LINENO: checking whether we would like to have support for mdl format" >&5
  16371. echo $ECHO_N "checking whether we would like to have support for mdl format... $ECHO_C" >&6; }
  16372. if test "x$enable_mdl" = "xno" -o "x$lib_test_result" = "xno"; then
  16373. { echo "$as_me:$LINENO: result: no" >&5
  16374. echo "${ECHO_T}no" >&6; }
  16375. cat >>confdefs.h <<\_ACEOF
  16376. #define IL_NO_MDL
  16377. _ACEOF
  16378. else
  16379. { echo "$as_me:$LINENO: result: yes" >&5
  16380. echo "${ECHO_T}yes" >&6; }
  16381. SUPPORTED_FORMATS="$SUPPORTED_FORMATS MDL"
  16382. fi
  16383. lib_test_result=""
  16384. # Check whether --enable-mng was given.
  16385. if test "${enable_mng+set}" = set; then
  16386. enableval=$enable_mng;
  16387. else
  16388. enable_mng="yes"
  16389. fi
  16390. if test 4 -eq 4 -a "x$enable_mng" = "xyes"; then
  16391. if test "${ac_cv_header_libmng_h+set}" = set; then
  16392. { echo "$as_me:$LINENO: checking for libmng.h" >&5
  16393. echo $ECHO_N "checking for libmng.h... $ECHO_C" >&6; }
  16394. if test "${ac_cv_header_libmng_h+set}" = set; then
  16395. echo $ECHO_N "(cached) $ECHO_C" >&6
  16396. fi
  16397. { echo "$as_me:$LINENO: result: $ac_cv_header_libmng_h" >&5
  16398. echo "${ECHO_T}$ac_cv_header_libmng_h" >&6; }
  16399. else
  16400. # Is the header compilable?
  16401. { echo "$as_me:$LINENO: checking libmng.h usability" >&5
  16402. echo $ECHO_N "checking libmng.h usability... $ECHO_C" >&6; }
  16403. cat >conftest.$ac_ext <<_ACEOF
  16404. /* confdefs.h. */
  16405. _ACEOF
  16406. cat confdefs.h >>conftest.$ac_ext
  16407. cat >>conftest.$ac_ext <<_ACEOF
  16408. /* end confdefs.h. */
  16409. $ac_includes_default
  16410. #include <libmng.h>
  16411. _ACEOF
  16412. rm -f conftest.$ac_objext
  16413. if { (ac_try="$ac_compile"
  16414. case "(($ac_try" in
  16415. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16416. *) ac_try_echo=$ac_try;;
  16417. esac
  16418. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16419. (eval "$ac_compile") 2>conftest.er1
  16420. ac_status=$?
  16421. grep -v '^ *+' conftest.er1 >conftest.err
  16422. rm -f conftest.er1
  16423. cat conftest.err >&5
  16424. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16425. (exit $ac_status); } && {
  16426. test -z "$ac_c_werror_flag" ||
  16427. test ! -s conftest.err
  16428. } && test -s conftest.$ac_objext; then
  16429. ac_header_compiler=yes
  16430. else
  16431. echo "$as_me: failed program was:" >&5
  16432. sed 's/^/| /' conftest.$ac_ext >&5
  16433. ac_header_compiler=no
  16434. fi
  16435. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16436. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16437. echo "${ECHO_T}$ac_header_compiler" >&6; }
  16438. # Is the header present?
  16439. { echo "$as_me:$LINENO: checking libmng.h presence" >&5
  16440. echo $ECHO_N "checking libmng.h presence... $ECHO_C" >&6; }
  16441. cat >conftest.$ac_ext <<_ACEOF
  16442. /* confdefs.h. */
  16443. _ACEOF
  16444. cat confdefs.h >>conftest.$ac_ext
  16445. cat >>conftest.$ac_ext <<_ACEOF
  16446. /* end confdefs.h. */
  16447. #include <libmng.h>
  16448. _ACEOF
  16449. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16450. case "(($ac_try" in
  16451. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16452. *) ac_try_echo=$ac_try;;
  16453. esac
  16454. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16455. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16456. ac_status=$?
  16457. grep -v '^ *+' conftest.er1 >conftest.err
  16458. rm -f conftest.er1
  16459. cat conftest.err >&5
  16460. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16461. (exit $ac_status); } >/dev/null && {
  16462. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  16463. test ! -s conftest.err
  16464. }; then
  16465. ac_header_preproc=yes
  16466. else
  16467. echo "$as_me: failed program was:" >&5
  16468. sed 's/^/| /' conftest.$ac_ext >&5
  16469. ac_header_preproc=no
  16470. fi
  16471. rm -f conftest.err conftest.$ac_ext
  16472. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16473. echo "${ECHO_T}$ac_header_preproc" >&6; }
  16474. # So? What about this header?
  16475. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  16476. yes:no: )
  16477. { echo "$as_me:$LINENO: WARNING: libmng.h: accepted by the compiler, rejected by the preprocessor!" >&5
  16478. echo "$as_me: WARNING: libmng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16479. { echo "$as_me:$LINENO: WARNING: libmng.h: proceeding with the compiler's result" >&5
  16480. echo "$as_me: WARNING: libmng.h: proceeding with the compiler's result" >&2;}
  16481. ac_header_preproc=yes
  16482. ;;
  16483. no:yes:* )
  16484. { echo "$as_me:$LINENO: WARNING: libmng.h: present but cannot be compiled" >&5
  16485. echo "$as_me: WARNING: libmng.h: present but cannot be compiled" >&2;}
  16486. { echo "$as_me:$LINENO: WARNING: libmng.h: check for missing prerequisite headers?" >&5
  16487. echo "$as_me: WARNING: libmng.h: check for missing prerequisite headers?" >&2;}
  16488. { echo "$as_me:$LINENO: WARNING: libmng.h: see the Autoconf documentation" >&5
  16489. echo "$as_me: WARNING: libmng.h: see the Autoconf documentation" >&2;}
  16490. { echo "$as_me:$LINENO: WARNING: libmng.h: section \"Present But Cannot Be Compiled\"" >&5
  16491. echo "$as_me: WARNING: libmng.h: section \"Present But Cannot Be Compiled\"" >&2;}
  16492. { echo "$as_me:$LINENO: WARNING: libmng.h: proceeding with the preprocessor's result" >&5
  16493. echo "$as_me: WARNING: libmng.h: proceeding with the preprocessor's result" >&2;}
  16494. { echo "$as_me:$LINENO: WARNING: libmng.h: in the future, the compiler will take precedence" >&5
  16495. echo "$as_me: WARNING: libmng.h: in the future, the compiler will take precedence" >&2;}
  16496. ( cat <<\_ASBOX
  16497. ## ------------------------------------------ ##
  16498. ## Report this to bubla@users.sourceforge.net ##
  16499. ## ------------------------------------------ ##
  16500. _ASBOX
  16501. ) | sed "s/^/$as_me: WARNING: /" >&2
  16502. ;;
  16503. esac
  16504. { echo "$as_me:$LINENO: checking for libmng.h" >&5
  16505. echo $ECHO_N "checking for libmng.h... $ECHO_C" >&6; }
  16506. if test "${ac_cv_header_libmng_h+set}" = set; then
  16507. echo $ECHO_N "(cached) $ECHO_C" >&6
  16508. else
  16509. ac_cv_header_libmng_h=$ac_header_preproc
  16510. fi
  16511. { echo "$as_me:$LINENO: result: $ac_cv_header_libmng_h" >&5
  16512. echo "${ECHO_T}$ac_cv_header_libmng_h" >&6; }
  16513. fi
  16514. if test $ac_cv_header_libmng_h = yes; then
  16515. { echo "$as_me:$LINENO: checking for main in -lmng" >&5
  16516. echo $ECHO_N "checking for main in -lmng... $ECHO_C" >&6; }
  16517. if test "${ac_cv_lib_mng_main+set}" = set; then
  16518. echo $ECHO_N "(cached) $ECHO_C" >&6
  16519. else
  16520. ac_check_lib_save_LIBS=$LIBS
  16521. LIBS="-lmng $LIBS"
  16522. cat >conftest.$ac_ext <<_ACEOF
  16523. /* confdefs.h. */
  16524. _ACEOF
  16525. cat confdefs.h >>conftest.$ac_ext
  16526. cat >>conftest.$ac_ext <<_ACEOF
  16527. /* end confdefs.h. */
  16528. int
  16529. main ()
  16530. {
  16531. return main ();
  16532. ;
  16533. return 0;
  16534. }
  16535. _ACEOF
  16536. rm -f conftest.$ac_objext conftest$ac_exeext
  16537. if { (ac_try="$ac_link"
  16538. case "(($ac_try" in
  16539. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16540. *) ac_try_echo=$ac_try;;
  16541. esac
  16542. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16543. (eval "$ac_link") 2>conftest.er1
  16544. ac_status=$?
  16545. grep -v '^ *+' conftest.er1 >conftest.err
  16546. rm -f conftest.er1
  16547. cat conftest.err >&5
  16548. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16549. (exit $ac_status); } && {
  16550. test -z "$ac_c_werror_flag" ||
  16551. test ! -s conftest.err
  16552. } && test -s conftest$ac_exeext &&
  16553. $as_test_x conftest$ac_exeext; then
  16554. ac_cv_lib_mng_main=yes
  16555. else
  16556. echo "$as_me: failed program was:" >&5
  16557. sed 's/^/| /' conftest.$ac_ext >&5
  16558. ac_cv_lib_mng_main=no
  16559. fi
  16560. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16561. conftest$ac_exeext conftest.$ac_ext
  16562. LIBS=$ac_check_lib_save_LIBS
  16563. fi
  16564. { echo "$as_me:$LINENO: result: $ac_cv_lib_mng_main" >&5
  16565. echo "${ECHO_T}$ac_cv_lib_mng_main" >&6; }
  16566. if test $ac_cv_lib_mng_main = yes; then
  16567. IL_LIBS="-lmng $IL_LIBS"
  16568. have_mng="yes"
  16569. else
  16570. have_mng="no"
  16571. fi
  16572. else
  16573. have_mng="no"
  16574. fi
  16575. lib_test_result="$have_mng"
  16576. if test "x$lib_test_result" = "xyes"; then
  16577. if test "x$enable_modules" = "xyes"; then
  16578. IL_LIBS_OPTIONAL="${IL_LIBS_OPTIONAL} libmng"
  16579. else
  16580. IL_LIBS_REQUIRED="${IL_LIBS_REQUIRED} libmng"
  16581. fi
  16582. fi
  16583. fi
  16584. { echo "$as_me:$LINENO: checking whether we would like to have support for mng format" >&5
  16585. echo $ECHO_N "checking whether we would like to have support for mng format... $ECHO_C" >&6; }
  16586. if test "x$enable_mng" = "xno" -o "x$lib_test_result" = "xno"; then
  16587. { echo "$as_me:$LINENO: result: no" >&5
  16588. echo "${ECHO_T}no" >&6; }
  16589. cat >>confdefs.h <<\_ACEOF
  16590. #define IL_NO_MNG
  16591. _ACEOF
  16592. else
  16593. { echo "$as_me:$LINENO: result: yes" >&5
  16594. echo "${ECHO_T}yes" >&6; }
  16595. SUPPORTED_FORMATS="$SUPPORTED_FORMATS MNG"
  16596. fi
  16597. lib_test_result=""
  16598. # Check whether --enable-mp3 was given.
  16599. if test "${enable_mp3+set}" = set; then
  16600. enableval=$enable_mp3;
  16601. else
  16602. enable_mp3="yes"
  16603. fi
  16604. { echo "$as_me:$LINENO: checking whether we would like to have support for mp3 format" >&5
  16605. echo $ECHO_N "checking whether we would like to have support for mp3 format... $ECHO_C" >&6; }
  16606. if test "x$enable_mp3" = "xno" -o "x$lib_test_result" = "xno"; then
  16607. { echo "$as_me:$LINENO: result: no" >&5
  16608. echo "${ECHO_T}no" >&6; }
  16609. cat >>confdefs.h <<\_ACEOF
  16610. #define IL_NO_MP3
  16611. _ACEOF
  16612. else
  16613. { echo "$as_me:$LINENO: result: yes" >&5
  16614. echo "${ECHO_T}yes" >&6; }
  16615. SUPPORTED_FORMATS="$SUPPORTED_FORMATS MP3"
  16616. fi
  16617. lib_test_result=""
  16618. # Check whether --enable-pcx was given.
  16619. if test "${enable_pcx+set}" = set; then
  16620. enableval=$enable_pcx;
  16621. else
  16622. enable_pcx="yes"
  16623. fi
  16624. { echo "$as_me:$LINENO: checking whether we would like to have support for pcx format" >&5
  16625. echo $ECHO_N "checking whether we would like to have support for pcx format... $ECHO_C" >&6; }
  16626. if test "x$enable_pcx" = "xno" -o "x$lib_test_result" = "xno"; then
  16627. { echo "$as_me:$LINENO: result: no" >&5
  16628. echo "${ECHO_T}no" >&6; }
  16629. cat >>confdefs.h <<\_ACEOF
  16630. #define IL_NO_PCX
  16631. _ACEOF
  16632. else
  16633. { echo "$as_me:$LINENO: result: yes" >&5
  16634. echo "${ECHO_T}yes" >&6; }
  16635. SUPPORTED_FORMATS="$SUPPORTED_FORMATS PCX"
  16636. fi
  16637. lib_test_result=""
  16638. # Check whether --enable-pcd was given.
  16639. if test "${enable_pcd+set}" = set; then
  16640. enableval=$enable_pcd;
  16641. else
  16642. enable_pcd="yes"
  16643. fi
  16644. { echo "$as_me:$LINENO: checking whether we would like to have support for pcd format" >&5
  16645. echo $ECHO_N "checking whether we would like to have support for pcd format... $ECHO_C" >&6; }
  16646. if test "x$enable_pcd" = "xno" -o "x$lib_test_result" = "xno"; then
  16647. { echo "$as_me:$LINENO: result: no" >&5
  16648. echo "${ECHO_T}no" >&6; }
  16649. cat >>confdefs.h <<\_ACEOF
  16650. #define IL_NO_PCD
  16651. _ACEOF
  16652. else
  16653. { echo "$as_me:$LINENO: result: yes" >&5
  16654. echo "${ECHO_T}yes" >&6; }
  16655. SUPPORTED_FORMATS="$SUPPORTED_FORMATS PCD"
  16656. fi
  16657. lib_test_result=""
  16658. # Check whether --enable-pic was given.
  16659. if test "${enable_pic+set}" = set; then
  16660. enableval=$enable_pic;
  16661. else
  16662. enable_pic="yes"
  16663. fi
  16664. { echo "$as_me:$LINENO: checking whether we would like to have support for pic format" >&5
  16665. echo $ECHO_N "checking whether we would like to have support for pic format... $ECHO_C" >&6; }
  16666. if test "x$enable_pic" = "xno" -o "x$lib_test_result" = "xno"; then
  16667. { echo "$as_me:$LINENO: result: no" >&5
  16668. echo "${ECHO_T}no" >&6; }
  16669. cat >>confdefs.h <<\_ACEOF
  16670. #define IL_NO_PIC
  16671. _ACEOF
  16672. else
  16673. { echo "$as_me:$LINENO: result: yes" >&5
  16674. echo "${ECHO_T}yes" >&6; }
  16675. SUPPORTED_FORMATS="$SUPPORTED_FORMATS PIC"
  16676. fi
  16677. lib_test_result=""
  16678. # Check whether --enable-pix was given.
  16679. if test "${enable_pix+set}" = set; then
  16680. enableval=$enable_pix;
  16681. else
  16682. enable_pix="yes"
  16683. fi
  16684. { echo "$as_me:$LINENO: checking whether we would like to have support for pix format" >&5
  16685. echo $ECHO_N "checking whether we would like to have support for pix format... $ECHO_C" >&6; }
  16686. if test "x$enable_pix" = "xno" -o "x$lib_test_result" = "xno"; then
  16687. { echo "$as_me:$LINENO: result: no" >&5
  16688. echo "${ECHO_T}no" >&6; }
  16689. cat >>confdefs.h <<\_ACEOF
  16690. #define IL_NO_PIX
  16691. _ACEOF
  16692. else
  16693. { echo "$as_me:$LINENO: result: yes" >&5
  16694. echo "${ECHO_T}yes" >&6; }
  16695. SUPPORTED_FORMATS="$SUPPORTED_FORMATS PIX"
  16696. fi
  16697. lib_test_result=""
  16698. # Check whether --enable-png was given.
  16699. if test "${enable_png+set}" = set; then
  16700. enableval=$enable_png;
  16701. else
  16702. enable_png="yes"
  16703. fi
  16704. if test 4 -eq 4 -a "x$enable_png" = "xyes"; then
  16705. if test "${ac_cv_header_png_h+set}" = set; then
  16706. { echo "$as_me:$LINENO: checking for png.h" >&5
  16707. echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
  16708. if test "${ac_cv_header_png_h+set}" = set; then
  16709. echo $ECHO_N "(cached) $ECHO_C" >&6
  16710. fi
  16711. { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
  16712. echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
  16713. else
  16714. # Is the header compilable?
  16715. { echo "$as_me:$LINENO: checking png.h usability" >&5
  16716. echo $ECHO_N "checking png.h usability... $ECHO_C" >&6; }
  16717. cat >conftest.$ac_ext <<_ACEOF
  16718. /* confdefs.h. */
  16719. _ACEOF
  16720. cat confdefs.h >>conftest.$ac_ext
  16721. cat >>conftest.$ac_ext <<_ACEOF
  16722. /* end confdefs.h. */
  16723. $ac_includes_default
  16724. #include <png.h>
  16725. _ACEOF
  16726. rm -f conftest.$ac_objext
  16727. if { (ac_try="$ac_compile"
  16728. case "(($ac_try" in
  16729. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16730. *) ac_try_echo=$ac_try;;
  16731. esac
  16732. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16733. (eval "$ac_compile") 2>conftest.er1
  16734. ac_status=$?
  16735. grep -v '^ *+' conftest.er1 >conftest.err
  16736. rm -f conftest.er1
  16737. cat conftest.err >&5
  16738. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16739. (exit $ac_status); } && {
  16740. test -z "$ac_c_werror_flag" ||
  16741. test ! -s conftest.err
  16742. } && test -s conftest.$ac_objext; then
  16743. ac_header_compiler=yes
  16744. else
  16745. echo "$as_me: failed program was:" >&5
  16746. sed 's/^/| /' conftest.$ac_ext >&5
  16747. ac_header_compiler=no
  16748. fi
  16749. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16750. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16751. echo "${ECHO_T}$ac_header_compiler" >&6; }
  16752. # Is the header present?
  16753. { echo "$as_me:$LINENO: checking png.h presence" >&5
  16754. echo $ECHO_N "checking png.h presence... $ECHO_C" >&6; }
  16755. cat >conftest.$ac_ext <<_ACEOF
  16756. /* confdefs.h. */
  16757. _ACEOF
  16758. cat confdefs.h >>conftest.$ac_ext
  16759. cat >>conftest.$ac_ext <<_ACEOF
  16760. /* end confdefs.h. */
  16761. #include <png.h>
  16762. _ACEOF
  16763. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16764. case "(($ac_try" in
  16765. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16766. *) ac_try_echo=$ac_try;;
  16767. esac
  16768. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16769. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16770. ac_status=$?
  16771. grep -v '^ *+' conftest.er1 >conftest.err
  16772. rm -f conftest.er1
  16773. cat conftest.err >&5
  16774. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16775. (exit $ac_status); } >/dev/null && {
  16776. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  16777. test ! -s conftest.err
  16778. }; then
  16779. ac_header_preproc=yes
  16780. else
  16781. echo "$as_me: failed program was:" >&5
  16782. sed 's/^/| /' conftest.$ac_ext >&5
  16783. ac_header_preproc=no
  16784. fi
  16785. rm -f conftest.err conftest.$ac_ext
  16786. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16787. echo "${ECHO_T}$ac_header_preproc" >&6; }
  16788. # So? What about this header?
  16789. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  16790. yes:no: )
  16791. { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
  16792. echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16793. { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
  16794. echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
  16795. ac_header_preproc=yes
  16796. ;;
  16797. no:yes:* )
  16798. { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
  16799. echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
  16800. { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
  16801. echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
  16802. { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
  16803. echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
  16804. { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
  16805. echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
  16806. { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
  16807. echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
  16808. { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
  16809. echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
  16810. ( cat <<\_ASBOX
  16811. ## ------------------------------------------ ##
  16812. ## Report this to bubla@users.sourceforge.net ##
  16813. ## ------------------------------------------ ##
  16814. _ASBOX
  16815. ) | sed "s/^/$as_me: WARNING: /" >&2
  16816. ;;
  16817. esac
  16818. { echo "$as_me:$LINENO: checking for png.h" >&5
  16819. echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
  16820. if test "${ac_cv_header_png_h+set}" = set; then
  16821. echo $ECHO_N "(cached) $ECHO_C" >&6
  16822. else
  16823. ac_cv_header_png_h=$ac_header_preproc
  16824. fi
  16825. { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
  16826. echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
  16827. fi
  16828. if test $ac_cv_header_png_h = yes; then
  16829. { echo "$as_me:$LINENO: checking for main in -lpng12" >&5
  16830. echo $ECHO_N "checking for main in -lpng12... $ECHO_C" >&6; }
  16831. if test "${ac_cv_lib_png12_main+set}" = set; then
  16832. echo $ECHO_N "(cached) $ECHO_C" >&6
  16833. else
  16834. ac_check_lib_save_LIBS=$LIBS
  16835. LIBS="-lpng12 $LIBS"
  16836. cat >conftest.$ac_ext <<_ACEOF
  16837. /* confdefs.h. */
  16838. _ACEOF
  16839. cat confdefs.h >>conftest.$ac_ext
  16840. cat >>conftest.$ac_ext <<_ACEOF
  16841. /* end confdefs.h. */
  16842. int
  16843. main ()
  16844. {
  16845. return main ();
  16846. ;
  16847. return 0;
  16848. }
  16849. _ACEOF
  16850. rm -f conftest.$ac_objext conftest$ac_exeext
  16851. if { (ac_try="$ac_link"
  16852. case "(($ac_try" in
  16853. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16854. *) ac_try_echo=$ac_try;;
  16855. esac
  16856. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16857. (eval "$ac_link") 2>conftest.er1
  16858. ac_status=$?
  16859. grep -v '^ *+' conftest.er1 >conftest.err
  16860. rm -f conftest.er1
  16861. cat conftest.err >&5
  16862. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16863. (exit $ac_status); } && {
  16864. test -z "$ac_c_werror_flag" ||
  16865. test ! -s conftest.err
  16866. } && test -s conftest$ac_exeext &&
  16867. $as_test_x conftest$ac_exeext; then
  16868. ac_cv_lib_png12_main=yes
  16869. else
  16870. echo "$as_me: failed program was:" >&5
  16871. sed 's/^/| /' conftest.$ac_ext >&5
  16872. ac_cv_lib_png12_main=no
  16873. fi
  16874. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16875. conftest$ac_exeext conftest.$ac_ext
  16876. LIBS=$ac_check_lib_save_LIBS
  16877. fi
  16878. { echo "$as_me:$LINENO: result: $ac_cv_lib_png12_main" >&5
  16879. echo "${ECHO_T}$ac_cv_lib_png12_main" >&6; }
  16880. if test $ac_cv_lib_png12_main = yes; then
  16881. IL_LIBS="-lpng12 $IL_LIBS"
  16882. have_png12="yes"
  16883. else
  16884. have_png12="no"
  16885. fi
  16886. else
  16887. have_png12="no"
  16888. fi
  16889. if test "x$have_png12" = "xno"; then
  16890. if test "${ac_cv_header_png_h+set}" = set; then
  16891. { echo "$as_me:$LINENO: checking for png.h" >&5
  16892. echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
  16893. if test "${ac_cv_header_png_h+set}" = set; then
  16894. echo $ECHO_N "(cached) $ECHO_C" >&6
  16895. fi
  16896. { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
  16897. echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
  16898. else
  16899. # Is the header compilable?
  16900. { echo "$as_me:$LINENO: checking png.h usability" >&5
  16901. echo $ECHO_N "checking png.h usability... $ECHO_C" >&6; }
  16902. cat >conftest.$ac_ext <<_ACEOF
  16903. /* confdefs.h. */
  16904. _ACEOF
  16905. cat confdefs.h >>conftest.$ac_ext
  16906. cat >>conftest.$ac_ext <<_ACEOF
  16907. /* end confdefs.h. */
  16908. $ac_includes_default
  16909. #include <png.h>
  16910. _ACEOF
  16911. rm -f conftest.$ac_objext
  16912. if { (ac_try="$ac_compile"
  16913. case "(($ac_try" in
  16914. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16915. *) ac_try_echo=$ac_try;;
  16916. esac
  16917. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16918. (eval "$ac_compile") 2>conftest.er1
  16919. ac_status=$?
  16920. grep -v '^ *+' conftest.er1 >conftest.err
  16921. rm -f conftest.er1
  16922. cat conftest.err >&5
  16923. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16924. (exit $ac_status); } && {
  16925. test -z "$ac_c_werror_flag" ||
  16926. test ! -s conftest.err
  16927. } && test -s conftest.$ac_objext; then
  16928. ac_header_compiler=yes
  16929. else
  16930. echo "$as_me: failed program was:" >&5
  16931. sed 's/^/| /' conftest.$ac_ext >&5
  16932. ac_header_compiler=no
  16933. fi
  16934. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16935. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16936. echo "${ECHO_T}$ac_header_compiler" >&6; }
  16937. # Is the header present?
  16938. { echo "$as_me:$LINENO: checking png.h presence" >&5
  16939. echo $ECHO_N "checking png.h presence... $ECHO_C" >&6; }
  16940. cat >conftest.$ac_ext <<_ACEOF
  16941. /* confdefs.h. */
  16942. _ACEOF
  16943. cat confdefs.h >>conftest.$ac_ext
  16944. cat >>conftest.$ac_ext <<_ACEOF
  16945. /* end confdefs.h. */
  16946. #include <png.h>
  16947. _ACEOF
  16948. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16949. case "(($ac_try" in
  16950. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16951. *) ac_try_echo=$ac_try;;
  16952. esac
  16953. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16954. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16955. ac_status=$?
  16956. grep -v '^ *+' conftest.er1 >conftest.err
  16957. rm -f conftest.er1
  16958. cat conftest.err >&5
  16959. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16960. (exit $ac_status); } >/dev/null && {
  16961. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  16962. test ! -s conftest.err
  16963. }; then
  16964. ac_header_preproc=yes
  16965. else
  16966. echo "$as_me: failed program was:" >&5
  16967. sed 's/^/| /' conftest.$ac_ext >&5
  16968. ac_header_preproc=no
  16969. fi
  16970. rm -f conftest.err conftest.$ac_ext
  16971. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16972. echo "${ECHO_T}$ac_header_preproc" >&6; }
  16973. # So? What about this header?
  16974. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  16975. yes:no: )
  16976. { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
  16977. echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16978. { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
  16979. echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
  16980. ac_header_preproc=yes
  16981. ;;
  16982. no:yes:* )
  16983. { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
  16984. echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
  16985. { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
  16986. echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
  16987. { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
  16988. echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
  16989. { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
  16990. echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
  16991. { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
  16992. echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
  16993. { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
  16994. echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
  16995. ( cat <<\_ASBOX
  16996. ## ------------------------------------------ ##
  16997. ## Report this to bubla@users.sourceforge.net ##
  16998. ## ------------------------------------------ ##
  16999. _ASBOX
  17000. ) | sed "s/^/$as_me: WARNING: /" >&2
  17001. ;;
  17002. esac
  17003. { echo "$as_me:$LINENO: checking for png.h" >&5
  17004. echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
  17005. if test "${ac_cv_header_png_h+set}" = set; then
  17006. echo $ECHO_N "(cached) $ECHO_C" >&6
  17007. else
  17008. ac_cv_header_png_h=$ac_header_preproc
  17009. fi
  17010. { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
  17011. echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
  17012. fi
  17013. if test $ac_cv_header_png_h = yes; then
  17014. { echo "$as_me:$LINENO: checking for main in -lpng" >&5
  17015. echo $ECHO_N "checking for main in -lpng... $ECHO_C" >&6; }
  17016. if test "${ac_cv_lib_png_main+set}" = set; then
  17017. echo $ECHO_N "(cached) $ECHO_C" >&6
  17018. else
  17019. ac_check_lib_save_LIBS=$LIBS
  17020. LIBS="-lpng $LIBS"
  17021. cat >conftest.$ac_ext <<_ACEOF
  17022. /* confdefs.h. */
  17023. _ACEOF
  17024. cat confdefs.h >>conftest.$ac_ext
  17025. cat >>conftest.$ac_ext <<_ACEOF
  17026. /* end confdefs.h. */
  17027. int
  17028. main ()
  17029. {
  17030. return main ();
  17031. ;
  17032. return 0;
  17033. }
  17034. _ACEOF
  17035. rm -f conftest.$ac_objext conftest$ac_exeext
  17036. if { (ac_try="$ac_link"
  17037. case "(($ac_try" in
  17038. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17039. *) ac_try_echo=$ac_try;;
  17040. esac
  17041. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17042. (eval "$ac_link") 2>conftest.er1
  17043. ac_status=$?
  17044. grep -v '^ *+' conftest.er1 >conftest.err
  17045. rm -f conftest.er1
  17046. cat conftest.err >&5
  17047. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17048. (exit $ac_status); } && {
  17049. test -z "$ac_c_werror_flag" ||
  17050. test ! -s conftest.err
  17051. } && test -s conftest$ac_exeext &&
  17052. $as_test_x conftest$ac_exeext; then
  17053. ac_cv_lib_png_main=yes
  17054. else
  17055. echo "$as_me: failed program was:" >&5
  17056. sed 's/^/| /' conftest.$ac_ext >&5
  17057. ac_cv_lib_png_main=no
  17058. fi
  17059. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17060. conftest$ac_exeext conftest.$ac_ext
  17061. LIBS=$ac_check_lib_save_LIBS
  17062. fi
  17063. { echo "$as_me:$LINENO: result: $ac_cv_lib_png_main" >&5
  17064. echo "${ECHO_T}$ac_cv_lib_png_main" >&6; }
  17065. if test $ac_cv_lib_png_main = yes; then
  17066. IL_LIBS="-lpng $IL_LIBS"
  17067. have_png="yes"
  17068. else
  17069. have_png="no"
  17070. fi
  17071. else
  17072. have_png="no"
  17073. fi
  17074. lib_test_result="$have_png"
  17075. else
  17076. lib_test_result="$have_png12"
  17077. fi
  17078. if test "x$lib_test_result" = "xyes"; then
  17079. if test "x$enable_modules" = "xyes"; then
  17080. IL_LIBS_OPTIONAL="${IL_LIBS_OPTIONAL} libpng"
  17081. else
  17082. IL_LIBS_REQUIRED="${IL_LIBS_REQUIRED} libpng"
  17083. fi
  17084. fi
  17085. fi
  17086. { echo "$as_me:$LINENO: checking whether we would like to have support for png format" >&5
  17087. echo $ECHO_N "checking whether we would like to have support for png format... $ECHO_C" >&6; }
  17088. if test "x$enable_png" = "xno" -o "x$lib_test_result" = "xno"; then
  17089. { echo "$as_me:$LINENO: result: no" >&5
  17090. echo "${ECHO_T}no" >&6; }
  17091. cat >>confdefs.h <<\_ACEOF
  17092. #define IL_NO_PNG
  17093. _ACEOF
  17094. else
  17095. { echo "$as_me:$LINENO: result: yes" >&5
  17096. echo "${ECHO_T}yes" >&6; }
  17097. SUPPORTED_FORMATS="$SUPPORTED_FORMATS PNG"
  17098. fi
  17099. lib_test_result=""
  17100. # Check whether --enable-pnm was given.
  17101. if test "${enable_pnm+set}" = set; then
  17102. enableval=$enable_pnm;
  17103. else
  17104. enable_pnm="yes"
  17105. fi
  17106. { echo "$as_me:$LINENO: checking whether we would like to have support for pnm format" >&5
  17107. echo $ECHO_N "checking whether we would like to have support for pnm format... $ECHO_C" >&6; }
  17108. if test "x$enable_pnm" = "xno" -o "x$lib_test_result" = "xno"; then
  17109. { echo "$as_me:$LINENO: result: no" >&5
  17110. echo "${ECHO_T}no" >&6; }
  17111. cat >>confdefs.h <<\_ACEOF
  17112. #define IL_NO_PNM
  17113. _ACEOF
  17114. else
  17115. { echo "$as_me:$LINENO: result: yes" >&5
  17116. echo "${ECHO_T}yes" >&6; }
  17117. SUPPORTED_FORMATS="$SUPPORTED_FORMATS PNM"
  17118. fi
  17119. lib_test_result=""
  17120. # Check whether --enable-psd was given.
  17121. if test "${enable_psd+set}" = set; then
  17122. enableval=$enable_psd;
  17123. else
  17124. enable_psd="yes"
  17125. fi
  17126. { echo "$as_me:$LINENO: checking whether we would like to have support for psd format" >&5
  17127. echo $ECHO_N "checking whether we would like to have support for psd format... $ECHO_C" >&6; }
  17128. if test "x$enable_psd" = "xno" -o "x$lib_test_result" = "xno"; then
  17129. { echo "$as_me:$LINENO: result: no" >&5
  17130. echo "${ECHO_T}no" >&6; }
  17131. cat >>confdefs.h <<\_ACEOF
  17132. #define IL_NO_PSD
  17133. _ACEOF
  17134. else
  17135. { echo "$as_me:$LINENO: result: yes" >&5
  17136. echo "${ECHO_T}yes" >&6; }
  17137. SUPPORTED_FORMATS="$SUPPORTED_FORMATS PSD"
  17138. fi
  17139. lib_test_result=""
  17140. # Check whether --enable-psp was given.
  17141. if test "${enable_psp+set}" = set; then
  17142. enableval=$enable_psp;
  17143. else
  17144. enable_psp="yes"
  17145. fi
  17146. { echo "$as_me:$LINENO: checking whether we would like to have support for psp format" >&5
  17147. echo $ECHO_N "checking whether we would like to have support for psp format... $ECHO_C" >&6; }
  17148. if test "x$enable_psp" = "xno" -o "x$lib_test_result" = "xno"; then
  17149. { echo "$as_me:$LINENO: result: no" >&5
  17150. echo "${ECHO_T}no" >&6; }
  17151. cat >>confdefs.h <<\_ACEOF
  17152. #define IL_NO_PSP
  17153. _ACEOF
  17154. else
  17155. { echo "$as_me:$LINENO: result: yes" >&5
  17156. echo "${ECHO_T}yes" >&6; }
  17157. SUPPORTED_FORMATS="$SUPPORTED_FORMATS PSP"
  17158. fi
  17159. lib_test_result=""
  17160. # Check whether --enable-pxr was given.
  17161. if test "${enable_pxr+set}" = set; then
  17162. enableval=$enable_pxr;
  17163. else
  17164. enable_pxr="yes"
  17165. fi
  17166. { echo "$as_me:$LINENO: checking whether we would like to have support for pxr format" >&5
  17167. echo $ECHO_N "checking whether we would like to have support for pxr format... $ECHO_C" >&6; }
  17168. if test "x$enable_pxr" = "xno" -o "x$lib_test_result" = "xno"; then
  17169. { echo "$as_me:$LINENO: result: no" >&5
  17170. echo "${ECHO_T}no" >&6; }
  17171. cat >>confdefs.h <<\_ACEOF
  17172. #define IL_NO_PXR
  17173. _ACEOF
  17174. else
  17175. { echo "$as_me:$LINENO: result: yes" >&5
  17176. echo "${ECHO_T}yes" >&6; }
  17177. SUPPORTED_FORMATS="$SUPPORTED_FORMATS PXR"
  17178. fi
  17179. lib_test_result=""
  17180. # Check whether --enable-raw was given.
  17181. if test "${enable_raw+set}" = set; then
  17182. enableval=$enable_raw;
  17183. else
  17184. enable_raw="yes"
  17185. fi
  17186. { echo "$as_me:$LINENO: checking whether we would like to have support for raw format" >&5
  17187. echo $ECHO_N "checking whether we would like to have support for raw format... $ECHO_C" >&6; }
  17188. if test "x$enable_raw" = "xno" -o "x$lib_test_result" = "xno"; then
  17189. { echo "$as_me:$LINENO: result: no" >&5
  17190. echo "${ECHO_T}no" >&6; }
  17191. cat >>confdefs.h <<\_ACEOF
  17192. #define IL_NO_RAW
  17193. _ACEOF
  17194. else
  17195. { echo "$as_me:$LINENO: result: yes" >&5
  17196. echo "${ECHO_T}yes" >&6; }
  17197. SUPPORTED_FORMATS="$SUPPORTED_FORMATS RAW"
  17198. fi
  17199. lib_test_result=""
  17200. # Check whether --enable-rot was given.
  17201. if test "${enable_rot+set}" = set; then
  17202. enableval=$enable_rot;
  17203. else
  17204. enable_rot="yes"
  17205. fi
  17206. { echo "$as_me:$LINENO: checking whether we would like to have support for rot format" >&5
  17207. echo $ECHO_N "checking whether we would like to have support for rot format... $ECHO_C" >&6; }
  17208. if test "x$enable_rot" = "xno" -o "x$lib_test_result" = "xno"; then
  17209. { echo "$as_me:$LINENO: result: no" >&5
  17210. echo "${ECHO_T}no" >&6; }
  17211. cat >>confdefs.h <<\_ACEOF
  17212. #define IL_NO_ROT
  17213. _ACEOF
  17214. else
  17215. { echo "$as_me:$LINENO: result: yes" >&5
  17216. echo "${ECHO_T}yes" >&6; }
  17217. SUPPORTED_FORMATS="$SUPPORTED_FORMATS ROT"
  17218. fi
  17219. lib_test_result=""
  17220. # Check whether --enable-sgi was given.
  17221. if test "${enable_sgi+set}" = set; then
  17222. enableval=$enable_sgi;
  17223. else
  17224. enable_sgi="yes"
  17225. fi
  17226. { echo "$as_me:$LINENO: checking whether we would like to have support for sgi format" >&5
  17227. echo $ECHO_N "checking whether we would like to have support for sgi format... $ECHO_C" >&6; }
  17228. if test "x$enable_sgi" = "xno" -o "x$lib_test_result" = "xno"; then
  17229. { echo "$as_me:$LINENO: result: no" >&5
  17230. echo "${ECHO_T}no" >&6; }
  17231. cat >>confdefs.h <<\_ACEOF
  17232. #define IL_NO_SGI
  17233. _ACEOF
  17234. else
  17235. { echo "$as_me:$LINENO: result: yes" >&5
  17236. echo "${ECHO_T}yes" >&6; }
  17237. SUPPORTED_FORMATS="$SUPPORTED_FORMATS SGI"
  17238. fi
  17239. lib_test_result=""
  17240. # Check whether --enable-sun was given.
  17241. if test "${enable_sun+set}" = set; then
  17242. enableval=$enable_sun;
  17243. else
  17244. enable_sun="yes"
  17245. fi
  17246. { echo "$as_me:$LINENO: checking whether we would like to have support for sun format" >&5
  17247. echo $ECHO_N "checking whether we would like to have support for sun format... $ECHO_C" >&6; }
  17248. if test "x$enable_sun" = "xno" -o "x$lib_test_result" = "xno"; then
  17249. { echo "$as_me:$LINENO: result: no" >&5
  17250. echo "${ECHO_T}no" >&6; }
  17251. cat >>confdefs.h <<\_ACEOF
  17252. #define IL_NO_SUN
  17253. _ACEOF
  17254. else
  17255. { echo "$as_me:$LINENO: result: yes" >&5
  17256. echo "${ECHO_T}yes" >&6; }
  17257. SUPPORTED_FORMATS="$SUPPORTED_FORMATS SUN"
  17258. fi
  17259. lib_test_result=""
  17260. # Check whether --enable-texture was given.
  17261. if test "${enable_texture+set}" = set; then
  17262. enableval=$enable_texture;
  17263. else
  17264. enable_texture="yes"
  17265. fi
  17266. { echo "$as_me:$LINENO: checking whether we would like to have support for texture format" >&5
  17267. echo $ECHO_N "checking whether we would like to have support for texture format... $ECHO_C" >&6; }
  17268. if test "x$enable_texture" = "xno" -o "x$lib_test_result" = "xno"; then
  17269. { echo "$as_me:$LINENO: result: no" >&5
  17270. echo "${ECHO_T}no" >&6; }
  17271. cat >>confdefs.h <<\_ACEOF
  17272. #define IL_NO_TEXTURE
  17273. _ACEOF
  17274. else
  17275. { echo "$as_me:$LINENO: result: yes" >&5
  17276. echo "${ECHO_T}yes" >&6; }
  17277. SUPPORTED_FORMATS="$SUPPORTED_FORMATS TEXTURE"
  17278. fi
  17279. lib_test_result=""
  17280. # Check whether --enable-tga was given.
  17281. if test "${enable_tga+set}" = set; then
  17282. enableval=$enable_tga;
  17283. else
  17284. enable_tga="yes"
  17285. fi
  17286. { echo "$as_me:$LINENO: checking whether we would like to have support for tga format" >&5
  17287. echo $ECHO_N "checking whether we would like to have support for tga format... $ECHO_C" >&6; }
  17288. if test "x$enable_tga" = "xno" -o "x$lib_test_result" = "xno"; then
  17289. { echo "$as_me:$LINENO: result: no" >&5
  17290. echo "${ECHO_T}no" >&6; }
  17291. cat >>confdefs.h <<\_ACEOF
  17292. #define IL_NO_TGA
  17293. _ACEOF
  17294. else
  17295. { echo "$as_me:$LINENO: result: yes" >&5
  17296. echo "${ECHO_T}yes" >&6; }
  17297. SUPPORTED_FORMATS="$SUPPORTED_FORMATS TGA"
  17298. fi
  17299. lib_test_result=""
  17300. # Check whether --enable-tiff was given.
  17301. if test "${enable_tiff+set}" = set; then
  17302. enableval=$enable_tiff;
  17303. else
  17304. enable_tiff="yes"
  17305. fi
  17306. if test 4 -eq 4 -a "x$enable_tiff" = "xyes"; then
  17307. if test "${ac_cv_header_tiffio_h+set}" = set; then
  17308. { echo "$as_me:$LINENO: checking for tiffio.h" >&5
  17309. echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
  17310. if test "${ac_cv_header_tiffio_h+set}" = set; then
  17311. echo $ECHO_N "(cached) $ECHO_C" >&6
  17312. fi
  17313. { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
  17314. echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
  17315. else
  17316. # Is the header compilable?
  17317. { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
  17318. echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
  17319. cat >conftest.$ac_ext <<_ACEOF
  17320. /* confdefs.h. */
  17321. _ACEOF
  17322. cat confdefs.h >>conftest.$ac_ext
  17323. cat >>conftest.$ac_ext <<_ACEOF
  17324. /* end confdefs.h. */
  17325. $ac_includes_default
  17326. #include <tiffio.h>
  17327. _ACEOF
  17328. rm -f conftest.$ac_objext
  17329. if { (ac_try="$ac_compile"
  17330. case "(($ac_try" in
  17331. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17332. *) ac_try_echo=$ac_try;;
  17333. esac
  17334. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17335. (eval "$ac_compile") 2>conftest.er1
  17336. ac_status=$?
  17337. grep -v '^ *+' conftest.er1 >conftest.err
  17338. rm -f conftest.er1
  17339. cat conftest.err >&5
  17340. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17341. (exit $ac_status); } && {
  17342. test -z "$ac_c_werror_flag" ||
  17343. test ! -s conftest.err
  17344. } && test -s conftest.$ac_objext; then
  17345. ac_header_compiler=yes
  17346. else
  17347. echo "$as_me: failed program was:" >&5
  17348. sed 's/^/| /' conftest.$ac_ext >&5
  17349. ac_header_compiler=no
  17350. fi
  17351. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17352. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17353. echo "${ECHO_T}$ac_header_compiler" >&6; }
  17354. # Is the header present?
  17355. { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
  17356. echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
  17357. cat >conftest.$ac_ext <<_ACEOF
  17358. /* confdefs.h. */
  17359. _ACEOF
  17360. cat confdefs.h >>conftest.$ac_ext
  17361. cat >>conftest.$ac_ext <<_ACEOF
  17362. /* end confdefs.h. */
  17363. #include <tiffio.h>
  17364. _ACEOF
  17365. if { (ac_try="$ac_cpp conftest.$ac_ext"
  17366. case "(($ac_try" in
  17367. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17368. *) ac_try_echo=$ac_try;;
  17369. esac
  17370. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17371. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17372. ac_status=$?
  17373. grep -v '^ *+' conftest.er1 >conftest.err
  17374. rm -f conftest.er1
  17375. cat conftest.err >&5
  17376. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17377. (exit $ac_status); } >/dev/null && {
  17378. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  17379. test ! -s conftest.err
  17380. }; then
  17381. ac_header_preproc=yes
  17382. else
  17383. echo "$as_me: failed program was:" >&5
  17384. sed 's/^/| /' conftest.$ac_ext >&5
  17385. ac_header_preproc=no
  17386. fi
  17387. rm -f conftest.err conftest.$ac_ext
  17388. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17389. echo "${ECHO_T}$ac_header_preproc" >&6; }
  17390. # So? What about this header?
  17391. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  17392. yes:no: )
  17393. { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
  17394. echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17395. { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
  17396. echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
  17397. ac_header_preproc=yes
  17398. ;;
  17399. no:yes:* )
  17400. { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
  17401. echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
  17402. { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
  17403. echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
  17404. { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
  17405. echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
  17406. { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
  17407. echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
  17408. { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
  17409. echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
  17410. { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
  17411. echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
  17412. ( cat <<\_ASBOX
  17413. ## ------------------------------------------ ##
  17414. ## Report this to bubla@users.sourceforge.net ##
  17415. ## ------------------------------------------ ##
  17416. _ASBOX
  17417. ) | sed "s/^/$as_me: WARNING: /" >&2
  17418. ;;
  17419. esac
  17420. { echo "$as_me:$LINENO: checking for tiffio.h" >&5
  17421. echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
  17422. if test "${ac_cv_header_tiffio_h+set}" = set; then
  17423. echo $ECHO_N "(cached) $ECHO_C" >&6
  17424. else
  17425. ac_cv_header_tiffio_h=$ac_header_preproc
  17426. fi
  17427. { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
  17428. echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
  17429. fi
  17430. if test $ac_cv_header_tiffio_h = yes; then
  17431. { echo "$as_me:$LINENO: checking for main in -ltiff" >&5
  17432. echo $ECHO_N "checking for main in -ltiff... $ECHO_C" >&6; }
  17433. if test "${ac_cv_lib_tiff_main+set}" = set; then
  17434. echo $ECHO_N "(cached) $ECHO_C" >&6
  17435. else
  17436. ac_check_lib_save_LIBS=$LIBS
  17437. LIBS="-ltiff $LIBS"
  17438. cat >conftest.$ac_ext <<_ACEOF
  17439. /* confdefs.h. */
  17440. _ACEOF
  17441. cat confdefs.h >>conftest.$ac_ext
  17442. cat >>conftest.$ac_ext <<_ACEOF
  17443. /* end confdefs.h. */
  17444. int
  17445. main ()
  17446. {
  17447. return main ();
  17448. ;
  17449. return 0;
  17450. }
  17451. _ACEOF
  17452. rm -f conftest.$ac_objext conftest$ac_exeext
  17453. if { (ac_try="$ac_link"
  17454. case "(($ac_try" in
  17455. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17456. *) ac_try_echo=$ac_try;;
  17457. esac
  17458. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17459. (eval "$ac_link") 2>conftest.er1
  17460. ac_status=$?
  17461. grep -v '^ *+' conftest.er1 >conftest.err
  17462. rm -f conftest.er1
  17463. cat conftest.err >&5
  17464. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17465. (exit $ac_status); } && {
  17466. test -z "$ac_c_werror_flag" ||
  17467. test ! -s conftest.err
  17468. } && test -s conftest$ac_exeext &&
  17469. $as_test_x conftest$ac_exeext; then
  17470. ac_cv_lib_tiff_main=yes
  17471. else
  17472. echo "$as_me: failed program was:" >&5
  17473. sed 's/^/| /' conftest.$ac_ext >&5
  17474. ac_cv_lib_tiff_main=no
  17475. fi
  17476. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17477. conftest$ac_exeext conftest.$ac_ext
  17478. LIBS=$ac_check_lib_save_LIBS
  17479. fi
  17480. { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_main" >&5
  17481. echo "${ECHO_T}$ac_cv_lib_tiff_main" >&6; }
  17482. if test $ac_cv_lib_tiff_main = yes; then
  17483. IL_LIBS="-ltiff $IL_LIBS"
  17484. have_tiff="yes"
  17485. else
  17486. have_tiff="no"
  17487. fi
  17488. else
  17489. have_tiff="no"
  17490. fi
  17491. lib_test_result="$have_tiff"
  17492. if test "x$lib_test_result" = "xyes"; then
  17493. if test "x$enable_modules" = "xyes"; then
  17494. IL_LIBS_OPTIONAL="${IL_LIBS_OPTIONAL} libtiff"
  17495. else
  17496. IL_LIBS_REQUIRED="${IL_LIBS_REQUIRED} libtiff"
  17497. fi
  17498. fi
  17499. fi
  17500. { echo "$as_me:$LINENO: checking whether we would like to have support for tiff format" >&5
  17501. echo $ECHO_N "checking whether we would like to have support for tiff format... $ECHO_C" >&6; }
  17502. if test "x$enable_tiff" = "xno" -o "x$lib_test_result" = "xno"; then
  17503. { echo "$as_me:$LINENO: result: no" >&5
  17504. echo "${ECHO_T}no" >&6; }
  17505. cat >>confdefs.h <<\_ACEOF
  17506. #define IL_NO_TIF
  17507. _ACEOF
  17508. else
  17509. { echo "$as_me:$LINENO: result: yes" >&5
  17510. echo "${ECHO_T}yes" >&6; }
  17511. SUPPORTED_FORMATS="$SUPPORTED_FORMATS TIF"
  17512. fi
  17513. lib_test_result=""
  17514. # Check whether --enable-tpl was given.
  17515. if test "${enable_tpl+set}" = set; then
  17516. enableval=$enable_tpl;
  17517. else
  17518. enable_tpl="yes"
  17519. fi
  17520. { echo "$as_me:$LINENO: checking whether we would like to have support for tpl format" >&5
  17521. echo $ECHO_N "checking whether we would like to have support for tpl format... $ECHO_C" >&6; }
  17522. if test "x$enable_tpl" = "xno" -o "x$lib_test_result" = "xno"; then
  17523. { echo "$as_me:$LINENO: result: no" >&5
  17524. echo "${ECHO_T}no" >&6; }
  17525. cat >>confdefs.h <<\_ACEOF
  17526. #define IL_NO_TPL
  17527. _ACEOF
  17528. else
  17529. { echo "$as_me:$LINENO: result: yes" >&5
  17530. echo "${ECHO_T}yes" >&6; }
  17531. SUPPORTED_FORMATS="$SUPPORTED_FORMATS TPL"
  17532. fi
  17533. lib_test_result=""
  17534. # Check whether --enable-utx was given.
  17535. if test "${enable_utx+set}" = set; then
  17536. enableval=$enable_utx;
  17537. else
  17538. enable_utx="yes"
  17539. fi
  17540. { echo "$as_me:$LINENO: checking whether we would like to have support for utx format" >&5
  17541. echo $ECHO_N "checking whether we would like to have support for utx format... $ECHO_C" >&6; }
  17542. if test "x$enable_utx" = "xno" -o "x$lib_test_result" = "xno"; then
  17543. { echo "$as_me:$LINENO: result: no" >&5
  17544. echo "${ECHO_T}no" >&6; }
  17545. cat >>confdefs.h <<\_ACEOF
  17546. #define IL_NO_UTX
  17547. _ACEOF
  17548. else
  17549. { echo "$as_me:$LINENO: result: yes" >&5
  17550. echo "${ECHO_T}yes" >&6; }
  17551. SUPPORTED_FORMATS="$SUPPORTED_FORMATS UTX"
  17552. fi
  17553. lib_test_result=""
  17554. # Check whether --enable-vtf was given.
  17555. if test "${enable_vtf+set}" = set; then
  17556. enableval=$enable_vtf;
  17557. else
  17558. enable_vtf="yes"
  17559. fi
  17560. { echo "$as_me:$LINENO: checking whether we would like to have support for vtf format" >&5
  17561. echo $ECHO_N "checking whether we would like to have support for vtf format... $ECHO_C" >&6; }
  17562. if test "x$enable_vtf" = "xno" -o "x$lib_test_result" = "xno"; then
  17563. { echo "$as_me:$LINENO: result: no" >&5
  17564. echo "${ECHO_T}no" >&6; }
  17565. cat >>confdefs.h <<\_ACEOF
  17566. #define IL_NO_VTF
  17567. _ACEOF
  17568. else
  17569. { echo "$as_me:$LINENO: result: yes" >&5
  17570. echo "${ECHO_T}yes" >&6; }
  17571. SUPPORTED_FORMATS="$SUPPORTED_FORMATS VTF"
  17572. fi
  17573. lib_test_result=""
  17574. # Check whether --enable-wal was given.
  17575. if test "${enable_wal+set}" = set; then
  17576. enableval=$enable_wal;
  17577. else
  17578. enable_wal="yes"
  17579. fi
  17580. { echo "$as_me:$LINENO: checking whether we would like to have support for wal format" >&5
  17581. echo $ECHO_N "checking whether we would like to have support for wal format... $ECHO_C" >&6; }
  17582. if test "x$enable_wal" = "xno" -o "x$lib_test_result" = "xno"; then
  17583. { echo "$as_me:$LINENO: result: no" >&5
  17584. echo "${ECHO_T}no" >&6; }
  17585. cat >>confdefs.h <<\_ACEOF
  17586. #define IL_NO_WAL
  17587. _ACEOF
  17588. else
  17589. { echo "$as_me:$LINENO: result: yes" >&5
  17590. echo "${ECHO_T}yes" >&6; }
  17591. SUPPORTED_FORMATS="$SUPPORTED_FORMATS WAL"
  17592. fi
  17593. lib_test_result=""
  17594. # Check whether --enable-wbmp was given.
  17595. if test "${enable_wbmp+set}" = set; then
  17596. enableval=$enable_wbmp;
  17597. else
  17598. enable_wbmp="yes"
  17599. fi
  17600. { echo "$as_me:$LINENO: checking whether we would like to have support for wbmp format" >&5
  17601. echo $ECHO_N "checking whether we would like to have support for wbmp format... $ECHO_C" >&6; }
  17602. if test "x$enable_wbmp" = "xno" -o "x$lib_test_result" = "xno"; then
  17603. { echo "$as_me:$LINENO: result: no" >&5
  17604. echo "${ECHO_T}no" >&6; }
  17605. cat >>confdefs.h <<\_ACEOF
  17606. #define IL_NO_WBMP
  17607. _ACEOF
  17608. else
  17609. { echo "$as_me:$LINENO: result: yes" >&5
  17610. echo "${ECHO_T}yes" >&6; }
  17611. SUPPORTED_FORMATS="$SUPPORTED_FORMATS WBMP"
  17612. fi
  17613. lib_test_result=""
  17614. # Check whether --enable-wdp was given.
  17615. if test "${enable_wdp+set}" = set; then
  17616. enableval=$enable_wdp;
  17617. else
  17618. enable_wdp="yes"
  17619. fi
  17620. { echo "$as_me:$LINENO: checking whether we would like to have support for wdp format" >&5
  17621. echo $ECHO_N "checking whether we would like to have support for wdp format... $ECHO_C" >&6; }
  17622. if test "x$enable_wdp" = "xno" -o "x$lib_test_result" = "xno"; then
  17623. { echo "$as_me:$LINENO: result: no" >&5
  17624. echo "${ECHO_T}no" >&6; }
  17625. cat >>confdefs.h <<\_ACEOF
  17626. #define IL_NO_WDP
  17627. _ACEOF
  17628. else
  17629. { echo "$as_me:$LINENO: result: yes" >&5
  17630. echo "${ECHO_T}yes" >&6; }
  17631. SUPPORTED_FORMATS="$SUPPORTED_FORMATS WDP"
  17632. fi
  17633. lib_test_result=""
  17634. # Check whether --enable-xpm was given.
  17635. if test "${enable_xpm+set}" = set; then
  17636. enableval=$enable_xpm;
  17637. else
  17638. enable_xpm="yes"
  17639. fi
  17640. { echo "$as_me:$LINENO: checking whether we would like to have support for xpm format" >&5
  17641. echo $ECHO_N "checking whether we would like to have support for xpm format... $ECHO_C" >&6; }
  17642. if test "x$enable_xpm" = "xno" -o "x$lib_test_result" = "xno"; then
  17643. { echo "$as_me:$LINENO: result: no" >&5
  17644. echo "${ECHO_T}no" >&6; }
  17645. cat >>confdefs.h <<\_ACEOF
  17646. #define IL_NO_XPM
  17647. _ACEOF
  17648. else
  17649. { echo "$as_me:$LINENO: result: yes" >&5
  17650. echo "${ECHO_T}yes" >&6; }
  17651. SUPPORTED_FORMATS="$SUPPORTED_FORMATS XPM"
  17652. fi
  17653. lib_test_result=""
  17654. # Check whether --with-libsquish was given.
  17655. if test "${with_libsquish+set}" = set; then
  17656. withval=$with_libsquish;
  17657. else
  17658. with_libsquish="yes"
  17659. fi
  17660. if test "x$with_libsquish" = "xyes"; then
  17661. if test "${ac_cv_header_squish_h+set}" = set; then
  17662. { echo "$as_me:$LINENO: checking for squish.h" >&5
  17663. echo $ECHO_N "checking for squish.h... $ECHO_C" >&6; }
  17664. if test "${ac_cv_header_squish_h+set}" = set; then
  17665. echo $ECHO_N "(cached) $ECHO_C" >&6
  17666. fi
  17667. { echo "$as_me:$LINENO: result: $ac_cv_header_squish_h" >&5
  17668. echo "${ECHO_T}$ac_cv_header_squish_h" >&6; }
  17669. else
  17670. # Is the header compilable?
  17671. { echo "$as_me:$LINENO: checking squish.h usability" >&5
  17672. echo $ECHO_N "checking squish.h usability... $ECHO_C" >&6; }
  17673. cat >conftest.$ac_ext <<_ACEOF
  17674. /* confdefs.h. */
  17675. _ACEOF
  17676. cat confdefs.h >>conftest.$ac_ext
  17677. cat >>conftest.$ac_ext <<_ACEOF
  17678. /* end confdefs.h. */
  17679. $ac_includes_default
  17680. #include <squish.h>
  17681. _ACEOF
  17682. rm -f conftest.$ac_objext
  17683. if { (ac_try="$ac_compile"
  17684. case "(($ac_try" in
  17685. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17686. *) ac_try_echo=$ac_try;;
  17687. esac
  17688. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17689. (eval "$ac_compile") 2>conftest.er1
  17690. ac_status=$?
  17691. grep -v '^ *+' conftest.er1 >conftest.err
  17692. rm -f conftest.er1
  17693. cat conftest.err >&5
  17694. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17695. (exit $ac_status); } && {
  17696. test -z "$ac_c_werror_flag" ||
  17697. test ! -s conftest.err
  17698. } && test -s conftest.$ac_objext; then
  17699. ac_header_compiler=yes
  17700. else
  17701. echo "$as_me: failed program was:" >&5
  17702. sed 's/^/| /' conftest.$ac_ext >&5
  17703. ac_header_compiler=no
  17704. fi
  17705. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17706. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17707. echo "${ECHO_T}$ac_header_compiler" >&6; }
  17708. # Is the header present?
  17709. { echo "$as_me:$LINENO: checking squish.h presence" >&5
  17710. echo $ECHO_N "checking squish.h presence... $ECHO_C" >&6; }
  17711. cat >conftest.$ac_ext <<_ACEOF
  17712. /* confdefs.h. */
  17713. _ACEOF
  17714. cat confdefs.h >>conftest.$ac_ext
  17715. cat >>conftest.$ac_ext <<_ACEOF
  17716. /* end confdefs.h. */
  17717. #include <squish.h>
  17718. _ACEOF
  17719. if { (ac_try="$ac_cpp conftest.$ac_ext"
  17720. case "(($ac_try" in
  17721. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17722. *) ac_try_echo=$ac_try;;
  17723. esac
  17724. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17725. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17726. ac_status=$?
  17727. grep -v '^ *+' conftest.er1 >conftest.err
  17728. rm -f conftest.er1
  17729. cat conftest.err >&5
  17730. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17731. (exit $ac_status); } >/dev/null && {
  17732. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  17733. test ! -s conftest.err
  17734. }; then
  17735. ac_header_preproc=yes
  17736. else
  17737. echo "$as_me: failed program was:" >&5
  17738. sed 's/^/| /' conftest.$ac_ext >&5
  17739. ac_header_preproc=no
  17740. fi
  17741. rm -f conftest.err conftest.$ac_ext
  17742. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17743. echo "${ECHO_T}$ac_header_preproc" >&6; }
  17744. # So? What about this header?
  17745. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  17746. yes:no: )
  17747. { echo "$as_me:$LINENO: WARNING: squish.h: accepted by the compiler, rejected by the preprocessor!" >&5
  17748. echo "$as_me: WARNING: squish.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17749. { echo "$as_me:$LINENO: WARNING: squish.h: proceeding with the compiler's result" >&5
  17750. echo "$as_me: WARNING: squish.h: proceeding with the compiler's result" >&2;}
  17751. ac_header_preproc=yes
  17752. ;;
  17753. no:yes:* )
  17754. { echo "$as_me:$LINENO: WARNING: squish.h: present but cannot be compiled" >&5
  17755. echo "$as_me: WARNING: squish.h: present but cannot be compiled" >&2;}
  17756. { echo "$as_me:$LINENO: WARNING: squish.h: check for missing prerequisite headers?" >&5
  17757. echo "$as_me: WARNING: squish.h: check for missing prerequisite headers?" >&2;}
  17758. { echo "$as_me:$LINENO: WARNING: squish.h: see the Autoconf documentation" >&5
  17759. echo "$as_me: WARNING: squish.h: see the Autoconf documentation" >&2;}
  17760. { echo "$as_me:$LINENO: WARNING: squish.h: section \"Present But Cannot Be Compiled\"" >&5
  17761. echo "$as_me: WARNING: squish.h: section \"Present But Cannot Be Compiled\"" >&2;}
  17762. { echo "$as_me:$LINENO: WARNING: squish.h: proceeding with the preprocessor's result" >&5
  17763. echo "$as_me: WARNING: squish.h: proceeding with the preprocessor's result" >&2;}
  17764. { echo "$as_me:$LINENO: WARNING: squish.h: in the future, the compiler will take precedence" >&5
  17765. echo "$as_me: WARNING: squish.h: in the future, the compiler will take precedence" >&2;}
  17766. ( cat <<\_ASBOX
  17767. ## ------------------------------------------ ##
  17768. ## Report this to bubla@users.sourceforge.net ##
  17769. ## ------------------------------------------ ##
  17770. _ASBOX
  17771. ) | sed "s/^/$as_me: WARNING: /" >&2
  17772. ;;
  17773. esac
  17774. { echo "$as_me:$LINENO: checking for squish.h" >&5
  17775. echo $ECHO_N "checking for squish.h... $ECHO_C" >&6; }
  17776. if test "${ac_cv_header_squish_h+set}" = set; then
  17777. echo $ECHO_N "(cached) $ECHO_C" >&6
  17778. else
  17779. ac_cv_header_squish_h=$ac_header_preproc
  17780. fi
  17781. { echo "$as_me:$LINENO: result: $ac_cv_header_squish_h" >&5
  17782. echo "${ECHO_T}$ac_cv_header_squish_h" >&6; }
  17783. fi
  17784. if test $ac_cv_header_squish_h = yes; then
  17785. { echo "$as_me:$LINENO: checking for main in -lsquish" >&5
  17786. echo $ECHO_N "checking for main in -lsquish... $ECHO_C" >&6; }
  17787. if test "${ac_cv_lib_squish_main+set}" = set; then
  17788. echo $ECHO_N "(cached) $ECHO_C" >&6
  17789. else
  17790. ac_check_lib_save_LIBS=$LIBS
  17791. LIBS="-lsquish $LIBS"
  17792. cat >conftest.$ac_ext <<_ACEOF
  17793. /* confdefs.h. */
  17794. _ACEOF
  17795. cat confdefs.h >>conftest.$ac_ext
  17796. cat >>conftest.$ac_ext <<_ACEOF
  17797. /* end confdefs.h. */
  17798. int
  17799. main ()
  17800. {
  17801. return main ();
  17802. ;
  17803. return 0;
  17804. }
  17805. _ACEOF
  17806. rm -f conftest.$ac_objext conftest$ac_exeext
  17807. if { (ac_try="$ac_link"
  17808. case "(($ac_try" in
  17809. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17810. *) ac_try_echo=$ac_try;;
  17811. esac
  17812. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17813. (eval "$ac_link") 2>conftest.er1
  17814. ac_status=$?
  17815. grep -v '^ *+' conftest.er1 >conftest.err
  17816. rm -f conftest.er1
  17817. cat conftest.err >&5
  17818. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17819. (exit $ac_status); } && {
  17820. test -z "$ac_c_werror_flag" ||
  17821. test ! -s conftest.err
  17822. } && test -s conftest$ac_exeext &&
  17823. $as_test_x conftest$ac_exeext; then
  17824. ac_cv_lib_squish_main=yes
  17825. else
  17826. echo "$as_me: failed program was:" >&5
  17827. sed 's/^/| /' conftest.$ac_ext >&5
  17828. ac_cv_lib_squish_main=no
  17829. fi
  17830. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17831. conftest$ac_exeext conftest.$ac_ext
  17832. LIBS=$ac_check_lib_save_LIBS
  17833. fi
  17834. { echo "$as_me:$LINENO: result: $ac_cv_lib_squish_main" >&5
  17835. echo "${ECHO_T}$ac_cv_lib_squish_main" >&6; }
  17836. if test $ac_cv_lib_squish_main = yes; then
  17837. IL_LIBS="-lsquish $IL_LIBS"
  17838. have_squish="yes"
  17839. else
  17840. have_squish="no"
  17841. fi
  17842. else
  17843. have_squish="no"
  17844. fi
  17845. lib_test_result="$have_squish"
  17846. if test "x$lib_test_result" = "xyes"; then
  17847. cat >>confdefs.h <<\_ACEOF
  17848. #define IL_USE_DXTC_SQUISH 1
  17849. _ACEOF
  17850. if test "x$enable_modules" = "xyes"; then
  17851. IL_LIBS_OPTIONAL="${IL_LIBS_OPTIONAL} libsquish"
  17852. else
  17853. IL_LIBS_REQUIRED="${IL_LIBS_REQUIRED} libsquish"
  17854. fi
  17855. fi
  17856. fi
  17857. # Check whether --with-nvtt was given.
  17858. if test "${with_nvtt+set}" = set; then
  17859. withval=$with_nvtt;
  17860. else
  17861. with_nvtt="yes"
  17862. fi
  17863. if test "x$with_nvtt" = "xyes"; then
  17864. if test "${ac_cv_header_nvtt_nvtt_h+set}" = set; then
  17865. { echo "$as_me:$LINENO: checking for nvtt/nvtt.h" >&5
  17866. echo $ECHO_N "checking for nvtt/nvtt.h... $ECHO_C" >&6; }
  17867. if test "${ac_cv_header_nvtt_nvtt_h+set}" = set; then
  17868. echo $ECHO_N "(cached) $ECHO_C" >&6
  17869. fi
  17870. { echo "$as_me:$LINENO: result: $ac_cv_header_nvtt_nvtt_h" >&5
  17871. echo "${ECHO_T}$ac_cv_header_nvtt_nvtt_h" >&6; }
  17872. else
  17873. # Is the header compilable?
  17874. { echo "$as_me:$LINENO: checking nvtt/nvtt.h usability" >&5
  17875. echo $ECHO_N "checking nvtt/nvtt.h usability... $ECHO_C" >&6; }
  17876. cat >conftest.$ac_ext <<_ACEOF
  17877. /* confdefs.h. */
  17878. _ACEOF
  17879. cat confdefs.h >>conftest.$ac_ext
  17880. cat >>conftest.$ac_ext <<_ACEOF
  17881. /* end confdefs.h. */
  17882. $ac_includes_default
  17883. #include <nvtt/nvtt.h>
  17884. _ACEOF
  17885. rm -f conftest.$ac_objext
  17886. if { (ac_try="$ac_compile"
  17887. case "(($ac_try" in
  17888. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17889. *) ac_try_echo=$ac_try;;
  17890. esac
  17891. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17892. (eval "$ac_compile") 2>conftest.er1
  17893. ac_status=$?
  17894. grep -v '^ *+' conftest.er1 >conftest.err
  17895. rm -f conftest.er1
  17896. cat conftest.err >&5
  17897. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17898. (exit $ac_status); } && {
  17899. test -z "$ac_c_werror_flag" ||
  17900. test ! -s conftest.err
  17901. } && test -s conftest.$ac_objext; then
  17902. ac_header_compiler=yes
  17903. else
  17904. echo "$as_me: failed program was:" >&5
  17905. sed 's/^/| /' conftest.$ac_ext >&5
  17906. ac_header_compiler=no
  17907. fi
  17908. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17909. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17910. echo "${ECHO_T}$ac_header_compiler" >&6; }
  17911. # Is the header present?
  17912. { echo "$as_me:$LINENO: checking nvtt/nvtt.h presence" >&5
  17913. echo $ECHO_N "checking nvtt/nvtt.h presence... $ECHO_C" >&6; }
  17914. cat >conftest.$ac_ext <<_ACEOF
  17915. /* confdefs.h. */
  17916. _ACEOF
  17917. cat confdefs.h >>conftest.$ac_ext
  17918. cat >>conftest.$ac_ext <<_ACEOF
  17919. /* end confdefs.h. */
  17920. #include <nvtt/nvtt.h>
  17921. _ACEOF
  17922. if { (ac_try="$ac_cpp conftest.$ac_ext"
  17923. case "(($ac_try" in
  17924. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17925. *) ac_try_echo=$ac_try;;
  17926. esac
  17927. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17928. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17929. ac_status=$?
  17930. grep -v '^ *+' conftest.er1 >conftest.err
  17931. rm -f conftest.er1
  17932. cat conftest.err >&5
  17933. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17934. (exit $ac_status); } >/dev/null && {
  17935. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  17936. test ! -s conftest.err
  17937. }; then
  17938. ac_header_preproc=yes
  17939. else
  17940. echo "$as_me: failed program was:" >&5
  17941. sed 's/^/| /' conftest.$ac_ext >&5
  17942. ac_header_preproc=no
  17943. fi
  17944. rm -f conftest.err conftest.$ac_ext
  17945. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17946. echo "${ECHO_T}$ac_header_preproc" >&6; }
  17947. # So? What about this header?
  17948. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  17949. yes:no: )
  17950. { echo "$as_me:$LINENO: WARNING: nvtt/nvtt.h: accepted by the compiler, rejected by the preprocessor!" >&5
  17951. echo "$as_me: WARNING: nvtt/nvtt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17952. { echo "$as_me:$LINENO: WARNING: nvtt/nvtt.h: proceeding with the compiler's result" >&5
  17953. echo "$as_me: WARNING: nvtt/nvtt.h: proceeding with the compiler's result" >&2;}
  17954. ac_header_preproc=yes
  17955. ;;
  17956. no:yes:* )
  17957. { echo "$as_me:$LINENO: WARNING: nvtt/nvtt.h: present but cannot be compiled" >&5
  17958. echo "$as_me: WARNING: nvtt/nvtt.h: present but cannot be compiled" >&2;}
  17959. { echo "$as_me:$LINENO: WARNING: nvtt/nvtt.h: check for missing prerequisite headers?" >&5
  17960. echo "$as_me: WARNING: nvtt/nvtt.h: check for missing prerequisite headers?" >&2;}
  17961. { echo "$as_me:$LINENO: WARNING: nvtt/nvtt.h: see the Autoconf documentation" >&5
  17962. echo "$as_me: WARNING: nvtt/nvtt.h: see the Autoconf documentation" >&2;}
  17963. { echo "$as_me:$LINENO: WARNING: nvtt/nvtt.h: section \"Present But Cannot Be Compiled\"" >&5
  17964. echo "$as_me: WARNING: nvtt/nvtt.h: section \"Present But Cannot Be Compiled\"" >&2;}
  17965. { echo "$as_me:$LINENO: WARNING: nvtt/nvtt.h: proceeding with the preprocessor's result" >&5
  17966. echo "$as_me: WARNING: nvtt/nvtt.h: proceeding with the preprocessor's result" >&2;}
  17967. { echo "$as_me:$LINENO: WARNING: nvtt/nvtt.h: in the future, the compiler will take precedence" >&5
  17968. echo "$as_me: WARNING: nvtt/nvtt.h: in the future, the compiler will take precedence" >&2;}
  17969. ( cat <<\_ASBOX
  17970. ## ------------------------------------------ ##
  17971. ## Report this to bubla@users.sourceforge.net ##
  17972. ## ------------------------------------------ ##
  17973. _ASBOX
  17974. ) | sed "s/^/$as_me: WARNING: /" >&2
  17975. ;;
  17976. esac
  17977. { echo "$as_me:$LINENO: checking for nvtt/nvtt.h" >&5
  17978. echo $ECHO_N "checking for nvtt/nvtt.h... $ECHO_C" >&6; }
  17979. if test "${ac_cv_header_nvtt_nvtt_h+set}" = set; then
  17980. echo $ECHO_N "(cached) $ECHO_C" >&6
  17981. else
  17982. ac_cv_header_nvtt_nvtt_h=$ac_header_preproc
  17983. fi
  17984. { echo "$as_me:$LINENO: result: $ac_cv_header_nvtt_nvtt_h" >&5
  17985. echo "${ECHO_T}$ac_cv_header_nvtt_nvtt_h" >&6; }
  17986. fi
  17987. if test $ac_cv_header_nvtt_nvtt_h = yes; then
  17988. { echo "$as_me:$LINENO: checking for main in -lnvtt" >&5
  17989. echo $ECHO_N "checking for main in -lnvtt... $ECHO_C" >&6; }
  17990. if test "${ac_cv_lib_nvtt_main+set}" = set; then
  17991. echo $ECHO_N "(cached) $ECHO_C" >&6
  17992. else
  17993. ac_check_lib_save_LIBS=$LIBS
  17994. LIBS="-lnvtt $LIBS"
  17995. cat >conftest.$ac_ext <<_ACEOF
  17996. /* confdefs.h. */
  17997. _ACEOF
  17998. cat confdefs.h >>conftest.$ac_ext
  17999. cat >>conftest.$ac_ext <<_ACEOF
  18000. /* end confdefs.h. */
  18001. int
  18002. main ()
  18003. {
  18004. return main ();
  18005. ;
  18006. return 0;
  18007. }
  18008. _ACEOF
  18009. rm -f conftest.$ac_objext conftest$ac_exeext
  18010. if { (ac_try="$ac_link"
  18011. case "(($ac_try" in
  18012. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18013. *) ac_try_echo=$ac_try;;
  18014. esac
  18015. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18016. (eval "$ac_link") 2>conftest.er1
  18017. ac_status=$?
  18018. grep -v '^ *+' conftest.er1 >conftest.err
  18019. rm -f conftest.er1
  18020. cat conftest.err >&5
  18021. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18022. (exit $ac_status); } && {
  18023. test -z "$ac_c_werror_flag" ||
  18024. test ! -s conftest.err
  18025. } && test -s conftest$ac_exeext &&
  18026. $as_test_x conftest$ac_exeext; then
  18027. ac_cv_lib_nvtt_main=yes
  18028. else
  18029. echo "$as_me: failed program was:" >&5
  18030. sed 's/^/| /' conftest.$ac_ext >&5
  18031. ac_cv_lib_nvtt_main=no
  18032. fi
  18033. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18034. conftest$ac_exeext conftest.$ac_ext
  18035. LIBS=$ac_check_lib_save_LIBS
  18036. fi
  18037. { echo "$as_me:$LINENO: result: $ac_cv_lib_nvtt_main" >&5
  18038. echo "${ECHO_T}$ac_cv_lib_nvtt_main" >&6; }
  18039. if test $ac_cv_lib_nvtt_main = yes; then
  18040. IL_LIBS="-lnvtt $IL_LIBS"
  18041. have_nvtt="yes"
  18042. else
  18043. have_nvtt="no"
  18044. fi
  18045. else
  18046. have_nvtt="no"
  18047. fi
  18048. lib_test_result="$have_nvtt"
  18049. if test "x$lib_test_result" = "xyes"; then
  18050. cat >>confdefs.h <<\_ACEOF
  18051. #define IL_USE_DXTC_NVIDIA 1
  18052. _ACEOF
  18053. if test "x$enable_modules" = "xyes"; then
  18054. IL_LIBS_OPTIONAL="${IL_LIBS_OPTIONAL} libnvtt-nvidia_texture_tools"
  18055. else
  18056. IL_LIBS_REQUIRED="${IL_LIBS_REQUIRED} libnvtt-nvidia_texture_tools"
  18057. fi
  18058. fi
  18059. fi
  18060. { echo "$as_me:$LINENO: checking for X" >&5
  18061. echo $ECHO_N "checking for X... $ECHO_C" >&6; }
  18062. # Check whether --with-x was given.
  18063. if test "${with_x+set}" = set; then
  18064. withval=$with_x;
  18065. fi
  18066. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  18067. if test "x$with_x" = xno; then
  18068. # The user explicitly disabled X.
  18069. have_x=disabled
  18070. else
  18071. case $x_includes,$x_libraries in #(
  18072. *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
  18073. echo "$as_me: error: Cannot use X directory names containing '" >&2;}
  18074. { (exit 1); exit 1; }; };; #(
  18075. *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
  18076. echo $ECHO_N "(cached) $ECHO_C" >&6
  18077. else
  18078. # One or both of the vars are not set, and there is no cached value.
  18079. ac_x_includes=no ac_x_libraries=no
  18080. rm -f -r conftest.dir
  18081. if mkdir conftest.dir; then
  18082. cd conftest.dir
  18083. cat >Imakefile <<'_ACEOF'
  18084. incroot:
  18085. @echo incroot='${INCROOT}'
  18086. usrlibdir:
  18087. @echo usrlibdir='${USRLIBDIR}'
  18088. libdir:
  18089. @echo libdir='${LIBDIR}'
  18090. _ACEOF
  18091. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  18092. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  18093. for ac_var in incroot usrlibdir libdir; do
  18094. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  18095. done
  18096. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  18097. for ac_extension in a so sl; do
  18098. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  18099. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  18100. ac_im_usrlibdir=$ac_im_libdir; break
  18101. fi
  18102. done
  18103. # Screen out bogus values from the imake configuration. They are
  18104. # bogus both because they are the default anyway, and because
  18105. # using them would break gcc on systems where it needs fixed includes.
  18106. case $ac_im_incroot in
  18107. /usr/include) ac_x_includes= ;;
  18108. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  18109. esac
  18110. case $ac_im_usrlibdir in
  18111. /usr/lib | /lib) ;;
  18112. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  18113. esac
  18114. fi
  18115. cd ..
  18116. rm -f -r conftest.dir
  18117. fi
  18118. # Standard set of common directories for X headers.
  18119. # Check X11 before X11Rn because it is often a symlink to the current release.
  18120. ac_x_header_dirs='
  18121. /usr/X11/include
  18122. /usr/X11R6/include
  18123. /usr/X11R5/include
  18124. /usr/X11R4/include
  18125. /usr/include/X11
  18126. /usr/include/X11R6
  18127. /usr/include/X11R5
  18128. /usr/include/X11R4
  18129. /usr/local/X11/include
  18130. /usr/local/X11R6/include
  18131. /usr/local/X11R5/include
  18132. /usr/local/X11R4/include
  18133. /usr/local/include/X11
  18134. /usr/local/include/X11R6
  18135. /usr/local/include/X11R5
  18136. /usr/local/include/X11R4
  18137. /usr/X386/include
  18138. /usr/x386/include
  18139. /usr/XFree86/include/X11
  18140. /usr/include
  18141. /usr/local/include
  18142. /usr/unsupported/include
  18143. /usr/athena/include
  18144. /usr/local/x11r5/include
  18145. /usr/lpp/Xamples/include
  18146. /usr/openwin/include
  18147. /usr/openwin/share/include'
  18148. if test "$ac_x_includes" = no; then
  18149. # Guess where to find include files, by looking for Xlib.h.
  18150. # First, try using that file with no special directory specified.
  18151. cat >conftest.$ac_ext <<_ACEOF
  18152. /* confdefs.h. */
  18153. _ACEOF
  18154. cat confdefs.h >>conftest.$ac_ext
  18155. cat >>conftest.$ac_ext <<_ACEOF
  18156. /* end confdefs.h. */
  18157. #include <X11/Xlib.h>
  18158. _ACEOF
  18159. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18160. case "(($ac_try" in
  18161. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18162. *) ac_try_echo=$ac_try;;
  18163. esac
  18164. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18165. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18166. ac_status=$?
  18167. grep -v '^ *+' conftest.er1 >conftest.err
  18168. rm -f conftest.er1
  18169. cat conftest.err >&5
  18170. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18171. (exit $ac_status); } >/dev/null && {
  18172. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18173. test ! -s conftest.err
  18174. }; then
  18175. # We can compile using X headers with no special include directory.
  18176. ac_x_includes=
  18177. else
  18178. echo "$as_me: failed program was:" >&5
  18179. sed 's/^/| /' conftest.$ac_ext >&5
  18180. for ac_dir in $ac_x_header_dirs; do
  18181. if test -r "$ac_dir/X11/Xlib.h"; then
  18182. ac_x_includes=$ac_dir
  18183. break
  18184. fi
  18185. done
  18186. fi
  18187. rm -f conftest.err conftest.$ac_ext
  18188. fi # $ac_x_includes = no
  18189. if test "$ac_x_libraries" = no; then
  18190. # Check for the libraries.
  18191. # See if we find them without any special options.
  18192. # Don't add to $LIBS permanently.
  18193. ac_save_LIBS=$LIBS
  18194. LIBS="-lX11 $LIBS"
  18195. cat >conftest.$ac_ext <<_ACEOF
  18196. /* confdefs.h. */
  18197. _ACEOF
  18198. cat confdefs.h >>conftest.$ac_ext
  18199. cat >>conftest.$ac_ext <<_ACEOF
  18200. /* end confdefs.h. */
  18201. #include <X11/Xlib.h>
  18202. int
  18203. main ()
  18204. {
  18205. XrmInitialize ()
  18206. ;
  18207. return 0;
  18208. }
  18209. _ACEOF
  18210. rm -f conftest.$ac_objext conftest$ac_exeext
  18211. if { (ac_try="$ac_link"
  18212. case "(($ac_try" in
  18213. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18214. *) ac_try_echo=$ac_try;;
  18215. esac
  18216. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18217. (eval "$ac_link") 2>conftest.er1
  18218. ac_status=$?
  18219. grep -v '^ *+' conftest.er1 >conftest.err
  18220. rm -f conftest.er1
  18221. cat conftest.err >&5
  18222. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18223. (exit $ac_status); } && {
  18224. test -z "$ac_c_werror_flag" ||
  18225. test ! -s conftest.err
  18226. } && test -s conftest$ac_exeext &&
  18227. $as_test_x conftest$ac_exeext; then
  18228. LIBS=$ac_save_LIBS
  18229. # We can link X programs with no special library path.
  18230. ac_x_libraries=
  18231. else
  18232. echo "$as_me: failed program was:" >&5
  18233. sed 's/^/| /' conftest.$ac_ext >&5
  18234. LIBS=$ac_save_LIBS
  18235. for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  18236. do
  18237. # Don't even attempt the hair of trying to link an X program!
  18238. for ac_extension in a so sl; do
  18239. if test -r "$ac_dir/libX11.$ac_extension"; then
  18240. ac_x_libraries=$ac_dir
  18241. break 2
  18242. fi
  18243. done
  18244. done
  18245. fi
  18246. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18247. conftest$ac_exeext conftest.$ac_ext
  18248. fi # $ac_x_libraries = no
  18249. case $ac_x_includes,$ac_x_libraries in #(
  18250. no,* | *,no | *\'*)
  18251. # Didn't find X, or a directory has "'" in its name.
  18252. ac_cv_have_x="have_x=no";; #(
  18253. *)
  18254. # Record where we found X for the cache.
  18255. ac_cv_have_x="have_x=yes\
  18256. ac_x_includes='$ac_x_includes'\
  18257. ac_x_libraries='$ac_x_libraries'"
  18258. esac
  18259. fi
  18260. ;; #(
  18261. *) have_x=yes;;
  18262. esac
  18263. eval "$ac_cv_have_x"
  18264. fi # $with_x != no
  18265. if test "$have_x" != yes; then
  18266. { echo "$as_me:$LINENO: result: $have_x" >&5
  18267. echo "${ECHO_T}$have_x" >&6; }
  18268. no_x=yes
  18269. else
  18270. # If each of the values was on the command line, it overrides each guess.
  18271. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  18272. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  18273. # Update the cache value to reflect the command line values.
  18274. ac_cv_have_x="have_x=yes\
  18275. ac_x_includes='$x_includes'\
  18276. ac_x_libraries='$x_libraries'"
  18277. { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
  18278. echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
  18279. fi
  18280. ac_ext=c
  18281. ac_cpp='$CPP $CPPFLAGS'
  18282. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18283. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18284. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18285. acx_pthread_ok=no
  18286. # We used to check for pthread.h first, but this fails if pthread.h
  18287. # requires special compiler flags (e.g. on True64 or Sequent).
  18288. # It gets checked for in the link test anyway.
  18289. # First of all, check if the user has set any of the PTHREAD_LIBS,
  18290. # etcetera environment variables, and if threads linking works using
  18291. # them:
  18292. if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
  18293. save_CFLAGS="$CFLAGS"
  18294. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  18295. save_LIBS="$LIBS"
  18296. LIBS="$PTHREAD_LIBS $LIBS"
  18297. { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
  18298. echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
  18299. cat >conftest.$ac_ext <<_ACEOF
  18300. /* confdefs.h. */
  18301. _ACEOF
  18302. cat confdefs.h >>conftest.$ac_ext
  18303. cat >>conftest.$ac_ext <<_ACEOF
  18304. /* end confdefs.h. */
  18305. /* Override any GCC internal prototype to avoid an error.
  18306. Use char because int might match the return type of a GCC
  18307. builtin and then its argument prototype would still apply. */
  18308. #ifdef __cplusplus
  18309. extern "C"
  18310. #endif
  18311. char pthread_join ();
  18312. int
  18313. main ()
  18314. {
  18315. return pthread_join ();
  18316. ;
  18317. return 0;
  18318. }
  18319. _ACEOF
  18320. rm -f conftest.$ac_objext conftest$ac_exeext
  18321. if { (ac_try="$ac_link"
  18322. case "(($ac_try" in
  18323. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18324. *) ac_try_echo=$ac_try;;
  18325. esac
  18326. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18327. (eval "$ac_link") 2>conftest.er1
  18328. ac_status=$?
  18329. grep -v '^ *+' conftest.er1 >conftest.err
  18330. rm -f conftest.er1
  18331. cat conftest.err >&5
  18332. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18333. (exit $ac_status); } && {
  18334. test -z "$ac_c_werror_flag" ||
  18335. test ! -s conftest.err
  18336. } && test -s conftest$ac_exeext &&
  18337. $as_test_x conftest$ac_exeext; then
  18338. acx_pthread_ok=yes
  18339. else
  18340. echo "$as_me: failed program was:" >&5
  18341. sed 's/^/| /' conftest.$ac_ext >&5
  18342. fi
  18343. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18344. conftest$ac_exeext conftest.$ac_ext
  18345. { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
  18346. echo "${ECHO_T}$acx_pthread_ok" >&6; }
  18347. if test x"$acx_pthread_ok" = xno; then
  18348. PTHREAD_LIBS=""
  18349. PTHREAD_CFLAGS=""
  18350. fi
  18351. LIBS="$save_LIBS"
  18352. CFLAGS="$save_CFLAGS"
  18353. fi
  18354. # We must check for the threads library under a number of different
  18355. # names; the ordering is very important because some systems
  18356. # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
  18357. # libraries is broken (non-POSIX).
  18358. # Create a list of thread flags to try. Items starting with a "-" are
  18359. # C compiler flags, and other items are library names, except for "none"
  18360. # which indicates that we try without any flags at all, and "pthread-config"
  18361. # which is a program returning the flags for the Pth emulation library.
  18362. acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
  18363. # The ordering *is* (sometimes) important. Some notes on the
  18364. # individual items follow:
  18365. # pthreads: AIX (must check this before -lpthread)
  18366. # none: in case threads are in libc; should be tried before -Kthread and
  18367. # other compiler flags to prevent continual compiler warnings
  18368. # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
  18369. # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
  18370. # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
  18371. # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
  18372. # -pthreads: Solaris/gcc
  18373. # -mthreads: Mingw32/gcc, Lynx/gcc
  18374. # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
  18375. # doesn't hurt to check since this sometimes defines pthreads too;
  18376. # also defines -D_REENTRANT)
  18377. # ... -mt is also the pthreads flag for HP/aCC
  18378. # pthread: Linux, etcetera
  18379. # --thread-safe: KAI C++
  18380. # pthread-config: use pthread-config program (for GNU Pth library)
  18381. case "${host_cpu}-${host_os}" in
  18382. *solaris*)
  18383. # On Solaris (at least, for some versions), libc contains stubbed
  18384. # (non-functional) versions of the pthreads routines, so link-based
  18385. # tests will erroneously succeed. (We need to link with -pthreads/-mt/
  18386. # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
  18387. # a function called by this macro, so we could check for that, but
  18388. # who knows whether they'll stub that too in a future libc.) So,
  18389. # we'll just look for -pthreads and -lpthread first:
  18390. acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
  18391. ;;
  18392. esac
  18393. if test x"$acx_pthread_ok" = xno; then
  18394. for flag in $acx_pthread_flags; do
  18395. case $flag in
  18396. none)
  18397. { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
  18398. echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
  18399. ;;
  18400. -*)
  18401. { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
  18402. echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
  18403. PTHREAD_CFLAGS="$flag"
  18404. ;;
  18405. pthread-config)
  18406. # Extract the first word of "pthread-config", so it can be a program name with args.
  18407. set dummy pthread-config; ac_word=$2
  18408. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  18409. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  18410. if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
  18411. echo $ECHO_N "(cached) $ECHO_C" >&6
  18412. else
  18413. if test -n "$acx_pthread_config"; then
  18414. ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
  18415. else
  18416. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18417. for as_dir in $PATH
  18418. do
  18419. IFS=$as_save_IFS
  18420. test -z "$as_dir" && as_dir=.
  18421. for ac_exec_ext in '' $ac_executable_extensions; do
  18422. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18423. ac_cv_prog_acx_pthread_config="yes"
  18424. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18425. break 2
  18426. fi
  18427. done
  18428. done
  18429. IFS=$as_save_IFS
  18430. test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
  18431. fi
  18432. fi
  18433. acx_pthread_config=$ac_cv_prog_acx_pthread_config
  18434. if test -n "$acx_pthread_config"; then
  18435. { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
  18436. echo "${ECHO_T}$acx_pthread_config" >&6; }
  18437. else
  18438. { echo "$as_me:$LINENO: result: no" >&5
  18439. echo "${ECHO_T}no" >&6; }
  18440. fi
  18441. if test x"$acx_pthread_config" = xno; then continue; fi
  18442. PTHREAD_CFLAGS="`pthread-config --cflags`"
  18443. PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
  18444. ;;
  18445. *)
  18446. { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
  18447. echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
  18448. PTHREAD_LIBS="-l$flag"
  18449. ;;
  18450. esac
  18451. save_LIBS="$LIBS"
  18452. save_CFLAGS="$CFLAGS"
  18453. LIBS="$PTHREAD_LIBS $LIBS"
  18454. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  18455. # Check for various functions. We must include pthread.h,
  18456. # since some functions may be macros. (On the Sequent, we
  18457. # need a special flag -Kthread to make this header compile.)
  18458. # We check for pthread_join because it is in -lpthread on IRIX
  18459. # while pthread_create is in libc. We check for pthread_attr_init
  18460. # due to DEC craziness with -lpthreads. We check for
  18461. # pthread_cleanup_push because it is one of the few pthread
  18462. # functions on Solaris that doesn't have a non-functional libc stub.
  18463. # We try pthread_create on general principles.
  18464. cat >conftest.$ac_ext <<_ACEOF
  18465. /* confdefs.h. */
  18466. _ACEOF
  18467. cat confdefs.h >>conftest.$ac_ext
  18468. cat >>conftest.$ac_ext <<_ACEOF
  18469. /* end confdefs.h. */
  18470. #include <pthread.h>
  18471. int
  18472. main ()
  18473. {
  18474. pthread_t th; pthread_join(th, 0);
  18475. pthread_attr_init(0); pthread_cleanup_push(0, 0);
  18476. pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  18477. ;
  18478. return 0;
  18479. }
  18480. _ACEOF
  18481. rm -f conftest.$ac_objext conftest$ac_exeext
  18482. if { (ac_try="$ac_link"
  18483. case "(($ac_try" in
  18484. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18485. *) ac_try_echo=$ac_try;;
  18486. esac
  18487. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18488. (eval "$ac_link") 2>conftest.er1
  18489. ac_status=$?
  18490. grep -v '^ *+' conftest.er1 >conftest.err
  18491. rm -f conftest.er1
  18492. cat conftest.err >&5
  18493. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18494. (exit $ac_status); } && {
  18495. test -z "$ac_c_werror_flag" ||
  18496. test ! -s conftest.err
  18497. } && test -s conftest$ac_exeext &&
  18498. $as_test_x conftest$ac_exeext; then
  18499. acx_pthread_ok=yes
  18500. else
  18501. echo "$as_me: failed program was:" >&5
  18502. sed 's/^/| /' conftest.$ac_ext >&5
  18503. fi
  18504. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18505. conftest$ac_exeext conftest.$ac_ext
  18506. LIBS="$save_LIBS"
  18507. CFLAGS="$save_CFLAGS"
  18508. { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
  18509. echo "${ECHO_T}$acx_pthread_ok" >&6; }
  18510. if test "x$acx_pthread_ok" = xyes; then
  18511. break;
  18512. fi
  18513. PTHREAD_LIBS=""
  18514. PTHREAD_CFLAGS=""
  18515. done
  18516. fi
  18517. # Various other checks:
  18518. if test "x$acx_pthread_ok" = xyes; then
  18519. save_LIBS="$LIBS"
  18520. LIBS="$PTHREAD_LIBS $LIBS"
  18521. save_CFLAGS="$CFLAGS"
  18522. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  18523. # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
  18524. { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
  18525. echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
  18526. attr_name=unknown
  18527. for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
  18528. cat >conftest.$ac_ext <<_ACEOF
  18529. /* confdefs.h. */
  18530. _ACEOF
  18531. cat confdefs.h >>conftest.$ac_ext
  18532. cat >>conftest.$ac_ext <<_ACEOF
  18533. /* end confdefs.h. */
  18534. #include <pthread.h>
  18535. int
  18536. main ()
  18537. {
  18538. int attr=$attr; return attr;
  18539. ;
  18540. return 0;
  18541. }
  18542. _ACEOF
  18543. rm -f conftest.$ac_objext conftest$ac_exeext
  18544. if { (ac_try="$ac_link"
  18545. case "(($ac_try" in
  18546. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18547. *) ac_try_echo=$ac_try;;
  18548. esac
  18549. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18550. (eval "$ac_link") 2>conftest.er1
  18551. ac_status=$?
  18552. grep -v '^ *+' conftest.er1 >conftest.err
  18553. rm -f conftest.er1
  18554. cat conftest.err >&5
  18555. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18556. (exit $ac_status); } && {
  18557. test -z "$ac_c_werror_flag" ||
  18558. test ! -s conftest.err
  18559. } && test -s conftest$ac_exeext &&
  18560. $as_test_x conftest$ac_exeext; then
  18561. attr_name=$attr; break
  18562. else
  18563. echo "$as_me: failed program was:" >&5
  18564. sed 's/^/| /' conftest.$ac_ext >&5
  18565. fi
  18566. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18567. conftest$ac_exeext conftest.$ac_ext
  18568. done
  18569. { echo "$as_me:$LINENO: result: $attr_name" >&5
  18570. echo "${ECHO_T}$attr_name" >&6; }
  18571. if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
  18572. cat >>confdefs.h <<_ACEOF
  18573. #define PTHREAD_CREATE_JOINABLE $attr_name
  18574. _ACEOF
  18575. fi
  18576. { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
  18577. echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
  18578. flag=no
  18579. case "${host_cpu}-${host_os}" in
  18580. *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
  18581. *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
  18582. esac
  18583. { echo "$as_me:$LINENO: result: ${flag}" >&5
  18584. echo "${ECHO_T}${flag}" >&6; }
  18585. if test "x$flag" != xno; then
  18586. PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
  18587. fi
  18588. LIBS="$save_LIBS"
  18589. CFLAGS="$save_CFLAGS"
  18590. # More AIX lossage: must compile with xlc_r or cc_r
  18591. if test x"$GCC" != xyes; then
  18592. for ac_prog in xlc_r cc_r
  18593. do
  18594. # Extract the first word of "$ac_prog", so it can be a program name with args.
  18595. set dummy $ac_prog; ac_word=$2
  18596. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  18597. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  18598. if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
  18599. echo $ECHO_N "(cached) $ECHO_C" >&6
  18600. else
  18601. if test -n "$PTHREAD_CC"; then
  18602. ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
  18603. else
  18604. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18605. for as_dir in $PATH
  18606. do
  18607. IFS=$as_save_IFS
  18608. test -z "$as_dir" && as_dir=.
  18609. for ac_exec_ext in '' $ac_executable_extensions; do
  18610. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18611. ac_cv_prog_PTHREAD_CC="$ac_prog"
  18612. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18613. break 2
  18614. fi
  18615. done
  18616. done
  18617. IFS=$as_save_IFS
  18618. fi
  18619. fi
  18620. PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
  18621. if test -n "$PTHREAD_CC"; then
  18622. { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
  18623. echo "${ECHO_T}$PTHREAD_CC" >&6; }
  18624. else
  18625. { echo "$as_me:$LINENO: result: no" >&5
  18626. echo "${ECHO_T}no" >&6; }
  18627. fi
  18628. test -n "$PTHREAD_CC" && break
  18629. done
  18630. test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
  18631. else
  18632. PTHREAD_CC=$CC
  18633. fi
  18634. else
  18635. PTHREAD_CC="$CC"
  18636. fi
  18637. # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
  18638. if test x"$acx_pthread_ok" = xyes; then
  18639. cat >>confdefs.h <<\_ACEOF
  18640. #define HAVE_PTHREAD 1
  18641. _ACEOF
  18642. :
  18643. else
  18644. acx_pthread_ok=no
  18645. fi
  18646. ac_ext=c
  18647. ac_cpp='$CPP $CPPFLAGS'
  18648. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18649. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18650. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18651. if test "$no_x" = yes; then
  18652. # Not all programs may use this symbol, but it does not hurt to define it.
  18653. cat >>confdefs.h <<\_ACEOF
  18654. #define X_DISPLAY_MISSING 1
  18655. _ACEOF
  18656. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  18657. else
  18658. if test -n "$x_includes"; then
  18659. X_CFLAGS="$X_CFLAGS -I$x_includes"
  18660. fi
  18661. # It would also be nice to do this for all -L options, not just this one.
  18662. if test -n "$x_libraries"; then
  18663. X_LIBS="$X_LIBS -L$x_libraries"
  18664. # For Solaris; some versions of Sun CC require a space after -R and
  18665. # others require no space. Words are not sufficient . . . .
  18666. { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
  18667. echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
  18668. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  18669. ac_xsave_c_werror_flag=$ac_c_werror_flag
  18670. ac_c_werror_flag=yes
  18671. cat >conftest.$ac_ext <<_ACEOF
  18672. /* confdefs.h. */
  18673. _ACEOF
  18674. cat confdefs.h >>conftest.$ac_ext
  18675. cat >>conftest.$ac_ext <<_ACEOF
  18676. /* end confdefs.h. */
  18677. int
  18678. main ()
  18679. {
  18680. ;
  18681. return 0;
  18682. }
  18683. _ACEOF
  18684. rm -f conftest.$ac_objext conftest$ac_exeext
  18685. if { (ac_try="$ac_link"
  18686. case "(($ac_try" in
  18687. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18688. *) ac_try_echo=$ac_try;;
  18689. esac
  18690. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18691. (eval "$ac_link") 2>conftest.er1
  18692. ac_status=$?
  18693. grep -v '^ *+' conftest.er1 >conftest.err
  18694. rm -f conftest.er1
  18695. cat conftest.err >&5
  18696. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18697. (exit $ac_status); } && {
  18698. test -z "$ac_c_werror_flag" ||
  18699. test ! -s conftest.err
  18700. } && test -s conftest$ac_exeext &&
  18701. $as_test_x conftest$ac_exeext; then
  18702. { echo "$as_me:$LINENO: result: no" >&5
  18703. echo "${ECHO_T}no" >&6; }
  18704. X_LIBS="$X_LIBS -R$x_libraries"
  18705. else
  18706. echo "$as_me: failed program was:" >&5
  18707. sed 's/^/| /' conftest.$ac_ext >&5
  18708. LIBS="$ac_xsave_LIBS -R $x_libraries"
  18709. cat >conftest.$ac_ext <<_ACEOF
  18710. /* confdefs.h. */
  18711. _ACEOF
  18712. cat confdefs.h >>conftest.$ac_ext
  18713. cat >>conftest.$ac_ext <<_ACEOF
  18714. /* end confdefs.h. */
  18715. int
  18716. main ()
  18717. {
  18718. ;
  18719. return 0;
  18720. }
  18721. _ACEOF
  18722. rm -f conftest.$ac_objext conftest$ac_exeext
  18723. if { (ac_try="$ac_link"
  18724. case "(($ac_try" in
  18725. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18726. *) ac_try_echo=$ac_try;;
  18727. esac
  18728. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18729. (eval "$ac_link") 2>conftest.er1
  18730. ac_status=$?
  18731. grep -v '^ *+' conftest.er1 >conftest.err
  18732. rm -f conftest.er1
  18733. cat conftest.err >&5
  18734. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18735. (exit $ac_status); } && {
  18736. test -z "$ac_c_werror_flag" ||
  18737. test ! -s conftest.err
  18738. } && test -s conftest$ac_exeext &&
  18739. $as_test_x conftest$ac_exeext; then
  18740. { echo "$as_me:$LINENO: result: yes" >&5
  18741. echo "${ECHO_T}yes" >&6; }
  18742. X_LIBS="$X_LIBS -R $x_libraries"
  18743. else
  18744. echo "$as_me: failed program was:" >&5
  18745. sed 's/^/| /' conftest.$ac_ext >&5
  18746. { echo "$as_me:$LINENO: result: neither works" >&5
  18747. echo "${ECHO_T}neither works" >&6; }
  18748. fi
  18749. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18750. conftest$ac_exeext conftest.$ac_ext
  18751. fi
  18752. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18753. conftest$ac_exeext conftest.$ac_ext
  18754. ac_c_werror_flag=$ac_xsave_c_werror_flag
  18755. LIBS=$ac_xsave_LIBS
  18756. fi
  18757. # Check for system-dependent libraries X programs must link with.
  18758. # Do this before checking for the system-independent R6 libraries
  18759. # (-lICE), since we may need -lsocket or whatever for X linking.
  18760. if test "$ISC" = yes; then
  18761. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  18762. else
  18763. # Martyn Johnson says this is needed for Ultrix, if the X
  18764. # libraries were built with DECnet support. And Karl Berry says
  18765. # the Alpha needs dnet_stub (dnet does not exist).
  18766. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  18767. cat >conftest.$ac_ext <<_ACEOF
  18768. /* confdefs.h. */
  18769. _ACEOF
  18770. cat confdefs.h >>conftest.$ac_ext
  18771. cat >>conftest.$ac_ext <<_ACEOF
  18772. /* end confdefs.h. */
  18773. /* Override any GCC internal prototype to avoid an error.
  18774. Use char because int might match the return type of a GCC
  18775. builtin and then its argument prototype would still apply. */
  18776. #ifdef __cplusplus
  18777. extern "C"
  18778. #endif
  18779. char XOpenDisplay ();
  18780. int
  18781. main ()
  18782. {
  18783. return XOpenDisplay ();
  18784. ;
  18785. return 0;
  18786. }
  18787. _ACEOF
  18788. rm -f conftest.$ac_objext conftest$ac_exeext
  18789. if { (ac_try="$ac_link"
  18790. case "(($ac_try" in
  18791. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18792. *) ac_try_echo=$ac_try;;
  18793. esac
  18794. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18795. (eval "$ac_link") 2>conftest.er1
  18796. ac_status=$?
  18797. grep -v '^ *+' conftest.er1 >conftest.err
  18798. rm -f conftest.er1
  18799. cat conftest.err >&5
  18800. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18801. (exit $ac_status); } && {
  18802. test -z "$ac_c_werror_flag" ||
  18803. test ! -s conftest.err
  18804. } && test -s conftest$ac_exeext &&
  18805. $as_test_x conftest$ac_exeext; then
  18806. :
  18807. else
  18808. echo "$as_me: failed program was:" >&5
  18809. sed 's/^/| /' conftest.$ac_ext >&5
  18810. { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
  18811. echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
  18812. if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
  18813. echo $ECHO_N "(cached) $ECHO_C" >&6
  18814. else
  18815. ac_check_lib_save_LIBS=$LIBS
  18816. LIBS="-ldnet $LIBS"
  18817. cat >conftest.$ac_ext <<_ACEOF
  18818. /* confdefs.h. */
  18819. _ACEOF
  18820. cat confdefs.h >>conftest.$ac_ext
  18821. cat >>conftest.$ac_ext <<_ACEOF
  18822. /* end confdefs.h. */
  18823. /* Override any GCC internal prototype to avoid an error.
  18824. Use char because int might match the return type of a GCC
  18825. builtin and then its argument prototype would still apply. */
  18826. #ifdef __cplusplus
  18827. extern "C"
  18828. #endif
  18829. char dnet_ntoa ();
  18830. int
  18831. main ()
  18832. {
  18833. return dnet_ntoa ();
  18834. ;
  18835. return 0;
  18836. }
  18837. _ACEOF
  18838. rm -f conftest.$ac_objext conftest$ac_exeext
  18839. if { (ac_try="$ac_link"
  18840. case "(($ac_try" in
  18841. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18842. *) ac_try_echo=$ac_try;;
  18843. esac
  18844. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18845. (eval "$ac_link") 2>conftest.er1
  18846. ac_status=$?
  18847. grep -v '^ *+' conftest.er1 >conftest.err
  18848. rm -f conftest.er1
  18849. cat conftest.err >&5
  18850. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18851. (exit $ac_status); } && {
  18852. test -z "$ac_c_werror_flag" ||
  18853. test ! -s conftest.err
  18854. } && test -s conftest$ac_exeext &&
  18855. $as_test_x conftest$ac_exeext; then
  18856. ac_cv_lib_dnet_dnet_ntoa=yes
  18857. else
  18858. echo "$as_me: failed program was:" >&5
  18859. sed 's/^/| /' conftest.$ac_ext >&5
  18860. ac_cv_lib_dnet_dnet_ntoa=no
  18861. fi
  18862. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18863. conftest$ac_exeext conftest.$ac_ext
  18864. LIBS=$ac_check_lib_save_LIBS
  18865. fi
  18866. { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  18867. echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  18868. if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
  18869. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  18870. fi
  18871. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  18872. { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
  18873. echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
  18874. if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
  18875. echo $ECHO_N "(cached) $ECHO_C" >&6
  18876. else
  18877. ac_check_lib_save_LIBS=$LIBS
  18878. LIBS="-ldnet_stub $LIBS"
  18879. cat >conftest.$ac_ext <<_ACEOF
  18880. /* confdefs.h. */
  18881. _ACEOF
  18882. cat confdefs.h >>conftest.$ac_ext
  18883. cat >>conftest.$ac_ext <<_ACEOF
  18884. /* end confdefs.h. */
  18885. /* Override any GCC internal prototype to avoid an error.
  18886. Use char because int might match the return type of a GCC
  18887. builtin and then its argument prototype would still apply. */
  18888. #ifdef __cplusplus
  18889. extern "C"
  18890. #endif
  18891. char dnet_ntoa ();
  18892. int
  18893. main ()
  18894. {
  18895. return dnet_ntoa ();
  18896. ;
  18897. return 0;
  18898. }
  18899. _ACEOF
  18900. rm -f conftest.$ac_objext conftest$ac_exeext
  18901. if { (ac_try="$ac_link"
  18902. case "(($ac_try" in
  18903. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18904. *) ac_try_echo=$ac_try;;
  18905. esac
  18906. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18907. (eval "$ac_link") 2>conftest.er1
  18908. ac_status=$?
  18909. grep -v '^ *+' conftest.er1 >conftest.err
  18910. rm -f conftest.er1
  18911. cat conftest.err >&5
  18912. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18913. (exit $ac_status); } && {
  18914. test -z "$ac_c_werror_flag" ||
  18915. test ! -s conftest.err
  18916. } && test -s conftest$ac_exeext &&
  18917. $as_test_x conftest$ac_exeext; then
  18918. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  18919. else
  18920. echo "$as_me: failed program was:" >&5
  18921. sed 's/^/| /' conftest.$ac_ext >&5
  18922. ac_cv_lib_dnet_stub_dnet_ntoa=no
  18923. fi
  18924. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18925. conftest$ac_exeext conftest.$ac_ext
  18926. LIBS=$ac_check_lib_save_LIBS
  18927. fi
  18928. { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  18929. echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  18930. if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
  18931. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  18932. fi
  18933. fi
  18934. fi
  18935. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18936. conftest$ac_exeext conftest.$ac_ext
  18937. LIBS="$ac_xsave_LIBS"
  18938. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  18939. # to get the SysV transport functions.
  18940. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  18941. # needs -lnsl.
  18942. # The nsl library prevents programs from opening the X display
  18943. # on Irix 5.2, according to T.E. Dickey.
  18944. # The functions gethostbyname, getservbyname, and inet_addr are
  18945. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  18946. { echo "$as_me:$LINENO: checking for gethostbyname" >&5
  18947. echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
  18948. if test "${ac_cv_func_gethostbyname+set}" = set; then
  18949. echo $ECHO_N "(cached) $ECHO_C" >&6
  18950. else
  18951. cat >conftest.$ac_ext <<_ACEOF
  18952. /* confdefs.h. */
  18953. _ACEOF
  18954. cat confdefs.h >>conftest.$ac_ext
  18955. cat >>conftest.$ac_ext <<_ACEOF
  18956. /* end confdefs.h. */
  18957. /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
  18958. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18959. #define gethostbyname innocuous_gethostbyname
  18960. /* System header to define __stub macros and hopefully few prototypes,
  18961. which can conflict with char gethostbyname (); below.
  18962. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18963. <limits.h> exists even on freestanding compilers. */
  18964. #ifdef __STDC__
  18965. # include <limits.h>
  18966. #else
  18967. # include <assert.h>
  18968. #endif
  18969. #undef gethostbyname
  18970. /* Override any GCC internal prototype to avoid an error.
  18971. Use char because int might match the return type of a GCC
  18972. builtin and then its argument prototype would still apply. */
  18973. #ifdef __cplusplus
  18974. extern "C"
  18975. #endif
  18976. char gethostbyname ();
  18977. /* The GNU C library defines this for functions which it implements
  18978. to always fail with ENOSYS. Some functions are actually named
  18979. something starting with __ and the normal name is an alias. */
  18980. #if defined __stub_gethostbyname || defined __stub___gethostbyname
  18981. choke me
  18982. #endif
  18983. int
  18984. main ()
  18985. {
  18986. return gethostbyname ();
  18987. ;
  18988. return 0;
  18989. }
  18990. _ACEOF
  18991. rm -f conftest.$ac_objext conftest$ac_exeext
  18992. if { (ac_try="$ac_link"
  18993. case "(($ac_try" in
  18994. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18995. *) ac_try_echo=$ac_try;;
  18996. esac
  18997. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18998. (eval "$ac_link") 2>conftest.er1
  18999. ac_status=$?
  19000. grep -v '^ *+' conftest.er1 >conftest.err
  19001. rm -f conftest.er1
  19002. cat conftest.err >&5
  19003. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19004. (exit $ac_status); } && {
  19005. test -z "$ac_c_werror_flag" ||
  19006. test ! -s conftest.err
  19007. } && test -s conftest$ac_exeext &&
  19008. $as_test_x conftest$ac_exeext; then
  19009. ac_cv_func_gethostbyname=yes
  19010. else
  19011. echo "$as_me: failed program was:" >&5
  19012. sed 's/^/| /' conftest.$ac_ext >&5
  19013. ac_cv_func_gethostbyname=no
  19014. fi
  19015. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19016. conftest$ac_exeext conftest.$ac_ext
  19017. fi
  19018. { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
  19019. echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
  19020. if test $ac_cv_func_gethostbyname = no; then
  19021. { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
  19022. echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
  19023. if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
  19024. echo $ECHO_N "(cached) $ECHO_C" >&6
  19025. else
  19026. ac_check_lib_save_LIBS=$LIBS
  19027. LIBS="-lnsl $LIBS"
  19028. cat >conftest.$ac_ext <<_ACEOF
  19029. /* confdefs.h. */
  19030. _ACEOF
  19031. cat confdefs.h >>conftest.$ac_ext
  19032. cat >>conftest.$ac_ext <<_ACEOF
  19033. /* end confdefs.h. */
  19034. /* Override any GCC internal prototype to avoid an error.
  19035. Use char because int might match the return type of a GCC
  19036. builtin and then its argument prototype would still apply. */
  19037. #ifdef __cplusplus
  19038. extern "C"
  19039. #endif
  19040. char gethostbyname ();
  19041. int
  19042. main ()
  19043. {
  19044. return gethostbyname ();
  19045. ;
  19046. return 0;
  19047. }
  19048. _ACEOF
  19049. rm -f conftest.$ac_objext conftest$ac_exeext
  19050. if { (ac_try="$ac_link"
  19051. case "(($ac_try" in
  19052. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19053. *) ac_try_echo=$ac_try;;
  19054. esac
  19055. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19056. (eval "$ac_link") 2>conftest.er1
  19057. ac_status=$?
  19058. grep -v '^ *+' conftest.er1 >conftest.err
  19059. rm -f conftest.er1
  19060. cat conftest.err >&5
  19061. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19062. (exit $ac_status); } && {
  19063. test -z "$ac_c_werror_flag" ||
  19064. test ! -s conftest.err
  19065. } && test -s conftest$ac_exeext &&
  19066. $as_test_x conftest$ac_exeext; then
  19067. ac_cv_lib_nsl_gethostbyname=yes
  19068. else
  19069. echo "$as_me: failed program was:" >&5
  19070. sed 's/^/| /' conftest.$ac_ext >&5
  19071. ac_cv_lib_nsl_gethostbyname=no
  19072. fi
  19073. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19074. conftest$ac_exeext conftest.$ac_ext
  19075. LIBS=$ac_check_lib_save_LIBS
  19076. fi
  19077. { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
  19078. echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
  19079. if test $ac_cv_lib_nsl_gethostbyname = yes; then
  19080. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  19081. fi
  19082. if test $ac_cv_lib_nsl_gethostbyname = no; then
  19083. { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
  19084. echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
  19085. if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
  19086. echo $ECHO_N "(cached) $ECHO_C" >&6
  19087. else
  19088. ac_check_lib_save_LIBS=$LIBS
  19089. LIBS="-lbsd $LIBS"
  19090. cat >conftest.$ac_ext <<_ACEOF
  19091. /* confdefs.h. */
  19092. _ACEOF
  19093. cat confdefs.h >>conftest.$ac_ext
  19094. cat >>conftest.$ac_ext <<_ACEOF
  19095. /* end confdefs.h. */
  19096. /* Override any GCC internal prototype to avoid an error.
  19097. Use char because int might match the return type of a GCC
  19098. builtin and then its argument prototype would still apply. */
  19099. #ifdef __cplusplus
  19100. extern "C"
  19101. #endif
  19102. char gethostbyname ();
  19103. int
  19104. main ()
  19105. {
  19106. return gethostbyname ();
  19107. ;
  19108. return 0;
  19109. }
  19110. _ACEOF
  19111. rm -f conftest.$ac_objext conftest$ac_exeext
  19112. if { (ac_try="$ac_link"
  19113. case "(($ac_try" in
  19114. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19115. *) ac_try_echo=$ac_try;;
  19116. esac
  19117. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19118. (eval "$ac_link") 2>conftest.er1
  19119. ac_status=$?
  19120. grep -v '^ *+' conftest.er1 >conftest.err
  19121. rm -f conftest.er1
  19122. cat conftest.err >&5
  19123. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19124. (exit $ac_status); } && {
  19125. test -z "$ac_c_werror_flag" ||
  19126. test ! -s conftest.err
  19127. } && test -s conftest$ac_exeext &&
  19128. $as_test_x conftest$ac_exeext; then
  19129. ac_cv_lib_bsd_gethostbyname=yes
  19130. else
  19131. echo "$as_me: failed program was:" >&5
  19132. sed 's/^/| /' conftest.$ac_ext >&5
  19133. ac_cv_lib_bsd_gethostbyname=no
  19134. fi
  19135. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19136. conftest$ac_exeext conftest.$ac_ext
  19137. LIBS=$ac_check_lib_save_LIBS
  19138. fi
  19139. { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
  19140. echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
  19141. if test $ac_cv_lib_bsd_gethostbyname = yes; then
  19142. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  19143. fi
  19144. fi
  19145. fi
  19146. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  19147. # socket/setsockopt and other routines are undefined under SCO ODT
  19148. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  19149. # on later versions), says Simon Leinen: it contains gethostby*
  19150. # variants that don't use the name server (or something). -lsocket
  19151. # must be given before -lnsl if both are needed. We assume that
  19152. # if connect needs -lnsl, so does gethostbyname.
  19153. { echo "$as_me:$LINENO: checking for connect" >&5
  19154. echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
  19155. if test "${ac_cv_func_connect+set}" = set; then
  19156. echo $ECHO_N "(cached) $ECHO_C" >&6
  19157. else
  19158. cat >conftest.$ac_ext <<_ACEOF
  19159. /* confdefs.h. */
  19160. _ACEOF
  19161. cat confdefs.h >>conftest.$ac_ext
  19162. cat >>conftest.$ac_ext <<_ACEOF
  19163. /* end confdefs.h. */
  19164. /* Define connect to an innocuous variant, in case <limits.h> declares connect.
  19165. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19166. #define connect innocuous_connect
  19167. /* System header to define __stub macros and hopefully few prototypes,
  19168. which can conflict with char connect (); below.
  19169. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19170. <limits.h> exists even on freestanding compilers. */
  19171. #ifdef __STDC__
  19172. # include <limits.h>
  19173. #else
  19174. # include <assert.h>
  19175. #endif
  19176. #undef connect
  19177. /* Override any GCC internal prototype to avoid an error.
  19178. Use char because int might match the return type of a GCC
  19179. builtin and then its argument prototype would still apply. */
  19180. #ifdef __cplusplus
  19181. extern "C"
  19182. #endif
  19183. char connect ();
  19184. /* The GNU C library defines this for functions which it implements
  19185. to always fail with ENOSYS. Some functions are actually named
  19186. something starting with __ and the normal name is an alias. */
  19187. #if defined __stub_connect || defined __stub___connect
  19188. choke me
  19189. #endif
  19190. int
  19191. main ()
  19192. {
  19193. return connect ();
  19194. ;
  19195. return 0;
  19196. }
  19197. _ACEOF
  19198. rm -f conftest.$ac_objext conftest$ac_exeext
  19199. if { (ac_try="$ac_link"
  19200. case "(($ac_try" in
  19201. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19202. *) ac_try_echo=$ac_try;;
  19203. esac
  19204. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19205. (eval "$ac_link") 2>conftest.er1
  19206. ac_status=$?
  19207. grep -v '^ *+' conftest.er1 >conftest.err
  19208. rm -f conftest.er1
  19209. cat conftest.err >&5
  19210. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19211. (exit $ac_status); } && {
  19212. test -z "$ac_c_werror_flag" ||
  19213. test ! -s conftest.err
  19214. } && test -s conftest$ac_exeext &&
  19215. $as_test_x conftest$ac_exeext; then
  19216. ac_cv_func_connect=yes
  19217. else
  19218. echo "$as_me: failed program was:" >&5
  19219. sed 's/^/| /' conftest.$ac_ext >&5
  19220. ac_cv_func_connect=no
  19221. fi
  19222. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19223. conftest$ac_exeext conftest.$ac_ext
  19224. fi
  19225. { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
  19226. echo "${ECHO_T}$ac_cv_func_connect" >&6; }
  19227. if test $ac_cv_func_connect = no; then
  19228. { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
  19229. echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
  19230. if test "${ac_cv_lib_socket_connect+set}" = set; then
  19231. echo $ECHO_N "(cached) $ECHO_C" >&6
  19232. else
  19233. ac_check_lib_save_LIBS=$LIBS
  19234. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  19235. cat >conftest.$ac_ext <<_ACEOF
  19236. /* confdefs.h. */
  19237. _ACEOF
  19238. cat confdefs.h >>conftest.$ac_ext
  19239. cat >>conftest.$ac_ext <<_ACEOF
  19240. /* end confdefs.h. */
  19241. /* Override any GCC internal prototype to avoid an error.
  19242. Use char because int might match the return type of a GCC
  19243. builtin and then its argument prototype would still apply. */
  19244. #ifdef __cplusplus
  19245. extern "C"
  19246. #endif
  19247. char connect ();
  19248. int
  19249. main ()
  19250. {
  19251. return connect ();
  19252. ;
  19253. return 0;
  19254. }
  19255. _ACEOF
  19256. rm -f conftest.$ac_objext conftest$ac_exeext
  19257. if { (ac_try="$ac_link"
  19258. case "(($ac_try" in
  19259. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19260. *) ac_try_echo=$ac_try;;
  19261. esac
  19262. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19263. (eval "$ac_link") 2>conftest.er1
  19264. ac_status=$?
  19265. grep -v '^ *+' conftest.er1 >conftest.err
  19266. rm -f conftest.er1
  19267. cat conftest.err >&5
  19268. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19269. (exit $ac_status); } && {
  19270. test -z "$ac_c_werror_flag" ||
  19271. test ! -s conftest.err
  19272. } && test -s conftest$ac_exeext &&
  19273. $as_test_x conftest$ac_exeext; then
  19274. ac_cv_lib_socket_connect=yes
  19275. else
  19276. echo "$as_me: failed program was:" >&5
  19277. sed 's/^/| /' conftest.$ac_ext >&5
  19278. ac_cv_lib_socket_connect=no
  19279. fi
  19280. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19281. conftest$ac_exeext conftest.$ac_ext
  19282. LIBS=$ac_check_lib_save_LIBS
  19283. fi
  19284. { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
  19285. echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
  19286. if test $ac_cv_lib_socket_connect = yes; then
  19287. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  19288. fi
  19289. fi
  19290. # Guillermo Gomez says -lposix is necessary on A/UX.
  19291. { echo "$as_me:$LINENO: checking for remove" >&5
  19292. echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
  19293. if test "${ac_cv_func_remove+set}" = set; then
  19294. echo $ECHO_N "(cached) $ECHO_C" >&6
  19295. else
  19296. cat >conftest.$ac_ext <<_ACEOF
  19297. /* confdefs.h. */
  19298. _ACEOF
  19299. cat confdefs.h >>conftest.$ac_ext
  19300. cat >>conftest.$ac_ext <<_ACEOF
  19301. /* end confdefs.h. */
  19302. /* Define remove to an innocuous variant, in case <limits.h> declares remove.
  19303. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19304. #define remove innocuous_remove
  19305. /* System header to define __stub macros and hopefully few prototypes,
  19306. which can conflict with char remove (); below.
  19307. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19308. <limits.h> exists even on freestanding compilers. */
  19309. #ifdef __STDC__
  19310. # include <limits.h>
  19311. #else
  19312. # include <assert.h>
  19313. #endif
  19314. #undef remove
  19315. /* Override any GCC internal prototype to avoid an error.
  19316. Use char because int might match the return type of a GCC
  19317. builtin and then its argument prototype would still apply. */
  19318. #ifdef __cplusplus
  19319. extern "C"
  19320. #endif
  19321. char remove ();
  19322. /* The GNU C library defines this for functions which it implements
  19323. to always fail with ENOSYS. Some functions are actually named
  19324. something starting with __ and the normal name is an alias. */
  19325. #if defined __stub_remove || defined __stub___remove
  19326. choke me
  19327. #endif
  19328. int
  19329. main ()
  19330. {
  19331. return remove ();
  19332. ;
  19333. return 0;
  19334. }
  19335. _ACEOF
  19336. rm -f conftest.$ac_objext conftest$ac_exeext
  19337. if { (ac_try="$ac_link"
  19338. case "(($ac_try" in
  19339. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19340. *) ac_try_echo=$ac_try;;
  19341. esac
  19342. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19343. (eval "$ac_link") 2>conftest.er1
  19344. ac_status=$?
  19345. grep -v '^ *+' conftest.er1 >conftest.err
  19346. rm -f conftest.er1
  19347. cat conftest.err >&5
  19348. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19349. (exit $ac_status); } && {
  19350. test -z "$ac_c_werror_flag" ||
  19351. test ! -s conftest.err
  19352. } && test -s conftest$ac_exeext &&
  19353. $as_test_x conftest$ac_exeext; then
  19354. ac_cv_func_remove=yes
  19355. else
  19356. echo "$as_me: failed program was:" >&5
  19357. sed 's/^/| /' conftest.$ac_ext >&5
  19358. ac_cv_func_remove=no
  19359. fi
  19360. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19361. conftest$ac_exeext conftest.$ac_ext
  19362. fi
  19363. { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
  19364. echo "${ECHO_T}$ac_cv_func_remove" >&6; }
  19365. if test $ac_cv_func_remove = no; then
  19366. { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
  19367. echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
  19368. if test "${ac_cv_lib_posix_remove+set}" = set; then
  19369. echo $ECHO_N "(cached) $ECHO_C" >&6
  19370. else
  19371. ac_check_lib_save_LIBS=$LIBS
  19372. LIBS="-lposix $LIBS"
  19373. cat >conftest.$ac_ext <<_ACEOF
  19374. /* confdefs.h. */
  19375. _ACEOF
  19376. cat confdefs.h >>conftest.$ac_ext
  19377. cat >>conftest.$ac_ext <<_ACEOF
  19378. /* end confdefs.h. */
  19379. /* Override any GCC internal prototype to avoid an error.
  19380. Use char because int might match the return type of a GCC
  19381. builtin and then its argument prototype would still apply. */
  19382. #ifdef __cplusplus
  19383. extern "C"
  19384. #endif
  19385. char remove ();
  19386. int
  19387. main ()
  19388. {
  19389. return remove ();
  19390. ;
  19391. return 0;
  19392. }
  19393. _ACEOF
  19394. rm -f conftest.$ac_objext conftest$ac_exeext
  19395. if { (ac_try="$ac_link"
  19396. case "(($ac_try" in
  19397. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19398. *) ac_try_echo=$ac_try;;
  19399. esac
  19400. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19401. (eval "$ac_link") 2>conftest.er1
  19402. ac_status=$?
  19403. grep -v '^ *+' conftest.er1 >conftest.err
  19404. rm -f conftest.er1
  19405. cat conftest.err >&5
  19406. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19407. (exit $ac_status); } && {
  19408. test -z "$ac_c_werror_flag" ||
  19409. test ! -s conftest.err
  19410. } && test -s conftest$ac_exeext &&
  19411. $as_test_x conftest$ac_exeext; then
  19412. ac_cv_lib_posix_remove=yes
  19413. else
  19414. echo "$as_me: failed program was:" >&5
  19415. sed 's/^/| /' conftest.$ac_ext >&5
  19416. ac_cv_lib_posix_remove=no
  19417. fi
  19418. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19419. conftest$ac_exeext conftest.$ac_ext
  19420. LIBS=$ac_check_lib_save_LIBS
  19421. fi
  19422. { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
  19423. echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
  19424. if test $ac_cv_lib_posix_remove = yes; then
  19425. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  19426. fi
  19427. fi
  19428. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  19429. { echo "$as_me:$LINENO: checking for shmat" >&5
  19430. echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
  19431. if test "${ac_cv_func_shmat+set}" = set; then
  19432. echo $ECHO_N "(cached) $ECHO_C" >&6
  19433. else
  19434. cat >conftest.$ac_ext <<_ACEOF
  19435. /* confdefs.h. */
  19436. _ACEOF
  19437. cat confdefs.h >>conftest.$ac_ext
  19438. cat >>conftest.$ac_ext <<_ACEOF
  19439. /* end confdefs.h. */
  19440. /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
  19441. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19442. #define shmat innocuous_shmat
  19443. /* System header to define __stub macros and hopefully few prototypes,
  19444. which can conflict with char shmat (); below.
  19445. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19446. <limits.h> exists even on freestanding compilers. */
  19447. #ifdef __STDC__
  19448. # include <limits.h>
  19449. #else
  19450. # include <assert.h>
  19451. #endif
  19452. #undef shmat
  19453. /* Override any GCC internal prototype to avoid an error.
  19454. Use char because int might match the return type of a GCC
  19455. builtin and then its argument prototype would still apply. */
  19456. #ifdef __cplusplus
  19457. extern "C"
  19458. #endif
  19459. char shmat ();
  19460. /* The GNU C library defines this for functions which it implements
  19461. to always fail with ENOSYS. Some functions are actually named
  19462. something starting with __ and the normal name is an alias. */
  19463. #if defined __stub_shmat || defined __stub___shmat
  19464. choke me
  19465. #endif
  19466. int
  19467. main ()
  19468. {
  19469. return shmat ();
  19470. ;
  19471. return 0;
  19472. }
  19473. _ACEOF
  19474. rm -f conftest.$ac_objext conftest$ac_exeext
  19475. if { (ac_try="$ac_link"
  19476. case "(($ac_try" in
  19477. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19478. *) ac_try_echo=$ac_try;;
  19479. esac
  19480. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19481. (eval "$ac_link") 2>conftest.er1
  19482. ac_status=$?
  19483. grep -v '^ *+' conftest.er1 >conftest.err
  19484. rm -f conftest.er1
  19485. cat conftest.err >&5
  19486. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19487. (exit $ac_status); } && {
  19488. test -z "$ac_c_werror_flag" ||
  19489. test ! -s conftest.err
  19490. } && test -s conftest$ac_exeext &&
  19491. $as_test_x conftest$ac_exeext; then
  19492. ac_cv_func_shmat=yes
  19493. else
  19494. echo "$as_me: failed program was:" >&5
  19495. sed 's/^/| /' conftest.$ac_ext >&5
  19496. ac_cv_func_shmat=no
  19497. fi
  19498. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19499. conftest$ac_exeext conftest.$ac_ext
  19500. fi
  19501. { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
  19502. echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
  19503. if test $ac_cv_func_shmat = no; then
  19504. { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
  19505. echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
  19506. if test "${ac_cv_lib_ipc_shmat+set}" = set; then
  19507. echo $ECHO_N "(cached) $ECHO_C" >&6
  19508. else
  19509. ac_check_lib_save_LIBS=$LIBS
  19510. LIBS="-lipc $LIBS"
  19511. cat >conftest.$ac_ext <<_ACEOF
  19512. /* confdefs.h. */
  19513. _ACEOF
  19514. cat confdefs.h >>conftest.$ac_ext
  19515. cat >>conftest.$ac_ext <<_ACEOF
  19516. /* end confdefs.h. */
  19517. /* Override any GCC internal prototype to avoid an error.
  19518. Use char because int might match the return type of a GCC
  19519. builtin and then its argument prototype would still apply. */
  19520. #ifdef __cplusplus
  19521. extern "C"
  19522. #endif
  19523. char shmat ();
  19524. int
  19525. main ()
  19526. {
  19527. return shmat ();
  19528. ;
  19529. return 0;
  19530. }
  19531. _ACEOF
  19532. rm -f conftest.$ac_objext conftest$ac_exeext
  19533. if { (ac_try="$ac_link"
  19534. case "(($ac_try" in
  19535. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19536. *) ac_try_echo=$ac_try;;
  19537. esac
  19538. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19539. (eval "$ac_link") 2>conftest.er1
  19540. ac_status=$?
  19541. grep -v '^ *+' conftest.er1 >conftest.err
  19542. rm -f conftest.er1
  19543. cat conftest.err >&5
  19544. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19545. (exit $ac_status); } && {
  19546. test -z "$ac_c_werror_flag" ||
  19547. test ! -s conftest.err
  19548. } && test -s conftest$ac_exeext &&
  19549. $as_test_x conftest$ac_exeext; then
  19550. ac_cv_lib_ipc_shmat=yes
  19551. else
  19552. echo "$as_me: failed program was:" >&5
  19553. sed 's/^/| /' conftest.$ac_ext >&5
  19554. ac_cv_lib_ipc_shmat=no
  19555. fi
  19556. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19557. conftest$ac_exeext conftest.$ac_ext
  19558. LIBS=$ac_check_lib_save_LIBS
  19559. fi
  19560. { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
  19561. echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
  19562. if test $ac_cv_lib_ipc_shmat = yes; then
  19563. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  19564. fi
  19565. fi
  19566. fi
  19567. # Check for libraries that X11R6 Xt/Xaw programs need.
  19568. ac_save_LDFLAGS=$LDFLAGS
  19569. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  19570. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  19571. # check for ICE first), but we must link in the order -lSM -lICE or
  19572. # we get undefined symbols. So assume we have SM if we have ICE.
  19573. # These have to be linked with before -lX11, unlike the other
  19574. # libraries we check for below, so use a different variable.
  19575. # John Interrante, Karl Berry
  19576. { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
  19577. echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
  19578. if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
  19579. echo $ECHO_N "(cached) $ECHO_C" >&6
  19580. else
  19581. ac_check_lib_save_LIBS=$LIBS
  19582. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  19583. cat >conftest.$ac_ext <<_ACEOF
  19584. /* confdefs.h. */
  19585. _ACEOF
  19586. cat confdefs.h >>conftest.$ac_ext
  19587. cat >>conftest.$ac_ext <<_ACEOF
  19588. /* end confdefs.h. */
  19589. /* Override any GCC internal prototype to avoid an error.
  19590. Use char because int might match the return type of a GCC
  19591. builtin and then its argument prototype would still apply. */
  19592. #ifdef __cplusplus
  19593. extern "C"
  19594. #endif
  19595. char IceConnectionNumber ();
  19596. int
  19597. main ()
  19598. {
  19599. return IceConnectionNumber ();
  19600. ;
  19601. return 0;
  19602. }
  19603. _ACEOF
  19604. rm -f conftest.$ac_objext conftest$ac_exeext
  19605. if { (ac_try="$ac_link"
  19606. case "(($ac_try" in
  19607. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19608. *) ac_try_echo=$ac_try;;
  19609. esac
  19610. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19611. (eval "$ac_link") 2>conftest.er1
  19612. ac_status=$?
  19613. grep -v '^ *+' conftest.er1 >conftest.err
  19614. rm -f conftest.er1
  19615. cat conftest.err >&5
  19616. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19617. (exit $ac_status); } && {
  19618. test -z "$ac_c_werror_flag" ||
  19619. test ! -s conftest.err
  19620. } && test -s conftest$ac_exeext &&
  19621. $as_test_x conftest$ac_exeext; then
  19622. ac_cv_lib_ICE_IceConnectionNumber=yes
  19623. else
  19624. echo "$as_me: failed program was:" >&5
  19625. sed 's/^/| /' conftest.$ac_ext >&5
  19626. ac_cv_lib_ICE_IceConnectionNumber=no
  19627. fi
  19628. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19629. conftest$ac_exeext conftest.$ac_ext
  19630. LIBS=$ac_check_lib_save_LIBS
  19631. fi
  19632. { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  19633. echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  19634. if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
  19635. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  19636. fi
  19637. LDFLAGS=$ac_save_LDFLAGS
  19638. fi
  19639. if test "x$enable_ILUT" = "xyes"; then
  19640. # Check whether --enable-allegro was given.
  19641. if test "${enable_allegro+set}" = set; then
  19642. enableval=$enable_allegro;
  19643. else
  19644. enable_allegro="yes"
  19645. fi
  19646. if test "x$enable_allegro" = "xyes"; then
  19647. if test "${ac_cv_header_allegro_h+set}" = set; then
  19648. { echo "$as_me:$LINENO: checking for allegro.h" >&5
  19649. echo $ECHO_N "checking for allegro.h... $ECHO_C" >&6; }
  19650. if test "${ac_cv_header_allegro_h+set}" = set; then
  19651. echo $ECHO_N "(cached) $ECHO_C" >&6
  19652. fi
  19653. { echo "$as_me:$LINENO: result: $ac_cv_header_allegro_h" >&5
  19654. echo "${ECHO_T}$ac_cv_header_allegro_h" >&6; }
  19655. else
  19656. # Is the header compilable?
  19657. { echo "$as_me:$LINENO: checking allegro.h usability" >&5
  19658. echo $ECHO_N "checking allegro.h usability... $ECHO_C" >&6; }
  19659. cat >conftest.$ac_ext <<_ACEOF
  19660. /* confdefs.h. */
  19661. _ACEOF
  19662. cat confdefs.h >>conftest.$ac_ext
  19663. cat >>conftest.$ac_ext <<_ACEOF
  19664. /* end confdefs.h. */
  19665. $ac_includes_default
  19666. #include <allegro.h>
  19667. _ACEOF
  19668. rm -f conftest.$ac_objext
  19669. if { (ac_try="$ac_compile"
  19670. case "(($ac_try" in
  19671. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19672. *) ac_try_echo=$ac_try;;
  19673. esac
  19674. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19675. (eval "$ac_compile") 2>conftest.er1
  19676. ac_status=$?
  19677. grep -v '^ *+' conftest.er1 >conftest.err
  19678. rm -f conftest.er1
  19679. cat conftest.err >&5
  19680. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19681. (exit $ac_status); } && {
  19682. test -z "$ac_c_werror_flag" ||
  19683. test ! -s conftest.err
  19684. } && test -s conftest.$ac_objext; then
  19685. ac_header_compiler=yes
  19686. else
  19687. echo "$as_me: failed program was:" >&5
  19688. sed 's/^/| /' conftest.$ac_ext >&5
  19689. ac_header_compiler=no
  19690. fi
  19691. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19692. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  19693. echo "${ECHO_T}$ac_header_compiler" >&6; }
  19694. # Is the header present?
  19695. { echo "$as_me:$LINENO: checking allegro.h presence" >&5
  19696. echo $ECHO_N "checking allegro.h presence... $ECHO_C" >&6; }
  19697. cat >conftest.$ac_ext <<_ACEOF
  19698. /* confdefs.h. */
  19699. _ACEOF
  19700. cat confdefs.h >>conftest.$ac_ext
  19701. cat >>conftest.$ac_ext <<_ACEOF
  19702. /* end confdefs.h. */
  19703. #include <allegro.h>
  19704. _ACEOF
  19705. if { (ac_try="$ac_cpp conftest.$ac_ext"
  19706. case "(($ac_try" in
  19707. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19708. *) ac_try_echo=$ac_try;;
  19709. esac
  19710. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19711. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19712. ac_status=$?
  19713. grep -v '^ *+' conftest.er1 >conftest.err
  19714. rm -f conftest.er1
  19715. cat conftest.err >&5
  19716. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19717. (exit $ac_status); } >/dev/null && {
  19718. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  19719. test ! -s conftest.err
  19720. }; then
  19721. ac_header_preproc=yes
  19722. else
  19723. echo "$as_me: failed program was:" >&5
  19724. sed 's/^/| /' conftest.$ac_ext >&5
  19725. ac_header_preproc=no
  19726. fi
  19727. rm -f conftest.err conftest.$ac_ext
  19728. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19729. echo "${ECHO_T}$ac_header_preproc" >&6; }
  19730. # So? What about this header?
  19731. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19732. yes:no: )
  19733. { echo "$as_me:$LINENO: WARNING: allegro.h: accepted by the compiler, rejected by the preprocessor!" >&5
  19734. echo "$as_me: WARNING: allegro.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19735. { echo "$as_me:$LINENO: WARNING: allegro.h: proceeding with the compiler's result" >&5
  19736. echo "$as_me: WARNING: allegro.h: proceeding with the compiler's result" >&2;}
  19737. ac_header_preproc=yes
  19738. ;;
  19739. no:yes:* )
  19740. { echo "$as_me:$LINENO: WARNING: allegro.h: present but cannot be compiled" >&5
  19741. echo "$as_me: WARNING: allegro.h: present but cannot be compiled" >&2;}
  19742. { echo "$as_me:$LINENO: WARNING: allegro.h: check for missing prerequisite headers?" >&5
  19743. echo "$as_me: WARNING: allegro.h: check for missing prerequisite headers?" >&2;}
  19744. { echo "$as_me:$LINENO: WARNING: allegro.h: see the Autoconf documentation" >&5
  19745. echo "$as_me: WARNING: allegro.h: see the Autoconf documentation" >&2;}
  19746. { echo "$as_me:$LINENO: WARNING: allegro.h: section \"Present But Cannot Be Compiled\"" >&5
  19747. echo "$as_me: WARNING: allegro.h: section \"Present But Cannot Be Compiled\"" >&2;}
  19748. { echo "$as_me:$LINENO: WARNING: allegro.h: proceeding with the preprocessor's result" >&5
  19749. echo "$as_me: WARNING: allegro.h: proceeding with the preprocessor's result" >&2;}
  19750. { echo "$as_me:$LINENO: WARNING: allegro.h: in the future, the compiler will take precedence" >&5
  19751. echo "$as_me: WARNING: allegro.h: in the future, the compiler will take precedence" >&2;}
  19752. ( cat <<\_ASBOX
  19753. ## ------------------------------------------ ##
  19754. ## Report this to bubla@users.sourceforge.net ##
  19755. ## ------------------------------------------ ##
  19756. _ASBOX
  19757. ) | sed "s/^/$as_me: WARNING: /" >&2
  19758. ;;
  19759. esac
  19760. { echo "$as_me:$LINENO: checking for allegro.h" >&5
  19761. echo $ECHO_N "checking for allegro.h... $ECHO_C" >&6; }
  19762. if test "${ac_cv_header_allegro_h+set}" = set; then
  19763. echo $ECHO_N "(cached) $ECHO_C" >&6
  19764. else
  19765. ac_cv_header_allegro_h=$ac_header_preproc
  19766. fi
  19767. { echo "$as_me:$LINENO: result: $ac_cv_header_allegro_h" >&5
  19768. echo "${ECHO_T}$ac_cv_header_allegro_h" >&6; }
  19769. fi
  19770. if test $ac_cv_header_allegro_h = yes; then
  19771. { echo "$as_me:$LINENO: checking for main in -lalleg" >&5
  19772. echo $ECHO_N "checking for main in -lalleg... $ECHO_C" >&6; }
  19773. if test "${ac_cv_lib_alleg_main+set}" = set; then
  19774. echo $ECHO_N "(cached) $ECHO_C" >&6
  19775. else
  19776. ac_check_lib_save_LIBS=$LIBS
  19777. LIBS="-lalleg $LIBS"
  19778. cat >conftest.$ac_ext <<_ACEOF
  19779. /* confdefs.h. */
  19780. _ACEOF
  19781. cat confdefs.h >>conftest.$ac_ext
  19782. cat >>conftest.$ac_ext <<_ACEOF
  19783. /* end confdefs.h. */
  19784. int
  19785. main ()
  19786. {
  19787. return main ();
  19788. ;
  19789. return 0;
  19790. }
  19791. _ACEOF
  19792. rm -f conftest.$ac_objext conftest$ac_exeext
  19793. if { (ac_try="$ac_link"
  19794. case "(($ac_try" in
  19795. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19796. *) ac_try_echo=$ac_try;;
  19797. esac
  19798. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19799. (eval "$ac_link") 2>conftest.er1
  19800. ac_status=$?
  19801. grep -v '^ *+' conftest.er1 >conftest.err
  19802. rm -f conftest.er1
  19803. cat conftest.err >&5
  19804. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19805. (exit $ac_status); } && {
  19806. test -z "$ac_c_werror_flag" ||
  19807. test ! -s conftest.err
  19808. } && test -s conftest$ac_exeext &&
  19809. $as_test_x conftest$ac_exeext; then
  19810. ac_cv_lib_alleg_main=yes
  19811. else
  19812. echo "$as_me: failed program was:" >&5
  19813. sed 's/^/| /' conftest.$ac_ext >&5
  19814. ac_cv_lib_alleg_main=no
  19815. fi
  19816. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19817. conftest$ac_exeext conftest.$ac_ext
  19818. LIBS=$ac_check_lib_save_LIBS
  19819. fi
  19820. { echo "$as_me:$LINENO: result: $ac_cv_lib_alleg_main" >&5
  19821. echo "${ECHO_T}$ac_cv_lib_alleg_main" >&6; }
  19822. if test $ac_cv_lib_alleg_main = yes; then
  19823. use_allegro="yes"
  19824. ILUT_LIBS="-lalleg $ILUT_LIBS"
  19825. fi
  19826. { echo "$as_me:$LINENO: checking for main in -lallegro_unsharable" >&5
  19827. echo $ECHO_N "checking for main in -lallegro_unsharable... $ECHO_C" >&6; }
  19828. if test "${ac_cv_lib_allegro_unsharable_main+set}" = set; then
  19829. echo $ECHO_N "(cached) $ECHO_C" >&6
  19830. else
  19831. ac_check_lib_save_LIBS=$LIBS
  19832. LIBS="-lallegro_unsharable $LIBS"
  19833. cat >conftest.$ac_ext <<_ACEOF
  19834. /* confdefs.h. */
  19835. _ACEOF
  19836. cat confdefs.h >>conftest.$ac_ext
  19837. cat >>conftest.$ac_ext <<_ACEOF
  19838. /* end confdefs.h. */
  19839. int
  19840. main ()
  19841. {
  19842. return main ();
  19843. ;
  19844. return 0;
  19845. }
  19846. _ACEOF
  19847. rm -f conftest.$ac_objext conftest$ac_exeext
  19848. if { (ac_try="$ac_link"
  19849. case "(($ac_try" in
  19850. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19851. *) ac_try_echo=$ac_try;;
  19852. esac
  19853. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19854. (eval "$ac_link") 2>conftest.er1
  19855. ac_status=$?
  19856. grep -v '^ *+' conftest.er1 >conftest.err
  19857. rm -f conftest.er1
  19858. cat conftest.err >&5
  19859. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19860. (exit $ac_status); } && {
  19861. test -z "$ac_c_werror_flag" ||
  19862. test ! -s conftest.err
  19863. } && test -s conftest$ac_exeext &&
  19864. $as_test_x conftest$ac_exeext; then
  19865. ac_cv_lib_allegro_unsharable_main=yes
  19866. else
  19867. echo "$as_me: failed program was:" >&5
  19868. sed 's/^/| /' conftest.$ac_ext >&5
  19869. ac_cv_lib_allegro_unsharable_main=no
  19870. fi
  19871. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19872. conftest$ac_exeext conftest.$ac_ext
  19873. LIBS=$ac_check_lib_save_LIBS
  19874. fi
  19875. { echo "$as_me:$LINENO: result: $ac_cv_lib_allegro_unsharable_main" >&5
  19876. echo "${ECHO_T}$ac_cv_lib_allegro_unsharable_main" >&6; }
  19877. if test $ac_cv_lib_allegro_unsharable_main = yes; then
  19878. ILUT_LIBS="-lalleg_unsharable $ILUT_LIBS"
  19879. fi
  19880. { echo "$as_me:$LINENO: checking for main in -lalleg42" >&5
  19881. echo $ECHO_N "checking for main in -lalleg42... $ECHO_C" >&6; }
  19882. if test "${ac_cv_lib_alleg42_main+set}" = set; then
  19883. echo $ECHO_N "(cached) $ECHO_C" >&6
  19884. else
  19885. ac_check_lib_save_LIBS=$LIBS
  19886. LIBS="-lalleg42 $LIBS"
  19887. cat >conftest.$ac_ext <<_ACEOF
  19888. /* confdefs.h. */
  19889. _ACEOF
  19890. cat confdefs.h >>conftest.$ac_ext
  19891. cat >>conftest.$ac_ext <<_ACEOF
  19892. /* end confdefs.h. */
  19893. int
  19894. main ()
  19895. {
  19896. return main ();
  19897. ;
  19898. return 0;
  19899. }
  19900. _ACEOF
  19901. rm -f conftest.$ac_objext conftest$ac_exeext
  19902. if { (ac_try="$ac_link"
  19903. case "(($ac_try" in
  19904. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19905. *) ac_try_echo=$ac_try;;
  19906. esac
  19907. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19908. (eval "$ac_link") 2>conftest.er1
  19909. ac_status=$?
  19910. grep -v '^ *+' conftest.er1 >conftest.err
  19911. rm -f conftest.er1
  19912. cat conftest.err >&5
  19913. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19914. (exit $ac_status); } && {
  19915. test -z "$ac_c_werror_flag" ||
  19916. test ! -s conftest.err
  19917. } && test -s conftest$ac_exeext &&
  19918. $as_test_x conftest$ac_exeext; then
  19919. ac_cv_lib_alleg42_main=yes
  19920. else
  19921. echo "$as_me: failed program was:" >&5
  19922. sed 's/^/| /' conftest.$ac_ext >&5
  19923. ac_cv_lib_alleg42_main=no
  19924. fi
  19925. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19926. conftest$ac_exeext conftest.$ac_ext
  19927. LIBS=$ac_check_lib_save_LIBS
  19928. fi
  19929. { echo "$as_me:$LINENO: result: $ac_cv_lib_alleg42_main" >&5
  19930. echo "${ECHO_T}$ac_cv_lib_alleg42_main" >&6; }
  19931. if test $ac_cv_lib_alleg42_main = yes; then
  19932. use_allegro="yes"
  19933. ILUT_LIBS="-lalleg42 $ILUT_LIBS"
  19934. fi
  19935. fi
  19936. if test "x$use_allegro" != "xyes"; then
  19937. # Check whether --with-allegro-prefix was given.
  19938. if test "${with_allegro_prefix+set}" = set; then
  19939. withval=$with_allegro_prefix; ALLEGRO_CONFIG_prefix="$withval"
  19940. else
  19941. ALLEGRO_CONFIG_prefix=""
  19942. fi
  19943. # Check whether --with-allegro-exec-prefix was given.
  19944. if test "${with_allegro_exec_prefix+set}" = set; then
  19945. withval=$with_allegro_exec_prefix; ALLEGRO_CONFIG_exec_prefix="$withval"
  19946. else
  19947. ALLEGRO_CONFIG_exec_prefix=""
  19948. fi
  19949. # Check whether --enable-allegrotest was given.
  19950. if test "${enable_allegrotest+set}" = set; then
  19951. enableval=$enable_allegrotest;
  19952. else
  19953. enable_allegrotest=yes
  19954. fi
  19955. if test x$ALLEGRO_CONFIG_exec_prefix != x ; then
  19956. ALLEGRO_CONFIG_args="$ALLEGRO_CONFIG_args --exec-prefix=$ALLEGRO_CONFIG_exec_prefix"
  19957. if test x${ALLEGRO_CONFIG+set} != xset ; then
  19958. ALLEGRO_CONFIG=$ALLEGRO_CONFIG_exec_prefix/bin/allegro-config
  19959. fi
  19960. fi
  19961. if test x$ALLEGRO_CONFIG_prefix != x ; then
  19962. ALLEGRO_CONFIG_args="$ALLEGRO_CONFIG_args --prefix=$ALLEGRO_CONFIG_prefix"
  19963. if test x${ALLEGRO_CONFIG+set} != xset ; then
  19964. ALLEGRO_CONFIG=$ALLEGRO_CONFIG_prefix/bin/allegro-config
  19965. fi
  19966. fi
  19967. # Extract the first word of "allegro-config", so it can be a program name with args.
  19968. set dummy allegro-config; ac_word=$2
  19969. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  19970. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  19971. if test "${ac_cv_path_ALLEGRO_CONFIG+set}" = set; then
  19972. echo $ECHO_N "(cached) $ECHO_C" >&6
  19973. else
  19974. case $ALLEGRO_CONFIG in
  19975. [\\/]* | ?:[\\/]*)
  19976. ac_cv_path_ALLEGRO_CONFIG="$ALLEGRO_CONFIG" # Let the user override the test with a path.
  19977. ;;
  19978. *)
  19979. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19980. for as_dir in $PATH
  19981. do
  19982. IFS=$as_save_IFS
  19983. test -z "$as_dir" && as_dir=.
  19984. for ac_exec_ext in '' $ac_executable_extensions; do
  19985. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19986. ac_cv_path_ALLEGRO_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19987. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19988. break 2
  19989. fi
  19990. done
  19991. done
  19992. IFS=$as_save_IFS
  19993. test -z "$ac_cv_path_ALLEGRO_CONFIG" && ac_cv_path_ALLEGRO_CONFIG="no"
  19994. ;;
  19995. esac
  19996. fi
  19997. ALLEGRO_CONFIG=$ac_cv_path_ALLEGRO_CONFIG
  19998. if test -n "$ALLEGRO_CONFIG"; then
  19999. { echo "$as_me:$LINENO: result: $ALLEGRO_CONFIG" >&5
  20000. echo "${ECHO_T}$ALLEGRO_CONFIG" >&6; }
  20001. else
  20002. { echo "$as_me:$LINENO: result: no" >&5
  20003. echo "${ECHO_T}no" >&6; }
  20004. fi
  20005. min_allegro_version=4.2.0
  20006. { echo "$as_me:$LINENO: checking for Allegro - version >= $min_allegro_version" >&5
  20007. echo $ECHO_N "checking for Allegro - version >= $min_allegro_version... $ECHO_C" >&6; }
  20008. no_allegro=""
  20009. if test "$ALLEGRO_CONFIG" = "no" ; then
  20010. no_allegro=yes
  20011. else
  20012. allegro_CFLAGS=`$ALLEGRO_CONFIG $ALLEGRO_CONFIG_args --cflags`
  20013. allegro_LIBS=`$ALLEGRO_CONFIG $ALLEGRO_CONFIG_args --libs`
  20014. ALLEGRO_CONFIG_major_version=`$ALLEGRO_CONFIG $ALLEGRO_CONFIG_args --version | \
  20015. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  20016. ALLEGRO_CONFIG_minor_version=`$ALLEGRO_CONFIG $ALLEGRO_CONFIG_args --version | \
  20017. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  20018. ALLEGRO_CONFIG_micro_version=`$ALLEGRO_CONFIG $ALLEGRO_CONFIG_args --version | \
  20019. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  20020. if test "x$enable_allegrotest" = "xyes" ; then
  20021. ac_save_CFLAGS="$CFLAGS"
  20022. ac_save_LIBS="$LIBS"
  20023. CFLAGS="$CFLAGS $allegro_CFLAGS"
  20024. LIBS="$allegro_LIBS $LIBS"
  20025. rm -f conf.allegrotest
  20026. if test "$cross_compiling" = yes; then
  20027. echo $ac_n "cross compiling; assumed OK... $ac_c"
  20028. else
  20029. cat >conftest.$ac_ext <<_ACEOF
  20030. /* confdefs.h. */
  20031. _ACEOF
  20032. cat confdefs.h >>conftest.$ac_ext
  20033. cat >>conftest.$ac_ext <<_ACEOF
  20034. /* end confdefs.h. */
  20035. #include <stdlib.h>
  20036. #include <stdio.h>
  20037. #include <string.h>
  20038. #include <allegro.h>
  20039. int
  20040. main()
  20041. {
  20042. int allegro_major_version, allegro_minor_version, allegro_micro_version;
  20043. int major, minor, micro;
  20044. char *tmp_version;
  20045. int tmp_int_version;
  20046. system("touch conf.allegrotest");
  20047. /* Capture allegro-config output via autoconf/configure variables */
  20048. /* HP/UX 9 (%@#!) writes to sscanf strings */
  20049. tmp_version = (char *)strdup("$min_allegro_version");
  20050. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  20051. printf("%s, bad version string from allegro-config\n", "$min_allegro_version");
  20052. free(tmp_version);
  20053. exit(1);
  20054. }
  20055. free(tmp_version);
  20056. /* Capture the version information from the header files */
  20057. allegro_major_version = ALLEGRO_VERSION;
  20058. allegro_minor_version = ALLEGRO_SUB_VERSION;
  20059. allegro_micro_version = ALLEGRO_WIP_VERSION;
  20060. /* Compare allegro-config output to the Allegro headers */
  20061. if ((allegro_major_version != $ALLEGRO_CONFIG_major_version) ||
  20062. (allegro_minor_version != $ALLEGRO_CONFIG_minor_version))
  20063. {
  20064. printf("*** Allegro header files (version %d.%d.%d) do not match\n",
  20065. allegro_major_version, allegro_minor_version, allegro_micro_version);
  20066. printf("*** allegro-config (version %d.%d.%d)\n",
  20067. $ALLEGRO_CONFIG_major_version, $ALLEGRO_CONFIG_minor_version, $ALLEGRO_CONFIG_micro_version);
  20068. return 1;
  20069. }
  20070. /* Compare the headers to the library to make sure we match */
  20071. /* Less than ideal -- doesn't provide us with return value feedback,
  20072. * only exits if there's a serious mismatch between header and library.
  20073. */
  20074. /* TODO:
  20075. * This doesnt work!
  20076. */
  20077. /* ALLEGRO_TEST_VERSION; */
  20078. /* Test that the library is greater than our minimum version */
  20079. if (($ALLEGRO_CONFIG_major_version > major) ||
  20080. (($ALLEGRO_CONFIG_major_version == major) && ($ALLEGRO_CONFIG_minor_version > minor)) ||
  20081. (($ALLEGRO_CONFIG_major_version == major) && ($ALLEGRO_CONFIG_minor_version == minor) &&
  20082. ($ALLEGRO_CONFIG_micro_version >= micro)))
  20083. {
  20084. return 0;
  20085. }
  20086. else
  20087. {
  20088. printf("\n*** An old version of Allegro (%d.%d.%d) was found.\n",
  20089. allegro_major_version, allegro_minor_version, allegro_micro_version);
  20090. printf("*** You need a version of Allegro newer than %d.%d.%d. The latest version of\n",
  20091. major, minor, micro);
  20092. printf("*** Allegro is always available from http://alleg.sf.net.\n");
  20093. printf("***\n");
  20094. printf("*** If you have already installed a sufficiently new version, this error\n");
  20095. printf("*** probably means that the wrong copy of the allegro-config shell script is\n");
  20096. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  20097. printf("*** of Allegro, but you can also set the ALLEGRO_CONFIG environment to point to the\n");
  20098. printf("*** correct copy of allegro-config. (In this case, you will have to\n");
  20099. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  20100. printf("*** so that the correct libraries are found at run-time))\n");
  20101. }
  20102. return 1;
  20103. } END_OF_MAIN()
  20104. _ACEOF
  20105. rm -f conftest$ac_exeext
  20106. if { (ac_try="$ac_link"
  20107. case "(($ac_try" in
  20108. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20109. *) ac_try_echo=$ac_try;;
  20110. esac
  20111. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20112. (eval "$ac_link") 2>&5
  20113. ac_status=$?
  20114. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20115. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  20116. { (case "(($ac_try" in
  20117. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20118. *) ac_try_echo=$ac_try;;
  20119. esac
  20120. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20121. (eval "$ac_try") 2>&5
  20122. ac_status=$?
  20123. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20124. (exit $ac_status); }; }; then
  20125. :
  20126. else
  20127. echo "$as_me: program exited with status $ac_status" >&5
  20128. echo "$as_me: failed program was:" >&5
  20129. sed 's/^/| /' conftest.$ac_ext >&5
  20130. ( exit $ac_status )
  20131. no_allegro=yes
  20132. fi
  20133. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  20134. fi
  20135. CFLAGS="$ac_save_CFLAGS"
  20136. LIBS="$ac_save_LIBS"
  20137. fi
  20138. fi
  20139. if test "x$no_allegro" = x ; then
  20140. { echo "$as_me:$LINENO: result: yes (version $ALLEGRO_CONFIG_major_version.$ALLEGRO_CONFIG_minor_version.$ALLEGRO_CONFIG_micro_version)" >&5
  20141. echo "${ECHO_T}yes (version $ALLEGRO_CONFIG_major_version.$ALLEGRO_CONFIG_minor_version.$ALLEGRO_CONFIG_micro_version)" >&6; }
  20142. use_allegro="yes"
  20143. ILUT_LIBS="$allegro_LIBS $ILUT_LIBS"
  20144. ILUT_CFLAGS="$allegro_CFLAGS $ILUT_CFLAGS"
  20145. else
  20146. { echo "$as_me:$LINENO: result: no" >&5
  20147. echo "${ECHO_T}no" >&6; }
  20148. if test "$ALLEGRO_CONFIG" = "no" ; then
  20149. echo "*** The allegro-config script installed by Allegro could not be found"
  20150. echo "*** If Allegro was installed in PREFIX, make sure PREFIX/bin is in"
  20151. echo "*** your path, or set the ALLEGRO_CONFIG environment variable to the"
  20152. echo "*** full path to allegro-config."
  20153. else
  20154. if test -f conf.allegrotest ; then
  20155. :
  20156. else
  20157. echo "*** Could not run Allegro test program, checking why..."
  20158. CFLAGS="$CFLAGS $allegro_CFLAGS"
  20159. LIBS="$LIBS $allegro_LIBS"
  20160. cat >conftest.$ac_ext <<_ACEOF
  20161. /* confdefs.h. */
  20162. _ACEOF
  20163. cat confdefs.h >>conftest.$ac_ext
  20164. cat >>conftest.$ac_ext <<_ACEOF
  20165. /* end confdefs.h. */
  20166. #include <allegro.h>
  20167. #include <stdio.h>
  20168. int
  20169. main ()
  20170. {
  20171. ALLEGRO_TEST_VERSION; return 0;
  20172. ;
  20173. return 0;
  20174. }
  20175. _ACEOF
  20176. rm -f conftest.$ac_objext conftest$ac_exeext
  20177. if { (ac_try="$ac_link"
  20178. case "(($ac_try" in
  20179. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20180. *) ac_try_echo=$ac_try;;
  20181. esac
  20182. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20183. (eval "$ac_link") 2>conftest.er1
  20184. ac_status=$?
  20185. grep -v '^ *+' conftest.er1 >conftest.err
  20186. rm -f conftest.er1
  20187. cat conftest.err >&5
  20188. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20189. (exit $ac_status); } && {
  20190. test -z "$ac_c_werror_flag" ||
  20191. test ! -s conftest.err
  20192. } && test -s conftest$ac_exeext &&
  20193. $as_test_x conftest$ac_exeext; then
  20194. echo "*** The test program compiled, but did not run. This usually means"
  20195. echo "*** that the run-time linker is not finding Allegro or finding the wrong"
  20196. echo "*** version of Allegro. If it is not finding Allegro, you'll need to set your"
  20197. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  20198. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  20199. echo "*** is required on your system"
  20200. echo "***"
  20201. echo "*** If you have an old version installed, it is best to remove it, although"
  20202. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  20203. else
  20204. echo "$as_me: failed program was:" >&5
  20205. sed 's/^/| /' conftest.$ac_ext >&5
  20206. echo "*** The test program failed to compile or link. See the file config.log for the"
  20207. echo "*** exact error that occured. This usually means Allegro was incorrectly installed"
  20208. echo "*** or that you have moved Allegro since it was installed. In the latter case, you"
  20209. echo "*** may want to edit the allegro-config script: $ALLEGRO_CONFIG"
  20210. fi
  20211. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20212. conftest$ac_exeext conftest.$ac_ext
  20213. CFLAGS="$ac_save_CFLAGS"
  20214. LIBS="$ac_save_LIBS"
  20215. fi
  20216. fi
  20217. allegro_CFLAGS=""
  20218. allegro_LIBS=""
  20219. use_allegro="no"
  20220. fi
  20221. rm -f conf.allegrotest
  20222. fi
  20223. fi
  20224. if test "x$use_allegro" = "xyes"; then
  20225. cat >>confdefs.h <<\_ACEOF
  20226. #define ILUT_USE_ALLEGRO
  20227. _ACEOF
  20228. SUPPORTED_API="$SUPPORTED_API Allegro"
  20229. fi
  20230. # Check whether --enable-directx8 was given.
  20231. if test "${enable_directx8+set}" = set; then
  20232. enableval=$enable_directx8;
  20233. else
  20234. enable_directx8="yes"
  20235. fi
  20236. if test "x$enable_directx8" = "xyes"; then
  20237. if test "${ac_cv_header_d3d8_h+set}" = set; then
  20238. { echo "$as_me:$LINENO: checking for d3d8.h" >&5
  20239. echo $ECHO_N "checking for d3d8.h... $ECHO_C" >&6; }
  20240. if test "${ac_cv_header_d3d8_h+set}" = set; then
  20241. echo $ECHO_N "(cached) $ECHO_C" >&6
  20242. fi
  20243. { echo "$as_me:$LINENO: result: $ac_cv_header_d3d8_h" >&5
  20244. echo "${ECHO_T}$ac_cv_header_d3d8_h" >&6; }
  20245. else
  20246. # Is the header compilable?
  20247. { echo "$as_me:$LINENO: checking d3d8.h usability" >&5
  20248. echo $ECHO_N "checking d3d8.h usability... $ECHO_C" >&6; }
  20249. cat >conftest.$ac_ext <<_ACEOF
  20250. /* confdefs.h. */
  20251. _ACEOF
  20252. cat confdefs.h >>conftest.$ac_ext
  20253. cat >>conftest.$ac_ext <<_ACEOF
  20254. /* end confdefs.h. */
  20255. $ac_includes_default
  20256. #include <d3d8.h>
  20257. _ACEOF
  20258. rm -f conftest.$ac_objext
  20259. if { (ac_try="$ac_compile"
  20260. case "(($ac_try" in
  20261. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20262. *) ac_try_echo=$ac_try;;
  20263. esac
  20264. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20265. (eval "$ac_compile") 2>conftest.er1
  20266. ac_status=$?
  20267. grep -v '^ *+' conftest.er1 >conftest.err
  20268. rm -f conftest.er1
  20269. cat conftest.err >&5
  20270. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20271. (exit $ac_status); } && {
  20272. test -z "$ac_c_werror_flag" ||
  20273. test ! -s conftest.err
  20274. } && test -s conftest.$ac_objext; then
  20275. ac_header_compiler=yes
  20276. else
  20277. echo "$as_me: failed program was:" >&5
  20278. sed 's/^/| /' conftest.$ac_ext >&5
  20279. ac_header_compiler=no
  20280. fi
  20281. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20282. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  20283. echo "${ECHO_T}$ac_header_compiler" >&6; }
  20284. # Is the header present?
  20285. { echo "$as_me:$LINENO: checking d3d8.h presence" >&5
  20286. echo $ECHO_N "checking d3d8.h presence... $ECHO_C" >&6; }
  20287. cat >conftest.$ac_ext <<_ACEOF
  20288. /* confdefs.h. */
  20289. _ACEOF
  20290. cat confdefs.h >>conftest.$ac_ext
  20291. cat >>conftest.$ac_ext <<_ACEOF
  20292. /* end confdefs.h. */
  20293. #include <d3d8.h>
  20294. _ACEOF
  20295. if { (ac_try="$ac_cpp conftest.$ac_ext"
  20296. case "(($ac_try" in
  20297. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20298. *) ac_try_echo=$ac_try;;
  20299. esac
  20300. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20301. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  20302. ac_status=$?
  20303. grep -v '^ *+' conftest.er1 >conftest.err
  20304. rm -f conftest.er1
  20305. cat conftest.err >&5
  20306. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20307. (exit $ac_status); } >/dev/null && {
  20308. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  20309. test ! -s conftest.err
  20310. }; then
  20311. ac_header_preproc=yes
  20312. else
  20313. echo "$as_me: failed program was:" >&5
  20314. sed 's/^/| /' conftest.$ac_ext >&5
  20315. ac_header_preproc=no
  20316. fi
  20317. rm -f conftest.err conftest.$ac_ext
  20318. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  20319. echo "${ECHO_T}$ac_header_preproc" >&6; }
  20320. # So? What about this header?
  20321. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  20322. yes:no: )
  20323. { echo "$as_me:$LINENO: WARNING: d3d8.h: accepted by the compiler, rejected by the preprocessor!" >&5
  20324. echo "$as_me: WARNING: d3d8.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  20325. { echo "$as_me:$LINENO: WARNING: d3d8.h: proceeding with the compiler's result" >&5
  20326. echo "$as_me: WARNING: d3d8.h: proceeding with the compiler's result" >&2;}
  20327. ac_header_preproc=yes
  20328. ;;
  20329. no:yes:* )
  20330. { echo "$as_me:$LINENO: WARNING: d3d8.h: present but cannot be compiled" >&5
  20331. echo "$as_me: WARNING: d3d8.h: present but cannot be compiled" >&2;}
  20332. { echo "$as_me:$LINENO: WARNING: d3d8.h: check for missing prerequisite headers?" >&5
  20333. echo "$as_me: WARNING: d3d8.h: check for missing prerequisite headers?" >&2;}
  20334. { echo "$as_me:$LINENO: WARNING: d3d8.h: see the Autoconf documentation" >&5
  20335. echo "$as_me: WARNING: d3d8.h: see the Autoconf documentation" >&2;}
  20336. { echo "$as_me:$LINENO: WARNING: d3d8.h: section \"Present But Cannot Be Compiled\"" >&5
  20337. echo "$as_me: WARNING: d3d8.h: section \"Present But Cannot Be Compiled\"" >&2;}
  20338. { echo "$as_me:$LINENO: WARNING: d3d8.h: proceeding with the preprocessor's result" >&5
  20339. echo "$as_me: WARNING: d3d8.h: proceeding with the preprocessor's result" >&2;}
  20340. { echo "$as_me:$LINENO: WARNING: d3d8.h: in the future, the compiler will take precedence" >&5
  20341. echo "$as_me: WARNING: d3d8.h: in the future, the compiler will take precedence" >&2;}
  20342. ( cat <<\_ASBOX
  20343. ## ------------------------------------------ ##
  20344. ## Report this to bubla@users.sourceforge.net ##
  20345. ## ------------------------------------------ ##
  20346. _ASBOX
  20347. ) | sed "s/^/$as_me: WARNING: /" >&2
  20348. ;;
  20349. esac
  20350. { echo "$as_me:$LINENO: checking for d3d8.h" >&5
  20351. echo $ECHO_N "checking for d3d8.h... $ECHO_C" >&6; }
  20352. if test "${ac_cv_header_d3d8_h+set}" = set; then
  20353. echo $ECHO_N "(cached) $ECHO_C" >&6
  20354. else
  20355. ac_cv_header_d3d8_h=$ac_header_preproc
  20356. fi
  20357. { echo "$as_me:$LINENO: result: $ac_cv_header_d3d8_h" >&5
  20358. echo "${ECHO_T}$ac_cv_header_d3d8_h" >&6; }
  20359. fi
  20360. if test $ac_cv_header_d3d8_h = yes; then
  20361. cat >>confdefs.h <<\_ACEOF
  20362. #define ILUT_USE_DIRECTX8
  20363. _ACEOF
  20364. use_directx8="yes"
  20365. SUPPORTED_API="$SUPPORTED_API DirectX8"
  20366. fi
  20367. fi
  20368. # Check whether --enable-directx9 was given.
  20369. if test "${enable_directx9+set}" = set; then
  20370. enableval=$enable_directx9;
  20371. else
  20372. enable_directx9="yes"
  20373. fi
  20374. if test "x$enable_directx9" = "xyes"; then
  20375. if test "${ac_cv_header_d3d9_h+set}" = set; then
  20376. { echo "$as_me:$LINENO: checking for d3d9.h" >&5
  20377. echo $ECHO_N "checking for d3d9.h... $ECHO_C" >&6; }
  20378. if test "${ac_cv_header_d3d9_h+set}" = set; then
  20379. echo $ECHO_N "(cached) $ECHO_C" >&6
  20380. fi
  20381. { echo "$as_me:$LINENO: result: $ac_cv_header_d3d9_h" >&5
  20382. echo "${ECHO_T}$ac_cv_header_d3d9_h" >&6; }
  20383. else
  20384. # Is the header compilable?
  20385. { echo "$as_me:$LINENO: checking d3d9.h usability" >&5
  20386. echo $ECHO_N "checking d3d9.h usability... $ECHO_C" >&6; }
  20387. cat >conftest.$ac_ext <<_ACEOF
  20388. /* confdefs.h. */
  20389. _ACEOF
  20390. cat confdefs.h >>conftest.$ac_ext
  20391. cat >>conftest.$ac_ext <<_ACEOF
  20392. /* end confdefs.h. */
  20393. $ac_includes_default
  20394. #include <d3d9.h>
  20395. _ACEOF
  20396. rm -f conftest.$ac_objext
  20397. if { (ac_try="$ac_compile"
  20398. case "(($ac_try" in
  20399. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20400. *) ac_try_echo=$ac_try;;
  20401. esac
  20402. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20403. (eval "$ac_compile") 2>conftest.er1
  20404. ac_status=$?
  20405. grep -v '^ *+' conftest.er1 >conftest.err
  20406. rm -f conftest.er1
  20407. cat conftest.err >&5
  20408. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20409. (exit $ac_status); } && {
  20410. test -z "$ac_c_werror_flag" ||
  20411. test ! -s conftest.err
  20412. } && test -s conftest.$ac_objext; then
  20413. ac_header_compiler=yes
  20414. else
  20415. echo "$as_me: failed program was:" >&5
  20416. sed 's/^/| /' conftest.$ac_ext >&5
  20417. ac_header_compiler=no
  20418. fi
  20419. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20420. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  20421. echo "${ECHO_T}$ac_header_compiler" >&6; }
  20422. # Is the header present?
  20423. { echo "$as_me:$LINENO: checking d3d9.h presence" >&5
  20424. echo $ECHO_N "checking d3d9.h presence... $ECHO_C" >&6; }
  20425. cat >conftest.$ac_ext <<_ACEOF
  20426. /* confdefs.h. */
  20427. _ACEOF
  20428. cat confdefs.h >>conftest.$ac_ext
  20429. cat >>conftest.$ac_ext <<_ACEOF
  20430. /* end confdefs.h. */
  20431. #include <d3d9.h>
  20432. _ACEOF
  20433. if { (ac_try="$ac_cpp conftest.$ac_ext"
  20434. case "(($ac_try" in
  20435. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20436. *) ac_try_echo=$ac_try;;
  20437. esac
  20438. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20439. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  20440. ac_status=$?
  20441. grep -v '^ *+' conftest.er1 >conftest.err
  20442. rm -f conftest.er1
  20443. cat conftest.err >&5
  20444. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20445. (exit $ac_status); } >/dev/null && {
  20446. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  20447. test ! -s conftest.err
  20448. }; then
  20449. ac_header_preproc=yes
  20450. else
  20451. echo "$as_me: failed program was:" >&5
  20452. sed 's/^/| /' conftest.$ac_ext >&5
  20453. ac_header_preproc=no
  20454. fi
  20455. rm -f conftest.err conftest.$ac_ext
  20456. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  20457. echo "${ECHO_T}$ac_header_preproc" >&6; }
  20458. # So? What about this header?
  20459. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  20460. yes:no: )
  20461. { echo "$as_me:$LINENO: WARNING: d3d9.h: accepted by the compiler, rejected by the preprocessor!" >&5
  20462. echo "$as_me: WARNING: d3d9.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  20463. { echo "$as_me:$LINENO: WARNING: d3d9.h: proceeding with the compiler's result" >&5
  20464. echo "$as_me: WARNING: d3d9.h: proceeding with the compiler's result" >&2;}
  20465. ac_header_preproc=yes
  20466. ;;
  20467. no:yes:* )
  20468. { echo "$as_me:$LINENO: WARNING: d3d9.h: present but cannot be compiled" >&5
  20469. echo "$as_me: WARNING: d3d9.h: present but cannot be compiled" >&2;}
  20470. { echo "$as_me:$LINENO: WARNING: d3d9.h: check for missing prerequisite headers?" >&5
  20471. echo "$as_me: WARNING: d3d9.h: check for missing prerequisite headers?" >&2;}
  20472. { echo "$as_me:$LINENO: WARNING: d3d9.h: see the Autoconf documentation" >&5
  20473. echo "$as_me: WARNING: d3d9.h: see the Autoconf documentation" >&2;}
  20474. { echo "$as_me:$LINENO: WARNING: d3d9.h: section \"Present But Cannot Be Compiled\"" >&5
  20475. echo "$as_me: WARNING: d3d9.h: section \"Present But Cannot Be Compiled\"" >&2;}
  20476. { echo "$as_me:$LINENO: WARNING: d3d9.h: proceeding with the preprocessor's result" >&5
  20477. echo "$as_me: WARNING: d3d9.h: proceeding with the preprocessor's result" >&2;}
  20478. { echo "$as_me:$LINENO: WARNING: d3d9.h: in the future, the compiler will take precedence" >&5
  20479. echo "$as_me: WARNING: d3d9.h: in the future, the compiler will take precedence" >&2;}
  20480. ( cat <<\_ASBOX
  20481. ## ------------------------------------------ ##
  20482. ## Report this to bubla@users.sourceforge.net ##
  20483. ## ------------------------------------------ ##
  20484. _ASBOX
  20485. ) | sed "s/^/$as_me: WARNING: /" >&2
  20486. ;;
  20487. esac
  20488. { echo "$as_me:$LINENO: checking for d3d9.h" >&5
  20489. echo $ECHO_N "checking for d3d9.h... $ECHO_C" >&6; }
  20490. if test "${ac_cv_header_d3d9_h+set}" = set; then
  20491. echo $ECHO_N "(cached) $ECHO_C" >&6
  20492. else
  20493. ac_cv_header_d3d9_h=$ac_header_preproc
  20494. fi
  20495. { echo "$as_me:$LINENO: result: $ac_cv_header_d3d9_h" >&5
  20496. echo "${ECHO_T}$ac_cv_header_d3d9_h" >&6; }
  20497. fi
  20498. if test $ac_cv_header_d3d9_h = yes; then
  20499. cat >>confdefs.h <<\_ACEOF
  20500. #define ILUT_USE_DIRECTX9
  20501. _ACEOF
  20502. use_directx9="yes"
  20503. SUPPORTED_API="$SUPPORTED_API DirectX9"
  20504. fi
  20505. fi
  20506. # Check whether --enable-opengl was given.
  20507. if test "${enable_opengl+set}" = set; then
  20508. enableval=$enable_opengl;
  20509. else
  20510. enable_opengl="yes"
  20511. fi
  20512. if test "x$enable_opengl" = "xyes"; then
  20513. ac_ext=c
  20514. ac_cpp='$CPP $CPPFLAGS'
  20515. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20516. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20517. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  20518. { echo "$as_me:$LINENO: checking whether we are using the Microsoft C compiler" >&5
  20519. echo $ECHO_N "checking whether we are using the Microsoft C compiler... $ECHO_C" >&6; }
  20520. if test "${ax_cv_c_compiler_ms+set}" = set; then
  20521. echo $ECHO_N "(cached) $ECHO_C" >&6
  20522. else
  20523. cat >conftest.$ac_ext <<_ACEOF
  20524. /* confdefs.h. */
  20525. _ACEOF
  20526. cat confdefs.h >>conftest.$ac_ext
  20527. cat >>conftest.$ac_ext <<_ACEOF
  20528. /* end confdefs.h. */
  20529. int
  20530. main ()
  20531. {
  20532. #ifndef _MSC_VER
  20533. choke me
  20534. #endif
  20535. ;
  20536. return 0;
  20537. }
  20538. _ACEOF
  20539. rm -f conftest.$ac_objext
  20540. if { (ac_try="$ac_compile"
  20541. case "(($ac_try" in
  20542. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20543. *) ac_try_echo=$ac_try;;
  20544. esac
  20545. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20546. (eval "$ac_compile") 2>conftest.er1
  20547. ac_status=$?
  20548. grep -v '^ *+' conftest.er1 >conftest.err
  20549. rm -f conftest.er1
  20550. cat conftest.err >&5
  20551. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20552. (exit $ac_status); } && {
  20553. test -z "$ac_c_werror_flag" ||
  20554. test ! -s conftest.err
  20555. } && test -s conftest.$ac_objext; then
  20556. ax_compiler_ms=yes
  20557. else
  20558. echo "$as_me: failed program was:" >&5
  20559. sed 's/^/| /' conftest.$ac_ext >&5
  20560. ax_compiler_ms=no
  20561. fi
  20562. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20563. ax_cv_c_compiler_ms=$ax_compiler_ms
  20564. fi
  20565. { echo "$as_me:$LINENO: result: $ax_cv_c_compiler_ms" >&5
  20566. echo "${ECHO_T}$ax_cv_c_compiler_ms" >&6; }
  20567. if test X$ax_compiler_ms = Xno; then
  20568. GL_CFLAGS="${PTHREAD_CFLAGS}"; GL_LIBS="${PTHREAD_LIBS} -lm"
  20569. fi
  20570. #
  20571. # Use x_includes and x_libraries if they have been set (presumably by
  20572. # AC_PATH_X).
  20573. #
  20574. if test "X$no_x" != "Xyes"; then
  20575. if test -n "$x_includes"; then
  20576. GL_CFLAGS="-I${x_includes} ${GL_CFLAGS}"
  20577. fi
  20578. if test -n "$x_libraries"; then
  20579. GL_LIBS="-L${x_libraries} -lX11 ${GL_LIBS}"
  20580. fi
  20581. fi
  20582. ax_save_CPPFLAGS="${CPPFLAGS}"
  20583. CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}"
  20584. for ac_header in GL/gl.h OpenGL/gl.h
  20585. do
  20586. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20587. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20588. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  20589. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  20590. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20591. echo $ECHO_N "(cached) $ECHO_C" >&6
  20592. fi
  20593. ac_res=`eval echo '${'$as_ac_Header'}'`
  20594. { echo "$as_me:$LINENO: result: $ac_res" >&5
  20595. echo "${ECHO_T}$ac_res" >&6; }
  20596. else
  20597. # Is the header compilable?
  20598. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  20599. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  20600. cat >conftest.$ac_ext <<_ACEOF
  20601. /* confdefs.h. */
  20602. _ACEOF
  20603. cat confdefs.h >>conftest.$ac_ext
  20604. cat >>conftest.$ac_ext <<_ACEOF
  20605. /* end confdefs.h. */
  20606. $ac_includes_default
  20607. #include <$ac_header>
  20608. _ACEOF
  20609. rm -f conftest.$ac_objext
  20610. if { (ac_try="$ac_compile"
  20611. case "(($ac_try" in
  20612. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20613. *) ac_try_echo=$ac_try;;
  20614. esac
  20615. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20616. (eval "$ac_compile") 2>conftest.er1
  20617. ac_status=$?
  20618. grep -v '^ *+' conftest.er1 >conftest.err
  20619. rm -f conftest.er1
  20620. cat conftest.err >&5
  20621. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20622. (exit $ac_status); } && {
  20623. test -z "$ac_c_werror_flag" ||
  20624. test ! -s conftest.err
  20625. } && test -s conftest.$ac_objext; then
  20626. ac_header_compiler=yes
  20627. else
  20628. echo "$as_me: failed program was:" >&5
  20629. sed 's/^/| /' conftest.$ac_ext >&5
  20630. ac_header_compiler=no
  20631. fi
  20632. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20633. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  20634. echo "${ECHO_T}$ac_header_compiler" >&6; }
  20635. # Is the header present?
  20636. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  20637. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  20638. cat >conftest.$ac_ext <<_ACEOF
  20639. /* confdefs.h. */
  20640. _ACEOF
  20641. cat confdefs.h >>conftest.$ac_ext
  20642. cat >>conftest.$ac_ext <<_ACEOF
  20643. /* end confdefs.h. */
  20644. #include <$ac_header>
  20645. _ACEOF
  20646. if { (ac_try="$ac_cpp conftest.$ac_ext"
  20647. case "(($ac_try" in
  20648. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20649. *) ac_try_echo=$ac_try;;
  20650. esac
  20651. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20652. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  20653. ac_status=$?
  20654. grep -v '^ *+' conftest.er1 >conftest.err
  20655. rm -f conftest.er1
  20656. cat conftest.err >&5
  20657. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20658. (exit $ac_status); } >/dev/null && {
  20659. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  20660. test ! -s conftest.err
  20661. }; then
  20662. ac_header_preproc=yes
  20663. else
  20664. echo "$as_me: failed program was:" >&5
  20665. sed 's/^/| /' conftest.$ac_ext >&5
  20666. ac_header_preproc=no
  20667. fi
  20668. rm -f conftest.err conftest.$ac_ext
  20669. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  20670. echo "${ECHO_T}$ac_header_preproc" >&6; }
  20671. # So? What about this header?
  20672. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  20673. yes:no: )
  20674. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  20675. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  20676. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  20677. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  20678. ac_header_preproc=yes
  20679. ;;
  20680. no:yes:* )
  20681. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  20682. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  20683. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  20684. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  20685. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  20686. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  20687. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  20688. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  20689. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  20690. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  20691. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  20692. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  20693. ( cat <<\_ASBOX
  20694. ## ------------------------------------------ ##
  20695. ## Report this to bubla@users.sourceforge.net ##
  20696. ## ------------------------------------------ ##
  20697. _ASBOX
  20698. ) | sed "s/^/$as_me: WARNING: /" >&2
  20699. ;;
  20700. esac
  20701. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  20702. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  20703. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20704. echo $ECHO_N "(cached) $ECHO_C" >&6
  20705. else
  20706. eval "$as_ac_Header=\$ac_header_preproc"
  20707. fi
  20708. ac_res=`eval echo '${'$as_ac_Header'}'`
  20709. { echo "$as_me:$LINENO: result: $ac_res" >&5
  20710. echo "${ECHO_T}$ac_res" >&6; }
  20711. fi
  20712. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  20713. cat >>confdefs.h <<_ACEOF
  20714. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20715. _ACEOF
  20716. fi
  20717. done
  20718. CPPFLAGS="${ax_save_CPPFLAGS}"
  20719. for ac_header in windows.h
  20720. do
  20721. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20722. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20723. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  20724. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  20725. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20726. echo $ECHO_N "(cached) $ECHO_C" >&6
  20727. fi
  20728. ac_res=`eval echo '${'$as_ac_Header'}'`
  20729. { echo "$as_me:$LINENO: result: $ac_res" >&5
  20730. echo "${ECHO_T}$ac_res" >&6; }
  20731. else
  20732. # Is the header compilable?
  20733. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  20734. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  20735. cat >conftest.$ac_ext <<_ACEOF
  20736. /* confdefs.h. */
  20737. _ACEOF
  20738. cat confdefs.h >>conftest.$ac_ext
  20739. cat >>conftest.$ac_ext <<_ACEOF
  20740. /* end confdefs.h. */
  20741. $ac_includes_default
  20742. #include <$ac_header>
  20743. _ACEOF
  20744. rm -f conftest.$ac_objext
  20745. if { (ac_try="$ac_compile"
  20746. case "(($ac_try" in
  20747. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20748. *) ac_try_echo=$ac_try;;
  20749. esac
  20750. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20751. (eval "$ac_compile") 2>conftest.er1
  20752. ac_status=$?
  20753. grep -v '^ *+' conftest.er1 >conftest.err
  20754. rm -f conftest.er1
  20755. cat conftest.err >&5
  20756. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20757. (exit $ac_status); } && {
  20758. test -z "$ac_c_werror_flag" ||
  20759. test ! -s conftest.err
  20760. } && test -s conftest.$ac_objext; then
  20761. ac_header_compiler=yes
  20762. else
  20763. echo "$as_me: failed program was:" >&5
  20764. sed 's/^/| /' conftest.$ac_ext >&5
  20765. ac_header_compiler=no
  20766. fi
  20767. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20768. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  20769. echo "${ECHO_T}$ac_header_compiler" >&6; }
  20770. # Is the header present?
  20771. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  20772. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  20773. cat >conftest.$ac_ext <<_ACEOF
  20774. /* confdefs.h. */
  20775. _ACEOF
  20776. cat confdefs.h >>conftest.$ac_ext
  20777. cat >>conftest.$ac_ext <<_ACEOF
  20778. /* end confdefs.h. */
  20779. #include <$ac_header>
  20780. _ACEOF
  20781. if { (ac_try="$ac_cpp conftest.$ac_ext"
  20782. case "(($ac_try" in
  20783. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20784. *) ac_try_echo=$ac_try;;
  20785. esac
  20786. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20787. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  20788. ac_status=$?
  20789. grep -v '^ *+' conftest.er1 >conftest.err
  20790. rm -f conftest.er1
  20791. cat conftest.err >&5
  20792. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20793. (exit $ac_status); } >/dev/null && {
  20794. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  20795. test ! -s conftest.err
  20796. }; then
  20797. ac_header_preproc=yes
  20798. else
  20799. echo "$as_me: failed program was:" >&5
  20800. sed 's/^/| /' conftest.$ac_ext >&5
  20801. ac_header_preproc=no
  20802. fi
  20803. rm -f conftest.err conftest.$ac_ext
  20804. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  20805. echo "${ECHO_T}$ac_header_preproc" >&6; }
  20806. # So? What about this header?
  20807. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  20808. yes:no: )
  20809. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  20810. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  20811. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  20812. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  20813. ac_header_preproc=yes
  20814. ;;
  20815. no:yes:* )
  20816. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  20817. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  20818. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  20819. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  20820. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  20821. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  20822. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  20823. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  20824. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  20825. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  20826. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  20827. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  20828. ( cat <<\_ASBOX
  20829. ## ------------------------------------------ ##
  20830. ## Report this to bubla@users.sourceforge.net ##
  20831. ## ------------------------------------------ ##
  20832. _ASBOX
  20833. ) | sed "s/^/$as_me: WARNING: /" >&2
  20834. ;;
  20835. esac
  20836. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  20837. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  20838. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20839. echo $ECHO_N "(cached) $ECHO_C" >&6
  20840. else
  20841. eval "$as_ac_Header=\$ac_header_preproc"
  20842. fi
  20843. ac_res=`eval echo '${'$as_ac_Header'}'`
  20844. { echo "$as_me:$LINENO: result: $ac_res" >&5
  20845. echo "${ECHO_T}$ac_res" >&6; }
  20846. fi
  20847. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  20848. cat >>confdefs.h <<_ACEOF
  20849. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20850. _ACEOF
  20851. fi
  20852. done
  20853. { echo "$as_me:$LINENO: checking for OpenGL library" >&5
  20854. echo $ECHO_N "checking for OpenGL library... $ECHO_C" >&6; }
  20855. if test "${ax_cv_check_gl_libgl+set}" = set; then
  20856. echo $ECHO_N "(cached) $ECHO_C" >&6
  20857. else
  20858. ax_cv_check_gl_libgl="no"
  20859. case $host_cpu in
  20860. x86_64) ax_check_gl_libdir=lib64 ;;
  20861. *) ax_check_gl_libdir=lib ;;
  20862. esac
  20863. ax_save_CPPFLAGS="${CPPFLAGS}"
  20864. CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}"
  20865. ax_save_LIBS="${LIBS}"
  20866. LIBS=""
  20867. ax_check_libs="-lopengl32 -lGL"
  20868. for ax_lib in ${ax_check_libs}; do
  20869. if test X$ax_compiler_ms = Xyes; then
  20870. ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'`
  20871. else
  20872. ax_try_lib="${ax_lib}"
  20873. fi
  20874. LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}"
  20875. cat >conftest.$ac_ext <<_ACEOF
  20876. /* confdefs.h. */
  20877. _ACEOF
  20878. cat confdefs.h >>conftest.$ac_ext
  20879. cat >>conftest.$ac_ext <<_ACEOF
  20880. /* end confdefs.h. */
  20881. # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
  20882. # include <windows.h>
  20883. # endif
  20884. # ifdef HAVE_GL_GL_H
  20885. # include <GL/gl.h>
  20886. # elif defined(HAVE_OPENGL_GL_H)
  20887. # include <OpenGL/gl.h>
  20888. # else
  20889. # error no gl.h
  20890. # endif
  20891. int
  20892. main ()
  20893. {
  20894. glBegin(0)
  20895. ;
  20896. return 0;
  20897. }
  20898. _ACEOF
  20899. rm -f conftest.$ac_objext conftest$ac_exeext
  20900. if { (ac_try="$ac_link"
  20901. case "(($ac_try" in
  20902. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20903. *) ac_try_echo=$ac_try;;
  20904. esac
  20905. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20906. (eval "$ac_link") 2>conftest.er1
  20907. ac_status=$?
  20908. grep -v '^ *+' conftest.er1 >conftest.err
  20909. rm -f conftest.er1
  20910. cat conftest.err >&5
  20911. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20912. (exit $ac_status); } && {
  20913. test -z "$ac_c_werror_flag" ||
  20914. test ! -s conftest.err
  20915. } && test -s conftest$ac_exeext &&
  20916. $as_test_x conftest$ac_exeext; then
  20917. ax_cv_check_gl_libgl="${ax_try_lib}"; break
  20918. else
  20919. echo "$as_me: failed program was:" >&5
  20920. sed 's/^/| /' conftest.$ac_ext >&5
  20921. ax_check_gl_nvidia_flags="-L/usr/${ax_check_gl_libdir}/nvidia" LIBS="${ax_try_lib} ${ax_check_gl_nvidia_flags} ${GL_LIBS} ${ax_save_LIBS}"
  20922. cat >conftest.$ac_ext <<_ACEOF
  20923. /* confdefs.h. */
  20924. _ACEOF
  20925. cat confdefs.h >>conftest.$ac_ext
  20926. cat >>conftest.$ac_ext <<_ACEOF
  20927. /* end confdefs.h. */
  20928. # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
  20929. # include <windows.h>
  20930. # endif
  20931. # ifdef HAVE_GL_GL_H
  20932. # include <GL/gl.h>
  20933. # elif defined(HAVE_OPENGL_GL_H)
  20934. # include <OpenGL/gl.h>
  20935. # else
  20936. # error no gl.h
  20937. # endif
  20938. int
  20939. main ()
  20940. {
  20941. glBegin(0)
  20942. ;
  20943. return 0;
  20944. }
  20945. _ACEOF
  20946. rm -f conftest.$ac_objext conftest$ac_exeext
  20947. if { (ac_try="$ac_link"
  20948. case "(($ac_try" in
  20949. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20950. *) ac_try_echo=$ac_try;;
  20951. esac
  20952. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20953. (eval "$ac_link") 2>conftest.er1
  20954. ac_status=$?
  20955. grep -v '^ *+' conftest.er1 >conftest.err
  20956. rm -f conftest.er1
  20957. cat conftest.err >&5
  20958. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20959. (exit $ac_status); } && {
  20960. test -z "$ac_c_werror_flag" ||
  20961. test ! -s conftest.err
  20962. } && test -s conftest$ac_exeext &&
  20963. $as_test_x conftest$ac_exeext; then
  20964. ax_cv_check_gl_libgl="${ax_try_lib} ${ax_check_gl_nvidia_flags}"; break
  20965. else
  20966. echo "$as_me: failed program was:" >&5
  20967. sed 's/^/| /' conftest.$ac_ext >&5
  20968. ax_check_gl_dylib_flag='-dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib' LIBS="${ax_try_lib} ${ax_check_gl_dylib_flag} ${GL_LIBS} ${ax_save_LIBS}"
  20969. cat >conftest.$ac_ext <<_ACEOF
  20970. /* confdefs.h. */
  20971. _ACEOF
  20972. cat confdefs.h >>conftest.$ac_ext
  20973. cat >>conftest.$ac_ext <<_ACEOF
  20974. /* end confdefs.h. */
  20975. # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
  20976. # include <windows.h>
  20977. # endif
  20978. # ifdef HAVE_GL_GL_H
  20979. # include <GL/gl.h>
  20980. # elif defined(HAVE_OPENGL_GL_H)
  20981. # include <OpenGL/gl.h>
  20982. # else
  20983. # error no gl.h
  20984. # endif
  20985. int
  20986. main ()
  20987. {
  20988. glBegin(0)
  20989. ;
  20990. return 0;
  20991. }
  20992. _ACEOF
  20993. rm -f conftest.$ac_objext conftest$ac_exeext
  20994. if { (ac_try="$ac_link"
  20995. case "(($ac_try" in
  20996. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20997. *) ac_try_echo=$ac_try;;
  20998. esac
  20999. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21000. (eval "$ac_link") 2>conftest.er1
  21001. ac_status=$?
  21002. grep -v '^ *+' conftest.er1 >conftest.err
  21003. rm -f conftest.er1
  21004. cat conftest.err >&5
  21005. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21006. (exit $ac_status); } && {
  21007. test -z "$ac_c_werror_flag" ||
  21008. test ! -s conftest.err
  21009. } && test -s conftest$ac_exeext &&
  21010. $as_test_x conftest$ac_exeext; then
  21011. ax_cv_check_gl_libgl="${ax_try_lib} ${ax_check_gl_dylib_flag}"; break
  21012. else
  21013. echo "$as_me: failed program was:" >&5
  21014. sed 's/^/| /' conftest.$ac_ext >&5
  21015. fi
  21016. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21017. conftest$ac_exeext conftest.$ac_ext
  21018. fi
  21019. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21020. conftest$ac_exeext conftest.$ac_ext
  21021. fi
  21022. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21023. conftest$ac_exeext conftest.$ac_ext
  21024. done
  21025. if test "X$ax_cv_check_gl_libgl" = Xno -a "X$no_x" = Xyes; then
  21026. LIBS='-framework OpenGL'
  21027. cat >conftest.$ac_ext <<_ACEOF
  21028. /* confdefs.h. */
  21029. _ACEOF
  21030. cat confdefs.h >>conftest.$ac_ext
  21031. cat >>conftest.$ac_ext <<_ACEOF
  21032. /* end confdefs.h. */
  21033. # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
  21034. # include <windows.h>
  21035. # endif
  21036. # ifdef HAVE_GL_GL_H
  21037. # include <GL/gl.h>
  21038. # elif defined(HAVE_OPENGL_GL_H)
  21039. # include <OpenGL/gl.h>
  21040. # else
  21041. # error no gl.h
  21042. # endif
  21043. int
  21044. main ()
  21045. {
  21046. glBegin(0)
  21047. ;
  21048. return 0;
  21049. }
  21050. _ACEOF
  21051. rm -f conftest.$ac_objext conftest$ac_exeext
  21052. if { (ac_try="$ac_link"
  21053. case "(($ac_try" in
  21054. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21055. *) ac_try_echo=$ac_try;;
  21056. esac
  21057. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21058. (eval "$ac_link") 2>conftest.er1
  21059. ac_status=$?
  21060. grep -v '^ *+' conftest.er1 >conftest.err
  21061. rm -f conftest.er1
  21062. cat conftest.err >&5
  21063. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21064. (exit $ac_status); } && {
  21065. test -z "$ac_c_werror_flag" ||
  21066. test ! -s conftest.err
  21067. } && test -s conftest$ac_exeext &&
  21068. $as_test_x conftest$ac_exeext; then
  21069. ax_cv_check_gl_libgl="$LIBS"
  21070. else
  21071. echo "$as_me: failed program was:" >&5
  21072. sed 's/^/| /' conftest.$ac_ext >&5
  21073. fi
  21074. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21075. conftest$ac_exeext conftest.$ac_ext
  21076. fi
  21077. LIBS=${ax_save_LIBS}
  21078. CPPFLAGS=${ax_save_CPPFLAGS}
  21079. fi
  21080. { echo "$as_me:$LINENO: result: $ax_cv_check_gl_libgl" >&5
  21081. echo "${ECHO_T}$ax_cv_check_gl_libgl" >&6; }
  21082. if test "X$ax_cv_check_gl_libgl" = Xno; then
  21083. no_gl=yes; GL_CFLAGS=""; GL_LIBS=""
  21084. else
  21085. GL_LIBS="${ax_cv_check_gl_libgl} ${GL_LIBS}"
  21086. fi
  21087. ac_ext=c
  21088. ac_cpp='$CPP $CPPFLAGS'
  21089. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21090. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21091. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21092. GLU_CFLAGS="${GL_CFLAGS}"
  21093. ax_save_CPPFLAGS="${CPPFLAGS}"
  21094. CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}"
  21095. for ac_header in GL/glu.h OpenGL/glu.h
  21096. do
  21097. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  21098. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21099. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  21100. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  21101. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21102. echo $ECHO_N "(cached) $ECHO_C" >&6
  21103. fi
  21104. ac_res=`eval echo '${'$as_ac_Header'}'`
  21105. { echo "$as_me:$LINENO: result: $ac_res" >&5
  21106. echo "${ECHO_T}$ac_res" >&6; }
  21107. else
  21108. # Is the header compilable?
  21109. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  21110. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  21111. cat >conftest.$ac_ext <<_ACEOF
  21112. /* confdefs.h. */
  21113. _ACEOF
  21114. cat confdefs.h >>conftest.$ac_ext
  21115. cat >>conftest.$ac_ext <<_ACEOF
  21116. /* end confdefs.h. */
  21117. $ac_includes_default
  21118. #include <$ac_header>
  21119. _ACEOF
  21120. rm -f conftest.$ac_objext
  21121. if { (ac_try="$ac_compile"
  21122. case "(($ac_try" in
  21123. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21124. *) ac_try_echo=$ac_try;;
  21125. esac
  21126. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21127. (eval "$ac_compile") 2>conftest.er1
  21128. ac_status=$?
  21129. grep -v '^ *+' conftest.er1 >conftest.err
  21130. rm -f conftest.er1
  21131. cat conftest.err >&5
  21132. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21133. (exit $ac_status); } && {
  21134. test -z "$ac_c_werror_flag" ||
  21135. test ! -s conftest.err
  21136. } && test -s conftest.$ac_objext; then
  21137. ac_header_compiler=yes
  21138. else
  21139. echo "$as_me: failed program was:" >&5
  21140. sed 's/^/| /' conftest.$ac_ext >&5
  21141. ac_header_compiler=no
  21142. fi
  21143. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21144. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  21145. echo "${ECHO_T}$ac_header_compiler" >&6; }
  21146. # Is the header present?
  21147. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  21148. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  21149. cat >conftest.$ac_ext <<_ACEOF
  21150. /* confdefs.h. */
  21151. _ACEOF
  21152. cat confdefs.h >>conftest.$ac_ext
  21153. cat >>conftest.$ac_ext <<_ACEOF
  21154. /* end confdefs.h. */
  21155. #include <$ac_header>
  21156. _ACEOF
  21157. if { (ac_try="$ac_cpp conftest.$ac_ext"
  21158. case "(($ac_try" in
  21159. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21160. *) ac_try_echo=$ac_try;;
  21161. esac
  21162. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21163. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  21164. ac_status=$?
  21165. grep -v '^ *+' conftest.er1 >conftest.err
  21166. rm -f conftest.er1
  21167. cat conftest.err >&5
  21168. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21169. (exit $ac_status); } >/dev/null && {
  21170. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  21171. test ! -s conftest.err
  21172. }; then
  21173. ac_header_preproc=yes
  21174. else
  21175. echo "$as_me: failed program was:" >&5
  21176. sed 's/^/| /' conftest.$ac_ext >&5
  21177. ac_header_preproc=no
  21178. fi
  21179. rm -f conftest.err conftest.$ac_ext
  21180. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  21181. echo "${ECHO_T}$ac_header_preproc" >&6; }
  21182. # So? What about this header?
  21183. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  21184. yes:no: )
  21185. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  21186. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  21187. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  21188. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  21189. ac_header_preproc=yes
  21190. ;;
  21191. no:yes:* )
  21192. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  21193. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  21194. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  21195. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  21196. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  21197. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  21198. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  21199. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  21200. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  21201. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  21202. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  21203. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  21204. ( cat <<\_ASBOX
  21205. ## ------------------------------------------ ##
  21206. ## Report this to bubla@users.sourceforge.net ##
  21207. ## ------------------------------------------ ##
  21208. _ASBOX
  21209. ) | sed "s/^/$as_me: WARNING: /" >&2
  21210. ;;
  21211. esac
  21212. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  21213. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  21214. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21215. echo $ECHO_N "(cached) $ECHO_C" >&6
  21216. else
  21217. eval "$as_ac_Header=\$ac_header_preproc"
  21218. fi
  21219. ac_res=`eval echo '${'$as_ac_Header'}'`
  21220. { echo "$as_me:$LINENO: result: $ac_res" >&5
  21221. echo "${ECHO_T}$ac_res" >&6; }
  21222. fi
  21223. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  21224. cat >>confdefs.h <<_ACEOF
  21225. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  21226. _ACEOF
  21227. fi
  21228. done
  21229. CPPFLAGS="${ax_save_CPPFLAGS}"
  21230. { echo "$as_me:$LINENO: checking for OpenGL Utility library" >&5
  21231. echo $ECHO_N "checking for OpenGL Utility library... $ECHO_C" >&6; }
  21232. if test "${ax_cv_check_glu_libglu+set}" = set; then
  21233. echo $ECHO_N "(cached) $ECHO_C" >&6
  21234. else
  21235. ax_cv_check_glu_libglu="no"
  21236. ax_save_CPPFLAGS="${CPPFLAGS}"
  21237. CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}"
  21238. ax_save_LIBS="${LIBS}"
  21239. #
  21240. # First, check for the possibility that everything we need is already in
  21241. # GL_LIBS.
  21242. #
  21243. LIBS="${GL_LIBS} ${ax_save_LIBS}"
  21244. #
  21245. # libGLU typically links with libstdc++ on POSIX platforms.
  21246. # However, setting the language to C++ means that test program
  21247. # source is named "conftest.cc"; and Microsoft cl doesn't know what
  21248. # to do with such a file.
  21249. #
  21250. ac_ext=cpp
  21251. ac_cpp='$CXXCPP $CPPFLAGS'
  21252. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21253. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21254. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  21255. if test X$ax_compiler_ms = Xyes; then
  21256. ac_ext=c
  21257. ac_cpp='$CPP $CPPFLAGS'
  21258. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21259. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21260. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21261. fi
  21262. cat >conftest.$ac_ext <<_ACEOF
  21263. /* confdefs.h. */
  21264. _ACEOF
  21265. cat confdefs.h >>conftest.$ac_ext
  21266. cat >>conftest.$ac_ext <<_ACEOF
  21267. /* end confdefs.h. */
  21268. # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
  21269. # include <windows.h>
  21270. # endif
  21271. # ifdef HAVE_GL_GLU_H
  21272. # include <GL/glu.h>
  21273. # elif defined(HAVE_OPENGL_GLU_H)
  21274. # include <OpenGL/glu.h>
  21275. # else
  21276. # error no glu.h
  21277. # endif
  21278. int
  21279. main ()
  21280. {
  21281. gluBeginCurve(0)
  21282. ;
  21283. return 0;
  21284. }
  21285. _ACEOF
  21286. rm -f conftest.$ac_objext conftest$ac_exeext
  21287. if { (ac_try="$ac_link"
  21288. case "(($ac_try" in
  21289. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21290. *) ac_try_echo=$ac_try;;
  21291. esac
  21292. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21293. (eval "$ac_link") 2>conftest.er1
  21294. ac_status=$?
  21295. grep -v '^ *+' conftest.er1 >conftest.err
  21296. rm -f conftest.er1
  21297. cat conftest.err >&5
  21298. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21299. (exit $ac_status); } && {
  21300. test -z "$ac_c_werror_flag" ||
  21301. test ! -s conftest.err
  21302. } && test -s conftest$ac_exeext &&
  21303. $as_test_x conftest$ac_exeext; then
  21304. ax_cv_check_glu_libglu=yes
  21305. else
  21306. echo "$as_me: failed program was:" >&5
  21307. sed 's/^/| /' conftest.$ac_ext >&5
  21308. LIBS=""
  21309. ax_check_libs="-lglu32 -lGLU"
  21310. for ax_lib in ${ax_check_libs}; do
  21311. if test X$ax_compiler_ms = Xyes; then
  21312. ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'`
  21313. else
  21314. ax_try_lib="${ax_lib}"
  21315. fi
  21316. LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}"
  21317. cat >conftest.$ac_ext <<_ACEOF
  21318. /* confdefs.h. */
  21319. _ACEOF
  21320. cat confdefs.h >>conftest.$ac_ext
  21321. cat >>conftest.$ac_ext <<_ACEOF
  21322. /* end confdefs.h. */
  21323. # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
  21324. # include <windows.h>
  21325. # endif
  21326. # ifdef HAVE_GL_GLU_H
  21327. # include <GL/glu.h>
  21328. # elif defined(HAVE_OPENGL_GLU_H)
  21329. # include <OpenGL/glu.h>
  21330. # else
  21331. # error no glu.h
  21332. # endif
  21333. int
  21334. main ()
  21335. {
  21336. gluBeginCurve(0)
  21337. ;
  21338. return 0;
  21339. }
  21340. _ACEOF
  21341. rm -f conftest.$ac_objext conftest$ac_exeext
  21342. if { (ac_try="$ac_link"
  21343. case "(($ac_try" in
  21344. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21345. *) ac_try_echo=$ac_try;;
  21346. esac
  21347. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21348. (eval "$ac_link") 2>conftest.er1
  21349. ac_status=$?
  21350. grep -v '^ *+' conftest.er1 >conftest.err
  21351. rm -f conftest.er1
  21352. cat conftest.err >&5
  21353. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21354. (exit $ac_status); } && {
  21355. test -z "$ac_c_werror_flag" ||
  21356. test ! -s conftest.err
  21357. } && test -s conftest$ac_exeext &&
  21358. $as_test_x conftest$ac_exeext; then
  21359. ax_cv_check_glu_libglu="${ax_try_lib}"; break
  21360. else
  21361. echo "$as_me: failed program was:" >&5
  21362. sed 's/^/| /' conftest.$ac_ext >&5
  21363. fi
  21364. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21365. conftest$ac_exeext conftest.$ac_ext
  21366. done
  21367. fi
  21368. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21369. conftest$ac_exeext conftest.$ac_ext
  21370. if test X$ax_compiler_ms = Xyes; then
  21371. ac_ext=cpp
  21372. ac_cpp='$CXXCPP $CPPFLAGS'
  21373. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21374. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21375. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  21376. fi
  21377. ac_ext=c
  21378. ac_cpp='$CPP $CPPFLAGS'
  21379. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21380. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21381. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21382. LIBS=${ax_save_LIBS}
  21383. CPPFLAGS=${ax_save_CPPFLAGS}
  21384. fi
  21385. { echo "$as_me:$LINENO: result: $ax_cv_check_glu_libglu" >&5
  21386. echo "${ECHO_T}$ax_cv_check_glu_libglu" >&6; }
  21387. if test "X$ax_cv_check_glu_libglu" = Xno; then
  21388. no_glu=yes; GLU_CFLAGS=""; GLU_LIBS=""
  21389. else
  21390. if test "X$ax_cv_check_glu_libglu" = Xyes; then
  21391. GLU_LIBS="$GL_LIBS"
  21392. else
  21393. GLU_LIBS="${ax_cv_check_glu_libglu} ${GL_LIBS}"
  21394. fi
  21395. fi
  21396. #
  21397. # Some versions of Mac OS X include a broken interpretation of the GLU
  21398. # tesselation callback function signature.
  21399. #
  21400. if test "X$ax_cv_check_glu_libglu" != Xno; then
  21401. { echo "$as_me:$LINENO: checking for varargs GLU tesselator callback function type" >&5
  21402. echo $ECHO_N "checking for varargs GLU tesselator callback function type... $ECHO_C" >&6; }
  21403. if test "${ax_cv_varargs_glu_tesscb+set}" = set; then
  21404. echo $ECHO_N "(cached) $ECHO_C" >&6
  21405. else
  21406. ax_cv_varargs_glu_tesscb=no
  21407. ax_save_CFLAGS="$CFLAGS"
  21408. CFLAGS="$GL_CFLAGS $CFLAGS"
  21409. cat >conftest.$ac_ext <<_ACEOF
  21410. /* confdefs.h. */
  21411. _ACEOF
  21412. cat confdefs.h >>conftest.$ac_ext
  21413. cat >>conftest.$ac_ext <<_ACEOF
  21414. /* end confdefs.h. */
  21415. # ifdef HAVE_GL_GLU_H
  21416. # include <GL/glu.h>
  21417. # else
  21418. # include <OpenGL/glu.h>
  21419. # endif
  21420. int
  21421. main ()
  21422. {
  21423. GLvoid (*func)(...); gluTessCallback(0, 0, func)
  21424. ;
  21425. return 0;
  21426. }
  21427. _ACEOF
  21428. rm -f conftest.$ac_objext
  21429. if { (ac_try="$ac_compile"
  21430. case "(($ac_try" in
  21431. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21432. *) ac_try_echo=$ac_try;;
  21433. esac
  21434. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21435. (eval "$ac_compile") 2>conftest.er1
  21436. ac_status=$?
  21437. grep -v '^ *+' conftest.er1 >conftest.err
  21438. rm -f conftest.er1
  21439. cat conftest.err >&5
  21440. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21441. (exit $ac_status); } && {
  21442. test -z "$ac_c_werror_flag" ||
  21443. test ! -s conftest.err
  21444. } && test -s conftest.$ac_objext; then
  21445. ax_cv_varargs_glu_tesscb=yes
  21446. else
  21447. echo "$as_me: failed program was:" >&5
  21448. sed 's/^/| /' conftest.$ac_ext >&5
  21449. fi
  21450. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21451. CFLAGS="$ax_save_CFLAGS"
  21452. fi
  21453. { echo "$as_me:$LINENO: result: $ax_cv_varargs_glu_tesscb" >&5
  21454. echo "${ECHO_T}$ax_cv_varargs_glu_tesscb" >&6; }
  21455. if test X$ax_cv_varargs_glu_tesscb = Xyes; then
  21456. cat >>confdefs.h <<\_ACEOF
  21457. #define HAVE_VARARGS_GLU_TESSCB 1
  21458. _ACEOF
  21459. fi
  21460. fi
  21461. ax_save_CPPFLAGS="${CPPFLAGS}"
  21462. CPPFLAGS="${GLU_CFLAGS} ${CPPFLAGS}"
  21463. for ac_header in GL/glut.h GLUT/glut.h
  21464. do
  21465. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  21466. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21467. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  21468. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  21469. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21470. echo $ECHO_N "(cached) $ECHO_C" >&6
  21471. fi
  21472. ac_res=`eval echo '${'$as_ac_Header'}'`
  21473. { echo "$as_me:$LINENO: result: $ac_res" >&5
  21474. echo "${ECHO_T}$ac_res" >&6; }
  21475. else
  21476. # Is the header compilable?
  21477. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  21478. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  21479. cat >conftest.$ac_ext <<_ACEOF
  21480. /* confdefs.h. */
  21481. _ACEOF
  21482. cat confdefs.h >>conftest.$ac_ext
  21483. cat >>conftest.$ac_ext <<_ACEOF
  21484. /* end confdefs.h. */
  21485. $ac_includes_default
  21486. #include <$ac_header>
  21487. _ACEOF
  21488. rm -f conftest.$ac_objext
  21489. if { (ac_try="$ac_compile"
  21490. case "(($ac_try" in
  21491. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21492. *) ac_try_echo=$ac_try;;
  21493. esac
  21494. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21495. (eval "$ac_compile") 2>conftest.er1
  21496. ac_status=$?
  21497. grep -v '^ *+' conftest.er1 >conftest.err
  21498. rm -f conftest.er1
  21499. cat conftest.err >&5
  21500. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21501. (exit $ac_status); } && {
  21502. test -z "$ac_c_werror_flag" ||
  21503. test ! -s conftest.err
  21504. } && test -s conftest.$ac_objext; then
  21505. ac_header_compiler=yes
  21506. else
  21507. echo "$as_me: failed program was:" >&5
  21508. sed 's/^/| /' conftest.$ac_ext >&5
  21509. ac_header_compiler=no
  21510. fi
  21511. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21512. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  21513. echo "${ECHO_T}$ac_header_compiler" >&6; }
  21514. # Is the header present?
  21515. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  21516. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  21517. cat >conftest.$ac_ext <<_ACEOF
  21518. /* confdefs.h. */
  21519. _ACEOF
  21520. cat confdefs.h >>conftest.$ac_ext
  21521. cat >>conftest.$ac_ext <<_ACEOF
  21522. /* end confdefs.h. */
  21523. #include <$ac_header>
  21524. _ACEOF
  21525. if { (ac_try="$ac_cpp conftest.$ac_ext"
  21526. case "(($ac_try" in
  21527. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21528. *) ac_try_echo=$ac_try;;
  21529. esac
  21530. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21531. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  21532. ac_status=$?
  21533. grep -v '^ *+' conftest.er1 >conftest.err
  21534. rm -f conftest.er1
  21535. cat conftest.err >&5
  21536. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21537. (exit $ac_status); } >/dev/null && {
  21538. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  21539. test ! -s conftest.err
  21540. }; then
  21541. ac_header_preproc=yes
  21542. else
  21543. echo "$as_me: failed program was:" >&5
  21544. sed 's/^/| /' conftest.$ac_ext >&5
  21545. ac_header_preproc=no
  21546. fi
  21547. rm -f conftest.err conftest.$ac_ext
  21548. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  21549. echo "${ECHO_T}$ac_header_preproc" >&6; }
  21550. # So? What about this header?
  21551. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  21552. yes:no: )
  21553. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  21554. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  21555. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  21556. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  21557. ac_header_preproc=yes
  21558. ;;
  21559. no:yes:* )
  21560. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  21561. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  21562. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  21563. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  21564. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  21565. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  21566. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  21567. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  21568. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  21569. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  21570. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  21571. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  21572. ( cat <<\_ASBOX
  21573. ## ------------------------------------------ ##
  21574. ## Report this to bubla@users.sourceforge.net ##
  21575. ## ------------------------------------------ ##
  21576. _ASBOX
  21577. ) | sed "s/^/$as_me: WARNING: /" >&2
  21578. ;;
  21579. esac
  21580. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  21581. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  21582. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21583. echo $ECHO_N "(cached) $ECHO_C" >&6
  21584. else
  21585. eval "$as_ac_Header=\$ac_header_preproc"
  21586. fi
  21587. ac_res=`eval echo '${'$as_ac_Header'}'`
  21588. { echo "$as_me:$LINENO: result: $ac_res" >&5
  21589. echo "${ECHO_T}$ac_res" >&6; }
  21590. fi
  21591. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  21592. cat >>confdefs.h <<_ACEOF
  21593. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  21594. _ACEOF
  21595. fi
  21596. done
  21597. CPPFLAGS="${ax_save_CPPFLAGS}"
  21598. GLUT_CFLAGS=${GLU_CFLAGS}
  21599. GLUT_LIBS=${GLU_LIBS}
  21600. #
  21601. # If X is present, assume GLUT depends on it.
  21602. #
  21603. if test X$no_x != Xyes; then
  21604. GLUT_LIBS="${X_PRE_LIBS} -lXmu -lXi ${X_EXTRA_LIBS} ${GLUT_LIBS}"
  21605. fi
  21606. { echo "$as_me:$LINENO: checking for GLUT library" >&5
  21607. echo $ECHO_N "checking for GLUT library... $ECHO_C" >&6; }
  21608. if test "${ax_cv_check_glut_libglut+set}" = set; then
  21609. echo $ECHO_N "(cached) $ECHO_C" >&6
  21610. else
  21611. ax_cv_check_glut_libglut="no"
  21612. ac_ext=c
  21613. ac_cpp='$CPP $CPPFLAGS'
  21614. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21615. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21616. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21617. ax_save_CPPFLAGS="${CPPFLAGS}"
  21618. CPPFLAGS="${GLUT_CFLAGS} ${CPPFLAGS}"
  21619. ax_save_LIBS="${LIBS}"
  21620. LIBS=""
  21621. ax_check_libs="-lglut32 -lglut"
  21622. for ax_lib in ${ax_check_libs}; do
  21623. if test X$ax_compiler_ms = Xyes; then
  21624. ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'`
  21625. else
  21626. ax_try_lib="${ax_lib}"
  21627. fi
  21628. LIBS="${ax_try_lib} ${GLUT_LIBS} ${ax_save_LIBS}"
  21629. cat >conftest.$ac_ext <<_ACEOF
  21630. /* confdefs.h. */
  21631. _ACEOF
  21632. cat confdefs.h >>conftest.$ac_ext
  21633. cat >>conftest.$ac_ext <<_ACEOF
  21634. /* end confdefs.h. */
  21635. # if HAVE_WINDOWS_H && defined(_WIN32)
  21636. # include <windows.h>
  21637. # endif
  21638. # ifdef HAVE_GL_GLUT_H
  21639. # include <GL/glut.h>
  21640. # elif defined(HAVE_GLUT_GLUT_H)
  21641. # include <GLUT/glut.h>
  21642. # else
  21643. # error no glut.h
  21644. # endif
  21645. int
  21646. main ()
  21647. {
  21648. glutMainLoop()
  21649. ;
  21650. return 0;
  21651. }
  21652. _ACEOF
  21653. rm -f conftest.$ac_objext conftest$ac_exeext
  21654. if { (ac_try="$ac_link"
  21655. case "(($ac_try" in
  21656. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21657. *) ac_try_echo=$ac_try;;
  21658. esac
  21659. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21660. (eval "$ac_link") 2>conftest.er1
  21661. ac_status=$?
  21662. grep -v '^ *+' conftest.er1 >conftest.err
  21663. rm -f conftest.er1
  21664. cat conftest.err >&5
  21665. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21666. (exit $ac_status); } && {
  21667. test -z "$ac_c_werror_flag" ||
  21668. test ! -s conftest.err
  21669. } && test -s conftest$ac_exeext &&
  21670. $as_test_x conftest$ac_exeext; then
  21671. ax_cv_check_glut_libglut="${ax_try_lib}"; break
  21672. else
  21673. echo "$as_me: failed program was:" >&5
  21674. sed 's/^/| /' conftest.$ac_ext >&5
  21675. fi
  21676. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21677. conftest$ac_exeext conftest.$ac_ext
  21678. done
  21679. if test "X$ax_cv_check_glut_libglut" = Xno -a "X$no_x" = Xyes; then
  21680. LIBS='-framework GLUT'
  21681. cat >conftest.$ac_ext <<_ACEOF
  21682. /* confdefs.h. */
  21683. _ACEOF
  21684. cat confdefs.h >>conftest.$ac_ext
  21685. cat >>conftest.$ac_ext <<_ACEOF
  21686. /* end confdefs.h. */
  21687. # if HAVE_WINDOWS_H && defined(_WIN32)
  21688. # include <windows.h>
  21689. # endif
  21690. # ifdef HAVE_GL_GLUT_H
  21691. # include <GL/glut.h>
  21692. # elif defined(HAVE_GLUT_GLUT_H)
  21693. # include <GLUT/glut.h>
  21694. # else
  21695. # error no glut.h
  21696. # endif
  21697. int
  21698. main ()
  21699. {
  21700. glutMainLoop()
  21701. ;
  21702. return 0;
  21703. }
  21704. _ACEOF
  21705. rm -f conftest.$ac_objext conftest$ac_exeext
  21706. if { (ac_try="$ac_link"
  21707. case "(($ac_try" in
  21708. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21709. *) ac_try_echo=$ac_try;;
  21710. esac
  21711. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21712. (eval "$ac_link") 2>conftest.er1
  21713. ac_status=$?
  21714. grep -v '^ *+' conftest.er1 >conftest.err
  21715. rm -f conftest.er1
  21716. cat conftest.err >&5
  21717. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21718. (exit $ac_status); } && {
  21719. test -z "$ac_c_werror_flag" ||
  21720. test ! -s conftest.err
  21721. } && test -s conftest$ac_exeext &&
  21722. $as_test_x conftest$ac_exeext; then
  21723. ax_cv_check_glut_libglut="$LIBS"
  21724. else
  21725. echo "$as_me: failed program was:" >&5
  21726. sed 's/^/| /' conftest.$ac_ext >&5
  21727. fi
  21728. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21729. conftest$ac_exeext conftest.$ac_ext
  21730. fi
  21731. CPPFLAGS="${ax_save_CPPFLAGS}"
  21732. LIBS="${ax_save_LIBS}"
  21733. ac_ext=c
  21734. ac_cpp='$CPP $CPPFLAGS'
  21735. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21736. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21737. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21738. fi
  21739. { echo "$as_me:$LINENO: result: $ax_cv_check_glut_libglut" >&5
  21740. echo "${ECHO_T}$ax_cv_check_glut_libglut" >&6; }
  21741. if test "X$ax_cv_check_glut_libglut" = Xno; then
  21742. no_glut="yes"; GLUT_CFLAGS=""; GLUT_LIBS=""
  21743. else
  21744. GLUT_LIBS="${ax_cv_check_glut_libglut} ${GLUT_LIBS}"
  21745. fi
  21746. if test "x$no_gl" != "xyes" -a "x$no_glu" != "xyes"; then
  21747. use_ogl="yes"
  21748. ILUT_LIBS="$GLU_LIBS $GL_LIBS $ILUT_LIBS"
  21749. if test "x$no_glut" != "xyes"; then
  21750. have_glut="yes"
  21751. ILUT_LIBS="$GLUT_LIBS $ILUT_LIBS"
  21752. fi
  21753. cat >>confdefs.h <<\_ACEOF
  21754. #define ILUT_USE_OPENGL 1
  21755. _ACEOF
  21756. SUPPORTED_API="$SUPPORTED_API OpenGL"
  21757. fi
  21758. fi
  21759. # Check whether --enable-sdl was given.
  21760. if test "${enable_sdl+set}" = set; then
  21761. enableval=$enable_sdl;
  21762. else
  21763. enable_sdl="yes"
  21764. fi
  21765. if test "x$enable_sdl" = "xyes"; then
  21766. # Check whether --with-sdl-prefix was given.
  21767. if test "${with_sdl_prefix+set}" = set; then
  21768. withval=$with_sdl_prefix; sdl_prefix="$withval"
  21769. else
  21770. sdl_prefix=""
  21771. fi
  21772. # Check whether --with-sdl-exec-prefix was given.
  21773. if test "${with_sdl_exec_prefix+set}" = set; then
  21774. withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
  21775. else
  21776. sdl_exec_prefix=""
  21777. fi
  21778. # Check whether --enable-sdltest was given.
  21779. if test "${enable_sdltest+set}" = set; then
  21780. enableval=$enable_sdltest;
  21781. else
  21782. enable_sdltest=yes
  21783. fi
  21784. if test x$sdl_exec_prefix != x ; then
  21785. sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
  21786. if test x${SDL_CONFIG+set} != xset ; then
  21787. SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
  21788. fi
  21789. fi
  21790. if test x$sdl_prefix != x ; then
  21791. sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
  21792. if test x${SDL_CONFIG+set} != xset ; then
  21793. SDL_CONFIG=$sdl_prefix/bin/sdl-config
  21794. fi
  21795. fi
  21796. if test "x$prefix" != xNONE; then
  21797. PATH="$prefix/bin:$prefix/usr/bin:$PATH"
  21798. fi
  21799. # Extract the first word of "sdl-config", so it can be a program name with args.
  21800. set dummy sdl-config; ac_word=$2
  21801. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  21802. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  21803. if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
  21804. echo $ECHO_N "(cached) $ECHO_C" >&6
  21805. else
  21806. case $SDL_CONFIG in
  21807. [\\/]* | ?:[\\/]*)
  21808. ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
  21809. ;;
  21810. *)
  21811. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21812. for as_dir in $PATH
  21813. do
  21814. IFS=$as_save_IFS
  21815. test -z "$as_dir" && as_dir=.
  21816. for ac_exec_ext in '' $ac_executable_extensions; do
  21817. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21818. ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  21819. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21820. break 2
  21821. fi
  21822. done
  21823. done
  21824. IFS=$as_save_IFS
  21825. test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
  21826. ;;
  21827. esac
  21828. fi
  21829. SDL_CONFIG=$ac_cv_path_SDL_CONFIG
  21830. if test -n "$SDL_CONFIG"; then
  21831. { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
  21832. echo "${ECHO_T}$SDL_CONFIG" >&6; }
  21833. else
  21834. { echo "$as_me:$LINENO: result: no" >&5
  21835. echo "${ECHO_T}no" >&6; }
  21836. fi
  21837. min_sdl_version=1.2.5
  21838. { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
  21839. echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
  21840. no_sdl=""
  21841. if test "$SDL_CONFIG" = "no" ; then
  21842. no_sdl=yes
  21843. else
  21844. SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
  21845. SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
  21846. sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
  21847. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  21848. sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
  21849. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  21850. sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
  21851. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  21852. if test "x$enable_sdltest" = "xyes" ; then
  21853. ac_save_CFLAGS="$CFLAGS"
  21854. ac_save_CXXFLAGS="$CXXFLAGS"
  21855. ac_save_LIBS="$LIBS"
  21856. CFLAGS="$CFLAGS $SDL_CFLAGS"
  21857. CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
  21858. LIBS="$LIBS $SDL_LIBS"
  21859. rm -f conf.sdltest
  21860. if test "$cross_compiling" = yes; then
  21861. echo $ac_n "cross compiling; assumed OK... $ac_c"
  21862. else
  21863. cat >conftest.$ac_ext <<_ACEOF
  21864. /* confdefs.h. */
  21865. _ACEOF
  21866. cat confdefs.h >>conftest.$ac_ext
  21867. cat >>conftest.$ac_ext <<_ACEOF
  21868. /* end confdefs.h. */
  21869. #include <stdio.h>
  21870. #include <stdlib.h>
  21871. #include <string.h>
  21872. #include "SDL.h"
  21873. char*
  21874. my_strdup (char *str)
  21875. {
  21876. char *new_str;
  21877. if (str)
  21878. {
  21879. new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
  21880. strcpy (new_str, str);
  21881. }
  21882. else
  21883. new_str = NULL;
  21884. return new_str;
  21885. }
  21886. int main (int argc, char *argv[])
  21887. {
  21888. int major, minor, micro;
  21889. char *tmp_version;
  21890. /* This hangs on some systems (?)
  21891. system ("touch conf.sdltest");
  21892. */
  21893. { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
  21894. /* HP/UX 9 (%@#!) writes to sscanf strings */
  21895. tmp_version = my_strdup("$min_sdl_version");
  21896. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  21897. printf("%s, bad version string\n", "$min_sdl_version");
  21898. exit(1);
  21899. }
  21900. if (($sdl_major_version > major) ||
  21901. (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
  21902. (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
  21903. {
  21904. return 0;
  21905. }
  21906. else
  21907. {
  21908. printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
  21909. printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
  21910. printf("*** best to upgrade to the required version.\n");
  21911. printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
  21912. printf("*** to point to the correct copy of sdl-config, and remove the file\n");
  21913. printf("*** config.cache before re-running configure\n");
  21914. return 1;
  21915. }
  21916. }
  21917. _ACEOF
  21918. rm -f conftest$ac_exeext
  21919. if { (ac_try="$ac_link"
  21920. case "(($ac_try" in
  21921. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21922. *) ac_try_echo=$ac_try;;
  21923. esac
  21924. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21925. (eval "$ac_link") 2>&5
  21926. ac_status=$?
  21927. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21928. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  21929. { (case "(($ac_try" in
  21930. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21931. *) ac_try_echo=$ac_try;;
  21932. esac
  21933. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21934. (eval "$ac_try") 2>&5
  21935. ac_status=$?
  21936. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21937. (exit $ac_status); }; }; then
  21938. :
  21939. else
  21940. echo "$as_me: program exited with status $ac_status" >&5
  21941. echo "$as_me: failed program was:" >&5
  21942. sed 's/^/| /' conftest.$ac_ext >&5
  21943. ( exit $ac_status )
  21944. no_sdl=yes
  21945. fi
  21946. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  21947. fi
  21948. CFLAGS="$ac_save_CFLAGS"
  21949. CXXFLAGS="$ac_save_CXXFLAGS"
  21950. LIBS="$ac_save_LIBS"
  21951. fi
  21952. fi
  21953. if test "x$no_sdl" = x ; then
  21954. { echo "$as_me:$LINENO: result: yes" >&5
  21955. echo "${ECHO_T}yes" >&6; }
  21956. use_sdl="yes"
  21957. else
  21958. { echo "$as_me:$LINENO: result: no" >&5
  21959. echo "${ECHO_T}no" >&6; }
  21960. if test "$SDL_CONFIG" = "no" ; then
  21961. echo "*** The sdl-config script installed by SDL could not be found"
  21962. echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
  21963. echo "*** your path, or set the SDL_CONFIG environment variable to the"
  21964. echo "*** full path to sdl-config."
  21965. else
  21966. if test -f conf.sdltest ; then
  21967. :
  21968. else
  21969. echo "*** Could not run SDL test program, checking why..."
  21970. CFLAGS="$CFLAGS $SDL_CFLAGS"
  21971. CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
  21972. LIBS="$LIBS $SDL_LIBS"
  21973. cat >conftest.$ac_ext <<_ACEOF
  21974. /* confdefs.h. */
  21975. _ACEOF
  21976. cat confdefs.h >>conftest.$ac_ext
  21977. cat >>conftest.$ac_ext <<_ACEOF
  21978. /* end confdefs.h. */
  21979. #include <stdio.h>
  21980. #include "SDL.h"
  21981. int main(int argc, char *argv[])
  21982. { return 0; }
  21983. #undef main
  21984. #define main K_and_R_C_main
  21985. int
  21986. main ()
  21987. {
  21988. return 0;
  21989. ;
  21990. return 0;
  21991. }
  21992. _ACEOF
  21993. rm -f conftest.$ac_objext conftest$ac_exeext
  21994. if { (ac_try="$ac_link"
  21995. case "(($ac_try" in
  21996. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21997. *) ac_try_echo=$ac_try;;
  21998. esac
  21999. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22000. (eval "$ac_link") 2>conftest.er1
  22001. ac_status=$?
  22002. grep -v '^ *+' conftest.er1 >conftest.err
  22003. rm -f conftest.er1
  22004. cat conftest.err >&5
  22005. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22006. (exit $ac_status); } && {
  22007. test -z "$ac_c_werror_flag" ||
  22008. test ! -s conftest.err
  22009. } && test -s conftest$ac_exeext &&
  22010. $as_test_x conftest$ac_exeext; then
  22011. echo "*** The test program compiled, but did not run. This usually means"
  22012. echo "*** that the run-time linker is not finding SDL or finding the wrong"
  22013. echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
  22014. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  22015. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  22016. echo "*** is required on your system"
  22017. echo "***"
  22018. echo "*** If you have an old version installed, it is best to remove it, although"
  22019. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  22020. else
  22021. echo "$as_me: failed program was:" >&5
  22022. sed 's/^/| /' conftest.$ac_ext >&5
  22023. echo "*** The test program failed to compile or link. See the file config.log for the"
  22024. echo "*** exact error that occured. This usually means SDL was incorrectly installed"
  22025. echo "*** or that you have moved SDL since it was installed. In the latter case, you"
  22026. echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
  22027. fi
  22028. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22029. conftest$ac_exeext conftest.$ac_ext
  22030. CFLAGS="$ac_save_CFLAGS"
  22031. CXXFLAGS="$ac_save_CXXFLAGS"
  22032. LIBS="$ac_save_LIBS"
  22033. fi
  22034. fi
  22035. SDL_CFLAGS=""
  22036. SDL_LIBS=""
  22037. use_sdl="no"
  22038. fi
  22039. rm -f conf.sdltest
  22040. fi
  22041. if test "x$use_sdl" = "xyes"; then
  22042. cat >>confdefs.h <<\_ACEOF
  22043. #define ILUT_USE_SDL
  22044. _ACEOF
  22045. ILUT_CFLAGS="$SDL_CFLAGS $ILUT_CFLAGS"
  22046. ILUT_LIBS="$SDL_LIBS $ILUT_LIBS"
  22047. SUPPORTED_API="$SUPPORTED_API SDL"
  22048. fi
  22049. # Check whether --enable-w32 was given.
  22050. if test "${enable_w32+set}" = set; then
  22051. enableval=$enable_w32;
  22052. else
  22053. enable_w32="yes"
  22054. fi
  22055. if test "x$enable_w32" = "xyes"; then
  22056. { echo "$as_me:$LINENO: checking for main in -lgdi32" >&5
  22057. echo $ECHO_N "checking for main in -lgdi32... $ECHO_C" >&6; }
  22058. if test "${ac_cv_lib_gdi32_main+set}" = set; then
  22059. echo $ECHO_N "(cached) $ECHO_C" >&6
  22060. else
  22061. ac_check_lib_save_LIBS=$LIBS
  22062. LIBS="-lgdi32 $LIBS"
  22063. cat >conftest.$ac_ext <<_ACEOF
  22064. /* confdefs.h. */
  22065. _ACEOF
  22066. cat confdefs.h >>conftest.$ac_ext
  22067. cat >>conftest.$ac_ext <<_ACEOF
  22068. /* end confdefs.h. */
  22069. int
  22070. main ()
  22071. {
  22072. return main ();
  22073. ;
  22074. return 0;
  22075. }
  22076. _ACEOF
  22077. rm -f conftest.$ac_objext conftest$ac_exeext
  22078. if { (ac_try="$ac_link"
  22079. case "(($ac_try" in
  22080. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22081. *) ac_try_echo=$ac_try;;
  22082. esac
  22083. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22084. (eval "$ac_link") 2>conftest.er1
  22085. ac_status=$?
  22086. grep -v '^ *+' conftest.er1 >conftest.err
  22087. rm -f conftest.er1
  22088. cat conftest.err >&5
  22089. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22090. (exit $ac_status); } && {
  22091. test -z "$ac_c_werror_flag" ||
  22092. test ! -s conftest.err
  22093. } && test -s conftest$ac_exeext &&
  22094. $as_test_x conftest$ac_exeext; then
  22095. ac_cv_lib_gdi32_main=yes
  22096. else
  22097. echo "$as_me: failed program was:" >&5
  22098. sed 's/^/| /' conftest.$ac_ext >&5
  22099. ac_cv_lib_gdi32_main=no
  22100. fi
  22101. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22102. conftest$ac_exeext conftest.$ac_ext
  22103. LIBS=$ac_check_lib_save_LIBS
  22104. fi
  22105. { echo "$as_me:$LINENO: result: $ac_cv_lib_gdi32_main" >&5
  22106. echo "${ECHO_T}$ac_cv_lib_gdi32_main" >&6; }
  22107. if test $ac_cv_lib_gdi32_main = yes; then
  22108. ILUT_LIBS="-lgdi32 $ILUT_LIBS"
  22109. use_w32="yes"
  22110. SUPPORTED_API="$SUPPORTED_API w32"
  22111. fi
  22112. fi
  22113. # Check whether --enable-x11 was given.
  22114. if test "${enable_x11+set}" = set; then
  22115. enableval=$enable_x11;
  22116. else
  22117. enable_x11="yes"
  22118. fi
  22119. if test "x$enable_x11" = "xyes"; then
  22120. if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
  22121. { echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
  22122. echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6; }
  22123. if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
  22124. echo $ECHO_N "(cached) $ECHO_C" >&6
  22125. fi
  22126. { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
  22127. echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6; }
  22128. else
  22129. # Is the header compilable?
  22130. { echo "$as_me:$LINENO: checking X11/Xlib.h usability" >&5
  22131. echo $ECHO_N "checking X11/Xlib.h usability... $ECHO_C" >&6; }
  22132. cat >conftest.$ac_ext <<_ACEOF
  22133. /* confdefs.h. */
  22134. _ACEOF
  22135. cat confdefs.h >>conftest.$ac_ext
  22136. cat >>conftest.$ac_ext <<_ACEOF
  22137. /* end confdefs.h. */
  22138. $ac_includes_default
  22139. #include <X11/Xlib.h>
  22140. _ACEOF
  22141. rm -f conftest.$ac_objext
  22142. if { (ac_try="$ac_compile"
  22143. case "(($ac_try" in
  22144. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22145. *) ac_try_echo=$ac_try;;
  22146. esac
  22147. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22148. (eval "$ac_compile") 2>conftest.er1
  22149. ac_status=$?
  22150. grep -v '^ *+' conftest.er1 >conftest.err
  22151. rm -f conftest.er1
  22152. cat conftest.err >&5
  22153. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22154. (exit $ac_status); } && {
  22155. test -z "$ac_c_werror_flag" ||
  22156. test ! -s conftest.err
  22157. } && test -s conftest.$ac_objext; then
  22158. ac_header_compiler=yes
  22159. else
  22160. echo "$as_me: failed program was:" >&5
  22161. sed 's/^/| /' conftest.$ac_ext >&5
  22162. ac_header_compiler=no
  22163. fi
  22164. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22165. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  22166. echo "${ECHO_T}$ac_header_compiler" >&6; }
  22167. # Is the header present?
  22168. { echo "$as_me:$LINENO: checking X11/Xlib.h presence" >&5
  22169. echo $ECHO_N "checking X11/Xlib.h presence... $ECHO_C" >&6; }
  22170. cat >conftest.$ac_ext <<_ACEOF
  22171. /* confdefs.h. */
  22172. _ACEOF
  22173. cat confdefs.h >>conftest.$ac_ext
  22174. cat >>conftest.$ac_ext <<_ACEOF
  22175. /* end confdefs.h. */
  22176. #include <X11/Xlib.h>
  22177. _ACEOF
  22178. if { (ac_try="$ac_cpp conftest.$ac_ext"
  22179. case "(($ac_try" in
  22180. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22181. *) ac_try_echo=$ac_try;;
  22182. esac
  22183. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22184. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  22185. ac_status=$?
  22186. grep -v '^ *+' conftest.er1 >conftest.err
  22187. rm -f conftest.er1
  22188. cat conftest.err >&5
  22189. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22190. (exit $ac_status); } >/dev/null && {
  22191. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  22192. test ! -s conftest.err
  22193. }; then
  22194. ac_header_preproc=yes
  22195. else
  22196. echo "$as_me: failed program was:" >&5
  22197. sed 's/^/| /' conftest.$ac_ext >&5
  22198. ac_header_preproc=no
  22199. fi
  22200. rm -f conftest.err conftest.$ac_ext
  22201. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  22202. echo "${ECHO_T}$ac_header_preproc" >&6; }
  22203. # So? What about this header?
  22204. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  22205. yes:no: )
  22206. { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
  22207. echo "$as_me: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  22208. { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the compiler's result" >&5
  22209. echo "$as_me: WARNING: X11/Xlib.h: proceeding with the compiler's result" >&2;}
  22210. ac_header_preproc=yes
  22211. ;;
  22212. no:yes:* )
  22213. { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: present but cannot be compiled" >&5
  22214. echo "$as_me: WARNING: X11/Xlib.h: present but cannot be compiled" >&2;}
  22215. { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&5
  22216. echo "$as_me: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&2;}
  22217. { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: see the Autoconf documentation" >&5
  22218. echo "$as_me: WARNING: X11/Xlib.h: see the Autoconf documentation" >&2;}
  22219. { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&5
  22220. echo "$as_me: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
  22221. { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the preprocessor's result" >&5
  22222. echo "$as_me: WARNING: X11/Xlib.h: proceeding with the preprocessor's result" >&2;}
  22223. { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&5
  22224. echo "$as_me: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&2;}
  22225. ( cat <<\_ASBOX
  22226. ## ------------------------------------------ ##
  22227. ## Report this to bubla@users.sourceforge.net ##
  22228. ## ------------------------------------------ ##
  22229. _ASBOX
  22230. ) | sed "s/^/$as_me: WARNING: /" >&2
  22231. ;;
  22232. esac
  22233. { echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
  22234. echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6; }
  22235. if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
  22236. echo $ECHO_N "(cached) $ECHO_C" >&6
  22237. else
  22238. ac_cv_header_X11_Xlib_h=$ac_header_preproc
  22239. fi
  22240. { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
  22241. echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6; }
  22242. fi
  22243. if test $ac_cv_header_X11_Xlib_h = yes; then
  22244. use_x11="yes"
  22245. else
  22246. use_x11="no"
  22247. fi
  22248. { echo "$as_me:$LINENO: checking for main in -lX11" >&5
  22249. echo $ECHO_N "checking for main in -lX11... $ECHO_C" >&6; }
  22250. if test "${ac_cv_lib_X11_main+set}" = set; then
  22251. echo $ECHO_N "(cached) $ECHO_C" >&6
  22252. else
  22253. ac_check_lib_save_LIBS=$LIBS
  22254. LIBS="-lX11 $LIBS"
  22255. cat >conftest.$ac_ext <<_ACEOF
  22256. /* confdefs.h. */
  22257. _ACEOF
  22258. cat confdefs.h >>conftest.$ac_ext
  22259. cat >>conftest.$ac_ext <<_ACEOF
  22260. /* end confdefs.h. */
  22261. int
  22262. main ()
  22263. {
  22264. return main ();
  22265. ;
  22266. return 0;
  22267. }
  22268. _ACEOF
  22269. rm -f conftest.$ac_objext conftest$ac_exeext
  22270. if { (ac_try="$ac_link"
  22271. case "(($ac_try" in
  22272. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22273. *) ac_try_echo=$ac_try;;
  22274. esac
  22275. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22276. (eval "$ac_link") 2>conftest.er1
  22277. ac_status=$?
  22278. grep -v '^ *+' conftest.er1 >conftest.err
  22279. rm -f conftest.er1
  22280. cat conftest.err >&5
  22281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22282. (exit $ac_status); } && {
  22283. test -z "$ac_c_werror_flag" ||
  22284. test ! -s conftest.err
  22285. } && test -s conftest$ac_exeext &&
  22286. $as_test_x conftest$ac_exeext; then
  22287. ac_cv_lib_X11_main=yes
  22288. else
  22289. echo "$as_me: failed program was:" >&5
  22290. sed 's/^/| /' conftest.$ac_ext >&5
  22291. ac_cv_lib_X11_main=no
  22292. fi
  22293. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22294. conftest$ac_exeext conftest.$ac_ext
  22295. LIBS=$ac_check_lib_save_LIBS
  22296. fi
  22297. { echo "$as_me:$LINENO: result: $ac_cv_lib_X11_main" >&5
  22298. echo "${ECHO_T}$ac_cv_lib_X11_main" >&6; }
  22299. if test $ac_cv_lib_X11_main = yes; then
  22300. ILUT_LIBS="-lX11 $ILUT_LIBS"
  22301. else
  22302. use_x11="no"
  22303. fi
  22304. fi
  22305. # Check whether --enable-shm was given.
  22306. if test "${enable_shm+set}" = set; then
  22307. enableval=$enable_shm;
  22308. else
  22309. enable_shm="yes"
  22310. fi
  22311. if test "x$enable_shm" = "xyes"; then
  22312. { echo "$as_me:$LINENO: checking for X11/extensions/XShm.h" >&5
  22313. echo $ECHO_N "checking for X11/extensions/XShm.h... $ECHO_C" >&6; }
  22314. if test "${ac_cv_header_X11_extensions_XShm_h+set}" = set; then
  22315. echo $ECHO_N "(cached) $ECHO_C" >&6
  22316. else
  22317. cat >conftest.$ac_ext <<_ACEOF
  22318. /* confdefs.h. */
  22319. _ACEOF
  22320. cat confdefs.h >>conftest.$ac_ext
  22321. cat >>conftest.$ac_ext <<_ACEOF
  22322. /* end confdefs.h. */
  22323. #include <X11/Xlib.h>
  22324. #include <X11/extensions/XShm.h>
  22325. _ACEOF
  22326. rm -f conftest.$ac_objext
  22327. if { (ac_try="$ac_compile"
  22328. case "(($ac_try" in
  22329. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22330. *) ac_try_echo=$ac_try;;
  22331. esac
  22332. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22333. (eval "$ac_compile") 2>conftest.er1
  22334. ac_status=$?
  22335. grep -v '^ *+' conftest.er1 >conftest.err
  22336. rm -f conftest.er1
  22337. cat conftest.err >&5
  22338. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22339. (exit $ac_status); } && {
  22340. test -z "$ac_c_werror_flag" ||
  22341. test ! -s conftest.err
  22342. } && test -s conftest.$ac_objext; then
  22343. ac_cv_header_X11_extensions_XShm_h=yes
  22344. else
  22345. echo "$as_me: failed program was:" >&5
  22346. sed 's/^/| /' conftest.$ac_ext >&5
  22347. ac_cv_header_X11_extensions_XShm_h=no
  22348. fi
  22349. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22350. fi
  22351. { echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_XShm_h" >&5
  22352. echo "${ECHO_T}$ac_cv_header_X11_extensions_XShm_h" >&6; }
  22353. if test $ac_cv_header_X11_extensions_XShm_h = yes; then
  22354. use_xshm="yes"
  22355. else
  22356. use_xshm="no"
  22357. fi
  22358. { echo "$as_me:$LINENO: checking for main in -lXext" >&5
  22359. echo $ECHO_N "checking for main in -lXext... $ECHO_C" >&6; }
  22360. if test "${ac_cv_lib_Xext_main+set}" = set; then
  22361. echo $ECHO_N "(cached) $ECHO_C" >&6
  22362. else
  22363. ac_check_lib_save_LIBS=$LIBS
  22364. LIBS="-lXext $LIBS"
  22365. cat >conftest.$ac_ext <<_ACEOF
  22366. /* confdefs.h. */
  22367. _ACEOF
  22368. cat confdefs.h >>conftest.$ac_ext
  22369. cat >>conftest.$ac_ext <<_ACEOF
  22370. /* end confdefs.h. */
  22371. int
  22372. main ()
  22373. {
  22374. return main ();
  22375. ;
  22376. return 0;
  22377. }
  22378. _ACEOF
  22379. rm -f conftest.$ac_objext conftest$ac_exeext
  22380. if { (ac_try="$ac_link"
  22381. case "(($ac_try" in
  22382. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22383. *) ac_try_echo=$ac_try;;
  22384. esac
  22385. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22386. (eval "$ac_link") 2>conftest.er1
  22387. ac_status=$?
  22388. grep -v '^ *+' conftest.er1 >conftest.err
  22389. rm -f conftest.er1
  22390. cat conftest.err >&5
  22391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22392. (exit $ac_status); } && {
  22393. test -z "$ac_c_werror_flag" ||
  22394. test ! -s conftest.err
  22395. } && test -s conftest$ac_exeext &&
  22396. $as_test_x conftest$ac_exeext; then
  22397. ac_cv_lib_Xext_main=yes
  22398. else
  22399. echo "$as_me: failed program was:" >&5
  22400. sed 's/^/| /' conftest.$ac_ext >&5
  22401. ac_cv_lib_Xext_main=no
  22402. fi
  22403. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22404. conftest$ac_exeext conftest.$ac_ext
  22405. LIBS=$ac_check_lib_save_LIBS
  22406. fi
  22407. { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_main" >&5
  22408. echo "${ECHO_T}$ac_cv_lib_Xext_main" >&6; }
  22409. if test $ac_cv_lib_Xext_main = yes; then
  22410. use_shm="yes"
  22411. ILUT_LIBS="-lXext $ILUT_LIBS"
  22412. else
  22413. use_shm="no"
  22414. fi
  22415. fi
  22416. # Check whether --enable-render was given.
  22417. if test "${enable_render+set}" = set; then
  22418. enableval=$enable_render;
  22419. else
  22420. enable_render="yes"
  22421. fi
  22422. if test "x$enable_render" = "xyes"; then
  22423. { echo "$as_me:$LINENO: checking for X11/extensions/Xrender.h" >&5
  22424. echo $ECHO_N "checking for X11/extensions/Xrender.h... $ECHO_C" >&6; }
  22425. if test "${ac_cv_header_X11_extensions_Xrender_h+set}" = set; then
  22426. echo $ECHO_N "(cached) $ECHO_C" >&6
  22427. else
  22428. cat >conftest.$ac_ext <<_ACEOF
  22429. /* confdefs.h. */
  22430. _ACEOF
  22431. cat confdefs.h >>conftest.$ac_ext
  22432. cat >>conftest.$ac_ext <<_ACEOF
  22433. /* end confdefs.h. */
  22434. #include <X11/Xlib.h>
  22435. #include <X11/extensions/Xrender.h>
  22436. _ACEOF
  22437. rm -f conftest.$ac_objext
  22438. if { (ac_try="$ac_compile"
  22439. case "(($ac_try" in
  22440. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22441. *) ac_try_echo=$ac_try;;
  22442. esac
  22443. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22444. (eval "$ac_compile") 2>conftest.er1
  22445. ac_status=$?
  22446. grep -v '^ *+' conftest.er1 >conftest.err
  22447. rm -f conftest.er1
  22448. cat conftest.err >&5
  22449. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22450. (exit $ac_status); } && {
  22451. test -z "$ac_c_werror_flag" ||
  22452. test ! -s conftest.err
  22453. } && test -s conftest.$ac_objext; then
  22454. ac_cv_header_X11_extensions_Xrender_h=yes
  22455. else
  22456. echo "$as_me: failed program was:" >&5
  22457. sed 's/^/| /' conftest.$ac_ext >&5
  22458. ac_cv_header_X11_extensions_Xrender_h=no
  22459. fi
  22460. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22461. fi
  22462. { echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xrender_h" >&5
  22463. echo "${ECHO_T}$ac_cv_header_X11_extensions_Xrender_h" >&6; }
  22464. if test $ac_cv_header_X11_extensions_Xrender_h = yes; then
  22465. use_xrender="yes"
  22466. else
  22467. use_xrender="no"
  22468. fi
  22469. { echo "$as_me:$LINENO: checking for main in -lXrender" >&5
  22470. echo $ECHO_N "checking for main in -lXrender... $ECHO_C" >&6; }
  22471. if test "${ac_cv_lib_Xrender_main+set}" = set; then
  22472. echo $ECHO_N "(cached) $ECHO_C" >&6
  22473. else
  22474. ac_check_lib_save_LIBS=$LIBS
  22475. LIBS="-lXrender $LIBS"
  22476. cat >conftest.$ac_ext <<_ACEOF
  22477. /* confdefs.h. */
  22478. _ACEOF
  22479. cat confdefs.h >>conftest.$ac_ext
  22480. cat >>conftest.$ac_ext <<_ACEOF
  22481. /* end confdefs.h. */
  22482. int
  22483. main ()
  22484. {
  22485. return main ();
  22486. ;
  22487. return 0;
  22488. }
  22489. _ACEOF
  22490. rm -f conftest.$ac_objext conftest$ac_exeext
  22491. if { (ac_try="$ac_link"
  22492. case "(($ac_try" in
  22493. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22494. *) ac_try_echo=$ac_try;;
  22495. esac
  22496. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22497. (eval "$ac_link") 2>conftest.er1
  22498. ac_status=$?
  22499. grep -v '^ *+' conftest.er1 >conftest.err
  22500. rm -f conftest.er1
  22501. cat conftest.err >&5
  22502. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22503. (exit $ac_status); } && {
  22504. test -z "$ac_c_werror_flag" ||
  22505. test ! -s conftest.err
  22506. } && test -s conftest$ac_exeext &&
  22507. $as_test_x conftest$ac_exeext; then
  22508. ac_cv_lib_Xrender_main=yes
  22509. else
  22510. echo "$as_me: failed program was:" >&5
  22511. sed 's/^/| /' conftest.$ac_ext >&5
  22512. ac_cv_lib_Xrender_main=no
  22513. fi
  22514. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22515. conftest$ac_exeext conftest.$ac_ext
  22516. LIBS=$ac_check_lib_save_LIBS
  22517. fi
  22518. { echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_main" >&5
  22519. echo "${ECHO_T}$ac_cv_lib_Xrender_main" >&6; }
  22520. if test $ac_cv_lib_Xrender_main = yes; then
  22521. use_render="yes"
  22522. ILUT_LIBS="-lXrender $ILUT_LIBS"
  22523. else
  22524. use_render="no"
  22525. fi
  22526. fi
  22527. if test "x$use_x11" != "xno"; then
  22528. cat >>confdefs.h <<\_ACEOF
  22529. #define ILUT_USE_X11 1
  22530. _ACEOF
  22531. SUPPORTED_API="$SUPPORTED_API X11"
  22532. fi
  22533. if test "$use_xshm" = "yes"; then
  22534. cat >>confdefs.h <<\_ACEOF
  22535. #define ILUT_USE_XSHM
  22536. _ACEOF
  22537. SUPPORTED_API="$SUPPORTED_API XShm"
  22538. fi
  22539. if test "$use_xrender" = "yes"; then
  22540. cat >>confdefs.h <<\_ACEOF
  22541. #define ILUT_USE_XRENDER
  22542. _ACEOF
  22543. SUPPORTED_API="$SUPPORTED_API XRender"
  22544. fi
  22545. fi
  22546. if test "x$enable_ILU" = "xyes"; then
  22547. EXAMPLES_TO_BUILD="$EXAMPLES_TO_BUILD ILU_override ILU_read ILU_simple"
  22548. fi
  22549. if test "x$enable_ILUT" = "xyes"; then
  22550. EXAMPLES_TO_BUILD="$EXAMPLES_TO_BUILD ILUT_cpp_wrapper"
  22551. fi
  22552. if test "x$use_allegro" = "xyes"; then
  22553. USE_ALLEGRO_TRUE=
  22554. USE_ALLEGRO_FALSE='#'
  22555. else
  22556. USE_ALLEGRO_TRUE='#'
  22557. USE_ALLEGRO_FALSE=
  22558. fi
  22559. if test "x$use_allegro" = "xyes"; then
  22560. EXAMPLES_TO_BUILD="$EXAMPLES_TO_BUILD ILUT_allegro"
  22561. fi
  22562. if test "x$use_directx8" = "xyes"; then
  22563. USE_DIRECTX8_TRUE=
  22564. USE_DIRECTX8_FALSE='#'
  22565. else
  22566. USE_DIRECTX8_TRUE='#'
  22567. USE_DIRECTX8_FALSE=
  22568. fi
  22569. if test "x$use_directx9" = "xyes"; then
  22570. USE_DIRECTX9_TRUE=
  22571. USE_DIRECTX9_FALSE='#'
  22572. else
  22573. USE_DIRECTX9_TRUE='#'
  22574. USE_DIRECTX9_FALSE=
  22575. fi
  22576. if test "x$use_directx8" = "xyes" -o "x$use_directx9" = "xyes"; then
  22577. USE_DIRECTX_TRUE=
  22578. USE_DIRECTX_FALSE='#'
  22579. else
  22580. USE_DIRECTX_TRUE='#'
  22581. USE_DIRECTX_FALSE=
  22582. fi
  22583. if test "x$use_directx8" = "xyes" -o "x$use_directx9" = "xyes"; then
  22584. EXAMPLES_TO_BUILD="$EXAMPLES_TO_BUILD ILUT_d3d ILUT_windows"
  22585. fi
  22586. if test "x$use_ogl" = "xyes"; then
  22587. USE_OPENGL_TRUE=
  22588. USE_OPENGL_FALSE='#'
  22589. else
  22590. USE_OPENGL_TRUE='#'
  22591. USE_OPENGL_FALSE=
  22592. fi
  22593. if test "x$have_glut" = "xyes"; then
  22594. HAVE_GLUT_TRUE=
  22595. HAVE_GLUT_FALSE='#'
  22596. else
  22597. HAVE_GLUT_TRUE='#'
  22598. HAVE_GLUT_FALSE=
  22599. fi
  22600. if test "x$use_sdl" = "xyes"; then
  22601. USE_SDL_TRUE=
  22602. USE_SDL_FALSE='#'
  22603. else
  22604. USE_SDL_TRUE='#'
  22605. USE_SDL_FALSE=
  22606. fi
  22607. if test "x$use_sdl" = "xyes"; then
  22608. EXAMPLES_TO_BUILD="$EXAMPLES_TO_BUILD ILUT_sdl"
  22609. fi
  22610. if test "x$use_w32" = "xyes"; then
  22611. USE_W32_TRUE=
  22612. USE_W32_FALSE='#'
  22613. else
  22614. USE_W32_TRUE='#'
  22615. USE_W32_FALSE=
  22616. fi
  22617. if test "x$use_w32" = "xyes"; then
  22618. EXAMPLES_TO_BUILD="$EXAMPLES_TO_BUILD ILUT_animation"
  22619. fi
  22620. if test "x$use_x11" = "xyes"; then
  22621. USE_X11_TRUE=
  22622. USE_X11_FALSE='#'
  22623. else
  22624. USE_X11_TRUE='#'
  22625. USE_X11_FALSE=
  22626. fi
  22627. #this is instedad AM_COND_IF([USE_OPENGL && USE_X11])
  22628. if test "x$have_glut" = "xyes" -a "x$use_x11" = "xyes"; then
  22629. EXAMPLES_TO_BUILD="$EXAMPLES_TO_BUILD ILUT_gl ILUT_volume"
  22630. fi
  22631. case $host in
  22632. *mingw32*) PLATFORM="MINGW32" ;;
  22633. *cygwin*) GENERAL_CFLAGS="$GENERAL_CFLAGS -mno-cygwin"
  22634. LIBILUT_WIN32LIBPATH="-L/usr/lib/w32api"
  22635. PLATFORM="CYGWIN" ;;
  22636. *darwin*)
  22637. cat >>confdefs.h <<\_ACEOF
  22638. #define MAX_OS_X
  22639. _ACEOF
  22640. PLATFORM="OSX" ;;
  22641. esac
  22642. if test "x$PLATFORM" = "xMINGW32" -o "x$PLATFORM" = "xCYGWIN"; then
  22643. WINDOWS_BUILD_TRUE=
  22644. WINDOWS_BUILD_FALSE='#'
  22645. else
  22646. WINDOWS_BUILD_TRUE='#'
  22647. WINDOWS_BUILD_FALSE=
  22648. fi
  22649. ac_config_files="$ac_config_files Makefile lib/Makefile bin/Makefile test/Makefile docs/Makefile data/Makefile data/IL.pc data/ILU.pc data/ILUT.pc test/format_test/format_checks.sh"
  22650. # src-IL/Makefile src-IL/src/Makefile src-IL/include/Makefile src-ILU/Makefile src-ILU/src/Makefile src-ILU/include/Makefile src-ILUT/Makefile src-ILUT/src/Makefile src-ILUT/include/Makefile include/Makefile include/IL/Makefile
  22651. cat >confcache <<\_ACEOF
  22652. # This file is a shell script that caches the results of configure
  22653. # tests run on this system so they can be shared between configure
  22654. # scripts and configure runs, see configure's option --config-cache.
  22655. # It is not useful on other systems. If it contains results you don't
  22656. # want to keep, you may remove or edit it.
  22657. #
  22658. # config.status only pays attention to the cache file if you give it
  22659. # the --recheck option to rerun configure.
  22660. #
  22661. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  22662. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  22663. # following values.
  22664. _ACEOF
  22665. # The following way of writing the cache mishandles newlines in values,
  22666. # but we know of no workaround that is simple, portable, and efficient.
  22667. # So, we kill variables containing newlines.
  22668. # Ultrix sh set writes to stderr and can't be redirected directly,
  22669. # and sets the high bit in the cache file unless we assign to the vars.
  22670. (
  22671. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  22672. eval ac_val=\$$ac_var
  22673. case $ac_val in #(
  22674. *${as_nl}*)
  22675. case $ac_var in #(
  22676. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  22677. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  22678. esac
  22679. case $ac_var in #(
  22680. _ | IFS | as_nl) ;; #(
  22681. *) $as_unset $ac_var ;;
  22682. esac ;;
  22683. esac
  22684. done
  22685. (set) 2>&1 |
  22686. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  22687. *${as_nl}ac_space=\ *)
  22688. # `set' does not quote correctly, so add quotes (double-quote
  22689. # substitution turns \\\\ into \\, and sed turns \\ into \).
  22690. sed -n \
  22691. "s/'/'\\\\''/g;
  22692. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  22693. ;; #(
  22694. *)
  22695. # `set' quotes correctly as required by POSIX, so do not add quotes.
  22696. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  22697. ;;
  22698. esac |
  22699. sort
  22700. ) |
  22701. sed '
  22702. /^ac_cv_env_/b end
  22703. t clear
  22704. :clear
  22705. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  22706. t end
  22707. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  22708. :end' >>confcache
  22709. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  22710. if test -w "$cache_file"; then
  22711. test "x$cache_file" != "x/dev/null" &&
  22712. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  22713. echo "$as_me: updating cache $cache_file" >&6;}
  22714. cat confcache >$cache_file
  22715. else
  22716. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  22717. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  22718. fi
  22719. fi
  22720. rm -f confcache
  22721. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  22722. # Let make expand exec_prefix.
  22723. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  22724. DEFS=-DHAVE_CONFIG_H
  22725. ac_libobjs=
  22726. ac_ltlibobjs=
  22727. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  22728. # 1. Remove the extension, and $U if already installed.
  22729. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  22730. ac_i=`echo "$ac_i" | sed "$ac_script"`
  22731. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  22732. # will be set to the directory where LIBOBJS objects are built.
  22733. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  22734. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  22735. done
  22736. LIBOBJS=$ac_libobjs
  22737. LTLIBOBJS=$ac_ltlibobjs
  22738. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  22739. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  22740. Usually this means the macro was only invoked conditionally." >&5
  22741. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  22742. Usually this means the macro was only invoked conditionally." >&2;}
  22743. { (exit 1); exit 1; }; }
  22744. fi
  22745. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  22746. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  22747. Usually this means the macro was only invoked conditionally." >&5
  22748. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  22749. Usually this means the macro was only invoked conditionally." >&2;}
  22750. { (exit 1); exit 1; }; }
  22751. fi
  22752. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  22753. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  22754. Usually this means the macro was only invoked conditionally." >&5
  22755. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  22756. Usually this means the macro was only invoked conditionally." >&2;}
  22757. { (exit 1); exit 1; }; }
  22758. fi
  22759. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  22760. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  22761. Usually this means the macro was only invoked conditionally." >&5
  22762. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  22763. Usually this means the macro was only invoked conditionally." >&2;}
  22764. { (exit 1); exit 1; }; }
  22765. fi
  22766. if test -z "${BUILD_EXAMPLES_TRUE}" && test -z "${BUILD_EXAMPLES_FALSE}"; then
  22767. { { echo "$as_me:$LINENO: error: conditional \"BUILD_EXAMPLES\" was never defined.
  22768. Usually this means the macro was only invoked conditionally." >&5
  22769. echo "$as_me: error: conditional \"BUILD_EXAMPLES\" was never defined.
  22770. Usually this means the macro was only invoked conditionally." >&2;}
  22771. { (exit 1); exit 1; }; }
  22772. fi
  22773. if test -z "${BUILD_IL_TRUE}" && test -z "${BUILD_IL_FALSE}"; then
  22774. { { echo "$as_me:$LINENO: error: conditional \"BUILD_IL\" was never defined.
  22775. Usually this means the macro was only invoked conditionally." >&5
  22776. echo "$as_me: error: conditional \"BUILD_IL\" was never defined.
  22777. Usually this means the macro was only invoked conditionally." >&2;}
  22778. { (exit 1); exit 1; }; }
  22779. fi
  22780. if test -z "${BUILD_ILU_TRUE}" && test -z "${BUILD_ILU_FALSE}"; then
  22781. { { echo "$as_me:$LINENO: error: conditional \"BUILD_ILU\" was never defined.
  22782. Usually this means the macro was only invoked conditionally." >&5
  22783. echo "$as_me: error: conditional \"BUILD_ILU\" was never defined.
  22784. Usually this means the macro was only invoked conditionally." >&2;}
  22785. { (exit 1); exit 1; }; }
  22786. fi
  22787. if test -z "${BUILD_ILUT_TRUE}" && test -z "${BUILD_ILUT_FALSE}"; then
  22788. { { echo "$as_me:$LINENO: error: conditional \"BUILD_ILUT\" was never defined.
  22789. Usually this means the macro was only invoked conditionally." >&5
  22790. echo "$as_me: error: conditional \"BUILD_ILUT\" was never defined.
  22791. Usually this means the macro was only invoked conditionally." >&2;}
  22792. { (exit 1); exit 1; }; }
  22793. fi
  22794. if test -z "${USE_ALLEGRO_TRUE}" && test -z "${USE_ALLEGRO_FALSE}"; then
  22795. { { echo "$as_me:$LINENO: error: conditional \"USE_ALLEGRO\" was never defined.
  22796. Usually this means the macro was only invoked conditionally." >&5
  22797. echo "$as_me: error: conditional \"USE_ALLEGRO\" was never defined.
  22798. Usually this means the macro was only invoked conditionally." >&2;}
  22799. { (exit 1); exit 1; }; }
  22800. fi
  22801. if test -z "${USE_DIRECTX8_TRUE}" && test -z "${USE_DIRECTX8_FALSE}"; then
  22802. { { echo "$as_me:$LINENO: error: conditional \"USE_DIRECTX8\" was never defined.
  22803. Usually this means the macro was only invoked conditionally." >&5
  22804. echo "$as_me: error: conditional \"USE_DIRECTX8\" was never defined.
  22805. Usually this means the macro was only invoked conditionally." >&2;}
  22806. { (exit 1); exit 1; }; }
  22807. fi
  22808. if test -z "${USE_DIRECTX9_TRUE}" && test -z "${USE_DIRECTX9_FALSE}"; then
  22809. { { echo "$as_me:$LINENO: error: conditional \"USE_DIRECTX9\" was never defined.
  22810. Usually this means the macro was only invoked conditionally." >&5
  22811. echo "$as_me: error: conditional \"USE_DIRECTX9\" was never defined.
  22812. Usually this means the macro was only invoked conditionally." >&2;}
  22813. { (exit 1); exit 1; }; }
  22814. fi
  22815. if test -z "${USE_DIRECTX_TRUE}" && test -z "${USE_DIRECTX_FALSE}"; then
  22816. { { echo "$as_me:$LINENO: error: conditional \"USE_DIRECTX\" was never defined.
  22817. Usually this means the macro was only invoked conditionally." >&5
  22818. echo "$as_me: error: conditional \"USE_DIRECTX\" was never defined.
  22819. Usually this means the macro was only invoked conditionally." >&2;}
  22820. { (exit 1); exit 1; }; }
  22821. fi
  22822. if test -z "${USE_OPENGL_TRUE}" && test -z "${USE_OPENGL_FALSE}"; then
  22823. { { echo "$as_me:$LINENO: error: conditional \"USE_OPENGL\" was never defined.
  22824. Usually this means the macro was only invoked conditionally." >&5
  22825. echo "$as_me: error: conditional \"USE_OPENGL\" was never defined.
  22826. Usually this means the macro was only invoked conditionally." >&2;}
  22827. { (exit 1); exit 1; }; }
  22828. fi
  22829. if test -z "${HAVE_GLUT_TRUE}" && test -z "${HAVE_GLUT_FALSE}"; then
  22830. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GLUT\" was never defined.
  22831. Usually this means the macro was only invoked conditionally." >&5
  22832. echo "$as_me: error: conditional \"HAVE_GLUT\" was never defined.
  22833. Usually this means the macro was only invoked conditionally." >&2;}
  22834. { (exit 1); exit 1; }; }
  22835. fi
  22836. if test -z "${USE_SDL_TRUE}" && test -z "${USE_SDL_FALSE}"; then
  22837. { { echo "$as_me:$LINENO: error: conditional \"USE_SDL\" was never defined.
  22838. Usually this means the macro was only invoked conditionally." >&5
  22839. echo "$as_me: error: conditional \"USE_SDL\" was never defined.
  22840. Usually this means the macro was only invoked conditionally." >&2;}
  22841. { (exit 1); exit 1; }; }
  22842. fi
  22843. if test -z "${USE_W32_TRUE}" && test -z "${USE_W32_FALSE}"; then
  22844. { { echo "$as_me:$LINENO: error: conditional \"USE_W32\" was never defined.
  22845. Usually this means the macro was only invoked conditionally." >&5
  22846. echo "$as_me: error: conditional \"USE_W32\" was never defined.
  22847. Usually this means the macro was only invoked conditionally." >&2;}
  22848. { (exit 1); exit 1; }; }
  22849. fi
  22850. if test -z "${USE_X11_TRUE}" && test -z "${USE_X11_FALSE}"; then
  22851. { { echo "$as_me:$LINENO: error: conditional \"USE_X11\" was never defined.
  22852. Usually this means the macro was only invoked conditionally." >&5
  22853. echo "$as_me: error: conditional \"USE_X11\" was never defined.
  22854. Usually this means the macro was only invoked conditionally." >&2;}
  22855. { (exit 1); exit 1; }; }
  22856. fi
  22857. if test -z "${WINDOWS_BUILD_TRUE}" && test -z "${WINDOWS_BUILD_FALSE}"; then
  22858. { { echo "$as_me:$LINENO: error: conditional \"WINDOWS_BUILD\" was never defined.
  22859. Usually this means the macro was only invoked conditionally." >&5
  22860. echo "$as_me: error: conditional \"WINDOWS_BUILD\" was never defined.
  22861. Usually this means the macro was only invoked conditionally." >&2;}
  22862. { (exit 1); exit 1; }; }
  22863. fi
  22864. : ${CONFIG_STATUS=./config.status}
  22865. ac_clean_files_save=$ac_clean_files
  22866. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  22867. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  22868. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  22869. cat >$CONFIG_STATUS <<_ACEOF
  22870. #! $SHELL
  22871. # Generated by $as_me.
  22872. # Run this file to recreate the current configuration.
  22873. # Compiler output produced by configure, useful for debugging
  22874. # configure, is in config.log if it exists.
  22875. debug=false
  22876. ac_cs_recheck=false
  22877. ac_cs_silent=false
  22878. SHELL=\${CONFIG_SHELL-$SHELL}
  22879. _ACEOF
  22880. cat >>$CONFIG_STATUS <<\_ACEOF
  22881. ## --------------------- ##
  22882. ## M4sh Initialization. ##
  22883. ## --------------------- ##
  22884. # Be more Bourne compatible
  22885. DUALCASE=1; export DUALCASE # for MKS sh
  22886. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  22887. emulate sh
  22888. NULLCMD=:
  22889. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  22890. # is contrary to our usage. Disable this feature.
  22891. alias -g '${1+"$@"}'='"$@"'
  22892. setopt NO_GLOB_SUBST
  22893. else
  22894. case `(set -o) 2>/dev/null` in
  22895. *posix*) set -o posix ;;
  22896. esac
  22897. fi
  22898. # PATH needs CR
  22899. # Avoid depending upon Character Ranges.
  22900. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  22901. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  22902. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  22903. as_cr_digits='0123456789'
  22904. as_cr_alnum=$as_cr_Letters$as_cr_digits
  22905. # The user is always right.
  22906. if test "${PATH_SEPARATOR+set}" != set; then
  22907. echo "#! /bin/sh" >conf$$.sh
  22908. echo "exit 0" >>conf$$.sh
  22909. chmod +x conf$$.sh
  22910. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  22911. PATH_SEPARATOR=';'
  22912. else
  22913. PATH_SEPARATOR=:
  22914. fi
  22915. rm -f conf$$.sh
  22916. fi
  22917. # Support unset when possible.
  22918. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  22919. as_unset=unset
  22920. else
  22921. as_unset=false
  22922. fi
  22923. # IFS
  22924. # We need space, tab and new line, in precisely that order. Quoting is
  22925. # there to prevent editors from complaining about space-tab.
  22926. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  22927. # splitting by setting IFS to empty value.)
  22928. as_nl='
  22929. '
  22930. IFS=" "" $as_nl"
  22931. # Find who we are. Look in the path if we contain no directory separator.
  22932. case $0 in
  22933. *[\\/]* ) as_myself=$0 ;;
  22934. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22935. for as_dir in $PATH
  22936. do
  22937. IFS=$as_save_IFS
  22938. test -z "$as_dir" && as_dir=.
  22939. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  22940. done
  22941. IFS=$as_save_IFS
  22942. ;;
  22943. esac
  22944. # We did not find ourselves, most probably we were run as `sh COMMAND'
  22945. # in which case we are not to be found in the path.
  22946. if test "x$as_myself" = x; then
  22947. as_myself=$0
  22948. fi
  22949. if test ! -f "$as_myself"; then
  22950. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  22951. { (exit 1); exit 1; }
  22952. fi
  22953. # Work around bugs in pre-3.0 UWIN ksh.
  22954. for as_var in ENV MAIL MAILPATH
  22955. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  22956. done
  22957. PS1='$ '
  22958. PS2='> '
  22959. PS4='+ '
  22960. # NLS nuisances.
  22961. for as_var in \
  22962. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  22963. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  22964. LC_TELEPHONE LC_TIME
  22965. do
  22966. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  22967. eval $as_var=C; export $as_var
  22968. else
  22969. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  22970. fi
  22971. done
  22972. # Required to use basename.
  22973. if expr a : '\(a\)' >/dev/null 2>&1 &&
  22974. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  22975. as_expr=expr
  22976. else
  22977. as_expr=false
  22978. fi
  22979. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  22980. as_basename=basename
  22981. else
  22982. as_basename=false
  22983. fi
  22984. # Name of the executable.
  22985. as_me=`$as_basename -- "$0" ||
  22986. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  22987. X"$0" : 'X\(//\)$' \| \
  22988. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  22989. echo X/"$0" |
  22990. sed '/^.*\/\([^/][^/]*\)\/*$/{
  22991. s//\1/
  22992. q
  22993. }
  22994. /^X\/\(\/\/\)$/{
  22995. s//\1/
  22996. q
  22997. }
  22998. /^X\/\(\/\).*/{
  22999. s//\1/
  23000. q
  23001. }
  23002. s/.*/./; q'`
  23003. # CDPATH.
  23004. $as_unset CDPATH
  23005. as_lineno_1=$LINENO
  23006. as_lineno_2=$LINENO
  23007. test "x$as_lineno_1" != "x$as_lineno_2" &&
  23008. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  23009. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  23010. # uniformly replaced by the line number. The first 'sed' inserts a
  23011. # line-number line after each line using $LINENO; the second 'sed'
  23012. # does the real work. The second script uses 'N' to pair each
  23013. # line-number line with the line containing $LINENO, and appends
  23014. # trailing '-' during substitution so that $LINENO is not a special
  23015. # case at line end.
  23016. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  23017. # scripts with optimization help from Paolo Bonzini. Blame Lee
  23018. # E. McMahon (1931-1989) for sed's syntax. :-)
  23019. sed -n '
  23020. p
  23021. /[$]LINENO/=
  23022. ' <$as_myself |
  23023. sed '
  23024. s/[$]LINENO.*/&-/
  23025. t lineno
  23026. b
  23027. :lineno
  23028. N
  23029. :loop
  23030. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  23031. t loop
  23032. s/-\n.*//
  23033. ' >$as_me.lineno &&
  23034. chmod +x "$as_me.lineno" ||
  23035. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  23036. { (exit 1); exit 1; }; }
  23037. # Don't try to exec as it changes $[0], causing all sort of problems
  23038. # (the dirname of $[0] is not the place where we might find the
  23039. # original and so on. Autoconf is especially sensitive to this).
  23040. . "./$as_me.lineno"
  23041. # Exit status is that of the last command.
  23042. exit
  23043. }
  23044. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  23045. as_dirname=dirname
  23046. else
  23047. as_dirname=false
  23048. fi
  23049. ECHO_C= ECHO_N= ECHO_T=
  23050. case `echo -n x` in
  23051. -n*)
  23052. case `echo 'x\c'` in
  23053. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  23054. *) ECHO_C='\c';;
  23055. esac;;
  23056. *)
  23057. ECHO_N='-n';;
  23058. esac
  23059. if expr a : '\(a\)' >/dev/null 2>&1 &&
  23060. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  23061. as_expr=expr
  23062. else
  23063. as_expr=false
  23064. fi
  23065. rm -f conf$$ conf$$.exe conf$$.file
  23066. if test -d conf$$.dir; then
  23067. rm -f conf$$.dir/conf$$.file
  23068. else
  23069. rm -f conf$$.dir
  23070. mkdir conf$$.dir
  23071. fi
  23072. echo >conf$$.file
  23073. if ln -s conf$$.file conf$$ 2>/dev/null; then
  23074. as_ln_s='ln -s'
  23075. # ... but there are two gotchas:
  23076. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  23077. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  23078. # In both cases, we have to default to `cp -p'.
  23079. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  23080. as_ln_s='cp -p'
  23081. elif ln conf$$.file conf$$ 2>/dev/null; then
  23082. as_ln_s=ln
  23083. else
  23084. as_ln_s='cp -p'
  23085. fi
  23086. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  23087. rmdir conf$$.dir 2>/dev/null
  23088. if mkdir -p . 2>/dev/null; then
  23089. as_mkdir_p=:
  23090. else
  23091. test -d ./-p && rmdir ./-p
  23092. as_mkdir_p=false
  23093. fi
  23094. if test -x / >/dev/null 2>&1; then
  23095. as_test_x='test -x'
  23096. else
  23097. if ls -dL / >/dev/null 2>&1; then
  23098. as_ls_L_option=L
  23099. else
  23100. as_ls_L_option=
  23101. fi
  23102. as_test_x='
  23103. eval sh -c '\''
  23104. if test -d "$1"; then
  23105. test -d "$1/.";
  23106. else
  23107. case $1 in
  23108. -*)set "./$1";;
  23109. esac;
  23110. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  23111. ???[sx]*):;;*)false;;esac;fi
  23112. '\'' sh
  23113. '
  23114. fi
  23115. as_executable_p=$as_test_x
  23116. # Sed expression to map a string onto a valid CPP name.
  23117. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  23118. # Sed expression to map a string onto a valid variable name.
  23119. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  23120. exec 6>&1
  23121. # Save the log message, to keep $[0] and so on meaningful, and to
  23122. # report actual input values of CONFIG_FILES etc. instead of their
  23123. # values after options handling.
  23124. ac_log="
  23125. This file was extended by DevIL $as_me 1.7.8, which was
  23126. generated by GNU Autoconf 2.61. Invocation command line was
  23127. CONFIG_FILES = $CONFIG_FILES
  23128. CONFIG_HEADERS = $CONFIG_HEADERS
  23129. CONFIG_LINKS = $CONFIG_LINKS
  23130. CONFIG_COMMANDS = $CONFIG_COMMANDS
  23131. $ $0 $@
  23132. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  23133. "
  23134. _ACEOF
  23135. cat >>$CONFIG_STATUS <<_ACEOF
  23136. # Files that config.status was made for.
  23137. config_files="$ac_config_files"
  23138. config_headers="$ac_config_headers"
  23139. config_commands="$ac_config_commands"
  23140. _ACEOF
  23141. cat >>$CONFIG_STATUS <<\_ACEOF
  23142. ac_cs_usage="\
  23143. \`$as_me' instantiates files from templates according to the
  23144. current configuration.
  23145. Usage: $0 [OPTIONS] [FILE]...
  23146. -h, --help print this help, then exit
  23147. -V, --version print version number and configuration settings, then exit
  23148. -q, --quiet do not print progress messages
  23149. -d, --debug don't remove temporary files
  23150. --recheck update $as_me by reconfiguring in the same conditions
  23151. --file=FILE[:TEMPLATE]
  23152. instantiate the configuration file FILE
  23153. --header=FILE[:TEMPLATE]
  23154. instantiate the configuration header FILE
  23155. Configuration files:
  23156. $config_files
  23157. Configuration headers:
  23158. $config_headers
  23159. Configuration commands:
  23160. $config_commands
  23161. Report bugs to <bug-autoconf@gnu.org>."
  23162. _ACEOF
  23163. cat >>$CONFIG_STATUS <<_ACEOF
  23164. ac_cs_version="\\
  23165. DevIL config.status 1.7.8
  23166. configured by $0, generated by GNU Autoconf 2.61,
  23167. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  23168. Copyright (C) 2006 Free Software Foundation, Inc.
  23169. This config.status script is free software; the Free Software Foundation
  23170. gives unlimited permission to copy, distribute and modify it."
  23171. ac_pwd='$ac_pwd'
  23172. srcdir='$srcdir'
  23173. INSTALL='$INSTALL'
  23174. MKDIR_P='$MKDIR_P'
  23175. _ACEOF
  23176. cat >>$CONFIG_STATUS <<\_ACEOF
  23177. # If no file are specified by the user, then we need to provide default
  23178. # value. By we need to know if files were specified by the user.
  23179. ac_need_defaults=:
  23180. while test $# != 0
  23181. do
  23182. case $1 in
  23183. --*=*)
  23184. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  23185. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  23186. ac_shift=:
  23187. ;;
  23188. *)
  23189. ac_option=$1
  23190. ac_optarg=$2
  23191. ac_shift=shift
  23192. ;;
  23193. esac
  23194. case $ac_option in
  23195. # Handling of the options.
  23196. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  23197. ac_cs_recheck=: ;;
  23198. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  23199. echo "$ac_cs_version"; exit ;;
  23200. --debug | --debu | --deb | --de | --d | -d )
  23201. debug=: ;;
  23202. --file | --fil | --fi | --f )
  23203. $ac_shift
  23204. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  23205. ac_need_defaults=false;;
  23206. --header | --heade | --head | --hea )
  23207. $ac_shift
  23208. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  23209. ac_need_defaults=false;;
  23210. --he | --h)
  23211. # Conflict between --help and --header
  23212. { echo "$as_me: error: ambiguous option: $1
  23213. Try \`$0 --help' for more information." >&2
  23214. { (exit 1); exit 1; }; };;
  23215. --help | --hel | -h )
  23216. echo "$ac_cs_usage"; exit ;;
  23217. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  23218. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  23219. ac_cs_silent=: ;;
  23220. # This is an error.
  23221. -*) { echo "$as_me: error: unrecognized option: $1
  23222. Try \`$0 --help' for more information." >&2
  23223. { (exit 1); exit 1; }; } ;;
  23224. *) ac_config_targets="$ac_config_targets $1"
  23225. ac_need_defaults=false ;;
  23226. esac
  23227. shift
  23228. done
  23229. ac_configure_extra_args=
  23230. if $ac_cs_silent; then
  23231. exec 6>/dev/null
  23232. ac_configure_extra_args="$ac_configure_extra_args --silent"
  23233. fi
  23234. _ACEOF
  23235. cat >>$CONFIG_STATUS <<_ACEOF
  23236. if \$ac_cs_recheck; then
  23237. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  23238. CONFIG_SHELL=$SHELL
  23239. export CONFIG_SHELL
  23240. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  23241. fi
  23242. _ACEOF
  23243. cat >>$CONFIG_STATUS <<\_ACEOF
  23244. exec 5>>config.log
  23245. {
  23246. echo
  23247. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  23248. ## Running $as_me. ##
  23249. _ASBOX
  23250. echo "$ac_log"
  23251. } >&5
  23252. _ACEOF
  23253. cat >>$CONFIG_STATUS <<_ACEOF
  23254. #
  23255. # INIT-COMMANDS
  23256. #
  23257. # The HP-UX ksh and POSIX shell print the target directory to stdout
  23258. # if CDPATH is set.
  23259. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  23260. sed_quote_subst='$sed_quote_subst'
  23261. double_quote_subst='$double_quote_subst'
  23262. delay_variable_subst='$delay_variable_subst'
  23263. macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  23264. macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  23265. enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  23266. enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  23267. pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  23268. enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  23269. host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  23270. host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  23271. host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  23272. build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  23273. build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  23274. build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  23275. SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  23276. Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  23277. GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  23278. EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  23279. FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  23280. LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  23281. NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  23282. LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  23283. max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  23284. ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  23285. exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  23286. lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  23287. lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  23288. lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  23289. reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  23290. reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  23291. deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  23292. file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  23293. AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  23294. AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  23295. STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  23296. RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  23297. old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  23298. old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  23299. old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  23300. CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  23301. CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  23302. compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  23303. GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  23304. lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  23305. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  23306. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
  23307. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  23308. objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  23309. SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  23310. ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  23311. MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  23312. lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  23313. lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  23314. lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  23315. lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  23316. lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  23317. need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  23318. DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  23319. NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  23320. LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  23321. OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  23322. OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  23323. libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  23324. shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  23325. extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  23326. archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  23327. enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  23328. export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  23329. whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  23330. compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  23331. old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  23332. old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  23333. archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  23334. archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  23335. module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  23336. module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  23337. with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  23338. allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  23339. no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  23340. hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  23341. hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  23342. hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  23343. hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  23344. hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  23345. hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  23346. hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  23347. hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  23348. inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  23349. link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  23350. fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  23351. always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  23352. export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  23353. exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  23354. include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  23355. prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  23356. file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  23357. variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  23358. need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  23359. need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  23360. version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  23361. runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  23362. shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  23363. shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  23364. libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  23365. library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  23366. soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  23367. postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  23368. postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  23369. finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  23370. finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  23371. hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  23372. sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  23373. sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  23374. hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  23375. enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  23376. enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  23377. enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  23378. old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  23379. striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  23380. AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
  23381. DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  23382. OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  23383. compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
  23384. predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  23385. postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  23386. predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
  23387. postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
  23388. compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
  23389. LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  23390. old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  23391. compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  23392. GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  23393. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  23394. lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  23395. lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  23396. lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  23397. lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  23398. archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  23399. enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  23400. export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  23401. whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  23402. compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  23403. old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  23404. old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  23405. archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  23406. archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  23407. module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  23408. module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  23409. with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  23410. allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  23411. no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  23412. hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  23413. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  23414. hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  23415. hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  23416. hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  23417. hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  23418. hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  23419. hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  23420. inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  23421. link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  23422. fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  23423. always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  23424. export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  23425. exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  23426. include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  23427. prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  23428. file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  23429. hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  23430. compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  23431. predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  23432. postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  23433. predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  23434. postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  23435. compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  23436. LTCC='$LTCC'
  23437. LTCFLAGS='$LTCFLAGS'
  23438. compiler='$compiler_DEFAULT'
  23439. # Quote evaled strings.
  23440. for var in SED \
  23441. GREP \
  23442. EGREP \
  23443. FGREP \
  23444. LD \
  23445. NM \
  23446. LN_S \
  23447. lt_SP2NL \
  23448. lt_NL2SP \
  23449. reload_flag \
  23450. deplibs_check_method \
  23451. file_magic_cmd \
  23452. AR \
  23453. AR_FLAGS \
  23454. STRIP \
  23455. RANLIB \
  23456. CC \
  23457. CFLAGS \
  23458. compiler \
  23459. lt_cv_sys_global_symbol_pipe \
  23460. lt_cv_sys_global_symbol_to_cdecl \
  23461. lt_cv_sys_global_symbol_to_c_name_address \
  23462. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  23463. SHELL \
  23464. ECHO \
  23465. lt_prog_compiler_no_builtin_flag \
  23466. lt_prog_compiler_wl \
  23467. lt_prog_compiler_pic \
  23468. lt_prog_compiler_static \
  23469. lt_cv_prog_compiler_c_o \
  23470. need_locks \
  23471. DSYMUTIL \
  23472. NMEDIT \
  23473. LIPO \
  23474. OTOOL \
  23475. OTOOL64 \
  23476. shrext_cmds \
  23477. export_dynamic_flag_spec \
  23478. whole_archive_flag_spec \
  23479. compiler_needs_object \
  23480. with_gnu_ld \
  23481. allow_undefined_flag \
  23482. no_undefined_flag \
  23483. hardcode_libdir_flag_spec \
  23484. hardcode_libdir_flag_spec_ld \
  23485. hardcode_libdir_separator \
  23486. fix_srcfile_path \
  23487. exclude_expsyms \
  23488. include_expsyms \
  23489. file_list_spec \
  23490. variables_saved_for_relink \
  23491. libname_spec \
  23492. library_names_spec \
  23493. soname_spec \
  23494. finish_eval \
  23495. old_striplib \
  23496. striplib \
  23497. compiler_lib_search_dirs \
  23498. predep_objects \
  23499. postdep_objects \
  23500. predeps \
  23501. postdeps \
  23502. compiler_lib_search_path \
  23503. LD_CXX \
  23504. compiler_CXX \
  23505. lt_prog_compiler_no_builtin_flag_CXX \
  23506. lt_prog_compiler_wl_CXX \
  23507. lt_prog_compiler_pic_CXX \
  23508. lt_prog_compiler_static_CXX \
  23509. lt_cv_prog_compiler_c_o_CXX \
  23510. export_dynamic_flag_spec_CXX \
  23511. whole_archive_flag_spec_CXX \
  23512. compiler_needs_object_CXX \
  23513. with_gnu_ld_CXX \
  23514. allow_undefined_flag_CXX \
  23515. no_undefined_flag_CXX \
  23516. hardcode_libdir_flag_spec_CXX \
  23517. hardcode_libdir_flag_spec_ld_CXX \
  23518. hardcode_libdir_separator_CXX \
  23519. fix_srcfile_path_CXX \
  23520. exclude_expsyms_CXX \
  23521. include_expsyms_CXX \
  23522. file_list_spec_CXX \
  23523. compiler_lib_search_dirs_CXX \
  23524. predep_objects_CXX \
  23525. postdep_objects_CXX \
  23526. predeps_CXX \
  23527. postdeps_CXX \
  23528. compiler_lib_search_path_CXX; do
  23529. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  23530. *[\\\\\\\`\\"\\\$]*)
  23531. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  23532. ;;
  23533. *)
  23534. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  23535. ;;
  23536. esac
  23537. done
  23538. # Double-quote double-evaled strings.
  23539. for var in reload_cmds \
  23540. old_postinstall_cmds \
  23541. old_postuninstall_cmds \
  23542. old_archive_cmds \
  23543. extract_expsyms_cmds \
  23544. old_archive_from_new_cmds \
  23545. old_archive_from_expsyms_cmds \
  23546. archive_cmds \
  23547. archive_expsym_cmds \
  23548. module_cmds \
  23549. module_expsym_cmds \
  23550. export_symbols_cmds \
  23551. prelink_cmds \
  23552. postinstall_cmds \
  23553. postuninstall_cmds \
  23554. finish_cmds \
  23555. sys_lib_search_path_spec \
  23556. sys_lib_dlsearch_path_spec \
  23557. old_archive_cmds_CXX \
  23558. old_archive_from_new_cmds_CXX \
  23559. old_archive_from_expsyms_cmds_CXX \
  23560. archive_cmds_CXX \
  23561. archive_expsym_cmds_CXX \
  23562. module_cmds_CXX \
  23563. module_expsym_cmds_CXX \
  23564. export_symbols_cmds_CXX \
  23565. prelink_cmds_CXX; do
  23566. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  23567. *[\\\\\\\`\\"\\\$]*)
  23568. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  23569. ;;
  23570. *)
  23571. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  23572. ;;
  23573. esac
  23574. done
  23575. # Fix-up fallback echo if it was mangled by the above quoting rules.
  23576. case \$lt_ECHO in
  23577. *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  23578. ;;
  23579. esac
  23580. ac_aux_dir='$ac_aux_dir'
  23581. xsi_shell='$xsi_shell'
  23582. lt_shell_append='$lt_shell_append'
  23583. # See if we are running on zsh, and set the options which allow our
  23584. # commands through without removal of \ escapes INIT.
  23585. if test -n "\${ZSH_VERSION+set}" ; then
  23586. setopt NO_GLOB_SUBST
  23587. fi
  23588. PACKAGE='$PACKAGE'
  23589. VERSION='$VERSION'
  23590. TIMESTAMP='$TIMESTAMP'
  23591. RM='$RM'
  23592. ofile='$ofile'
  23593. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  23594. _ACEOF
  23595. cat >>$CONFIG_STATUS <<\_ACEOF
  23596. # Handling of arguments.
  23597. for ac_config_target in $ac_config_targets
  23598. do
  23599. case $ac_config_target in
  23600. "include/IL/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/IL/config.h" ;;
  23601. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  23602. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  23603. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  23604. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  23605. "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
  23606. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  23607. "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
  23608. "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
  23609. "data/IL.pc") CONFIG_FILES="$CONFIG_FILES data/IL.pc" ;;
  23610. "data/ILU.pc") CONFIG_FILES="$CONFIG_FILES data/ILU.pc" ;;
  23611. "data/ILUT.pc") CONFIG_FILES="$CONFIG_FILES data/ILUT.pc" ;;
  23612. "test/format_test/format_checks.sh") CONFIG_FILES="$CONFIG_FILES test/format_test/format_checks.sh" ;;
  23613. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  23614. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  23615. { (exit 1); exit 1; }; };;
  23616. esac
  23617. done
  23618. # If the user did not use the arguments to specify the items to instantiate,
  23619. # then the envvar interface is used. Set only those that are not.
  23620. # We use the long form for the default assignment because of an extremely
  23621. # bizarre bug on SunOS 4.1.3.
  23622. if $ac_need_defaults; then
  23623. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  23624. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  23625. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  23626. fi
  23627. # Have a temporary directory for convenience. Make it in the build tree
  23628. # simply because there is no reason against having it here, and in addition,
  23629. # creating and moving files from /tmp can sometimes cause problems.
  23630. # Hook for its removal unless debugging.
  23631. # Note that there is a small window in which the directory will not be cleaned:
  23632. # after its creation but before its name has been assigned to `$tmp'.
  23633. $debug ||
  23634. {
  23635. tmp=
  23636. trap 'exit_status=$?
  23637. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  23638. ' 0
  23639. trap '{ (exit 1); exit 1; }' 1 2 13 15
  23640. }
  23641. # Create a (secure) tmp directory for tmp files.
  23642. {
  23643. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  23644. test -n "$tmp" && test -d "$tmp"
  23645. } ||
  23646. {
  23647. tmp=./conf$$-$RANDOM
  23648. (umask 077 && mkdir "$tmp")
  23649. } ||
  23650. {
  23651. echo "$me: cannot create a temporary directory in ." >&2
  23652. { (exit 1); exit 1; }
  23653. }
  23654. #
  23655. # Set up the sed scripts for CONFIG_FILES section.
  23656. #
  23657. # No need to generate the scripts if there are no CONFIG_FILES.
  23658. # This happens for instance when ./config.status config.h
  23659. if test -n "$CONFIG_FILES"; then
  23660. _ACEOF
  23661. ac_delim='%!_!# '
  23662. for ac_last_try in false false false false false :; do
  23663. cat >conf$$subs.sed <<_ACEOF
  23664. SHELL!$SHELL$ac_delim
  23665. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  23666. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  23667. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  23668. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  23669. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  23670. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  23671. exec_prefix!$exec_prefix$ac_delim
  23672. prefix!$prefix$ac_delim
  23673. program_transform_name!$program_transform_name$ac_delim
  23674. bindir!$bindir$ac_delim
  23675. sbindir!$sbindir$ac_delim
  23676. libexecdir!$libexecdir$ac_delim
  23677. datarootdir!$datarootdir$ac_delim
  23678. datadir!$datadir$ac_delim
  23679. sysconfdir!$sysconfdir$ac_delim
  23680. sharedstatedir!$sharedstatedir$ac_delim
  23681. localstatedir!$localstatedir$ac_delim
  23682. includedir!$includedir$ac_delim
  23683. oldincludedir!$oldincludedir$ac_delim
  23684. docdir!$docdir$ac_delim
  23685. infodir!$infodir$ac_delim
  23686. htmldir!$htmldir$ac_delim
  23687. dvidir!$dvidir$ac_delim
  23688. pdfdir!$pdfdir$ac_delim
  23689. psdir!$psdir$ac_delim
  23690. libdir!$libdir$ac_delim
  23691. localedir!$localedir$ac_delim
  23692. mandir!$mandir$ac_delim
  23693. DEFS!$DEFS$ac_delim
  23694. ECHO_C!$ECHO_C$ac_delim
  23695. ECHO_N!$ECHO_N$ac_delim
  23696. ECHO_T!$ECHO_T$ac_delim
  23697. LIBS!$LIBS$ac_delim
  23698. build_alias!$build_alias$ac_delim
  23699. host_alias!$host_alias$ac_delim
  23700. target_alias!$target_alias$ac_delim
  23701. LIBTOOL!$LIBTOOL$ac_delim
  23702. build!$build$ac_delim
  23703. build_cpu!$build_cpu$ac_delim
  23704. build_vendor!$build_vendor$ac_delim
  23705. build_os!$build_os$ac_delim
  23706. host!$host$ac_delim
  23707. host_cpu!$host_cpu$ac_delim
  23708. host_vendor!$host_vendor$ac_delim
  23709. host_os!$host_os$ac_delim
  23710. CC!$CC$ac_delim
  23711. CFLAGS!$CFLAGS$ac_delim
  23712. LDFLAGS!$LDFLAGS$ac_delim
  23713. CPPFLAGS!$CPPFLAGS$ac_delim
  23714. ac_ct_CC!$ac_ct_CC$ac_delim
  23715. EXEEXT!$EXEEXT$ac_delim
  23716. OBJEXT!$OBJEXT$ac_delim
  23717. SED!$SED$ac_delim
  23718. GREP!$GREP$ac_delim
  23719. EGREP!$EGREP$ac_delim
  23720. FGREP!$FGREP$ac_delim
  23721. LD!$LD$ac_delim
  23722. DUMPBIN!$DUMPBIN$ac_delim
  23723. ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
  23724. NM!$NM$ac_delim
  23725. LN_S!$LN_S$ac_delim
  23726. AR!$AR$ac_delim
  23727. STRIP!$STRIP$ac_delim
  23728. RANLIB!$RANLIB$ac_delim
  23729. lt_ECHO!$lt_ECHO$ac_delim
  23730. DSYMUTIL!$DSYMUTIL$ac_delim
  23731. NMEDIT!$NMEDIT$ac_delim
  23732. LIPO!$LIPO$ac_delim
  23733. OTOOL!$OTOOL$ac_delim
  23734. OTOOL64!$OTOOL64$ac_delim
  23735. CPP!$CPP$ac_delim
  23736. AS!$AS$ac_delim
  23737. DLLTOOL!$DLLTOOL$ac_delim
  23738. OBJDUMP!$OBJDUMP$ac_delim
  23739. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  23740. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  23741. INSTALL_DATA!$INSTALL_DATA$ac_delim
  23742. am__isrc!$am__isrc$ac_delim
  23743. CYGPATH_W!$CYGPATH_W$ac_delim
  23744. PACKAGE!$PACKAGE$ac_delim
  23745. VERSION!$VERSION$ac_delim
  23746. ACLOCAL!$ACLOCAL$ac_delim
  23747. AUTOCONF!$AUTOCONF$ac_delim
  23748. AUTOMAKE!$AUTOMAKE$ac_delim
  23749. AUTOHEADER!$AUTOHEADER$ac_delim
  23750. MAKEINFO!$MAKEINFO$ac_delim
  23751. install_sh!$install_sh$ac_delim
  23752. INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  23753. mkdir_p!$mkdir_p$ac_delim
  23754. AWK!$AWK$ac_delim
  23755. SET_MAKE!$SET_MAKE$ac_delim
  23756. am__leading_dot!$am__leading_dot$ac_delim
  23757. AMTAR!$AMTAR$ac_delim
  23758. am__tar!$am__tar$ac_delim
  23759. am__untar!$am__untar$ac_delim
  23760. DEPDIR!$DEPDIR$ac_delim
  23761. _ACEOF
  23762. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  23763. break
  23764. elif $ac_last_try; then
  23765. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  23766. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  23767. { (exit 1); exit 1; }; }
  23768. else
  23769. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  23770. fi
  23771. done
  23772. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  23773. if test -n "$ac_eof"; then
  23774. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  23775. ac_eof=`expr $ac_eof + 1`
  23776. fi
  23777. cat >>$CONFIG_STATUS <<_ACEOF
  23778. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  23779. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  23780. _ACEOF
  23781. sed '
  23782. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  23783. s/^/s,@/; s/!/@,|#_!!_#|/
  23784. :n
  23785. t n
  23786. s/'"$ac_delim"'$/,g/; t
  23787. s/$/\\/; p
  23788. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  23789. ' >>$CONFIG_STATUS <conf$$subs.sed
  23790. rm -f conf$$subs.sed
  23791. cat >>$CONFIG_STATUS <<_ACEOF
  23792. CEOF$ac_eof
  23793. _ACEOF
  23794. ac_delim='%!_!# '
  23795. for ac_last_try in false false false false false :; do
  23796. cat >conf$$subs.sed <<_ACEOF
  23797. am__include!$am__include$ac_delim
  23798. am__quote!$am__quote$ac_delim
  23799. AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  23800. AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  23801. AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  23802. CCDEPMODE!$CCDEPMODE$ac_delim
  23803. am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  23804. am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  23805. DEVIL_LTVERSION!$DEVIL_LTVERSION$ac_delim
  23806. CXX!$CXX$ac_delim
  23807. CXXFLAGS!$CXXFLAGS$ac_delim
  23808. ac_ct_CXX!$ac_ct_CXX$ac_delim
  23809. CXXDEPMODE!$CXXDEPMODE$ac_delim
  23810. am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  23811. am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  23812. CXXCPP!$CXXCPP$ac_delim
  23813. BUILD_EXAMPLES_TRUE!$BUILD_EXAMPLES_TRUE$ac_delim
  23814. BUILD_EXAMPLES_FALSE!$BUILD_EXAMPLES_FALSE$ac_delim
  23815. BUILD_IL_TRUE!$BUILD_IL_TRUE$ac_delim
  23816. BUILD_IL_FALSE!$BUILD_IL_FALSE$ac_delim
  23817. BUILD_ILU_TRUE!$BUILD_ILU_TRUE$ac_delim
  23818. BUILD_ILU_FALSE!$BUILD_ILU_FALSE$ac_delim
  23819. BUILD_ILUT_TRUE!$BUILD_ILUT_TRUE$ac_delim
  23820. BUILD_ILUT_FALSE!$BUILD_ILUT_FALSE$ac_delim
  23821. PKG_CONFIG!$PKG_CONFIG$ac_delim
  23822. OPENEXR_CFLAGS!$OPENEXR_CFLAGS$ac_delim
  23823. OPENEXR_LIBS!$OPENEXR_LIBS$ac_delim
  23824. ALLEGRO_CONFIG!$ALLEGRO_CONFIG$ac_delim
  23825. allegro_CFLAGS!$allegro_CFLAGS$ac_delim
  23826. allegro_LIBS!$allegro_LIBS$ac_delim
  23827. XMKMF!$XMKMF$ac_delim
  23828. acx_pthread_config!$acx_pthread_config$ac_delim
  23829. PTHREAD_CC!$PTHREAD_CC$ac_delim
  23830. PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
  23831. PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
  23832. GL_CFLAGS!$GL_CFLAGS$ac_delim
  23833. GL_LIBS!$GL_LIBS$ac_delim
  23834. GLU_CFLAGS!$GLU_CFLAGS$ac_delim
  23835. GLU_LIBS!$GLU_LIBS$ac_delim
  23836. X_CFLAGS!$X_CFLAGS$ac_delim
  23837. X_PRE_LIBS!$X_PRE_LIBS$ac_delim
  23838. X_LIBS!$X_LIBS$ac_delim
  23839. X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
  23840. GLUT_CFLAGS!$GLUT_CFLAGS$ac_delim
  23841. GLUT_LIBS!$GLUT_LIBS$ac_delim
  23842. SDL_CONFIG!$SDL_CONFIG$ac_delim
  23843. SDL_CFLAGS!$SDL_CFLAGS$ac_delim
  23844. SDL_LIBS!$SDL_LIBS$ac_delim
  23845. USE_ALLEGRO_TRUE!$USE_ALLEGRO_TRUE$ac_delim
  23846. USE_ALLEGRO_FALSE!$USE_ALLEGRO_FALSE$ac_delim
  23847. USE_DIRECTX8_TRUE!$USE_DIRECTX8_TRUE$ac_delim
  23848. USE_DIRECTX8_FALSE!$USE_DIRECTX8_FALSE$ac_delim
  23849. USE_DIRECTX9_TRUE!$USE_DIRECTX9_TRUE$ac_delim
  23850. USE_DIRECTX9_FALSE!$USE_DIRECTX9_FALSE$ac_delim
  23851. USE_DIRECTX_TRUE!$USE_DIRECTX_TRUE$ac_delim
  23852. USE_DIRECTX_FALSE!$USE_DIRECTX_FALSE$ac_delim
  23853. USE_OPENGL_TRUE!$USE_OPENGL_TRUE$ac_delim
  23854. USE_OPENGL_FALSE!$USE_OPENGL_FALSE$ac_delim
  23855. HAVE_GLUT_TRUE!$HAVE_GLUT_TRUE$ac_delim
  23856. HAVE_GLUT_FALSE!$HAVE_GLUT_FALSE$ac_delim
  23857. USE_SDL_TRUE!$USE_SDL_TRUE$ac_delim
  23858. USE_SDL_FALSE!$USE_SDL_FALSE$ac_delim
  23859. USE_W32_TRUE!$USE_W32_TRUE$ac_delim
  23860. USE_W32_FALSE!$USE_W32_FALSE$ac_delim
  23861. USE_X11_TRUE!$USE_X11_TRUE$ac_delim
  23862. USE_X11_FALSE!$USE_X11_FALSE$ac_delim
  23863. PLATFORM!$PLATFORM$ac_delim
  23864. WINDOWS_BUILD_TRUE!$WINDOWS_BUILD_TRUE$ac_delim
  23865. WINDOWS_BUILD_FALSE!$WINDOWS_BUILD_FALSE$ac_delim
  23866. GENERAL_CFLAGS!$GENERAL_CFLAGS$ac_delim
  23867. IL_CFLAGS!$IL_CFLAGS$ac_delim
  23868. IL_LIBS!$IL_LIBS$ac_delim
  23869. ILU_CFLAGS!$ILU_CFLAGS$ac_delim
  23870. ILU_LIBS!$ILU_LIBS$ac_delim
  23871. ILUT_CFLAGS!$ILUT_CFLAGS$ac_delim
  23872. ILUT_LIBS!$ILUT_LIBS$ac_delim
  23873. LIBILUT_WIN32LIBPATH!$LIBILUT_WIN32LIBPATH$ac_delim
  23874. SUPPORTED_FORMATS!$SUPPORTED_FORMATS$ac_delim
  23875. LIBOBJS!$LIBOBJS$ac_delim
  23876. LTLIBOBJS!$LTLIBOBJS$ac_delim
  23877. _ACEOF
  23878. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 80; then
  23879. break
  23880. elif $ac_last_try; then
  23881. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  23882. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  23883. { (exit 1); exit 1; }; }
  23884. else
  23885. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  23886. fi
  23887. done
  23888. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  23889. if test -n "$ac_eof"; then
  23890. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  23891. ac_eof=`expr $ac_eof + 1`
  23892. fi
  23893. cat >>$CONFIG_STATUS <<_ACEOF
  23894. cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  23895. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  23896. _ACEOF
  23897. sed '
  23898. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  23899. s/^/s,@/; s/!/@,|#_!!_#|/
  23900. :n
  23901. t n
  23902. s/'"$ac_delim"'$/,g/; t
  23903. s/$/\\/; p
  23904. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  23905. ' >>$CONFIG_STATUS <conf$$subs.sed
  23906. rm -f conf$$subs.sed
  23907. cat >>$CONFIG_STATUS <<_ACEOF
  23908. :end
  23909. s/|#_!!_#|//g
  23910. CEOF$ac_eof
  23911. _ACEOF
  23912. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  23913. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  23914. # trailing colons and then remove the whole line if VPATH becomes empty
  23915. # (actually we leave an empty line to preserve line numbers).
  23916. if test "x$srcdir" = x.; then
  23917. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  23918. s/:*\$(srcdir):*/:/
  23919. s/:*\${srcdir}:*/:/
  23920. s/:*@srcdir@:*/:/
  23921. s/^\([^=]*=[ ]*\):*/\1/
  23922. s/:*$//
  23923. s/^[^=]*=[ ]*$//
  23924. }'
  23925. fi
  23926. cat >>$CONFIG_STATUS <<\_ACEOF
  23927. fi # test -n "$CONFIG_FILES"
  23928. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  23929. do
  23930. case $ac_tag in
  23931. :[FHLC]) ac_mode=$ac_tag; continue;;
  23932. esac
  23933. case $ac_mode$ac_tag in
  23934. :[FHL]*:*);;
  23935. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  23936. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  23937. { (exit 1); exit 1; }; };;
  23938. :[FH]-) ac_tag=-:-;;
  23939. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  23940. esac
  23941. ac_save_IFS=$IFS
  23942. IFS=:
  23943. set x $ac_tag
  23944. IFS=$ac_save_IFS
  23945. shift
  23946. ac_file=$1
  23947. shift
  23948. case $ac_mode in
  23949. :L) ac_source=$1;;
  23950. :[FH])
  23951. ac_file_inputs=
  23952. for ac_f
  23953. do
  23954. case $ac_f in
  23955. -) ac_f="$tmp/stdin";;
  23956. *) # Look for the file first in the build tree, then in the source tree
  23957. # (if the path is not absolute). The absolute path cannot be DOS-style,
  23958. # because $ac_f cannot contain `:'.
  23959. test -f "$ac_f" ||
  23960. case $ac_f in
  23961. [\\/$]*) false;;
  23962. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  23963. esac ||
  23964. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  23965. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  23966. { (exit 1); exit 1; }; };;
  23967. esac
  23968. ac_file_inputs="$ac_file_inputs $ac_f"
  23969. done
  23970. # Let's still pretend it is `configure' which instantiates (i.e., don't
  23971. # use $as_me), people would be surprised to read:
  23972. # /* config.h. Generated by config.status. */
  23973. configure_input="Generated from "`IFS=:
  23974. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  23975. if test x"$ac_file" != x-; then
  23976. configure_input="$ac_file. $configure_input"
  23977. { echo "$as_me:$LINENO: creating $ac_file" >&5
  23978. echo "$as_me: creating $ac_file" >&6;}
  23979. fi
  23980. case $ac_tag in
  23981. *:-:* | *:-) cat >"$tmp/stdin";;
  23982. esac
  23983. ;;
  23984. esac
  23985. ac_dir=`$as_dirname -- "$ac_file" ||
  23986. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23987. X"$ac_file" : 'X\(//\)[^/]' \| \
  23988. X"$ac_file" : 'X\(//\)$' \| \
  23989. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  23990. echo X"$ac_file" |
  23991. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23992. s//\1/
  23993. q
  23994. }
  23995. /^X\(\/\/\)[^/].*/{
  23996. s//\1/
  23997. q
  23998. }
  23999. /^X\(\/\/\)$/{
  24000. s//\1/
  24001. q
  24002. }
  24003. /^X\(\/\).*/{
  24004. s//\1/
  24005. q
  24006. }
  24007. s/.*/./; q'`
  24008. { as_dir="$ac_dir"
  24009. case $as_dir in #(
  24010. -*) as_dir=./$as_dir;;
  24011. esac
  24012. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  24013. as_dirs=
  24014. while :; do
  24015. case $as_dir in #(
  24016. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  24017. *) as_qdir=$as_dir;;
  24018. esac
  24019. as_dirs="'$as_qdir' $as_dirs"
  24020. as_dir=`$as_dirname -- "$as_dir" ||
  24021. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  24022. X"$as_dir" : 'X\(//\)[^/]' \| \
  24023. X"$as_dir" : 'X\(//\)$' \| \
  24024. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  24025. echo X"$as_dir" |
  24026. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  24027. s//\1/
  24028. q
  24029. }
  24030. /^X\(\/\/\)[^/].*/{
  24031. s//\1/
  24032. q
  24033. }
  24034. /^X\(\/\/\)$/{
  24035. s//\1/
  24036. q
  24037. }
  24038. /^X\(\/\).*/{
  24039. s//\1/
  24040. q
  24041. }
  24042. s/.*/./; q'`
  24043. test -d "$as_dir" && break
  24044. done
  24045. test -z "$as_dirs" || eval "mkdir $as_dirs"
  24046. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  24047. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  24048. { (exit 1); exit 1; }; }; }
  24049. ac_builddir=.
  24050. case "$ac_dir" in
  24051. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  24052. *)
  24053. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  24054. # A ".." for each directory in $ac_dir_suffix.
  24055. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  24056. case $ac_top_builddir_sub in
  24057. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  24058. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  24059. esac ;;
  24060. esac
  24061. ac_abs_top_builddir=$ac_pwd
  24062. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  24063. # for backward compatibility:
  24064. ac_top_builddir=$ac_top_build_prefix
  24065. case $srcdir in
  24066. .) # We are building in place.
  24067. ac_srcdir=.
  24068. ac_top_srcdir=$ac_top_builddir_sub
  24069. ac_abs_top_srcdir=$ac_pwd ;;
  24070. [\\/]* | ?:[\\/]* ) # Absolute name.
  24071. ac_srcdir=$srcdir$ac_dir_suffix;
  24072. ac_top_srcdir=$srcdir
  24073. ac_abs_top_srcdir=$srcdir ;;
  24074. *) # Relative name.
  24075. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  24076. ac_top_srcdir=$ac_top_build_prefix$srcdir
  24077. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  24078. esac
  24079. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  24080. case $ac_mode in
  24081. :F)
  24082. #
  24083. # CONFIG_FILE
  24084. #
  24085. case $INSTALL in
  24086. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  24087. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  24088. esac
  24089. ac_MKDIR_P=$MKDIR_P
  24090. case $MKDIR_P in
  24091. [\\/$]* | ?:[\\/]* ) ;;
  24092. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  24093. esac
  24094. _ACEOF
  24095. cat >>$CONFIG_STATUS <<\_ACEOF
  24096. # If the template does not know about datarootdir, expand it.
  24097. # FIXME: This hack should be removed a few years after 2.60.
  24098. ac_datarootdir_hack=; ac_datarootdir_seen=
  24099. case `sed -n '/datarootdir/ {
  24100. p
  24101. q
  24102. }
  24103. /@datadir@/p
  24104. /@docdir@/p
  24105. /@infodir@/p
  24106. /@localedir@/p
  24107. /@mandir@/p
  24108. ' $ac_file_inputs` in
  24109. *datarootdir*) ac_datarootdir_seen=yes;;
  24110. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  24111. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  24112. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  24113. _ACEOF
  24114. cat >>$CONFIG_STATUS <<_ACEOF
  24115. ac_datarootdir_hack='
  24116. s&@datadir@&$datadir&g
  24117. s&@docdir@&$docdir&g
  24118. s&@infodir@&$infodir&g
  24119. s&@localedir@&$localedir&g
  24120. s&@mandir@&$mandir&g
  24121. s&\\\${datarootdir}&$datarootdir&g' ;;
  24122. esac
  24123. _ACEOF
  24124. # Neutralize VPATH when `$srcdir' = `.'.
  24125. # Shell code in configure.ac might set extrasub.
  24126. # FIXME: do we really want to maintain this feature?
  24127. cat >>$CONFIG_STATUS <<_ACEOF
  24128. sed "$ac_vpsub
  24129. $extrasub
  24130. _ACEOF
  24131. cat >>$CONFIG_STATUS <<\_ACEOF
  24132. :t
  24133. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  24134. s&@configure_input@&$configure_input&;t t
  24135. s&@top_builddir@&$ac_top_builddir_sub&;t t
  24136. s&@srcdir@&$ac_srcdir&;t t
  24137. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  24138. s&@top_srcdir@&$ac_top_srcdir&;t t
  24139. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  24140. s&@builddir@&$ac_builddir&;t t
  24141. s&@abs_builddir@&$ac_abs_builddir&;t t
  24142. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  24143. s&@INSTALL@&$ac_INSTALL&;t t
  24144. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  24145. $ac_datarootdir_hack
  24146. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
  24147. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  24148. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  24149. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  24150. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  24151. which seems to be undefined. Please make sure it is defined." >&5
  24152. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  24153. which seems to be undefined. Please make sure it is defined." >&2;}
  24154. rm -f "$tmp/stdin"
  24155. case $ac_file in
  24156. -) cat "$tmp/out"; rm -f "$tmp/out";;
  24157. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  24158. esac
  24159. ;;
  24160. :H)
  24161. #
  24162. # CONFIG_HEADER
  24163. #
  24164. _ACEOF
  24165. # Transform confdefs.h into a sed script `conftest.defines', that
  24166. # substitutes the proper values into config.h.in to produce config.h.
  24167. rm -f conftest.defines conftest.tail
  24168. # First, append a space to every undef/define line, to ease matching.
  24169. echo 's/$/ /' >conftest.defines
  24170. # Then, protect against being on the right side of a sed subst, or in
  24171. # an unquoted here document, in config.status. If some macros were
  24172. # called several times there might be several #defines for the same
  24173. # symbol, which is useless. But do not sort them, since the last
  24174. # AC_DEFINE must be honored.
  24175. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  24176. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  24177. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  24178. # PARAMS is the parameter list in the macro definition--in most cases, it's
  24179. # just an empty string.
  24180. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  24181. ac_dB='\\)[ (].*,\\1define\\2'
  24182. ac_dC=' '
  24183. ac_dD=' ,'
  24184. uniq confdefs.h |
  24185. sed -n '
  24186. t rset
  24187. :rset
  24188. s/^[ ]*#[ ]*define[ ][ ]*//
  24189. t ok
  24190. d
  24191. :ok
  24192. s/[\\&,]/\\&/g
  24193. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  24194. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  24195. ' >>conftest.defines
  24196. # Remove the space that was appended to ease matching.
  24197. # Then replace #undef with comments. This is necessary, for
  24198. # example, in the case of _POSIX_SOURCE, which is predefined and required
  24199. # on some systems where configure will not decide to define it.
  24200. # (The regexp can be short, since the line contains either #define or #undef.)
  24201. echo 's/ $//
  24202. s,^[ #]*u.*,/* & */,' >>conftest.defines
  24203. # Break up conftest.defines:
  24204. ac_max_sed_lines=50
  24205. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  24206. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  24207. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  24208. # et cetera.
  24209. ac_in='$ac_file_inputs'
  24210. ac_out='"$tmp/out1"'
  24211. ac_nxt='"$tmp/out2"'
  24212. while :
  24213. do
  24214. # Write a here document:
  24215. cat >>$CONFIG_STATUS <<_ACEOF
  24216. # First, check the format of the line:
  24217. cat >"\$tmp/defines.sed" <<\\CEOF
  24218. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  24219. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  24220. b
  24221. :def
  24222. _ACEOF
  24223. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  24224. echo 'CEOF
  24225. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  24226. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  24227. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  24228. grep . conftest.tail >/dev/null || break
  24229. rm -f conftest.defines
  24230. mv conftest.tail conftest.defines
  24231. done
  24232. rm -f conftest.defines conftest.tail
  24233. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  24234. cat >>$CONFIG_STATUS <<\_ACEOF
  24235. if test x"$ac_file" != x-; then
  24236. echo "/* $configure_input */" >"$tmp/config.h"
  24237. cat "$ac_result" >>"$tmp/config.h"
  24238. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  24239. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  24240. echo "$as_me: $ac_file is unchanged" >&6;}
  24241. else
  24242. rm -f $ac_file
  24243. mv "$tmp/config.h" $ac_file
  24244. fi
  24245. else
  24246. echo "/* $configure_input */"
  24247. cat "$ac_result"
  24248. fi
  24249. rm -f "$tmp/out12"
  24250. # Compute $ac_file's index in $config_headers.
  24251. _am_arg=$ac_file
  24252. _am_stamp_count=1
  24253. for _am_header in $config_headers :; do
  24254. case $_am_header in
  24255. $_am_arg | $_am_arg:* )
  24256. break ;;
  24257. * )
  24258. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  24259. esac
  24260. done
  24261. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  24262. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  24263. X"$_am_arg" : 'X\(//\)[^/]' \| \
  24264. X"$_am_arg" : 'X\(//\)$' \| \
  24265. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  24266. echo X"$_am_arg" |
  24267. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  24268. s//\1/
  24269. q
  24270. }
  24271. /^X\(\/\/\)[^/].*/{
  24272. s//\1/
  24273. q
  24274. }
  24275. /^X\(\/\/\)$/{
  24276. s//\1/
  24277. q
  24278. }
  24279. /^X\(\/\).*/{
  24280. s//\1/
  24281. q
  24282. }
  24283. s/.*/./; q'`/stamp-h$_am_stamp_count
  24284. ;;
  24285. :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  24286. echo "$as_me: executing $ac_file commands" >&6;}
  24287. ;;
  24288. esac
  24289. case $ac_file$ac_mode in
  24290. "libtool":C)
  24291. # See if we are running on zsh, and set the options which allow our
  24292. # commands through without removal of \ escapes.
  24293. if test -n "${ZSH_VERSION+set}" ; then
  24294. setopt NO_GLOB_SUBST
  24295. fi
  24296. cfgfile="${ofile}T"
  24297. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  24298. $RM "$cfgfile"
  24299. cat <<_LT_EOF >> "$cfgfile"
  24300. #! $SHELL
  24301. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  24302. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  24303. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  24304. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  24305. #
  24306. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  24307. # 2006, 2007, 2008 Free Software Foundation, Inc.
  24308. # Written by Gordon Matzigkeit, 1996
  24309. #
  24310. # This file is part of GNU Libtool.
  24311. #
  24312. # GNU Libtool is free software; you can redistribute it and/or
  24313. # modify it under the terms of the GNU General Public License as
  24314. # published by the Free Software Foundation; either version 2 of
  24315. # the License, or (at your option) any later version.
  24316. #
  24317. # As a special exception to the GNU General Public License,
  24318. # if you distribute this file as part of a program or library that
  24319. # is built using GNU Libtool, you may include this file under the
  24320. # same distribution terms that you use for the rest of that program.
  24321. #
  24322. # GNU Libtool is distributed in the hope that it will be useful,
  24323. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  24324. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  24325. # GNU General Public License for more details.
  24326. #
  24327. # You should have received a copy of the GNU General Public License
  24328. # along with GNU Libtool; see the file COPYING. If not, a copy
  24329. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  24330. # obtained by writing to the Free Software Foundation, Inc.,
  24331. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  24332. # The names of the tagged configurations supported by this script.
  24333. available_tags="CXX "
  24334. # ### BEGIN LIBTOOL CONFIG
  24335. # Which release of libtool.m4 was used?
  24336. macro_version=$macro_version
  24337. macro_revision=$macro_revision
  24338. # Whether or not to build shared libraries.
  24339. build_libtool_libs=$enable_shared
  24340. # Whether or not to build static libraries.
  24341. build_old_libs=$enable_static
  24342. # What type of objects to build.
  24343. pic_mode=$pic_mode
  24344. # Whether or not to optimize for fast installation.
  24345. fast_install=$enable_fast_install
  24346. # The host system.
  24347. host_alias=$host_alias
  24348. host=$host
  24349. host_os=$host_os
  24350. # The build system.
  24351. build_alias=$build_alias
  24352. build=$build
  24353. build_os=$build_os
  24354. # A sed program that does not truncate output.
  24355. SED=$lt_SED
  24356. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  24357. Xsed="\$SED -e 1s/^X//"
  24358. # A grep program that handles long lines.
  24359. GREP=$lt_GREP
  24360. # An ERE matcher.
  24361. EGREP=$lt_EGREP
  24362. # A literal string matcher.
  24363. FGREP=$lt_FGREP
  24364. # A BSD- or MS-compatible name lister.
  24365. NM=$lt_NM
  24366. # Whether we need soft or hard links.
  24367. LN_S=$lt_LN_S
  24368. # What is the maximum length of a command?
  24369. max_cmd_len=$max_cmd_len
  24370. # Object file suffix (normally "o").
  24371. objext=$ac_objext
  24372. # Executable file suffix (normally "").
  24373. exeext=$exeext
  24374. # whether the shell understands "unset".
  24375. lt_unset=$lt_unset
  24376. # turn spaces into newlines.
  24377. SP2NL=$lt_lt_SP2NL
  24378. # turn newlines into spaces.
  24379. NL2SP=$lt_lt_NL2SP
  24380. # How to create reloadable object files.
  24381. reload_flag=$lt_reload_flag
  24382. reload_cmds=$lt_reload_cmds
  24383. # Method to check whether dependent libraries are shared objects.
  24384. deplibs_check_method=$lt_deplibs_check_method
  24385. # Command to use when deplibs_check_method == "file_magic".
  24386. file_magic_cmd=$lt_file_magic_cmd
  24387. # The archiver.
  24388. AR=$lt_AR
  24389. AR_FLAGS=$lt_AR_FLAGS
  24390. # A symbol stripping program.
  24391. STRIP=$lt_STRIP
  24392. # Commands used to install an old-style archive.
  24393. RANLIB=$lt_RANLIB
  24394. old_postinstall_cmds=$lt_old_postinstall_cmds
  24395. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  24396. # A C compiler.
  24397. LTCC=$lt_CC
  24398. # LTCC compiler flags.
  24399. LTCFLAGS=$lt_CFLAGS
  24400. # Take the output of nm and produce a listing of raw symbols and C names.
  24401. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  24402. # Transform the output of nm in a proper C declaration.
  24403. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  24404. # Transform the output of nm in a C name address pair.
  24405. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  24406. # Transform the output of nm in a C name address pair when lib prefix is needed.
  24407. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  24408. # The name of the directory that contains temporary libtool files.
  24409. objdir=$objdir
  24410. # Shell to use when invoking shell scripts.
  24411. SHELL=$lt_SHELL
  24412. # An echo program that does not interpret backslashes.
  24413. ECHO=$lt_ECHO
  24414. # Used to examine libraries when file_magic_cmd begins with "file".
  24415. MAGIC_CMD=$MAGIC_CMD
  24416. # Must we lock files when doing compilation?
  24417. need_locks=$lt_need_locks
  24418. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  24419. DSYMUTIL=$lt_DSYMUTIL
  24420. # Tool to change global to local symbols on Mac OS X.
  24421. NMEDIT=$lt_NMEDIT
  24422. # Tool to manipulate fat objects and archives on Mac OS X.
  24423. LIPO=$lt_LIPO
  24424. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  24425. OTOOL=$lt_OTOOL
  24426. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  24427. OTOOL64=$lt_OTOOL64
  24428. # Old archive suffix (normally "a").
  24429. libext=$libext
  24430. # Shared library suffix (normally ".so").
  24431. shrext_cmds=$lt_shrext_cmds
  24432. # The commands to extract the exported symbol list from a shared archive.
  24433. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  24434. # Variables whose values should be saved in libtool wrapper scripts and
  24435. # restored at link time.
  24436. variables_saved_for_relink=$lt_variables_saved_for_relink
  24437. # Do we need the "lib" prefix for modules?
  24438. need_lib_prefix=$need_lib_prefix
  24439. # Do we need a version for libraries?
  24440. need_version=$need_version
  24441. # Library versioning type.
  24442. version_type=$version_type
  24443. # Shared library runtime path variable.
  24444. runpath_var=$runpath_var
  24445. # Shared library path variable.
  24446. shlibpath_var=$shlibpath_var
  24447. # Is shlibpath searched before the hard-coded library search path?
  24448. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  24449. # Format of library name prefix.
  24450. libname_spec=$lt_libname_spec
  24451. # List of archive names. First name is the real one, the rest are links.
  24452. # The last name is the one that the linker finds with -lNAME
  24453. library_names_spec=$lt_library_names_spec
  24454. # The coded name of the library, if different from the real name.
  24455. soname_spec=$lt_soname_spec
  24456. # Command to use after installation of a shared archive.
  24457. postinstall_cmds=$lt_postinstall_cmds
  24458. # Command to use after uninstallation of a shared archive.
  24459. postuninstall_cmds=$lt_postuninstall_cmds
  24460. # Commands used to finish a libtool library installation in a directory.
  24461. finish_cmds=$lt_finish_cmds
  24462. # As "finish_cmds", except a single script fragment to be evaled but
  24463. # not shown.
  24464. finish_eval=$lt_finish_eval
  24465. # Whether we should hardcode library paths into libraries.
  24466. hardcode_into_libs=$hardcode_into_libs
  24467. # Compile-time system search path for libraries.
  24468. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  24469. # Run-time system search path for libraries.
  24470. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  24471. # Whether dlopen is supported.
  24472. dlopen_support=$enable_dlopen
  24473. # Whether dlopen of programs is supported.
  24474. dlopen_self=$enable_dlopen_self
  24475. # Whether dlopen of statically linked programs is supported.
  24476. dlopen_self_static=$enable_dlopen_self_static
  24477. # Commands to strip libraries.
  24478. old_striplib=$lt_old_striplib
  24479. striplib=$lt_striplib
  24480. # Assembler program.
  24481. AS=$AS
  24482. # DLL creation program.
  24483. DLLTOOL=$DLLTOOL
  24484. # Object dumper program.
  24485. OBJDUMP=$OBJDUMP
  24486. # The linker used to build libraries.
  24487. LD=$lt_LD
  24488. # Commands used to build an old-style archive.
  24489. old_archive_cmds=$lt_old_archive_cmds
  24490. # A language specific compiler.
  24491. CC=$lt_compiler
  24492. # Is the compiler the GNU compiler?
  24493. with_gcc=$GCC
  24494. # Compiler flag to turn off builtin functions.
  24495. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  24496. # How to pass a linker flag through the compiler.
  24497. wl=$lt_lt_prog_compiler_wl
  24498. # Additional compiler flags for building library objects.
  24499. pic_flag=$lt_lt_prog_compiler_pic
  24500. # Compiler flag to prevent dynamic linking.
  24501. link_static_flag=$lt_lt_prog_compiler_static
  24502. # Does compiler simultaneously support -c and -o options?
  24503. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  24504. # Whether or not to add -lc for building shared libraries.
  24505. build_libtool_need_lc=$archive_cmds_need_lc
  24506. # Whether or not to disallow shared libs when runtime libs are static.
  24507. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  24508. # Compiler flag to allow reflexive dlopens.
  24509. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  24510. # Compiler flag to generate shared objects directly from archives.
  24511. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  24512. # Whether the compiler copes with passing no objects directly.
  24513. compiler_needs_object=$lt_compiler_needs_object
  24514. # Create an old-style archive from a shared archive.
  24515. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  24516. # Create a temporary old-style archive to link instead of a shared archive.
  24517. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  24518. # Commands used to build a shared archive.
  24519. archive_cmds=$lt_archive_cmds
  24520. archive_expsym_cmds=$lt_archive_expsym_cmds
  24521. # Commands used to build a loadable module if different from building
  24522. # a shared archive.
  24523. module_cmds=$lt_module_cmds
  24524. module_expsym_cmds=$lt_module_expsym_cmds
  24525. # Whether we are building with GNU ld or not.
  24526. with_gnu_ld=$lt_with_gnu_ld
  24527. # Flag that allows shared libraries with undefined symbols to be built.
  24528. allow_undefined_flag=$lt_allow_undefined_flag
  24529. # Flag that enforces no undefined symbols.
  24530. no_undefined_flag=$lt_no_undefined_flag
  24531. # Flag to hardcode \$libdir into a binary during linking.
  24532. # This must work even if \$libdir does not exist
  24533. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  24534. # If ld is used when linking, flag to hardcode \$libdir into a binary
  24535. # during linking. This must work even if \$libdir does not exist.
  24536. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  24537. # Whether we need a single "-rpath" flag with a separated argument.
  24538. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  24539. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24540. # DIR into the resulting binary.
  24541. hardcode_direct=$hardcode_direct
  24542. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24543. # DIR into the resulting binary and the resulting library dependency is
  24544. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  24545. # library is relocated.
  24546. hardcode_direct_absolute=$hardcode_direct_absolute
  24547. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24548. # into the resulting binary.
  24549. hardcode_minus_L=$hardcode_minus_L
  24550. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24551. # into the resulting binary.
  24552. hardcode_shlibpath_var=$hardcode_shlibpath_var
  24553. # Set to "yes" if building a shared library automatically hardcodes DIR
  24554. # into the library and all subsequent libraries and executables linked
  24555. # against it.
  24556. hardcode_automatic=$hardcode_automatic
  24557. # Set to yes if linker adds runtime paths of dependent libraries
  24558. # to runtime path list.
  24559. inherit_rpath=$inherit_rpath
  24560. # Whether libtool must link a program against all its dependency libraries.
  24561. link_all_deplibs=$link_all_deplibs
  24562. # Fix the shell variable \$srcfile for the compiler.
  24563. fix_srcfile_path=$lt_fix_srcfile_path
  24564. # Set to "yes" if exported symbols are required.
  24565. always_export_symbols=$always_export_symbols
  24566. # The commands to list exported symbols.
  24567. export_symbols_cmds=$lt_export_symbols_cmds
  24568. # Symbols that should not be listed in the preloaded symbols.
  24569. exclude_expsyms=$lt_exclude_expsyms
  24570. # Symbols that must always be exported.
  24571. include_expsyms=$lt_include_expsyms
  24572. # Commands necessary for linking programs (against libraries) with templates.
  24573. prelink_cmds=$lt_prelink_cmds
  24574. # Specify filename containing input files.
  24575. file_list_spec=$lt_file_list_spec
  24576. # How to hardcode a shared library path into an executable.
  24577. hardcode_action=$hardcode_action
  24578. # The directories searched by this compiler when creating a shared library.
  24579. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  24580. # Dependencies to place before and after the objects being linked to
  24581. # create a shared library.
  24582. predep_objects=$lt_predep_objects
  24583. postdep_objects=$lt_postdep_objects
  24584. predeps=$lt_predeps
  24585. postdeps=$lt_postdeps
  24586. # The library search path used internally by the compiler when linking
  24587. # a shared library.
  24588. compiler_lib_search_path=$lt_compiler_lib_search_path
  24589. # ### END LIBTOOL CONFIG
  24590. _LT_EOF
  24591. case $host_os in
  24592. aix3*)
  24593. cat <<\_LT_EOF >> "$cfgfile"
  24594. # AIX sometimes has problems with the GCC collect2 program. For some
  24595. # reason, if we set the COLLECT_NAMES environment variable, the problems
  24596. # vanish in a puff of smoke.
  24597. if test "X${COLLECT_NAMES+set}" != Xset; then
  24598. COLLECT_NAMES=
  24599. export COLLECT_NAMES
  24600. fi
  24601. _LT_EOF
  24602. ;;
  24603. esac
  24604. ltmain="$ac_aux_dir/ltmain.sh"
  24605. # We use sed instead of cat because bash on DJGPP gets confused if
  24606. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  24607. # text mode, it properly converts lines to CR/LF. This bash problem
  24608. # is reportedly fixed, but why not run on old versions too?
  24609. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  24610. || (rm -f "$cfgfile"; exit 1)
  24611. case $xsi_shell in
  24612. yes)
  24613. cat << \_LT_EOF >> "$cfgfile"
  24614. # func_dirname file append nondir_replacement
  24615. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  24616. # otherwise set result to NONDIR_REPLACEMENT.
  24617. func_dirname ()
  24618. {
  24619. case ${1} in
  24620. */*) func_dirname_result="${1%/*}${2}" ;;
  24621. * ) func_dirname_result="${3}" ;;
  24622. esac
  24623. }
  24624. # func_basename file
  24625. func_basename ()
  24626. {
  24627. func_basename_result="${1##*/}"
  24628. }
  24629. # func_dirname_and_basename file append nondir_replacement
  24630. # perform func_basename and func_dirname in a single function
  24631. # call:
  24632. # dirname: Compute the dirname of FILE. If nonempty,
  24633. # add APPEND to the result, otherwise set result
  24634. # to NONDIR_REPLACEMENT.
  24635. # value returned in "$func_dirname_result"
  24636. # basename: Compute filename of FILE.
  24637. # value retuned in "$func_basename_result"
  24638. # Implementation must be kept synchronized with func_dirname
  24639. # and func_basename. For efficiency, we do not delegate to
  24640. # those functions but instead duplicate the functionality here.
  24641. func_dirname_and_basename ()
  24642. {
  24643. case ${1} in
  24644. */*) func_dirname_result="${1%/*}${2}" ;;
  24645. * ) func_dirname_result="${3}" ;;
  24646. esac
  24647. func_basename_result="${1##*/}"
  24648. }
  24649. # func_stripname prefix suffix name
  24650. # strip PREFIX and SUFFIX off of NAME.
  24651. # PREFIX and SUFFIX must not contain globbing or regex special
  24652. # characters, hashes, percent signs, but SUFFIX may contain a leading
  24653. # dot (in which case that matches only a dot).
  24654. func_stripname ()
  24655. {
  24656. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  24657. # positional parameters, so assign one to ordinary parameter first.
  24658. func_stripname_result=${3}
  24659. func_stripname_result=${func_stripname_result#"${1}"}
  24660. func_stripname_result=${func_stripname_result%"${2}"}
  24661. }
  24662. # func_opt_split
  24663. func_opt_split ()
  24664. {
  24665. func_opt_split_opt=${1%%=*}
  24666. func_opt_split_arg=${1#*=}
  24667. }
  24668. # func_lo2o object
  24669. func_lo2o ()
  24670. {
  24671. case ${1} in
  24672. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  24673. *) func_lo2o_result=${1} ;;
  24674. esac
  24675. }
  24676. # func_xform libobj-or-source
  24677. func_xform ()
  24678. {
  24679. func_xform_result=${1%.*}.lo
  24680. }
  24681. # func_arith arithmetic-term...
  24682. func_arith ()
  24683. {
  24684. func_arith_result=$(( $* ))
  24685. }
  24686. # func_len string
  24687. # STRING may not start with a hyphen.
  24688. func_len ()
  24689. {
  24690. func_len_result=${#1}
  24691. }
  24692. _LT_EOF
  24693. ;;
  24694. *) # Bourne compatible functions.
  24695. cat << \_LT_EOF >> "$cfgfile"
  24696. # func_dirname file append nondir_replacement
  24697. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  24698. # otherwise set result to NONDIR_REPLACEMENT.
  24699. func_dirname ()
  24700. {
  24701. # Extract subdirectory from the argument.
  24702. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  24703. if test "X$func_dirname_result" = "X${1}"; then
  24704. func_dirname_result="${3}"
  24705. else
  24706. func_dirname_result="$func_dirname_result${2}"
  24707. fi
  24708. }
  24709. # func_basename file
  24710. func_basename ()
  24711. {
  24712. func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  24713. }
  24714. # func_stripname prefix suffix name
  24715. # strip PREFIX and SUFFIX off of NAME.
  24716. # PREFIX and SUFFIX must not contain globbing or regex special
  24717. # characters, hashes, percent signs, but SUFFIX may contain a leading
  24718. # dot (in which case that matches only a dot).
  24719. # func_strip_suffix prefix name
  24720. func_stripname ()
  24721. {
  24722. case ${2} in
  24723. .*) func_stripname_result=`$ECHO "X${3}" \
  24724. | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  24725. *) func_stripname_result=`$ECHO "X${3}" \
  24726. | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  24727. esac
  24728. }
  24729. # sed scripts:
  24730. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  24731. my_sed_long_arg='1s/^-[^=]*=//'
  24732. # func_opt_split
  24733. func_opt_split ()
  24734. {
  24735. func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  24736. func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  24737. }
  24738. # func_lo2o object
  24739. func_lo2o ()
  24740. {
  24741. func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  24742. }
  24743. # func_xform libobj-or-source
  24744. func_xform ()
  24745. {
  24746. func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  24747. }
  24748. # func_arith arithmetic-term...
  24749. func_arith ()
  24750. {
  24751. func_arith_result=`expr "$@"`
  24752. }
  24753. # func_len string
  24754. # STRING may not start with a hyphen.
  24755. func_len ()
  24756. {
  24757. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  24758. }
  24759. _LT_EOF
  24760. esac
  24761. case $lt_shell_append in
  24762. yes)
  24763. cat << \_LT_EOF >> "$cfgfile"
  24764. # func_append var value
  24765. # Append VALUE to the end of shell variable VAR.
  24766. func_append ()
  24767. {
  24768. eval "$1+=\$2"
  24769. }
  24770. _LT_EOF
  24771. ;;
  24772. *)
  24773. cat << \_LT_EOF >> "$cfgfile"
  24774. # func_append var value
  24775. # Append VALUE to the end of shell variable VAR.
  24776. func_append ()
  24777. {
  24778. eval "$1=\$$1\$2"
  24779. }
  24780. _LT_EOF
  24781. ;;
  24782. esac
  24783. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  24784. || (rm -f "$cfgfile"; exit 1)
  24785. mv -f "$cfgfile" "$ofile" ||
  24786. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  24787. chmod +x "$ofile"
  24788. cat <<_LT_EOF >> "$ofile"
  24789. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  24790. # The linker used to build libraries.
  24791. LD=$lt_LD_CXX
  24792. # Commands used to build an old-style archive.
  24793. old_archive_cmds=$lt_old_archive_cmds_CXX
  24794. # A language specific compiler.
  24795. CC=$lt_compiler_CXX
  24796. # Is the compiler the GNU compiler?
  24797. with_gcc=$GCC_CXX
  24798. # Compiler flag to turn off builtin functions.
  24799. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  24800. # How to pass a linker flag through the compiler.
  24801. wl=$lt_lt_prog_compiler_wl_CXX
  24802. # Additional compiler flags for building library objects.
  24803. pic_flag=$lt_lt_prog_compiler_pic_CXX
  24804. # Compiler flag to prevent dynamic linking.
  24805. link_static_flag=$lt_lt_prog_compiler_static_CXX
  24806. # Does compiler simultaneously support -c and -o options?
  24807. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  24808. # Whether or not to add -lc for building shared libraries.
  24809. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  24810. # Whether or not to disallow shared libs when runtime libs are static.
  24811. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  24812. # Compiler flag to allow reflexive dlopens.
  24813. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  24814. # Compiler flag to generate shared objects directly from archives.
  24815. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  24816. # Whether the compiler copes with passing no objects directly.
  24817. compiler_needs_object=$lt_compiler_needs_object_CXX
  24818. # Create an old-style archive from a shared archive.
  24819. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  24820. # Create a temporary old-style archive to link instead of a shared archive.
  24821. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  24822. # Commands used to build a shared archive.
  24823. archive_cmds=$lt_archive_cmds_CXX
  24824. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  24825. # Commands used to build a loadable module if different from building
  24826. # a shared archive.
  24827. module_cmds=$lt_module_cmds_CXX
  24828. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  24829. # Whether we are building with GNU ld or not.
  24830. with_gnu_ld=$lt_with_gnu_ld_CXX
  24831. # Flag that allows shared libraries with undefined symbols to be built.
  24832. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  24833. # Flag that enforces no undefined symbols.
  24834. no_undefined_flag=$lt_no_undefined_flag_CXX
  24835. # Flag to hardcode \$libdir into a binary during linking.
  24836. # This must work even if \$libdir does not exist
  24837. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  24838. # If ld is used when linking, flag to hardcode \$libdir into a binary
  24839. # during linking. This must work even if \$libdir does not exist.
  24840. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  24841. # Whether we need a single "-rpath" flag with a separated argument.
  24842. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  24843. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24844. # DIR into the resulting binary.
  24845. hardcode_direct=$hardcode_direct_CXX
  24846. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24847. # DIR into the resulting binary and the resulting library dependency is
  24848. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  24849. # library is relocated.
  24850. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  24851. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24852. # into the resulting binary.
  24853. hardcode_minus_L=$hardcode_minus_L_CXX
  24854. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24855. # into the resulting binary.
  24856. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  24857. # Set to "yes" if building a shared library automatically hardcodes DIR
  24858. # into the library and all subsequent libraries and executables linked
  24859. # against it.
  24860. hardcode_automatic=$hardcode_automatic_CXX
  24861. # Set to yes if linker adds runtime paths of dependent libraries
  24862. # to runtime path list.
  24863. inherit_rpath=$inherit_rpath_CXX
  24864. # Whether libtool must link a program against all its dependency libraries.
  24865. link_all_deplibs=$link_all_deplibs_CXX
  24866. # Fix the shell variable \$srcfile for the compiler.
  24867. fix_srcfile_path=$lt_fix_srcfile_path_CXX
  24868. # Set to "yes" if exported symbols are required.
  24869. always_export_symbols=$always_export_symbols_CXX
  24870. # The commands to list exported symbols.
  24871. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  24872. # Symbols that should not be listed in the preloaded symbols.
  24873. exclude_expsyms=$lt_exclude_expsyms_CXX
  24874. # Symbols that must always be exported.
  24875. include_expsyms=$lt_include_expsyms_CXX
  24876. # Commands necessary for linking programs (against libraries) with templates.
  24877. prelink_cmds=$lt_prelink_cmds_CXX
  24878. # Specify filename containing input files.
  24879. file_list_spec=$lt_file_list_spec_CXX
  24880. # How to hardcode a shared library path into an executable.
  24881. hardcode_action=$hardcode_action_CXX
  24882. # The directories searched by this compiler when creating a shared library.
  24883. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  24884. # Dependencies to place before and after the objects being linked to
  24885. # create a shared library.
  24886. predep_objects=$lt_predep_objects_CXX
  24887. postdep_objects=$lt_postdep_objects_CXX
  24888. predeps=$lt_predeps_CXX
  24889. postdeps=$lt_postdeps_CXX
  24890. # The library search path used internally by the compiler when linking
  24891. # a shared library.
  24892. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  24893. # ### END LIBTOOL TAG CONFIG: CXX
  24894. _LT_EOF
  24895. ;;
  24896. "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  24897. # Strip MF so we end up with the name of the file.
  24898. mf=`echo "$mf" | sed -e 's/:.*$//'`
  24899. # Check whether this is an Automake generated Makefile or not.
  24900. # We used to match only the files named `Makefile.in', but
  24901. # some people rename them; so instead we look at the file content.
  24902. # Grep'ing the first line is not enough: some people post-process
  24903. # each Makefile.in and add a new line on top of each file to say so.
  24904. # Grep'ing the whole file is not good either: AIX grep has a line
  24905. # limit of 2048, but all sed's we know have understand at least 4000.
  24906. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  24907. dirpart=`$as_dirname -- "$mf" ||
  24908. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  24909. X"$mf" : 'X\(//\)[^/]' \| \
  24910. X"$mf" : 'X\(//\)$' \| \
  24911. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  24912. echo X"$mf" |
  24913. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  24914. s//\1/
  24915. q
  24916. }
  24917. /^X\(\/\/\)[^/].*/{
  24918. s//\1/
  24919. q
  24920. }
  24921. /^X\(\/\/\)$/{
  24922. s//\1/
  24923. q
  24924. }
  24925. /^X\(\/\).*/{
  24926. s//\1/
  24927. q
  24928. }
  24929. s/.*/./; q'`
  24930. else
  24931. continue
  24932. fi
  24933. # Extract the definition of DEPDIR, am__include, and am__quote
  24934. # from the Makefile without running `make'.
  24935. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  24936. test -z "$DEPDIR" && continue
  24937. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  24938. test -z "am__include" && continue
  24939. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  24940. # When using ansi2knr, U may be empty or an underscore; expand it
  24941. U=`sed -n 's/^U = //p' < "$mf"`
  24942. # Find all dependency output files, they are included files with
  24943. # $(DEPDIR) in their names. We invoke sed twice because it is the
  24944. # simplest approach to changing $(DEPDIR) to its actual value in the
  24945. # expansion.
  24946. for file in `sed -n "
  24947. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  24948. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  24949. # Make sure the directory exists.
  24950. test -f "$dirpart/$file" && continue
  24951. fdir=`$as_dirname -- "$file" ||
  24952. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  24953. X"$file" : 'X\(//\)[^/]' \| \
  24954. X"$file" : 'X\(//\)$' \| \
  24955. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  24956. echo X"$file" |
  24957. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  24958. s//\1/
  24959. q
  24960. }
  24961. /^X\(\/\/\)[^/].*/{
  24962. s//\1/
  24963. q
  24964. }
  24965. /^X\(\/\/\)$/{
  24966. s//\1/
  24967. q
  24968. }
  24969. /^X\(\/\).*/{
  24970. s//\1/
  24971. q
  24972. }
  24973. s/.*/./; q'`
  24974. { as_dir=$dirpart/$fdir
  24975. case $as_dir in #(
  24976. -*) as_dir=./$as_dir;;
  24977. esac
  24978. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  24979. as_dirs=
  24980. while :; do
  24981. case $as_dir in #(
  24982. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  24983. *) as_qdir=$as_dir;;
  24984. esac
  24985. as_dirs="'$as_qdir' $as_dirs"
  24986. as_dir=`$as_dirname -- "$as_dir" ||
  24987. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  24988. X"$as_dir" : 'X\(//\)[^/]' \| \
  24989. X"$as_dir" : 'X\(//\)$' \| \
  24990. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  24991. echo X"$as_dir" |
  24992. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  24993. s//\1/
  24994. q
  24995. }
  24996. /^X\(\/\/\)[^/].*/{
  24997. s//\1/
  24998. q
  24999. }
  25000. /^X\(\/\/\)$/{
  25001. s//\1/
  25002. q
  25003. }
  25004. /^X\(\/\).*/{
  25005. s//\1/
  25006. q
  25007. }
  25008. s/.*/./; q'`
  25009. test -d "$as_dir" && break
  25010. done
  25011. test -z "$as_dirs" || eval "mkdir $as_dirs"
  25012. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  25013. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  25014. { (exit 1); exit 1; }; }; }
  25015. # echo "creating $dirpart/$file"
  25016. echo '# dummy' > "$dirpart/$file"
  25017. done
  25018. done
  25019. ;;
  25020. esac
  25021. done # for ac_tag
  25022. { (exit 0); exit 0; }
  25023. _ACEOF
  25024. chmod +x $CONFIG_STATUS
  25025. ac_clean_files=$ac_clean_files_save
  25026. # configure is writing to config.log, and then calls config.status.
  25027. # config.status does its own redirection, appending to config.log.
  25028. # Unfortunately, on DOS this fails, as config.log is still kept open
  25029. # by configure, so config.status won't be able to write to it; its
  25030. # output is simply discarded. So we exec the FD to /dev/null,
  25031. # effectively closing config.log, so it can be properly (re)opened and
  25032. # appended to by config.status. When coming back to configure, we
  25033. # need to make the FD available again.
  25034. if test "$no_create" != yes; then
  25035. ac_cs_success=:
  25036. ac_config_status_args=
  25037. test "$silent" = yes &&
  25038. ac_config_status_args="$ac_config_status_args --quiet"
  25039. exec 5>/dev/null
  25040. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  25041. exec 5>>config.log
  25042. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  25043. # would make configure fail if this is the last instruction.
  25044. $ac_cs_success || { (exit 1); exit 1; }
  25045. fi
  25046. { echo "$as_me:$LINENO: +----------------------------------------+" >&5
  25047. echo "$as_me: +----------------------------------------+" >&6;}
  25048. if test "x$enable_IL" = "xyes"; then
  25049. { echo "$as_me:$LINENO: \| IL library Supported formats \|" >&5
  25050. echo "$as_me: \| IL library Supported formats \|" >&6;}
  25051. { echo "$as_me:$LINENO: +----------------------------------------+-------+" >&5
  25052. echo "$as_me: +----------------------------------------+-------+" >&6;}
  25053. { echo "$as_me:$LINENO: $SUPPORTED_FORMATS" >&5
  25054. echo "$as_me: $SUPPORTED_FORMATS" >&6;}
  25055. { echo "$as_me:$LINENO: +----------------------------------------+" >&5
  25056. echo "$as_me: +----------------------------------------+" >&6;}
  25057. { echo "$as_me:$LINENO: \| IL library External libraries \|" >&5
  25058. echo "$as_me: \| IL library External libraries \|" >&6;}
  25059. { echo "$as_me:$LINENO: +----------------------------------------+-------+" >&5
  25060. echo "$as_me: +----------------------------------------+-------+" >&6;}
  25061. { echo "$as_me:$LINENO: Required libs: $IL_LIBS_REQUIRED" >&5
  25062. echo "$as_me: Required libs: $IL_LIBS_REQUIRED" >&6;}
  25063. if test "x$enable_modules" = "xyes"; then
  25064. { echo "$as_me:$LINENO: +----------------------------------------+-------+" >&5
  25065. echo "$as_me: +----------------------------------------+-------+" >&6;}
  25066. { echo "$as_me:$LINENO: Optional libs: $IL_LIBS_OPTIONAL" >&5
  25067. echo "$as_me: Optional libs: $IL_LIBS_OPTIONAL" >&6;}
  25068. fi
  25069. else
  25070. { echo "$as_me:$LINENO: \| IL disabled (huh? good luck!) \|" >&5
  25071. echo "$as_me: \| IL disabled (huh? good luck!) \|" >&6;}
  25072. fi
  25073. { echo "$as_me:$LINENO: +----------------------------------------+" >&5
  25074. echo "$as_me: +----------------------------------------+" >&6;}
  25075. if test "x$enable_ILU" = "xyes"; then
  25076. { echo "$as_me:$LINENO: \| ILU part enabled \|" >&5
  25077. echo "$as_me: \| ILU part enabled \|" >&6;}
  25078. else
  25079. { echo "$as_me:$LINENO: \| ILU part disabled \|" >&5
  25080. echo "$as_me: \| ILU part disabled \|" >&6;}
  25081. { echo "$as_me:$LINENO: +----------------------------------------+-------+" >&5
  25082. echo "$as_me: +----------------------------------------+-------+" >&6;}
  25083. { echo "$as_me:$LINENO: Pass --enable-ILU option to the configure script if you want to build ILU" >&5
  25084. echo "$as_me: Pass --enable-ILU option to the configure script if you want to build ILU" >&6;}
  25085. fi
  25086. { echo "$as_me:$LINENO: +----------------------------------------+" >&5
  25087. echo "$as_me: +----------------------------------------+" >&6;}
  25088. if test "x$enable_ILUT" = "xyes"; then
  25089. { echo "$as_me:$LINENO: \| ILUT library Supported APIs \|" >&5
  25090. echo "$as_me: \| ILUT library Supported APIs \|" >&6;}
  25091. { echo "$as_me:$LINENO: +----------------------------------------+-------+" >&5
  25092. echo "$as_me: +----------------------------------------+-------+" >&6;}
  25093. { echo "$as_me:$LINENO: $SUPPORTED_API" >&5
  25094. echo "$as_me: $SUPPORTED_API" >&6;}
  25095. else
  25096. { echo "$as_me:$LINENO: \| ILUT part disabled \|" >&5
  25097. echo "$as_me: \| ILUT part disabled \|" >&6;}
  25098. { echo "$as_me:$LINENO: +----------------------------------------+-------+" >&5
  25099. echo "$as_me: +----------------------------------------+-------+" >&6;}
  25100. { echo "$as_me:$LINENO: Pass --enable-ILUT option to the configure script if you want to build ILUT" >&5
  25101. echo "$as_me: Pass --enable-ILUT option to the configure script if you want to build ILUT" >&6;}
  25102. fi
  25103. { echo "$as_me:$LINENO: +----------------------------------------+" >&5
  25104. echo "$as_me: +----------------------------------------+" >&6;}
  25105. { echo "$as_me:$LINENO: \| Detected Machine Extensions \|" >&5
  25106. echo "$as_me: \| Detected Machine Extensions \|" >&6;}
  25107. { echo "$as_me:$LINENO: +----------------------------------------+-------+" >&5
  25108. echo "$as_me: +----------------------------------------+-------+" >&6;}
  25109. { echo "$as_me:$LINENO: $SUPPORTED_EXTENSION" >&5
  25110. echo "$as_me: $SUPPORTED_EXTENSION" >&6;}
  25111. { echo "$as_me:$LINENO: +----------------------------------------+" >&5
  25112. echo "$as_me: +----------------------------------------+" >&6;}
  25113. if test "x$with_examples" = "xyes"; then
  25114. { echo "$as_me:$LINENO: \| Building examples \|" >&5
  25115. echo "$as_me: \| Building examples \|" >&6;}
  25116. { echo "$as_me:$LINENO: +----------------------------------------+-------+" >&5
  25117. echo "$as_me: +----------------------------------------+-------+" >&6;}
  25118. { echo "$as_me:$LINENO: $EXAMPLES_TO_BUILD" >&5
  25119. echo "$as_me: $EXAMPLES_TO_BUILD" >&6;}
  25120. if test "x$build" != "x$host"; then
  25121. { echo "$as_me:$LINENO: Note: You may get some errors when cross-compiling when using OpenEXR, Allegro and/or SDL. So if you are cross-compiling and getting these errors (very likely if you use MingW), just pass --disable-exr, --disable-allegro or --disable-sdl to the configure script." >&5
  25122. echo "$as_me: Note: You may get some errors when cross-compiling when using OpenEXR, Allegro and/or SDL. So if you are cross-compiling and getting these errors (very likely if you use MingW), just pass --disable-exr, --disable-allegro or --disable-sdl to the configure script." >&6;}
  25123. fi
  25124. else
  25125. { echo "$as_me:$LINENO: \| Not building any examples \|" >&5
  25126. echo "$as_me: \| Not building any examples \|" >&6;}
  25127. { echo "$as_me:$LINENO: +----------------------------------------+-------+" >&5
  25128. echo "$as_me: +----------------------------------------+-------+" >&6;}
  25129. { echo "$as_me:$LINENO: Pass --with-examples option to the configure script if you want to build examples." >&5
  25130. echo "$as_me: Pass --with-examples option to the configure script if you want to build examples." >&6;}
  25131. fi
  25132. { echo "$as_me:$LINENO: +----------------------------------------+" >&5
  25133. echo "$as_me: +----------------------------------------+" >&6;}